Skip to content

The only tool you need to know what is happening and how to fix it.

release: backend v1.7.22

github-actions[bot]b185472ec0d6
diff --git a/backend/static/frontend/_app/immutable/assets/0.CGWkSaCJ.css b/backend/static/frontend/_app/immutable/assets/0.CGWkSaCJ.css
new file mode 100644
index 00000000..abdf19fe
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/assets/0.CGWkSaCJ.css
@@ -0,0 +1 @@
+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-mono:var(--font-mono);--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-green-950:oklch(26.6% .065 152.934);--color-emerald-600:oklch(59.6% .145 163.225);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-violet-400:oklch(70.2% .183 293.541);--color-violet-600:oklch(54.1% .281 293.009);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-300:oklch(87.2% .01 258.338);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-lg:var(--radius);--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-3xl:64px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-display);--default-mono-font-family:var(--font-mono);--font-display:var(--font-display)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}html{font-family:var(--font-mono)}body{font-family:var(--font-mono);font-feature-settings:"ss01","cv11";-webkit-font-smoothing:antialiased;background-color:var(--background);color:var(--foreground)}html.dark{background:var(--ink-0)}html.dark body{color:var(--fg-1);background:radial-gradient(1200px 700px at 85% -10%,var(--a1),transparent 60%),radial-gradient(900px 600px at -10% 20%,var(--a2),transparent 60%),var(--ink-0)}@supports (color:color-mix(in lab,red,red)){html.dark body{background:radial-gradient(1200px 700px at 85% -10%,color-mix(in oklab,var(--a1)18%,transparent),transparent 60%),radial-gradient(900px 600px at -10% 20%,color-mix(in oklab,var(--a2)10%,transparent),transparent 60%),var(--ink-0)}}h1,h2,h3,h4,h5,h6{font-family:var(--font-display);letter-spacing:-.01em}html.dark h1,html.dark h2,html.dark h3,html.dark h4,html.dark h5,html.dark h6{color:var(--fg-0)}html.dark h1 em,html.dark h2 em{font-style:normal;font-weight:inherit;background:linear-gradient(90deg,var(--a2),var(--a1)60%,var(--a3));color:#0000;-webkit-background-clip:text;background-clip:text}h1 em,h2 em{font-style:normal;font-weight:inherit;color:var(--a1)}}@layer components{.eyebrow{font-family:var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--a2);font-size:11px;font-weight:500;display:inline-block}.eyebrow:before{content:"// ";opacity:.5}.muted-text{color:var(--fg-2)}.dim-text{color:var(--fg-3)}.hair-rule{background:var(--hair);width:100%;height:1px}.surface-card{background:linear-gradient(180deg,var(--ink-3),var(--ink-2));border:1px solid var(--hair);border-radius:var(--radius-lg);padding:22px}.chip{font-family:var(--font-mono);letter-spacing:.04em;color:var(--fg-1);background:var(--ink-3);border:1px solid var(--hair);border-radius:999px;align-items:center;gap:6px;padding:4px 8px;font-size:11px;display:inline-flex}.chip .dot{background:var(--a2);width:6px;height:6px;box-shadow:0 0 8px var(--a2);border-radius:50%;flex-shrink:0}.chip.ok .dot{background:var(--ok);box-shadow:0 0 8px var(--ok)}.chip.crit .dot{background:var(--crit);box-shadow:0 0 8px var(--crit)}.btn-traceway{border-radius:var(--radius);font-family:var(--font-display);letter-spacing:-.01em;white-space:nowrap;cursor:pointer;border:1px solid #0000;align-items:center;gap:8px;padding:12px 18px;font-size:14px;font-weight:500;transition:background .15s,border-color .15s,color .15s;display:inline-flex}.btn-traceway.primary{background:var(--fg-0);color:var(--ink-0);box-shadow:inset 0 1px #fff9,0 0 0 1px #ffffff1f}.btn-traceway.accent{background:linear-gradient(180deg,var(--a1),var(--a1))}@supports (color:color-mix(in lab,red,red)){.btn-traceway.accent{background:linear-gradient(180deg,color-mix(in oklab,var(--a1)100%,white 12%),var(--a1))}}.btn-traceway.accent{color:#0a0612;box-shadow:0 10px 30px -12px var(--a1),0 0 0 1px var(--a1)}@supports (color:color-mix(in lab,red,red)){.btn-traceway.accent{box-shadow:0 10px 30px -12px color-mix(in oklab,var(--a1)80%,transparent),0 0 0 1px color-mix(in oklab,var(--a1)40%,transparent)}}.btn-traceway.accent:hover{background:linear-gradient(180deg,var(--a1),var(--a1))}@supports (color:color-mix(in lab,red,red)){.btn-traceway.accent:hover{background:linear-gradient(180deg,color-mix(in oklab,var(--a1)100%,white 18%),var(--a1))}}.btn-traceway.ghost{border-color:var(--hair-2);color:var(--fg-0);background:0 0}.btn-traceway.ghost:hover{background:var(--ink-3)}}@layer utilities{.\@container\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.start-0{inset-inline-start:calc(var(--spacing)*0)}.start-2{inset-inline-start:calc(var(--spacing)*2)}.end-0{inset-inline-end:calc(var(--spacing)*0)}.end-1{inset-inline-end:calc(var(--spacing)*1)}.end-2{inset-inline-end:calc(var(--spacing)*2)}.end-3{inset-inline-end:calc(var(--spacing)*3)}.end-4{inset-inline-end:calc(var(--spacing)*4)}.-top-5{top:calc(var(--spacing)*-5)}.top-0{top:calc(var(--spacing)*0)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-3\.5{top:calc(var(--spacing)*3.5)}.top-4{top:calc(var(--spacing)*4)}.top-\[1px\]{top:1px}.top-\[28px\]{top:28px}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-7{right:calc(var(--spacing)*7)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.col-span-3{grid-column:span 3/span 3}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-3\.5{margin-inline:calc(var(--spacing)*3.5)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.my-2{margin-block:calc(var(--spacing)*2)}.ms-auto{margin-inline-start:auto}.-mt-2{margin-top:calc(var(--spacing)*-2)}.mt-0{margin-top:calc(var(--spacing)*0)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-auto{margin-top:auto}.-mr-1{margin-right:calc(var(--spacing)*-1)}.mr-0\.5{margin-right:calc(var(--spacing)*.5)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.-mb-4{margin-bottom:calc(var(--spacing)*-4)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.-ml-3{margin-left:calc(var(--spacing)*-3)}.ml-0\.5{margin-left:calc(var(--spacing)*.5)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-6{margin-left:calc(var(--spacing)*6)}.ml-9{margin-left:calc(var(--spacing)*9)}.ml-16{margin-left:calc(var(--spacing)*16)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-row{display:table-row}.aspect-square{aspect-ratio:1}.size-\(--cell-size\){width:var(--cell-size);height:var(--cell-size)}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-full{width:100%;height:100%}.h-\(--bits-select-anchor-height\){height:var(--bits-select-anchor-height)}.h-\(--cell-size\){height:var(--cell-size)}.h-0{height:calc(var(--spacing)*0)}.h-2{height:calc(var(--spacing)*2)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-18{height:calc(var(--spacing)*18)}.h-24{height:calc(var(--spacing)*24)}.h-45{height:calc(var(--spacing)*45)}.h-48{height:calc(var(--spacing)*48)}.h-64{height:calc(var(--spacing)*64)}.h-\[1px\]{height:1px}.h-\[220px\]{height:220px}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.h-svh{height:100svh}.max-h-\(--bits-dropdown-menu-content-available-height\){max-height:var(--bits-dropdown-menu-content-available-height)}.max-h-\(--bits-select-content-available-height\){max-height:var(--bits-select-content-available-height)}.max-h-32{max-height:calc(var(--spacing)*32)}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-64{max-height:calc(var(--spacing)*64)}.max-h-72{max-height:calc(var(--spacing)*72)}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-\[85vh\]{max-height:85vh}.max-h-\[90vh\]{max-height:90vh}.max-h-\[200px\]{max-height:200px}.max-h-\[300px\]{max-height:300px}.max-h-\[440px\]{max-height:440px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.min-h-8{min-height:calc(var(--spacing)*8)}.min-h-\[200px\]{min-height:200px}.min-h-\[240px\]{min-height:240px}.min-h-screen{min-height:100vh}.min-h-svh{min-height:100svh}.w-\(--cell-size\){width:var(--cell-size)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-0{width:calc(var(--spacing)*0)}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-18{width:calc(var(--spacing)*18)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-44{width:calc(var(--spacing)*44)}.w-56{width:calc(var(--spacing)*56)}.w-72{width:calc(var(--spacing)*72)}.w-80{width:calc(var(--spacing)*80)}.w-\[20px\]{width:20px}.w-\[40px\]{width:40px}.w-\[60px\]{width:60px}.w-\[70px\]{width:70px}.w-\[80px\]{width:80px}.w-\[90px\]{width:90px}.w-\[100\%\]{width:100%}.w-\[100px\]{width:100px}.w-\[110px\]{width:110px}.w-\[120px\]{width:120px}.w-\[130px\]{width:130px}.w-\[140px\]{width:140px}.w-\[160px\]{width:160px}.w-\[180px\]{width:180px}.w-\[190px\]{width:190px}.w-\[200px\]{width:200px}.w-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[280px\]{width:280px}.w-\[350px\]{width:350px}.w-\[400px\]{width:400px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-\[4px\]{max-width:4px}.max-w-\[50\%\]{max-width:50%}.max-w-\[80px\]{max-width:80px}.max-w-\[120px\]{max-width:120px}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[220px\]{max-width:220px}.max-w-\[300px\]{max-width:300px}.max-w-\[400px\]{max-width:400px}.max-w-\[500px\]{max-width:500px}.max-w-\[600px\]{max-width:600px}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.max-w-xs{max-width:var(--container-xs)}.min-w-\(--bits-select-anchor-width\){min-width:var(--bits-select-anchor-width)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[200px\]{min-width:200px}.min-w-\[280px\]{min-width:280px}.min-w-\[380px\]{min-width:380px}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\(--bits-dropdown-menu-content-transform-origin\){transform-origin:var(--bits-dropdown-menu-content-transform-origin)}.origin-\(--bits-popover-content-transform-origin\){transform-origin:var(--bits-popover-content-transform-origin)}.origin-\(--bits-select-content-transform-origin\){transform-origin:var(--bits-select-content-transform-origin)}.origin-\(--bits-tooltip-content-transform-origin\){transform-origin:var(--bits-tooltip-content-transform-origin)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-150{--tw-scale-x:150%;--tw-scale-y:150%;--tw-scale-z:150%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.\!animate-none{animation:none!important}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.appearance-none{appearance:none}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-items-start{justify-items:start}.gap-0{gap:calc(var(--spacing)*0)}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-\[1px\]{gap:1px}.gap-\[3px\]{gap:3px}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-4{column-gap:calc(var(--spacing)*4)}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-6>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*6)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-0\.5{row-gap:calc(var(--spacing)*.5)}.gap-y-1{row-gap:calc(var(--spacing)*1)}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[1px\]{border-radius:1px}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 6px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-200{border-color:var(--color-amber-200)}.border-blue-200{border-color:var(--color-blue-200)}.border-border,.border-border\/50{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)}}.border-destructive,.border-destructive\/20{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/20{border-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.border-destructive\/30{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/30{border-color:color-mix(in oklab,var(--destructive)30%,transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-green-200{border-color:var(--color-green-200)}.border-hair-2{border-color:var(--hair-2)}.border-input{border-color:var(--input)}.border-muted-foreground\/25{border-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.border-muted-foreground\/25{border-color:color-mix(in oklab,var(--muted-foreground)25%,transparent)}}.border-muted-foreground\/40{border-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.border-muted-foreground\/40{border-color:color-mix(in oklab,var(--muted-foreground)40%,transparent)}}.border-primary,.border-primary\/40{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.border-primary\/40{border-color:color-mix(in oklab,var(--primary)40%,transparent)}}.border-red-200{border-color:var(--color-red-200)}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500)30%,transparent)}}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.border-yellow-200{border-color:var(--color-yellow-200)}.border-s-transparent{border-inline-start-color:#0000}.border-t-transparent{border-top-color:#0000}.border-l-primary{border-left-color:var(--primary)}.\!bg-background{background-color:var(--background)!important}.bg-\[\#f5f5f5\]{background-color:#f5f5f5}.bg-accent{background-color:var(--accent)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/10{background-color:color-mix(in oklab,var(--color-amber-500)10%,transparent)}}.bg-amber-500\/15{background-color:#f99c0026}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/15{background-color:color-mix(in oklab,var(--color-amber-500)15%,transparent)}}.bg-background{background-color:var(--background)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\/15{background-color:#3080ff26}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/15{background-color:color-mix(in oklab,var(--color-blue-500)15%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-chart-1\/10{background-color:var(--chart-1)}@supports (color:color-mix(in lab,red,red)){.bg-chart-1\/10{background-color:color-mix(in oklab,var(--chart-1)10%,transparent)}}.bg-cyan-400{background-color:var(--color-cyan-400)}.bg-destructive,.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-foreground{background-color:var(--foreground)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-400{background-color:var(--color-green-400)}.bg-green-500\/15{background-color:#00c75826}@supports (color:color-mix(in lab,red,red)){.bg-green-500\/15{background-color:color-mix(in oklab,var(--color-green-500)15%,transparent)}}.bg-green-600{background-color:var(--color-green-600)}.bg-indigo-400{background-color:var(--color-indigo-400)}.bg-lime-400{background-color:var(--color-lime-400)}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/25{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/25{background-color:color-mix(in oklab,var(--muted-foreground)25%,transparent)}}.bg-muted-foreground\/50{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/50{background-color:color-mix(in oklab,var(--muted-foreground)50%,transparent)}}.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/30{background-color:color-mix(in oklab,var(--muted)30%,transparent)}}.bg-muted\/40{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/40{background-color:color-mix(in oklab,var(--muted)40%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-orange-400{background-color:var(--color-orange-400)}.bg-orange-500\/15{background-color:#fe6e0026}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/15{background-color:color-mix(in oklab,var(--color-orange-500)15%,transparent)}}.bg-pink-400{background-color:var(--color-pink-400)}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/10{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/10{background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.bg-primary\/20{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/20{background-color:color-mix(in oklab,var(--primary)20%,transparent)}}.bg-purple-400{background-color:var(--color-purple-400)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/5{background-color:#fb2c360d}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/5{background-color:color-mix(in oklab,var(--color-red-500)5%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500)15%,transparent)}}.bg-red-700\/25{background-color:#bf000f40}@supports (color:color-mix(in lab,red,red)){.bg-red-700\/25{background-color:color-mix(in oklab,var(--color-red-700)25%,transparent)}}.bg-rose-400{background-color:var(--color-rose-400)}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-sky-400{background-color:var(--color-sky-400)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-500\/15{background-color:#62748e26}@supports (color:color-mix(in lab,red,red)){.bg-slate-500\/15{background-color:color-mix(in oklab,var(--color-slate-500)15%,transparent)}}.bg-teal-400{background-color:var(--color-teal-400)}.bg-transparent{background-color:#0000}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500)10%,transparent)}}.bg-yellow-500\/15{background-color:#edb20026}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/15{background-color:color-mix(in oklab,var(--color-yellow-500)15%,transparent)}}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from:var(--color-amber-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-muted\/80{--tw-gradient-from:var(--muted)}@supports (color:color-mix(in lab,red,red)){.from-muted\/80{--tw-gradient-from:color-mix(in oklab,var(--muted)80%,transparent)}}.from-muted\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-500{--tw-gradient-from:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-red-500{--tw-gradient-from:var(--color-red-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-orange-500{--tw-gradient-via:var(--color-orange-500);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-pink-500{--tw-gradient-via:var(--color-pink-500);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-muted{--tw-gradient-to:var(--muted);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-red-500{--tw-gradient-to:var(--color-red-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-yellow-500{--tw-gradient-to:var(--color-yellow-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-clip-padding{background-clip:padding-box}.fill-current{fill:currentColor}.fill-yellow-500{fill:var(--color-yellow-500)}.object-contain{object-fit:contain}.p-0{padding:calc(var(--spacing)*0)}.p-0\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-px{padding:1px}.px-\(--cell-size\){padding-inline:var(--cell-size)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-12{padding-block:calc(var(--spacing)*12)}.py-16{padding-block:calc(var(--spacing)*16)}.py-20{padding-block:calc(var(--spacing)*20)}.ps-2{padding-inline-start:calc(var(--spacing)*2)}.ps-8{padding-inline-start:calc(var(--spacing)*8)}.pe-1{padding-inline-end:calc(var(--spacing)*1)}.pe-2{padding-inline-end:calc(var(--spacing)*2)}.pe-8{padding-inline-end:calc(var(--spacing)*8)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-1\.5{padding-top:calc(var(--spacing)*1.5)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-6{padding-top:calc(var(--spacing)*6)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-6{padding-right:calc(var(--spacing)*6)}.pb-0{padding-bottom:calc(var(--spacing)*0)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-6{padding-bottom:calc(var(--spacing)*6)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-6{padding-left:calc(var(--spacing)*6)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-\[400\]{--tw-font-weight:400;font-weight:400}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-background,.text-background\/70{color:var(--background)}@supports (color:color-mix(in lab,red,red)){.text-background\/70{color:color-mix(in oklab,var(--background)70%,transparent)}}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-blue-900{color:var(--color-blue-900)}.text-border{color:var(--border)}.text-card-foreground{color:var(--card-foreground)}.text-chart-1{color:var(--chart-1)}.text-current{color:currentColor}.text-destructive,.text-destructive\/90{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.text-destructive\/90{color:color-mix(in oklab,var(--destructive)90%,transparent)}}.text-foreground{color:var(--foreground)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground,.text-muted-foreground\/60{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/60{color:color-mix(in oklab,var(--muted-foreground)60%,transparent)}}.text-orange-600{color:var(--color-orange-600)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-500{color:var(--color-purple-500)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground)70%,transparent)}}.text-sky-600{color:var(--color-sky-600)}.text-slate-600{color:var(--color-slate-600)}.text-transparent{color:#0000}.text-violet-600{color:var(--color-violet-600)}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-\[0_0_0_1px_var\(--sidebar-border\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--sidebar-border));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_20px_60px_-20px_rgba\(0\,0\,0\,0\.7\)\,0_0_0_1px_rgba\(255\,255\,255\,0\.03\)\]{--tw-shadow:0 20px 60px -20px var(--tw-shadow-color,#000000b3),0 0 0 1px var(--tw-shadow-color,#ffffff08);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[none\]{--tw-shadow:none;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-amber-500{--tw-ring-color:var(--color-amber-500)}.ring-blue-500{--tw-ring-color:var(--color-blue-500)}.ring-blue-700\/10{--tw-ring-color:#1447e61a}@supports (color:color-mix(in lab,red,red)){.ring-blue-700\/10{--tw-ring-color:color-mix(in oklab,var(--color-blue-700)10%,transparent)}}.ring-cyan-500{--tw-ring-color:var(--color-cyan-500)}.ring-green-500{--tw-ring-color:var(--color-green-500)}.ring-indigo-500{--tw-ring-color:var(--color-indigo-500)}.ring-lime-500{--tw-ring-color:var(--color-lime-500)}.ring-orange-500{--tw-ring-color:var(--color-orange-500)}.ring-pink-500{--tw-ring-color:var(--color-pink-500)}.ring-purple-500{--tw-ring-color:var(--color-purple-500)}.ring-red-500{--tw-ring-color:var(--color-red-500)}.ring-ring,.ring-ring\/10{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.ring-ring\/10{--tw-ring-color:color-mix(in oklab,var(--ring)10%,transparent)}}.ring-rose-500{--tw-ring-color:var(--color-rose-500)}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.ring-sky-500{--tw-ring-color:var(--color-sky-500)}.ring-slate-500{--tw-ring-color:var(--color-slate-500)}.ring-teal-500{--tw-ring-color:var(--color-teal-500)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-ring\/50{outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.outline-ring\/50{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}.blur-3xl{--tw-blur:blur(var(--blur-3xl));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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.\!transition-none{transition-property:none!important}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.zoom-in-95{--tw-enter-scale:.95}.\[--cell-size\:--spacing\(8\)\]{--cell-size:calc(var(--spacing)*8)}.fade-in{--tw-enter-opacity:0}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.slide-in-from-top-1{--tw-enter-translate-y:calc(1*var(--spacing)*-1)}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media(hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *),.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pe-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-inline-end:calc(var(--spacing)*8)}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing)*-8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing)*8)!important;height:calc(var(--spacing)*8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing)*4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offcanvas\]\:start-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){inset-inline-start:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:end-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){inset-inline-end:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible=offcanvas] *){width:calc(var(--spacing)*0)}.group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.group-data-\[side\=left\]\:-end-4:is(:where(.group)[data-side=left] *){inset-inline-end:calc(var(--spacing)*-4)}.group-data-\[side\=left\]\:border-e:is(:where(.group)[data-side=left] *){border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.group-data-\[side\=right\]\:start-0:is(:where(.group)[data-side=right] *){inset-inline-start:calc(var(--spacing)*0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-s:is(:where(.group)[data-side=right] *){border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:var(--radius)}.group-data-\[variant\=floating\]\:border:is(:where(.group)[data-variant=floating] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[variant\=floating\]\:border-sidebar-border:is(:where(.group)[data-variant=floating] *){border-color:var(--sidebar-border)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing)*1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing)*2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing)*1)}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing)*-2)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing)*0)}.after\:start-\[calc\(1\/2\*100\%-1px\)\]:after{content:var(--tw-content);inset-inline-start:calc(50% - 1px)}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.group-data-\[collapsible\=offcanvas\]\:after\:start-full:is(:where(.group)[data-collapsible=offcanvas] *):after{content:var(--tw-content);inset-inline-start:100%}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.focus-within\:z-20:focus-within{z-index:20}@media(hover:hover){.hover\:border-foreground\/40:hover{border-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:border-foreground\/40:hover{border-color:color-mix(in oklab,var(--foreground)40%,transparent)}}.hover\:border-primary:hover{border-color:var(--primary)}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-blue-500:hover{background-color:var(--color-blue-500)}.hover\:bg-destructive\/10:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/10:hover{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-emerald-600\/90:hover{background-color:#009767e6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-emerald-600\/90:hover{background-color:color-mix(in oklab,var(--color-emerald-600)90%,transparent)}}.hover\:bg-muted:hover,.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:bg-transparent:hover{background-color:#0000}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-primary:hover{color:var(--primary)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:text-yellow-600:hover{color:var(--color-yellow-600)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_var\(--sidebar-border\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--sidebar-border));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offcanvas] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:relative:focus{position:relative}.focus\:border-ring:focus{border-color:var(--ring)}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus,.focus\:ring-ring\/50:focus{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus\:ring-ring\/50:focus{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:border-r:focus-visible{border-right-style:var(--tw-border-style);border-right-width:1px}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:border-sidebar-accent:focus-visible{border-color:var(--sidebar-accent)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[2px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-emerald-600\/20:focus-visible{--tw-ring-color:#00976733}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-emerald-600\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-emerald-600)20%,transparent)}}.focus-visible\:ring-ring:focus-visible,.focus-visible\:ring-ring\/40:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/40:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)40%,transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus-visible\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}.has-focus\:border-ring:has(:focus){border-color:var(--ring)}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){grid-template-columns:calc(var(--spacing)*4)1fr}.has-\[\>svg\]\:gap-x-3:has(>svg){column-gap:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}@media(hover:hover){.data-\[active\=false\]\:hover\:bg-gray-100[data-active=false]:hover{background-color:var(--color-gray-100)}}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--sidebar-accent-foreground)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:text-muted-foreground[data-disabled]{color:var(--muted-foreground)}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[highlighted\]\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-\[highlighted\]\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[inset\]\:ps-8[data-inset]{padding-inline-start:calc(var(--spacing)*8)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[selected\]\:bg-primary[data-selected]{background-color:var(--primary)}.data-\[selected\]\:text-primary-foreground[data-selected]{color:var(--primary-foreground)}.data-\[side\=bottom\]\:-translate-x-1\/2[data-side=bottom]{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:-translate-y-\[calc\(50\%_-_2px\)\][data-side=bottom]{--tw-translate-y: calc((50% - 2px)*-1) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:rotate-225[data-side=bottom]{rotate:225deg}.data-\[side\=bottom\]\:border-t[data-side=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[side\=bottom\]\:border-l[data-side=bottom]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:-translate-y-\[calc\(50\%_-_3px\)\][data-side=left]{--tw-translate-y: calc((50% - 3px)*-1) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:border-r[data-side=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=left\]\:border-b[data-side=left]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:translate-x-\[calc\(50\%_\+_2px\)\][data-side=right]{--tw-translate-x: calc(50% + 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:translate-y-1\/2[data-side=right]{--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:border-r[data-side=right]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=right\]\:border-b[data-side=right]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=top\]\:translate-x-1\/2[data-side=top]{--tw-translate-x: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:translate-y-\[calc\(-50\%_\+_3px\)\][data-side=top]{--tw-translate-y: calc(-50% + 3px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:border-r[data-side=top]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=top\]\:border-b[data-side=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:color-mix(in oklab,var(--destructive)90%,transparent)}}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\[state\=active\]\:border-primary[data-state=active]{border-color:var(--primary)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:bg-transparent[data-state=active]{background-color:#0000}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--foreground)}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=active\]\:shadow-none[data-state=active]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:slide-out-to-end[data-state=closed]:dir(ltr){--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-end[data-state=closed]:dir(rtl){--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-start[data-state=closed]:dir(ltr){--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-start[data-state=closed]:dir(rtl){--tw-exit-translate-x:100%}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=indeterminate\]\:border-primary[data-state=indeterminate]{border-color:var(--primary)}.data-\[state\=indeterminate\]\:bg-primary[data-state=indeterminate]{background-color:var(--primary)}.data-\[state\=indeterminate\]\:text-primary-foreground[data-state=indeterminate]{color:var(--primary-foreground)}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:border-ring\/60[data-state=open]{border-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:border-ring\/60[data-state=open]{border-color:color-mix(in oklab,var(--ring)60%,transparent)}}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:slide-in-from-end[data-state=open]:dir(ltr){--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-end[data-state=open]:dir(rtl){--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-start[data-state=open]:dir(ltr){--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-start[data-state=open]:dir(rtl){--tw-enter-translate-x:100%}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}@media(hover:hover){.data-\[state\=open\]\:data-\[active\=false\]\:hover\:bg-gray-100[data-state=open][data-active=false]:hover{background-color:var(--color-gray-100)}}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[unavailable\]\:text-muted-foreground[data-unavailable]{color:var(--muted-foreground)}.data-\[unavailable\]\:line-through[data-unavailable]{text-decoration-line:line-through}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:data-highlighted\:text-destructive[data-variant=destructive][data-highlighted]{color:var(--destructive)}@media(min-width:40rem){.sm\:col-span-2{grid-column:span 2/span 2}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-\[540px\]{width:540px}.sm\:w-auto{width:auto}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:justify-end{justify-content:flex-end}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:ps-2\.5{padding-inline-start:calc(var(--spacing)*2.5)}.sm\:pe-2\.5{padding-inline-end:calc(var(--spacing)*2.5)}.sm\:text-left{text-align:left}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:block{display:block}.md\:flex{display:flex}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing)*2)}.md\:peer-data-\[variant\=inset\]\:ms-0:is(:where(.peer)[data-variant=inset]~*){margin-inline-start:calc(var(--spacing)*0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ms-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-inline-start:calc(var(--spacing)*2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@media(min-width:64rem){.lg\:w-\[320px\]{width:320px}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}:where(.lg\:space-x-8>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*8)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-x-reverse)))}}@media(min-width:80rem){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}.rtl\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *){rotate:180deg}.dark\:border-amber-800:is(.dark *){border-color:var(--color-amber-800)}.dark\:border-blue-800:is(.dark *){border-color:var(--color-blue-800)}.dark\:border-destructive\/60:is(.dark *){border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:border-destructive\/60:is(.dark *){border-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:border-green-900:is(.dark *){border-color:var(--color-green-900)}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:border-white:is(.dark *){border-color:var(--color-white)}.dark\:bg-amber-950\/50:is(.dark *){background-color:#46190180}@supports (color:color-mix(in lab,red,red)){.dark\:bg-amber-950\/50:is(.dark *){background-color:color-mix(in oklab,var(--color-amber-950)50%,transparent)}}.dark\:bg-blue-900\/30:is(.dark *){background-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-900\/30:is(.dark *){background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\:bg-blue-950\/50:is(.dark *){background-color:#16245680}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-950\/50:is(.dark *){background-color:color-mix(in oklab,var(--color-blue-950)50%,transparent)}}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-destructive\/70:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/70:is(.dark *){background-color:color-mix(in oklab,var(--destructive)70%,transparent)}}.dark\:bg-emerald-600\/60:is(.dark *){background-color:#00976799}@supports (color:color-mix(in lab,red,red)){.dark\:bg-emerald-600\/60:is(.dark *){background-color:color-mix(in oklab,var(--color-emerald-600)60%,transparent)}}.dark\:bg-green-950:is(.dark *){background-color:var(--color-green-950)}.dark\:bg-ink-2:is(.dark *){background-color:var(--ink-2)}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:text-amber-200:is(.dark *){color:var(--color-amber-200)}.dark\:text-amber-300:is(.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:is(.dark *){color:var(--color-amber-400)}.dark\:text-blue-200:is(.dark *){color:var(--color-blue-200)}.dark\:text-blue-300:is(.dark *){color:var(--color-blue-300)}.dark\:text-blue-400:is(.dark *){color:var(--color-blue-400)}.dark\:text-destructive\/90:is(.dark *){color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:text-destructive\/90:is(.dark *){color:color-mix(in oklab,var(--destructive)90%,transparent)}}.dark\:text-green-400:is(.dark *){color:var(--color-green-400)}.dark\:text-orange-400:is(.dark *){color:var(--color-orange-400)}.dark\:text-red-300:is(.dark *){color:var(--color-red-300)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-sky-400:is(.dark *){color:var(--color-sky-400)}.dark\:text-slate-300:is(.dark *){color:var(--color-slate-300)}.dark\:text-violet-400:is(.dark *){color:var(--color-violet-400)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:text-yellow-400:is(.dark *){color:var(--color-yellow-400)}.dark\:text-yellow-500:is(.dark *){color:var(--color-yellow-500)}.dark\:ring-blue-400\/30:is(.dark *){--tw-ring-color:#54a2ff4d}@supports (color:color-mix(in lab,red,red)){.dark\:ring-blue-400\/30:is(.dark *){--tw-ring-color:color-mix(in oklab,var(--color-blue-400)30%,transparent)}}.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:color-mix(in oklab,var(--ring)20%,transparent)}}.dark\:outline-ring\/40:is(.dark *){outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.dark\:outline-ring\/40:is(.dark *){outline-color:color-mix(in oklab,var(--ring)40%,transparent)}}@media(hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:hover\:bg-destructive\/20:is(.dark *):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-destructive\/20:is(.dark *):hover{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}.dark\:hover\:text-accent-foreground:is(.dark *):hover{color:var(--accent-foreground)}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:focus-visible\:ring-emerald-600\/40:is(.dark *):focus-visible{--tw-ring-color:#00976766}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-emerald-600\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-emerald-600)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}@media(hover:hover){.dark\:data-\[active\=false\]\:hover\:bg-white\/10:is(.dark *)[data-active=false]:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[active\=false\]\:hover\:bg-white\/10:is(.dark *)[data-active=false]:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\:data-\[selected\]\:hover\:bg-accent\/50:is(.dark *)[data-selected]:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[selected\]\:hover\:bg-accent\/50:is(.dark *)[data-selected]:hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:data-\[state\=open\]\:data-\[active\=false\]\:hover\:bg-white\/10:is(.dark *)[data-state=open][data-active=false]:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[state\=open\]\:data-\[active\=false\]\:hover\:bg-white\/10:is(.dark *)[data-state=open][data-active=false]:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}}.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:\:-webkit-calendar-picker-indicator\]\:hidden::-webkit-calendar-picker-indicator{display:none}.\[\&\:\:-webkit-calendar-picker-indicator\]\:appearance-none::-webkit-calendar-picker-indicator{appearance:none}.\[\&\:first-child\[data-selected\]_\[data-bits-day\]\]\:rounded-s-md:first-child[data-selected] [data-bits-day]{border-start-start-radius:calc(var(--radius) - 2px);border-end-start-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pe-0:has([role=checkbox]){padding-inline-end:calc(var(--spacing)*0)}.\[\.border-b\]\:pb-2.border-b{padding-bottom:calc(var(--spacing)*2)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\:last-child\[data-selected\]_\[data-bits-day\]\]\:rounded-e-md:last-child[data-selected] [data-bits-day]{border-start-end-radius:calc(var(--radius) - 2px);border-end-end-radius:calc(var(--radius) - 2px)}.\[\&\:not\(\:first-child\)\]\:mt-1:not(:first-child){margin-top:calc(var(--spacing)*1)}.\[\&\:not\(\:first-child\)\]\:border-t:not(:first-child){border-top-style:var(--tw-border-style);border-top-width:1px}.\[\&\:not\(\:first-child\)\]\:border-hair:not(:first-child){border-color:var(--hair)}.\[\&\:not\(\:first-child\)\]\:pt-1:not(:first-child){padding-top:calc(var(--spacing)*1)}.\[\&\>button\]\:hidden>button{display:none}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:translate-y-0\.5>svg{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>svg\]\:text-current>svg{color:currentColor}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--muted-foreground)}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}@media(hover:hover){.hover\:\[\&\>td\]\:bg-muted\/50:hover>td{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:\[\&\>td\]\:bg-muted\/50:hover>td{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>td\]\:bg-muted\/50:hover>svelte-css-wrapper)>td{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>td\]\:bg-muted\/50:hover>svelte-css-wrapper)>td{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\[\&\[data-outside-month\]\:not\(\[data-selected\]\)\]\:text-muted-foreground[data-outside-month]:not([data-selected]){color:var(--muted-foreground)}@media(hover:hover){.\[\&\[data-outside-month\]\:not\(\[data-selected\]\)\]\:hover\:text-accent-foreground[data-outside-month]:not([data-selected]):hover{color:var(--accent-foreground)}}.\[\&\[data-today\]\:not\(\[data-selected\]\)\]\:bg-accent[data-today]:not([data-selected]){background-color:var(--accent)}.\[\&\[data-today\]\:not\(\[data-selected\]\)\]\:text-accent-foreground[data-today]:not([data-selected]){color:var(--accent-foreground)}.\[\&\[data-today\]\[data-disabled\]\]\:text-muted-foreground[data-today][data-disabled]{color:var(--muted-foreground)}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-end-2{inset-inline-end:calc(var(--spacing)*-2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-start-2{inset-inline-start:calc(var(--spacing)*-2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}@media(hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAASIABAAAAAACQQAAAQuAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVF4AdBEICoRkhAALIAABNgIkAzoEIAWFAAeBFAwHG2oHKJ6DceNW4lJEFHn9tEOE37LNsvkjHr7f739rn3u+OSrSxLQytE91Dw2PYtNVq3Qaw/vJ7fUBMdOj/u2ImB98cT5WUx9F13ZKt06mU7tG1sAYcM26yCRX4f/0904bmwq8hwkUUMTRX61pa9C3xlpAGYw1vOu8C2SBZZFlld7DAW82RJWmwYMI1AJCKBNCIASqdZGFmtPSNQRhMpR0EKjWTwm6z6sJ+4jqhxjovTinVdRpZaQjaQzAYjI8NgAKDJCokgunCn9oUQE8VZd/F//+v6P4F1U9gLr58yNI/dJX9BAshEoJbTDogz7ocKoUsPvES8UK/aQIUQgpGgECBVLkOEV6iASTYgNAPKdNXayhDPL7IJuAZnEYSZ0eOLc9i5Rv5/+lEi3sW/kfnCf/+fTe0sxS7CKLx5erRJkKOixEqQaoqrvx5HN4iz4VhX0gS6DjFIWUzn/fIXJRVFY1NFRVNVeFt+SYmrK6vCU6eJsnKnJj5HTESMTQZOTI3Y/tzr3rUcOsiRy/ciP50s3Mycgxmhz9GMXhjzVH30ut796NHP0UUa31/Zoa6vCH6iPvdIM0IRANaT60FablmZlZd+UKNFy9NrvnFGxb5NC2CRxR0/rIyF/WNn+35sv9r+tHVhkseuWGKkCPPh96+GXt8Lc/Sh24ujfjf+tNw1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mH1M6+UHeVlDtCzzGZ9FY8YMA8gPMsQA0jqaGkHT6cYSdVwl7Zs9Wzx+DyWUugPujd03T52ikrUvM26kF9PIcRmycuDBKcd3XRhPDgtnQACINzJ3fVl1tTB++3bc2S7kyD3cCQIQNMcSKaY2YOciE+d0zFbGjps6u0PILTFlRZHNJfAFnfeHtgAAAAABAAAAAjYEro52gl8PPPUAAwPoAAAAANvSppoAAAAA29rQ8vk5/tQEkgP8AAAABgACAAAAAAAAeNpjYGRgYP7z7woDA8uGn5Z/+1kmAUVQAR8Ar8AG6gB42mOKYIgCYiMkrAzCUHEbJJoBikHgCkMPAPDwCFUAAAAAABoAOwBGAFEAbwB3AKkAsQDmAQkBCQEJAQkBFgEveNpjYGRgYOBn3MGQx7CFgQ3MQwBmBiYALRoB+HjajJADbgVQEEXPZ20bQW3bthvXbr8Vp4to1KV0AV1Wb9JvZzJvzhvcB6CQL0wYzHnAj6E/yAYaDeVBNlJsMAfZxCy/QTbTy3eQLdTzGWQr3VwGuZhx2v/ZAIVUB9kc0TSUKJ8f5FIRHGPjnWs+2MKt+MYzt1xwr/jIk3JymR0X0wzIXKo7VbXjFvfLn3lTtCn7qPoB6+yyzb3qy8pdq/6hrj11fMj7OFbtEY+mrlU/516rVFCdVobplw/JEjVaCaqIYlUiUzOaW9aa/Q1idmlPXZHbCagW/B10XwaRi06VuVdMf+9DnIov6rlF8yzhUXxC/4c66Uz48UepqEN9N/Tzt2RwjOljsUUfj581AbaEXsIAAHjaY2BiAIP/qQxGQIqRAR3wA7EKw0lGJgYbRmZGFkZWRjZGdgZmRg5GTkYuRm42x6Si1LJU9tK8TAMTR1cI7WoB5btB+Zas6Ym5uYlgnoGjAZNzEF9icmlJanJ+bpJecmJxKg9IxtjADMwBAKDtHJg=)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-400-normal.BEIGL1Tu.woff2)format("woff2"),url(./jetbrains-mono-cyrillic-400-normal.ugxPyKxw.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-greek-400-normal.C190GLew.woff2)format("woff2"),url(./jetbrains-mono-greek-400-normal.B9oWc5Lo.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA9UABAAAAAALMAAAA7zAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnAbhWocghYGYD9TVEFUXgCDBBEICrBAp3ILgjgAATYCJAOEKAQgBYUAB4xODAcbIiYzo8LGAQCKfn4o/usELQ4rdj22ABHwitFYjZPqB3XSqAbV3C5dFkHYtTehxpeGbU+3+QexdERCkxARw9oNxAyetvXzdhdjl/7aiBiHgcqBjZywaGPSh4mNFccpF3DHlfyO8Jc/OiSe/kb7/iQYRAE23iScpHngiRRBFETNiZzQwc2HOllJ0fqXIjTY8RTYbDsklKc81hGPQcOJojhD/w80ll1aG/qiQErbzqOXjmvOVKd14tuv+Hxrlbarq/5xH7CiMPjaZXlrfNSp7uqaroZXvYAzc8A0kH2zs3MvHQBUORcJ2GG2cdFRgArh+Sgb7yOsjImpmgM0kq1FwhQCQzQ1Mt+j7at5GSAAIQAAKFLk6uMul4pIl4HIpEEUK0dUMiCMmhFWNoSDC+Exghgzi5i3hNhtN9qaINo+EbQj1tEIgJVLj5oebQ6I1/fyLMQYALYgALKS0yEOQCJG89uIiEPKyeRDVCmC0HgZ203jIg7kk6cHxfEKeBSDXtxd6n5yJzqpfSgXs9xMri1fPezlKMAVcCGEIhmwHiDRtJOyKfXkGsAVqI7ohIZs0rsDM/IU4fuQgkppCk2n+VRHy6mFttJ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uudkZN724kIGmrtVaS38ZZLrS9/4fsKMQhN3yXK5gvSBvJ2Y9/Nydbcvb0bm58+e3FhmGfGLJ9u7axl1F1LQTbaCeyrbu7wFCsorFgV4qnh+GUrWtaczqkSBB96AEeKRB94k2SyLuyw3qwrxeg3P5FNR1Av1Gsq2/ds6dPPkBAAA)format("woff2"),url(./jetbrains-mono-vietnamese-400-normal.CqNFfHCs.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-ext-400-normal.Bc8Ftmh3.woff2)format("woff2"),url(./jetbrains-mono-latin-ext-400-normal.fXTG6kC5.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-400-normal.V6pRDFza.woff2)format("woff2"),url(./jetbrains-mono-latin-400-normal.6-qcROiO.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(data:font/woff2;base64,d09GMgABAAAAAASUABAAAAAACRAAAAQ3AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVEwAdBEICoRkg3oLIAABNgIkAzoEIAWFHgeBFAwHG3AHKB4HzukrRjyF5Gb4kQ/B873d17mv8TWkoqUUGaH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NqM0IFGQ2EUB/DfqqJMBZLAFUh0V0MoUBGllKQArHVtN9vu3HuH3iEAPUJP0cP0BD1D3D6zKQqHH9/5n885qHs1qza3iPfaenDNts/gGcs+gmcdeAuem+iZt+EleMGWx+Bl++Jv16jbDJ5Xtxa8om4peNUSbmT6WgbOlFp6Um2XEo9SI333EqmOrrKq0lDhQENDoS2XGioVYoVUTyyT62i4curCuUTpWK4lNVC4lBnI7Ez9dCeRK6TVa6Qp1rRnb0KHzh07/PfMG4mOkZ6W/JdUNM5FU7kTmaFn+Xj3SNNuVZFbXYnoj3nXcpkniXaVPzKqbpjJq86tH/fsSKuOkQextkzf1/Sx2KKPx/+aADN1XKsAeNpjYGIAg/+pDEZAipEBHfADsQrDSUYmBhtGZkYWRlZGNkZ2BmZGDkZORi5GbjbHpKLUslT20rxMAxNHVwjtagHlu0H5lqzpibm5iWCegaMBk3MQX2JyaUlqcn5ukl5yYnEqD0jG2MAMzAEAoO0cmA==)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./jetbrains-mono-cyrillic-500-normal.DmUKJPL_.woff2)format("woff2"),url(./jetbrains-mono-cyrillic-500-normal.DJqRU3vO.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./jetbrains-mono-greek-500-normal.JpySY46c.woff2)format("woff2"),url(./jetbrains-mono-greek-500-normal.D7SFKleX.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(data:font/woff2;base64,d09GMgABAAAAAA/IABAAAAAALMwAAA9mAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnAbhXAcghYGYD9TVEF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ZzHpoEPOX6wjz67FHso9aAqWW+ynpyeAc+VhtGMQgKDhk7pBGKUsAnBflEhlCV2wnFLxv2VpRo+QTFme7a4qy5cjUVaqjK2sjFJ+GTmx9FYE4M2hvDRKwSyXLSegQ9S4fhOazOT8YyJCPAaHHhY2o8XyD4iYNc7mNKNWTL+ICdO0Go+aiFqsGZM3ZyMDg2khMRGTZqrMfNN8LD/nqJhhBq3qNXN2r8LzGkBuHpMgYmkV2dpFChUKu08Vm1pVR9TBh+FjevSxMYZr7aNbRE1aFJsrvS1RcG1pOS9ocBJ8rTYx4yMuQj6W2WwW4VnSDJFz5tU/LKK0ZgWXCD2/qRmKRWuYh+47US6adX1FAOIfwbmATE+T2t4wLVab3eF0uT1eXz6MQKLQGCyuGE8gVpLIFCqNzmCy2Bwur54vEIrEEqlM3qxQqtTdSrU6vcFoMlusNjsz0q+WhVWdeg0aNfUmG7vmOrRwaNWmXYdOTi5uHl5deXXr0auPj19Av2C9QgYMGor2C4sYMWrMuAlRk6bETJsxa868BYuWxC3bbY+9EjhBUjTDcrwgSih88/y+eq/C13kHnXKhbTUDgISUCgNDoABXKLCL+2X27E/c2jAAQEKsFigx1qgLEbSeu+NyhcJGIECQNm9L567c3l7uZ5Wo3pkx4tYOhJANKw9dEonovRqVDb5dMKz515Ng+hci23hm4UQEs8eChwPB0BZYOBINbH3Erw0HECzUaokWa42eyGD3PIBIMBSOrfryBQ3G4oHQKi+/kEA0tuaDV40GP3h0+wuAAgXTKy0v5428xUDwksfm538juY9ni9fz2Ggy4iWLMz4qLklle7kcZvOLwy5bXp7fdYrRJlP4l5NDdZPiKVeLnJV7Ohg2VAs/aQwZNVtodX2jki6RU1e/j6GkgZbgAmmogZafuF4mZlb1t+COUyrcnF/CCZzS4MO/dX1T6QQAAAA=)format("woff2"),url(./jetbrains-mono-vietnamese-500-normal.DNRqzVM1.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./jetbrains-mono-latin-ext-500-normal.Cut-4mMH.woff2)format("woff2"),url(./jetbrains-mono-latin-ext-500-normal.ckzbgY84.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./jetbrains-mono-latin-500-normal.BWZEU5yA.woff2)format("woff2"),url(./jetbrains-mono-latin-500-normal.CJOVTJB7.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(data:font/woff2;base64,d09GMgABAAAAAASIABAAAAAACQAAAAQtAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVDYAdBEICoRkg3gLIAABNgIkAzoEIAWFIgeBFAwHG1wHKI7DuPEacDIiFJ/g+f47+1/7dIcdXTlD8DKqmcw4eIC+AOCPf6+qiWq3h6+aSCLNJDnkqX9Xl+rv/6dSBcwSBCzEoVqxNbp5SqPMYdKBQhBq1dK9ggSsgYUoGnHOqttMECvWjIJfPA8cjQAuAEAQLAiClASc7M6OkfbO/nHs6ACmCYBxZXKP4s9uXIHECh4AdEhX0yIHC6jzgAb65sshStMMChwEfWVjZe8Anset/6H93x8jOyL5fuS67z4Dlam+BPyH/pV2FLCZAOnU0XPzCQGiJ7AkXgSFhqDEB4AAoAAN2ExDgM10joCNfDQUbvxaXM8LovT79D9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kZiW9crOfMlXgP4x8AWVxW9542mNgYgCD/6kMRkCKkQEd8AOxCsNJRiYGG0ZmRhZGVkY2RnYGZkYORk5GLkZuNsekotSyVPbSvEwDE0dXCO1qAeW7QfmWrOmJubmJYJ6BowGTcxBfYnJpSWpyfm6SXnJicSoPSMbYwAzMAQCg7RyY)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-cyrillic-600-normal.EVf6-Yzo.woff2)format("woff2"),url(./jetbrains-mono-cyrillic-600-normal.8K4wrrwR.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-greek-600-normal.H7WoG9Et.woff2)format("woff2"),url(./jetbrains-mono-greek-600-normal.mc2nkWzM.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(data:font/woff2;base64,d09GMgABAAAAAA+cABAAAAAALLwAAA88AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnAbhXAcghYGYD9TVEFUNgCDBBEICrA8p1ILgjgAATYCJAOEKAQgBYUiB4xODAcbAiYzozactEpURMVmRMX/5YAeEbZcwG/CMMAQKoJWtdookZoS3aytxmC050sOI7cCAow302fVqlctEo2fsCH8NF7hT+iw0j9ChNjZ8mDDCKqxsmf2gdUroKACZgVMClhYtHG58kFWiUIXox5+nrb1f+4MUcKgDUhpU2kUtTpEWk2URbgiu+1zX2fy3o9MUYVLx3hhubmNsFpCMdsEk1F5+8ezc+v/smvX9vzNVygBp/rnXWMsECqg7HGvu2v3ux/JGhqUxXWMZcyPTSxsB6q1KNuR9/YiPE/t+m+wjit3IdpAssXS2tAX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UFJRU1Dm346egbGOJiYWVj16NWn34BBQ4aNQBllY+fg5HLIqLF8RZKbJyFePn4BQSFhEeMmTJoynSkzZs2Zt2DRkmUrmbMqKiYe3CMpJS0ja826DZu25OQVFG07bEfJrrIjjjrmuBMokcrkCqVKrdHqSny/tr9tXvyOGG30rJMAJDy0eCQaC1xQ5qiv+/KzmMSJlwAg4dZprHjr7ZnOxv7jZbNFEDKgIXiZtaTTOPW/99dNI7aOqXiJkwgefCmn4xYFia6TFus9PmM2XvF34tn0/wtZBr30OjpbflFIKBCGKEFAYXBgaSJp4hVAmAjrDE6C9a5jstSrAWJgCBQhmqYbOBiBBCKialrEgDhCLGXFmMhKqMzqJ4CFkf2aRNttL24YaB6pMvXxl0fuyuX6/TwUCk88kmW++/g5b5Ptfl6u7unbJto+f9aUhYo86S+abLrrPFhkKuCbYg/3RjZd2QeF4e1FA4WqntdRyb62TJw2Chq0gQWkUYM272xWJMurZi8h7DSKFU9P4QSnMWz/788ruR4A)format("woff2"),url(./jetbrains-mono-vietnamese-600-normal.OWROknRo.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-latin-ext-600-normal.BfB_LPfz.woff2)format("woff2"),url(./jetbrains-mono-latin-ext-600-normal.DObL3zCW.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-latin-600-normal.C8RAYTDA.woff2)format("woff2"),url(./jetbrains-mono-latin-600-normal.BfsvjouI.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(data:font/woff2;base64,d09GMgABAAAAAASAABAAAAAACNgAAAQlAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVEwAdBEICoRkg3gLIAABNgIkAzoEIAWEaAeBFAwHGzgHSJ4DbjN9OmtkIy0becnT/RjJ4uGfw99974/GXrhoTCqLok66NY3jTloEUdrmwCevn/Ls30xSpFlZ6UJMrW+fTNwAEdSuvSzCRANvEgnjUmw8swT+87+w7I/7qb8XlIB7NpGBjXiUjRX0b7ZpJ8+orRLzvGhWYCMdAU3BbRdPuqOeKAXuRKAWEEJJCIEQqNbLD9osq2kBviL8A4Fq4yLgAa+6DNaiAwcYOrqYHfgQcMgL3AFgG4fHHqREEUBSxUtmBfzNWxXADfviy8Kff7dA4QfFBQG6fnoX5Dh+gEEcIVRKtMIYhc/kCgsCDiarQY4QWpEKQoYTAAIJUcaHAHIXIN9BooBWhEAr0j7QzAkh1RnEWOY4wuRW8uX/f5o5W8gXcjriOUb9z/wjACRuWaWrpKIyLMQ/DUDN/TT+ErgHRpPBIRQrKCcZCvxBBCBEkSD4lKMjRblQlCvpQHPsSZE9R6K2o/vpXkGboKWbbltxx2feLT+a6KJb5293n7vTt53uwOzUO4gYc5eedhvS+a1bbdNuIiSA89cuGo25IZh6DXrJJIIUUibFUG0zt+ijO+cvnj8fjVm4cKlvN90DwzrdMmy8H9GjDyv90Xz2W10PVj3oTY7LLfwfmxMHoef+8n33R0duOxF3LPCYFXtymWNdcLBD3VF4S91+GWf8c9k7sZC6fPpnbENnCmayerBNki0ZbFUXiHV/wkxWklGmydCkaR5o0oZnlj3oSVdnZKjTITaXStOyWGYakzUgTSt1gvSs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M+QCEADVod7rC/euJNnDh4VnK0mgF8ITBkDielQzaAsXTEJ1o6fPyFpW7YzpJDG+fzydjvcfD98ArHSFeAAAAQAAAAI2BCpkDTZfDzz1AAMD6AAAAADb0qaaAAAAANva0PL5PP7UBJID/AABAAYAAgAAAAAAAHjaY2BkYGD+8+8KAwPLhp82f3NYJgFFUAEfAK0mBsoAeNpjimCIAmJlJCwOxR5ArIlEM0AxCBxiqAMA3bsHpgAAAAAaADsARgBRAG4AdgCoALAA5QEKAQoBCgEKARcBMHjaY2BkYGDgZ9zBkMewhYENzEMAZgYmAC0aAfh42oyQA25FUQBET20EtW27DWrbcfVtcx1dzV9V40adpLdmXiZzMnfmCSjlnhyycouATFa14SwaeTScTSEPhnOYJmM4l+7XbR71pA3n08ml4XL12585C0qpNpz/ds+sCuXFhitFcIwPD9d42SIsd+Pglgsscht2ZZIuPyHmGWFEfksQh5KweFhy4Jb7lNp0fsA6u2xjIcyysmsceNXaU8MrDSn14eaOc3WCaI9OaGWcYWlM19d16+u+9XX/1l9gW+nCv55q/NdnrEh+EgRf/4LejlEk0akSi/z3tzwkKHeqc4v2LBGR25UFUZPeL3/WhgM11LthmKclg2NGH4st+nj8qQkARipb8wB42mNgYgCD/6kMRkCKkQEd8AOxCsNJRiYGG0ZmRhZGVkY2RnYGZkYORk5GLkZuNsekotSyVPbSvEwDE0dXCO1qAeW7QfmWrOmJubmJYJ6BowGTcxBfYnJpSWpyfm6SXnJicSoPSMbYwAzMAQCg7RyY)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(./jetbrains-mono-cyrillic-700-normal.BWTpRfYl.woff2)format("woff2"),url(./jetbrains-mono-cyrillic-700-normal.CEoEElIJ.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(./jetbrains-mono-greek-700-normal.C6CZE3T8.woff2)format("woff2"),url(./jetbrains-mono-greek-700-normal.DEigVDxa.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(data:font/woff2;base64,d09GMgABAAAAAA+YABAAAAAALJQAAA84AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnAbhXAcghYGYD9TVEFUTACDBBEICrA8p1ILgjgAATYCJAOEKAQgBYRoB4xODAcb3iVFRoaNAwho/vmJoixsfqj4v07g5OqncaqIUAYqEI6gCkZ0qK4wEp3O9K+ySRaPPWftnd0mjZ8MzaNUaT+LsTAfnt9Wf+57KJFiNgZKlNHoICIwI21jYAViwejIjPZsu9HtRqQ77o8Mg+c/7tNzXzaRbQGM7gKhXRPOFLQiNdiAagUv6MdINrw+CRbhCE4hLJogyLSeshN+VfZv5VL37H77gu4BKGHwW0dphEhUGp7GwmyG25Sd6RBu5KJfsOTNfCWUAfB19+PmRqWEQqiWGEn0j5jlvf3H/82VdmZ/psCo0P8iGd/ns5PZJHNZaHmxwLjtAeWugApQATsgkmXNkhyjrpK1usLr8vD90V5b7skee5GGy7ZRGGe7LuOFEX8C/Wam5iygbneagmmYgiiqXH2XJK/cPwoEwAMAAEWEECHEEhHJUhHppIhiWkSJckQlI6KZDeHgQnj0IwZMIKbMIBYsoAWF0Jatom3YRiMAjhwq1OE0OyB43IEJCDAAOAmAzKQqsADEYmi+jAgWUtf5lSpVPIM1Nn604UB+8+kcMZwH72OOZ7davZk9tJtVRIsSnvNE9OrEH4KBFbrHbRCqNAG9QZJRZx4JZOWpDpoASo9SQw/gKVmLUOG9GwEgggRIhnxQghb0YAILtB2vjwDQBfAAbBBOgDCDGsrXAsoFuCJEIsjOMrlKUYcQBAlIVIQojHc9ABPGya9gqHNSXCJMDlD3Z3wKAuLiUQC0SEPMzAT4Uy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b76OJVfKzkETa23NlID/Vyyh32eD0HaB0WeEl85A0PlLU3DkD1ZS6cTFwkYYsUIxRhhiJWdFJNo46JigrC/jgoTcZop6gjrqICM/O9k7YngMgA=)format("woff2"),url(./jetbrains-mono-vietnamese-700-normal.BDLVIk2r.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(./jetbrains-mono-latin-ext-700-normal.CZipNAKV.woff2)format("woff2"),url(./jetbrains-mono-latin-ext-700-normal.CxPITLHs.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(./jetbrains-mono-latin-700-normal.BYuf6tUa.woff2)format("woff2"),url(./jetbrains-mono-latin-700-normal.D3wTyLJW.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-cyrillic-ext-400-normal.xuaO2J-f.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-ext-400-normal.DMdlQ8Kv.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-cyrillic-400-normal.BSMlKf0J.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-400-normal.CEL4l2ZJ.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-vietnamese-400-normal.BulugwFq.woff2)format("woff2"),url(./ibm-plex-mono-vietnamese-400-normal.DDuiU_S-.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-latin-ext-400-normal.BmRBH3aV.woff2)format("woff2"),url(./ibm-plex-mono-latin-ext-400-normal.D3D2R8hC.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-latin-400-normal.DMJ8VG8y.woff2)format("woff2"),url(./ibm-plex-mono-latin-400-normal.CvHOgSBP.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-mono-cyrillic-ext-500-normal.BqneJy0T.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-ext-500-normal.BIfNGwUT.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-mono-cyrillic-500-normal.Bq9vWWag.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-500-normal.Ael50iVv.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-mono-vietnamese-500-normal.DZ4AoWbu.woff2)format("woff2"),url(./ibm-plex-mono-vietnamese-500-normal.C8zxqsMH.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-mono-latin-ext-500-normal.CAhNIIs5.woff2)format("woff2"),url(./ibm-plex-mono-latin-ext-500-normal.CZ70TYgx.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-mono-latin-500-normal.DSY6xOcd.woff2)format("woff2"),url(./ibm-plex-mono-latin-500-normal.CB9ihrfo.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-cyrillic-ext-600-normal.V-xxqcpd.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-ext-600-normal.9HEixskS.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-cyrillic-600-normal.CTOM6hUh.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-600-normal.fLZuRloM.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-vietnamese-600-normal.D2EvbN8M.woff2)format("woff2"),url(./ibm-plex-mono-vietnamese-600-normal.iLQfcSjf.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-latin-ext-600-normal.D38SheWl.woff2)format("woff2"),url(./ibm-plex-mono-latin-ext-600-normal.DmB0ttJJ.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-latin-600-normal.BgSNZQsw.woff2)format("woff2"),url(./ibm-plex-mono-latin-600-normal.DWFSQ4vo.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--ink-0:#05070c;--ink-1:#0a0d14;--ink-2:#0f131c;--ink-3:#151a24;--ink-4:#1d2430;--ink-5:#283041;--fg-0:#f4f6fb;--fg-1:#c9d0dd;--fg-2:#8a93a6;--fg-3:#5a6374;--a1:#7c5cff;--a2:#00d4ff;--a3:#ff4d8d;--a4:#ffd166;--ok:#22e0a8;--crit:#ff5a5f;--hair:#00000014;--hair-2:#00000024;--font-display:"JetBrains Mono","IBM Plex Mono",ui-monospace,monospace;--font-mono:"IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;--f-display:var(--font-display);--f-mono:var(--font-mono);--f-body:var(--font-mono);--radius:.625rem;--radius-lg:10px;--max:1240px;--background:oklch(100% 0 0);--foreground:oklch(12.9% .042 264.695);--card:oklch(100% 0 0);--card-foreground:oklch(12.9% .042 264.695);--popover:oklch(100% 0 0);--popover-foreground:oklch(12.9% .042 264.695);--primary:oklch(20.8% .042 265.755);--primary-foreground:oklch(98.4% .003 247.858);--secondary:oklch(96.8% .007 247.896);--secondary-foreground:oklch(20.8% .042 265.755);--muted:oklch(96.8% .007 247.896);--muted-foreground:oklch(55.4% .046 257.417);--accent:oklch(96.8% .007 247.896);--accent-foreground:oklch(20.8% .042 265.755);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.9% .013 255.508);--input:oklch(92.9% .013 255.508);--ring:oklch(70.4% .04 256.788);--chart-1:oklch(70% .15 250);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.4% .003 247.858);--sidebar-foreground:oklch(12.9% .042 264.695);--sidebar-primary:oklch(20.8% .042 265.755);--sidebar-primary-foreground:oklch(98.4% .003 247.858);--sidebar-accent:oklch(70% .15 250);--sidebar-accent-foreground:oklch(98% 0 0);--sidebar-border:oklch(92.9% .013 255.508);--sidebar-ring:oklch(70.4% .04 256.788)}.dark{--hair:#ffffff0f;--hair-2:#ffffff1a;--background:var(--ink-0);--foreground:var(--fg-0);--card:var(--ink-3);--card-foreground:var(--fg-0);--popover:var(--ink-3);--popover-foreground:var(--fg-0);--primary:var(--fg-0);--primary-foreground:var(--ink-0);--secondary:var(--ink-3);--secondary-foreground:var(--fg-0);--muted:var(--ink-2);--muted-foreground:var(--fg-2);--accent:var(--ink-3);--accent-foreground:var(--fg-0);--destructive:var(--crit);--border:var(--hair);--input:var(--hair-2);--ring:var(--a1)}@supports (color:color-mix(in lab,red,red)){.dark{--ring:color-mix(in oklab,var(--a1)70%,transparent)}}.dark{--chart-1:var(--a1);--chart-2:var(--a2);--chart-3:var(--a3);--chart-4:var(--a4);--chart-5:var(--ok);--sidebar:var(--ink-2);--sidebar-foreground:var(--fg-1);--sidebar-primary:var(--a1);--sidebar-primary-foreground:var(--fg-0);--sidebar-accent:var(--ink-3);--sidebar-accent-foreground:var(--fg-0);--sidebar-border:var(--hair);--sidebar-ring:var(--a1)}@supports (color:color-mix(in lab,red,red)){.dark{--sidebar-ring:color-mix(in oklab,var(--a1)70%,transparent)}}[data-sonner-toaster] [data-sonner-toast]{--normal-bg:white;--normal-text:#1a1a1a;--normal-border:#e5e5e5;background:var(--normal-bg);color:var(--normal-text);border-color:var(--normal-border)}[data-sonner-toaster] [data-sonner-toast][data-type=warning],[data-sonner-toaster] [data-sonner-toast][data-type=success],[data-sonner-toaster] [data-sonner-toast][data-type=error],[data-sonner-toaster] [data-sonner-toast][data-type=info]{background:var(--normal-bg);color:var(--normal-text);border-color:var(--normal-border)}.dark [data-sonner-toaster] [data-sonner-toast]{--normal-bg:var(--ink-3);--normal-text:var(--fg-0);--normal-border:var(--hair-2)}.dark [data-sonner-toaster] [data-sonner-toast][data-type=warning],.dark [data-sonner-toaster] [data-sonner-toast][data-type=success],.dark [data-sonner-toaster] [data-sonner-toast][data-type=error],.dark [data-sonner-toaster] [data-sonner-toast][data-type=info]{background:var(--normal-bg);color:var(--normal-text);border-color:var(--normal-border)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}@media(hover:none)and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:#ffffff4d}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY( calc(var(--lift) * var(--offset) + var(--lift) * -100%) );opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media(max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 87%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 93%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 84%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 43%, 17%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 9%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media(prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
diff --git a/backend/static/frontend/_app/immutable/assets/0.W9adI4i9.css b/backend/static/frontend/_app/immutable/assets/0.W9adI4i9.css
deleted file mode 100644
index a7fd3f4b..00000000
--- a/backend/static/frontend/_app/immutable/assets/0.W9adI4i9.css
+++ /dev/null
@@ -1 +0,0 @@
-@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-mono:var(--font-mono);--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-green-950:oklch(26.6% .065 152.934);--color-emerald-600:oklch(59.6% .145 163.225);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-violet-400:oklch(70.2% .183 293.541);--color-violet-600:oklch(54.1% .281 293.009);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-300:oklch(87.2% .01 258.338);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-xs:.125rem;--radius-lg:var(--radius);--radius-2xl:1rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-3xl:64px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-display);--default-mono-font-family:var(--font-mono);--font-display:var(--font-display)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}html{font-family:var(--font-mono)}body{font-family:var(--font-mono);font-feature-settings:"ss01","cv11";-webkit-font-smoothing:antialiased;background-color:var(--background);color:var(--foreground)}html.dark{background:var(--ink-0)}html.dark body{color:var(--fg-1);background:radial-gradient(1200px 700px at 85% -10%,var(--a1),transparent 60%),radial-gradient(900px 600px at -10% 20%,var(--a2),transparent 60%),var(--ink-0)}@supports (color:color-mix(in lab,red,red)){html.dark body{background:radial-gradient(1200px 700px at 85% -10%,color-mix(in oklab,var(--a1)18%,transparent),transparent 60%),radial-gradient(900px 600px at -10% 20%,color-mix(in oklab,var(--a2)10%,transparent),transparent 60%),var(--ink-0)}}h1,h2,h3,h4,h5,h6{font-family:var(--font-display);letter-spacing:-.01em}html.dark h1,html.dark h2,html.dark h3,html.dark h4,html.dark h5,html.dark h6{color:var(--fg-0)}html.dark h1 em,html.dark h2 em{font-style:normal;font-weight:inherit;background:linear-gradient(90deg,var(--a2),var(--a1)60%,var(--a3));color:#0000;-webkit-background-clip:text;background-clip:text}h1 em,h2 em{font-style:normal;font-weight:inherit;color:var(--a1)}}@layer components{.eyebrow{font-family:var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--a2);font-size:11px;font-weight:500;display:inline-block}.eyebrow:before{content:"// ";opacity:.5}.muted-text{color:var(--fg-2)}.dim-text{color:var(--fg-3)}.hair-rule{background:var(--hair);width:100%;height:1px}.surface-card{background:linear-gradient(180deg,var(--ink-3),var(--ink-2));border:1px solid var(--hair);border-radius:var(--radius-lg);padding:22px}.chip{font-family:var(--font-mono);letter-spacing:.04em;color:var(--fg-1);background:var(--ink-3);border:1px solid var(--hair);border-radius:999px;align-items:center;gap:6px;padding:4px 8px;font-size:11px;display:inline-flex}.chip .dot{background:var(--a2);width:6px;height:6px;box-shadow:0 0 8px var(--a2);border-radius:50%;flex-shrink:0}.chip.ok .dot{background:var(--ok);box-shadow:0 0 8px var(--ok)}.chip.crit .dot{background:var(--crit);box-shadow:0 0 8px var(--crit)}.btn-traceway{border-radius:var(--radius);font-family:var(--font-display);letter-spacing:-.01em;white-space:nowrap;cursor:pointer;border:1px solid #0000;align-items:center;gap:8px;padding:12px 18px;font-size:14px;font-weight:500;transition:background .15s,border-color .15s,color .15s;display:inline-flex}.btn-traceway.primary{background:var(--fg-0);color:var(--ink-0);box-shadow:inset 0 1px #fff9,0 0 0 1px #ffffff1f}.btn-traceway.accent{background:linear-gradient(180deg,var(--a1),var(--a1))}@supports (color:color-mix(in lab,red,red)){.btn-traceway.accent{background:linear-gradient(180deg,color-mix(in oklab,var(--a1)100%,white 12%),var(--a1))}}.btn-traceway.accent{color:#0a0612;box-shadow:0 10px 30px -12px var(--a1),0 0 0 1px var(--a1)}@supports (color:color-mix(in lab,red,red)){.btn-traceway.accent{box-shadow:0 10px 30px -12px color-mix(in oklab,var(--a1)80%,transparent),0 0 0 1px color-mix(in oklab,var(--a1)40%,transparent)}}.btn-traceway.accent:hover{background:linear-gradient(180deg,var(--a1),var(--a1))}@supports (color:color-mix(in lab,red,red)){.btn-traceway.accent:hover{background:linear-gradient(180deg,color-mix(in oklab,var(--a1)100%,white 18%),var(--a1))}}.btn-traceway.ghost{border-color:var(--hair-2);color:var(--fg-0);background:0 0}.btn-traceway.ghost:hover{background:var(--ink-3)}}@layer utilities{.\@container\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.start-0{inset-inline-start:calc(var(--spacing)*0)}.start-2{inset-inline-start:calc(var(--spacing)*2)}.end-0{inset-inline-end:calc(var(--spacing)*0)}.end-1{inset-inline-end:calc(var(--spacing)*1)}.end-2{inset-inline-end:calc(var(--spacing)*2)}.end-3{inset-inline-end:calc(var(--spacing)*3)}.end-4{inset-inline-end:calc(var(--spacing)*4)}.-top-5{top:calc(var(--spacing)*-5)}.top-0{top:calc(var(--spacing)*0)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-3\.5{top:calc(var(--spacing)*3.5)}.top-4{top:calc(var(--spacing)*4)}.top-\[1px\]{top:1px}.top-\[28px\]{top:28px}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-7{right:calc(var(--spacing)*7)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.col-span-3{grid-column:span 3/span 3}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-3\.5{margin-inline:calc(var(--spacing)*3.5)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.my-2{margin-block:calc(var(--spacing)*2)}.ms-auto{margin-inline-start:auto}.-mt-2{margin-top:calc(var(--spacing)*-2)}.mt-0{margin-top:calc(var(--spacing)*0)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-auto{margin-top:auto}.-mr-1{margin-right:calc(var(--spacing)*-1)}.mr-0\.5{margin-right:calc(var(--spacing)*.5)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.-mb-4{margin-bottom:calc(var(--spacing)*-4)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.-ml-3{margin-left:calc(var(--spacing)*-3)}.ml-0\.5{margin-left:calc(var(--spacing)*.5)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-6{margin-left:calc(var(--spacing)*6)}.ml-9{margin-left:calc(var(--spacing)*9)}.ml-16{margin-left:calc(var(--spacing)*16)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-row{display:table-row}.aspect-square{aspect-ratio:1}.size-\(--cell-size\){width:var(--cell-size);height:var(--cell-size)}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-full{width:100%;height:100%}.h-\(--bits-select-anchor-height\){height:var(--bits-select-anchor-height)}.h-\(--cell-size\){height:var(--cell-size)}.h-0{height:calc(var(--spacing)*0)}.h-2{height:calc(var(--spacing)*2)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-18{height:calc(var(--spacing)*18)}.h-24{height:calc(var(--spacing)*24)}.h-45{height:calc(var(--spacing)*45)}.h-48{height:calc(var(--spacing)*48)}.h-64{height:calc(var(--spacing)*64)}.h-\[1px\]{height:1px}.h-\[220px\]{height:220px}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.h-svh{height:100svh}.max-h-\(--bits-dropdown-menu-content-available-height\){max-height:var(--bits-dropdown-menu-content-available-height)}.max-h-\(--bits-select-content-available-height\){max-height:var(--bits-select-content-available-height)}.max-h-32{max-height:calc(var(--spacing)*32)}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-64{max-height:calc(var(--spacing)*64)}.max-h-72{max-height:calc(var(--spacing)*72)}.max-h-96{max-height:calc(var(--spacing)*96)}.max-h-\[85vh\]{max-height:85vh}.max-h-\[200px\]{max-height:200px}.max-h-\[300px\]{max-height:300px}.max-h-\[440px\]{max-height:440px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.min-h-8{min-height:calc(var(--spacing)*8)}.min-h-\[200px\]{min-height:200px}.min-h-\[240px\]{min-height:240px}.min-h-screen{min-height:100vh}.min-h-svh{min-height:100svh}.w-\(--cell-size\){width:var(--cell-size)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-0{width:calc(var(--spacing)*0)}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-16{width:calc(var(--spacing)*16)}.w-18{width:calc(var(--spacing)*18)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-44{width:calc(var(--spacing)*44)}.w-56{width:calc(var(--spacing)*56)}.w-72{width:calc(var(--spacing)*72)}.w-80{width:calc(var(--spacing)*80)}.w-\[20px\]{width:20px}.w-\[40px\]{width:40px}.w-\[60px\]{width:60px}.w-\[70px\]{width:70px}.w-\[80px\]{width:80px}.w-\[90px\]{width:90px}.w-\[100\%\]{width:100%}.w-\[100px\]{width:100px}.w-\[110px\]{width:110px}.w-\[120px\]{width:120px}.w-\[130px\]{width:130px}.w-\[140px\]{width:140px}.w-\[160px\]{width:160px}.w-\[180px\]{width:180px}.w-\[190px\]{width:190px}.w-\[200px\]{width:200px}.w-\[220px\]{width:220px}.w-\[250px\]{width:250px}.w-\[280px\]{width:280px}.w-\[350px\]{width:350px}.w-\[400px\]{width:400px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-\[4px\]{max-width:4px}.max-w-\[50\%\]{max-width:50%}.max-w-\[80px\]{max-width:80px}.max-w-\[120px\]{max-width:120px}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[220px\]{max-width:220px}.max-w-\[300px\]{max-width:300px}.max-w-\[400px\]{max-width:400px}.max-w-\[500px\]{max-width:500px}.max-w-\[600px\]{max-width:600px}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.max-w-xs{max-width:var(--container-xs)}.min-w-\(--bits-select-anchor-width\){min-width:var(--bits-select-anchor-width)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[200px\]{min-width:200px}.min-w-\[280px\]{min-width:280px}.min-w-\[380px\]{min-width:380px}.flex-1{flex:1}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\(--bits-dropdown-menu-content-transform-origin\){transform-origin:var(--bits-dropdown-menu-content-transform-origin)}.origin-\(--bits-popover-content-transform-origin\){transform-origin:var(--bits-popover-content-transform-origin)}.origin-\(--bits-select-content-transform-origin\){transform-origin:var(--bits-select-content-transform-origin)}.origin-\(--bits-tooltip-content-transform-origin\){transform-origin:var(--bits-tooltip-content-transform-origin)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full{--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-150{--tw-scale-x:150%;--tw-scale-y:150%;--tw-scale-z:150%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-45{rotate:45deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.\!animate-none{animation:none!important}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.appearance-none{appearance:none}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.justify-items-start{justify-items:start}.gap-0{gap:calc(var(--spacing)*0)}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-\[1px\]{gap:1px}.gap-\[3px\]{gap:3px}:where(.space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-4{column-gap:calc(var(--spacing)*4)}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-6>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*6)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-0\.5{row-gap:calc(var(--spacing)*.5)}.gap-y-1{row-gap:calc(var(--spacing)*1)}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[1px\]{border-radius:1px}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 6px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-l-2{border-left-style:var(--tw-border-style);border-left-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-200{border-color:var(--color-amber-200)}.border-blue-200{border-color:var(--color-blue-200)}.border-border,.border-border\/50{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)}}.border-destructive,.border-destructive\/20{border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.border-destructive\/20{border-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.border-gray-300{border-color:var(--color-gray-300)}.border-green-200{border-color:var(--color-green-200)}.border-hair-2{border-color:var(--hair-2)}.border-input{border-color:var(--input)}.border-muted-foreground\/25{border-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.border-muted-foreground\/25{border-color:color-mix(in oklab,var(--muted-foreground)25%,transparent)}}.border-muted-foreground\/40{border-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.border-muted-foreground\/40{border-color:color-mix(in oklab,var(--muted-foreground)40%,transparent)}}.border-primary,.border-primary\/40{border-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.border-primary\/40{border-color:color-mix(in oklab,var(--primary)40%,transparent)}}.border-red-200{border-color:var(--color-red-200)}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500)30%,transparent)}}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.border-yellow-200{border-color:var(--color-yellow-200)}.border-s-transparent{border-inline-start-color:#0000}.border-t-transparent{border-top-color:#0000}.border-l-primary{border-left-color:var(--primary)}.\!bg-background{background-color:var(--background)!important}.bg-\[\#f5f5f5\]{background-color:#f5f5f5}.bg-accent{background-color:var(--accent)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/10{background-color:color-mix(in oklab,var(--color-amber-500)10%,transparent)}}.bg-amber-500\/15{background-color:#f99c0026}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/15{background-color:color-mix(in oklab,var(--color-amber-500)15%,transparent)}}.bg-background{background-color:var(--background)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-blue-500\/15{background-color:#3080ff26}@supports (color:color-mix(in lab,red,red)){.bg-blue-500\/15{background-color:color-mix(in oklab,var(--color-blue-500)15%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-chart-1\/10{background-color:var(--chart-1)}@supports (color:color-mix(in lab,red,red)){.bg-chart-1\/10{background-color:color-mix(in oklab,var(--chart-1)10%,transparent)}}.bg-cyan-400{background-color:var(--color-cyan-400)}.bg-destructive,.bg-destructive\/10{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.bg-destructive\/10{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-foreground{background-color:var(--foreground)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-400{background-color:var(--color-green-400)}.bg-green-500\/15{background-color:#00c75826}@supports (color:color-mix(in lab,red,red)){.bg-green-500\/15{background-color:color-mix(in oklab,var(--color-green-500)15%,transparent)}}.bg-green-600{background-color:var(--color-green-600)}.bg-indigo-400{background-color:var(--color-indigo-400)}.bg-lime-400{background-color:var(--color-lime-400)}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/25{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/25{background-color:color-mix(in oklab,var(--muted-foreground)25%,transparent)}}.bg-muted-foreground\/50{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.bg-muted-foreground\/50{background-color:color-mix(in oklab,var(--muted-foreground)50%,transparent)}}.bg-muted\/30{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/30{background-color:color-mix(in oklab,var(--muted)30%,transparent)}}.bg-muted\/40{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/40{background-color:color-mix(in oklab,var(--muted)40%,transparent)}}.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-orange-400{background-color:var(--color-orange-400)}.bg-orange-500\/15{background-color:#fe6e0026}@supports (color:color-mix(in lab,red,red)){.bg-orange-500\/15{background-color:color-mix(in oklab,var(--color-orange-500)15%,transparent)}}.bg-pink-400{background-color:var(--color-pink-400)}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/10{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/10{background-color:color-mix(in oklab,var(--primary)10%,transparent)}}.bg-primary\/20{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/20{background-color:color-mix(in oklab,var(--primary)20%,transparent)}}.bg-purple-400{background-color:var(--color-purple-400)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/5{background-color:#fb2c360d}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/5{background-color:color-mix(in oklab,var(--color-red-500)5%,transparent)}}.bg-red-500\/15{background-color:#fb2c3626}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/15{background-color:color-mix(in oklab,var(--color-red-500)15%,transparent)}}.bg-red-700\/25{background-color:#bf000f40}@supports (color:color-mix(in lab,red,red)){.bg-red-700\/25{background-color:color-mix(in oklab,var(--color-red-700)25%,transparent)}}.bg-rose-400{background-color:var(--color-rose-400)}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-sky-400{background-color:var(--color-sky-400)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-500\/15{background-color:#62748e26}@supports (color:color-mix(in lab,red,red)){.bg-slate-500\/15{background-color:color-mix(in oklab,var(--color-slate-500)15%,transparent)}}.bg-teal-400{background-color:var(--color-teal-400)}.bg-transparent{background-color:#0000}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500)10%,transparent)}}.bg-yellow-500\/15{background-color:#edb20026}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\/15{background-color:color-mix(in oklab,var(--color-yellow-500)15%,transparent)}}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-amber-500{--tw-gradient-from:var(--color-amber-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-muted\/80{--tw-gradient-from:var(--muted)}@supports (color:color-mix(in lab,red,red)){.from-muted\/80{--tw-gradient-from:color-mix(in oklab,var(--muted)80%,transparent)}}.from-muted\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-500{--tw-gradient-from:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-red-500{--tw-gradient-from:var(--color-red-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-orange-500{--tw-gradient-via:var(--color-orange-500);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-pink-500{--tw-gradient-via:var(--color-pink-500);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-muted{--tw-gradient-to:var(--muted);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-red-500{--tw-gradient-to:var(--color-red-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-yellow-500{--tw-gradient-to:var(--color-yellow-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-clip-padding{background-clip:padding-box}.fill-current{fill:currentColor}.fill-yellow-500{fill:var(--color-yellow-500)}.object-contain{object-fit:contain}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-px{padding:1px}.px-\(--cell-size\){padding-inline:var(--cell-size)}.px-0{padding-inline:calc(var(--spacing)*0)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0{padding-block:calc(var(--spacing)*0)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-12{padding-block:calc(var(--spacing)*12)}.py-16{padding-block:calc(var(--spacing)*16)}.py-20{padding-block:calc(var(--spacing)*20)}.ps-2{padding-inline-start:calc(var(--spacing)*2)}.ps-8{padding-inline-start:calc(var(--spacing)*8)}.pe-1{padding-inline-end:calc(var(--spacing)*1)}.pe-2{padding-inline-end:calc(var(--spacing)*2)}.pe-8{padding-inline-end:calc(var(--spacing)*8)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-1\.5{padding-top:calc(var(--spacing)*1.5)}.pt-2{padding-top:calc(var(--spacing)*2)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-6{padding-right:calc(var(--spacing)*6)}.pb-0{padding-bottom:calc(var(--spacing)*0)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-6{padding-bottom:calc(var(--spacing)*6)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-6{padding-left:calc(var(--spacing)*6)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-\[400\]{--tw-font-weight:400;font-weight:400}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-background,.text-background\/70{color:var(--background)}@supports (color:color-mix(in lab,red,red)){.text-background\/70{color:color-mix(in oklab,var(--background)70%,transparent)}}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-blue-900{color:var(--color-blue-900)}.text-border{color:var(--border)}.text-card-foreground{color:var(--card-foreground)}.text-chart-1{color:var(--chart-1)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-muted-foreground,.text-muted-foreground\/60{color:var(--muted-foreground)}@supports (color:color-mix(in lab,red,red)){.text-muted-foreground\/60{color:color-mix(in oklab,var(--muted-foreground)60%,transparent)}}.text-orange-600{color:var(--color-orange-600)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-500{color:var(--color-purple-500)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground)70%,transparent)}}.text-sky-600{color:var(--color-sky-600)}.text-slate-600{color:var(--color-slate-600)}.text-transparent{color:#0000}.text-violet-600{color:var(--color-violet-600)}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-\[0_0_0_1px_var\(--sidebar-border\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--sidebar-border));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_20px_60px_-20px_rgba\(0\,0\,0\,0\.7\)\,0_0_0_1px_rgba\(255\,255\,255\,0\.03\)\]{--tw-shadow:0 20px 60px -20px var(--tw-shadow-color,#000000b3),0 0 0 1px var(--tw-shadow-color,#ffffff08);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[none\]{--tw-shadow:none;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-amber-500{--tw-ring-color:var(--color-amber-500)}.ring-blue-500{--tw-ring-color:var(--color-blue-500)}.ring-blue-700\/10{--tw-ring-color:#1447e61a}@supports (color:color-mix(in lab,red,red)){.ring-blue-700\/10{--tw-ring-color:color-mix(in oklab,var(--color-blue-700)10%,transparent)}}.ring-cyan-500{--tw-ring-color:var(--color-cyan-500)}.ring-green-500{--tw-ring-color:var(--color-green-500)}.ring-indigo-500{--tw-ring-color:var(--color-indigo-500)}.ring-lime-500{--tw-ring-color:var(--color-lime-500)}.ring-orange-500{--tw-ring-color:var(--color-orange-500)}.ring-pink-500{--tw-ring-color:var(--color-pink-500)}.ring-purple-500{--tw-ring-color:var(--color-purple-500)}.ring-red-500{--tw-ring-color:var(--color-red-500)}.ring-ring,.ring-ring\/10{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.ring-ring\/10{--tw-ring-color:color-mix(in oklab,var(--ring)10%,transparent)}}.ring-rose-500{--tw-ring-color:var(--color-rose-500)}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.ring-sky-500{--tw-ring-color:var(--color-sky-500)}.ring-slate-500{--tw-ring-color:var(--color-slate-500)}.ring-teal-500{--tw-ring-color:var(--color-teal-500)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-ring\/50{outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.outline-ring\/50{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}.blur-3xl{--tw-blur:blur(var(--blur-3xl));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,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.\!transition-none{transition-property:none!important}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.select-text{-webkit-user-select:text;user-select:text}.zoom-in-95{--tw-enter-scale:.95}.\[--cell-size\:--spacing\(8\)\]{--cell-size:calc(var(--spacing)*8)}.fade-in{--tw-enter-opacity:0}.ring-inset{--tw-ring-inset:inset}.running{animation-play-state:running}.slide-in-from-top-1{--tw-enter-translate-y:calc(1*var(--spacing)*-1)}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media(hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *),.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pe-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-inline-end:calc(var(--spacing)*8)}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing)*-8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing)*8)!important;height:calc(var(--spacing)*8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing)*4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offcanvas\]\:start-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){inset-inline-start:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:end-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){inset-inline-end:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible=offcanvas] *){width:calc(var(--spacing)*0)}.group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.group-data-\[side\=left\]\:-end-4:is(:where(.group)[data-side=left] *){inset-inline-end:calc(var(--spacing)*-4)}.group-data-\[side\=left\]\:border-e:is(:where(.group)[data-side=left] *){border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.group-data-\[side\=right\]\:start-0:is(:where(.group)[data-side=right] *){inset-inline-start:calc(var(--spacing)*0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-s:is(:where(.group)[data-side=right] *){border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:var(--radius)}.group-data-\[variant\=floating\]\:border:is(:where(.group)[data-variant=floating] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[variant\=floating\]\:border-sidebar-border:is(:where(.group)[data-variant=floating] *){border-color:var(--sidebar-border)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing)*1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing)*2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing)*1)}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing)*-2)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing)*0)}.after\:start-\[calc\(1\/2\*100\%-1px\)\]:after{content:var(--tw-content);inset-inline-start:calc(50% - 1px)}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.group-data-\[collapsible\=offcanvas\]\:after\:start-full:is(:where(.group)[data-collapsible=offcanvas] *):after{content:var(--tw-content);inset-inline-start:100%}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.focus-within\:z-20:focus-within{z-index:20}@media(hover:hover){.hover\:border-foreground\/40:hover{border-color:var(--foreground)}@supports (color:color-mix(in lab,red,red)){.hover\:border-foreground\/40:hover{border-color:color-mix(in oklab,var(--foreground)40%,transparent)}}.hover\:border-primary:hover{border-color:var(--primary)}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-blue-500:hover{background-color:var(--color-blue-500)}.hover\:bg-destructive\/10:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/10:hover{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-emerald-600\/90:hover{background-color:#009767e6}@supports (color:color-mix(in lab,red,red)){.hover\:bg-emerald-600\/90:hover{background-color:color-mix(in oklab,var(--color-emerald-600)90%,transparent)}}.hover\:bg-muted:hover,.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:bg-transparent:hover{background-color:#0000}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-primary:hover{color:var(--primary)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:text-yellow-600:hover{color:var(--color-yellow-600)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_var\(--sidebar-border\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,var(--sidebar-border));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offcanvas] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:relative:focus{position:relative}.focus\:border-ring:focus{border-color:var(--ring)}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus,.focus\:ring-ring\/50:focus{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus\:ring-ring\/50:focus{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:border-r:focus-visible{border-right-style:var(--tw-border-style);border-right-width:1px}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:border-sidebar-accent:focus-visible{border-color:var(--sidebar-accent)}.focus-visible\:ring-0:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[2px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-emerald-600\/20:focus-visible{--tw-ring-color:#00976733}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-emerald-600\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-emerald-600)20%,transparent)}}.focus-visible\:ring-ring:focus-visible,.focus-visible\:ring-ring\/40:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/40:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)40%,transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus-visible\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}.has-focus\:border-ring:has(:focus){border-color:var(--ring)}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){grid-template-columns:calc(var(--spacing)*4)1fr}.has-\[\>svg\]\:gap-x-3:has(>svg){column-gap:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/40[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.data-highlighted\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-highlighted\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}@media(hover:hover){.data-\[active\=false\]\:hover\:bg-gray-100[data-active=false]:hover{background-color:var(--color-gray-100)}}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--sidebar-accent-foreground)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:text-muted-foreground[data-disabled]{color:var(--muted-foreground)}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[highlighted\]\:bg-accent[data-highlighted]{background-color:var(--accent)}.data-\[highlighted\]\:text-accent-foreground[data-highlighted]{color:var(--accent-foreground)}.data-\[inset\]\:ps-8[data-inset]{padding-inline-start:calc(var(--spacing)*8)}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[selected\]\:bg-primary[data-selected]{background-color:var(--primary)}.data-\[selected\]\:text-primary-foreground[data-selected]{color:var(--primary-foreground)}.data-\[side\=bottom\]\:-translate-x-1\/2[data-side=bottom]{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:-translate-y-\[calc\(50\%_-_2px\)\][data-side=bottom]{--tw-translate-y: calc((50% - 2px)*-1) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:rotate-225[data-side=bottom]{rotate:225deg}.data-\[side\=bottom\]\:border-t[data-side=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[side\=bottom\]\:border-l[data-side=bottom]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:-translate-y-\[calc\(50\%_-_3px\)\][data-side=left]{--tw-translate-y: calc((50% - 3px)*-1) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:border-r[data-side=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=left\]\:border-b[data-side=left]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=left\]\:slide-in-from-end-2[data-side=left]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:translate-x-\[calc\(50\%_\+_2px\)\][data-side=right]{--tw-translate-x: calc(50% + 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:translate-y-1\/2[data-side=right]{--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:border-r[data-side=right]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=right\]\:border-b[data-side=right]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(ltr),[dir=ltr]){--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=right\]\:slide-in-from-start-2[data-side=right]:where(:dir(rtl),[dir=rtl]){--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=top\]\:translate-x-1\/2[data-side=top]{--tw-translate-x: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:translate-y-\[calc\(-50\%_\+_3px\)\][data-side=top]{--tw-translate-y: calc(-50% + 3px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:border-r[data-side=top]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[side\=top\]\:border-b[data-side=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:color-mix(in oklab,var(--destructive)90%,transparent)}}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\[state\=active\]\:border-primary[data-state=active]{border-color:var(--primary)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:bg-transparent[data-state=active]{background-color:#0000}.data-\[state\=active\]\:text-foreground[data-state=active]{color:var(--foreground)}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=active\]\:shadow-none[data-state=active]{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:slide-out-to-end[data-state=closed]:dir(ltr){--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-end[data-state=closed]:dir(rtl){--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-start[data-state=closed]:dir(ltr){--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-start[data-state=closed]:dir(rtl){--tw-exit-translate-x:100%}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.data-\[state\=indeterminate\]\:border-primary[data-state=indeterminate]{border-color:var(--primary)}.data-\[state\=indeterminate\]\:bg-primary[data-state=indeterminate]{background-color:var(--primary)}.data-\[state\=indeterminate\]\:text-primary-foreground[data-state=indeterminate]{color:var(--primary-foreground)}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:border-ring\/60[data-state=open]{border-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:border-ring\/60[data-state=open]{border-color:color-mix(in oklab,var(--ring)60%,transparent)}}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:var(--accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:slide-in-from-end[data-state=open]:dir(ltr){--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-end[data-state=open]:dir(rtl){--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-start[data-state=open]:dir(ltr){--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-start[data-state=open]:dir(rtl){--tw-enter-translate-x:100%}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}@media(hover:hover){.data-\[state\=open\]\:data-\[active\=false\]\:hover\:bg-gray-100[data-state=open][data-active=false]:hover{background-color:var(--color-gray-100)}}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[unavailable\]\:text-muted-foreground[data-unavailable]{color:var(--muted-foreground)}.data-\[unavailable\]\:line-through[data-unavailable]{text-decoration-line:line-through}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/10[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:data-highlighted\:text-destructive[data-variant=destructive][data-highlighted]{color:var(--destructive)}@media(min-width:40rem){.sm\:col-span-2{grid-column:span 2/span 2}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-\[540px\]{width:540px}.sm\:w-auto{width:auto}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:justify-end{justify-content:flex-end}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:ps-2\.5{padding-inline-start:calc(var(--spacing)*2.5)}.sm\:pe-2\.5{padding-inline-end:calc(var(--spacing)*2.5)}.sm\:text-left{text-align:left}}@media(min-width:48rem){.md\:col-span-3{grid-column:span 3/span 3}.md\:block{display:block}.md\:flex{display:flex}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing)*2)}.md\:peer-data-\[variant\=inset\]\:ms-0:is(:where(.peer)[data-variant=inset]~*){margin-inline-start:calc(var(--spacing)*0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ms-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-inline-start:calc(var(--spacing)*2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}@media(min-width:64rem){.lg\:w-\[320px\]{width:320px}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}:where(.lg\:space-x-8>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*8)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-x-reverse)))}}@media(min-width:80rem){.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}.rtl\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *){rotate:180deg}.dark\:border-amber-800:is(.dark *){border-color:var(--color-amber-800)}.dark\:border-blue-800:is(.dark *){border-color:var(--color-blue-800)}.dark\:border-destructive\/60:is(.dark *){border-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:border-destructive\/60:is(.dark *){border-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:border-green-900:is(.dark *){border-color:var(--color-green-900)}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:border-white:is(.dark *){border-color:var(--color-white)}.dark\:bg-amber-950\/50:is(.dark *){background-color:#46190180}@supports (color:color-mix(in lab,red,red)){.dark\:bg-amber-950\/50:is(.dark *){background-color:color-mix(in oklab,var(--color-amber-950)50%,transparent)}}.dark\:bg-blue-900\/30:is(.dark *){background-color:#1c398e4d}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-900\/30:is(.dark *){background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\:bg-blue-950\/50:is(.dark *){background-color:#16245680}@supports (color:color-mix(in lab,red,red)){.dark\:bg-blue-950\/50:is(.dark *){background-color:color-mix(in oklab,var(--color-blue-950)50%,transparent)}}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-destructive\/70:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/70:is(.dark *){background-color:color-mix(in oklab,var(--destructive)70%,transparent)}}.dark\:bg-emerald-600\/60:is(.dark *){background-color:#00976799}@supports (color:color-mix(in lab,red,red)){.dark\:bg-emerald-600\/60:is(.dark *){background-color:color-mix(in oklab,var(--color-emerald-600)60%,transparent)}}.dark\:bg-green-950:is(.dark *){background-color:var(--color-green-950)}.dark\:bg-ink-2:is(.dark *){background-color:var(--ink-2)}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:text-amber-200:is(.dark *){color:var(--color-amber-200)}.dark\:text-amber-300:is(.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:is(.dark *){color:var(--color-amber-400)}.dark\:text-blue-200:is(.dark *){color:var(--color-blue-200)}.dark\:text-blue-300:is(.dark *){color:var(--color-blue-300)}.dark\:text-blue-400:is(.dark *){color:var(--color-blue-400)}.dark\:text-destructive\/90:is(.dark *){color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:text-destructive\/90:is(.dark *){color:color-mix(in oklab,var(--destructive)90%,transparent)}}.dark\:text-green-400:is(.dark *){color:var(--color-green-400)}.dark\:text-orange-400:is(.dark *){color:var(--color-orange-400)}.dark\:text-red-300:is(.dark *){color:var(--color-red-300)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-sky-400:is(.dark *){color:var(--color-sky-400)}.dark\:text-slate-300:is(.dark *){color:var(--color-slate-300)}.dark\:text-violet-400:is(.dark *){color:var(--color-violet-400)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:text-yellow-400:is(.dark *){color:var(--color-yellow-400)}.dark\:text-yellow-500:is(.dark *){color:var(--color-yellow-500)}.dark\:ring-blue-400\/30:is(.dark *){--tw-ring-color:#54a2ff4d}@supports (color:color-mix(in lab,red,red)){.dark\:ring-blue-400\/30:is(.dark *){--tw-ring-color:color-mix(in oklab,var(--color-blue-400)30%,transparent)}}.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.dark\:ring-ring\/20:is(.dark *){--tw-ring-color:color-mix(in oklab,var(--ring)20%,transparent)}}.dark\:outline-ring\/40:is(.dark *){outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.dark\:outline-ring\/40:is(.dark *){outline-color:color-mix(in oklab,var(--ring)40%,transparent)}}@media(hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:hover\:bg-destructive\/20:is(.dark *):hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-destructive\/20:is(.dark *):hover{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}.dark\:hover\:text-accent-foreground:is(.dark *):hover{color:var(--accent-foreground)}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:focus-visible\:ring-emerald-600\/40:is(.dark *):focus-visible{--tw-ring-color:#00976766}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-emerald-600\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-emerald-600)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}@media(hover:hover){.dark\:data-\[active\=false\]\:hover\:bg-white\/10:is(.dark *)[data-active=false]:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[active\=false\]\:hover\:bg-white\/10:is(.dark *)[data-active=false]:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\:data-\[selected\]\:hover\:bg-accent\/50:is(.dark *)[data-selected]:hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[selected\]\:hover\:bg-accent\/50:is(.dark *)[data-selected]:hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:data-\[state\=open\]\:data-\[active\=false\]\:hover\:bg-white\/10:is(.dark *)[data-state=open][data-active=false]:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[state\=open\]\:data-\[active\=false\]\:hover\:bg-white\/10:is(.dark *)[data-state=open][data-active=false]:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}}.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:data-highlighted\:bg-destructive\/20:is(.dark *)[data-variant=destructive][data-highlighted]{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:\:-webkit-calendar-picker-indicator\]\:hidden::-webkit-calendar-picker-indicator{display:none}.\[\&\:\:-webkit-calendar-picker-indicator\]\:appearance-none::-webkit-calendar-picker-indicator{appearance:none}.\[\&\:first-child\[data-selected\]_\[data-bits-day\]\]\:rounded-s-md:first-child[data-selected] [data-bits-day]{border-start-start-radius:calc(var(--radius) - 2px);border-end-start-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pe-0:has([role=checkbox]){padding-inline-end:calc(var(--spacing)*0)}.\[\.border-b\]\:pb-2.border-b{padding-bottom:calc(var(--spacing)*2)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\:last-child\[data-selected\]_\[data-bits-day\]\]\:rounded-e-md:last-child[data-selected] [data-bits-day]{border-start-end-radius:calc(var(--radius) - 2px);border-end-end-radius:calc(var(--radius) - 2px)}.\[\&\:not\(\:first-child\)\]\:mt-1:not(:first-child){margin-top:calc(var(--spacing)*1)}.\[\&\:not\(\:first-child\)\]\:border-t:not(:first-child){border-top-style:var(--tw-border-style);border-top-width:1px}.\[\&\:not\(\:first-child\)\]\:border-hair:not(:first-child){border-color:var(--hair)}.\[\&\:not\(\:first-child\)\]\:pt-1:not(:first-child){padding-top:calc(var(--spacing)*1)}.\[\&\>button\]\:hidden>button{display:none}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:translate-y-0\.5>svg{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>svg\]\:text-current>svg{color:currentColor}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--muted-foreground)}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}@media(hover:hover){.hover\:\[\&\>td\]\:bg-muted\/50:hover>td{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:\[\&\>td\]\:bg-muted\/50:hover>td{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>td\]\:bg-muted\/50:hover>svelte-css-wrapper)>td{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){:is(.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>td\]\:bg-muted\/50:hover,.hover\:\[\&\,\&\>svelte-css-wrapper\]\:\[\&\>td\]\:bg-muted\/50:hover>svelte-css-wrapper)>td{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\[\&\[data-outside-month\]\:not\(\[data-selected\]\)\]\:text-muted-foreground[data-outside-month]:not([data-selected]){color:var(--muted-foreground)}@media(hover:hover){.\[\&\[data-outside-month\]\:not\(\[data-selected\]\)\]\:hover\:text-accent-foreground[data-outside-month]:not([data-selected]):hover{color:var(--accent-foreground)}}.\[\&\[data-today\]\:not\(\[data-selected\]\)\]\:bg-accent[data-today]:not([data-selected]){background-color:var(--accent)}.\[\&\[data-today\]\:not\(\[data-selected\]\)\]\:text-accent-foreground[data-today]:not([data-selected]){color:var(--accent-foreground)}.\[\&\[data-today\]\[data-disabled\]\]\:text-muted-foreground[data-today][data-disabled]{color:var(--muted-foreground)}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-end-2{inset-inline-end:calc(var(--spacing)*-2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-start-2{inset-inline-start:calc(var(--spacing)*-2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}@media(hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAASIABAAAAAACQQAAAQuAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVF4AdBEICoRkhAALIAABNgIkAzoEIAWFAAeBFAwHG2oH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3MGQx7CFgQ3MQwBmBiYALRoB+HjajJADbgVQEEXPZ20bQW3bthvXbr8Vp4to1KV0AV1Wb9JvZzJvzhvcB6CQL0wYzHnAj6E/yAYaDeVBNlJsMAfZxCy/QTbTy3eQLdTzGWQr3VwGuZhx2v/ZAIVUB9kc0TSUKJ8f5FIRHGPjnWs+2MKt+MYzt1xwr/jIk3JymR0X0wzIXKo7VbXjFvfLn3lTtCn7qPoB6+yyzb3qy8pdq/6hrj11fMj7OFbtEY+mrlU/516rVFCdVobplw/JEjVaCaqIYlUiUzOaW9aa/Q1idmlPXZHbCagW/B10XwaRi06VuVdMf+9DnIov6rlF8yzhUXxC/4c66Uz48UepqEN9N/Tzt2RwjOljsUUfj581AbaEXsIAAHjaY2BiAIP/qQxGQIqRAR3wA7EKw0lGJgYbRmZGFkZWRjZGdgZmRg5GTkYuRm42x6Si1LJU9tK8TAMTR1cI7WoB5btB+Zas6Ym5uYlgnoGjAZNzEF9icmlJanJ+bpJecmJxKg9IxtjADMwBAKDtHJg=)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-400-normal.BEIGL1Tu.woff2)format("woff2"),url(./jetbrains-mono-cyrillic-400-normal.ugxPyKxw.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-greek-400-normal.C190GLew.woff2)format("woff2"),url(./jetbrains-mono-greek-400-normal.B9oWc5Lo.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA9UABAAAAAALMAAAA7zAAEAAAAAAAAAAAAAA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bk49b4mBNm3JsEV+85YtKUHWb5rT5ywap9WpUZtWo6q5Fot8W89a0m4OaXOK2Ywat2KaD3NdRi1S/+eloldCT0fn1K5q61Mpa6eaNrKMB6WMQqn83IfXmTNv1eIRiaKj7aOsikMmoxej+EfqsmjOpFHDLnneylGLQxT66vnHnh/n12VXDN1Hw6/bcNpctWo3vrwApZvfrdEDiP8IzgPkeiYUoQlzDvYWB0cnZ6uLq5t7+aRk5I6TIFGS5IqkSJWWXjqFDEqZVLJky5FrG7W8quQrUEijSLESWtsz0tErVVa9chUqValmUMNoh1omZjxSM4s69Ro0atKspTe1smrLpl2HTl262dg5OLm4eezMw6tHrz79BgzyGarXsBGjxqJtJvhNmjJtxqw58xYsWrJsxS4Bu61aE7THXvvsFxJ2wEERhxx2xFHHrIs6fuE/r+1vm6/8jhhtDCwnASDGR1h4SGhYwEGU1Y/Xffk5G4u9XgIAYtxyGpZ5y9sDdNbyP142W5DgAhoE7i3q0c5x2vm9v24aZuNohdcxqSEAz8up00My03HSwmqPa8bMecG3Tjzb+f9EelEtg2vpzPeiIEEBwSA8IEDBwAE9F5Z6vQIQjAnLGTgWLO+uZTL/qwGEAYOAQpg3TefgwBCQgBDzqukKDBAOoU3KVtqIbBXK9XpEAAujuudkZN724kIGmrtVaS38ZZLrS9/4fsKMQhN3yXK5gvSBvJ2Y9/Nydbcvb0bm58+e3FhmGfGLJ9u7axl1F1LQTbaCeyrbu7wFCsorFgV4qnh+GUrWtaczqkSBB96AEeKRB94k2SyLuyw3qwrxeg3P5FNR1Av1Gsq2/ds6dPPkBAAA)format("woff2"),url(./jetbrains-mono-vietnamese-400-normal.CqNFfHCs.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-ext-400-normal.Bc8Ftmh3.woff2)format("woff2"),url(./jetbrains-mono-latin-ext-400-normal.fXTG6kC5.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-400-normal.V6pRDFza.woff2)format("woff2"),url(./jetbrains-mono-latin-400-normal.6-qcROiO.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(data:font/woff2;base64,d09GMgABAAAAAASUABAAAAAACRAAAAQ3AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVEwAdBEICoRkg3oLIAABNgIkAzoEIAWFHgeBFAwHG3AHKB4HzukrRjyF5Gb4kQ/B873d17mv8TWkoqUUGaHodJCtoqntw7m8tiPWyGkfWDU/IMpzVk4zAs9Czv3c7Os5NvKFG1Ht9vBVXySRZpJc4tTrbM3sTRFcLa3zVboKWRIoAksKSKgqUQWEwlSoqjp44V5J9/kjd0+Fi5xaFjwJArgBAIJgIAgCCAI4CdNMqGuYXYUKdADLAkAAJwl6iX0+bZqEm1AH0Hu9rvrJHwxQG1Q/gFYwWYbgTRWgwEESVzbmtjQAt3DXO7Tu/+9Q/KNKWhTCgZ8fQSWoL0CUUgTBjgL8iEAcce7YHBeA8ZvogieCnxI0BCVeACCAAhBD/oDcAdUPABSgAX4kBPBTwjCAjwYSCneiqF65LUo/qXdYFrRwTujtMrKm07plTbSqLQFAiHBN7E4DG5wkiGXhCYBNETh3K/AciH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htGZkYWRlZGNkZ2BmZGDkZORi5GbjbHpKLUslT20rxMAxNHVwjtagHlu0H5lqzpibm5iWCegaMBk3MQX2JyaUlqcn5ukl5yYnEqD0jG2MAMzAEAoO0cmA==)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./jetbrains-mono-cyrillic-500-normal.DmUKJPL_.woff2)format("woff2"),url(./jetbrains-mono-cyrillic-500-normal.DJqRU3vO.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./jetbrains-mono-greek-500-normal.JpySY46c.woff2)format("woff2"),url(./jetbrains-mono-greek-500-normal.D7SFKleX.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(data:font/woff2;base64,d09GMgABAAAAAA/IABAAAAAALMwAAA9mAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnAbhXAcghYGYD9TVEFUTACDBBEICrA8p1ILgjgAATYCJAOEKAQgBYUeB4xODAcbFCYzA/aDkxp0RMXmTMH/IcEUkaXZhe7qAVQoRhtRmOhkzaUYXs3lyzTUlwptwwNGy28PLP/oZewn39g4Jjp8YusISWZ9eNpW788MNQMI7jZprgsqRiJ7imCBYlEWIBhgoWjj7uJGcddednnRIQ/fX77n7i8NtLf08UwEQl3jq59XJCShypU4lMyz3Hb3X0omkAkZCYVNhfN/c3Pmf1nJcDqnj2VE35fYAx+8WYIJhZj4znn1Qbjp9+f4Pab0wOi7JSECzG0o6DRWu/MBgfu/NdPu5O8cUssKSJ1wUyTjq6oWZic7nUsKuIEySsIkzXvdKzArVNkCwvP1lQCgK4yu0BVWFp6vrWVm/6Nt7H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QGCyuGE8gVpLIFCqNzmCy2Bwur54vEIrEEqlM3qxQqtTdSrU6vcFoMlusNjsz0q+WhVWdeg0aNfUmG7vmOrRwaNWmXYdOTi5uHl5deXXr0auPj19Av2C9QgYMGor2C4sYMWrMuAlRk6bETJsxa868BYuWxC3bbY+9EjhBUjTDcrwgSih88/y+eq/C13kHnXKhbTUDgISUCgNDoABXKLCL+2X27E/c2jAAQEKsFigx1qgLEbSeu+NyhcJGIECQNm9L567c3l7uZ5Wo3pkx4tYOhJANKw9dEonovRqVDb5dMKz515Ng+hci23hm4UQEs8eChwPB0BZYOBINbH3Erw0HECzUaokWa42eyGD3PIBIMBSOrfryBQ3G4oHQKi+/kEA0tuaDV40GP3h0+wuAAgXTKy0v5428xUDwksfm538juY9ni9fz2Ggy4iWLMz4qLklle7kcZvOLwy5bXp7fdYrRJlP4l5NDdZPiKVeLnJV7Ohg2VAs/aQwZNVtodX2jki6RU1e/j6GkgZbgAmmogZafuF4mZlb1t+COUyrcnF/CCZzS4MO/dX1T6QQAAAA=)format("woff2"),url(./jetbrains-mono-vietnamese-500-normal.DNRqzVM1.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./jetbrains-mono-latin-ext-500-normal.Cut-4mMH.woff2)format("woff2"),url(./jetbrains-mono-latin-ext-500-normal.ckzbgY84.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./jetbrains-mono-latin-500-normal.BWZEU5yA.woff2)format("woff2"),url(./jetbrains-mono-latin-500-normal.CJOVTJB7.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(data:font/woff2;base64,d09GMgABAAAAAASIABAAAAAACQAAAAQtAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVDYAdBEICoRkg3gLIAABNgIkAzoEIAWFIgeBFAwHG1wHKI7DuPEacDIiFJ/g+f47+1/7dIcdXTlD8DKqmcw4eIC+AOCPf6+qiWq3h6+aSCLNJDnkqX9Xl+rv/6dSBcwSBCzEoVqxNbp5SqPMYdKBQhBq1dK9ggSsgYUoGnHOqttMECvWjIJfPA8cjQAuAEAQLAiClASc7M6OkfbO/nHs6ACmCYBxZXKP4s9uXIHECh4AdEhX0yIHC6jzgAb65sshStMMChwEfWVjZe8Anset/6H93x8jOyL5fuS67z4Dlam+BPyH/pV2FLCZAOnU0XPzCQGiJ7AkXgSFhqDEB4AAoAAN2ExDgM10joCNfDQUbvxaXM8LovT79D9MEyYU9+q/myT9p/m8uWi2mLJBPbzcih2wYIPzBDFNvABt315OXwy8BaRnbo5hXsOS5taknX4FguiaZnd4vQ7HxnBnm3SPYXHrQbclvOgyDhsHnZPO8f3G5I2fbr34Y7+hzRozVzyw5bKHdu03plXgvE9FO/Uz4/xPUKd8/PHk+R+JODnlg1lDTv3Qed77zDNqRszaqHUQT248kUPGzBXXXHGFnHrVVdft2m8c4PhpjB+/QEqMU54xruc6m3w8++XNXx4sya9rMvNq88m6X1zeOMlRuQ+/nvNw4+ZrCt58yDdSVOQdfoi/jc/ePfZY+1taYaH21FH2Y4fGG+RVNJkIN4SSiWj3ZKGG1oojoYr2SNWFVbHvY1XX1PR+H6y+oKrqgmryqj1UXnmk5cKWysPM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JDTpIjgIB8FGFv9i2Yg6pWbuW7awmInrIdpwAiEVO8QeVFp11HKrrN3Fsba/K+jETiDg4W1FTU5EdDF8BJQaE9AAAAAEAAAACNgQzGROsXw889QADA+gAAAAA29KmmgAAAADb2tDy+Tv+1ASSA/wAAAAGAAIAAAAAAAB42mNgZGBg/vPvCgMDy4af1n9LWCYBRVABHwCttwbRAHjaY4pgiAJidSQsBcW+QKyLRDNAMQgcZ2gEAOKlB9IAAAAAGgA7AEYAUQBvAHcAqQCxAOYBCQEJAQkBCQEWAS942mNgZGBg4GfcwZDHsIWBDcxDAGYGJgAtGgH4eNqVkANuhVEQhb/aCMqgCGrbtt342faL0aiL6Eq6lK6gq+hJqmfkZnK+e+bM/ACaeKWKiuoG4L2i+4crmOTzhytp5eOHq9jk7YerUzI19PLyw7WM8/zDrSwy+M0V0EznD7eJG3+4XQS3+PFixMcJEakHJ2aesErtOOSpdAKEWWWKKamZkLoBIuJJwmKP1C/Xrv4Vh5xzilX9XXlG9X1KXSjhU01wp55X7q5uHiw86h5Ce1CCfmaZVM3o/NMap8qvlbX3Vnc7UbFR+ezJ/r/Z/qzZPWmAJKG//6D3YhqV6F6OVVp45zUhqUsZM5pnh6jUIS+Ekgxn/Vs7TpRQzsQkZiW9crOfMlXgP4x8AWVxW9542mNgYgCD/6kMRkCKkQEd8AOxCsNJRiYGG0ZmRhZGVkY2RnYGZkYORk5GLkZuNsekotSyVPbSvEwDE0dXCO1qAeW7QfmWrOmJubmJYJ6BowGTcxBfYnJpSWpyfm6SXnJicSoPSMbYwAzMAQCg7RyY)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-cyrillic-600-normal.EVf6-Yzo.woff2)format("woff2"),url(./jetbrains-mono-cyrillic-600-normal.8K4wrrwR.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-greek-600-normal.H7WoG9Et.woff2)format("woff2"),url(./jetbrains-mono-greek-600-normal.mc2nkWzM.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(data:font/woff2;base64,d09GMgABAAAAAA+cABAAAAAALLwAAA88AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnAbhXAcghYGYD9TVEFUNgCDBBEICrA8p1ILgjgAATYCJAOEKAQgBYUiB4xODAcbAiYzozactEpURMVmRMX/5YAeEbZcwG/CMMAQKoJWtdookZoS3aytxmC050sOI7cCAow302fVqlctEo2fsCH8NF7hT+iw0j9ChNjZ8mDDCKqxsmf2gdUroKACZgVMClhYtHG58kFWiUIXox5+nrb1f+4MUcKgDUhpU2kUtTpEWk2URbgiu+1zX2fy3o9MUYVLx3hhubmNsFpCMdsEk1F5+8ezc+v/smvX9vzNVygBp/rnXWMsECqg7HGvu2v3ux/JGhqUxXWMZcyPTSxsB6q1KNuR9/YiPE/t+m+wjit3IdpAssXS2tAXBVLadh69dFxz5v/mSpvZnzkuAERVVbgpkvF9Pvcvmd3p3KVAySEUCHOcEigE2ToCFrZqdZl0fZWxhefrTM7sf7FF/7NYSgxz0ya9TirWLutNmVKxwRKXQOv7pmo+oJFsPTEkTMMUODQyz6PtqbkAATQBkAjo6nmv1gQRaoZIKCAqJohFL6TfKMQtBImYgEyJQuLWIZvykB07cLvKcMfsKc64q0BAg1Z62MLFnghwj+wsrAMXBTAIAmIlTQADCEnRfB0FBpRXxn+ZeuBILJs5dGcQP+L7PDFcjHgb87y5DRqvxlP0zuuYU9SNJ6My5+oi3AuOtcbt8RCGyguGENEyhmPtIK84ABAjgC5OpyEVeFwMIyFx3o0AQEAjCKETdGACG5DghZlTreIC24ANwHoYjoN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TwUCk88kmW++/g5b5Ptfl6u7unbJto+f9aUhYo86S+abLrrPFhkKuCbYg/3RjZd2QeF4e1FA4WqntdRyb62TJw2Chq0gQWkUYM272xWJMurZi8h7DSKFU9P4QSnMWz/788ruR4A)format("woff2"),url(./jetbrains-mono-vietnamese-600-normal.OWROknRo.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-latin-ext-600-normal.BfB_LPfz.woff2)format("woff2"),url(./jetbrains-mono-latin-ext-600-normal.DObL3zCW.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./jetbrains-mono-latin-600-normal.C8RAYTDA.woff2)format("woff2"),url(./jetbrains-mono-latin-600-normal.BfsvjouI.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(data:font/woff2;base64,d09GMgABAAAAAASAABAAAAAACNgAAAQlAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhwbHhwoBmA/U1RBVEwAdBEICoRkg3gLIAABNgIkAzoEIAWEaAeBFAwHGzgHSJ4DbjN9OmtkIy0becnT/RjJ4uGfw99974/GXrhoTCqLok66NY3jTloEUdrmwCevn/Ls30xSpFlZ6UJMrW+fTNwAEdSu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l+7XbR71pA3n08ml4XL12585C0qpNpz/ds+sCuXFhitFcIwPD9d42SIsd+Pglgsscht2ZZIuPyHmGWFEfksQh5KweFhy4Jb7lNp0fsA6u2xjIcyysmsceNXaU8MrDSn14eaOc3WCaI9OaGWcYWlM19d16+u+9XX/1l9gW+nCv55q/NdnrEh+EgRf/4LejlEk0akSi/z3tzwkKHeqc4v2LBGR25UFUZPeL3/WhgM11LthmKclg2NGH4st+nj8qQkARipb8wB42mNgYgCD/6kMRkCKkQEd8AOxCsNJRiYGG0ZmRhZGVkY2RnYGZkYORk5GLkZuNsekotSyVPbSvEwDE0dXCO1qAeW7QfmWrOmJubmJYJ6BowGTcxBfYnJpSWpyfm6SXnJicSoPSMbYwAzMAQCg7RyY)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(./jetbrains-mono-cyrillic-700-normal.BWTpRfYl.woff2)format("woff2"),url(./jetbrains-mono-cyrillic-700-normal.CEoEElIJ.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(./jetbrains-mono-greek-700-normal.C6CZE3T8.woff2)format("woff2"),url(./jetbrains-mono-greek-700-normal.DEigVDxa.woff)format("woff");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(data:font/woff2;base64,d09GMgABAAAAAA+YABAAAAAALJQAAA84AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGnAbhXAcghYGYD9TVEFUTACDBBEICrA8p1ILgjgAATYCJAOEKAQgBYRoB4xODAcb3iVFRoaNAwho/vmJoixsfqj4v07g5OqncaqIUAYqEI6gCkZ0qK4wEp3O9K+ySRaPPWftnd0mjZ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mQx7W3SmH4uPn4THn5WGVRkVJSUe18GZciYPkpW1Jbenb3Uuhd9IlmPYVMW+beC52gpnEAGh0x9s5Hr3PoMf30c4dNnsq0zu6XbSX798/zt3Q4a1q1n9e67fa/PK3mqd+WLPRSgnMs9QQUg/gluBuT4AEVowiARJJIwCYuwCYdwCY/wiYAIkR+RKGLRYsSKE19REiRKSpVkKVKlSZchU5ZsOXJJ5FWafAUKSRUpJiOnqDJKKmqaGqKlU6JUmXIVKlWpVqNWHQJj9Oo1OMWgkVFT+0yambPFwuq0M1rY2Dk4ubh5tOZJm3YdOnXp5tWjt4706eczEJ1BQ4aNGDVm3IRJU6b5zQiYNWfegkVBIWctWXbOirDV512was26DZu2bNtxca0bHMaXcXzezJHX3kuGg3DQgmZxkgYvcOSGh23/NFj4ueUA4aDJSDpssvpMRk+n+Wo0RsbVQMJoY9QGnfrwebY9bDShBz6WDT/30EO3PPy0qFHIQaKl+xafPvqc8G9Co9//BbLR2+fel4z6L4qEgBCsAY6gGKhhEsncCkBIsGQUEy5Z86Wi+asBUQhGcMVJuGUQTgJhxSI8UxDDlSTRuYRFf0TV6k8INXywb8Fou5mKewIlT0U69vFXRR7T/eH55NcVfcwTnh7vIXxO87PtdtkfbOMPudH29CdL1b76OJVfKzkETa23NlID/Vyyh32eD0HaB0WeEl85A0PlLU3DkD1ZS6cTFwkYYsUIxRhhiJWdFJNo46JigrC/jgoTcZop6gjrqICM/O9k7YngMgA=)format("woff2"),url(./jetbrains-mono-vietnamese-700-normal.BDLVIk2r.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(./jetbrains-mono-latin-ext-700-normal.CZipNAKV.woff2)format("woff2"),url(./jetbrains-mono-latin-ext-700-normal.CxPITLHs.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:700;src:url(./jetbrains-mono-latin-700-normal.BYuf6tUa.woff2)format("woff2"),url(./jetbrains-mono-latin-700-normal.D3wTyLJW.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-cyrillic-ext-400-normal.xuaO2J-f.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-ext-400-normal.DMdlQ8Kv.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-cyrillic-400-normal.BSMlKf0J.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-400-normal.CEL4l2ZJ.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-vietnamese-400-normal.BulugwFq.woff2)format("woff2"),url(./ibm-plex-mono-vietnamese-400-normal.DDuiU_S-.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-latin-ext-400-normal.BmRBH3aV.woff2)format("woff2"),url(./ibm-plex-mono-latin-ext-400-normal.D3D2R8hC.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./ibm-plex-mono-latin-400-normal.DMJ8VG8y.woff2)format("woff2"),url(./ibm-plex-mono-latin-400-normal.CvHOgSBP.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-mono-cyrillic-ext-500-normal.BqneJy0T.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-ext-500-normal.BIfNGwUT.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-mono-cyrillic-500-normal.Bq9vWWag.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-500-normal.Ael50iVv.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-mono-vietnamese-500-normal.DZ4AoWbu.woff2)format("woff2"),url(./ibm-plex-mono-vietnamese-500-normal.C8zxqsMH.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-mono-latin-ext-500-normal.CAhNIIs5.woff2)format("woff2"),url(./ibm-plex-mono-latin-ext-500-normal.CZ70TYgx.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./ibm-plex-mono-latin-500-normal.DSY6xOcd.woff2)format("woff2"),url(./ibm-plex-mono-latin-500-normal.CB9ihrfo.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-cyrillic-ext-600-normal.V-xxqcpd.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-ext-600-normal.9HEixskS.woff)format("woff");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-cyrillic-600-normal.CTOM6hUh.woff2)format("woff2"),url(./ibm-plex-mono-cyrillic-600-normal.fLZuRloM.woff)format("woff");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-vietnamese-600-normal.D2EvbN8M.woff2)format("woff2"),url(./ibm-plex-mono-vietnamese-600-normal.iLQfcSjf.woff)format("woff");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-latin-ext-600-normal.D38SheWl.woff2)format("woff2"),url(./ibm-plex-mono-latin-ext-600-normal.DmB0ttJJ.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(./ibm-plex-mono-latin-600-normal.BgSNZQsw.woff2)format("woff2"),url(./ibm-plex-mono-latin-600-normal.DWFSQ4vo.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--ink-0:#05070c;--ink-1:#0a0d14;--ink-2:#0f131c;--ink-3:#151a24;--ink-4:#1d2430;--ink-5:#283041;--fg-0:#f4f6fb;--fg-1:#c9d0dd;--fg-2:#8a93a6;--fg-3:#5a6374;--a1:#7c5cff;--a2:#00d4ff;--a3:#ff4d8d;--a4:#ffd166;--ok:#22e0a8;--crit:#ff5a5f;--hair:#00000014;--hair-2:#00000024;--font-display:"JetBrains Mono","IBM Plex Mono",ui-monospace,monospace;--font-mono:"IBM Plex Mono","JetBrains Mono",ui-monospace,monospace;--f-display:var(--font-display);--f-mono:var(--font-mono);--f-body:var(--font-mono);--radius:.625rem;--radius-lg:10px;--max:1240px;--background:oklch(100% 0 0);--foreground:oklch(12.9% .042 264.695);--card:oklch(100% 0 0);--card-foreground:oklch(12.9% .042 264.695);--popover:oklch(100% 0 0);--popover-foreground:oklch(12.9% .042 264.695);--primary:oklch(20.8% .042 265.755);--primary-foreground:oklch(98.4% .003 247.858);--secondary:oklch(96.8% .007 247.896);--secondary-foreground:oklch(20.8% .042 265.755);--muted:oklch(96.8% .007 247.896);--muted-foreground:oklch(55.4% .046 257.417);--accent:oklch(96.8% .007 247.896);--accent-foreground:oklch(20.8% .042 265.755);--destructive:oklch(57.7% .245 27.325);--border:oklch(92.9% .013 255.508);--input:oklch(92.9% .013 255.508);--ring:oklch(70.4% .04 256.788);--chart-1:oklch(70% .15 250);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--sidebar:oklch(98.4% .003 247.858);--sidebar-foreground:oklch(12.9% .042 264.695);--sidebar-primary:oklch(20.8% .042 265.755);--sidebar-primary-foreground:oklch(98.4% .003 247.858);--sidebar-accent:oklch(70% .15 250);--sidebar-accent-foreground:oklch(98% 0 0);--sidebar-border:oklch(92.9% .013 255.508);--sidebar-ring:oklch(70.4% .04 256.788)}.dark{--hair:#ffffff0f;--hair-2:#ffffff1a;--background:var(--ink-0);--foreground:var(--fg-0);--card:var(--ink-3);--card-foreground:var(--fg-0);--popover:var(--ink-3);--popover-foreground:var(--fg-0);--primary:var(--fg-0);--primary-foreground:var(--ink-0);--secondary:var(--ink-3);--secondary-foreground:var(--fg-0);--muted:var(--ink-2);--muted-foreground:var(--fg-2);--accent:var(--ink-3);--accent-foreground:var(--fg-0);--destructive:var(--crit);--border:var(--hair);--input:var(--hair-2);--ring:var(--a1)}@supports (color:color-mix(in lab,red,red)){.dark{--ring:color-mix(in oklab,var(--a1)70%,transparent)}}.dark{--chart-1:var(--a1);--chart-2:var(--a2);--chart-3:var(--a3);--chart-4:var(--a4);--chart-5:var(--ok);--sidebar:var(--ink-2);--sidebar-foreground:var(--fg-1);--sidebar-primary:var(--a1);--sidebar-primary-foreground:var(--fg-0);--sidebar-accent:var(--ink-3);--sidebar-accent-foreground:var(--fg-0);--sidebar-border:var(--hair);--sidebar-ring:var(--a1)}@supports (color:color-mix(in lab,red,red)){.dark{--sidebar-ring:color-mix(in oklab,var(--a1)70%,transparent)}}[data-sonner-toaster] [data-sonner-toast]{--normal-bg:white;--normal-text:#1a1a1a;--normal-border:#e5e5e5;background:var(--normal-bg);color:var(--normal-text);border-color:var(--normal-border)}[data-sonner-toaster] [data-sonner-toast][data-type=warning],[data-sonner-toaster] [data-sonner-toast][data-type=success],[data-sonner-toaster] [data-sonner-toast][data-type=error],[data-sonner-toaster] [data-sonner-toast][data-type=info]{background:var(--normal-bg);color:var(--normal-text);border-color:var(--normal-border)}.dark [data-sonner-toaster] [data-sonner-toast]{--normal-bg:var(--ink-3);--normal-text:var(--fg-0);--normal-border:var(--hair-2)}.dark [data-sonner-toaster] [data-sonner-toast][data-type=warning],.dark [data-sonner-toaster] [data-sonner-toast][data-type=success],.dark [data-sonner-toaster] [data-sonner-toast][data-type=error],.dark [data-sonner-toaster] [data-sonner-toast][data-type=info]{background:var(--normal-bg);color:var(--normal-text);border-color:var(--normal-border)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}@media(hover:none)and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:#ffffff4d}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]:after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY( calc(var(--lift) * var(--offset) + var(--lift) * -100%) );opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media(max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 87%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 93%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 84%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 43%, 17%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 9%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media(prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
diff --git a/backend/static/frontend/_app/immutable/chunks/1yZ_tTJD.js b/backend/static/frontend/_app/immutable/chunks/1yZ_tTJD.js
deleted file mode 100644
index fa5744e2..00000000
--- a/backend/static/frontend/_app/immutable/chunks/1yZ_tTJD.js
+++ /dev/null
@@ -1 +0,0 @@
-import{p as c,i as C,r as Xe,s as Ct,b as ut}from"./DMODTt3n.js";import{p as He,f as w,c as s,d as v,m as Ge,o as Ye,b as a,s as n,a as Je,g as e,u as P,e as l,r as d,k as he,l as M,h as Ce,i as ge,n as ze,t as Fe}from"./B2WdN-7r.js";import{e as be,i as Oe}from"./CMyj8Fzw.js";import{c as u}from"./BAcG0-U_.js";import{b as ct,r as zt,d as pe}from"./DH0tcjsQ.js";import{a as Ft}from"./BuKxAPQs.js";import{g as Ot}from"./D6S6XYVy.js";import{F as xe}from"./DwGghOhY.js";import{b as Vt,c as vt,d as Lt,e as Tt,C as At,f as Gt,g as Ht,h as Jt,i as Dt,j as Ve}from"./CYYjDwkn.js";import{n as Ke,w as jt,F as It,u as ft,a as Rt,b as qt}from"./CAQEdoSh.js";import{b as $,m as gt}from"./DWAABZDo.js";import{I as Mt}from"./Bv_PbELb.js";import{S as Le,a as Te}from"./DCLDG_bE.js";import{C as Ae}from"./DUJ_Z9AF.js";var Nt=w("<!> <!>",1);function Bt(K,t){He(t,!0);let f=c(t,"value",15),D=c(t,"onValueChange",3,Ke),R=c(t,"name",3,""),q=c(t,"disabled",3,!1),S=c(t,"open",15,!1),z=c(t,"onOpenChange",3,Ke),j=c(t,"onOpenChangeComplete",3,Ke),de=c(t,"loop",3,!1),N=c(t,"scrollAlignment",3,"nearest"),B=c(t,"required",3,!1),g=c(t,"items",19,()=>[]),J=c(t,"allowDeselect",3,!0),I=c(t,"inputValue",7,"");if(f()===void 0){const r=t.type==="single"?"":[];f(r)}jt.pre(()=>f(),()=>{f()===void 0&&f(t.type==="single"?"":[])});const W=Vt.create({type:t.type,value:$(()=>f(),r=>{f(r),D()(r)}),disabled:$(()=>q()),required:$(()=>B()),open:$(()=>S(),r=>{S(r),z()(r)}),loop:$(()=>de()),scrollAlignment:$(()=>N()),name:$(()=>R()),isCombobox:!0,items:$(()=>g()),allowDeselect:$(()=>J()),inputValue:$(()=>I(),r=>I(r)),onOpenChangeComplete:$(()=>j())});var ie=Nt(),ue=s(ie);It(ue,{children:(r,ve)=>{var U=v(),De=s(U);Ge(De,()=>t.children??Ye),a(r,U)},$$slots:{default:!0}});var E=n(ue,2);{var Q=r=>{var ve=v(),U=s(ve);{var De=me=>{var ce=v(),je=s(ce);be(je,16,()=>W.opts.value.current,ke=>ke,(ke,Be)=>{vt(ke,{get value(){return Be}})}),a(me,ce)};C(U,me=>{W.opts.value.current.length&&me(De)})}a(r,ve)},ye=r=>{vt(r,{get value(){return W.opts.value.current},set value(ve){W.opts.value.current=ve}})};C(E,r=>{Array.isArray(W.opts.value.current)?r(Q):r(ye,!1)})}a(K,ie),Je()}var Wt=w("<input/>");function Et(K,t){He(t,!0);let f=c(t,"id",19,ft),D=c(t,"ref",15,null),R=c(t,"clearOnDeselect",3,!1),q=Xe(t,["$$slots","$$events","$$legacy","id","ref","child","defaultValue","clearOnDeselect"]);const S=Lt.create({id:$(()=>f()),ref:$(()=>D(),N=>D(N)),clearOnDeselect:$(()=>R())});t.defaultValue&&(S.root.opts.inputValue.current=t.defaultValue);const z=P(()=>gt(q,S.props,{value:S.root.opts.inputValue.current}));var j=v(),de=s(j);u(de,()=>Rt,(N,B)=>{B(N,{get id(){return f()},get ref(){return S.opts.ref},children:(g,J)=>{var I=v(),W=s(I);{var ie=E=>{var Q=v(),ye=s(Q);Ge(ye,()=>t.child,()=>({props:e(z)})),a(E,Q)},ue=E=>{var Q=Wt();ct(Q,()=>({...e(z)}),void 0,void 0,void 0,void 0,!0),a(E,Q)};C(W,E=>{t.child?E(ie):E(ue,!1)})}a(g,I)},$$slots:{default:!0}})}),a(K,j),Je()}var Qt=w("<button><!></button>");function Ut(K,t){He(t,!0);let f=c(t,"id",19,ft),D=c(t,"ref",15,null),R=c(t,"type",3,"button"),q=Xe(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const S=Tt.create({id:$(()=>f()),ref:$(()=>D(),g=>D(g))}),z=P(()=>gt(q,S.props,{type:R()}));var j=v(),de=s(j);{var N=g=>{var J=v(),I=s(J);Ge(I,()=>t.child,()=>({props:e(z)})),a(g,J)},B=g=>{var J=Qt();ct(J,()=>({...e(z)}));var I=l(J);Ge(I,()=>t.children??Ye),d(J),a(g,J)};C(de,g=>{t.child?g(N):g(B,!1)})}a(K,j),Je()}function Kt(K,t){He(t,!0);let f=Xe(t,["$$slots","$$events","$$legacy"]);const D=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];Mt(K,Ct({name:"search"},()=>f,{get iconNode(){return D},children:(R,q)=>{var S=v(),z=s(S);Ge(z,()=>t.children??Ye),a(R,S)},$$slots:{default:!0}})),Je()}var Xt=w('<div class="flex items-center gap-2"><!> <span> </span></div> <!>',1),Yt=w('<div class="py-4 text-center text-sm text-muted-foreground">No frameworks found</div>'),Zt=w('<div class="flex items-center gap-2"><!> <div class="flex flex-col"><span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span></div></div> <!>',1),ea=w("<!> <!>",1),ta=w('<div class="flex items-center gap-2"><!> <div class="flex flex-col"><span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span></div></div> <!>',1),aa=w("<!> <!>",1),ra=w('<div class="flex items-center gap-2"><!> <div class="flex flex-col"><span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span></div></div> <!>',1),sa=w("<!> <!>",1),oa=w('<div class="flex items-center gap-2"><!> <div class="flex flex-col"><span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span></div></div> <!>',1),na=w("<!> <!>",1),la=w('<div class="flex items-center gap-2"><!> <div class="flex flex-col"><span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span></div></div> <!>',1),da=w("<!> <!>",1),ia=w("<!> <!> <!> <!> <!>",1),ua=w('<div class="flex items-center border-b px-3 py-2"><!> <input placeholder="Search frameworks..." class="flex h-7 w-full rounded-md bg-transparent text-sm outline-none placeholder:text-muted-foreground"/></div> <!> <!> <!>',1),va=w('<div class="relative w-full"><!> <!></div> <!>',1);function Ca(K,t){He(t,!0);let f=c(t,"value",15),D=c(t,"disabled",3,!1),R=Ce(!1),q=Ce(""),S=Ce(null),z=Ce(null),j=Ce(null);const de=[{value:"gin",label:"Gin",description:"Fast HTTP web framework",group:"Go"},{value:"fiber",label:"Fiber",description:"Express-inspired framework",group:"Go"},{value:"chi",label:"Chi",description:"Lightweight router",group:"Go"},{value:"fasthttp",label:"FastHTTP",description:"High-performance HTTP",group:"Go"},{value:"stdlib",label:"Standard Library",description:"net/http package",group:"Go"},{value:"custom",label:"Custom",description:"Other / manual setup",group:"Go"},{value:"react",label:"React",description:"Frontend UI library",group:"JavaScript"},{value:"react-native",label:"React Native",description:"React Native and Expo apps",group:"JavaScript"},{value:"svelte",label:"Svelte",description:"Frontend compiler framework",group:"JavaScript"},{value:"vuejs",label:"Vue.js",description:"Progressive frontend framework",group:"JavaScript"},{value:"jquery",label:"jQuery",description:"Legacy-friendly AJAX and DOM library",group:"JavaScript"},{value:"symfony",label:"Symfony",description:"PHP full-stack framework (OTLP)",group:"PHP"},{value:"hono",label:"Hono",description:"Lightweight multi-runtime framework (OTLP)",group:"Backend"},{value:"cloudflare",label:"Cloudflare",description:"Cloudflare Workers (OTLP Traces)",group:"Backend"},{value:"opentelemetry",label:"OpenTelemetry",description:"Vendor-neutral observability",group:"Backend"},{value:"flutter",label:"Flutter",description:"Mobile UI framework",group:"Mobile"},{value:"android",label:"Android",description:"Native Android (Kotlin/Java)",group:"Mobile"}],N=P(()=>Ot(f())),B=P(()=>e(q).toLowerCase().trim()),g=P(()=>e(B)===""?de:de.filter(r=>r.label.toLowerCase().includes(e(B))||r.description.toLowerCase().includes(e(B))||r.group.toLowerCase().includes(e(B)))),J=P(()=>e(g).filter(r=>r.group==="Go")),I=P(()=>e(g).filter(r=>r.group==="JavaScript")),W=P(()=>e(g).filter(r=>r.group==="PHP")),ie=P(()=>e(g).filter(r=>r.group==="Backend")),ue=P(()=>e(g).filter(r=>r.group==="Mobile"));function E(r){ge(R,r,!0),r?requestAnimationFrame(()=>{e(S)?.focus(),e(j)&&e(z)&&(e(j).style.width=`${e(z).offsetWidth}px`)}):ge(q,"")}var Q=v(),ye=s(Q);u(ye,()=>Bt,(r,ve)=>{ve(r,{type:"single",onOpenChange:E,get value(){return f()},set value(U){f(U)},get open(){return e(R)},set open(U){ge(R,U,!0)},children:(U,De)=>{var me=va(),ce=s(me),je=l(ce);u(je,()=>Et,(fe,we)=>{we(fe,{get disabled(){return D()},readonly:!0,get defaultValue(){return e(N)},class:"absolute inset-0 w-full h-full opacity-0 pointer-events-none",tabindex:-1})});var ke=n(je,2);{let fe=P(()=>pe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(ke,()=>Ut,(we,We)=>{We(we,{get disabled(){return D()},"data-slot":"select-trigger","data-size":"default",get class(){return e(fe)},children:(Ze,Ee)=>{var Ie=Xt(),Pe=s(Ie),Re=l(Pe);xe(Re,{get framework(){return f()}});var qe=n(Re,2),Se=l(qe,!0);d(qe),d(Pe);var et=n(Pe,2);At(et,{class:"size-4 opacity-50"}),he(()=>M(Se,e(N))),a(Ze,Ie)},$$slots:{default:!0}})})}d(ce),ut(ce,fe=>ge(z,fe),()=>e(z));var Be=n(ce,2);u(Be,()=>qt,(fe,we)=>{we(fe,{children:(We,Ze)=>{var Ee=v(),Ie=s(Ee);{let Pe=P(()=>pe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 min-w-[8rem] rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1"));u(Ie,()=>Gt,(Re,qe)=>{qe(Re,{sideOffset:4,preventScroll:!0,get class(){return e(Pe)},get ref(){return e(j)},set ref(Se){ge(j,Se,!0)},children:(Se,et)=>{var tt=ua(),Qe=s(tt),at=l(Qe);Kt(at,{class:"mr-2 size-4 shrink-0 opacity-50"});var Ue=n(at,2);zt(Ue),ut(Ue,$e=>ge(S,$e),()=>e(S)),d(Qe);var rt=n(Qe,2);Ht(rt,{});var st=n(rt,2);u(st,()=>Jt,($e,mt)=>{mt($e,{class:"w-full max-h-72 overflow-y-auto scroll-my-1 p-1",children:(_t,ca)=>{var ot=v(),ht=s(ot);{var xt=_e=>{var Me=Yt();a(_e,Me)},bt=_e=>{var Me=ia(),nt=s(Me);{var yt=p=>{var F=v(),X=s(F);u(X,()=>Le,(Y,Z)=>{Z(Y,{children:(ee,Ne)=>{var O=ea(),V=s(O);u(V,()=>Te,(m,o)=>{o(m,{class:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:(i,L)=>{ze();var _=Fe("Go");a(i,_)},$$slots:{default:!0}})});var te=n(V,2);be(te,17,()=>e(J),Oe,(m,o)=>{var i=v(),L=s(i);{const _=(h,x)=>{let re=()=>x?.().selected;var T=Zt(),b=s(T),A=l(b);xe(A,{get framework(){return e(o).value}});var G=n(A,2),y=l(G),se=l(y,!0);d(y);var H=n(y,2),oe=l(H,!0);d(H),d(G),d(b);var ne=n(b,2);{var le=k=>{Ae(k,{class:"absolute end-2 size-4"})};C(ne,k=>{re()&&k(le)})}he(()=>{M(se,e(o).label),M(oe,e(o).description)}),a(h,T)};let ae=P(()=>pe("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(L,()=>Ve,(h,x)=>{x(h,{get value(){return e(o).value},get class(){return e(ae)},children:_,$$slots:{default:!0}})})}a(m,i)}),a(ee,O)},$$slots:{default:!0}})}),a(p,F)};C(nt,p=>{e(J).length>0&&p(yt)})}var lt=n(nt,2);{var kt=p=>{var F=v(),X=s(F);u(X,()=>Le,(Y,Z)=>{Z(Y,{children:(ee,Ne)=>{var O=aa(),V=s(O);u(V,()=>Te,(m,o)=>{o(m,{class:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:(i,L)=>{ze();var _=Fe("JavaScript");a(i,_)},$$slots:{default:!0}})});var te=n(V,2);be(te,17,()=>e(I),Oe,(m,o)=>{var i=v(),L=s(i);{const _=(h,x)=>{let re=()=>x?.().selected;var T=ta(),b=s(T),A=l(b);xe(A,{get framework(){return e(o).value}});var G=n(A,2),y=l(G),se=l(y,!0);d(y);var H=n(y,2),oe=l(H,!0);d(H),d(G),d(b);var ne=n(b,2);{var le=k=>{Ae(k,{class:"absolute end-2 size-4"})};C(ne,k=>{re()&&k(le)})}he(()=>{M(se,e(o).label),M(oe,e(o).description)}),a(h,T)};let ae=P(()=>pe("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(L,()=>Ve,(h,x)=>{x(h,{get value(){return e(o).value},get class(){return e(ae)},children:_,$$slots:{default:!0}})})}a(m,i)}),a(ee,O)},$$slots:{default:!0}})}),a(p,F)};C(lt,p=>{e(I).length>0&&p(kt)})}var dt=n(lt,2);{var wt=p=>{var F=v(),X=s(F);u(X,()=>Le,(Y,Z)=>{Z(Y,{children:(ee,Ne)=>{var O=sa(),V=s(O);u(V,()=>Te,(m,o)=>{o(m,{class:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:(i,L)=>{ze();var _=Fe("PHP");a(i,_)},$$slots:{default:!0}})});var te=n(V,2);be(te,17,()=>e(W),Oe,(m,o)=>{var i=v(),L=s(i);{const _=(h,x)=>{let re=()=>x?.().selected;var T=ra(),b=s(T),A=l(b);xe(A,{get framework(){return e(o).value}});var G=n(A,2),y=l(G),se=l(y,!0);d(y);var H=n(y,2),oe=l(H,!0);d(H),d(G),d(b);var ne=n(b,2);{var le=k=>{Ae(k,{class:"absolute end-2 size-4"})};C(ne,k=>{re()&&k(le)})}he(()=>{M(se,e(o).label),M(oe,e(o).description)}),a(h,T)};let ae=P(()=>pe("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(L,()=>Ve,(h,x)=>{x(h,{get value(){return e(o).value},get class(){return e(ae)},children:_,$$slots:{default:!0}})})}a(m,i)}),a(ee,O)},$$slots:{default:!0}})}),a(p,F)};C(dt,p=>{e(W).length>0&&p(wt)})}var it=n(dt,2);{var Pt=p=>{var F=v(),X=s(F);u(X,()=>Le,(Y,Z)=>{Z(Y,{children:(ee,Ne)=>{var O=na(),V=s(O);u(V,()=>Te,(m,o)=>{o(m,{class:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:(i,L)=>{ze();var _=Fe("Backend");a(i,_)},$$slots:{default:!0}})});var te=n(V,2);be(te,17,()=>e(ie),Oe,(m,o)=>{var i=v(),L=s(i);{const _=(h,x)=>{let re=()=>x?.().selected;var T=oa(),b=s(T),A=l(b);xe(A,{get framework(){return e(o).value}});var G=n(A,2),y=l(G),se=l(y,!0);d(y);var H=n(y,2),oe=l(H,!0);d(H),d(G),d(b);var ne=n(b,2);{var le=k=>{Ae(k,{class:"absolute end-2 size-4"})};C(ne,k=>{re()&&k(le)})}he(()=>{M(se,e(o).label),M(oe,e(o).description)}),a(h,T)};let ae=P(()=>pe("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(L,()=>Ve,(h,x)=>{x(h,{get value(){return e(o).value},get class(){return e(ae)},children:_,$$slots:{default:!0}})})}a(m,i)}),a(ee,O)},$$slots:{default:!0}})}),a(p,F)};C(it,p=>{e(ie).length>0&&p(Pt)})}var St=n(it,2);{var $t=p=>{var F=v(),X=s(F);u(X,()=>Le,(Y,Z)=>{Z(Y,{children:(ee,Ne)=>{var O=da(),V=s(O);u(V,()=>Te,(m,o)=>{o(m,{class:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:(i,L)=>{ze();var _=Fe("Mobile");a(i,_)},$$slots:{default:!0}})});var te=n(V,2);be(te,17,()=>e(ue),Oe,(m,o)=>{var i=v(),L=s(i);{const _=(h,x)=>{let re=()=>x?.().selected;var T=la(),b=s(T),A=l(b);xe(A,{get framework(){return e(o).value}});var G=n(A,2),y=l(G),se=l(y,!0);d(y);var H=n(y,2),oe=l(H,!0);d(H),d(G),d(b);var ne=n(b,2);{var le=k=>{Ae(k,{class:"absolute end-2 size-4"})};C(ne,k=>{re()&&k(le)})}he(()=>{M(se,e(o).label),M(oe,e(o).description)}),a(h,T)};let ae=P(()=>pe("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(L,()=>Ve,(h,x)=>{x(h,{get value(){return e(o).value},get class(){return e(ae)},children:_,$$slots:{default:!0}})})}a(m,i)}),a(ee,O)},$$slots:{default:!0}})}),a(p,F)};C(St,p=>{e(ue).length>0&&p($t)})}a(_e,Me)};C(ht,_e=>{e(g).length===0?_e(xt):_e(bt,!1)})}a(_t,ot)},$$slots:{default:!0}})});var pt=n(st,2);Dt(pt,{}),Ft(Ue,()=>e(q),$e=>ge(q,$e)),a(Se,tt)},$$slots:{default:!0}})})}a(We,Ee)},$$slots:{default:!0}})}),a(U,me)},$$slots:{default:!0}})}),a(K,Q),Je()}export{Ca as F};
diff --git a/backend/static/frontend/_app/immutable/chunks/1yZ_tTJD.js.map b/backend/static/frontend/_app/immutable/chunks/1yZ_tTJD.js.map
deleted file mode 100644
index eab127e1..00000000
--- a/backend/static/frontend/_app/immutable/chunks/1yZ_tTJD.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"1yZ_tTJD.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/combobox/components/combobox.svelte","../../../../../../node_modules/bits-ui/dist/bits/combobox/components/combobox-input.svelte","../../../../../../node_modules/bits-ui/dist/bits/combobox/components/combobox-trigger.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/search.svelte","../../../../../../src/lib/components/framework-combobox.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { type WritableBox, boxWith } from \"svelte-toolbelt\";\n\timport type { ComboboxRootProps } from \"../types.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\timport { SelectRootState } from \"../../select/select.svelte.js\";\n\timport ListboxHiddenInput from \"../../select/components/select-hidden-input.svelte\";\n\timport { watch } from \"runed\";\n\n\tlet {\n\t\tvalue = $bindable(),\n\t\tonValueChange = noop,\n\t\tname = \"\",\n\t\tdisabled = false,\n\t\ttype,\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tloop = false,\n\t\tscrollAlignment = \"nearest\",\n\t\trequired = false,\n\t\titems = [],\n\t\tallowDeselect = true,\n\t\tinputValue = \"\",\n\t\tchildren,\n\t}: ComboboxRootProps = $props();\n\n\tif (value === undefined) {\n\t\tconst defaultValue = type === \"single\" ? \"\" : [];\n\t\tvalue = defaultValue;\n\t}\n\n\twatch.pre(\n\t\t() => value,\n\t\t() => {\n\t\t\tif (value !== undefined) return;\n\t\t\tvalue = type === \"single\" ? \"\" : [];\n\t\t}\n\t);\n\n\tconst rootState = SelectRootState.create({\n\t\ttype,\n\t\tvalue: boxWith(\n\t\t\t() => value!,\n\t\t\t(v) => {\n\t\t\t\tvalue = v;\n\t\t\t\t// @ts-expect-error - we know\n\t\t\t\tonValueChange(v);\n\t\t\t}\n\t\t) as WritableBox<string> | WritableBox<string[]>,\n\t\tdisabled: boxWith(() => disabled),\n\t\trequired: boxWith(() => required),\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tloop: boxWith(() => loop),\n\t\tscrollAlignment: boxWith(() => scrollAlignment),\n\t\tname: boxWith(() => name),\n\t\tisCombobox: true,\n\t\titems: boxWith(() => items),\n\t\tallowDeselect: boxWith(() => allowDeselect),\n\t\tinputValue: boxWith(\n\t\t\t() => inputValue,\n\t\t\t(v) => (inputValue = v)\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n<FloatingLayer>\n\t{@render children?.()}\n</FloatingLayer>\n\n{#if Array.isArray(rootState.opts.value.current)}\n\t{#if rootState.opts.value.current.length}\n\t\t{#each rootState.opts.value.current as item (item)}\n\t\t\t<ListboxHiddenInput value={item} />\n\t\t{/each}\n\t{/if}\n{:else}\n\t<ListboxHiddenInput bind:value={rootState.opts.value.current as string} />\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { ComboboxInputProps } from \"../types.js\";\n\timport { useId } from \"../../../internal/use-id.js\";\n\timport { FloatingLayer } from \"../../utilities/floating-layer/index.js\";\n\timport { SelectInputState } from \"../../select/select.svelte.js\";\n\n\tlet {\n\t\tid = useId(),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tdefaultValue,\n\t\tclearOnDeselect = false,\n\t\t...restProps\n\t}: ComboboxInputProps = $props();\n\n\tconst inputState = SelectInputState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tclearOnDeselect: boxWith(() => clearOnDeselect),\n\t});\n\n\tif (defaultValue) {\n\t\tinputState.root.opts.inputValue.current = defaultValue;\n\t}\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, inputState.props, { value: inputState.root.opts.inputValue.current })\n\t);\n</script>\n\n<FloatingLayer.Anchor {id} ref={inputState.opts.ref}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<input {...mergedProps} />\n\t{/if}\n</FloatingLayer.Anchor>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { ComboboxTriggerProps } from \"../types.js\";\n\timport { useId } from \"../../../internal/use-id.js\";\n\timport { SelectComboTriggerState } from \"../../select/select.svelte.js\";\n\n\tlet {\n\t\tid = useId(),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tchildren,\n\t\ttype = \"button\",\n\t\t...restProps\n\t}: ComboboxTriggerProps = $props();\n\n\tconst triggerState = SelectComboTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m21 21-4.34-4.34\" }], [\"circle\", { \"cx\": \"11\", \"cy\": \"11\", \"r\": \"8\" }]];\n/**\n * @component @name Search\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMjEgMjEtNC4zNC00LjM0IiAvPgogIDxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/search\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"search\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n import { Combobox } from \"bits-ui\";\n import { cn } from \"$lib/utils\";\n import { Check, ChevronDown, Search } from \"@lucide/svelte\";\n import { getFrameworkLabel, type Framework } from '$lib/state/projects.svelte';\n import FrameworkIcon from './framework-icon.svelte';\n import SelectScrollUpButton from '$lib/components/ui/select/select-scroll-up-button.svelte';\n import SelectScrollDownButton from '$lib/components/ui/select/select-scroll-down-button.svelte';\n\n interface Props {\n value: Framework;\n disabled?: boolean;\n }\n\n let { value = $bindable(), disabled = false }: Props = $props();\n\n let open = $state(false);\n let searchQuery = $state('');\n let searchInputRef = $state<HTMLInputElement | null>(null);\n let triggerWrapperRef = $state<HTMLDivElement | null>(null);\n let contentRef = $state<HTMLElement | null>(null);\n\n const frameworks = [\n { value: 'gin', label: 'Gin', description: 'Fast HTTP web framework', group: 'Go' },\n { value: 'fiber', label: 'Fiber', description: 'Express-inspired framework', group: 'Go' },\n { value: 'chi', label: 'Chi', description: 'Lightweight router', group: 'Go' },\n { value: 'fasthttp', label: 'FastHTTP', description: 'High-performance HTTP', group: 'Go' },\n { value: 'stdlib', label: 'Standard Library', description: 'net/http package', group: 'Go' },\n { value: 'custom', label: 'Custom', description: 'Other / manual setup', group: 'Go' },\n { value: 'react', label: 'React', description: 'Frontend UI library', group: 'JavaScript' },\n { value: 'react-native', label: 'React Native', description: 'React Native and Expo apps', group: 'JavaScript' },\n { value: 'svelte', label: 'Svelte', description: 'Frontend compiler framework', group: 'JavaScript' },\n { value: 'vuejs', label: 'Vue.js', description: 'Progressive frontend framework', group: 'JavaScript' },\n { value: 'jquery', label: 'jQuery', description: 'Legacy-friendly AJAX and DOM library', group: 'JavaScript' },\n { value: 'symfony', label: 'Symfony', description: 'PHP full-stack framework (OTLP)', group: 'PHP' },\n { value: 'hono', label: 'Hono', description: 'Lightweight multi-runtime framework (OTLP)', group: 'Backend' },\n { value: 'cloudflare', label: 'Cloudflare', description: 'Cloudflare Workers (OTLP Traces)', group: 'Backend' },\n { value: 'opentelemetry', label: 'OpenTelemetry', description: 'Vendor-neutral observability', group: 'Backend' },\n { value: 'flutter', label: 'Flutter', description: 'Mobile UI framework', group: 'Mobile' },\n { value: 'android', label: 'Android', description: 'Native Android (Kotlin/Java)', group: 'Mobile' },\n ] as const;\n\n const selectedFrameworkLabel = $derived(getFrameworkLabel(value));\n\n const query = $derived(searchQuery.toLowerCase().trim());\n\n const filteredFrameworks = $derived(\n query === ''\n ? frameworks\n : frameworks.filter(f =>\n f.label.toLowerCase().includes(query) ||\n f.description.toLowerCase().includes(query) ||\n f.group.toLowerCase().includes(query)\n )\n );\n\n const goFrameworks = $derived(filteredFrameworks.filter(f => f.group === 'Go'));\n const jsFrameworks = $derived(filteredFrameworks.filter(f => f.group === 'JavaScript'));\n const phpFrameworks = $derived(filteredFrameworks.filter(f => f.group === 'PHP'));\n const backendFrameworks = $derived(filteredFrameworks.filter(f => f.group === 'Backend'));\n const mobileFrameworks = $derived(filteredFrameworks.filter(f => f.group === 'Mobile'));\n\n function handleOpenChange(isOpen: boolean) {\n open = isOpen;\n if (!isOpen) {\n searchQuery = '';\n } else {\n requestAnimationFrame(() => {\n searchInputRef?.focus();\n if (contentRef && triggerWrapperRef) {\n contentRef.style.width = `${triggerWrapperRef.offsetWidth}px`;\n }\n });\n }\n }\n</script>\n\n<Combobox.Root type=\"single\" bind:value bind:open onOpenChange={handleOpenChange}>\n <div class=\"relative w-full\" bind:this={triggerWrapperRef}>\n <Combobox.Input\n {disabled}\n readonly\n defaultValue={selectedFrameworkLabel}\n class=\"absolute inset-0 w-full h-full opacity-0 pointer-events-none\"\n tabindex={-1}\n />\n <Combobox.Trigger\n {disabled}\n data-slot=\"select-trigger\"\n data-size=\"default\"\n class={cn(\n \"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={value} />\n <span>{selectedFrameworkLabel}</span>\n </div>\n <ChevronDown class=\"size-4 opacity-50\" />\n </Combobox.Trigger>\n </div>\n\n <Combobox.Portal>\n <Combobox.Content\n bind:ref={contentRef}\n sideOffset={4}\n preventScroll={true}\n class={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 min-w-[8rem] rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\"\n )}\n >\n <div class=\"flex items-center border-b px-3 py-2\">\n <Search class=\"mr-2 size-4 shrink-0 opacity-50\" />\n <input\n bind:this={searchInputRef}\n bind:value={searchQuery}\n placeholder=\"Search frameworks...\"\n class=\"flex h-7 w-full rounded-md bg-transparent text-sm outline-none placeholder:text-muted-foreground\"\n />\n </div>\n\n <SelectScrollUpButton />\n <Combobox.Viewport class=\"w-full max-h-72 overflow-y-auto scroll-my-1 p-1\">\n {#if filteredFrameworks.length === 0}\n <div class=\"py-4 text-center text-sm text-muted-foreground\">No frameworks found</div>\n {:else}\n {#if goFrameworks.length > 0}\n <Combobox.Group>\n <Combobox.GroupHeading class=\"px-2 py-1.5 text-xs font-semibold text-muted-foreground\">Go</Combobox.GroupHeading>\n {#each goFrameworks as fw}\n <Combobox.Item\n value={fw.value}\n class={cn(\n \"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n {#snippet children({ selected })}\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={fw.value} />\n <div class=\"flex flex-col\">\n <span class=\"font-medium\">{fw.label}</span>\n <span class=\"text-xs text-muted-foreground\">{fw.description}</span>\n </div>\n </div>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Combobox.Item>\n {/each}\n </Combobox.Group>\n {/if}\n {#if jsFrameworks.length > 0}\n <Combobox.Group>\n <Combobox.GroupHeading class=\"px-2 py-1.5 text-xs font-semibold text-muted-foreground\">JavaScript</Combobox.GroupHeading>\n {#each jsFrameworks as fw}\n <Combobox.Item\n value={fw.value}\n class={cn(\n \"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n {#snippet children({ selected })}\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={fw.value} />\n <div class=\"flex flex-col\">\n <span class=\"font-medium\">{fw.label}</span>\n <span class=\"text-xs text-muted-foreground\">{fw.description}</span>\n </div>\n </div>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Combobox.Item>\n {/each}\n </Combobox.Group>\n {/if}\n {#if phpFrameworks.length > 0}\n <Combobox.Group>\n <Combobox.GroupHeading class=\"px-2 py-1.5 text-xs font-semibold text-muted-foreground\">PHP</Combobox.GroupHeading>\n {#each phpFrameworks as fw}\n <Combobox.Item\n value={fw.value}\n class={cn(\n \"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n {#snippet children({ selected })}\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={fw.value} />\n <div class=\"flex flex-col\">\n <span class=\"font-medium\">{fw.label}</span>\n <span class=\"text-xs text-muted-foreground\">{fw.description}</span>\n </div>\n </div>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Combobox.Item>\n {/each}\n </Combobox.Group>\n {/if}\n {#if backendFrameworks.length > 0}\n <Combobox.Group>\n <Combobox.GroupHeading class=\"px-2 py-1.5 text-xs font-semibold text-muted-foreground\">Backend</Combobox.GroupHeading>\n {#each backendFrameworks as fw}\n <Combobox.Item\n value={fw.value}\n class={cn(\n \"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n {#snippet children({ selected })}\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={fw.value} />\n <div class=\"flex flex-col\">\n <span class=\"font-medium\">{fw.label}</span>\n <span class=\"text-xs text-muted-foreground\">{fw.description}</span>\n </div>\n </div>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Combobox.Item>\n {/each}\n </Combobox.Group>\n {/if}\n {#if mobileFrameworks.length > 0}\n <Combobox.Group>\n <Combobox.GroupHeading class=\"px-2 py-1.5 text-xs font-semibold text-muted-foreground\">Mobile</Combobox.GroupHeading>\n {#each mobileFrameworks as fw}\n <Combobox.Item\n value={fw.value}\n class={cn(\n \"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n {#snippet children({ selected })}\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={fw.value} />\n <div class=\"flex flex-col\">\n <span class=\"font-medium\">{fw.label}</span>\n <span class=\"text-xs text-muted-foreground\">{fw.description}</span>\n </div>\n </div>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Combobox.Item>\n {/each}\n </Combobox.Group>\n {/if}\n {/if}\n </Combobox.Viewport>\n <SelectScrollDownButton />\n </Combobox.Content>\n </Combobox.Portal>\n</Combobox.Root>\n"],"names":["value","$.prop","$$props","onValueChange","noop","name","disabled","open","onOpenChange","onOpenChangeComplete","loop","scrollAlignment","required","items","allowDeselect","inputValue","defaultValue","watch","rootState","SelectRootState","boxWith","v","FloatingLayer","node","item","$$anchor","ListboxHiddenInput","$$render","consequent","$$value","consequent_1","alternate","id","useId","ref","clearOnDeselect","restProps","$.rest_props","inputState","SelectInputState","mergedProps","mergeProps","FloatingLayer_Anchor","$.snippet","node_2","input","root_3","$.attribute_effect","type","triggerState","SelectComboTriggerState","$.derived","node_1","button","root_2","props","iconNode","Icon","$.noop","$.state","searchQuery","searchInputRef","triggerWrapperRef","contentRef","frameworks","selectedFrameworkLabel","getFrameworkLabel","query","$.get","filteredFrameworks","f","goFrameworks","jsFrameworks","phpFrameworks","backendFrameworks","mobileFrameworks","handleOpenChange","isOpen","$.set","Combobox_Root","div","$.first_child","fragment_1","Combobox_Input","$0","cn","Combobox_Trigger","div_1","fragment_2","FrameworkIcon","node_3","span","$.sibling","ChevronDown","node_4","Combobox_Portal","Combobox_Content","div_2","fragment_4","Search","node_7","$.remove_input_defaults","SelectScrollUpButton","node_8","Combobox_Viewport","div_3","root_6","Combobox_Group","Combobox_GroupHeading","$.each","node_14","fw","children","$$arg0","selected","div_4","fragment_10","node_16","div_5","span_1","span_2","Check","$.set_text","text_2","text_3","Combobox_Item","consequent_2","Combobox_Group_1","Combobox_GroupHeading_1","node_21","div_6","fragment_15","node_23","div_7","span_3","span_4","consequent_3","text_5","text_6","Combobox_Item_1","consequent_4","Combobox_Group_2","Combobox_GroupHeading_2","node_28","div_8","fragment_20","node_30","div_9","span_5","span_6","consequent_5","text_8","text_9","Combobox_Item_2","consequent_6","Combobox_Group_3","Combobox_GroupHeading_3","node_35","div_10","fragment_25","node_37","div_11","span_7","span_8","consequent_7","text_11","text_12","Combobox_Item_3","consequent_8","Combobox_Group_4","Combobox_GroupHeading_4","node_42","div_12","fragment_30","node_44","div_13","span_9","span_10","consequent_9","text_14","text_15","Combobox_Item_4","consequent_10","SelectScrollDownButton","node_46"],"mappings":"00BAAA,cAUEA,EAAKC,EAAAC,EAAA,QAAA,EAAA,EACLC,wBAAgBC,EAAI,EACpBC,eAAO,EAAE,EACTC,mBAAW,EAAK,EAEhBC,gBAAiB,EAAK,EACtBC,uBAAeJ,EAAI,EACnBK,+BAAuBL,EAAI,EAC3BM,gBAAO,EAAK,EACZC,0BAAkB,SAAS,EAC3BC,mBAAW,EAAK,EAChBC,EAAKZ,EAAAC,EAAA,QAAA,GAAA,IAAA,CAAA,CAAA,EACLY,wBAAgB,EAAI,EACpBC,qBAAa,EAAE,KAIZf,EAAK,IAAK,OAAW,OAClBgB,EAAYd,EAAA,OAAY,SAAW,GAAE,CAAA,EAC3CF,EAAQgB,CAAY,CACrB,CAEAC,GAAM,IAAG,IACFjB,EAAK,EAAA,IACL,CACDA,EAAK,IAAK,QACdA,EAAKE,EAAA,OAAY,S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,CAAE,EAAC,WAAW,YAThE,IAAA3B,GAAAjC,EAAA,IAAAkC,GACH,mYAAkY,CAAA,qBAHzYgG,EAAS5J,EAAA,aACC,OAAA2C,EAAA2C,CAAE,EAAC,iCAKA,SAAAC,yFAVrBrC,EAAgB,EAAC,OAAS,GAAChD,EAAA2J,EAAA,0BA3G/BjH,CAAkB,EAAC,SAAW,EAAC1C,GAAAC,EAAA,EAAAD,GAAAI,GAAA,EAAA,sDAuIvCwJ,GAAsBC,GAAA,EAAA,KAjJlB3I,GAAA,IAAAuB,EAEeR,CAAW,SAAXA,EAAW/B,EAAA,CAAA,qHAxC3C","x_google_ignoreList":[0,1,2,3]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/2aB7Aq1L.js b/backend/static/frontend/_app/immutable/chunks/2aB7Aq1L.js
deleted file mode 100644
index 003de0ac..00000000
--- a/backend/static/frontend/_app/immutable/chunks/2aB7Aq1L.js
+++ /dev/null
@@ -1 +0,0 @@
-import{p as s,i as R,r as N,s as F}from"./DMODTt3n.js";import{p as E,d as C,c as b,b as l,a as I,m as T,g as e,u as c,f as j,e as B,r as U,o as Z,w as Et,k as It,h as G,i as d,b9 as At,K as Pt,a1 as Kt,Z as St,s as Rt}from"./B2WdN-7r.js";import{c as Y}from"./BAcG0-U_.js";import{u as _t,v as Ht,o as Mt,C as wt,x as zt,y as Lt,G as Wt,i as Bt,P as Ut,w as bt,n as st,F as Gt,d as Vt,e as Zt,g as mt,a as jt,b as qt}from"./CAQEdoSh.js";import{m as V,b as v,s as Tt,a as Ot,e as Dt,d as Jt,c as xt}from"./DWAABZDo.js";import{b as H,s as yt,d as Ct}from"./DH0tcjsQ.js";import{o as Qt}from"./Cg3qFI0z.js";var Xt=Et('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),Yt=j("<span><!></span>");function $t(h,t){E(t,!0);let r=s(t,"id",19,_t),o=s(t,"width",3,10),n=s(t,"height",3,5),a=N(t,["$$slots","$$events","$$legacy","id","children","child","width","height"]);const u=c(()=>V(a,{id:r()}));var m=C(),g=b(m);{var P=p=>{var y=C(),w=b(y);T(w,()=>t.child,()=>({props:e(u)})),l(p,y)},_=p=>{var y=Yt();H(y,()=>({...e(u)}));var w=B(y);{var M=f=>{var i=C(),D=b(i);T(D,()=>t.children??Z),l(f,i)},O=f=>{var i=Xt();It(()=>{yt(i,"width",o()),yt(i,"height",n())}),l(f,i)};R(w,f=>{t.children?f(M):f(O,!1)})}U(y),l(p,y)};R(g,p=>{t.child?p(P):p(_,!1)})}l(h,m),I()}function te(h,t){E(t,!0);let r=s(t,"id",19,_t),o=s(t,"ref",15,null),n=N(t,["$$slots","$$events","$$legacy","id","ref"]);const a=Ht.create({id:v(()=>r()),ref:v(()=>o(),m=>o(m))}),u=c(()=>V(n,a.props));$t(h,F(()=>e(u))),I()}class ct{#r;#e;#t=null;constructor(t,r){this.#e=t,this.#r=r,this.stop=this.stop.bind(this),this.start=this.start.bind(this),Mt(this.stop)}#o(){this.#t!==null&&(window.clearTimeout(this.#t),this.#t=null)}stop(){this.#o()}start(...t){this.#o(),this.#t=window.setTimeout(()=>{this.#t=null,this.#e(...t)},this.#r)}}const kt=Jt({component:"tooltip",parts:["content","trigger"]}),Ft=new wt("Tooltip.Provider"),pt=new wt("Tooltip.Root");class Nt{static create(t){return Ft.set(new Nt(t))}opts;#r=G(!0);get isOpenDelayed(){return e(this.#r)}set isOpenDelayed(t){d(this.#r,t,!0)}isPointerInTransit=Tt(!1);#e;#t=G(null);constructor(t){this.opts=t,this.#e=new ct(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current)}#o=()=>{this.opts.skipDelayDuration.current!==0&&this.#e.start()};#i=()=>{this.#e.stop()};onOpen=t=>{e(this.#t)&&e(this.#t)!==t&&e(this.#t).handleClose(),this.#i(),this.isOpenDelayed=!1,d(this.#t,t,!0)};onClose=t=>{e(this.#t)===t&&d(this.#t,null),this.#o()};isTooltipOpen=t=>e(this.#t)===t}class ft{static create(t){return pt.set(new ft(t,Ft.get()))}opts;provider;#r=c(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return e(this.#r)}set delayDuration(t){d(this.#r,t)}#e=c(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return e(this.#e)}set disableHoverableContent(t){d(this.#e,t)}#t=c(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return e(this.#t)}set disableCloseOnTriggerClick(t){d(this.#t,t)}#o=c(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return e(this.#o)}set disabled(t){d(this.#o,t)}#i=c(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return e(this.#i)}set ignoreNonKeyboardFocus(t){d(this.#i,t)}#a=G(null);get contentNode(){return e(this.#a)}set contentNode(t){d(this.#a,t,!0)}contentPresence;#l=G(null);get triggerNode(){return e(this.#l)}set triggerNode(t){d(this.#l,t,!0)}#n=G(!1);#s;#d=c(()=>this.opts.open.current?e(this.#n)?"delayed-open":"instant-open":"closed");get stateAttr(){return e(this.#d)}set stateAttr(t){d(this.#d,t)}constructor(t,r){this.opts=t,this.provider=r,this.#s=new ct(()=>{d(this.#n,!0),this.opts.open.current=!0},this.delayDuration??0),this.contentPresence=new Ut({open:this.opts.open,ref:v(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),bt(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#s=new ct(()=>{d(this.#n,!0),this.opts.open.current=!0},this.delayDuration))}),bt(()=>this.opts.open.current,o=>{o?this.provider.onOpen(this):this.provider.onClose(this)},{lazy:!0})}handleOpen=()=>{this.#s.stop(),d(this.#n,!1),this.opts.open.current=!0};handleClose=()=>{this.#s.stop(),this.opts.open.current=!1};#h=()=>{this.#s.stop();const t=!this.provider.isOpenDelayed,r=this.delayDuration??0;t||r===0?(d(this.#n,r>0&&t,!0),this.opts.open.current=!0):this.#s.start()};onTriggerEnter=()=>{this.#h()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#s.stop()}}class gt{static create(t){return new gt(t,pt.get())}opts;root;attachment;#r=Tt(!1);#e=G(!1);#t=c(()=>this.opts.disabled.current||this.root.disabled);domContext;#o=null;constructor(t,r){this.opts=t,this.root=r,this.domContext=new zt(t.ref),this.attachment=Ot(this.opts.ref,o=>this.root.triggerNode=o)}#i=()=>{this.#o!==null&&(clearTimeout(this.#o),this.#o=null)};handlePointerUp=()=>{this.#r.current=!1};#a=()=>{e(this.#t)||(this.#r.current=!1)};#l=()=>{e(this.#t)||(this.#r.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))};#n=t=>{if(!e(this.#t)&&t.pointerType!=="touch"){if(this.root.provider.isPointerInTransit.current){this.#i(),this.#o=window.setTimeout(()=>{this.root.provider.isPointerInTransit.current&&(this.root.provider.isPointerInTransit.current=!1,this.root.onTriggerEnter(),d(this.#e,!0))},250);return}this.root.onTriggerEnter(),d(this.#e,!0)}};#s=t=>{e(this.#t)||t.pointerType!=="touch"&&(e(this.#e)||(this.#i(),this.root.provider.isPointerInTransit.current=!1,this.root.onTriggerEnter(),d(this.#e,!0)))};#d=()=>{e(this.#t)||(this.#i(),this.root.onTriggerLeave(),d(this.#e,!1))};#h=t=>{this.#r.current||e(this.#t)||this.root.ignoreNonKeyboardFocus&&!Lt(t.currentTarget)||this.root.handleOpen()};#c=()=>{e(this.#t)||this.root.handleClose()};#p=()=>{this.root.disableCloseOnTriggerClick||e(this.#t)||this.root.handleClose()};#u=c(()=>({id:this.opts.id.current,"aria-describedby":this.root.opts.open.current?this.root.contentNode?.id:void 0,"data-state":this.root.stateAttr,"data-disabled":Dt(e(this.#t)),"data-delay-duration":`${this.root.delayDuration}`,[kt.trigger]:"",tabindex:e(this.#t)?void 0:0,disabled:this.opts.disabled.current,onpointerup:this.#a,onpointerdown:this.#l,onpointerenter:this.#n,onpointermove:this.#s,onpointerleave:this.#d,onfocus:this.#h,onblur:this.#c,onclick:this.#p,...this.attachment}));get props(){return e(this.#u)}set props(t){d(this.#u,t)}}class vt{static create(t){return new vt(t,pt.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=Ot(this.opts.ref,o=>this.root.contentNode=o),new Wt({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()},setIsPointerInTransit:o=>{this.root.provider.isPointerInTransit.current=o},transitTimeout:this.root.provider.opts.skipDelayDuration.current}),Qt(()=>At(window,"scroll",o=>{const n=o.target;n&&n.contains(this.root.triggerNode)&&this.root.handleClose()}))}onInteractOutside=t=>{if(Bt(t.target)&&this.root.triggerNode?.contains(t.target)&&this.root.disableCloseOnTriggerClick){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current?.(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#r=c(()=>({open:this.root.opts.open.current}));get snippetProps(){return e(this.#r)}set snippetProps(t){d(this.#r,t)}#e=c(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":Dt(this.root.disabled),style:{pointerEvents:"auto",outline:"none"},[kt.content]:"",...this.attachment}));get props(){return e(this.#e)}set props(t){d(this.#e,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function ee(h,t){E(t,!0);let r=s(t,"open",15,!1),o=s(t,"onOpenChange",3,st),n=s(t,"onOpenChangeComplete",3,st);ft.create({open:v(()=>r(),a=>{r(a),o()(a)}),delayDuration:v(()=>t.delayDuration),disableCloseOnTriggerClick:v(()=>t.disableCloseOnTriggerClick),disableHoverableContent:v(()=>t.disableHoverableContent),ignoreNonKeyboardFocus:v(()=>t.ignoreNonKeyboardFocus),disabled:v(()=>t.disabled),onOpenChangeComplete:v(()=>n())}),Gt(h,{tooltip:!0,children:(a,u)=>{var m=C(),g=b(m);T(g,()=>t.children??Z),l(a,m)},$$slots:{default:!0}}),I()}var re=j("<div><div><!></div></div>"),oe=j("<div><div><!></div></div>");function se(h,t){const r=Pt();E(t,!0);let o=s(t,"id",19,()=>xt(r)),n=s(t,"ref",15,null),a=s(t,"side",3,"top"),u=s(t,"sideOffset",3,0),m=s(t,"align",3,"center"),g=s(t,"avoidCollisions",3,!0),P=s(t,"arrowPadding",3,0),_=s(t,"sticky",3,"partial"),p=s(t,"hideWhenDetached",3,!1),y=s(t,"collisionPadding",3,0),w=s(t,"onInteractOutside",3,st),M=s(t,"onEscapeKeydown",3,st),O=s(t,"forceMount",3,!1),f=N(t,["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount"]);const i=vt.create({id:v(()=>o()),ref:v(()=>n(),A=>n(A)),onInteractOutside:v(()=>w()),onEscapeKeydown:v(()=>M())}),D=c(()=>({side:a(),sideOffset:u(),align:m(),avoidCollisions:g(),arrowPadding:P(),sticky:_(),hideWhenDetached:p(),collisionPadding:y(),strategy:t.strategy})),z=c(()=>V(f,e(D),i.props));var L=C(),it=b(L);{var $=A=>{Vt(A,F(()=>e(z),()=>i.popperProps,{get enabled(){return i.root.opts.open.current},get id(){return o()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return i.opts.ref},tooltip:!0,get shouldRender(){return i.shouldRender},popper:(lt,tt)=>{let q=()=>tt?.().props,dt=()=>tt?.().wrapperProps;const et=c(()=>V(q(),{style:mt("tooltip")}));var J=C(),ht=b(J);{var rt=x=>{var k=C(),K=b(k);{let Q=c(()=>({props:e(et),wrapperProps:dt(),...i.snippetProps}));T(K,()=>t.child,()=>e(Q))}l(x,k)},ot=x=>{var k=re();H(k,()=>({...dt()}));var K=B(k);H(K,()=>({...e(et)}));var Q=B(K);T(Q,()=>t.children??Z),U(K),U(k),l(x,k)};R(ht,x=>{t.child?x(rt):x(ot,!1)})}l(lt,J)},$$slots:{popper:!0}}))},nt=A=>{var at=C(),lt=b(at);{var tt=q=>{Zt(q,F(()=>e(z),()=>i.popperProps,{get open(){return i.root.opts.open.current},get id(){return o()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return i.opts.ref},tooltip:!0,get shouldRender(){return i.shouldRender},popper:(et,J)=>{let ht=()=>J?.().props,rt=()=>J?.().wrapperProps;const ot=c(()=>V(ht(),{style:mt("tooltip")}));var x=C(),k=b(x);{var K=W=>{var S=C(),X=b(S);{let ut=c(()=>({props:e(ot),wrapperProps:rt(),...i.snippetProps}));T(X,()=>t.child,()=>e(ut))}l(W,S)},Q=W=>{var S=oe();H(S,()=>({...rt()}));var X=B(S);H(X,()=>({...e(ot)}));var ut=B(X);T(ut,()=>t.children??Z),U(X),U(S),l(W,S)};R(k,W=>{t.child?W(K):W(Q,!1)})}l(et,x)},$$slots:{popper:!0}}))};R(lt,q=>{O()||q(tt)},!0)}l(A,at)};R(it,A=>{O()?A($):A(nt,!1)})}l(h,L),I()}var ie=j("<button><!></button>");function ne(h,t){const r=Pt();E(t,!0);let o=s(t,"id",19,()=>xt(r)),n=s(t,"disabled",3,!1),a=s(t,"type",3,"button"),u=s(t,"ref",15,null),m=N(t,["$$slots","$$events","$$legacy","children","child","id","disabled","type","ref"]);const g=gt.create({id:v(()=>o()),disabled:v(()=>n()??!1),ref:v(()=>u(),_=>u(_))}),P=c(()=>V(m,g.props,{type:a()}));jt(h,{get id(){return o()},get ref(){return g.opts.ref},tooltip:!0,children:(_,p)=>{var y=C(),w=b(y);{var M=f=>{var i=C(),D=b(i);T(D,()=>t.child,()=>({props:e(P)})),l(f,i)},O=f=>{var i=ie();H(i,()=>({...e(P)}));var D=B(i);T(D,()=>t.children??Z),U(i),l(f,i)};R(w,f=>{t.child?f(M):f(O,!1)})}l(_,y)},$$slots:{default:!0}}),I()}function ae(h,t){E(t,!0);let r=s(t,"ref",15,null),o=N(t,["$$slots","$$events","$$legacy","ref"]);te(h,F(()=>o,{get ref(){return r()},set ref(n){r(n)}})),I()}function me(h,t){E(t,!0);let r=s(t,"open",15,!1),o=N(t,["$$slots","$$events","$$legacy","open"]),n=!1,a=null;function u(){n=!1,r(!1),a&&(a(),a=null)}function m(){if(r()&&n){u();return}n=!0,r(!0),setTimeout(()=>{const p=()=>u();document.addEventListener("pointerdown",p),a=()=>document.removeEventListener("pointerdown",p)},0)}function g(p){if(!p&&n){r(!0);return}r(p)}Kt("traceway-tooltip",{toggle:m});var P=C(),_=b(P);Y(_,()=>ee,(p,y)=>{y(p,F(()=>o,{onOpenChange:g,get open(){return r()},set open(w){r(w)}}))}),l(h,P),I()}function ye(h,t){E(t,!0);let r=s(t,"ref",15,null),o=N(t,["$$slots","$$events","$$legacy","ref"]);const n=St("traceway-tooltip");function a(g){n&&(g.preventDefault(),n.toggle())}var u=C(),m=b(u);Y(m,()=>ne,(g,P)=>{P(g,F({"data-slot":"tooltip-trigger",ontouchstart:a},()=>o,{get ref(){return r()},set ref(_){r(_)}}))}),l(h,u),I()}function le(h,t){let r=N(t,["$$slots","$$events","$$legacy"]);var o=C(),n=b(o);Y(n,()=>qt,(a,u)=>{u(a,F(()=>r))}),l(h,o)}var de=j("<div></div>"),he=j("<!> <!>",1);function Ce(h,t){E(t,!0);let r=s(t,"ref",15,null),o=s(t,"sideOffset",3,0),n=s(t,"side",3,"top"),a=N(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","side","children","arrowClasses","portalProps"]);le(h,F(()=>t.portalProps,{children:(u,m)=>{var g=C(),P=b(g);{let _=c(()=>Ct("z-50 max-w-[220px] origin-(--bits-tooltip-content-transform-origin) animate-in rounded-sm border bg-foreground px-3 py-2 text-xs text-background shadow-[none] fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",t.class));Y(P,()=>se,(p,y)=>{y(p,F({"data-slot":"tooltip-content",get sideOffset(){return o()},get side(){return n()},get class(){return e(_)}},()=>a,{get ref(){return r()},set ref(w){r(w)},children:(w,M)=>{var O=he(),f=b(O);T(f,()=>t.children??Z);var i=Rt(f,2);{const D=(z,L)=>{let it=()=>L?.().props;var $=de();H($,nt=>({class:nt,...it()}),[()=>Ct("z-50 size-2.5 rotate-45 border-border bg-foreground","data-[side=top]:border-r data-[side=top]:border-b","data-[side=bottom]:border-t data-[side=bottom]:border-l","data-[side=left]:border-r data-[side=left]:border-b","data-[side=right]:border-r data-[side=right]:border-b","data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_3px)]","data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(50%_-_2px)] data-[side=bottom]:rotate-225","data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2","data-[side=left]:-translate-y-[calc(50%_-_3px)]",t.arrowClasses)]),l(z,$)};Y(i,()=>ae,(z,L)=>{L(z,{child:D,$$slots:{child:!0}})})}l(w,O)},$$slots:{default:!0}}))})}l(u,g)},$$slots:{default:!0}})),I()}export{ye as T,Ce as a,me as b,Nt as c};
diff --git a/backend/static/frontend/_app/immutable/chunks/5D-Broyu.js b/backend/static/frontend/_app/immutable/chunks/5D-Broyu.js
new file mode 100644
index 00000000..88732a5b
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/5D-Broyu.js
@@ -0,0 +1 @@
+import{p as s,i as R,r as N,s as F}from"./DMODTt3n.js";import{p as E,d as C,c as b,b as l,a as I,m as T,g as e,u,f as Z,e as B,r as U,o as q,w as Et,k as It,h as G,i as d,b9 as At,K as Pt,a1 as Kt,Z as St,s as Rt}from"./B2WdN-7r.js";import{c as Y}from"./BAcG0-U_.js";import{u as _t,o as Ht,p as Mt,C as wt,q as zt,r as Lt,G as Wt,i as Bt,c as Ut,w as bt,n as st,F as Gt,d as Vt,e as qt,g as mt,a as Zt,P as jt}from"./CjLH05gQ.js";import{m as V,b as v,s as Tt,a as Ot,e as Dt,d as Jt,c as xt}from"./BDd6-VcB.js";import{b as H,s as yt,d as Ct}from"./DH0tcjsQ.js";import{o as Qt}from"./Cg3qFI0z.js";var Xt=Et('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),Yt=Z("<span><!></span>");function $t(h,t){E(t,!0);let r=s(t,"id",19,_t),o=s(t,"width",3,10),n=s(t,"height",3,5),a=N(t,["$$slots","$$events","$$legacy","id","children","child","width","height"]);const c=u(()=>V(a,{id:r()}));var m=C(),g=b(m);{var P=p=>{var y=C(),w=b(y);T(w,()=>t.child,()=>({props:e(c)})),l(p,y)},_=p=>{var y=Yt();H(y,()=>({...e(c)}));var w=B(y);{var M=f=>{var i=C(),D=b(i);T(D,()=>t.children??q),l(f,i)},O=f=>{var i=Xt();It(()=>{yt(i,"width",o()),yt(i,"height",n())}),l(f,i)};R(w,f=>{t.children?f(M):f(O,!1)})}U(y),l(p,y)};R(g,p=>{t.child?p(P):p(_,!1)})}l(h,m),I()}function te(h,t){E(t,!0);let r=s(t,"id",19,_t),o=s(t,"ref",15,null),n=N(t,["$$slots","$$events","$$legacy","id","ref"]);const a=Ht.create({id:v(()=>r()),ref:v(()=>o(),m=>o(m))}),c=u(()=>V(n,a.props));$t(h,F(()=>e(c))),I()}class ut{#r;#e;#t=null;constructor(t,r){this.#e=t,this.#r=r,this.stop=this.stop.bind(this),this.start=this.start.bind(this),Mt(this.stop)}#o(){this.#t!==null&&(window.clearTimeout(this.#t),this.#t=null)}stop(){this.#o()}start(...t){this.#o(),this.#t=window.setTimeout(()=>{this.#t=null,this.#e(...t)},this.#r)}}const kt=Jt({component:"tooltip",parts:["content","trigger"]}),Ft=new wt("Tooltip.Provider"),pt=new wt("Tooltip.Root");class Nt{static create(t){return Ft.set(new Nt(t))}opts;#r=G(!0);get isOpenDelayed(){return e(this.#r)}set isOpenDelayed(t){d(this.#r,t,!0)}isPointerInTransit=Tt(!1);#e;#t=G(null);constructor(t){this.opts=t,this.#e=new ut(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current)}#o=()=>{this.opts.skipDelayDuration.current!==0&&this.#e.start()};#i=()=>{this.#e.stop()};onOpen=t=>{e(this.#t)&&e(this.#t)!==t&&e(this.#t).handleClose(),this.#i(),this.isOpenDelayed=!1,d(this.#t,t,!0)};onClose=t=>{e(this.#t)===t&&d(this.#t,null),this.#o()};isTooltipOpen=t=>e(this.#t)===t}class ft{static create(t){return pt.set(new ft(t,Ft.get()))}opts;provider;#r=u(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return e(this.#r)}set delayDuration(t){d(this.#r,t)}#e=u(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return e(this.#e)}set disableHoverableContent(t){d(this.#e,t)}#t=u(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return e(this.#t)}set disableCloseOnTriggerClick(t){d(this.#t,t)}#o=u(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return e(this.#o)}set disabled(t){d(this.#o,t)}#i=u(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return e(this.#i)}set ignoreNonKeyboardFocus(t){d(this.#i,t)}#a=G(null);get contentNode(){return e(this.#a)}set contentNode(t){d(this.#a,t,!0)}contentPresence;#l=G(null);get triggerNode(){return e(this.#l)}set triggerNode(t){d(this.#l,t,!0)}#n=G(!1);#s;#d=u(()=>this.opts.open.current?e(this.#n)?"delayed-open":"instant-open":"closed");get stateAttr(){return e(this.#d)}set stateAttr(t){d(this.#d,t)}constructor(t,r){this.opts=t,this.provider=r,this.#s=new ut(()=>{d(this.#n,!0),this.opts.open.current=!0},this.delayDuration??0),this.contentPresence=new Ut({open:this.opts.open,ref:v(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),bt(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#s=new ut(()=>{d(this.#n,!0),this.opts.open.current=!0},this.delayDuration))}),bt(()=>this.opts.open.current,o=>{o?this.provider.onOpen(this):this.provider.onClose(this)},{lazy:!0})}handleOpen=()=>{this.#s.stop(),d(this.#n,!1),this.opts.open.current=!0};handleClose=()=>{this.#s.stop(),this.opts.open.current=!1};#h=()=>{this.#s.stop();const t=!this.provider.isOpenDelayed,r=this.delayDuration??0;t||r===0?(d(this.#n,r>0&&t,!0),this.opts.open.current=!0):this.#s.start()};onTriggerEnter=()=>{this.#h()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#s.stop()}}class gt{static create(t){return new gt(t,pt.get())}opts;root;attachment;#r=Tt(!1);#e=G(!1);#t=u(()=>this.opts.disabled.current||this.root.disabled);domContext;#o=null;constructor(t,r){this.opts=t,this.root=r,this.domContext=new zt(t.ref),this.attachment=Ot(this.opts.ref,o=>this.root.triggerNode=o)}#i=()=>{this.#o!==null&&(clearTimeout(this.#o),this.#o=null)};handlePointerUp=()=>{this.#r.current=!1};#a=()=>{e(this.#t)||(this.#r.current=!1)};#l=()=>{e(this.#t)||(this.#r.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))};#n=t=>{if(!e(this.#t)&&t.pointerType!=="touch"){if(this.root.provider.isPointerInTransit.current){this.#i(),this.#o=window.setTimeout(()=>{this.root.provider.isPointerInTransit.current&&(this.root.provider.isPointerInTransit.current=!1,this.root.onTriggerEnter(),d(this.#e,!0))},250);return}this.root.onTriggerEnter(),d(this.#e,!0)}};#s=t=>{e(this.#t)||t.pointerType!=="touch"&&(e(this.#e)||(this.#i(),this.root.provider.isPointerInTransit.current=!1,this.root.onTriggerEnter(),d(this.#e,!0)))};#d=()=>{e(this.#t)||(this.#i(),this.root.onTriggerLeave(),d(this.#e,!1))};#h=t=>{this.#r.current||e(this.#t)||this.root.ignoreNonKeyboardFocus&&!Lt(t.currentTarget)||this.root.handleOpen()};#u=()=>{e(this.#t)||this.root.handleClose()};#p=()=>{this.root.disableCloseOnTriggerClick||e(this.#t)||this.root.handleClose()};#c=u(()=>({id:this.opts.id.current,"aria-describedby":this.root.opts.open.current?this.root.contentNode?.id:void 0,"data-state":this.root.stateAttr,"data-disabled":Dt(e(this.#t)),"data-delay-duration":`${this.root.delayDuration}`,[kt.trigger]:"",tabindex:e(this.#t)?void 0:0,disabled:this.opts.disabled.current,onpointerup:this.#a,onpointerdown:this.#l,onpointerenter:this.#n,onpointermove:this.#s,onpointerleave:this.#d,onfocus:this.#h,onblur:this.#u,onclick:this.#p,...this.attachment}));get props(){return e(this.#c)}set props(t){d(this.#c,t)}}class vt{static create(t){return new vt(t,pt.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=Ot(this.opts.ref,o=>this.root.contentNode=o),new Wt({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()},setIsPointerInTransit:o=>{this.root.provider.isPointerInTransit.current=o},transitTimeout:this.root.provider.opts.skipDelayDuration.current}),Qt(()=>At(window,"scroll",o=>{const n=o.target;n&&n.contains(this.root.triggerNode)&&this.root.handleClose()}))}onInteractOutside=t=>{if(Bt(t.target)&&this.root.triggerNode?.contains(t.target)&&this.root.disableCloseOnTriggerClick){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current?.(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#r=u(()=>({open:this.root.opts.open.current}));get snippetProps(){return e(this.#r)}set snippetProps(t){d(this.#r,t)}#e=u(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":Dt(this.root.disabled),style:{pointerEvents:"auto",outline:"none"},[kt.content]:"",...this.attachment}));get props(){return e(this.#e)}set props(t){d(this.#e,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function ee(h,t){E(t,!0);let r=s(t,"open",15,!1),o=s(t,"onOpenChange",3,st),n=s(t,"onOpenChangeComplete",3,st);ft.create({open:v(()=>r(),a=>{r(a),o()(a)}),delayDuration:v(()=>t.delayDuration),disableCloseOnTriggerClick:v(()=>t.disableCloseOnTriggerClick),disableHoverableContent:v(()=>t.disableHoverableContent),ignoreNonKeyboardFocus:v(()=>t.ignoreNonKeyboardFocus),disabled:v(()=>t.disabled),onOpenChangeComplete:v(()=>n())}),Gt(h,{tooltip:!0,children:(a,c)=>{var m=C(),g=b(m);T(g,()=>t.children??q),l(a,m)},$$slots:{default:!0}}),I()}var re=Z("<div><div><!></div></div>"),oe=Z("<div><div><!></div></div>");function se(h,t){const r=Pt();E(t,!0);let o=s(t,"id",19,()=>xt(r)),n=s(t,"ref",15,null),a=s(t,"side",3,"top"),c=s(t,"sideOffset",3,0),m=s(t,"align",3,"center"),g=s(t,"avoidCollisions",3,!0),P=s(t,"arrowPadding",3,0),_=s(t,"sticky",3,"partial"),p=s(t,"hideWhenDetached",3,!1),y=s(t,"collisionPadding",3,0),w=s(t,"onInteractOutside",3,st),M=s(t,"onEscapeKeydown",3,st),O=s(t,"forceMount",3,!1),f=N(t,["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount"]);const i=vt.create({id:v(()=>o()),ref:v(()=>n(),A=>n(A)),onInteractOutside:v(()=>w()),onEscapeKeydown:v(()=>M())}),D=u(()=>({side:a(),sideOffset:c(),align:m(),avoidCollisions:g(),arrowPadding:P(),sticky:_(),hideWhenDetached:p(),collisionPadding:y(),strategy:t.strategy})),z=u(()=>V(f,e(D),i.props));var L=C(),it=b(L);{var $=A=>{Vt(A,F(()=>e(z),()=>i.popperProps,{get enabled(){return i.root.opts.open.current},get id(){return o()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return i.opts.ref},tooltip:!0,get shouldRender(){return i.shouldRender},popper:(lt,tt)=>{let j=()=>tt?.().props,dt=()=>tt?.().wrapperProps;const et=u(()=>V(j(),{style:mt("tooltip")}));var J=C(),ht=b(J);{var rt=x=>{var k=C(),K=b(k);{let Q=u(()=>({props:e(et),wrapperProps:dt(),...i.snippetProps}));T(K,()=>t.child,()=>e(Q))}l(x,k)},ot=x=>{var k=re();H(k,()=>({...dt()}));var K=B(k);H(K,()=>({...e(et)}));var Q=B(K);T(Q,()=>t.children??q),U(K),U(k),l(x,k)};R(ht,x=>{t.child?x(rt):x(ot,!1)})}l(lt,J)},$$slots:{popper:!0}}))},nt=A=>{var at=C(),lt=b(at);{var tt=j=>{qt(j,F(()=>e(z),()=>i.popperProps,{get open(){return i.root.opts.open.current},get id(){return o()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return i.opts.ref},tooltip:!0,get shouldRender(){return i.shouldRender},popper:(et,J)=>{let ht=()=>J?.().props,rt=()=>J?.().wrapperProps;const ot=u(()=>V(ht(),{style:mt("tooltip")}));var x=C(),k=b(x);{var K=W=>{var S=C(),X=b(S);{let ct=u(()=>({props:e(ot),wrapperProps:rt(),...i.snippetProps}));T(X,()=>t.child,()=>e(ct))}l(W,S)},Q=W=>{var S=oe();H(S,()=>({...rt()}));var X=B(S);H(X,()=>({...e(ot)}));var ct=B(X);T(ct,()=>t.children??q),U(X),U(S),l(W,S)};R(k,W=>{t.child?W(K):W(Q,!1)})}l(et,x)},$$slots:{popper:!0}}))};R(lt,j=>{O()||j(tt)},!0)}l(A,at)};R(it,A=>{O()?A($):A(nt,!1)})}l(h,L),I()}var ie=Z("<button><!></button>");function ne(h,t){const r=Pt();E(t,!0);let o=s(t,"id",19,()=>xt(r)),n=s(t,"disabled",3,!1),a=s(t,"type",3,"button"),c=s(t,"ref",15,null),m=N(t,["$$slots","$$events","$$legacy","children","child","id","disabled","type","ref"]);const g=gt.create({id:v(()=>o()),disabled:v(()=>n()??!1),ref:v(()=>c(),_=>c(_))}),P=u(()=>V(m,g.props,{type:a()}));Zt(h,{get id(){return o()},get ref(){return g.opts.ref},tooltip:!0,children:(_,p)=>{var y=C(),w=b(y);{var M=f=>{var i=C(),D=b(i);T(D,()=>t.child,()=>({props:e(P)})),l(f,i)},O=f=>{var i=ie();H(i,()=>({...e(P)}));var D=B(i);T(D,()=>t.children??q),U(i),l(f,i)};R(w,f=>{t.child?f(M):f(O,!1)})}l(_,y)},$$slots:{default:!0}}),I()}function ae(h,t){E(t,!0);let r=s(t,"ref",15,null),o=N(t,["$$slots","$$events","$$legacy","ref"]);te(h,F(()=>o,{get ref(){return r()},set ref(n){r(n)}})),I()}function me(h,t){E(t,!0);let r=s(t,"open",15,!1),o=N(t,["$$slots","$$events","$$legacy","open"]),n=!1,a=null;function c(){n=!1,r(!1),a&&(a(),a=null)}function m(){if(r()&&n){c();return}n=!0,r(!0),setTimeout(()=>{const p=()=>c();document.addEventListener("pointerdown",p),a=()=>document.removeEventListener("pointerdown",p)},0)}function g(p){if(!p&&n){r(!0);return}r(p)}Kt("traceway-tooltip",{toggle:m});var P=C(),_=b(P);Y(_,()=>ee,(p,y)=>{y(p,F(()=>o,{onOpenChange:g,get open(){return r()},set open(w){r(w)}}))}),l(h,P),I()}function ye(h,t){E(t,!0);let r=s(t,"ref",15,null),o=N(t,["$$slots","$$events","$$legacy","ref"]);const n=St("traceway-tooltip");function a(g){n&&(g.preventDefault(),n.toggle())}var c=C(),m=b(c);Y(m,()=>ne,(g,P)=>{P(g,F({"data-slot":"tooltip-trigger",ontouchstart:a},()=>o,{get ref(){return r()},set ref(_){r(_)}}))}),l(h,c),I()}function le(h,t){let r=N(t,["$$slots","$$events","$$legacy"]);var o=C(),n=b(o);Y(n,()=>jt,(a,c)=>{c(a,F(()=>r))}),l(h,o)}var de=Z("<div></div>"),he=Z("<!> <!>",1);function Ce(h,t){E(t,!0);let r=s(t,"ref",15,null),o=s(t,"sideOffset",3,0),n=s(t,"side",3,"top"),a=N(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","side","children","arrowClasses","portalProps"]);le(h,F(()=>t.portalProps,{children:(c,m)=>{var g=C(),P=b(g);{let _=u(()=>Ct("z-50 max-w-[220px] origin-(--bits-tooltip-content-transform-origin) animate-in rounded-sm border bg-foreground px-3 py-2 text-xs text-background shadow-[none] fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",t.class));Y(P,()=>se,(p,y)=>{y(p,F({"data-slot":"tooltip-content",get sideOffset(){return o()},get side(){return n()},get class(){return e(_)}},()=>a,{get ref(){return r()},set ref(w){r(w)},children:(w,M)=>{var O=he(),f=b(O);T(f,()=>t.children??q);var i=Rt(f,2);{const D=(z,L)=>{let it=()=>L?.().props;var $=de();H($,nt=>({class:nt,...it()}),[()=>Ct("z-50 size-2.5 rotate-45 border-border bg-foreground","data-[side=top]:border-r data-[side=top]:border-b","data-[side=bottom]:border-t data-[side=bottom]:border-l","data-[side=left]:border-r data-[side=left]:border-b","data-[side=right]:border-r data-[side=right]:border-b","data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_3px)]","data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(50%_-_2px)] data-[side=bottom]:rotate-225","data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2","data-[side=left]:-translate-y-[calc(50%_-_3px)]",t.arrowClasses)]),l(z,$)};Y(i,()=>ae,(z,L)=>{L(z,{child:D,$$slots:{child:!0}})})}l(w,O)},$$slots:{default:!0}}))})}l(c,g)},$$slots:{default:!0}})),I()}export{ye as T,Ce as a,me as b,Nt as c};
diff --git a/backend/static/frontend/_app/immutable/chunks/2aB7Aq1L.js.map b/backend/static/frontend/_app/immutable/chunks/5D-Broyu.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/2aB7Aq1L.js.map
rename to backend/static/frontend/_app/immutable/chunks/5D-Broyu.js.map
index 6bbb8d6e..0ad48478 100644
--- a/backend/static/frontend/_app/immutable/chunks/2aB7Aq1L.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/5D-Broyu.js.map
@@ -1 +1 @@
-{"version":3,"file":"2aB7Aq1L.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/utilities/arrow/arrow.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-arrow.svelte","../../../../../../node_modules/bits-ui/dist/internal/timeout-fn.js","../../../../../../node_modules/bits-ui/dist/bits/tooltip/tooltip.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/tooltip/components/tooltip.svelte","../../../../../../node_modules/bits-ui/dist/bits/tooltip/components/tooltip-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/tooltip/components/tooltip-trigger.svelte","../../../../../../node_modules/bits-ui/dist/bits/tooltip/components/tooltip-arrow.svelte","../../../../../../src/lib/components/ui/tooltip/tooltip.svelte","../../../../../../src/lib/components/ui/tooltip/tooltip-trigger.svelte","../../../../../../src/lib/components/ui/tooltip/tooltip-portal.svelte","../../../../../../src/lib/components/ui/tooltip/tooltip-content.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport type { ArrowProps } from \"./types.js\";\n\timport { useId } from \"../../../internal/use-id.js\";\n\n\tlet {\n\t\tid = useId(),\n\t\tchildren,\n\t\tchild,\n\t\twidth = 10,\n\t\theight = 5,\n\t\t...restProps\n\t}: ArrowProps = $props();\n\n\tconst mergedProps = $derived(mergeProps(restProps, { id }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<span {...mergedProps}>\n\t\t{#if children}\n\t\t\t{@render children?.()}\n\t\t{:else}\n\t\t\t<svg {width} {height} viewBox=\"0 0 30 10\" preserveAspectRatio=\"none\" data-arrow=\"\">\n\t\t\t\t<polygon points=\"0,0 30,0 15,10\" fill=\"currentColor\" />\n\t\t\t</svg>\n\t\t{/if}\n\t</span>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { FloatingArrowState } from \"../use-floating-layer.svelte.js\";\n\timport { Arrow, type ArrowProps } from \"../../arrow/index.js\";\n\timport { useId } from \"../../../../internal/use-id.js\";\n\n\tlet { id = useId(), ref = $bindable(null), ...restProps }: ArrowProps = $props();\n\n\tconst arrowState = FloatingArrowState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, arrowState.props));\n</script>\n\n<Arrow {...mergedProps} />\n","import { onDestroyEffect } from \"svelte-toolbelt\";\nexport class TimeoutFn {\n #interval;\n #cb;\n #timer = null;\n constructor(cb, interval) {\n this.#cb = cb;\n this.#interval = interval;\n this.stop = this.stop.bind(this);\n this.start = this.start.bind(this);\n onDestroyEffect(this.stop);\n }\n #clear() {\n if (this.#timer !== null) {\n window.clearTimeout(this.#timer);\n this.#timer = null;\n }\n }\n stop() {\n this.#clear();\n }\n start(...args) {\n this.#clear();\n this.#timer = window.setTimeout(() => {\n this.#timer = null;\n this.#cb(...args);\n }, this.#interval);\n }\n}\n","import { onMountEffect, attachRef, DOMContext, simpleBox, boxWith, } from \"svelte-toolbelt\";\nimport { on } from \"svelte/events\";\nimport { Context, watch } from \"runed\";\nimport { isElement, isFocusVisible } from \"../../internal/is.js\";\nimport { createBitsAttrs, boolToEmptyStrOrUndef } from \"../../internal/attrs.js\";\nimport { TimeoutFn } from \"../../internal/timeout-fn.js\";\nimport { GraceArea } from \"../../internal/grace-area.svelte.js\";\nimport { PresenceManager } from \"../../internal/presence-manager.svelte.js\";\nexport const tooltipAttrs = createBitsAttrs({\n component: \"tooltip\",\n parts: [\"content\", \"trigger\"],\n});\nconst TooltipProviderContext = new Context(\"Tooltip.Provider\");\nconst TooltipRootContext = new Context(\"Tooltip.Root\");\nexport class TooltipProviderState {\n static create(opts) {\n return TooltipProviderContext.set(new TooltipProviderState(opts));\n }\n opts;\n isOpenDelayed = $state(true);\n isPointerInTransit = simpleBox(false);\n #timerFn;\n #openTooltip = $state(null);\n constructor(opts) {\n this.opts = opts;\n this.#timerFn = new TimeoutFn(() => {\n this.isOpenDelayed = true;\n }, this.opts.skipDelayDuration.current);\n }\n #startTimer = () => {\n const skipDuration = this.opts.skipDelayDuration.current;\n if (skipDuration === 0) {\n return;\n }\n else {\n this.#timerFn.start();\n }\n };\n #clearTimer = () => {\n this.#timerFn.stop();\n };\n onOpen = (tooltip) => {\n if (this.#openTooltip && this.#openTooltip !== tooltip) {\n this.#openTooltip.handleClose();\n }\n this.#clearTimer();\n this.isOpenDelayed = false;\n this.#openTooltip = tooltip;\n };\n onClose = (tooltip) => {\n if (this.#openTooltip === tooltip) {\n this.#openTooltip = null;\n }\n this.#startTimer();\n };\n isTooltipOpen = (tooltip) => {\n return this.#openTooltip === tooltip;\n };\n}\nexport class TooltipRootState {\n static create(opts) {\n return TooltipRootContext.set(new TooltipRootState(opts, TooltipProviderContext.get()));\n }\n opts;\n provider;\n delayDuration = $derived.by(() => this.opts.delayDuration.current ?? this.provider.opts.delayDuration.current);\n disableHoverableContent = $derived.by(() => this.opts.disableHoverableContent.current ??\n this.provider.opts.disableHoverableContent.current);\n disableCloseOnTriggerClick = $derived.by(() => this.opts.disableCloseOnTriggerClick.current ??\n this.provider.opts.disableCloseOnTriggerClick.current);\n disabled = $derived.by(() => this.opts.disabled.current ?? this.provider.opts.disabled.current);\n ignoreNonKeyboardFocus = $derived.by(() => this.opts.ignoreNonKeyboardFocus.current ??\n this.provider.opts.ignoreNonKeyboardFocus.current);\n contentNode = $state(null);\n contentPresence;\n triggerNode = $state(null);\n #wasOpenDelayed = $state(false);\n #timerFn;\n stateAttr = $derived.by(() => {\n if (!this.opts.open.current)\n return \"closed\";\n return this.#wasOpenDelayed ? \"delayed-open\" : \"instant-open\";\n });\n constructor(opts, provider) {\n this.opts = opts;\n this.provider = provider;\n this.#timerFn = new TimeoutFn(() => {\n this.#wasOpenDelayed = true;\n this.opts.open.current = true;\n }, this.delayDuration ?? 0);\n this.contentPresence = new PresenceManager({\n open: this.opts.open,\n ref: boxWith(() => this.contentNode),\n onComplete: () => {\n this.opts.onOpenChangeComplete.current(this.opts.open.current);\n },\n });\n watch(() => this.delayDuration, () => {\n if (this.delayDuration === undefined)\n return;\n this.#timerFn = new TimeoutFn(() => {\n this.#wasOpenDelayed = true;\n this.opts.open.current = true;\n }, this.delayDuration);\n });\n watch(() => this.opts.open.current, (isOpen) => {\n if (isOpen) {\n this.provider.onOpen(this);\n }\n else {\n this.provider.onClose(this);\n }\n }, { lazy: true });\n }\n handleOpen = () => {\n this.#timerFn.stop();\n this.#wasOpenDelayed = false;\n this.opts.open.current = true;\n };\n handleClose = () => {\n this.#timerFn.stop();\n this.opts.open.current = false;\n };\n #handleDelayedOpen = () => {\n this.#timerFn.stop();\n const shouldSkipDelay = !this.provider.isOpenDelayed;\n const delayDuration = this.delayDuration ?? 0;\n // if no delay needed (either skip delay active or delay is 0), open immediately\n if (shouldSkipDelay || delayDuration === 0) {\n // set wasOpenDelayed based on whether we actually had a delay\n this.#wasOpenDelayed = delayDuration > 0 && shouldSkipDelay;\n this.opts.open.current = true;\n }\n else {\n // use timer for actual delays\n this.#timerFn.start();\n }\n };\n onTriggerEnter = () => {\n this.#handleDelayedOpen();\n };\n onTriggerLeave = () => {\n if (this.disableHoverableContent) {\n this.handleClose();\n }\n else {\n this.#timerFn.stop();\n }\n };\n}\nexport class TooltipTriggerState {\n static create(opts) {\n return new TooltipTriggerState(opts, TooltipRootContext.get());\n }\n opts;\n root;\n attachment;\n #isPointerDown = simpleBox(false);\n #hasPointerMoveOpened = $state(false);\n #isDisabled = $derived.by(() => this.opts.disabled.current || this.root.disabled);\n domContext;\n #transitCheckTimeout = null;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.domContext = new DOMContext(opts.ref);\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.triggerNode = v));\n }\n #clearTransitCheck = () => {\n if (this.#transitCheckTimeout !== null) {\n clearTimeout(this.#transitCheckTimeout);\n this.#transitCheckTimeout = null;\n }\n };\n handlePointerUp = () => {\n this.#isPointerDown.current = false;\n };\n #onpointerup = () => {\n if (this.#isDisabled)\n return;\n this.#isPointerDown.current = false;\n };\n #onpointerdown = () => {\n if (this.#isDisabled)\n return;\n this.#isPointerDown.current = true;\n this.domContext.getDocument().addEventListener(\"pointerup\", () => {\n this.handlePointerUp();\n }, { once: true });\n };\n #onpointerenter = (e) => {\n if (this.#isDisabled)\n return;\n if (e.pointerType === \"touch\")\n return;\n // if in transit, wait briefly to see if user is actually heading to old content or staying here\n if (this.root.provider.isPointerInTransit.current) {\n this.#clearTransitCheck();\n this.#transitCheckTimeout = window.setTimeout(() => {\n // if still in transit after delay, user is likely staying on this trigger\n if (this.root.provider.isPointerInTransit.current) {\n this.root.provider.isPointerInTransit.current = false;\n this.root.onTriggerEnter();\n this.#hasPointerMoveOpened = true;\n }\n }, 250);\n return;\n }\n this.root.onTriggerEnter();\n this.#hasPointerMoveOpened = true;\n };\n #onpointermove = (e) => {\n if (this.#isDisabled)\n return;\n if (e.pointerType === \"touch\")\n return;\n if (this.#hasPointerMoveOpened)\n return;\n // moving within trigger means we're definitely not in transit anymore\n this.#clearTransitCheck();\n this.root.provider.isPointerInTransit.current = false;\n this.root.onTriggerEnter();\n this.#hasPointerMoveOpened = true;\n };\n #onpointerleave = () => {\n if (this.#isDisabled)\n return;\n this.#clearTransitCheck();\n this.root.onTriggerLeave();\n this.#hasPointerMoveOpened = false;\n };\n #onfocus = (e) => {\n if (this.#isPointerDown.current || this.#isDisabled)\n return;\n if (this.root.ignoreNonKeyboardFocus && !isFocusVisible(e.currentTarget))\n return;\n this.root.handleOpen();\n };\n #onblur = () => {\n if (this.#isDisabled)\n return;\n this.root.handleClose();\n };\n #onclick = () => {\n if (this.root.disableCloseOnTriggerClick || this.#isDisabled)\n return;\n this.root.handleClose();\n };\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"aria-describedby\": this.root.opts.open.current\n ? this.root.contentNode?.id\n : undefined,\n \"data-state\": this.root.stateAttr,\n \"data-disabled\": boolToEmptyStrOrUndef(this.#isDisabled),\n \"data-delay-duration\": `${this.root.delayDuration}`,\n [tooltipAttrs.trigger]: \"\",\n tabindex: this.#isDisabled ? undefined : 0,\n disabled: this.opts.disabled.current,\n onpointerup: this.#onpointerup,\n onpointerdown: this.#onpointerdown,\n onpointerenter: this.#onpointerenter,\n onpointermove: this.#onpointermove,\n onpointerleave: this.#onpointerleave,\n onfocus: this.#onfocus,\n onblur: this.#onblur,\n onclick: this.#onclick,\n ...this.attachment,\n }));\n}\nexport class TooltipContentState {\n static create(opts) {\n return new TooltipContentState(opts, TooltipRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.contentNode = v));\n new GraceArea({\n triggerNode: () => this.root.triggerNode,\n contentNode: () => this.root.contentNode,\n enabled: () => this.root.opts.open.current && !this.root.disableHoverableContent,\n onPointerExit: () => {\n if (this.root.provider.isTooltipOpen(this.root)) {\n this.root.handleClose();\n }\n },\n setIsPointerInTransit: (value) => {\n this.root.provider.isPointerInTransit.current = value;\n },\n transitTimeout: this.root.provider.opts.skipDelayDuration.current,\n });\n onMountEffect(() => on(window, \"scroll\", (e) => {\n const target = e.target;\n if (!target)\n return;\n if (target.contains(this.root.triggerNode)) {\n this.root.handleClose();\n }\n }));\n }\n onInteractOutside = (e) => {\n if (isElement(e.target) &&\n this.root.triggerNode?.contains(e.target) &&\n this.root.disableCloseOnTriggerClick) {\n e.preventDefault();\n return;\n }\n this.opts.onInteractOutside.current(e);\n if (e.defaultPrevented)\n return;\n this.root.handleClose();\n };\n onEscapeKeydown = (e) => {\n this.opts.onEscapeKeydown.current?.(e);\n if (e.defaultPrevented)\n return;\n this.root.handleClose();\n };\n onOpenAutoFocus = (e) => {\n e.preventDefault();\n };\n onCloseAutoFocus = (e) => {\n e.preventDefault();\n };\n get shouldRender() {\n return this.root.contentPresence.shouldRender;\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-state\": this.root.stateAttr,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.disabled),\n style: {\n pointerEvents: \"auto\",\n outline: \"none\",\n },\n [tooltipAttrs.content]: \"\",\n ...this.attachment,\n }));\n popperProps = {\n onInteractOutside: this.onInteractOutside,\n onEscapeKeydown: this.onEscapeKeydown,\n onOpenAutoFocus: this.onOpenAutoFocus,\n onCloseAutoFocus: this.onCloseAutoFocus,\n };\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { TooltipRootProps } from \"../types.js\";\n\timport { TooltipRootState } from \"../tooltip.svelte.js\";\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tdisabled,\n\t\tdelayDuration,\n\t\tdisableCloseOnTriggerClick,\n\t\tdisableHoverableContent,\n\t\tignoreNonKeyboardFocus,\n\t\tchildren,\n\t}: TooltipRootProps = $props();\n\n\tTooltipRootState.create({\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tdelayDuration: boxWith(() => delayDuration),\n\t\tdisableCloseOnTriggerClick: boxWith(() => disableCloseOnTriggerClick),\n\t\tdisableHoverableContent: boxWith(() => disableHoverableContent),\n\t\tignoreNonKeyboardFocus: boxWith(() => ignoreNonKeyboardFocus),\n\t\tdisabled: boxWith(() => disabled),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n<FloatingLayer tooltip>\n\t{@render children?.()}\n</FloatingLayer>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TooltipContentProps } from \"../types.js\";\n\timport { TooltipContentState } from \"../tooltip.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport PopperLayer from \"../../utilities/popper-layer/popper-layer.svelte\";\n\timport { getFloatingContentCSSVars } from \"../../../internal/floating-svelte/floating-utils.svelte.js\";\n\timport PopperLayerForceMount from \"../../utilities/popper-layer/popper-layer-force-mount.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tside = \"top\",\n\t\tsideOffset = 0,\n\t\talign = \"center\",\n\t\tavoidCollisions = true,\n\t\tarrowPadding = 0,\n\t\tsticky = \"partial\",\n\t\tstrategy,\n\t\thideWhenDetached = false,\n\t\tcollisionPadding = 0,\n\t\tonInteractOutside = noop,\n\t\tonEscapeKeydown = noop,\n\t\tforceMount = false,\n\t\t...restProps\n\t}: TooltipContentProps = $props();\n\n\tconst contentState = TooltipContentState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tonInteractOutside: boxWith(() => onInteractOutside),\n\t\tonEscapeKeydown: boxWith(() => onEscapeKeydown),\n\t});\n\n\tconst floatingProps = $derived({\n\t\tside,\n\t\tsideOffset,\n\t\talign,\n\t\tavoidCollisions,\n\t\tarrowPadding,\n\t\tsticky,\n\t\thideWhenDetached,\n\t\tcollisionPadding,\n\t\tstrategy,\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, floatingProps, contentState.props));\n</script>\n\n{#if forceMount}\n\t<PopperLayerForceMount\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tenabled={contentState.root.opts.open.current}\n\t\t{id}\n\t\ttrapFocus={false}\n\t\tloop={false}\n\t\tpreventScroll={false}\n\t\tforceMount={true}\n\t\tref={contentState.opts.ref}\n\t\ttooltip={true}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const mergedProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"tooltip\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: mergedProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...mergedProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayerForceMount>\n{:else if !forceMount}\n\t<PopperLayer\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\topen={contentState.root.opts.open.current}\n\t\t{id}\n\t\ttrapFocus={false}\n\t\tloop={false}\n\t\tpreventScroll={false}\n\t\tforceMount={false}\n\t\tref={contentState.opts.ref}\n\t\ttooltip={true}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const mergedProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"tooltip\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: mergedProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...mergedProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayer>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TooltipTriggerProps } from \"../types.js\";\n\timport { TooltipTriggerState } from \"../tooltip.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport FloatingLayerAnchor from \"../../utilities/floating-layer/components/floating-layer-anchor.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tdisabled = false,\n\t\ttype = \"button\",\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: TooltipTriggerProps = $props();\n\n\tconst triggerState = TooltipTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tdisabled: boxWith(() => disabled ?? false),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n<FloatingLayerAnchor {id} ref={triggerState.opts.ref} tooltip={true}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<button {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</button>\n\t{/if}\n</FloatingLayerAnchor>\n","<script lang=\"ts\">\n\timport type { TooltipArrowProps } from \"../types.js\";\n\timport FloatingLayerArrow from \"../../utilities/floating-layer/components/floating-layer-arrow.svelte\";\n\n\tlet { ref = $bindable(null), ...restProps }: TooltipArrowProps = $props();\n</script>\n\n<FloatingLayerArrow bind:ref {...restProps} />\n","<script lang=\"ts\">\n\timport { Tooltip as TooltipPrimitive } from \"bits-ui\";\n\timport { setContext } from \"svelte\";\n\n\tlet { open = $bindable(false), ...restProps }: TooltipPrimitive.RootProps = $props();\n\n\tlet openedByTouch = false;\n\tlet removeListener: (() => void) | null = null;\n\n\tfunction closeTooltip() {\n\t\topenedByTouch = false;\n\t\topen = false;\n\t\tif (removeListener) {\n\t\t\tremoveListener();\n\t\t\tremoveListener = null;\n\t\t}\n\t}\n\n\tfunction toggle() {\n\t\tif (open && openedByTouch) {\n\t\t\tcloseTooltip();\n\t\t\treturn;\n\t\t}\n\t\topenedByTouch = true;\n\t\topen = true;\n\t\tsetTimeout(() => {\n\t\t\tconst handler = () => closeTooltip();\n\t\t\tdocument.addEventListener(\"pointerdown\", handler);\n\t\t\tremoveListener = () => document.removeEventListener(\"pointerdown\", handler);\n\t\t}, 0);\n\t}\n\n\tfunction handleOpenChange(v: boolean) {\n\t\tif (!v && openedByTouch) {\n\t\t\topen = true;\n\t\t\treturn;\n\t\t}\n\t\topen = v;\n\t}\n\n\tsetContext(\"traceway-tooltip\", { toggle });\n</script>\n\n<TooltipPrimitive.Root bind:open {...restProps} onOpenChange={handleOpenChange} />\n","<script lang=\"ts\">\n\timport { Tooltip as TooltipPrimitive } from \"bits-ui\";\n\timport { getContext } from \"svelte\";\n\n\tlet { ref = $bindable(null), ...restProps }: TooltipPrimitive.TriggerProps = $props();\n\n\tconst ctx = getContext<{ toggle: () => void }>(\"traceway-tooltip\");\n\n\tfunction handleTouchStart(e: TouchEvent) {\n\t\tif (ctx) {\n\t\t\te.preventDefault();\n\t\t\tctx.toggle();\n\t\t}\n\t}\n</script>\n\n<TooltipPrimitive.Trigger bind:ref data-slot=\"tooltip-trigger\" ontouchstart={handleTouchStart} {...restProps} />\n","<script lang=\"ts\">\n\timport { Tooltip as TooltipPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: TooltipPrimitive.PortalProps = $props();\n</script>\n\n<TooltipPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { Tooltip as TooltipPrimitive } from 'bits-ui';\n\timport { cn } from '$lib/utils.js';\n\timport TooltipPortal from './tooltip-portal.svelte';\n\timport type { ComponentProps } from 'svelte';\n\timport type { WithoutChildrenOrChild } from '$lib/utils.js';\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tsideOffset = 0,\n\t\tside = 'top',\n\t\tchildren,\n\t\tarrowClasses,\n\t\tportalProps,\n\t\t...restProps\n\t}: TooltipPrimitive.ContentProps & {\n\t\tarrowClasses?: string;\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof TooltipPortal>>;\n\t} = $props();\n</script>\n\n<TooltipPortal {...portalProps}>\n\t<TooltipPrimitive.Content\n\t\tbind:ref\n\t\tdata-slot=\"tooltip-content\"\n\t\t{sideOffset}\n\t\t{side}\n\t\tclass={cn(\n\t\t\t'z-50 max-w-[220px] origin-(--bits-tooltip-content-transform-origin) animate-in rounded-sm border bg-foreground px-3 py-2 text-xs text-background shadow-[none] fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',\n\t\t\tclassName\n\t\t)}\n\t\t{...restProps}\n\t>\n\t\t{@render children?.()}\n\t\t<TooltipPrimitive.Arrow>\n\t\t\t{#snippet child({ props })}\n\t\t\t\t<div\n\t\t\t\t\tclass={cn(\n\t\t\t\t\t\t'z-50 size-2.5 rotate-45 border-border bg-foreground',\n\t\t\t\t\t\t'data-[side=top]:border-r data-[side=top]:border-b',\n\t\t\t\t\t\t'data-[side=bottom]:border-t data-[side=bottom]:border-l',\n\t\t\t\t\t\t'data-[side=left]:border-r data-[side=left]:border-b',\n\t\t\t\t\t\t'data-[side=right]:border-r data-[side=right]:border-b',\n\t\t\t\t\t\t'data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_3px)]',\n\t\t\t\t\t\t'data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(50%_-_2px)] data-[side=bottom]:rotate-225',\n\t\t\t\t\t\t'data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2',\n\t\t\t\t\t\t'data-[side=left]:-translate-y-[calc(50%_-_3px)]',\n\t\t\t\t\t\tarrowClasses\n\t\t\t\t\t)}\n\t\t\t\t\t{...props}\n\t\t\t\t></div>\n\t\t\t{/snippet}\n\t\t</TooltipPrimitive.Arrow>\n\t</TooltipPrimitive.Content>\n</TooltipPortal>\n"],"names":["id","useId","width","height","restProps","$.rest_props","$$props","mergedProps","mergeProps","$.snippet","node_1","span","root_2","$.attribute_effect","svg","root_4","$.set_attribute","ref","arrowState","FloatingArrowState","boxWith","v","Arrow","TimeoutFn","#interval","#cb","#timer","cb","interval","onDestroyEffect","#clear","args","tooltipAttrs","createBitsAttrs","TooltipProviderContext","Context","TooltipRootContext","TooltipProviderState","opts","#isOpenDelayed","$.state","value","simpleBox","#timerFn","#startTimer","#clearTimer","tooltip","#openTooltip","$.get","TooltipRootState","#delayDuration","$.derived","#disableHoverableContent","#disableCloseOnTriggerClick","#disabled","#ignoreNonKeyboardFocus","#contentNode","#triggerNode","#wasOpenDelayed","provider","PresenceManager","watch","isOpen","#handleDelayedOpen","shouldSkipDelay","delayDuration","$.set","TooltipTriggerState","#isDisabled","#transitCheckTimeout","root","DOMContext","attachRef","#clearTransitCheck","#isPointerDown","#onpointerup","#onpointerdown","e","#hasPointerMoveOpened","#onpointerleave","isFocusVisible","#onblur","#onclick","boolToEmptyStrOrUndef","#onpointerenter","#onpointermove","#onfocus","TooltipContentState","GraceArea","onMountEffect","on","target","isElement","open","onOpenChange","noop","onOpenChangeComplete","FloatingLayer","$$anchor","uid","$.props_id","$.prop","createId","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","hideWhenDetached","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","contentState","floatingProps","PopperLayerForceMount","$.spread_props","$$arg0","props","wrapperProps","getFloatingContentCSSVars","div","div_1","PopperLayer","div_2","root_9","div_3","$$render","consequent_3","consequent_1","alternate_2","disabled","type","triggerState","FloatingLayerAnchor","button","root_3","FloatingLayerArrow","$$value","openedByTouch","removeListener","closeTooltip","toggle","handler","handleOpenChange","setContext","TooltipPrimitive_Root","ctx","getContext","handleTouchStart","TooltipPrimitive_Trigger","TooltipPrimitive_Portal","TooltipPortal","$0","cn","TooltipPrimitive_Content","child","$.append","TooltipPrimitive_Arrow"],"mappings":"uxBAAA,SAME,IAAAA,cAAKC,EAAK,EAGVC,gBAAQ,EAAE,EACVC,iBAAS,CAAC,EACPC,EAAAC,EAAAC,EAAA,4EAGE,MAAAC,QAAuBC,EAAWJ,EAAS,CAAI,GAAAJ,EAAE,CAAA,CAAA,CAAA,+CAItCS,EAAAC,EAAA,IAAAJ,EAAA,MAAA,KAAA,CAAA,QAAOC,CAAW,CAAA,EAAA,oBAElCI,EAAIC,GAAA,EAAJC,EAAAF,aAASJ,CAAW,CAAA,EAAA,UAApBI,CAAI,uEAIFG,EAAGC,GAAA,UAAHC,GAAAF,UAAKZ,GAAK,EAAVc,GAAAF,WAAaX,GAAM,QAAnBW,CAAG,uCAJLH,CAAI,MAAJA,CAAI,4CALN,iBCfA,SAMO,IAAAX,cAAKC,EAAK,EAAIgB,eAAgB,IAAI,EAAMb,EAASC,EAAAC,EAAA,CAAA,UAAA,WAAA,WAA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8CAAoDiC,OAAsBlJ,OAAzE,KAAQ,iBAAR,IAAQuI,EAAA,sBAFlC,iBCdA,KAGUvI,EAASC,EAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,sCAGlBkJ,UAA4BpJ,CAAS,CAAA,UAFtC,2DCJA,SAQE,IAAAa,eAAgB,IAAI,EAEpBuF,qBAAa,CAAC,EACdD,eAAO,KAAK,EAITnG,EAAAC,EAAAC,EAAA,6GAOJmJ,GAAavD,EAAAmB,EAAA,IAAA/G,EAAA,YAAA,oCAML,IAAAoJ,EAAAvG,EAAA,IAAAwG,GACN,gbAA+arJ,EAAA,KAAA,CAAA,qBANhbsJ,EAAiB1D,EAAAmB,yDAGhBb,EAAU,qBACVD,EAAI,iCAKDnG,OARJ,KAAK,iBAAL,IAAKuI,EAAA,sFAYMkB,EAAK,CAAA3D,EAAAoB,IAAA,CAAG,IAAAC,aAAA,MAChB,IAAAG,EAAAe,GAAA,EAAA5H,EAAA6G,EAAAgC,KAAA,CAAA,MAAAA,GAAA,GAaInC,GAAK,CAAA,GAAA,CAZF,IAAAoC,GACN,sDACA,oDACA,0DACA,sDACA,wDACA,iFACA,sHACA,oFACA,kDAAiDrJ,EAAA,YAAA,IAVlDwJ,EAAA5D,EAAAwB,CAAA,sBAFFqC,KACU,MAAAF,EAAK,QAAA,CAAA,MAAA,EAAA,EAAA,yEAhBlB","x_google_ignoreList":[0,1,2,3,4,5,6,7]}
\ No newline at end of file
+{"version":3,"file":"5D-Broyu.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/utilities/arrow/arrow.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-arrow.svelte","../../../../../../node_modules/bits-ui/dist/internal/timeout-fn.js","../../../../../../node_modules/bits-ui/dist/bits/tooltip/tooltip.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/tooltip/components/tooltip.svelte","../../../../../../node_modules/bits-ui/dist/bits/tooltip/components/tooltip-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/tooltip/components/tooltip-trigger.svelte","../../../../../../node_modules/bits-ui/dist/bits/tooltip/components/tooltip-arrow.svelte","../../../../../../src/lib/components/ui/tooltip/tooltip.svelte","../../../../../../src/lib/components/ui/tooltip/tooltip-trigger.svelte","../../../../../../src/lib/components/ui/tooltip/tooltip-portal.svelte","../../../../../../src/lib/components/ui/tooltip/tooltip-content.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport type { ArrowProps } from \"./types.js\";\n\timport { useId } from \"../../../internal/use-id.js\";\n\n\tlet {\n\t\tid = useId(),\n\t\tchildren,\n\t\tchild,\n\t\twidth = 10,\n\t\theight = 5,\n\t\t...restProps\n\t}: ArrowProps = $props();\n\n\tconst mergedProps = $derived(mergeProps(restProps, { id }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<span {...mergedProps}>\n\t\t{#if children}\n\t\t\t{@render children?.()}\n\t\t{:else}\n\t\t\t<svg {width} {height} viewBox=\"0 0 30 10\" preserveAspectRatio=\"none\" data-arrow=\"\">\n\t\t\t\t<polygon points=\"0,0 30,0 15,10\" fill=\"currentColor\" />\n\t\t\t</svg>\n\t\t{/if}\n\t</span>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { FloatingArrowState } from \"../use-floating-layer.svelte.js\";\n\timport { Arrow, type ArrowProps } from \"../../arrow/index.js\";\n\timport { useId } from \"../../../../internal/use-id.js\";\n\n\tlet { id = useId(), ref = $bindable(null), ...restProps }: ArrowProps = $props();\n\n\tconst arrowState = FloatingArrowState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, arrowState.props));\n</script>\n\n<Arrow {...mergedProps} />\n","import { onDestroyEffect } from \"svelte-toolbelt\";\nexport class TimeoutFn {\n #interval;\n #cb;\n #timer = null;\n constructor(cb, interval) {\n this.#cb = cb;\n this.#interval = interval;\n this.stop = this.stop.bind(this);\n this.start = this.start.bind(this);\n onDestroyEffect(this.stop);\n }\n #clear() {\n if (this.#timer !== null) {\n window.clearTimeout(this.#timer);\n this.#timer = null;\n }\n }\n stop() {\n this.#clear();\n }\n start(...args) {\n this.#clear();\n this.#timer = window.setTimeout(() => {\n this.#timer = null;\n this.#cb(...args);\n }, this.#interval);\n }\n}\n","import { onMountEffect, attachRef, DOMContext, simpleBox, boxWith, } from \"svelte-toolbelt\";\nimport { on } from \"svelte/events\";\nimport { Context, watch } from \"runed\";\nimport { isElement, isFocusVisible } from \"../../internal/is.js\";\nimport { createBitsAttrs, boolToEmptyStrOrUndef } from \"../../internal/attrs.js\";\nimport { TimeoutFn } from \"../../internal/timeout-fn.js\";\nimport { GraceArea } from \"../../internal/grace-area.svelte.js\";\nimport { PresenceManager } from \"../../internal/presence-manager.svelte.js\";\nexport const tooltipAttrs = createBitsAttrs({\n component: \"tooltip\",\n parts: [\"content\", \"trigger\"],\n});\nconst TooltipProviderContext = new Context(\"Tooltip.Provider\");\nconst TooltipRootContext = new Context(\"Tooltip.Root\");\nexport class TooltipProviderState {\n static create(opts) {\n return TooltipProviderContext.set(new TooltipProviderState(opts));\n }\n opts;\n isOpenDelayed = $state(true);\n isPointerInTransit = simpleBox(false);\n #timerFn;\n #openTooltip = $state(null);\n constructor(opts) {\n this.opts = opts;\n this.#timerFn = new TimeoutFn(() => {\n this.isOpenDelayed = true;\n }, this.opts.skipDelayDuration.current);\n }\n #startTimer = () => {\n const skipDuration = this.opts.skipDelayDuration.current;\n if (skipDuration === 0) {\n return;\n }\n else {\n this.#timerFn.start();\n }\n };\n #clearTimer = () => {\n this.#timerFn.stop();\n };\n onOpen = (tooltip) => {\n if (this.#openTooltip && this.#openTooltip !== tooltip) {\n this.#openTooltip.handleClose();\n }\n this.#clearTimer();\n this.isOpenDelayed = false;\n this.#openTooltip = tooltip;\n };\n onClose = (tooltip) => {\n if (this.#openTooltip === tooltip) {\n this.#openTooltip = null;\n }\n this.#startTimer();\n };\n isTooltipOpen = (tooltip) => {\n return this.#openTooltip === tooltip;\n };\n}\nexport class TooltipRootState {\n static create(opts) {\n return TooltipRootContext.set(new TooltipRootState(opts, TooltipProviderContext.get()));\n }\n opts;\n provider;\n delayDuration = $derived.by(() => this.opts.delayDuration.current ?? this.provider.opts.delayDuration.current);\n disableHoverableContent = $derived.by(() => this.opts.disableHoverableContent.current ??\n this.provider.opts.disableHoverableContent.current);\n disableCloseOnTriggerClick = $derived.by(() => this.opts.disableCloseOnTriggerClick.current ??\n this.provider.opts.disableCloseOnTriggerClick.current);\n disabled = $derived.by(() => this.opts.disabled.current ?? this.provider.opts.disabled.current);\n ignoreNonKeyboardFocus = $derived.by(() => this.opts.ignoreNonKeyboardFocus.current ??\n this.provider.opts.ignoreNonKeyboardFocus.current);\n contentNode = $state(null);\n contentPresence;\n triggerNode = $state(null);\n #wasOpenDelayed = $state(false);\n #timerFn;\n stateAttr = $derived.by(() => {\n if (!this.opts.open.current)\n return \"closed\";\n return this.#wasOpenDelayed ? \"delayed-open\" : \"instant-open\";\n });\n constructor(opts, provider) {\n this.opts = opts;\n this.provider = provider;\n this.#timerFn = new TimeoutFn(() => {\n this.#wasOpenDelayed = true;\n this.opts.open.current = true;\n }, this.delayDuration ?? 0);\n this.contentPresence = new PresenceManager({\n open: this.opts.open,\n ref: boxWith(() => this.contentNode),\n onComplete: () => {\n this.opts.onOpenChangeComplete.current(this.opts.open.current);\n },\n });\n watch(() => this.delayDuration, () => {\n if (this.delayDuration === undefined)\n return;\n this.#timerFn = new TimeoutFn(() => {\n this.#wasOpenDelayed = true;\n this.opts.open.current = true;\n }, this.delayDuration);\n });\n watch(() => this.opts.open.current, (isOpen) => {\n if (isOpen) {\n this.provider.onOpen(this);\n }\n else {\n this.provider.onClose(this);\n }\n }, { lazy: true });\n }\n handleOpen = () => {\n this.#timerFn.stop();\n this.#wasOpenDelayed = false;\n this.opts.open.current = true;\n };\n handleClose = () => {\n this.#timerFn.stop();\n this.opts.open.current = false;\n };\n #handleDelayedOpen = () => {\n this.#timerFn.stop();\n const shouldSkipDelay = !this.provider.isOpenDelayed;\n const delayDuration = this.delayDuration ?? 0;\n // if no delay needed (either skip delay active or delay is 0), open immediately\n if (shouldSkipDelay || delayDuration === 0) {\n // set wasOpenDelayed based on whether we actually had a delay\n this.#wasOpenDelayed = delayDuration > 0 && shouldSkipDelay;\n this.opts.open.current = true;\n }\n else {\n // use timer for actual delays\n this.#timerFn.start();\n }\n };\n onTriggerEnter = () => {\n this.#handleDelayedOpen();\n };\n onTriggerLeave = () => {\n if (this.disableHoverableContent) {\n this.handleClose();\n }\n else {\n this.#timerFn.stop();\n }\n };\n}\nexport class TooltipTriggerState {\n static create(opts) {\n return new TooltipTriggerState(opts, TooltipRootContext.get());\n }\n opts;\n root;\n attachment;\n #isPointerDown = simpleBox(false);\n #hasPointerMoveOpened = $state(false);\n #isDisabled = $derived.by(() => this.opts.disabled.current || this.root.disabled);\n domContext;\n #transitCheckTimeout = null;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.domContext = new DOMContext(opts.ref);\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.triggerNode = v));\n }\n #clearTransitCheck = () => {\n if (this.#transitCheckTimeout !== null) {\n clearTimeout(this.#transitCheckTimeout);\n this.#transitCheckTimeout = null;\n }\n };\n handlePointerUp = () => {\n this.#isPointerDown.current = false;\n };\n #onpointerup = () => {\n if (this.#isDisabled)\n return;\n this.#isPointerDown.current = false;\n };\n #onpointerdown = () => {\n if (this.#isDisabled)\n return;\n this.#isPointerDown.current = true;\n this.domContext.getDocument().addEventListener(\"pointerup\", () => {\n this.handlePointerUp();\n }, { once: true });\n };\n #onpointerenter = (e) => {\n if (this.#isDisabled)\n return;\n if (e.pointerType === \"touch\")\n return;\n // if in transit, wait briefly to see if user is actually heading to old content or staying here\n if (this.root.provider.isPointerInTransit.current) {\n this.#clearTransitCheck();\n this.#transitCheckTimeout = window.setTimeout(() => {\n // if still in transit after delay, user is likely staying on this trigger\n if (this.root.provider.isPointerInTransit.current) {\n this.root.provider.isPointerInTransit.current = false;\n this.root.onTriggerEnter();\n this.#hasPointerMoveOpened = true;\n }\n }, 250);\n return;\n }\n this.root.onTriggerEnter();\n this.#hasPointerMoveOpened = true;\n };\n #onpointermove = (e) => {\n if (this.#isDisabled)\n return;\n if (e.pointerType === \"touch\")\n return;\n if (this.#hasPointerMoveOpened)\n return;\n // moving within trigger means we're definitely not in transit anymore\n this.#clearTransitCheck();\n this.root.provider.isPointerInTransit.current = false;\n this.root.onTriggerEnter();\n this.#hasPointerMoveOpened = true;\n };\n #onpointerleave = () => {\n if (this.#isDisabled)\n return;\n this.#clearTransitCheck();\n this.root.onTriggerLeave();\n this.#hasPointerMoveOpened = false;\n };\n #onfocus = (e) => {\n if (this.#isPointerDown.current || this.#isDisabled)\n return;\n if (this.root.ignoreNonKeyboardFocus && !isFocusVisible(e.currentTarget))\n return;\n this.root.handleOpen();\n };\n #onblur = () => {\n if (this.#isDisabled)\n return;\n this.root.handleClose();\n };\n #onclick = () => {\n if (this.root.disableCloseOnTriggerClick || this.#isDisabled)\n return;\n this.root.handleClose();\n };\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"aria-describedby\": this.root.opts.open.current\n ? this.root.contentNode?.id\n : undefined,\n \"data-state\": this.root.stateAttr,\n \"data-disabled\": boolToEmptyStrOrUndef(this.#isDisabled),\n \"data-delay-duration\": `${this.root.delayDuration}`,\n [tooltipAttrs.trigger]: \"\",\n tabindex: this.#isDisabled ? undefined : 0,\n disabled: this.opts.disabled.current,\n onpointerup: this.#onpointerup,\n onpointerdown: this.#onpointerdown,\n onpointerenter: this.#onpointerenter,\n onpointermove: this.#onpointermove,\n onpointerleave: this.#onpointerleave,\n onfocus: this.#onfocus,\n onblur: this.#onblur,\n onclick: this.#onclick,\n ...this.attachment,\n }));\n}\nexport class TooltipContentState {\n static create(opts) {\n return new TooltipContentState(opts, TooltipRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.contentNode = v));\n new GraceArea({\n triggerNode: () => this.root.triggerNode,\n contentNode: () => this.root.contentNode,\n enabled: () => this.root.opts.open.current && !this.root.disableHoverableContent,\n onPointerExit: () => {\n if (this.root.provider.isTooltipOpen(this.root)) {\n this.root.handleClose();\n }\n },\n setIsPointerInTransit: (value) => {\n this.root.provider.isPointerInTransit.current = value;\n },\n transitTimeout: this.root.provider.opts.skipDelayDuration.current,\n });\n onMountEffect(() => on(window, \"scroll\", (e) => {\n const target = e.target;\n if (!target)\n return;\n if (target.contains(this.root.triggerNode)) {\n this.root.handleClose();\n }\n }));\n }\n onInteractOutside = (e) => {\n if (isElement(e.target) &&\n this.root.triggerNode?.contains(e.target) &&\n this.root.disableCloseOnTriggerClick) {\n e.preventDefault();\n return;\n }\n this.opts.onInteractOutside.current(e);\n if (e.defaultPrevented)\n return;\n this.root.handleClose();\n };\n onEscapeKeydown = (e) => {\n this.opts.onEscapeKeydown.current?.(e);\n if (e.defaultPrevented)\n return;\n this.root.handleClose();\n };\n onOpenAutoFocus = (e) => {\n e.preventDefault();\n };\n onCloseAutoFocus = (e) => {\n e.preventDefault();\n };\n get shouldRender() {\n return this.root.contentPresence.shouldRender;\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-state\": this.root.stateAttr,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.disabled),\n style: {\n pointerEvents: \"auto\",\n outline: \"none\",\n },\n [tooltipAttrs.content]: \"\",\n ...this.attachment,\n }));\n popperProps = {\n onInteractOutside: this.onInteractOutside,\n onEscapeKeydown: this.onEscapeKeydown,\n onOpenAutoFocus: this.onOpenAutoFocus,\n onCloseAutoFocus: this.onCloseAutoFocus,\n };\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { TooltipRootProps } from \"../types.js\";\n\timport { TooltipRootState } from \"../tooltip.svelte.js\";\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tdisabled,\n\t\tdelayDuration,\n\t\tdisableCloseOnTriggerClick,\n\t\tdisableHoverableContent,\n\t\tignoreNonKeyboardFocus,\n\t\tchildren,\n\t}: TooltipRootProps = $props();\n\n\tTooltipRootState.create({\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tdelayDuration: boxWith(() => delayDuration),\n\t\tdisableCloseOnTriggerClick: boxWith(() => disableCloseOnTriggerClick),\n\t\tdisableHoverableContent: boxWith(() => disableHoverableContent),\n\t\tignoreNonKeyboardFocus: boxWith(() => ignoreNonKeyboardFocus),\n\t\tdisabled: boxWith(() => disabled),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n<FloatingLayer tooltip>\n\t{@render children?.()}\n</FloatingLayer>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TooltipContentProps } from \"../types.js\";\n\timport { TooltipContentState } from \"../tooltip.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport PopperLayer from \"../../utilities/popper-layer/popper-layer.svelte\";\n\timport { getFloatingContentCSSVars } from \"../../../internal/floating-svelte/floating-utils.svelte.js\";\n\timport PopperLayerForceMount from \"../../utilities/popper-layer/popper-layer-force-mount.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tside = \"top\",\n\t\tsideOffset = 0,\n\t\talign = \"center\",\n\t\tavoidCollisions = true,\n\t\tarrowPadding = 0,\n\t\tsticky = \"partial\",\n\t\tstrategy,\n\t\thideWhenDetached = false,\n\t\tcollisionPadding = 0,\n\t\tonInteractOutside = noop,\n\t\tonEscapeKeydown = noop,\n\t\tforceMount = false,\n\t\t...restProps\n\t}: TooltipContentProps = $props();\n\n\tconst contentState = TooltipContentState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tonInteractOutside: boxWith(() => onInteractOutside),\n\t\tonEscapeKeydown: boxWith(() => onEscapeKeydown),\n\t});\n\n\tconst floatingProps = $derived({\n\t\tside,\n\t\tsideOffset,\n\t\talign,\n\t\tavoidCollisions,\n\t\tarrowPadding,\n\t\tsticky,\n\t\thideWhenDetached,\n\t\tcollisionPadding,\n\t\tstrategy,\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, floatingProps, contentState.props));\n</script>\n\n{#if forceMount}\n\t<PopperLayerForceMount\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tenabled={contentState.root.opts.open.current}\n\t\t{id}\n\t\ttrapFocus={false}\n\t\tloop={false}\n\t\tpreventScroll={false}\n\t\tforceMount={true}\n\t\tref={contentState.opts.ref}\n\t\ttooltip={true}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const mergedProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"tooltip\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: mergedProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...mergedProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayerForceMount>\n{:else if !forceMount}\n\t<PopperLayer\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\topen={contentState.root.opts.open.current}\n\t\t{id}\n\t\ttrapFocus={false}\n\t\tloop={false}\n\t\tpreventScroll={false}\n\t\tforceMount={false}\n\t\tref={contentState.opts.ref}\n\t\ttooltip={true}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const mergedProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"tooltip\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: mergedProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...mergedProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayer>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TooltipTriggerProps } from \"../types.js\";\n\timport { TooltipTriggerState } from \"../tooltip.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport FloatingLayerAnchor from \"../../utilities/floating-layer/components/floating-layer-anchor.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tdisabled = false,\n\t\ttype = \"button\",\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: TooltipTriggerProps = $props();\n\n\tconst triggerState = TooltipTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tdisabled: boxWith(() => disabled ?? false),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n<FloatingLayerAnchor {id} ref={triggerState.opts.ref} tooltip={true}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<button {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</button>\n\t{/if}\n</FloatingLayerAnchor>\n","<script lang=\"ts\">\n\timport type { TooltipArrowProps } from \"../types.js\";\n\timport FloatingLayerArrow from \"../../utilities/floating-layer/components/floating-layer-arrow.svelte\";\n\n\tlet { ref = $bindable(null), ...restProps }: TooltipArrowProps = $props();\n</script>\n\n<FloatingLayerArrow bind:ref {...restProps} />\n","<script lang=\"ts\">\n\timport { Tooltip as TooltipPrimitive } from \"bits-ui\";\n\timport { setContext } from \"svelte\";\n\n\tlet { open = $bindable(false), ...restProps }: TooltipPrimitive.RootProps = $props();\n\n\tlet openedByTouch = false;\n\tlet removeListener: (() => void) | null = null;\n\n\tfunction closeTooltip() {\n\t\topenedByTouch = false;\n\t\topen = false;\n\t\tif (removeListener) {\n\t\t\tremoveListener();\n\t\t\tremoveListener = null;\n\t\t}\n\t}\n\n\tfunction toggle() {\n\t\tif (open && openedByTouch) {\n\t\t\tcloseTooltip();\n\t\t\treturn;\n\t\t}\n\t\topenedByTouch = true;\n\t\topen = true;\n\t\tsetTimeout(() => {\n\t\t\tconst handler = () => closeTooltip();\n\t\t\tdocument.addEventListener(\"pointerdown\", handler);\n\t\t\tremoveListener = () => document.removeEventListener(\"pointerdown\", handler);\n\t\t}, 0);\n\t}\n\n\tfunction handleOpenChange(v: boolean) {\n\t\tif (!v && openedByTouch) {\n\t\t\topen = true;\n\t\t\treturn;\n\t\t}\n\t\topen = v;\n\t}\n\n\tsetContext(\"traceway-tooltip\", { toggle });\n</script>\n\n<TooltipPrimitive.Root bind:open {...restProps} onOpenChange={handleOpenChange} />\n","<script lang=\"ts\">\n\timport { Tooltip as TooltipPrimitive } from \"bits-ui\";\n\timport { getContext } from \"svelte\";\n\n\tlet { ref = $bindable(null), ...restProps }: TooltipPrimitive.TriggerProps = $props();\n\n\tconst ctx = getContext<{ toggle: () => void }>(\"traceway-tooltip\");\n\n\tfunction handleTouchStart(e: TouchEvent) {\n\t\tif (ctx) {\n\t\t\te.preventDefault();\n\t\t\tctx.toggle();\n\t\t}\n\t}\n</script>\n\n<TooltipPrimitive.Trigger bind:ref data-slot=\"tooltip-trigger\" ontouchstart={handleTouchStart} {...restProps} />\n","<script lang=\"ts\">\n\timport { Tooltip as TooltipPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: TooltipPrimitive.PortalProps = $props();\n</script>\n\n<TooltipPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { Tooltip as TooltipPrimitive } from 'bits-ui';\n\timport { cn } from '$lib/utils.js';\n\timport TooltipPortal from './tooltip-portal.svelte';\n\timport type { ComponentProps } from 'svelte';\n\timport type { WithoutChildrenOrChild } from '$lib/utils.js';\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tsideOffset = 0,\n\t\tside = 'top',\n\t\tchildren,\n\t\tarrowClasses,\n\t\tportalProps,\n\t\t...restProps\n\t}: TooltipPrimitive.ContentProps & {\n\t\tarrowClasses?: string;\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof TooltipPortal>>;\n\t} = $props();\n</script>\n\n<TooltipPortal {...portalProps}>\n\t<TooltipPrimitive.Content\n\t\tbind:ref\n\t\tdata-slot=\"tooltip-content\"\n\t\t{sideOffset}\n\t\t{side}\n\t\tclass={cn(\n\t\t\t'z-50 max-w-[220px] origin-(--bits-tooltip-content-transform-origin) animate-in rounded-sm border bg-foreground px-3 py-2 text-xs text-background shadow-[none] fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95',\n\t\t\tclassName\n\t\t)}\n\t\t{...restProps}\n\t>\n\t\t{@render children?.()}\n\t\t<TooltipPrimitive.Arrow>\n\t\t\t{#snippet child({ props })}\n\t\t\t\t<div\n\t\t\t\t\tclass={cn(\n\t\t\t\t\t\t'z-50 size-2.5 rotate-45 border-border bg-foreground',\n\t\t\t\t\t\t'data-[side=top]:border-r data-[side=top]:border-b',\n\t\t\t\t\t\t'data-[side=bottom]:border-t data-[side=bottom]:border-l',\n\t\t\t\t\t\t'data-[side=left]:border-r data-[side=left]:border-b',\n\t\t\t\t\t\t'data-[side=right]:border-r data-[side=right]:border-b',\n\t\t\t\t\t\t'data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_3px)]',\n\t\t\t\t\t\t'data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(50%_-_2px)] data-[side=bottom]:rotate-225',\n\t\t\t\t\t\t'data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2',\n\t\t\t\t\t\t'data-[side=left]:-translate-y-[calc(50%_-_3px)]',\n\t\t\t\t\t\tarrowClasses\n\t\t\t\t\t)}\n\t\t\t\t\t{...props}\n\t\t\t\t></div>\n\t\t\t{/snippet}\n\t\t</TooltipPrimitive.Arrow>\n\t</TooltipPrimitive.Content>\n</TooltipPortal>\n"],"names":["id","useId","width","height","restProps","$.rest_props","$$props","mergedProps","mergeProps","$.snippet","node_1","span","root_2","$.attribute_effect","svg","root_4","$.set_attribute","ref","arrowState","FloatingArrowState","boxWith","v","Arrow","TimeoutFn","#interval","#cb","#timer","cb","interval","onDestroyEffect","#clear","args","tooltipAttrs","createBitsAttrs","TooltipProviderContext","Context","TooltipRootContext","TooltipProviderState","opts","#isOpenDelayed","$.state","value","simpleBox","#timerFn","#startTimer","#clearTimer","tooltip","#openTooltip","$.get","TooltipRootState","#delayDuration","$.derived","#disableHoverableContent","#disableCloseOnTriggerClick","#disabled","#ignoreNonKeyboardFocus","#contentNode","#triggerNode","#wasOpenDelayed","provider","PresenceManager","watch","isOpen","#handleDelayedOpen","shouldSkipDelay","delayDuration","$.set","TooltipTriggerState","#isDisabled","#transitCheckTimeout","root","DOMContext","attachRef","#clearTransitCheck","#isPointerDown","#onpointerup","#onpointerdown","e","#hasPointerMoveOpened","#onpointerleave","isFocusVisible","#onblur","#onclick","boolToEmptyStrOrUndef","#onpointerenter","#onpointermove","#onfocus","TooltipContentState","GraceArea","onMountEffect","on","target","isElement","open","onOpenChange","noop","onOpenChangeComplete","FloatingLayer","$$anchor","uid","$.props_id","$.prop","createId","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","hideWhenDetached","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","contentState","floatingProps","PopperLayerForceMount","$.spread_props","$$arg0","props","wrapperProps","getFloatingContentCSSVars","div","div_1","PopperLayer","div_2","root_9","div_3","$$render","consequent_3","consequent_1","alternate_2","disabled","type","triggerState","FloatingLayerAnchor","button","root_3","FloatingLayerArrow","$$value","openedByTouch","removeListener","closeTooltip","toggle","handler","handleOpenChange","setContext","TooltipPrimitive_Root","ctx","getContext","handleTouchStart","TooltipPrimitive_Trigger","TooltipPrimitive_Portal","TooltipPortal","$0","cn","TooltipPrimitive_Content","child","$.append","TooltipPrimitive_Arrow"],"mappings":"kxBAAA,SAME,IAAAA,cAAKC,EAAK,EAGVC,gBAAQ,EAAE,EACVC,iBAAS,CAAC,EACPC,EAAAC,EAAAC,EAAA,4EAGE,MAAAC,QAAuBC,EAAWJ,EAAS,CAAI,GAAAJ,EAAE,CAAA,CAAA,CAAA,+CAItCS,EAAAC,EAAA,IAAAJ,EAAA,MAAA,KAAA,CAAA,QAAOC,CAAW,CAAA,EAAA,oBAElCI,EAAIC,GAAA,EAAJC,EAAAF,aAASJ,CAAW,CAAA,EAAA,UAApBI,CAAI,uEAIFG,EAAGC,GAAA,UAAHC,GAAAF,UAAKZ,GAAK,EAAVc,GAAAF,WAAaX,GAAM,QAAnBW,CAAG,uCAJLH,CAAI,MAAJA,CAAI,4CALN,iBCfA,SAMO,IAAAX,cAAKC,EAAK,EAAIgB,eAAgB,IAAI,EAA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AAI,OAAM,EAEZ,qCAGAG,EAAwBrD,EAAAmB,8CAAoDiC,OAAsBlJ,OAAzE,KAAQ,iBAAR,IAAQuI,EAAA,sBAFlC,iBCdA,KAGUvI,EAASC,EAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,sCAGlBkJ,UAA4BpJ,CAAS,CAAA,UAFtC,2DCJA,SAQE,IAAAa,eAAgB,IAAI,EAEpBuF,qBAAa,CAAC,EACdD,eAAO,KAAK,EAITnG,EAAAC,EAAAC,EAAA,6GAOJmJ,GAAavD,EAAAmB,EAAA,IAAA/G,EAAA,YAAA,oCAML,IAAAoJ,EAAAvG,EAAA,IAAAwG,GACN,gbAA+arJ,EAAA,KAAA,CAAA,qBANhbsJ,EAAiB1D,EAAAmB,yDAGhBb,EAAU,qBACVD,EAAI,iCAKDnG,OARJ,KAAK,iBAAL,IAAKuI,EAAA,sFAYMkB,EAAK,CAAA3D,EAAAoB,IAAA,CAAG,IAAAC,aAAA,MAChB,IAAAG,EAAAe,GAAA,EAAA5H,EAAA6G,EAAAgC,KAAA,CAAA,MAAAA,GAAA,GAaInC,GAAK,CAAA,GAAA,CAZF,IAAAoC,GACN,sDACA,oDACA,0DACA,sDACA,wDACA,iFACA,sHACA,oFACA,kDAAiDrJ,EAAA,YAAA,IAVlDwJ,EAAA5D,EAAAwB,CAAA,sBAFFqC,KACU,MAAAF,EAAK,QAAA,CAAA,MAAA,EAAA,EAAA,yEAhBlB","x_google_ignoreList":[0,1,2,3,4,5,6,7]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/B4VmGkxP.js b/backend/static/frontend/_app/immutable/chunks/B4VmGkxP.js
new file mode 100644
index 00000000..0a64a418
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/B4VmGkxP.js
@@ -0,0 +1 @@
+import{R as e}from"./BIF4_51j.js";function i(r,t){throw new e(r,t.toString())}export{i as r};
diff --git a/backend/static/frontend/_app/immutable/chunks/BJZ1igWb.js.map b/backend/static/frontend/_app/immutable/chunks/B4VmGkxP.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/BJZ1igWb.js.map
rename to backend/static/frontend/_app/immutable/chunks/B4VmGkxP.js.map
index d07705fa..644218c8 100644
--- a/backend/static/frontend/_app/immutable/chunks/BJZ1igWb.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/B4VmGkxP.js.map
@@ -1 +1 @@
-{"version":3,"file":"BJZ1igWb.js","sources":["../../../../../../node_modules/@sveltejs/kit/src/exports/index.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/index.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../runtime/pathname.js';\nimport { text_encoder } from '../runtime/utils.js';\n\nexport { VERSION } from '../version.js';\n\n// TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)\n/**\n * @template {number} TNumber\n * @template {any[]} [TArray=[]]\n * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan\n */\n\n/**\n * @template {number} TStart\n * @template {number} TEnd\n * @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange\n */\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {App.Error} body\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, body) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\tthrow new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);\n\t}\n\n\tthrow new HttpError(status, body);\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @throws {Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid.\n * @return {never}\n */\nexport function redirect(status, location) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\tthrow new Error('Invalid status code');\n\t}\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\tlocation.toString()\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n */\nexport function json(data, init) {\n\t// TODO deprecate this in favour of `Response.json` when it's\n\t// more widely supported\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '$lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is an validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'http://internal');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"names":["redirect","status","location","Redirect"],"mappings":"kCA+GO,SAASA,EAASC,EAAQC,EAAU,CAK1C,MAAM,IAAIC,EAETF,EACAC,EAAS,SAAQ,CACnB,CACA","x_google_ignoreList":[0]}
\ No newline at end of file
+{"version":3,"file":"B4VmGkxP.js","sources":["../../../../../../node_modules/@sveltejs/kit/src/exports/index.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/index.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../runtime/pathname.js';\nimport { text_encoder } from '../runtime/utils.js';\n\nexport { VERSION } from '../version.js';\n\n// TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)\n/**\n * @template {number} TNumber\n * @template {any[]} [TArray=[]]\n * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan\n */\n\n/**\n * @template {number} TStart\n * @template {number} TEnd\n * @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange\n */\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {App.Error} body\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, body) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\tthrow new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);\n\t}\n\n\tthrow new HttpError(status, body);\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @throws {Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid.\n * @return {never}\n */\nexport function redirect(status, location) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\tthrow new Error('Invalid status code');\n\t}\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\tlocation.toString()\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n */\nexport function json(data, init) {\n\t// TODO deprecate this in favour of `Response.json` when it's\n\t// more widely supported\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '$lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is an validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'http://internal');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"names":["redirect","status","location","Redirect"],"mappings":"kCA+GO,SAASA,EAASC,EAAQC,EAAU,CAK1C,MAAM,IAAIC,EAETF,EACAC,EAAS,SAAQ,CACnB,CACA","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/Bo0m_oha.js b/backend/static/frontend/_app/immutable/chunks/B622WnQw.js
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/Bo0m_oha.js
rename to backend/static/frontend/_app/immutable/chunks/B622WnQw.js
index 48bc9212..9e505fa8 100644
--- a/backend/static/frontend/_app/immutable/chunks/Bo0m_oha.js
+++ b/backend/static/frontend/_app/immutable/chunks/B622WnQw.js
@@ -1 +1 @@
-import{l as be,s as ye,p as H,i as y,b as Xe}from"./DMODTt3n.js";import{I as Te,s as we}from"./CQWqWi6p.js";import{d as C,c as M,b as o,q as We,p as ne,F as re,g as t,h as lt,i as F,f as B,e as p,u as s,s as L,r as g,k,j as me,a as ae,w as kt,l as $,n as ge,t as ve,v as Ee}from"./B2WdN-7r.js";import{e as St,i as Ft}from"./CMyj8Fzw.js";import{e as Mt,s as f}from"./DH0tcjsQ.js";import{f as Ke,g as qe}from"./DJdWGDax.js";import{l as Oe,u as Ye,m as he,a as xe,b as De,c as Je,D as Qe}from"./Dj0-793h.js";import{c as Kt}from"./BAcG0-U_.js";import{b as Ze,T as $e,a as _e,c as tr}from"./CeOjHHJH.js";import{a as er,p as rr}from"./D6S6XYVy.js";import{L as nr}from"./D0pIT200.js";function Wr(r,n){const I=be(n,["children","$$slots","$$events","$$legacy"]);const D=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]];Te(r,ye({name:"refresh-cw"},()=>I,{get iconNode(){return D},children:(J,d)=>{var N=C(),E=M(N);we(E,n,"default",{},null),o(J,N)},$$slots:{default:!0}}))}function Er(r,n){const I=be(n,["children","$$slots","$$events","$$legacy"]);const D=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]];Te(r,ye({name:"star"},()=>I,{get iconNode(){return D},children:(J,d)=>{var N=C(),E=M(N);we(E,n,"default",{},null),o(J,N)},$$slots:{default:!0}}))}function jt(r,n){return n==="1"?jt(r*100,"%"):n==="By"?jt(r,"B"):n.length>2&&n.startsWith("{")&&n.endsWith("}")?jt(r,"count"):n==="%"?r===0?{text:"0",unit:"%"}:Math.abs(r)<.1?{text:r.toFixed(2),unit:"%"}:Math.abs(r)<10?{text:r.toFixed(1),unit:"%"}:{text:Math.round(r).toString(),unit:"%"}:n==="ms"?r<1?{text:(r*1e3).toFixed(0),unit:"µs"}:r<10?{text:r.toFixed(1),unit:"ms"}:r<1e3?{text:Math.round(r).toString(),unit:"ms"}:{text:(r/1e3).toFixed(1),unit:"s"}:n==="ns"?r<1e3?{text:Math.round(r).toString(),unit:"ns"}:r<1e6?{text:(r/1e3).toFixed(1),unit:"µs"}:r<1e9?{text:(r/1e6).toFixed(1),unit:"ms"}:{text:(r/1e9).toFixed(1),unit:"s"}:n==="s"?r<.001?{text:(r*1e6).toFixed(0),unit:"µs"}:r<1?{text:(r*1e3).toFixed(1),unit:"ms"}:r<60?{text:r.toFixed(1),unit:"s"}:r<3600?{text:(r/60).toFixed(1),unit:"min"}:{text:(r/3600).toFixed(1),unit:"h"}:n==="MB"?r<1?{text:(r*1024).toFixed(0),unit:"KB"}:r>=1024?{text:(r/1024).toFixed(1),unit:"GB"}:{text:Math.round(r).toString(),unit:"MB"}:n==="GB"?r<1?{text:(r*1024).toFixed(0),unit:"MB"}:r>=1024?{text:(r/1024).toFixed(1),unit:"TB"}:{text:r.toFixed(1),unit:"GB"}:n==="bytes"||n==="B"?r<1024?{text:Math.round(r).toString(),unit:"B"}:r<1024*1024?{text:(r/1024).toFixed(1),unit:"KB"}:r<1024*1024*1024?{text:(r/(1024*1024)).toFixed(1),unit:"MB"}:{text:(r/(1024*1024*1024)).toFixed(1),unit:"GB"}:n==="count"||n===""?r>=1e6?{text:(r/1e6).toFixed(1),unit:"M"}:r>=1e3?{text:(r/1e3).toFixed(1),unit:"K"}:{text:Math.round(r).toString(),unit:""}:Number.isInteger(r)?{text:r.toString(),unit:n}:{text:r.toFixed(1),unit:n}}function qt(r,n){const I=jt(r,n);return I.unit?`${I.text} ${I.unit}`:I.text}var ar=kt('<line stroke="#e5e7eb" stroke-width="1" stroke-dasharray="4 4"></line>'),ir=kt('<text text-anchor="end" dominant-baseline="middle" fill="#6b7280" font-size="10"> </text>'),or=kt('<text text-anchor="end" fill="#9ca3af" font-size="10"> </text>'),sr=kt('<path fill-opacity="0.15" stroke="none"></path>'),lr=kt('<path fill="none" stroke-width="1.5"></path>'),dr=kt('<circle r="3"></circle>'),fr=kt("<!><!><!>",1),ur=kt('<svg><defs><clipPath><rect></rect></clipPath></defs><g><!><!><!><line stroke="#e5e7eb" stroke-width="1"></line><line stroke="#e5e7eb" stroke-width="1"></line><g></g></g></svg>'),cr=B('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data in this period</div>'),mr=B('<div class="absolute top-0 bottom-0 bg-primary/20 border-x border-primary/40 pointer-events-none"><div class="absolute -top-5 left-0 -translate-x-full text-[9px] font-medium text-primary whitespace-nowrap"> </div> <div class="absolute -top-5 right-0 translate-x-full text-[9px] font-medium text-primary whitespace-nowrap"> </div></div>'),gr=B('<span class="text-background/70 ml-0.5"> </span>'),vr=B('<div class="flex items-center gap-1.5"><span class="h-2 w-2 rounded-full flex-shrink-0"></span> <span> <!></span></div>'),hr=B('<div class="absolute top-0 -translate-x-1/2 -translate-y-full pointer-events-none"><div class="bg-foreground text-background rounded px-2 py-1 text-xs font-medium whitespace-nowrap shadow-lg mb-1 flex flex-col gap-0.5"></div></div>'),xr=B('<span class="text-background/70 ml-0.5"> </span>'),_r=B('<div class="absolute top-0 -translate-x-1/2 -translate-y-full pointer-events-none"><div class="bg-foreground text-background rounded px-2 py-1 text-xs font-medium whitespace-nowrap shadow-lg mb-1"> <!></div></div>'),pr=B('<div class="absolute top-0 bottom-0 w-px bg-muted-foreground/50 pointer-events-none"></div> <!> <div class="absolute bottom-0 -translate-x-1/2 translate-y-full pointer-events-none"><div class="bg-background border border-border rounded px-1.5 py-0.5 text-[10px] text-muted-foreground whitespace-nowrap shadow-sm mt-1"> </div></div>',1),br=B('<div class="absolute top-0 bottom-0 w-px bg-muted-foreground/25 pointer-events-none"></div>'),yr=B('<div class="relative select-none w-full" role="application" aria-label="Chart with drag-to-zoom"><!> <!> <!> <!></div>');function pe(r,n){ne(n,!0);let I=H(n,"series",19,()=>[]),D=H(n,"xDomain",3,null),J=H(n,"height",3,220),d=H(n,"padding",19,()=>({top:10,right:4,bottom:20,left:45})),N=H(n,"data",19,()=>[]),E=H(n,"servers",19,()=>[]),A=H(n,"serverColorMap",19,()=>({})),T=H(n,"unit",3,""),X=H(n,"areaFill",3,!1),dt=H(n,"sharedHoverTime",3,null),gt=H(n,"isSourceChart",3,!1);const Ct=s(qe);let Q=lt(null),tt=lt(300),vt=lt(!1),_=lt(0),c=lt(!1),V=lt(0),K=lt(0);re(()=>{if(!t(Q))return;const e=new ResizeObserver(a=>{for(const i of a)F(tt,i.contentRect.width,!0)});return e.observe(t(Q)),()=>e.disconnect()});const R=s(()=>Math.max(0,t(tt)-d().left-d().right)),S=s(()=>Math.max(0,J()-d().top-d().bottom)),m=s(()=>I().flatMap(e=>e.data)),z=s(()=>D()?.[0]??he(t(m),e=>e.timestamp)??new Date),et=s(()=>D()?.[1]??xe(t(m),e=>e.timestamp)??new Date),ft=s(()=>()=>{const e=he(t(m),a=>a.value);return typeof e=="number"?e:0}),q=s(()=>()=>{const e=xe(t(m),a=>a.value);return typeof e=="number"?e:0}),rt=s(()=>(t(q)()-t(ft)())*.1||1),pt=s(()=>Math.max(0,t(ft)()-t(rt))),Bt=s(()=>t(q)()+t(rt)),nt=s(()=>Ye().domain([t(z),t(et)]).range([0,t(R)])),v=s(()=>Oe().domain([t(pt),t(Bt)]).range([t(S),0])),P=s(()=>()=>t(v).ticks(4)),bt=s(()=>()=>{if(!T())return"";const e=t(P)();if(e.length===0)return T();const a=e[e.length-1];return jt(a,T()).unit});function at(e){return T()?jt(e,T()).text:e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":Number.isInteger(e)?e.toString():e.toFixed(1)}function Lt(e){return e.length===0?"":De().x(i=>t(nt)(i.timestamp)).y(i=>t(v)(i.value))(e)||""}function j(e){return e.length===0?"":Je().x(i=>t(nt)(i.timestamp)).y0(t(S)).y1(i=>t(v)(i.value))(e)||""}const ht=s(()=>t(m).length>0),Ht=s(()=>E()&&E().length>1);function Pt(){return t(_)>=d().left&&t(_)<=t(tt)-d().right}function ut(e){if(t(R)<=0)return t(z);const a=e-d().left,i=Math.max(0,Math.min(1,a/t(R))),l=t(et).getTime()-t(z).getTime();return new Date(t(z).getTime()+l*i)}function G(e){if(t(R)<=0)return d().left;const a=t(et).getTime()-t(z).getTime();if(a<=0)return d().left;const i=(e.getTime()-t(z).getTime())/a;return d().left+i*t(R)}function it(e){if(e.length<2)return 36e5;const a=[];for(let i=1;i<Math.min(e.length,10);i++)a.push(e[i].timestamp.getTime()-e[i-1].timestamp.getTime());return a.sort((i,l)=>i-l),a[Math.floor(a.length/2)]*2}function Gt(e){if(e.length===0)return[];const a=it(e),i=[];let l=[e[0]];for(let u=1;u<e.length;u++)e[u].timestamp.getTime()-e[u-1].timestamp.getTime()>a?(l.length>0&&i.push(l),l=[e[u]]):l.push(e[u]);return l.length>0&&i.push(l),i}function At(e){if(e.length===0)return[];if(e.length===1)return e;const a=it(e),i=[];for(let l=0;l<e.length;l++){const u=l===0||e[l].timestamp.getTime()-e[l-1].timestamp.getTime()>a,h=l===e.length-1||e[l+1].timestamp.getTime()-e[l].timestamp.getTime()>a;u&&h&&i.push(e[l])}return i}function ie(e,a){if(a.length===0)return null;const i=e.getTime(),l=it(a);let u=-1,h=-1;for(let b=0;b<a.length;b++){const Z=a[b].timestamp.getTime();Z<=i&&(u=b),Z>=i&&h===-1&&(h=b)}if(u>=0&&a[u].timestamp.getTime()===i)return{value:a[u].value,isInterpolated:!1};if(u>=0&&h>=0&&u!==h){const b=a[u],Z=a[h],xt=Z.timestamp.getTime()-b.timestamp.getTime();if(xt<=l){const It=(i-b.timestamp.getTime())/xt;return{value:b.value+It*(Z.value-b.value),isInterpolated:!0}}}return u>=0&&i-a[u].timestamp.getTime()<=l/2?{value:a[u].value,isInterpolated:!1}:h>=0&&a[h].timestamp.getTime()-i<=l/2?{value:a[h].value,isInterpolated:!1}:null}const Qt=s(()=>()=>t(vt)?ut(t(_)):null),Me=s(()=>()=>{const e=t(Qt)();return e?ie(e,N()):null}),oe=s(()=>()=>{const e=t(Qt)();if(!e||!t(Ht))return[];const a=[];for(const i of E()){const l=ie(e,i.trend);l&&a.push({serverName:i.serverName,value:l.value,color:A()[i.serverName]||"#888888"})}return a}),se=s(()=>dt()!==null&&!gt()&&!t(c)&&!t(vt)),Se=s(()=>()=>!t(se)||!dt()?0:G(dt()));function le(e){return n.formatValue?{text:n.formatValue(e),includesUnit:!0}:Number.isInteger(e)?{text:e.toString(),includesUnit:!1}:Math.abs(e)<.01?{text:e.toFixed(4),includesUnit:!1}:Math.abs(e)<1?{text:e.toFixed(2),includesUnit:!1}:Math.abs(e)<10?{text:e.toFixed(1),includesUnit:!1}:{text:Math.round(e).toString(),includesUnit:!1}}const Ot=s(()=>Math.max(d().left,Math.min(t(V),t(K)))),Fe=s(()=>()=>Math.min(t(tt)-d().right,Math.max(t(V),t(K)))),Yt=s(()=>t(Fe)()-t(Ot)),ke=s(()=>()=>ut(t(Ot))),Ce=s(()=>()=>ut(t(Ot)+t(Yt)));function Be(e){if(!t(Q))return;const a=t(Q).getBoundingClientRect();F(_,e.clientX-a.left),t(c)?F(K,t(_),!0):Pt()&&n.onHoverTimeChange?.(ut(t(_)))}function Le(){F(vt,!0)}function Pe(){F(vt,!1),t(c)&&F(c,!1),n.onHoverTimeChange?.(null)}function Ie(e){if(!t(Q)||e.button!==0)return;const a=t(Q).getBoundingClientRect(),i=e.clientX-a.left;i<d().left||i>a.width-d().right||(F(c,!0),F(V,i),F(K,i),e.preventDefault())}function Ne(){if(t(c)&&(F(c,!1),t(Yt)>10&&n.onRangeSelect)){const e=ut(Math.min(t(V),t(K))),a=ut(Math.max(t(V),t(K)));n.onRangeSelect(e,a)}}function Zt(e){return e?Ke(e,{timezone:t(Ct),format:"time"}):""}function de(e){e.key==="Escape"&&t(c)&&(F(c,!1),F(V,0),F(K,0))}re(()=>{if(t(c))return window.addEventListener("keydown",de),()=>window.removeEventListener("keydown",de)});var ct=yr();ct.__mousemove=Be,ct.__mousedown=Ie,ct.__mouseup=Ne;var fe=p(ct);{var Re=e=>{const a=s(()=>`chart-clip-${Math.random().toString(36).slice(2,9)}`);var i=ur(),l=p(i),u=p(l),h=p(u);f(h,"x",0),f(h,"y",0),g(u),g(l);var b=L(l),Z=p(b);St(Z,17,()=>t(P)(),Ft,(Y,x)=>{var w=ar();f(w,"x1",0),k((U,ot)=>{f(w,"y1",U),f(w,"x2",t(R)),f(w,"y2",ot)},[()=>t(v)(t(x)),()=>t(v)(t(x))]),o(Y,w)});var xt=L(Z);St(xt,17,()=>t(P)(),Ft,(Y,x)=>{var w=ir();f(w,"x",-8);var U=p(w,!0);g(w),k((ot,st)=>{f(w,"y",ot),$(U,st)},[()=>t(v)(t(x)),()=>at(t(x))]),o(Y,w)});var It=L(xt);{var Dt=Y=>{var x=or();f(x,"x",-8),f(x,"y",-4);var w=p(x,!0);g(x),k(U=>$(w,U),[()=>t(bt)()]),o(Y,x)};y(It,Y=>{t(bt)()&&Y(Dt)})}var W=L(It);f(W,"x1",0);var O=L(W);f(O,"x1",0),f(O,"y1",0),f(O,"x2",0);var yt=L(O);St(yt,21,I,Ft,(Y,x)=>{var w=C(),U=M(w);{var ot=st=>{const Nt=s(()=>Gt(t(x).data)),Xt=s(()=>At(t(x).data));var Tt=fr(),mt=M(Tt);{var Rt=Ut=>{var wt=C(),_t=M(wt);St(_t,17,()=>t(Nt),Ft,(Wt,Vt)=>{var zt=C(),Et=M(zt);{var $t=te=>{var ee=sr();k(Ae=>{f(ee,"d",Ae),f(ee,"fill",t(x).color)},[()=>j(t(Vt))]),o(te,ee)};y(Et,te=>{t(Vt).length>1&&te($t)})}o(Wt,zt)}),o(Ut,wt)};y(mt,Ut=>{X()&&Ut(Rt)})}var Jt=L(mt);St(Jt,17,()=>t(Nt),Ft,(Ut,wt)=>{var _t=C(),Wt=M(_t);{var Vt=zt=>{var Et=lr();k($t=>{f(Et,"d",$t),f(Et,"stroke",t(x).color)},[()=>Lt(t(wt))]),o(zt,Et)};y(Wt,zt=>{t(wt).length>1&&zt(Vt)})}o(Ut,_t)});var Ge=L(Jt);St(Ge,17,()=>t(Xt),Ft,(Ut,wt)=>{var _t=dr();k((Wt,Vt)=>{f(_t,"cx",Wt),f(_t,"cy",Vt),f(_t,"fill",t(x).color)},[()=>t(nt)(t(wt).timestamp),()=>t(v)(t(wt).value)]),o(Ut,_t)}),o(st,Tt)};y(U,st=>{t(x).data.length>0&&st(ot)})}o(Y,w)}),g(yt),g(b),g(i),k(()=>{f(i,"width",t(tt)),f(i,"height",J()),f(u,"id",t(a)),f(h,"width",t(R)),f(h,"height",t(S)),f(b,"transform",`translate(${d().left??""}, ${d().top??""})`),f(W,"y1",t(S)),f(W,"x2",t(R)),f(W,"y2",t(S)),f(O,"y2",t(S)),f(yt,"clip-path",`url(#${t(a)??""})`)}),o(e,i)},Ue=e=>{var a=cr();o(e,a)};y(fe,e=>{t(ht)&&t(R)>0?e(Re):e(Ue,!1)})}var ue=L(fe,2);{var He=e=>{var a=mr(),i=p(a),l=p(i,!0);g(i);var u=L(i,2),h=p(u,!0);g(u),g(a),k((b,Z)=>{Mt(a,`left: ${t(Ot)??""}px; width: ${t(Yt)??""}px;`),$(l,b),$(h,Z)},[()=>Zt(t(ke)()),()=>Zt(t(Ce)())]),o(e,a)};y(ue,e=>{t(c)&&t(Yt)>0&&e(He)})}var ce=L(ue,2);{var Ve=e=>{const a=s(()=>Math.max(d().left,Math.min(t(_),t(tt)-d().right))),i=s(()=>t(Me)());var l=pr(),u=M(l),h=L(u,2);{var b=W=>{var O=hr(),yt=p(O);St(yt,21,()=>t(oe)(),Ft,(Y,x)=>{const w=s(()=>le(t(x).value));var U=vr(),ot=p(U),st=L(ot,2),Nt=p(st,!0),Xt=L(Nt);{var Tt=mt=>{var Rt=gr(),Jt=p(Rt,!0);g(Rt),k(()=>$(Jt,T())),o(mt,Rt)};y(Xt,mt=>{T()&&!t(w).includesUnit&&mt(Tt)})}g(st),g(U),k(()=>{Mt(ot,`background-color: ${t(x).color??""};`),$(Nt,t(w).text)}),o(Y,U)}),g(yt),g(O),k(()=>Mt(O,`left: ${t(a)??""}px;`)),o(W,O)},Z=W=>{var O=C(),yt=M(O);{var Y=x=>{const w=s(()=>le(t(i).value));var U=_r(),ot=p(U),st=p(ot,!0),Nt=L(st);{var Xt=Tt=>{var mt=xr(),Rt=p(mt,!0);g(mt),k(()=>$(Rt,T())),o(Tt,mt)};y(Nt,Tt=>{T()&&!t(w).includesUnit&&Tt(Xt)})}g(ot),g(U),k(()=>{Mt(U,`left: ${t(a)??""}px;`),$(st,t(w).text)}),o(x,U)};y(yt,x=>{t(i)&&x(Y)},!0)}o(W,O)};y(h,W=>{t(Ht)&&t(oe)().length>0?W(b):W(Z,!1)})}var xt=L(h,2),It=p(xt),Dt=p(It,!0);g(It),g(xt),k(W=>{Mt(u,`left: ${t(a)??""}px;`),Mt(xt,`left: ${t(a)??""}px;`),$(Dt,W)},[()=>Zt(t(Qt)())]),o(e,l)};y(ce,e=>{t(vt)&&!t(c)&&Pt()&&e(Ve)})}var ze=L(ce,2);{var je=e=>{const a=s(()=>t(Se)());var i=C(),l=M(i);{var u=h=>{var b=br();k(()=>Mt(b,`left: ${t(a)??""}px;`)),o(h,b)};y(l,h=>{t(a)>=d().left&&t(a)<=t(tt)-d().right&&h(u)})}o(e,i)};y(ze,e=>{t(se)&&e(je)})}g(ct),Xe(ct,e=>F(Q,e),()=>t(Q)),k(e=>Mt(ct,`height: ${J()??""}px; cursor: ${e??""};`),[()=>t(c)?"col-resize":Pt()?"crosshair":"default"]),me("mouseenter",ct,Le),me("mouseleave",ct,Pe),o(r,ct),ae()}We(["mousemove","mousedown","mouseup"]);var Tr=B("<!> <!>",1),wr=B('<div class="overflow-auto"><!></div>');function Mr(r,n){ne(n,!0);let I=H(n,"series",19,()=>[]),D=H(n,"unit",3,"");const J=s(()=>()=>{const A=I()[0];if(!A)return[];const T=A.data.map(dt=>dt.value);if(T.length===0)return[{label:"Latest",value:0},{label:"Min",value:0},{label:"Max",value:0},{label:"Avg",value:0}];const X=T.reduce((dt,gt)=>dt+gt,0);return[{label:"Latest",value:T[T.length-1]},{label:"Min",value:Math.min(...T)},{label:"Max",value:Math.max(...T)},{label:"Avg",value:X/T.length}]});function d(A){return D()?qt(A,D()):Number.isInteger(A)?A.toString():A.toFixed(2)}var N=wr(),E=p(N);Kt(E,()=>tr,(A,T)=>{T(A,{children:(X,dt)=>{var gt=C(),Ct=M(gt);Kt(Ct,()=>Ze,(Q,tt)=>{tt(Q,{children:(vt,_)=>{var c=C(),V=M(c);St(V,17,()=>t(J)(),Ft,(K,R)=>{var S=C(),m=M(S);Kt(m,()=>$e,(z,et)=>{et(z,{children:(ft,q)=>{var rt=Tr(),pt=M(rt);Kt(pt,()=>_e,(nt,v)=>{v(nt,{class:"font-medium",children:(P,bt)=>{ge();var at=ve();k(()=>$(at,t(R).label)),o(P,at)},$$slots:{default:!0}})});var Bt=L(pt,2);Kt(Bt,()=>_e,(nt,v)=>{v(nt,{class:"text-right",children:(P,bt)=>{ge();var at=ve();k(Lt=>$(at,Lt),[()=>d(t(R).value)]),o(P,at)},$$slots:{default:!0}})}),o(ft,rt)},$$slots:{default:!0}})}),o(K,S)}),o(vt,c)},$$slots:{default:!0}})}),o(X,gt)},$$slots:{default:!0}})}),g(N),o(r,N),ae()}var Sr=B('<div class="flex h-full items-center justify-center"><!></div>'),Fr=B('<div class="flex h-full flex-col items-center justify-center"><span class="text-3xl font-bold"> </span></div>'),kr=B('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data</div>'),Cr=B('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data</div>'),Br=B('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data</div>'),Lr=B('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data</div>'),Pr=B('<div class="h-full w-full min-h-[200px]"><!></div>');function Kr(r,n){ne(n,!0);let I=H(n,"timeDomain",3,null),D=H(n,"sharedHoverTime",3,null),J=H(n,"isSourceChart",3,!1),d=lt(Ee([])),N=lt(!0),E=lt(null),A=lt("");const T=["#3b82f6","#ef4444","#22c55e","#f59e0b","#8b5cf6","#ec4899"],X=s(()=>n.widget.config.unit??t(A));async function dt(){const _=n.widget.config.sources;if(!_||_.length===0){F(N,!1);return}F(N,!0);try{const c=[];let V=0;const K=_.map(m=>({name:m.name,aggregation:m.aggregation||"avg",tagFilters:m.tagFilters,groupBy:m.groupBy})),R=await er.post("/metrics/query",{queries:K,from:n.fromDateUTC,to:n.toDateUTC},{projectId:rr.currentProjectId??void 0}),S=new Set;for(const m of R.results){m.unit&&S.add(m.unit);for(const[z,et]of Object.entries(m.series)){const ft=Object.keys(m.series).length>1?`${m.name} (${z})`:m.name;c.push({key:ft,data:et.map(q=>({timestamp:new Date(q.Timestamp),value:q.Value})),color:T[V%T.length]}),V++}}F(A,S.size===1?[...S][0]:"",!0),F(d,c,!0),n.widget.widgetType==="single_value"&&c.length>0&&c[0].data.length>0&&F(E,c[0].data[c[0].data.length-1].value,!0)}catch{}finally{F(N,!1)}}re(()=>{n.fromDateUTC&&n.toDateUTC&&dt()});const gt=s(()=>t(d).map(_=>({endpoint:_.key,value:_.data.length>0?_.data[_.data.length-1].value:0})));var Ct=Pr(),Q=p(Ct);{var tt=_=>{var c=Sr(),V=p(c);nr(V,{size:"md"}),g(c),o(_,c)},vt=_=>{var c=C(),V=M(c);{var K=S=>{var m=Fr(),z=p(m),et=p(z,!0);g(z),g(m),k(ft=>$(et,ft),[()=>t(E)!==null?qt(t(E),t(X)):"-"]),o(S,m)},R=S=>{var m=C(),z=M(m);{var et=q=>{var rt=C(),pt=M(rt);{var Bt=v=>{Qe(v,{get data(){return t(gt)},height:200,get unit(){return t(X)},formatValue:P=>qt(P,t(X))})},nt=v=>{var P=kr();o(v,P)};y(pt,v=>{t(gt).length>0?v(Bt):v(nt,!1)})}o(q,rt)},ft=q=>{var rt=C(),pt=M(rt);{var Bt=v=>{var P=C(),bt=M(P);{var at=j=>{Mr(j,{get series(){return t(d)},get unit(){return t(X)}})},Lt=j=>{var ht=Cr();o(j,ht)};y(bt,j=>{t(d).length>0?j(at):j(Lt,!1)})}o(v,P)},nt=v=>{var P=C(),bt=M(P);{var at=j=>{var ht=C(),Ht=M(ht);{var Pt=G=>{{let it=s(()=>I()??void 0),Gt=s(()=>t(d)[0]?.data??[]);pe(G,{get series(){return t(d)},get xDomain(){return t(it)},height:200,padding:{top:10,right:4,bottom:20,left:45},get onRangeSelect(){return n.onRangeSelect},get data(){return t(Gt)},areaFill:!0,get unit(){return t(X)},formatValue:At=>qt(At,t(X)),get sharedHoverTime(){return D()},get isSourceChart(){return J()},get onHoverTimeChange(){return n.onHoverTimeChange}})}},ut=G=>{var it=Br();o(G,it)};y(Ht,G=>{t(d).length>0?G(Pt):G(ut,!1)})}o(j,ht)},Lt=j=>{var ht=C(),Ht=M(ht);{var Pt=G=>{{let it=s(()=>I()??void 0),Gt=s(()=>t(d)[0]?.data??[]);pe(G,{get series(){return t(d)},get xDomain(){return t(it)},height:200,padding:{top:10,right:4,bottom:20,left:45},get onRangeSelect(){return n.onRangeSelect},get data(){return t(Gt)},get unit(){return t(X)},formatValue:At=>qt(At,t(X)),get sharedHoverTime(){return D()},get isSourceChart(){return J()},get onHoverTimeChange(){return n.onHoverTimeChange}})}},ut=G=>{var it=Lr();o(G,it)};y(Ht,G=>{t(d).length>0?G(Pt):G(ut,!1)},!0)}o(j,ht)};y(bt,j=>{n.widget.widgetType==="area_chart"?j(at):j(Lt,!1)},!0)}o(v,P)};y(pt,v=>{n.widget.widgetType==="table"?v(Bt):v(nt,!1)},!0)}o(q,rt)};y(z,q=>{n.widget.widgetType==="bar_chart"?q(et):q(ft,!1)},!0)}o(S,m)};y(V,S=>{n.widget.widgetType==="single_value"?S(K):S(R,!1)},!0)}o(_,c)};y(Q,_=>{t(N)?_(tt):_(vt,!1)})}g(Ct),o(r,Ct),ae()}export{Wr as R,Er as S,Kr as W};
+import{l as be,s as ye,p as H,i as y,b as Xe}from"./DMODTt3n.js";import{I as Te,s as we}from"./CQWqWi6p.js";import{d as C,c as M,b as o,q as We,p as ne,F as re,g as t,h as lt,i as F,f as B,e as p,u as s,s as L,r as g,k,j as me,a as ae,w as kt,l as $,n as ge,t as ve,v as Ee}from"./B2WdN-7r.js";import{e as St,i as Ft}from"./CMyj8Fzw.js";import{e as Mt,s as f}from"./DH0tcjsQ.js";import{f as Ke,g as qe}from"./Dq-0lVru.js";import{l as Oe,u as Ye,m as he,a as xe,b as De,c as Je,D as Qe}from"./Dj0-793h.js";import{c as Kt}from"./BAcG0-U_.js";import{b as Ze,T as $e,a as _e,c as tr}from"./CeOjHHJH.js";import{a as er,p as rr}from"./qCQ2nSvO.js";import{L as nr}from"./D0pIT200.js";function Wr(r,n){const I=be(n,["children","$$slots","$$events","$$legacy"]);const D=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]];Te(r,ye({name:"refresh-cw"},()=>I,{get iconNode(){return D},children:(J,d)=>{var N=C(),E=M(N);we(E,n,"default",{},null),o(J,N)},$$slots:{default:!0}}))}function Er(r,n){const I=be(n,["children","$$slots","$$events","$$legacy"]);const D=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]];Te(r,ye({name:"star"},()=>I,{get iconNode(){return D},children:(J,d)=>{var N=C(),E=M(N);we(E,n,"default",{},null),o(J,N)},$$slots:{default:!0}}))}function jt(r,n){return n==="1"?jt(r*100,"%"):n==="By"?jt(r,"B"):n.length>2&&n.startsWith("{")&&n.endsWith("}")?jt(r,"count"):n==="%"?r===0?{text:"0",unit:"%"}:Math.abs(r)<.1?{text:r.toFixed(2),unit:"%"}:Math.abs(r)<10?{text:r.toFixed(1),unit:"%"}:{text:Math.round(r).toString(),unit:"%"}:n==="ms"?r<1?{text:(r*1e3).toFixed(0),unit:"µs"}:r<10?{text:r.toFixed(1),unit:"ms"}:r<1e3?{text:Math.round(r).toString(),unit:"ms"}:{text:(r/1e3).toFixed(1),unit:"s"}:n==="ns"?r<1e3?{text:Math.round(r).toString(),unit:"ns"}:r<1e6?{text:(r/1e3).toFixed(1),unit:"µs"}:r<1e9?{text:(r/1e6).toFixed(1),unit:"ms"}:{text:(r/1e9).toFixed(1),unit:"s"}:n==="s"?r<.001?{text:(r*1e6).toFixed(0),unit:"µs"}:r<1?{text:(r*1e3).toFixed(1),unit:"ms"}:r<60?{text:r.toFixed(1),unit:"s"}:r<3600?{text:(r/60).toFixed(1),unit:"min"}:{text:(r/3600).toFixed(1),unit:"h"}:n==="MB"?r<1?{text:(r*1024).toFixed(0),unit:"KB"}:r>=1024?{text:(r/1024).toFixed(1),unit:"GB"}:{text:Math.round(r).toString(),unit:"MB"}:n==="GB"?r<1?{text:(r*1024).toFixed(0),unit:"MB"}:r>=1024?{text:(r/1024).toFixed(1),unit:"TB"}:{text:r.toFixed(1),unit:"GB"}:n==="bytes"||n==="B"?r<1024?{text:Math.round(r).toString(),unit:"B"}:r<1024*1024?{text:(r/1024).toFixed(1),unit:"KB"}:r<1024*1024*1024?{text:(r/(1024*1024)).toFixed(1),unit:"MB"}:{text:(r/(1024*1024*1024)).toFixed(1),unit:"GB"}:n==="count"||n===""?r>=1e6?{text:(r/1e6).toFixed(1),unit:"M"}:r>=1e3?{text:(r/1e3).toFixed(1),unit:"K"}:{text:Math.round(r).toString(),unit:""}:Number.isInteger(r)?{text:r.toString(),unit:n}:{text:r.toFixed(1),unit:n}}function qt(r,n){const I=jt(r,n);return I.unit?`${I.text} ${I.unit}`:I.text}var ar=kt('<line stroke="#e5e7eb" stroke-width="1" stroke-dasharray="4 4"></line>'),ir=kt('<text text-anchor="end" dominant-baseline="middle" fill="#6b7280" font-size="10"> </text>'),or=kt('<text text-anchor="end" fill="#9ca3af" font-size="10"> </text>'),sr=kt('<path fill-opacity="0.15" stroke="none"></path>'),lr=kt('<path fill="none" stroke-width="1.5"></path>'),dr=kt('<circle r="3"></circle>'),fr=kt("<!><!><!>",1),ur=kt('<svg><defs><clipPath><rect></rect></clipPath></defs><g><!><!><!><line stroke="#e5e7eb" stroke-width="1"></line><line stroke="#e5e7eb" stroke-width="1"></line><g></g></g></svg>'),cr=B('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data in this period</div>'),mr=B('<div class="absolute top-0 bottom-0 bg-primary/20 border-x border-primary/40 pointer-events-none"><div class="absolute -top-5 left-0 -translate-x-full text-[9px] font-medium text-primary whitespace-nowrap"> </div> <div class="absolute -top-5 right-0 translate-x-full text-[9px] font-medium text-primary whitespace-nowrap"> </div></div>'),gr=B('<span class="text-background/70 ml-0.5"> </span>'),vr=B('<div class="flex items-center gap-1.5"><span class="h-2 w-2 rounded-full flex-shrink-0"></span> <span> <!></span></div>'),hr=B('<div class="absolute top-0 -translate-x-1/2 -translate-y-full pointer-events-none"><div class="bg-foreground text-background rounded px-2 py-1 text-xs font-medium whitespace-nowrap shadow-lg mb-1 flex flex-col gap-0.5"></div></div>'),xr=B('<span class="text-background/70 ml-0.5"> </span>'),_r=B('<div class="absolute top-0 -translate-x-1/2 -translate-y-full pointer-events-none"><div class="bg-foreground text-background rounded px-2 py-1 text-xs font-medium whitespace-nowrap shadow-lg mb-1"> <!></div></div>'),pr=B('<div class="absolute top-0 bottom-0 w-px bg-muted-foreground/50 pointer-events-none"></div> <!> <div class="absolute bottom-0 -translate-x-1/2 translate-y-full pointer-events-none"><div class="bg-background border border-border rounded px-1.5 py-0.5 text-[10px] text-muted-foreground whitespace-nowrap shadow-sm mt-1"> </div></div>',1),br=B('<div class="absolute top-0 bottom-0 w-px bg-muted-foreground/25 pointer-events-none"></div>'),yr=B('<div class="relative select-none w-full" role="application" aria-label="Chart with drag-to-zoom"><!> <!> <!> <!></div>');function pe(r,n){ne(n,!0);let I=H(n,"series",19,()=>[]),D=H(n,"xDomain",3,null),J=H(n,"height",3,220),d=H(n,"padding",19,()=>({top:10,right:4,bottom:20,left:45})),N=H(n,"data",19,()=>[]),E=H(n,"servers",19,()=>[]),A=H(n,"serverColorMap",19,()=>({})),T=H(n,"unit",3,""),X=H(n,"areaFill",3,!1),dt=H(n,"sharedHoverTime",3,null),gt=H(n,"isSourceChart",3,!1);const Ct=s(qe);let Q=lt(null),tt=lt(300),vt=lt(!1),_=lt(0),c=lt(!1),V=lt(0),K=lt(0);re(()=>{if(!t(Q))return;const e=new ResizeObserver(a=>{for(const i of a)F(tt,i.contentRect.width,!0)});return e.observe(t(Q)),()=>e.disconnect()});const R=s(()=>Math.max(0,t(tt)-d().left-d().right)),S=s(()=>Math.max(0,J()-d().top-d().bottom)),m=s(()=>I().flatMap(e=>e.data)),z=s(()=>D()?.[0]??he(t(m),e=>e.timestamp)??new Date),et=s(()=>D()?.[1]??xe(t(m),e=>e.timestamp)??new Date),ft=s(()=>()=>{const e=he(t(m),a=>a.value);return typeof e=="number"?e:0}),q=s(()=>()=>{const e=xe(t(m),a=>a.value);return typeof e=="number"?e:0}),rt=s(()=>(t(q)()-t(ft)())*.1||1),pt=s(()=>Math.max(0,t(ft)()-t(rt))),Bt=s(()=>t(q)()+t(rt)),nt=s(()=>Ye().domain([t(z),t(et)]).range([0,t(R)])),v=s(()=>Oe().domain([t(pt),t(Bt)]).range([t(S),0])),P=s(()=>()=>t(v).ticks(4)),bt=s(()=>()=>{if(!T())return"";const e=t(P)();if(e.length===0)return T();const a=e[e.length-1];return jt(a,T()).unit});function at(e){return T()?jt(e,T()).text:e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":Number.isInteger(e)?e.toString():e.toFixed(1)}function Lt(e){return e.length===0?"":De().x(i=>t(nt)(i.timestamp)).y(i=>t(v)(i.value))(e)||""}function j(e){return e.length===0?"":Je().x(i=>t(nt)(i.timestamp)).y0(t(S)).y1(i=>t(v)(i.value))(e)||""}const ht=s(()=>t(m).length>0),Ht=s(()=>E()&&E().length>1);function Pt(){return t(_)>=d().left&&t(_)<=t(tt)-d().right}function ut(e){if(t(R)<=0)return t(z);const a=e-d().left,i=Math.max(0,Math.min(1,a/t(R))),l=t(et).getTime()-t(z).getTime();return new Date(t(z).getTime()+l*i)}function G(e){if(t(R)<=0)return d().left;const a=t(et).getTime()-t(z).getTime();if(a<=0)return d().left;const i=(e.getTime()-t(z).getTime())/a;return d().left+i*t(R)}function it(e){if(e.length<2)return 36e5;const a=[];for(let i=1;i<Math.min(e.length,10);i++)a.push(e[i].timestamp.getTime()-e[i-1].timestamp.getTime());return a.sort((i,l)=>i-l),a[Math.floor(a.length/2)]*2}function Gt(e){if(e.length===0)return[];const a=it(e),i=[];let l=[e[0]];for(let u=1;u<e.length;u++)e[u].timestamp.getTime()-e[u-1].timestamp.getTime()>a?(l.length>0&&i.push(l),l=[e[u]]):l.push(e[u]);return l.length>0&&i.push(l),i}function At(e){if(e.length===0)return[];if(e.length===1)return e;const a=it(e),i=[];for(let l=0;l<e.length;l++){const u=l===0||e[l].timestamp.getTime()-e[l-1].timestamp.getTime()>a,h=l===e.length-1||e[l+1].timestamp.getTime()-e[l].timestamp.getTime()>a;u&&h&&i.push(e[l])}return i}function ie(e,a){if(a.length===0)return null;const i=e.getTime(),l=it(a);let u=-1,h=-1;for(let b=0;b<a.length;b++){const Z=a[b].timestamp.getTime();Z<=i&&(u=b),Z>=i&&h===-1&&(h=b)}if(u>=0&&a[u].timestamp.getTime()===i)return{value:a[u].value,isInterpolated:!1};if(u>=0&&h>=0&&u!==h){const b=a[u],Z=a[h],xt=Z.timestamp.getTime()-b.timestamp.getTime();if(xt<=l){const It=(i-b.timestamp.getTime())/xt;return{value:b.value+It*(Z.value-b.value),isInterpolated:!0}}}return u>=0&&i-a[u].timestamp.getTime()<=l/2?{value:a[u].value,isInterpolated:!1}:h>=0&&a[h].timestamp.getTime()-i<=l/2?{value:a[h].value,isInterpolated:!1}:null}const Qt=s(()=>()=>t(vt)?ut(t(_)):null),Me=s(()=>()=>{const e=t(Qt)();return e?ie(e,N()):null}),oe=s(()=>()=>{const e=t(Qt)();if(!e||!t(Ht))return[];const a=[];for(const i of E()){const l=ie(e,i.trend);l&&a.push({serverName:i.serverName,value:l.value,color:A()[i.serverName]||"#888888"})}return a}),se=s(()=>dt()!==null&&!gt()&&!t(c)&&!t(vt)),Se=s(()=>()=>!t(se)||!dt()?0:G(dt()));function le(e){return n.formatValue?{text:n.formatValue(e),includesUnit:!0}:Number.isInteger(e)?{text:e.toString(),includesUnit:!1}:Math.abs(e)<.01?{text:e.toFixed(4),includesUnit:!1}:Math.abs(e)<1?{text:e.toFixed(2),includesUnit:!1}:Math.abs(e)<10?{text:e.toFixed(1),includesUnit:!1}:{text:Math.round(e).toString(),includesUnit:!1}}const Ot=s(()=>Math.max(d().left,Math.min(t(V),t(K)))),Fe=s(()=>()=>Math.min(t(tt)-d().right,Math.max(t(V),t(K)))),Yt=s(()=>t(Fe)()-t(Ot)),ke=s(()=>()=>ut(t(Ot))),Ce=s(()=>()=>ut(t(Ot)+t(Yt)));function Be(e){if(!t(Q))return;const a=t(Q).getBoundingClientRect();F(_,e.clientX-a.left),t(c)?F(K,t(_),!0):Pt()&&n.onHoverTimeChange?.(ut(t(_)))}function Le(){F(vt,!0)}function Pe(){F(vt,!1),t(c)&&F(c,!1),n.onHoverTimeChange?.(null)}function Ie(e){if(!t(Q)||e.button!==0)return;const a=t(Q).getBoundingClientRect(),i=e.clientX-a.left;i<d().left||i>a.width-d().right||(F(c,!0),F(V,i),F(K,i),e.preventDefault())}function Ne(){if(t(c)&&(F(c,!1),t(Yt)>10&&n.onRangeSelect)){const e=ut(Math.min(t(V),t(K))),a=ut(Math.max(t(V),t(K)));n.onRangeSelect(e,a)}}function Zt(e){return e?Ke(e,{timezone:t(Ct),format:"time"}):""}function de(e){e.key==="Escape"&&t(c)&&(F(c,!1),F(V,0),F(K,0))}re(()=>{if(t(c))return window.addEventListener("keydown",de),()=>window.removeEventListener("keydown",de)});var ct=yr();ct.__mousemove=Be,ct.__mousedown=Ie,ct.__mouseup=Ne;var fe=p(ct);{var Re=e=>{const a=s(()=>`chart-clip-${Math.random().toString(36).slice(2,9)}`);var i=ur(),l=p(i),u=p(l),h=p(u);f(h,"x",0),f(h,"y",0),g(u),g(l);var b=L(l),Z=p(b);St(Z,17,()=>t(P)(),Ft,(Y,x)=>{var w=ar();f(w,"x1",0),k((U,ot)=>{f(w,"y1",U),f(w,"x2",t(R)),f(w,"y2",ot)},[()=>t(v)(t(x)),()=>t(v)(t(x))]),o(Y,w)});var xt=L(Z);St(xt,17,()=>t(P)(),Ft,(Y,x)=>{var w=ir();f(w,"x",-8);var U=p(w,!0);g(w),k((ot,st)=>{f(w,"y",ot),$(U,st)},[()=>t(v)(t(x)),()=>at(t(x))]),o(Y,w)});var It=L(xt);{var Dt=Y=>{var x=or();f(x,"x",-8),f(x,"y",-4);var w=p(x,!0);g(x),k(U=>$(w,U),[()=>t(bt)()]),o(Y,x)};y(It,Y=>{t(bt)()&&Y(Dt)})}var W=L(It);f(W,"x1",0);var O=L(W);f(O,"x1",0),f(O,"y1",0),f(O,"x2",0);var yt=L(O);St(yt,21,I,Ft,(Y,x)=>{var w=C(),U=M(w);{var ot=st=>{const Nt=s(()=>Gt(t(x).data)),Xt=s(()=>At(t(x).data));var Tt=fr(),mt=M(Tt);{var Rt=Ut=>{var wt=C(),_t=M(wt);St(_t,17,()=>t(Nt),Ft,(Wt,Vt)=>{var zt=C(),Et=M(zt);{var $t=te=>{var ee=sr();k(Ae=>{f(ee,"d",Ae),f(ee,"fill",t(x).color)},[()=>j(t(Vt))]),o(te,ee)};y(Et,te=>{t(Vt).length>1&&te($t)})}o(Wt,zt)}),o(Ut,wt)};y(mt,Ut=>{X()&&Ut(Rt)})}var Jt=L(mt);St(Jt,17,()=>t(Nt),Ft,(Ut,wt)=>{var _t=C(),Wt=M(_t);{var Vt=zt=>{var Et=lr();k($t=>{f(Et,"d",$t),f(Et,"stroke",t(x).color)},[()=>Lt(t(wt))]),o(zt,Et)};y(Wt,zt=>{t(wt).length>1&&zt(Vt)})}o(Ut,_t)});var Ge=L(Jt);St(Ge,17,()=>t(Xt),Ft,(Ut,wt)=>{var _t=dr();k((Wt,Vt)=>{f(_t,"cx",Wt),f(_t,"cy",Vt),f(_t,"fill",t(x).color)},[()=>t(nt)(t(wt).timestamp),()=>t(v)(t(wt).value)]),o(Ut,_t)}),o(st,Tt)};y(U,st=>{t(x).data.length>0&&st(ot)})}o(Y,w)}),g(yt),g(b),g(i),k(()=>{f(i,"width",t(tt)),f(i,"height",J()),f(u,"id",t(a)),f(h,"width",t(R)),f(h,"height",t(S)),f(b,"transform",`translate(${d().left??""}, ${d().top??""})`),f(W,"y1",t(S)),f(W,"x2",t(R)),f(W,"y2",t(S)),f(O,"y2",t(S)),f(yt,"clip-path",`url(#${t(a)??""})`)}),o(e,i)},Ue=e=>{var a=cr();o(e,a)};y(fe,e=>{t(ht)&&t(R)>0?e(Re):e(Ue,!1)})}var ue=L(fe,2);{var He=e=>{var a=mr(),i=p(a),l=p(i,!0);g(i);var u=L(i,2),h=p(u,!0);g(u),g(a),k((b,Z)=>{Mt(a,`left: ${t(Ot)??""}px; width: ${t(Yt)??""}px;`),$(l,b),$(h,Z)},[()=>Zt(t(ke)()),()=>Zt(t(Ce)())]),o(e,a)};y(ue,e=>{t(c)&&t(Yt)>0&&e(He)})}var ce=L(ue,2);{var Ve=e=>{const a=s(()=>Math.max(d().left,Math.min(t(_),t(tt)-d().right))),i=s(()=>t(Me)());var l=pr(),u=M(l),h=L(u,2);{var b=W=>{var O=hr(),yt=p(O);St(yt,21,()=>t(oe)(),Ft,(Y,x)=>{const w=s(()=>le(t(x).value));var U=vr(),ot=p(U),st=L(ot,2),Nt=p(st,!0),Xt=L(Nt);{var Tt=mt=>{var Rt=gr(),Jt=p(Rt,!0);g(Rt),k(()=>$(Jt,T())),o(mt,Rt)};y(Xt,mt=>{T()&&!t(w).includesUnit&&mt(Tt)})}g(st),g(U),k(()=>{Mt(ot,`background-color: ${t(x).color??""};`),$(Nt,t(w).text)}),o(Y,U)}),g(yt),g(O),k(()=>Mt(O,`left: ${t(a)??""}px;`)),o(W,O)},Z=W=>{var O=C(),yt=M(O);{var Y=x=>{const w=s(()=>le(t(i).value));var U=_r(),ot=p(U),st=p(ot,!0),Nt=L(st);{var Xt=Tt=>{var mt=xr(),Rt=p(mt,!0);g(mt),k(()=>$(Rt,T())),o(Tt,mt)};y(Nt,Tt=>{T()&&!t(w).includesUnit&&Tt(Xt)})}g(ot),g(U),k(()=>{Mt(U,`left: ${t(a)??""}px;`),$(st,t(w).text)}),o(x,U)};y(yt,x=>{t(i)&&x(Y)},!0)}o(W,O)};y(h,W=>{t(Ht)&&t(oe)().length>0?W(b):W(Z,!1)})}var xt=L(h,2),It=p(xt),Dt=p(It,!0);g(It),g(xt),k(W=>{Mt(u,`left: ${t(a)??""}px;`),Mt(xt,`left: ${t(a)??""}px;`),$(Dt,W)},[()=>Zt(t(Qt)())]),o(e,l)};y(ce,e=>{t(vt)&&!t(c)&&Pt()&&e(Ve)})}var ze=L(ce,2);{var je=e=>{const a=s(()=>t(Se)());var i=C(),l=M(i);{var u=h=>{var b=br();k(()=>Mt(b,`left: ${t(a)??""}px;`)),o(h,b)};y(l,h=>{t(a)>=d().left&&t(a)<=t(tt)-d().right&&h(u)})}o(e,i)};y(ze,e=>{t(se)&&e(je)})}g(ct),Xe(ct,e=>F(Q,e),()=>t(Q)),k(e=>Mt(ct,`height: ${J()??""}px; cursor: ${e??""};`),[()=>t(c)?"col-resize":Pt()?"crosshair":"default"]),me("mouseenter",ct,Le),me("mouseleave",ct,Pe),o(r,ct),ae()}We(["mousemove","mousedown","mouseup"]);var Tr=B("<!> <!>",1),wr=B('<div class="overflow-auto"><!></div>');function Mr(r,n){ne(n,!0);let I=H(n,"series",19,()=>[]),D=H(n,"unit",3,"");const J=s(()=>()=>{const A=I()[0];if(!A)return[];const T=A.data.map(dt=>dt.value);if(T.length===0)return[{label:"Latest",value:0},{label:"Min",value:0},{label:"Max",value:0},{label:"Avg",value:0}];const X=T.reduce((dt,gt)=>dt+gt,0);return[{label:"Latest",value:T[T.length-1]},{label:"Min",value:Math.min(...T)},{label:"Max",value:Math.max(...T)},{label:"Avg",value:X/T.length}]});function d(A){return D()?qt(A,D()):Number.isInteger(A)?A.toString():A.toFixed(2)}var N=wr(),E=p(N);Kt(E,()=>tr,(A,T)=>{T(A,{children:(X,dt)=>{var gt=C(),Ct=M(gt);Kt(Ct,()=>Ze,(Q,tt)=>{tt(Q,{children:(vt,_)=>{var c=C(),V=M(c);St(V,17,()=>t(J)(),Ft,(K,R)=>{var S=C(),m=M(S);Kt(m,()=>$e,(z,et)=>{et(z,{children:(ft,q)=>{var rt=Tr(),pt=M(rt);Kt(pt,()=>_e,(nt,v)=>{v(nt,{class:"font-medium",children:(P,bt)=>{ge();var at=ve();k(()=>$(at,t(R).label)),o(P,at)},$$slots:{default:!0}})});var Bt=L(pt,2);Kt(Bt,()=>_e,(nt,v)=>{v(nt,{class:"text-right",children:(P,bt)=>{ge();var at=ve();k(Lt=>$(at,Lt),[()=>d(t(R).value)]),o(P,at)},$$slots:{default:!0}})}),o(ft,rt)},$$slots:{default:!0}})}),o(K,S)}),o(vt,c)},$$slots:{default:!0}})}),o(X,gt)},$$slots:{default:!0}})}),g(N),o(r,N),ae()}var Sr=B('<div class="flex h-full items-center justify-center"><!></div>'),Fr=B('<div class="flex h-full flex-col items-center justify-center"><span class="text-3xl font-bold"> </span></div>'),kr=B('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data</div>'),Cr=B('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data</div>'),Br=B('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data</div>'),Lr=B('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data</div>'),Pr=B('<div class="h-full w-full min-h-[200px]"><!></div>');function Kr(r,n){ne(n,!0);let I=H(n,"timeDomain",3,null),D=H(n,"sharedHoverTime",3,null),J=H(n,"isSourceChart",3,!1),d=lt(Ee([])),N=lt(!0),E=lt(null),A=lt("");const T=["#3b82f6","#ef4444","#22c55e","#f59e0b","#8b5cf6","#ec4899"],X=s(()=>n.widget.config.unit??t(A));async function dt(){const _=n.widget.config.sources;if(!_||_.length===0){F(N,!1);return}F(N,!0);try{const c=[];let V=0;const K=_.map(m=>({name:m.name,aggregation:m.aggregation||"avg",tagFilters:m.tagFilters,groupBy:m.groupBy})),R=await er.post("/metrics/query",{queries:K,from:n.fromDateUTC,to:n.toDateUTC},{projectId:rr.currentProjectId??void 0}),S=new Set;for(const m of R.results){m.unit&&S.add(m.unit);for(const[z,et]of Object.entries(m.series)){const ft=Object.keys(m.series).length>1?`${m.name} (${z})`:m.name;c.push({key:ft,data:et.map(q=>({timestamp:new Date(q.Timestamp),value:q.Value})),color:T[V%T.length]}),V++}}F(A,S.size===1?[...S][0]:"",!0),F(d,c,!0),n.widget.widgetType==="single_value"&&c.length>0&&c[0].data.length>0&&F(E,c[0].data[c[0].data.length-1].value,!0)}catch{}finally{F(N,!1)}}re(()=>{n.fromDateUTC&&n.toDateUTC&&dt()});const gt=s(()=>t(d).map(_=>({endpoint:_.key,value:_.data.length>0?_.data[_.data.length-1].value:0})));var Ct=Pr(),Q=p(Ct);{var tt=_=>{var c=Sr(),V=p(c);nr(V,{size:"md"}),g(c),o(_,c)},vt=_=>{var c=C(),V=M(c);{var K=S=>{var m=Fr(),z=p(m),et=p(z,!0);g(z),g(m),k(ft=>$(et,ft),[()=>t(E)!==null?qt(t(E),t(X)):"-"]),o(S,m)},R=S=>{var m=C(),z=M(m);{var et=q=>{var rt=C(),pt=M(rt);{var Bt=v=>{Qe(v,{get data(){return t(gt)},height:200,get unit(){return t(X)},formatValue:P=>qt(P,t(X))})},nt=v=>{var P=kr();o(v,P)};y(pt,v=>{t(gt).length>0?v(Bt):v(nt,!1)})}o(q,rt)},ft=q=>{var rt=C(),pt=M(rt);{var Bt=v=>{var P=C(),bt=M(P);{var at=j=>{Mr(j,{get series(){return t(d)},get unit(){return t(X)}})},Lt=j=>{var ht=Cr();o(j,ht)};y(bt,j=>{t(d).length>0?j(at):j(Lt,!1)})}o(v,P)},nt=v=>{var P=C(),bt=M(P);{var at=j=>{var ht=C(),Ht=M(ht);{var Pt=G=>{{let it=s(()=>I()??void 0),Gt=s(()=>t(d)[0]?.data??[]);pe(G,{get series(){return t(d)},get xDomain(){return t(it)},height:200,padding:{top:10,right:4,bottom:20,left:45},get onRangeSelect(){return n.onRangeSelect},get data(){return t(Gt)},areaFill:!0,get unit(){return t(X)},formatValue:At=>qt(At,t(X)),get sharedHoverTime(){return D()},get isSourceChart(){return J()},get onHoverTimeChange(){return n.onHoverTimeChange}})}},ut=G=>{var it=Br();o(G,it)};y(Ht,G=>{t(d).length>0?G(Pt):G(ut,!1)})}o(j,ht)},Lt=j=>{var ht=C(),Ht=M(ht);{var Pt=G=>{{let it=s(()=>I()??void 0),Gt=s(()=>t(d)[0]?.data??[]);pe(G,{get series(){return t(d)},get xDomain(){return t(it)},height:200,padding:{top:10,right:4,bottom:20,left:45},get onRangeSelect(){return n.onRangeSelect},get data(){return t(Gt)},get unit(){return t(X)},formatValue:At=>qt(At,t(X)),get sharedHoverTime(){return D()},get isSourceChart(){return J()},get onHoverTimeChange(){return n.onHoverTimeChange}})}},ut=G=>{var it=Lr();o(G,it)};y(Ht,G=>{t(d).length>0?G(Pt):G(ut,!1)},!0)}o(j,ht)};y(bt,j=>{n.widget.widgetType==="area_chart"?j(at):j(Lt,!1)},!0)}o(v,P)};y(pt,v=>{n.widget.widgetType==="table"?v(Bt):v(nt,!1)},!0)}o(q,rt)};y(z,q=>{n.widget.widgetType==="bar_chart"?q(et):q(ft,!1)},!0)}o(S,m)};y(V,S=>{n.widget.widgetType==="single_value"?S(K):S(R,!1)},!0)}o(_,c)};y(Q,_=>{t(N)?_(tt):_(vt,!1)})}g(Ct),o(r,Ct),ae()}export{Wr as R,Er as S,Kr as W};
diff --git a/backend/static/frontend/_app/immutable/chunks/Bo0m_oha.js.map b/backend/static/frontend/_app/immutable/chunks/B622WnQw.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/Bo0m_oha.js.map
rename to backend/static/frontend/_app/immutable/chunks/B622WnQw.js.map
index 5edb8683..4d526215 100644
--- a/backend/static/frontend/_app/immutable/chunks/Bo0m_oha.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/B622WnQw.js.map
@@ -1 +1 @@
-{"version":3,"file":"Bo0m_oha.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/refresh-cw.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/star.svelte","../../../../../../src/lib/utils/metric-format.ts","../../../../../../src/lib/components/dashboard/d3-line-chart.svelte","../../../../../../src/lib/components/dashboard/widget-table.svelte","../../../../../../src/lib/components/dashboard/widget-renderer.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\" }], [\"path\", { \"d\": \"M21 3v5h-5\" }], [\"path\", { \"d\": \"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\" }], [\"path\", { \"d\": \"M8 16H3v5\" }]];\n/**\n * @component @name RefreshCw\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMyAxMmE5IDkgMCAwIDEgOS05IDkuNzUgOS43NSAwIDAgMSA2Ljc0IDIuNzRMMjEgOCIgLz4KICA8cGF0aCBkPSJNMjEgM3Y1aC01IiAvPgogIDxwYXRoIGQ9Ik0yMSAxMmE5IDkgMCAwIDEtOSA5IDkuNzUgOS43NSAwIDAgMS02Ljc0LTIuNzRMMyAxNiIgLz4KICA8cGF0aCBkPSJNOCAxNkgzdjUiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/refresh-cw\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"refresh-cw\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z\" }]];\n/**\n * @component @name Star\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTEuNTI1IDIuMjk1YS41My41MyAwIDAgMSAuOTUgMGwyLjMxIDQuNjc5YTIuMTIzIDIuMTIzIDAgMCAwIDEuNTk1IDEuMTZsNS4xNjYuNzU2YS41My41MyAwIDAgMSAuMjk0LjkwNGwtMy43MzYgMy42MzhhMi4xMjMgMi4xMjMgMCAwIDAtLjYxMSAxLjg3OGwuODgyIDUuMTRhLjUzLjUzIDAgMCAxLS43NzEuNTZsLTQuNjE4LTIuNDI4YTIuMTIyIDIuMTIyIDAgMCAwLTEuOTczIDBMNi4zOTYgMjEuMDFhLjUzLjUzIDAgMCAxLS43Ny0uNTZsLjg4MS01LjEzOWEyLjEyMiAyLjEyMiAwIDAgMC0uNjExLTEuODc5TDIuMTYgOS43OTVhLjUzLjUzIDAgMCAxIC4yOTQtLjkwNmw1LjE2NS0uNzU1YTIuMTIyIDIuMTIyIDAgMCAwIDEuNTk3LTEuMTZ6IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/star\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"star\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","type FormatResult = { text: string; unit: string };\n\nexport function formatMetricValue(value: number, unit: string): FormatResult {\n\t// OTel canonical unit '1' is a dimensionless ratio (0-1) — render as percent.\n\tif (unit === '1') {\n\t\treturn formatMetricValue(value * 100, '%');\n\t}\n\n\t// OTel canonical unit 'By' is bytes — normalize to the existing bytes branch.\n\tif (unit === 'By') {\n\t\treturn formatMetricValue(value, 'B');\n\t}\n\n\t// OTel annotation units like '{connections}', '{packets}' — treat as raw count.\n\tif (unit.length > 2 && unit.startsWith('{') && unit.endsWith('}')) {\n\t\treturn formatMetricValue(value, 'count');\n\t}\n\n\tif (unit === '%') {\n\t\tif (value === 0) return { text: '0', unit: '%' };\n\t\tif (Math.abs(value) < 0.1) return { text: value.toFixed(2), unit: '%' };\n\t\tif (Math.abs(value) < 10) return { text: value.toFixed(1), unit: '%' };\n\t\treturn { text: Math.round(value).toString(), unit: '%' };\n\t}\n\n\tif (unit === 'ms') {\n\t\tif (value < 1) return { text: (value * 1000).toFixed(0), unit: 'µs' };\n\t\tif (value < 10) return { text: value.toFixed(1), unit: 'ms' };\n\t\tif (value < 1000) return { text: Math.round(value).toString(), unit: 'ms' };\n\t\treturn { text: (value / 1000).toFixed(1), unit: 's' };\n\t}\n\n\tif (unit === 'ns') {\n\t\tif (value < 1000) return { text: Math.round(value).toString(), unit: 'ns' };\n\t\tif (value < 1_000_000) return { text: (value / 1000).toFixed(1), unit: 'µs' };\n\t\tif (value < 1_000_000_000) return { text: (value / 1_000_000).toFixed(1), unit: 'ms' };\n\t\treturn { text: (value / 1_000_000_000).toFixed(1), unit: 's' };\n\t}\n\n\tif (unit === 's') {\n\t\tif (value < 0.001) return { text: (value * 1_000_000).toFixed(0), unit: 'µs' };\n\t\tif (value < 1) return { text: (value * 1000).toFixed(1), unit: 'ms' };\n\t\tif (value < 60) return { text: value.toFixed(1), unit: 's' };\n\t\tif (value < 3600) return { text: (value / 60).toFixed(1), unit: 'min' };\n\t\treturn { text: (value / 3600).toFixed(1), unit: 'h' };\n\t}\n\n\tif (unit === 'MB') {\n\t\tif (value < 1) return { text: (value * 1024).toFixed(0), unit: 'KB' };\n\t\tif (value >= 1024) return { text: (value / 1024).toFixed(1), unit: 'GB' };\n\t\treturn { text: Math.round(value).toString(), unit: 'MB' };\n\t}\n\n\tif (unit === 'GB') {\n\t\tif (value < 1) return { text: (value * 1024).toFixed(0), unit: 'MB' };\n\t\tif (value >= 1024) return { text: (value / 1024).toFixed(1), unit: 'TB' };\n\t\treturn { text: value.toFixed(1), unit: 'GB' };\n\t}\n\n\tif (unit === 'bytes' || unit === 'B') {\n\t\tif (value < 1024) return { text: Math.round(value).toString(), unit: 'B' };\n\t\tif (value < 1024 * 1024) return { text: (value / 1024).toFixed(1), unit: 'KB' };\n\t\tif (value < 1024 * 1024 * 1024) return { text: (value / (1024 * 1024)).toFixed(1), unit: 'MB' };\n\t\treturn { text: (value / (1024 * 1024 * 1024)).toFixed(1), unit: 'GB' };\n\t}\n\n\tif (unit === 'count' || unit === '') {\n\t\tif (value >= 1_000_000) return { text: (value / 1_000_000).toFixed(1), unit: 'M' };\n\t\tif (value >= 1_000) return { text: (value / 1_000).toFixed(1), unit: 'K' };\n\t\treturn { text: Math.round(value).toString(), unit: '' };\n\t}\n\n\tif (Number.isInteger(value)) return { text: value.toString(), unit };\n\treturn { text: value.toFixed(1), unit };\n}\n\nexport function formatMetricLabel(value: number, unit: string): string {\n\tconst result = formatMetricValue(value, unit);\n\tif (!result.unit) return result.text;\n\treturn `${result.text} ${result.unit}`;\n}\n","<script lang=\"ts\">\n\timport { scaleUtc, scaleLinear, type NumberValue } from 'd3-scale';\n\timport { line, area } from 'd3-shape';\n\timport { min, max } from 'd3-array';\n\timport { formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { formatMetricValue } from '$lib/utils/metric-format';\n\n\ttype DataPoint = {\n\t\ttimestamp: Date;\n\t\tvalue: number;\n\t};\n\n\ttype Series = {\n\t\tkey: string;\n\t\tdata: DataPoint[];\n\t\tcolor: string;\n\t};\n\n\ttype ServerData = {\n\t\tserverName: string;\n\t\ttrend: DataPoint[];\n\t};\n\n\tlet {\n\t\tseries = [],\n\t\txDomain = null,\n\t\theight = 220,\n\t\tpadding = { top: 10, right: 4, bottom: 20, left: 45 },\n\t\t// Overlay props\n\t\tonRangeSelect,\n\t\tdata = [],\n\t\tservers = [],\n\t\tserverColorMap = {},\n\t\tunit = '',\n\t\tformatValue,\n\t\tareaFill = false,\n\t\tsharedHoverTime = null,\n\t\tisSourceChart = false,\n\t\tonHoverTimeChange\n\t} = $props<{\n\t\tseries: Series[];\n\t\txDomain?: [Date, Date] | null;\n\t\theight?: number;\n\t\tpadding?: { top: number; right: number; bottom: number; left: number };\n\t\t// Overlay props\n\t\tonRangeSelect?: (from: Date, to: Date) => void;\n\t\tdata?: DataPoint[];\n\t\tservers?: ServerData[];\n\t\tserverColorMap?: Record<string, string>;\n\t\tunit?: string;\n\t\tformatValue?: (value: number) => string;\n\t\tareaFill?: boolean;\n\t\tsharedHoverTime?: Date | null;\n\t\tisSourceChart?: boolean;\n\t\tonHoverTimeChange?: (time: Date | null) => void;\n\t}>();\n\n\tconst tz = $derived(getTimezone());\n\n\tlet containerRef = $state<HTMLDivElement | null>(null);\n\tlet width = $state(300);\n\n\t// Hover state\n\tlet isHovering = $state(false);\n\tlet mouseX = $state(0);\n\n\t// Drag selection state\n\tlet isDragging = $state(false);\n\tlet dragStartX = $state(0);\n\tlet dragEndX = $state(0);\n\n\t// Observe container width\n\t$effect(() => {\n\t\tif (!containerRef) return;\n\n\t\tconst observer = new ResizeObserver((entries) => {\n\t\t\tfor (const entry of entries) {\n\t\t\t\twidth = entry.contentRect.width;\n\t\t\t}\n\t\t});\n\n\t\tobserver.observe(containerRef);\n\t\treturn () => observer.disconnect();\n\t});\n\n\t// Chart dimensions\n\tconst chartWidth = $derived(Math.max(0, width - padding.left - padding.right));\n\tconst chartHeight = $derived(Math.max(0, height - padding.top - padding.bottom));\n\n\t// Calculate domains from data\n\tconst allData = $derived(series.flatMap((s: Series) => s.data));\n\n\tconst xMin = $derived(xDomain?.[0] ?? min(allData, (d: DataPoint) => d.timestamp) ?? new Date());\n\tconst xMax = $derived(xDomain?.[1] ?? max(allData, (d: DataPoint) => d.timestamp) ?? new Date());\n\n\tconst yMin = $derived(() => {\n\t\tconst minVal = min(allData, (d: DataPoint) => d.value);\n\t\treturn typeof minVal === 'number' ? minVal : 0;\n\t});\n\n\tconst yMax = $derived(() => {\n\t\tconst maxVal = max(allData, (d: DataPoint) => d.value);\n\t\treturn typeof maxVal === 'number' ? maxVal : 0;\n\t});\n\n\t// Add padding to y domain\n\tconst yPadding = $derived((yMax() - yMin()) * 0.1 || 1);\n\tconst yDomainMin = $derived(Math.max(0, yMin() - yPadding));\n\tconst yDomainMax = $derived(yMax() + yPadding);\n\n\t// Scales\n\tconst xScale = $derived(\n\t\tscaleUtc()\n\t\t\t.domain([xMin, xMax])\n\t\t\t.range([0, chartWidth])\n\t);\n\n\tconst yScale = $derived(\n\t\tscaleLinear()\n\t\t\t.domain([yDomainMin, yDomainMax])\n\t\t\t.range([chartHeight, 0])\n\t);\n\n\t// Generate Y axis ticks\n\tconst yTicks = $derived(() => yScale.ticks(4));\n\n\tconst yAxisUnit = $derived(() => {\n\t\tif (!unit) return '';\n\t\tconst ticks = yTicks();\n\t\tif (ticks.length === 0) return unit;\n\t\tconst maxTick = ticks[ticks.length - 1];\n\t\treturn formatMetricValue(maxTick, unit).unit;\n\t});\n\n\tfunction formatYLabel(value: number): string {\n\t\tif (unit) {\n\t\t\tconst result = formatMetricValue(value, unit);\n\t\t\treturn result.text;\n\t\t}\n\t\tif (value >= 1000000) return (value / 1000000).toFixed(1) + 'M';\n\t\tif (value >= 1000) return (value / 1000).toFixed(1) + 'k';\n\t\tif (Number.isInteger(value)) return value.toString();\n\t\treturn value.toFixed(1);\n\t}\n\n\t// Generate path string for a series\n\tfunction generatePath(seriesData: DataPoint[]): string {\n\t\tif (seriesData.length === 0) return '';\n\n\t\tconst lineGen = line<DataPoint>()\n\t\t\t.x(d => xScale(d.timestamp))\n\t\t\t.y(d => yScale(d.value));\n\n\t\treturn lineGen(seriesData) || '';\n\t}\n\n\tfunction generateAreaPath(seriesData: DataPoint[]): string {\n\t\tif (seriesData.length === 0) return '';\n\n\t\tconst areaGen = area<DataPoint>()\n\t\t\t.x(d => xScale(d.timestamp))\n\t\t\t.y0(chartHeight)\n\t\t\t.y1(d => yScale(d.value));\n\n\t\treturn areaGen(seriesData) || '';\n\t}\n\n\tconst hasData = $derived(allData.length > 0);\n\n\t// Check if we have multi-server data\n\tconst hasMultiServerData = $derived(servers && servers.length > 1);\n\n\t// Check if mouse X is within the chart area\n\tfunction isInChartArea(): boolean {\n\t\treturn mouseX >= padding.left && mouseX <= width - padding.right;\n\t}\n\n\t// Calculate time based on X position\n\tfunction getTimeAtPosition(x: number): Date {\n\t\tif (chartWidth <= 0) return xMin;\n\t\tconst chartX = x - padding.left;\n\t\tconst percentage = Math.max(0, Math.min(1, chartX / chartWidth));\n\t\tconst timeDiff = xMax.getTime() - xMin.getTime();\n\t\treturn new Date(xMin.getTime() + timeDiff * percentage);\n\t}\n\n\t// Calculate X position based on time\n\tfunction getPositionAtTime(time: Date): number {\n\t\tif (chartWidth <= 0) return padding.left;\n\t\tconst timeDiff = xMax.getTime() - xMin.getTime();\n\t\tif (timeDiff <= 0) return padding.left;\n\t\tconst percentage = (time.getTime() - xMin.getTime()) / timeDiff;\n\t\treturn padding.left + (percentage * chartWidth);\n\t}\n\n\t// Calculate gap threshold from data (2x median interval)\n\tfunction getGapThreshold(pointData: DataPoint[]): number {\n\t\tif (pointData.length < 2) return 3600000;\n\t\tconst intervals: number[] = [];\n\t\tfor (let i = 1; i < Math.min(pointData.length, 10); i++) {\n\t\t\tintervals.push(pointData[i].timestamp.getTime() - pointData[i - 1].timestamp.getTime());\n\t\t}\n\t\tintervals.sort((a, b) => a - b);\n\t\treturn intervals[Math.floor(intervals.length / 2)] * 2;\n\t}\n\n\t// Break data into line segments at gaps (for gap-aware rendering)\n\tfunction getLineSegments(pointData: DataPoint[]): DataPoint[][] {\n\t\tif (pointData.length === 0) return [];\n\n\t\tconst threshold = getGapThreshold(pointData);\n\t\tconst segments: DataPoint[][] = [];\n\t\tlet currentSegment: DataPoint[] = [pointData[0]];\n\n\t\tfor (let i = 1; i < pointData.length; i++) {\n\t\t\tconst gap = pointData[i].timestamp.getTime() - pointData[i - 1].timestamp.getTime();\n\t\t\tif (gap > threshold) {\n\t\t\t\tif (currentSegment.length > 0) segments.push(currentSegment);\n\t\t\t\tcurrentSegment = [pointData[i]];\n\t\t\t} else {\n\t\t\t\tcurrentSegment.push(pointData[i]);\n\t\t\t}\n\t\t}\n\n\t\tif (currentSegment.length > 0) segments.push(currentSegment);\n\t\treturn segments;\n\t}\n\n\t// Find isolated points (points with gaps on both sides)\n\tfunction getIsolatedPoints(pointData: DataPoint[]): DataPoint[] {\n\t\tif (pointData.length === 0) return [];\n\t\tif (pointData.length === 1) return pointData;\n\n\t\tconst threshold = getGapThreshold(pointData);\n\t\tconst isolated: DataPoint[] = [];\n\n\t\tfor (let i = 0; i < pointData.length; i++) {\n\t\t\tconst hasGapBefore = i === 0 ||\n\t\t\t\t(pointData[i].timestamp.getTime() - pointData[i - 1].timestamp.getTime() > threshold);\n\t\t\tconst hasGapAfter = i === pointData.length - 1 ||\n\t\t\t\t(pointData[i + 1].timestamp.getTime() - pointData[i].timestamp.getTime() > threshold);\n\n\t\t\tif (hasGapBefore && hasGapAfter) {\n\t\t\t\tisolated.push(pointData[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn isolated;\n\t}\n\n\t// Find the value at a given time, interpolating for line sections\n\tfunction getValueAtTime(time: Date, pointData: DataPoint[]): { value: number; isInterpolated: boolean } | null {\n\t\tif (pointData.length === 0) return null;\n\n\t\tconst targetMs = time.getTime();\n\t\tconst threshold = getGapThreshold(pointData);\n\n\t\tlet leftIdx = -1;\n\t\tlet rightIdx = -1;\n\n\t\tfor (let i = 0; i < pointData.length; i++) {\n\t\t\tconst pointMs = pointData[i].timestamp.getTime();\n\t\t\tif (pointMs <= targetMs) leftIdx = i;\n\t\t\tif (pointMs >= targetMs && rightIdx === -1) rightIdx = i;\n\t\t}\n\n\t\tif (leftIdx >= 0 && pointData[leftIdx].timestamp.getTime() === targetMs) {\n\t\t\treturn { value: pointData[leftIdx].value, isInterpolated: false };\n\t\t}\n\n\t\tif (leftIdx >= 0 && rightIdx >= 0 && leftIdx !== rightIdx) {\n\t\t\tconst leftPoint = pointData[leftIdx];\n\t\t\tconst rightPoint = pointData[rightIdx];\n\t\t\tconst gap = rightPoint.timestamp.getTime() - leftPoint.timestamp.getTime();\n\n\t\t\tif (gap <= threshold) {\n\t\t\t\tconst t = (targetMs - leftPoint.timestamp.getTime()) / gap;\n\t\t\t\tconst interpolatedValue = leftPoint.value + t * (rightPoint.value - leftPoint.value);\n\t\t\t\treturn { value: interpolatedValue, isInterpolated: true };\n\t\t\t}\n\t\t}\n\n\t\tif (leftIdx >= 0) {\n\t\t\tconst distToLeft = targetMs - pointData[leftIdx].timestamp.getTime();\n\t\t\tif (distToLeft <= threshold / 2) {\n\t\t\t\treturn { value: pointData[leftIdx].value, isInterpolated: false };\n\t\t\t}\n\t\t}\n\n\t\tif (rightIdx >= 0) {\n\t\t\tconst distToRight = pointData[rightIdx].timestamp.getTime() - targetMs;\n\t\t\tif (distToRight <= threshold / 2) {\n\t\t\t\treturn { value: pointData[rightIdx].value, isInterpolated: false };\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\t// Calculate time based on mouse X position\n\tconst calculatedTime = $derived(() => {\n\t\tif (!isHovering) return null;\n\t\treturn getTimeAtPosition(mouseX);\n\t});\n\n\t// Calculate the value at the current hover position\n\tconst calculatedValue = $derived(() => {\n\t\tconst time = calculatedTime();\n\t\tif (!time) return null;\n\t\treturn getValueAtTime(time, data);\n\t});\n\n\t// Calculate values for all servers at the current hover position\n\tconst calculatedServerValues = $derived(() => {\n\t\tconst time = calculatedTime();\n\t\tif (!time || !hasMultiServerData) return [];\n\n\t\tconst results: { serverName: string; value: number; color: string }[] = [];\n\n\t\tfor (const server of servers) {\n\t\t\tconst valueData = getValueAtTime(time, server.trend);\n\t\t\tif (valueData) {\n\t\t\t\tresults.push({\n\t\t\t\t\tserverName: server.serverName,\n\t\t\t\t\tvalue: valueData.value,\n\t\t\t\t\tcolor: serverColorMap[server.serverName] || '#888888'\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn results;\n\t});\n\n\t// Shadow line\n\tconst shouldShowShadowLine = $derived(\n\t\tsharedHoverTime !== null && !isSourceChart && !isDragging && !isHovering\n\t);\n\n\tconst shadowLineX = $derived(() => {\n\t\tif (!shouldShowShadowLine || !sharedHoverTime) return 0;\n\t\treturn getPositionAtTime(sharedHoverTime);\n\t});\n\n\t// Format value for display - returns { text, includesUnit }\n\tfunction formatDisplayValue(value: number): { text: string; includesUnit: boolean } {\n\t\tif (formatValue) return { text: formatValue(value), includesUnit: true };\n\t\tif (Number.isInteger(value)) return { text: value.toString(), includesUnit: false };\n\t\tif (Math.abs(value) < 0.01) return { text: value.toFixed(4), includesUnit: false };\n\t\tif (Math.abs(value) < 1) return { text: value.toFixed(2), includesUnit: false };\n\t\tif (Math.abs(value) < 10) return { text: value.toFixed(1), includesUnit: false };\n\t\treturn { text: Math.round(value).toString(), includesUnit: false };\n\t}\n\n\t// Selection region computed values\n\tconst selectionLeft = $derived(Math.max(padding.left, Math.min(dragStartX, dragEndX)));\n\tconst selectionRight = $derived(() => Math.min(width - padding.right, Math.max(dragStartX, dragEndX)));\n\tconst selectionWidth = $derived(selectionRight() - selectionLeft);\n\tconst selectionStartTime = $derived(() => getTimeAtPosition(selectionLeft));\n\tconst selectionEndTime = $derived(() => getTimeAtPosition(selectionLeft + selectionWidth));\n\n\tfunction handleMouseMove(e: MouseEvent) {\n\t\tif (!containerRef) return;\n\t\tconst rect = containerRef.getBoundingClientRect();\n\t\tmouseX = e.clientX - rect.left;\n\n\t\tif (isDragging) {\n\t\t\tdragEndX = mouseX;\n\t\t} else if (isInChartArea()) {\n\t\t\tonHoverTimeChange?.(getTimeAtPosition(mouseX));\n\t\t}\n\t}\n\n\tfunction handleMouseEnter() {\n\t\tisHovering = true;\n\t}\n\n\tfunction handleMouseLeave() {\n\t\tisHovering = false;\n\t\tif (isDragging) isDragging = false;\n\t\tonHoverTimeChange?.(null);\n\t}\n\n\tfunction handleMouseDown(e: MouseEvent) {\n\t\tif (!containerRef || e.button !== 0) return;\n\t\tconst rect = containerRef.getBoundingClientRect();\n\t\tconst x = e.clientX - rect.left;\n\n\t\tif (x < padding.left || x > rect.width - padding.right) return;\n\n\t\tisDragging = true;\n\t\tdragStartX = x;\n\t\tdragEndX = x;\n\t\te.preventDefault();\n\t}\n\n\tfunction handleMouseUp() {\n\t\tif (!isDragging) return;\n\n\t\tisDragging = false;\n\n\t\tif (selectionWidth > 10 && onRangeSelect) {\n\t\t\tconst startTime = getTimeAtPosition(Math.min(dragStartX, dragEndX));\n\t\t\tconst endTime = getTimeAtPosition(Math.max(dragStartX, dragEndX));\n\t\t\tonRangeSelect(startTime, endTime);\n\t\t}\n\t}\n\n\tfunction formatTime(date: Date | null): string {\n\t\tif (!date) return '';\n\t\treturn formatDateTime(date, { timezone: tz, format: 'time' });\n\t}\n\n\tfunction handleKeydown(e: KeyboardEvent) {\n\t\tif (e.key === 'Escape' && isDragging) {\n\t\t\tisDragging = false;\n\t\t\tdragStartX = 0;\n\t\t\tdragEndX = 0;\n\t\t}\n\t}\n\n\t$effect(() => {\n\t\tif (isDragging) {\n\t\t\twindow.addEventListener('keydown', handleKeydown);\n\t\t\treturn () => window.removeEventListener('keydown', handleKeydown);\n\t\t}\n\t});\n</script>\n\n<div\n\tbind:this={containerRef}\n\tclass=\"relative select-none w-full\"\n\tstyle=\"height: {height}px; cursor: {isDragging ? 'col-resize' : (isInChartArea() ? 'crosshair' : 'default')};\"\n\tonmouseenter={handleMouseEnter}\n\tonmouseleave={handleMouseLeave}\n\tonmousemove={handleMouseMove}\n\tonmousedown={handleMouseDown}\n\tonmouseup={handleMouseUp}\n\trole=\"application\"\n\taria-label=\"Chart with drag-to-zoom\"\n>\n\t{#if hasData && chartWidth > 0}\n\t\t{@const clipId = `chart-clip-${Math.random().toString(36).slice(2, 9)}`}\n\t\t<svg {width} {height}>\n\t\t\t<defs>\n\t\t\t\t<clipPath id={clipId}>\n\t\t\t\t\t<rect x={0} y={0} width={chartWidth} height={chartHeight} />\n\t\t\t\t</clipPath>\n\t\t\t</defs>\n\t\t\t<g transform=\"translate({padding.left}, {padding.top})\">\n\t\t\t\t<!-- Y axis grid lines -->\n\t\t\t\t{#each yTicks() as tick}\n\t\t\t\t\t<line\n\t\t\t\t\t\tx1={0}\n\t\t\t\t\t\ty1={yScale(tick)}\n\t\t\t\t\t\tx2={chartWidth}\n\t\t\t\t\t\ty2={yScale(tick)}\n\t\t\t\t\t\tstroke=\"#e5e7eb\"\n\t\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t\t\tstroke-dasharray=\"4 4\"\n\t\t\t\t\t/>\n\t\t\t\t{/each}\n\n\t\t\t\t<!-- Y axis labels -->\n\t\t\t\t{#each yTicks() as tick}\n\t\t\t\t\t<text\n\t\t\t\t\t\tx={-8}\n\t\t\t\t\t\ty={yScale(tick)}\n\t\t\t\t\t\ttext-anchor=\"end\"\n\t\t\t\t\t\tdominant-baseline=\"middle\"\n\t\t\t\t\t\tfill=\"#6b7280\"\n\t\t\t\t\t\tfont-size=\"10\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{formatYLabel(tick)}\n\t\t\t\t\t</text>\n\t\t\t\t{/each}\n\n\t\t\t\t<!-- Y axis unit label -->\n\t\t\t\t{#if yAxisUnit()}\n\t\t\t\t\t<text\n\t\t\t\t\t\tx={-8}\n\t\t\t\t\t\ty={-4}\n\t\t\t\t\t\ttext-anchor=\"end\"\n\t\t\t\t\t\tfill=\"#9ca3af\"\n\t\t\t\t\t\tfont-size=\"10\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{yAxisUnit()}\n\t\t\t\t\t</text>\n\t\t\t\t{/if}\n\n\t\t\t\t<!-- X axis line -->\n\t\t\t\t<line\n\t\t\t\t\tx1={0}\n\t\t\t\t\ty1={chartHeight}\n\t\t\t\t\tx2={chartWidth}\n\t\t\t\t\ty2={chartHeight}\n\t\t\t\t\tstroke=\"#e5e7eb\"\n\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t/>\n\n\t\t\t\t<!-- Y axis line -->\n\t\t\t\t<line\n\t\t\t\t\tx1={0}\n\t\t\t\t\ty1={0}\n\t\t\t\t\tx2={0}\n\t\t\t\t\ty2={chartHeight}\n\t\t\t\t\tstroke=\"#e5e7eb\"\n\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t/>\n\n\t\t\t\t<!-- Lines for each series (with gap detection) -->\n\t\t\t\t<g clip-path=\"url(#{clipId})\">\n\t\t\t\t\t{#each series as s}\n\t\t\t\t\t\t{#if s.data.length > 0}\n\t\t\t\t\t\t\t{@const segments = getLineSegments(s.data)}\n\t\t\t\t\t\t\t{@const isolated = getIsolatedPoints(s.data)}\n\n\t\t\t\t\t\t\t<!-- Draw area fills (when areaFill is enabled) -->\n\t\t\t\t\t\t\t{#if areaFill}\n\t\t\t\t\t\t\t\t{#each segments as segment}\n\t\t\t\t\t\t\t\t\t{#if segment.length > 1}\n\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\td={generateAreaPath(segment)}\n\t\t\t\t\t\t\t\t\t\t\tfill={s.color}\n\t\t\t\t\t\t\t\t\t\t\tfill-opacity=\"0.15\"\n\t\t\t\t\t\t\t\t\t\t\tstroke=\"none\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t{/if}\n\n\t\t\t\t\t\t\t<!-- Draw line segments (only segments with 2+ points) -->\n\t\t\t\t\t\t\t{#each segments as segment}\n\t\t\t\t\t\t\t\t{#if segment.length > 1}\n\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\td={generatePath(segment)}\n\t\t\t\t\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\t\t\t\t\tstroke={s.color}\n\t\t\t\t\t\t\t\t\t\tstroke-width=\"1.5\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{/each}\n\n\t\t\t\t\t\t\t<!-- Draw isolated points as dots -->\n\t\t\t\t\t\t\t{#each isolated as point}\n\t\t\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\t\t\tcx={xScale(point.timestamp)}\n\t\t\t\t\t\t\t\t\tcy={yScale(point.value)}\n\t\t\t\t\t\t\t\t\tr=\"3\"\n\t\t\t\t\t\t\t\t\tfill={s.color}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t{/each}\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t</svg>\n\t{:else}\n\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\tNo data in this period\n\t\t</div>\n\t{/if}\n\n\t<!-- Drag selection overlay -->\n\t{#if isDragging && selectionWidth > 0}\n\t\t<div\n\t\t\tclass=\"absolute top-0 bottom-0 bg-primary/20 border-x border-primary/40 pointer-events-none\"\n\t\t\tstyle=\"left: {selectionLeft}px; width: {selectionWidth}px;\"\n\t\t>\n\t\t\t<div class=\"absolute -top-5 left-0 -translate-x-full text-[9px] font-medium text-primary whitespace-nowrap\">\n\t\t\t\t{formatTime(selectionStartTime())}\n\t\t\t</div>\n\t\t\t<div class=\"absolute -top-5 right-0 translate-x-full text-[9px] font-medium text-primary whitespace-nowrap\">\n\t\t\t\t{formatTime(selectionEndTime())}\n\t\t\t</div>\n\t\t</div>\n\t{/if}\n\n\t<!-- Hover tooltip -->\n\t{#if isHovering && !isDragging && isInChartArea()}\n\t\t{@const clampedX = Math.max(padding.left, Math.min(mouseX, width - padding.right))}\n\t\t{@const valueData = calculatedValue()}\n\n\t\t<!-- Vertical line -->\n\t\t<div\n\t\t\tclass=\"absolute top-0 bottom-0 w-px bg-muted-foreground/50 pointer-events-none\"\n\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t></div>\n\n\t\t<!-- Value tooltip -->\n\t\t{#if hasMultiServerData && calculatedServerValues().length > 0}\n\t\t\t<div\n\t\t\t\tclass=\"absolute top-0 -translate-x-1/2 -translate-y-full pointer-events-none\"\n\t\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t\t>\n\t\t\t\t<div class=\"bg-foreground text-background rounded px-2 py-1 text-xs font-medium whitespace-nowrap shadow-lg mb-1 flex flex-col gap-0.5\">\n\t\t\t\t\t{#each calculatedServerValues() as serverValue}\n\t\t\t\t\t\t{@const formatted = formatDisplayValue(serverValue.value)}\n\t\t\t\t\t\t<div class=\"flex items-center gap-1.5\">\n\t\t\t\t\t\t\t<span class=\"h-2 w-2 rounded-full flex-shrink-0\" style=\"background-color: {serverValue.color};\"></span>\n\t\t\t\t\t\t\t<span>{formatted.text}{#if unit && !formatted.includesUnit}<span class=\"text-background/70 ml-0.5\">{unit}</span>{/if}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/each}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{:else if valueData}\n\t\t\t{@const formatted = formatDisplayValue(valueData.value)}\n\t\t\t<div\n\t\t\t\tclass=\"absolute top-0 -translate-x-1/2 -translate-y-full pointer-events-none\"\n\t\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t\t>\n\t\t\t\t<div class=\"bg-foreground text-background rounded px-2 py-1 text-xs font-medium whitespace-nowrap shadow-lg mb-1\">\n\t\t\t\t\t{formatted.text}{#if unit && !formatted.includesUnit}<span class=\"text-background/70 ml-0.5\">{unit}</span>{/if}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Time label -->\n\t\t<div\n\t\t\tclass=\"absolute bottom-0 -translate-x-1/2 translate-y-full pointer-events-none\"\n\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t>\n\t\t\t<div class=\"bg-background border border-border rounded px-1.5 py-0.5 text-[10px] text-muted-foreground whitespace-nowrap shadow-sm mt-1\">\n\t\t\t\t{formatTime(calculatedTime())}\n\t\t\t</div>\n\t\t</div>\n\t{/if}\n\n\t<!-- Shadow line from other charts -->\n\t{#if shouldShowShadowLine}\n\t\t{@const shadowX = shadowLineX()}\n\t\t{#if shadowX >= padding.left && shadowX <= width - padding.right}\n\t\t\t<div\n\t\t\t\tclass=\"absolute top-0 bottom-0 w-px bg-muted-foreground/25 pointer-events-none\"\n\t\t\t\tstyle=\"left: {shadowX}px;\"\n\t\t\t></div>\n\t\t{/if}\n\t{/if}\n</div>\n","<script lang=\"ts\">\n\timport * as Table from '$lib/components/ui/table';\n\timport type { MetricTrendPoint } from '$lib/types/dashboard';\n\timport { formatMetricLabel } from '$lib/utils/metric-format';\n\n\ttype SeriesItem = {\n\t\tkey: string;\n\t\tdata: MetricTrendPoint[];\n\t};\n\n\tlet { series = [], unit = '' } = $props<{\n\t\tseries: SeriesItem[];\n\t\tunit?: string;\n\t}>();\n\n\tconst stats = $derived(() => {\n\t\tconst s = series[0];\n\t\tif (!s) return [];\n\t\tconst values = s.data.map((d: MetricTrendPoint) => d.value);\n\t\tif (values.length === 0) {\n\t\t\treturn [\n\t\t\t\t{ label: 'Latest', value: 0 },\n\t\t\t\t{ label: 'Min', value: 0 },\n\t\t\t\t{ label: 'Max', value: 0 },\n\t\t\t\t{ label: 'Avg', value: 0 }\n\t\t\t];\n\t\t}\n\t\tconst sum = values.reduce((a: number, b: number) => a + b, 0);\n\t\treturn [\n\t\t\t{ label: 'Latest', value: values[values.length - 1] },\n\t\t\t{ label: 'Min', value: Math.min(...values) },\n\t\t\t{ label: 'Max', value: Math.max(...values) },\n\t\t\t{ label: 'Avg', value: sum / values.length }\n\t\t];\n\t});\n\n\tfunction fmt(v: number): string {\n\t\tif (unit) return formatMetricLabel(v, unit);\n\t\tif (Number.isInteger(v)) return v.toString();\n\t\treturn v.toFixed(2);\n\t}\n</script>\n\n<div class=\"overflow-auto\">\n\t<Table.Root>\n\t\t<Table.Body>\n\t\t\t{#each stats() as stat}\n\t\t\t\t<Table.Row>\n\t\t\t\t\t<Table.Cell class=\"font-medium\">{stat.label}</Table.Cell>\n\t\t\t\t\t<Table.Cell class=\"text-right\">{fmt(stat.value)}</Table.Cell>\n\t\t\t\t</Table.Row>\n\t\t\t{/each}\n\t\t</Table.Body>\n\t</Table.Root>\n</div>\n","<script lang=\"ts\">\n\timport D3LineChart from './d3-line-chart.svelte';\n\timport D3HorizontalBarChart from './d3-horizontal-bar-chart.svelte';\n\timport WidgetTable from './widget-table.svelte';\n\timport { api } from '$lib/api';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport type { MetricTrendPoint, MetricQueryResponse } from '$lib/types/dashboard';\n\timport { formatMetricLabel } from '$lib/utils/metric-format';\n\n\ttype WidgetSource = {\n\t\ttype: 'metric';\n\t\tname: string;\n\t\ttagFilters?: Record<string, string>;\n\t\taggregation: string;\n\t\tgroupBy?: string;\n\t};\n\n\ttype WidgetConfig = {\n\t\tsources?: WidgetSource[];\n\t\tyAxisLabel?: string;\n\t\tshowLegend?: boolean;\n\t\tunit?: string;\n\t};\n\n\tlet {\n\t\twidget,\n\t\tfromDateUTC,\n\t\ttoDateUTC,\n\t\ttimeDomain = null,\n\t\tonRangeSelect,\n\t\tsharedHoverTime = null,\n\t\tisSourceChart = false,\n\t\tonHoverTimeChange\n\t} = $props<{\n\t\twidget: {\n\t\t\tid: number;\n\t\t\ttitle: string;\n\t\t\twidgetType: string;\n\t\t\tconfig: WidgetConfig;\n\t\t};\n\t\tfromDateUTC: string;\n\t\ttoDateUTC: string;\n\t\ttimeDomain: [Date, Date] | null;\n\t\tonRangeSelect?: (from: Date, to: Date) => void;\n\t\tsharedHoverTime?: Date | null;\n\t\tisSourceChart?: boolean;\n\t\tonHoverTimeChange?: (time: Date | null) => void;\n\t}>();\n\n\tlet series = $state<Array<{ key: string; data: MetricTrendPoint[]; color: string }>>([]);\n\tlet loading = $state(true);\n\tlet singleValue = $state<number | null>(null);\n\tlet resolvedUnit = $state('');\n\n\tconst colors = ['#3b82f6', '#ef4444', '#22c55e', '#f59e0b', '#8b5cf6', '#ec4899'];\n\n\tconst effectiveUnit = $derived(widget.config.unit ?? resolvedUnit);\n\n\tasync function loadData() {\n\t\tconst sources = widget.config.sources;\n\t\tif (!sources || sources.length === 0) {\n\t\t\tloading = false;\n\t\t\treturn;\n\t\t}\n\n\t\tloading = true;\n\t\ttry {\n\t\t\tconst newSeries: Array<{ key: string; data: MetricTrendPoint[]; color: string }> = [];\n\t\t\tlet colorIdx = 0;\n\n\t\t\tconst queries = sources.map((s: WidgetSource) => ({\n\t\t\t\tname: s.name,\n\t\t\t\taggregation: s.aggregation || 'avg',\n\t\t\t\ttagFilters: s.tagFilters,\n\t\t\t\tgroupBy: s.groupBy\n\t\t\t}));\n\n\t\t\tconst response: MetricQueryResponse = await api.post(\n\t\t\t\t'/metrics/query',\n\t\t\t\t{ queries, from: fromDateUTC, to: toDateUTC },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\tconst units = new Set<string>();\n\t\t\tfor (const result of response.results) {\n\t\t\t\tif (result.unit) units.add(result.unit);\n\t\t\t\tfor (const [key, points] of Object.entries(result.series)) {\n\t\t\t\t\tconst label = Object.keys(result.series).length > 1 ? `${result.name} (${key})` : result.name;\n\t\t\t\t\tnewSeries.push({\n\t\t\t\t\t\tkey: label,\n\t\t\t\t\t\tdata: points.map((p) => ({\n\t\t\t\t\t\t\ttimestamp: new Date(p.Timestamp),\n\t\t\t\t\t\t\tvalue: p.Value\n\t\t\t\t\t\t})),\n\t\t\t\t\t\tcolor: colors[colorIdx % colors.length]\n\t\t\t\t\t});\n\t\t\t\t\tcolorIdx++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresolvedUnit = units.size === 1 ? [...units][0] : '';\n\t\t\tseries = newSeries;\n\n\t\t\tif (widget.widgetType === 'single_value' && newSeries.length > 0 && newSeries[0].data.length > 0) {\n\t\t\t\tsingleValue = newSeries[0].data[newSeries[0].data.length - 1].value;\n\t\t\t}\n\t\t} catch {\n\t\t\t// keep empty\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\t$effect(() => {\n\t\tif (fromDateUTC && toDateUTC) {\n\t\t\tloadData();\n\t\t}\n\t});\n\n\tconst barData = $derived(\n\t\tseries.map((s) => ({\n\t\t\tendpoint: s.key,\n\t\t\tvalue: s.data.length > 0 ? s.data[s.data.length - 1].value : 0\n\t\t}))\n\t);\n</script>\n\n<div class=\"h-full w-full min-h-[200px]\">\n\t{#if loading}\n\t\t<div class=\"flex h-full items-center justify-center\">\n\t\t\t<LoadingCircle size=\"md\" />\n\t\t</div>\n\t{:else if widget.widgetType === 'single_value'}\n\t\t<div class=\"flex h-full flex-col items-center justify-center\">\n\t\t\t<span class=\"text-3xl font-bold\">\n\t\t\t\t{singleValue !== null ? formatMetricLabel(singleValue, effectiveUnit) : '-'}\n\t\t\t</span>\n\t\t</div>\n\t{:else if widget.widgetType === 'bar_chart'}\n\t\t{#if barData.length > 0}\n\t\t\t<D3HorizontalBarChart data={barData} height={200} unit={effectiveUnit} formatValue={(v) => formatMetricLabel(v, effectiveUnit)} />\n\t\t{:else}\n\t\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\tNo data\n\t\t\t</div>\n\t\t{/if}\n\t{:else if widget.widgetType === 'table'}\n\t\t{#if series.length > 0}\n\t\t\t<WidgetTable {series} unit={effectiveUnit} />\n\t\t{:else}\n\t\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\tNo data\n\t\t\t</div>\n\t\t{/if}\n\t{:else if widget.widgetType === 'area_chart'}\n\t\t{#if series.length > 0}\n\t\t\t<D3LineChart\n\t\t\t\t{series}\n\t\t\t\txDomain={timeDomain ?? undefined}\n\t\t\t\theight={200}\n\t\t\t\tpadding={{ top: 10, right: 4, bottom: 20, left: 45 }}\n\t\t\t\t{onRangeSelect}\n\t\t\t\tdata={series[0]?.data ?? []}\n\t\t\t\tareaFill={true}\n\t\t\t\tunit={effectiveUnit}\n\t\t\t\tformatValue={(v) => formatMetricLabel(v, effectiveUnit)}\n\t\t\t\t{sharedHoverTime}\n\t\t\t\t{isSourceChart}\n\t\t\t\t{onHoverTimeChange}\n\t\t\t/>\n\t\t{:else}\n\t\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\tNo data\n\t\t\t</div>\n\t\t{/if}\n\t{:else if series.length > 0}\n\t\t<D3LineChart\n\t\t\t{series}\n\t\t\txDomain={timeDomain ?? undefined}\n\t\t\theight={200}\n\t\t\tpadding={{ top: 10, right: 4, bottom: 20, left: 45 }}\n\t\t\t{onRangeSelect}\n\t\t\tdata={series[0]?.data ?? []}\n\t\t\tunit={effectiveUnit}\n\t\t\tformatValue={(v) => formatMetricLabel(v, effectiveUnit)}\n\t\t\t{sharedHoverTime}\n\t\t\t{isSourceChart}\n\t\t\t{onHoverTimeChange}\n\t\t/>\n\t{:else}\n\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\tNo data\n\t\t</div>\n\t{/if}\n</div>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","formatMetricValue","value","unit","formatMetricLabel","result","series","$.prop","$$props","xDomain","height","padding","data","servers","serverColorMap","areaFill","sharedHoverTime","isSourceChart","tz","getTimezone","containerRef","$.state","width","isHovering","mouseX","isDragging","dragStartX","dragEndX","$.user_effect","observer","entries","entry","$.set","$.get","chartWidth","$.derived","chartHeight","allData","s","xMin","min","d","xMax","max","yMin","minVal","yMax","maxVal","yPadding","yDomainMin","yDomainMax","xScale","scaleUtc","yScale","scaleLinear","yTicks","yAxisUnit","ticks","maxTick","formatYLabel","generatePath","seriesData","line","generateAreaPath","area","hasData","hasMultiServerData","isInChartArea","getTimeAtPosition","x","chartX","percentage","timeDiff","getPositionAtTime","time","getGapThreshold","pointData","intervals","a","b","getLineSegments","threshold","segments","currentSegment","i","getIsolatedPoints","isolated","hasGapBefore","hasGapAfter","getValueAtTime","targetMs","leftIdx","rightIdx","pointMs","leftPoint","rightPoint","gap","t","calculatedTime","calculatedValue","calculatedServerValues","results","server","valueData","shouldShowShadowLine","shadowLineX","formatDisplayValue","selectionLeft","selectionRight","selectionWidth","selectionStartTime","selectionEndTime","handleMouseMove","rect","handleMouseEnter","handleMouseLeave","handleMouseDown","handleMouseUp","startTime","endTime","formatTime","date","formatDateTime","handleKeydown","div","root","node","$.child","clipId","svg","root_1","defs","clipPath","rect_1","$.set_attribute","g","$.each","node_1","tick","line_1","root_2","$0","$1","$.append","node_2","text","root_3","text_1","$.reset","text_2","root_4","text_3","$$render","consequent","line_2","$.sibling","node_3","line_3","g_1","$.index","node_6","segment","path","root_9","consequent_1","consequent_2","node_8","path_1","root_11","consequent_3","node_10","point","circle","root_12","consequent_4","div_1","root_13","consequent_5","alternate","div_2","root_14","div_3","div_4","consequent_6","clampedX","div_5","$.first_child","fragment_5","node_13","div_6","root_16","div_7","serverValue","formatted","div_8","root_17","span","span_1","span_2","root_18","consequent_7","$.set_text","text_6","$.template_effect","$.set_style","div_9","root_20","div_10","span_3","root_21","consequent_9","text_8","consequent_10","consequent_8","alternate_1","div_11","div_12","consequent_11","shadowX","div_13","root_23","consequent_12","consequent_13","$$value","$.event","stats","values","sum","fmt","v","Table_Root","Table_Body","stat","Table_Row","Table_Cell","Table_Cell_1","timeDomain","$.proxy","loading","singleValue","resolvedUnit","colors","effectiveUnit","loadData","sources","newSeries","colorIdx","queries","response","api","projectsState","units","key","points","label","p","barData","LoadingCircle","D3HorizontalBarChart","root_7","WidgetTable","D3LineChart","root_15","alternate_2","alternate_3","alternate_4","alternate_5","alternate_6","alternate_7","alternate_8"],"mappings":"qrBAAA,kEA6CMA,EAAQ,EAAK,OAAU,CAAA,EAAK,oDAAoD,IAAM,OAAM,CAAI,EAAK,aAAY,GAAM,OAAU,CAAA,EAAK,qDAAqD,IAAM,OAAM,CAAI,EAAK,WAAW,CAAA,GAchOC,GAAIC,EAAAC,GAAA,CAAA,KAAA,YAAA,EAAA,IAAAC,EAAA,uBAA0CJ,8FAF/C,iBCzDA,kEA6CMA,EAAQ,EAAK,QAAU,EAAK,kXAcjCC,GAAIC,EAAAC,GAAA,CAAA,KAAA,MAAA,EAAA,IAAAC,EAAA,uBAAoCJ,8FAFzC,CCvDO,SAASK,GAAkBC,EAAeC,EAA4B,CAE5E,OAAIA,IAAS,IACLF,GAAkBC,EAAQ,IAAK,GAAG,EAItCC,IAAS,KACLF,GAAkBC,EAAO,GAAG,EAIhCC,EAAK,OAAS,GAAKA,EAAK,WAAW,GAAG,GAAKA,EAAK,SAAS,GAAG,EACxDF,GAAkBC,EAAO,OAAO,EAGpCC,IAAS,IACRD,IAAU,EAAU,CAAE,KAAM,IAAK,KAAM,GAAA,EACvC,KAAK,IAAIA,CAAK,EAAI,GAAY,CAAE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AAG,cAhBAnL,CAAM,EAAC,OAAS,EAACkJ,EAAA+B,EAAA,EAAA/B,EAAA+G,GAAA,EAAA,qDAuBZ,IAAA1H,GAAA1G,EAAA,IAAAyM,EAAU,GAAI,MAAS,aAI1BtO,CAAM,EAAC,CAAC,GAAG,MAAI,EAAA,EANrB+P,GAAAvQ,EAAA,uBACCQ,CAAM,sCAEC,IACG,QAAA,CAAA,IAAK,GAAI,MAAO,EAAG,OAAQ,GAAI,KAAM,EAAE,2FAG5C4O,CAAa,GACL,YAAAb,IAAMjO,GAAkBiO,KAAGa,CAAa,CAAA,+BACrDlO,EAAe,8BACfC,EAAa,sEAId4K,GAAGU,GAAA,MAAHV,EAAG,cAfKvL,CAAM,EAAC,OAAS,EAACkJ,EAAA6D,EAAA,EAAA7D,EAAAgH,GAAA,EAAA,yBArBVhQ,EAAA,OAAA,aAAe,aAAYgJ,EAAAgD,EAAA,EAAAhD,EAAAiH,GAAA,EAAA,wBAR3BjQ,EAAA,OAAA,aAAe,QAAOgJ,EAAAyB,EAAA,EAAAzB,EAAAkH,GAAA,EAAA,wBARtBlQ,EAAA,OAAA,aAAe,YAAWgJ,EAAAiB,EAAA,EAAAjB,EAAAmH,GAAA,EAAA,uBAN1BnQ,EAAA,OAAA,aAAe,eAAcgJ,EAAAY,CAAA,EAAAZ,EAAAoH,EAAA,EAAA,yBAJzC9B,CAAO,EAAAtF,EAAAC,EAAA,EAAAD,EAAAqH,GAAA,EAAA,MADZjJ,EAAG,MAAHA,EAAG,MAFJ","x_google_ignoreList":[0,1]}
\ No newline at end of file
+{"version":3,"file":"B622WnQw.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/refresh-cw.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/star.svelte","../../../../../../src/lib/utils/metric-format.ts","../../../../../../src/lib/components/dashboard/d3-line-chart.svelte","../../../../../../src/lib/components/dashboard/widget-table.svelte","../../../../../../src/lib/components/dashboard/widget-renderer.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8\" }], [\"path\", { \"d\": \"M21 3v5h-5\" }], [\"path\", { \"d\": \"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16\" }], [\"path\", { \"d\": \"M8 16H3v5\" }]];\n/**\n * @component @name RefreshCw\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMyAxMmE5IDkgMCAwIDEgOS05IDkuNzUgOS43NSAwIDAgMSA2Ljc0IDIuNzRMMjEgOCIgLz4KICA8cGF0aCBkPSJNMjEgM3Y1aC01IiAvPgogIDxwYXRoIGQ9Ik0yMSAxMmE5IDkgMCAwIDEtOSA5IDkuNzUgOS43NSAwIDAgMS02Ljc0LTIuNzRMMyAxNiIgLz4KICA8cGF0aCBkPSJNOCAxNkgzdjUiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/refresh-cw\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"refresh-cw\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z\" }]];\n/**\n * @component @name Star\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTEuNTI1IDIuMjk1YS41My41MyAwIDAgMSAuOTUgMGwyLjMxIDQuNjc5YTIuMTIzIDIuMTIzIDAgMCAwIDEuNTk1IDEuMTZsNS4xNjYuNzU2YS41My41MyAwIDAgMSAuMjk0LjkwNGwtMy43MzYgMy42MzhhMi4xMjMgMi4xMjMgMCAwIDAtLjYxMSAxLjg3OGwuODgyIDUuMTRhLjUzLjUzIDAgMCAxLS43NzEuNTZsLTQuNjE4LTIuNDI4YTIuMTIyIDIuMTIyIDAgMCAwLTEuOTczIDBMNi4zOTYgMjEuMDFhLjUzLjUzIDAgMCAxLS43Ny0uNTZsLjg4MS01LjEzOWEyLjEyMiAyLjEyMiAwIDAgMC0uNjExLTEuODc5TDIuMTYgOS43OTVhLjUzLjUzIDAgMCAxIC4yOTQtLjkwNmw1LjE2NS0uNzU1YTIuMTIyIDIuMTIyIDAgMCAwIDEuNTk3LTEuMTZ6IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/star\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"star\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","type FormatResult = { text: string; unit: string };\n\nexport function formatMetricValue(value: number, unit: string): FormatResult {\n\t// OTel canonical unit '1' is a dimensionless ratio (0-1) — render as percent.\n\tif (unit === '1') {\n\t\treturn formatMetricValue(value * 100, '%');\n\t}\n\n\t// OTel canonical unit 'By' is bytes — normalize to the existing bytes branch.\n\tif (unit === 'By') {\n\t\treturn formatMetricValue(value, 'B');\n\t}\n\n\t// OTel annotation units like '{connections}', '{packets}' — treat as raw count.\n\tif (unit.length > 2 && unit.startsWith('{') && unit.endsWith('}')) {\n\t\treturn formatMetricValue(value, 'count');\n\t}\n\n\tif (unit === '%') {\n\t\tif (value === 0) return { text: '0', unit: '%' };\n\t\tif (Math.abs(value) < 0.1) return { text: value.toFixed(2), unit: '%' };\n\t\tif (Math.abs(value) < 10) return { text: value.toFixed(1), unit: '%' };\n\t\treturn { text: Math.round(value).toString(), unit: '%' };\n\t}\n\n\tif (unit === 'ms') {\n\t\tif (value < 1) return { text: (value * 1000).toFixed(0), unit: 'µs' };\n\t\tif (value < 10) return { text: value.toFixed(1), unit: 'ms' };\n\t\tif (value < 1000) return { text: Math.round(value).toString(), unit: 'ms' };\n\t\treturn { text: (value / 1000).toFixed(1), unit: 's' };\n\t}\n\n\tif (unit === 'ns') {\n\t\tif (value < 1000) return { text: Math.round(value).toString(), unit: 'ns' };\n\t\tif (value < 1_000_000) return { text: (value / 1000).toFixed(1), unit: 'µs' };\n\t\tif (value < 1_000_000_000) return { text: (value / 1_000_000).toFixed(1), unit: 'ms' };\n\t\treturn { text: (value / 1_000_000_000).toFixed(1), unit: 's' };\n\t}\n\n\tif (unit === 's') {\n\t\tif (value < 0.001) return { text: (value * 1_000_000).toFixed(0), unit: 'µs' };\n\t\tif (value < 1) return { text: (value * 1000).toFixed(1), unit: 'ms' };\n\t\tif (value < 60) return { text: value.toFixed(1), unit: 's' };\n\t\tif (value < 3600) return { text: (value / 60).toFixed(1), unit: 'min' };\n\t\treturn { text: (value / 3600).toFixed(1), unit: 'h' };\n\t}\n\n\tif (unit === 'MB') {\n\t\tif (value < 1) return { text: (value * 1024).toFixed(0), unit: 'KB' };\n\t\tif (value >= 1024) return { text: (value / 1024).toFixed(1), unit: 'GB' };\n\t\treturn { text: Math.round(value).toString(), unit: 'MB' };\n\t}\n\n\tif (unit === 'GB') {\n\t\tif (value < 1) return { text: (value * 1024).toFixed(0), unit: 'MB' };\n\t\tif (value >= 1024) return { text: (value / 1024).toFixed(1), unit: 'TB' };\n\t\treturn { text: value.toFixed(1), unit: 'GB' };\n\t}\n\n\tif (unit === 'bytes' || unit === 'B') {\n\t\tif (value < 1024) return { text: Math.round(value).toString(), unit: 'B' };\n\t\tif (value < 1024 * 1024) return { text: (value / 1024).toFixed(1), unit: 'KB' };\n\t\tif (value < 1024 * 1024 * 1024) return { text: (value / (1024 * 1024)).toFixed(1), unit: 'MB' };\n\t\treturn { text: (value / (1024 * 1024 * 1024)).toFixed(1), unit: 'GB' };\n\t}\n\n\tif (unit === 'count' || unit === '') {\n\t\tif (value >= 1_000_000) return { text: (value / 1_000_000).toFixed(1), unit: 'M' };\n\t\tif (value >= 1_000) return { text: (value / 1_000).toFixed(1), unit: 'K' };\n\t\treturn { text: Math.round(value).toString(), unit: '' };\n\t}\n\n\tif (Number.isInteger(value)) return { text: value.toString(), unit };\n\treturn { text: value.toFixed(1), unit };\n}\n\nexport function formatMetricLabel(value: number, unit: string): string {\n\tconst result = formatMetricValue(value, unit);\n\tif (!result.unit) return result.text;\n\treturn `${result.text} ${result.unit}`;\n}\n","<script lang=\"ts\">\n\timport { scaleUtc, scaleLinear, type NumberValue } from 'd3-scale';\n\timport { line, area } from 'd3-shape';\n\timport { min, max } from 'd3-array';\n\timport { formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { formatMetricValue } from '$lib/utils/metric-format';\n\n\ttype DataPoint = {\n\t\ttimestamp: Date;\n\t\tvalue: number;\n\t};\n\n\ttype Series = {\n\t\tkey: string;\n\t\tdata: DataPoint[];\n\t\tcolor: string;\n\t};\n\n\ttype ServerData = {\n\t\tserverName: string;\n\t\ttrend: DataPoint[];\n\t};\n\n\tlet {\n\t\tseries = [],\n\t\txDomain = null,\n\t\theight = 220,\n\t\tpadding = { top: 10, right: 4, bottom: 20, left: 45 },\n\t\t// Overlay props\n\t\tonRangeSelect,\n\t\tdata = [],\n\t\tservers = [],\n\t\tserverColorMap = {},\n\t\tunit = '',\n\t\tformatValue,\n\t\tareaFill = false,\n\t\tsharedHoverTime = null,\n\t\tisSourceChart = false,\n\t\tonHoverTimeChange\n\t} = $props<{\n\t\tseries: Series[];\n\t\txDomain?: [Date, Date] | null;\n\t\theight?: number;\n\t\tpadding?: { top: number; right: number; bottom: number; left: number };\n\t\t// Overlay props\n\t\tonRangeSelect?: (from: Date, to: Date) => void;\n\t\tdata?: DataPoint[];\n\t\tservers?: ServerData[];\n\t\tserverColorMap?: Record<string, string>;\n\t\tunit?: string;\n\t\tformatValue?: (value: number) => string;\n\t\tareaFill?: boolean;\n\t\tsharedHoverTime?: Date | null;\n\t\tisSourceChart?: boolean;\n\t\tonHoverTimeChange?: (time: Date | null) => void;\n\t}>();\n\n\tconst tz = $derived(getTimezone());\n\n\tlet containerRef = $state<HTMLDivElement | null>(null);\n\tlet width = $state(300);\n\n\t// Hover state\n\tlet isHovering = $state(false);\n\tlet mouseX = $state(0);\n\n\t// Drag selection state\n\tlet isDragging = $state(false);\n\tlet dragStartX = $state(0);\n\tlet dragEndX = $state(0);\n\n\t// Observe container width\n\t$effect(() => {\n\t\tif (!containerRef) return;\n\n\t\tconst observer = new ResizeObserver((entries) => {\n\t\t\tfor (const entry of entries) {\n\t\t\t\twidth = entry.contentRect.width;\n\t\t\t}\n\t\t});\n\n\t\tobserver.observe(containerRef);\n\t\treturn () => observer.disconnect();\n\t});\n\n\t// Chart dimensions\n\tconst chartWidth = $derived(Math.max(0, width - padding.left - padding.right));\n\tconst chartHeight = $derived(Math.max(0, height - padding.top - padding.bottom));\n\n\t// Calculate domains from data\n\tconst allData = $derived(series.flatMap((s: Series) => s.data));\n\n\tconst xMin = $derived(xDomain?.[0] ?? min(allData, (d: DataPoint) => d.timestamp) ?? new Date());\n\tconst xMax = $derived(xDomain?.[1] ?? max(allData, (d: DataPoint) => d.timestamp) ?? new Date());\n\n\tconst yMin = $derived(() => {\n\t\tconst minVal = min(allData, (d: DataPoint) => d.value);\n\t\treturn typeof minVal === 'number' ? minVal : 0;\n\t});\n\n\tconst yMax = $derived(() => {\n\t\tconst maxVal = max(allData, (d: DataPoint) => d.value);\n\t\treturn typeof maxVal === 'number' ? maxVal : 0;\n\t});\n\n\t// Add padding to y domain\n\tconst yPadding = $derived((yMax() - yMin()) * 0.1 || 1);\n\tconst yDomainMin = $derived(Math.max(0, yMin() - yPadding));\n\tconst yDomainMax = $derived(yMax() + yPadding);\n\n\t// Scales\n\tconst xScale = $derived(\n\t\tscaleUtc()\n\t\t\t.domain([xMin, xMax])\n\t\t\t.range([0, chartWidth])\n\t);\n\n\tconst yScale = $derived(\n\t\tscaleLinear()\n\t\t\t.domain([yDomainMin, yDomainMax])\n\t\t\t.range([chartHeight, 0])\n\t);\n\n\t// Generate Y axis ticks\n\tconst yTicks = $derived(() => yScale.ticks(4));\n\n\tconst yAxisUnit = $derived(() => {\n\t\tif (!unit) return '';\n\t\tconst ticks = yTicks();\n\t\tif (ticks.length === 0) return unit;\n\t\tconst maxTick = ticks[ticks.length - 1];\n\t\treturn formatMetricValue(maxTick, unit).unit;\n\t});\n\n\tfunction formatYLabel(value: number): string {\n\t\tif (unit) {\n\t\t\tconst result = formatMetricValue(value, unit);\n\t\t\treturn result.text;\n\t\t}\n\t\tif (value >= 1000000) return (value / 1000000).toFixed(1) + 'M';\n\t\tif (value >= 1000) return (value / 1000).toFixed(1) + 'k';\n\t\tif (Number.isInteger(value)) return value.toString();\n\t\treturn value.toFixed(1);\n\t}\n\n\t// Generate path string for a series\n\tfunction generatePath(seriesData: DataPoint[]): string {\n\t\tif (seriesData.length === 0) return '';\n\n\t\tconst lineGen = line<DataPoint>()\n\t\t\t.x(d => xScale(d.timestamp))\n\t\t\t.y(d => yScale(d.value));\n\n\t\treturn lineGen(seriesData) || '';\n\t}\n\n\tfunction generateAreaPath(seriesData: DataPoint[]): string {\n\t\tif (seriesData.length === 0) return '';\n\n\t\tconst areaGen = area<DataPoint>()\n\t\t\t.x(d => xScale(d.timestamp))\n\t\t\t.y0(chartHeight)\n\t\t\t.y1(d => yScale(d.value));\n\n\t\treturn areaGen(seriesData) || '';\n\t}\n\n\tconst hasData = $derived(allData.length > 0);\n\n\t// Check if we have multi-server data\n\tconst hasMultiServerData = $derived(servers && servers.length > 1);\n\n\t// Check if mouse X is within the chart area\n\tfunction isInChartArea(): boolean {\n\t\treturn mouseX >= padding.left && mouseX <= width - padding.right;\n\t}\n\n\t// Calculate time based on X position\n\tfunction getTimeAtPosition(x: number): Date {\n\t\tif (chartWidth <= 0) return xMin;\n\t\tconst chartX = x - padding.left;\n\t\tconst percentage = Math.max(0, Math.min(1, chartX / chartWidth));\n\t\tconst timeDiff = xMax.getTime() - xMin.getTime();\n\t\treturn new Date(xMin.getTime() + timeDiff * percentage);\n\t}\n\n\t// Calculate X position based on time\n\tfunction getPositionAtTime(time: Date): number {\n\t\tif (chartWidth <= 0) return padding.left;\n\t\tconst timeDiff = xMax.getTime() - xMin.getTime();\n\t\tif (timeDiff <= 0) return padding.left;\n\t\tconst percentage = (time.getTime() - xMin.getTime()) / timeDiff;\n\t\treturn padding.left + (percentage * chartWidth);\n\t}\n\n\t// Calculate gap threshold from data (2x median interval)\n\tfunction getGapThreshold(pointData: DataPoint[]): number {\n\t\tif (pointData.length < 2) return 3600000;\n\t\tconst intervals: number[] = [];\n\t\tfor (let i = 1; i < Math.min(pointData.length, 10); i++) {\n\t\t\tintervals.push(pointData[i].timestamp.getTime() - pointData[i - 1].timestamp.getTime());\n\t\t}\n\t\tintervals.sort((a, b) => a - b);\n\t\treturn intervals[Math.floor(intervals.length / 2)] * 2;\n\t}\n\n\t// Break data into line segments at gaps (for gap-aware rendering)\n\tfunction getLineSegments(pointData: DataPoint[]): DataPoint[][] {\n\t\tif (pointData.length === 0) return [];\n\n\t\tconst threshold = getGapThreshold(pointData);\n\t\tconst segments: DataPoint[][] = [];\n\t\tlet currentSegment: DataPoint[] = [pointData[0]];\n\n\t\tfor (let i = 1; i < pointData.length; i++) {\n\t\t\tconst gap = pointData[i].timestamp.getTime() - pointData[i - 1].timestamp.getTime();\n\t\t\tif (gap > threshold) {\n\t\t\t\tif (currentSegment.length > 0) segments.push(currentSegment);\n\t\t\t\tcurrentSegment = [pointData[i]];\n\t\t\t} else {\n\t\t\t\tcurrentSegment.push(pointData[i]);\n\t\t\t}\n\t\t}\n\n\t\tif (currentSegment.length > 0) segments.push(currentSegment);\n\t\treturn segments;\n\t}\n\n\t// Find isolated points (points with gaps on both sides)\n\tfunction getIsolatedPoints(pointData: DataPoint[]): DataPoint[] {\n\t\tif (pointData.length === 0) return [];\n\t\tif (pointData.length === 1) return pointData;\n\n\t\tconst threshold = getGapThreshold(pointData);\n\t\tconst isolated: DataPoint[] = [];\n\n\t\tfor (let i = 0; i < pointData.length; i++) {\n\t\t\tconst hasGapBefore = i === 0 ||\n\t\t\t\t(pointData[i].timestamp.getTime() - pointData[i - 1].timestamp.getTime() > threshold);\n\t\t\tconst hasGapAfter = i === pointData.length - 1 ||\n\t\t\t\t(pointData[i + 1].timestamp.getTime() - pointData[i].timestamp.getTime() > threshold);\n\n\t\t\tif (hasGapBefore && hasGapAfter) {\n\t\t\t\tisolated.push(pointData[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn isolated;\n\t}\n\n\t// Find the value at a given time, interpolating for line sections\n\tfunction getValueAtTime(time: Date, pointData: DataPoint[]): { value: number; isInterpolated: boolean } | null {\n\t\tif (pointData.length === 0) return null;\n\n\t\tconst targetMs = time.getTime();\n\t\tconst threshold = getGapThreshold(pointData);\n\n\t\tlet leftIdx = -1;\n\t\tlet rightIdx = -1;\n\n\t\tfor (let i = 0; i < pointData.length; i++) {\n\t\t\tconst pointMs = pointData[i].timestamp.getTime();\n\t\t\tif (pointMs <= targetMs) leftIdx = i;\n\t\t\tif (pointMs >= targetMs && rightIdx === -1) rightIdx = i;\n\t\t}\n\n\t\tif (leftIdx >= 0 && pointData[leftIdx].timestamp.getTime() === targetMs) {\n\t\t\treturn { value: pointData[leftIdx].value, isInterpolated: false };\n\t\t}\n\n\t\tif (leftIdx >= 0 && rightIdx >= 0 && leftIdx !== rightIdx) {\n\t\t\tconst leftPoint = pointData[leftIdx];\n\t\t\tconst rightPoint = pointData[rightIdx];\n\t\t\tconst gap = rightPoint.timestamp.getTime() - leftPoint.timestamp.getTime();\n\n\t\t\tif (gap <= threshold) {\n\t\t\t\tconst t = (targetMs - leftPoint.timestamp.getTime()) / gap;\n\t\t\t\tconst interpolatedValue = leftPoint.value + t * (rightPoint.value - leftPoint.value);\n\t\t\t\treturn { value: interpolatedValue, isInterpolated: true };\n\t\t\t}\n\t\t}\n\n\t\tif (leftIdx >= 0) {\n\t\t\tconst distToLeft = targetMs - pointData[leftIdx].timestamp.getTime();\n\t\t\tif (distToLeft <= threshold / 2) {\n\t\t\t\treturn { value: pointData[leftIdx].value, isInterpolated: false };\n\t\t\t}\n\t\t}\n\n\t\tif (rightIdx >= 0) {\n\t\t\tconst distToRight = pointData[rightIdx].timestamp.getTime() - targetMs;\n\t\t\tif (distToRight <= threshold / 2) {\n\t\t\t\treturn { value: pointData[rightIdx].value, isInterpolated: false };\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\t// Calculate time based on mouse X position\n\tconst calculatedTime = $derived(() => {\n\t\tif (!isHovering) return null;\n\t\treturn getTimeAtPosition(mouseX);\n\t});\n\n\t// Calculate the value at the current hover position\n\tconst calculatedValue = $derived(() => {\n\t\tconst time = calculatedTime();\n\t\tif (!time) return null;\n\t\treturn getValueAtTime(time, data);\n\t});\n\n\t// Calculate values for all servers at the current hover position\n\tconst calculatedServerValues = $derived(() => {\n\t\tconst time = calculatedTime();\n\t\tif (!time || !hasMultiServerData) return [];\n\n\t\tconst results: { serverName: string; value: number; color: string }[] = [];\n\n\t\tfor (const server of servers) {\n\t\t\tconst valueData = getValueAtTime(time, server.trend);\n\t\t\tif (valueData) {\n\t\t\t\tresults.push({\n\t\t\t\t\tserverName: server.serverName,\n\t\t\t\t\tvalue: valueData.value,\n\t\t\t\t\tcolor: serverColorMap[server.serverName] || '#888888'\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn results;\n\t});\n\n\t// Shadow line\n\tconst shouldShowShadowLine = $derived(\n\t\tsharedHoverTime !== null && !isSourceChart && !isDragging && !isHovering\n\t);\n\n\tconst shadowLineX = $derived(() => {\n\t\tif (!shouldShowShadowLine || !sharedHoverTime) return 0;\n\t\treturn getPositionAtTime(sharedHoverTime);\n\t});\n\n\t// Format value for display - returns { text, includesUnit }\n\tfunction formatDisplayValue(value: number): { text: string; includesUnit: boolean } {\n\t\tif (formatValue) return { text: formatValue(value), includesUnit: true };\n\t\tif (Number.isInteger(value)) return { text: value.toString(), includesUnit: false };\n\t\tif (Math.abs(value) < 0.01) return { text: value.toFixed(4), includesUnit: false };\n\t\tif (Math.abs(value) < 1) return { text: value.toFixed(2), includesUnit: false };\n\t\tif (Math.abs(value) < 10) return { text: value.toFixed(1), includesUnit: false };\n\t\treturn { text: Math.round(value).toString(), includesUnit: false };\n\t}\n\n\t// Selection region computed values\n\tconst selectionLeft = $derived(Math.max(padding.left, Math.min(dragStartX, dragEndX)));\n\tconst selectionRight = $derived(() => Math.min(width - padding.right, Math.max(dragStartX, dragEndX)));\n\tconst selectionWidth = $derived(selectionRight() - selectionLeft);\n\tconst selectionStartTime = $derived(() => getTimeAtPosition(selectionLeft));\n\tconst selectionEndTime = $derived(() => getTimeAtPosition(selectionLeft + selectionWidth));\n\n\tfunction handleMouseMove(e: MouseEvent) {\n\t\tif (!containerRef) return;\n\t\tconst rect = containerRef.getBoundingClientRect();\n\t\tmouseX = e.clientX - rect.left;\n\n\t\tif (isDragging) {\n\t\t\tdragEndX = mouseX;\n\t\t} else if (isInChartArea()) {\n\t\t\tonHoverTimeChange?.(getTimeAtPosition(mouseX));\n\t\t}\n\t}\n\n\tfunction handleMouseEnter() {\n\t\tisHovering = true;\n\t}\n\n\tfunction handleMouseLeave() {\n\t\tisHovering = false;\n\t\tif (isDragging) isDragging = false;\n\t\tonHoverTimeChange?.(null);\n\t}\n\n\tfunction handleMouseDown(e: MouseEvent) {\n\t\tif (!containerRef || e.button !== 0) return;\n\t\tconst rect = containerRef.getBoundingClientRect();\n\t\tconst x = e.clientX - rect.left;\n\n\t\tif (x < padding.left || x > rect.width - padding.right) return;\n\n\t\tisDragging = true;\n\t\tdragStartX = x;\n\t\tdragEndX = x;\n\t\te.preventDefault();\n\t}\n\n\tfunction handleMouseUp() {\n\t\tif (!isDragging) return;\n\n\t\tisDragging = false;\n\n\t\tif (selectionWidth > 10 && onRangeSelect) {\n\t\t\tconst startTime = getTimeAtPosition(Math.min(dragStartX, dragEndX));\n\t\t\tconst endTime = getTimeAtPosition(Math.max(dragStartX, dragEndX));\n\t\t\tonRangeSelect(startTime, endTime);\n\t\t}\n\t}\n\n\tfunction formatTime(date: Date | null): string {\n\t\tif (!date) return '';\n\t\treturn formatDateTime(date, { timezone: tz, format: 'time' });\n\t}\n\n\tfunction handleKeydown(e: KeyboardEvent) {\n\t\tif (e.key === 'Escape' && isDragging) {\n\t\t\tisDragging = false;\n\t\t\tdragStartX = 0;\n\t\t\tdragEndX = 0;\n\t\t}\n\t}\n\n\t$effect(() => {\n\t\tif (isDragging) {\n\t\t\twindow.addEventListener('keydown', handleKeydown);\n\t\t\treturn () => window.removeEventListener('keydown', handleKeydown);\n\t\t}\n\t});\n</script>\n\n<div\n\tbind:this={containerRef}\n\tclass=\"relative select-none w-full\"\n\tstyle=\"height: {height}px; cursor: {isDragging ? 'col-resize' : (isInChartArea() ? 'crosshair' : 'default')};\"\n\tonmouseenter={handleMouseEnter}\n\tonmouseleave={handleMouseLeave}\n\tonmousemove={handleMouseMove}\n\tonmousedown={handleMouseDown}\n\tonmouseup={handleMouseUp}\n\trole=\"application\"\n\taria-label=\"Chart with drag-to-zoom\"\n>\n\t{#if hasData && chartWidth > 0}\n\t\t{@const clipId = `chart-clip-${Math.random().toString(36).slice(2, 9)}`}\n\t\t<svg {width} {height}>\n\t\t\t<defs>\n\t\t\t\t<clipPath id={clipId}>\n\t\t\t\t\t<rect x={0} y={0} width={chartWidth} height={chartHeight} />\n\t\t\t\t</clipPath>\n\t\t\t</defs>\n\t\t\t<g transform=\"translate({padding.left}, {padding.top})\">\n\t\t\t\t<!-- Y axis grid lines -->\n\t\t\t\t{#each yTicks() as tick}\n\t\t\t\t\t<line\n\t\t\t\t\t\tx1={0}\n\t\t\t\t\t\ty1={yScale(tick)}\n\t\t\t\t\t\tx2={chartWidth}\n\t\t\t\t\t\ty2={yScale(tick)}\n\t\t\t\t\t\tstroke=\"#e5e7eb\"\n\t\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t\t\tstroke-dasharray=\"4 4\"\n\t\t\t\t\t/>\n\t\t\t\t{/each}\n\n\t\t\t\t<!-- Y axis labels -->\n\t\t\t\t{#each yTicks() as tick}\n\t\t\t\t\t<text\n\t\t\t\t\t\tx={-8}\n\t\t\t\t\t\ty={yScale(tick)}\n\t\t\t\t\t\ttext-anchor=\"end\"\n\t\t\t\t\t\tdominant-baseline=\"middle\"\n\t\t\t\t\t\tfill=\"#6b7280\"\n\t\t\t\t\t\tfont-size=\"10\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{formatYLabel(tick)}\n\t\t\t\t\t</text>\n\t\t\t\t{/each}\n\n\t\t\t\t<!-- Y axis unit label -->\n\t\t\t\t{#if yAxisUnit()}\n\t\t\t\t\t<text\n\t\t\t\t\t\tx={-8}\n\t\t\t\t\t\ty={-4}\n\t\t\t\t\t\ttext-anchor=\"end\"\n\t\t\t\t\t\tfill=\"#9ca3af\"\n\t\t\t\t\t\tfont-size=\"10\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{yAxisUnit()}\n\t\t\t\t\t</text>\n\t\t\t\t{/if}\n\n\t\t\t\t<!-- X axis line -->\n\t\t\t\t<line\n\t\t\t\t\tx1={0}\n\t\t\t\t\ty1={chartHeight}\n\t\t\t\t\tx2={chartWidth}\n\t\t\t\t\ty2={chartHeight}\n\t\t\t\t\tstroke=\"#e5e7eb\"\n\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t/>\n\n\t\t\t\t<!-- Y axis line -->\n\t\t\t\t<line\n\t\t\t\t\tx1={0}\n\t\t\t\t\ty1={0}\n\t\t\t\t\tx2={0}\n\t\t\t\t\ty2={chartHeight}\n\t\t\t\t\tstroke=\"#e5e7eb\"\n\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t/>\n\n\t\t\t\t<!-- Lines for each series (with gap detection) -->\n\t\t\t\t<g clip-path=\"url(#{clipId})\">\n\t\t\t\t\t{#each series as s}\n\t\t\t\t\t\t{#if s.data.length > 0}\n\t\t\t\t\t\t\t{@const segments = getLineSegments(s.data)}\n\t\t\t\t\t\t\t{@const isolated = getIsolatedPoints(s.data)}\n\n\t\t\t\t\t\t\t<!-- Draw area fills (when areaFill is enabled) -->\n\t\t\t\t\t\t\t{#if areaFill}\n\t\t\t\t\t\t\t\t{#each segments as segment}\n\t\t\t\t\t\t\t\t\t{#if segment.length > 1}\n\t\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\t\td={generateAreaPath(segment)}\n\t\t\t\t\t\t\t\t\t\t\tfill={s.color}\n\t\t\t\t\t\t\t\t\t\t\tfill-opacity=\"0.15\"\n\t\t\t\t\t\t\t\t\t\t\tstroke=\"none\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t{/if}\n\n\t\t\t\t\t\t\t<!-- Draw line segments (only segments with 2+ points) -->\n\t\t\t\t\t\t\t{#each segments as segment}\n\t\t\t\t\t\t\t\t{#if segment.length > 1}\n\t\t\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\t\t\td={generatePath(segment)}\n\t\t\t\t\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\t\t\t\t\tstroke={s.color}\n\t\t\t\t\t\t\t\t\t\tstroke-width=\"1.5\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{/each}\n\n\t\t\t\t\t\t\t<!-- Draw isolated points as dots -->\n\t\t\t\t\t\t\t{#each isolated as point}\n\t\t\t\t\t\t\t\t<circle\n\t\t\t\t\t\t\t\t\tcx={xScale(point.timestamp)}\n\t\t\t\t\t\t\t\t\tcy={yScale(point.value)}\n\t\t\t\t\t\t\t\t\tr=\"3\"\n\t\t\t\t\t\t\t\t\tfill={s.color}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t{/each}\n\t\t\t\t</g>\n\t\t\t</g>\n\t\t</svg>\n\t{:else}\n\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\tNo data in this period\n\t\t</div>\n\t{/if}\n\n\t<!-- Drag selection overlay -->\n\t{#if isDragging && selectionWidth > 0}\n\t\t<div\n\t\t\tclass=\"absolute top-0 bottom-0 bg-primary/20 border-x border-primary/40 pointer-events-none\"\n\t\t\tstyle=\"left: {selectionLeft}px; width: {selectionWidth}px;\"\n\t\t>\n\t\t\t<div class=\"absolute -top-5 left-0 -translate-x-full text-[9px] font-medium text-primary whitespace-nowrap\">\n\t\t\t\t{formatTime(selectionStartTime())}\n\t\t\t</div>\n\t\t\t<div class=\"absolute -top-5 right-0 translate-x-full text-[9px] font-medium text-primary whitespace-nowrap\">\n\t\t\t\t{formatTime(selectionEndTime())}\n\t\t\t</div>\n\t\t</div>\n\t{/if}\n\n\t<!-- Hover tooltip -->\n\t{#if isHovering && !isDragging && isInChartArea()}\n\t\t{@const clampedX = Math.max(padding.left, Math.min(mouseX, width - padding.right))}\n\t\t{@const valueData = calculatedValue()}\n\n\t\t<!-- Vertical line -->\n\t\t<div\n\t\t\tclass=\"absolute top-0 bottom-0 w-px bg-muted-foreground/50 pointer-events-none\"\n\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t></div>\n\n\t\t<!-- Value tooltip -->\n\t\t{#if hasMultiServerData && calculatedServerValues().length > 0}\n\t\t\t<div\n\t\t\t\tclass=\"absolute top-0 -translate-x-1/2 -translate-y-full pointer-events-none\"\n\t\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t\t>\n\t\t\t\t<div class=\"bg-foreground text-background rounded px-2 py-1 text-xs font-medium whitespace-nowrap shadow-lg mb-1 flex flex-col gap-0.5\">\n\t\t\t\t\t{#each calculatedServerValues() as serverValue}\n\t\t\t\t\t\t{@const formatted = formatDisplayValue(serverValue.value)}\n\t\t\t\t\t\t<div class=\"flex items-center gap-1.5\">\n\t\t\t\t\t\t\t<span class=\"h-2 w-2 rounded-full flex-shrink-0\" style=\"background-color: {serverValue.color};\"></span>\n\t\t\t\t\t\t\t<span>{formatted.text}{#if unit && !formatted.includesUnit}<span class=\"text-background/70 ml-0.5\">{unit}</span>{/if}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/each}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{:else if valueData}\n\t\t\t{@const formatted = formatDisplayValue(valueData.value)}\n\t\t\t<div\n\t\t\t\tclass=\"absolute top-0 -translate-x-1/2 -translate-y-full pointer-events-none\"\n\t\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t\t>\n\t\t\t\t<div class=\"bg-foreground text-background rounded px-2 py-1 text-xs font-medium whitespace-nowrap shadow-lg mb-1\">\n\t\t\t\t\t{formatted.text}{#if unit && !formatted.includesUnit}<span class=\"text-background/70 ml-0.5\">{unit}</span>{/if}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Time label -->\n\t\t<div\n\t\t\tclass=\"absolute bottom-0 -translate-x-1/2 translate-y-full pointer-events-none\"\n\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t>\n\t\t\t<div class=\"bg-background border border-border rounded px-1.5 py-0.5 text-[10px] text-muted-foreground whitespace-nowrap shadow-sm mt-1\">\n\t\t\t\t{formatTime(calculatedTime())}\n\t\t\t</div>\n\t\t</div>\n\t{/if}\n\n\t<!-- Shadow line from other charts -->\n\t{#if shouldShowShadowLine}\n\t\t{@const shadowX = shadowLineX()}\n\t\t{#if shadowX >= padding.left && shadowX <= width - padding.right}\n\t\t\t<div\n\t\t\t\tclass=\"absolute top-0 bottom-0 w-px bg-muted-foreground/25 pointer-events-none\"\n\t\t\t\tstyle=\"left: {shadowX}px;\"\n\t\t\t></div>\n\t\t{/if}\n\t{/if}\n</div>\n","<script lang=\"ts\">\n\timport * as Table from '$lib/components/ui/table';\n\timport type { MetricTrendPoint } from '$lib/types/dashboard';\n\timport { formatMetricLabel } from '$lib/utils/metric-format';\n\n\ttype SeriesItem = {\n\t\tkey: string;\n\t\tdata: MetricTrendPoint[];\n\t};\n\n\tlet { series = [], unit = '' } = $props<{\n\t\tseries: SeriesItem[];\n\t\tunit?: string;\n\t}>();\n\n\tconst stats = $derived(() => {\n\t\tconst s = series[0];\n\t\tif (!s) return [];\n\t\tconst values = s.data.map((d: MetricTrendPoint) => d.value);\n\t\tif (values.length === 0) {\n\t\t\treturn [\n\t\t\t\t{ label: 'Latest', value: 0 },\n\t\t\t\t{ label: 'Min', value: 0 },\n\t\t\t\t{ label: 'Max', value: 0 },\n\t\t\t\t{ label: 'Avg', value: 0 }\n\t\t\t];\n\t\t}\n\t\tconst sum = values.reduce((a: number, b: number) => a + b, 0);\n\t\treturn [\n\t\t\t{ label: 'Latest', value: values[values.length - 1] },\n\t\t\t{ label: 'Min', value: Math.min(...values) },\n\t\t\t{ label: 'Max', value: Math.max(...values) },\n\t\t\t{ label: 'Avg', value: sum / values.length }\n\t\t];\n\t});\n\n\tfunction fmt(v: number): string {\n\t\tif (unit) return formatMetricLabel(v, unit);\n\t\tif (Number.isInteger(v)) return v.toString();\n\t\treturn v.toFixed(2);\n\t}\n</script>\n\n<div class=\"overflow-auto\">\n\t<Table.Root>\n\t\t<Table.Body>\n\t\t\t{#each stats() as stat}\n\t\t\t\t<Table.Row>\n\t\t\t\t\t<Table.Cell class=\"font-medium\">{stat.label}</Table.Cell>\n\t\t\t\t\t<Table.Cell class=\"text-right\">{fmt(stat.value)}</Table.Cell>\n\t\t\t\t</Table.Row>\n\t\t\t{/each}\n\t\t</Table.Body>\n\t</Table.Root>\n</div>\n","<script lang=\"ts\">\n\timport D3LineChart from './d3-line-chart.svelte';\n\timport D3HorizontalBarChart from './d3-horizontal-bar-chart.svelte';\n\timport WidgetTable from './widget-table.svelte';\n\timport { api } from '$lib/api';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport type { MetricTrendPoint, MetricQueryResponse } from '$lib/types/dashboard';\n\timport { formatMetricLabel } from '$lib/utils/metric-format';\n\n\ttype WidgetSource = {\n\t\ttype: 'metric';\n\t\tname: string;\n\t\ttagFilters?: Record<string, string>;\n\t\taggregation: string;\n\t\tgroupBy?: string;\n\t};\n\n\ttype WidgetConfig = {\n\t\tsources?: WidgetSource[];\n\t\tyAxisLabel?: string;\n\t\tshowLegend?: boolean;\n\t\tunit?: string;\n\t};\n\n\tlet {\n\t\twidget,\n\t\tfromDateUTC,\n\t\ttoDateUTC,\n\t\ttimeDomain = null,\n\t\tonRangeSelect,\n\t\tsharedHoverTime = null,\n\t\tisSourceChart = false,\n\t\tonHoverTimeChange\n\t} = $props<{\n\t\twidget: {\n\t\t\tid: number;\n\t\t\ttitle: string;\n\t\t\twidgetType: string;\n\t\t\tconfig: WidgetConfig;\n\t\t};\n\t\tfromDateUTC: string;\n\t\ttoDateUTC: string;\n\t\ttimeDomain: [Date, Date] | null;\n\t\tonRangeSelect?: (from: Date, to: Date) => void;\n\t\tsharedHoverTime?: Date | null;\n\t\tisSourceChart?: boolean;\n\t\tonHoverTimeChange?: (time: Date | null) => void;\n\t}>();\n\n\tlet series = $state<Array<{ key: string; data: MetricTrendPoint[]; color: string }>>([]);\n\tlet loading = $state(true);\n\tlet singleValue = $state<number | null>(null);\n\tlet resolvedUnit = $state('');\n\n\tconst colors = ['#3b82f6', '#ef4444', '#22c55e', '#f59e0b', '#8b5cf6', '#ec4899'];\n\n\tconst effectiveUnit = $derived(widget.config.unit ?? resolvedUnit);\n\n\tasync function loadData() {\n\t\tconst sources = widget.config.sources;\n\t\tif (!sources || sources.length === 0) {\n\t\t\tloading = false;\n\t\t\treturn;\n\t\t}\n\n\t\tloading = true;\n\t\ttry {\n\t\t\tconst newSeries: Array<{ key: string; data: MetricTrendPoint[]; color: string }> = [];\n\t\t\tlet colorIdx = 0;\n\n\t\t\tconst queries = sources.map((s: WidgetSource) => ({\n\t\t\t\tname: s.name,\n\t\t\t\taggregation: s.aggregation || 'avg',\n\t\t\t\ttagFilters: s.tagFilters,\n\t\t\t\tgroupBy: s.groupBy\n\t\t\t}));\n\n\t\t\tconst response: MetricQueryResponse = await api.post(\n\t\t\t\t'/metrics/query',\n\t\t\t\t{ queries, from: fromDateUTC, to: toDateUTC },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\tconst units = new Set<string>();\n\t\t\tfor (const result of response.results) {\n\t\t\t\tif (result.unit) units.add(result.unit);\n\t\t\t\tfor (const [key, points] of Object.entries(result.series)) {\n\t\t\t\t\tconst label = Object.keys(result.series).length > 1 ? `${result.name} (${key})` : result.name;\n\t\t\t\t\tnewSeries.push({\n\t\t\t\t\t\tkey: label,\n\t\t\t\t\t\tdata: points.map((p) => ({\n\t\t\t\t\t\t\ttimestamp: new Date(p.Timestamp),\n\t\t\t\t\t\t\tvalue: p.Value\n\t\t\t\t\t\t})),\n\t\t\t\t\t\tcolor: colors[colorIdx % colors.length]\n\t\t\t\t\t});\n\t\t\t\t\tcolorIdx++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresolvedUnit = units.size === 1 ? [...units][0] : '';\n\t\t\tseries = newSeries;\n\n\t\t\tif (widget.widgetType === 'single_value' && newSeries.length > 0 && newSeries[0].data.length > 0) {\n\t\t\t\tsingleValue = newSeries[0].data[newSeries[0].data.length - 1].value;\n\t\t\t}\n\t\t} catch {\n\t\t\t// keep empty\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\t$effect(() => {\n\t\tif (fromDateUTC && toDateUTC) {\n\t\t\tloadData();\n\t\t}\n\t});\n\n\tconst barData = $derived(\n\t\tseries.map((s) => ({\n\t\t\tendpoint: s.key,\n\t\t\tvalue: s.data.length > 0 ? s.data[s.data.length - 1].value : 0\n\t\t}))\n\t);\n</script>\n\n<div class=\"h-full w-full min-h-[200px]\">\n\t{#if loading}\n\t\t<div class=\"flex h-full items-center justify-center\">\n\t\t\t<LoadingCircle size=\"md\" />\n\t\t</div>\n\t{:else if widget.widgetType === 'single_value'}\n\t\t<div class=\"flex h-full flex-col items-center justify-center\">\n\t\t\t<span class=\"text-3xl font-bold\">\n\t\t\t\t{singleValue !== null ? formatMetricLabel(singleValue, effectiveUnit) : '-'}\n\t\t\t</span>\n\t\t</div>\n\t{:else if widget.widgetType === 'bar_chart'}\n\t\t{#if barData.length > 0}\n\t\t\t<D3HorizontalBarChart data={barData} height={200} unit={effectiveUnit} formatValue={(v) => formatMetricLabel(v, effectiveUnit)} />\n\t\t{:else}\n\t\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\tNo data\n\t\t\t</div>\n\t\t{/if}\n\t{:else if widget.widgetType === 'table'}\n\t\t{#if series.length > 0}\n\t\t\t<WidgetTable {series} unit={effectiveUnit} />\n\t\t{:else}\n\t\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\tNo data\n\t\t\t</div>\n\t\t{/if}\n\t{:else if widget.widgetType === 'area_chart'}\n\t\t{#if series.length > 0}\n\t\t\t<D3LineChart\n\t\t\t\t{series}\n\t\t\t\txDomain={timeDomain ?? undefined}\n\t\t\t\theight={200}\n\t\t\t\tpadding={{ top: 10, right: 4, bottom: 20, left: 45 }}\n\t\t\t\t{onRangeSelect}\n\t\t\t\tdata={series[0]?.data ?? []}\n\t\t\t\tareaFill={true}\n\t\t\t\tunit={effectiveUnit}\n\t\t\t\tformatValue={(v) => formatMetricLabel(v, effectiveUnit)}\n\t\t\t\t{sharedHoverTime}\n\t\t\t\t{isSourceChart}\n\t\t\t\t{onHoverTimeChange}\n\t\t\t/>\n\t\t{:else}\n\t\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\tNo data\n\t\t\t</div>\n\t\t{/if}\n\t{:else if series.length > 0}\n\t\t<D3LineChart\n\t\t\t{series}\n\t\t\txDomain={timeDomain ?? undefined}\n\t\t\theight={200}\n\t\t\tpadding={{ top: 10, right: 4, bottom: 20, left: 45 }}\n\t\t\t{onRangeSelect}\n\t\t\tdata={series[0]?.data ?? []}\n\t\t\tunit={effectiveUnit}\n\t\t\tformatValue={(v) => formatMetricLabel(v, effectiveUnit)}\n\t\t\t{sharedHoverTime}\n\t\t\t{isSourceChart}\n\t\t\t{onHoverTimeChange}\n\t\t/>\n\t{:else}\n\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\tNo data\n\t\t</div>\n\t{/if}\n</div>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","formatMetricValue","value","unit","formatMetricLabel","result","series","$.prop","$$props","xDomain","height","padding","data","servers","serverColorMap","areaFill","sharedHoverTime","isSourceChart","tz","getTimezone","containerRef","$.state","width","isHovering","mouseX","isDragging","dragStartX","dragEndX","$.user_effect","observer","entries","entry","$.set","$.get","chartWidth","$.derived","chartHeight","allData","s","xMin","min","d","xMax","max","yMin","minVal","yMax","maxVal","yPadding","yDomainMin","yDomainMax","xScale","scaleUtc","yScale","scaleLinear","yTicks","yAxisUnit","ticks","maxTick","formatYLabel","generatePath","seriesData","line","generateAreaPath","area","hasData","hasMultiServerData","isInChartArea","getTimeAtPosition","x","chartX","percentage","timeDiff","getPositionAtTime","time","getGapThreshold","pointData","intervals","a","b","getLineSegments","threshold","segments","currentSegment","i","getIsolatedPoints","isolated","hasGapBefore","hasGapAfter","getValueAtTime","targetMs","leftIdx","rightIdx","pointMs","leftPoint","rightPoint","gap","t","calculatedTime","calculatedValue","calculatedServerValues","results","server","valueData","shouldShowShadowLine","shadowLineX","formatDisplayValue","selectionLeft","selectionRight","selectionWidth","selectionStartTime","selectionEndTime","handleMouseMove","rect","handleMouseEnter","handleMouseLeave","handleMouseDown","handleMouseUp","startTime","endTime","formatTime","date","formatDateTime","handleKeydown","div","root","node","$.child","clipId","svg","root_1","defs","clipPath","rect_1","$.set_attribute","g","$.each","node_1","tick","line_1","root_2","$0","$1","$.append","node_2","text","root_3","text_1","$.reset","text_2","root_4","text_3","$$render","consequent","line_2","$.sibling","node_3","line_3","g_1","$.index","node_6","segment","path","root_9","consequent_1","consequent_2","node_8","path_1","root_11","consequent_3","node_10","point","circle","root_12","consequent_4","div_1","root_13","consequent_5","alternate","div_2","root_14","div_3","div_4","consequent_6","clampedX","div_5","$.first_child","fragment_5","node_13","div_6","root_16","div_7","serverValue","formatted","div_8","root_17","span","span_1","span_2","root_18","consequent_7","$.set_text","text_6","$.template_effect","$.set_style","div_9","root_20","div_10","span_3","root_21","consequent_9","text_8","consequent_10","consequent_8","alternate_1","div_11","div_12","consequent_11","shadowX","div_13","root_23","consequent_12","consequent_13","$$value","$.event","stats","values","sum","fmt","v","Table_Root","Table_Body","stat","Table_Row","Table_Cell","Table_Cell_1","timeDomain","$.proxy","loading","singleValue","resolvedUnit","colors","effectiveUnit","loadData","sources","newSeries","colorIdx","queries","response","api","projectsState","units","key","points","label","p","barData","LoadingCircle","D3HorizontalBarChart","root_7","WidgetTable","D3LineChart","root_15","alternate_2","alternate_3","alternate_4","alternate_5","alternate_6","alternate_7","alternate_8"],"mappings":"qrBAAA,kEA6CMA,EAAQ,EAAK,OAAU,CAAA,EAAK,oDAAoD,IAAM,OAAM,CAAI,EAAK,aAAY,GAAM,OAAU,CAAA,EAAK,qDAAqD,IAAM,OAAM,CAAI,EAAK,WAAW,CAAA,GAchOC,GAAIC,EAAAC,GAAA,CAAA,KAAA,YAAA,EAAA,IAAAC,EAAA,uBAA0CJ,8FAF/C,iBCzDA,kEA6CMA,EAAQ,EAAK,QAAU,EAAK,kXAcjCC,GAAIC,EAAAC,GAAA,CAAA,KAAA,MAAA,EAAA,IAAAC,EAAA,uBAAoCJ,8FAFzC,CCvDO,SAASK,GAAkBC,EAAeC,EAA4B,CAE5E,OAAIA,IAAS,IACLF,GAAkBC,EAAQ,IAAK,GAAG,EAItCC,IAAS,KACLF,GAAkBC,EAA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static/frontend/_app/immutable/chunks/BApWZWbV.js
similarity index 70%
rename from backend/static/frontend/_app/immutable/chunks/BvDoo-7I.js
rename to backend/static/frontend/_app/immutable/chunks/BApWZWbV.js
index c9c4b9a4..3b1a5502 100644
--- a/backend/static/frontend/_app/immutable/chunks/BvDoo-7I.js
+++ b/backend/static/frontend/_app/immutable/chunks/BApWZWbV.js
@@ -1,5 +1,5 @@
-import{f as P}from"./D6S6XYVy.js";const H="[A-Za-z$_][0-9A-Za-z$_]*",q=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Z=["true","false","null","undefined","NaN","Infinity"],F=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],G=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],z=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],W=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Q=[].concat(z,F,G);function V(e){const t=e.regex,n=(p,{after:R})=>{const I="</"+p[0].slice(1);return p.input.indexOf(I,R)!==-1},a=H,r={begin:"<>",end:"</>"},w=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(p,R)=>{const I=p[0].length+p.index,U=p.input[I];if(U==="<"||U===","){R.ignoreMatch();return}U===">"&&(n(p,{after:I})||R.ignoreMatch());let k;const B=p.input.substring(I);if(k=B.match(/^\s*=/)){R.ignoreMatch();return}if((k=B.match(/^\s+extends\s+/))&&k.index===0){R.ignoreMatch();return}}},o={$pattern:H,keyword:q,literal:Z,built_in:Q,"variable.language":W},T="[0-9](_?[0-9])*",E=`\\.(${T})`,A="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",N={className:"number",variants:[{begin:`(\\b(${A})((${E})|\\.)?|(${E}))[eE][+-]?(${T})\\b`},{begin:`\\b(${A})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},i={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,i],subLanguage:"xml"}},u={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,i],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,i],subLanguage:"graphql"}},d={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,i]},b={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},C=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,u,m,d,{match:/\$\d+/},N];i.contains=C.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(C)});const S=[].concat(b,i.contains),_=S.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(S)}]),f={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:_},x={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,t.concat(a,"(",t.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},v={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...F,...G]}},O={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[f],illegal:/%/},M={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(p){return t.concat("(?!",p.join("|"),")")}const D={match:t.concat(/\b/,L([...z,"super","import"].map(p=>`${p}\\s*\\(`)),a,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},g={begin:t.concat(/\./,t.lookahead(t.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},s={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},f]},h="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",K={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(h)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[f]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:_,CLASS_REFERENCE:v},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),O,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,u,m,d,b,{match:/\$\d+/},N,v,{scope:"attr",match:a+t.lookahead(":"),relevance:0},K,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[b,e.REGEXP_MODE,{className:"function",begin:h,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:_}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:w},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[f,e.inherit(e.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},g,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[f]},D,M,x,s,{match:/\$[(.]/}]}}const te={name:"javascript",register:V};function Y(e){const t=e.regex,n={},a={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},w=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),c={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,r]};r.contains.push(o);const T={match:/\\"/},E={className:"string",begin:/'/,end:/'/},A={match:/\\'/},N={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},i=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],l=e.SHEBANG({binary:`(${i.join("|")})`,relevance:10}),u={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},m=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],d=["true","false"],y={match:/(\/[a-z._-]+)+/},b=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],C=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],S=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],_=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:m,literal:d,built_in:[...b,...C,"set","shopt",...S,..._]},contains:[l,e.SHEBANG(),u,N,w,c,y,o,T,E,A,n]}}const ae={name:"bash",register:Y};function J(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,a=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),r=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),w=t.concat(/[A-Z]+/,n),c={scope:"variable",match:"\\$+"+a},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},T={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},E=e.inherit(e.APOS_STRING_MODE,{illegal:null}),A=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(T)}),N={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(T),"on:begin":(g,s)=>{s.data._beginMatch=g[1]||g[2]},"on:end":(g,s)=>{s.data._beginMatch!==g[1]&&s.ignoreMatch()}},i=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),l=`[
-]`,u={scope:"string",variants:[A,E,N,i]},m={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},d=["false","null","true"],y=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],S={keyword:y,literal:(g=>{const s=[];return g.forEach(h=>{s.push(h),h.toLowerCase()===h?s.push(h.toUpperCase()):s.push(h.toLowerCase())}),s})(d),built_in:b},_=g=>g.map(s=>s.replace(/\|\d+$/,"")),f={variants:[{match:[/new/,t.concat(l,"+"),t.concat("(?!",_(b).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},x=t.concat(a,"\\b(?!\\()"),v={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,t.concat(/::/,t.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[r,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},O={scope:"attr",match:t.concat(a,t.lookahead(":"),t.lookahead(/(?!::)/))},$={relevance:0,begin:/\(/,end:/\)/,keywords:S,contains:[O,c,v,e.C_BLOCK_COMMENT_MODE,u,m,f]},M={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",_(y).join("\\b|"),"|",_(b).join("\\b|"),"\\b)"),a,t.concat(l,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[$]};$.contains.push(M);const L=[O,v,e.C_BLOCK_COMMENT_MODE,u,m,f],D={begin:t.concat(/#\[\s*\\?/,t.either(r,w)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:d,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:d,keyword:["new","array"]},contains:["self",...L]},...L,{scope:"meta",variants:[{match:r},{match:w}]}]};return{case_insensitive:!1,keywords:S,contains:[D,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},c,M,v,{match:[/const/,/\s/,a],scope:{1:"keyword",3:"variable.constant"}},f,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:S,contains:["self",D,c,v,e.C_BLOCK_COMMENT_MODE,u,m]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},u,m]}}const ne={name:"php",register:J};function X(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},w={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},c={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},o=e.inherit(c,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),i={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},l={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},u={begin:/\{/,end:/\}/,contains:[l],illegal:"\\n",relevance:0},m={begin:"\\[",end:"\\]",contains:[l],illegal:"\\n",relevance:0},d=[a,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},i,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},u,m,w,c],y=[...d];return y.pop(),y.push(o),l.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:d}}const re={name:"yaml",register:X};function ce(e){const t="go get go.tracewayapp.com";switch(e){case"gin":return`${t} && go get go.tracewayapp.com/tracewaygin`;case"chi":return`${t} && go get go.tracewayapp.com/tracewaychi`;case"fiber":return`${t} && go get go.tracewayapp.com/tracewayfiber`;case"fasthttp":return`${t} && go get go.tracewayapp.com/tracewayfasthttp`;case"stdlib":return`${t} && go get go.tracewayapp.com/tracewayhttp`;case"react":return"npm install @tracewayapp/react";case"svelte":return"npm install @tracewayapp/svelte";case"vuejs":return"npm install @tracewayapp/vue";case"nextjs":return"npm install @tracewayapp/react";case"nestjs":return"npm install @tracewayapp/nest";case"express":return"npm install @tracewayapp/express";case"remix":return"npm install @tracewayapp/remix";case"jquery":return"npm install @tracewayapp/jquery";case"react-native":return"npm install @tracewayapp/react-native";case"hono":return"";case"symfony":return"composer require traceway/opentelemetry-symfony open-telemetry/exporter-otlp php-http/guzzle7-adapter";case"cloudflare":return"";case"opentelemetry":return"";case"flutter":return"flutter pub add traceway";case"android":return'implementation("com.tracewayapp:traceway:1.0.0")';default:return t}}function oe(e,t,n){const a=t?`${t}@${n}/api/report`:`YOUR_TOKEN@${n}/api/report`;switch(e){case"gin":return`package main
+import{f as k}from"./qCQ2nSvO.js";const H="[A-Za-z$_][0-9A-Za-z$_]*",q=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Z=["true","false","null","undefined","NaN","Infinity"],F=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],G=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],z=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],V=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],W=[].concat(z,F,G);function Q(e){const t=e.regex,r=(p,{after:v})=>{const C="</"+p[0].slice(1);return p.input.indexOf(C,v)!==-1},a=H,n={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(p,v)=>{const C=p[0].length+p.index,P=p.input[C];if(P==="<"||P===","){v.ignoreMatch();return}P===">"&&(r(p,{after:C})||v.ignoreMatch());let U;const B=p.input.substring(C);if(U=B.match(/^\s*=/)){v.ignoreMatch();return}if((U=B.match(/^\s+extends\s+/))&&U.index===0){v.ignoreMatch();return}}},o={$pattern:H,keyword:q,literal:Z,built_in:W,"variable.language":V},w="[0-9](_?[0-9])*",g=`\\.(${w})`,A="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",R={className:"number",variants:[{begin:`(\\b(${A})((${g})|\\.)?|(${g}))[eE][+-]?(${w})\\b`},{begin:`\\b(${A})\\b((${g})\\b|\\.)?|(${g})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},i={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,i],subLanguage:"xml"}},u={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,i],subLanguage:"css"}},d={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,i],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,i]},b={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},O=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,u,d,m,{match:/\$\d+/},R];i.contains=O.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(O)});const h=[].concat(b,i.contains),_=h.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(h)}]),T={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:_},I={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,t.concat(a,"(",t.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},N={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...F,...G]}},x={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[T],illegal:/%/},M={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(p){return t.concat("(?!",p.join("|"),")")}const D={match:t.concat(/\b/,L([...z,"super","import"].map(p=>`${p}\\s*\\(`)),a,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},E={begin:t.concat(/\./,t.lookahead(t.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},s={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},T]},S="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",K={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(S)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[T]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:_,CLASS_REFERENCE:N},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),x,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,u,d,m,b,{match:/\$\d+/},R,N,{scope:"attr",match:a+t.lookahead(":"),relevance:0},K,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[b,e.REGEXP_MODE,{className:"function",begin:S,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:_}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:n.begin,end:n.end},{match:f},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[T,e.inherit(e.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},E,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[T]},D,M,I,s,{match:/\$[(.]/}]}}const te={name:"javascript",register:Q};function X(e){const t=e.regex,r={},a={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[r]}]};Object.assign(r,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const n={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},f=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),c={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,n]};n.contains.push(o);const w={match:/\\"/},g={className:"string",begin:/'/,end:/'/},A={match:/\\'/},R={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,r]},i=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],l=e.SHEBANG({binary:`(${i.join("|")})`,relevance:10}),u={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},d=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],m=["true","false"],y={match:/(\/[a-z._-]+)+/},b=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],O=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],h=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],_=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:d,literal:m,built_in:[...b,...O,"set","shopt",...h,..._]},contains:[l,e.SHEBANG(),u,R,f,c,y,o,w,g,A,r]}}const ae={name:"bash",register:X};function Y(e){const t=e.regex,r=/(?![A-Za-z0-9])(?![$])/,a=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,r),n=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,r),f=t.concat(/[A-Z]+/,r),c={scope:"variable",match:"\\$+"+a},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},w={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},g=e.inherit(e.APOS_STRING_MODE,{illegal:null}),A=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(w)}),R={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(w),"on:begin":(E,s)=>{s.data._beginMatch=E[1]||E[2]},"on:end":(E,s)=>{s.data._beginMatch!==E[1]&&s.ignoreMatch()}},i=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),l=`[
+]`,u={scope:"string",variants:[A,g,R,i]},d={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},m=["false","null","true"],y=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],h={keyword:y,literal:(E=>{const s=[];return E.forEach(S=>{s.push(S),S.toLowerCase()===S?s.push(S.toUpperCase()):s.push(S.toLowerCase())}),s})(m),built_in:b},_=E=>E.map(s=>s.replace(/\|\d+$/,"")),T={variants:[{match:[/new/,t.concat(l,"+"),t.concat("(?!",_(b).join("\\b|"),"\\b)"),n],scope:{1:"keyword",4:"title.class"}}]},I=t.concat(a,"\\b(?!\\()"),N={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),I],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[n,t.concat(/::/,t.lookahead(/(?!class\b)/)),I],scope:{1:"title.class",3:"variable.constant"}},{match:[n,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[n,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},x={scope:"attr",match:t.concat(a,t.lookahead(":"),t.lookahead(/(?!::)/))},$={relevance:0,begin:/\(/,end:/\)/,keywords:h,contains:[x,c,N,e.C_BLOCK_COMMENT_MODE,u,d,T]},M={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",_(y).join("\\b|"),"|",_(b).join("\\b|"),"\\b)"),a,t.concat(l,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[$]};$.contains.push(M);const L=[x,N,e.C_BLOCK_COMMENT_MODE,u,d,T],D={begin:t.concat(/#\[\s*\\?/,t.either(n,f)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:m,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:m,keyword:["new","array"]},contains:["self",...L]},...L,{scope:"meta",variants:[{match:n},{match:f}]}]};return{case_insensitive:!1,keywords:h,contains:[D,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},c,M,N,{match:[/const/,/\s/,a],scope:{1:"keyword",3:"variable.constant"}},T,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:h,contains:["self",D,c,N,e.C_BLOCK_COMMENT_MODE,u,d]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},u,d]}}const re={name:"php",register:Y};function j(e){const t="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",a={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},n={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},f={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},c={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,n]},o=e.inherit(c,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),i={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},l={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},u={begin:/\{/,end:/\}/,contains:[l],illegal:"\\n",relevance:0},d={begin:"\\[",end:"\\]",contains:[l],illegal:"\\n",relevance:0},m=[a,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},i,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},u,d,f,c],y=[...m];return y.pop(),y.push(o),l.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}const ne={name:"yaml",register:j};function ce(e){const t="go get go.tracewayapp.com";switch(e){case"gin":return`${t} && go get go.tracewayapp.com/tracewaygin`;case"chi":return`${t} && go get go.tracewayapp.com/tracewaychi`;case"fiber":return`${t} && go get go.tracewayapp.com/tracewayfiber`;case"fasthttp":return`${t} && go get go.tracewayapp.com/tracewayfasthttp`;case"stdlib":return`${t} && go get go.tracewayapp.com/tracewayhttp`;case"react":return"npm install @tracewayapp/react";case"svelte":return"npm install @tracewayapp/svelte";case"vuejs":return"npm install @tracewayapp/vue";case"nextjs":return"npm install @tracewayapp/react";case"nestjs":return"npm install @tracewayapp/nest";case"express":return"npm install @tracewayapp/express";case"remix":return"npm install @tracewayapp/remix";case"jquery":return"npm install @tracewayapp/jquery";case"react-native":return"npm install @tracewayapp/react-native";case"hono":return"";case"symfony":return"composer require traceway/opentelemetry-symfony open-telemetry/exporter-otlp php-http/guzzle7-adapter";case"laravel":return"composer require keepsuit/laravel-opentelemetry open-telemetry/exporter-otlp php-http/guzzle7-adapter";case"cloudflare":return"";case"opentelemetry":return"";case"flutter":return"flutter pub add traceway";case"android":return'implementation("com.tracewayapp:traceway:1.0.0")';default:return t}}function oe(e,t,r){const a=t?`${t}@${r}/api/report`:`YOUR_TOKEN@${r}/api/report`;switch(e){case"gin":return`package main
import (
"github.com/gin-gonic/gin"
@@ -214,7 +214,25 @@ $kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', (bool) ($_SERVER['APP_DEBUG']
$request = \\Symfony\\Component\\HttpFoundation\\Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
-$kernel->terminate($request, $response);`;case"hono":return"";case"cloudflare":return"";case"opentelemetry":return"";case"flutter":return`import 'package:flutter/material.dart';
+$kernel->terminate($request, $response);`;case"laravel":return`<?php
+// .env — point the OTLP exporter at Traceway
+//
+// OTEL_SERVICE_NAME=my-laravel-app
+// OTEL_TRACES_EXPORTER=otlp
+// OTEL_METRICS_EXPORTER=otlp
+// OTEL_LOGS_EXPORTER=otlp
+// OTEL_EXPORTER_OTLP_PROTOCOL=http/json
+// OTEL_EXPORTER_OTLP_ENDPOINT=${r}/api/otel
+// OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer ${t||"YOUR_TOKEN"}"
+//
+// Optional: send Laravel logs to Traceway via the auto-injected 'otlp' channel
+// LOG_CHANNEL=otlp
+
+// That's it — keepsuit/laravel-opentelemetry's service provider auto-registers
+// TraceRequestMiddleware as a global middleware, so every HTTP request, DB query,
+// queued job, Redis call, cache op, view render and outbound Http:: call is
+// traced automatically. Open config/opentelemetry.php to tune which
+// instrumentations are enabled.`;case"hono":return"";case"cloudflare":return"";case"opentelemetry":return"";case"flutter":return`import 'package:flutter/material.dart';
import 'package:traceway/traceway.dart';
void main() {
@@ -265,12 +283,18 @@ class TestController
{
throw new \\RuntimeException("Test error from Traceway integration");
}
-}`:e==="flutter"?`// Trigger a test error
+}`:e==="laravel"?`<?php
+// routes/web.php
+use Illuminate\\Support\\Facades\\Route;
+
+Route::get('/testing', function () {
+ throw new \\RuntimeException('Test error from Traceway integration');
+});`:e==="flutter"?`// Trigger a test error
throw StateError('Test error from Traceway integration');`:e==="android"?`// Trigger a test error
-throw RuntimeException("Test error from Traceway integration")`:e&&P(e)?`// Trigger a test error
+throw RuntimeException("Test error from Traceway integration")`:e&&k(e)?`// Trigger a test error
throw new Error("Test error from Traceway integration");`:`r.GET("/testing", func(c *gin.Context) {
panic("Test error from Traceway integration")
-})`}function ie(e){if(e==="symfony")return"";if(e==="flutter")return`import 'package:traceway/traceway.dart';
+})`}function ie(e){if(e==="symfony"||e==="laravel")return"";if(e==="flutter")return`import 'package:traceway/traceway.dart';
TracewayClient.instance?.captureException(
Exception('Test error'),
@@ -281,7 +305,7 @@ try {
riskyOperation()
} catch (e: Throwable) {
Traceway.captureException(e)
-}`;if(e&&P(e))switch(e){case"react":return`import { useTraceway } from "@tracewayapp/react";
+}`;if(e&&k(e))switch(e){case"react":return`import { useTraceway } from "@tracewayapp/react";
// In a component using the hook
const { captureException } = useTraceway();
@@ -302,8 +326,8 @@ captureException(new Error("Test error"));`;case"react-native":return`import { u
// In a component using the hook
const { captureException } = useTraceway();
-captureException(new Error("Test error"));`;default:return`import { captureException } from "@tracewayapp/${j(e)}";
+captureException(new Error("Test error"));`;default:return`import { captureException } from "@tracewayapp/${J(e)}";
captureException(new Error("Test error"));`}return`r.GET("/testing", func(c *gin.Context) {
c.AbortWithError(500, traceway.NewStackTraceErrorf("testing"))
-})`}function j(e){switch(e){case"react":return"react";case"svelte":return"svelte";case"vuejs":return"vue";case"nextjs":return"next";case"nestjs":return"nest";case"express":return"express";case"remix":return"remix";case"jquery":return"jquery";case"react-native":return"react-native";default:return"react"}}function pe(e){return{gin:"Gin",fiber:"Fiber",chi:"Chi",fasthttp:"FastHTTP",stdlib:"Standard Library (net/http)",custom:"Custom Integration",react:"React",svelte:"Svelte",vuejs:"Vue.js",nextjs:"Next.js",nestjs:"NestJS",express:"Express",remix:"Remix",jquery:"jQuery","react-native":"React Native",hono:"Hono",cloudflare:"Cloudflare",opentelemetry:"OpenTelemetry",symfony:"Symfony",flutter:"Flutter",android:"Android"}[e]||e}function le(e){return e==="symfony"?"php":e==="opentelemetry"?"go":e==="hono"||e==="cloudflare"||e==="flutter"||e==="android"||P(e)?"javascript":"go"}export{oe as a,ae as b,ce as c,se as d,ie as e,le as f,pe as g,te as j,ne as p,re as y};
+})`}function J(e){switch(e){case"react":return"react";case"svelte":return"svelte";case"vuejs":return"vue";case"nextjs":return"next";case"nestjs":return"nest";case"express":return"express";case"remix":return"remix";case"jquery":return"jquery";case"react-native":return"react-native";default:return"react"}}function pe(e){return{gin:"Gin",fiber:"Fiber",chi:"Chi",fasthttp:"FastHTTP",stdlib:"Standard Library (net/http)",custom:"Custom Integration",react:"React",svelte:"Svelte",vuejs:"Vue.js",nextjs:"Next.js",nestjs:"NestJS",express:"Express",remix:"Remix",jquery:"jQuery","react-native":"React Native",hono:"Hono",cloudflare:"Cloudflare",opentelemetry:"OpenTelemetry",symfony:"Symfony",laravel:"Laravel",flutter:"Flutter",android:"Android"}[e]||e}function le(e){return e==="symfony"||e==="laravel"?"php":e==="opentelemetry"?"go":e==="hono"||e==="cloudflare"||e==="flutter"||e==="android"||k(e)?"javascript":"go"}export{oe as a,ae as b,ce as c,se as d,ie as e,le as f,pe as g,te as j,re as p,ne as y};
diff --git a/backend/static/frontend/_app/immutable/chunks/BvDoo-7I.js.map b/backend/static/frontend/_app/immutable/chunks/BApWZWbV.js.map
similarity index 57%
rename from backend/static/frontend/_app/immutable/chunks/BvDoo-7I.js.map
rename to backend/static/frontend/_app/immutable/chunks/BApWZWbV.js.map
index 10b53006..7136bdd2 100644
--- a/backend/static/frontend/_app/immutable/chunks/BvDoo-7I.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/BApWZWbV.js.map
@@ -1 +1 @@
-{"version":3,"file":"BvDoo-7I.js","sources":["../../../../../../node_modules/highlight.js/es/languages/javascript.js","../../../../../../node_modules/svelte-highlight/languages/javascript.js","../../../../../../node_modules/highlight.js/es/languages/bash.js","../../../../../../node_modules/svelte-highlight/languages/bash.js","../../../../../../node_modules/highlight.js/es/languages/php.js","../../../../../../node_modules/svelte-highlight/languages/php.js","../../../../../../node_modules/highlight.js/es/languages/yaml.js","../../../../../../node_modules/svelte-highlight/languages/yaml.js","../../../../../../src/lib/utils/framework-code.ts"],"sourcesContent":["const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';\nconst KEYWORDS = [\n \"as\", // for exports\n \"in\",\n \"of\",\n \"if\",\n \"for\",\n \"while\",\n \"finally\",\n \"var\",\n \"new\",\n \"function\",\n \"do\",\n \"return\",\n \"void\",\n \"else\",\n \"break\",\n \"catch\",\n \"instanceof\",\n \"with\",\n \"throw\",\n \"case\",\n \"default\",\n \"try\",\n \"switch\",\n \"continue\",\n \"typeof\",\n \"delete\",\n \"let\",\n \"yield\",\n \"const\",\n \"class\",\n // JS handles these with a special rule\n // \"get\",\n // \"set\",\n \"debugger\",\n \"async\",\n \"await\",\n \"static\",\n \"import\",\n \"from\",\n \"export\",\n \"extends\",\n // It's reached stage 3, which is \"recommended for implementation\":\n \"using\"\n];\nconst LITERALS = [\n \"true\",\n \"false\",\n \"null\",\n \"undefined\",\n \"NaN\",\n \"Infinity\"\n];\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects\nconst TYPES = [\n // Fundamental objects\n \"Object\",\n \"Function\",\n \"Boolean\",\n \"Symbol\",\n // numbers and dates\n \"Math\",\n \"Date\",\n \"Number\",\n \"BigInt\",\n // text\n \"String\",\n \"RegExp\",\n // Indexed collections\n \"Array\",\n \"Float32Array\",\n \"Float64Array\",\n \"Int8Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"Int16Array\",\n \"Int32Array\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"BigInt64Array\",\n \"BigUint64Array\",\n // Keyed collections\n \"Set\",\n \"Map\",\n \"WeakSet\",\n \"WeakMap\",\n // Structured data\n \"ArrayBuffer\",\n \"SharedArrayBuffer\",\n \"Atomics\",\n \"DataView\",\n \"JSON\",\n // Control abstraction objects\n \"Promise\",\n \"Generator\",\n \"GeneratorFunction\",\n \"AsyncFunction\",\n // Reflection\n \"Reflect\",\n \"Proxy\",\n // Internationalization\n \"Intl\",\n // WebAssembly\n \"WebAssembly\"\n];\n\nconst ERROR_TYPES = [\n \"Error\",\n \"EvalError\",\n \"InternalError\",\n \"RangeError\",\n \"ReferenceError\",\n \"SyntaxError\",\n \"TypeError\",\n \"URIError\"\n];\n\nconst BUILT_IN_GLOBALS = [\n \"setInterval\",\n \"setTimeout\",\n \"clearInterval\",\n \"clearTimeout\",\n\n \"require\",\n \"exports\",\n\n \"eval\",\n \"isFinite\",\n \"isNaN\",\n \"parseFloat\",\n \"parseInt\",\n \"decodeURI\",\n \"decodeURIComponent\",\n \"encodeURI\",\n \"encodeURIComponent\",\n \"escape\",\n \"unescape\"\n];\n\nconst BUILT_IN_VARIABLES = [\n \"arguments\",\n \"this\",\n \"super\",\n \"console\",\n \"window\",\n \"document\",\n \"localStorage\",\n \"sessionStorage\",\n \"module\",\n \"global\" // Node.js\n];\n\nconst BUILT_INS = [].concat(\n BUILT_IN_GLOBALS,\n TYPES,\n ERROR_TYPES\n);\n\n/*\nLanguage: JavaScript\nDescription: JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions.\nCategory: common, scripting, web\nWebsite: https://developer.mozilla.org/en-US/docs/Web/JavaScript\n*/\n\n\n/** @type LanguageFn */\nfunction javascript(hljs) {\n const regex = hljs.regex;\n /**\n * Takes a string like \"<Booger\" and checks to see\n * if we can find a matching \"</Booger\" later in the\n * content.\n * @param {RegExpMatchArray} match\n * @param {{after:number}} param1\n */\n const hasClosingTag = (match, { after }) => {\n const tag = \"</\" + match[0].slice(1);\n const pos = match.input.indexOf(tag, after);\n return pos !== -1;\n };\n\n const IDENT_RE$1 = IDENT_RE;\n const FRAGMENT = {\n begin: '<>',\n end: '</>'\n };\n // to avoid some special cases inside isTrulyOpeningTag\n const XML_SELF_CLOSING = /<[A-Za-z0-9\\\\._:-]+\\s*\\/>/;\n const XML_TAG = {\n begin: /<[A-Za-z0-9\\\\._:-]+/,\n end: /\\/[A-Za-z0-9\\\\._:-]+>|\\/>/,\n /**\n * @param {RegExpMatchArray} match\n * @param {CallbackResponse} response\n */\n isTrulyOpeningTag: (match, response) => {\n const afterMatchIndex = match[0].length + match.index;\n const nextChar = match.input[afterMatchIndex];\n if (\n // HTML should not include another raw `<` inside a tag\n // nested type?\n // `<Array<Array<number>>`, etc.\n nextChar === \"<\" ||\n // the , gives away that this is not HTML\n // `<T, A extends keyof T, V>`\n nextChar === \",\"\n ) {\n response.ignoreMatch();\n return;\n }\n\n // `<something>`\n // Quite possibly a tag, lets look for a matching closing tag...\n if (nextChar === \">\") {\n // if we cannot find a matching closing tag, then we\n // will ignore it\n if (!hasClosingTag(match, { after: afterMatchIndex })) {\n response.ignoreMatch();\n }\n }\n\n // `<blah />` (self-closing)\n // handled by simpleSelfClosing rule\n\n let m;\n const afterMatch = match.input.substring(afterMatchIndex);\n\n // some more template typing stuff\n // <T = any>(key?: string) => Modify<\n if ((m = afterMatch.match(/^\\s*=/))) {\n response.ignoreMatch();\n return;\n }\n\n // `<From extends string>`\n // technically this could be HTML, but it smells like a type\n // NOTE: This is ugh, but added specifically for https://github.com/highlightjs/highlight.js/issues/3276\n if ((m = afterMatch.match(/^\\s+extends\\s+/))) {\n if (m.index === 0) {\n response.ignoreMatch();\n // eslint-disable-next-line no-useless-return\n return;\n }\n }\n }\n };\n const KEYWORDS$1 = {\n $pattern: IDENT_RE,\n keyword: KEYWORDS,\n literal: LITERALS,\n built_in: BUILT_INS,\n \"variable.language\": BUILT_IN_VARIABLES\n };\n\n // https://tc39.es/ecma262/#sec-literals-numeric-literals\n const decimalDigits = '[0-9](_?[0-9])*';\n const frac = `\\\\.(${decimalDigits})`;\n // DecimalIntegerLiteral, including Annex B NonOctalDecimalIntegerLiteral\n // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals\n const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`;\n const NUMBER = {\n className: 'number',\n variants: [\n // DecimalLiteral\n { begin: `(\\\\b(${decimalInteger})((${frac})|\\\\.)?|(${frac}))` +\n `[eE][+-]?(${decimalDigits})\\\\b` },\n { begin: `\\\\b(${decimalInteger})\\\\b((${frac})\\\\b|\\\\.)?|(${frac})\\\\b` },\n\n // DecimalBigIntegerLiteral\n { begin: `\\\\b(0|[1-9](_?[0-9])*)n\\\\b` },\n\n // NonDecimalIntegerLiteral\n { begin: \"\\\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\\\b\" },\n { begin: \"\\\\b0[bB][0-1](_?[0-1])*n?\\\\b\" },\n { begin: \"\\\\b0[oO][0-7](_?[0-7])*n?\\\\b\" },\n\n // LegacyOctalIntegerLiteral (does not include underscore separators)\n // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals\n { begin: \"\\\\b0[0-7]+n?\\\\b\" },\n ],\n relevance: 0\n };\n\n const SUBST = {\n className: 'subst',\n begin: '\\\\$\\\\{',\n end: '\\\\}',\n keywords: KEYWORDS$1,\n contains: [] // defined later\n };\n const HTML_TEMPLATE = {\n begin: '\\.?html`',\n end: '',\n starts: {\n end: '`',\n returnEnd: false,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ],\n subLanguage: 'xml'\n }\n };\n const CSS_TEMPLATE = {\n begin: '\\.?css`',\n end: '',\n starts: {\n end: '`',\n returnEnd: false,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ],\n subLanguage: 'css'\n }\n };\n const GRAPHQL_TEMPLATE = {\n begin: '\\.?gql`',\n end: '',\n starts: {\n end: '`',\n returnEnd: false,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ],\n subLanguage: 'graphql'\n }\n };\n const TEMPLATE_STRING = {\n className: 'string',\n begin: '`',\n end: '`',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ]\n };\n const JSDOC_COMMENT = hljs.COMMENT(\n /\\/\\*\\*(?!\\/)/,\n '\\\\*/',\n {\n relevance: 0,\n contains: [\n {\n begin: '(?=@[A-Za-z]+)',\n relevance: 0,\n contains: [\n {\n className: 'doctag',\n begin: '@[A-Za-z]+'\n },\n {\n className: 'type',\n begin: '\\\\{',\n end: '\\\\}',\n excludeEnd: true,\n excludeBegin: true,\n relevance: 0\n },\n {\n className: 'variable',\n begin: IDENT_RE$1 + '(?=\\\\s*(-)|$)',\n endsParent: true,\n relevance: 0\n },\n // eat spaces (not newlines) so we can find\n // types or variables\n {\n begin: /(?=[^\\n])\\s/,\n relevance: 0\n }\n ]\n }\n ]\n }\n );\n const COMMENT = {\n className: \"comment\",\n variants: [\n JSDOC_COMMENT,\n hljs.C_BLOCK_COMMENT_MODE,\n hljs.C_LINE_COMMENT_MODE\n ]\n };\n const SUBST_INTERNALS = [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n HTML_TEMPLATE,\n CSS_TEMPLATE,\n GRAPHQL_TEMPLATE,\n TEMPLATE_STRING,\n // Skip numbers when they are part of a variable name\n { match: /\\$\\d+/ },\n NUMBER,\n // This is intentional:\n // See https://github.com/highlightjs/highlight.js/issues/3288\n // hljs.REGEXP_MODE\n ];\n SUBST.contains = SUBST_INTERNALS\n .concat({\n // we need to pair up {} inside our subst to prevent\n // it from ending too early by matching another }\n begin: /\\{/,\n end: /\\}/,\n keywords: KEYWORDS$1,\n contains: [\n \"self\"\n ].concat(SUBST_INTERNALS)\n });\n const SUBST_AND_COMMENTS = [].concat(COMMENT, SUBST.contains);\n const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([\n // eat recursive parens in sub expressions\n {\n begin: /(\\s*)\\(/,\n end: /\\)/,\n keywords: KEYWORDS$1,\n contains: [\"self\"].concat(SUBST_AND_COMMENTS)\n }\n ]);\n const PARAMS = {\n className: 'params',\n // convert this to negative lookbehind in v12\n begin: /(\\s*)\\(/, // to match the parms with\n end: /\\)/,\n excludeBegin: true,\n excludeEnd: true,\n keywords: KEYWORDS$1,\n contains: PARAMS_CONTAINS\n };\n\n // ES6 classes\n const CLASS_OR_EXTENDS = {\n variants: [\n // class Car extends vehicle\n {\n match: [\n /class/,\n /\\s+/,\n IDENT_RE$1,\n /\\s+/,\n /extends/,\n /\\s+/,\n regex.concat(IDENT_RE$1, \"(\", regex.concat(/\\./, IDENT_RE$1), \")*\")\n ],\n scope: {\n 1: \"keyword\",\n 3: \"title.class\",\n 5: \"keyword\",\n 7: \"title.class.inherited\"\n }\n },\n // class Car\n {\n match: [\n /class/,\n /\\s+/,\n IDENT_RE$1\n ],\n scope: {\n 1: \"keyword\",\n 3: \"title.class\"\n }\n },\n\n ]\n };\n\n const CLASS_REFERENCE = {\n relevance: 0,\n match:\n regex.either(\n // Hard coded exceptions\n /\\bJSON/,\n // Float32Array, OutT\n /\\b[A-Z][a-z]+([A-Z][a-z]*|\\d)*/,\n // CSSFactory, CSSFactoryT\n /\\b[A-Z]{2,}([A-Z][a-z]+|\\d)+([A-Z][a-z]*)*/,\n // FPs, FPsT\n /\\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\\d)*([A-Z][a-z]*)*/,\n // P\n // single letters are not highlighted\n // BLAH\n // this will be flagged as a UPPER_CASE_CONSTANT instead\n ),\n className: \"title.class\",\n keywords: {\n _: [\n // se we still get relevance credit for JS library classes\n ...TYPES,\n ...ERROR_TYPES\n ]\n }\n };\n\n const USE_STRICT = {\n label: \"use_strict\",\n className: 'meta',\n relevance: 10,\n begin: /^\\s*['\"]use (strict|asm)['\"]/\n };\n\n const FUNCTION_DEFINITION = {\n variants: [\n {\n match: [\n /function/,\n /\\s+/,\n IDENT_RE$1,\n /(?=\\s*\\()/\n ]\n },\n // anonymous function\n {\n match: [\n /function/,\n /\\s*(?=\\()/\n ]\n }\n ],\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n },\n label: \"func.def\",\n contains: [ PARAMS ],\n illegal: /%/\n };\n\n const UPPER_CASE_CONSTANT = {\n relevance: 0,\n match: /\\b[A-Z][A-Z_0-9]+\\b/,\n className: \"variable.constant\"\n };\n\n function noneOf(list) {\n return regex.concat(\"(?!\", list.join(\"|\"), \")\");\n }\n\n const FUNCTION_CALL = {\n match: regex.concat(\n /\\b/,\n noneOf([\n ...BUILT_IN_GLOBALS,\n \"super\",\n \"import\"\n ].map(x => `${x}\\\\s*\\\\(`)),\n IDENT_RE$1, regex.lookahead(/\\s*\\(/)),\n className: \"title.function\",\n relevance: 0\n };\n\n const PROPERTY_ACCESS = {\n begin: regex.concat(/\\./, regex.lookahead(\n regex.concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/)\n )),\n end: IDENT_RE$1,\n excludeBegin: true,\n keywords: \"prototype\",\n className: \"property\",\n relevance: 0\n };\n\n const GETTER_OR_SETTER = {\n match: [\n /get|set/,\n /\\s+/,\n IDENT_RE$1,\n /(?=\\()/\n ],\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n },\n contains: [\n { // eat to avoid empty params\n begin: /\\(\\)/\n },\n PARAMS\n ]\n };\n\n const FUNC_LEAD_IN_RE = '(\\\\(' +\n '[^()]*(\\\\(' +\n '[^()]*(\\\\(' +\n '[^()]*' +\n '\\\\)[^()]*)*' +\n '\\\\)[^()]*)*' +\n '\\\\)|' + hljs.UNDERSCORE_IDENT_RE + ')\\\\s*=>';\n\n const FUNCTION_VARIABLE = {\n match: [\n /const|var|let/, /\\s+/,\n IDENT_RE$1, /\\s*/,\n /=\\s*/,\n /(async\\s*)?/, // async is optional\n regex.lookahead(FUNC_LEAD_IN_RE)\n ],\n keywords: \"async\",\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n },\n contains: [\n PARAMS\n ]\n };\n\n return {\n name: 'JavaScript',\n aliases: ['js', 'jsx', 'mjs', 'cjs'],\n keywords: KEYWORDS$1,\n // this will be extended by TypeScript\n exports: { PARAMS_CONTAINS, CLASS_REFERENCE },\n illegal: /#(?![$_A-z])/,\n contains: [\n hljs.SHEBANG({\n label: \"shebang\",\n binary: \"node\",\n relevance: 5\n }),\n USE_STRICT,\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n HTML_TEMPLATE,\n CSS_TEMPLATE,\n GRAPHQL_TEMPLATE,\n TEMPLATE_STRING,\n COMMENT,\n // Skip numbers when they are part of a variable name\n { match: /\\$\\d+/ },\n NUMBER,\n CLASS_REFERENCE,\n {\n scope: 'attr',\n match: IDENT_RE$1 + regex.lookahead(':'),\n relevance: 0\n },\n FUNCTION_VARIABLE,\n { // \"value\" container\n begin: '(' + hljs.RE_STARTERS_RE + '|\\\\b(case|return|throw)\\\\b)\\\\s*',\n keywords: 'return throw case',\n relevance: 0,\n contains: [\n COMMENT,\n hljs.REGEXP_MODE,\n {\n className: 'function',\n // we have to count the parens to make sure we actually have the\n // correct bounding ( ) before the =>. There could be any number of\n // sub-expressions inside also surrounded by parens.\n begin: FUNC_LEAD_IN_RE,\n returnBegin: true,\n end: '\\\\s*=>',\n contains: [\n {\n className: 'params',\n variants: [\n {\n begin: hljs.UNDERSCORE_IDENT_RE,\n relevance: 0\n },\n {\n className: null,\n begin: /\\(\\s*\\)/,\n skip: true\n },\n {\n begin: /(\\s*)\\(/,\n end: /\\)/,\n excludeBegin: true,\n excludeEnd: true,\n keywords: KEYWORDS$1,\n contains: PARAMS_CONTAINS\n }\n ]\n }\n ]\n },\n { // could be a comma delimited list of params to a function call\n begin: /,/,\n relevance: 0\n },\n {\n match: /\\s+/,\n relevance: 0\n },\n { // JSX\n variants: [\n { begin: FRAGMENT.begin, end: FRAGMENT.end },\n { match: XML_SELF_CLOSING },\n {\n begin: XML_TAG.begin,\n // we carefully check the opening tag to see if it truly\n // is a tag and not a false positive\n 'on:begin': XML_TAG.isTrulyOpeningTag,\n end: XML_TAG.end\n }\n ],\n subLanguage: 'xml',\n contains: [\n {\n begin: XML_TAG.begin,\n end: XML_TAG.end,\n skip: true,\n contains: ['self']\n }\n ]\n }\n ],\n },\n FUNCTION_DEFINITION,\n {\n // prevent this from getting swallowed up by function\n // since they appear \"function like\"\n beginKeywords: \"while if switch catch for\"\n },\n {\n // we have to count the parens to make sure we actually have the correct\n // bounding ( ). There could be any number of sub-expressions inside\n // also surrounded by parens.\n begin: '\\\\b(?!function)' + hljs.UNDERSCORE_IDENT_RE +\n '\\\\(' + // first parens\n '[^()]*(\\\\(' +\n '[^()]*(\\\\(' +\n '[^()]*' +\n '\\\\)[^()]*)*' +\n '\\\\)[^()]*)*' +\n '\\\\)\\\\s*\\\\{', // end parens\n returnBegin:true,\n label: \"func.def\",\n contains: [\n PARAMS,\n hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1, className: \"title.function\" })\n ]\n },\n // catch ... so it won't trigger the property rule below\n {\n match: /\\.\\.\\./,\n relevance: 0\n },\n PROPERTY_ACCESS,\n // hack: prevents detection of keywords in some circumstances\n // .keyword()\n // $keyword = x\n {\n match: '\\\\$' + IDENT_RE$1,\n relevance: 0\n },\n {\n match: [ /\\bconstructor(?=\\s*\\()/ ],\n className: { 1: \"title.function\" },\n contains: [ PARAMS ]\n },\n FUNCTION_CALL,\n UPPER_CASE_CONSTANT,\n CLASS_OR_EXTENDS,\n GETTER_OR_SETTER,\n {\n match: /\\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`\n }\n ]\n };\n}\n\nexport { javascript as default };\n","import register from \"highlight.js/lib/languages/javascript\";\n\nexport const javascript = { name: \"javascript\", register };\nexport default javascript;\n","/*\nLanguage: Bash\nAuthor: vah <[email protected]>\nContributrors: Benjamin Pannell <[email protected]>\nWebsite: https://www.gnu.org/software/bash/\nCategory: common, scripting\n*/\n\n/** @type LanguageFn */\nfunction bash(hljs) {\n const regex = hljs.regex;\n const VAR = {};\n const BRACED_VAR = {\n begin: /\\$\\{/,\n end: /\\}/,\n contains: [\n \"self\",\n {\n begin: /:-/,\n contains: [ VAR ]\n } // default values\n ]\n };\n Object.assign(VAR, {\n className: 'variable',\n variants: [\n { begin: regex.concat(/\\$[\\w\\d#@][\\w\\d_]*/,\n // negative look-ahead tries to avoid matching patterns that are not\n // Perl at all like $ident$, @ident@, etc.\n `(?![\\\\w\\\\d])(?![$])`) },\n BRACED_VAR\n ]\n });\n\n const SUBST = {\n className: 'subst',\n begin: /\\$\\(/,\n end: /\\)/,\n contains: [ hljs.BACKSLASH_ESCAPE ]\n };\n const COMMENT = hljs.inherit(\n hljs.COMMENT(),\n {\n match: [\n /(^|\\s)/,\n /#.*$/\n ],\n scope: {\n 2: 'comment'\n }\n }\n );\n const HERE_DOC = {\n begin: /<<-?\\s*(?=\\w+)/,\n starts: { contains: [\n hljs.END_SAME_AS_BEGIN({\n begin: /(\\w+)/,\n end: /(\\w+)/,\n className: 'string'\n })\n ] }\n };\n const QUOTE_STRING = {\n className: 'string',\n begin: /\"/,\n end: /\"/,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR,\n SUBST\n ]\n };\n SUBST.contains.push(QUOTE_STRING);\n const ESCAPED_QUOTE = {\n match: /\\\\\"/\n };\n const APOS_STRING = {\n className: 'string',\n begin: /'/,\n end: /'/\n };\n const ESCAPED_APOS = {\n match: /\\\\'/\n };\n const ARITHMETIC = {\n begin: /\\$?\\(\\(/,\n end: /\\)\\)/,\n contains: [\n {\n begin: /\\d+#[0-9a-f]+/,\n className: \"number\"\n },\n hljs.NUMBER_MODE,\n VAR\n ]\n };\n const SH_LIKE_SHELLS = [\n \"fish\",\n \"bash\",\n \"zsh\",\n \"sh\",\n \"csh\",\n \"ksh\",\n \"tcsh\",\n \"dash\",\n \"scsh\",\n ];\n const KNOWN_SHEBANG = hljs.SHEBANG({\n binary: `(${SH_LIKE_SHELLS.join(\"|\")})`,\n relevance: 10\n });\n const FUNCTION = {\n className: 'function',\n begin: /\\w[\\w\\d_]*\\s*\\(\\s*\\)\\s*\\{/,\n returnBegin: true,\n contains: [ hljs.inherit(hljs.TITLE_MODE, { begin: /\\w[\\w\\d_]*/ }) ],\n relevance: 0\n };\n\n const KEYWORDS = [\n \"if\",\n \"then\",\n \"else\",\n \"elif\",\n \"fi\",\n \"time\",\n \"for\",\n \"while\",\n \"until\",\n \"in\",\n \"do\",\n \"done\",\n \"case\",\n \"esac\",\n \"coproc\",\n \"function\",\n \"select\"\n ];\n\n const LITERALS = [\n \"true\",\n \"false\"\n ];\n\n // to consume paths to prevent keyword matches inside them\n const PATH_MODE = { match: /(\\/[a-z._-]+)+/ };\n\n // http://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html\n const SHELL_BUILT_INS = [\n \"break\",\n \"cd\",\n \"continue\",\n \"eval\",\n \"exec\",\n \"exit\",\n \"export\",\n \"getopts\",\n \"hash\",\n \"pwd\",\n \"readonly\",\n \"return\",\n \"shift\",\n \"test\",\n \"times\",\n \"trap\",\n \"umask\",\n \"unset\"\n ];\n\n const BASH_BUILT_INS = [\n \"alias\",\n \"bind\",\n \"builtin\",\n \"caller\",\n \"command\",\n \"declare\",\n \"echo\",\n \"enable\",\n \"help\",\n \"let\",\n \"local\",\n \"logout\",\n \"mapfile\",\n \"printf\",\n \"read\",\n \"readarray\",\n \"source\",\n \"sudo\",\n \"type\",\n \"typeset\",\n \"ulimit\",\n \"unalias\"\n ];\n\n const ZSH_BUILT_INS = [\n \"autoload\",\n \"bg\",\n \"bindkey\",\n \"bye\",\n \"cap\",\n \"chdir\",\n \"clone\",\n \"comparguments\",\n \"compcall\",\n \"compctl\",\n \"compdescribe\",\n \"compfiles\",\n \"compgroups\",\n \"compquote\",\n \"comptags\",\n \"comptry\",\n \"compvalues\",\n \"dirs\",\n \"disable\",\n \"disown\",\n \"echotc\",\n \"echoti\",\n \"emulate\",\n \"fc\",\n \"fg\",\n \"float\",\n \"functions\",\n \"getcap\",\n \"getln\",\n \"history\",\n \"integer\",\n \"jobs\",\n \"kill\",\n \"limit\",\n \"log\",\n \"noglob\",\n \"popd\",\n \"print\",\n \"pushd\",\n \"pushln\",\n \"rehash\",\n \"sched\",\n \"setcap\",\n \"setopt\",\n \"stat\",\n \"suspend\",\n \"ttyctl\",\n \"unfunction\",\n \"unhash\",\n \"unlimit\",\n \"unsetopt\",\n \"vared\",\n \"wait\",\n \"whence\",\n \"where\",\n \"which\",\n \"zcompile\",\n \"zformat\",\n \"zftp\",\n \"zle\",\n \"zmodload\",\n \"zparseopts\",\n \"zprof\",\n \"zpty\",\n \"zregexparse\",\n \"zsocket\",\n \"zstyle\",\n \"ztcp\"\n ];\n\n const GNU_CORE_UTILS = [\n \"chcon\",\n \"chgrp\",\n \"chown\",\n \"chmod\",\n \"cp\",\n \"dd\",\n \"df\",\n \"dir\",\n \"dircolors\",\n \"ln\",\n \"ls\",\n \"mkdir\",\n \"mkfifo\",\n \"mknod\",\n \"mktemp\",\n \"mv\",\n \"realpath\",\n \"rm\",\n \"rmdir\",\n \"shred\",\n \"sync\",\n \"touch\",\n \"truncate\",\n \"vdir\",\n \"b2sum\",\n \"base32\",\n \"base64\",\n \"cat\",\n \"cksum\",\n \"comm\",\n \"csplit\",\n \"cut\",\n \"expand\",\n \"fmt\",\n \"fold\",\n \"head\",\n \"join\",\n \"md5sum\",\n \"nl\",\n \"numfmt\",\n \"od\",\n \"paste\",\n \"ptx\",\n \"pr\",\n \"sha1sum\",\n \"sha224sum\",\n \"sha256sum\",\n \"sha384sum\",\n \"sha512sum\",\n \"shuf\",\n \"sort\",\n \"split\",\n \"sum\",\n \"tac\",\n \"tail\",\n \"tr\",\n \"tsort\",\n \"unexpand\",\n \"uniq\",\n \"wc\",\n \"arch\",\n \"basename\",\n \"chroot\",\n \"date\",\n \"dirname\",\n \"du\",\n \"echo\",\n \"env\",\n \"expr\",\n \"factor\",\n // \"false\", // keyword literal already\n \"groups\",\n \"hostid\",\n \"id\",\n \"link\",\n \"logname\",\n \"nice\",\n \"nohup\",\n \"nproc\",\n \"pathchk\",\n \"pinky\",\n \"printenv\",\n \"printf\",\n \"pwd\",\n \"readlink\",\n \"runcon\",\n \"seq\",\n \"sleep\",\n \"stat\",\n \"stdbuf\",\n \"stty\",\n \"tee\",\n \"test\",\n \"timeout\",\n // \"true\", // keyword literal already\n \"tty\",\n \"uname\",\n \"unlink\",\n \"uptime\",\n \"users\",\n \"who\",\n \"whoami\",\n \"yes\"\n ];\n\n return {\n name: 'Bash',\n aliases: [\n 'sh',\n 'zsh'\n ],\n keywords: {\n $pattern: /\\b[a-z][a-z0-9._-]+\\b/,\n keyword: KEYWORDS,\n literal: LITERALS,\n built_in: [\n ...SHELL_BUILT_INS,\n ...BASH_BUILT_INS,\n // Shell modifiers\n \"set\",\n \"shopt\",\n ...ZSH_BUILT_INS,\n ...GNU_CORE_UTILS\n ]\n },\n contains: [\n KNOWN_SHEBANG, // to catch known shells and boost relevancy\n hljs.SHEBANG(), // to catch unknown shells but still highlight the shebang\n FUNCTION,\n ARITHMETIC,\n COMMENT,\n HERE_DOC,\n PATH_MODE,\n QUOTE_STRING,\n ESCAPED_QUOTE,\n APOS_STRING,\n ESCAPED_APOS,\n VAR\n ]\n };\n}\n\nexport { bash as default };\n","import register from \"highlight.js/lib/languages/bash\";\n\nexport const bash = { name: \"bash\", register };\nexport default bash;\n","/*\nLanguage: PHP\nAuthor: Victor Karamzin <[email protected]>\nContributors: Evgeny Stepanischev <[email protected]>, Ivan Sagalaev <[email protected]>\nWebsite: https://www.php.net\nCategory: common\n*/\n\n/**\n * @param {HLJSApi} hljs\n * @returns {LanguageDetail}\n * */\nfunction php(hljs) {\n const regex = hljs.regex;\n // negative look-ahead tries to avoid matching patterns that are not\n // Perl at all like $ident$, @ident@, etc.\n const NOT_PERL_ETC = /(?![A-Za-z0-9])(?![$])/;\n const IDENT_RE = regex.concat(\n /[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*/,\n NOT_PERL_ETC);\n // Will not detect camelCase classes\n const PASCAL_CASE_CLASS_NAME_RE = regex.concat(\n /(\\\\?[A-Z][a-z0-9_\\x7f-\\xff]+|\\\\?[A-Z]+(?=[A-Z][a-z0-9_\\x7f-\\xff])){1,}/,\n NOT_PERL_ETC);\n const UPCASE_NAME_RE = regex.concat(\n /[A-Z]+/,\n NOT_PERL_ETC);\n const VARIABLE = {\n scope: 'variable',\n match: '\\\\$+' + IDENT_RE,\n };\n const PREPROCESSOR = {\n scope: \"meta\",\n variants: [\n { begin: /<\\?php/, relevance: 10 }, // boost for obvious PHP\n { begin: /<\\?=/ },\n // less relevant per PSR-1 which says not to use short-tags\n { begin: /<\\?/, relevance: 0.1 },\n { begin: /\\?>/ } // end php tag\n ]\n };\n const SUBST = {\n scope: 'subst',\n variants: [\n { begin: /\\$\\w+/ },\n {\n begin: /\\{\\$/,\n end: /\\}/\n }\n ]\n };\n const SINGLE_QUOTED = hljs.inherit(hljs.APOS_STRING_MODE, { illegal: null, });\n const DOUBLE_QUOTED = hljs.inherit(hljs.QUOTE_STRING_MODE, {\n illegal: null,\n contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST),\n });\n\n const HEREDOC = {\n begin: /<<<[ \\t]*(?:(\\w+)|\"(\\w+)\")\\n/,\n end: /[ \\t]*(\\w+)\\b/,\n contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST),\n 'on:begin': (m, resp) => { resp.data._beginMatch = m[1] || m[2]; },\n 'on:end': (m, resp) => { if (resp.data._beginMatch !== m[1]) resp.ignoreMatch(); },\n };\n\n const NOWDOC = hljs.END_SAME_AS_BEGIN({\n begin: /<<<[ \\t]*'(\\w+)'\\n/,\n end: /[ \\t]*(\\w+)\\b/,\n });\n // list of valid whitespaces because non-breaking space might be part of a IDENT_RE\n const WHITESPACE = '[ \\t\\n]';\n const STRING = {\n scope: 'string',\n variants: [\n DOUBLE_QUOTED,\n SINGLE_QUOTED,\n HEREDOC,\n NOWDOC\n ]\n };\n const NUMBER = {\n scope: 'number',\n variants: [\n { begin: `\\\\b0[bB][01]+(?:_[01]+)*\\\\b` }, // Binary w/ underscore support\n { begin: `\\\\b0[oO][0-7]+(?:_[0-7]+)*\\\\b` }, // Octals w/ underscore support\n { begin: `\\\\b0[xX][\\\\da-fA-F]+(?:_[\\\\da-fA-F]+)*\\\\b` }, // Hex w/ underscore support\n // Decimals w/ underscore support, with optional fragments and scientific exponent (e) suffix.\n { begin: `(?:\\\\b\\\\d+(?:_\\\\d+)*(\\\\.(?:\\\\d+(?:_\\\\d+)*))?|\\\\B\\\\.\\\\d+)(?:[eE][+-]?\\\\d+)?` }\n ],\n relevance: 0\n };\n const LITERALS = [\n \"false\",\n \"null\",\n \"true\"\n ];\n const KWS = [\n // Magic constants:\n // <https://www.php.net/manual/en/language.constants.predefined.php>\n \"__CLASS__\",\n \"__DIR__\",\n \"__FILE__\",\n \"__FUNCTION__\",\n \"__COMPILER_HALT_OFFSET__\",\n \"__LINE__\",\n \"__METHOD__\",\n \"__NAMESPACE__\",\n \"__TRAIT__\",\n // Function that look like language construct or language construct that look like function:\n // List of keywords that may not require parenthesis\n \"die\",\n \"echo\",\n \"exit\",\n \"include\",\n \"include_once\",\n \"print\",\n \"require\",\n \"require_once\",\n // These are not language construct (function) but operate on the currently-executing function and can access the current symbol table\n // 'compact extract func_get_arg func_get_args func_num_args get_called_class get_parent_class ' +\n // Other keywords:\n // <https://www.php.net/manual/en/reserved.php>\n // <https://www.php.net/manual/en/language.types.type-juggling.php>\n \"array\",\n \"abstract\",\n \"and\",\n \"as\",\n \"binary\",\n \"bool\",\n \"boolean\",\n \"break\",\n \"callable\",\n \"case\",\n \"catch\",\n \"class\",\n \"clone\",\n \"const\",\n \"continue\",\n \"declare\",\n \"default\",\n \"do\",\n \"double\",\n \"else\",\n \"elseif\",\n \"empty\",\n \"enddeclare\",\n \"endfor\",\n \"endforeach\",\n \"endif\",\n \"endswitch\",\n \"endwhile\",\n \"enum\",\n \"eval\",\n \"extends\",\n \"final\",\n \"finally\",\n \"float\",\n \"for\",\n \"foreach\",\n \"from\",\n \"global\",\n \"goto\",\n \"if\",\n \"implements\",\n \"instanceof\",\n \"insteadof\",\n \"int\",\n \"integer\",\n \"interface\",\n \"isset\",\n \"iterable\",\n \"list\",\n \"match|0\",\n \"mixed\",\n \"new\",\n \"never\",\n \"object\",\n \"or\",\n \"private\",\n \"protected\",\n \"public\",\n \"readonly\",\n \"real\",\n \"return\",\n \"string\",\n \"switch\",\n \"throw\",\n \"trait\",\n \"try\",\n \"unset\",\n \"use\",\n \"var\",\n \"void\",\n \"while\",\n \"xor\",\n \"yield\"\n ];\n\n const BUILT_INS = [\n // Standard PHP library:\n // <https://www.php.net/manual/en/book.spl.php>\n \"Error|0\",\n \"AppendIterator\",\n \"ArgumentCountError\",\n \"ArithmeticError\",\n \"ArrayIterator\",\n \"ArrayObject\",\n \"AssertionError\",\n \"BadFunctionCallException\",\n \"BadMethodCallException\",\n \"CachingIterator\",\n \"CallbackFilterIterator\",\n \"CompileError\",\n \"Countable\",\n \"DirectoryIterator\",\n \"DivisionByZeroError\",\n \"DomainException\",\n \"EmptyIterator\",\n \"ErrorException\",\n \"Exception\",\n \"FilesystemIterator\",\n \"FilterIterator\",\n \"GlobIterator\",\n \"InfiniteIterator\",\n \"InvalidArgumentException\",\n \"IteratorIterator\",\n \"LengthException\",\n \"LimitIterator\",\n \"LogicException\",\n \"MultipleIterator\",\n \"NoRewindIterator\",\n \"OutOfBoundsException\",\n \"OutOfRangeException\",\n \"OuterIterator\",\n \"OverflowException\",\n \"ParentIterator\",\n \"ParseError\",\n \"RangeException\",\n \"RecursiveArrayIterator\",\n \"RecursiveCachingIterator\",\n \"RecursiveCallbackFilterIterator\",\n \"RecursiveDirectoryIterator\",\n \"RecursiveFilterIterator\",\n \"RecursiveIterator\",\n \"RecursiveIteratorIterator\",\n \"RecursiveRegexIterator\",\n \"RecursiveTreeIterator\",\n \"RegexIterator\",\n \"RuntimeException\",\n \"SeekableIterator\",\n \"SplDoublyLinkedList\",\n \"SplFileInfo\",\n \"SplFileObject\",\n \"SplFixedArray\",\n \"SplHeap\",\n \"SplMaxHeap\",\n \"SplMinHeap\",\n \"SplObjectStorage\",\n \"SplObserver\",\n \"SplPriorityQueue\",\n \"SplQueue\",\n \"SplStack\",\n \"SplSubject\",\n \"SplTempFileObject\",\n \"TypeError\",\n \"UnderflowException\",\n \"UnexpectedValueException\",\n \"UnhandledMatchError\",\n // Reserved interfaces:\n // <https://www.php.net/manual/en/reserved.interfaces.php>\n \"ArrayAccess\",\n \"BackedEnum\",\n \"Closure\",\n \"Fiber\",\n \"Generator\",\n \"Iterator\",\n \"IteratorAggregate\",\n \"Serializable\",\n \"Stringable\",\n \"Throwable\",\n \"Traversable\",\n \"UnitEnum\",\n \"WeakReference\",\n \"WeakMap\",\n // Reserved classes:\n // <https://www.php.net/manual/en/reserved.classes.php>\n \"Directory\",\n \"__PHP_Incomplete_Class\",\n \"parent\",\n \"php_user_filter\",\n \"self\",\n \"static\",\n \"stdClass\"\n ];\n\n /** Dual-case keywords\n *\n * [\"then\",\"FILE\"] =>\n * [\"then\", \"THEN\", \"FILE\", \"file\"]\n *\n * @param {string[]} items */\n const dualCase = (items) => {\n /** @type string[] */\n const result = [];\n items.forEach(item => {\n result.push(item);\n if (item.toLowerCase() === item) {\n result.push(item.toUpperCase());\n } else {\n result.push(item.toLowerCase());\n }\n });\n return result;\n };\n\n const KEYWORDS = {\n keyword: KWS,\n literal: dualCase(LITERALS),\n built_in: BUILT_INS,\n };\n\n /**\n * @param {string[]} items */\n const normalizeKeywords = (items) => {\n return items.map(item => {\n return item.replace(/\\|\\d+$/, \"\");\n });\n };\n\n const CONSTRUCTOR_CALL = { variants: [\n {\n match: [\n /new/,\n regex.concat(WHITESPACE, \"+\"),\n // to prevent built ins from being confused as the class constructor call\n regex.concat(\"(?!\", normalizeKeywords(BUILT_INS).join(\"\\\\b|\"), \"\\\\b)\"),\n PASCAL_CASE_CLASS_NAME_RE,\n ],\n scope: {\n 1: \"keyword\",\n 4: \"title.class\",\n },\n }\n ] };\n\n const CONSTANT_REFERENCE = regex.concat(IDENT_RE, \"\\\\b(?!\\\\()\");\n\n const LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON = { variants: [\n {\n match: [\n regex.concat(\n /::/,\n regex.lookahead(/(?!class\\b)/)\n ),\n CONSTANT_REFERENCE,\n ],\n scope: { 2: \"variable.constant\", },\n },\n {\n match: [\n /::/,\n /class/,\n ],\n scope: { 2: \"variable.language\", },\n },\n {\n match: [\n PASCAL_CASE_CLASS_NAME_RE,\n regex.concat(\n /::/,\n regex.lookahead(/(?!class\\b)/)\n ),\n CONSTANT_REFERENCE,\n ],\n scope: {\n 1: \"title.class\",\n 3: \"variable.constant\",\n },\n },\n {\n match: [\n PASCAL_CASE_CLASS_NAME_RE,\n regex.concat(\n \"::\",\n regex.lookahead(/(?!class\\b)/)\n ),\n ],\n scope: { 1: \"title.class\", },\n },\n {\n match: [\n PASCAL_CASE_CLASS_NAME_RE,\n /::/,\n /class/,\n ],\n scope: {\n 1: \"title.class\",\n 3: \"variable.language\",\n },\n }\n ] };\n\n const NAMED_ARGUMENT = {\n scope: 'attr',\n match: regex.concat(IDENT_RE, regex.lookahead(':'), regex.lookahead(/(?!::)/)),\n };\n const PARAMS_MODE = {\n relevance: 0,\n begin: /\\(/,\n end: /\\)/,\n keywords: KEYWORDS,\n contains: [\n NAMED_ARGUMENT,\n VARIABLE,\n LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,\n hljs.C_BLOCK_COMMENT_MODE,\n STRING,\n NUMBER,\n CONSTRUCTOR_CALL,\n ],\n };\n const FUNCTION_INVOKE = {\n relevance: 0,\n match: [\n /\\b/,\n // to prevent keywords from being confused as the function title\n regex.concat(\"(?!fn\\\\b|function\\\\b|\", normalizeKeywords(KWS).join(\"\\\\b|\"), \"|\", normalizeKeywords(BUILT_INS).join(\"\\\\b|\"), \"\\\\b)\"),\n IDENT_RE,\n regex.concat(WHITESPACE, \"*\"),\n regex.lookahead(/(?=\\()/)\n ],\n scope: { 3: \"title.function.invoke\", },\n contains: [ PARAMS_MODE ]\n };\n PARAMS_MODE.contains.push(FUNCTION_INVOKE);\n\n const ATTRIBUTE_CONTAINS = [\n NAMED_ARGUMENT,\n LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,\n hljs.C_BLOCK_COMMENT_MODE,\n STRING,\n NUMBER,\n CONSTRUCTOR_CALL,\n ];\n\n const ATTRIBUTES = {\n begin: regex.concat(/#\\[\\s*\\\\?/,\n regex.either(\n PASCAL_CASE_CLASS_NAME_RE,\n UPCASE_NAME_RE\n )\n ),\n beginScope: \"meta\",\n end: /]/,\n endScope: \"meta\",\n keywords: {\n literal: LITERALS,\n keyword: [\n 'new',\n 'array',\n ]\n },\n contains: [\n {\n begin: /\\[/,\n end: /]/,\n keywords: {\n literal: LITERALS,\n keyword: [\n 'new',\n 'array',\n ]\n },\n contains: [\n 'self',\n ...ATTRIBUTE_CONTAINS,\n ]\n },\n ...ATTRIBUTE_CONTAINS,\n {\n scope: 'meta',\n variants: [\n { match: PASCAL_CASE_CLASS_NAME_RE },\n { match: UPCASE_NAME_RE }\n ]\n }\n ]\n };\n\n return {\n case_insensitive: false,\n keywords: KEYWORDS,\n contains: [\n ATTRIBUTES,\n hljs.HASH_COMMENT_MODE,\n hljs.COMMENT('//', '$'),\n hljs.COMMENT(\n '/\\\\*',\n '\\\\*/',\n { contains: [\n {\n scope: 'doctag',\n match: '@[A-Za-z]+'\n }\n ] }\n ),\n {\n match: /__halt_compiler\\(\\);/,\n keywords: '__halt_compiler',\n starts: {\n scope: \"comment\",\n end: hljs.MATCH_NOTHING_RE,\n contains: [\n {\n match: /\\?>/,\n scope: \"meta\",\n endsParent: true\n }\n ]\n }\n },\n PREPROCESSOR,\n {\n scope: 'variable.language',\n match: /\\$this\\b/\n },\n VARIABLE,\n FUNCTION_INVOKE,\n LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,\n {\n match: [\n /const/,\n /\\s/,\n IDENT_RE,\n ],\n scope: {\n 1: \"keyword\",\n 3: \"variable.constant\",\n },\n },\n CONSTRUCTOR_CALL,\n {\n scope: 'function',\n relevance: 0,\n beginKeywords: 'fn function',\n end: /[;{]/,\n excludeEnd: true,\n illegal: '[$%\\\\[]',\n contains: [\n { beginKeywords: 'use', },\n hljs.UNDERSCORE_TITLE_MODE,\n {\n begin: '=>', // No markup, just a relevance booster\n endsParent: true\n },\n {\n scope: 'params',\n begin: '\\\\(',\n end: '\\\\)',\n excludeBegin: true,\n excludeEnd: true,\n keywords: KEYWORDS,\n contains: [\n 'self',\n ATTRIBUTES,\n VARIABLE,\n LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,\n hljs.C_BLOCK_COMMENT_MODE,\n STRING,\n NUMBER\n ]\n },\n ]\n },\n {\n scope: 'class',\n variants: [\n {\n beginKeywords: \"enum\",\n illegal: /[($\"]/\n },\n {\n beginKeywords: \"class interface trait\",\n illegal: /[:($\"]/\n }\n ],\n relevance: 0,\n end: /\\{/,\n excludeEnd: true,\n contains: [\n { beginKeywords: 'extends implements' },\n hljs.UNDERSCORE_TITLE_MODE\n ]\n },\n // both use and namespace still use \"old style\" rules (vs multi-match)\n // because the namespace name can include `\\` and we still want each\n // element to be treated as its own *individual* title\n {\n beginKeywords: 'namespace',\n relevance: 0,\n end: ';',\n illegal: /[.']/,\n contains: [ hljs.inherit(hljs.UNDERSCORE_TITLE_MODE, { scope: \"title.class\" }) ]\n },\n {\n beginKeywords: 'use',\n relevance: 0,\n end: ';',\n contains: [\n // TODO: title.function vs title.class\n {\n match: /\\b(as|const|function)\\b/,\n scope: \"keyword\"\n },\n // TODO: could be title.class or title.function\n hljs.UNDERSCORE_TITLE_MODE\n ]\n },\n STRING,\n NUMBER,\n ]\n };\n}\n\nexport { php as default };\n","import register from \"highlight.js/lib/languages/php\";\n\nexport const php = { name: \"php\", register };\nexport default php;\n","/*\nLanguage: YAML\nDescription: Yet Another Markdown Language\nAuthor: Stefan Wienert <[email protected]>\nContributors: Carl Baxter <[email protected]>\nRequires: ruby.js\nWebsite: https://yaml.org\nCategory: common, config\n*/\nfunction yaml(hljs) {\n const LITERALS = 'true false yes no null';\n\n // YAML spec allows non-reserved URI characters in tags.\n const URI_CHARACTERS = '[\\\\w#;/?:@&=+$,.~*\\'()[\\\\]]+';\n\n // Define keys as starting with a word character\n // ...containing word chars, spaces, colons, forward-slashes, hyphens and periods\n // ...and ending with a colon followed immediately by a space, tab or newline.\n // The YAML spec allows for much more than this, but this covers most use-cases.\n const KEY = {\n className: 'attr',\n variants: [\n // added brackets support and special char support\n { begin: /[\\w*@][\\w*@ :()\\./-]*:(?=[ \\t]|$)/ },\n { // double quoted keys - with brackets and special char support\n begin: /\"[\\w*@][\\w*@ :()\\./-]*\":(?=[ \\t]|$)/ },\n { // single quoted keys - with brackets and special char support\n begin: /'[\\w*@][\\w*@ :()\\./-]*':(?=[ \\t]|$)/ },\n ]\n };\n \n const TEMPLATE_VARIABLES = {\n className: 'template-variable',\n variants: [\n { // jinja templates Ansible\n begin: /\\{\\{/,\n end: /\\}\\}/\n },\n { // Ruby i18n\n begin: /%\\{/,\n end: /\\}/\n }\n ]\n };\n\n const SINGLE_QUOTE_STRING = {\n className: 'string',\n relevance: 0,\n begin: /'/,\n end: /'/,\n contains: [\n {\n match: /''/,\n scope: 'char.escape',\n relevance: 0\n }\n ]\n };\n\n const STRING = {\n className: 'string',\n relevance: 0,\n variants: [\n {\n begin: /\"/,\n end: /\"/\n },\n { begin: /\\S+/ }\n ],\n contains: [\n hljs.BACKSLASH_ESCAPE,\n TEMPLATE_VARIABLES\n ]\n };\n\n // Strings inside of value containers (objects) can't contain braces,\n // brackets, or commas\n const CONTAINER_STRING = hljs.inherit(STRING, { variants: [\n {\n begin: /'/,\n end: /'/,\n contains: [\n {\n begin: /''/,\n relevance: 0\n }\n ]\n },\n {\n begin: /\"/,\n end: /\"/\n },\n { begin: /[^\\s,{}[\\]]+/ }\n ] });\n\n const DATE_RE = '[0-9]{4}(-[0-9][0-9]){0,2}';\n const TIME_RE = '([Tt \\\\t][0-9][0-9]?(:[0-9][0-9]){2})?';\n const FRACTION_RE = '(\\\\.[0-9]*)?';\n const ZONE_RE = '([ \\\\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?';\n const TIMESTAMP = {\n className: 'number',\n begin: '\\\\b' + DATE_RE + TIME_RE + FRACTION_RE + ZONE_RE + '\\\\b'\n };\n\n const VALUE_CONTAINER = {\n end: ',',\n endsWithParent: true,\n excludeEnd: true,\n keywords: LITERALS,\n relevance: 0\n };\n const OBJECT = {\n begin: /\\{/,\n end: /\\}/,\n contains: [ VALUE_CONTAINER ],\n illegal: '\\\\n',\n relevance: 0\n };\n const ARRAY = {\n begin: '\\\\[',\n end: '\\\\]',\n contains: [ VALUE_CONTAINER ],\n illegal: '\\\\n',\n relevance: 0\n };\n\n const MODES = [\n KEY,\n {\n className: 'meta',\n begin: '^---\\\\s*$',\n relevance: 10\n },\n { // multi line string\n // Blocks start with a | or > followed by a newline\n //\n // Indentation of subsequent lines must be the same to\n // be considered part of the block\n className: 'string',\n begin: '[\\\\|>]([1-9]?[+-])?[ ]*\\\\n( +)[^ ][^\\\\n]*\\\\n(\\\\2[^\\\\n]+\\\\n?)*'\n },\n { // Ruby/Rails erb\n begin: '<%[%=-]?',\n end: '[%-]?%>',\n subLanguage: 'ruby',\n excludeBegin: true,\n excludeEnd: true,\n relevance: 0\n },\n { // named tags\n className: 'type',\n begin: '!\\\\w+!' + URI_CHARACTERS\n },\n // https://yaml.org/spec/1.2/spec.html#id2784064\n { // verbatim tags\n className: 'type',\n begin: '!<' + URI_CHARACTERS + \">\"\n },\n { // primary tags\n className: 'type',\n begin: '!' + URI_CHARACTERS\n },\n { // secondary tags\n className: 'type',\n begin: '!!' + URI_CHARACTERS\n },\n { // fragment id &ref\n className: 'meta',\n begin: '&' + hljs.UNDERSCORE_IDENT_RE + '$'\n },\n { // fragment reference *ref\n className: 'meta',\n begin: '\\\\*' + hljs.UNDERSCORE_IDENT_RE + '$'\n },\n { // array listing\n className: 'bullet',\n // TODO: remove |$ hack when we have proper look-ahead support\n begin: '-(?=[ ]|$)',\n relevance: 0\n },\n hljs.HASH_COMMENT_MODE,\n {\n beginKeywords: LITERALS,\n keywords: { literal: LITERALS }\n },\n TIMESTAMP,\n // numbers are any valid C-style number that\n // sit isolated from other words\n {\n className: 'number',\n begin: hljs.C_NUMBER_RE + '\\\\b',\n relevance: 0\n },\n OBJECT,\n ARRAY,\n SINGLE_QUOTE_STRING,\n STRING\n ];\n\n const VALUE_MODES = [ ...MODES ];\n VALUE_MODES.pop();\n VALUE_MODES.push(CONTAINER_STRING);\n VALUE_CONTAINER.contains = VALUE_MODES;\n\n return {\n name: 'YAML',\n case_insensitive: true,\n aliases: [ 'yml' ],\n contains: MODES\n };\n}\n\nexport { yaml as default };\n","import register from \"highlight.js/lib/languages/yaml\";\n\nexport const yaml = { name: \"yaml\", register };\nexport default yaml;\n","import type { Framework } from '$lib/state/projects.svelte';\nimport { isJsFramework } from '$lib/state/projects.svelte';\n\nexport function getInstallCommand(framework: Framework): string {\n\tconst base = 'go get go.tracewayapp.com';\n\tswitch (framework) {\n\t\tcase 'gin':\n\t\t\treturn `${base} && go get go.tracewayapp.com/tracewaygin`;\n\t\tcase 'chi':\n\t\t\treturn `${base} && go get go.tracewayapp.com/tracewaychi`;\n\t\tcase 'fiber':\n\t\t\treturn `${base} && go get go.tracewayapp.com/tracewayfiber`;\n\t\tcase 'fasthttp':\n\t\t\treturn `${base} && go get go.tracewayapp.com/tracewayfasthttp`;\n\t\tcase 'stdlib':\n\t\t\treturn `${base} && go get go.tracewayapp.com/tracewayhttp`;\n\t\tcase 'react':\n\t\t\treturn 'npm install @tracewayapp/react';\n\t\tcase 'svelte':\n\t\t\treturn 'npm install @tracewayapp/svelte';\n\t\tcase 'vuejs':\n\t\t\treturn 'npm install @tracewayapp/vue';\n\t\tcase 'nextjs':\n\t\t\treturn 'npm install @tracewayapp/react';\n\t\tcase 'nestjs':\n\t\t\treturn 'npm install @tracewayapp/nest';\n\t\tcase 'express':\n\t\t\treturn 'npm install @tracewayapp/express';\n\t\tcase 'remix':\n\t\t\treturn 'npm install @tracewayapp/remix';\n\t\tcase 'jquery':\n\t\t\treturn 'npm install @tracewayapp/jquery';\n\t\tcase 'react-native':\n\t\t\treturn 'npm install @tracewayapp/react-native';\n\t\tcase 'hono':\n\t\t\treturn '';\n\t\tcase 'symfony':\n\t\t\treturn 'composer require traceway/opentelemetry-symfony open-telemetry/exporter-otlp php-http/guzzle7-adapter';\n\t\tcase 'cloudflare':\n\t\t\treturn '';\n\t\tcase 'opentelemetry':\n\t\t\treturn '';\n\t\tcase 'flutter':\n\t\t\treturn 'flutter pub add traceway';\n\t\tcase 'android':\n\t\t\treturn 'implementation(\"com.tracewayapp:traceway:1.0.0\")';\n\t\tcase 'custom':\n\t\tdefault:\n\t\t\treturn base;\n\t}\n}\n\nexport function getFrameworkCode(framework: Framework, token: string, backendUrl: string): string {\n\tconst connectionString = token\n\t\t? `${token}@${backendUrl}/api/report`\n\t\t: `YOUR_TOKEN@${backendUrl}/api/report`;\n\n\tswitch (framework) {\n\t\tcase 'gin':\n\t\t\treturn `package main\n\nimport (\n \"github.com/gin-gonic/gin\"\n tracewaygin \"go.tracewayapp.com/tracewaygin\"\n)\n\nfunc main() {\n r := gin.Default()\n r.Use(tracewaygin.New(\"${connectionString}\"))\n r.Run(\":8080\")\n}`;\n\n\t\tcase 'chi':\n\t\t\treturn `package main\n\nimport (\n \"net/http\"\n\n \"github.com/go-chi/chi/v5\"\n tracewaychi \"go.tracewayapp.com/tracewaychi\"\n)\n\nfunc main() {\n r := chi.NewRouter()\n r.Use(tracewaychi.New(\"${connectionString}\"))\n\n r.Get(\"/api/users\", getUsers)\n http.ListenAndServe(\":8080\", r)\n}`;\n\n\t\tcase 'fiber':\n\t\t\treturn `package main\n\nimport (\n \"github.com/gofiber/fiber/v2\"\n tracewayfiber \"go.tracewayapp.com/tracewayfiber\"\n)\n\nfunc main() {\n app := fiber.New()\n app.Use(tracewayfiber.New(\"${connectionString}\"))\n\n app.Get(\"/api/users\", getUsers)\n app.Listen(\":8080\")\n}`;\n\n\t\tcase 'fasthttp':\n\t\t\treturn `package main\n\nimport (\n \"github.com/valyala/fasthttp\"\n tracewayfasthttp \"go.tracewayapp.com/tracewayfasthttp\"\n)\n\nfunc main() {\n handler := func(ctx *fasthttp.RequestCtx) {\n ctx.SetStatusCode(200)\n ctx.SetBodyString(\"Hello, World!\")\n }\n\n tracedHandler := tracewayfasthttp.New(\"${connectionString}\")(handler)\n fasthttp.ListenAndServe(\":8080\", tracedHandler)\n}`;\n\n\t\tcase 'stdlib':\n\t\t\treturn `package main\n\nimport (\n \"net/http\"\n\n tracewayhttp \"go.tracewayapp.com/tracewayhttp\"\n)\n\nfunc main() {\n mux := http.NewServeMux()\n mux.HandleFunc(\"/api/users\", getUsers)\n\n handler := tracewayhttp.New(\"${connectionString}\")(mux)\n http.ListenAndServe(\":8080\", handler)\n}`;\n\n\t\tcase 'react':\n\t\t\treturn `import { TracewayProvider } from \"@tracewayapp/react\";\n\nfunction App() {\n return (\n <TracewayProvider connectionString=\"${connectionString}\">\n <YourApp />\n </TracewayProvider>\n );\n}\n\nexport default App;`;\n\n\t\tcase 'svelte':\n\t\t\treturn `<!-- src/routes/+layout.svelte -->\n<script>\n import { setupTraceway } from \"@tracewayapp/svelte\";\n import { browser } from \"$app/environment\";\n\n if (browser) {\n setupTraceway({\n connectionString: \"${connectionString}\",\n });\n }\n</script>\n\n<slot />`;\n\n\t\tcase 'vuejs':\n\t\t\treturn `import { createApp } from \"vue\";\nimport { createTracewayPlugin } from \"@tracewayapp/vue\";\nimport App from \"./App.vue\";\n\nconst app = createApp(App);\n\napp.use(createTracewayPlugin({\n connectionString: \"${connectionString}\",\n}));\n\napp.mount(\"#app\");`;\n\n\t\tcase 'nextjs':\n\t\t\treturn `// app/traceway-provider.tsx\n\"use client\";\n\nimport { TracewayProvider } from \"@tracewayapp/react\";\n\nexport function TracewayClientProvider({ children }: { children: React.ReactNode }) {\n return (\n <TracewayProvider connectionString=\"${connectionString}\">\n {children}\n </TracewayProvider>\n );\n}\n\n// app/layout.tsx\nimport { TracewayClientProvider } from \"./traceway-provider\";\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n <html>\n <body>\n <TracewayClientProvider>{children}</TracewayClientProvider>\n </body>\n </html>\n );\n}`;\n\n\t\tcase 'nestjs':\n\t\t\treturn `import { Module } from \"@nestjs/common\";\nimport { TracewayModule } from \"@tracewayapp/nest\";\n\n@Module({\n imports: [\n TracewayModule.forRoot({\n connectionString: \"${connectionString}\",\n }),\n ],\n})\nexport class AppModule {}`;\n\n\t\tcase 'express':\n\t\t\treturn `import express from \"express\";\nimport { traceway } from \"@tracewayapp/express\";\n\nconst app = express();\napp.use(traceway(\"${connectionString}\"));\n\napp.get(\"/api/users\", (req, res) => {\n res.json({ users: [] });\n});\n\napp.listen(8080);`;\n\n\t\tcase 'remix':\n\t\t\treturn `import { withTraceway } from \"@tracewayapp/remix\";\n\nexport default withTraceway({\n connectionString: \"${connectionString}\",\n});`;\n\n\t\tcase 'jquery':\n\t\t\treturn `import { init } from \"@tracewayapp/jquery\";\n\ninit(\"${connectionString}\");\n\n// jQuery AJAX errors are captured automatically\n// Distributed trace headers are injected into $.ajax() requests`;\n\n\t\tcase 'react-native':\n\t\t\treturn `import { TracewayProvider } from \"@tracewayapp/react-native\";\n\nexport default function App() {\n return (\n <TracewayProvider connectionString=\"${connectionString}\">\n <RootNavigator />\n </TracewayProvider>\n );\n}`;\n\n\t\tcase 'symfony':\n\t\t\treturn `<?php\n// public/index.php\n\nuse App\\\\Kernel;\n\nrequire_once dirname(__DIR__) . '/vendor/autoload.php';\n\n\\\\OpenTelemetry\\\\SDK\\\\SdkAutoloader::autoload();\n\n// Fixes for Symfony's OTel auto-instrumentation:\n// 1. Corrects http.route from internal route name to URL path template\n// 2. Cleans up sub-request scopes so 500 error spans are exported\n\\\\OpenTelemetry\\\\Instrumentation\\\\hook(\n \\\\Symfony\\\\Component\\\\HttpKernel\\\\HttpKernel::class,\n 'handle',\n post: static function (\n \\\\Symfony\\\\Component\\\\HttpKernel\\\\HttpKernel $kernel,\n array $params,\n mixed $returnValue,\n ?\\\\Throwable $exception\n ): void {\n $request = ($params[0] instanceof \\\\Symfony\\\\Component\\\\HttpFoundation\\\\Request) ? $params[0] : null;\n if (null === $request) return;\n\n $type = $params[1] ?? \\\\Symfony\\\\Component\\\\HttpKernel\\\\HttpKernelInterface::MAIN_REQUEST;\n\n if ($type === \\\\Symfony\\\\Component\\\\HttpKernel\\\\HttpKernelInterface::SUB_REQUEST) {\n $scope = \\\\OpenTelemetry\\\\Context\\\\Context::storage()->scope();\n if (null !== $scope) {\n $span = \\\\OpenTelemetry\\\\API\\\\Trace\\\\Span::fromContext($scope->context());\n $scope->detach();\n $span->end();\n }\n return;\n }\n\n $routeParams = $request->attributes->get('_route_params', []);\n $path = $request->getPathInfo();\n if (\\\\is_array($routeParams)) {\n foreach ($routeParams as $name => $value) {\n if (\\\\is_string($value) && '' !== $value) {\n $path = str_replace($value, '{' . $name . '}', $path);\n }\n }\n }\n\n $request->attributes->set('_route', $path);\n }\n);\n\n$kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', (bool) ($_SERVER['APP_DEBUG'] ?? true));\n$request = \\\\Symfony\\\\Component\\\\HttpFoundation\\\\Request::createFromGlobals();\n$response = $kernel->handle($request);\n$response->send();\n$kernel->terminate($request, $response);`;\n\n\t\tcase 'hono':\n\t\t\treturn '';\n\n\t\tcase 'cloudflare':\n\t\t\treturn '';\n\n\t\tcase 'opentelemetry':\n\t\t\treturn '';\n\n\t\tcase 'flutter':\n\t\t\treturn `import 'package:flutter/material.dart';\nimport 'package:traceway/traceway.dart';\n\nvoid main() {\n Traceway.run(\n connectionString: '${connectionString}',\n options: TracewayOptions(\n screenCapture: true,\n version: '1.0.0',\n ),\n child: MyApp(),\n );\n}`;\n\n\t\tcase 'android':\n\t\t\treturn `import android.app.Application\nimport com.tracewayapp.traceway.Traceway\nimport com.tracewayapp.traceway.TracewayOptions\n\nclass MyApp : Application() {\n override fun onCreate() {\n super.onCreate()\n Traceway.init(\n application = this,\n connectionString = \"${connectionString}\",\n options = TracewayOptions(version = \"1.0.0\"),\n )\n }\n}`;\n\n\t\tcase 'custom':\n\t\tdefault:\n\t\t\treturn `package main\n\nimport (\n \"go.tracewayapp.com\"\n)\n\nfunc main() {\n traceway.Init(\n \"${connectionString}\",\n traceway.WithVersion(\"1.0.0\"),\n traceway.WithServerName(\"my-server\"),\n )\n}`;\n\t}\n}\n\nexport function getTestingRouteCode(framework?: Framework): string {\n\tif (framework === 'symfony') {\n\t\treturn `<?php\n// src/Controller/TestController.php\nnamespace App\\\\Controller;\n\nuse Symfony\\\\Component\\\\HttpFoundation\\\\Response;\nuse Symfony\\\\Component\\\\Routing\\\\Attribute\\\\Route;\n\nclass TestController\n{\n #[Route('/testing', name: 'testing')]\n public function index(): Response\n {\n throw new \\\\RuntimeException(\"Test error from Traceway integration\");\n }\n}`;\n\t}\n\tif (framework === 'flutter') {\n\t\treturn `// Trigger a test error\nthrow StateError('Test error from Traceway integration');`;\n\t}\n\tif (framework === 'android') {\n\t\treturn `// Trigger a test error\nthrow RuntimeException(\"Test error from Traceway integration\")`;\n\t}\n\tif (framework && isJsFramework(framework)) {\n\t\treturn `// Trigger a test error\nthrow new Error(\"Test error from Traceway integration\");`;\n\t}\n\treturn `r.GET(\"/testing\", func(c *gin.Context) {\n panic(\"Test error from Traceway integration\")\n})`;\n}\n\nexport function getTestingRouteCode2(framework?: Framework): string {\n\tif (framework === 'symfony') {\n\t\treturn '';\n\t}\n\tif (framework === 'flutter') {\n\t\treturn `import 'package:traceway/traceway.dart';\n\nTracewayClient.instance?.captureException(\n Exception('Test error'),\n StackTrace.current,\n);`;\n\t}\n\tif (framework === 'android') {\n\t\treturn `import com.tracewayapp.traceway.Traceway\n\ntry {\n riskyOperation()\n} catch (e: Throwable) {\n Traceway.captureException(e)\n}`;\n\t}\n\tif (framework && isJsFramework(framework)) {\n\t\tswitch (framework) {\n\t\t\tcase 'react':\n\t\t\t\treturn `import { useTraceway } from \"@tracewayapp/react\";\n\n// In a component using the hook\nconst { captureException } = useTraceway();\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tcase 'svelte':\n\t\t\t\treturn `import { getTraceway } from \"@tracewayapp/svelte\";\n\nconst { captureException } = getTraceway();\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tcase 'vuejs':\n\t\t\t\treturn `import { useTraceway } from \"@tracewayapp/vue\";\n\nconst { captureException } = useTraceway();\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tcase 'jquery':\n\t\t\t\treturn `import { captureException } from \"@tracewayapp/jquery\";\n\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tcase 'nextjs':\n\t\t\t\treturn `import { useTraceway } from \"@tracewayapp/react\";\n\n// In a client component\n\"use client\";\nconst { captureException } = useTraceway();\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tcase 'react-native':\n\t\t\t\treturn `import { useTraceway } from \"@tracewayapp/react-native\";\n\n// In a component using the hook\nconst { captureException } = useTraceway();\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tdefault:\n\t\t\t\treturn `import { captureException } from \"@tracewayapp/${getPackageName(framework)}\";\n\ncaptureException(new Error(\"Test error\"));`;\n\t\t}\n\t}\n\treturn `r.GET(\"/testing\", func(c *gin.Context) {\n c.AbortWithError(500, traceway.NewStackTraceErrorf(\"testing\"))\n})`;\n}\n\nfunction getPackageName(framework: Framework): string {\n\tswitch (framework) {\n\t\tcase 'react': return 'react';\n\t\tcase 'svelte': return 'svelte';\n\t\tcase 'vuejs': return 'vue';\n\t\tcase 'nextjs': return 'next';\n\t\tcase 'nestjs': return 'nest';\n\t\tcase 'express': return 'express';\n\t\tcase 'remix': return 'remix';\n\t\tcase 'jquery': return 'jquery';\n\t\tcase 'react-native': return 'react-native';\n\t\tdefault: return 'react';\n\t}\n}\n\nexport function getFrameworkLabel(framework: Framework): string {\n\tconst labels: Record<Framework, string> = {\n\t\tgin: 'Gin',\n\t\tfiber: 'Fiber',\n\t\tchi: 'Chi',\n\t\tfasthttp: 'FastHTTP',\n\t\tstdlib: 'Standard Library (net/http)',\n\t\tcustom: 'Custom Integration',\n\t\treact: 'React',\n\t\tsvelte: 'Svelte',\n\t\tvuejs: 'Vue.js',\n\t\tnextjs: 'Next.js',\n\t\tnestjs: 'NestJS',\n\t\texpress: 'Express',\n\t\tremix: 'Remix',\n\t\tjquery: 'jQuery',\n\t\t'react-native': 'React Native',\n\t\thono: 'Hono',\n\t\tcloudflare: 'Cloudflare',\n\t\topentelemetry: 'OpenTelemetry',\n\t\tsymfony: 'Symfony',\n\t\tflutter: 'Flutter',\n\t\tandroid: 'Android',\n\t};\n\treturn labels[framework] || framework;\n}\n\nexport function getCodeLanguage(framework: Framework): 'go' | 'javascript' | 'bash' | 'php' {\n\tif (framework === 'symfony') return 'php';\n\tif (framework === 'opentelemetry') return 'go';\n\tif (framework === 'hono') return 'javascript';\n\tif (framework === 'cloudflare') return 'javascript';\n\tif (framework === 'flutter') return 'javascript'; // closest to Dart syntax highlighting\n\tif (framework === 'android') return 'javascript'; // closest to Kotlin syntax highlighting\n\treturn isJsFramework(framework) ? 'javascript' : 'go';\n}\n"],"names":["IDENT_RE","KEYWORDS","LITERALS","TYPES","ERROR_TYPES","BUILT_IN_GLOBALS","BUILT_IN_VARIABLES","BUILT_INS","javascript","hljs","regex","hasClosingTag","match","after","tag","IDENT_RE$1","FRAGMENT","XML_SELF_CLOSING","XML_TAG","response","afterMatchIndex","nextChar","m","afterMatch","KEYWORDS$1","decimalDigits","frac","decimalInteger","NUMBER","SUBST","HTML_TEMPLATE","CSS_TEMPLATE","GRAPHQL_TEMPLATE","TEMPLATE_STRING","COMMENT","SUBST_INTERNALS","SUBST_AND_COMMENTS","PARAMS_CONTAINS","PARAMS","CLASS_OR_EXTENDS","CLASS_REFERENCE","USE_STRICT","FUNCTION_DEFINITION","UPPER_CASE_CONSTANT","noneOf","list","FUNCTION_CALL","x","PROPERTY_ACCESS","GETTER_OR_SETTER","FUNC_LEAD_IN_RE","FUNCTION_VARIABLE","register","bash","VAR","BRACED_VAR","HERE_DOC","QUOTE_STRING","ESCAPED_QUOTE","APOS_STRING","ESCAPED_APOS","ARITHMETIC","SH_LIKE_SHELLS","KNOWN_SHEBANG","FUNCTION","PATH_MODE","SHELL_BUILT_INS","BASH_BUILT_INS","ZSH_BUILT_INS","GNU_CORE_UTILS","php","NOT_PERL_ETC","PASCAL_CASE_CLASS_NAME_RE","UPCASE_NAME_RE","VARIABLE","PREPROCESSOR","SINGLE_QUOTED","DOUBLE_QUOTED","HEREDOC","resp","NOWDOC","WHITESPACE","STRING","KWS","items","result","item","normalizeKeywords","CONSTRUCTOR_CALL","CONSTANT_REFERENCE","LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON","NAMED_ARGUMENT","PARAMS_MODE","FUNCTION_INVOKE","ATTRIBUTE_CONTAINS","ATTRIBUTES","yaml","URI_CHARACTERS","KEY","TEMPLATE_VARIABLES","SINGLE_QUOTE_STRING","CONTAINER_STRING","TIMESTAMP","VALUE_CONTAINER","OBJECT","ARRAY","MODES","VALUE_MODES","getInstallCommand","framework","base","getFrameworkCode","token","backendUrl","connectionString","getTestingRouteCode","isJsFramework","getTestingRouteCode2","getPackageName","getFrameworkLabel","getCodeLanguage"],"mappings":"kCAAA,MAAMA,EAAW,2BACXC,EAAW,CACf,KACA,KACA,KACA,KACA,MACA,QACA,UACA,MACA,MACA,WACA,KACA,SACA,OACA,OACA,QACA,QACA,aACA,OACA,QACA,OACA,UACA,MACA,SACA,WACA,SACA,SACA,MACA,QACA,QACA,QAIA,WACA,QACA,QACA,SACA,SACA,OACA,SACA,UAEA,OACF,EACMC,EAAW,CACf,OACA,QACA,OACA,YACA,MACA,UACF,EAGMC,EAAQ,CAEZ,SACA,WACA,UACA,SAEA,OACA,OACA,SACA,SAEA,SACA,SAEA,QACA,eACA,eACA,YACA,aACA,oBACA,aACA,aACA,cACA,cACA,gBACA,iBAEA,MACA,MACA,UACA,UAEA,cACA,oBACA,UACA,WACA,OAEA,UACA,YACA,oBACA,gBAEA,UACA,QAEA,OAEA,aACF,EAE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jC,OAAQ,IAAIqD,EAAe,KAAK,GAAG,CAAC,IACpC,UAAW,EACf,CAAG,EACKE,EAAW,CACf,UAAW,WACX,MAAO,4BACP,YAAa,GACb,SAAU,CAAEvD,EAAK,QAAQA,EAAK,WAAY,CAAE,MAAO,YAAY,CAAE,CAAC,EAClE,UAAW,CACf,EAEQR,EAAW,CACf,KACA,OACA,OACA,OACA,KACA,OACA,MACA,QACA,QACA,KACA,KACA,OACA,OACA,OACA,SACA,WACA,QACJ,EAEQC,EAAW,CACf,OACA,OACJ,EAGQ+D,EAAY,CAAE,MAAO,gBAAgB,EAGrCC,EAAkB,CACtB,QACA,KACA,WACA,OACA,OACA,OACA,SACA,UACA,OACA,MACA,WACA,SACA,QACA,OACA,QACA,OACA,QACA,OACJ,EAEQC,EAAiB,CACrB,QACA,OACA,UACA,SACA,UACA,UACA,OACA,SACA,OACA,MACA,QACA,SACA,UACA,SACA,OACA,YACA,SACA,OACA,OACA,UACA,SACA,SACJ,EAEQC,EAAgB,CACpB,WACA,KACA,UACA,MACA,MACA,QACA,QACA,gBACA,WACA,UACA,eACA,YACA,aACA,YACA,WACA,UACA,aACA,OACA,UACA,SACA,SACA,SACA,UACA,KACA,KACA,QACA,YACA,SACA,QACA,UACA,UACA,OACA,OACA,QACA,MACA,SACA,OACA,QACA,QACA,SACA,SACA,QACA,SACA,SACA,OACA,UACA,SACA,aACA,SACA,UACA,WACA,QACA,OACA,SACA,QACA,QACA,WACA,UACA,OACA,MACA,WACA,aACA,QACA,OACA,cACA,UACA,SACA,MACJ,EAEQC,EAAiB,CACrB,QACA,QACA,QACA,QACA,KACA,KACA,KACA,MACA,YACA,KACA,KACA,QACA,SACA,QACA,SACA,KACA,WACA,KACA,QACA,QACA,OACA,QACA,WACA,OACA,QACA,SACA,SACA,MACA,QACA,OACA,SACA,MACA,SACA,MACA,OACA,OACA,OACA,SACA,KACA,SACA,KACA,QACA,MACA,KACA,UACA,YACA,YACA,YACA,YACA,OACA,OACA,QACA,MACA,MACA,OACA,KACA,QACA,WACA,OACA,KACA,OACA,WACA,SACA,OACA,UACA,KACA,OACA,MACA,OACA,SAEA,SACA,SACA,KACA,OACA,UACA,OACA,QACA,QACA,UACA,QACA,WACA,SACA,MACA,WACA,SACA,MACA,QACA,OACA,SACA,OACA,MACA,OACA,UAEA,MACA,QACA,SACA,SACA,QACA,MACA,SACA,KACJ,EAEE,MAAO,CACL,KAAM,OACN,QAAS,CACP,KACA,KACN,EACI,SAAU,CACR,SAAU,wBACV,QAASpE,EACT,QAASC,EACT,SAAU,CACR,GAAGgE,EACH,GAAGC,EAEH,MACA,QACA,GAAGC,EACH,GAAGC,CACX,CACA,EACI,SAAU,CACRN,EACAtD,EAAK,QAAO,EACZuD,EACAH,EACA3B,EACAsB,EACAS,EACAR,EACAC,EACAC,EACAC,EACAN,CACN,CACA,CACA,CCpZY,MAACD,GAAO,CAAE,KAAM,gBAAQD,CAAQ,ECU5C,SAASkB,EAAI7D,EAAM,CACjB,MAAMC,EAAQD,EAAK,MAGb8D,EAAe,yBACfvE,EAAWU,EAAM,OACrB,2CACA6D,CAAY,EAERC,EAA4B9D,EAAM,OACtC,yEACA6D,CAAY,EACRE,EAAiB/D,EAAM,OAC3B,SACA6D,CAAY,EACRG,EAAW,CACf,MAAO,WACP,MAAO,OAAS1E,CACpB,EACQ2E,EAAe,CACnB,MAAO,OACP,SAAU,CACR,CAAE,MAAO,SAAU,UAAW,EAAE,EAChC,CAAE,MAAO,MAAM,EAEf,CAAE,MAAO,MAAO,UAAW,EAAG,EAC9B,CAAE,MAAO,KAAK,CACpB,CACA,EACQ9C,EAAQ,CACZ,MAAO,QACP,SAAU,CACR,CAAE,MAAO,OAAO,EAChB,CACE,MAAO,OACP,IAAK,IACb,CACA,CACA,EACQ+C,EAAgBnE,EAAK,QAAQA,EAAK,iBAAkB,CAAE,QAAS,KAAO,EACtEoE,EAAgBpE,EAAK,QAAQA,EAAK,kBAAmB,CACzD,QAAS,KACT,SAAUA,EAAK,kBAAkB,SAAS,OAAOoB,CAAK,CAC1D,CAAG,EAEKiD,EAAU,CACd,MAAO,+BACP,IAAK,gBACL,SAAUrE,EAAK,kBAAkB,SAAS,OAAOoB,CAAK,EACtD,WAAY,CAACP,EAAGyD,IAAS,CAAEA,EAAK,KAAK,YAAczD,EAAE,CAAC,GAAKA,EAAE,CAAC,CAAG,EACjE,SAAU,CAACA,EAAGyD,IAAS,CAAMA,EAAK,KAAK,cAAgBzD,EAAE,CAAC,GAAGyD,EAAK,YAAW,CAAI,CACrF,EAEQC,EAASvE,EAAK,kBAAkB,CACpC,MAAO,qBACP,IAAK,eACT,CAAG,EAEKwE,EAAa;AAAA,GACbC,EAAS,CACb,MAAO,SACP,SAAU,CACRL,EACAD,EACAE,EACAE,CACN,CACA,EACQpD,EAAS,CACb,MAAO,SACP,SAAU,CACR,CAAE,MAAO,6BAA6B,EACtC,CAAE,MAAO,+BAA+B,EACxC,CAAE,MAAO,2CAA2C,EAEpD,CAAE,MAAO,4EAA4E,CAC3F,EACI,UAAW,CACf,EACQ1B,EAAW,CACf,QACA,OACA,MACJ,EACQiF,EAAM,CAGV,YACA,UACA,WACA,eACA,2BACA,WACA,aACA,gBACA,YAGA,MACA,OACA,OACA,UACA,eACA,QACA,UACA,eAMA,QACA,WACA,MACA,KACA,SACA,OACA,UACA,QACA,WACA,OACA,QACA,QACA,QACA,QACA,WACA,UACA,UACA,KACA,SACA,OACA,SACA,QACA,aACA,SACA,aACA,QACA,YACA,WACA,OACA,OACA,UACA,QACA,UACA,QACA,MACA,UACA,OACA,SACA,OACA,KACA,aACA,aACA,YACA,MACA,UACA,YACA,QACA,WACA,OACA,UACA,QACA,MACA,QACA,SACA,KACA,UACA,YACA,SACA,WACA,OACA,SACA,SACA,SACA,QACA,QACA,MACA,QACA,MACA,MACA,OACA,QACA,MACA,OACJ,EAEQ5E,EAAY,CAGhB,UACA,iBACA,qBACA,kBACA,gBACA,cACA,iBACA,2BACA,yBACA,kBACA,yBACA,eACA,YACA,oBACA,sBACA,kBACA,gBACA,iBACA,YACA,qBACA,iBACA,eACA,mBACA,2BACA,mBACA,kBACA,gBACA,iBACA,mBACA,mBACA,uBACA,sBACA,gBACA,oBACA,iBACA,aACA,iBACA,yBACA,2BACA,kCACA,6BACA,0BACA,oBACA,4BACA,yBACA,wBACA,gBACA,mBACA,mBACA,sBACA,cACA,gBACA,gBACA,UACA,aACA,aACA,mBACA,cACA,mBACA,WACA,WACA,aACA,oBACA,YACA,qBACA,2BACA,sBAGA,cACA,aACA,UACA,QACA,YACA,WACA,oBACA,eACA,aACA,YACA,cACA,WACA,gBACA,UAGA,YACA,yBACA,SACA,kBACA,OACA,SACA,UACJ,EAsBQN,EAAW,CACf,QAASkF,EACT,SAhBgBC,GAAU,CAE1B,MAAMC,EAAS,CAAA,EACf,OAAAD,EAAM,QAAQE,GAAQ,CACpBD,EAAO,KAAKC,CAAI,EACZA,EAAK,YAAW,IAAOA,EACzBD,EAAO,KAAKC,EAAK,aAAa,EAE9BD,EAAO,KAAKC,EAAK,aAAa,CAElC,CAAC,EACMD,CACT,GAIoBnF,CAAQ,EAC1B,SAAUK,CACd,EAIQgF,EAAqBH,GAClBA,EAAM,IAAIE,GACRA,EAAK,QAAQ,SAAU,EAAE,CACjC,EAGGE,EAAmB,CAAE,SAAU,CACnC,CACE,MAAO,CACL,MACA9E,EAAM,OAAOuE,EAAY,GAAG,EAE5BvE,EAAM,OAAO,MAAO6E,EAAkBhF,CAAS,EAAE,KAAK,MAAM,EAAG,MAAM,EACrEiE,CACR,EACM,MAAO,CACL,EAAG,UACH,EAAG,aACX,CACA,CACA,CAAG,EAEKiB,EAAqB/E,EAAM,OAAOV,EAAU,YAAY,EAExD0F,EAAsC,CAAE,SAAU,CACtD,CACE,MAAO,CACLhF,EAAM,OACJ,KACAA,EAAM,UAAU,aAAa,CACvC,EACQ+E,CACR,EACM,MAAO,CAAE,EAAG,mBAAmB,CACrC,EACI,CACE,MAAO,CACL,KACA,OACR,EACM,MAAO,CAAE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AAU,CACR,QAASA,EACT,QAAS,CACP,MACA,OACZ,CACA,EACQ,SAAU,CACR,OACA,GAAG4F,CACb,CACA,EACM,GAAGA,EACH,CACE,MAAO,OACP,SAAU,CACR,CAAE,MAAOtB,CAAyB,EAClC,CAAE,MAAOC,CAAc,CACjC,CACA,CACA,CACA,EAEE,MAAO,CACL,iBAAkB,GAClB,SAAUxE,EACV,SAAU,CACR8F,EACAtF,EAAK,kBACLA,EAAK,QAAQ,KAAM,GAAG,EACtBA,EAAK,QACH,OACA,OACA,CAAE,SAAU,CACV,CACE,MAAO,SACP,MAAO,YACnB,CACA,CAAS,CACT,EACM,CACE,MAAO,uBACP,SAAU,kBACV,OAAQ,CACN,MAAO,UACP,IAAKA,EAAK,iBACV,SAAU,CACR,CACE,MAAO,MACP,MAAO,OACP,WAAY,EAC1B,CACA,CACA,CACA,EACMkE,EACA,CACE,MAAO,oBACP,MAAO,UACf,EACMD,EACAmB,EACAH,EACA,CACE,MAAO,CACL,QACA,KACA1F,CACV,EACQ,MAAO,CACL,EAAG,UACH,EAAG,mBACb,CACA,EACMwF,EACA,CACE,MAAO,WACP,UAAW,EACX,cAAe,cACf,IAAK,OACL,WAAY,GACZ,QAAS,UACT,SAAU,CACR,CAAE,cAAe,KAAK,EACtB/E,EAAK,sBACL,CACE,MAAO,KACP,WAAY,EACxB,EACU,CACE,MAAO,SACP,MAAO,MACP,IAAK,MACL,aAAc,GACd,WAAY,GACZ,SAAUR,EACV,SAAU,CACR,OACA8F,EACArB,EACAgB,EACAjF,EAAK,qBACLyE,EACAtD,CACd,CACA,CACA,CACA,EACM,CACE,MAAO,QACP,SAAU,CACR,CACE,cAAe,OACf,QAAS,OACrB,EACU,CACE,cAAe,wBACf,QAAS,QACrB,CACA,EACQ,UAAW,EACX,IAAK,KACL,WAAY,GACZ,SAAU,CACR,CAAE,cAAe,oBAAoB,EACrCnB,EAAK,qBACf,CACA,EAIM,CACE,cAAe,YACf,UAAW,EACX,IAAK,IACL,QAAS,OAC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AkDS,EAAeT,CAAS,CAAC;AAAA;AAAA,2CAAA,CAKrF,MAAO;AAAA;AAAA,GAGR,CAEA,SAASS,EAAeT,EAA8B,CACrD,OAAQA,EAAA,CACP,IAAK,QAAS,MAAO,QACrB,IAAK,SAAU,MAAO,SACtB,IAAK,QAAS,MAAO,MACrB,IAAK,SAAU,MAAO,OACtB,IAAK,SAAU,MAAO,OACtB,IAAK,UAAW,MAAO,UACvB,IAAK,QAAS,MAAO,QACrB,IAAK,SAAU,MAAO,SACtB,IAAK,eAAgB,MAAO,eAC5B,QAAS,MAAO,OAAA,CAElB,CAEO,SAASU,GAAkBV,EAA8B,CAwB/D,MAvB0C,CACzC,IAAK,MACL,MAAO,QACP,IAAK,MACL,SAAU,WACV,OAAQ,8BACR,OAAQ,qBACR,MAAO,QACP,OAAQ,SACR,MAAO,SACP,OAAQ,UACR,OAAQ,SACR,QAAS,UACT,MAAO,QACP,OAAQ,SACR,eAAgB,eAChB,KAAM,OACN,WAAY,aACZ,cAAe,gBACf,QAAS,UACT,QAAS,UACT,QAAS,SAAA,EAEIA,CAAS,GAAKA,CAC7B,CAEO,SAASW,GAAgBX,EAA4D,CAC3F,OAAIA,IAAc,UAAkB,MAChCA,IAAc,gBAAwB,KACtCA,IAAc,QACdA,IAAc,cACdA,IAAc,WACdA,IAAc,WACXO,EAAcP,CAAS,EADM,aACa,IAClD","x_google_ignoreList":[0,1,2,3,4,5,6,7]}
\ No newline at end of file
+{"version":3,"file":"BApWZWbV.js","sources":["../../../../../../node_modules/highlight.js/es/languages/javascript.js","../../../../../../node_modules/svelte-highlight/languages/javascript.js","../../../../../../node_modules/highlight.js/es/languages/bash.js","../../../../../../node_modules/svelte-highlight/languages/bash.js","../../../../../../node_modules/highlight.js/es/languages/php.js","../../../../../../node_modules/svelte-highlight/languages/php.js","../../../../../../node_modules/highlight.js/es/languages/yaml.js","../../../../../../node_modules/svelte-highlight/languages/yaml.js","../../../../../../src/lib/utils/framework-code.ts"],"sourcesContent":["const IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';\nconst KEYWORDS = [\n \"as\", // for exports\n \"in\",\n \"of\",\n \"if\",\n \"for\",\n \"while\",\n \"finally\",\n \"var\",\n \"new\",\n \"function\",\n \"do\",\n \"return\",\n \"void\",\n \"else\",\n \"break\",\n \"catch\",\n \"instanceof\",\n \"with\",\n \"throw\",\n \"case\",\n \"default\",\n \"try\",\n \"switch\",\n \"continue\",\n \"typeof\",\n \"delete\",\n \"let\",\n \"yield\",\n \"const\",\n \"class\",\n // JS handles these with a special rule\n // \"get\",\n // \"set\",\n \"debugger\",\n \"async\",\n \"await\",\n \"static\",\n \"import\",\n \"from\",\n \"export\",\n \"extends\",\n // It's reached stage 3, which is \"recommended for implementation\":\n \"using\"\n];\nconst LITERALS = [\n \"true\",\n \"false\",\n \"null\",\n \"undefined\",\n \"NaN\",\n \"Infinity\"\n];\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects\nconst TYPES = [\n // Fundamental objects\n \"Object\",\n \"Function\",\n \"Boolean\",\n \"Symbol\",\n // numbers and dates\n \"Math\",\n \"Date\",\n \"Number\",\n \"BigInt\",\n // text\n \"String\",\n \"RegExp\",\n // Indexed collections\n \"Array\",\n \"Float32Array\",\n \"Float64Array\",\n \"Int8Array\",\n \"Uint8Array\",\n \"Uint8ClampedArray\",\n \"Int16Array\",\n \"Int32Array\",\n \"Uint16Array\",\n \"Uint32Array\",\n \"BigInt64Array\",\n \"BigUint64Array\",\n // Keyed collections\n \"Set\",\n \"Map\",\n \"WeakSet\",\n \"WeakMap\",\n // Structured data\n \"ArrayBuffer\",\n \"SharedArrayBuffer\",\n \"Atomics\",\n \"DataView\",\n \"JSON\",\n // Control abstraction objects\n \"Promise\",\n \"Generator\",\n \"GeneratorFunction\",\n \"AsyncFunction\",\n // Reflection\n \"Reflect\",\n \"Proxy\",\n // Internationalization\n \"Intl\",\n // WebAssembly\n \"WebAssembly\"\n];\n\nconst ERROR_TYPES = [\n \"Error\",\n \"EvalError\",\n \"InternalError\",\n \"RangeError\",\n \"ReferenceError\",\n \"SyntaxError\",\n \"TypeError\",\n \"URIError\"\n];\n\nconst BUILT_IN_GLOBALS = [\n \"setInterval\",\n \"setTimeout\",\n \"clearInterval\",\n \"clearTimeout\",\n\n \"require\",\n \"exports\",\n\n \"eval\",\n \"isFinite\",\n \"isNaN\",\n \"parseFloat\",\n \"parseInt\",\n \"decodeURI\",\n \"decodeURIComponent\",\n \"encodeURI\",\n \"encodeURIComponent\",\n \"escape\",\n \"unescape\"\n];\n\nconst BUILT_IN_VARIABLES = [\n \"arguments\",\n \"this\",\n \"super\",\n \"console\",\n \"window\",\n \"document\",\n \"localStorage\",\n \"sessionStorage\",\n \"module\",\n \"global\" // Node.js\n];\n\nconst BUILT_INS = [].concat(\n BUILT_IN_GLOBALS,\n TYPES,\n ERROR_TYPES\n);\n\n/*\nLanguage: JavaScript\nDescription: JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions.\nCategory: common, scripting, web\nWebsite: https://developer.mozilla.org/en-US/docs/Web/JavaScript\n*/\n\n\n/** @type LanguageFn */\nfunction javascript(hljs) {\n const regex = hljs.regex;\n /**\n * Takes a string like \"<Booger\" and checks to see\n * if we can find a matching \"</Booger\" later in the\n * content.\n * @param {RegExpMatchArray} match\n * @param {{after:number}} param1\n */\n const hasClosingTag = (match, { after }) => {\n const tag = \"</\" + match[0].slice(1);\n const pos = match.input.indexOf(tag, after);\n return pos !== -1;\n };\n\n const IDENT_RE$1 = IDENT_RE;\n const FRAGMENT = {\n begin: '<>',\n end: '</>'\n };\n // to avoid some special cases inside isTrulyOpeningTag\n const XML_SELF_CLOSING = /<[A-Za-z0-9\\\\._:-]+\\s*\\/>/;\n const XML_TAG = {\n begin: /<[A-Za-z0-9\\\\._:-]+/,\n end: /\\/[A-Za-z0-9\\\\._:-]+>|\\/>/,\n /**\n * @param {RegExpMatchArray} match\n * @param {CallbackResponse} response\n */\n isTrulyOpeningTag: (match, response) => {\n const afterMatchIndex = match[0].length + match.index;\n const nextChar = match.input[afterMatchIndex];\n if (\n // HTML should not include another raw `<` inside a tag\n // nested type?\n // `<Array<Array<number>>`, etc.\n nextChar === \"<\" ||\n // the , gives away that this is not HTML\n // `<T, A extends keyof T, V>`\n nextChar === \",\"\n ) {\n response.ignoreMatch();\n return;\n }\n\n // `<something>`\n // Quite possibly a tag, lets look for a matching closing tag...\n if (nextChar === \">\") {\n // if we cannot find a matching closing tag, then we\n // will ignore it\n if (!hasClosingTag(match, { after: afterMatchIndex })) {\n response.ignoreMatch();\n }\n }\n\n // `<blah />` (self-closing)\n // handled by simpleSelfClosing rule\n\n let m;\n const afterMatch = match.input.substring(afterMatchIndex);\n\n // some more template typing stuff\n // <T = any>(key?: string) => Modify<\n if ((m = afterMatch.match(/^\\s*=/))) {\n response.ignoreMatch();\n return;\n }\n\n // `<From extends string>`\n // technically this could be HTML, but it smells like a type\n // NOTE: This is ugh, but added specifically for https://github.com/highlightjs/highlight.js/issues/3276\n if ((m = afterMatch.match(/^\\s+extends\\s+/))) {\n if (m.index === 0) {\n response.ignoreMatch();\n // eslint-disable-next-line no-useless-return\n return;\n }\n }\n }\n };\n const KEYWORDS$1 = {\n $pattern: IDENT_RE,\n keyword: KEYWORDS,\n literal: LITERALS,\n built_in: BUILT_INS,\n \"variable.language\": BUILT_IN_VARIABLES\n };\n\n // https://tc39.es/ecma262/#sec-literals-numeric-literals\n const decimalDigits = '[0-9](_?[0-9])*';\n const frac = `\\\\.(${decimalDigits})`;\n // DecimalIntegerLiteral, including Annex B NonOctalDecimalIntegerLiteral\n // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals\n const decimalInteger = `0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`;\n const NUMBER = {\n className: 'number',\n variants: [\n // DecimalLiteral\n { begin: `(\\\\b(${decimalInteger})((${frac})|\\\\.)?|(${frac}))` +\n `[eE][+-]?(${decimalDigits})\\\\b` },\n { begin: `\\\\b(${decimalInteger})\\\\b((${frac})\\\\b|\\\\.)?|(${frac})\\\\b` },\n\n // DecimalBigIntegerLiteral\n { begin: `\\\\b(0|[1-9](_?[0-9])*)n\\\\b` },\n\n // NonDecimalIntegerLiteral\n { begin: \"\\\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\\\b\" },\n { begin: \"\\\\b0[bB][0-1](_?[0-1])*n?\\\\b\" },\n { begin: \"\\\\b0[oO][0-7](_?[0-7])*n?\\\\b\" },\n\n // LegacyOctalIntegerLiteral (does not include underscore separators)\n // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals\n { begin: \"\\\\b0[0-7]+n?\\\\b\" },\n ],\n relevance: 0\n };\n\n const SUBST = {\n className: 'subst',\n begin: '\\\\$\\\\{',\n end: '\\\\}',\n keywords: KEYWORDS$1,\n contains: [] // defined later\n };\n const HTML_TEMPLATE = {\n begin: '\\.?html`',\n end: '',\n starts: {\n end: '`',\n returnEnd: false,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ],\n subLanguage: 'xml'\n }\n };\n const CSS_TEMPLATE = {\n begin: '\\.?css`',\n end: '',\n starts: {\n end: '`',\n returnEnd: false,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ],\n subLanguage: 'css'\n }\n };\n const GRAPHQL_TEMPLATE = {\n begin: '\\.?gql`',\n end: '',\n starts: {\n end: '`',\n returnEnd: false,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ],\n subLanguage: 'graphql'\n }\n };\n const TEMPLATE_STRING = {\n className: 'string',\n begin: '`',\n end: '`',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ]\n };\n const JSDOC_COMMENT = hljs.COMMENT(\n /\\/\\*\\*(?!\\/)/,\n '\\\\*/',\n {\n relevance: 0,\n contains: [\n {\n begin: '(?=@[A-Za-z]+)',\n relevance: 0,\n contains: [\n {\n className: 'doctag',\n begin: '@[A-Za-z]+'\n },\n {\n className: 'type',\n begin: '\\\\{',\n end: '\\\\}',\n excludeEnd: true,\n excludeBegin: true,\n relevance: 0\n },\n {\n className: 'variable',\n begin: IDENT_RE$1 + '(?=\\\\s*(-)|$)',\n endsParent: true,\n relevance: 0\n },\n // eat spaces (not newlines) so we can find\n // types or variables\n {\n begin: /(?=[^\\n])\\s/,\n relevance: 0\n }\n ]\n }\n ]\n }\n );\n const COMMENT = {\n className: \"comment\",\n variants: [\n JSDOC_COMMENT,\n hljs.C_BLOCK_COMMENT_MODE,\n hljs.C_LINE_COMMENT_MODE\n ]\n };\n const SUBST_INTERNALS = [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n HTML_TEMPLATE,\n CSS_TEMPLATE,\n GRAPHQL_TEMPLATE,\n TEMPLATE_STRING,\n // Skip numbers when they are part of a variable name\n { match: /\\$\\d+/ },\n NUMBER,\n // This is intentional:\n // See https://github.com/highlightjs/highlight.js/issues/3288\n // hljs.REGEXP_MODE\n ];\n SUBST.contains = SUBST_INTERNALS\n .concat({\n // we need to pair up {} inside our subst to prevent\n // it from ending too early by matching another }\n begin: /\\{/,\n end: /\\}/,\n keywords: KEYWORDS$1,\n contains: [\n \"self\"\n ].concat(SUBST_INTERNALS)\n });\n const SUBST_AND_COMMENTS = [].concat(COMMENT, SUBST.contains);\n const PARAMS_CONTAINS = SUBST_AND_COMMENTS.concat([\n // eat recursive parens in sub expressions\n {\n begin: /(\\s*)\\(/,\n end: /\\)/,\n keywords: KEYWORDS$1,\n contains: [\"self\"].concat(SUBST_AND_COMMENTS)\n }\n ]);\n const PARAMS = {\n className: 'params',\n // convert this to negative lookbehind in v12\n begin: /(\\s*)\\(/, // to match the parms with\n end: /\\)/,\n excludeBegin: true,\n excludeEnd: true,\n keywords: KEYWORDS$1,\n contains: PARAMS_CONTAINS\n };\n\n // ES6 classes\n const CLASS_OR_EXTENDS = {\n variants: [\n // class Car extends vehicle\n {\n match: [\n /class/,\n /\\s+/,\n IDENT_RE$1,\n /\\s+/,\n /extends/,\n /\\s+/,\n regex.concat(IDENT_RE$1, \"(\", regex.concat(/\\./, IDENT_RE$1), \")*\")\n ],\n scope: {\n 1: \"keyword\",\n 3: \"title.class\",\n 5: \"keyword\",\n 7: \"title.class.inherited\"\n }\n },\n // class Car\n {\n match: [\n /class/,\n /\\s+/,\n IDENT_RE$1\n ],\n scope: {\n 1: \"keyword\",\n 3: \"title.class\"\n }\n },\n\n ]\n };\n\n const CLASS_REFERENCE = {\n relevance: 0,\n match:\n regex.either(\n // Hard coded exceptions\n /\\bJSON/,\n // Float32Array, OutT\n /\\b[A-Z][a-z]+([A-Z][a-z]*|\\d)*/,\n // CSSFactory, CSSFactoryT\n /\\b[A-Z]{2,}([A-Z][a-z]+|\\d)+([A-Z][a-z]*)*/,\n // FPs, FPsT\n /\\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\\d)*([A-Z][a-z]*)*/,\n // P\n // single letters are not highlighted\n // BLAH\n // this will be flagged as a UPPER_CASE_CONSTANT instead\n ),\n className: \"title.class\",\n keywords: {\n _: [\n // se we still get relevance credit for JS library classes\n ...TYPES,\n ...ERROR_TYPES\n ]\n }\n };\n\n const USE_STRICT = {\n label: \"use_strict\",\n className: 'meta',\n relevance: 10,\n begin: /^\\s*['\"]use (strict|asm)['\"]/\n };\n\n const FUNCTION_DEFINITION = {\n variants: [\n {\n match: [\n /function/,\n /\\s+/,\n IDENT_RE$1,\n /(?=\\s*\\()/\n ]\n },\n // anonymous function\n {\n match: [\n /function/,\n /\\s*(?=\\()/\n ]\n }\n ],\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n },\n label: \"func.def\",\n contains: [ PARAMS ],\n illegal: /%/\n };\n\n const UPPER_CASE_CONSTANT = {\n relevance: 0,\n match: /\\b[A-Z][A-Z_0-9]+\\b/,\n className: \"variable.constant\"\n };\n\n function noneOf(list) {\n return regex.concat(\"(?!\", list.join(\"|\"), \")\");\n }\n\n const FUNCTION_CALL = {\n match: regex.concat(\n /\\b/,\n noneOf([\n ...BUILT_IN_GLOBALS,\n \"super\",\n \"import\"\n ].map(x => `${x}\\\\s*\\\\(`)),\n IDENT_RE$1, regex.lookahead(/\\s*\\(/)),\n className: \"title.function\",\n relevance: 0\n };\n\n const PROPERTY_ACCESS = {\n begin: regex.concat(/\\./, regex.lookahead(\n regex.concat(IDENT_RE$1, /(?![0-9A-Za-z$_(])/)\n )),\n end: IDENT_RE$1,\n excludeBegin: true,\n keywords: \"prototype\",\n className: \"property\",\n relevance: 0\n };\n\n const GETTER_OR_SETTER = {\n match: [\n /get|set/,\n /\\s+/,\n IDENT_RE$1,\n /(?=\\()/\n ],\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n },\n contains: [\n { // eat to avoid empty params\n begin: /\\(\\)/\n },\n PARAMS\n ]\n };\n\n const FUNC_LEAD_IN_RE = '(\\\\(' +\n '[^()]*(\\\\(' +\n '[^()]*(\\\\(' +\n '[^()]*' +\n '\\\\)[^()]*)*' +\n '\\\\)[^()]*)*' +\n '\\\\)|' + hljs.UNDERSCORE_IDENT_RE + ')\\\\s*=>';\n\n const FUNCTION_VARIABLE = {\n match: [\n /const|var|let/, /\\s+/,\n IDENT_RE$1, /\\s*/,\n /=\\s*/,\n /(async\\s*)?/, // async is optional\n regex.lookahead(FUNC_LEAD_IN_RE)\n ],\n keywords: \"async\",\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n },\n contains: [\n PARAMS\n ]\n };\n\n return {\n name: 'JavaScript',\n aliases: ['js', 'jsx', 'mjs', 'cjs'],\n keywords: KEYWORDS$1,\n // this will be extended by TypeScript\n exports: { PARAMS_CONTAINS, CLASS_REFERENCE },\n illegal: /#(?![$_A-z])/,\n contains: [\n hljs.SHEBANG({\n label: \"shebang\",\n binary: \"node\",\n relevance: 5\n }),\n USE_STRICT,\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n HTML_TEMPLATE,\n CSS_TEMPLATE,\n GRAPHQL_TEMPLATE,\n TEMPLATE_STRING,\n COMMENT,\n // Skip numbers when they are part of a variable name\n { match: /\\$\\d+/ },\n NUMBER,\n CLASS_REFERENCE,\n {\n scope: 'attr',\n match: IDENT_RE$1 + regex.lookahead(':'),\n relevance: 0\n },\n FUNCTION_VARIABLE,\n { // \"value\" container\n begin: '(' + hljs.RE_STARTERS_RE + '|\\\\b(case|return|throw)\\\\b)\\\\s*',\n keywords: 'return throw case',\n relevance: 0,\n contains: [\n COMMENT,\n hljs.REGEXP_MODE,\n {\n className: 'function',\n // we have to count the parens to make sure we actually have the\n // correct bounding ( ) before the =>. There could be any number of\n // sub-expressions inside also surrounded by parens.\n begin: FUNC_LEAD_IN_RE,\n returnBegin: true,\n end: '\\\\s*=>',\n contains: [\n {\n className: 'params',\n variants: [\n {\n begin: hljs.UNDERSCORE_IDENT_RE,\n relevance: 0\n },\n {\n className: null,\n begin: /\\(\\s*\\)/,\n skip: true\n },\n {\n begin: /(\\s*)\\(/,\n end: /\\)/,\n excludeBegin: true,\n excludeEnd: true,\n keywords: KEYWORDS$1,\n contains: PARAMS_CONTAINS\n }\n ]\n }\n ]\n },\n { // could be a comma delimited list of params to a function call\n begin: /,/,\n relevance: 0\n },\n {\n match: /\\s+/,\n relevance: 0\n },\n { // JSX\n variants: [\n { begin: FRAGMENT.begin, end: FRAGMENT.end },\n { match: XML_SELF_CLOSING },\n {\n begin: XML_TAG.begin,\n // we carefully check the opening tag to see if it truly\n // is a tag and not a false positive\n 'on:begin': XML_TAG.isTrulyOpeningTag,\n end: XML_TAG.end\n }\n ],\n subLanguage: 'xml',\n contains: [\n {\n begin: XML_TAG.begin,\n end: XML_TAG.end,\n skip: true,\n contains: ['self']\n }\n ]\n }\n ],\n },\n FUNCTION_DEFINITION,\n {\n // prevent this from getting swallowed up by function\n // since they appear \"function like\"\n beginKeywords: \"while if switch catch for\"\n },\n {\n // we have to count the parens to make sure we actually have the correct\n // bounding ( ). There could be any number of sub-expressions inside\n // also surrounded by parens.\n begin: '\\\\b(?!function)' + hljs.UNDERSCORE_IDENT_RE +\n '\\\\(' + // first parens\n '[^()]*(\\\\(' +\n '[^()]*(\\\\(' +\n '[^()]*' +\n '\\\\)[^()]*)*' +\n '\\\\)[^()]*)*' +\n '\\\\)\\\\s*\\\\{', // end parens\n returnBegin:true,\n label: \"func.def\",\n contains: [\n PARAMS,\n hljs.inherit(hljs.TITLE_MODE, { begin: IDENT_RE$1, className: \"title.function\" })\n ]\n },\n // catch ... so it won't trigger the property rule below\n {\n match: /\\.\\.\\./,\n relevance: 0\n },\n PROPERTY_ACCESS,\n // hack: prevents detection of keywords in some circumstances\n // .keyword()\n // $keyword = x\n {\n match: '\\\\$' + IDENT_RE$1,\n relevance: 0\n },\n {\n match: [ /\\bconstructor(?=\\s*\\()/ ],\n className: { 1: \"title.function\" },\n contains: [ PARAMS ]\n },\n FUNCTION_CALL,\n UPPER_CASE_CONSTANT,\n CLASS_OR_EXTENDS,\n GETTER_OR_SETTER,\n {\n match: /\\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`\n }\n ]\n };\n}\n\nexport { javascript as default };\n","import register from \"highlight.js/lib/languages/javascript\";\n\nexport const javascript = { name: \"javascript\", register };\nexport default javascript;\n","/*\nLanguage: Bash\nAuthor: vah <[email protected]>\nContributrors: Benjamin Pannell <[email protected]>\nWebsite: https://www.gnu.org/software/bash/\nCategory: common, scripting\n*/\n\n/** @type LanguageFn */\nfunction bash(hljs) {\n const regex = hljs.regex;\n const VAR = {};\n const BRACED_VAR = {\n begin: /\\$\\{/,\n end: /\\}/,\n contains: [\n \"self\",\n {\n begin: /:-/,\n contains: [ VAR ]\n } // default values\n ]\n };\n Object.assign(VAR, {\n className: 'variable',\n variants: [\n { begin: regex.concat(/\\$[\\w\\d#@][\\w\\d_]*/,\n // negative look-ahead tries to avoid matching patterns that are not\n // Perl at all like $ident$, @ident@, etc.\n `(?![\\\\w\\\\d])(?![$])`) },\n BRACED_VAR\n ]\n });\n\n const SUBST = {\n className: 'subst',\n begin: /\\$\\(/,\n end: /\\)/,\n contains: [ hljs.BACKSLASH_ESCAPE ]\n };\n const COMMENT = hljs.inherit(\n hljs.COMMENT(),\n {\n match: [\n /(^|\\s)/,\n /#.*$/\n ],\n scope: {\n 2: 'comment'\n }\n }\n );\n const HERE_DOC = {\n begin: /<<-?\\s*(?=\\w+)/,\n starts: { contains: [\n hljs.END_SAME_AS_BEGIN({\n begin: /(\\w+)/,\n end: /(\\w+)/,\n className: 'string'\n })\n ] }\n };\n const QUOTE_STRING = {\n className: 'string',\n begin: /\"/,\n end: /\"/,\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR,\n SUBST\n ]\n };\n SUBST.contains.push(QUOTE_STRING);\n const ESCAPED_QUOTE = {\n match: /\\\\\"/\n };\n const APOS_STRING = {\n className: 'string',\n begin: /'/,\n end: /'/\n };\n const ESCAPED_APOS = {\n match: /\\\\'/\n };\n const ARITHMETIC = {\n begin: /\\$?\\(\\(/,\n end: /\\)\\)/,\n contains: [\n {\n begin: /\\d+#[0-9a-f]+/,\n className: \"number\"\n },\n hljs.NUMBER_MODE,\n VAR\n ]\n };\n const SH_LIKE_SHELLS = [\n \"fish\",\n \"bash\",\n \"zsh\",\n \"sh\",\n \"csh\",\n \"ksh\",\n \"tcsh\",\n \"dash\",\n \"scsh\",\n ];\n const KNOWN_SHEBANG = hljs.SHEBANG({\n binary: `(${SH_LIKE_SHELLS.join(\"|\")})`,\n relevance: 10\n });\n const FUNCTION = {\n className: 'function',\n begin: /\\w[\\w\\d_]*\\s*\\(\\s*\\)\\s*\\{/,\n returnBegin: true,\n contains: [ hljs.inherit(hljs.TITLE_MODE, { begin: /\\w[\\w\\d_]*/ }) ],\n relevance: 0\n };\n\n const KEYWORDS = [\n \"if\",\n \"then\",\n \"else\",\n \"elif\",\n \"fi\",\n \"time\",\n \"for\",\n \"while\",\n \"until\",\n \"in\",\n \"do\",\n \"done\",\n \"case\",\n \"esac\",\n \"coproc\",\n \"function\",\n \"select\"\n ];\n\n const LITERALS = [\n \"true\",\n \"false\"\n ];\n\n // to consume paths to prevent keyword matches inside them\n const PATH_MODE = { match: /(\\/[a-z._-]+)+/ };\n\n // http://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html\n const SHELL_BUILT_INS = [\n \"break\",\n \"cd\",\n \"continue\",\n \"eval\",\n \"exec\",\n \"exit\",\n \"export\",\n \"getopts\",\n \"hash\",\n \"pwd\",\n \"readonly\",\n \"return\",\n \"shift\",\n \"test\",\n \"times\",\n \"trap\",\n \"umask\",\n \"unset\"\n ];\n\n const BASH_BUILT_INS = [\n \"alias\",\n \"bind\",\n \"builtin\",\n \"caller\",\n \"command\",\n \"declare\",\n \"echo\",\n \"enable\",\n \"help\",\n \"let\",\n \"local\",\n \"logout\",\n \"mapfile\",\n \"printf\",\n \"read\",\n \"readarray\",\n \"source\",\n \"sudo\",\n \"type\",\n \"typeset\",\n \"ulimit\",\n \"unalias\"\n ];\n\n const ZSH_BUILT_INS = [\n \"autoload\",\n \"bg\",\n \"bindkey\",\n \"bye\",\n \"cap\",\n \"chdir\",\n \"clone\",\n \"comparguments\",\n \"compcall\",\n \"compctl\",\n \"compdescribe\",\n \"compfiles\",\n \"compgroups\",\n \"compquote\",\n \"comptags\",\n \"comptry\",\n \"compvalues\",\n \"dirs\",\n \"disable\",\n \"disown\",\n \"echotc\",\n \"echoti\",\n \"emulate\",\n \"fc\",\n \"fg\",\n \"float\",\n \"functions\",\n \"getcap\",\n \"getln\",\n \"history\",\n \"integer\",\n \"jobs\",\n \"kill\",\n \"limit\",\n \"log\",\n \"noglob\",\n \"popd\",\n \"print\",\n \"pushd\",\n \"pushln\",\n \"rehash\",\n \"sched\",\n \"setcap\",\n \"setopt\",\n \"stat\",\n \"suspend\",\n \"ttyctl\",\n \"unfunction\",\n \"unhash\",\n \"unlimit\",\n \"unsetopt\",\n \"vared\",\n \"wait\",\n \"whence\",\n \"where\",\n \"which\",\n \"zcompile\",\n \"zformat\",\n \"zftp\",\n \"zle\",\n \"zmodload\",\n \"zparseopts\",\n \"zprof\",\n \"zpty\",\n \"zregexparse\",\n \"zsocket\",\n \"zstyle\",\n \"ztcp\"\n ];\n\n const GNU_CORE_UTILS = [\n \"chcon\",\n \"chgrp\",\n \"chown\",\n \"chmod\",\n \"cp\",\n \"dd\",\n \"df\",\n \"dir\",\n \"dircolors\",\n \"ln\",\n \"ls\",\n \"mkdir\",\n \"mkfifo\",\n \"mknod\",\n \"mktemp\",\n \"mv\",\n \"realpath\",\n \"rm\",\n \"rmdir\",\n \"shred\",\n \"sync\",\n \"touch\",\n \"truncate\",\n \"vdir\",\n \"b2sum\",\n \"base32\",\n \"base64\",\n \"cat\",\n \"cksum\",\n \"comm\",\n \"csplit\",\n \"cut\",\n \"expand\",\n \"fmt\",\n \"fold\",\n \"head\",\n \"join\",\n \"md5sum\",\n \"nl\",\n \"numfmt\",\n \"od\",\n \"paste\",\n \"ptx\",\n \"pr\",\n \"sha1sum\",\n \"sha224sum\",\n \"sha256sum\",\n \"sha384sum\",\n \"sha512sum\",\n \"shuf\",\n \"sort\",\n \"split\",\n \"sum\",\n \"tac\",\n \"tail\",\n \"tr\",\n \"tsort\",\n \"unexpand\",\n \"uniq\",\n \"wc\",\n \"arch\",\n \"basename\",\n \"chroot\",\n \"date\",\n \"dirname\",\n \"du\",\n \"echo\",\n \"env\",\n \"expr\",\n \"factor\",\n // \"false\", // keyword literal already\n \"groups\",\n \"hostid\",\n \"id\",\n \"link\",\n \"logname\",\n \"nice\",\n \"nohup\",\n \"nproc\",\n \"pathchk\",\n \"pinky\",\n \"printenv\",\n \"printf\",\n \"pwd\",\n \"readlink\",\n \"runcon\",\n \"seq\",\n \"sleep\",\n \"stat\",\n \"stdbuf\",\n \"stty\",\n \"tee\",\n \"test\",\n \"timeout\",\n // \"true\", // keyword literal already\n \"tty\",\n \"uname\",\n \"unlink\",\n \"uptime\",\n \"users\",\n \"who\",\n \"whoami\",\n \"yes\"\n ];\n\n return {\n name: 'Bash',\n aliases: [\n 'sh',\n 'zsh'\n ],\n keywords: {\n $pattern: /\\b[a-z][a-z0-9._-]+\\b/,\n keyword: KEYWORDS,\n literal: LITERALS,\n built_in: [\n ...SHELL_BUILT_INS,\n ...BASH_BUILT_INS,\n // Shell modifiers\n \"set\",\n \"shopt\",\n ...ZSH_BUILT_INS,\n ...GNU_CORE_UTILS\n ]\n },\n contains: [\n KNOWN_SHEBANG, // to catch known shells and boost relevancy\n hljs.SHEBANG(), // to catch unknown shells but still highlight the shebang\n FUNCTION,\n ARITHMETIC,\n COMMENT,\n HERE_DOC,\n PATH_MODE,\n QUOTE_STRING,\n ESCAPED_QUOTE,\n APOS_STRING,\n ESCAPED_APOS,\n VAR\n ]\n };\n}\n\nexport { bash as default };\n","import register from \"highlight.js/lib/languages/bash\";\n\nexport const bash = { name: \"bash\", register };\nexport default bash;\n","/*\nLanguage: PHP\nAuthor: Victor Karamzin <[email protected]>\nContributors: Evgeny Stepanischev <[email protected]>, Ivan Sagalaev <[email protected]>\nWebsite: https://www.php.net\nCategory: common\n*/\n\n/**\n * @param {HLJSApi} hljs\n * @returns {LanguageDetail}\n * */\nfunction php(hljs) {\n const regex = hljs.regex;\n // negative look-ahead tries to avoid matching patterns that are not\n // Perl at all like $ident$, @ident@, etc.\n const NOT_PERL_ETC = /(?![A-Za-z0-9])(?![$])/;\n const IDENT_RE = regex.concat(\n /[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*/,\n NOT_PERL_ETC);\n // Will not detect camelCase classes\n const PASCAL_CASE_CLASS_NAME_RE = regex.concat(\n /(\\\\?[A-Z][a-z0-9_\\x7f-\\xff]+|\\\\?[A-Z]+(?=[A-Z][a-z0-9_\\x7f-\\xff])){1,}/,\n NOT_PERL_ETC);\n const UPCASE_NAME_RE = regex.concat(\n /[A-Z]+/,\n NOT_PERL_ETC);\n const VARIABLE = {\n scope: 'variable',\n match: '\\\\$+' + IDENT_RE,\n };\n const PREPROCESSOR = {\n scope: \"meta\",\n variants: [\n { begin: /<\\?php/, relevance: 10 }, // boost for obvious PHP\n { begin: /<\\?=/ },\n // less relevant per PSR-1 which says not to use short-tags\n { begin: /<\\?/, relevance: 0.1 },\n { begin: /\\?>/ } // end php tag\n ]\n };\n const SUBST = {\n scope: 'subst',\n variants: [\n { begin: /\\$\\w+/ },\n {\n begin: /\\{\\$/,\n end: /\\}/\n }\n ]\n };\n const SINGLE_QUOTED = hljs.inherit(hljs.APOS_STRING_MODE, { illegal: null, });\n const DOUBLE_QUOTED = hljs.inherit(hljs.QUOTE_STRING_MODE, {\n illegal: null,\n contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST),\n });\n\n const HEREDOC = {\n begin: /<<<[ \\t]*(?:(\\w+)|\"(\\w+)\")\\n/,\n end: /[ \\t]*(\\w+)\\b/,\n contains: hljs.QUOTE_STRING_MODE.contains.concat(SUBST),\n 'on:begin': (m, resp) => { resp.data._beginMatch = m[1] || m[2]; },\n 'on:end': (m, resp) => { if (resp.data._beginMatch !== m[1]) resp.ignoreMatch(); },\n };\n\n const NOWDOC = hljs.END_SAME_AS_BEGIN({\n begin: /<<<[ \\t]*'(\\w+)'\\n/,\n end: /[ \\t]*(\\w+)\\b/,\n });\n // list of valid whitespaces because non-breaking space might be part of a IDENT_RE\n const WHITESPACE = '[ \\t\\n]';\n const STRING = {\n scope: 'string',\n variants: [\n DOUBLE_QUOTED,\n SINGLE_QUOTED,\n HEREDOC,\n NOWDOC\n ]\n };\n const NUMBER = {\n scope: 'number',\n variants: [\n { begin: `\\\\b0[bB][01]+(?:_[01]+)*\\\\b` }, // Binary w/ underscore support\n { begin: `\\\\b0[oO][0-7]+(?:_[0-7]+)*\\\\b` }, // Octals w/ underscore support\n { begin: `\\\\b0[xX][\\\\da-fA-F]+(?:_[\\\\da-fA-F]+)*\\\\b` }, // Hex w/ underscore support\n // Decimals w/ underscore support, with optional fragments and scientific exponent (e) suffix.\n { begin: `(?:\\\\b\\\\d+(?:_\\\\d+)*(\\\\.(?:\\\\d+(?:_\\\\d+)*))?|\\\\B\\\\.\\\\d+)(?:[eE][+-]?\\\\d+)?` }\n ],\n relevance: 0\n };\n const LITERALS = [\n \"false\",\n \"null\",\n \"true\"\n ];\n const KWS = [\n // Magic constants:\n // <https://www.php.net/manual/en/language.constants.predefined.php>\n \"__CLASS__\",\n \"__DIR__\",\n \"__FILE__\",\n \"__FUNCTION__\",\n \"__COMPILER_HALT_OFFSET__\",\n \"__LINE__\",\n \"__METHOD__\",\n \"__NAMESPACE__\",\n \"__TRAIT__\",\n // Function that look like language construct or language construct that look like function:\n // List of keywords that may not require parenthesis\n \"die\",\n \"echo\",\n \"exit\",\n \"include\",\n \"include_once\",\n \"print\",\n \"require\",\n \"require_once\",\n // These are not language construct (function) but operate on the currently-executing function and can access the current symbol table\n // 'compact extract func_get_arg func_get_args func_num_args get_called_class get_parent_class ' +\n // Other keywords:\n // <https://www.php.net/manual/en/reserved.php>\n // <https://www.php.net/manual/en/language.types.type-juggling.php>\n \"array\",\n \"abstract\",\n \"and\",\n \"as\",\n \"binary\",\n \"bool\",\n \"boolean\",\n \"break\",\n \"callable\",\n \"case\",\n \"catch\",\n \"class\",\n \"clone\",\n \"const\",\n \"continue\",\n \"declare\",\n \"default\",\n \"do\",\n \"double\",\n \"else\",\n \"elseif\",\n \"empty\",\n \"enddeclare\",\n \"endfor\",\n \"endforeach\",\n \"endif\",\n \"endswitch\",\n \"endwhile\",\n \"enum\",\n \"eval\",\n \"extends\",\n \"final\",\n \"finally\",\n \"float\",\n \"for\",\n \"foreach\",\n \"from\",\n \"global\",\n \"goto\",\n \"if\",\n \"implements\",\n \"instanceof\",\n \"insteadof\",\n \"int\",\n \"integer\",\n \"interface\",\n \"isset\",\n \"iterable\",\n \"list\",\n \"match|0\",\n \"mixed\",\n \"new\",\n \"never\",\n \"object\",\n \"or\",\n \"private\",\n \"protected\",\n \"public\",\n \"readonly\",\n \"real\",\n \"return\",\n \"string\",\n \"switch\",\n \"throw\",\n \"trait\",\n \"try\",\n \"unset\",\n \"use\",\n \"var\",\n \"void\",\n \"while\",\n \"xor\",\n \"yield\"\n ];\n\n const BUILT_INS = [\n // Standard PHP library:\n // <https://www.php.net/manual/en/book.spl.php>\n \"Error|0\",\n \"AppendIterator\",\n \"ArgumentCountError\",\n \"ArithmeticError\",\n \"ArrayIterator\",\n \"ArrayObject\",\n \"AssertionError\",\n \"BadFunctionCallException\",\n \"BadMethodCallException\",\n \"CachingIterator\",\n \"CallbackFilterIterator\",\n \"CompileError\",\n \"Countable\",\n \"DirectoryIterator\",\n \"DivisionByZeroError\",\n \"DomainException\",\n \"EmptyIterator\",\n \"ErrorException\",\n \"Exception\",\n \"FilesystemIterator\",\n \"FilterIterator\",\n \"GlobIterator\",\n \"InfiniteIterator\",\n \"InvalidArgumentException\",\n \"IteratorIterator\",\n \"LengthException\",\n \"LimitIterator\",\n \"LogicException\",\n \"MultipleIterator\",\n \"NoRewindIterator\",\n \"OutOfBoundsException\",\n \"OutOfRangeException\",\n \"OuterIterator\",\n \"OverflowException\",\n \"ParentIterator\",\n \"ParseError\",\n \"RangeException\",\n \"RecursiveArrayIterator\",\n \"RecursiveCachingIterator\",\n \"RecursiveCallbackFilterIterator\",\n \"RecursiveDirectoryIterator\",\n \"RecursiveFilterIterator\",\n \"RecursiveIterator\",\n \"RecursiveIteratorIterator\",\n \"RecursiveRegexIterator\",\n \"RecursiveTreeIterator\",\n \"RegexIterator\",\n \"RuntimeException\",\n \"SeekableIterator\",\n \"SplDoublyLinkedList\",\n \"SplFileInfo\",\n \"SplFileObject\",\n \"SplFixedArray\",\n \"SplHeap\",\n \"SplMaxHeap\",\n \"SplMinHeap\",\n \"SplObjectStorage\",\n \"SplObserver\",\n \"SplPriorityQueue\",\n \"SplQueue\",\n \"SplStack\",\n \"SplSubject\",\n \"SplTempFileObject\",\n \"TypeError\",\n \"UnderflowException\",\n \"UnexpectedValueException\",\n \"UnhandledMatchError\",\n // Reserved interfaces:\n // <https://www.php.net/manual/en/reserved.interfaces.php>\n \"ArrayAccess\",\n \"BackedEnum\",\n \"Closure\",\n \"Fiber\",\n \"Generator\",\n \"Iterator\",\n \"IteratorAggregate\",\n \"Serializable\",\n \"Stringable\",\n \"Throwable\",\n \"Traversable\",\n \"UnitEnum\",\n \"WeakReference\",\n \"WeakMap\",\n // Reserved classes:\n // <https://www.php.net/manual/en/reserved.classes.php>\n \"Directory\",\n \"__PHP_Incomplete_Class\",\n \"parent\",\n \"php_user_filter\",\n \"self\",\n \"static\",\n \"stdClass\"\n ];\n\n /** Dual-case keywords\n *\n * [\"then\",\"FILE\"] =>\n * [\"then\", \"THEN\", \"FILE\", \"file\"]\n *\n * @param {string[]} items */\n const dualCase = (items) => {\n /** @type string[] */\n const result = [];\n items.forEach(item => {\n result.push(item);\n if (item.toLowerCase() === item) {\n result.push(item.toUpperCase());\n } else {\n result.push(item.toLowerCase());\n }\n });\n return result;\n };\n\n const KEYWORDS = {\n keyword: KWS,\n literal: dualCase(LITERALS),\n built_in: BUILT_INS,\n };\n\n /**\n * @param {string[]} items */\n const normalizeKeywords = (items) => {\n return items.map(item => {\n return item.replace(/\\|\\d+$/, \"\");\n });\n };\n\n const CONSTRUCTOR_CALL = { variants: [\n {\n match: [\n /new/,\n regex.concat(WHITESPACE, \"+\"),\n // to prevent built ins from being confused as the class constructor call\n regex.concat(\"(?!\", normalizeKeywords(BUILT_INS).join(\"\\\\b|\"), \"\\\\b)\"),\n PASCAL_CASE_CLASS_NAME_RE,\n ],\n scope: {\n 1: \"keyword\",\n 4: \"title.class\",\n },\n }\n ] };\n\n const CONSTANT_REFERENCE = regex.concat(IDENT_RE, \"\\\\b(?!\\\\()\");\n\n const LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON = { variants: [\n {\n match: [\n regex.concat(\n /::/,\n regex.lookahead(/(?!class\\b)/)\n ),\n CONSTANT_REFERENCE,\n ],\n scope: { 2: \"variable.constant\", },\n },\n {\n match: [\n /::/,\n /class/,\n ],\n scope: { 2: \"variable.language\", },\n },\n {\n match: [\n PASCAL_CASE_CLASS_NAME_RE,\n regex.concat(\n /::/,\n regex.lookahead(/(?!class\\b)/)\n ),\n CONSTANT_REFERENCE,\n ],\n scope: {\n 1: \"title.class\",\n 3: \"variable.constant\",\n },\n },\n {\n match: [\n PASCAL_CASE_CLASS_NAME_RE,\n regex.concat(\n \"::\",\n regex.lookahead(/(?!class\\b)/)\n ),\n ],\n scope: { 1: \"title.class\", },\n },\n {\n match: [\n PASCAL_CASE_CLASS_NAME_RE,\n /::/,\n /class/,\n ],\n scope: {\n 1: \"title.class\",\n 3: \"variable.language\",\n },\n }\n ] };\n\n const NAMED_ARGUMENT = {\n scope: 'attr',\n match: regex.concat(IDENT_RE, regex.lookahead(':'), regex.lookahead(/(?!::)/)),\n };\n const PARAMS_MODE = {\n relevance: 0,\n begin: /\\(/,\n end: /\\)/,\n keywords: KEYWORDS,\n contains: [\n NAMED_ARGUMENT,\n VARIABLE,\n LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,\n hljs.C_BLOCK_COMMENT_MODE,\n STRING,\n NUMBER,\n CONSTRUCTOR_CALL,\n ],\n };\n const FUNCTION_INVOKE = {\n relevance: 0,\n match: [\n /\\b/,\n // to prevent keywords from being confused as the function title\n regex.concat(\"(?!fn\\\\b|function\\\\b|\", normalizeKeywords(KWS).join(\"\\\\b|\"), \"|\", normalizeKeywords(BUILT_INS).join(\"\\\\b|\"), \"\\\\b)\"),\n IDENT_RE,\n regex.concat(WHITESPACE, \"*\"),\n regex.lookahead(/(?=\\()/)\n ],\n scope: { 3: \"title.function.invoke\", },\n contains: [ PARAMS_MODE ]\n };\n PARAMS_MODE.contains.push(FUNCTION_INVOKE);\n\n const ATTRIBUTE_CONTAINS = [\n NAMED_ARGUMENT,\n LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,\n hljs.C_BLOCK_COMMENT_MODE,\n STRING,\n NUMBER,\n CONSTRUCTOR_CALL,\n ];\n\n const ATTRIBUTES = {\n begin: regex.concat(/#\\[\\s*\\\\?/,\n regex.either(\n PASCAL_CASE_CLASS_NAME_RE,\n UPCASE_NAME_RE\n )\n ),\n beginScope: \"meta\",\n end: /]/,\n endScope: \"meta\",\n keywords: {\n literal: LITERALS,\n keyword: [\n 'new',\n 'array',\n ]\n },\n contains: [\n {\n begin: /\\[/,\n end: /]/,\n keywords: {\n literal: LITERALS,\n keyword: [\n 'new',\n 'array',\n ]\n },\n contains: [\n 'self',\n ...ATTRIBUTE_CONTAINS,\n ]\n },\n ...ATTRIBUTE_CONTAINS,\n {\n scope: 'meta',\n variants: [\n { match: PASCAL_CASE_CLASS_NAME_RE },\n { match: UPCASE_NAME_RE }\n ]\n }\n ]\n };\n\n return {\n case_insensitive: false,\n keywords: KEYWORDS,\n contains: [\n ATTRIBUTES,\n hljs.HASH_COMMENT_MODE,\n hljs.COMMENT('//', '$'),\n hljs.COMMENT(\n '/\\\\*',\n '\\\\*/',\n { contains: [\n {\n scope: 'doctag',\n match: '@[A-Za-z]+'\n }\n ] }\n ),\n {\n match: /__halt_compiler\\(\\);/,\n keywords: '__halt_compiler',\n starts: {\n scope: \"comment\",\n end: hljs.MATCH_NOTHING_RE,\n contains: [\n {\n match: /\\?>/,\n scope: \"meta\",\n endsParent: true\n }\n ]\n }\n },\n PREPROCESSOR,\n {\n scope: 'variable.language',\n match: /\\$this\\b/\n },\n VARIABLE,\n FUNCTION_INVOKE,\n LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,\n {\n match: [\n /const/,\n /\\s/,\n IDENT_RE,\n ],\n scope: {\n 1: \"keyword\",\n 3: \"variable.constant\",\n },\n },\n CONSTRUCTOR_CALL,\n {\n scope: 'function',\n relevance: 0,\n beginKeywords: 'fn function',\n end: /[;{]/,\n excludeEnd: true,\n illegal: '[$%\\\\[]',\n contains: [\n { beginKeywords: 'use', },\n hljs.UNDERSCORE_TITLE_MODE,\n {\n begin: '=>', // No markup, just a relevance booster\n endsParent: true\n },\n {\n scope: 'params',\n begin: '\\\\(',\n end: '\\\\)',\n excludeBegin: true,\n excludeEnd: true,\n keywords: KEYWORDS,\n contains: [\n 'self',\n ATTRIBUTES,\n VARIABLE,\n LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON,\n hljs.C_BLOCK_COMMENT_MODE,\n STRING,\n NUMBER\n ]\n },\n ]\n },\n {\n scope: 'class',\n variants: [\n {\n beginKeywords: \"enum\",\n illegal: /[($\"]/\n },\n {\n beginKeywords: \"class interface trait\",\n illegal: /[:($\"]/\n }\n ],\n relevance: 0,\n end: /\\{/,\n excludeEnd: true,\n contains: [\n { beginKeywords: 'extends implements' },\n hljs.UNDERSCORE_TITLE_MODE\n ]\n },\n // both use and namespace still use \"old style\" rules (vs multi-match)\n // because the namespace name can include `\\` and we still want each\n // element to be treated as its own *individual* title\n {\n beginKeywords: 'namespace',\n relevance: 0,\n end: ';',\n illegal: /[.']/,\n contains: [ hljs.inherit(hljs.UNDERSCORE_TITLE_MODE, { scope: \"title.class\" }) ]\n },\n {\n beginKeywords: 'use',\n relevance: 0,\n end: ';',\n contains: [\n // TODO: title.function vs title.class\n {\n match: /\\b(as|const|function)\\b/,\n scope: \"keyword\"\n },\n // TODO: could be title.class or title.function\n hljs.UNDERSCORE_TITLE_MODE\n ]\n },\n STRING,\n NUMBER,\n ]\n };\n}\n\nexport { php as default };\n","import register from \"highlight.js/lib/languages/php\";\n\nexport const php = { name: \"php\", register };\nexport default php;\n","/*\nLanguage: YAML\nDescription: Yet Another Markdown Language\nAuthor: Stefan Wienert <[email protected]>\nContributors: Carl Baxter <[email protected]>\nRequires: ruby.js\nWebsite: https://yaml.org\nCategory: common, config\n*/\nfunction yaml(hljs) {\n const LITERALS = 'true false yes no null';\n\n // YAML spec allows non-reserved URI characters in tags.\n const URI_CHARACTERS = '[\\\\w#;/?:@&=+$,.~*\\'()[\\\\]]+';\n\n // Define keys as starting with a word character\n // ...containing word chars, spaces, colons, forward-slashes, hyphens and periods\n // ...and ending with a colon followed immediately by a space, tab or newline.\n // The YAML spec allows for much more than this, but this covers most use-cases.\n const KEY = {\n className: 'attr',\n variants: [\n // added brackets support and special char support\n { begin: /[\\w*@][\\w*@ :()\\./-]*:(?=[ \\t]|$)/ },\n { // double quoted keys - with brackets and special char support\n begin: /\"[\\w*@][\\w*@ :()\\./-]*\":(?=[ \\t]|$)/ },\n { // single quoted keys - with brackets and special char support\n begin: /'[\\w*@][\\w*@ :()\\./-]*':(?=[ \\t]|$)/ },\n ]\n };\n \n const TEMPLATE_VARIABLES = {\n className: 'template-variable',\n variants: [\n { // jinja templates Ansible\n begin: /\\{\\{/,\n end: /\\}\\}/\n },\n { // Ruby i18n\n begin: /%\\{/,\n end: /\\}/\n }\n ]\n };\n\n const SINGLE_QUOTE_STRING = {\n className: 'string',\n relevance: 0,\n begin: /'/,\n end: /'/,\n contains: [\n {\n match: /''/,\n scope: 'char.escape',\n relevance: 0\n }\n ]\n };\n\n const STRING = {\n className: 'string',\n relevance: 0,\n variants: [\n {\n begin: /\"/,\n end: /\"/\n },\n { begin: /\\S+/ }\n ],\n contains: [\n hljs.BACKSLASH_ESCAPE,\n TEMPLATE_VARIABLES\n ]\n };\n\n // Strings inside of value containers (objects) can't contain braces,\n // brackets, or commas\n const CONTAINER_STRING = hljs.inherit(STRING, { variants: [\n {\n begin: /'/,\n end: /'/,\n contains: [\n {\n begin: /''/,\n relevance: 0\n }\n ]\n },\n {\n begin: /\"/,\n end: /\"/\n },\n { begin: /[^\\s,{}[\\]]+/ }\n ] });\n\n const DATE_RE = '[0-9]{4}(-[0-9][0-9]){0,2}';\n const TIME_RE = '([Tt \\\\t][0-9][0-9]?(:[0-9][0-9]){2})?';\n const FRACTION_RE = '(\\\\.[0-9]*)?';\n const ZONE_RE = '([ \\\\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?';\n const TIMESTAMP = {\n className: 'number',\n begin: '\\\\b' + DATE_RE + TIME_RE + FRACTION_RE + ZONE_RE + '\\\\b'\n };\n\n const VALUE_CONTAINER = {\n end: ',',\n endsWithParent: true,\n excludeEnd: true,\n keywords: LITERALS,\n relevance: 0\n };\n const OBJECT = {\n begin: /\\{/,\n end: /\\}/,\n contains: [ VALUE_CONTAINER ],\n illegal: '\\\\n',\n relevance: 0\n };\n const ARRAY = {\n begin: '\\\\[',\n end: '\\\\]',\n contains: [ VALUE_CONTAINER ],\n illegal: '\\\\n',\n relevance: 0\n };\n\n const MODES = [\n KEY,\n {\n className: 'meta',\n begin: '^---\\\\s*$',\n relevance: 10\n },\n { // multi line string\n // Blocks start with a | or > followed by a newline\n //\n // Indentation of subsequent lines must be the same to\n // be considered part of the block\n className: 'string',\n begin: '[\\\\|>]([1-9]?[+-])?[ ]*\\\\n( +)[^ ][^\\\\n]*\\\\n(\\\\2[^\\\\n]+\\\\n?)*'\n },\n { // Ruby/Rails erb\n begin: '<%[%=-]?',\n end: '[%-]?%>',\n subLanguage: 'ruby',\n excludeBegin: true,\n excludeEnd: true,\n relevance: 0\n },\n { // named tags\n className: 'type',\n begin: '!\\\\w+!' + URI_CHARACTERS\n },\n // https://yaml.org/spec/1.2/spec.html#id2784064\n { // verbatim tags\n className: 'type',\n begin: '!<' + URI_CHARACTERS + \">\"\n },\n { // primary tags\n className: 'type',\n begin: '!' + URI_CHARACTERS\n },\n { // secondary tags\n className: 'type',\n begin: '!!' + URI_CHARACTERS\n },\n { // fragment id &ref\n className: 'meta',\n begin: '&' + hljs.UNDERSCORE_IDENT_RE + '$'\n },\n { // fragment reference *ref\n className: 'meta',\n begin: '\\\\*' + hljs.UNDERSCORE_IDENT_RE + '$'\n },\n { // array listing\n className: 'bullet',\n // TODO: remove |$ hack when we have proper look-ahead support\n begin: '-(?=[ ]|$)',\n relevance: 0\n },\n hljs.HASH_COMMENT_MODE,\n {\n beginKeywords: LITERALS,\n keywords: { literal: LITERALS }\n },\n TIMESTAMP,\n // numbers are any valid C-style number that\n // sit isolated from other words\n {\n className: 'number',\n begin: hljs.C_NUMBER_RE + '\\\\b',\n relevance: 0\n },\n OBJECT,\n ARRAY,\n SINGLE_QUOTE_STRING,\n STRING\n ];\n\n const VALUE_MODES = [ ...MODES ];\n VALUE_MODES.pop();\n VALUE_MODES.push(CONTAINER_STRING);\n VALUE_CONTAINER.contains = VALUE_MODES;\n\n return {\n name: 'YAML',\n case_insensitive: true,\n aliases: [ 'yml' ],\n contains: MODES\n };\n}\n\nexport { yaml as default };\n","import register from \"highlight.js/lib/languages/yaml\";\n\nexport const yaml = { name: \"yaml\", register };\nexport default yaml;\n","import type { Framework } from '$lib/state/projects.svelte';\nimport { isJsFramework } from '$lib/state/projects.svelte';\n\nexport function getInstallCommand(framework: Framework): string {\n\tconst base = 'go get go.tracewayapp.com';\n\tswitch (framework) {\n\t\tcase 'gin':\n\t\t\treturn `${base} && go get go.tracewayapp.com/tracewaygin`;\n\t\tcase 'chi':\n\t\t\treturn `${base} && go get go.tracewayapp.com/tracewaychi`;\n\t\tcase 'fiber':\n\t\t\treturn `${base} && go get go.tracewayapp.com/tracewayfiber`;\n\t\tcase 'fasthttp':\n\t\t\treturn `${base} && go get go.tracewayapp.com/tracewayfasthttp`;\n\t\tcase 'stdlib':\n\t\t\treturn `${base} && go get go.tracewayapp.com/tracewayhttp`;\n\t\tcase 'react':\n\t\t\treturn 'npm install @tracewayapp/react';\n\t\tcase 'svelte':\n\t\t\treturn 'npm install @tracewayapp/svelte';\n\t\tcase 'vuejs':\n\t\t\treturn 'npm install @tracewayapp/vue';\n\t\tcase 'nextjs':\n\t\t\treturn 'npm install @tracewayapp/react';\n\t\tcase 'nestjs':\n\t\t\treturn 'npm install @tracewayapp/nest';\n\t\tcase 'express':\n\t\t\treturn 'npm install @tracewayapp/express';\n\t\tcase 'remix':\n\t\t\treturn 'npm install @tracewayapp/remix';\n\t\tcase 'jquery':\n\t\t\treturn 'npm install @tracewayapp/jquery';\n\t\tcase 'react-native':\n\t\t\treturn 'npm install @tracewayapp/react-native';\n\t\tcase 'hono':\n\t\t\treturn '';\n\t\tcase 'symfony':\n\t\t\treturn 'composer require traceway/opentelemetry-symfony open-telemetry/exporter-otlp php-http/guzzle7-adapter';\n\t\tcase 'laravel':\n\t\t\treturn 'composer require keepsuit/laravel-opentelemetry open-telemetry/exporter-otlp php-http/guzzle7-adapter';\n\t\tcase 'cloudflare':\n\t\t\treturn '';\n\t\tcase 'opentelemetry':\n\t\t\treturn '';\n\t\tcase 'flutter':\n\t\t\treturn 'flutter pub add traceway';\n\t\tcase 'android':\n\t\t\treturn 'implementation(\"com.tracewayapp:traceway:1.0.0\")';\n\t\tcase 'custom':\n\t\tdefault:\n\t\t\treturn base;\n\t}\n}\n\nexport function getFrameworkCode(framework: Framework, token: string, backendUrl: string): string {\n\tconst connectionString = token\n\t\t? `${token}@${backendUrl}/api/report`\n\t\t: `YOUR_TOKEN@${backendUrl}/api/report`;\n\n\tswitch (framework) {\n\t\tcase 'gin':\n\t\t\treturn `package main\n\nimport (\n \"github.com/gin-gonic/gin\"\n tracewaygin \"go.tracewayapp.com/tracewaygin\"\n)\n\nfunc main() {\n r := gin.Default()\n r.Use(tracewaygin.New(\"${connectionString}\"))\n r.Run(\":8080\")\n}`;\n\n\t\tcase 'chi':\n\t\t\treturn `package main\n\nimport (\n \"net/http\"\n\n \"github.com/go-chi/chi/v5\"\n tracewaychi \"go.tracewayapp.com/tracewaychi\"\n)\n\nfunc main() {\n r := chi.NewRouter()\n r.Use(tracewaychi.New(\"${connectionString}\"))\n\n r.Get(\"/api/users\", getUsers)\n http.ListenAndServe(\":8080\", r)\n}`;\n\n\t\tcase 'fiber':\n\t\t\treturn `package main\n\nimport (\n \"github.com/gofiber/fiber/v2\"\n tracewayfiber \"go.tracewayapp.com/tracewayfiber\"\n)\n\nfunc main() {\n app := fiber.New()\n app.Use(tracewayfiber.New(\"${connectionString}\"))\n\n app.Get(\"/api/users\", getUsers)\n app.Listen(\":8080\")\n}`;\n\n\t\tcase 'fasthttp':\n\t\t\treturn `package main\n\nimport (\n \"github.com/valyala/fasthttp\"\n tracewayfasthttp \"go.tracewayapp.com/tracewayfasthttp\"\n)\n\nfunc main() {\n handler := func(ctx *fasthttp.RequestCtx) {\n ctx.SetStatusCode(200)\n ctx.SetBodyString(\"Hello, World!\")\n }\n\n tracedHandler := tracewayfasthttp.New(\"${connectionString}\")(handler)\n fasthttp.ListenAndServe(\":8080\", tracedHandler)\n}`;\n\n\t\tcase 'stdlib':\n\t\t\treturn `package main\n\nimport (\n \"net/http\"\n\n tracewayhttp \"go.tracewayapp.com/tracewayhttp\"\n)\n\nfunc main() {\n mux := http.NewServeMux()\n mux.HandleFunc(\"/api/users\", getUsers)\n\n handler := tracewayhttp.New(\"${connectionString}\")(mux)\n http.ListenAndServe(\":8080\", handler)\n}`;\n\n\t\tcase 'react':\n\t\t\treturn `import { TracewayProvider } from \"@tracewayapp/react\";\n\nfunction App() {\n return (\n <TracewayProvider connectionString=\"${connectionString}\">\n <YourApp />\n </TracewayProvider>\n );\n}\n\nexport default App;`;\n\n\t\tcase 'svelte':\n\t\t\treturn `<!-- src/routes/+layout.svelte -->\n<script>\n import { setupTraceway } from \"@tracewayapp/svelte\";\n import { browser } from \"$app/environment\";\n\n if (browser) {\n setupTraceway({\n connectionString: \"${connectionString}\",\n });\n }\n</script>\n\n<slot />`;\n\n\t\tcase 'vuejs':\n\t\t\treturn `import { createApp } from \"vue\";\nimport { createTracewayPlugin } from \"@tracewayapp/vue\";\nimport App from \"./App.vue\";\n\nconst app = createApp(App);\n\napp.use(createTracewayPlugin({\n connectionString: \"${connectionString}\",\n}));\n\napp.mount(\"#app\");`;\n\n\t\tcase 'nextjs':\n\t\t\treturn `// app/traceway-provider.tsx\n\"use client\";\n\nimport { TracewayProvider } from \"@tracewayapp/react\";\n\nexport function TracewayClientProvider({ children }: { children: React.ReactNode }) {\n return (\n <TracewayProvider connectionString=\"${connectionString}\">\n {children}\n </TracewayProvider>\n );\n}\n\n// app/layout.tsx\nimport { TracewayClientProvider } from \"./traceway-provider\";\n\nexport default function RootLayout({ children }: { children: React.ReactNode }) {\n return (\n <html>\n <body>\n <TracewayClientProvider>{children}</TracewayClientProvider>\n </body>\n </html>\n );\n}`;\n\n\t\tcase 'nestjs':\n\t\t\treturn `import { Module } from \"@nestjs/common\";\nimport { TracewayModule } from \"@tracewayapp/nest\";\n\n@Module({\n imports: [\n TracewayModule.forRoot({\n connectionString: \"${connectionString}\",\n }),\n ],\n})\nexport class AppModule {}`;\n\n\t\tcase 'express':\n\t\t\treturn `import express from \"express\";\nimport { traceway } from \"@tracewayapp/express\";\n\nconst app = express();\napp.use(traceway(\"${connectionString}\"));\n\napp.get(\"/api/users\", (req, res) => {\n res.json({ users: [] });\n});\n\napp.listen(8080);`;\n\n\t\tcase 'remix':\n\t\t\treturn `import { withTraceway } from \"@tracewayapp/remix\";\n\nexport default withTraceway({\n connectionString: \"${connectionString}\",\n});`;\n\n\t\tcase 'jquery':\n\t\t\treturn `import { init } from \"@tracewayapp/jquery\";\n\ninit(\"${connectionString}\");\n\n// jQuery AJAX errors are captured automatically\n// Distributed trace headers are injected into $.ajax() requests`;\n\n\t\tcase 'react-native':\n\t\t\treturn `import { TracewayProvider } from \"@tracewayapp/react-native\";\n\nexport default function App() {\n return (\n <TracewayProvider connectionString=\"${connectionString}\">\n <RootNavigator />\n </TracewayProvider>\n );\n}`;\n\n\t\tcase 'symfony':\n\t\t\treturn `<?php\n// public/index.php\n\nuse App\\\\Kernel;\n\nrequire_once dirname(__DIR__) . '/vendor/autoload.php';\n\n\\\\OpenTelemetry\\\\SDK\\\\SdkAutoloader::autoload();\n\n// Fixes for Symfony's OTel auto-instrumentation:\n// 1. Corrects http.route from internal route name to URL path template\n// 2. Cleans up sub-request scopes so 500 error spans are exported\n\\\\OpenTelemetry\\\\Instrumentation\\\\hook(\n \\\\Symfony\\\\Component\\\\HttpKernel\\\\HttpKernel::class,\n 'handle',\n post: static function (\n \\\\Symfony\\\\Component\\\\HttpKernel\\\\HttpKernel $kernel,\n array $params,\n mixed $returnValue,\n ?\\\\Throwable $exception\n ): void {\n $request = ($params[0] instanceof \\\\Symfony\\\\Component\\\\HttpFoundation\\\\Request) ? $params[0] : null;\n if (null === $request) return;\n\n $type = $params[1] ?? \\\\Symfony\\\\Component\\\\HttpKernel\\\\HttpKernelInterface::MAIN_REQUEST;\n\n if ($type === \\\\Symfony\\\\Component\\\\HttpKernel\\\\HttpKernelInterface::SUB_REQUEST) {\n $scope = \\\\OpenTelemetry\\\\Context\\\\Context::storage()->scope();\n if (null !== $scope) {\n $span = \\\\OpenTelemetry\\\\API\\\\Trace\\\\Span::fromContext($scope->context());\n $scope->detach();\n $span->end();\n }\n return;\n }\n\n $routeParams = $request->attributes->get('_route_params', []);\n $path = $request->getPathInfo();\n if (\\\\is_array($routeParams)) {\n foreach ($routeParams as $name => $value) {\n if (\\\\is_string($value) && '' !== $value) {\n $path = str_replace($value, '{' . $name . '}', $path);\n }\n }\n }\n\n $request->attributes->set('_route', $path);\n }\n);\n\n$kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', (bool) ($_SERVER['APP_DEBUG'] ?? true));\n$request = \\\\Symfony\\\\Component\\\\HttpFoundation\\\\Request::createFromGlobals();\n$response = $kernel->handle($request);\n$response->send();\n$kernel->terminate($request, $response);`;\n\n\t\tcase 'laravel':\n\t\t\treturn `<?php\n// .env — point the OTLP exporter at Traceway\n//\n// OTEL_SERVICE_NAME=my-laravel-app\n// OTEL_TRACES_EXPORTER=otlp\n// OTEL_METRICS_EXPORTER=otlp\n// OTEL_LOGS_EXPORTER=otlp\n// OTEL_EXPORTER_OTLP_PROTOCOL=http/json\n// OTEL_EXPORTER_OTLP_ENDPOINT=${backendUrl}/api/otel\n// OTEL_EXPORTER_OTLP_HEADERS=\"Authorization=Bearer ${token || 'YOUR_TOKEN'}\"\n//\n// Optional: send Laravel logs to Traceway via the auto-injected 'otlp' channel\n// LOG_CHANNEL=otlp\n\n// That's it — keepsuit/laravel-opentelemetry's service provider auto-registers\n// TraceRequestMiddleware as a global middleware, so every HTTP request, DB query,\n// queued job, Redis call, cache op, view render and outbound Http:: call is\n// traced automatically. Open config/opentelemetry.php to tune which\n// instrumentations are enabled.`;\n\n\t\tcase 'hono':\n\t\t\treturn '';\n\n\t\tcase 'cloudflare':\n\t\t\treturn '';\n\n\t\tcase 'opentelemetry':\n\t\t\treturn '';\n\n\t\tcase 'flutter':\n\t\t\treturn `import 'package:flutter/material.dart';\nimport 'package:traceway/traceway.dart';\n\nvoid main() {\n Traceway.run(\n connectionString: '${connectionString}',\n options: TracewayOptions(\n screenCapture: true,\n version: '1.0.0',\n ),\n child: MyApp(),\n );\n}`;\n\n\t\tcase 'android':\n\t\t\treturn `import android.app.Application\nimport com.tracewayapp.traceway.Traceway\nimport com.tracewayapp.traceway.TracewayOptions\n\nclass MyApp : Application() {\n override fun onCreate() {\n super.onCreate()\n Traceway.init(\n application = this,\n connectionString = \"${connectionString}\",\n options = TracewayOptions(version = \"1.0.0\"),\n )\n }\n}`;\n\n\t\tcase 'custom':\n\t\tdefault:\n\t\t\treturn `package main\n\nimport (\n \"go.tracewayapp.com\"\n)\n\nfunc main() {\n traceway.Init(\n \"${connectionString}\",\n traceway.WithVersion(\"1.0.0\"),\n traceway.WithServerName(\"my-server\"),\n )\n}`;\n\t}\n}\n\nexport function getTestingRouteCode(framework?: Framework): string {\n\tif (framework === 'symfony') {\n\t\treturn `<?php\n// src/Controller/TestController.php\nnamespace App\\\\Controller;\n\nuse Symfony\\\\Component\\\\HttpFoundation\\\\Response;\nuse Symfony\\\\Component\\\\Routing\\\\Attribute\\\\Route;\n\nclass TestController\n{\n #[Route('/testing', name: 'testing')]\n public function index(): Response\n {\n throw new \\\\RuntimeException(\"Test error from Traceway integration\");\n }\n}`;\n\t}\n\tif (framework === 'laravel') {\n\t\treturn `<?php\n// routes/web.php\nuse Illuminate\\\\Support\\\\Facades\\\\Route;\n\nRoute::get('/testing', function () {\n throw new \\\\RuntimeException('Test error from Traceway integration');\n});`;\n\t}\n\tif (framework === 'flutter') {\n\t\treturn `// Trigger a test error\nthrow StateError('Test error from Traceway integration');`;\n\t}\n\tif (framework === 'android') {\n\t\treturn `// Trigger a test error\nthrow RuntimeException(\"Test error from Traceway integration\")`;\n\t}\n\tif (framework && isJsFramework(framework)) {\n\t\treturn `// Trigger a test error\nthrow new Error(\"Test error from Traceway integration\");`;\n\t}\n\treturn `r.GET(\"/testing\", func(c *gin.Context) {\n panic(\"Test error from Traceway integration\")\n})`;\n}\n\nexport function getTestingRouteCode2(framework?: Framework): string {\n\tif (framework === 'symfony') {\n\t\treturn '';\n\t}\n\tif (framework === 'laravel') {\n\t\treturn '';\n\t}\n\tif (framework === 'flutter') {\n\t\treturn `import 'package:traceway/traceway.dart';\n\nTracewayClient.instance?.captureException(\n Exception('Test error'),\n StackTrace.current,\n);`;\n\t}\n\tif (framework === 'android') {\n\t\treturn `import com.tracewayapp.traceway.Traceway\n\ntry {\n riskyOperation()\n} catch (e: Throwable) {\n Traceway.captureException(e)\n}`;\n\t}\n\tif (framework && isJsFramework(framework)) {\n\t\tswitch (framework) {\n\t\t\tcase 'react':\n\t\t\t\treturn `import { useTraceway } from \"@tracewayapp/react\";\n\n// In a component using the hook\nconst { captureException } = useTraceway();\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tcase 'svelte':\n\t\t\t\treturn `import { getTraceway } from \"@tracewayapp/svelte\";\n\nconst { captureException } = getTraceway();\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tcase 'vuejs':\n\t\t\t\treturn `import { useTraceway } from \"@tracewayapp/vue\";\n\nconst { captureException } = useTraceway();\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tcase 'jquery':\n\t\t\t\treturn `import { captureException } from \"@tracewayapp/jquery\";\n\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tcase 'nextjs':\n\t\t\t\treturn `import { useTraceway } from \"@tracewayapp/react\";\n\n// In a client component\n\"use client\";\nconst { captureException } = useTraceway();\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tcase 'react-native':\n\t\t\t\treturn `import { useTraceway } from \"@tracewayapp/react-native\";\n\n// In a component using the hook\nconst { captureException } = useTraceway();\ncaptureException(new Error(\"Test error\"));`;\n\t\t\tdefault:\n\t\t\t\treturn `import { captureException } from \"@tracewayapp/${getPackageName(framework)}\";\n\ncaptureException(new Error(\"Test error\"));`;\n\t\t}\n\t}\n\treturn `r.GET(\"/testing\", func(c *gin.Context) {\n c.AbortWithError(500, traceway.NewStackTraceErrorf(\"testing\"))\n})`;\n}\n\nfunction getPackageName(framework: Framework): string {\n\tswitch (framework) {\n\t\tcase 'react': return 'react';\n\t\tcase 'svelte': return 'svelte';\n\t\tcase 'vuejs': return 'vue';\n\t\tcase 'nextjs': return 'next';\n\t\tcase 'nestjs': return 'nest';\n\t\tcase 'express': return 'express';\n\t\tcase 'remix': return 'remix';\n\t\tcase 'jquery': return 'jquery';\n\t\tcase 'react-native': return 'react-native';\n\t\tdefault: return 'react';\n\t}\n}\n\nexport function getFrameworkLabel(framework: Framework): string {\n\tconst labels: Record<Framework, string> = {\n\t\tgin: 'Gin',\n\t\tfiber: 'Fiber',\n\t\tchi: 'Chi',\n\t\tfasthttp: 'FastHTTP',\n\t\tstdlib: 'Standard Library (net/http)',\n\t\tcustom: 'Custom Integration',\n\t\treact: 'React',\n\t\tsvelte: 'Svelte',\n\t\tvuejs: 'Vue.js',\n\t\tnextjs: 'Next.js',\n\t\tnestjs: 'NestJS',\n\t\texpress: 'Express',\n\t\tremix: 'Remix',\n\t\tjquery: 'jQuery',\n\t\t'react-native': 'React Native',\n\t\thono: 'Hono',\n\t\tcloudflare: 'Cloudflare',\n\t\topentelemetry: 'OpenTelemetry',\n\t\tsymfony: 'Symfony',\n\t\tlaravel: 'Laravel',\n\t\tflutter: 'Flutter',\n\t\tandroid: 'Android',\n\t};\n\treturn labels[framework] || framework;\n}\n\nexport function getCodeLanguage(framework: Framework): 'go' | 'javascript' | 'bash' | 'php' {\n\tif (framework === 'symfony') return 'php';\n\tif (framework === 'laravel') return 'php';\n\tif (framework === 'opentelemetry') return 'go';\n\tif (framework === 'hono') return 'javascript';\n\tif (framework === 'cloudflare') return 'javascript';\n\tif (framework === 'flutter') return 'javascript'; // closest to Dart syntax highlighting\n\tif (framework === 'android') return 'javascript'; // closest to Kotlin syntax highlighting\n\treturn isJsFramework(framework) ? 'javascript' : 'go';\n}\n"],"names":["IDENT_RE","KEYWORDS","LITERALS","TYPES","ERROR_TYPES","BUILT_IN_GLOBALS","BUILT_IN_VARIABLES","BUILT_INS","javascript","hljs","regex","hasClosingTag","match","after","tag","IDENT_RE$1","FRAGMENT","XML_SELF_CLOSING","XML_TAG","response","afterMatchIndex","nextChar","m","afterMatch","KEYWORDS$1","decimalDigits","frac","decimalInteger","NUMBER","SUBST","HTML_TEMPLATE","CSS_TEMPLATE","GRAPHQL_TEMPLATE","TEMPLATE_STRING","COMMENT","SUBST_INTERNALS","SUBST_AND_COMMENTS","PARAMS_CONTAINS","PARAMS","CLASS_OR_EXTENDS","CLASS_REFERENCE","USE_STRICT","FUNCTION_DEFINITION","UPPER_CASE_CONSTANT","noneOf","list","FUNCTION_CALL","x","PROPERTY_ACCESS","GETTER_OR_SETTER","FUNC_LEAD_IN_RE","FUNCTION_VARIABLE","register","bash","VAR","BRACED_VAR","HERE_DOC","QUOTE_STRING","ESCAPED_QUOTE","APOS_STRING","ESCAPED_APOS","ARITHMETIC","SH_LIKE_SHELLS","KNOWN_SHEBANG","FUNCTION","PATH_MODE","SHELL_BUILT_INS","BASH_BUILT_INS","ZSH_BUILT_INS","GNU_CORE_UTILS","php","NOT_PERL_ETC","PASCAL_CASE_CLASS_NAME_RE","UPCASE_NAME_RE","VARIABLE","PREPROCESSOR","SINGLE_QUOTED","DOUBLE_QUOTED","HEREDOC","resp","NOWDOC","WHITESPACE","STRING","KWS","items","result","item","normalizeKeywords","CONSTRUCTOR_CALL","CONSTANT_REFERENCE","LEFT_AND_RIGHT_SIDE_OF_DOUBLE_COLON","NAMED_ARGUMENT","PARAMS_MODE","FUNCTION_INVOKE","ATTRIBUTE_CONTAINS","ATTRIBUTES","yaml","URI_CHARACTERS","KEY","TEMPLATE_VARIABLES","SINGLE_QUOTE_STRING","CONTAINER_STRING","TIMESTAMP","VALUE_CONTAINER","OBJECT","ARRAY","MODES","VALUE_MODES","getInstallCommand","framework","base","getFrameworkCode","token","backendUrl","connectionString","getTestingRouteCode","isJsFramework","getTestingRouteCode2","getPackageName","getFrameworkLabel","getCodeLanguage"],"mappings":"kCAAA,MAAMA,EAAW,2BACXC,EAAW,CACf,KACA,KACA,KACA,KACA,MACA,QACA,UACA,MACA,MACA,WACA,KACA,SACA,OACA,OACA,QACA,QACA,aACA,OACA,QACA,OACA,UACA,MACA,SACA,WACA,SACA,SACA,MACA,QACA,QACA,QAIA,WACA,QACA,QACA,SACA,SACA,OACA,SACA,UAEA,OACF,EACMC,EAAW,CACf,OACA,QACA,OACA,YACA,MACA,UACF,EAGMC,EAAQ,CAEZ,SACA,WACA,UACA,SAEA,OACA,OACA,SACA,SAEA,SACA,SAEA,QACA,eACA,eACA,YACA,aACA,oBACA,aACA,aACA,cACA,cACA,gBACA,iBAEA,MACA,MACA,UACA,UAEA,cACA,oBACA,UACA,WACA,OAEA,UACA,YACA,oBACA,gBAEA,UACA,QAEA,OAEA,aACF,EAEMC,EAAc,CAClB,QACA,YACA,gBACA,aACA,iBACA,cACA,YACA,UACF,EAEMC,EAAmB,CACvB,cACA,aACA,gBACA,eAEA,UACA,UAEA,OACA,WACA,QACA,aACA,WACA,YACA,qBACA,YACA,qBACA,SACA,UACF,EAEMC,EAAqB,CACzB,YACA,OACA,QACA,UACA,SACA,WACA,eACA,iBACA,SACA,QACF,EAEMC,EAAY,CAAA,EAAG,OACnBF,EACAF,EACAC,CACF,EAWA,SAASI,EAAWC,EAAM,CACxB,MAAMC,EAAQD,EAAK,MAQbE,EAAgB,CAACC,EAAO,CAAE,MAAAC,CAAK,IAAO,CAC1C,MAAMC,EAAM,KAAOF,EAAM,CAAC,EAAE,MAAM,CAAC,EAEnC,OADYA,E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AQ,CACZ,UAAW,QACX,MAAO,OACP,IAAK,KACL,SAAU,CAAEpB,EAAK,gBAAgB,CACrC,EACQyB,EAAUzB,EAAK,QACnBA,EAAK,QAAO,EACZ,CACE,MAAO,CACL,SACA,MACR,EACM,MAAO,CACL,EAAG,SACX,CACA,CACA,EACQ+C,EAAW,CACf,MAAO,iBACP,OAAQ,CAAE,SAAU,CAClB/C,EAAK,kBAAkB,CACrB,MAAO,QACP,IAAK,QACL,UAAW,QACnB,CAAO,CACP,CAAK,CACL,EACQgD,EAAe,CACnB,UAAW,SACX,MAAO,IACP,IAAK,IACL,SAAU,CACRhD,EAAK,iBACL6C,EACAzB,CACN,CACA,EACEA,EAAM,SAAS,KAAK4B,CAAY,EAChC,MAAMC,EAAgB,CACpB,MAAO,KACX,EACQC,EAAc,CAClB,UAAW,SACX,MAAO,IACP,IAAK,GACT,EACQC,EAAe,CACnB,MAAO,KACX,EACQC,EAAa,CACjB,MAAO,UACP,IAAK,OACL,SAAU,CACR,CACE,MAAO,gBACP,UAAW,QACnB,EACMpD,EAAK,YACL6C,CACN,CACA,EACQQ,EAAiB,CACrB,OACA,OACA,MACA,KACA,MACA,MACA,OACA,OACA,MACJ,EACQC,EAAgBtD,EAAK,QAAQ,CACjC,OAAQ,IAAIqD,EAAe,KAAK,GAAG,CAAC,IACpC,UAAW,EACf,CAAG,EACKE,EAAW,CACf,UAAW,WACX,MAAO,4BACP,YAAa,GACb,SAAU,CAAEvD,EAAK,QAAQA,EAAK,WAAY,CAAE,MAAO,YAAY,CAAE,CAAC,EAClE,UAAW,CACf,EAEQR,EAAW,CACf,KACA,OACA,OACA,OACA,KACA,OACA,MACA,QACA,QACA,KACA,KACA,OACA,OACA,OACA,SACA,WACA,QACJ,EAEQC,EAAW,CACf,OACA,OACJ,EAGQ+D,EAAY,CAAE,MAAO,gBAAgB,EAGrCC,EAAkB,CACtB,QACA,KACA,WACA,OACA,OACA,OACA,SACA,UACA,OACA,MACA,WACA,SACA,QACA,OACA,QACA,OACA,QACA,OACJ,EAEQC,EAAiB,CACrB,QACA,OACA,UACA,SACA,UACA,UACA,OACA,SACA,OACA,MACA,QACA,SACA,UACA,SACA,OACA,YACA,SACA,OACA,OACA,UACA,SACA,SACJ,EAEQC,EAAgB,CACpB,WACA,KACA,UACA,MACA,MACA,QACA,QACA,gBACA,WACA,UACA,eACA,YACA,aACA,YACA,WACA,UACA,aACA,OACA,UACA,SACA,SACA,SACA,UACA,KACA,KACA,QACA,YACA,SACA,QACA,UACA,UACA,OACA,OACA,QACA,MACA,SACA,OACA,QACA,QACA,SACA,SACA,QACA,SACA,SACA,OACA,UACA,SACA,aACA,SACA,UACA,WACA,QACA,OACA,SACA,QACA,QACA,WACA,UACA,OACA,MACA,WACA,aACA,QACA,OACA,cACA,UACA,SACA,MACJ,EAEQC,EAAiB,CACrB,QACA,QACA,QACA,QACA,KACA,KACA,KACA,MACA,YACA,KACA,KACA,QACA,SACA,QACA,SACA,KACA,WACA,KACA,QACA,QACA,OACA,QACA,WACA,OACA,QACA,SACA,SACA,MACA,QACA,OACA,SACA,MACA,SACA,MACA,OACA,OACA,OACA,SACA,KACA,SACA,KACA,QACA,MACA,KACA,UACA,YACA,YACA,YACA,YACA,OACA,OACA,QACA,MACA,MACA,OACA,KACA,QACA,WACA,OACA,KACA,OACA,WACA,SACA,OACA,UACA,KACA,OACA,MACA,OACA,SAEA,SACA,SACA,KACA,OACA,UACA,OACA,QACA,QACA,UACA,QACA,WACA,SACA,MACA,WACA,SACA,MACA,QACA,OACA,SACA,OACA,MACA,OACA,UAEA,MACA,QACA,SACA,SACA,QACA,MACA,SACA,KACJ,EAEE,MAAO,CACL,KAAM,OACN,QAAS,CACP,KACA,KACN,EACI,SAAU,CACR,SAAU,wBACV,QAASpE,EACT,QAASC,EACT,SAAU,CACR,GAAGgE,EACH,GAAGC,EAEH,MACA,QACA,GAAGC,EACH,GAAGC,CACX,CACA,EACI,SAAU,CACRN,EACAtD,EAAK,QAAO,EACZuD,EACAH,E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,EACAE,CACN,CACA,EACQpD,EAAS,CACb,MAAO,SACP,SAAU,CACR,CAAE,MAAO,6BAA6B,EACtC,CAAE,MAAO,+BAA+B,EACxC,CAAE,MAAO,2CAA2C,EAEpD,CAAE,MAAO,4EAA4E,CAC3F,EACI,UAAW,CACf,EACQ1B,EAAW,CACf,QACA,OACA,MACJ,EACQiF,EAAM,CAGV,YACA,UACA,WACA,eACA,2BACA,WACA,aACA,gBACA,YAGA,MACA,OACA,OACA,UACA,eACA,QACA,UACA,eAMA,QACA,WACA,MACA,KACA,SACA,OACA,UACA,QACA,WACA,OACA,QACA,QACA,QACA,QACA,WACA,UACA,UACA,KACA,SACA,OACA,SACA,QACA,aACA,SACA,aACA,QACA,YACA,WACA,OACA,OACA,UACA,QACA,UACA,QACA,MACA,UACA,OACA,SACA,OACA,KACA,aACA,aACA,YACA,MACA,UACA,YACA,QACA,WACA,OACA,UACA,QACA,MACA,QACA,SACA,KACA,UACA,YACA,SACA,WACA,OACA,SACA,SACA,SACA,QACA,QACA,MACA,QACA,MACA,MACA,OACA,QACA,MACA,OACJ,EAEQ5E,EAAY,CAGhB,UACA,iBACA,qBACA,kBACA,gBACA,cACA,iBACA,2BACA,yBACA,kBACA,yBACA,eACA,YACA,oBACA,sBACA,kBACA,gBACA,iBACA,YACA,qBACA,iBACA,eACA,mBACA,2BACA,mBACA,kBACA,gBACA,iBACA,mBACA,mBACA,uBACA,sBACA,gBACA,oBACA,iBACA,aACA,iBACA,yBACA,2BACA,kCACA,6BACA,0BACA,oBACA,4BACA,yBACA,wBACA,gBACA,mBACA,mBACA,sBACA,cACA,gBACA,gBACA,UACA,aACA,aACA,mBACA,cACA,mBACA,WACA,WACA,aACA,oBACA,YACA,qBACA,2BACA,sBAGA,cACA,aACA,UACA,QACA,YACA,WACA,oBACA,eACA,aACA,YACA,cACA,WACA,gBACA,UAGA,YACA,yBACA,SACA,kBACA,OACA,SACA,UACJ,EAsBQN,EAAW,CACf,QAASkF,EACT,SAhBgBC,G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BACV,SAAU,CACR,CACE,MAAO,MACP,MAAO,OACP,WAAY,EAC1B,CACA,CACA,CACA,EACMkE,EACA,CACE,MAAO,oBACP,MAAO,UACf,EACMD,EACAmB,EACAH,EACA,CACE,MAAO,CACL,QACA,KACA1F,CACV,EACQ,MAAO,CACL,EAAG,UACH,EAAG,mBACb,CACA,EACMwF,EACA,CACE,MAAO,WACP,UAAW,EACX,cAAe,cACf,IAAK,OACL,WAAY,GACZ,QAAS,UACT,SAAU,CACR,CAAE,cAAe,KAAK,EACtB/E,EAAK,sBACL,CACE,MAAO,KACP,WAAY,EACxB,EACU,CACE,MAAO,SACP,MAAO,MACP,IAAK,MACL,aAAc,GACd,WAAY,GACZ,SAAUR,EACV,SAAU,CACR,OACA8F,EACArB,EACAgB,EACAjF,EAAK,qBACLyE,EACAtD,CACd,CACA,CACA,CACA,EACM,CACE,MAAO,QACP,SAAU,CACR,CACE,cAAe,OACf,QAAS,OACrB,EACU,CACE,cAAe,wBACf,QAAS,QACrB,CACA,EACQ,UAAW,EACX,IAAK,KACL,WAAY,GACZ,SAAU,CACR,CAAE,cAAe,oBAAoB,EACrCnB,EAAK,qBACf,CACA,EAIM,CACE,cAAe,YACf,UAAW,EACX,IAAK,IACL,QAAS,OACT,SAAU,CAAEA,EAAK,QAAQA,EAAK,sBAAuB,CAAE,MAAO,cAAe,CAAC,CACtF,EACM,CACE,cAAe,MACf,UAAW,EACX,IAAK,IACL,SAAU,CAER,CACE,MAAO,0BACP,MAAO,SACnB,EAEUA,EAAK,qBACf,CACA,EACMyE,EACAtD,CACN,CACA,CACA,CC5mBY,MAAC0C,GAAM,CAAE,KAAM,eAAOlB,CAAQ,ECO1C,SAAS4C,EAAKvF,EAAM,CAClB,MAAMP,EAAW,yBAGX+F,EAAiB,8BAMjBC,EAAM,CACV,UAAW,OACX,SAAU,CAER,CAAE,MAAO,mCAAmC,EAC5C,CACE,MAAO,qCAAqC,EAC9C,CACE,MAAO,qCAAqC,CACpD,CACA,EAEQC,E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IAAK,SAAU,MAAO,OACtB,IAAK,SAAU,MAAO,OACtB,IAAK,UAAW,MAAO,UACvB,IAAK,QAAS,MAAO,QACrB,IAAK,SAAU,MAAO,SACtB,IAAK,eAAgB,MAAO,eAC5B,QAAS,MAAO,OAAA,CAElB,CAEO,SAASU,GAAkBV,EAA8B,CAyB/D,MAxB0C,CACzC,IAAK,MACL,MAAO,QACP,IAAK,MACL,SAAU,WACV,OAAQ,8BACR,OAAQ,qBACR,MAAO,QACP,OAAQ,SACR,MAAO,SACP,OAAQ,UACR,OAAQ,SACR,QAAS,UACT,MAAO,QACP,OAAQ,SACR,eAAgB,eAChB,KAAM,OACN,WAAY,aACZ,cAAe,gBACf,QAAS,UACT,QAAS,UACT,QAAS,UACT,QAAS,SAAA,EAEIA,CAAS,GAAKA,CAC7B,CAEO,SAASW,GAAgBX,EAA4D,CAE3F,OADIA,IAAc,WACdA,IAAc,UAAkB,MAChCA,IAAc,gBAAwB,KACtCA,IAAc,QACdA,IAAc,cACdA,IAAc,WACdA,IAAc,WACXO,EAAcP,CAAS,EADM,aACa,IAClD","x_google_ignoreList":[0,1,2,3,4,5,6,7]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/DWAABZDo.js b/backend/static/frontend/_app/immutable/chunks/BDd6-VcB.js
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/DWAABZDo.js
rename to backend/static/frontend/_app/immutable/chunks/BDd6-VcB.js
index 9c8cfaa3..374d09cf 100644
--- a/backend/static/frontend/_app/immutable/chunks/DWAABZDo.js
+++ b/backend/static/frontend/_app/immutable/chunks/BDd6-VcB.js
@@ -2,4 +2,4 @@ import{f as S}from"./DH0tcjsQ.js";import{be as P,g as R,u as L,h as N,v as $,i a
`,O="/",C="*",m="",Q="comment",tt="declaration";function nt(t,n){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];n=n||{};var e=1,r=1;function o(c){var i=c.match(X);i&&(e+=i.length);var p=c.lastIndexOf(J);r=~p?c.length-p:r+c.length}function s(){var c={line:e,column:r};return function(i){return i.position=new a(c),f(),i}}function a(c){this.start=c,this.end={line:e,column:r},this.source=n.source}a.prototype.content=t;function u(c){var i=new Error(n.source+":"+e+":"+r+": "+c);if(i.reason=c,i.filename=n.source,i.line=e,i.column=r,i.source=t,!n.silent)throw i}function d(c){var i=c.exec(t);if(i){var p=i[0];return o(p),t=t.slice(p.length),i}}function f(){d(Y)}function l(c){var i;for(c=c||[];i=g();)i!==!1&&c.push(i);return c}function g(){var c=s();if(!(O!=t.charAt(0)||C!=t.charAt(1))){for(var i=2;m!=t.charAt(i)&&(C!=t.charAt(i)||O!=t.charAt(i+1));)++i;if(i+=2,m===t.charAt(i-1))return u("End of comment missing");var p=t.slice(2,i-2);return r+=2,o(p),t=t.slice(i),r+=2,c({type:Q,comment:p})}}function b(){var c=s(),i=d(K);if(i){if(g(),!d(z))return u("property missing ':'");var p=d(D),k=c({type:tt,property:I(i[0].replace(x,m)),value:p?I(p[0].replace(x,m)):m});return d(q),k}}function h(){var c=[];l(c);for(var i;i=b();)i!==!1&&(c.push(i),l(c));return c}return f(),h()}function I(t){return t?t.replace(Z,m):m}function et(t,n){let e=null;if(!t||typeof t!="string")return e;const r=nt(t),o=typeof n=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:a,value:u}=s;o?n(a,u,s):u&&(e=e||{},e[a]=u)}),e}const rt=/\d/,ot=["-","_","/","."];function it(t=""){if(!rt.test(t))return t!==t.toLowerCase()}function st(t){const n=[];let e="",r,o;for(const s of t){const a=ot.includes(s);if(a===!0){n.push(e),e="",r=void 0;continue}const u=it(s);if(o===!1){if(r===!1&&u===!0){n.push(e),e=s,r=u;continue}if(r===!0&&u===!1&&e.length>1){const d=e.at(-1);n.push(e.slice(0,Math.max(0,e.length-1))),e=d+s,r=u;continue}}e+=s,r=u,o=a}return n.push(e),n}function j(t){return t?st(t).map(n=>at(n)).join(""):""}function ct(t){return ut(j(t||""))}function at(t){return t?t[0].toUpperCase()+t.slice(1):""}function ut(t){return t?t[0].toLowerCase()+t.slice(1):""}function E(t){if(!t)return{};const n={};function e(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){n[j(r)]=o;return}if(r.startsWith("--")){n[r]=o;return}n[ct(r)]=o}return et(t,e),n}function ft(...t){return(...n)=>{for(const e of t)typeof e=="function"&&e(...n)}}function lt(t,n){const e=RegExp(t,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,n):r}}const pt=lt(/[A-Z]/,t=>`-${t.toLowerCase()}`);function dt(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(n=>`${pt(n)}: ${t[n]};`).join(`
`)}function ht(t={}){return dt(t).replace(`
`," ")}const mt=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],gt=new Set(mt);function bt(t){return gt.has(t)}function wt(...t){const n={...t[0]};for(let e=1;e<t.length;e++){const r=t[e];if(r){for(const o of Object.keys(r)){const s=n[o],a=r[o],u=typeof s=="function",d=typeof a=="function";if(u&&bt(o)){const f=s,l=a;n[o]=H(f,l)}else if(u&&d)n[o]=ft(s,a);else if(o==="class"){const f=T(s),l=T(a);f&&l?n[o]=S(s,a):f?n[o]=S(s):l&&(n[o]=S(a))}else if(o==="style"){const f=typeof s=="object",l=typeof a=="object",g=typeof s=="string",b=typeof a=="string";if(f&&l)n[o]={...s,...a};else if(f&&b){const h=E(a);n[o]={...s,...h}}else if(g&&l){const h=E(s);n[o]={...h,...a}}else if(g&&b){const h=E(s),c=E(a);n[o]={...h,...c}}else f?n[o]=s:l?n[o]=a:g?n[o]=s:b&&(n[o]=a)}else n[o]=a!==void 0?a:s}for(const o of Object.getOwnPropertySymbols(r)){const s=n[o],a=r[o];n[o]=a!==void 0?a:s}}}return typeof n.style=="object"&&(n.style=ht(n.style).replaceAll(`
-`," ")),n.hidden===!1&&(n.hidden=void 0,delete n.hidden),n.disabled===!1&&(n.disabled=void 0,delete n.disabled),n}function xt(t,n){return{[B()]:e=>v(t)?(t.current=e,w(()=>n?.(e)),()=>{"isConnected"in e&&e.isConnected||(t.current=null,n?.(null))}):(t(e),w(()=>n?.(e)),()=>{"isConnected"in e&&e.isConnected||(t(null),n?.(null))})}}function Ot(t){return t?"true":"false"}function Ct(t){return t?"true":void 0}function It(t){return t?"":void 0}function Rt(t){return t?!0:void 0}function _t(t){return t?"open":"closed"}function jt(t,n){return n?"mixed":t?"true":"false"}class yt{#t;#n;attrs;constructor(n){this.#t=n.getVariant?n.getVariant():null,this.#n=this.#t?`data-${this.#t}-`:`data-${n.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(n.parts.map(e=>[e,this.getAttr(e)]))}getAttr(n,e){return e?`data-${e}-${n}`:`${this.#n}${n}`}selector(n,e){return`[${this.getAttr(n,e)}]`}}function kt(t){const n=new yt(t);return{...n.attrs,selector:n.selector,getAttr:n.getAttr}}function Pt(t,n){return`bits-${t}`}export{y as B,xt as a,F as b,Pt as c,kt as d,It as e,Rt as f,_t as g,Ot as h,jt as i,ht as j,Ct as k,ft as l,wt as m,A as n,St as o,Tt as p,v as q,_ as r,G as s,At as t,U as u,H as v,E as w};
+`," ")),n.hidden===!1&&(n.hidden=void 0,delete n.hidden),n.disabled===!1&&(n.disabled=void 0,delete n.disabled),n}function xt(t,n){return{[B()]:e=>v(t)?(t.current=e,w(()=>n?.(e)),()=>{"isConnected"in e&&e.isConnected||(t.current=null,n?.(null))}):(t(e),w(()=>n?.(e)),()=>{"isConnected"in e&&e.isConnected||(t(null),n?.(null))})}}function Ot(t){return t?"true":"false"}function Ct(t){return t?"true":void 0}function It(t){return t?"":void 0}function Rt(t){return t?!0:void 0}function _t(t){return t?"open":"closed"}function jt(t,n){return n?"mixed":t?"true":"false"}class yt{#t;#n;attrs;constructor(n){this.#t=n.getVariant?n.getVariant():null,this.#n=this.#t?`data-${this.#t}-`:`data-${n.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(n.parts.map(e=>[e,this.getAttr(e)]))}getAttr(n,e){return e?`data-${e}-${n}`:`${this.#n}${n}`}selector(n,e){return`[${this.getAttr(n,e)}]`}}function kt(t){const n=new yt(t);return{...n.attrs,selector:n.selector,getAttr:n.getAttr}}function Pt(t,n){return`bits-${t}`}export{y as B,xt as a,F as b,Pt as c,kt as d,It as e,Rt as f,Ot as g,_t as h,jt as i,ht as j,Ct as k,ft as l,wt as m,A as n,St as o,Tt as p,v as q,_ as r,G as s,At as t,U as u,H as v,E as w};
diff --git a/backend/static/frontend/_app/immutable/chunks/DWAABZDo.js.map b/backend/static/frontend/_app/immutable/chunks/BDd6-VcB.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/DWAABZDo.js.map
rename to backend/static/frontend/_app/immutable/chunks/BDd6-VcB.js.map
index e6882963..aceae326 100644
--- a/backend/static/frontend/_app/immutable/chunks/DWAABZDo.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/BDd6-VcB.js.map
@@ -1 +1 @@
-{"version":3,"file":"DWAABZDo.js","sources":["../../../../../../node_modules/svelte/src/attachments/index.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/is.js","../../../../../../node_modules/svelte-toolbelt/dist/box/box-extras.svelte.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/compose-handlers.js","../../../../../../node_modules/inline-style-parser/esm/index.mjs","../../../../../../node_modules/style-to-object/esm/index.mjs","../../../../../../node_modules/svelte-toolbelt/dist/utils/strings.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/css-to-style-obj.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/execute-callbacks.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/style-to-css.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/style.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/event-list.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/merge-props.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/attach-ref.js","../../../../../../node_modules/bits-ui/dist/internal/attrs.js","../../../../../../node_modules/bits-ui/dist/internal/create-id.js"],"sourcesContent":["/** @import { Action, ActionReturn } from '../action/public' */\n/** @import { Attachment } from './public' */\nimport { noop, render_effect } from 'svelte/internal/client';\nimport { ATTACHMENT_KEY } from '../constants.js';\nimport { untrack } from '../index-client.js';\nimport { teardown } from '../internal/client/reactivity/effects.js';\n\n/**\n * Creates an object key that will be recognised as an attachment when the object is spread onto an element,\n * as a programmatic alternative to using `{@attach ...}`. This can be useful for library authors, though\n * is generally not needed when building an app.\n *\n * ```svelte\n * <script>\n * \timport { createAttachmentKey } from 'svelte/attachments';\n *\n * \tconst props = {\n * \t\tclass: 'cool',\n * \t\tonclick: () => alert('clicked'),\n * \t\t[createAttachmentKey()]: (node) => {\n * \t\t\tnode.textContent = 'attached!';\n * \t\t}\n * \t};\n * </script>\n *\n * <button {...props}>click me</button>\n * ```\n * @since 5.29\n */\nexport function createAttachmentKey() {\n\treturn Symbol(ATTACHMENT_KEY);\n}\n\n/**\n * Converts an [action](https://svelte.dev/docs/svelte/use) into an [attachment](https://svelte.dev/docs/svelte/@attach) keeping the same behavior.\n * It's useful if you want to start using attachments on components but you have actions provided by a library.\n *\n * Note that the second argument, if provided, must be a function that _returns_ the argument to the\n * action function, not the argument itself.\n *\n * ```svelte\n * <!-- with an action -->\n * <div use:foo={bar}>...</div>\n *\n * <!-- with an attachment -->\n * <div {@attach fromAction(foo, () => bar)}>...</div>\n * ```\n * @template {EventTarget} E\n * @template {unknown} T\n * @overload\n * @param {Action<E, T> | ((element: E, arg: T) => void | ActionReturn<T>)} action The action function\n * @param {() => T} fn A function that returns the argument for the action\n * @returns {Attachment<E>}\n */\n/**\n * Converts an [action](https://svelte.dev/docs/svelte/use) into an [attachment](https://svelte.dev/docs/svelte/@attach) keeping the same behavior.\n * It's useful if you want to start using attachments on components but you have actions provided by a library.\n *\n * Note that the second argument, if provided, must be a function that _returns_ the argument to the\n * action function, not the argument itself.\n *\n * ```svelte\n * <!-- with an action -->\n * <div use:foo={bar}>...</div>\n *\n * <!-- with an attachment -->\n * <div {@attach fromAction(foo, () => bar)}>...</div>\n * ```\n * @template {EventTarget} E\n * @overload\n * @param {Action<E, void> | ((element: E) => void | ActionReturn<void>)} action The action function\n * @returns {Attachment<E>}\n */\n/**\n * Converts an [action](https://svelte.dev/docs/svelte/use) into an [attachment](https://svelte.dev/docs/svelte/@attach) keeping the same behavior.\n * It's useful if you want to start using attachments on components but you have actions provided by a library.\n *\n * Note that the second argument, if provided, must be a function that _returns_ the argument to the\n * action function, not the argument itself.\n *\n * ```svelte\n * <!-- with an action -->\n * <div use:foo={bar}>...</div>\n *\n * <!-- with an attachment -->\n * <div {@attach fromAction(foo, () => bar)}>...</div>\n * ```\n *\n * @template {EventTarget} E\n * @template {unknown} T\n * @param {Action<E, T> | ((element: E, arg: T) => void | ActionReturn<T>)} action The action function\n * @param {() => T} fn A function that returns the argument for the action\n * @returns {Attachment<E>}\n * @since 5.32\n */\nexport function fromAction(action, fn = /** @type {() => T} */ (noop)) {\n\treturn (element) => {\n\t\tconst { update, destroy } = untrack(() => action(element, fn()) ?? {});\n\n\t\tif (update) {\n\t\t\tvar ran = false;\n\t\t\trender_effect(() => {\n\t\t\t\tconst arg = fn();\n\t\t\t\tif (ran) update(arg);\n\t\t\t});\n\t\t\tran = true;\n\t\t}\n\n\t\tif (destroy) {\n\t\t\tteardown(destroy);\n\t\t}\n\t};\n}\n","export function isFunction(value) {\n return typeof value === \"function\";\n}\nexport function isObject(value) {\n return value !== null && typeof value === \"object\";\n}\nconst CLASS_VALUE_PRIMITIVE_TYPES = [\"string\", \"number\", \"bigint\", \"boolean\"];\nexport function isClassValue(value) {\n // handle primitive types\n if (value === null || value === undefined)\n return true;\n if (CLASS_VALUE_PRIMITIVE_TYPES.includes(typeof value))\n return true;\n // handle arrays (ClassArray)\n if (Array.isArray(value))\n return value.every((item) => isClassValue(item));\n // handle objects (ClassDictionary)\n if (typeof value === \"object\") {\n // ensure it's a plain object and not some other object type\n if (Object.getPrototypeOf(value) !== Object.prototype)\n return false;\n return true;\n }\n return false;\n}\n","import { isFunction, isObject } from \"../utils/is.js\";\nexport const BoxSymbol = Symbol(\"box\");\nexport const isWritableSymbol = Symbol(\"is-writable\");\nfunction boxWith(getter, setter) {\n const derived = $derived.by(getter);\n if (setter) {\n return {\n [BoxSymbol]: true,\n [isWritableSymbol]: true,\n get current() {\n return derived;\n },\n set current(v) {\n setter(v);\n }\n };\n }\n return {\n [BoxSymbol]: true,\n get current() {\n return getter();\n }\n };\n}\n/**\n * @returns Whether the value is a Box\n *\n * @see {@link https://runed.dev/docs/functions/box}\n */\nfunction isBox(value) {\n return isObject(value) && BoxSymbol in value;\n}\n/**\n * @returns Whether the value is a WritableBox\n *\n * @see {@link https://runed.dev/docs/functions/box}\n */\nfunction isWritableBox(value) {\n return isBox(value) && isWritableSymbol in value;\n}\nfunction boxFrom(value) {\n if (isBox(value))\n return value;\n if (isFunction(value))\n return boxWith(value);\n return simpleBox(value);\n}\n/**\n * Function that gets an object of boxes, and returns an object of reactive values\n *\n * @example\n * const count = box(0)\n * const flat = box.flatten({ count, double: box.with(() => count.current) })\n * // type of flat is { count: number, readonly double: number }\n *\n * @see {@link https://runed.dev/docs/functions/box}\n */\nfunction boxFlatten(boxes) {\n return Object.entries(boxes).reduce((acc, [key, b]) => {\n if (!isBox(b)) {\n return Object.assign(acc, { [key]: b });\n }\n if (isWritableBox(b)) {\n Object.defineProperty(acc, key, {\n get() {\n return b.current;\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n set(v) {\n b.current = v;\n }\n });\n }\n else {\n Object.defineProperty(acc, key, {\n get() {\n return b.current;\n }\n });\n }\n return acc;\n }, {});\n}\n/**\n * Function that converts a box to a readonly box.\n *\n * @example\n * const count = box(0) // WritableBox<number>\n * const countReadonly = box.readonly(count) // ReadableBox<number>\n *\n * @see {@link https://runed.dev/docs/functions/box}\n */\nfunction toReadonlyBox(b) {\n if (!isWritableBox(b))\n return b;\n return {\n [BoxSymbol]: true,\n get current() {\n return b.current;\n }\n };\n}\nfunction simpleBox(initialValue) {\n let current = $state(initialValue);\n return {\n [BoxSymbol]: true,\n [isWritableSymbol]: true,\n get current() {\n return current;\n },\n set current(v) {\n current = v;\n }\n };\n}\nexport { boxWith, isBox, isWritableBox, boxFrom, boxFlatten, toReadonlyBox, simpleBox };\n","/**\n * Composes event handlers into a single function that can be called with an event.\n * If the previous handler cancels the event using `event.preventDefault()`, the handlers\n * that follow will not be called.\n */\nexport function composeHandlers(...handlers) {\n return function (e) {\n for (const handler of handlers) {\n if (!handler)\n continue;\n if (e.defaultPrevented)\n return;\n if (typeof handler === \"function\") {\n handler.call(this, e);\n }\n else {\n handler.current?.call(this, e);\n }\n }\n };\n}\n","// http://www.w3.org/TR/CSS21/grammar.html\n// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027\nvar COMMENT_REGEX = /\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//g;\n\nvar NEWLINE_REGEX = /\\n/g;\nvar WHITESPACE_REGEX = /^\\s*/;\n\n// declaration\nvar PROPERTY_REGEX = /^(\\*?[-#/*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)\\s*/;\nvar COLON_REGEX = /^:\\s*/;\nvar VALUE_REGEX = /^((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^)]*?\\)|[^};])+)/;\nvar SEMICOLON_REGEX = /^[;\\s]*/;\n\n// https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill\nvar TRIM_REGEX = /^\\s+|\\s+$/g;\n\n// strings\nvar NEWLINE = '\\n';\nvar FORWARD_SLASH = '/';\nvar ASTERISK = '*';\nvar EMPTY_STRING = '';\n\n// types\nvar TYPE_COMMENT = 'comment';\nvar TYPE_DECLARATION = 'declaration';\n\n/**\n * @param {String} style\n * @param {Object} [options]\n * @return {Object[]}\n * @throws {TypeError}\n * @throws {Error}\n */\nfunction index (style, options) {\n if (typeof style !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n\n if (!style) return [];\n\n options = options || {};\n\n /**\n * Positional.\n */\n var lineno = 1;\n var column = 1;\n\n /**\n * Update lineno and column based on `str`.\n *\n * @param {String} str\n */\n function updatePosition(str) {\n var lines = str.match(NEWLINE_REGEX);\n if (lines) lineno += lines.length;\n var i = str.lastIndexOf(NEWLINE);\n column = ~i ? str.length - i : column + str.length;\n }\n\n /**\n * Mark position and patch `node.position`.\n *\n * @return {Function}\n */\n function position() {\n var start = { line: lineno, column: column };\n return function (node) {\n node.position = new Position(start);\n whitespace();\n return node;\n };\n }\n\n /**\n * Store position information for a node.\n *\n * @constructor\n * @property {Object} start\n * @property {Object} end\n * @property {undefined|String} source\n */\n function Position(start) {\n this.start = start;\n this.end = { line: lineno, column: column };\n this.source = options.source;\n }\n\n /**\n * Non-enumerable source string.\n */\n Position.prototype.content = style;\n\n /**\n * Error `msg`.\n *\n * @param {String} msg\n * @throws {Error}\n */\n function error(msg) {\n var err = new Error(\n options.source + ':' + lineno + ':' + column + ': ' + msg\n );\n err.reason = msg;\n err.filename = options.source;\n err.line = lineno;\n err.column = column;\n err.source = style;\n\n if (options.silent) ; else {\n throw err;\n }\n }\n\n /**\n * Match `re` and return captures.\n *\n * @param {RegExp} re\n * @return {undefined|Array}\n */\n function match(re) {\n var m = re.exec(style);\n if (!m) return;\n var str = m[0];\n updatePosition(str);\n style = style.slice(str.length);\n return m;\n }\n\n /**\n * Parse whitespace.\n */\n function whitespace() {\n match(WHITESPACE_REGEX);\n }\n\n /**\n * Parse comments.\n *\n * @param {Object[]} [rules]\n * @return {Object[]}\n */\n function comments(rules) {\n var c;\n rules = rules || [];\n while ((c = comment())) {\n if (c !== false) {\n rules.push(c);\n }\n }\n return rules;\n }\n\n /**\n * Parse comment.\n *\n * @return {Object}\n * @throws {Error}\n */\n function comment() {\n var pos = position();\n if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;\n\n var i = 2;\n while (\n EMPTY_STRING != style.charAt(i) &&\n (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))\n ) {\n ++i;\n }\n i += 2;\n\n if (EMPTY_STRING === style.charAt(i - 1)) {\n return error('End of comment missing');\n }\n\n var str = style.slice(2, i - 2);\n column += 2;\n updatePosition(str);\n style = style.slice(i);\n column += 2;\n\n return pos({\n type: TYPE_COMMENT,\n comment: str\n });\n }\n\n /**\n * Parse declaration.\n *\n * @return {Object}\n * @throws {Error}\n */\n function declaration() {\n var pos = position();\n\n // prop\n var prop = match(PROPERTY_REGEX);\n if (!prop) return;\n comment();\n\n // :\n if (!match(COLON_REGEX)) return error(\"property missing ':'\");\n\n // val\n var val = match(VALUE_REGEX);\n\n var ret = pos({\n type: TYPE_DECLARATION,\n property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),\n value: val\n ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))\n : EMPTY_STRING\n });\n\n // ;\n match(SEMICOLON_REGEX);\n\n return ret;\n }\n\n /**\n * Parse declarations.\n *\n * @return {Object[]}\n */\n function declarations() {\n var decls = [];\n\n comments(decls);\n\n // declarations\n var decl;\n while ((decl = declaration())) {\n if (decl !== false) {\n decls.push(decl);\n comments(decls);\n }\n }\n\n return decls;\n }\n\n whitespace();\n return declarations();\n}\n\n/**\n * Trim `str`.\n *\n * @param {String} str\n * @return {String}\n */\nfunction trim(str) {\n return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;\n}\n\nexport { index as default };\n//# sourceMappingURL=index.mjs.map\n","import parse from 'inline-style-parser';\n\n/**\n * Parses inline style to object.\n *\n * @param style - Inline style.\n * @param iterator - Iterator.\n * @returns - Style object or null.\n *\n * @example Parsing inline style to object:\n *\n * ```js\n * import parse from 'style-to-object';\n * parse('line-height: 42;'); // { 'line-height': '42' }\n * ```\n */\nfunction StyleToObject(style, iterator) {\n let styleObject = null;\n if (!style || typeof style !== 'string') {\n return styleObject;\n }\n const declarations = parse(style);\n const hasIterator = typeof iterator === 'function';\n declarations.forEach((declaration) => {\n if (declaration.type !== 'declaration') {\n return;\n }\n const { property, value } = declaration;\n if (hasIterator) {\n iterator(property, value, declaration);\n }\n else if (value) {\n styleObject = styleObject || {};\n styleObject[property] = value;\n }\n });\n return styleObject;\n}\n\nexport { StyleToObject as default };\n//# sourceMappingURL=index.mjs.map\n","const NUMBER_CHAR_RE = /\\d/;\nconst STR_SPLITTERS = [\"-\", \"_\", \"/\", \".\"];\nfunction isUppercase(char = \"\") {\n if (NUMBER_CHAR_RE.test(char))\n return undefined;\n return char !== char.toLowerCase();\n}\nfunction splitByCase(str) {\n const parts = [];\n let buff = \"\";\n let previousUpper;\n let previousSplitter;\n for (const char of str) {\n // Splitter\n const isSplitter = STR_SPLITTERS.includes(char);\n if (isSplitter === true) {\n parts.push(buff);\n buff = \"\";\n previousUpper = undefined;\n continue;\n }\n const isUpper = isUppercase(char);\n if (previousSplitter === false) {\n // Case rising edge\n if (previousUpper === false && isUpper === true) {\n parts.push(buff);\n buff = char;\n previousUpper = isUpper;\n continue;\n }\n // Case falling edge\n if (previousUpper === true && isUpper === false && buff.length > 1) {\n const lastChar = buff.at(-1);\n parts.push(buff.slice(0, Math.max(0, buff.length - 1)));\n buff = lastChar + char;\n previousUpper = isUpper;\n continue;\n }\n }\n // Normal char\n buff += char;\n previousUpper = isUpper;\n previousSplitter = isSplitter;\n }\n parts.push(buff);\n return parts;\n}\nexport function pascalCase(str) {\n if (!str)\n return \"\";\n return splitByCase(str)\n .map((p) => upperFirst(p))\n .join(\"\");\n}\nexport function camelCase(str) {\n return lowerFirst(pascalCase(str || \"\"));\n}\nexport function kebabCase(str) {\n return str\n ? splitByCase(str)\n .map((p) => p.toLowerCase())\n .join(\"-\")\n : \"\";\n}\nfunction upperFirst(str) {\n return str ? str[0].toUpperCase() + str.slice(1) : \"\";\n}\nfunction lowerFirst(str) {\n return str ? str[0].toLowerCase() + str.slice(1) : \"\";\n}\n","import parse from \"style-to-object\";\nimport { camelCase, pascalCase } from \"./strings.js\";\nexport function cssToStyleObj(css) {\n if (!css)\n return {};\n const styleObj = {};\n function iterator(name, value) {\n if (name.startsWith(\"-moz-\") ||\n name.startsWith(\"-webkit-\") ||\n name.startsWith(\"-ms-\") ||\n name.startsWith(\"-o-\")) {\n styleObj[pascalCase(name)] = value;\n return;\n }\n if (name.startsWith(\"--\")) {\n styleObj[name] = value;\n return;\n }\n styleObj[camelCase(name)] = value;\n }\n parse(css, iterator);\n return styleObj;\n}\n","/**\n * Executes an array of callback functions with the same arguments.\n * @template T The types of the arguments that the callback functions take.\n * @param callbacks array of callback functions to execute.\n * @returns A new function that executes all of the original callback functions with the same arguments.\n */\nexport function executeCallbacks(...callbacks) {\n return (...args) => {\n for (const callback of callbacks) {\n if (typeof callback === \"function\") {\n callback(...args);\n }\n }\n };\n}\n","function createParser(matcher, replacer) {\n const regex = RegExp(matcher, \"g\");\n return (str) => {\n // throw an error if not a string\n if (typeof str !== \"string\") {\n throw new TypeError(`expected an argument of type string, but got ${typeof str}`);\n }\n // if no match between string and matcher\n if (!str.match(regex))\n return str;\n // executes the replacer function for each match\n return str.replace(regex, replacer);\n };\n}\nconst camelToKebab = createParser(/[A-Z]/, (match) => `-${match.toLowerCase()}`);\nexport function styleToCSS(styleObj) {\n if (!styleObj || typeof styleObj !== \"object\" || Array.isArray(styleObj)) {\n throw new TypeError(`expected an argument of type object, but got ${typeof styleObj}`);\n }\n return Object.keys(styleObj)\n .map((property) => `${camelToKebab(property)}: ${styleObj[property]};`)\n .join(\"\\n\");\n}\n","import { styleToCSS } from \"./style-to-css.js\";\nexport function styleToString(style = {}) {\n return styleToCSS(style).replace(\"\\n\", \" \");\n}\n","const EVENT_LIST = [\n \"onabort\",\n \"onanimationcancel\",\n \"onanimationend\",\n \"onanimationiteration\",\n \"onanimationstart\",\n \"onauxclick\",\n \"onbeforeinput\",\n \"onbeforetoggle\",\n \"onblur\",\n \"oncancel\",\n \"oncanplay\",\n \"oncanplaythrough\",\n \"onchange\",\n \"onclick\",\n \"onclose\",\n \"oncompositionend\",\n \"oncompositionstart\",\n \"oncompositionupdate\",\n \"oncontextlost\",\n \"oncontextmenu\",\n \"oncontextrestored\",\n \"oncopy\",\n \"oncuechange\",\n \"oncut\",\n \"ondblclick\",\n \"ondrag\",\n \"ondragend\",\n \"ondragenter\",\n \"ondragleave\",\n \"ondragover\",\n \"ondragstart\",\n \"ondrop\",\n \"ondurationchange\",\n \"onemptied\",\n \"onended\",\n \"onerror\",\n \"onfocus\",\n \"onfocusin\",\n \"onfocusout\",\n \"onformdata\",\n \"ongotpointercapture\",\n \"oninput\",\n \"oninvalid\",\n \"onkeydown\",\n \"onkeypress\",\n \"onkeyup\",\n \"onload\",\n \"onloadeddata\",\n \"onloadedmetadata\",\n \"onloadstart\",\n \"onlostpointercapture\",\n \"onmousedown\",\n \"onmouseenter\",\n \"onmouseleave\",\n \"onmousemove\",\n \"onmouseout\",\n \"onmouseover\",\n \"onmouseup\",\n \"onpaste\",\n \"onpause\",\n \"onplay\",\n \"onplaying\",\n \"onpointercancel\",\n \"onpointerdown\",\n \"onpointerenter\",\n \"onpointerleave\",\n \"onpointermove\",\n \"onpointerout\",\n \"onpointerover\",\n \"onpointerup\",\n \"onprogress\",\n \"onratechange\",\n \"onreset\",\n \"onresize\",\n \"onscroll\",\n \"onscrollend\",\n \"onsecuritypolicyviolation\",\n \"onseeked\",\n \"onseeking\",\n \"onselect\",\n \"onselectionchange\",\n \"onselectstart\",\n \"onslotchange\",\n \"onstalled\",\n \"onsubmit\",\n \"onsuspend\",\n \"ontimeupdate\",\n \"ontoggle\",\n \"ontouchcancel\",\n \"ontouchend\",\n \"ontouchmove\",\n \"ontouchstart\",\n \"ontransitioncancel\",\n \"ontransitionend\",\n \"ontransitionrun\",\n \"ontransitionstart\",\n \"onvolumechange\",\n \"onwaiting\",\n \"onwebkitanimationend\",\n \"onwebkitanimationiteration\",\n \"onwebkitanimationstart\",\n \"onwebkittransitionend\",\n \"onwheel\"\n];\nexport const EVENT_LIST_SET = new Set(EVENT_LIST);\n","/**\n * Modified from https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/utils/src/mergeProps.ts (see NOTICE.txt for source)\n */\nimport { clsx } from \"clsx\";\nimport { composeHandlers } from \"./compose-handlers.js\";\nimport { cssToStyleObj } from \"./css-to-style-obj.js\";\nimport { isClassValue } from \"./is.js\";\nimport { executeCallbacks } from \"./execute-callbacks.js\";\nimport { styleToString } from \"./style.js\";\nimport { EVENT_LIST_SET } from \"./event-list.js\";\nfunction isEventHandler(key) {\n return EVENT_LIST_SET.has(key);\n}\n/**\n * Given a list of prop objects, merges them into a single object.\n * - Automatically composes event handlers (e.g. `onclick`, `oninput`, etc.)\n * - Chains regular functions with the same name so they are called in order\n * - Merges class strings with `clsx`\n * - Merges style objects and converts them to strings\n * - Handles a bug with Svelte where setting the `hidden` attribute to `false` doesn't remove it\n * - Overrides other values with the last one\n */\nexport function mergeProps(...args) {\n const result = { ...args[0] };\n for (let i = 1; i < args.length; i++) {\n const props = args[i];\n if (!props)\n continue;\n // Handle string keys\n for (const key of Object.keys(props)) {\n const a = result[key];\n const b = props[key];\n const aIsFunction = typeof a === \"function\";\n const bIsFunction = typeof b === \"function\";\n // compose event handlers\n if (aIsFunction && typeof bIsFunction && isEventHandler(key)) {\n // handle merging of event handlers\n const aHandler = a;\n const bHandler = b;\n result[key] = composeHandlers(aHandler, bHandler);\n }\n else if (aIsFunction && bIsFunction) {\n // chain non-event handler functions\n result[key] = executeCallbacks(a, b);\n }\n else if (key === \"class\") {\n // handle merging acceptable class values from clsx\n const aIsClassValue = isClassValue(a);\n const bIsClassValue = isClassValue(b);\n if (aIsClassValue && bIsClassValue) {\n result[key] = clsx(a, b);\n }\n else if (aIsClassValue) {\n result[key] = clsx(a);\n }\n else if (bIsClassValue) {\n result[key] = clsx(b);\n }\n }\n else if (key === \"style\") {\n const aIsObject = typeof a === \"object\";\n const bIsObject = typeof b === \"object\";\n const aIsString = typeof a === \"string\";\n const bIsString = typeof b === \"string\";\n if (aIsObject && bIsObject) {\n // both are style objects, merge them\n result[key] = { ...a, ...b };\n }\n else if (aIsObject && bIsString) {\n // a is style object, b is string, convert b to style object and merge\n const parsedStyle = cssToStyleObj(b);\n result[key] = { ...a, ...parsedStyle };\n }\n else if (aIsString && bIsObject) {\n // a is string, b is style object, convert a to style object and merge\n const parsedStyle = cssToStyleObj(a);\n result[key] = { ...parsedStyle, ...b };\n }\n else if (aIsString && bIsString) {\n // both are strings, convert both to objects and merge\n const parsedStyleA = cssToStyleObj(a);\n const parsedStyleB = cssToStyleObj(b);\n result[key] = { ...parsedStyleA, ...parsedStyleB };\n }\n else if (aIsObject) {\n result[key] = a;\n }\n else if (bIsObject) {\n result[key] = b;\n }\n else if (aIsString) {\n result[key] = a;\n }\n else if (bIsString) {\n result[key] = b;\n }\n }\n else {\n // override other values\n result[key] = b !== undefined ? b : a;\n }\n }\n // handle symbol keys (mostly for `Attachments`)\n for (const key of Object.getOwnPropertySymbols(props)) {\n const a = result[key];\n const b = props[key];\n // for matching symbols, we just override\n result[key] = b !== undefined ? b : a;\n }\n }\n // convert style object to string\n if (typeof result.style === \"object\") {\n result.style = styleToString(result.style).replaceAll(\"\\n\", \" \");\n }\n // handle weird svelte bug where `hidden` is not removed when set to `false`\n if (result.hidden === false) {\n result.hidden = undefined;\n delete result.hidden;\n }\n // handle weird svelte bug where `disabled` is not removed when set to `false`\n if (result.disabled === false) {\n result.disabled = undefined;\n delete result.disabled;\n }\n return result;\n}\n","import { untrack } from \"svelte\";\nimport { isBox } from \"../box/box-extras.svelte.js\";\nimport { createAttachmentKey } from \"svelte/attachments\";\n/**\n * Creates a Svelte Attachment that attaches a DOM element to a ref.\n * The ref can be either a WritableBox or a callback function.\n *\n * @param ref - Either a WritableBox to store the element in, or a callback function that receives the element\n * @param onChange - Optional callback that fires when the ref changes\n * @returns An object with a spreadable attachment key that should be spread onto the element\n *\n * @example\n * // Using with WritableBox\n * const ref = box<HTMLDivElement | null>(null);\n * <div {...attachRef(ref)}>Content</div>\n *\n * @example\n * // Using with callback\n * <div {...attachRef((node) => myNode = node)}>Content</div>\n *\n * @example\n * // Using with onChange\n * <div {...attachRef(ref, (node) => console.log(node))}>Content</div>\n */\nexport function attachRef(ref, onChange) {\n return {\n [createAttachmentKey()]: (node) => {\n if (isBox(ref)) {\n ref.current = node;\n untrack(() => onChange?.(node));\n return () => {\n // we don't want to detach the node if it's still connected\n if (\"isConnected\" in node && node.isConnected)\n return;\n ref.current = null;\n onChange?.(null);\n };\n }\n ref(node);\n untrack(() => onChange?.(node));\n return () => {\n // we don't want to detach the node if it's still connected\n if (\"isConnected\" in node && node.isConnected)\n return;\n ref(null);\n onChange?.(null);\n };\n }\n };\n}\n","export function boolToStr(condition) {\n return condition ? \"true\" : \"false\";\n}\nexport function boolToStrTrueOrUndef(condition) {\n return condition ? \"true\" : undefined;\n}\nexport function boolToEmptyStrOrUndef(condition) {\n return condition ? \"\" : undefined;\n}\nexport function boolToTrueOrUndef(condition) {\n return condition ? true : undefined;\n}\nexport function getDataOpenClosed(condition) {\n return condition ? \"open\" : \"closed\";\n}\nexport function getDataChecked(condition) {\n return condition ? \"checked\" : \"unchecked\";\n}\nexport function getAriaChecked(checked, indeterminate) {\n if (indeterminate) {\n return \"mixed\";\n }\n return checked ? \"true\" : \"false\";\n}\nexport class BitsAttrs {\n #variant;\n #prefix;\n attrs;\n constructor(config) {\n this.#variant = config.getVariant ? config.getVariant() : null;\n this.#prefix = this.#variant ? `data-${this.#variant}-` : `data-${config.component}-`;\n this.getAttr = this.getAttr.bind(this);\n this.selector = this.selector.bind(this);\n this.attrs = Object.fromEntries(config.parts.map((part) => [part, this.getAttr(part)]));\n }\n getAttr(part, variantOverride) {\n if (variantOverride)\n return `data-${variantOverride}-${part}`;\n return `${this.#prefix}${part}`;\n }\n selector(part, variantOverride) {\n return `[${this.getAttr(part, variantOverride)}]`;\n }\n}\nexport function createBitsAttrs(config) {\n const bitsAttrs = new BitsAttrs(config);\n return {\n ...bitsAttrs.attrs,\n selector: bitsAttrs.selector,\n getAttr: bitsAttrs.getAttr,\n };\n}\n","export function createId(prefixOrUid, uid) {\n if (uid === undefined)\n return `bits-${prefixOrUid}`;\n return `bits-${prefixOrUid}-${uid}`;\n}\n"],"names":["createAttachmentKey","ATTACHMENT_KEY","isFunction","value","isObject","CLASS_VALUE_PRIMITIVE_TYPES","isClassValue","item","BoxSymbol","isWritableSymbol","boxWith","getter","setter","derived","v","isBox","isWritableBox","boxFrom","simpleBox","boxFlatten","boxes","acc","key","b","toReadonlyBox","initialValue","current","$.state","$.proxy","$.set","composeHandlers","handlers","e","handler","COMMENT_REGEX","NEWLINE_REGEX","WHITESPACE_REGEX","PROPERTY_REGEX","COLON_REGEX","VALUE_REGEX","SEMICOLON_REGEX","TRIM_REGEX","NEWLINE","FORWARD_SLASH","ASTERISK","EMPTY_STRING","TYPE_COMMENT","TYPE_DECLARATION","index","style","options","lineno","column","updatePosition","str","lines","i","position","start","node","Position","whitespace","error","msg","err","match","re","m","comments","rules","c","comment","pos","declaration","prop","val","ret","trim","declarations","decls","decl","StyleToObject","iterator","styleObject","parse","hasIterator","property","NUMBER_CHAR_RE","STR_SPLITTERS","isUppercase","char","splitByCase","parts","buff","previousUpper","previousSplitter","isSplitter","isUpper","lastChar","pascalCase","p","upperFirst","camelCase","lowerFirst","cssToStyleObj","css","styleObj","name","executeCallbacks","callbacks","args","callback","createParser","matcher","replacer","regex","camelToKebab","styleToCSS","styleToString","EVENT_LIST","EVENT_LIST_SET","isEventHandler","mergeProps","result","props","a","aIsFunction","bIsFunction","aHandler","bHandler","aIsClassValue","bIsClassValue","clsx","aIsObject","bIsObject","aIsString","bIsString","parsedStyle","parsedStyleA","parsedStyleB","attachRef","ref","onChange","untrack","boolToStr","condition","boolToStrTrueOrUndef","boolToEmptyStrOrUndef","boolToTrueOrUndef","getDataOpenClosed","getAriaChecked","checked","indeterminate","BitsAttrs","#variant","#prefix","config","part","variantOverride","createBitsAttrs","bitsAttrs","createId","prefixOrUid","uid"],"mappings":"+GA6BO,SAASA,GAAsB,CACrC,OAAO,OAAOC,CAAc,CAC7B,CC/BO,SAASC,EAAWC,EAAO,CAC9B,OAAO,OAAOA,GAAU,UAC5B,CACO,SAASC,EAASD,EAAO,CAC5B,OAAOA,IAAU,MAAQ,OAAOA,GAAU,QAC9C,CACA,MAAME,EAA8B,CAAC,SAAU,SAAU,SAAU,SAAS,EACrE,SAASC,EAAaH,EAAO,CAIhC,OAFIA,GAAU,MAEVE,EAA4B,SAAS,OAAOF,CAAK,EAC1C,GAEP,MAAM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B,IAAKpB,GAAa,GAAG8B,GAAa9B,CAAQ,CAAC,KAAKoB,EAASpB,CAAQ,CAAC,GAAG,EACrE,KAAK;AAAA,CAAI,CAClB,CCrBO,SAASgC,GAAcrE,EAAQ,GAAI,CACtC,OAAOoE,GAAWpE,CAAK,EAAE,QAAQ;AAAA,EAAM,GAAG,CAC9C,CCHA,MAAMsE,GAAa,CACf,UACA,oBACA,iBACA,uBACA,mBACA,aACA,gBACA,iBACA,SACA,WACA,YACA,mBACA,WACA,UACA,UACA,mBACA,qBACA,sBACA,gBACA,gBACA,oBACA,SACA,cACA,QACA,aACA,SACA,YACA,cACA,cACA,aACA,cACA,SACA,mBACA,YACA,UACA,UACA,UACA,YACA,aACA,aACA,sBACA,UACA,YACA,YACA,aACA,UACA,SACA,eACA,mBACA,cACA,uBACA,cACA,eACA,eACA,cACA,aACA,cACA,YACA,UACA,UACA,SACA,YACA,kBACA,gBACA,iBACA,iBACA,gBACA,eACA,gBACA,cACA,aACA,eACA,UACA,WACA,WACA,cACA,4BACA,WACA,YACA,WACA,oBACA,gBACA,eACA,YACA,WACA,YACA,eACA,WACA,gBACA,aACA,cACA,eACA,qBACA,kBACA,kBACA,oBACA,iBACA,YACA,uBACA,6BACA,yBACA,wBACA,SACJ,EACaC,GAAiB,IAAI,IAAID,EAAU,EC/FhD,SAASE,GAAenG,EAAK,CACzB,OAAOkG,GAAe,IAAIlG,CAAG,CACjC,CAUO,SAASoG,MAAcZ,EAAM,CAChC,MAAMa,EAAS,CAAE,GAAGb,EAAK,CAAC,CAAC,EAC3B,QAAStD,EAAI,EAAGA,EAAIsD,EAAK,OAAQtD,IAAK,CAClC,MAAMoE,EAAQd,EAAKtD,CAAC,EACpB,GAAKoE,EAGL,WAAWtG,KAAO,OAAO,KAAKsG,CAAK,EAAG,CAClC,MAAMC,EAAIF,EAAOrG,CAAG,EACdC,EAAIqG,EAAMtG,CAAG,EACbwG,EAAc,OAAOD,GAAM,WAC3BE,EAAc,OAAOxG,GAAM,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,OAAIA,EACO,QAEJD,EAAU,OAAS,OAC9B,CACO,MAAME,EAAU,CACnBC,GACAC,GACA,MACA,YAAYC,EAAQ,CAChB,KAAKF,GAAWE,EAAO,WAAaA,EAAO,WAAU,EAAK,KAC1D,KAAKD,GAAU,KAAKD,GAAW,QAAQ,KAAKA,EAAQ,IAAM,QAAQE,EAAO,SAAS,IAClF,KAAK,QAAU,KAAK,QAAQ,KAAK,IAAI,EACrC,KAAK,SAAW,KAAK,SAAS,KAAK,IAAI,EACvC,KAAK,MAAQ,OAAO,YAAYA,EAAO,MAAM,IAAKC,GAAS,CAACA,EAAM,KAAK,QAAQA,CAAI,CAAC,CAAC,CAAC,CAC1F,CACA,QAAQA,EAAMC,EAAiB,CAC3B,OAAIA,EACO,QAAQA,CAAe,IAAID,CAAI,GACnC,GAAG,KAAKF,EAAO,GAAGE,CAAI,EACjC,CACA,SAASA,EAAMC,EAAiB,CAC5B,MAAO,IAAI,KAAK,QAAQD,EAAMC,CAAe,CAAC,GAClD,CACJ,CACO,SAASC,GAAgBH,EAAQ,CACpC,MAAMI,EAAY,IAAIP,GAAUG,CAAM,EACtC,MAAO,CACH,GAAGI,EAAU,MACb,SAAUA,EAAU,SACpB,QAASA,EAAU,OAC3B,CACA,CCnDO,SAASC,GAASC,EAAaC,EAAK,CAEnC,MAAO,QAAQD,CAAW,EAElC","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]}
\ No newline at end of file
+{"version":3,"file":"BDd6-VcB.js","sources":["../../../../../../node_modules/svelte/src/attachments/index.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/is.js","../../../../../../node_modules/svelte-toolbelt/dist/box/box-extras.svelte.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/compose-handlers.js","../../../../../../node_modules/inline-style-parser/esm/index.mjs","../../../../../../node_modules/style-to-object/esm/index.mjs","../../../../../../node_modules/svelte-toolbelt/dist/utils/strings.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/css-to-style-obj.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/execute-callbacks.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/style-to-css.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/style.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/event-list.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/merge-props.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/attach-ref.js","../../../../../../node_modules/bits-ui/dist/internal/attrs.js","../../../../../../node_modules/bits-ui/dist/internal/create-id.js"],"sourcesContent":["/** @import { Action, ActionReturn } from '../action/public' */\n/** @import { Attachment } from './public' */\nimport { noop, render_effect } from 'svelte/internal/client';\nimport { ATTACHMENT_KEY } from '../constants.js';\nimport { untrack } from '../index-client.js';\nimport { teardown } from '../internal/client/reactivity/effects.js';\n\n/**\n * Creates an object key that will be recognised as an attachment when the object is spread onto an element,\n * as a programmatic alternative to using `{@attach ...}`. This can be useful for library authors, though\n * is generally not needed when building an app.\n *\n * ```svelte\n * <script>\n * \timport { createAttachmentKey } from 'svelte/attachments';\n *\n * \tconst props = {\n * \t\tclass: 'cool',\n * \t\tonclick: () => alert('clicked'),\n * \t\t[createAttachmentKey()]: (node) => {\n * \t\t\tnode.textContent = 'attached!';\n * \t\t}\n * \t};\n * </script>\n *\n * <button {...props}>click me</button>\n * ```\n * @since 5.29\n */\nexport function createAttachmentKey() {\n\treturn Symbol(ATTACHMENT_KEY);\n}\n\n/**\n * Converts an [action](https://svelte.dev/docs/svelte/use) into an [attachment](https://svelte.dev/docs/svelte/@attach) keeping the same behavior.\n * It's useful if you want to start using attachments on components but you have actions provided by a library.\n *\n * Note that the second argument, if provided, must be a function that _returns_ the argument to the\n * action function, not the argument itself.\n *\n * ```svelte\n * <!-- with an action -->\n * <div use:foo={bar}>...</div>\n *\n * <!-- with an attachment -->\n * <div {@attach fromAction(foo, () => bar)}>...</div>\n * ```\n * @template {EventTarget} E\n * @template {unknown} T\n * @overload\n * @param {Action<E, T> | ((element: E, arg: T) => void | ActionReturn<T>)} action The action function\n * @param {() => T} fn A function that returns the argument for the action\n * @returns {Attachment<E>}\n */\n/**\n * Converts an [action](https://svelte.dev/docs/svelte/use) into an [attachment](https://svelte.dev/docs/svelte/@attach) keeping the same behavior.\n * It's useful if you want to start using attachments on components but you have actions provided by a library.\n *\n * Note that the second argument, if provided, must be a function that _returns_ the argument to the\n * action function, not the argument itself.\n *\n * ```svelte\n * <!-- with an action -->\n * <div use:foo={bar}>...</div>\n *\n * <!-- with an attachment -->\n * <div {@attach fromAction(foo, () => bar)}>...</div>\n * ```\n * @template {EventTarget} E\n * @overload\n * @param {Action<E, void> | ((element: E) => void | ActionReturn<void>)} action The action function\n * @returns {Attachment<E>}\n */\n/**\n * Converts an [action](https://svelte.dev/docs/svelte/use) into an [attachment](https://svelte.dev/docs/svelte/@attach) keeping the same behavior.\n * It's useful if you want to start using attachments on components but you have actions provided by a library.\n *\n * Note that the second argument, if provided, must be a function that _returns_ the argument to the\n * action function, not the argument itself.\n *\n * ```svelte\n * <!-- with an action -->\n * <div use:foo={bar}>...</div>\n *\n * <!-- with an attachment -->\n * <div {@attach fromAction(foo, () => bar)}>...</div>\n * ```\n *\n * @template {EventTarget} E\n * @template {unknown} T\n * @param {Action<E, T> | ((element: E, arg: T) => void | ActionReturn<T>)} action The action function\n * @param {() => T} fn A function that returns the argument for the action\n * @returns {Attachment<E>}\n * @since 5.32\n */\nexport function fromAction(action, fn = /** @type {() => T} */ (noop)) {\n\treturn (element) => {\n\t\tconst { update, destroy } = untrack(() => action(element, fn()) ?? {});\n\n\t\tif (update) {\n\t\t\tvar ran = false;\n\t\t\trender_effect(() => {\n\t\t\t\tconst arg = fn();\n\t\t\t\tif (ran) update(arg);\n\t\t\t});\n\t\t\tran = true;\n\t\t}\n\n\t\tif (destroy) {\n\t\t\tteardown(destroy);\n\t\t}\n\t};\n}\n","export function isFunction(value) {\n return typeof value === \"function\";\n}\nexport function isObject(value) {\n return value !== null && typeof value === \"object\";\n}\nconst CLASS_VALUE_PRIMITIVE_TYPES = [\"string\", \"number\", \"bigint\", \"boolean\"];\nexport function isClassValue(value) {\n // handle primitive types\n if (value === null || value === undefined)\n return true;\n if (CLASS_VALUE_PRIMITIVE_TYPES.includes(typeof value))\n return true;\n // handle arrays (ClassArray)\n if (Array.isArray(value))\n return value.every((item) => isClassValue(item));\n // handle objects (ClassDictionary)\n if (typeof value === \"object\") {\n // ensure it's a plain object and not some other object type\n if (Object.getPrototypeOf(value) !== Object.prototype)\n return false;\n return true;\n }\n return false;\n}\n","import { isFunction, isObject } from \"../utils/is.js\";\nexport const BoxSymbol = Symbol(\"box\");\nexport const isWritableSymbol = Symbol(\"is-writable\");\nfunction boxWith(getter, setter) {\n const derived = $derived.by(getter);\n if (setter) {\n return {\n [BoxSymbol]: true,\n [isWritableSymbol]: true,\n get current() {\n return derived;\n },\n set current(v) {\n setter(v);\n }\n };\n }\n return {\n [BoxSymbol]: true,\n get current() {\n return getter();\n }\n };\n}\n/**\n * @returns Whether the value is a Box\n *\n * @see {@link https://runed.dev/docs/functions/box}\n */\nfunction isBox(value) {\n return isObject(value) && BoxSymbol in value;\n}\n/**\n * @returns Whether the value is a WritableBox\n *\n * @see {@link https://runed.dev/docs/functions/box}\n */\nfunction isWritableBox(value) {\n return isBox(value) && isWritableSymbol in value;\n}\nfunction boxFrom(value) {\n if (isBox(value))\n return value;\n if (isFunction(value))\n return boxWith(value);\n return simpleBox(value);\n}\n/**\n * Function that gets an object of boxes, and returns an object of reactive values\n *\n * @example\n * const count = box(0)\n * const flat = box.flatten({ count, double: box.with(() => count.current) })\n * // type of flat is { count: number, readonly double: number }\n *\n * @see {@link https://runed.dev/docs/functions/box}\n */\nfunction boxFlatten(boxes) {\n return Object.entries(boxes).reduce((acc, [key, b]) => {\n if (!isBox(b)) {\n return Object.assign(acc, { [key]: b });\n }\n if (isWritableBox(b)) {\n Object.defineProperty(acc, key, {\n get() {\n return b.current;\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n set(v) {\n b.current = v;\n }\n });\n }\n else {\n Object.defineProperty(acc, key, {\n get() {\n return b.current;\n }\n });\n }\n return acc;\n }, {});\n}\n/**\n * Function that converts a box to a readonly box.\n *\n * @example\n * const count = box(0) // WritableBox<number>\n * const countReadonly = box.readonly(count) // ReadableBox<number>\n *\n * @see {@link https://runed.dev/docs/functions/box}\n */\nfunction toReadonlyBox(b) {\n if (!isWritableBox(b))\n return b;\n return {\n [BoxSymbol]: true,\n get current() {\n return b.current;\n }\n };\n}\nfunction simpleBox(initialValue) {\n let current = $state(initialValue);\n return {\n [BoxSymbol]: true,\n [isWritableSymbol]: true,\n get current() {\n return current;\n },\n set current(v) {\n current = v;\n }\n };\n}\nexport { boxWith, isBox, isWritableBox, boxFrom, boxFlatten, toReadonlyBox, simpleBox };\n","/**\n * Composes event handlers into a single function that can be called with an event.\n * If the previous handler cancels the event using `event.preventDefault()`, the handlers\n * that follow will not be called.\n */\nexport function composeHandlers(...handlers) {\n return function (e) {\n for (const handler of handlers) {\n if (!handler)\n continue;\n if (e.defaultPrevented)\n return;\n if (typeof handler === \"function\") {\n handler.call(this, e);\n }\n else {\n handler.current?.call(this, e);\n }\n }\n };\n}\n","// http://www.w3.org/TR/CSS21/grammar.html\n// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027\nvar COMMENT_REGEX = /\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//g;\n\nvar NEWLINE_REGEX = /\\n/g;\nvar WHITESPACE_REGEX = /^\\s*/;\n\n// declaration\nvar PROPERTY_REGEX = /^(\\*?[-#/*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)\\s*/;\nvar COLON_REGEX = /^:\\s*/;\nvar VALUE_REGEX = /^((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^)]*?\\)|[^};])+)/;\nvar SEMICOLON_REGEX = /^[;\\s]*/;\n\n// https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill\nvar TRIM_REGEX = /^\\s+|\\s+$/g;\n\n// strings\nvar NEWLINE = '\\n';\nvar FORWARD_SLASH = '/';\nvar ASTERISK = '*';\nvar EMPTY_STRING = '';\n\n// types\nvar TYPE_COMMENT = 'comment';\nvar TYPE_DECLARATION = 'declaration';\n\n/**\n * @param {String} style\n * @param {Object} [options]\n * @return {Object[]}\n * @throws {TypeError}\n * @throws {Error}\n */\nfunction index (style, options) {\n if (typeof style !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n\n if (!style) return [];\n\n options = options || {};\n\n /**\n * Positional.\n */\n var lineno = 1;\n var column = 1;\n\n /**\n * Update lineno and column based on `str`.\n *\n * @param {String} str\n */\n function updatePosition(str) {\n var lines = str.match(NEWLINE_REGEX);\n if (lines) lineno += lines.length;\n var i = str.lastIndexOf(NEWLINE);\n column = ~i ? str.length - i : column + str.length;\n }\n\n /**\n * Mark position and patch `node.position`.\n *\n * @return {Function}\n */\n function position() {\n var start = { line: lineno, column: column };\n return function (node) {\n node.position = new Position(start);\n whitespace();\n return node;\n };\n }\n\n /**\n * Store position information for a node.\n *\n * @constructor\n * @property {Object} start\n * @property {Object} end\n * @property {undefined|String} source\n */\n function Position(start) {\n this.start = start;\n this.end = { line: lineno, column: column };\n this.source = options.source;\n }\n\n /**\n * Non-enumerable source string.\n */\n Position.prototype.content = style;\n\n /**\n * Error `msg`.\n *\n * @param {String} msg\n * @throws {Error}\n */\n function error(msg) {\n var err = new Error(\n options.source + ':' + lineno + ':' + column + ': ' + msg\n );\n err.reason = msg;\n err.filename = options.source;\n err.line = lineno;\n err.column = column;\n err.source = style;\n\n if (options.silent) ; else {\n throw err;\n }\n }\n\n /**\n * Match `re` and return captures.\n *\n * @param {RegExp} re\n * @return {undefined|Array}\n */\n function match(re) {\n var m = re.exec(style);\n if (!m) return;\n var str = m[0];\n updatePosition(str);\n style = style.slice(str.length);\n return m;\n }\n\n /**\n * Parse whitespace.\n */\n function whitespace() {\n match(WHITESPACE_REGEX);\n }\n\n /**\n * Parse comments.\n *\n * @param {Object[]} [rules]\n * @return {Object[]}\n */\n function comments(rules) {\n var c;\n rules = rules || [];\n while ((c = comment())) {\n if (c !== false) {\n rules.push(c);\n }\n }\n return rules;\n }\n\n /**\n * Parse comment.\n *\n * @return {Object}\n * @throws {Error}\n */\n function comment() {\n var pos = position();\n if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;\n\n var i = 2;\n while (\n EMPTY_STRING != style.charAt(i) &&\n (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))\n ) {\n ++i;\n }\n i += 2;\n\n if (EMPTY_STRING === style.charAt(i - 1)) {\n return error('End of comment missing');\n }\n\n var str = style.slice(2, i - 2);\n column += 2;\n updatePosition(str);\n style = style.slice(i);\n column += 2;\n\n return pos({\n type: TYPE_COMMENT,\n comment: str\n });\n }\n\n /**\n * Parse declaration.\n *\n * @return {Object}\n * @throws {Error}\n */\n function declaration() {\n var pos = position();\n\n // prop\n var prop = match(PROPERTY_REGEX);\n if (!prop) return;\n comment();\n\n // :\n if (!match(COLON_REGEX)) return error(\"property missing ':'\");\n\n // val\n var val = match(VALUE_REGEX);\n\n var ret = pos({\n type: TYPE_DECLARATION,\n property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),\n value: val\n ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))\n : EMPTY_STRING\n });\n\n // ;\n match(SEMICOLON_REGEX);\n\n return ret;\n }\n\n /**\n * Parse declarations.\n *\n * @return {Object[]}\n */\n function declarations() {\n var decls = [];\n\n comments(decls);\n\n // declarations\n var decl;\n while ((decl = declaration())) {\n if (decl !== false) {\n decls.push(decl);\n comments(decls);\n }\n }\n\n return decls;\n }\n\n whitespace();\n return declarations();\n}\n\n/**\n * Trim `str`.\n *\n * @param {String} str\n * @return {String}\n */\nfunction trim(str) {\n return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;\n}\n\nexport { index as default };\n//# sourceMappingURL=index.mjs.map\n","import parse from 'inline-style-parser';\n\n/**\n * Parses inline style to object.\n *\n * @param style - Inline style.\n * @param iterator - Iterator.\n * @returns - Style object or null.\n *\n * @example Parsing inline style to object:\n *\n * ```js\n * import parse from 'style-to-object';\n * parse('line-height: 42;'); // { 'line-height': '42' }\n * ```\n */\nfunction StyleToObject(style, iterator) {\n let styleObject = null;\n if (!style || typeof style !== 'string') {\n return styleObject;\n }\n const declarations = parse(style);\n const hasIterator = typeof iterator === 'function';\n declarations.forEach((declaration) => {\n if (declaration.type !== 'declaration') {\n return;\n }\n const { property, value } = declaration;\n if (hasIterator) {\n iterator(property, value, declaration);\n }\n else if (value) {\n styleObject = styleObject || {};\n styleObject[property] = value;\n }\n });\n return styleObject;\n}\n\nexport { StyleToObject as default };\n//# sourceMappingURL=index.mjs.map\n","const NUMBER_CHAR_RE = /\\d/;\nconst STR_SPLITTERS = [\"-\", \"_\", \"/\", \".\"];\nfunction isUppercase(char = \"\") {\n if (NUMBER_CHAR_RE.test(char))\n return undefined;\n return char !== char.toLowerCase();\n}\nfunction splitByCase(str) {\n const parts = [];\n let buff = \"\";\n let previousUpper;\n let previousSplitter;\n for (const char of str) {\n // Splitter\n const isSplitter = STR_SPLITTERS.includes(char);\n if (isSplitter === true) {\n parts.push(buff);\n buff = \"\";\n previousUpper = undefined;\n continue;\n }\n const isUpper = isUppercase(char);\n if (previousSplitter === false) {\n // Case rising edge\n if (previousUpper === false && isUpper === true) {\n parts.push(buff);\n buff = char;\n previousUpper = isUpper;\n continue;\n }\n // Case falling edge\n if (previousUpper === true && isUpper === false && buff.length > 1) {\n const lastChar = buff.at(-1);\n parts.push(buff.slice(0, Math.max(0, buff.length - 1)));\n buff = lastChar + char;\n previousUpper = isUpper;\n continue;\n }\n }\n // Normal char\n buff += char;\n previousUpper = isUpper;\n previousSplitter = isSplitter;\n }\n parts.push(buff);\n return parts;\n}\nexport function pascalCase(str) {\n if (!str)\n return \"\";\n return splitByCase(str)\n .map((p) => upperFirst(p))\n .join(\"\");\n}\nexport function camelCase(str) {\n return lowerFirst(pascalCase(str || \"\"));\n}\nexport function kebabCase(str) {\n return str\n ? splitByCase(str)\n .map((p) => p.toLowerCase())\n .join(\"-\")\n : \"\";\n}\nfunction upperFirst(str) {\n return str ? str[0].toUpperCase() + str.slice(1) : \"\";\n}\nfunction lowerFirst(str) {\n return str ? str[0].toLowerCase() + str.slice(1) : \"\";\n}\n","import parse from \"style-to-object\";\nimport { camelCase, pascalCase } from \"./strings.js\";\nexport function cssToStyleObj(css) {\n if (!css)\n return {};\n const styleObj = {};\n function iterator(name, value) {\n if (name.startsWith(\"-moz-\") ||\n name.startsWith(\"-webkit-\") ||\n name.startsWith(\"-ms-\") ||\n name.startsWith(\"-o-\")) {\n styleObj[pascalCase(name)] = value;\n return;\n }\n if (name.startsWith(\"--\")) {\n styleObj[name] = value;\n return;\n }\n styleObj[camelCase(name)] = value;\n }\n parse(css, iterator);\n return styleObj;\n}\n","/**\n * Executes an array of callback functions with the same arguments.\n * @template T The types of the arguments that the callback functions take.\n * @param callbacks array of callback functions to execute.\n * @returns A new function that executes all of the original callback functions with the same arguments.\n */\nexport function executeCallbacks(...callbacks) {\n return (...args) => {\n for (const callback of callbacks) {\n if (typeof callback === \"function\") {\n callback(...args);\n }\n }\n };\n}\n","function createParser(matcher, replacer) {\n const regex = RegExp(matcher, \"g\");\n return (str) => {\n // throw an error if not a string\n if (typeof str !== \"string\") {\n throw new TypeError(`expected an argument of type string, but got ${typeof str}`);\n }\n // if no match between string and matcher\n if (!str.match(regex))\n return str;\n // executes the replacer function for each match\n return str.replace(regex, replacer);\n };\n}\nconst camelToKebab = createParser(/[A-Z]/, (match) => `-${match.toLowerCase()}`);\nexport function styleToCSS(styleObj) {\n if (!styleObj || typeof styleObj !== \"object\" || Array.isArray(styleObj)) {\n throw new TypeError(`expected an argument of type object, but got ${typeof styleObj}`);\n }\n return Object.keys(styleObj)\n .map((property) => `${camelToKebab(property)}: ${styleObj[property]};`)\n .join(\"\\n\");\n}\n","import { styleToCSS } from \"./style-to-css.js\";\nexport function styleToString(style = {}) {\n return styleToCSS(style).replace(\"\\n\", \" \");\n}\n","const EVENT_LIST = [\n \"onabort\",\n \"onanimationcancel\",\n \"onanimationend\",\n \"onanimationiteration\",\n \"onanimationstart\",\n \"onauxclick\",\n \"onbeforeinput\",\n \"onbeforetoggle\",\n \"onblur\",\n \"oncancel\",\n \"oncanplay\",\n \"oncanplaythrough\",\n \"onchange\",\n \"onclick\",\n \"onclose\",\n \"oncompositionend\",\n \"oncompositionstart\",\n \"oncompositionupdate\",\n \"oncontextlost\",\n \"oncontextmenu\",\n \"oncontextrestored\",\n \"oncopy\",\n \"oncuechange\",\n \"oncut\",\n \"ondblclick\",\n \"ondrag\",\n \"ondragend\",\n \"ondragenter\",\n \"ondragleave\",\n \"ondragover\",\n \"ondragstart\",\n \"ondrop\",\n \"ondurationchange\",\n \"onemptied\",\n \"onended\",\n \"onerror\",\n \"onfocus\",\n \"onfocusin\",\n \"onfocusout\",\n \"onformdata\",\n \"ongotpointercapture\",\n \"oninput\",\n \"oninvalid\",\n \"onkeydown\",\n \"onkeypress\",\n \"onkeyup\",\n \"onload\",\n \"onloadeddata\",\n \"onloadedmetadata\",\n \"onloadstart\",\n \"onlostpointercapture\",\n \"onmousedown\",\n \"onmouseenter\",\n \"onmouseleave\",\n \"onmousemove\",\n \"onmouseout\",\n \"onmouseover\",\n \"onmouseup\",\n \"onpaste\",\n \"onpause\",\n \"onplay\",\n \"onplaying\",\n \"onpointercancel\",\n \"onpointerdown\",\n \"onpointerenter\",\n \"onpointerleave\",\n \"onpointermove\",\n \"onpointerout\",\n \"onpointerover\",\n \"onpointerup\",\n \"onprogress\",\n \"onratechange\",\n \"onreset\",\n \"onresize\",\n \"onscroll\",\n \"onscrollend\",\n \"onsecuritypolicyviolation\",\n \"onseeked\",\n \"onseeking\",\n \"onselect\",\n \"onselectionchange\",\n \"onselectstart\",\n \"onslotchange\",\n \"onstalled\",\n \"onsubmit\",\n \"onsuspend\",\n \"ontimeupdate\",\n \"ontoggle\",\n \"ontouchcancel\",\n \"ontouchend\",\n \"ontouchmove\",\n \"ontouchstart\",\n \"ontransitioncancel\",\n \"ontransitionend\",\n \"ontransitionrun\",\n \"ontransitionstart\",\n \"onvolumechange\",\n \"onwaiting\",\n \"onwebkitanimationend\",\n \"onwebkitanimationiteration\",\n \"onwebkitanimationstart\",\n \"onwebkittransitionend\",\n \"onwheel\"\n];\nexport const EVENT_LIST_SET = new Set(EVENT_LIST);\n","/**\n * Modified from https://github.com/adobe/react-spectrum/blob/main/packages/%40react-aria/utils/src/mergeProps.ts (see NOTICE.txt for source)\n */\nimport { clsx } from \"clsx\";\nimport { composeHandlers } from \"./compose-handlers.js\";\nimport { cssToStyleObj } from \"./css-to-style-obj.js\";\nimport { isClassValue } from \"./is.js\";\nimport { executeCallbacks } from \"./execute-callbacks.js\";\nimport { styleToString } from \"./style.js\";\nimport { EVENT_LIST_SET } from \"./event-list.js\";\nfunction isEventHandler(key) {\n return EVENT_LIST_SET.has(key);\n}\n/**\n * Given a list of prop objects, merges them into a single object.\n * - Automatically composes event handlers (e.g. `onclick`, `oninput`, etc.)\n * - Chains regular functions with the same name so they are called in order\n * - Merges class strings with `clsx`\n * - Merges style objects and converts them to strings\n * - Handles a bug with Svelte where setting the `hidden` attribute to `false` doesn't remove it\n * - Overrides other values with the last one\n */\nexport function mergeProps(...args) {\n const result = { ...args[0] };\n for (let i = 1; i < args.length; i++) {\n const props = args[i];\n if (!props)\n continue;\n // Handle string keys\n for (const key of Object.keys(props)) {\n const a = result[key];\n const b = props[key];\n const aIsFunction = typeof a === \"function\";\n const bIsFunction = typeof b === \"function\";\n // compose event handlers\n if (aIsFunction && typeof bIsFunction && isEventHandler(key)) {\n // handle merging of event handlers\n const aHandler = a;\n const bHandler = b;\n result[key] = composeHandlers(aHandler, bHandler);\n }\n else if (aIsFunction && bIsFunction) {\n // chain non-event handler functions\n result[key] = executeCallbacks(a, b);\n }\n else if (key === \"class\") {\n // handle merging acceptable class values from clsx\n const aIsClassValue = isClassValue(a);\n const bIsClassValue = isClassValue(b);\n if (aIsClassValue && bIsClassValue) {\n result[key] = clsx(a, b);\n }\n else if (aIsClassValue) {\n result[key] = clsx(a);\n }\n else if (bIsClassValue) {\n result[key] = clsx(b);\n }\n }\n else if (key === \"style\") {\n const aIsObject = typeof a === \"object\";\n const bIsObject = typeof b === \"object\";\n const aIsString = typeof a === \"string\";\n const bIsString = typeof b === \"string\";\n if (aIsObject && bIsObject) {\n // both are style objects, merge them\n result[key] = { ...a, ...b };\n }\n else if (aIsObject && bIsString) {\n // a is style object, b is string, convert b to style object and merge\n const parsedStyle = cssToStyleObj(b);\n result[key] = { ...a, ...parsedStyle };\n }\n else if (aIsString && bIsObject) {\n // a is string, b is style object, convert a to style object and merge\n const parsedStyle = cssToStyleObj(a);\n result[key] = { ...parsedStyle, ...b };\n }\n else if (aIsString && bIsString) {\n // both are strings, convert both to objects and merge\n const parsedStyleA = cssToStyleObj(a);\n const parsedStyleB = cssToStyleObj(b);\n result[key] = { ...parsedStyleA, ...parsedStyleB };\n }\n else if (aIsObject) {\n result[key] = a;\n }\n else if (bIsObject) {\n result[key] = b;\n }\n else if (aIsString) {\n result[key] = a;\n }\n else if (bIsString) {\n result[key] = b;\n }\n }\n else {\n // override other values\n result[key] = b !== undefined ? b : a;\n }\n }\n // handle symbol keys (mostly for `Attachments`)\n for (const key of Object.getOwnPropertySymbols(props)) {\n const a = result[key];\n const b = props[key];\n // for matching symbols, we just override\n result[key] = b !== undefined ? b : a;\n }\n }\n // convert style object to string\n if (typeof result.style === \"object\") {\n result.style = styleToString(result.style).replaceAll(\"\\n\", \" \");\n }\n // handle weird svelte bug where `hidden` is not removed when set to `false`\n if (result.hidden === false) {\n result.hidden = undefined;\n delete result.hidden;\n }\n // handle weird svelte bug where `disabled` is not removed when set to `false`\n if (result.disabled === false) {\n result.disabled = undefined;\n delete result.disabled;\n }\n return result;\n}\n","import { untrack } from \"svelte\";\nimport { isBox } from \"../box/box-extras.svelte.js\";\nimport { createAttachmentKey } from \"svelte/attachments\";\n/**\n * Creates a Svelte Attachment that attaches a DOM element to a ref.\n * The ref can be either a WritableBox or a callback function.\n *\n * @param ref - Either a WritableBox to store the element in, or a callback function that receives the element\n * @param onChange - Optional callback that fires when the ref changes\n * @returns An object with a spreadable attachment key that should be spread onto the element\n *\n * @example\n * // Using with WritableBox\n * const ref = box<HTMLDivElement | null>(null);\n * <div {...attachRef(ref)}>Content</div>\n *\n * @example\n * // Using with callback\n * <div {...attachRef((node) => myNode = node)}>Content</div>\n *\n * @example\n * // Using with onChange\n * <div {...attachRef(ref, (node) => console.log(node))}>Content</div>\n */\nexport function attachRef(ref, onChange) {\n return {\n [createAttachmentKey()]: (node) => {\n if (isBox(ref)) {\n ref.current = node;\n untrack(() => onChange?.(node));\n return () => {\n // we don't want to detach the node if it's still connected\n if (\"isConnected\" in node && node.isConnected)\n return;\n ref.current = null;\n onChange?.(null);\n };\n }\n ref(node);\n untrack(() => onChange?.(node));\n return () => {\n // we don't want to detach the node if it's still connected\n if (\"isConnected\" in node && node.isConnected)\n return;\n ref(null);\n onChange?.(null);\n };\n }\n };\n}\n","export function boolToStr(condition) {\n return condition ? \"true\" : \"false\";\n}\nexport function boolToStrTrueOrUndef(condition) {\n return condition ? \"true\" : undefined;\n}\nexport function boolToEmptyStrOrUndef(condition) {\n return condition ? \"\" : undefined;\n}\nexport function boolToTrueOrUndef(condition) {\n return condition ? true : undefined;\n}\nexport function getDataOpenClosed(condition) {\n return condition ? \"open\" : \"closed\";\n}\nexport function getDataChecked(condition) {\n return condition ? \"checked\" : \"unchecked\";\n}\nexport function getAriaChecked(checked, indeterminate) {\n if (indeterminate) {\n return \"mixed\";\n }\n return checked ? \"true\" : \"false\";\n}\nexport class BitsAttrs {\n #variant;\n #prefix;\n attrs;\n constructor(config) {\n this.#variant = config.getVariant ? config.getVariant() : null;\n this.#prefix = this.#variant ? `data-${this.#variant}-` : `data-${config.component}-`;\n this.getAttr = this.getAttr.bind(this);\n this.selector = this.selector.bind(this);\n this.attrs = Object.fromEntries(config.parts.map((part) => [part, this.getAttr(part)]));\n }\n getAttr(part, variantOverride) {\n if (variantOverride)\n return `data-${variantOverride}-${part}`;\n return `${this.#prefix}${part}`;\n }\n selector(part, variantOverride) {\n return `[${this.getAttr(part, variantOverride)}]`;\n }\n}\nexport function createBitsAttrs(config) {\n const bitsAttrs = new BitsAttrs(config);\n return {\n ...bitsAttrs.attrs,\n selector: bitsAttrs.selector,\n getAttr: bitsAttrs.getAttr,\n };\n}\n","export function createId(prefixOrUid, uid) {\n if (uid === undefined)\n return `bits-${prefixOrUid}`;\n return `bits-${prefixOrUid}-${uid}`;\n}\n"],"names":["createAttachmentKey","ATTACHMENT_KEY","isFunction","value","isObject","CLASS_VALUE_PRIMITIVE_TYPES","isClassValue","item","BoxSymbol","isWritableSymbol","boxWith","getter","setter","derived","v","isBox","isWritableBox","boxFrom","simpleBox","boxFlatten","boxes","acc","key","b","toReadonlyBox","initialValue","current","$.state","$.proxy","$.set","composeHandlers","handlers","e","handler","COMMENT_REGEX","NEWLINE_REGEX","WHITESPACE_REGEX","PROPERTY_REGEX","COLON_REGEX","VALUE_REGEX","SEMICOLON_REGEX","TRIM_REGEX","NEWLINE","FORWARD_SLASH","ASTERISK","EMPTY_STRING","TYPE_COMMENT","TYPE_DECLARATION","index","style","options","lineno","column","updatePosition","str","lines","i","position","start","node","Position","whitespace","error","msg","err","match","re","m","comments","rules","c","comment","pos","declaration","prop","val","ret","trim","declarations","decls","decl","StyleToObject","iterator","styleObject","parse","hasIterator","property","NUMBER_CHAR_RE","STR_SPLITTERS","isUppercase","char","splitByCase","parts","buff","previousUpper","previousSplitter","isSplitter","isUpper","lastChar","pascalCase","p","upperFirst","camelCase","lowerFirst","cssToStyleObj","css","styleObj","name","executeCallbacks","callbacks","args","callback","createParser","matcher","replacer","regex","camelToKebab","styleToCSS","styleToString","EVENT_LIST","EVENT_LIST_SET","isEventHandler","mergeProps","result","props","a","aIsFunction","bIsFunction","aHandler","bHandler","aIsClassValue","bIsClassValue","clsx","aIsObject","bIsObject","aIsString","bIsString","parsedStyle","parsedStyleA","parsedStyleB","attachRef","ref","onChange","untrack","boolToStr","condition","boolToStrTrueOrUndef","boolToEmptyStrOrUndef","boolToTrueOrUndef","getDataOpenClosed","getAriaChecked","checked","indeterminate","BitsAttrs","#variant","#prefix","config","part","variantOverride","createBitsAttrs","bitsAttrs","createId","prefixOrUid","uid"],"mappings":"+GA6BO,SAASA,GAAsB,CACrC,OAAO,OAAOC,CAAc,CAC7B,CC/BO,SAASC,EAAWC,EAAO,CAC9B,OAAO,OAAOA,GAAU,UAC5B,CACO,SAASC,EAASD,EAAO,CAC5B,OAAOA,IAAU,MAAQ,OAAOA,GAAU,QAC9C,CACA,MAAME,EAA8B,CAAC,SAAU,SAAU,SAAU,SAAS,EACrE,SAASC,EAAaH,EAAO,CAIhC,OAFIA,GAAU,MAEVE,EAA4B,SAAS,OAAOF,CAAK,EAC1C,GAEP,MAAM,QAAQA,CAAK,EACZA,EAAM,MAAOI,GAASD,EAAaC,CAAI,CAAC,EAE/C,OAAOJ,GAAU,SAEb,OAAO,eAAeA,CAAK,IAAM,OAAO,UAIzC,EACX,OCvBaK,EAAY,OAAO,KAAK,EACxBC,EAAmB,OAAO,aAAa,EAC3C,SAAAC,EAAQC,EAAQC,EAAQ,CACvB,MAAAC,IAAsBF,CAAM,EAC9B,OAAAC,GAEK,CAAAJ,CAAS,EAAG,GACZ,CAAAC,CAAgB,EAAG,GAChB,IAAA,SAAU,UACHI,CAAO,CAClB,MACI,QAAQC,EAAG,CACXF,EAAOE,CAAC,CACZ,IAIH,CAAAN,CAAS,EAAG,GACT,IAAA,SAAU,QACHG,EAAM,CACjB,EAER,UAMSI,EAAMZ,EAAO,CACX,OAAAC,EAASD,CAAK,GAAKK,KAAaL,CAC3C,UAMSa,EAAcb,EAAO,CACnB,OAAAY,EAAMZ,CA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5B,MAAO,IAAI,KAAK,QAAQD,EAAMC,CAAe,CAAC,GAClD,CACJ,CACO,SAASC,GAAgBH,EAAQ,CACpC,MAAMI,EAAY,IAAIP,GAAUG,CAAM,EACtC,MAAO,CACH,GAAGI,EAAU,MACb,SAAUA,EAAU,SACpB,QAASA,EAAU,OAC3B,CACA,CCnDO,SAASC,GAASC,EAAaC,EAAK,CAEnC,MAAO,QAAQD,CAAW,EAElC","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/BGApn_8u.js b/backend/static/frontend/_app/immutable/chunks/BGApn_8u.js
new file mode 100644
index 00000000..efae42b1
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/BGApn_8u.js
@@ -0,0 +1 @@
+import{b as r,r as o}from"./BIF4_51j.js";const t="";function a(...e){return r+t+o(e[0],e[1])}export{a as r};
diff --git a/backend/static/frontend/_app/immutable/chunks/D_mqy6BL.js.map b/backend/static/frontend/_app/immutable/chunks/BGApn_8u.js.map
similarity index 95%
rename from backend/static/frontend/_app/immutable/chunks/D_mqy6BL.js.map
rename to backend/static/frontend/_app/immutable/chunks/BGApn_8u.js.map
index fbc38a63..ba6e6ef6 100644
--- a/backend/static/frontend/_app/immutable/chunks/D_mqy6BL.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/BGApn_8u.js.map
@@ -1 +1 @@
-{"version":3,"file":"D_mqy6BL.js","sources":["../../../../../../node_modules/@sveltejs/kit/src/runtime/app/paths/client.js"],"sourcesContent":["/** @import { Asset, RouteId, Pathname, ResolvedPathname } from '$app/types' */\n/** @import { ResolveArgs } from './types.js' */\nimport { base, assets, hash_routing } from './internal/client.js';\nimport { resolve_route } from '../../../utils/routing.js';\n\n/**\n * Resolve the URL of an asset in your `static` directory, by prefixing it with [`config.kit.paths.assets`](https://svelte.dev/docs/kit/configuration#paths) if configured, or otherwise by prefixing it with the base path.\n *\n * During server rendering, the base path is relative and depends on the page currently being rendered.\n *\n * @example\n * ```svelte\n * <script>\n * \timport { asset } from '$app/paths';\n * </script>\n *\n * <img alt=\"a potato\" src={asset('/potato.jpg')} />\n * ```\n * @since 2.26\n *\n * @param {Asset} file\n * @returns {string}\n */\nexport function asset(file) {\n\treturn (assets || base) + file;\n}\n\nconst pathname_prefix = hash_routing ? '#' : '';\n\n/**\n * Resolve a pathname by prefixing it with the base path, if any, or resolve a route ID by populating dynamic segments with parameters.\n *\n * During server rendering, the base path is relative and depends on the page currently being rendered.\n *\n * @example\n * ```js\n * import { resolve } from '$app/paths';\n *\n * // using a pathname\n * const resolved = resolve(`/blog/hello-world`);\n *\n * // using a route ID plus parameters\n * const resolved = resolve('/blog/[slug]', {\n * \tslug: 'hello-world'\n * });\n * ```\n * @since 2.26\n *\n * @template {RouteId | Pathname} T\n * @param {ResolveArgs<T>} args\n * @returns {ResolvedPathname}\n */\nexport function resolve(...args) {\n\t// The type error is correct here, and if someone doesn't pass params when they should there's a runtime error,\n\t// but we don't want to adjust the internal resolve_route function to accept `undefined`, hence the type cast.\n\treturn (\n\t\tbase + pathname_prefix + resolve_route(args[0], /** @type {Record<string, string>} */ (args[1]))\n\t);\n}\n\nexport { base, assets, resolve as resolveRoute };\n"],"names":["pathname_prefix","resolve","args","base","resolve_route"],"mappings":"yCA2BA,MAAMA,EAAuC,GAyBtC,SAASC,KAAWC,EAAM,CAGhC,OACCC,EAAOH,EAAkBI,EAAcF,EAAK,CAAC,EAA0CA,EAAK,CAAC,CAAC,CAEhG","x_google_ignoreList":[0]}
\ No newline at end of file
+{"version":3,"file":"BGApn_8u.js","sources":["../../../../../../node_modules/@sveltejs/kit/src/runtime/app/paths/client.js"],"sourcesContent":["/** @import { Asset, RouteId, Pathname, ResolvedPathname } from '$app/types' */\n/** @import { ResolveArgs } from './types.js' */\nimport { base, assets, hash_routing } from './internal/client.js';\nimport { resolve_route } from '../../../utils/routing.js';\n\n/**\n * Resolve the URL of an asset in your `static` directory, by prefixing it with [`config.kit.paths.assets`](https://svelte.dev/docs/kit/configuration#paths) if configured, or otherwise by prefixing it with the base path.\n *\n * During server rendering, the base path is relative and depends on the page currently being rendered.\n *\n * @example\n * ```svelte\n * <script>\n * \timport { asset } from '$app/paths';\n * </script>\n *\n * <img alt=\"a potato\" src={asset('/potato.jpg')} />\n * ```\n * @since 2.26\n *\n * @param {Asset} file\n * @returns {string}\n */\nexport function asset(file) {\n\treturn (assets || base) + file;\n}\n\nconst pathname_prefix = hash_routing ? '#' : '';\n\n/**\n * Resolve a pathname by prefixing it with the base path, if any, or resolve a route ID by populating dynamic segments with parameters.\n *\n * During server rendering, the base path is relative and depends on the page currently being rendered.\n *\n * @example\n * ```js\n * import { resolve } from '$app/paths';\n *\n * // using a pathname\n * const resolved = resolve(`/blog/hello-world`);\n *\n * // using a route ID plus parameters\n * const resolved = resolve('/blog/[slug]', {\n * \tslug: 'hello-world'\n * });\n * ```\n * @since 2.26\n *\n * @template {RouteId | Pathname} T\n * @param {ResolveArgs<T>} args\n * @returns {ResolvedPathname}\n */\nexport function resolve(...args) {\n\t// The type error is correct here, and if someone doesn't pass params when they should there's a runtime error,\n\t// but we don't want to adjust the internal resolve_route function to accept `undefined`, hence the type cast.\n\treturn (\n\t\tbase + pathname_prefix + resolve_route(args[0], /** @type {Record<string, string>} */ (args[1]))\n\t);\n}\n\nexport { base, assets, resolve as resolveRoute };\n"],"names":["pathname_prefix","resolve","args","base","resolve_route"],"mappings":"yCA2BA,MAAMA,EAAuC,GAyBtC,SAASC,KAAWC,EAAM,CAGhC,OACCC,EAAOH,EAAkBI,EAAcF,EAAK,CAAC,EAA0CA,EAAK,CAAC,CAAC,CAEhG","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/xR3pK9Ey.js b/backend/static/frontend/_app/immutable/chunks/BIF4_51j.js
similarity index 89%
rename from backend/static/frontend/_app/immutable/chunks/xR3pK9Ey.js
rename to backend/static/frontend/_app/immutable/chunks/BIF4_51j.js
index 01cb2c45..88e08b23 100644
--- a/backend/static/frontend/_app/immutable/chunks/xR3pK9Ey.js
+++ b/backend/static/frontend/_app/immutable/chunks/BIF4_51j.js
@@ -1 +1 @@
-import{o as De,s as wt}from"./Dwk6gGSK.js";import{bp as ke,h as U,g as T,i as P,A as Z,X as qe,a2 as vt}from"./B2WdN-7r.js";class Ee{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,n){this.status=t,this.location=n}}class Se extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function yt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function bt(e){return e.split("%25").map(decodeURI).join("%25")}function kt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function he({href:e}){return e.split("#")[0]}function Et(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(o,s){if(s==="get"||s==="getAll"||s==="has")return l=>(n(l),o[s](l));t();const c=Reflect.get(o,s);return typeof c=="function"?c.bind(o):c}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const o of i)Object.defineProperty(a,o,{get(){return t(),e[o]},enumerable:!0,configurable:!0});return a}function Rt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function St(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const xt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&F.delete(xe(e)),xt(e,t));const F=new Map;function Lt(e,t){const n=xe(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&F.set(n,{body:a,init:i,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=St(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function At(e,t,n){if(F.size>0){const r=xe(e,n),a=F.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);F.delete(r)}}return window.fetch(t,n)}function xe(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Rt(...a)}"]`}return r}const Ut=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Tt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Ye(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return pe(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const d=Ut.exec(c),[,h,f,u,p]=d;return t.push({name:u,matcher:p,optional:!!h,rest:!!f,chained:f?l===1&&o[0]==="":!1}),f?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return pe(c)}).join("")}).join("")}/?$`),params:t}}function Pt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Ye(e){return e.slice(1).split("/").filter(Pt)}function It(e,t,n){const r={},a=e.slice(1),i=a.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let l=a[s-o];if(c.chained&&c.rest&&o&&(l=a.slice(s-o,s+1).filter(d=>d).join("/"),o=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[s+1],h=a[s+1];d&&!d.rest&&d.optional&&h&&c.chained&&(o=0),!d&&!h&&Object.keys(r).length===i.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return r}function pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}const Ot=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function hn(e,t){const n=Ye(e),r=e!="/"&&e.endsWith("/");return"/"+n.map(a=>a.replace(Ot,(i,o,s,c)=>{const l=t[c];if(!l){if(o||s&&l!==void 0)return"";throw new Error(`Missing parameter '${c}' in route ${e}`)}if(l.startsWith("/")||l.endsWith("/"))throw new Error(`Parameter '${c}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return l})).filter(Boolean).join("/")+(r?"/":"")}function $t({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:h,params:f}=Tt(s),u={id:s,exec:p=>{const w=h.exec(p);if(w)return It(w,f,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[a.has(s),e[s]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ve(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const L=globalThis.__sveltekit_3aus1e?.base??"",Ct=globalThis.__sveltekit_3aus1e?.assets??L??"",jt="1778812241543",ze="sveltekit:snapshot",Xe="sveltekit:scroll",Qe="sveltekit:states",Nt="sveltekit:pageurl",B="sveltekit:history",G="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ce=location.origin;function Le(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function le(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Be={...j,"":j.hover};function Ze(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ze(e)}}function me(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";r.hash=`#${s}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||ue(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=r?.origin===ce&&e.hasAttribute("download");return{url:r,external:i,target:a,download:o}}function ee(e){let t=null,n=null,r=null,a=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=V(s,"preload-code")),a===null&&(a=V(s,"preload-data")),t===null&&(t=V(s,"keepfocus")),n===null&&(n=V(s,"noscroll")),i===null&&(i=V(s,"reload")),o===null&&(o=V(s,"replacestate")),s=Ze(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Be[r??"off"],preload_data:Be[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function Me(e){const t=ke(e);let n=!0;function r(){n=!0,t.update(o=>o)}function a(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:r,set:a,subscribe:i}}const tt={v:()=>{}};function Dt(){const{set:e,subscribe:t}=ke(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ct}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==jt;return o&&(e(!0),tt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:r}}function ue(e,t,n){return e.origin!==ce||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function pn(e){}const nt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...nt];const qt=new Set([...nt]);[...qt];function Vt(e){return e.filter(t=>t!=null)}function Ae(e){return e instanceof Ee||e instanceof Se?e.status:500}function Bt(e){return e instanceof Se?e.text:"Internal Error"}let k,H,ge;const Mt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());Mt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},H={current:null},ge={current:!1}):(k=new class{#e=U({});get data(){return T(this.#e)}set data(t){P(this.#e,t)}#t=U(null);get form(){return T(this.#t)}set form(t){P(this.#t,t)}#n=U(null);get error(){return T(this.#n)}set error(t){P(this.#n,t)}#r=U({});get params(){return T(this.#r)}set params(t){P(this.#r,t)}#a=U({id:null});get route(){return T(this.#a)}set route(t){P(this.#a,t)}#o=U({});get state(){return T(this.#o)}set state(t){P(this.#o,t)}#s=U(-1);get status(){return T(this.#s)}set status(t){P(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return T(this.#i)}set url(t){P(this.#i,t)}},H=new class{#e=U(null);get current(){return T(this.#e)}set current(t){P(this.#e,t)}},ge=new class{#e=U(!1);get current(){return T(this.#e)}set current(t){P(this.#e,t)}},tt.v=()=>ge.current=!0);function rt(e){Object.assign(k,e)}const We={spanContext(){return Wt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Wt={traceId:"",spanId:"",traceFlags:0},{onMount:Kt}=wt,Ft=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Je(Xe)??{},Y=Je(ze)??{},C={url:Me({}),page:Me({}),navigating:ke(null),updated:Dt()};function Ue(e){D[e]=le()}function Gt(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;Y[n];)delete Y[n],n+=1}function J(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function at(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}function Ke(){}let Te,we,te,I,ve,v;const ne=[],re=[];let S=null;function ye(){S?.fork?.then(e=>e?.discard()),S=null}const Q=new Map,ot=new Set,Ht=new Set,M=new Set;let m={branch:[],error:null,url:null},st=!1,ae=!1,Fe=!0,z=!1,K=!1,it=!1,Pe=!1,Ie,y,x,N;const oe=new Set,Ge=new Map;async function wn(e,t,n){globalThis.__sveltekit_3aus1e?.data&&globalThis.__sveltekit_3aus1e.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Te=$t(e),I=document.documentElement,ve=t,we=e.nodes[0],te=e.nodes[1],we(),te(),y=history.state?.[B],x=history.state?.[G],y||(y=x=Date.now(),history.replaceState({...history.state,[B]:y,[G]:x},""));const r=D[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await sn(ve,n)):(await W({type:"enter",url:Le(v.hash?un(new URL(location.href)):location.href),replace_state:!0}),a()),on()}function Yt(){ne.length=0,Pe=!1}function ct(e){re.some(t=>t?.snapshot)&&(Y[e]=re.map(t=>t?.snapshot?.capture()))}function lt(e){Y[e]?.forEach((t,n)=>{re[n]?.snapshot?.restore(t)})}function He(){Ue(y),Ve(Xe,D),ct(x),Ve(ze,Y)}async function ut(e,t,n,r){let a;t.invalidateAll&&ye(),await W({type:"goto",url:Le(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Pe=!0,a=[...Ge.keys()]),t.invalidate&&t.invalidate.forEach(an)}}),t.invalidateAll&&Z().then(Z).then(()=>{Ge.forEach(({resource:i},o)=>{a?.includes(o)&&i.refresh?.()})})}async function Jt(e){if(e.id!==S?.id){ye();const t={};if(oe.add(t),S={id:e.id,token:t,promise:ht({...e,preload:t}).then(n=>(oe.delete(t),n.type==="loaded"&&n.state.error&&ye(),n)),fork:null},qe){const n=S;n.fork=n.promise.then(r=>{if(n===S&&r.type==="loaded")try{return qe(()=>{Ie.$set(r.props),rt(r.props.page)})}catch{}return null})}}return S.promise}async function _e(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function ft(e,t,n){m=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(k,e.props.page),Ie=new v.root({target:t,props:{...e.props,stores:C,components:re},hydrate:n,sync:!1}),await Promise.resolve(),lt(x),n){const a={from:null,to:{params:m.params,route:{id:m.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};M.forEach(i=>i(a))}ae=!0}function se({url:e,params:t,branch:n,status:r,error:a,route:i,form:o}){let s="never";if(L&&(e.pathname===L||e.pathname===L+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=yt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:Vt(n).map(u=>u.node.component),page:Ne(k)}};o!==void 0&&(c.props.form=o);let l={},d=!k,h=0;for(let u=0;u<Math.max(n.length,m.branch.length);u+=1){const p=n[u],w=m.branch[u];p?.data!==w?.data&&(d=!0),p&&(l={...l,...p.data},d&&(c.props[`data_${h}`]=l),h+=1)}return(!m.url||e.href!==m.url.href||m.error!==a||o!==void 0&&o!==k.form||d)&&(c.props.page={error:a,params:t,route:{id:i?.id??null},state:{},status:r,url:new URL(e),form:o??null,data:d?l:k.data}),c}async function Oe({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let o=null,s=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let d=function(...f){for(const u of f){const{href:p}=new URL(u,n);c.dependencies.add(p)}};const h={tracing:{enabled:!1,root:We,current:We},route:new Proxy(a,{get:(f,u)=>(s&&(c.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(s&&c.params.add(u),f[u])}),data:i?.data??null,url:Et(n,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)},v.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:p,promise:w}=dt(f,u,n);return s&&d(p.href),w},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(f){s=!1;try{return f()}finally{s=!0}}};o=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:i,universal:l.universal?.load?{type:"data",data:o,uses:c}:null,data:o??i?.data??null,slash:l.universal?.trailingSlash??i?.slash}}function dt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=ae?At(r,a.href,t):Lt(r,t);return{resolved:a,promise:i}}function zt(e,t,n,r,a,i){if(Pe)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(i[o]!==m.params[o])return!0;for(const o of a.dependencies)if(ne.some(s=>s(new URL(o))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Xt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(o=>i.includes(o))&&i.every(o=>a.includes(o))&&n.delete(r)}return n}function Qt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ne(k),constructors:[]}}}async function ht({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(S?.id===e)return oe.delete(S.token),S.promise;const{errors:o,layouts:s,leaf:c}=a,l=[...s,c];o.forEach(_=>_?.().catch(()=>{})),l.forEach(_=>_?.[1]().catch(()=>{}));const d=m.url?e!==ie(m.url):!1,h=m.route?a.id!==m.route.id:!1,f=Xt(m.url,n);let u=!1;const p=l.map(async(_,g)=>{if(!_)return;const E=m.branch[g];return _[1]===E?.loader&&!zt(u,h,d,f,E.universal?.uses,r)?E:(u=!0,Oe({loader:_[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let A=0;A<g;A+=1)Object.assign(O,(await p[A])?.data);return O},server_data_node:$e(_[0]?{type:"skip"}:null,_[0]?E?.server:void 0)}))});for(const _ of p)_.catch(()=>{});const w=[];for(let _=0;_<l.length;_+=1)if(l[_])try{w.push(await p[_])}catch(g){if(g instanceof Re)return{type:"redirect",location:g.location};if(oe.has(i))return Qt({error:await X(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=Ae(g),R;if(g instanceof Ee)R=g.body;else{if(await C.updated.check())return await at(),await J(n);R=await X(g,{params:r,url:n,route:{id:a.id}})}const O=await Zt(_,w,o);return O?se({url:n,params:r,branch:w.slice(0,O.idx).concat(O.node),status:E,error:R,route:a}):await gt(n,{id:a.id},R,E)}else w.push(void 0);return se({url:n,params:r,branch:w,status:200,error:null,route:a,form:t?void 0:null})}async function Zt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ce({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const o=await Oe({loader:we,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:$e(i)}),s={node:await te(),loader:te,universal:null,server:null,data:null};return se({url:n,params:a,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof Re)return ut(new URL(o.location,location.href),{},0);throw o}}async function en(e){const t=e.href;if(Q.has(t))return Q.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(i,o)=>dt(i,o,e).promise})??e;if(typeof a=="string"){const i=new URL(e);v.hash?i.hash=a:i.pathname=a,a=i}return a})();Q.set(t,r),n=await r}catch{Q.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,L,v.hash)){const n=await en(e);if(!n)return;const r=tn(n);for(const a of Te){const i=a.exec(r);if(i)return{id:ie(e),invalidating:t,route:a,params:kt(i),url:e}}}}function tn(e){return bt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ie(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function pt({url:e,type:t,intent:n,delta:r,event:a}){let i=!1;const o=je(m,n,e,t);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const s={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return z||ot.forEach(c=>c(s)),i?null:o}async function W({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=Ke,block:d=Ke,event:h}){const f=N;N=c;const u=await fe(t,!1),p=e==="enter"?je(m,u,t,e):pt({url:t,type:e,delta:n?.delta,intent:u,event:h});if(!p){d(),N===c&&(N=f);return}const w=y,_=x;l(),z=!0,ae&&p.navigation.type!=="enter"&&C.navigating.set(H.current=p.navigation);let g=u&&await ht(u);if(!g){if(ue(t,L,v.hash))return await J(t,i);g=await gt(t,{id:null},await X(new Se(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,N!==c)return p.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(s<20){await W({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}g=await Ce({status:500,error:await X(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await C.updated.check()&&(await at(),await J(t,i));if(Yt(),Ue(w),ct(_),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),o=n?n.state:o,!n){const b=i?0:1,q={[B]:y+=b,[G]:x+=b,[Qe]:o};(i?history.replaceState:history.pushState).call(history,q,"",t),i||Gt(y,x)}const E=u&&S?.id===u.id?S.fork:null;S=null,g.props.page.state=o;let R;if(ae){const b=(await Promise.all(Array.from(Ht,$=>$(p.navigation)))).filter($=>typeof $=="function");if(b.length>0){let $=function(){b.forEach(de=>{M.delete(de)})};b.push($),b.forEach(de=>{M.add(de)})}m=g.state,g.props.page&&(g.props.page.url=t);const q=E&&await E;q?R=q.commit():(Ie.$set(g.props),rt(g.props.page),R=vt?.()),it=!0}else await ft(g,ve,!1);const{activeElement:O}=document;await R,await Z(),await Z();let A=n?n.scroll:a?le():null;if(Fe){const b=t.hash&&document.getElementById(_t(t));if(A)scrollTo(A.x,A.y);else if(b){b.scrollIntoView();const{top:q,left:$}=b.getBoundingClientRect();A={x:pageXOffset+$,y:pageYOffset+q}}else scrollTo(0,0)}const mt=document.activeElement!==O&&document.activeElement!==document.body;!r&&!mt&&ln(t,A),Fe=!0,g.props.page&&Object.assign(k,g.props.page),z=!1,e==="popstate"&&lt(x),p.fulfil(void 0),M.forEach(b=>b(p.navigation)),C.navigating.set(H.current=null)}async function gt(e,t,n,r,a){return e.origin===ce&&e.pathname===location.pathname&&!st?await Ce({status:r,error:n,url:e,route:t}):await J(e,a)}function nn(){let e,t,n;I.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function r(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}I.addEventListener("mousedown",r),I.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(_e(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function i(s,c){const l=et(s,I),d=l===t&&c>=n;if(!l||d)return;const{url:h,external:f,download:u}=me(l,L,v.hash);if(f||u)return;const p=ee(l),w=h&&ie(m.url)===ie(h);if(!(p.reload||w))if(c<=p.preload_data){t=l,n=j.tap;const _=await fe(h,!1);if(!_)return;Jt(_)}else c<=p.preload_code&&(t=l,n=c,_e(h))}function o(){a.disconnect();for(const s of I.querySelectorAll("a")){const{url:c,external:l,download:d}=me(s,L,v.hash);if(l||d)continue;const h=ee(s);h.reload||(h.preload_code===j.viewport&&a.observe(s),h.preload_code===j.eager&&_e(c))}}M.add(o),o()}function X(e,t){if(e instanceof Ee)return e.body;const n=Ae(e),r=Bt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function rn(e,t){Kt(()=>(e.add(t),()=>{e.delete(t)}))}function vn(e){rn(M,e)}function yn(e,t={}){return e=new URL(Le(e)),e.origin!==ce?Promise.reject(new Error("goto: invalid URL")):ut(e,t,0)}function an(e){if(typeof e=="function")ne.push(e);else{const{href:t}=new URL(e,location.href);ne.push(n=>n.href===t)}}function on(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(He(),!z){const r=je(m,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ot.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&He()}),navigator.connection?.saveData||nn(),I.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=et(t.composedPath()[0],I);if(!n)return;const{url:r,external:a,target:i,download:o}=me(n,L,v.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=ee(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[l,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),h=l===he(location);if(a||s.reload&&(!h||!d)){pt({url:r,type:"link",event:t})?z=!0:t.preventDefault();return}if(d!==void 0&&h){const[,f]=m.url.href.split("#");if(f===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(K=!0,Ue(y),e(r),!s.replace_state)return;K=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await W({type:"link",url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const o=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ue(o,L,!1))return;const s=t.target,c=ee(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,r);o.search=new URLSearchParams(l).toString(),W({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!be){if(t.state?.[B]){const n=t.state[B];if(N={},n===y)return;const r=D[n],a=t.state[Qe]??{},i=new URL(t.state[Nt]??location.href),o=t.state[G],s=m.url?he(location)===he(m.url):!1;if(o===x&&(it||s)){a!==k.state&&(k.state=a),e(i),D[y]=le(),r&&scrollTo(r.x,r.y),y=n;return}const l=n-y;await W({type:"popstate",url:i,popped:{state:a,scroll:r,delta:l},accept:()=>{y=n,x=o},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!K){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{K&&(K=!1,history.replaceState({...history.state,[B]:++y,[G]:x},"",location.href))});for(const t of document.querySelectorAll("link"))Ft.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(H.current=null)});function e(t){m.url=k.url=t,C.page.set(Ne(k)),C.page.notify()}}async function sn(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:o,data:s,form:c}){st=!0;const l=new URL(location.href);let d;({params:a={},route:i={id:null}}=await fe(l,!1)||{}),d=Te.find(({id:u})=>u===i.id);let h,f=!0;try{const u=r.map(async(w,_)=>{const g=s[_];return g?.uses&&(g.uses=cn(g.uses)),Oe({loader:v.nodes[w],url:l,params:a,route:i,parent:async()=>{const E={};for(let R=0;R<_;R+=1)Object.assign(E,(await u[R]).data);return E},server_data_node:$e(g)})}),p=await Promise.all(u);if(d){const w=d.layouts;for(let _=0;_<w.length;_++)w[_]||p.splice(_,0,void 0)}h=se({url:l,params:a,branch:p,status:t,error:n,form:c,route:d??null})}catch(u){if(u instanceof Re){await J(new URL(u.location,location.href));return}h=await Ce({status:Ae(u),error:await X(u,{url:l,params:a,route:i}),url:l,route:i}),e.textContent="",f=!1}h.props.page&&(h.props.page.state={}),await ft(h,e,f)}function cn(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let be=!1;function ln(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=_t(e);if(r&&document.getElementById(r)){const{x:i,y:o}=t??le();setTimeout(()=>{const s=history.state;be=!0,location.replace(`#${r}`),v.hash&&location.replace(e.hash),history.replaceState(s,"",e.hash),scrollTo(i,o),be=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let o=0;o<a.rangeCount;o+=1)i.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===i.length){for(let o=0;o<a.rangeCount;o+=1){const s=i[o],c=a.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}a.removeAllRanges()}})}}}function je(e,t,n,r){let a,i;const o=new Promise((c,l)=>{a=c,i=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:o},fulfil:a,reject:i}}function Ne(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function un(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function _t(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Re as R,vn as a,L as b,wn as c,yn as g,pn as l,k as p,hn as r,C as s};
+import{o as De,s as wt}from"./Dwk6gGSK.js";import{bp as ke,h as U,g as T,i as P,A as Z,X as qe,a2 as vt}from"./B2WdN-7r.js";class Ee{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,n){this.status=t,this.location=n}}class Se extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function yt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function bt(e){return e.split("%25").map(decodeURI).join("%25")}function kt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function he({href:e}){return e.split("#")[0]}function Et(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(o,s){if(s==="get"||s==="getAll"||s==="has")return l=>(n(l),o[s](l));t();const c=Reflect.get(o,s);return typeof c=="function"?c.bind(o):c}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const o of i)Object.defineProperty(a,o,{get(){return t(),e[o]},enumerable:!0,configurable:!0});return a}function Rt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function St(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const xt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&F.delete(xe(e)),xt(e,t));const F=new Map;function Lt(e,t){const n=xe(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&F.set(n,{body:a,init:i,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=St(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function At(e,t,n){if(F.size>0){const r=xe(e,n),a=F.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);F.delete(r)}}return window.fetch(t,n)}function xe(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Rt(...a)}"]`}return r}const Ut=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Tt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Ye(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return pe(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const d=Ut.exec(c),[,h,f,u,p]=d;return t.push({name:u,matcher:p,optional:!!h,rest:!!f,chained:f?l===1&&o[0]==="":!1}),f?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return pe(c)}).join("")}).join("")}/?$`),params:t}}function Pt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Ye(e){return e.slice(1).split("/").filter(Pt)}function It(e,t,n){const r={},a=e.slice(1),i=a.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let l=a[s-o];if(c.chained&&c.rest&&o&&(l=a.slice(s-o,s+1).filter(d=>d).join("/"),o=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[s+1],h=a[s+1];d&&!d.rest&&d.optional&&h&&c.chained&&(o=0),!d&&!h&&Object.keys(r).length===i.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return r}function pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}const Ot=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function hn(e,t){const n=Ye(e),r=e!="/"&&e.endsWith("/");return"/"+n.map(a=>a.replace(Ot,(i,o,s,c)=>{const l=t[c];if(!l){if(o||s&&l!==void 0)return"";throw new Error(`Missing parameter '${c}' in route ${e}`)}if(l.startsWith("/")||l.endsWith("/"))throw new Error(`Parameter '${c}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return l})).filter(Boolean).join("/")+(r?"/":"")}function $t({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:h,params:f}=Tt(s),u={id:s,exec:p=>{const w=h.exec(p);if(w)return It(w,f,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[a.has(s),e[s]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ve(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const L=globalThis.__sveltekit_mf5umy?.base??"",Ct=globalThis.__sveltekit_mf5umy?.assets??L??"",jt="1779171087681",ze="sveltekit:snapshot",Xe="sveltekit:scroll",Qe="sveltekit:states",Nt="sveltekit:pageurl",B="sveltekit:history",G="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ce=location.origin;function Le(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function le(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Be={...j,"":j.hover};function Ze(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ze(e)}}function _e(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";r.hash=`#${s}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||ue(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=r?.origin===ce&&e.hasAttribute("download");return{url:r,external:i,target:a,download:o}}function ee(e){let t=null,n=null,r=null,a=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=V(s,"preload-code")),a===null&&(a=V(s,"preload-data")),t===null&&(t=V(s,"keepfocus")),n===null&&(n=V(s,"noscroll")),i===null&&(i=V(s,"reload")),o===null&&(o=V(s,"replacestate")),s=Ze(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Be[r??"off"],preload_data:Be[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function Me(e){const t=ke(e);let n=!0;function r(){n=!0,t.update(o=>o)}function a(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:r,set:a,subscribe:i}}const tt={v:()=>{}};function Dt(){const{set:e,subscribe:t}=ke(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ct}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==jt;return o&&(e(!0),tt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:r}}function ue(e,t,n){return e.origin!==ce||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function pn(e){}const nt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...nt];const qt=new Set([...nt]);[...qt];function Vt(e){return e.filter(t=>t!=null)}function Ae(e){return e instanceof Ee||e instanceof Se?e.status:500}function Bt(e){return e instanceof Se?e.text:"Internal Error"}let k,H,ge;const Mt=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());Mt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},H={current:null},ge={current:!1}):(k=new class{#e=U({});get data(){return T(this.#e)}set data(t){P(this.#e,t)}#t=U(null);get form(){return T(this.#t)}set form(t){P(this.#t,t)}#n=U(null);get error(){return T(this.#n)}set error(t){P(this.#n,t)}#r=U({});get params(){return T(this.#r)}set params(t){P(this.#r,t)}#a=U({id:null});get route(){return T(this.#a)}set route(t){P(this.#a,t)}#o=U({});get state(){return T(this.#o)}set state(t){P(this.#o,t)}#s=U(-1);get status(){return T(this.#s)}set status(t){P(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return T(this.#i)}set url(t){P(this.#i,t)}},H=new class{#e=U(null);get current(){return T(this.#e)}set current(t){P(this.#e,t)}},ge=new class{#e=U(!1);get current(){return T(this.#e)}set current(t){P(this.#e,t)}},tt.v=()=>ge.current=!0);function rt(e){Object.assign(k,e)}const We={spanContext(){return Wt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Wt={traceId:"",spanId:"",traceFlags:0},{onMount:Kt}=wt,Ft=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Je(Xe)??{},Y=Je(ze)??{},C={url:Me({}),page:Me({}),navigating:ke(null),updated:Dt()};function Ue(e){D[e]=le()}function Gt(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;Y[n];)delete Y[n],n+=1}function J(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function at(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}function Ke(){}let Te,we,te,I,ve,v;const ne=[],re=[];let S=null;function ye(){S?.fork?.then(e=>e?.discard()),S=null}const Q=new Map,ot=new Set,Ht=new Set,M=new Set;let _={branch:[],error:null,url:null},st=!1,ae=!1,Fe=!0,z=!1,K=!1,it=!1,Pe=!1,Ie,y,x,N;const oe=new Set,Ge=new Map;async function wn(e,t,n){globalThis.__sveltekit_mf5umy?.data&&globalThis.__sveltekit_mf5umy.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Te=$t(e),I=document.documentElement,ve=t,we=e.nodes[0],te=e.nodes[1],we(),te(),y=history.state?.[B],x=history.state?.[G],y||(y=x=Date.now(),history.replaceState({...history.state,[B]:y,[G]:x},""));const r=D[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await sn(ve,n)):(await W({type:"enter",url:Le(v.hash?un(new URL(location.href)):location.href),replace_state:!0}),a()),on()}function Yt(){ne.length=0,Pe=!1}function ct(e){re.some(t=>t?.snapshot)&&(Y[e]=re.map(t=>t?.snapshot?.capture()))}function lt(e){Y[e]?.forEach((t,n)=>{re[n]?.snapshot?.restore(t)})}function He(){Ue(y),Ve(Xe,D),ct(x),Ve(ze,Y)}async function ut(e,t,n,r){let a;t.invalidateAll&&ye(),await W({type:"goto",url:Le(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Pe=!0,a=[...Ge.keys()]),t.invalidate&&t.invalidate.forEach(an)}}),t.invalidateAll&&Z().then(Z).then(()=>{Ge.forEach(({resource:i},o)=>{a?.includes(o)&&i.refresh?.()})})}async function Jt(e){if(e.id!==S?.id){ye();const t={};if(oe.add(t),S={id:e.id,token:t,promise:ht({...e,preload:t}).then(n=>(oe.delete(t),n.type==="loaded"&&n.state.error&&ye(),n)),fork:null},qe){const n=S;n.fork=n.promise.then(r=>{if(n===S&&r.type==="loaded")try{return qe(()=>{Ie.$set(r.props),rt(r.props.page)})}catch{}return null})}}return S.promise}async function me(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function ft(e,t,n){_=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(k,e.props.page),Ie=new v.root({target:t,props:{...e.props,stores:C,components:re},hydrate:n,sync:!1}),await Promise.resolve(),lt(x),n){const a={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};M.forEach(i=>i(a))}ae=!0}function se({url:e,params:t,branch:n,status:r,error:a,route:i,form:o}){let s="never";if(L&&(e.pathname===L||e.pathname===L+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=yt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:Vt(n).map(u=>u.node.component),page:Ne(k)}};o!==void 0&&(c.props.form=o);let l={},d=!k,h=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const p=n[u],w=_.branch[u];p?.data!==w?.data&&(d=!0),p&&(l={...l,...p.data},d&&(c.props[`data_${h}`]=l),h+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||o!==void 0&&o!==k.form||d)&&(c.props.page={error:a,params:t,route:{id:i?.id??null},state:{},status:r,url:new URL(e),form:o??null,data:d?l:k.data}),c}async function Oe({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let o=null,s=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let d=function(...f){for(const u of f){const{href:p}=new URL(u,n);c.dependencies.add(p)}};const h={tracing:{enabled:!1,root:We,current:We},route:new Proxy(a,{get:(f,u)=>(s&&(c.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(s&&c.params.add(u),f[u])}),data:i?.data??null,url:Et(n,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)},v.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:p,promise:w}=dt(f,u,n);return s&&d(p.href),w},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(f){s=!1;try{return f()}finally{s=!0}}};o=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:i,universal:l.universal?.load?{type:"data",data:o,uses:c}:null,data:o??i?.data??null,slash:l.universal?.trailingSlash??i?.slash}}function dt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const i=ae?At(r,a.href,t):Lt(r,t);return{resolved:a,promise:i}}function zt(e,t,n,r,a,i){if(Pe)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(i[o]!==_.params[o])return!0;for(const o of a.dependencies)if(ne.some(s=>s(new URL(o))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Xt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(o=>i.includes(o))&&i.every(o=>a.includes(o))&&n.delete(r)}return n}function Qt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ne(k),constructors:[]}}}async function ht({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(S?.id===e)return oe.delete(S.token),S.promise;const{errors:o,layouts:s,leaf:c}=a,l=[...s,c];o.forEach(m=>m?.().catch(()=>{})),l.forEach(m=>m?.[1]().catch(()=>{}));const d=_.url?e!==ie(_.url):!1,h=_.route?a.id!==_.route.id:!1,f=Xt(_.url,n);let u=!1;const p=l.map(async(m,g)=>{if(!m)return;const E=_.branch[g];return m[1]===E?.loader&&!zt(u,h,d,f,E.universal?.uses,r)?E:(u=!0,Oe({loader:m[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let A=0;A<g;A+=1)Object.assign(O,(await p[A])?.data);return O},server_data_node:$e(m[0]?{type:"skip"}:null,m[0]?E?.server:void 0)}))});for(const m of p)m.catch(()=>{});const w=[];for(let m=0;m<l.length;m+=1)if(l[m])try{w.push(await p[m])}catch(g){if(g instanceof Re)return{type:"redirect",location:g.location};if(oe.has(i))return Qt({error:await X(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=Ae(g),R;if(g instanceof Ee)R=g.body;else{if(await C.updated.check())return await at(),await J(n);R=await X(g,{params:r,url:n,route:{id:a.id}})}const O=await Zt(m,w,o);return O?se({url:n,params:r,branch:w.slice(0,O.idx).concat(O.node),status:E,error:R,route:a}):await gt(n,{id:a.id},R,E)}else w.push(void 0);return se({url:n,params:r,branch:w,status:200,error:null,route:a,form:t?void 0:null})}async function Zt(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ce({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const o=await Oe({loader:we,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:$e(i)}),s={node:await te(),loader:te,universal:null,server:null,data:null};return se({url:n,params:a,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof Re)return ut(new URL(o.location,location.href),{},0);throw o}}async function en(e){const t=e.href;if(Q.has(t))return Q.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(i,o)=>dt(i,o,e).promise})??e;if(typeof a=="string"){const i=new URL(e);v.hash?i.hash=a:i.pathname=a,a=i}return a})();Q.set(t,r),n=await r}catch{Q.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,L,v.hash)){const n=await en(e);if(!n)return;const r=tn(n);for(const a of Te){const i=a.exec(r);if(i)return{id:ie(e),invalidating:t,route:a,params:kt(i),url:e}}}}function tn(e){return bt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ie(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function pt({url:e,type:t,intent:n,delta:r,event:a}){let i=!1;const o=je(_,n,e,t);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const s={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return z||ot.forEach(c=>c(s)),i?null:o}async function W({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=Ke,block:d=Ke,event:h}){const f=N;N=c;const u=await fe(t,!1),p=e==="enter"?je(_,u,t,e):pt({url:t,type:e,delta:n?.delta,intent:u,event:h});if(!p){d(),N===c&&(N=f);return}const w=y,m=x;l(),z=!0,ae&&p.navigation.type!=="enter"&&C.navigating.set(H.current=p.navigation);let g=u&&await ht(u);if(!g){if(ue(t,L,v.hash))return await J(t,i);g=await gt(t,{id:null},await X(new Se(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,N!==c)return p.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(s<20){await W({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}g=await Ce({status:500,error:await X(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await C.updated.check()&&(await at(),await J(t,i));if(Yt(),Ue(w),ct(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),o=n?n.state:o,!n){const b=i?0:1,q={[B]:y+=b,[G]:x+=b,[Qe]:o};(i?history.replaceState:history.pushState).call(history,q,"",t),i||Gt(y,x)}const E=u&&S?.id===u.id?S.fork:null;S=null,g.props.page.state=o;let R;if(ae){const b=(await Promise.all(Array.from(Ht,$=>$(p.navigation)))).filter($=>typeof $=="function");if(b.length>0){let $=function(){b.forEach(de=>{M.delete(de)})};b.push($),b.forEach(de=>{M.add(de)})}_=g.state,g.props.page&&(g.props.page.url=t);const q=E&&await E;q?R=q.commit():(Ie.$set(g.props),rt(g.props.page),R=vt?.()),it=!0}else await ft(g,ve,!1);const{activeElement:O}=document;await R,await Z(),await Z();let A=n?n.scroll:a?le():null;if(Fe){const b=t.hash&&document.getElementById(mt(t));if(A)scrollTo(A.x,A.y);else if(b){b.scrollIntoView();const{top:q,left:$}=b.getBoundingClientRect();A={x:pageXOffset+$,y:pageYOffset+q}}else scrollTo(0,0)}const _t=document.activeElement!==O&&document.activeElement!==document.body;!r&&!_t&&ln(t,A),Fe=!0,g.props.page&&Object.assign(k,g.props.page),z=!1,e==="popstate"&&lt(x),p.fulfil(void 0),M.forEach(b=>b(p.navigation)),C.navigating.set(H.current=null)}async function gt(e,t,n,r,a){return e.origin===ce&&e.pathname===location.pathname&&!st?await Ce({status:r,error:n,url:e,route:t}):await J(e,a)}function nn(){let e,t,n;I.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function r(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}I.addEventListener("mousedown",r),I.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(me(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function i(s,c){const l=et(s,I),d=l===t&&c>=n;if(!l||d)return;const{url:h,external:f,download:u}=_e(l,L,v.hash);if(f||u)return;const p=ee(l),w=h&&ie(_.url)===ie(h);if(!(p.reload||w))if(c<=p.preload_data){t=l,n=j.tap;const m=await fe(h,!1);if(!m)return;Jt(m)}else c<=p.preload_code&&(t=l,n=c,me(h))}function o(){a.disconnect();for(const s of I.querySelectorAll("a")){const{url:c,external:l,download:d}=_e(s,L,v.hash);if(l||d)continue;const h=ee(s);h.reload||(h.preload_code===j.viewport&&a.observe(s),h.preload_code===j.eager&&me(c))}}M.add(o),o()}function X(e,t){if(e instanceof Ee)return e.body;const n=Ae(e),r=Bt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function rn(e,t){Kt(()=>(e.add(t),()=>{e.delete(t)}))}function vn(e){rn(M,e)}function yn(e,t={}){return e=new URL(Le(e)),e.origin!==ce?Promise.reject(new Error("goto: invalid URL")):ut(e,t,0)}function an(e){if(typeof e=="function")ne.push(e);else{const{href:t}=new URL(e,location.href);ne.push(n=>n.href===t)}}function on(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(He(),!z){const r=je(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ot.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&He()}),navigator.connection?.saveData||nn(),I.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=et(t.composedPath()[0],I);if(!n)return;const{url:r,external:a,target:i,download:o}=_e(n,L,v.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=ee(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[l,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),h=l===he(location);if(a||s.reload&&(!h||!d)){pt({url:r,type:"link",event:t})?z=!0:t.preventDefault();return}if(d!==void 0&&h){const[,f]=_.url.href.split("#");if(f===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(K=!0,Ue(y),e(r),!s.replace_state)return;K=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await W({type:"link",url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const o=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ue(o,L,!1))return;const s=t.target,c=ee(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,r);o.search=new URLSearchParams(l).toString(),W({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!be){if(t.state?.[B]){const n=t.state[B];if(N={},n===y)return;const r=D[n],a=t.state[Qe]??{},i=new URL(t.state[Nt]??location.href),o=t.state[G],s=_.url?he(location)===he(_.url):!1;if(o===x&&(it||s)){a!==k.state&&(k.state=a),e(i),D[y]=le(),r&&scrollTo(r.x,r.y),y=n;return}const l=n-y;await W({type:"popstate",url:i,popped:{state:a,scroll:r,delta:l},accept:()=>{y=n,x=o},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!K){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{K&&(K=!1,history.replaceState({...history.state,[B]:++y,[G]:x},"",location.href))});for(const t of document.querySelectorAll("link"))Ft.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(H.current=null)});function e(t){_.url=k.url=t,C.page.set(Ne(k)),C.page.notify()}}async function sn(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:o,data:s,form:c}){st=!0;const l=new URL(location.href);let d;({params:a={},route:i={id:null}}=await fe(l,!1)||{}),d=Te.find(({id:u})=>u===i.id);let h,f=!0;try{const u=r.map(async(w,m)=>{const g=s[m];return g?.uses&&(g.uses=cn(g.uses)),Oe({loader:v.nodes[w],url:l,params:a,route:i,parent:async()=>{const E={};for(let R=0;R<m;R+=1)Object.assign(E,(await u[R]).data);return E},server_data_node:$e(g)})}),p=await Promise.all(u);if(d){const w=d.layouts;for(let m=0;m<w.length;m++)w[m]||p.splice(m,0,void 0)}h=se({url:l,params:a,branch:p,status:t,error:n,form:c,route:d??null})}catch(u){if(u instanceof Re){await J(new URL(u.location,location.href));return}h=await Ce({status:Ae(u),error:await X(u,{url:l,params:a,route:i}),url:l,route:i}),e.textContent="",f=!1}h.props.page&&(h.props.page.state={}),await ft(h,e,f)}function cn(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let be=!1;function ln(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=mt(e);if(r&&document.getElementById(r)){const{x:i,y:o}=t??le();setTimeout(()=>{const s=history.state;be=!0,location.replace(`#${r}`),v.hash&&location.replace(e.hash),history.replaceState(s,"",e.hash),scrollTo(i,o),be=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let o=0;o<a.rangeCount;o+=1)i.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===i.length){for(let o=0;o<a.rangeCount;o+=1){const s=i[o],c=a.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}a.removeAllRanges()}})}}}function je(e,t,n,r){let a,i;const o=new Promise((c,l)=>{a=c,i=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:o},fulfil:a,reject:i}}function Ne(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function un(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function mt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Re as R,vn as a,L as b,wn as c,yn as g,pn as l,k as p,hn as r,C as s};
diff --git a/backend/static/frontend/_app/immutable/chunks/xR3pK9Ey.js.map b/backend/static/frontend/_app/immutable/chunks/BIF4_51j.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/xR3pK9Ey.js.map
rename to backend/static/frontend/_app/immutable/chunks/BIF4_51j.js.map
index 7e73e90c..fabf0bd3 100644
--- a/backend/static/frontend/_app/immutable/chunks/xR3pK9Ey.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/BIF4_51j.js.map
@@ -1 +1 @@
-{"version":3,"file":"xR3pK9Ey.js","sources":["../../../../../../node_modules/@sveltejs/kit/src/exports/internal/index.js","../../../../../../node_modules/@sveltejs/kit/src/utils/url.js","../../../../../../node_modules/@sveltejs/kit/src/utils/hash.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/utils.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/fetcher.js","../../../../../../node_modules/@sveltejs/kit/src/utils/routing.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/parse.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/session-storage.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/app/paths/internal/client.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/constants.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/utils.js","../../../../../../node_modules/@sveltejs/kit/src/utils/exports.js","../../../../../../node_modules/@sveltejs/kit/src/utils/array.js","../../../../../../node_modules/@sveltejs/kit/src/utils/error.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/state.svelte.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/telemetry/noop.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/client.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nexport class HttpError {\n\t/**\n\t * @param {number} status\n\t * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n\t */\n\tconstructor(status, body) {\n\t\tthis.status = status;\n\t\tif (typeof body === 'string') {\n\t\t\tthis.body = { message: body };\n\t\t} else if (body) {\n\t\t\tthis.body = body;\n\t\t} else {\n\t\t\tthis.body = { message: `Error: ${status}` };\n\t\t}\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this.body);\n\t}\n}\n\nexport class Redirect {\n\t/**\n\t * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n\t * @param {string} location\n\t */\n\tconstructor(status, location) {\n\t\tthis.status = status;\n\t\tthis.location = location;\n\t}\n}\n\n/**\n * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.\n * `SvelteKitError` goes through `handleError`.\n * @extends Error\n */\nexport class SvelteKitError extends Error {\n\t/**\n\t * @param {number} status\n\t * @param {string} text\n\t * @param {string} message\n\t */\n\tconstructor(status, text, message) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t\tthis.text = text;\n\t}\n}\n\n/**\n * @template [T=undefined]\n */\nexport class ActionFailure {\n\t/**\n\t * @param {number} status\n\t * @param {T} data\n\t */\n\tconstructor(status, data) {\n\t\tthis.status = status;\n\t\tthis.data = data;\n\t}\n}\n\n/**\n * Error thrown when form validation fails imperatively\n */\nexport class ValidationError extends Error {\n\t/**\n\t * @param {StandardSchemaV1.Issue[]} issues\n\t */\n\tconstructor(issues) {\n\t\tsuper('Validation failed');\n\t\tthis.name = 'ValidationError';\n\t\tthis.issues = issues;\n\t}\n}\n\nexport { init_remote_functions } from './remote-functions.js';\n","import { BROWSER, DEV } from 'esm-env';\n\n/**\n * Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1\n * @type {RegExp}\n */\nexport const SCHEME = /^[a-z][a-z\\d+\\-.]+:/i;\n\nconst internal = new URL('sveltekit-internal://');\n\n/**\n * @param {string} base\n * @param {string} path\n */\nexport function resolve(base, path) {\n\t// special case\n\tif (path[0] === '/' && path[1] === '/') return path;\n\n\tlet url = new URL(base, internal);\n\turl = new URL(path, url);\n\n\treturn url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;\n}\n\n/** @param {string} path */\nexport function is_root_relative(path) {\n\treturn path[0] === '/' && path[1] !== '/';\n}\n\n/**\n * @param {string} path\n * @param {import('types').TrailingSlash} trailing_slash\n */\nexport function normalize_path(path, trailing_slash) {\n\tif (path === '/' || trailing_slash === 'ignore') return path;\n\n\tif (trailing_slash === 'never') {\n\t\treturn path.endsWith('/') ? path.slice(0, -1) : path;\n\t} else if (trailing_slash === 'always' && !path.endsWith('/')) {\n\t\treturn path + '/';\n\t}\n\n\treturn path;\n}\n\n/**\n * Decode pathname excluding %25 to prevent further double decoding of params\n * @param {string} pathname\n */\nexport function decode_pathname(pathname) {\n\treturn pathname.split('%25').map(decodeURI).join('%25');\n}\n\n/** @param {Record<string, string>} params */\nexport function decode_params(params) {\n\tfor (const key in params) {\n\t\t// input has already been decoded by decodeURI\n\t\t// now handle the rest\n\t\tparams[key] = decodeURIComponent(params[key]);\n\t}\n\n\treturn params;\n}\n\n/**\n * The error when a URL is malformed is not very helpful, so we augment it with the URI\n * @param {string} uri\n */\nexport function decode_uri(uri) {\n\ttry {\n\t\treturn decodeURI(uri);\n\t} catch (e) {\n\t\tif (e instanceof Error) {\n\t\t\te.message = `Failed to decode URI: ${uri}\\n` + e.message;\n\t\t}\n\t\tthrow e;\n\t}\n}\n\n/**\n * Returns everything up to the first `#` in a URL\n * @param {{href: string}} url_like\n */\nexport function strip_hash({ href }) {\n\treturn href.split('#')[0];\n}\n\n/**\n * @param {URL} url\n * @param {() => void} callback\n * @param {(search_param: string) => void} search_params_callback\n * @param {boolean} [allow_hash]\n */\nexport function make_trackable(url, callback, search_params_callback, allow_hash = false) {\n\tconst tracked = new URL(url);\n\n\tObject.defineProperty(tracked, 'searchParams', {\n\t\tvalue: new Proxy(tracked.searchParams, {\n\t\t\tget(obj, key) {\n\t\t\t\tif (key === 'get' || key === 'getAll' || key === 'has') {\n\t\t\t\t\treturn (/**@type {string}*/ param) => {\n\t\t\t\t\t\tsearch_params_callback(param);\n\t\t\t\t\t\treturn obj[key](param);\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// if they try to access something different from what is in `tracked_search_params_properties`\n\t\t\t\t// we track the whole url (entries, values, keys etc)\n\t\t\t\tcallback();\n\n\t\t\t\tconst value = Reflect.get(obj, key);\n\t\t\t\treturn typeof value === 'function' ? value.bind(obj) : value;\n\t\t\t}\n\t\t}),\n\t\tenumerable: true,\n\t\tconfigurable: true\n\t});\n\n\t/**\n\t * URL properties that could change during the lifetime of the page,\n\t * which excludes things like `origin`\n\t */\n\tconst tracked_url_properties = ['href', 'pathname', 'search', 'toString', 'toJSON'];\n\tif (allow_hash) tracked_url_properties.push('hash');\n\n\tfor (const property of tracked_url_properties) {\n\t\tObject.defineProperty(tracked, property, {\n\t\t\tget() {\n\t\t\t\tcallback();\n\t\t\t\t// @ts-expect-error\n\t\t\t\treturn url[property];\n\t\t\t},\n\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\ttracked[Symbol.for('nodejs.util.inspect.custom')] = (depth, opts, inspect) => {\n\t\t\treturn inspect(url, opts);\n\t\t};\n\n\t\t// @ts-ignore\n\t\ttracked.searchParams[Symbol.for('nodejs.util.inspect.custom')] = (depth, opts, inspect) => {\n\t\t\treturn inspect(url.searchParams, opts);\n\t\t};\n\t}\n\n\tif ((DEV || !BROWSER) && !allow_hash) {\n\t\tdisable_hash(tracked);\n\t}\n\n\treturn tracked;\n}\n\n/**\n * Disallow access to `url.hash` on the server and in `load`\n * @param {URL} url\n */\nfunction disable_hash(url) {\n\tallow_nodejs_console_log(url);\n\n\tObject.defineProperty(url, 'hash', {\n\t\tget() {\n\t\t\tthrow new Error(\n\t\t\t\t'Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead'\n\t\t\t);\n\t\t}\n\t});\n}\n\n/**\n * Disallow access to `url.search` and `url.searchParams` during prerendering\n * @param {URL} url\n */\nexport function disable_search(url) {\n\tallow_nodejs_console_log(url);\n\n\tfor (const property of ['search', 'searchParams']) {\n\t\tObject.defineProperty(url, property, {\n\t\t\tget() {\n\t\t\t\tthrow new Error(`Cannot access url.${property} on a page with prerendering enabled`);\n\t\t\t}\n\t\t});\n\t}\n}\n\n/**\n * Allow URL to be console logged, bypassing disabled properties.\n * @param {URL} url\n */\nfunction allow_nodejs_console_log(url) {\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\turl[Symbol.for('nodejs.util.inspect.custom')] = (depth, opts, inspect) => {\n\t\t\treturn inspect(new URL(url), opts);\n\t\t};\n\t}\n}\n","/**\n * Hash using djb2\n * @param {import('types').StrictBody[]} values\n */\nexport function hash(...values) {\n\tlet hash = 5381;\n\n\tfor (const value of values) {\n\t\tif (typeof value === 'string') {\n\t\t\tlet i = value.length;\n\t\t\twhile (i) hash = (hash * 33) ^ value.charCodeAt(--i);\n\t\t} else if (ArrayBuffer.isView(value)) {\n\t\t\tconst buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);\n\t\t\tlet i = buffer.length;\n\t\t\twhile (i) hash = (hash * 33) ^ buffer[--i];\n\t\t} else {\n\t\t\tthrow new TypeError('value must be a string or TypedArray');\n\t\t}\n\t}\n\n\treturn (hash >>> 0).toString(36);\n}\n","import { BROWSER } from 'esm-env';\n\nexport const text_encoder = new TextEncoder();\nexport const text_decoder = new TextDecoder();\n\n/**\n * Like node's path.relative, but without using node\n * @param {string} from\n * @param {string} to\n */\nexport function get_relative_path(from, to) {\n\tconst from_parts = from.split(/[/\\\\]/);\n\tconst to_parts = to.split(/[/\\\\]/);\n\tfrom_parts.pop(); // get dirname\n\n\twhile (from_parts[0] === to_parts[0]) {\n\t\tfrom_parts.shift();\n\t\tto_parts.shift();\n\t}\n\n\tlet i = from_parts.length;\n\twhile (i--) from_parts[i] = '..';\n\n\treturn from_parts.concat(to_parts).join('/');\n}\n\n/**\n * @param {Uint8Array} bytes\n * @returns {string}\n */\nexport function base64_encode(bytes) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\treturn globalThis.Buffer.from(bytes).toString('base64');\n\t}\n\n\tlet binary = '';\n\n\tfor (let i = 0; i < bytes.length; i++) {\n\t\tbinary += String.fromCharCode(bytes[i]);\n\t}\n\n\treturn btoa(binary);\n}\n\n/**\n * @param {string} encoded\n * @returns {Uint8Array}\n */\nexport function base64_decode(encoded) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\tconst buffer = globalThis.Buffer.from(encoded, 'base64');\n\t\treturn new Uint8Array(buffer);\n\t}\n\n\tconst binary = atob(encoded);\n\tconst bytes = new Uint8Array(binary.length);\n\n\tfor (let i = 0; i < binary.length; i++) {\n\t\tbytes[i] = binary.charCodeAt(i);\n\t}\n\n\treturn bytes;\n}\n","import { BROWSER, DEV } from 'esm-env';\nimport { hash } from '../../utils/hash.js';\nimport { base64_decode } from '../utils.js';\n\nlet loading = 0;\n\n/** @type {typeof fetch} */\nconst native_fetch = BROWSER ? window.fetch : /** @type {any} */ (() => {});\n\nexport function lock_fetch() {\n\tloading += 1;\n}\n\nexport function unlock_fetch() {\n\tloading -= 1;\n}\n\nif (DEV && BROWSER) {\n\tlet can_inspect_stack_trace = false;\n\n\t// detect whether async stack traces work\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tconst check_stack_trace = async () => {\n\t\tconst stack = /** @type {string} */ (new Error().stack);\n\t\tcan_inspect_stack_trace = stack.includes('check_stack_trace');\n\t};\n\n\tvoid check_stack_trace();\n\n\t/**\n\t * @param {RequestInfo | URL} input\n\t * @param {RequestInit & Record<string, any> | undefined} init\n\t */\n\twindow.fetch = (input, init) => {\n\t\t// Check if fetch was called via load_node. the lock method only checks if it was called at the\n\t\t// same time, but not necessarily if it was called from `load`.\n\t\t// We use just the filename as the method name sometimes does not appear on the CI.\n\t\tconst url = input instanceof Request ? input.url : input.toString();\n\t\tconst stack_array = /** @type {string} */ (new Error().stack).split('\\n');\n\t\t// We need to do a cutoff because Safari and Firefox maintain the stack\n\t\t// across events and for example traces a `fetch` call triggered from a button\n\t\t// back to the creation of the event listener and the element creation itself,\n\t\t// where at some point client.js will show up, leading to false positives.\n\t\tconst cutoff = stack_array.findIndex((a) => a.includes('load@') || a.includes('at load'));\n\t\tconst stack = stack_array.slice(0, cutoff + 2).join('\\n');\n\n\t\tconst in_load_heuristic = can_inspect_stack_trace\n\t\t\t? stack.includes('src/runtime/client/client.js')\n\t\t\t: loading;\n\n\t\t// This flag is set in initial_fetch and subsequent_fetch\n\t\tconst used_kit_fetch = init?.__sveltekit_fetch__;\n\n\t\tif (in_load_heuristic && !used_kit_fetch) {\n\t\t\tconsole.warn(\n\t\t\t\t`Loading ${url} using \\`window.fetch\\`. For best results, use the \\`fetch\\` that is passed to your \\`load\\` function: https://svelte.dev/docs/kit/load#making-fetch-requests`\n\t\t\t);\n\t\t}\n\n\t\tconst method = input instanceof Request ? input.method : init?.method || 'GET';\n\n\t\tif (method !== 'GET') {\n\t\t\tcache.delete(build_selector(input));\n\t\t}\n\n\t\treturn native_fetch(input, init);\n\t};\n} else if (BROWSER) {\n\twindow.fetch = (input, init) => {\n\t\tconst method = input instanceof Request ? input.method : init?.method || 'GET';\n\n\t\tif (method !== 'GET') {\n\t\t\tcache.delete(build_selector(input));\n\t\t}\n\n\t\treturn native_fetch(input, init);\n\t};\n}\n\nconst cache = new Map();\n\n/**\n * Should be called on the initial run of load functions that hydrate the page.\n * Saves any requests with cache-control max-age to the cache.\n * @param {URL | string} resource\n * @param {RequestInit} [opts]\n */\nexport function initial_fetch(resource, opts) {\n\tconst selector = build_selector(resource, opts);\n\n\tconst script = document.querySelector(selector);\n\tif (script?.textContent) {\n\t\tscript.remove(); // In case multiple script tags match the same selector\n\t\tlet { body, ...init } = JSON.parse(script.textContent);\n\n\t\tconst ttl = script.getAttribute('data-ttl');\n\t\tif (ttl) cache.set(selector, { body, init, ttl: 1000 * Number(ttl) });\n\t\tconst b64 = script.getAttribute('data-b64');\n\t\tif (b64 !== null) {\n\t\t\t// Can't use native_fetch('data:...;base64,${body}')\n\t\t\t// csp can block the request\n\t\t\tbody = base64_decode(body);\n\t\t}\n\n\t\treturn Promise.resolve(new Response(body, init));\n\t}\n\n\treturn DEV ? dev_fetch(resource, opts) : window.fetch(resource, opts);\n}\n\n/**\n * Tries to get the response from the cache, if max-age allows it, else does a fetch.\n * @param {URL | string} resource\n * @param {string} resolved\n * @param {RequestInit} [opts]\n */\nexport function subsequent_fetch(resource, resolved, opts) {\n\tif (cache.size > 0) {\n\t\tconst selector = build_selector(resource, opts);\n\t\tconst cached = cache.get(selector);\n\t\tif (cached) {\n\t\t\t// https://developer.mozilla.org/en-US/docs/Web/API/Request/cache#value\n\t\t\tif (\n\t\t\t\tperformance.now() < cached.ttl &&\n\t\t\t\t['default', 'force-cache', 'only-if-cached', undefined].includes(opts?.cache)\n\t\t\t) {\n\t\t\t\treturn new Response(cached.body, cached.init);\n\t\t\t}\n\n\t\t\tcache.delete(selector);\n\t\t}\n\t}\n\n\treturn DEV ? dev_fetch(resolved, opts) : window.fetch(resolved, opts);\n}\n\n/**\n * @param {RequestInfo | URL} resource\n * @param {RequestInit & Record<string, any> | undefined} opts\n */\nexport function dev_fetch(resource, opts) {\n\tconst patched_opts = { ...opts };\n\t// This assigns the __sveltekit_fetch__ flag and makes it non-enumerable\n\tObject.defineProperty(patched_opts, '__sveltekit_fetch__', {\n\t\tvalue: true,\n\t\twritable: true,\n\t\tconfigurable: true\n\t});\n\treturn window.fetch(resource, patched_opts);\n}\n\n/**\n * Build the cache key for a given request\n * @param {URL | RequestInfo} resource\n * @param {RequestInit} [opts]\n */\nfunction build_selector(resource, opts) {\n\tconst url = JSON.stringify(resource instanceof Request ? resource.url : resource);\n\n\tlet selector = `script[data-sveltekit-fetched][data-url=${url}]`;\n\n\tif (opts?.headers || opts?.body) {\n\t\t/** @type {import('types').StrictBody[]} */\n\t\tconst values = [];\n\n\t\tif (opts.headers) {\n\t\t\tvalues.push([...new Headers(opts.headers)].join(','));\n\t\t}\n\n\t\tif (opts.body && (typeof opts.body === 'string' || ArrayBuffer.isView(opts.body))) {\n\t\t\tvalues.push(opts.body);\n\t\t}\n\n\t\tselector += `[data-hash=\"${hash(...values)}\"]`;\n\t}\n\n\treturn selector;\n}\n","import { BROWSER } from 'esm-env';\n\nconst param_pattern = /^(\\[)?(\\.\\.\\.)?(\\w+)(?:=(\\w+))?(\\])?$/;\n\n/**\n * Creates the regex pattern, extracts parameter names, and generates types for a route\n * @param {string} id\n */\nexport function parse_route_id(id) {\n\t/** @type {import('types').RouteParam[]} */\n\tconst params = [];\n\n\tconst pattern =\n\t\tid === '/'\n\t\t\t? /^\\/$/\n\t\t\t: new RegExp(\n\t\t\t\t\t`^${get_route_segments(id)\n\t\t\t\t\t\t.map((segment) => {\n\t\t\t\t\t\t\t// special case — /[...rest]/ could contain zero segments\n\t\t\t\t\t\t\tconst rest_match = /^\\[\\.\\.\\.(\\w+)(?:=(\\w+))?\\]$/.exec(segment);\n\t\t\t\t\t\t\tif (rest_match) {\n\t\t\t\t\t\t\t\tparams.push({\n\t\t\t\t\t\t\t\t\tname: rest_match[1],\n\t\t\t\t\t\t\t\t\tmatcher: rest_match[2],\n\t\t\t\t\t\t\t\t\toptional: false,\n\t\t\t\t\t\t\t\t\trest: true,\n\t\t\t\t\t\t\t\t\tchained: true\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\treturn '(?:/([^]*))?';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// special case — /[[optional]]/ could contain zero segments\n\t\t\t\t\t\t\tconst optional_match = /^\\[\\[(\\w+)(?:=(\\w+))?\\]\\]$/.exec(segment);\n\t\t\t\t\t\t\tif (optional_match) {\n\t\t\t\t\t\t\t\tparams.push({\n\t\t\t\t\t\t\t\t\tname: optional_match[1],\n\t\t\t\t\t\t\t\t\tmatcher: optional_match[2],\n\t\t\t\t\t\t\t\t\toptional: true,\n\t\t\t\t\t\t\t\t\trest: false,\n\t\t\t\t\t\t\t\t\tchained: true\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\treturn '(?:/([^/]+))?';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (!segment) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tconst parts = segment.split(/\\[(.+?)\\](?!\\])/);\n\t\t\t\t\t\t\tconst result = parts\n\t\t\t\t\t\t\t\t.map((content, i) => {\n\t\t\t\t\t\t\t\t\tif (i % 2) {\n\t\t\t\t\t\t\t\t\t\tif (content.startsWith('x+')) {\n\t\t\t\t\t\t\t\t\t\t\treturn escape(String.fromCharCode(parseInt(content.slice(2), 16)));\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif (content.startsWith('u+')) {\n\t\t\t\t\t\t\t\t\t\t\treturn escape(\n\t\t\t\t\t\t\t\t\t\t\t\tString.fromCharCode(\n\t\t\t\t\t\t\t\t\t\t\t\t\t...content\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.slice(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.split('-')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.map((code) => parseInt(code, 16))\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t// We know the match cannot be null in the browser because manifest generation\n\t\t\t\t\t\t\t\t\t\t// would have invoked this during build and failed if we hit an invalid\n\t\t\t\t\t\t\t\t\t\t// param/matcher name with non-alphanumeric character.\n\t\t\t\t\t\t\t\t\t\tconst match = /** @type {RegExpExecArray} */ (param_pattern.exec(content));\n\t\t\t\t\t\t\t\t\t\tif (!BROWSER && !match) {\n\t\t\t\t\t\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t\t\t\t\t\t`Invalid param: ${content}. Params and matcher names can only have underscores and alphanumeric characters.`\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tconst [, is_optional, is_rest, name, matcher] = match;\n\t\t\t\t\t\t\t\t\t\t// It's assumed that the following invalid route id cases are already checked\n\t\t\t\t\t\t\t\t\t\t// - unbalanced brackets\n\t\t\t\t\t\t\t\t\t\t// - optional param following rest param\n\n\t\t\t\t\t\t\t\t\t\tparams.push({\n\t\t\t\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\t\t\t\tmatcher,\n\t\t\t\t\t\t\t\t\t\t\toptional: !!is_optional,\n\t\t\t\t\t\t\t\t\t\t\trest: !!is_rest,\n\t\t\t\t\t\t\t\t\t\t\tchained: is_rest ? i === 1 && parts[0] === '' : false\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\treturn is_rest ? '([^]*?)' : is_optional ? '([^/]*)?' : '([^/]+?)';\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturn escape(content);\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.join('');\n\n\t\t\t\t\t\t\treturn '/' + result;\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.join('')}/?$`\n\t\t\t\t);\n\n\treturn { pattern, params };\n}\n\nconst optional_param_regex = /\\/\\[\\[\\w+?(?:=\\w+)?\\]\\]/;\n\n/**\n * Removes optional params from a route ID.\n * @param {string} id\n * @returns The route id with optional params removed\n */\nexport function remove_optional_params(id) {\n\treturn id.replace(optional_param_regex, '');\n}\n\n/**\n * Returns `false` for `(group)` segments\n * @param {string} segment\n */\nfunction affects_path(segment) {\n\treturn segment !== '' && !/^\\([^)]+\\)$/.test(segment);\n}\n\n/**\n * Splits a route id into its segments, removing segments that\n * don't affect the path (i.e. groups). The root route is represented by `/`\n * and will be returned as `['']`.\n * @param {string} route\n * @returns string[]\n */\nexport function get_route_segments(route) {\n\treturn route.slice(1).split('/').filter(affects_path);\n}\n\n/**\n * @param {RegExpMatchArray} match\n * @param {import('types').RouteParam[]} params\n * @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers\n */\nexport function exec(match, params, matchers) {\n\t/** @type {Record<string, string>} */\n\tconst result = {};\n\n\tconst values = match.slice(1);\n\tconst values_needing_match = values.filter((value) => value !== undefined);\n\n\tlet buffered = 0;\n\n\tfor (let i = 0; i < params.length; i += 1) {\n\t\tconst param = params[i];\n\t\tlet value = values[i - buffered];\n\n\t\t// in the `[[a=b]]/.../[...rest]` case, if one or more optional parameters\n\t\t// weren't matched, roll the skipped values into the rest\n\t\tif (param.chained && param.rest && buffered) {\n\t\t\tvalue = values\n\t\t\t\t.slice(i - buffered, i + 1)\n\t\t\t\t.filter((s) => s)\n\t\t\t\t.join('/');\n\n\t\t\tbuffered = 0;\n\t\t}\n\n\t\t// if `value` is undefined, it means this is an optional or rest parameter\n\t\tif (value === undefined) {\n\t\t\tif (param.rest) result[param.name] = '';\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (!param.matcher || matchers[param.matcher](value)) {\n\t\t\tresult[param.name] = value;\n\n\t\t\t// Now that the params match, reset the buffer if the next param isn't the [...rest]\n\t\t\t// and the next value is defined, otherwise the buffer will cause us to skip values\n\t\t\tconst next_param = params[i + 1];\n\t\t\tconst next_value = values[i + 1];\n\t\t\tif (next_param && !next_param.rest && next_param.optional && next_value && param.chained) {\n\t\t\t\tbuffered = 0;\n\t\t\t}\n\n\t\t\t// There are no more params and no more values, but all non-empty values have been matched\n\t\t\tif (\n\t\t\t\t!next_param &&\n\t\t\t\t!next_value &&\n\t\t\t\tObject.keys(result).length === values_needing_match.length\n\t\t\t) {\n\t\t\t\tbuffered = 0;\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\t// in the `/[[a=b]]/...` case, if the value didn't satisfy the matcher,\n\t\t// keep track of the number of skipped optional parameters and continue\n\t\tif (param.optional && param.chained) {\n\t\t\tbuffered++;\n\t\t\tcontinue;\n\t\t}\n\n\t\t// otherwise, if the matcher returns `false`, the route did not match\n\t\treturn;\n\t}\n\n\tif (buffered) return;\n\treturn result;\n}\n\n/** @param {string} str */\nfunction escape(str) {\n\treturn (\n\t\tstr\n\t\t\t.normalize()\n\t\t\t// escape [ and ] before escaping other characters, since they are used in the replacements\n\t\t\t.replace(/[[\\]]/g, '\\\\$&')\n\t\t\t// replace %, /, ? and # with their encoded versions because decode_pathname leaves them untouched\n\t\t\t.replace(/%/g, '%25')\n\t\t\t.replace(/\\//g, '%2[Ff]')\n\t\t\t.replace(/\\?/g, '%3[Ff]')\n\t\t\t.replace(/#/g, '%23')\n\t\t\t// escape characters that have special meaning in regex\n\t\t\t.replace(/[.*+?^${}()|\\\\]/g, '\\\\$&')\n\t);\n}\n\nconst basic_param_pattern = /\\[(\\[)?(\\.\\.\\.)?(\\w+?)(?:=(\\w+))?\\]\\]?/g;\n\n/**\n * Populate a route ID with params to resolve a pathname.\n * @example\n * ```js\n * resolveRoute(\n * `/blog/[slug]/[...somethingElse]`,\n * {\n * slug: 'hello-world',\n * somethingElse: 'something/else'\n * }\n * ); // `/blog/hello-world/something/else`\n * ```\n * @param {string} id\n * @param {Record<string, string | undefined>} params\n * @returns {string}\n */\nexport function resolve_route(id, params) {\n\tconst segments = get_route_segments(id);\n\tconst has_id_trailing_slash = id != '/' && id.endsWith('/');\n\n\treturn (\n\t\t'/' +\n\t\tsegments\n\t\t\t.map((segment) =>\n\t\t\t\tsegment.replace(basic_param_pattern, (_, optional, rest, name) => {\n\t\t\t\t\tconst param_value = params[name];\n\n\t\t\t\t\t// This is nested so TS correctly narrows the type\n\t\t\t\t\tif (!param_value) {\n\t\t\t\t\t\tif (optional) return '';\n\t\t\t\t\t\tif (rest && param_value !== undefined) return '';\n\t\t\t\t\t\tthrow new Error(`Missing parameter '${name}' in route ${id}`);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (param_value.startsWith('/') || param_value.endsWith('/'))\n\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t`Parameter '${name}' in route ${id} cannot start or end with a slash -- this would cause an invalid route like foo//bar`\n\t\t\t\t\t\t);\n\t\t\t\t\treturn param_value;\n\t\t\t\t})\n\t\t\t)\n\t\t\t.filter(Boolean)\n\t\t\t.join('/') +\n\t\t(has_id_trailing_slash ? '/' : '')\n\t);\n}\n\n/**\n * @param {import('types').SSRNode} node\n * @returns {boolean}\n */\nexport function has_server_load(node) {\n\treturn node.server?.load !== undefined || node.server?.trailingSlash !== undefined;\n}\n","import { exec, parse_route_id } from '../../utils/routing.js';\n\n/**\n * @param {import('./types.js').SvelteKitApp} app\n * @returns {import('types').CSRRoute[]}\n */\nexport function parse({ nodes, server_loads, dictionary, matchers }) {\n\tconst layouts_with_server_load = new Set(server_loads);\n\n\treturn Object.entries(dictionary).map(([id, [leaf, layouts, errors]]) => {\n\t\tconst { pattern, params } = parse_route_id(id);\n\n\t\t/** @type {import('types').CSRRoute} */\n\t\tconst route = {\n\t\t\tid,\n\t\t\t/** @param {string} path */\n\t\t\texec: (path) => {\n\t\t\t\tconst match = pattern.exec(path);\n\t\t\t\tif (match) return exec(match, params, matchers);\n\t\t\t},\n\t\t\terrors: [1, ...(errors || [])].map((n) => nodes[n]),\n\t\t\tlayouts: [0, ...(layouts || [])].map(create_layout_loader),\n\t\t\tleaf: create_leaf_loader(leaf)\n\t\t};\n\n\t\t// bit of a hack, but ensures that layout/error node lists are the same\n\t\t// length, without which the wrong data will be applied if the route\n\t\t// manifest looks like `[[a, b], [c,], d]`\n\t\troute.errors.length = route.layouts.length = Math.max(\n\t\t\troute.errors.length,\n\t\t\troute.layouts.length\n\t\t);\n\n\t\treturn route;\n\t});\n\n\t/**\n\t * @param {number} id\n\t * @returns {[boolean, import('types').CSRPageNodeLoader]}\n\t */\n\tfunction create_leaf_loader(id) {\n\t\t// whether or not the route uses the server data is\n\t\t// encoded using the ones' complement, to save space\n\t\tconst uses_server_data = id < 0;\n\t\tif (uses_server_data) id = ~id;\n\t\treturn [uses_server_data, nodes[id]];\n\t}\n\n\t/**\n\t * @param {number | undefined} id\n\t * @returns {[boolean, import('types').CSRPageNodeLoader] | undefined}\n\t */\n\tfunction create_layout_loader(id) {\n\t\t// whether or not the layout uses the server data is\n\t\t// encoded in the layouts array, to save space\n\t\treturn id === undefined ? id : [layouts_with_server_load.has(id), nodes[id]];\n\t}\n}\n\n/**\n * @param {import('types').CSRRouteServer} input\n * @param {import('types').CSRPageNodeLoader[]} app_nodes Will be modified if a new node is loaded that's not already in the array\n * @returns {import('types').CSRRoute}\n */\nexport function parse_server_route({ nodes, id, leaf, layouts, errors }, app_nodes) {\n\treturn {\n\t\tid,\n\t\texec: () => ({}), // dummy function; exec already happened on the server\n\t\t// By writing to app_nodes only when a loader at that index is not already defined,\n\t\t// we ensure that loaders have referential equality when they load the same node.\n\t\t// Code elsewhere in client.js relies on this referential equality to determine\n\t\t// if a loader is different and should therefore (re-)run.\n\t\terrors: errors.map((n) => (n ? (app_nodes[n] ||= nodes[n]) : undefined)),\n\t\tlayouts: layouts.map((n) => (n ? [n[0], (app_nodes[n[1]] ||= nodes[n[1]])] : undefined)),\n\t\tleaf: [leaf[0], (app_nodes[leaf[1]] ||= nodes[leaf[1]])]\n\t};\n}\n","/**\n * Read a value from `sessionStorage`\n * @param {string} key\n * @param {(value: string) => any} parse\n */\n/*@__NO_SIDE_EFFECTS__*/\nexport function get(key, parse = JSON.parse) {\n\ttry {\n\t\treturn parse(sessionStorage[key]);\n\t} catch {\n\t\t// do nothing\n\t}\n}\n\n/**\n * Write a value to `sessionStorage`\n * @param {string} key\n * @param {any} value\n * @param {(value: any) => string} stringify\n */\nexport function set(key, value, stringify = JSON.stringify) {\n\tconst data = stringify(value);\n\ttry {\n\t\tsessionStorage[key] = data;\n\t} catch {\n\t\t// do nothing\n\t}\n}\n","export const base = __SVELTEKIT_PAYLOAD__?.base ?? __SVELTEKIT_PATHS_BASE__;\nexport const assets = __SVELTEKIT_PAYLOAD__?.assets ?? base ?? __SVELTEKIT_PATHS_ASSETS__;\nexport const app_dir = __SVELTEKIT_APP_DIR__;\nexport const hash_routing = __SVELTEKIT_HASH_ROUTING__;\n","export const SNAPSHOT_KEY = 'sveltekit:snapshot';\nexport const SCROLL_KEY = 'sveltekit:scroll';\nexport const STATES_KEY = 'sveltekit:states';\nexport const PAGE_URL_KEY = 'sveltekit:pageurl';\n\nexport const HISTORY_INDEX = 'sveltekit:history';\nexport const NAVIGATION_INDEX = 'sveltekit:navigation';\n\nexport const PRELOAD_PRIORITIES = /** @type {const} */ ({\n\ttap: 1,\n\thover: 2,\n\tviewport: 3,\n\teager: 4,\n\toff: -1,\n\tfalse: -1\n});\n","import { BROWSER, DEV } from 'esm-env';\nimport { writable } from 'svelte/store';\nimport { assets } from '$app/paths';\nimport { version } from '__sveltekit/environment';\nimport { PRELOAD_PRIORITIES } from './constants.js';\n\n/* global __SVELTEKIT_APP_VERSION_FILE__, __SVELTEKIT_APP_VERSION_POLL_INTERVAL__ */\n\nexport const origin = BROWSER ? location.origin : '';\n\n/** @param {string | URL} url */\nexport function resolve_url(url) {\n\tif (url instanceof URL) return url;\n\n\tlet baseURI = document.baseURI;\n\n\tif (!baseURI) {\n\t\tconst baseTags = document.getElementsByTagName('base');\n\t\tbaseURI = baseTags.length ? baseTags[0].href : document.URL;\n\t}\n\n\treturn new URL(url, baseURI);\n}\n\nexport function scroll_state() {\n\treturn {\n\t\tx: pageXOffset,\n\t\ty: pageYOffset\n\t};\n}\n\nconst warned = new WeakSet();\n\n/** @typedef {keyof typeof valid_link_options} LinkOptionName */\n\nconst valid_link_options = /** @type {const} */ ({\n\t'preload-code': ['', 'off', 'false', 'tap', 'hover', 'viewport', 'eager'],\n\t'preload-data': ['', 'off', 'false', 'tap', 'hover'],\n\tkeepfocus: ['', 'true', 'off', 'false'],\n\tnoscroll: ['', 'true', 'off', 'false'],\n\treload: ['', 'true', 'off', 'false'],\n\treplacestate: ['', 'true', 'off', 'false']\n});\n\n/**\n * @template {LinkOptionName} T\n * @typedef {typeof valid_link_options[T][number]} ValidLinkOptions\n */\n\n/**\n * @template {LinkOptionName} T\n * @param {Element} element\n * @param {T} name\n */\nfunction link_option(element, name) {\n\tconst value = /** @type {ValidLinkOptions<T> | null} */ (\n\t\telement.getAttribute(`data-sveltekit-${name}`)\n\t);\n\n\tif (DEV) {\n\t\tvalidate_link_option(element, name, value);\n\t}\n\n\treturn value;\n}\n\n/**\n * @template {LinkOptionName} T\n * @template {ValidLinkOptions<T> | null} U\n * @param {Element} element\n * @param {T} name\n * @param {U} value\n */\nfunction validate_link_option(element, name, value) {\n\tif (value === null) return;\n\n\t// @ts-expect-error - includes is dumb\n\tif (!warned.has(element) && !valid_link_options[name].includes(value)) {\n\t\tconsole.error(\n\t\t\t`Unexpected value for ${name} — should be one of ${valid_link_options[name]\n\t\t\t\t.map((option) => JSON.stringify(option))\n\t\t\t\t.join(', ')}`,\n\t\t\telement\n\t\t);\n\n\t\twarned.add(element);\n\t}\n}\n\nconst levels = {\n\t...PRELOAD_PRIORITIES,\n\t'': PRELOAD_PRIORITIES.hover\n};\n\n/**\n * @param {Element} element\n * @returns {Element | null}\n */\nfunction parent_element(element) {\n\tlet parent = element.assignedSlot ?? element.parentNode;\n\n\t// @ts-expect-error handle shadow roots\n\tif (parent?.nodeType === 11) parent = parent.host;\n\n\treturn /** @type {Element} */ (parent);\n}\n\n/**\n * @param {Element} element\n * @param {Element} target\n */\nexport function find_anchor(element, target) {\n\twhile (element && element !== target) {\n\t\tif (element.nodeName.toUpperCase() === 'A' && element.hasAttribute('href')) {\n\t\t\treturn /** @type {HTMLAnchorElement | SVGAElement} */ (element);\n\t\t}\n\n\t\telement = /** @type {Element} */ (parent_element(element));\n\t}\n}\n\n/**\n * @param {HTMLAnchorElement | SVGAElement} a\n * @param {string} base\n * @param {boolean} uses_hash_router\n */\nexport function get_link_info(a, base, uses_hash_router) {\n\t/** @type {URL | undefined} */\n\tlet url;\n\n\ttry {\n\t\turl = new URL(a instanceof SVGAElement ? a.href.baseVal : a.href, document.baseURI);\n\n\t\t// if the hash doesn't start with `#/` then it's probably linking to an id on the current page\n\t\tif (uses_hash_router && url.hash.match(/^#[^/]/)) {\n\t\t\tconst route = location.hash.split('#')[1] || '/';\n\t\t\turl.hash = `#${route}${url.hash}`;\n\t\t}\n\t} catch {}\n\n\tconst target = a instanceof SVGAElement ? a.target.baseVal : a.target;\n\n\tconst external =\n\t\t!url ||\n\t\t!!target ||\n\t\tis_external_url(url, base, uses_hash_router) ||\n\t\t(a.getAttribute('rel') || '').split(/\\s+/).includes('external');\n\n\tconst download = url?.origin === origin && a.hasAttribute('download');\n\n\treturn { url, external, target, download };\n}\n\n/**\n * @param {HTMLFormElement | HTMLAnchorElement | SVGAElement} element\n */\nexport function get_router_options(element) {\n\t/** @type {ValidLinkOptions<'keepfocus'> | null} */\n\tlet keepfocus = null;\n\n\t/** @type {ValidLinkOptions<'noscroll'> | null} */\n\tlet noscroll = null;\n\n\t/** @type {ValidLinkOptions<'preload-code'> | null} */\n\tlet preload_code = null;\n\n\t/** @type {ValidLinkOptions<'preload-data'> | null} */\n\tlet preload_data = null;\n\n\t/** @type {ValidLinkOptions<'reload'> | null} */\n\tlet reload = null;\n\n\t/** @type {ValidLinkOptions<'replacestate'> | null} */\n\tlet replace_state = null;\n\n\t/** @type {Element} */\n\tlet el = element;\n\n\twhile (el && el !== document.documentElement) {\n\t\tif (preload_code === null) preload_code = link_option(el, 'preload-code');\n\t\tif (preload_data === null) preload_data = link_option(el, 'preload-data');\n\t\tif (keepfocus === null) keepfocus = link_option(el, 'keepfocus');\n\t\tif (noscroll === null) noscroll = link_option(el, 'noscroll');\n\t\tif (reload === null) reload = link_option(el, 'reload');\n\t\tif (replace_state === null) replace_state = link_option(el, 'replacestate');\n\n\t\tel = /** @type {Element} */ (parent_element(el));\n\t}\n\n\t/** @param {string | null} value */\n\tfunction get_option_state(value) {\n\t\tswitch (value) {\n\t\t\tcase '':\n\t\t\tcase 'true':\n\t\t\t\treturn true;\n\t\t\tcase 'off':\n\t\t\tcase 'false':\n\t\t\t\treturn false;\n\t\t\tdefault:\n\t\t\t\treturn undefined;\n\t\t}\n\t}\n\n\treturn {\n\t\tpreload_code: levels[preload_code ?? 'off'],\n\t\tpreload_data: levels[preload_data ?? 'off'],\n\t\tkeepfocus: get_option_state(keepfocus),\n\t\tnoscroll: get_option_state(noscroll),\n\t\treload: get_option_state(reload),\n\t\treplace_state: get_option_state(replace_state)\n\t};\n}\n\n/** @param {any} value */\nexport function notifiable_store(value) {\n\tconst store = writable(value);\n\tlet ready = true;\n\n\tfunction notify() {\n\t\tready = true;\n\t\tstore.update((val) => val);\n\t}\n\n\t/** @param {any} new_value */\n\tfunction set(new_value) {\n\t\tready = false;\n\t\tstore.set(new_value);\n\t}\n\n\t/** @param {(value: any) => void} run */\n\tfunction subscribe(run) {\n\t\t/** @type {any} */\n\t\tlet old_value;\n\t\treturn store.subscribe((new_value) => {\n\t\t\tif (old_value === undefined || (ready && new_value !== old_value)) {\n\t\t\t\trun((old_value = new_value));\n\t\t\t}\n\t\t});\n\t}\n\n\treturn { notify, set, subscribe };\n}\n\nexport const updated_listener = {\n\tv: () => {}\n};\n\nexport function create_updated_store() {\n\tconst { set, subscribe } = writable(false);\n\n\tif (DEV || !BROWSER) {\n\t\treturn {\n\t\t\tsubscribe,\n\t\t\t// eslint-disable-next-line @typescript-eslint/require-await\n\t\t\tcheck: async () => false\n\t\t};\n\t}\n\n\tconst interval = __SVELTEKIT_APP_VERSION_POLL_INTERVAL__;\n\n\t/** @type {NodeJS.Timeout} */\n\tlet timeout;\n\n\t/** @type {() => Promise<boolean>} */\n\tasync function check() {\n\t\tclearTimeout(timeout);\n\n\t\tif (interval) timeout = setTimeout(check, interval);\n\n\t\ttry {\n\t\t\tconst res = await fetch(`${assets}/${__SVELTEKIT_APP_VERSION_FILE__}`, {\n\t\t\t\theaders: {\n\t\t\t\t\tpragma: 'no-cache',\n\t\t\t\t\t'cache-control': 'no-cache'\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif (!res.ok) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tconst data = await res.json();\n\t\t\tconst updated = data.version !== version;\n\n\t\t\tif (updated) {\n\t\t\t\tset(true);\n\t\t\t\tupdated_listener.v();\n\t\t\t\tclearTimeout(timeout);\n\t\t\t}\n\n\t\t\treturn updated;\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tif (interval) timeout = setTimeout(check, interval);\n\n\treturn {\n\t\tsubscribe,\n\t\tcheck\n\t};\n}\n\n/**\n * Is external if\n * - origin different\n * - path doesn't start with base\n * - uses hash router and pathname is more than base\n * @param {URL} url\n * @param {string} base\n * @param {boolean} hash_routing\n */\nexport function is_external_url(url, base, hash_routing) {\n\tif (url.origin !== origin || !url.pathname.startsWith(base)) {\n\t\treturn true;\n\t}\n\n\tif (hash_routing) {\n\t\treturn url.pathname !== location.pathname;\n\t}\n\n\treturn false;\n}\n\n/** @type {Set<string> | null} */\nlet seen = null;\n\n/**\n * Used for server-side resolution, to replicate Vite's CSS loading behaviour in production.\n *\n * Closely modelled after https://github.com/vitejs/vite/blob/3dd12f4724130fdf8ba44c6d3252ebdff407fd47/packages/vite/src/node/plugins/importAnalysisBuild.ts#L214\n * (which ideally we could just use directly, but it's not exported)\n * @param {string[]} deps\n */\nexport function load_css(deps) {\n\tif (__SVELTEKIT_CLIENT_ROUTING__) return;\n\n\tconst csp_nonce_meta = /** @type {HTMLMetaElement} */ (\n\t\tdocument.querySelector('meta[property=csp-nonce]')\n\t);\n\tconst csp_nonce = csp_nonce_meta?.nonce || csp_nonce_meta?.getAttribute('nonce');\n\n\tseen ??= new Set(\n\t\tArray.from(document.querySelectorAll('link[rel=\"stylesheet\"]')).map((link) => {\n\t\t\treturn /** @type {HTMLLinkElement} */ (link).href;\n\t\t})\n\t);\n\n\tfor (const dep of deps) {\n\t\tconst href = new URL(dep, document.baseURI).href;\n\n\t\tif (seen.has(href)) continue;\n\t\tseen.add(href);\n\n\t\tconst link = document.createElement('link');\n\t\tlink.rel = 'stylesheet';\n\t\tlink.crossOrigin = '';\n\t\tlink.href = dep;\n\t\tif (csp_nonce) {\n\t\t\tlink.setAttribute('nonce', csp_nonce);\n\t\t}\n\t\tdocument.head.appendChild(link);\n\t}\n}\n","/**\n * @param {Set<string>} expected\n */\nfunction validator(expected) {\n\t/**\n\t * @param {any} module\n\t * @param {string} [file]\n\t */\n\tfunction validate(module, file) {\n\t\tif (!module) return;\n\n\t\tfor (const key in module) {\n\t\t\tif (key[0] === '_' || expected.has(key)) continue; // key is valid in this module\n\n\t\t\tconst values = [...expected.values()];\n\n\t\t\tconst hint =\n\t\t\t\thint_for_supported_files(key, file?.slice(file.lastIndexOf('.'))) ??\n\t\t\t\t`valid exports are ${values.join(', ')}, or anything with a '_' prefix`;\n\n\t\t\tthrow new Error(`Invalid export '${key}'${file ? ` in ${file}` : ''} (${hint})`);\n\t\t}\n\t}\n\n\treturn validate;\n}\n\n/**\n * @param {string} key\n * @param {string} ext\n * @returns {string | void}\n */\nfunction hint_for_supported_files(key, ext = '.js') {\n\tconst supported_files = [];\n\n\tif (valid_layout_exports.has(key)) {\n\t\tsupported_files.push(`+layout${ext}`);\n\t}\n\n\tif (valid_page_exports.has(key)) {\n\t\tsupported_files.push(`+page${ext}`);\n\t}\n\n\tif (valid_layout_server_exports.has(key)) {\n\t\tsupported_files.push(`+layout.server${ext}`);\n\t}\n\n\tif (valid_page_server_exports.has(key)) {\n\t\tsupported_files.push(`+page.server${ext}`);\n\t}\n\n\tif (valid_server_exports.has(key)) {\n\t\tsupported_files.push(`+server${ext}`);\n\t}\n\n\tif (supported_files.length > 0) {\n\t\treturn `'${key}' is a valid export in ${supported_files.slice(0, -1).join(', ')}${\n\t\t\tsupported_files.length > 1 ? ' or ' : ''\n\t\t}${supported_files.at(-1)}`;\n\t}\n}\n\nconst valid_layout_exports = new Set([\n\t'load',\n\t'prerender',\n\t'csr',\n\t'ssr',\n\t'trailingSlash',\n\t'config'\n]);\nconst valid_page_exports = new Set([...valid_layout_exports, 'entries']);\nconst valid_layout_server_exports = new Set([...valid_layout_exports]);\nconst valid_page_server_exports = new Set([...valid_layout_server_exports, 'actions', 'entries']);\nconst valid_server_exports = new Set([\n\t'GET',\n\t'POST',\n\t'PATCH',\n\t'PUT',\n\t'DELETE',\n\t'OPTIONS',\n\t'HEAD',\n\t'fallback',\n\t'prerender',\n\t'trailingSlash',\n\t'config',\n\t'entries'\n]);\n\nexport const validate_layout_exports = validator(valid_layout_exports);\nexport const validate_page_exports = validator(valid_page_exports);\nexport const validate_layout_server_exports = validator(valid_layout_server_exports);\nexport const validate_page_server_exports = validator(valid_page_server_exports);\nexport const validate_server_exports = validator(valid_server_exports);\n","/**\n * Removes nullish values from an array.\n *\n * @template T\n * @param {Array<T>} arr\n */\nexport function compact(arr) {\n\treturn arr.filter(/** @returns {val is NonNullable<T>} */ (val) => val != null);\n}\n","import { HttpError, SvelteKitError } from '@sveltejs/kit/internal';\n\n/**\n * @param {unknown} err\n * @return {Error}\n */\nexport function coalesce_to_error(err) {\n\treturn err instanceof Error ||\n\t\t(err && /** @type {any} */ (err).name && /** @type {any} */ (err).message)\n\t\t? /** @type {Error} */ (err)\n\t\t: new Error(JSON.stringify(err));\n}\n\n/**\n * This is an identity function that exists to make TypeScript less\n * paranoid about people throwing things that aren't errors, which\n * frankly is not something we should care about\n * @param {unknown} error\n */\nexport function normalize_error(error) {\n\treturn /** @type {import('../exports/internal/index.js').Redirect | HttpError | SvelteKitError | Error} */ (\n\t\terror\n\t);\n}\n\n/**\n * @param {unknown} error\n */\nexport function get_status(error) {\n\treturn error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;\n}\n\n/**\n * @param {unknown} error\n */\nexport function get_message(error) {\n\treturn error instanceof SvelteKitError ? error.text : 'Internal Error';\n}\n","import { onMount } from 'svelte';\nimport { updated_listener } from './utils.js';\n\n/** @type {import('@sveltejs/kit').Page} */\nexport let page;\n\n/** @type {{ current: import('@sveltejs/kit').Navigation | null }} */\nexport let navigating;\n\n/** @type {{ current: boolean }} */\nexport let updated;\n\n// this is a bootleg way to tell if we're in old svelte or new svelte\nconst is_legacy =\n\tonMount.toString().includes('$$') || /function \\w+\\(\\) \\{\\}/.test(onMount.toString());\n\nif (is_legacy) {\n\tpage = {\n\t\tdata: {},\n\t\tform: null,\n\t\terror: null,\n\t\tparams: {},\n\t\troute: { id: null },\n\t\tstate: {},\n\t\tstatus: -1,\n\t\turl: new URL('https://example.com')\n\t};\n\tnavigating = { current: null };\n\tupdated = { current: false };\n} else {\n\tpage = new (class Page {\n\t\tdata = $state.raw({});\n\t\tform = $state.raw(null);\n\t\terror = $state.raw(null);\n\t\tparams = $state.raw({});\n\t\troute = $state.raw({ id: null });\n\t\tstate = $state.raw({});\n\t\tstatus = $state.raw(-1);\n\t\turl = $state.raw(new URL('https://example.com'));\n\t})();\n\n\tnavigating = new (class Navigating {\n\t\tcurrent = $state.raw(null);\n\t})();\n\n\tupdated = new (class Updated {\n\t\tcurrent = $state.raw(false);\n\t})();\n\tupdated_listener.v = () => (updated.current = true);\n}\n\n/**\n * @param {import('@sveltejs/kit').Page} new_page\n */\nexport function update(new_page) {\n\tObject.assign(page, new_page);\n}\n","/** @import { Tracer, Span, SpanContext } from '@opentelemetry/api' */\n\n/**\n * Tracer implementation that does nothing (null object).\n * @type {Tracer}\n */\nexport const noop_tracer = {\n\t/**\n\t * @returns {Span}\n\t */\n\tstartSpan() {\n\t\treturn noop_span;\n\t},\n\n\t/**\n\t * @param {unknown} _name\n\t * @param {unknown} arg_1\n\t * @param {unknown} [arg_2]\n\t * @param {Function} [arg_3]\n\t * @returns {unknown}\n\t */\n\tstartActiveSpan(_name, arg_1, arg_2, arg_3) {\n\t\tif (typeof arg_1 === 'function') {\n\t\t\treturn arg_1(noop_span);\n\t\t}\n\t\tif (typeof arg_2 === 'function') {\n\t\t\treturn arg_2(noop_span);\n\t\t}\n\t\tif (typeof arg_3 === 'function') {\n\t\t\treturn arg_3(noop_span);\n\t\t}\n\t}\n};\n\n/**\n * @type {Span}\n */\nexport const noop_span = {\n\tspanContext() {\n\t\treturn noop_span_context;\n\t},\n\tsetAttribute() {\n\t\treturn this;\n\t},\n\tsetAttributes() {\n\t\treturn this;\n\t},\n\taddEvent() {\n\t\treturn this;\n\t},\n\tsetStatus() {\n\t\treturn this;\n\t},\n\tupdateName() {\n\t\treturn this;\n\t},\n\tend() {\n\t\treturn this;\n\t},\n\tisRecording() {\n\t\treturn false;\n\t},\n\trecordException() {\n\t\treturn this;\n\t},\n\taddLink() {\n\t\treturn this;\n\t},\n\taddLinks() {\n\t\treturn this;\n\t}\n};\n\n/**\n * @type {SpanContext}\n */\nconst noop_span_context = {\n\ttraceId: '',\n\tspanId: '',\n\ttraceFlags: 0\n};\n","import { BROWSER, DEV } from 'esm-env';\nimport * as svelte from 'svelte';\nimport { HttpError, Redirect, SvelteKitError } from '@sveltejs/kit/internal';\nconst { onMount, tick } = svelte;\n// Svelte 4 and under don't have `untrack`, so we have to fallback if `untrack` is not exported\nconst untrack = svelte.untrack ?? ((value) => value());\nimport {\n\tdecode_params,\n\tdecode_pathname,\n\tstrip_hash,\n\tmake_trackable,\n\tnormalize_path\n} from '../../utils/url.js';\nimport { dev_fetch, initial_fetch, lock_fetch, subsequent_fetch, unlock_fetch } from './fetcher.js';\nimport { parse, parse_server_route } from './parse.js';\nimport * as storage from './session-storage.js';\nimport {\n\tfind_anchor,\n\tresolve_url,\n\tget_link_info,\n\tget_router_options,\n\tis_external_url,\n\torigin,\n\tscroll_state,\n\tnotifiable_store,\n\tcreate_updated_store,\n\tload_css\n} from './utils.js';\nimport { base } from '$app/paths';\nimport * as devalue from 'devalue';\nimport {\n\tHISTORY_INDEX,\n\tNAVIGATION_INDEX,\n\tPRELOAD_PRIORITIES,\n\tSCROLL_KEY,\n\tSTATES_KEY,\n\tSNAPSHOT_KEY,\n\tPAGE_URL_KEY\n} from './constants.js';\nimport { validate_page_exports } from '../../utils/exports.js';\nimport { compact } from '../../utils/array.js';\nimport {\n\tINVALIDATED_PARAM,\n\tTRAILING_SLASH_PARAM,\n\tvalidate_depends,\n\tvalidate_load_response\n} from '../shared.js';\nimport { get_message, get_status } from '../../utils/error.js';\nimport { writable } from 'svelte/store';\nimport { page, update, navigating } from './state.svelte.js';\nimport { add_data_suffix, add_resolution_suffix } from '../pathname.js';\nimport { noop_span } from '../telemetry/noop.js';\nimport { text_decoder } from '../utils.js';\n\nexport { load_css };\nconst ICON_REL_ATTRIBUTES = new Set(['icon', 'shortcut icon', 'apple-touch-icon']);\n\nlet errored = false;\n\n// We track the scroll position associated with each history entry in sessionStorage,\n// rather than on history.state itself, because when navigation is driven by\n// popstate it's too late to update the scroll position associated with the\n// state we're navigating from\n/**\n * history index -> { x, y }\n * @type {Record<number, { x: number; y: number }>}\n */\nconst scroll_positions = storage.get(SCROLL_KEY) ?? {};\n\n/**\n * navigation index -> any\n * @type {Record<string, any[]>}\n */\nconst snapshots = storage.get(SNAPSHOT_KEY) ?? {};\n\nif (DEV && BROWSER) {\n\tlet warned = false;\n\n\tconst current_module_url = import.meta.url.split('?')[0]; // remove query params that vite adds to the URL when it is loaded from node_modules\n\n\tconst warn = () => {\n\t\tif (warned) return;\n\n\t\t// Rather than saving a pointer to the original history methods, which would prevent monkeypatching by other libs,\n\t\t// inspect the stack trace to see if we're being called from within SvelteKit.\n\t\tlet stack = new Error().stack?.split('\\n');\n\t\tif (!stack) return;\n\t\tif (!stack[0].includes('https:') && !stack[0].includes('http:')) stack = stack.slice(1); // Chrome includes the error message in the stack\n\t\tstack = stack.slice(2); // remove `warn` and the place where `warn` was called\n\t\t// Can be falsy if was called directly from an anonymous function\n\t\tif (stack[0]?.includes(current_module_url)) return;\n\n\t\twarned = true;\n\n\t\tconsole.warn(\n\t\t\t\"Avoid using `history.pushState(...)` and `history.replaceState(...)` as these will conflict with SvelteKit's router. Use the `pushState` and `replaceState` imports from `$app/navigation` instead.\"\n\t\t);\n\t};\n\n\tconst push_state = history.pushState;\n\thistory.pushState = (...args) => {\n\t\twarn();\n\t\treturn push_state.apply(history, args);\n\t};\n\n\tconst replace_state = history.replaceState;\n\thistory.replaceState = (...args) => {\n\t\twarn();\n\t\treturn replace_state.apply(history, args);\n\t};\n}\n\nexport const stores = {\n\turl: /* @__PURE__ */ notifiable_store({}),\n\tpage: /* @__PURE__ */ notifiable_store({}),\n\tnavigating: /* @__PURE__ */ writable(\n\t\t/** @type {import('@sveltejs/kit').Navigation | null} */ (null)\n\t),\n\tupdated: /* @__PURE__ */ create_updated_store()\n};\n\n/** @param {number} index */\nfunction update_scroll_positions(index) {\n\tscroll_positions[index] = scroll_state();\n}\n\n/**\n * @param {number} current_history_index\n * @param {number} current_navigation_index\n */\nfunction clear_onward_history(current_history_index, current_navigation_index) {\n\t// if we navigated back, then pushed a new state, we can\n\t// release memory by pruning the scroll/snapshot lookup\n\tlet i = current_history_index + 1;\n\twhile (scroll_positions[i]) {\n\t\tdelete scroll_positions[i];\n\t\ti += 1;\n\t}\n\n\ti = current_navigation_index + 1;\n\twhile (snapshots[i]) {\n\t\tdelete snapshots[i];\n\t\ti += 1;\n\t}\n}\n\n/**\n * Loads `href` the old-fashioned way, with a full page reload.\n * Returns a `Promise` that never resolves (to prevent any\n * subsequent work, e.g. history manipulation, from happening)\n * @param {URL} url\n * @param {boolean} [replace] If `true`, will replace the current `history` entry rather than creating a new one with `pushState`\n */\nfunction native_navigation(url, replace = false) {\n\tif (replace) {\n\t\tlocation.replace(url.href);\n\t} else {\n\t\tlocation.href = url.href;\n\t}\n\treturn new Promise(() => {});\n}\n\n/**\n * Checks whether a service worker is registered, and if it is,\n * tries to update it.\n */\nasync function update_service_worker() {\n\tif ('serviceWorker' in navigator) {\n\t\tconst registration = await navigator.serviceWorker.getRegistration(base || '/');\n\t\tif (registration) {\n\t\t\tawait registration.update();\n\t\t}\n\t}\n}\n\nfunction noop() {}\n\n/** @type {import('types').CSRRoute[]} All routes of the app. Only available when kit.router.resolution=client */\nlet routes;\n/** @type {import('types').CSRPageNodeLoader} */\nlet default_layout_loader;\n/** @type {import('types').CSRPageNodeLoader} */\nlet default_error_loader;\n/** @type {HTMLElement} */\nlet container;\n/** @type {HTMLElement} */\nlet target;\n\n/** @type {import('./types.js').SvelteKitApp} */\nexport let app;\n\n/**\n * Data that was serialized during SSR. This is cleared when the user first navigates\n * @type {Record<string, any>}\n */\nexport let remote_responses = {};\n\n/** @type {Array<((url: URL) => boolean)>} */\nconst invalidated = [];\n\n/**\n * An array of the `+layout.svelte` and `+page.svelte` component instances\n * that currently live on the page — used for capturing and restoring snapshots.\n * It's updated/manipulated through `bind:this` in `Root.svelte`.\n * @type {import('svelte').SvelteComponent[]}\n */\nconst components = [];\n\n/** @type {{id: string, token: {}, promise: Promise<import('./types.js').NavigationResult>, fork: Promise<import('svelte').Fork | null> | null} | null} */\nlet load_cache = null;\n\nfunction discard_load_cache() {\n\tvoid load_cache?.fork?.then((f) => f?.discard());\n\tload_cache = null;\n}\n\n/**\n * @type {Map<string, Promise<URL>>}\n * Cache for client-side rerouting, since it could contain async calls which we want to\n * avoid running multiple times which would slow down navigations (e.g. else preloading\n * wouldn't help because on navigation it would be called again). Since `reroute` should be\n * a pure function (i.e. always return the same) value it's safe to cache across navigations.\n * The server reroute calls don't need to be cached because they are called using `import(...)`\n * which is cached per the JS spec.\n */\nconst reroute_cache = new Map();\n\n/**\n * Note on before_navigate_callbacks, on_navigate_callbacks and after_navigate_callbacks:\n * do not re-assign as some closures keep references to these Sets\n */\n/** @type {Set<(navigation: import('@sveltejs/kit').BeforeNavigate) => void>} */\nconst before_navigate_callbacks = new Set();\n\n/** @type {Set<(navigation: import('@sveltejs/kit').OnNavigate) => import('types').MaybePromise<(() => void) | void>>} */\nconst on_navigate_callbacks = new Set();\n\n/** @type {Set<(navigation: import('@sveltejs/kit').AfterNavigate) => void>} */\nconst after_navigate_callbacks = new Set();\n\n/** @type {import('./types.js').NavigationState} */\nlet current = {\n\tbranch: [],\n\terror: null,\n\t// @ts-ignore - we need the initial value to be null\n\turl: null\n};\n\n/** this being true means we SSR'd */\nlet hydrated = false;\nlet started = false;\nlet autoscroll = true;\nlet updating = false;\nlet is_navigating = false;\nlet hash_navigating = false;\n/** True as soon as there happened one client-side navigation (excluding the SvelteKit-initialized initial one when in SPA mode) */\nlet has_navigated = false;\n\nlet force_invalidation = false;\n\n/** @type {import('svelte').SvelteComponent} */\nlet root;\n\n/** @type {number} keeping track of the history index in order to prevent popstate navigation events if needed */\nlet current_history_index;\n\n/** @type {number} */\nlet current_navigation_index;\n\n/** @type {{}} */\nlet token;\n\n/**\n * A set of tokens which are associated to current preloads.\n * If a preload becomes a real navigation, it's removed from the set.\n * If a preload token is in the set and the preload errors, the error\n * handling logic (for example reloading) is skipped.\n */\nconst preload_tokens = new Set();\n\n/** @type {Promise<void> | null} */\nexport let pending_invalidate;\n\n/**\n * @type {Map<string, {count: number, resource: any}>}\n * A map of id -> query info with all queries that currently exist in the app.\n */\nexport const query_map = new Map();\n\n/**\n * @param {import('./types.js').SvelteKitApp} _app\n * @param {HTMLElement} _target\n * @param {Parameters<typeof _hydrate>[1]} [hydrate]\n */\nexport async function start(_app, _target, hydrate) {\n\tif (DEV && _target === document.body) {\n\t\tconsole.warn(\n\t\t\t'Placing %sveltekit.body% directly inside <body> is not recommended, as your app may break for users who have certain browser extensions installed.\\n\\nConsider wrapping it in an element:\\n\\n<div style=\"display: contents\">\\n %sveltekit.body%\\n</div>'\n\t\t);\n\t}\n\n\tif (__SVELTEKIT_PAYLOAD__?.data) {\n\t\tremote_responses = __SVELTEKIT_PAYLOAD__.data;\n\t}\n\n\t// detect basic auth credentials in the current URL\n\t// https://github.com/sveltejs/kit/pull/11179\n\t// if so, refresh the page without credentials\n\tif (document.URL !== location.href) {\n\t\t// eslint-disable-next-line no-self-assign\n\t\tlocation.href = location.href;\n\t}\n\n\tapp = _app;\n\n\tawait _app.hooks.init?.();\n\n\troutes = __SVELTEKIT_CLIENT_ROUTING__ ? parse(_app) : [];\n\tcontainer = __SVELTEKIT_EMBEDDED__ ? _target : document.documentElement;\n\ttarget = _target;\n\n\t// we import the root layout/error nodes eagerly, so that\n\t// connectivity errors after initialisation don't nuke the app\n\tdefault_layout_loader = _app.nodes[0];\n\tdefault_error_loader = _app.nodes[1];\n\tvoid default_layout_loader();\n\tvoid default_error_loader();\n\n\tcurrent_history_index = history.state?.[HISTORY_INDEX];\n\tcurrent_navigation_index = history.state?.[NAVIGATION_INDEX];\n\n\tif (!current_history_index) {\n\t\t// we use Date.now() as an offset so that cross-document navigations\n\t\t// within the app don't result in data loss\n\t\tcurrent_history_index = current_navigation_index = Date.now();\n\n\t\t// create initial history entry, so we can return here\n\t\thistory.replaceState(\n\t\t\t{\n\t\t\t\t...history.state,\n\t\t\t\t[HISTORY_INDEX]: current_history_index,\n\t\t\t\t[NAVIGATION_INDEX]: current_navigation_index\n\t\t\t},\n\t\t\t''\n\t\t);\n\t}\n\n\t// if we reload the page, or Cmd-Shift-T back to it,\n\t// recover scroll position\n\tconst scroll = scroll_positions[current_history_index];\n\tfunction restore_scroll() {\n\t\tif (scroll) {\n\t\t\thistory.scrollRestoration = 'manual';\n\t\t\tscrollTo(scroll.x, scroll.y);\n\t\t}\n\t}\n\n\tif (hydrate) {\n\t\trestore_scroll();\n\n\t\tawait _hydrate(target, hydrate);\n\t} else {\n\t\tawait navigate({\n\t\t\ttype: 'enter',\n\t\t\turl: resolve_url(app.hash ? decode_hash(new URL(location.href)) : location.href),\n\t\t\treplace_state: true\n\t\t});\n\n\t\trestore_scroll();\n\t}\n\n\t_start_router();\n}\n\nasync function _invalidate(include_load_functions = true, reset_page_state = true) {\n\t// Accept all invalidations as they come, don't swallow any while another invalidation\n\t// is running because subsequent invalidations may make earlier ones outdated,\n\t// but batch multiple synchronous invalidations.\n\tawait (pending_invalidate ||= Promise.resolve());\n\tif (!pending_invalidate) return;\n\tpending_invalidate = null;\n\n\tconst nav_token = (token = {});\n\tconst intent = await get_navigation_intent(current.url, true);\n\n\t// Clear preload, it might be affected by the invalidation.\n\t// Also solves an edge case where a preload is triggered, the navigation for it\n\t// was then triggered and is still running while the invalidation kicks in,\n\t// at which point the invalidation should take over and \"win\".\n\tdiscard_load_cache();\n\n\t// Rerun queries\n\tif (force_invalidation) {\n\t\tquery_map.forEach(({ resource }) => {\n\t\t\tresource.refresh?.();\n\t\t});\n\t}\n\n\tif (include_load_functions) {\n\t\tconst prev_state = page.state;\n\t\tconst navigation_result = intent && (await load_route(intent));\n\t\tif (!navigation_result || nav_token !== token) return;\n\n\t\tif (navigation_result.type === 'redirect') {\n\t\t\treturn _goto(\n\t\t\t\tnew URL(navigation_result.location, current.url).href,\n\t\t\t\t{ replaceState: true },\n\t\t\t\t1,\n\t\t\t\tnav_token\n\t\t\t);\n\t\t}\n\n\t\t// This is a bit hacky but allows us not having to pass that boolean around, making things harder to reason about\n\t\tif (!reset_page_state) {\n\t\t\tnavigation_result.props.page.state = prev_state;\n\t\t}\n\t\tupdate(navigation_result.props.page);\n\t\tcurrent = navigation_result.state;\n\t\treset_invalidation();\n\t\troot.$set(navigation_result.props);\n\t} else {\n\t\treset_invalidation();\n\t}\n\n\t// Don't use allSettled yet because it's too new\n\tawait Promise.all([...query_map.values()].map(({ resource }) => resource)).catch(noop);\n}\n\nfunction reset_invalidation() {\n\tinvalidated.length = 0;\n\tforce_invalidation = false;\n}\n\n/** @param {number} index */\nfunction capture_snapshot(index) {\n\tif (components.some((c) => c?.snapshot)) {\n\t\tsnapshots[index] = components.map((c) => c?.snapshot?.capture());\n\t}\n}\n\n/** @param {number} index */\nfunction restore_snapshot(index) {\n\tsnapshots[index]?.forEach((value, i) => {\n\t\tcomponents[i]?.snapshot?.restore(value);\n\t});\n}\n\nfunction persist_state() {\n\tupdate_scroll_positions(current_history_index);\n\tstorage.set(SCROLL_KEY, scroll_positions);\n\n\tcapture_snapshot(current_navigation_index);\n\tstorage.set(SNAPSHOT_KEY, snapshots);\n}\n\n/**\n * @param {string | URL} url\n * @param {{ replaceState?: boolean; noScroll?: boolean; keepFocus?: boolean; invalidateAll?: boolean; invalidate?: Array<string | URL | ((url: URL) => boolean)>; state?: Record<string, any> }} options\n * @param {number} redirect_count\n * @param {{}} [nav_token]\n */\nexport async function _goto(url, options, redirect_count, nav_token) {\n\t/** @type {string[]} */\n\tlet query_keys;\n\n\t// Clear preload cache when invalidateAll is true to ensure fresh data\n\t// after form submissions or explicit invalidations\n\tif (options.invalidateAll) {\n\t\tdiscard_load_cache();\n\t}\n\n\tawait navigate({\n\t\ttype: 'goto',\n\t\turl: resolve_url(url),\n\t\tkeepfocus: options.keepFocus,\n\t\tnoscroll: options.noScroll,\n\t\treplace_state: options.replaceState,\n\t\tstate: options.state,\n\t\tredirect_count,\n\t\tnav_token,\n\t\taccept: () => {\n\t\t\tif (options.invalidateAll) {\n\t\t\t\tforce_invalidation = true;\n\t\t\t\tquery_keys = [...query_map.keys()];\n\t\t\t}\n\n\t\t\tif (options.invalidate) {\n\t\t\t\toptions.invalidate.forEach(push_invalidated);\n\t\t\t}\n\t\t}\n\t});\n\n\tif (options.invalidateAll) {\n\t\t// TODO the ticks shouldn't be necessary, something inside Svelte itself is buggy\n\t\t// when a query in a layout that still exists after page change is refreshed earlier than this\n\t\tvoid svelte\n\t\t\t.tick()\n\t\t\t.then(svelte.tick)\n\t\t\t.then(() => {\n\t\t\t\tquery_map.forEach(({ resource }, key) => {\n\t\t\t\t\t// Only refresh those that already existed on the old page\n\t\t\t\t\tif (query_keys?.includes(key)) {\n\t\t\t\t\t\tresource.refresh?.();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t}\n}\n\n/** @param {import('./types.js').NavigationIntent} intent */\nasync function _preload_data(intent) {\n\t// Reuse the existing pending preload if it's for the same navigation.\n\t// Prevents an edge case where same preload is triggered multiple times,\n\t// then a later one is becoming the real navigation and the preload tokens\n\t// get out of sync.\n\tif (intent.id !== load_cache?.id) {\n\t\tdiscard_load_cache();\n\n\t\tconst preload = {};\n\t\tpreload_tokens.add(preload);\n\t\tload_cache = {\n\t\t\tid: intent.id,\n\t\t\ttoken: preload,\n\t\t\tpromise: load_route({ ...intent, preload }).then((result) => {\n\t\t\t\tpreload_tokens.delete(preload);\n\t\t\t\tif (result.type === 'loaded' && result.state.error) {\n\t\t\t\t\t// Don't cache errors, because they might be transient\n\t\t\t\t\tdiscard_load_cache();\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}),\n\t\t\tfork: null\n\t\t};\n\n\t\tif (svelte.fork) {\n\t\t\tconst lc = load_cache;\n\n\t\t\tlc.fork = lc.promise.then((result) => {\n\t\t\t\t// if load_cache was discarded before load_cache.promise could\n\t\t\t\t// resolve, bail rather than creating an orphan fork\n\t\t\t\tif (lc === load_cache && result.type === 'loaded') {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn svelte.fork(() => {\n\t\t\t\t\t\t\troot.$set(result.props);\n\t\t\t\t\t\t\tupdate(result.props.page);\n\t\t\t\t\t\t});\n\t\t\t\t\t} catch {\n\t\t\t\t\t\t// if it errors, it's because the experimental flag isn't enabled\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\t\t\t});\n\t\t}\n\t}\n\n\treturn load_cache.promise;\n}\n\n/**\n * @param {URL} url\n * @returns {Promise<void>}\n */\nasync function _preload_code(url) {\n\tconst route = (await get_navigation_intent(url, false))?.route;\n\n\tif (route) {\n\t\tawait Promise.all([...route.layouts, route.leaf].map((load) => load?.[1]()));\n\t}\n}\n\n/**\n * @param {import('./types.js').NavigationFinished} result\n * @param {HTMLElement} target\n * @param {boolean} hydrate\n */\nasync function initialize(result, target, hydrate) {\n\tif (DEV && result.state.error && document.querySelector('vite-error-overlay')) return;\n\n\tcurrent = result.state;\n\n\tconst style = document.querySelector('style[data-sveltekit]');\n\tif (style) style.remove();\n\n\tObject.assign(page, /** @type {import('@sveltejs/kit').Page} */ (result.props.page));\n\n\troot = new app.root({\n\t\ttarget,\n\t\tprops: { ...result.props, stores, components },\n\t\thydrate,\n\t\t// @ts-ignore Svelte 5 specific: asynchronously instantiate the component, i.e. don't call flushSync\n\t\tsync: false\n\t});\n\n\t// Wait for a microtask in case svelte experimental async is enabled,\n\t// which causes component script blocks to run asynchronously\n\tvoid (await Promise.resolve());\n\n\trestore_snapshot(current_navigation_index);\n\n\tif (hydrate) {\n\t\t/** @type {import('@sveltejs/kit').AfterNavigate} */\n\t\tconst navigation = {\n\t\t\tfrom: null,\n\t\t\tto: {\n\t\t\t\tparams: current.params,\n\t\t\t\troute: { id: current.route?.id ?? null },\n\t\t\t\turl: new URL(location.href)\n\t\t\t},\n\t\t\twillUnload: false,\n\t\t\ttype: 'enter',\n\t\t\tcomplete: Promise.resolve()\n\t\t};\n\n\t\tafter_navigate_callbacks.forEach((fn) => fn(navigation));\n\t}\n\n\tstarted = true;\n}\n\n/**\n *\n * @param {{\n * url: URL;\n * params: Record<string, string>;\n * branch: Array<import('./types.js').BranchNode | undefined>;\n * status: number;\n * error: App.Error | null;\n * route: import('types').CSRRoute | null;\n * form?: Record<string, any> | null;\n * }} opts\n */\nfunction get_navigation_result_from_branch({ url, params, branch, status, error, route, form }) {\n\t/** @type {import('types').TrailingSlash} */\n\tlet slash = 'never';\n\n\t// if `paths.base === '/a/b/c`, then the root route is always `/a/b/c/`, regardless of\n\t// the `trailingSlash` route option, so that relative paths to JS and CSS work\n\tif (base && (url.pathname === base || url.pathname === base + '/')) {\n\t\tslash = 'always';\n\t} else {\n\t\tfor (const node of branch) {\n\t\t\tif (node?.slash !== undefined) slash = node.slash;\n\t\t}\n\t}\n\n\turl.pathname = normalize_path(url.pathname, slash);\n\t// eslint-disable-next-line no-self-assign\n\turl.search = url.search; // turn `/?` into `/`\n\n\t/** @type {import('./types.js').NavigationFinished} */\n\tconst result = {\n\t\ttype: 'loaded',\n\t\tstate: {\n\t\t\turl,\n\t\t\tparams,\n\t\t\tbranch,\n\t\t\terror,\n\t\t\troute\n\t\t},\n\t\tprops: {\n\t\t\t// @ts-ignore Somehow it's getting SvelteComponent and SvelteComponentDev mixed up\n\t\t\tconstructors: compact(branch).map((branch_node) => branch_node.node.component),\n\t\t\tpage: clone_page(page)\n\t\t}\n\t};\n\n\tif (form !== undefined) {\n\t\tresult.props.form = form;\n\t}\n\n\tlet data = {};\n\tlet data_changed = !page;\n\n\tlet p = 0;\n\n\tfor (let i = 0; i < Math.max(branch.length, current.branch.length); i += 1) {\n\t\tconst node = branch[i];\n\t\tconst prev = current.branch[i];\n\n\t\tif (node?.data !== prev?.data) data_changed = true;\n\t\tif (!node) continue;\n\n\t\tdata = { ...data, ...node.data };\n\n\t\t// Only set props if the node actually updated. This prevents needless rerenders.\n\t\tif (data_changed) {\n\t\t\tresult.props[`data_${p}`] = data;\n\t\t}\n\n\t\tp += 1;\n\t}\n\n\tconst page_changed =\n\t\t!current.url ||\n\t\turl.href !== current.url.href ||\n\t\tcurrent.error !== error ||\n\t\t(form !== undefined && form !== page.form) ||\n\t\tdata_changed;\n\n\tif (page_changed) {\n\t\tresult.props.page = {\n\t\t\terror,\n\t\t\tparams,\n\t\t\troute: {\n\t\t\t\tid: route?.id ?? null\n\t\t\t},\n\t\t\tstate: {},\n\t\t\tstatus,\n\t\t\turl: new URL(url),\n\t\t\tform: form ?? null,\n\t\t\t// The whole page store is updated, but this way the object reference stays the same\n\t\t\tdata: data_changed ? data : page.data\n\t\t};\n\t}\n\n\treturn result;\n}\n\n/**\n * Call the universal load function of the given node, if it exists.\n *\n * @param {{\n * loader: import('types').CSRPageNodeLoader;\n * \t parent: () => Promise<Record<string, any>>;\n * url: URL;\n * params: Record<string, string>;\n * route: { id: string | null };\n * \t server_data_node: import('./types.js').DataNode | null;\n * }} options\n * @returns {Promise<import('./types.js').BranchNode>}\n */\nasync function load_node({ loader, parent, url, params, route, server_data_node }) {\n\t/** @type {Record<string, any> | null} */\n\tlet data = null;\n\n\tlet is_tracking = true;\n\n\t/** @type {import('types').Uses} */\n\tconst uses = {\n\t\tdependencies: new Set(),\n\t\tparams: new Set(),\n\t\tparent: false,\n\t\troute: false,\n\t\turl: false,\n\t\tsearch_params: new Set()\n\t};\n\n\tconst node = await loader();\n\n\tif (DEV) {\n\t\tvalidate_page_exports(node.universal);\n\n\t\tif (node.universal && app.hash) {\n\t\t\tconst options = Object.keys(node.universal).filter((o) => o !== 'load');\n\n\t\t\tif (options.length > 0) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`Page options are ignored when \\`router.type === 'hash'\\` (${route.id} has ${options\n\t\t\t\t\t\t.filter((o) => o !== 'load')\n\t\t\t\t\t\t.map((o) => `'${o}'`)\n\t\t\t\t\t\t.join(', ')})`\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (__SVELTEKIT_HAS_UNIVERSAL_LOAD__ && node.universal?.load) {\n\t\t/** @param {string[]} deps */\n\t\tfunction depends(...deps) {\n\t\t\tfor (const dep of deps) {\n\t\t\t\tif (DEV) validate_depends(/** @type {string} */ (route.id), dep);\n\n\t\t\t\tconst { href } = new URL(dep, url);\n\t\t\t\tuses.dependencies.add(href);\n\t\t\t}\n\t\t}\n\n\t\t/** @type {import('@sveltejs/kit').LoadEvent} */\n\t\tconst load_input = {\n\t\t\ttracing: { enabled: false, root: noop_span, current: noop_span },\n\t\t\troute: new Proxy(route, {\n\t\t\t\tget: (target, key) => {\n\t\t\t\t\tif (is_tracking) {\n\t\t\t\t\t\tuses.route = true;\n\t\t\t\t\t}\n\t\t\t\t\treturn target[/** @type {'id'} */ (key)];\n\t\t\t\t}\n\t\t\t}),\n\t\t\tparams: new Proxy(params, {\n\t\t\t\tget: (target, key) => {\n\t\t\t\t\tif (is_tracking) {\n\t\t\t\t\t\tuses.params.add(/** @type {string} */ (key));\n\t\t\t\t\t}\n\t\t\t\t\treturn target[/** @type {string} */ (key)];\n\t\t\t\t}\n\t\t\t}),\n\t\t\tdata: server_data_node?.data ?? null,\n\t\t\turl: make_trackable(\n\t\t\t\turl,\n\t\t\t\t() => {\n\t\t\t\t\tif (is_tracking) {\n\t\t\t\t\t\tuses.url = true;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t(param) => {\n\t\t\t\t\tif (is_tracking) {\n\t\t\t\t\t\tuses.search_params.add(param);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tapp.hash\n\t\t\t),\n\t\t\tasync fetch(resource, init) {\n\t\t\t\tif (resource instanceof Request) {\n\t\t\t\t\t// we're not allowed to modify the received `Request` object, so in order\n\t\t\t\t\t// to fixup relative urls we create a new equivalent `init` object instead\n\t\t\t\t\tinit = {\n\t\t\t\t\t\t// the request body must be consumed in memory until browsers\n\t\t\t\t\t\t// implement streaming request bodies and/or the body getter\n\t\t\t\t\t\tbody:\n\t\t\t\t\t\t\tresource.method === 'GET' || resource.method === 'HEAD'\n\t\t\t\t\t\t\t\t? undefined\n\t\t\t\t\t\t\t\t: await resource.blob(),\n\t\t\t\t\t\tcache: resource.cache,\n\t\t\t\t\t\tcredentials: resource.credentials,\n\t\t\t\t\t\t// the server sets headers to `undefined` if there are no headers but\n\t\t\t\t\t\t// the client defaults to an empty Headers object in the Request object.\n\t\t\t\t\t\t// To keep the two values in sync, we explicitly set the headers to `undefined`.\n\t\t\t\t\t\t// Also, not sure why, but sometimes 0 is evaluated as truthy so we need to\n\t\t\t\t\t\t// explicitly compare the headers length to a number here\n\t\t\t\t\t\theaders: [...resource.headers].length > 0 ? resource?.headers : undefined,\n\t\t\t\t\t\tintegrity: resource.integrity,\n\t\t\t\t\t\tkeepalive: resource.keepalive,\n\t\t\t\t\t\tmethod: resource.method,\n\t\t\t\t\t\tmode: resource.mode,\n\t\t\t\t\t\tredirect: resource.redirect,\n\t\t\t\t\t\treferrer: resource.referrer,\n\t\t\t\t\t\treferrerPolicy: resource.referrerPolicy,\n\t\t\t\t\t\tsignal: resource.signal,\n\t\t\t\t\t\t...init\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tconst { resolved, promise } = resolve_fetch_url(resource, init, url);\n\n\t\t\t\tif (is_tracking) {\n\t\t\t\t\tdepends(resolved.href);\n\t\t\t\t}\n\n\t\t\t\treturn promise;\n\t\t\t},\n\t\t\tsetHeaders: () => {}, // noop\n\t\t\tdepends,\n\t\t\tparent() {\n\t\t\t\tif (is_tracking) {\n\t\t\t\t\tuses.parent = true;\n\t\t\t\t}\n\t\t\t\treturn parent();\n\t\t\t},\n\t\t\tuntrack(fn) {\n\t\t\t\tis_tracking = false;\n\t\t\t\ttry {\n\t\t\t\t\treturn fn();\n\t\t\t\t} finally {\n\t\t\t\t\tis_tracking = true;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tif (DEV) {\n\t\t\ttry {\n\t\t\t\tlock_fetch();\n\t\t\t\tdata = (await node.universal.load.call(null, load_input)) ?? null;\n\t\t\t\tvalidate_load_response(data, `related to route '${route.id}'`);\n\t\t\t} finally {\n\t\t\t\tunlock_fetch();\n\t\t\t}\n\t\t} else {\n\t\t\tdata = (await node.universal.load.call(null, load_input)) ?? null;\n\t\t}\n\t}\n\n\treturn {\n\t\tnode,\n\t\tloader,\n\t\tserver: server_data_node,\n\t\tuniversal: node.universal?.load ? { type: 'data', data, uses } : null,\n\t\tdata: data ?? server_data_node?.data ?? null,\n\t\tslash: node.universal?.trailingSlash ?? server_data_node?.slash\n\t};\n}\n\n/**\n * @param {Request | string | URL} input\n * @param {RequestInit | undefined} init\n * @param {URL} url\n */\nfunction resolve_fetch_url(input, init, url) {\n\tlet requested = input instanceof Request ? input.url : input;\n\n\t// we must fixup relative urls so they are resolved from the target page\n\tconst resolved = new URL(requested, url);\n\n\t// match ssr serialized data url, which is important to find cached responses\n\tif (resolved.origin === url.origin) {\n\t\trequested = resolved.href.slice(url.origin.length);\n\t}\n\n\t// prerendered pages may be served from any origin, so `initial_fetch` urls shouldn't be resolved\n\tconst promise = started\n\t\t? subsequent_fetch(requested, resolved.href, init)\n\t\t: initial_fetch(requested, init);\n\n\treturn { resolved, promise };\n}\n\n/**\n * @param {boolean} parent_changed\n * @param {boolean} route_changed\n * @param {boolean} url_changed\n * @param {Set<string>} search_params_changed\n * @param {import('types').Uses | undefined} uses\n * @param {Record<string, string>} params\n */\nfunction has_changed(\n\tparent_changed,\n\troute_changed,\n\turl_changed,\n\tsearch_params_changed,\n\tuses,\n\tparams\n) {\n\tif (force_invalidation) return true;\n\n\tif (!uses) return false;\n\n\tif (uses.parent && parent_changed) return true;\n\tif (uses.route && route_changed) return true;\n\tif (uses.url && url_changed) return true;\n\n\tfor (const tracked_params of uses.search_params) {\n\t\tif (search_params_changed.has(tracked_params)) return true;\n\t}\n\n\tfor (const param of uses.params) {\n\t\tif (params[param] !== current.params[param]) return true;\n\t}\n\n\tfor (const href of uses.dependencies) {\n\t\tif (invalidated.some((fn) => fn(new URL(href)))) return true;\n\t}\n\n\treturn false;\n}\n\n/**\n * @param {import('types').ServerDataNode | import('types').ServerDataSkippedNode | null} node\n * @param {import('./types.js').DataNode | null} [previous]\n * @returns {import('./types.js').DataNode | null}\n */\nfunction create_data_node(node, previous) {\n\tif (node?.type === 'data') return node;\n\tif (node?.type === 'skip') return previous ?? null;\n\treturn null;\n}\n\n/**\n * @param {URL | null} old_url\n * @param {URL} new_url\n */\nfunction diff_search_params(old_url, new_url) {\n\tif (!old_url) return new Set(new_url.searchParams.keys());\n\n\tconst changed = new Set([...old_url.searchParams.keys(), ...new_url.searchParams.keys()]);\n\n\tfor (const key of changed) {\n\t\tconst old_values = old_url.searchParams.getAll(key);\n\t\tconst new_values = new_url.searchParams.getAll(key);\n\n\t\tif (\n\t\t\told_values.every((value) => new_values.includes(value)) &&\n\t\t\tnew_values.every((value) => old_values.includes(value))\n\t\t) {\n\t\t\tchanged.delete(key);\n\t\t}\n\t}\n\n\treturn changed;\n}\n\n/**\n * @param {Omit<import('./types.js').NavigationFinished['state'], 'branch'> & { error: App.Error }} opts\n * @returns {import('./types.js').NavigationFinished}\n */\nfunction preload_error({ error, url, route, params }) {\n\treturn {\n\t\ttype: 'loaded',\n\t\tstate: {\n\t\t\terror,\n\t\t\turl,\n\t\t\troute,\n\t\t\tparams,\n\t\t\tbranch: []\n\t\t},\n\t\tprops: {\n\t\t\tpage: clone_page(page),\n\t\t\tconstructors: []\n\t\t}\n\t};\n}\n\n/**\n * @param {import('./types.js').NavigationIntent & { preload?: {} }} intent\n * @returns {Promise<import('./types.js').NavigationResult>}\n */\nasync function load_route({ id, invalidating, url, params, route, preload }) {\n\tif (load_cache?.id === id) {\n\t\t// the preload becomes the real navigation\n\t\tpreload_tokens.delete(load_cache.token);\n\t\treturn load_cache.promise;\n\t}\n\n\tconst { errors, layouts, leaf } = route;\n\n\tconst loaders = [...layouts, leaf];\n\n\t// preload modules to avoid waterfall, but handle rejections\n\t// so they don't get reported to Sentry et al (we don't need\n\t// to act on the failures at this point)\n\terrors.forEach((loader) => loader?.().catch(() => {}));\n\tloaders.forEach((loader) => loader?.[1]().catch(() => {}));\n\n\t/** @type {import('types').ServerNodesResponse | import('types').ServerRedirectNode | null} */\n\tlet server_data = null;\n\tconst url_changed = current.url ? id !== get_page_key(current.url) : false;\n\tconst route_changed = current.route ? route.id !== current.route.id : false;\n\tconst search_params_changed = diff_search_params(current.url, url);\n\n\tlet parent_invalid = false;\n\n\tif (__SVELTEKIT_HAS_SERVER_LOAD__) {\n\t\tconst invalid_server_nodes = loaders.map((loader, i) => {\n\t\t\tconst previous = current.branch[i];\n\n\t\t\tconst invalid =\n\t\t\t\t!!loader?.[0] &&\n\t\t\t\t(previous?.loader !== loader[1] ||\n\t\t\t\t\thas_changed(\n\t\t\t\t\t\tparent_invalid,\n\t\t\t\t\t\troute_changed,\n\t\t\t\t\t\turl_changed,\n\t\t\t\t\t\tsearch_params_changed,\n\t\t\t\t\t\tprevious.server?.uses,\n\t\t\t\t\t\tparams\n\t\t\t\t\t));\n\n\t\t\tif (invalid) {\n\t\t\t\t// For the next one\n\t\t\t\tparent_invalid = true;\n\t\t\t}\n\n\t\t\treturn invalid;\n\t\t});\n\n\t\tif (invalid_server_nodes.some(Boolean)) {\n\t\t\ttry {\n\t\t\t\tserver_data = await load_data(url, invalid_server_nodes);\n\t\t\t} catch (error) {\n\t\t\t\tconst handled_error = await handle_error(error, { url, params, route: { id } });\n\n\t\t\t\tif (preload_tokens.has(preload)) {\n\t\t\t\t\treturn preload_error({ error: handled_error, url, params, route });\n\t\t\t\t}\n\n\t\t\t\treturn load_root_error_page({\n\t\t\t\t\tstatus: get_status(error),\n\t\t\t\t\terror: handled_error,\n\t\t\t\t\turl,\n\t\t\t\t\troute\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (server_data.type === 'redirect') {\n\t\t\t\treturn server_data;\n\t\t\t}\n\t\t}\n\t}\n\n\tconst server_data_nodes = server_data?.nodes;\n\n\tlet parent_changed = false;\n\n\tconst branch_promises = loaders.map(async (loader, i) => {\n\t\tif (!loader) return;\n\n\t\t/** @type {import('./types.js').BranchNode | undefined} */\n\t\tconst previous = current.branch[i];\n\n\t\tconst server_data_node = server_data_nodes?.[i];\n\n\t\t// re-use data from previous load if it's still valid\n\t\tconst valid =\n\t\t\t(!server_data_node || server_data_node.type === 'skip') &&\n\t\t\tloader[1] === previous?.loader &&\n\t\t\t!has_changed(\n\t\t\t\tparent_changed,\n\t\t\t\troute_changed,\n\t\t\t\turl_changed,\n\t\t\t\tsearch_params_changed,\n\t\t\t\tprevious.universal?.uses,\n\t\t\t\tparams\n\t\t\t);\n\t\tif (valid) return previous;\n\n\t\tparent_changed = true;\n\n\t\tif (server_data_node?.type === 'error') {\n\t\t\t// rethrow and catch below\n\t\t\tthrow server_data_node;\n\t\t}\n\n\t\treturn load_node({\n\t\t\tloader: loader[1],\n\t\t\turl,\n\t\t\tparams,\n\t\t\troute,\n\t\t\tparent: async () => {\n\t\t\t\tconst data = {};\n\t\t\t\tfor (let j = 0; j < i; j += 1) {\n\t\t\t\t\tObject.assign(data, (await branch_promises[j])?.data);\n\t\t\t\t}\n\t\t\t\treturn data;\n\t\t\t},\n\t\t\tserver_data_node: create_data_node(\n\t\t\t\t// server_data_node is undefined if it wasn't reloaded from the server;\n\t\t\t\t// and if current loader uses server data, we want to reuse previous data.\n\t\t\t\tserver_data_node === undefined && loader[0] ? { type: 'skip' } : (server_data_node ?? null),\n\t\t\t\tloader[0] ? previous?.server : undefined\n\t\t\t)\n\t\t});\n\t});\n\n\t// if we don't do this, rejections will be unhandled\n\tfor (const p of branch_promises) p.catch(() => {});\n\n\t/** @type {Array<import('./types.js').BranchNode | undefined>} */\n\tconst branch = [];\n\n\tfor (let i = 0; i < loaders.length; i += 1) {\n\t\tif (loaders[i]) {\n\t\t\ttry {\n\t\t\t\tbranch.push(await branch_promises[i]);\n\t\t\t} catch (err) {\n\t\t\t\tif (err instanceof Redirect) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\ttype: 'redirect',\n\t\t\t\t\t\tlocation: err.location\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tif (preload_tokens.has(preload)) {\n\t\t\t\t\treturn preload_error({\n\t\t\t\t\t\terror: await handle_error(err, { params, url, route: { id: route.id } }),\n\t\t\t\t\t\turl,\n\t\t\t\t\t\tparams,\n\t\t\t\t\t\troute\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tlet status = get_status(err);\n\t\t\t\t/** @type {App.Error} */\n\t\t\t\tlet error;\n\n\t\t\t\tif (server_data_nodes?.includes(/** @type {import('types').ServerErrorNode} */ (err))) {\n\t\t\t\t\t// this is the server error rethrown above, reconstruct but don't invoke\n\t\t\t\t\t// the client error handler; it should've already been handled on the server\n\t\t\t\t\tstatus = /** @type {import('types').ServerErrorNode} */ (err).status ?? status;\n\t\t\t\t\terror = /** @type {import('types').ServerErrorNode} */ (err).error;\n\t\t\t\t} else if (err instanceof HttpError) {\n\t\t\t\t\terror = err.body;\n\t\t\t\t} else {\n\t\t\t\t\t// Referenced node could have been removed due to redeploy, check\n\t\t\t\t\tconst updated = await stores.updated.check();\n\t\t\t\t\tif (updated) {\n\t\t\t\t\t\t// Before reloading, try to update the service worker if it exists\n\t\t\t\t\t\tawait update_service_worker();\n\t\t\t\t\t\treturn await native_navigation(url);\n\t\t\t\t\t}\n\n\t\t\t\t\terror = await handle_error(err, { params, url, route: { id: route.id } });\n\t\t\t\t}\n\n\t\t\t\tconst error_load = await load_nearest_error_page(i, branch, errors);\n\t\t\t\tif (error_load) {\n\t\t\t\t\treturn get_navigation_result_from_branch({\n\t\t\t\t\t\turl,\n\t\t\t\t\t\tparams,\n\t\t\t\t\t\tbranch: branch.slice(0, error_load.idx).concat(error_load.node),\n\t\t\t\t\t\tstatus,\n\t\t\t\t\t\terror,\n\t\t\t\t\t\troute\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\treturn await server_fallback(url, { id: route.id }, error, status);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// push an empty slot so we can rewind past gaps to the\n\t\t\t// layout that corresponds with an +error.svelte page\n\t\t\tbranch.push(undefined);\n\t\t}\n\t}\n\n\treturn get_navigation_result_from_branch({\n\t\turl,\n\t\tparams,\n\t\tbranch,\n\t\tstatus: 200,\n\t\terror: null,\n\t\troute,\n\t\t// Reset `form` on navigation, but not invalidation\n\t\tform: invalidating ? undefined : null\n\t});\n}\n\n/**\n * @param {number} i Start index to backtrack from\n * @param {Array<import('./types.js').BranchNode | undefined>} branch Branch to backtrack\n * @param {Array<import('types').CSRPageNodeLoader | undefined>} errors All error pages for this branch\n * @returns {Promise<{idx: number; node: import('./types.js').BranchNode} | undefined>}\n */\nasync function load_nearest_error_page(i, branch, errors) {\n\twhile (i--) {\n\t\tif (errors[i]) {\n\t\t\tlet j = i;\n\t\t\twhile (!branch[j]) j -= 1;\n\t\t\ttry {\n\t\t\t\treturn {\n\t\t\t\t\tidx: j + 1,\n\t\t\t\t\tnode: {\n\t\t\t\t\t\tnode: await /** @type {import('types').CSRPageNodeLoader } */ (errors[i])(),\n\t\t\t\t\t\tloader: /** @type {import('types').CSRPageNodeLoader } */ (errors[i]),\n\t\t\t\t\t\tdata: {},\n\t\t\t\t\t\tserver: null,\n\t\t\t\t\t\tuniversal: null\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t} catch {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * @param {{\n * status: number;\n * error: App.Error;\n * url: URL;\n * route: { id: string | null }\n * }} opts\n * @returns {Promise<import('./types.js').NavigationFinished>}\n */\nasync function load_root_error_page({ status, error, url, route }) {\n\t/** @type {Record<string, string>} */\n\tconst params = {}; // error page does not have params\n\n\t/** @type {import('types').ServerDataNode | null} */\n\tlet server_data_node = null;\n\n\tif (__SVELTEKIT_HAS_SERVER_LOAD__) {\n\t\tconst default_layout_has_server_load = app.server_loads[0] === 0;\n\n\t\tif (default_layout_has_server_load) {\n\t\t\t// TODO post-https://github.com/sveltejs/kit/discussions/6124 we can use\n\t\t\t// existing root layout data\n\t\t\ttry {\n\t\t\t\tconst server_data = await load_data(url, [true]);\n\n\t\t\t\tif (\n\t\t\t\t\tserver_data.type !== 'data' ||\n\t\t\t\t\t(server_data.nodes[0] && server_data.nodes[0].type !== 'data')\n\t\t\t\t) {\n\t\t\t\t\tthrow 0;\n\t\t\t\t}\n\n\t\t\t\tserver_data_node = server_data.nodes[0] ?? null;\n\t\t\t} catch {\n\t\t\t\t// at this point we have no choice but to fall back to the server, if it wouldn't\n\t\t\t\t// bring us right back here, turning this into an endless loop\n\t\t\t\tif (url.origin !== origin || url.pathname !== location.pathname || hydrated) {\n\t\t\t\t\tawait native_navigation(url);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\ttry {\n\t\tconst root_layout = await load_node({\n\t\t\tloader: default_layout_loader,\n\t\t\turl,\n\t\t\tparams,\n\t\t\troute,\n\t\t\tparent: () => Promise.resolve({}),\n\t\t\tserver_data_node: create_data_node(server_data_node)\n\t\t});\n\n\t\t/** @type {import('./types.js').BranchNode} */\n\t\tconst root_error = {\n\t\t\tnode: await default_error_loader(),\n\t\t\tloader: default_error_loader,\n\t\t\tuniversal: null,\n\t\t\tserver: null,\n\t\t\tdata: null\n\t\t};\n\n\t\treturn get_navigation_result_from_branch({\n\t\t\turl,\n\t\t\tparams,\n\t\t\tbranch: [root_layout, root_error],\n\t\t\tstatus,\n\t\t\terror,\n\t\t\troute: null\n\t\t});\n\t} catch (error) {\n\t\tif (error instanceof Redirect) {\n\t\t\t// @ts-expect-error TODO investigate this\n\t\t\treturn _goto(new URL(error.location, location.href), {}, 0);\n\t\t}\n\n\t\t// TODO: this falls back to the server when a server exists, but what about SPA mode?\n\t\tthrow error;\n\t}\n}\n\n/**\n * Resolve the relative rerouted URL for a client-side navigation\n * @param {URL} url\n * @returns {Promise<URL | undefined>}\n */\nasync function get_rerouted_url(url) {\n\tconst href = url.href;\n\n\tif (reroute_cache.has(href)) {\n\t\treturn reroute_cache.get(href);\n\t}\n\n\tlet rerouted;\n\n\ttry {\n\t\tconst promise = (async () => {\n\t\t\t// reroute could alter the given URL, so we pass a copy\n\t\t\tlet rerouted =\n\t\t\t\t(await app.hooks.reroute({\n\t\t\t\t\turl: new URL(url),\n\t\t\t\t\tfetch: async (input, init) => {\n\t\t\t\t\t\treturn resolve_fetch_url(input, init, url).promise;\n\t\t\t\t\t}\n\t\t\t\t})) ?? url;\n\n\t\t\tif (typeof rerouted === 'string') {\n\t\t\t\tconst tmp = new URL(url); // do not mutate the incoming URL\n\n\t\t\t\tif (app.hash) {\n\t\t\t\t\ttmp.hash = rerouted;\n\t\t\t\t} else {\n\t\t\t\t\ttmp.pathname = rerouted;\n\t\t\t\t}\n\n\t\t\t\trerouted = tmp;\n\t\t\t}\n\n\t\t\treturn rerouted;\n\t\t})();\n\n\t\treroute_cache.set(href, promise);\n\t\trerouted = await promise;\n\t} catch (e) {\n\t\treroute_cache.delete(href);\n\t\tif (DEV) {\n\t\t\t// in development, print the error...\n\t\t\tconsole.error(e);\n\n\t\t\t// ...and pause execution, since otherwise we will immediately reload the page\n\t\t\tdebugger; // eslint-disable-line\n\t\t}\n\n\t\t// fall back to native navigation\n\t\treturn;\n\t}\n\n\treturn rerouted;\n}\n\n/**\n * Resolve the full info (which route, params, etc.) for a client-side navigation from the URL,\n * taking the reroute hook into account. If this isn't a client-side-navigation (or the URL is undefined),\n * returns undefined.\n * @param {URL | undefined} url\n * @param {boolean} invalidating\n * @returns {Promise<import('./types.js').NavigationIntent | undefined>}\n */\nasync function get_navigation_intent(url, invalidating) {\n\tif (!url) return;\n\tif (is_external_url(url, base, app.hash)) return;\n\n\tif (__SVELTEKIT_CLIENT_ROUTING__) {\n\t\tconst rerouted = await get_rerouted_url(url);\n\t\tif (!rerouted) return;\n\n\t\tconst path = get_url_path(rerouted);\n\n\t\tfor (const route of routes) {\n\t\t\tconst params = route.exec(path);\n\n\t\t\tif (params) {\n\t\t\t\treturn {\n\t\t\t\t\tid: get_page_key(url),\n\t\t\t\t\tinvalidating,\n\t\t\t\t\troute,\n\t\t\t\t\tparams: decode_params(params),\n\t\t\t\t\turl\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t} else {\n\t\t/** @type {{ route?: import('types').CSRRouteServer, params: Record<string, string>}} */\n\t\tconst { route, params } = await import(\n\t\t\t/* @vite-ignore */\n\t\t\tadd_resolution_suffix(url.pathname)\n\t\t);\n\n\t\tif (!route) return;\n\n\t\treturn {\n\t\t\tid: get_page_key(url),\n\t\t\tinvalidating,\n\t\t\troute: parse_server_route(route, app.nodes),\n\t\t\tparams,\n\t\t\turl\n\t\t};\n\t}\n}\n\n/** @param {URL} url */\nfunction get_url_path(url) {\n\treturn (\n\t\tdecode_pathname(\n\t\t\tapp.hash ? url.hash.replace(/^#/, '').replace(/[?#].+/, '') : url.pathname.slice(base.length)\n\t\t) || '/'\n\t);\n}\n\n/** @param {URL} url */\nfunction get_page_key(url) {\n\treturn (app.hash ? url.hash.replace(/^#/, '') : url.pathname) + url.search;\n}\n\n/**\n * @param {{\n * url: URL;\n * type: import('@sveltejs/kit').Navigation[\"type\"];\n * intent?: import('./types.js').NavigationIntent;\n * delta?: number;\n * event?: PopStateEvent | MouseEvent;\n * }} opts\n */\nfunction _before_navigate({ url, type, intent, delta, event }) {\n\tlet should_block = false;\n\n\tconst nav = create_navigation(current, intent, url, type);\n\n\tif (delta !== undefined) {\n\t\tnav.navigation.delta = delta;\n\t}\n\n\tif (event !== undefined) {\n\t\t// @ts-ignore\n\t\tnav.navigation.event = event;\n\t}\n\n\tconst cancellable = {\n\t\t...nav.navigation,\n\t\tcancel: () => {\n\t\t\tshould_block = true;\n\t\t\tnav.reject(new Error('navigation cancelled'));\n\t\t}\n\t};\n\n\tif (!is_navigating) {\n\t\t// Don't run the event during redirects\n\t\tbefore_navigate_callbacks.forEach((fn) => fn(cancellable));\n\t}\n\n\treturn should_block ? null : nav;\n}\n\n/**\n * @param {{\n * type: import('@sveltejs/kit').NavigationType;\n * url: URL;\n * popped?: {\n * state: Record<string, any>;\n * scroll: { x: number, y: number };\n * delta: number;\n * };\n * keepfocus?: boolean;\n * noscroll?: boolean;\n * replace_state?: boolean;\n * state?: Record<string, any>;\n * redirect_count?: number;\n * nav_token?: {};\n * accept?: () => void;\n * block?: () => void;\n * event?: Event\n * }} opts\n */\nasync function navigate({\n\ttype,\n\turl,\n\tpopped,\n\tkeepfocus,\n\tnoscroll,\n\treplace_state,\n\tstate = {},\n\tredirect_count = 0,\n\tnav_token = {},\n\taccept = noop,\n\tblock = noop,\n\tevent\n}) {\n\tremote_responses = {};\n\n\tconst prev_token = token;\n\ttoken = nav_token;\n\n\tconst intent = await get_navigation_intent(url, false);\n\tconst nav =\n\t\ttype === 'enter'\n\t\t\t? create_navigation(current, intent, url, type)\n\t\t\t: _before_navigate({\n\t\t\t\t\turl,\n\t\t\t\t\ttype,\n\t\t\t\t\tdelta: popped?.delta,\n\t\t\t\t\tintent,\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\tevent\n\t\t\t\t});\n\n\tif (!nav) {\n\t\tblock();\n\t\tif (token === nav_token) token = prev_token;\n\t\treturn;\n\t}\n\n\t// store this before calling `accept()`, which may change the index\n\tconst previous_history_index = current_history_index;\n\tconst previous_navigation_index = current_navigation_index;\n\n\taccept();\n\n\tis_navigating = true;\n\n\tif (started && nav.navigation.type !== 'enter') {\n\t\tstores.navigating.set((navigating.current = nav.navigation));\n\t}\n\n\tlet navigation_result = intent && (await load_route(intent));\n\n\tif (!navigation_result) {\n\t\tif (is_external_url(url, base, app.hash)) {\n\t\t\tif (DEV && app.hash) {\n\t\t\t\t// Special case for hash mode during DEV: If someone accidentally forgets to use a hash for the link,\n\t\t\t\t// they would end up here in an endless loop. Fall back to error page in that case\n\t\t\t\tnavigation_result = await server_fallback(\n\t\t\t\t\turl,\n\t\t\t\t\t{ id: null },\n\t\t\t\t\tawait handle_error(\n\t\t\t\t\t\tnew SvelteKitError(\n\t\t\t\t\t\t\t404,\n\t\t\t\t\t\t\t'Not Found',\n\t\t\t\t\t\t\t`Not found: ${url.pathname} (did you forget the hash?)`\n\t\t\t\t\t\t),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\turl,\n\t\t\t\t\t\t\tparams: {},\n\t\t\t\t\t\t\troute: { id: null }\n\t\t\t\t\t\t}\n\t\t\t\t\t),\n\t\t\t\t\t404,\n\t\t\t\t\treplace_state\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\treturn await native_navigation(url, replace_state);\n\t\t\t}\n\t\t} else {\n\t\t\tnavigation_result = await server_fallback(\n\t\t\t\turl,\n\t\t\t\t{ id: null },\n\t\t\t\tawait handle_error(new SvelteKitError(404, 'Not Found', `Not found: ${url.pathname}`), {\n\t\t\t\t\turl,\n\t\t\t\t\tparams: {},\n\t\t\t\t\troute: { id: null }\n\t\t\t\t}),\n\t\t\t\t404,\n\t\t\t\treplace_state\n\t\t\t);\n\t\t}\n\t}\n\n\t// if this is an internal navigation intent, use the normalized\n\t// URL for the rest of the function\n\turl = intent?.url || url;\n\n\t// abort if user navigated during update\n\tif (token !== nav_token) {\n\t\tnav.reject(new Error('navigation aborted'));\n\t\treturn false;\n\t}\n\n\tif (navigation_result.type === 'redirect') {\n\t\t// whatwg fetch spec https://fetch.spec.whatwg.org/#http-redirect-fetch says to error after 20 redirects\n\t\tif (redirect_count < 20) {\n\t\t\tawait navigate({\n\t\t\t\ttype,\n\t\t\t\turl: new URL(navigation_result.location, url),\n\t\t\t\tpopped,\n\t\t\t\tkeepfocus,\n\t\t\t\tnoscroll,\n\t\t\t\treplace_state,\n\t\t\t\tstate,\n\t\t\t\tredirect_count: redirect_count + 1,\n\t\t\t\tnav_token\n\t\t\t});\n\n\t\t\tnav.fulfil(undefined);\n\t\t\treturn;\n\t\t}\n\n\t\tnavigation_result = await load_root_error_page({\n\t\t\tstatus: 500,\n\t\t\terror: await handle_error(new Error('Redirect loop'), {\n\t\t\t\turl,\n\t\t\t\tparams: {},\n\t\t\t\troute: { id: null }\n\t\t\t}),\n\t\t\turl,\n\t\t\troute: { id: null }\n\t\t});\n\t} else if (/** @type {number} */ (navigation_result.props.page.status) >= 400) {\n\t\tconst updated = await stores.updated.check();\n\t\tif (updated) {\n\t\t\t// Before reloading, try to update the service worker if it exists\n\t\t\tawait update_service_worker();\n\t\t\tawait native_navigation(url, replace_state);\n\t\t}\n\t}\n\n\t// reset invalidation only after a finished navigation. If there are redirects or\n\t// additional invalidations, they should get the same invalidation treatment\n\treset_invalidation();\n\n\tupdating = true;\n\n\tupdate_scroll_positions(previous_history_index);\n\tcapture_snapshot(previous_navigation_index);\n\n\t// ensure the url pathname matches the page's trailing slash option\n\tif (navigation_result.props.page.url.pathname !== url.pathname) {\n\t\turl.pathname = navigation_result.props.page.url.pathname;\n\t}\n\n\tstate = popped ? popped.state : state;\n\n\tif (!popped) {\n\t\t// this is a new navigation, rather than a popstate\n\t\tconst change = replace_state ? 0 : 1;\n\n\t\tconst entry = {\n\t\t\t[HISTORY_INDEX]: (current_history_index += change),\n\t\t\t[NAVIGATION_INDEX]: (current_navigation_index += change),\n\t\t\t[STATES_KEY]: state\n\t\t};\n\n\t\tconst fn = replace_state ? history.replaceState : history.pushState;\n\t\tfn.call(history, entry, '', url);\n\n\t\tif (!replace_state) {\n\t\t\tclear_onward_history(current_history_index, current_navigation_index);\n\t\t}\n\t}\n\n\t// also compare ids to avoid using wrong fork (e.g. a new one could've been added while navigating)\n\tconst load_cache_fork = intent && load_cache?.id === intent.id ? load_cache.fork : null;\n\t// reset preload synchronously after the history state has been set to avoid race conditions\n\tload_cache = null;\n\n\tnavigation_result.props.page.state = state;\n\n\t/**\n\t * @type {Promise<void> | undefined}\n\t */\n\tlet commit_promise;\n\tif (started) {\n\t\tconst after_navigate = (\n\t\t\tawait Promise.all(\n\t\t\t\tArray.from(on_navigate_callbacks, (fn) =>\n\t\t\t\t\tfn(/** @type {import('@sveltejs/kit').OnNavigate} */ (nav.navigation))\n\t\t\t\t)\n\t\t\t)\n\t\t).filter(/** @returns {value is () => void} */ (value) => typeof value === 'function');\n\n\t\tif (after_navigate.length > 0) {\n\t\t\tfunction cleanup() {\n\t\t\t\tafter_navigate.forEach((fn) => {\n\t\t\t\t\tafter_navigate_callbacks.delete(fn);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tafter_navigate.push(cleanup);\n\n\t\t\tafter_navigate.forEach((fn) => {\n\t\t\t\tafter_navigate_callbacks.add(fn);\n\t\t\t});\n\t\t}\n\n\t\tcurrent = navigation_result.state;\n\n\t\t// reset url before updating page store\n\t\tif (navigation_result.props.page) {\n\t\t\tnavigation_result.props.page.url = url;\n\t\t}\n\n\t\tconst fork = load_cache_fork && (await load_cache_fork);\n\n\t\tif (fork) {\n\t\t\tcommit_promise = fork.commit();\n\t\t} else {\n\t\t\troot.$set(navigation_result.props);\n\t\t\tupdate(navigation_result.props.page);\n\n\t\t\tcommit_promise = svelte.settled?.();\n\t\t}\n\n\t\thas_navigated = true;\n\t} else {\n\t\tawait initialize(navigation_result, target, false);\n\t}\n\n\tconst { activeElement } = document;\n\n\tawait commit_promise;\n\n\t// TODO 3.0 remote — the double tick is probably necessary because\n\t// of some store shenanigans. `settled()` and `f.commit()`\n\t// should resolve after DOM updates in newer versions\n\tawait svelte.tick();\n\tawait svelte.tick();\n\n\t// we reset scroll before dealing with focus, to avoid a flash of unscrolled content\n\tlet scroll = popped ? popped.scroll : noscroll ? scroll_state() : null;\n\n\tif (autoscroll) {\n\t\tconst deep_linked = url.hash && document.getElementById(get_id(url));\n\t\tif (scroll) {\n\t\t\tscrollTo(scroll.x, scroll.y);\n\t\t} else if (deep_linked) {\n\t\t\t// Here we use `scrollIntoView` on the element instead of `scrollTo`\n\t\t\t// because it natively supports the `scroll-margin` and `scroll-behavior`\n\t\t\t// CSS properties.\n\t\t\tdeep_linked.scrollIntoView();\n\n\t\t\t// Get target position at this point because with smooth scrolling the scroll position\n\t\t\t// retrieved from current x/y above might be wrong (since we might not have arrived at the destination yet)\n\t\t\tconst { top, left } = deep_linked.getBoundingClientRect();\n\n\t\t\tscroll = {\n\t\t\t\tx: pageXOffset + left,\n\t\t\t\ty: pageYOffset + top\n\t\t\t};\n\t\t} else {\n\t\t\tscrollTo(0, 0);\n\t\t}\n\t}\n\n\tconst changed_focus =\n\t\t// reset focus only if any manual focus management didn't override it\n\t\tdocument.activeElement !== activeElement &&\n\t\t// also refocus when activeElement is body already because the\n\t\t// focus event might not have been fired on it yet\n\t\tdocument.activeElement !== document.body;\n\n\tif (!keepfocus && !changed_focus) {\n\t\treset_focus(url, scroll);\n\t}\n\n\tautoscroll = true;\n\n\tif (navigation_result.props.page) {\n\t\tObject.assign(page, navigation_result.props.page);\n\t}\n\n\tis_navigating = false;\n\n\tif (type === 'popstate') {\n\t\trestore_snapshot(current_navigation_index);\n\t}\n\n\tnav.fulfil(undefined);\n\n\tafter_navigate_callbacks.forEach((fn) =>\n\t\tfn(/** @type {import('@sveltejs/kit').AfterNavigate} */ (nav.navigation))\n\t);\n\n\tstores.navigating.set((navigating.current = null));\n\n\tupdating = false;\n}\n\n/**\n * Does a full page reload if it wouldn't result in an endless loop in the SPA case\n * @param {URL} url\n * @param {{ id: string | null }} route\n * @param {App.Error} error\n * @param {number} status\n * @param {boolean} [replace_state]\n * @returns {Promise<import('./types.js').NavigationFinished>}\n */\nasync function server_fallback(url, route, error, status, replace_state) {\n\tif (url.origin === origin && url.pathname === location.pathname && !hydrated) {\n\t\t// We would reload the same page we're currently on, which isn't hydrated,\n\t\t// which means no SSR, which means we would end up in an endless loop\n\t\treturn await load_root_error_page({\n\t\t\tstatus,\n\t\t\terror,\n\t\t\turl,\n\t\t\troute\n\t\t});\n\t}\n\n\tif (DEV && status !== 404) {\n\t\tconsole.error(\n\t\t\t'An error occurred while loading the page. This will cause a full page reload. (This message will only appear during development.)'\n\t\t);\n\n\t\tdebugger; // eslint-disable-line\n\t}\n\n\treturn await native_navigation(url, replace_state);\n}\n\nif (import.meta.hot) {\n\timport.meta.hot.on('vite:beforeUpdate', () => {\n\t\tif (current.error) location.reload();\n\t});\n}\n\n/** @typedef {(typeof PRELOAD_PRIORITIES)['hover'] | (typeof PRELOAD_PRIORITIES)['tap']} PreloadDataPriority */\n\nfunction setup_preload() {\n\t/** @type {NodeJS.Timeout} */\n\tlet mousemove_timeout;\n\t/** @type {Element} */\n\tlet current_a;\n\t/** @type {PreloadDataPriority} */\n\tlet current_priority;\n\n\tcontainer.addEventListener('mousemove', (event) => {\n\t\tconst target = /** @type {Element} */ (event.target);\n\n\t\tclearTimeout(mousemove_timeout);\n\t\tmousemove_timeout = setTimeout(() => {\n\t\t\tvoid preload(target, PRELOAD_PRIORITIES.hover);\n\t\t}, 20);\n\t});\n\n\t/** @param {Event} event */\n\tfunction tap(event) {\n\t\tif (event.defaultPrevented) return;\n\t\tvoid preload(/** @type {Element} */ (event.composedPath()[0]), PRELOAD_PRIORITIES.tap);\n\t}\n\n\tcontainer.addEventListener('mousedown', tap);\n\tcontainer.addEventListener('touchstart', tap, { passive: true });\n\n\tconst observer = new IntersectionObserver(\n\t\t(entries) => {\n\t\t\tfor (const entry of entries) {\n\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\tvoid _preload_code(new URL(/** @type {HTMLAnchorElement} */ (entry.target).href));\n\t\t\t\t\tobserver.unobserve(entry.target);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{ threshold: 0 }\n\t);\n\n\t/**\n\t * @param {Element} element\n\t * @param {PreloadDataPriority} priority\n\t */\n\tasync function preload(element, priority) {\n\t\tconst a = find_anchor(element, container);\n\n\t\t// we don't want to preload data again if the user has already hovered/tapped\n\t\tconst interacted = a === current_a && priority >= current_priority;\n\t\tif (!a || interacted) return;\n\n\t\tconst { url, external, download } = get_link_info(a, base, app.hash);\n\t\tif (external || download) return;\n\n\t\tconst options = get_router_options(a);\n\n\t\t// we don't want to preload data for a page we're already on\n\t\tconst same_url = url && get_page_key(current.url) === get_page_key(url);\n\t\tif (options.reload || same_url) return;\n\n\t\tif (priority <= options.preload_data) {\n\t\t\tcurrent_a = a;\n\t\t\t// we don't want to preload data again on tap if we've already preloaded it on hover\n\t\t\tcurrent_priority = PRELOAD_PRIORITIES.tap;\n\n\t\t\tconst intent = await get_navigation_intent(url, false);\n\t\t\tif (!intent) return;\n\n\t\t\tif (DEV) {\n\t\t\t\tvoid _preload_data(intent).then((result) => {\n\t\t\t\t\tif (result.type === 'loaded' && result.state.error) {\n\t\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t\t`Preloading data for ${intent.url.pathname} failed with the following error: ${result.state.error.message}\\n` +\n\t\t\t\t\t\t\t\t'If this error is transient, you can ignore it. Otherwise, consider disabling preloading for this route. ' +\n\t\t\t\t\t\t\t\t'This route was preloaded due to a data-sveltekit-preload-data attribute. ' +\n\t\t\t\t\t\t\t\t'See https://svelte.dev/docs/kit/link-options for more info'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tvoid _preload_data(intent);\n\t\t\t}\n\t\t} else if (priority <= options.preload_code) {\n\t\t\tcurrent_a = a;\n\t\t\tcurrent_priority = priority;\n\t\t\tvoid _preload_code(/** @type {URL} */ (url));\n\t\t}\n\t}\n\n\tfunction after_navigate() {\n\t\tobserver.disconnect();\n\n\t\tfor (const a of container.querySelectorAll('a')) {\n\t\t\tconst { url, external, download } = get_link_info(a, base, app.hash);\n\t\t\tif (external || download) continue;\n\n\t\t\tconst options = get_router_options(a);\n\t\t\tif (options.reload) continue;\n\n\t\t\tif (options.preload_code === PRELOAD_PRIORITIES.viewport) {\n\t\t\t\tobserver.observe(a);\n\t\t\t}\n\n\t\t\tif (options.preload_code === PRELOAD_PRIORITIES.eager) {\n\t\t\t\tvoid _preload_code(/** @type {URL} */ (url));\n\t\t\t}\n\t\t}\n\t}\n\n\tafter_navigate_callbacks.add(after_navigate);\n\tafter_navigate();\n}\n\n/**\n * @param {unknown} error\n * @param {import('@sveltejs/kit').NavigationEvent} event\n * @returns {import('types').MaybePromise<App.Error>}\n */\nfunction handle_error(error, event) {\n\tif (error instanceof HttpError) {\n\t\treturn error.body;\n\t}\n\n\tif (DEV) {\n\t\terrored = true;\n\t\tconsole.warn('The next HMR update will cause the page to reload');\n\t}\n\n\tconst status = get_status(error);\n\tconst message = get_message(error);\n\n\treturn (\n\t\tapp.hooks.handleError({ error, event, status, message }) ?? /** @type {any} */ ({ message })\n\t);\n}\n\n/**\n * @template {Function} T\n * @param {Set<T>} callbacks\n * @param {T} callback\n */\nfunction add_navigation_callback(callbacks, callback) {\n\tonMount(() => {\n\t\tcallbacks.add(callback);\n\n\t\treturn () => {\n\t\t\tcallbacks.delete(callback);\n\t\t};\n\t});\n}\n\n/**\n * A lifecycle function that runs the supplied `callback` when the current component mounts, and also whenever we navigate to a URL.\n *\n * `afterNavigate` must be called during a component initialization. It remains active as long as the component is mounted.\n * @param {(navigation: import('@sveltejs/kit').AfterNavigate) => void} callback\n * @returns {void}\n */\nexport function afterNavigate(callback) {\n\tadd_navigation_callback(after_navigate_callbacks, callback);\n}\n\n/**\n * A navigation interceptor that triggers before we navigate to a URL, whether by clicking a link, calling `goto(...)`, or using the browser back/forward controls.\n *\n * Calling `cancel()` will prevent the navigation from completing. If `navigation.type === 'leave'` — meaning the user is navigating away from the app (or closing the tab) — calling `cancel` will trigger the native browser unload confirmation dialog. In this case, the navigation may or may not be cancelled depending on the user's response.\n *\n * When a navigation isn't to a SvelteKit-owned route (and therefore controlled by SvelteKit's client-side router), `navigation.to.route.id` will be `null`.\n *\n * If the navigation will (if not cancelled) cause the document to unload — in other words `'leave'` navigations and `'link'` navigations where `navigation.to.route === null` — `navigation.willUnload` is `true`.\n *\n * `beforeNavigate` must be called during a component initialization. It remains active as long as the component is mounted.\n * @param {(navigation: import('@sveltejs/kit').BeforeNavigate) => void} callback\n * @returns {void}\n */\nexport function beforeNavigate(callback) {\n\tadd_navigation_callback(before_navigate_callbacks, callback);\n}\n\n/**\n * A lifecycle function that runs the supplied `callback` immediately before we navigate to a new URL except during full-page navigations.\n *\n * If you return a `Promise`, SvelteKit will wait for it to resolve before completing the navigation. This allows you to — for example — use `document.startViewTransition`. Avoid promises that are slow to resolve, since navigation will appear stalled to the user.\n *\n * If a function (or a `Promise` that resolves to a function) is returned from the callback, it will be called once the DOM has updated.\n *\n * `onNavigate` must be called during a component initialization. It remains active as long as the component is mounted.\n * @param {(navigation: import('@sveltejs/kit').OnNavigate) => import('types').MaybePromise<(() => void) | void>} callback\n * @returns {void}\n */\nexport function onNavigate(callback) {\n\tadd_navigation_callback(on_navigate_callbacks, callback);\n}\n\n/**\n * If called when the page is being updated following a navigation (in `onMount` or `afterNavigate` or an action, for example), this disables SvelteKit's built-in scroll handling.\n * This is generally discouraged, since it breaks user expectations.\n * @returns {void}\n */\nexport function disableScrollHandling() {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call disableScrollHandling() on the server');\n\t}\n\n\tif (DEV && started && !updating) {\n\t\tthrow new Error('Can only disable scroll handling during navigation');\n\t}\n\n\tif (updating || !started) {\n\t\tautoscroll = false;\n\t}\n}\n\n/**\n * Allows you to navigate programmatically to a given route, with options such as keeping the current element focused.\n * Returns a Promise that resolves when SvelteKit navigates (or fails to navigate, in which case the promise rejects) to the specified `url`.\n *\n * For external URLs, use `window.location = url` instead of calling `goto(url)`.\n *\n * @param {string | URL} url Where to navigate to. Note that if you've set [`config.kit.paths.base`](https://svelte.dev/docs/kit/configuration#paths) and the URL is root-relative, you need to prepend the base path if you want to navigate within the app.\n * @param {Object} [opts] Options related to the navigation\n * @param {boolean} [opts.replaceState] If `true`, will replace the current `history` entry rather than creating a new one with `pushState`\n * @param {boolean} [opts.noScroll] If `true`, the browser will maintain its scroll position rather than scrolling to the top of the page after navigation\n * @param {boolean} [opts.keepFocus] If `true`, the currently focused element will retain focus after navigation. Otherwise, focus will be reset to the body\n * @param {boolean} [opts.invalidateAll] If `true`, all `load` functions of the page will be rerun. See https://svelte.dev/docs/kit/load#rerunning-load-functions for more info on invalidation.\n * @param {Array<string | URL | ((url: URL) => boolean)>} [opts.invalidate] Causes any load functions to re-run if they depend on one of the urls\n * @param {App.PageState} [opts.state] An optional object that will be available as `page.state`\n * @returns {Promise<void>}\n */\nexport function goto(url, opts = {}) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call goto(...) on the server');\n\t}\n\n\turl = new URL(resolve_url(url));\n\n\tif (url.origin !== origin) {\n\t\treturn Promise.reject(\n\t\t\tnew Error(\n\t\t\t\tDEV\n\t\t\t\t\t? `Cannot use \\`goto\\` with an external URL. Use \\`window.location = \"${url}\"\\` instead`\n\t\t\t\t\t: 'goto: invalid URL'\n\t\t\t)\n\t\t);\n\t}\n\n\treturn _goto(url, opts, 0);\n}\n\n/**\n * Causes any `load` functions belonging to the currently active page to re-run if they depend on the `url` in question, via `fetch` or `depends`. Returns a `Promise` that resolves when the page is subsequently updated.\n *\n * If the argument is given as a `string` or `URL`, it must resolve to the same URL that was passed to `fetch` or `depends` (including query parameters).\n * To create a custom identifier, use a string beginning with `[a-z]+:` (e.g. `custom:state`) — this is a valid URL.\n *\n * The `function` argument can be used define a custom predicate. It receives the full `URL` and causes `load` to rerun if `true` is returned.\n * This can be useful if you want to invalidate based on a pattern instead of a exact match.\n *\n * ```ts\n * // Example: Match '/path' regardless of the query parameters\n * import { invalidate } from '$app/navigation';\n *\n * invalidate((url) => url.pathname === '/path');\n * ```\n * @param {string | URL | ((url: URL) => boolean)} resource The invalidated URL\n * @returns {Promise<void>}\n */\nexport function invalidate(resource) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call invalidate(...) on the server');\n\t}\n\n\tpush_invalidated(resource);\n\n\treturn _invalidate();\n}\n\n/**\n * @param {string | URL | ((url: URL) => boolean)} resource The invalidated URL\n */\nfunction push_invalidated(resource) {\n\tif (typeof resource === 'function') {\n\t\tinvalidated.push(resource);\n\t} else {\n\t\tconst { href } = new URL(resource, location.href);\n\t\tinvalidated.push((url) => url.href === href);\n\t}\n}\n\n/**\n * Causes all `load` and `query` functions belonging to the currently active page to re-run. Returns a `Promise` that resolves when the page is subsequently updated.\n * @returns {Promise<void>}\n */\nexport function invalidateAll() {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call invalidateAll() on the server');\n\t}\n\n\tforce_invalidation = true;\n\treturn _invalidate();\n}\n\n/**\n * Causes all currently active remote functions to refresh, and all `load` functions belonging to the currently active page to re-run (unless disabled via the option argument).\n * Returns a `Promise` that resolves when the page is subsequently updated.\n * @param {{ includeLoadFunctions?: boolean }} [options]\n * @returns {Promise<void>}\n */\nexport function refreshAll({ includeLoadFunctions = true } = {}) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call refreshAll() on the server');\n\t}\n\n\tremote_responses = {};\n\n\tforce_invalidation = true;\n\treturn _invalidate(includeLoadFunctions, false);\n}\n\n/**\n * Programmatically preloads the given page, which means\n * 1. ensuring that the code for the page is loaded, and\n * 2. calling the page's load function with the appropriate options.\n *\n * This is the same behaviour that SvelteKit triggers when the user taps or mouses over an `<a>` element with `data-sveltekit-preload-data`.\n * If the next navigation is to `href`, the values returned from load will be used, making navigation instantaneous.\n * Returns a Promise that resolves with the result of running the new route's `load` functions once the preload is complete.\n *\n * @param {string} href Page to preload\n * @returns {Promise<{ type: 'loaded'; status: number; data: Record<string, any> } | { type: 'redirect'; location: string }>}\n */\nexport async function preloadData(href) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call preloadData(...) on the server');\n\t}\n\n\tconst url = resolve_url(href);\n\tconst intent = await get_navigation_intent(url, false);\n\n\tif (!intent) {\n\t\tthrow new Error(`Attempted to preload a URL that does not belong to this app: ${url}`);\n\t}\n\n\tconst result = await _preload_data(intent);\n\tif (result.type === 'redirect') {\n\t\treturn {\n\t\t\ttype: result.type,\n\t\t\tlocation: result.location\n\t\t};\n\t}\n\n\tconst { status, data } = result.props.page ?? page;\n\treturn { type: result.type, status, data };\n}\n\n/**\n * Programmatically imports the code for routes that haven't yet been fetched.\n * Typically, you might call this to speed up subsequent navigation.\n *\n * You can specify routes by any matching pathname such as `/about` (to match `src/routes/about/+page.svelte`) or `/blog/*` (to match `src/routes/blog/[slug]/+page.svelte`).\n *\n * Unlike `preloadData`, this won't call `load` functions.\n * Returns a Promise that resolves when the modules have been imported.\n *\n * @param {string} pathname\n * @returns {Promise<void>}\n */\nexport async function preloadCode(pathname) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call preloadCode(...) on the server');\n\t}\n\n\tconst url = new URL(pathname, current.url);\n\n\tif (DEV) {\n\t\tif (!pathname.startsWith('/')) {\n\t\t\tthrow new Error(\n\t\t\t\t'argument passed to preloadCode must be a pathname (i.e. \"/about\" rather than \"http://example.com/about\"'\n\t\t\t);\n\t\t}\n\n\t\tif (!pathname.startsWith(base)) {\n\t\t\tthrow new Error(\n\t\t\t\t`pathname passed to preloadCode must start with \\`paths.base\\` (i.e. \"${base}${pathname}\" rather than \"${pathname}\")`\n\t\t\t);\n\t\t}\n\n\t\tif (__SVELTEKIT_CLIENT_ROUTING__) {\n\t\t\tconst rerouted = await get_rerouted_url(url);\n\t\t\tif (!rerouted || !routes.find((route) => route.exec(get_url_path(rerouted)))) {\n\t\t\t\tthrow new Error(`'${pathname}' did not match any routes`);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn _preload_code(url);\n}\n\n/**\n * Programmatically create a new history entry with the given `page.state`. To use the current URL, you can pass `''` as the first argument. Used for [shallow routing](https://svelte.dev/docs/kit/shallow-routing).\n *\n * @param {string | URL} url\n * @param {App.PageState} state\n * @returns {void}\n */\nexport function pushState(url, state) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call pushState(...) on the server');\n\t}\n\n\tif (DEV) {\n\t\tif (!started) {\n\t\t\tthrow new Error('Cannot call pushState(...) before router is initialized');\n\t\t}\n\n\t\ttry {\n\t\t\t// use `devalue.stringify` as a convenient way to ensure we exclude values that can't be properly rehydrated, such as custom class instances\n\t\t\tdevalue.stringify(state);\n\t\t} catch (error) {\n\t\t\t// @ts-expect-error\n\t\t\tthrow new Error(`Could not serialize state${error.path}`);\n\t\t}\n\t}\n\n\tupdate_scroll_positions(current_history_index);\n\n\tconst opts = {\n\t\t[HISTORY_INDEX]: (current_history_index += 1),\n\t\t[NAVIGATION_INDEX]: current_navigation_index,\n\t\t[PAGE_URL_KEY]: page.url.href,\n\t\t[STATES_KEY]: state\n\t};\n\n\thistory.pushState(opts, '', resolve_url(url));\n\thas_navigated = true;\n\n\tpage.state = state;\n\troot.$set({\n\t\t// we need to assign a new page object so that subscribers are correctly notified\n\t\tpage: untrack(() => clone_page(page))\n\t});\n\n\tclear_onward_history(current_history_index, current_navigation_index);\n}\n\n/**\n * Programmatically replace the current history entry with the given `page.state`. To use the current URL, you can pass `''` as the first argument. Used for [shallow routing](https://svelte.dev/docs/kit/shallow-routing).\n *\n * @param {string | URL} url\n * @param {App.PageState} state\n * @returns {void}\n */\nexport function replaceState(url, state) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call replaceState(...) on the server');\n\t}\n\n\tif (DEV) {\n\t\tif (!started) {\n\t\t\tthrow new Error('Cannot call replaceState(...) before router is initialized');\n\t\t}\n\n\t\ttry {\n\t\t\t// use `devalue.stringify` as a convenient way to ensure we exclude values that can't be properly rehydrated, such as custom class instances\n\t\t\tdevalue.stringify(state);\n\t\t} catch (error) {\n\t\t\t// @ts-expect-error\n\t\t\tthrow new Error(`Could not serialize state${error.path}`);\n\t\t}\n\t}\n\n\tconst opts = {\n\t\t[HISTORY_INDEX]: current_history_index,\n\t\t[NAVIGATION_INDEX]: current_navigation_index,\n\t\t[PAGE_URL_KEY]: page.url.href,\n\t\t[STATES_KEY]: state\n\t};\n\n\thistory.replaceState(opts, '', resolve_url(url));\n\n\tpage.state = state;\n\troot.$set({\n\t\tpage: untrack(() => clone_page(page))\n\t});\n}\n\n/**\n * This action updates the `form` property of the current page with the given data and updates `page.status`.\n * In case of an error, it redirects to the nearest error page.\n * @template {Record<string, unknown> | undefined} Success\n * @template {Record<string, unknown> | undefined} Failure\n * @param {import('@sveltejs/kit').ActionResult<Success, Failure>} result\n * @returns {Promise<void>}\n */\nexport async function applyAction(result) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call applyAction(...) on the server');\n\t}\n\n\tif (result.type === 'error') {\n\t\tawait set_nearest_error_page(result.error, result.status);\n\t} else if (result.type === 'redirect') {\n\t\tawait _goto(result.location, { invalidateAll: true }, 0);\n\t} else {\n\t\tpage.form = result.data;\n\t\tpage.status = result.status;\n\n\t\t/** @type {Record<string, any>} */\n\t\troot.$set({\n\t\t\t// this brings Svelte's view of the world in line with SvelteKit's\n\t\t\t// after use:enhance reset the form....\n\t\t\tform: null,\n\t\t\tpage: clone_page(page)\n\t\t});\n\n\t\t// ...so that setting the `form` prop takes effect and isn't ignored\n\t\tawait tick();\n\t\troot.$set({ form: result.data });\n\n\t\tif (result.type === 'success') {\n\t\t\treset_focus(page.url);\n\t\t}\n\t}\n}\n\n/**\n * @param {App.Error} error\n * @param {number} status\n */\nexport async function set_nearest_error_page(error, status = 500) {\n\tconst url = new URL(location.href);\n\n\tconst { branch, route } = current;\n\tif (!route) return;\n\n\tconst error_load = await load_nearest_error_page(current.branch.length, branch, route.errors);\n\tif (error_load) {\n\t\tconst navigation_result = get_navigation_result_from_branch({\n\t\t\turl,\n\t\t\tparams: current.params,\n\t\t\tbranch: branch.slice(0, error_load.idx).concat(error_load.node),\n\t\t\tstatus,\n\t\t\terror,\n\t\t\troute\n\t\t});\n\n\t\tcurrent = navigation_result.state;\n\n\t\troot.$set(navigation_result.props);\n\t\tupdate(navigation_result.props.page);\n\n\t\tvoid tick().then(() => reset_focus(current.url));\n\t}\n}\n\nfunction _start_router() {\n\thistory.scrollRestoration = 'manual';\n\n\t// Adopted from Nuxt.js\n\t// Reset scrollRestoration to auto when leaving page, allowing page reload\n\t// and back-navigation from other pages to use the browser to restore the\n\t// scrolling position.\n\taddEventListener('beforeunload', (e) => {\n\t\tlet should_block = false;\n\n\t\tpersist_state();\n\n\t\tif (!is_navigating) {\n\t\t\tconst nav = create_navigation(current, undefined, null, 'leave');\n\n\t\t\t// If we're navigating, beforeNavigate was already called. If we end up in here during navigation,\n\t\t\t// it's due to an external or full-page-reload link, for which we don't want to call the hook again.\n\t\t\t/** @type {import('@sveltejs/kit').BeforeNavigate} */\n\t\t\tconst navigation = {\n\t\t\t\t...nav.navigation,\n\t\t\t\tcancel: () => {\n\t\t\t\t\tshould_block = true;\n\t\t\t\t\tnav.reject(new Error('navigation cancelled'));\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tbefore_navigate_callbacks.forEach((fn) => fn(navigation));\n\t\t}\n\n\t\tif (should_block) {\n\t\t\te.preventDefault();\n\t\t\te.returnValue = '';\n\t\t} else {\n\t\t\thistory.scrollRestoration = 'auto';\n\t\t}\n\t});\n\n\taddEventListener('visibilitychange', () => {\n\t\tif (document.visibilityState === 'hidden') {\n\t\t\tpersist_state();\n\t\t}\n\t});\n\n\t// @ts-expect-error this isn't supported everywhere yet\n\tif (!navigator.connection?.saveData) {\n\t\tsetup_preload();\n\t}\n\n\t/** @param {MouseEvent} event */\n\tcontainer.addEventListener('click', async (event) => {\n\t\t// Adapted from https://github.com/visionmedia/page.js\n\t\t// MIT license https://github.com/visionmedia/page.js#license\n\t\tif (event.button || event.which !== 1) return;\n\t\tif (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n\t\tif (event.defaultPrevented) return;\n\n\t\tconst a = find_anchor(/** @type {Element} */ (event.composedPath()[0]), container);\n\t\tif (!a) return;\n\n\t\tconst { url, external, target, download } = get_link_info(a, base, app.hash);\n\t\tif (!url) return;\n\n\t\t// bail out before `beforeNavigate` if link opens in a different tab\n\t\tif (target === '_parent' || target === '_top') {\n\t\t\tif (window.parent !== window) return;\n\t\t} else if (target && target !== '_self') {\n\t\t\treturn;\n\t\t}\n\n\t\tconst options = get_router_options(a);\n\t\tconst is_svg_a_element = a instanceof SVGAElement;\n\n\t\t// Ignore URL protocols that differ to the current one and are not http(s) (e.g. `mailto:`, `tel:`, `myapp:`, etc.)\n\t\t// This may be wrong when the protocol is x: and the link goes to y:.. which should be treated as an external\n\t\t// navigation, but it's not clear how to handle that case and it's not likely to come up in practice.\n\t\t// MEMO: Without this condition, firefox will open mailer twice.\n\t\t// See:\n\t\t// - https://github.com/sveltejs/kit/issues/4045\n\t\t// - https://github.com/sveltejs/kit/issues/5725\n\t\t// - https://github.com/sveltejs/kit/issues/6496\n\t\tif (\n\t\t\t!is_svg_a_element &&\n\t\t\turl.protocol !== location.protocol &&\n\t\t\t!(url.protocol === 'https:' || url.protocol === 'http:')\n\t\t)\n\t\t\treturn;\n\n\t\tif (download) return;\n\n\t\tconst [nonhash, hash] = (app.hash ? url.hash.replace(/^#/, '') : url.href).split('#');\n\t\tconst same_pathname = nonhash === strip_hash(location);\n\n\t\t// Ignore the following but fire beforeNavigate\n\t\tif (external || (options.reload && (!same_pathname || !hash))) {\n\t\t\tif (_before_navigate({ url, type: 'link', event })) {\n\t\t\t\t// set `navigating` to `true` to prevent `beforeNavigate` callbacks\n\t\t\t\t// being called when the page unloads\n\t\t\t\tis_navigating = true;\n\t\t\t} else {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Check if new url only differs by hash and use the browser default behavior in that case\n\t\t// This will ensure the `hashchange` event is fired\n\t\t// Removing the hash does a full page navigation in the browser, so make sure a hash is present\n\t\tif (hash !== undefined && same_pathname) {\n\t\t\t// If we are trying to navigate to the same hash, we should only\n\t\t\t// attempt to scroll to that element and avoid any history changes.\n\t\t\t// Otherwise, this can cause Firefox to incorrectly assign a null\n\t\t\t// history state value without any signal that we can detect.\n\t\t\tconst [, current_hash] = current.url.href.split('#');\n\t\t\tif (current_hash === hash) {\n\t\t\t\tevent.preventDefault();\n\n\t\t\t\t// We're already on /# and click on a link that goes to /#, or we're on\n\t\t\t\t// /#top and click on a link that goes to /#top. In those cases just go to\n\t\t\t\t// the top of the page, and avoid a history change.\n\t\t\t\tif (hash === '' || (hash === 'top' && a.ownerDocument.getElementById('top') === null)) {\n\t\t\t\t\tscrollTo({ top: 0 });\n\t\t\t\t} else {\n\t\t\t\t\tconst element = a.ownerDocument.getElementById(decodeURIComponent(hash));\n\t\t\t\t\tif (element) {\n\t\t\t\t\t\telement.scrollIntoView();\n\t\t\t\t\t\telement.focus();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// set this flag to distinguish between navigations triggered by\n\t\t\t// clicking a hash link and those triggered by popstate\n\t\t\thash_navigating = true;\n\n\t\t\tupdate_scroll_positions(current_history_index);\n\n\t\t\tupdate_url(url);\n\n\t\t\tif (!options.replace_state) return;\n\n\t\t\t// hashchange event shouldn't occur if the router is replacing state.\n\t\t\thash_navigating = false;\n\t\t}\n\n\t\tevent.preventDefault();\n\n\t\t// allow the browser to repaint before navigating —\n\t\t// this prevents INP scores being penalised\n\t\tawait new Promise((fulfil) => {\n\t\t\trequestAnimationFrame(() => {\n\t\t\t\tsetTimeout(fulfil, 0);\n\t\t\t});\n\n\t\t\tsetTimeout(fulfil, 100); // fallback for edge case where rAF doesn't fire because e.g. tab was backgrounded\n\t\t});\n\n\t\tawait navigate({\n\t\t\ttype: 'link',\n\t\t\turl,\n\t\t\tkeepfocus: options.keepfocus,\n\t\t\tnoscroll: options.noscroll,\n\t\t\treplace_state: options.replace_state ?? url.href === location.href,\n\t\t\tevent\n\t\t});\n\t});\n\n\tcontainer.addEventListener('submit', (event) => {\n\t\tif (event.defaultPrevented) return;\n\n\t\tconst form = /** @type {HTMLFormElement} */ (\n\t\t\tHTMLFormElement.prototype.cloneNode.call(event.target)\n\t\t);\n\n\t\tconst submitter = /** @type {HTMLButtonElement | HTMLInputElement | null} */ (event.submitter);\n\n\t\tconst target = submitter?.formTarget || form.target;\n\n\t\tif (target === '_blank') return;\n\n\t\tconst method = submitter?.formMethod || form.method;\n\n\t\tif (method !== 'get') return;\n\n\t\t// It is impossible to use form actions with hash router, so we just ignore handling them here\n\t\tconst url = new URL(\n\t\t\t(submitter?.hasAttribute('formaction') && submitter?.formAction) || form.action\n\t\t);\n\n\t\tif (is_external_url(url, base, false)) return;\n\n\t\tconst event_form = /** @type {HTMLFormElement} */ (event.target);\n\n\t\tconst options = get_router_options(event_form);\n\t\tif (options.reload) return;\n\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\n\t\tconst data = new FormData(event_form, submitter);\n\n\t\t// @ts-expect-error `URLSearchParams(fd)` is kosher, but typescript doesn't know that\n\t\turl.search = new URLSearchParams(data).toString();\n\n\t\tvoid navigate({\n\t\t\ttype: 'form',\n\t\t\turl,\n\t\t\tkeepfocus: options.keepfocus,\n\t\t\tnoscroll: options.noscroll,\n\t\t\treplace_state: options.replace_state ?? url.href === location.href,\n\t\t\tevent\n\t\t});\n\t});\n\n\taddEventListener('popstate', async (event) => {\n\t\tif (resetting_focus) return;\n\n\t\tif (event.state?.[HISTORY_INDEX]) {\n\t\t\tconst history_index = event.state[HISTORY_INDEX];\n\t\t\ttoken = {};\n\n\t\t\t// if a popstate-driven navigation is cancelled, we need to counteract it\n\t\t\t// with history.go, which means we end up back here, hence this check\n\t\t\tif (history_index === current_history_index) return;\n\n\t\t\tconst scroll = scroll_positions[history_index];\n\t\t\tconst state = event.state[STATES_KEY] ?? {};\n\t\t\tconst url = new URL(event.state[PAGE_URL_KEY] ?? location.href);\n\t\t\tconst navigation_index = event.state[NAVIGATION_INDEX];\n\t\t\tconst is_hash_change = current.url ? strip_hash(location) === strip_hash(current.url) : false;\n\t\t\tconst shallow =\n\t\t\t\tnavigation_index === current_navigation_index && (has_navigated || is_hash_change);\n\n\t\t\tif (shallow) {\n\t\t\t\t// We don't need to navigate, we just need to update scroll and/or state.\n\t\t\t\t// This happens with hash links and `pushState`/`replaceState`. The\n\t\t\t\t// exception is if we haven't navigated yet, since we could have\n\t\t\t\t// got here after a modal navigation then a reload\n\t\t\t\tif (state !== page.state) {\n\t\t\t\t\tpage.state = state;\n\t\t\t\t}\n\n\t\t\t\tupdate_url(url);\n\n\t\t\t\tscroll_positions[current_history_index] = scroll_state();\n\t\t\t\tif (scroll) scrollTo(scroll.x, scroll.y);\n\n\t\t\t\tcurrent_history_index = history_index;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst delta = history_index - current_history_index;\n\n\t\t\tawait navigate({\n\t\t\t\ttype: 'popstate',\n\t\t\t\turl,\n\t\t\t\tpopped: {\n\t\t\t\t\tstate,\n\t\t\t\t\tscroll,\n\t\t\t\t\tdelta\n\t\t\t\t},\n\t\t\t\taccept: () => {\n\t\t\t\t\tcurrent_history_index = history_index;\n\t\t\t\t\tcurrent_navigation_index = navigation_index;\n\t\t\t\t},\n\t\t\t\tblock: () => {\n\t\t\t\t\thistory.go(-delta);\n\t\t\t\t},\n\t\t\t\tnav_token: token,\n\t\t\t\tevent\n\t\t\t});\n\t\t} else {\n\t\t\t// since popstate event is also emitted when an anchor referencing the same\n\t\t\t// document is clicked, we have to check that the router isn't already handling\n\t\t\t// the navigation. otherwise we would be updating the page store twice.\n\t\t\tif (!hash_navigating) {\n\t\t\t\tconst url = new URL(location.href);\n\t\t\t\tupdate_url(url);\n\n\t\t\t\t// if the user edits the hash via the browser URL bar, trigger a full-page\n\t\t\t\t// reload to align with pathname router behavior\n\t\t\t\tif (app.hash) {\n\t\t\t\t\tlocation.reload();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\taddEventListener('hashchange', () => {\n\t\t// if the hashchange happened as a result of clicking on a link,\n\t\t// we need to update history, otherwise we have to leave it alone\n\t\tif (hash_navigating) {\n\t\t\thash_navigating = false;\n\t\t\thistory.replaceState(\n\t\t\t\t{\n\t\t\t\t\t...history.state,\n\t\t\t\t\t[HISTORY_INDEX]: ++current_history_index,\n\t\t\t\t\t[NAVIGATION_INDEX]: current_navigation_index\n\t\t\t\t},\n\t\t\t\t'',\n\t\t\t\tlocation.href\n\t\t\t);\n\t\t}\n\t});\n\n\t// fix link[rel=icon], because browsers will occasionally try to load relative\n\t// URLs after a pushState/replaceState, resulting in a 404 — see\n\t// https://github.com/sveltejs/kit/issues/3748#issuecomment-1125980897\n\tfor (const link of document.querySelectorAll('link')) {\n\t\tif (ICON_REL_ATTRIBUTES.has(link.rel)) {\n\t\t\tlink.href = link.href; // eslint-disable-line\n\t\t}\n\t}\n\n\taddEventListener('pageshow', (event) => {\n\t\t// If the user navigates to another site and then uses the back button and\n\t\t// bfcache hits, we need to set navigating to null, the site doesn't know\n\t\t// the navigation away from it was successful.\n\t\t// Info about bfcache here: https://web.dev/bfcache\n\t\tif (event.persisted) {\n\t\t\tstores.navigating.set((navigating.current = null));\n\t\t}\n\t});\n\n\t/**\n\t * @param {URL} url\n\t */\n\tfunction update_url(url) {\n\t\tcurrent.url = page.url = url;\n\t\tstores.page.set(clone_page(page));\n\t\tstores.page.notify();\n\t}\n}\n\n/**\n * @param {HTMLElement} target\n * @param {import('./types.js').HydrateOptions} opts\n */\nasync function _hydrate(\n\ttarget,\n\t{ status = 200, error, node_ids, params, route, server_route, data: server_data_nodes, form }\n) {\n\thydrated = true;\n\n\tconst url = new URL(location.href);\n\n\t/** @type {import('types').CSRRoute | undefined} */\n\tlet parsed_route;\n\n\tif (__SVELTEKIT_CLIENT_ROUTING__) {\n\t\tif (!__SVELTEKIT_EMBEDDED__) {\n\t\t\t// See https://github.com/sveltejs/kit/pull/4935#issuecomment-1328093358 for one motivation\n\t\t\t// of determining the params on the client side.\n\t\t\t({ params = {}, route = { id: null } } = (await get_navigation_intent(url, false)) || {});\n\t\t}\n\n\t\tparsed_route = routes.find(({ id }) => id === route.id);\n\t} else {\n\t\t// undefined in case of 404\n\t\tif (server_route) {\n\t\t\tparsed_route = route = parse_server_route(server_route, app.nodes);\n\t\t} else {\n\t\t\troute = { id: null };\n\t\t\tparams = {};\n\t\t}\n\t}\n\n\t/** @type {import('./types.js').NavigationFinished | undefined} */\n\tlet result;\n\tlet hydrate = true;\n\n\ttry {\n\t\tconst branch_promises = node_ids.map(async (n, i) => {\n\t\t\tconst server_data_node = server_data_nodes[i];\n\t\t\t// Type isn't completely accurate, we still need to deserialize uses\n\t\t\tif (server_data_node?.uses) {\n\t\t\t\tserver_data_node.uses = deserialize_uses(server_data_node.uses);\n\t\t\t}\n\n\t\t\treturn load_node({\n\t\t\t\tloader: app.nodes[n],\n\t\t\t\turl,\n\t\t\t\tparams,\n\t\t\t\troute,\n\t\t\t\tparent: async () => {\n\t\t\t\t\tconst data = {};\n\t\t\t\t\tfor (let j = 0; j < i; j += 1) {\n\t\t\t\t\t\tObject.assign(data, (await branch_promises[j]).data);\n\t\t\t\t\t}\n\t\t\t\t\treturn data;\n\t\t\t\t},\n\t\t\t\tserver_data_node: create_data_node(server_data_node)\n\t\t\t});\n\t\t});\n\n\t\t/** @type {Array<import('./types.js').BranchNode | undefined>} */\n\t\tconst branch = await Promise.all(branch_promises);\n\n\t\t// server-side will have compacted the branch, reinstate empty slots\n\t\t// so that error boundaries can be lined up correctly\n\t\tif (parsed_route) {\n\t\t\tconst layouts = parsed_route.layouts;\n\t\t\tfor (let i = 0; i < layouts.length; i++) {\n\t\t\t\tif (!layouts[i]) {\n\t\t\t\t\tbranch.splice(i, 0, undefined);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tresult = get_navigation_result_from_branch({\n\t\t\turl,\n\t\t\tparams,\n\t\t\tbranch,\n\t\t\tstatus,\n\t\t\terror,\n\t\t\tform,\n\t\t\troute: parsed_route ?? null\n\t\t});\n\t} catch (error) {\n\t\tif (error instanceof Redirect) {\n\t\t\t// this is a real edge case — `load` would need to return\n\t\t\t// a redirect but only in the browser\n\t\t\tawait native_navigation(new URL(error.location, location.href));\n\t\t\treturn;\n\t\t}\n\n\t\tresult = await load_root_error_page({\n\t\t\tstatus: get_status(error),\n\t\t\terror: await handle_error(error, { url, params, route }),\n\t\t\turl,\n\t\t\troute\n\t\t});\n\n\t\ttarget.textContent = '';\n\t\thydrate = false;\n\t}\n\n\tif (result.props.page) {\n\t\tresult.props.page.state = {};\n\t}\n\n\tawait initialize(result, target, hydrate);\n}\n\n/**\n * @param {URL} url\n * @param {boolean[]} invalid\n * @returns {Promise<import('types').ServerNodesResponse | import('types').ServerRedirectNode>}\n */\nasync function load_data(url, invalid) {\n\tconst data_url = new URL(url);\n\tdata_url.pathname = add_data_suffix(url.pathname);\n\tif (url.pathname.endsWith('/')) {\n\t\tdata_url.searchParams.append(TRAILING_SLASH_PARAM, '1');\n\t}\n\tif (DEV && url.searchParams.has(INVALIDATED_PARAM)) {\n\t\tthrow new Error(`Cannot used reserved query parameter \"${INVALIDATED_PARAM}\"`);\n\t}\n\tdata_url.searchParams.append(INVALIDATED_PARAM, invalid.map((i) => (i ? '1' : '0')).join(''));\n\n\t// use window.fetch directly to allow using a 3rd party-patched fetch implementation\n\tconst fetcher = DEV ? dev_fetch : window.fetch;\n\tconst res = await fetcher(data_url.href, {});\n\n\tif (!res.ok) {\n\t\t// error message is a JSON-stringified string which devalue can't handle at the top level\n\t\t// turn it into a HttpError to not call handleError on the client again (was already handled on the server)\n\t\t// if `__data.json` doesn't exist or the server has an internal error,\n\t\t// avoid parsing the HTML error page as a JSON\n\t\t/** @type {string | undefined} */\n\t\tlet message;\n\t\tif (res.headers.get('content-type')?.includes('application/json')) {\n\t\t\tmessage = await res.json();\n\t\t} else if (res.status === 404) {\n\t\t\tmessage = 'Not Found';\n\t\t} else if (res.status === 500) {\n\t\t\tmessage = 'Internal Error';\n\t\t}\n\t\tthrow new HttpError(res.status, message);\n\t}\n\n\t// TODO: fix eslint error / figure out if it actually applies to our situation\n\t// eslint-disable-next-line\n\treturn new Promise(async (resolve) => {\n\t\t/**\n\t\t * Map of deferred promises that will be resolved by a subsequent chunk of data\n\t\t * @type {Map<string, import('types').Deferred>}\n\t\t */\n\t\tconst deferreds = new Map();\n\t\tconst reader = /** @type {ReadableStream<Uint8Array>} */ (res.body).getReader();\n\n\t\t/**\n\t\t * @param {any} data\n\t\t */\n\t\tfunction deserialize(data) {\n\t\t\treturn devalue.unflatten(data, {\n\t\t\t\t...app.decoders,\n\t\t\t\tPromise: (id) => {\n\t\t\t\t\treturn new Promise((fulfil, reject) => {\n\t\t\t\t\t\tdeferreds.set(id, { fulfil, reject });\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tlet text = '';\n\n\t\twhile (true) {\n\t\t\t// Format follows ndjson (each line is a JSON object) or regular JSON spec\n\t\t\tconst { done, value } = await reader.read();\n\t\t\tif (done && !text) break;\n\n\t\t\ttext += !value && text ? '\\n' : text_decoder.decode(value, { stream: true }); // no value -> final chunk -> add a new line to trigger the last parse\n\n\t\t\twhile (true) {\n\t\t\t\tconst split = text.indexOf('\\n');\n\t\t\t\tif (split === -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tconst node = JSON.parse(text.slice(0, split));\n\t\t\t\ttext = text.slice(split + 1);\n\n\t\t\t\tif (node.type === 'redirect') {\n\t\t\t\t\treturn resolve(node);\n\t\t\t\t}\n\n\t\t\t\tif (node.type === 'data') {\n\t\t\t\t\t// This is the first (and possibly only, if no pending promises) chunk\n\t\t\t\t\tnode.nodes?.forEach((/** @type {any} */ node) => {\n\t\t\t\t\t\tif (node?.type === 'data') {\n\t\t\t\t\t\t\tnode.uses = deserialize_uses(node.uses);\n\t\t\t\t\t\t\tnode.data = deserialize(node.data);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tresolve(node);\n\t\t\t\t} else if (node.type === 'chunk') {\n\t\t\t\t\t// This is a subsequent chunk containing deferred data\n\t\t\t\t\tconst { id, data, error } = node;\n\t\t\t\t\tconst deferred = /** @type {import('types').Deferred} */ (deferreds.get(id));\n\t\t\t\t\tdeferreds.delete(id);\n\n\t\t\t\t\tif (error) {\n\t\t\t\t\t\tdeferred.reject(deserialize(error));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdeferred.fulfil(deserialize(data));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\t// TODO edge case handling necessary? stream() read fails?\n}\n\n/**\n * @param {any} uses\n * @return {import('types').Uses}\n */\nfunction deserialize_uses(uses) {\n\treturn {\n\t\tdependencies: new Set(uses?.dependencies ?? []),\n\t\tparams: new Set(uses?.params ?? []),\n\t\tparent: !!uses?.parent,\n\t\troute: !!uses?.route,\n\t\turl: !!uses?.url,\n\t\tsearch_params: new Set(uses?.search_params ?? [])\n\t};\n}\n\n/**\n * This flag is used to avoid client-side navigation when we're only using\n * `location.replace()` to set focus.\n */\nlet resetting_focus = false;\n\n/**\n * @param {URL} url\n * @param {{ x: number, y: number } | null} scroll\n */\nfunction reset_focus(url, scroll = null) {\n\tconst autofocus = document.querySelector('[autofocus]');\n\tif (autofocus) {\n\t\t// @ts-ignore\n\t\tautofocus.focus();\n\t} else {\n\t\t// Reset page selection and focus\n\n\t\t// Mimic the browsers' behaviour and set the sequential focus navigation\n\t\t// starting point to the fragment identifier.\n\t\tconst id = get_id(url);\n\t\tif (id && document.getElementById(id)) {\n\t\t\tconst { x, y } = scroll ?? scroll_state();\n\n\t\t\t// `element.focus()` doesn't work on Safari and Firefox Ubuntu so we need\n\t\t\t// to use this hack with `location.replace()` instead.\n\t\t\tsetTimeout(() => {\n\t\t\t\tconst history_state = history.state;\n\n\t\t\t\tresetting_focus = true;\n\t\t\t\tlocation.replace(`#${id}`);\n\n\t\t\t\t// if we're using hash routing, we need to restore the original hash after\n\t\t\t\t// setting the focus with `location.replace()`. Although we're calling\n\t\t\t\t// `location.replace()` again, the focus won't shift to the new hash\n\t\t\t\t// unless there's an element with the ID `/pathname#hash`, etc.\n\t\t\t\tif (app.hash) {\n\t\t\t\t\tlocation.replace(url.hash);\n\t\t\t\t}\n\n\t\t\t\t// but Firefox has a bug that sets the history state to `null` so we\n\t\t\t\t// need to restore it after.\n\t\t\t\t// See https://bugzilla.mozilla.org/show_bug.cgi?id=1199924\n\t\t\t\thistory.replaceState(history_state, '', url.hash);\n\n\t\t\t\t// Scroll management has already happened earlier so we need to restore\n\t\t\t\t// the scroll position after setting the sequential focus navigation starting point\n\t\t\t\tscrollTo(x, y);\n\t\t\t\tresetting_focus = false;\n\t\t\t});\n\t\t} else {\n\t\t\t// If the ID doesn't exist, we try to mimic browsers' behaviour as closely\n\t\t\t// as possible by targeting the first scrollable region. Unfortunately, it's\n\t\t\t// not a perfect match — e.g. shift-tabbing won't immediately cycle up from\n\t\t\t// the end of the page on Chromium\n\t\t\t// See https://html.spec.whatwg.org/multipage/interaction.html#get-the-focusable-area\n\t\t\tconst root = document.body;\n\t\t\tconst tabindex = root.getAttribute('tabindex');\n\n\t\t\troot.tabIndex = -1;\n\t\t\t// @ts-expect-error options.focusVisible is only supported in Firefox\n\t\t\t// See https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#browser_compatibility\n\t\t\troot.focus({ preventScroll: true, focusVisible: false });\n\n\t\t\t// restore `tabindex` as to prevent `root` from stealing input from elements\n\t\t\tif (tabindex !== null) {\n\t\t\t\troot.setAttribute('tabindex', tabindex);\n\t\t\t} else {\n\t\t\t\troot.removeAttribute('tabindex');\n\t\t\t}\n\t\t}\n\n\t\t// capture current selection, so we can compare the state after\n\t\t// snapshot restoration and afterNavigate callbacks have run\n\t\tconst selection = getSelection();\n\n\t\tif (selection && selection.type !== 'None') {\n\t\t\t/** @type {Range[]} */\n\t\t\tconst ranges = [];\n\n\t\t\tfor (let i = 0; i < selection.rangeCount; i += 1) {\n\t\t\t\tranges.push(selection.getRangeAt(i));\n\t\t\t}\n\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (selection.rangeCount !== ranges.length) return;\n\n\t\t\t\tfor (let i = 0; i < selection.rangeCount; i += 1) {\n\t\t\t\t\tconst a = ranges[i];\n\t\t\t\t\tconst b = selection.getRangeAt(i);\n\n\t\t\t\t\t// we need to do a deep comparison rather than just `a !== b` because\n\t\t\t\t\t// Safari behaves differently to other browsers\n\t\t\t\t\tif (\n\t\t\t\t\t\ta.commonAncestorContainer !== b.commonAncestorContainer ||\n\t\t\t\t\t\ta.startContainer !== b.startContainer ||\n\t\t\t\t\t\ta.endContainer !== b.endContainer ||\n\t\t\t\t\t\ta.startOffset !== b.startOffset ||\n\t\t\t\t\t\ta.endOffset !== b.endOffset\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if the selection hasn't changed (as a result of an element being (auto)focused,\n\t\t\t\t// or a programmatic selection, we reset everything as part of the navigation)\n\t\t\t\t// fixes https://github.com/sveltejs/kit/issues/8439\n\t\t\t\tselection.removeAllRanges();\n\t\t\t});\n\t\t}\n\t}\n}\n\n/**\n * @template {import('@sveltejs/kit').NavigationType} T\n * @param {import('./types.js').NavigationState} current\n * @param {import('./types.js').NavigationIntent | undefined} intent\n * @param {URL | null} url\n * @param {T} type\n */\nfunction create_navigation(current, intent, url, type) {\n\t/** @type {(value: any) => void} */\n\tlet fulfil;\n\n\t/** @type {(error: any) => void} */\n\tlet reject;\n\n\tconst complete = new Promise((f, r) => {\n\t\tfulfil = f;\n\t\treject = r;\n\t});\n\n\t// Handle any errors off-chain so that it doesn't show up as an unhandled rejection\n\tcomplete.catch(() => {});\n\n\t/** @type {(import('@sveltejs/kit').Navigation | import('@sveltejs/kit').AfterNavigate) & { type: T }} */\n\tconst navigation = /** @type {any} */ ({\n\t\tfrom: {\n\t\t\tparams: current.params,\n\t\t\troute: { id: current.route?.id ?? null },\n\t\t\turl: current.url\n\t\t},\n\t\tto: url && {\n\t\t\tparams: intent?.params ?? null,\n\t\t\troute: { id: intent?.route?.id ?? null },\n\t\t\turl\n\t\t},\n\t\twillUnload: !intent,\n\t\ttype,\n\t\tcomplete\n\t});\n\n\treturn {\n\t\tnavigation,\n\t\t// @ts-expect-error\n\t\tfulfil,\n\t\t// @ts-expect-error\n\t\treject\n\t};\n}\n\n/**\n * TODO: remove this in 3.0 when the page store is also removed\n *\n * We need to assign a new page object so that subscribers are correctly notified.\n * However, spreading `{ ...page }` returns an empty object so we manually\n * assign to each property instead.\n *\n * @param {import('@sveltejs/kit').Page} page\n */\nfunction clone_page(page) {\n\treturn {\n\t\tdata: page.data,\n\t\terror: page.error,\n\t\tform: page.form,\n\t\tparams: page.params,\n\t\troute: page.route,\n\t\tstate: page.state,\n\t\tstatus: page.status,\n\t\turl: page.url\n\t};\n}\n\n/**\n * @param {URL} url\n * @returns {URL}\n */\nfunction decode_hash(url) {\n\tconst new_url = new URL(url);\n\t// Safari, for some reason, does change # to %23, when entered through the address bar\n\tnew_url.hash = decodeURIComponent(url.hash);\n\treturn new_url;\n}\n\n/**\n * @param {URL} url\n * @returns {string}\n */\nfunction get_id(url) {\n\tlet id;\n\n\tif (app.hash) {\n\t\tconst [, , second] = url.hash.split('#', 3);\n\t\tid = second ?? '';\n\t} else {\n\t\tid = url.hash.slice(1);\n\t}\n\n\treturn decodeURIComponent(id);\n}\n\nif (DEV) {\n\t// Nasty hack to silence harmless warnings the user can do nothing about\n\tconst console_warn = console.warn;\n\tconsole.warn = function warn(...args) {\n\t\tif (\n\t\t\targs.length === 1 &&\n\t\t\t/<(Layout|Page|Error)(_[\\w$]+)?> was created (with unknown|without expected) prop '(data|form)'/.test(\n\t\t\t\targs[0]\n\t\t\t)\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconsole_warn(...args);\n\t};\n\n\tif (import.meta.hot) {\n\t\timport.meta.hot.on('vite:beforeUpdate', () => {\n\t\t\tif (errored) {\n\t\t\t\tlocation.reload();\n\t\t\t}\n\t\t});\n\t}\n}\n"],"names":["HttpError","status","body","Redirect","location","SvelteKitError","text","message","normalize_path","path","trailing_slash","decode_pathname","pathname","decode_params","params","key","strip_hash","href","make_trackable","url","callback","search_params_callback","allow_hash","tracked","obj","param","value","tracked_url_properties","property","hash","values","i","buffer","base64_decode","encoded","binary","bytes","native_fetch","input","init","cache","build_selector","initial_fetch","resource","opts","selector","script","ttl","subsequent_fetch","resolved","cached","param_pattern","parse_route_id","id","get_route_segments","segment","rest_match","optional_match","parts","content","escape","code","match","is_optional","is_rest","name","matcher","affects_path","route","exec","matchers","result","values_needing_match","buffered","s","next_param","next_value","str","basic_param_pattern","resolve_route","segments","has_id_trailing_slash","_","optional","rest","param_value","parse","nodes","server_loads","dictionary","layouts_with_server_load","leaf","layouts","errors","pattern","n","create_layout_loader","create_leaf_loader","uses_server_data","get","set","stringify","data","base","assets","SNAPSHOT_KEY","SCROLL_KEY","STATES_KEY","PAGE_URL_KEY","HISTORY_INDEX","NAVIGATION_INDEX","PRELOAD_PRIORITIES","origin","resolve_url","baseURI","baseTags","scroll_state","link_option","element","levels","parent_element","parent","find_anchor","target","get_link_info","a","uses_hash_router","external","is_external_url","download","get_router_options","keepfocus","noscroll","preload_code","preload_data","reload","replace_state","el","get_option_state","notifiable_store","store","writable","ready","notify","val","new_value","subscribe","run","old_value","updated_listener","create_updated_store","timeout","check","res","updated","version","hash_routing","load_css","deps","valid_layout_exports","valid_layout_server_exports","compact","arr","get_status","error","get_message","page","navigating","is_legacy","onMount","$.state","#form","#error","#status","#current","update","new_page","noop_span","noop_span_context","svelte","ICON_REL_ATTRIBUTES","scroll_positions","storage.get","snapshots","stores","update_scroll_positions","index","clear_onward_history","current_history_index","current_navigation_index","native_navigation","replace","update_service_worker","registration","noop","routes","default_layout_loader","default_error_loader","container","app","invalidated","components","load_cache","discard_load_cache","f","reroute_cache","before_navigate_callbacks","on_navigate_callbacks","after_navigate_callbacks","current","hydrated","started","autoscroll","is_navigating","hash_navigating","has_navigated","force_invalidation","root","token","preload_tokens","query_map","start","_app","_target","hydrate","scroll","restore_scroll","_hydrate","navigate","decode_hash","_start_router","reset_invalidation","capture_snapshot","c","restore_snapshot","persist_state","storage.set","_goto","options","redirect_count","nav_token","query_keys","push_invalidated","svelte.tick","_preload_data","intent","preload","load_route","svelte.fork","lc","_preload_code","get_navigation_intent","load","initialize","style","navigation","fn","get_navigation_result_from_branch","branch","form","slash","node","branch_node","clone_page","data_changed","p","prev","load_node","loader","server_data_node","is_tracking","uses","depends","dep","load_input","promise","resolve_fetch_url","requested","has_changed","parent_changed","route_changed","url_changed","search_params_changed","tracked_params","create_data_node","previous","diff_search_params","old_url","new_url","changed","old_values","new_values","preload_error","invalidating","loaders","get_page_key","branch_promises","j","err","handle_error","error_load","load_nearest_error_page","server_fallback","load_root_error_page","root_layout","root_error","get_rerouted_url","rerouted","tmp","get_url_path","_before_navigate","type","delta","event","should_block","nav","create_navigation","cancellable","popped","state","accept","block","prev_token","previous_history_index","previous_navigation_index","navigation_result","change","entry","load_cache_fork","commit_promise","after_navigate","cleanup","fork","svelte.settled","activeElement","deep_linked","get_id","top","left","changed_focus","reset_focus","setup_preload","mousemove_timeout","current_a","current_priority","tap","observer","entries","priority","interacted","same_url","add_navigation_callback","callbacks","afterNavigate","goto","e","nonhash","same_pathname","current_hash","update_url","fulfil","submitter","event_form","resetting_focus","history_index","navigation_index","is_hash_change","link","node_ids","server_route","server_data_nodes","parsed_route","deserialize_uses","autofocus","x","y","history_state","tabindex","selection","ranges","b","reject","complete","r","second"],"mappings":"4HAEO,MAAMA,EAAU,CAKtB,YAAYC,EAAQC,EAAM,CACzB,KAAK,OAASD,EACV,OAAOC,GAAS,SACnB,KAAK,KAAO,CAAE,QAASA,CAAI,EACjBA,EACV,KAAK,KAAOA,EAEZ,KAAK,KAAO,CAAE,QAAS,UAAUD,CAAM,EAAE,CAE3C,CAEA,UAAW,CACV,OAAO,KAAK,UAAU,KAAK,IAAI,CAChC,CACD,CAEO,MAAME,EAAS,CAKrB,YAAYF,EAAQG,EAAU,CAC7B,KAAK,OAASH,EACd,KAAK,SAAWG,CACjB,CACD,CAOO,MAAMC,WAAuB,KAAM,CAMzC,YAAYJ,EAAQK,EAAMC,EAAS,CAClC,MAAMA,CAAO,EACb,KAAK,OAASN,EACd,KAAK,KAAOK,CACb,CACD,CC1CiB,IAAI,IAAI,uBAAuB,EAyBzC,SAASE,GAAeC,EAAMC,EAAgB,CACpD,OAAID,IAAS,KAAOC,IAAmB,SAAiBD,EAEpDC,IAAmB,QACfD,EAAK,SAAS,GAAG,EAAIA,EAAK,MAAM,EAAG,EAAE,EAAIA,EACtCC,IAAmB,UAAY,CAACD,EAAK,SAAS,GAAG,EACpDA,EAAO,IAGRA,CACR,C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M,CACtCvB,EAAS5J,EACTiL,EAASE,CACV,CAAC,EAGD,OAAAD,EAAS,MAAM,IAAM,CAAC,CAAC,EAmBhB,CACN,WAjBsC,CACtC,KAAM,CACL,OAAQ7K,EAAQ,OAChB,MAAO,CAAE,GAAIA,EAAQ,OAAO,IAAM,IAAA,EAClC,IAAKA,EAAQ,GAAA,EAEd,GAAI9L,GAAO,CACV,OAAQkO,GAAQ,QAAU,KAC1B,MAAO,CAAE,GAAIA,GAAQ,OAAO,IAAM,IAAA,EAClC,IAAAlO,CAAA,EAED,WAAY,CAACkO,EACb,KAAAkE,EACA,SAAAuE,CAAA,EAMA,OAAAtB,EAEA,OAAAqB,CAAA,CAEF,CAWA,SAAStH,GAAWjG,EAAM,CACzB,MAAO,CACN,KAAMA,EAAK,KACX,MAAOA,EAAK,MACZ,KAAMA,EAAK,KACX,OAAQA,EAAK,OACb,MAAOA,EAAK,MACZ,MAAOA,EAAK,MACZ,OAAQA,EAAK,OACb,IAAKA,EAAK,GAAA,CAEZ,CAMA,SAAS+D,GAAYlN,EAAK,CACzB,MAAM6Q,EAAU,IAAI,IAAI7Q,CAAG,EAE3B,OAAA6Q,EAAQ,KAAO,mBAAmB7Q,EAAI,IAAI,EACnC6Q,CACR,CAMA,SAASgD,GAAO7T,EAAK,CACpB,IAAIkC,EAEJ,GAAIkJ,EAAI,KAAM,CACb,KAAM,CAAA,CAAA,CAAKyL,CAAM,EAAI7W,EAAI,KAAK,MAAM,IAAK,CAAC,EAC1CkC,EAAK2U,GAAU,EAChB,MACC3U,EAAKlC,EAAI,KAAK,MAAM,CAAC,EAGtB,OAAO,mBAAmBkC,CAAE,CAC7B","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}
\ No newline at end of file
+{"version":3,"file":"BIF4_51j.js","sources":["../../../../../../node_modules/@sveltejs/kit/src/exports/internal/index.js","../../../../../../node_modules/@sveltejs/kit/src/utils/url.js","../../../../../../node_modules/@sveltejs/kit/src/utils/hash.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/utils.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/fetcher.js","../../../../../../node_modules/@sveltejs/kit/src/utils/routing.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/parse.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/session-storage.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/app/paths/internal/client.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/constants.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/utils.js","../../../../../../node_modules/@sveltejs/kit/src/utils/exports.js","../../../../../../node_modules/@sveltejs/kit/src/utils/array.js","../../../../../../node_modules/@sveltejs/kit/src/utils/error.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/state.svelte.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/telemetry/noop.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/client/client.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nexport class HttpError {\n\t/**\n\t * @param {number} status\n\t * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n\t */\n\tconstructor(status, body) {\n\t\tthis.status = status;\n\t\tif (typeof body === 'string') {\n\t\t\tthis.body = { message: body };\n\t\t} else if (body) {\n\t\t\tthis.body = body;\n\t\t} else {\n\t\t\tthis.body = { message: `Error: ${status}` };\n\t\t}\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this.body);\n\t}\n}\n\nexport class Redirect {\n\t/**\n\t * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n\t * @param {string} location\n\t */\n\tconstructor(status, location) {\n\t\tthis.status = status;\n\t\tthis.location = location;\n\t}\n}\n\n/**\n * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.\n * `SvelteKitError` goes through `handleError`.\n * @extends Error\n */\nexport class SvelteKitError extends Error {\n\t/**\n\t * @param {number} status\n\t * @param {string} text\n\t * @param {string} message\n\t */\n\tconstructor(status, text, message) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t\tthis.text = text;\n\t}\n}\n\n/**\n * @template [T=undefined]\n */\nexport class ActionFailure {\n\t/**\n\t * @param {number} status\n\t * @param {T} data\n\t */\n\tconstructor(status, data) {\n\t\tthis.status = status;\n\t\tthis.data = data;\n\t}\n}\n\n/**\n * Error thrown when form validation fails imperatively\n */\nexport class ValidationError extends Error {\n\t/**\n\t * @param {StandardSchemaV1.Issue[]} issues\n\t */\n\tconstructor(issues) {\n\t\tsuper('Validation failed');\n\t\tthis.name = 'ValidationError';\n\t\tthis.issues = issues;\n\t}\n}\n\nexport { init_remote_functions } from './remote-functions.js';\n","import { BROWSER, DEV } from 'esm-env';\n\n/**\n * Matches a URI scheme. See https://www.rfc-editor.org/rfc/rfc3986#section-3.1\n * @type {RegExp}\n */\nexport const SCHEME = /^[a-z][a-z\\d+\\-.]+:/i;\n\nconst internal = new URL('sveltekit-internal://');\n\n/**\n * @param {string} base\n * @param {string} path\n */\nexport function resolve(base, path) {\n\t// special case\n\tif (path[0] === '/' && path[1] === '/') return path;\n\n\tlet url = new URL(base, internal);\n\turl = new URL(path, url);\n\n\treturn url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;\n}\n\n/** @param {string} path */\nexport function is_root_relative(path) {\n\treturn path[0] === '/' && path[1] !== '/';\n}\n\n/**\n * @param {string} path\n * @param {import('types').TrailingSlash} trailing_slash\n */\nexport function normalize_path(path, trailing_slash) {\n\tif (path === '/' || trailing_slash === 'ignore') return path;\n\n\tif (trailing_slash === 'never') {\n\t\treturn path.endsWith('/') ? path.slice(0, -1) : path;\n\t} else if (trailing_slash === 'always' && !path.endsWith('/')) {\n\t\treturn path + '/';\n\t}\n\n\treturn path;\n}\n\n/**\n * Decode pathname excluding %25 to prevent further double decoding of params\n * @param {string} pathname\n */\nexport function decode_pathname(pathname) {\n\treturn pathname.split('%25').map(decodeURI).join('%25');\n}\n\n/** @param {Record<string, string>} params */\nexport function decode_params(params) {\n\tfor (const key in params) {\n\t\t// input has already been decoded by decodeURI\n\t\t// now handle the rest\n\t\tparams[key] = decodeURIComponent(params[key]);\n\t}\n\n\treturn params;\n}\n\n/**\n * The error when a URL is malformed is not very helpful, so we augment it with the URI\n * @param {string} uri\n */\nexport function decode_uri(uri) {\n\ttry {\n\t\treturn decodeURI(uri);\n\t} catch (e) {\n\t\tif (e instanceof Error) {\n\t\t\te.message = `Failed to decode URI: ${uri}\\n` + e.message;\n\t\t}\n\t\tthrow e;\n\t}\n}\n\n/**\n * Returns everything up to the first `#` in a URL\n * @param {{href: string}} url_like\n */\nexport function strip_hash({ href }) {\n\treturn href.split('#')[0];\n}\n\n/**\n * @param {URL} url\n * @param {() => void} callback\n * @param {(search_param: string) => void} search_params_callback\n * @param {boolean} [allow_hash]\n */\nexport function make_trackable(url, callback, search_params_callback, allow_hash = false) {\n\tconst tracked = new URL(url);\n\n\tObject.defineProperty(tracked, 'searchParams', {\n\t\tvalue: new Proxy(tracked.searchParams, {\n\t\t\tget(obj, key) {\n\t\t\t\tif (key === 'get' || key === 'getAll' || key === 'has') {\n\t\t\t\t\treturn (/**@type {string}*/ param) => {\n\t\t\t\t\t\tsearch_params_callback(param);\n\t\t\t\t\t\treturn obj[key](param);\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// if they try to access something different from what is in `tracked_search_params_properties`\n\t\t\t\t// we track the whole url (entries, values, keys etc)\n\t\t\t\tcallback();\n\n\t\t\t\tconst value = Reflect.get(obj, key);\n\t\t\t\treturn typeof value === 'function' ? value.bind(obj) : value;\n\t\t\t}\n\t\t}),\n\t\tenumerable: true,\n\t\tconfigurable: true\n\t});\n\n\t/**\n\t * URL properties that could change during the lifetime of the page,\n\t * which excludes things like `origin`\n\t */\n\tconst tracked_url_properties = ['href', 'pathname', 'search', 'toString', 'toJSON'];\n\tif (allow_hash) tracked_url_properties.push('hash');\n\n\tfor (const property of tracked_url_properties) {\n\t\tObject.defineProperty(tracked, property, {\n\t\t\tget() {\n\t\t\t\tcallback();\n\t\t\t\t// @ts-expect-error\n\t\t\t\treturn url[property];\n\t\t\t},\n\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true\n\t\t});\n\t}\n\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\ttracked[Symbol.for('nodejs.util.inspect.custom')] = (depth, opts, inspect) => {\n\t\t\treturn inspect(url, opts);\n\t\t};\n\n\t\t// @ts-ignore\n\t\ttracked.searchParams[Symbol.for('nodejs.util.inspect.custom')] = (depth, opts, inspect) => {\n\t\t\treturn inspect(url.searchParams, opts);\n\t\t};\n\t}\n\n\tif ((DEV || !BROWSER) && !allow_hash) {\n\t\tdisable_hash(tracked);\n\t}\n\n\treturn tracked;\n}\n\n/**\n * Disallow access to `url.hash` on the server and in `load`\n * @param {URL} url\n */\nfunction disable_hash(url) {\n\tallow_nodejs_console_log(url);\n\n\tObject.defineProperty(url, 'hash', {\n\t\tget() {\n\t\t\tthrow new Error(\n\t\t\t\t'Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead'\n\t\t\t);\n\t\t}\n\t});\n}\n\n/**\n * Disallow access to `url.search` and `url.searchParams` during prerendering\n * @param {URL} url\n */\nexport function disable_search(url) {\n\tallow_nodejs_console_log(url);\n\n\tfor (const property of ['search', 'searchParams']) {\n\t\tObject.defineProperty(url, property, {\n\t\t\tget() {\n\t\t\t\tthrow new Error(`Cannot access url.${property} on a page with prerendering enabled`);\n\t\t\t}\n\t\t});\n\t}\n}\n\n/**\n * Allow URL to be console logged, bypassing disabled properties.\n * @param {URL} url\n */\nfunction allow_nodejs_console_log(url) {\n\tif (!BROWSER) {\n\t\t// @ts-ignore\n\t\turl[Symbol.for('nodejs.util.inspect.custom')] = (depth, opts, inspect) => {\n\t\t\treturn inspect(new URL(url), opts);\n\t\t};\n\t}\n}\n","/**\n * Hash using djb2\n * @param {import('types').StrictBody[]} values\n */\nexport function hash(...values) {\n\tlet hash = 5381;\n\n\tfor (const value of values) {\n\t\tif (typeof value === 'string') {\n\t\t\tlet i = value.length;\n\t\t\twhile (i) hash = (hash * 33) ^ value.charCodeAt(--i);\n\t\t} else if (ArrayBuffer.isView(value)) {\n\t\t\tconst buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);\n\t\t\tlet i = buffer.length;\n\t\t\twhile (i) hash = (hash * 33) ^ buffer[--i];\n\t\t} else {\n\t\t\tthrow new TypeError('value must be a string or TypedArray');\n\t\t}\n\t}\n\n\treturn (hash >>> 0).toString(36);\n}\n","import { BROWSER } from 'esm-env';\n\nexport const text_encoder = new TextEncoder();\nexport const text_decoder = new TextDecoder();\n\n/**\n * Like node's path.relative, but without using node\n * @param {string} from\n * @param {string} to\n */\nexport function get_relative_path(from, to) {\n\tconst from_parts = from.split(/[/\\\\]/);\n\tconst to_parts = to.split(/[/\\\\]/);\n\tfrom_parts.pop(); // get dirname\n\n\twhile (from_parts[0] === to_parts[0]) {\n\t\tfrom_parts.shift();\n\t\tto_parts.shift();\n\t}\n\n\tlet i = from_parts.length;\n\twhile (i--) from_parts[i] = '..';\n\n\treturn from_parts.concat(to_parts).join('/');\n}\n\n/**\n * @param {Uint8Array} bytes\n * @returns {string}\n */\nexport function base64_encode(bytes) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\treturn globalThis.Buffer.from(bytes).toString('base64');\n\t}\n\n\tlet binary = '';\n\n\tfor (let i = 0; i < bytes.length; i++) {\n\t\tbinary += String.fromCharCode(bytes[i]);\n\t}\n\n\treturn btoa(binary);\n}\n\n/**\n * @param {string} encoded\n * @returns {Uint8Array}\n */\nexport function base64_decode(encoded) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\tconst buffer = globalThis.Buffer.from(encoded, 'base64');\n\t\treturn new Uint8Array(buffer);\n\t}\n\n\tconst binary = atob(encoded);\n\tconst bytes = new Uint8Array(binary.length);\n\n\tfor (let i = 0; i < binary.length; i++) {\n\t\tbytes[i] = binary.charCodeAt(i);\n\t}\n\n\treturn bytes;\n}\n","import { BROWSER, DEV } from 'esm-env';\nimport { hash } from '../../utils/hash.js';\nimport { base64_decode } from '../utils.js';\n\nlet loading = 0;\n\n/** @type {typeof fetch} */\nconst native_fetch = BROWSER ? window.fetch : /** @type {any} */ (() => {});\n\nexport function lock_fetch() {\n\tloading += 1;\n}\n\nexport function unlock_fetch() {\n\tloading -= 1;\n}\n\nif (DEV && BROWSER) {\n\tlet can_inspect_stack_trace = false;\n\n\t// detect whether async stack traces work\n\t// eslint-disable-next-line @typescript-eslint/require-await\n\tconst check_stack_trace = async () => {\n\t\tconst stack = /** @type {string} */ (new Error().stack);\n\t\tcan_inspect_stack_trace = stack.includes('check_stack_trace');\n\t};\n\n\tvoid check_stack_trace();\n\n\t/**\n\t * @param {RequestInfo | URL} input\n\t * @param {RequestInit & Record<string, any> | undefined} init\n\t */\n\twindow.fetch = (input, init) => {\n\t\t// Check if fetch was called via load_node. the lock method only checks if it was called at the\n\t\t// same time, but not necessarily if it was called from `load`.\n\t\t// We use just the filename as the method name sometimes does not appear on the CI.\n\t\tconst url = input instanceof Request ? input.url : input.toString();\n\t\tconst stack_array = /** @type {string} */ (new Error().stack).split('\\n');\n\t\t// We need to do a cutoff because Safari and Firefox maintain the stack\n\t\t// across events and for example traces a `fetch` call triggered from a button\n\t\t// back to the creation of the event listener and the element creation itself,\n\t\t// where at some point client.js will show up, leading to false positives.\n\t\tconst cutoff = stack_array.findIndex((a) => a.includes('load@') || a.includes('at load'));\n\t\tconst stack = stack_array.slice(0, cutoff + 2).join('\\n');\n\n\t\tconst in_load_heuristic = can_inspect_stack_trace\n\t\t\t? stack.includes('src/runtime/client/client.js')\n\t\t\t: loading;\n\n\t\t// This flag is set in initial_fetch and subsequent_fetch\n\t\tconst used_kit_fetch = init?.__sveltekit_fetch__;\n\n\t\tif (in_load_heuristic && !used_kit_fetch) {\n\t\t\tconsole.warn(\n\t\t\t\t`Loading ${url} using \\`window.fetch\\`. For best results, use the \\`fetch\\` that is passed to your \\`load\\` function: https://svelte.dev/docs/kit/load#making-fetch-requests`\n\t\t\t);\n\t\t}\n\n\t\tconst method = input instanceof Request ? input.method : init?.method || 'GET';\n\n\t\tif (method !== 'GET') {\n\t\t\tcache.delete(build_selector(input));\n\t\t}\n\n\t\treturn native_fetch(input, init);\n\t};\n} else if (BROWSER) {\n\twindow.fetch = (input, init) => {\n\t\tconst method = input instanceof Request ? input.method : init?.method || 'GET';\n\n\t\tif (method !== 'GET') {\n\t\t\tcache.delete(build_selector(input));\n\t\t}\n\n\t\treturn native_fetch(input, init);\n\t};\n}\n\nconst cache = new Map();\n\n/**\n * Should be called on the initial run of load functions that hydrate the page.\n * Saves any requests with cache-control max-age to the cache.\n * @param {URL | string} resource\n * @param {RequestInit} [opts]\n */\nexport function initial_fetch(resource, opts) {\n\tconst selector = build_selector(resource, opts);\n\n\tconst script = document.querySelector(selector);\n\tif (script?.textContent) {\n\t\tscript.remove(); // In case multiple script tags match the same selector\n\t\tlet { body, ...init } = JSON.parse(script.textContent);\n\n\t\tconst ttl = script.getAttribute('data-ttl');\n\t\tif (ttl) cache.set(selector, { body, init, ttl: 1000 * Number(ttl) });\n\t\tconst b64 = script.getAttribute('data-b64');\n\t\tif (b64 !== null) {\n\t\t\t// Can't use native_fetch('data:...;base64,${body}')\n\t\t\t// csp can block the request\n\t\t\tbody = base64_decode(body);\n\t\t}\n\n\t\treturn Promise.resolve(new Response(body, init));\n\t}\n\n\treturn DEV ? dev_fetch(resource, opts) : window.fetch(resource, opts);\n}\n\n/**\n * Tries to get the response from the cache, if max-age allows it, else does a fetch.\n * @param {URL | string} resource\n * @param {string} resolved\n * @param {RequestInit} [opts]\n */\nexport function subsequent_fetch(resource, resolved, opts) {\n\tif (cache.size > 0) {\n\t\tconst selector = build_selector(resource, opts);\n\t\tconst cached = cache.get(selector);\n\t\tif (cached) {\n\t\t\t// https://developer.mozilla.org/en-US/docs/Web/API/Request/cache#value\n\t\t\tif (\n\t\t\t\tperformance.now() < cached.ttl &&\n\t\t\t\t['default', 'force-cache', 'only-if-cached', undefined].includes(opts?.cache)\n\t\t\t) {\n\t\t\t\treturn new Response(cached.body, cached.init);\n\t\t\t}\n\n\t\t\tcache.delete(selector);\n\t\t}\n\t}\n\n\treturn DEV ? dev_fetch(resolved, opts) : window.fetch(resolved, opts);\n}\n\n/**\n * @param {RequestInfo | URL} resource\n * @param {RequestInit & Record<string, any> | undefined} opts\n */\nexport function dev_fetch(resource, opts) {\n\tconst patched_opts = { ...opts };\n\t// This assigns the __sveltekit_fetch__ flag and makes it non-enumerable\n\tObject.defineProperty(patched_opts, '__sveltekit_fetch__', {\n\t\tvalue: true,\n\t\twritable: true,\n\t\tconfigurable: true\n\t});\n\treturn window.fetch(resource, patched_opts);\n}\n\n/**\n * Build the cache key for a given request\n * @param {URL | RequestInfo} resource\n * @param {RequestInit} [opts]\n */\nfunction build_selector(resource, opts) {\n\tconst url = JSON.stringify(resource instanceof Request ? resource.url : resource);\n\n\tlet selector = `script[data-sveltekit-fetched][data-url=${url}]`;\n\n\tif (opts?.headers || opts?.body) {\n\t\t/** @type {import('types').StrictBody[]} */\n\t\tconst values = [];\n\n\t\tif (opts.headers) {\n\t\t\tvalues.push([...new Headers(opts.headers)].join(','));\n\t\t}\n\n\t\tif (opts.body && (typeof opts.body === 'string' || ArrayBuffer.isView(opts.body))) {\n\t\t\tvalues.push(opts.body);\n\t\t}\n\n\t\tselector += `[data-hash=\"${hash(...values)}\"]`;\n\t}\n\n\treturn selector;\n}\n","import { BROWSER } from 'esm-env';\n\nconst param_pattern = /^(\\[)?(\\.\\.\\.)?(\\w+)(?:=(\\w+))?(\\])?$/;\n\n/**\n * Creates the regex pattern, extracts parameter names, and generates types for a route\n * @param {string} id\n */\nexport function parse_route_id(id) {\n\t/** @type {import('types').RouteParam[]} */\n\tconst params = [];\n\n\tconst pattern =\n\t\tid === '/'\n\t\t\t? /^\\/$/\n\t\t\t: new RegExp(\n\t\t\t\t\t`^${get_route_segments(id)\n\t\t\t\t\t\t.map((segment) => {\n\t\t\t\t\t\t\t// special case — /[...rest]/ could contain zero segments\n\t\t\t\t\t\t\tconst rest_match = /^\\[\\.\\.\\.(\\w+)(?:=(\\w+))?\\]$/.exec(segment);\n\t\t\t\t\t\t\tif (rest_match) {\n\t\t\t\t\t\t\t\tparams.push({\n\t\t\t\t\t\t\t\t\tname: rest_match[1],\n\t\t\t\t\t\t\t\t\tmatcher: rest_match[2],\n\t\t\t\t\t\t\t\t\toptional: false,\n\t\t\t\t\t\t\t\t\trest: true,\n\t\t\t\t\t\t\t\t\tchained: true\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\treturn '(?:/([^]*))?';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// special case — /[[optional]]/ could contain zero segments\n\t\t\t\t\t\t\tconst optional_match = /^\\[\\[(\\w+)(?:=(\\w+))?\\]\\]$/.exec(segment);\n\t\t\t\t\t\t\tif (optional_match) {\n\t\t\t\t\t\t\t\tparams.push({\n\t\t\t\t\t\t\t\t\tname: optional_match[1],\n\t\t\t\t\t\t\t\t\tmatcher: optional_match[2],\n\t\t\t\t\t\t\t\t\toptional: true,\n\t\t\t\t\t\t\t\t\trest: false,\n\t\t\t\t\t\t\t\t\tchained: true\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\treturn '(?:/([^/]+))?';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (!segment) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tconst parts = segment.split(/\\[(.+?)\\](?!\\])/);\n\t\t\t\t\t\t\tconst result = parts\n\t\t\t\t\t\t\t\t.map((content, i) => {\n\t\t\t\t\t\t\t\t\tif (i % 2) {\n\t\t\t\t\t\t\t\t\t\tif (content.startsWith('x+')) {\n\t\t\t\t\t\t\t\t\t\t\treturn escape(String.fromCharCode(parseInt(content.slice(2), 16)));\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif (content.startsWith('u+')) {\n\t\t\t\t\t\t\t\t\t\t\treturn escape(\n\t\t\t\t\t\t\t\t\t\t\t\tString.fromCharCode(\n\t\t\t\t\t\t\t\t\t\t\t\t\t...content\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.slice(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.split('-')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.map((code) => parseInt(code, 16))\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t// We know the match cannot be null in the browser because manifest generation\n\t\t\t\t\t\t\t\t\t\t// would have invoked this during build and failed if we hit an invalid\n\t\t\t\t\t\t\t\t\t\t// param/matcher name with non-alphanumeric character.\n\t\t\t\t\t\t\t\t\t\tconst match = /** @type {RegExpExecArray} */ (param_pattern.exec(content));\n\t\t\t\t\t\t\t\t\t\tif (!BROWSER && !match) {\n\t\t\t\t\t\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t\t\t\t\t\t`Invalid param: ${content}. Params and matcher names can only have underscores and alphanumeric characters.`\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tconst [, is_optional, is_rest, name, matcher] = match;\n\t\t\t\t\t\t\t\t\t\t// It's assumed that the following invalid route id cases are already checked\n\t\t\t\t\t\t\t\t\t\t// - unbalanced brackets\n\t\t\t\t\t\t\t\t\t\t// - optional param following rest param\n\n\t\t\t\t\t\t\t\t\t\tparams.push({\n\t\t\t\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\t\t\t\tmatcher,\n\t\t\t\t\t\t\t\t\t\t\toptional: !!is_optional,\n\t\t\t\t\t\t\t\t\t\t\trest: !!is_rest,\n\t\t\t\t\t\t\t\t\t\t\tchained: is_rest ? i === 1 && parts[0] === '' : false\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\treturn is_rest ? '([^]*?)' : is_optional ? '([^/]*)?' : '([^/]+?)';\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturn escape(content);\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t.join('');\n\n\t\t\t\t\t\t\treturn '/' + result;\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.join('')}/?$`\n\t\t\t\t);\n\n\treturn { pattern, params };\n}\n\nconst optional_param_regex = /\\/\\[\\[\\w+?(?:=\\w+)?\\]\\]/;\n\n/**\n * Removes optional params from a route ID.\n * @param {string} id\n * @returns The route id with optional params removed\n */\nexport function remove_optional_params(id) {\n\treturn id.replace(optional_param_regex, '');\n}\n\n/**\n * Returns `false` for `(group)` segments\n * @param {string} segment\n */\nfunction affects_path(segment) {\n\treturn segment !== '' && !/^\\([^)]+\\)$/.test(segment);\n}\n\n/**\n * Splits a route id into its segments, removing segments that\n * don't affect the path (i.e. groups). The root route is represented by `/`\n * and will be returned as `['']`.\n * @param {string} route\n * @returns string[]\n */\nexport function get_route_segments(route) {\n\treturn route.slice(1).split('/').filter(affects_path);\n}\n\n/**\n * @param {RegExpMatchArray} match\n * @param {import('types').RouteParam[]} params\n * @param {Record<string, import('@sveltejs/kit').ParamMatcher>} matchers\n */\nexport function exec(match, params, matchers) {\n\t/** @type {Record<string, string>} */\n\tconst result = {};\n\n\tconst values = match.slice(1);\n\tconst values_needing_match = values.filter((value) => value !== undefined);\n\n\tlet buffered = 0;\n\n\tfor (let i = 0; i < params.length; i += 1) {\n\t\tconst param = params[i];\n\t\tlet value = values[i - buffered];\n\n\t\t// in the `[[a=b]]/.../[...rest]` case, if one or more optional parameters\n\t\t// weren't matched, roll the skipped values into the rest\n\t\tif (param.chained && param.rest && buffered) {\n\t\t\tvalue = values\n\t\t\t\t.slice(i - buffered, i + 1)\n\t\t\t\t.filter((s) => s)\n\t\t\t\t.join('/');\n\n\t\t\tbuffered = 0;\n\t\t}\n\n\t\t// if `value` is undefined, it means this is an optional or rest parameter\n\t\tif (value === undefined) {\n\t\t\tif (param.rest) result[param.name] = '';\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (!param.matcher || matchers[param.matcher](value)) {\n\t\t\tresult[param.name] = value;\n\n\t\t\t// Now that the params match, reset the buffer if the next param isn't the [...rest]\n\t\t\t// and the next value is defined, otherwise the buffer will cause us to skip values\n\t\t\tconst next_param = params[i + 1];\n\t\t\tconst next_value = values[i + 1];\n\t\t\tif (next_param && !next_param.rest && next_param.optional && next_value && param.chained) {\n\t\t\t\tbuffered = 0;\n\t\t\t}\n\n\t\t\t// There are no more params and no more values, but all non-empty values have been matched\n\t\t\tif (\n\t\t\t\t!next_param &&\n\t\t\t\t!next_value &&\n\t\t\t\tObject.keys(result).length === values_needing_match.length\n\t\t\t) {\n\t\t\t\tbuffered = 0;\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\t// in the `/[[a=b]]/...` case, if the value didn't satisfy the matcher,\n\t\t// keep track of the number of skipped optional parameters and continue\n\t\tif (param.optional && param.chained) {\n\t\t\tbuffered++;\n\t\t\tcontinue;\n\t\t}\n\n\t\t// otherwise, if the matcher returns `false`, the route did not match\n\t\treturn;\n\t}\n\n\tif (buffered) return;\n\treturn result;\n}\n\n/** @param {string} str */\nfunction escape(str) {\n\treturn (\n\t\tstr\n\t\t\t.normalize()\n\t\t\t// escape [ and ] before escaping other characters, since they are used in the replacements\n\t\t\t.replace(/[[\\]]/g, '\\\\$&')\n\t\t\t// replace %, /, ? and # with their encoded versions because decode_pathname leaves them untouched\n\t\t\t.replace(/%/g, '%25')\n\t\t\t.replace(/\\//g, '%2[Ff]')\n\t\t\t.replace(/\\?/g, '%3[Ff]')\n\t\t\t.replace(/#/g, '%23')\n\t\t\t// escape characters that have special meaning in regex\n\t\t\t.replace(/[.*+?^${}()|\\\\]/g, '\\\\$&')\n\t);\n}\n\nconst basic_param_pattern = /\\[(\\[)?(\\.\\.\\.)?(\\w+?)(?:=(\\w+))?\\]\\]?/g;\n\n/**\n * Populate a route ID with params to resolve a pathname.\n * @example\n * ```js\n * resolveRoute(\n * `/blog/[slug]/[...somethingElse]`,\n * {\n * slug: 'hello-world',\n * somethingElse: 'something/else'\n * }\n * ); // `/blog/hello-world/something/else`\n * ```\n * @param {string} id\n * @param {Record<string, string | undefined>} params\n * @returns {string}\n */\nexport function resolve_route(id, params) {\n\tconst segments = get_route_segments(id);\n\tconst has_id_trailing_slash = id != '/' && id.endsWith('/');\n\n\treturn (\n\t\t'/' +\n\t\tsegments\n\t\t\t.map((segment) =>\n\t\t\t\tsegment.replace(basic_param_pattern, (_, optional, rest, name) => {\n\t\t\t\t\tconst param_value = params[name];\n\n\t\t\t\t\t// This is nested so TS correctly narrows the type\n\t\t\t\t\tif (!param_value) {\n\t\t\t\t\t\tif (optional) return '';\n\t\t\t\t\t\tif (rest && param_value !== undefined) return '';\n\t\t\t\t\t\tthrow new Error(`Missing parameter '${name}' in route ${id}`);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (param_value.startsWith('/') || param_value.endsWith('/'))\n\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t`Parameter '${name}' in route ${id} cannot start or end with a slash -- this would cause an invalid route like foo//bar`\n\t\t\t\t\t\t);\n\t\t\t\t\treturn param_value;\n\t\t\t\t})\n\t\t\t)\n\t\t\t.filter(Boolean)\n\t\t\t.join('/') +\n\t\t(has_id_trailing_slash ? '/' : '')\n\t);\n}\n\n/**\n * @param {import('types').SSRNode} node\n * @returns {boolean}\n */\nexport function has_server_load(node) {\n\treturn node.server?.load !== undefined || node.server?.trailingSlash !== undefined;\n}\n","import { exec, parse_route_id } from '../../utils/routing.js';\n\n/**\n * @param {import('./types.js').SvelteKitApp} app\n * @returns {import('types').CSRRoute[]}\n */\nexport function parse({ nodes, server_loads, dictionary, matchers }) {\n\tconst layouts_with_server_load = new Set(server_loads);\n\n\treturn Object.entries(dictionary).map(([id, [leaf, layouts, errors]]) => {\n\t\tconst { pattern, params } = parse_route_id(id);\n\n\t\t/** @type {import('types').CSRRoute} */\n\t\tconst route = {\n\t\t\tid,\n\t\t\t/** @param {string} path */\n\t\t\texec: (path) => {\n\t\t\t\tconst match = pattern.exec(path);\n\t\t\t\tif (match) return exec(match, params, matchers);\n\t\t\t},\n\t\t\terrors: [1, ...(errors || [])].map((n) => nodes[n]),\n\t\t\tlayouts: [0, ...(layouts || [])].map(create_layout_loader),\n\t\t\tleaf: create_leaf_loader(leaf)\n\t\t};\n\n\t\t// bit of a hack, but ensures that layout/error node lists are the same\n\t\t// length, without which the wrong data will be applied if the route\n\t\t// manifest looks like `[[a, b], [c,], d]`\n\t\troute.errors.length = route.layouts.length = Math.max(\n\t\t\troute.errors.length,\n\t\t\troute.layouts.length\n\t\t);\n\n\t\treturn route;\n\t});\n\n\t/**\n\t * @param {number} id\n\t * @returns {[boolean, import('types').CSRPageNodeLoader]}\n\t */\n\tfunction create_leaf_loader(id) {\n\t\t// whether or not the route uses the server data is\n\t\t// encoded using the ones' complement, to save space\n\t\tconst uses_server_data = id < 0;\n\t\tif (uses_server_data) id = ~id;\n\t\treturn [uses_server_data, nodes[id]];\n\t}\n\n\t/**\n\t * @param {number | undefined} id\n\t * @returns {[boolean, import('types').CSRPageNodeLoader] | undefined}\n\t */\n\tfunction create_layout_loader(id) {\n\t\t// whether or not the layout uses the server data is\n\t\t// encoded in the layouts array, to save space\n\t\treturn id === undefined ? id : [layouts_with_server_load.has(id), nodes[id]];\n\t}\n}\n\n/**\n * @param {import('types').CSRRouteServer} input\n * @param {import('types').CSRPageNodeLoader[]} app_nodes Will be modified if a new node is loaded that's not already in the array\n * @returns {import('types').CSRRoute}\n */\nexport function parse_server_route({ nodes, id, leaf, layouts, errors }, app_nodes) {\n\treturn {\n\t\tid,\n\t\texec: () => ({}), // dummy function; exec already happened on the server\n\t\t// By writing to app_nodes only when a loader at that index is not already defined,\n\t\t// we ensure that loaders have referential equality when they load the same node.\n\t\t// Code elsewhere in client.js relies on this referential equality to determine\n\t\t// if a loader is different and should therefore (re-)run.\n\t\terrors: errors.map((n) => (n ? (app_nodes[n] ||= nodes[n]) : undefined)),\n\t\tlayouts: layouts.map((n) => (n ? [n[0], (app_nodes[n[1]] ||= nodes[n[1]])] : undefined)),\n\t\tleaf: [leaf[0], (app_nodes[leaf[1]] ||= nodes[leaf[1]])]\n\t};\n}\n","/**\n * Read a value from `sessionStorage`\n * @param {string} key\n * @param {(value: string) => any} parse\n */\n/*@__NO_SIDE_EFFECTS__*/\nexport function get(key, parse = JSON.parse) {\n\ttry {\n\t\treturn parse(sessionStorage[key]);\n\t} catch {\n\t\t// do nothing\n\t}\n}\n\n/**\n * Write a value to `sessionStorage`\n * @param {string} key\n * @param {any} value\n * @param {(value: any) => string} stringify\n */\nexport function set(key, value, stringify = JSON.stringify) {\n\tconst data = stringify(value);\n\ttry {\n\t\tsessionStorage[key] = data;\n\t} catch {\n\t\t// do nothing\n\t}\n}\n","export const base = __SVELTEKIT_PAYLOAD__?.base ?? __SVELTEKIT_PATHS_BASE__;\nexport const assets = __SVELTEKIT_PAYLOAD__?.assets ?? base ?? __SVELTEKIT_PATHS_ASSETS__;\nexport const app_dir = __SVELTEKIT_APP_DIR__;\nexport const hash_routing = __SVELTEKIT_HASH_ROUTING__;\n","export const SNAPSHOT_KEY = 'sveltekit:snapshot';\nexport const SCROLL_KEY = 'sveltekit:scroll';\nexport const STATES_KEY = 'sveltekit:states';\nexport const PAGE_URL_KEY = 'sveltekit:pageurl';\n\nexport const HISTORY_INDEX = 'sveltekit:history';\nexport const NAVIGATION_INDEX = 'sveltekit:navigation';\n\nexport const PRELOAD_PRIORITIES = /** @type {const} */ ({\n\ttap: 1,\n\thover: 2,\n\tviewport: 3,\n\teager: 4,\n\toff: -1,\n\tfalse: -1\n});\n","import { BROWSER, DEV } from 'esm-env';\nimport { writable } from 'svelte/store';\nimport { assets } from '$app/paths';\nimport { version } from '__sveltekit/environment';\nimport { PRELOAD_PRIORITIES } from './constants.js';\n\n/* global __SVELTEKIT_APP_VERSION_FILE__, __SVELTEKIT_APP_VERSION_POLL_INTERVAL__ */\n\nexport const origin = BROWSER ? location.origin : '';\n\n/** @param {string | URL} url */\nexport function resolve_url(url) {\n\tif (url instanceof URL) return url;\n\n\tlet baseURI = document.baseURI;\n\n\tif (!baseURI) {\n\t\tconst baseTags = document.getElementsByTagName('base');\n\t\tbaseURI = baseTags.length ? baseTags[0].href : document.URL;\n\t}\n\n\treturn new URL(url, baseURI);\n}\n\nexport function scroll_state() {\n\treturn {\n\t\tx: pageXOffset,\n\t\ty: pageYOffset\n\t};\n}\n\nconst warned = new WeakSet();\n\n/** @typedef {keyof typeof valid_link_options} LinkOptionName */\n\nconst valid_link_options = /** @type {const} */ ({\n\t'preload-code': ['', 'off', 'false', 'tap', 'hover', 'viewport', 'eager'],\n\t'preload-data': ['', 'off', 'false', 'tap', 'hover'],\n\tkeepfocus: ['', 'true', 'off', 'false'],\n\tnoscroll: ['', 'true', 'off', 'false'],\n\treload: ['', 'true', 'off', 'false'],\n\treplacestate: ['', 'true', 'off', 'false']\n});\n\n/**\n * @template {LinkOptionName} T\n * @typedef {typeof valid_link_options[T][number]} ValidLinkOptions\n */\n\n/**\n * @template {LinkOptionName} T\n * @param {Element} element\n * @param {T} name\n */\nfunction link_option(element, name) {\n\tconst value = /** @type {ValidLinkOptions<T> | null} */ (\n\t\telement.getAttribute(`data-sveltekit-${name}`)\n\t);\n\n\tif (DEV) {\n\t\tvalidate_link_option(element, name, value);\n\t}\n\n\treturn value;\n}\n\n/**\n * @template {LinkOptionName} T\n * @template {ValidLinkOptions<T> | null} U\n * @param {Element} element\n * @param {T} name\n * @param {U} value\n */\nfunction validate_link_option(element, name, value) {\n\tif (value === null) return;\n\n\t// @ts-expect-error - includes is dumb\n\tif (!warned.has(element) && !valid_link_options[name].includes(value)) {\n\t\tconsole.error(\n\t\t\t`Unexpected value for ${name} — should be one of ${valid_link_options[name]\n\t\t\t\t.map((option) => JSON.stringify(option))\n\t\t\t\t.join(', ')}`,\n\t\t\telement\n\t\t);\n\n\t\twarned.add(element);\n\t}\n}\n\nconst levels = {\n\t...PRELOAD_PRIORITIES,\n\t'': PRELOAD_PRIORITIES.hover\n};\n\n/**\n * @param {Element} element\n * @returns {Element | null}\n */\nfunction parent_element(element) {\n\tlet parent = element.assignedSlot ?? element.parentNode;\n\n\t// @ts-expect-error handle shadow roots\n\tif (parent?.nodeType === 11) parent = parent.host;\n\n\treturn /** @type {Element} */ (parent);\n}\n\n/**\n * @param {Element} element\n * @param {Element} target\n */\nexport function find_anchor(element, target) {\n\twhile (element && element !== target) {\n\t\tif (element.nodeName.toUpperCase() === 'A' && element.hasAttribute('href')) {\n\t\t\treturn /** @type {HTMLAnchorElement | SVGAElement} */ (element);\n\t\t}\n\n\t\telement = /** @type {Element} */ (parent_element(element));\n\t}\n}\n\n/**\n * @param {HTMLAnchorElement | SVGAElement} a\n * @param {string} base\n * @param {boolean} uses_hash_router\n */\nexport function get_link_info(a, base, uses_hash_router) {\n\t/** @type {URL | undefined} */\n\tlet url;\n\n\ttry {\n\t\turl = new URL(a instanceof SVGAElement ? a.href.baseVal : a.href, document.baseURI);\n\n\t\t// if the hash doesn't start with `#/` then it's probably linking to an id on the current page\n\t\tif (uses_hash_router && url.hash.match(/^#[^/]/)) {\n\t\t\tconst route = location.hash.split('#')[1] || '/';\n\t\t\turl.hash = `#${route}${url.hash}`;\n\t\t}\n\t} catch {}\n\n\tconst target = a instanceof SVGAElement ? a.target.baseVal : a.target;\n\n\tconst external =\n\t\t!url ||\n\t\t!!target ||\n\t\tis_external_url(url, base, uses_hash_router) ||\n\t\t(a.getAttribute('rel') || '').split(/\\s+/).includes('external');\n\n\tconst download = url?.origin === origin && a.hasAttribute('download');\n\n\treturn { url, external, target, download };\n}\n\n/**\n * @param {HTMLFormElement | HTMLAnchorElement | SVGAElement} element\n */\nexport function get_router_options(element) {\n\t/** @type {ValidLinkOptions<'keepfocus'> | null} */\n\tlet keepfocus = null;\n\n\t/** @type {ValidLinkOptions<'noscroll'> | null} */\n\tlet noscroll = null;\n\n\t/** @type {ValidLinkOptions<'preload-code'> | null} */\n\tlet preload_code = null;\n\n\t/** @type {ValidLinkOptions<'preload-data'> | null} */\n\tlet preload_data = null;\n\n\t/** @type {ValidLinkOptions<'reload'> | null} */\n\tlet reload = null;\n\n\t/** @type {ValidLinkOptions<'replacestate'> | null} */\n\tlet replace_state = null;\n\n\t/** @type {Element} */\n\tlet el = element;\n\n\twhile (el && el !== document.documentElement) {\n\t\tif (preload_code === null) preload_code = link_option(el, 'preload-code');\n\t\tif (preload_data === null) preload_data = link_option(el, 'preload-data');\n\t\tif (keepfocus === null) keepfocus = link_option(el, 'keepfocus');\n\t\tif (noscroll === null) noscroll = link_option(el, 'noscroll');\n\t\tif (reload === null) reload = link_option(el, 'reload');\n\t\tif (replace_state === null) replace_state = link_option(el, 'replacestate');\n\n\t\tel = /** @type {Element} */ (parent_element(el));\n\t}\n\n\t/** @param {string | null} value */\n\tfunction get_option_state(value) {\n\t\tswitch (value) {\n\t\t\tcase '':\n\t\t\tcase 'true':\n\t\t\t\treturn true;\n\t\t\tcase 'off':\n\t\t\tcase 'false':\n\t\t\t\treturn false;\n\t\t\tdefault:\n\t\t\t\treturn undefined;\n\t\t}\n\t}\n\n\treturn {\n\t\tpreload_code: levels[preload_code ?? 'off'],\n\t\tpreload_data: levels[preload_data ?? 'off'],\n\t\tkeepfocus: get_option_state(keepfocus),\n\t\tnoscroll: get_option_state(noscroll),\n\t\treload: get_option_state(reload),\n\t\treplace_state: get_option_state(replace_state)\n\t};\n}\n\n/** @param {any} value */\nexport function notifiable_store(value) {\n\tconst store = writable(value);\n\tlet ready = true;\n\n\tfunction notify() {\n\t\tready = true;\n\t\tstore.update((val) => val);\n\t}\n\n\t/** @param {any} new_value */\n\tfunction set(new_value) {\n\t\tready = false;\n\t\tstore.set(new_value);\n\t}\n\n\t/** @param {(value: any) => void} run */\n\tfunction subscribe(run) {\n\t\t/** @type {any} */\n\t\tlet old_value;\n\t\treturn store.subscribe((new_value) => {\n\t\t\tif (old_value === undefined || (ready && new_value !== old_value)) {\n\t\t\t\trun((old_value = new_value));\n\t\t\t}\n\t\t});\n\t}\n\n\treturn { notify, set, subscribe };\n}\n\nexport const updated_listener = {\n\tv: () => {}\n};\n\nexport function create_updated_store() {\n\tconst { set, subscribe } = writable(false);\n\n\tif (DEV || !BROWSER) {\n\t\treturn {\n\t\t\tsubscribe,\n\t\t\t// eslint-disable-next-line @typescript-eslint/require-await\n\t\t\tcheck: async () => false\n\t\t};\n\t}\n\n\tconst interval = __SVELTEKIT_APP_VERSION_POLL_INTERVAL__;\n\n\t/** @type {NodeJS.Timeout} */\n\tlet timeout;\n\n\t/** @type {() => Promise<boolean>} */\n\tasync function check() {\n\t\tclearTimeout(timeout);\n\n\t\tif (interval) timeout = setTimeout(check, interval);\n\n\t\ttry {\n\t\t\tconst res = await fetch(`${assets}/${__SVELTEKIT_APP_VERSION_FILE__}`, {\n\t\t\t\theaders: {\n\t\t\t\t\tpragma: 'no-cache',\n\t\t\t\t\t'cache-control': 'no-cache'\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tif (!res.ok) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tconst data = await res.json();\n\t\t\tconst updated = data.version !== version;\n\n\t\t\tif (updated) {\n\t\t\t\tset(true);\n\t\t\t\tupdated_listener.v();\n\t\t\t\tclearTimeout(timeout);\n\t\t\t}\n\n\t\t\treturn updated;\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tif (interval) timeout = setTimeout(check, interval);\n\n\treturn {\n\t\tsubscribe,\n\t\tcheck\n\t};\n}\n\n/**\n * Is external if\n * - origin different\n * - path doesn't start with base\n * - uses hash router and pathname is more than base\n * @param {URL} url\n * @param {string} base\n * @param {boolean} hash_routing\n */\nexport function is_external_url(url, base, hash_routing) {\n\tif (url.origin !== origin || !url.pathname.startsWith(base)) {\n\t\treturn true;\n\t}\n\n\tif (hash_routing) {\n\t\treturn url.pathname !== location.pathname;\n\t}\n\n\treturn false;\n}\n\n/** @type {Set<string> | null} */\nlet seen = null;\n\n/**\n * Used for server-side resolution, to replicate Vite's CSS loading behaviour in production.\n *\n * Closely modelled after https://github.com/vitejs/vite/blob/3dd12f4724130fdf8ba44c6d3252ebdff407fd47/packages/vite/src/node/plugins/importAnalysisBuild.ts#L214\n * (which ideally we could just use directly, but it's not exported)\n * @param {string[]} deps\n */\nexport function load_css(deps) {\n\tif (__SVELTEKIT_CLIENT_ROUTING__) return;\n\n\tconst csp_nonce_meta = /** @type {HTMLMetaElement} */ (\n\t\tdocument.querySelector('meta[property=csp-nonce]')\n\t);\n\tconst csp_nonce = csp_nonce_meta?.nonce || csp_nonce_meta?.getAttribute('nonce');\n\n\tseen ??= new Set(\n\t\tArray.from(document.querySelectorAll('link[rel=\"stylesheet\"]')).map((link) => {\n\t\t\treturn /** @type {HTMLLinkElement} */ (link).href;\n\t\t})\n\t);\n\n\tfor (const dep of deps) {\n\t\tconst href = new URL(dep, document.baseURI).href;\n\n\t\tif (seen.has(href)) continue;\n\t\tseen.add(href);\n\n\t\tconst link = document.createElement('link');\n\t\tlink.rel = 'stylesheet';\n\t\tlink.crossOrigin = '';\n\t\tlink.href = dep;\n\t\tif (csp_nonce) {\n\t\t\tlink.setAttribute('nonce', csp_nonce);\n\t\t}\n\t\tdocument.head.appendChild(link);\n\t}\n}\n","/**\n * @param {Set<string>} expected\n */\nfunction validator(expected) {\n\t/**\n\t * @param {any} module\n\t * @param {string} [file]\n\t */\n\tfunction validate(module, file) {\n\t\tif (!module) return;\n\n\t\tfor (const key in module) {\n\t\t\tif (key[0] === '_' || expected.has(key)) continue; // key is valid in this module\n\n\t\t\tconst values = [...expected.values()];\n\n\t\t\tconst hint =\n\t\t\t\thint_for_supported_files(key, file?.slice(file.lastIndexOf('.'))) ??\n\t\t\t\t`valid exports are ${values.join(', ')}, or anything with a '_' prefix`;\n\n\t\t\tthrow new Error(`Invalid export '${key}'${file ? ` in ${file}` : ''} (${hint})`);\n\t\t}\n\t}\n\n\treturn validate;\n}\n\n/**\n * @param {string} key\n * @param {string} ext\n * @returns {string | void}\n */\nfunction hint_for_supported_files(key, ext = '.js') {\n\tconst supported_files = [];\n\n\tif (valid_layout_exports.has(key)) {\n\t\tsupported_files.push(`+layout${ext}`);\n\t}\n\n\tif (valid_page_exports.has(key)) {\n\t\tsupported_files.push(`+page${ext}`);\n\t}\n\n\tif (valid_layout_server_exports.has(key)) {\n\t\tsupported_files.push(`+layout.server${ext}`);\n\t}\n\n\tif (valid_page_server_exports.has(key)) {\n\t\tsupported_files.push(`+page.server${ext}`);\n\t}\n\n\tif (valid_server_exports.has(key)) {\n\t\tsupported_files.push(`+server${ext}`);\n\t}\n\n\tif (supported_files.length > 0) {\n\t\treturn `'${key}' is a valid export in ${supported_files.slice(0, -1).join(', ')}${\n\t\t\tsupported_files.length > 1 ? ' or ' : ''\n\t\t}${supported_files.at(-1)}`;\n\t}\n}\n\nconst valid_layout_exports = new Set([\n\t'load',\n\t'prerender',\n\t'csr',\n\t'ssr',\n\t'trailingSlash',\n\t'config'\n]);\nconst valid_page_exports = new Set([...valid_layout_exports, 'entries']);\nconst valid_layout_server_exports = new Set([...valid_layout_exports]);\nconst valid_page_server_exports = new Set([...valid_layout_server_exports, 'actions', 'entries']);\nconst valid_server_exports = new Set([\n\t'GET',\n\t'POST',\n\t'PATCH',\n\t'PUT',\n\t'DELETE',\n\t'OPTIONS',\n\t'HEAD',\n\t'fallback',\n\t'prerender',\n\t'trailingSlash',\n\t'config',\n\t'entries'\n]);\n\nexport const validate_layout_exports = validator(valid_layout_exports);\nexport const validate_page_exports = validator(valid_page_exports);\nexport const validate_layout_server_exports = validator(valid_layout_server_exports);\nexport const validate_page_server_exports = validator(valid_page_server_exports);\nexport const validate_server_exports = validator(valid_server_exports);\n","/**\n * Removes nullish values from an array.\n *\n * @template T\n * @param {Array<T>} arr\n */\nexport function compact(arr) {\n\treturn arr.filter(/** @returns {val is NonNullable<T>} */ (val) => val != null);\n}\n","import { HttpError, SvelteKitError } from '@sveltejs/kit/internal';\n\n/**\n * @param {unknown} err\n * @return {Error}\n */\nexport function coalesce_to_error(err) {\n\treturn err instanceof Error ||\n\t\t(err && /** @type {any} */ (err).name && /** @type {any} */ (err).message)\n\t\t? /** @type {Error} */ (err)\n\t\t: new Error(JSON.stringify(err));\n}\n\n/**\n * This is an identity function that exists to make TypeScript less\n * paranoid about people throwing things that aren't errors, which\n * frankly is not something we should care about\n * @param {unknown} error\n */\nexport function normalize_error(error) {\n\treturn /** @type {import('../exports/internal/index.js').Redirect | HttpError | SvelteKitError | Error} */ (\n\t\terror\n\t);\n}\n\n/**\n * @param {unknown} error\n */\nexport function get_status(error) {\n\treturn error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;\n}\n\n/**\n * @param {unknown} error\n */\nexport function get_message(error) {\n\treturn error instanceof SvelteKitError ? error.text : 'Internal Error';\n}\n","import { onMount } from 'svelte';\nimport { updated_listener } from './utils.js';\n\n/** @type {import('@sveltejs/kit').Page} */\nexport let page;\n\n/** @type {{ current: import('@sveltejs/kit').Navigation | null }} */\nexport let navigating;\n\n/** @type {{ current: boolean }} */\nexport let updated;\n\n// this is a bootleg way to tell if we're in old svelte or new svelte\nconst is_legacy =\n\tonMount.toString().includes('$$') || /function \\w+\\(\\) \\{\\}/.test(onMount.toString());\n\nif (is_legacy) {\n\tpage = {\n\t\tdata: {},\n\t\tform: null,\n\t\terror: null,\n\t\tparams: {},\n\t\troute: { id: null },\n\t\tstate: {},\n\t\tstatus: -1,\n\t\turl: new URL('https://example.com')\n\t};\n\tnavigating = { current: null };\n\tupdated = { current: false };\n} else {\n\tpage = new (class Page {\n\t\tdata = $state.raw({});\n\t\tform = $state.raw(null);\n\t\terror = $state.raw(null);\n\t\tparams = $state.raw({});\n\t\troute = $state.raw({ id: null });\n\t\tstate = $state.raw({});\n\t\tstatus = $state.raw(-1);\n\t\turl = $state.raw(new URL('https://example.com'));\n\t})();\n\n\tnavigating = new (class Navigating {\n\t\tcurrent = $state.raw(null);\n\t})();\n\n\tupdated = new (class Updated {\n\t\tcurrent = $state.raw(false);\n\t})();\n\tupdated_listener.v = () => (updated.current = true);\n}\n\n/**\n * @param {import('@sveltejs/kit').Page} new_page\n */\nexport function update(new_page) {\n\tObject.assign(page, new_page);\n}\n","/** @import { Tracer, Span, SpanContext } from '@opentelemetry/api' */\n\n/**\n * Tracer implementation that does nothing (null object).\n * @type {Tracer}\n */\nexport const noop_tracer = {\n\t/**\n\t * @returns {Span}\n\t */\n\tstartSpan() {\n\t\treturn noop_span;\n\t},\n\n\t/**\n\t * @param {unknown} _name\n\t * @param {unknown} arg_1\n\t * @param {unknown} [arg_2]\n\t * @param {Function} [arg_3]\n\t * @returns {unknown}\n\t */\n\tstartActiveSpan(_name, arg_1, arg_2, arg_3) {\n\t\tif (typeof arg_1 === 'function') {\n\t\t\treturn arg_1(noop_span);\n\t\t}\n\t\tif (typeof arg_2 === 'function') {\n\t\t\treturn arg_2(noop_span);\n\t\t}\n\t\tif (typeof arg_3 === 'function') {\n\t\t\treturn arg_3(noop_span);\n\t\t}\n\t}\n};\n\n/**\n * @type {Span}\n */\nexport const noop_span = {\n\tspanContext() {\n\t\treturn noop_span_context;\n\t},\n\tsetAttribute() {\n\t\treturn this;\n\t},\n\tsetAttributes() {\n\t\treturn this;\n\t},\n\taddEvent() {\n\t\treturn this;\n\t},\n\tsetStatus() {\n\t\treturn this;\n\t},\n\tupdateName() {\n\t\treturn this;\n\t},\n\tend() {\n\t\treturn this;\n\t},\n\tisRecording() {\n\t\treturn false;\n\t},\n\trecordException() {\n\t\treturn this;\n\t},\n\taddLink() {\n\t\treturn this;\n\t},\n\taddLinks() {\n\t\treturn this;\n\t}\n};\n\n/**\n * @type {SpanContext}\n */\nconst noop_span_context = {\n\ttraceId: '',\n\tspanId: '',\n\ttraceFlags: 0\n};\n","import { BROWSER, DEV } from 'esm-env';\nimport * as svelte from 'svelte';\nimport { HttpError, Redirect, SvelteKitError } from '@sveltejs/kit/internal';\nconst { onMount, tick } = svelte;\n// Svelte 4 and under don't have `untrack`, so we have to fallback if `untrack` is not exported\nconst untrack = svelte.untrack ?? ((value) => value());\nimport {\n\tdecode_params,\n\tdecode_pathname,\n\tstrip_hash,\n\tmake_trackable,\n\tnormalize_path\n} from '../../utils/url.js';\nimport { dev_fetch, initial_fetch, lock_fetch, subsequent_fetch, unlock_fetch } from './fetcher.js';\nimport { parse, parse_server_route } from './parse.js';\nimport * as storage from './session-storage.js';\nimport {\n\tfind_anchor,\n\tresolve_url,\n\tget_link_info,\n\tget_router_options,\n\tis_external_url,\n\torigin,\n\tscroll_state,\n\tnotifiable_store,\n\tcreate_updated_store,\n\tload_css\n} from './utils.js';\nimport { base } from '$app/paths';\nimport * as devalue from 'devalue';\nimport {\n\tHISTORY_INDEX,\n\tNAVIGATION_INDEX,\n\tPRELOAD_PRIORITIES,\n\tSCROLL_KEY,\n\tSTATES_KEY,\n\tSNAPSHOT_KEY,\n\tPAGE_URL_KEY\n} from './constants.js';\nimport { validate_page_exports } from '../../utils/exports.js';\nimport { compact } from '../../utils/array.js';\nimport {\n\tINVALIDATED_PARAM,\n\tTRAILING_SLASH_PARAM,\n\tvalidate_depends,\n\tvalidate_load_response\n} from '../shared.js';\nimport { get_message, get_status } from '../../utils/error.js';\nimport { writable } from 'svelte/store';\nimport { page, update, navigating } from './state.svelte.js';\nimport { add_data_suffix, add_resolution_suffix } from '../pathname.js';\nimport { noop_span } from '../telemetry/noop.js';\nimport { text_decoder } from '../utils.js';\n\nexport { load_css };\nconst ICON_REL_ATTRIBUTES = new Set(['icon', 'shortcut icon', 'apple-touch-icon']);\n\nlet errored = false;\n\n// We track the scroll position associated with each history entry in sessionStorage,\n// rather than on history.state itself, because when navigation is driven by\n// popstate it's too late to update the scroll position associated with the\n// state we're navigating from\n/**\n * history index -> { x, y }\n * @type {Record<number, { x: number; y: number }>}\n */\nconst scroll_positions = storage.get(SCROLL_KEY) ?? {};\n\n/**\n * navigation index -> any\n * @type {Record<string, any[]>}\n */\nconst snapshots = storage.get(SNAPSHOT_KEY) ?? {};\n\nif (DEV && BROWSER) {\n\tlet warned = false;\n\n\tconst current_module_url = import.meta.url.split('?')[0]; // remove query params that vite adds to the URL when it is loaded from node_modules\n\n\tconst warn = () => {\n\t\tif (warned) return;\n\n\t\t// Rather than saving a pointer to the original history methods, which would prevent monkeypatching by other libs,\n\t\t// inspect the stack trace to see if we're being called from within SvelteKit.\n\t\tlet stack = new Error().stack?.split('\\n');\n\t\tif (!stack) return;\n\t\tif (!stack[0].includes('https:') && !stack[0].includes('http:')) stack = stack.slice(1); // Chrome includes the error message in the stack\n\t\tstack = stack.slice(2); // remove `warn` and the place where `warn` was called\n\t\t// Can be falsy if was called directly from an anonymous function\n\t\tif (stack[0]?.includes(current_module_url)) return;\n\n\t\twarned = true;\n\n\t\tconsole.warn(\n\t\t\t\"Avoid using `history.pushState(...)` and `history.replaceState(...)` as these will conflict with SvelteKit's router. Use the `pushState` and `replaceState` imports from `$app/navigation` instead.\"\n\t\t);\n\t};\n\n\tconst push_state = history.pushState;\n\thistory.pushState = (...args) => {\n\t\twarn();\n\t\treturn push_state.apply(history, args);\n\t};\n\n\tconst replace_state = history.replaceState;\n\thistory.replaceState = (...args) => {\n\t\twarn();\n\t\treturn replace_state.apply(history, args);\n\t};\n}\n\nexport const stores = {\n\turl: /* @__PURE__ */ notifiable_store({}),\n\tpage: /* @__PURE__ */ notifiable_store({}),\n\tnavigating: /* @__PURE__ */ writable(\n\t\t/** @type {import('@sveltejs/kit').Navigation | null} */ (null)\n\t),\n\tupdated: /* @__PURE__ */ create_updated_store()\n};\n\n/** @param {number} index */\nfunction update_scroll_positions(index) {\n\tscroll_positions[index] = scroll_state();\n}\n\n/**\n * @param {number} current_history_index\n * @param {number} current_navigation_index\n */\nfunction clear_onward_history(current_history_index, current_navigation_index) {\n\t// if we navigated back, then pushed a new state, we can\n\t// release memory by pruning the scroll/snapshot lookup\n\tlet i = current_history_index + 1;\n\twhile (scroll_positions[i]) {\n\t\tdelete scroll_positions[i];\n\t\ti += 1;\n\t}\n\n\ti = current_navigation_index + 1;\n\twhile (snapshots[i]) {\n\t\tdelete snapshots[i];\n\t\ti += 1;\n\t}\n}\n\n/**\n * Loads `href` the old-fashioned way, with a full page reload.\n * Returns a `Promise` that never resolves (to prevent any\n * subsequent work, e.g. history manipulation, from happening)\n * @param {URL} url\n * @param {boolean} [replace] If `true`, will replace the current `history` entry rather than creating a new one with `pushState`\n */\nfunction native_navigation(url, replace = false) {\n\tif (replace) {\n\t\tlocation.replace(url.href);\n\t} else {\n\t\tlocation.href = url.href;\n\t}\n\treturn new Promise(() => {});\n}\n\n/**\n * Checks whether a service worker is registered, and if it is,\n * tries to update it.\n */\nasync function update_service_worker() {\n\tif ('serviceWorker' in navigator) {\n\t\tconst registration = await navigator.serviceWorker.getRegistration(base || '/');\n\t\tif (registration) {\n\t\t\tawait registration.update();\n\t\t}\n\t}\n}\n\nfunction noop() {}\n\n/** @type {import('types').CSRRoute[]} All routes of the app. Only available when kit.router.resolution=client */\nlet routes;\n/** @type {import('types').CSRPageNodeLoader} */\nlet default_layout_loader;\n/** @type {import('types').CSRPageNodeLoader} */\nlet default_error_loader;\n/** @type {HTMLElement} */\nlet container;\n/** @type {HTMLElement} */\nlet target;\n\n/** @type {import('./types.js').SvelteKitApp} */\nexport let app;\n\n/**\n * Data that was serialized during SSR. This is cleared when the user first navigates\n * @type {Record<string, any>}\n */\nexport let remote_responses = {};\n\n/** @type {Array<((url: URL) => boolean)>} */\nconst invalidated = [];\n\n/**\n * An array of the `+layout.svelte` and `+page.svelte` component instances\n * that currently live on the page — used for capturing and restoring snapshots.\n * It's updated/manipulated through `bind:this` in `Root.svelte`.\n * @type {import('svelte').SvelteComponent[]}\n */\nconst components = [];\n\n/** @type {{id: string, token: {}, promise: Promise<import('./types.js').NavigationResult>, fork: Promise<import('svelte').Fork | null> | null} | null} */\nlet load_cache = null;\n\nfunction discard_load_cache() {\n\tvoid load_cache?.fork?.then((f) => f?.discard());\n\tload_cache = null;\n}\n\n/**\n * @type {Map<string, Promise<URL>>}\n * Cache for client-side rerouting, since it could contain async calls which we want to\n * avoid running multiple times which would slow down navigations (e.g. else preloading\n * wouldn't help because on navigation it would be called again). Since `reroute` should be\n * a pure function (i.e. always return the same) value it's safe to cache across navigations.\n * The server reroute calls don't need to be cached because they are called using `import(...)`\n * which is cached per the JS spec.\n */\nconst reroute_cache = new Map();\n\n/**\n * Note on before_navigate_callbacks, on_navigate_callbacks and after_navigate_callbacks:\n * do not re-assign as some closures keep references to these Sets\n */\n/** @type {Set<(navigation: import('@sveltejs/kit').BeforeNavigate) => void>} */\nconst before_navigate_callbacks = new Set();\n\n/** @type {Set<(navigation: import('@sveltejs/kit').OnNavigate) => import('types').MaybePromise<(() => void) | void>>} */\nconst on_navigate_callbacks = new Set();\n\n/** @type {Set<(navigation: import('@sveltejs/kit').AfterNavigate) => void>} */\nconst after_navigate_callbacks = new Set();\n\n/** @type {import('./types.js').NavigationState} */\nlet current = {\n\tbranch: [],\n\terror: null,\n\t// @ts-ignore - we need the initial value to be null\n\turl: null\n};\n\n/** this being true means we SSR'd */\nlet hydrated = false;\nlet started = false;\nlet autoscroll = true;\nlet updating = false;\nlet is_navigating = false;\nlet hash_navigating = false;\n/** True as soon as there happened one client-side navigation (excluding the SvelteKit-initialized initial one when in SPA mode) */\nlet has_navigated = false;\n\nlet force_invalidation = false;\n\n/** @type {import('svelte').SvelteComponent} */\nlet root;\n\n/** @type {number} keeping track of the history index in order to prevent popstate navigation events if needed */\nlet current_history_index;\n\n/** @type {number} */\nlet current_navigation_index;\n\n/** @type {{}} */\nlet token;\n\n/**\n * A set of tokens which are associated to current preloads.\n * If a preload becomes a real navigation, it's removed from the set.\n * If a preload token is in the set and the preload errors, the error\n * handling logic (for example reloading) is skipped.\n */\nconst preload_tokens = new Set();\n\n/** @type {Promise<void> | null} */\nexport let pending_invalidate;\n\n/**\n * @type {Map<string, {count: number, resource: any}>}\n * A map of id -> query info with all queries that currently exist in the app.\n */\nexport const query_map = new Map();\n\n/**\n * @param {import('./types.js').SvelteKitApp} _app\n * @param {HTMLElement} _target\n * @param {Parameters<typeof _hydrate>[1]} [hydrate]\n */\nexport async function start(_app, _target, hydrate) {\n\tif (DEV && _target === document.body) {\n\t\tconsole.warn(\n\t\t\t'Placing %sveltekit.body% directly inside <body> is not recommended, as your app may break for users who have certain browser extensions installed.\\n\\nConsider wrapping it in an element:\\n\\n<div style=\"display: contents\">\\n %sveltekit.body%\\n</div>'\n\t\t);\n\t}\n\n\tif (__SVELTEKIT_PAYLOAD__?.data) {\n\t\tremote_responses = __SVELTEKIT_PAYLOAD__.data;\n\t}\n\n\t// detect basic auth credentials in the current URL\n\t// https://github.com/sveltejs/kit/pull/11179\n\t// if so, refresh the page without credentials\n\tif (document.URL !== location.href) {\n\t\t// eslint-disable-next-line no-self-assign\n\t\tlocation.href = location.href;\n\t}\n\n\tapp = _app;\n\n\tawait _app.hooks.init?.();\n\n\troutes = __SVELTEKIT_CLIENT_ROUTING__ ? parse(_app) : [];\n\tcontainer = __SVELTEKIT_EMBEDDED__ ? _target : document.documentElement;\n\ttarget = _target;\n\n\t// we import the root layout/error nodes eagerly, so that\n\t// connectivity errors after initialisation don't nuke the app\n\tdefault_layout_loader = _app.nodes[0];\n\tdefault_error_loader = _app.nodes[1];\n\tvoid default_layout_loader();\n\tvoid default_error_loader();\n\n\tcurrent_history_index = history.state?.[HISTORY_INDEX];\n\tcurrent_navigation_index = history.state?.[NAVIGATION_INDEX];\n\n\tif (!current_history_index) {\n\t\t// we use Date.now() as an offset so that cross-document navigations\n\t\t// within the app don't result in data loss\n\t\tcurrent_history_index = current_navigation_index = Date.now();\n\n\t\t// create initial history entry, so we can return here\n\t\thistory.replaceState(\n\t\t\t{\n\t\t\t\t...history.state,\n\t\t\t\t[HISTORY_INDEX]: current_history_index,\n\t\t\t\t[NAVIGATION_INDEX]: current_navigation_index\n\t\t\t},\n\t\t\t''\n\t\t);\n\t}\n\n\t// if we reload the page, or Cmd-Shift-T back to it,\n\t// recover scroll position\n\tconst scroll = scroll_positions[current_history_index];\n\tfunction restore_scroll() {\n\t\tif (scroll) {\n\t\t\thistory.scrollRestoration = 'manual';\n\t\t\tscrollTo(scroll.x, scroll.y);\n\t\t}\n\t}\n\n\tif (hydrate) {\n\t\trestore_scroll();\n\n\t\tawait _hydrate(target, hydrate);\n\t} else {\n\t\tawait navigate({\n\t\t\ttype: 'enter',\n\t\t\turl: resolve_url(app.hash ? decode_hash(new URL(location.href)) : location.href),\n\t\t\treplace_state: true\n\t\t});\n\n\t\trestore_scroll();\n\t}\n\n\t_start_router();\n}\n\nasync function _invalidate(include_load_functions = true, reset_page_state = true) {\n\t// Accept all invalidations as they come, don't swallow any while another invalidation\n\t// is running because subsequent invalidations may make earlier ones outdated,\n\t// but batch multiple synchronous invalidations.\n\tawait (pending_invalidate ||= Promise.resolve());\n\tif (!pending_invalidate) return;\n\tpending_invalidate = null;\n\n\tconst nav_token = (token = {});\n\tconst intent = await get_navigation_intent(current.url, true);\n\n\t// Clear preload, it might be affected by the invalidation.\n\t// Also solves an edge case where a preload is triggered, the navigation for it\n\t// was then triggered and is still running while the invalidation kicks in,\n\t// at which point the invalidation should take over and \"win\".\n\tdiscard_load_cache();\n\n\t// Rerun queries\n\tif (force_invalidation) {\n\t\tquery_map.forEach(({ resource }) => {\n\t\t\tresource.refresh?.();\n\t\t});\n\t}\n\n\tif (include_load_functions) {\n\t\tconst prev_state = page.state;\n\t\tconst navigation_result = intent && (await load_route(intent));\n\t\tif (!navigation_result || nav_token !== token) return;\n\n\t\tif (navigation_result.type === 'redirect') {\n\t\t\treturn _goto(\n\t\t\t\tnew URL(navigation_result.location, current.url).href,\n\t\t\t\t{ replaceState: true },\n\t\t\t\t1,\n\t\t\t\tnav_token\n\t\t\t);\n\t\t}\n\n\t\t// This is a bit hacky but allows us not having to pass that boolean around, making things harder to reason about\n\t\tif (!reset_page_state) {\n\t\t\tnavigation_result.props.page.state = prev_state;\n\t\t}\n\t\tupdate(navigation_result.props.page);\n\t\tcurrent = navigation_result.state;\n\t\treset_invalidation();\n\t\troot.$set(navigation_result.props);\n\t} else {\n\t\treset_invalidation();\n\t}\n\n\t// Don't use allSettled yet because it's too new\n\tawait Promise.all([...query_map.values()].map(({ resource }) => resource)).catch(noop);\n}\n\nfunction reset_invalidation() {\n\tinvalidated.length = 0;\n\tforce_invalidation = false;\n}\n\n/** @param {number} index */\nfunction capture_snapshot(index) {\n\tif (components.some((c) => c?.snapshot)) {\n\t\tsnapshots[index] = components.map((c) => c?.snapshot?.capture());\n\t}\n}\n\n/** @param {number} index */\nfunction restore_snapshot(index) {\n\tsnapshots[index]?.forEach((value, i) => {\n\t\tcomponents[i]?.snapshot?.restore(value);\n\t});\n}\n\nfunction persist_state() {\n\tupdate_scroll_positions(current_history_index);\n\tstorage.set(SCROLL_KEY, scroll_positions);\n\n\tcapture_snapshot(current_navigation_index);\n\tstorage.set(SNAPSHOT_KEY, snapshots);\n}\n\n/**\n * @param {string | URL} url\n * @param {{ replaceState?: boolean; noScroll?: boolean; keepFocus?: boolean; invalidateAll?: boolean; invalidate?: Array<string | URL | ((url: URL) => boolean)>; state?: Record<string, any> }} options\n * @param {number} redirect_count\n * @param {{}} [nav_token]\n */\nexport async function _goto(url, options, redirect_count, nav_token) {\n\t/** @type {string[]} */\n\tlet query_keys;\n\n\t// Clear preload cache when invalidateAll is true to ensure fresh data\n\t// after form submissions or explicit invalidations\n\tif (options.invalidateAll) {\n\t\tdiscard_load_cache();\n\t}\n\n\tawait navigate({\n\t\ttype: 'goto',\n\t\turl: resolve_url(url),\n\t\tkeepfocus: options.keepFocus,\n\t\tnoscroll: options.noScroll,\n\t\treplace_state: options.replaceState,\n\t\tstate: options.state,\n\t\tredirect_count,\n\t\tnav_token,\n\t\taccept: () => {\n\t\t\tif (options.invalidateAll) {\n\t\t\t\tforce_invalidation = true;\n\t\t\t\tquery_keys = [...query_map.keys()];\n\t\t\t}\n\n\t\t\tif (options.invalidate) {\n\t\t\t\toptions.invalidate.forEach(push_invalidated);\n\t\t\t}\n\t\t}\n\t});\n\n\tif (options.invalidateAll) {\n\t\t// TODO the ticks shouldn't be necessary, something inside Svelte itself is buggy\n\t\t// when a query in a layout that still exists after page change is refreshed earlier than this\n\t\tvoid svelte\n\t\t\t.tick()\n\t\t\t.then(svelte.tick)\n\t\t\t.then(() => {\n\t\t\t\tquery_map.forEach(({ resource }, key) => {\n\t\t\t\t\t// Only refresh those that already existed on the old page\n\t\t\t\t\tif (query_keys?.includes(key)) {\n\t\t\t\t\t\tresource.refresh?.();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t}\n}\n\n/** @param {import('./types.js').NavigationIntent} intent */\nasync function _preload_data(intent) {\n\t// Reuse the existing pending preload if it's for the same navigation.\n\t// Prevents an edge case where same preload is triggered multiple times,\n\t// then a later one is becoming the real navigation and the preload tokens\n\t// get out of sync.\n\tif (intent.id !== load_cache?.id) {\n\t\tdiscard_load_cache();\n\n\t\tconst preload = {};\n\t\tpreload_tokens.add(preload);\n\t\tload_cache = {\n\t\t\tid: intent.id,\n\t\t\ttoken: preload,\n\t\t\tpromise: load_route({ ...intent, preload }).then((result) => {\n\t\t\t\tpreload_tokens.delete(preload);\n\t\t\t\tif (result.type === 'loaded' && result.state.error) {\n\t\t\t\t\t// Don't cache errors, because they might be transient\n\t\t\t\t\tdiscard_load_cache();\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}),\n\t\t\tfork: null\n\t\t};\n\n\t\tif (svelte.fork) {\n\t\t\tconst lc = load_cache;\n\n\t\t\tlc.fork = lc.promise.then((result) => {\n\t\t\t\t// if load_cache was discarded before load_cache.promise could\n\t\t\t\t// resolve, bail rather than creating an orphan fork\n\t\t\t\tif (lc === load_cache && result.type === 'loaded') {\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn svelte.fork(() => {\n\t\t\t\t\t\t\troot.$set(result.props);\n\t\t\t\t\t\t\tupdate(result.props.page);\n\t\t\t\t\t\t});\n\t\t\t\t\t} catch {\n\t\t\t\t\t\t// if it errors, it's because the experimental flag isn't enabled\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\t\t\t});\n\t\t}\n\t}\n\n\treturn load_cache.promise;\n}\n\n/**\n * @param {URL} url\n * @returns {Promise<void>}\n */\nasync function _preload_code(url) {\n\tconst route = (await get_navigation_intent(url, false))?.route;\n\n\tif (route) {\n\t\tawait Promise.all([...route.layouts, route.leaf].map((load) => load?.[1]()));\n\t}\n}\n\n/**\n * @param {import('./types.js').NavigationFinished} result\n * @param {HTMLElement} target\n * @param {boolean} hydrate\n */\nasync function initialize(result, target, hydrate) {\n\tif (DEV && result.state.error && document.querySelector('vite-error-overlay')) return;\n\n\tcurrent = result.state;\n\n\tconst style = document.querySelector('style[data-sveltekit]');\n\tif (style) style.remove();\n\n\tObject.assign(page, /** @type {import('@sveltejs/kit').Page} */ (result.props.page));\n\n\troot = new app.root({\n\t\ttarget,\n\t\tprops: { ...result.props, stores, components },\n\t\thydrate,\n\t\t// @ts-ignore Svelte 5 specific: asynchronously instantiate the component, i.e. don't call flushSync\n\t\tsync: false\n\t});\n\n\t// Wait for a microtask in case svelte experimental async is enabled,\n\t// which causes component script blocks to run asynchronously\n\tvoid (await Promise.resolve());\n\n\trestore_snapshot(current_navigation_index);\n\n\tif (hydrate) {\n\t\t/** @type {import('@sveltejs/kit').AfterNavigate} */\n\t\tconst navigation = {\n\t\t\tfrom: null,\n\t\t\tto: {\n\t\t\t\tparams: current.params,\n\t\t\t\troute: { id: current.route?.id ?? null },\n\t\t\t\turl: new URL(location.href)\n\t\t\t},\n\t\t\twillUnload: false,\n\t\t\ttype: 'enter',\n\t\t\tcomplete: Promise.resolve()\n\t\t};\n\n\t\tafter_navigate_callbacks.forEach((fn) => fn(navigation));\n\t}\n\n\tstarted = true;\n}\n\n/**\n *\n * @param {{\n * url: URL;\n * params: Record<string, string>;\n * branch: Array<import('./types.js').BranchNode | undefined>;\n * status: number;\n * error: App.Error | null;\n * route: import('types').CSRRoute | null;\n * form?: Record<string, any> | null;\n * }} opts\n */\nfunction get_navigation_result_from_branch({ url, params, branch, status, error, route, form }) {\n\t/** @type {import('types').TrailingSlash} */\n\tlet slash = 'never';\n\n\t// if `paths.base === '/a/b/c`, then the root route is always `/a/b/c/`, regardless of\n\t// the `trailingSlash` route option, so that relative paths to JS and CSS work\n\tif (base && (url.pathname === base || url.pathname === base + '/')) {\n\t\tslash = 'always';\n\t} else {\n\t\tfor (const node of branch) {\n\t\t\tif (node?.slash !== undefined) slash = node.slash;\n\t\t}\n\t}\n\n\turl.pathname = normalize_path(url.pathname, slash);\n\t// eslint-disable-next-line no-self-assign\n\turl.search = url.search; // turn `/?` into `/`\n\n\t/** @type {import('./types.js').NavigationFinished} */\n\tconst result = {\n\t\ttype: 'loaded',\n\t\tstate: {\n\t\t\turl,\n\t\t\tparams,\n\t\t\tbranch,\n\t\t\terror,\n\t\t\troute\n\t\t},\n\t\tprops: {\n\t\t\t// @ts-ignore Somehow it's getting SvelteComponent and SvelteComponentDev mixed up\n\t\t\tconstructors: compact(branch).map((branch_node) => branch_node.node.component),\n\t\t\tpage: clone_page(page)\n\t\t}\n\t};\n\n\tif (form !== undefined) {\n\t\tresult.props.form = form;\n\t}\n\n\tlet data = {};\n\tlet data_changed = !page;\n\n\tlet p = 0;\n\n\tfor (let i = 0; i < Math.max(branch.length, current.branch.length); i += 1) {\n\t\tconst node = branch[i];\n\t\tconst prev = current.branch[i];\n\n\t\tif (node?.data !== prev?.data) data_changed = true;\n\t\tif (!node) continue;\n\n\t\tdata = { ...data, ...node.data };\n\n\t\t// Only set props if the node actually updated. This prevents needless rerenders.\n\t\tif (data_changed) {\n\t\t\tresult.props[`data_${p}`] = data;\n\t\t}\n\n\t\tp += 1;\n\t}\n\n\tconst page_changed =\n\t\t!current.url ||\n\t\turl.href !== current.url.href ||\n\t\tcurrent.error !== error ||\n\t\t(form !== undefined && form !== page.form) ||\n\t\tdata_changed;\n\n\tif (page_changed) {\n\t\tresult.props.page = {\n\t\t\terror,\n\t\t\tparams,\n\t\t\troute: {\n\t\t\t\tid: route?.id ?? null\n\t\t\t},\n\t\t\tstate: {},\n\t\t\tstatus,\n\t\t\turl: new URL(url),\n\t\t\tform: form ?? null,\n\t\t\t// The whole page store is updated, but this way the object reference stays the same\n\t\t\tdata: data_changed ? data : page.data\n\t\t};\n\t}\n\n\treturn result;\n}\n\n/**\n * Call the universal load function of the given node, if it exists.\n *\n * @param {{\n * loader: import('types').CSRPageNodeLoader;\n * \t parent: () => Promise<Record<string, any>>;\n * url: URL;\n * params: Record<string, string>;\n * route: { id: string | null };\n * \t server_data_node: import('./types.js').DataNode | null;\n * }} options\n * @returns {Promise<import('./types.js').BranchNode>}\n */\nasync function load_node({ loader, parent, url, params, route, server_data_node }) {\n\t/** @type {Record<string, any> | null} */\n\tlet data = null;\n\n\tlet is_tracking = true;\n\n\t/** @type {import('types').Uses} */\n\tconst uses = {\n\t\tdependencies: new Set(),\n\t\tparams: new Set(),\n\t\tparent: false,\n\t\troute: false,\n\t\turl: false,\n\t\tsearch_params: new Set()\n\t};\n\n\tconst node = await loader();\n\n\tif (DEV) {\n\t\tvalidate_page_exports(node.universal);\n\n\t\tif (node.universal && app.hash) {\n\t\t\tconst options = Object.keys(node.universal).filter((o) => o !== 'load');\n\n\t\t\tif (options.length > 0) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`Page options are ignored when \\`router.type === 'hash'\\` (${route.id} has ${options\n\t\t\t\t\t\t.filter((o) => o !== 'load')\n\t\t\t\t\t\t.map((o) => `'${o}'`)\n\t\t\t\t\t\t.join(', ')})`\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (__SVELTEKIT_HAS_UNIVERSAL_LOAD__ && node.universal?.load) {\n\t\t/** @param {string[]} deps */\n\t\tfunction depends(...deps) {\n\t\t\tfor (const dep of deps) {\n\t\t\t\tif (DEV) validate_depends(/** @type {string} */ (route.id), dep);\n\n\t\t\t\tconst { href } = new URL(dep, url);\n\t\t\t\tuses.dependencies.add(href);\n\t\t\t}\n\t\t}\n\n\t\t/** @type {import('@sveltejs/kit').LoadEvent} */\n\t\tconst load_input = {\n\t\t\ttracing: { enabled: false, root: noop_span, current: noop_span },\n\t\t\troute: new Proxy(route, {\n\t\t\t\tget: (target, key) => {\n\t\t\t\t\tif (is_tracking) {\n\t\t\t\t\t\tuses.route = true;\n\t\t\t\t\t}\n\t\t\t\t\treturn target[/** @type {'id'} */ (key)];\n\t\t\t\t}\n\t\t\t}),\n\t\t\tparams: new Proxy(params, {\n\t\t\t\tget: (target, key) => {\n\t\t\t\t\tif (is_tracking) {\n\t\t\t\t\t\tuses.params.add(/** @type {string} */ (key));\n\t\t\t\t\t}\n\t\t\t\t\treturn target[/** @type {string} */ (key)];\n\t\t\t\t}\n\t\t\t}),\n\t\t\tdata: server_data_node?.data ?? null,\n\t\t\turl: make_trackable(\n\t\t\t\turl,\n\t\t\t\t() => {\n\t\t\t\t\tif (is_tracking) {\n\t\t\t\t\t\tuses.url = true;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t(param) => {\n\t\t\t\t\tif (is_tracking) {\n\t\t\t\t\t\tuses.search_params.add(param);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tapp.hash\n\t\t\t),\n\t\t\tasync fetch(resource, init) {\n\t\t\t\tif (resource instanceof Request) {\n\t\t\t\t\t// we're not allowed to modify the received `Request` object, so in order\n\t\t\t\t\t// to fixup relative urls we create a new equivalent `init` object instead\n\t\t\t\t\tinit = {\n\t\t\t\t\t\t// the request body must be consumed in memory until browsers\n\t\t\t\t\t\t// implement streaming request bodies and/or the body getter\n\t\t\t\t\t\tbody:\n\t\t\t\t\t\t\tresource.method === 'GET' || resource.method === 'HEAD'\n\t\t\t\t\t\t\t\t? undefined\n\t\t\t\t\t\t\t\t: await resource.blob(),\n\t\t\t\t\t\tcache: resource.cache,\n\t\t\t\t\t\tcredentials: resource.credentials,\n\t\t\t\t\t\t// the server sets headers to `undefined` if there are no headers but\n\t\t\t\t\t\t// the client defaults to an empty Headers object in the Request object.\n\t\t\t\t\t\t// To keep the two values in sync, we explicitly set the headers to `undefined`.\n\t\t\t\t\t\t// Also, not sure why, but sometimes 0 is evaluated as truthy so we need to\n\t\t\t\t\t\t// explicitly compare the headers length to a number here\n\t\t\t\t\t\theaders: [...resource.headers].length > 0 ? resource?.headers : undefined,\n\t\t\t\t\t\tintegrity: resource.integrity,\n\t\t\t\t\t\tkeepalive: resource.keepalive,\n\t\t\t\t\t\tmethod: resource.method,\n\t\t\t\t\t\tmode: resource.mode,\n\t\t\t\t\t\tredirect: resource.redirect,\n\t\t\t\t\t\treferrer: resource.referrer,\n\t\t\t\t\t\treferrerPolicy: resource.referrerPolicy,\n\t\t\t\t\t\tsignal: resource.signal,\n\t\t\t\t\t\t...init\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tconst { resolved, promise } = resolve_fetch_url(resource, init, url);\n\n\t\t\t\tif (is_tracking) {\n\t\t\t\t\tdepends(resolved.href);\n\t\t\t\t}\n\n\t\t\t\treturn promise;\n\t\t\t},\n\t\t\tsetHeaders: () => {}, // noop\n\t\t\tdepends,\n\t\t\tparent() {\n\t\t\t\tif (is_tracking) {\n\t\t\t\t\tuses.parent = true;\n\t\t\t\t}\n\t\t\t\treturn parent();\n\t\t\t},\n\t\t\tuntrack(fn) {\n\t\t\t\tis_tracking = false;\n\t\t\t\ttry {\n\t\t\t\t\treturn fn();\n\t\t\t\t} finally {\n\t\t\t\t\tis_tracking = true;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tif (DEV) {\n\t\t\ttry {\n\t\t\t\tlock_fetch();\n\t\t\t\tdata = (await node.universal.load.call(null, load_input)) ?? null;\n\t\t\t\tvalidate_load_response(data, `related to route '${route.id}'`);\n\t\t\t} finally {\n\t\t\t\tunlock_fetch();\n\t\t\t}\n\t\t} else {\n\t\t\tdata = (await node.universal.load.call(null, load_input)) ?? null;\n\t\t}\n\t}\n\n\treturn {\n\t\tnode,\n\t\tloader,\n\t\tserver: server_data_node,\n\t\tuniversal: node.universal?.load ? { type: 'data', data, uses } : null,\n\t\tdata: data ?? server_data_node?.data ?? null,\n\t\tslash: node.universal?.trailingSlash ?? server_data_node?.slash\n\t};\n}\n\n/**\n * @param {Request | string | URL} input\n * @param {RequestInit | undefined} init\n * @param {URL} url\n */\nfunction resolve_fetch_url(input, init, url) {\n\tlet requested = input instanceof Request ? input.url : input;\n\n\t// we must fixup relative urls so they are resolved from the target page\n\tconst resolved = new URL(requested, url);\n\n\t// match ssr serialized data url, which is important to find cached responses\n\tif (resolved.origin === url.origin) {\n\t\trequested = resolved.href.slice(url.origin.length);\n\t}\n\n\t// prerendered pages may be served from any origin, so `initial_fetch` urls shouldn't be resolved\n\tconst promise = started\n\t\t? subsequent_fetch(requested, resolved.href, init)\n\t\t: initial_fetch(requested, init);\n\n\treturn { resolved, promise };\n}\n\n/**\n * @param {boolean} parent_changed\n * @param {boolean} route_changed\n * @param {boolean} url_changed\n * @param {Set<string>} search_params_changed\n * @param {import('types').Uses | undefined} uses\n * @param {Record<string, string>} params\n */\nfunction has_changed(\n\tparent_changed,\n\troute_changed,\n\turl_changed,\n\tsearch_params_changed,\n\tuses,\n\tparams\n) {\n\tif (force_invalidation) return true;\n\n\tif (!uses) return false;\n\n\tif (uses.parent && parent_changed) return true;\n\tif (uses.route && route_changed) return true;\n\tif (uses.url && url_changed) return true;\n\n\tfor (const tracked_params of uses.search_params) {\n\t\tif (search_params_changed.has(tracked_params)) return true;\n\t}\n\n\tfor (const param of uses.params) {\n\t\tif (params[param] !== current.params[param]) return true;\n\t}\n\n\tfor (const href of uses.dependencies) {\n\t\tif (invalidated.some((fn) => fn(new URL(href)))) return true;\n\t}\n\n\treturn false;\n}\n\n/**\n * @param {import('types').ServerDataNode | import('types').ServerDataSkippedNode | null} node\n * @param {import('./types.js').DataNode | null} [previous]\n * @returns {import('./types.js').DataNode | null}\n */\nfunction create_data_node(node, previous) {\n\tif (node?.type === 'data') return node;\n\tif (node?.type === 'skip') return previous ?? null;\n\treturn null;\n}\n\n/**\n * @param {URL | null} old_url\n * @param {URL} new_url\n */\nfunction diff_search_params(old_url, new_url) {\n\tif (!old_url) return new Set(new_url.searchParams.keys());\n\n\tconst changed = new Set([...old_url.searchParams.keys(), ...new_url.searchParams.keys()]);\n\n\tfor (const key of changed) {\n\t\tconst old_values = old_url.searchParams.getAll(key);\n\t\tconst new_values = new_url.searchParams.getAll(key);\n\n\t\tif (\n\t\t\told_values.every((value) => new_values.includes(value)) &&\n\t\t\tnew_values.every((value) => old_values.includes(value))\n\t\t) {\n\t\t\tchanged.delete(key);\n\t\t}\n\t}\n\n\treturn changed;\n}\n\n/**\n * @param {Omit<import('./types.js').NavigationFinished['state'], 'branch'> & { error: App.Error }} opts\n * @returns {import('./types.js').NavigationFinished}\n */\nfunction preload_error({ error, url, route, params }) {\n\treturn {\n\t\ttype: 'loaded',\n\t\tstate: {\n\t\t\terror,\n\t\t\turl,\n\t\t\troute,\n\t\t\tparams,\n\t\t\tbranch: []\n\t\t},\n\t\tprops: {\n\t\t\tpage: clone_page(page),\n\t\t\tconstructors: []\n\t\t}\n\t};\n}\n\n/**\n * @param {import('./types.js').NavigationIntent & { preload?: {} }} intent\n * @returns {Promise<import('./types.js').NavigationResult>}\n */\nasync function load_route({ id, invalidating, url, params, route, preload }) {\n\tif (load_cache?.id === id) {\n\t\t// the preload becomes the real navigation\n\t\tpreload_tokens.delete(load_cache.token);\n\t\treturn load_cache.promise;\n\t}\n\n\tconst { errors, layouts, leaf } = route;\n\n\tconst loaders = [...layouts, leaf];\n\n\t// preload modules to avoid waterfall, but handle rejections\n\t// so they don't get reported to Sentry et al (we don't need\n\t// to act on the failures at this point)\n\terrors.forEach((loader) => loader?.().catch(() => {}));\n\tloaders.forEach((loader) => loader?.[1]().catch(() => {}));\n\n\t/** @type {import('types').ServerNodesResponse | import('types').ServerRedirectNode | null} */\n\tlet server_data = null;\n\tconst url_changed = current.url ? id !== get_page_key(current.url) : false;\n\tconst route_changed = current.route ? route.id !== current.route.id : false;\n\tconst search_params_changed = diff_search_params(current.url, url);\n\n\tlet parent_invalid = false;\n\n\tif (__SVELTEKIT_HAS_SERVER_LOAD__) {\n\t\tconst invalid_server_nodes = loaders.map((loader, i) => {\n\t\t\tconst previous = current.branch[i];\n\n\t\t\tconst invalid =\n\t\t\t\t!!loader?.[0] &&\n\t\t\t\t(previous?.loader !== loader[1] ||\n\t\t\t\t\thas_changed(\n\t\t\t\t\t\tparent_invalid,\n\t\t\t\t\t\troute_changed,\n\t\t\t\t\t\turl_changed,\n\t\t\t\t\t\tsearch_params_changed,\n\t\t\t\t\t\tprevious.server?.uses,\n\t\t\t\t\t\tparams\n\t\t\t\t\t));\n\n\t\t\tif (invalid) {\n\t\t\t\t// For the next one\n\t\t\t\tparent_invalid = true;\n\t\t\t}\n\n\t\t\treturn invalid;\n\t\t});\n\n\t\tif (invalid_server_nodes.some(Boolean)) {\n\t\t\ttry {\n\t\t\t\tserver_data = await load_data(url, invalid_server_nodes);\n\t\t\t} catch (error) {\n\t\t\t\tconst handled_error = await handle_error(error, { url, params, route: { id } });\n\n\t\t\t\tif (preload_tokens.has(preload)) {\n\t\t\t\t\treturn preload_error({ error: handled_error, url, params, route });\n\t\t\t\t}\n\n\t\t\t\treturn load_root_error_page({\n\t\t\t\t\tstatus: get_status(error),\n\t\t\t\t\terror: handled_error,\n\t\t\t\t\turl,\n\t\t\t\t\troute\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (server_data.type === 'redirect') {\n\t\t\t\treturn server_data;\n\t\t\t}\n\t\t}\n\t}\n\n\tconst server_data_nodes = server_data?.nodes;\n\n\tlet parent_changed = false;\n\n\tconst branch_promises = loaders.map(async (loader, i) => {\n\t\tif (!loader) return;\n\n\t\t/** @type {import('./types.js').BranchNode | undefined} */\n\t\tconst previous = current.branch[i];\n\n\t\tconst server_data_node = server_data_nodes?.[i];\n\n\t\t// re-use data from previous load if it's still valid\n\t\tconst valid =\n\t\t\t(!server_data_node || server_data_node.type === 'skip') &&\n\t\t\tloader[1] === previous?.loader &&\n\t\t\t!has_changed(\n\t\t\t\tparent_changed,\n\t\t\t\troute_changed,\n\t\t\t\turl_changed,\n\t\t\t\tsearch_params_changed,\n\t\t\t\tprevious.universal?.uses,\n\t\t\t\tparams\n\t\t\t);\n\t\tif (valid) return previous;\n\n\t\tparent_changed = true;\n\n\t\tif (server_data_node?.type === 'error') {\n\t\t\t// rethrow and catch below\n\t\t\tthrow server_data_node;\n\t\t}\n\n\t\treturn load_node({\n\t\t\tloader: loader[1],\n\t\t\turl,\n\t\t\tparams,\n\t\t\troute,\n\t\t\tparent: async () => {\n\t\t\t\tconst data = {};\n\t\t\t\tfor (let j = 0; j < i; j += 1) {\n\t\t\t\t\tObject.assign(data, (await branch_promises[j])?.data);\n\t\t\t\t}\n\t\t\t\treturn data;\n\t\t\t},\n\t\t\tserver_data_node: create_data_node(\n\t\t\t\t// server_data_node is undefined if it wasn't reloaded from the server;\n\t\t\t\t// and if current loader uses server data, we want to reuse previous data.\n\t\t\t\tserver_data_node === undefined && loader[0] ? { type: 'skip' } : (server_data_node ?? null),\n\t\t\t\tloader[0] ? previous?.server : undefined\n\t\t\t)\n\t\t});\n\t});\n\n\t// if we don't do this, rejections will be unhandled\n\tfor (const p of branch_promises) p.catch(() => {});\n\n\t/** @type {Array<import('./types.js').BranchNode | undefined>} */\n\tconst branch = [];\n\n\tfor (let i = 0; i < loaders.length; i += 1) {\n\t\tif (loaders[i]) {\n\t\t\ttry {\n\t\t\t\tbranch.push(await branch_promises[i]);\n\t\t\t} catch (err) {\n\t\t\t\tif (err instanceof Redirect) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\ttype: 'redirect',\n\t\t\t\t\t\tlocation: err.location\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tif (preload_tokens.has(preload)) {\n\t\t\t\t\treturn preload_error({\n\t\t\t\t\t\terror: await handle_error(err, { params, url, route: { id: route.id } }),\n\t\t\t\t\t\turl,\n\t\t\t\t\t\tparams,\n\t\t\t\t\t\troute\n\t\t\t\t\t});\n\t\t\t\t}\n\n\t\t\t\tlet status = get_status(err);\n\t\t\t\t/** @type {App.Error} */\n\t\t\t\tlet error;\n\n\t\t\t\tif (server_data_nodes?.includes(/** @type {import('types').ServerErrorNode} */ (err))) {\n\t\t\t\t\t// this is the server error rethrown above, reconstruct but don't invoke\n\t\t\t\t\t// the client error handler; it should've already been handled on the server\n\t\t\t\t\tstatus = /** @type {import('types').ServerErrorNode} */ (err).status ?? status;\n\t\t\t\t\terror = /** @type {import('types').ServerErrorNode} */ (err).error;\n\t\t\t\t} else if (err instanceof HttpError) {\n\t\t\t\t\terror = err.body;\n\t\t\t\t} else {\n\t\t\t\t\t// Referenced node could have been removed due to redeploy, check\n\t\t\t\t\tconst updated = await stores.updated.check();\n\t\t\t\t\tif (updated) {\n\t\t\t\t\t\t// Before reloading, try to update the service worker if it exists\n\t\t\t\t\t\tawait update_service_worker();\n\t\t\t\t\t\treturn await native_navigation(url);\n\t\t\t\t\t}\n\n\t\t\t\t\terror = await handle_error(err, { params, url, route: { id: route.id } });\n\t\t\t\t}\n\n\t\t\t\tconst error_load = await load_nearest_error_page(i, branch, errors);\n\t\t\t\tif (error_load) {\n\t\t\t\t\treturn get_navigation_result_from_branch({\n\t\t\t\t\t\turl,\n\t\t\t\t\t\tparams,\n\t\t\t\t\t\tbranch: branch.slice(0, error_load.idx).concat(error_load.node),\n\t\t\t\t\t\tstatus,\n\t\t\t\t\t\terror,\n\t\t\t\t\t\troute\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\treturn await server_fallback(url, { id: route.id }, error, status);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// push an empty slot so we can rewind past gaps to the\n\t\t\t// layout that corresponds with an +error.svelte page\n\t\t\tbranch.push(undefined);\n\t\t}\n\t}\n\n\treturn get_navigation_result_from_branch({\n\t\turl,\n\t\tparams,\n\t\tbranch,\n\t\tstatus: 200,\n\t\terror: null,\n\t\troute,\n\t\t// Reset `form` on navigation, but not invalidation\n\t\tform: invalidating ? undefined : null\n\t});\n}\n\n/**\n * @param {number} i Start index to backtrack from\n * @param {Array<import('./types.js').BranchNode | undefined>} branch Branch to backtrack\n * @param {Array<import('types').CSRPageNodeLoader | undefined>} errors All error pages for this branch\n * @returns {Promise<{idx: number; node: import('./types.js').BranchNode} | undefined>}\n */\nasync function load_nearest_error_page(i, branch, errors) {\n\twhile (i--) {\n\t\tif (errors[i]) {\n\t\t\tlet j = i;\n\t\t\twhile (!branch[j]) j -= 1;\n\t\t\ttry {\n\t\t\t\treturn {\n\t\t\t\t\tidx: j + 1,\n\t\t\t\t\tnode: {\n\t\t\t\t\t\tnode: await /** @type {import('types').CSRPageNodeLoader } */ (errors[i])(),\n\t\t\t\t\t\tloader: /** @type {import('types').CSRPageNodeLoader } */ (errors[i]),\n\t\t\t\t\t\tdata: {},\n\t\t\t\t\t\tserver: null,\n\t\t\t\t\t\tuniversal: null\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t} catch {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/**\n * @param {{\n * status: number;\n * error: App.Error;\n * url: URL;\n * route: { id: string | null }\n * }} opts\n * @returns {Promise<import('./types.js').NavigationFinished>}\n */\nasync function load_root_error_page({ status, error, url, route }) {\n\t/** @type {Record<string, string>} */\n\tconst params = {}; // error page does not have params\n\n\t/** @type {import('types').ServerDataNode | null} */\n\tlet server_data_node = null;\n\n\tif (__SVELTEKIT_HAS_SERVER_LOAD__) {\n\t\tconst default_layout_has_server_load = app.server_loads[0] === 0;\n\n\t\tif (default_layout_has_server_load) {\n\t\t\t// TODO post-https://github.com/sveltejs/kit/discussions/6124 we can use\n\t\t\t// existing root layout data\n\t\t\ttry {\n\t\t\t\tconst server_data = await load_data(url, [true]);\n\n\t\t\t\tif (\n\t\t\t\t\tserver_data.type !== 'data' ||\n\t\t\t\t\t(server_data.nodes[0] && server_data.nodes[0].type !== 'data')\n\t\t\t\t) {\n\t\t\t\t\tthrow 0;\n\t\t\t\t}\n\n\t\t\t\tserver_data_node = server_data.nodes[0] ?? null;\n\t\t\t} catch {\n\t\t\t\t// at this point we have no choice but to fall back to the server, if it wouldn't\n\t\t\t\t// bring us right back here, turning this into an endless loop\n\t\t\t\tif (url.origin !== origin || url.pathname !== location.pathname || hydrated) {\n\t\t\t\t\tawait native_navigation(url);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\ttry {\n\t\tconst root_layout = await load_node({\n\t\t\tloader: default_layout_loader,\n\t\t\turl,\n\t\t\tparams,\n\t\t\troute,\n\t\t\tparent: () => Promise.resolve({}),\n\t\t\tserver_data_node: create_data_node(server_data_node)\n\t\t});\n\n\t\t/** @type {import('./types.js').BranchNode} */\n\t\tconst root_error = {\n\t\t\tnode: await default_error_loader(),\n\t\t\tloader: default_error_loader,\n\t\t\tuniversal: null,\n\t\t\tserver: null,\n\t\t\tdata: null\n\t\t};\n\n\t\treturn get_navigation_result_from_branch({\n\t\t\turl,\n\t\t\tparams,\n\t\t\tbranch: [root_layout, root_error],\n\t\t\tstatus,\n\t\t\terror,\n\t\t\troute: null\n\t\t});\n\t} catch (error) {\n\t\tif (error instanceof Redirect) {\n\t\t\t// @ts-expect-error TODO investigate this\n\t\t\treturn _goto(new URL(error.location, location.href), {}, 0);\n\t\t}\n\n\t\t// TODO: this falls back to the server when a server exists, but what about SPA mode?\n\t\tthrow error;\n\t}\n}\n\n/**\n * Resolve the relative rerouted URL for a client-side navigation\n * @param {URL} url\n * @returns {Promise<URL | undefined>}\n */\nasync function get_rerouted_url(url) {\n\tconst href = url.href;\n\n\tif (reroute_cache.has(href)) {\n\t\treturn reroute_cache.get(href);\n\t}\n\n\tlet rerouted;\n\n\ttry {\n\t\tconst promise = (async () => {\n\t\t\t// reroute could alter the given URL, so we pass a copy\n\t\t\tlet rerouted =\n\t\t\t\t(await app.hooks.reroute({\n\t\t\t\t\turl: new URL(url),\n\t\t\t\t\tfetch: async (input, init) => {\n\t\t\t\t\t\treturn resolve_fetch_url(input, init, url).promise;\n\t\t\t\t\t}\n\t\t\t\t})) ?? url;\n\n\t\t\tif (typeof rerouted === 'string') {\n\t\t\t\tconst tmp = new URL(url); // do not mutate the incoming URL\n\n\t\t\t\tif (app.hash) {\n\t\t\t\t\ttmp.hash = rerouted;\n\t\t\t\t} else {\n\t\t\t\t\ttmp.pathname = rerouted;\n\t\t\t\t}\n\n\t\t\t\trerouted = tmp;\n\t\t\t}\n\n\t\t\treturn rerouted;\n\t\t})();\n\n\t\treroute_cache.set(href, promise);\n\t\trerouted = await promise;\n\t} catch (e) {\n\t\treroute_cache.delete(href);\n\t\tif (DEV) {\n\t\t\t// in development, print the error...\n\t\t\tconsole.error(e);\n\n\t\t\t// ...and pause execution, since otherwise we will immediately reload the page\n\t\t\tdebugger; // eslint-disable-line\n\t\t}\n\n\t\t// fall back to native navigation\n\t\treturn;\n\t}\n\n\treturn rerouted;\n}\n\n/**\n * Resolve the full info (which route, params, etc.) for a client-side navigation from the URL,\n * taking the reroute hook into account. If this isn't a client-side-navigation (or the URL is undefined),\n * returns undefined.\n * @param {URL | undefined} url\n * @param {boolean} invalidating\n * @returns {Promise<import('./types.js').NavigationIntent | undefined>}\n */\nasync function get_navigation_intent(url, invalidating) {\n\tif (!url) return;\n\tif (is_external_url(url, base, app.hash)) return;\n\n\tif (__SVELTEKIT_CLIENT_ROUTING__) {\n\t\tconst rerouted = await get_rerouted_url(url);\n\t\tif (!rerouted) return;\n\n\t\tconst path = get_url_path(rerouted);\n\n\t\tfor (const route of routes) {\n\t\t\tconst params = route.exec(path);\n\n\t\t\tif (params) {\n\t\t\t\treturn {\n\t\t\t\t\tid: get_page_key(url),\n\t\t\t\t\tinvalidating,\n\t\t\t\t\troute,\n\t\t\t\t\tparams: decode_params(params),\n\t\t\t\t\turl\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t} else {\n\t\t/** @type {{ route?: import('types').CSRRouteServer, params: Record<string, string>}} */\n\t\tconst { route, params } = await import(\n\t\t\t/* @vite-ignore */\n\t\t\tadd_resolution_suffix(url.pathname)\n\t\t);\n\n\t\tif (!route) return;\n\n\t\treturn {\n\t\t\tid: get_page_key(url),\n\t\t\tinvalidating,\n\t\t\troute: parse_server_route(route, app.nodes),\n\t\t\tparams,\n\t\t\turl\n\t\t};\n\t}\n}\n\n/** @param {URL} url */\nfunction get_url_path(url) {\n\treturn (\n\t\tdecode_pathname(\n\t\t\tapp.hash ? url.hash.replace(/^#/, '').replace(/[?#].+/, '') : url.pathname.slice(base.length)\n\t\t) || '/'\n\t);\n}\n\n/** @param {URL} url */\nfunction get_page_key(url) {\n\treturn (app.hash ? url.hash.replace(/^#/, '') : url.pathname) + url.search;\n}\n\n/**\n * @param {{\n * url: URL;\n * type: import('@sveltejs/kit').Navigation[\"type\"];\n * intent?: import('./types.js').NavigationIntent;\n * delta?: number;\n * event?: PopStateEvent | MouseEvent;\n * }} opts\n */\nfunction _before_navigate({ url, type, intent, delta, event }) {\n\tlet should_block = false;\n\n\tconst nav = create_navigation(current, intent, url, type);\n\n\tif (delta !== undefined) {\n\t\tnav.navigation.delta = delta;\n\t}\n\n\tif (event !== undefined) {\n\t\t// @ts-ignore\n\t\tnav.navigation.event = event;\n\t}\n\n\tconst cancellable = {\n\t\t...nav.navigation,\n\t\tcancel: () => {\n\t\t\tshould_block = true;\n\t\t\tnav.reject(new Error('navigation cancelled'));\n\t\t}\n\t};\n\n\tif (!is_navigating) {\n\t\t// Don't run the event during redirects\n\t\tbefore_navigate_callbacks.forEach((fn) => fn(cancellable));\n\t}\n\n\treturn should_block ? null : nav;\n}\n\n/**\n * @param {{\n * type: import('@sveltejs/kit').NavigationType;\n * url: URL;\n * popped?: {\n * state: Record<string, any>;\n * scroll: { x: number, y: number };\n * delta: number;\n * };\n * keepfocus?: boolean;\n * noscroll?: boolean;\n * replace_state?: boolean;\n * state?: Record<string, any>;\n * redirect_count?: number;\n * nav_token?: {};\n * accept?: () => void;\n * block?: () => void;\n * event?: Event\n * }} opts\n */\nasync function navigate({\n\ttype,\n\turl,\n\tpopped,\n\tkeepfocus,\n\tnoscroll,\n\treplace_state,\n\tstate = {},\n\tredirect_count = 0,\n\tnav_token = {},\n\taccept = noop,\n\tblock = noop,\n\tevent\n}) {\n\tremote_responses = {};\n\n\tconst prev_token = token;\n\ttoken = nav_token;\n\n\tconst intent = await get_navigation_intent(url, false);\n\tconst nav =\n\t\ttype === 'enter'\n\t\t\t? create_navigation(current, intent, url, type)\n\t\t\t: _before_navigate({\n\t\t\t\t\turl,\n\t\t\t\t\ttype,\n\t\t\t\t\tdelta: popped?.delta,\n\t\t\t\t\tintent,\n\t\t\t\t\t// @ts-ignore\n\t\t\t\t\tevent\n\t\t\t\t});\n\n\tif (!nav) {\n\t\tblock();\n\t\tif (token === nav_token) token = prev_token;\n\t\treturn;\n\t}\n\n\t// store this before calling `accept()`, which may change the index\n\tconst previous_history_index = current_history_index;\n\tconst previous_navigation_index = current_navigation_index;\n\n\taccept();\n\n\tis_navigating = true;\n\n\tif (started && nav.navigation.type !== 'enter') {\n\t\tstores.navigating.set((navigating.current = nav.navigation));\n\t}\n\n\tlet navigation_result = intent && (await load_route(intent));\n\n\tif (!navigation_result) {\n\t\tif (is_external_url(url, base, app.hash)) {\n\t\t\tif (DEV && app.hash) {\n\t\t\t\t// Special case for hash mode during DEV: If someone accidentally forgets to use a hash for the link,\n\t\t\t\t// they would end up here in an endless loop. Fall back to error page in that case\n\t\t\t\tnavigation_result = await server_fallback(\n\t\t\t\t\turl,\n\t\t\t\t\t{ id: null },\n\t\t\t\t\tawait handle_error(\n\t\t\t\t\t\tnew SvelteKitError(\n\t\t\t\t\t\t\t404,\n\t\t\t\t\t\t\t'Not Found',\n\t\t\t\t\t\t\t`Not found: ${url.pathname} (did you forget the hash?)`\n\t\t\t\t\t\t),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\turl,\n\t\t\t\t\t\t\tparams: {},\n\t\t\t\t\t\t\troute: { id: null }\n\t\t\t\t\t\t}\n\t\t\t\t\t),\n\t\t\t\t\t404,\n\t\t\t\t\treplace_state\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\treturn await native_navigation(url, replace_state);\n\t\t\t}\n\t\t} else {\n\t\t\tnavigation_result = await server_fallback(\n\t\t\t\turl,\n\t\t\t\t{ id: null },\n\t\t\t\tawait handle_error(new SvelteKitError(404, 'Not Found', `Not found: ${url.pathname}`), {\n\t\t\t\t\turl,\n\t\t\t\t\tparams: {},\n\t\t\t\t\troute: { id: null }\n\t\t\t\t}),\n\t\t\t\t404,\n\t\t\t\treplace_state\n\t\t\t);\n\t\t}\n\t}\n\n\t// if this is an internal navigation intent, use the normalized\n\t// URL for the rest of the function\n\turl = intent?.url || url;\n\n\t// abort if user navigated during update\n\tif (token !== nav_token) {\n\t\tnav.reject(new Error('navigation aborted'));\n\t\treturn false;\n\t}\n\n\tif (navigation_result.type === 'redirect') {\n\t\t// whatwg fetch spec https://fetch.spec.whatwg.org/#http-redirect-fetch says to error after 20 redirects\n\t\tif (redirect_count < 20) {\n\t\t\tawait navigate({\n\t\t\t\ttype,\n\t\t\t\turl: new URL(navigation_result.location, url),\n\t\t\t\tpopped,\n\t\t\t\tkeepfocus,\n\t\t\t\tnoscroll,\n\t\t\t\treplace_state,\n\t\t\t\tstate,\n\t\t\t\tredirect_count: redirect_count + 1,\n\t\t\t\tnav_token\n\t\t\t});\n\n\t\t\tnav.fulfil(undefined);\n\t\t\treturn;\n\t\t}\n\n\t\tnavigation_result = await load_root_error_page({\n\t\t\tstatus: 500,\n\t\t\terror: await handle_error(new Error('Redirect loop'), {\n\t\t\t\turl,\n\t\t\t\tparams: {},\n\t\t\t\troute: { id: null }\n\t\t\t}),\n\t\t\turl,\n\t\t\troute: { id: null }\n\t\t});\n\t} else if (/** @type {number} */ (navigation_result.props.page.status) >= 400) {\n\t\tconst updated = await stores.updated.check();\n\t\tif (updated) {\n\t\t\t// Before reloading, try to update the service worker if it exists\n\t\t\tawait update_service_worker();\n\t\t\tawait native_navigation(url, replace_state);\n\t\t}\n\t}\n\n\t// reset invalidation only after a finished navigation. If there are redirects or\n\t// additional invalidations, they should get the same invalidation treatment\n\treset_invalidation();\n\n\tupdating = true;\n\n\tupdate_scroll_positions(previous_history_index);\n\tcapture_snapshot(previous_navigation_index);\n\n\t// ensure the url pathname matches the page's trailing slash option\n\tif (navigation_result.props.page.url.pathname !== url.pathname) {\n\t\turl.pathname = navigation_result.props.page.url.pathname;\n\t}\n\n\tstate = popped ? popped.state : state;\n\n\tif (!popped) {\n\t\t// this is a new navigation, rather than a popstate\n\t\tconst change = replace_state ? 0 : 1;\n\n\t\tconst entry = {\n\t\t\t[HISTORY_INDEX]: (current_history_index += change),\n\t\t\t[NAVIGATION_INDEX]: (current_navigation_index += change),\n\t\t\t[STATES_KEY]: state\n\t\t};\n\n\t\tconst fn = replace_state ? history.replaceState : history.pushState;\n\t\tfn.call(history, entry, '', url);\n\n\t\tif (!replace_state) {\n\t\t\tclear_onward_history(current_history_index, current_navigation_index);\n\t\t}\n\t}\n\n\t// also compare ids to avoid using wrong fork (e.g. a new one could've been added while navigating)\n\tconst load_cache_fork = intent && load_cache?.id === intent.id ? load_cache.fork : null;\n\t// reset preload synchronously after the history state has been set to avoid race conditions\n\tload_cache = null;\n\n\tnavigation_result.props.page.state = state;\n\n\t/**\n\t * @type {Promise<void> | undefined}\n\t */\n\tlet commit_promise;\n\tif (started) {\n\t\tconst after_navigate = (\n\t\t\tawait Promise.all(\n\t\t\t\tArray.from(on_navigate_callbacks, (fn) =>\n\t\t\t\t\tfn(/** @type {import('@sveltejs/kit').OnNavigate} */ (nav.navigation))\n\t\t\t\t)\n\t\t\t)\n\t\t).filter(/** @returns {value is () => void} */ (value) => typeof value === 'function');\n\n\t\tif (after_navigate.length > 0) {\n\t\t\tfunction cleanup() {\n\t\t\t\tafter_navigate.forEach((fn) => {\n\t\t\t\t\tafter_navigate_callbacks.delete(fn);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tafter_navigate.push(cleanup);\n\n\t\t\tafter_navigate.forEach((fn) => {\n\t\t\t\tafter_navigate_callbacks.add(fn);\n\t\t\t});\n\t\t}\n\n\t\tcurrent = navigation_result.state;\n\n\t\t// reset url before updating page store\n\t\tif (navigation_result.props.page) {\n\t\t\tnavigation_result.props.page.url = url;\n\t\t}\n\n\t\tconst fork = load_cache_fork && (await load_cache_fork);\n\n\t\tif (fork) {\n\t\t\tcommit_promise = fork.commit();\n\t\t} else {\n\t\t\troot.$set(navigation_result.props);\n\t\t\tupdate(navigation_result.props.page);\n\n\t\t\tcommit_promise = svelte.settled?.();\n\t\t}\n\n\t\thas_navigated = true;\n\t} else {\n\t\tawait initialize(navigation_result, target, false);\n\t}\n\n\tconst { activeElement } = document;\n\n\tawait commit_promise;\n\n\t// TODO 3.0 remote — the double tick is probably necessary because\n\t// of some store shenanigans. `settled()` and `f.commit()`\n\t// should resolve after DOM updates in newer versions\n\tawait svelte.tick();\n\tawait svelte.tick();\n\n\t// we reset scroll before dealing with focus, to avoid a flash of unscrolled content\n\tlet scroll = popped ? popped.scroll : noscroll ? scroll_state() : null;\n\n\tif (autoscroll) {\n\t\tconst deep_linked = url.hash && document.getElementById(get_id(url));\n\t\tif (scroll) {\n\t\t\tscrollTo(scroll.x, scroll.y);\n\t\t} else if (deep_linked) {\n\t\t\t// Here we use `scrollIntoView` on the element instead of `scrollTo`\n\t\t\t// because it natively supports the `scroll-margin` and `scroll-behavior`\n\t\t\t// CSS properties.\n\t\t\tdeep_linked.scrollIntoView();\n\n\t\t\t// Get target position at this point because with smooth scrolling the scroll position\n\t\t\t// retrieved from current x/y above might be wrong (since we might not have arrived at the destination yet)\n\t\t\tconst { top, left } = deep_linked.getBoundingClientRect();\n\n\t\t\tscroll = {\n\t\t\t\tx: pageXOffset + left,\n\t\t\t\ty: pageYOffset + top\n\t\t\t};\n\t\t} else {\n\t\t\tscrollTo(0, 0);\n\t\t}\n\t}\n\n\tconst changed_focus =\n\t\t// reset focus only if any manual focus management didn't override it\n\t\tdocument.activeElement !== activeElement &&\n\t\t// also refocus when activeElement is body already because the\n\t\t// focus event might not have been fired on it yet\n\t\tdocument.activeElement !== document.body;\n\n\tif (!keepfocus && !changed_focus) {\n\t\treset_focus(url, scroll);\n\t}\n\n\tautoscroll = true;\n\n\tif (navigation_result.props.page) {\n\t\tObject.assign(page, navigation_result.props.page);\n\t}\n\n\tis_navigating = false;\n\n\tif (type === 'popstate') {\n\t\trestore_snapshot(current_navigation_index);\n\t}\n\n\tnav.fulfil(undefined);\n\n\tafter_navigate_callbacks.forEach((fn) =>\n\t\tfn(/** @type {import('@sveltejs/kit').AfterNavigate} */ (nav.navigation))\n\t);\n\n\tstores.navigating.set((navigating.current = null));\n\n\tupdating = false;\n}\n\n/**\n * Does a full page reload if it wouldn't result in an endless loop in the SPA case\n * @param {URL} url\n * @param {{ id: string | null }} route\n * @param {App.Error} error\n * @param {number} status\n * @param {boolean} [replace_state]\n * @returns {Promise<import('./types.js').NavigationFinished>}\n */\nasync function server_fallback(url, route, error, status, replace_state) {\n\tif (url.origin === origin && url.pathname === location.pathname && !hydrated) {\n\t\t// We would reload the same page we're currently on, which isn't hydrated,\n\t\t// which means no SSR, which means we would end up in an endless loop\n\t\treturn await load_root_error_page({\n\t\t\tstatus,\n\t\t\terror,\n\t\t\turl,\n\t\t\troute\n\t\t});\n\t}\n\n\tif (DEV && status !== 404) {\n\t\tconsole.error(\n\t\t\t'An error occurred while loading the page. This will cause a full page reload. (This message will only appear during development.)'\n\t\t);\n\n\t\tdebugger; // eslint-disable-line\n\t}\n\n\treturn await native_navigation(url, replace_state);\n}\n\nif (import.meta.hot) {\n\timport.meta.hot.on('vite:beforeUpdate', () => {\n\t\tif (current.error) location.reload();\n\t});\n}\n\n/** @typedef {(typeof PRELOAD_PRIORITIES)['hover'] | (typeof PRELOAD_PRIORITIES)['tap']} PreloadDataPriority */\n\nfunction setup_preload() {\n\t/** @type {NodeJS.Timeout} */\n\tlet mousemove_timeout;\n\t/** @type {Element} */\n\tlet current_a;\n\t/** @type {PreloadDataPriority} */\n\tlet current_priority;\n\n\tcontainer.addEventListener('mousemove', (event) => {\n\t\tconst target = /** @type {Element} */ (event.target);\n\n\t\tclearTimeout(mousemove_timeout);\n\t\tmousemove_timeout = setTimeout(() => {\n\t\t\tvoid preload(target, PRELOAD_PRIORITIES.hover);\n\t\t}, 20);\n\t});\n\n\t/** @param {Event} event */\n\tfunction tap(event) {\n\t\tif (event.defaultPrevented) return;\n\t\tvoid preload(/** @type {Element} */ (event.composedPath()[0]), PRELOAD_PRIORITIES.tap);\n\t}\n\n\tcontainer.addEventListener('mousedown', tap);\n\tcontainer.addEventListener('touchstart', tap, { passive: true });\n\n\tconst observer = new IntersectionObserver(\n\t\t(entries) => {\n\t\t\tfor (const entry of entries) {\n\t\t\t\tif (entry.isIntersecting) {\n\t\t\t\t\tvoid _preload_code(new URL(/** @type {HTMLAnchorElement} */ (entry.target).href));\n\t\t\t\t\tobserver.unobserve(entry.target);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t{ threshold: 0 }\n\t);\n\n\t/**\n\t * @param {Element} element\n\t * @param {PreloadDataPriority} priority\n\t */\n\tasync function preload(element, priority) {\n\t\tconst a = find_anchor(element, container);\n\n\t\t// we don't want to preload data again if the user has already hovered/tapped\n\t\tconst interacted = a === current_a && priority >= current_priority;\n\t\tif (!a || interacted) return;\n\n\t\tconst { url, external, download } = get_link_info(a, base, app.hash);\n\t\tif (external || download) return;\n\n\t\tconst options = get_router_options(a);\n\n\t\t// we don't want to preload data for a page we're already on\n\t\tconst same_url = url && get_page_key(current.url) === get_page_key(url);\n\t\tif (options.reload || same_url) return;\n\n\t\tif (priority <= options.preload_data) {\n\t\t\tcurrent_a = a;\n\t\t\t// we don't want to preload data again on tap if we've already preloaded it on hover\n\t\t\tcurrent_priority = PRELOAD_PRIORITIES.tap;\n\n\t\t\tconst intent = await get_navigation_intent(url, false);\n\t\t\tif (!intent) return;\n\n\t\t\tif (DEV) {\n\t\t\t\tvoid _preload_data(intent).then((result) => {\n\t\t\t\t\tif (result.type === 'loaded' && result.state.error) {\n\t\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t\t`Preloading data for ${intent.url.pathname} failed with the following error: ${result.state.error.message}\\n` +\n\t\t\t\t\t\t\t\t'If this error is transient, you can ignore it. Otherwise, consider disabling preloading for this route. ' +\n\t\t\t\t\t\t\t\t'This route was preloaded due to a data-sveltekit-preload-data attribute. ' +\n\t\t\t\t\t\t\t\t'See https://svelte.dev/docs/kit/link-options for more info'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tvoid _preload_data(intent);\n\t\t\t}\n\t\t} else if (priority <= options.preload_code) {\n\t\t\tcurrent_a = a;\n\t\t\tcurrent_priority = priority;\n\t\t\tvoid _preload_code(/** @type {URL} */ (url));\n\t\t}\n\t}\n\n\tfunction after_navigate() {\n\t\tobserver.disconnect();\n\n\t\tfor (const a of container.querySelectorAll('a')) {\n\t\t\tconst { url, external, download } = get_link_info(a, base, app.hash);\n\t\t\tif (external || download) continue;\n\n\t\t\tconst options = get_router_options(a);\n\t\t\tif (options.reload) continue;\n\n\t\t\tif (options.preload_code === PRELOAD_PRIORITIES.viewport) {\n\t\t\t\tobserver.observe(a);\n\t\t\t}\n\n\t\t\tif (options.preload_code === PRELOAD_PRIORITIES.eager) {\n\t\t\t\tvoid _preload_code(/** @type {URL} */ (url));\n\t\t\t}\n\t\t}\n\t}\n\n\tafter_navigate_callbacks.add(after_navigate);\n\tafter_navigate();\n}\n\n/**\n * @param {unknown} error\n * @param {import('@sveltejs/kit').NavigationEvent} event\n * @returns {import('types').MaybePromise<App.Error>}\n */\nfunction handle_error(error, event) {\n\tif (error instanceof HttpError) {\n\t\treturn error.body;\n\t}\n\n\tif (DEV) {\n\t\terrored = true;\n\t\tconsole.warn('The next HMR update will cause the page to reload');\n\t}\n\n\tconst status = get_status(error);\n\tconst message = get_message(error);\n\n\treturn (\n\t\tapp.hooks.handleError({ error, event, status, message }) ?? /** @type {any} */ ({ message })\n\t);\n}\n\n/**\n * @template {Function} T\n * @param {Set<T>} callbacks\n * @param {T} callback\n */\nfunction add_navigation_callback(callbacks, callback) {\n\tonMount(() => {\n\t\tcallbacks.add(callback);\n\n\t\treturn () => {\n\t\t\tcallbacks.delete(callback);\n\t\t};\n\t});\n}\n\n/**\n * A lifecycle function that runs the supplied `callback` when the current component mounts, and also whenever we navigate to a URL.\n *\n * `afterNavigate` must be called during a component initialization. It remains active as long as the component is mounted.\n * @param {(navigation: import('@sveltejs/kit').AfterNavigate) => void} callback\n * @returns {void}\n */\nexport function afterNavigate(callback) {\n\tadd_navigation_callback(after_navigate_callbacks, callback);\n}\n\n/**\n * A navigation interceptor that triggers before we navigate to a URL, whether by clicking a link, calling `goto(...)`, or using the browser back/forward controls.\n *\n * Calling `cancel()` will prevent the navigation from completing. If `navigation.type === 'leave'` — meaning the user is navigating away from the app (or closing the tab) — calling `cancel` will trigger the native browser unload confirmation dialog. In this case, the navigation may or may not be cancelled depending on the user's response.\n *\n * When a navigation isn't to a SvelteKit-owned route (and therefore controlled by SvelteKit's client-side router), `navigation.to.route.id` will be `null`.\n *\n * If the navigation will (if not cancelled) cause the document to unload — in other words `'leave'` navigations and `'link'` navigations where `navigation.to.route === null` — `navigation.willUnload` is `true`.\n *\n * `beforeNavigate` must be called during a component initialization. It remains active as long as the component is mounted.\n * @param {(navigation: import('@sveltejs/kit').BeforeNavigate) => void} callback\n * @returns {void}\n */\nexport function beforeNavigate(callback) {\n\tadd_navigation_callback(before_navigate_callbacks, callback);\n}\n\n/**\n * A lifecycle function that runs the supplied `callback` immediately before we navigate to a new URL except during full-page navigations.\n *\n * If you return a `Promise`, SvelteKit will wait for it to resolve before completing the navigation. This allows you to — for example — use `document.startViewTransition`. Avoid promises that are slow to resolve, since navigation will appear stalled to the user.\n *\n * If a function (or a `Promise` that resolves to a function) is returned from the callback, it will be called once the DOM has updated.\n *\n * `onNavigate` must be called during a component initialization. It remains active as long as the component is mounted.\n * @param {(navigation: import('@sveltejs/kit').OnNavigate) => import('types').MaybePromise<(() => void) | void>} callback\n * @returns {void}\n */\nexport function onNavigate(callback) {\n\tadd_navigation_callback(on_navigate_callbacks, callback);\n}\n\n/**\n * If called when the page is being updated following a navigation (in `onMount` or `afterNavigate` or an action, for example), this disables SvelteKit's built-in scroll handling.\n * This is generally discouraged, since it breaks user expectations.\n * @returns {void}\n */\nexport function disableScrollHandling() {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call disableScrollHandling() on the server');\n\t}\n\n\tif (DEV && started && !updating) {\n\t\tthrow new Error('Can only disable scroll handling during navigation');\n\t}\n\n\tif (updating || !started) {\n\t\tautoscroll = false;\n\t}\n}\n\n/**\n * Allows you to navigate programmatically to a given route, with options such as keeping the current element focused.\n * Returns a Promise that resolves when SvelteKit navigates (or fails to navigate, in which case the promise rejects) to the specified `url`.\n *\n * For external URLs, use `window.location = url` instead of calling `goto(url)`.\n *\n * @param {string | URL} url Where to navigate to. Note that if you've set [`config.kit.paths.base`](https://svelte.dev/docs/kit/configuration#paths) and the URL is root-relative, you need to prepend the base path if you want to navigate within the app.\n * @param {Object} [opts] Options related to the navigation\n * @param {boolean} [opts.replaceState] If `true`, will replace the current `history` entry rather than creating a new one with `pushState`\n * @param {boolean} [opts.noScroll] If `true`, the browser will maintain its scroll position rather than scrolling to the top of the page after navigation\n * @param {boolean} [opts.keepFocus] If `true`, the currently focused element will retain focus after navigation. Otherwise, focus will be reset to the body\n * @param {boolean} [opts.invalidateAll] If `true`, all `load` functions of the page will be rerun. See https://svelte.dev/docs/kit/load#rerunning-load-functions for more info on invalidation.\n * @param {Array<string | URL | ((url: URL) => boolean)>} [opts.invalidate] Causes any load functions to re-run if they depend on one of the urls\n * @param {App.PageState} [opts.state] An optional object that will be available as `page.state`\n * @returns {Promise<void>}\n */\nexport function goto(url, opts = {}) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call goto(...) on the server');\n\t}\n\n\turl = new URL(resolve_url(url));\n\n\tif (url.origin !== origin) {\n\t\treturn Promise.reject(\n\t\t\tnew Error(\n\t\t\t\tDEV\n\t\t\t\t\t? `Cannot use \\`goto\\` with an external URL. Use \\`window.location = \"${url}\"\\` instead`\n\t\t\t\t\t: 'goto: invalid URL'\n\t\t\t)\n\t\t);\n\t}\n\n\treturn _goto(url, opts, 0);\n}\n\n/**\n * Causes any `load` functions belonging to the currently active page to re-run if they depend on the `url` in question, via `fetch` or `depends`. Returns a `Promise` that resolves when the page is subsequently updated.\n *\n * If the argument is given as a `string` or `URL`, it must resolve to the same URL that was passed to `fetch` or `depends` (including query parameters).\n * To create a custom identifier, use a string beginning with `[a-z]+:` (e.g. `custom:state`) — this is a valid URL.\n *\n * The `function` argument can be used define a custom predicate. It receives the full `URL` and causes `load` to rerun if `true` is returned.\n * This can be useful if you want to invalidate based on a pattern instead of a exact match.\n *\n * ```ts\n * // Example: Match '/path' regardless of the query parameters\n * import { invalidate } from '$app/navigation';\n *\n * invalidate((url) => url.pathname === '/path');\n * ```\n * @param {string | URL | ((url: URL) => boolean)} resource The invalidated URL\n * @returns {Promise<void>}\n */\nexport function invalidate(resource) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call invalidate(...) on the server');\n\t}\n\n\tpush_invalidated(resource);\n\n\treturn _invalidate();\n}\n\n/**\n * @param {string | URL | ((url: URL) => boolean)} resource The invalidated URL\n */\nfunction push_invalidated(resource) {\n\tif (typeof resource === 'function') {\n\t\tinvalidated.push(resource);\n\t} else {\n\t\tconst { href } = new URL(resource, location.href);\n\t\tinvalidated.push((url) => url.href === href);\n\t}\n}\n\n/**\n * Causes all `load` and `query` functions belonging to the currently active page to re-run. Returns a `Promise` that resolves when the page is subsequently updated.\n * @returns {Promise<void>}\n */\nexport function invalidateAll() {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call invalidateAll() on the server');\n\t}\n\n\tforce_invalidation = true;\n\treturn _invalidate();\n}\n\n/**\n * Causes all currently active remote functions to refresh, and all `load` functions belonging to the currently active page to re-run (unless disabled via the option argument).\n * Returns a `Promise` that resolves when the page is subsequently updated.\n * @param {{ includeLoadFunctions?: boolean }} [options]\n * @returns {Promise<void>}\n */\nexport function refreshAll({ includeLoadFunctions = true } = {}) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call refreshAll() on the server');\n\t}\n\n\tremote_responses = {};\n\n\tforce_invalidation = true;\n\treturn _invalidate(includeLoadFunctions, false);\n}\n\n/**\n * Programmatically preloads the given page, which means\n * 1. ensuring that the code for the page is loaded, and\n * 2. calling the page's load function with the appropriate options.\n *\n * This is the same behaviour that SvelteKit triggers when the user taps or mouses over an `<a>` element with `data-sveltekit-preload-data`.\n * If the next navigation is to `href`, the values returned from load will be used, making navigation instantaneous.\n * Returns a Promise that resolves with the result of running the new route's `load` functions once the preload is complete.\n *\n * @param {string} href Page to preload\n * @returns {Promise<{ type: 'loaded'; status: number; data: Record<string, any> } | { type: 'redirect'; location: string }>}\n */\nexport async function preloadData(href) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call preloadData(...) on the server');\n\t}\n\n\tconst url = resolve_url(href);\n\tconst intent = await get_navigation_intent(url, false);\n\n\tif (!intent) {\n\t\tthrow new Error(`Attempted to preload a URL that does not belong to this app: ${url}`);\n\t}\n\n\tconst result = await _preload_data(intent);\n\tif (result.type === 'redirect') {\n\t\treturn {\n\t\t\ttype: result.type,\n\t\t\tlocation: result.location\n\t\t};\n\t}\n\n\tconst { status, data } = result.props.page ?? page;\n\treturn { type: result.type, status, data };\n}\n\n/**\n * Programmatically imports the code for routes that haven't yet been fetched.\n * Typically, you might call this to speed up subsequent navigation.\n *\n * You can specify routes by any matching pathname such as `/about` (to match `src/routes/about/+page.svelte`) or `/blog/*` (to match `src/routes/blog/[slug]/+page.svelte`).\n *\n * Unlike `preloadData`, this won't call `load` functions.\n * Returns a Promise that resolves when the modules have been imported.\n *\n * @param {string} pathname\n * @returns {Promise<void>}\n */\nexport async function preloadCode(pathname) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call preloadCode(...) on the server');\n\t}\n\n\tconst url = new URL(pathname, current.url);\n\n\tif (DEV) {\n\t\tif (!pathname.startsWith('/')) {\n\t\t\tthrow new Error(\n\t\t\t\t'argument passed to preloadCode must be a pathname (i.e. \"/about\" rather than \"http://example.com/about\"'\n\t\t\t);\n\t\t}\n\n\t\tif (!pathname.startsWith(base)) {\n\t\t\tthrow new Error(\n\t\t\t\t`pathname passed to preloadCode must start with \\`paths.base\\` (i.e. \"${base}${pathname}\" rather than \"${pathname}\")`\n\t\t\t);\n\t\t}\n\n\t\tif (__SVELTEKIT_CLIENT_ROUTING__) {\n\t\t\tconst rerouted = await get_rerouted_url(url);\n\t\t\tif (!rerouted || !routes.find((route) => route.exec(get_url_path(rerouted)))) {\n\t\t\t\tthrow new Error(`'${pathname}' did not match any routes`);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn _preload_code(url);\n}\n\n/**\n * Programmatically create a new history entry with the given `page.state`. To use the current URL, you can pass `''` as the first argument. Used for [shallow routing](https://svelte.dev/docs/kit/shallow-routing).\n *\n * @param {string | URL} url\n * @param {App.PageState} state\n * @returns {void}\n */\nexport function pushState(url, state) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call pushState(...) on the server');\n\t}\n\n\tif (DEV) {\n\t\tif (!started) {\n\t\t\tthrow new Error('Cannot call pushState(...) before router is initialized');\n\t\t}\n\n\t\ttry {\n\t\t\t// use `devalue.stringify` as a convenient way to ensure we exclude values that can't be properly rehydrated, such as custom class instances\n\t\t\tdevalue.stringify(state);\n\t\t} catch (error) {\n\t\t\t// @ts-expect-error\n\t\t\tthrow new Error(`Could not serialize state${error.path}`);\n\t\t}\n\t}\n\n\tupdate_scroll_positions(current_history_index);\n\n\tconst opts = {\n\t\t[HISTORY_INDEX]: (current_history_index += 1),\n\t\t[NAVIGATION_INDEX]: current_navigation_index,\n\t\t[PAGE_URL_KEY]: page.url.href,\n\t\t[STATES_KEY]: state\n\t};\n\n\thistory.pushState(opts, '', resolve_url(url));\n\thas_navigated = true;\n\n\tpage.state = state;\n\troot.$set({\n\t\t// we need to assign a new page object so that subscribers are correctly notified\n\t\tpage: untrack(() => clone_page(page))\n\t});\n\n\tclear_onward_history(current_history_index, current_navigation_index);\n}\n\n/**\n * Programmatically replace the current history entry with the given `page.state`. To use the current URL, you can pass `''` as the first argument. Used for [shallow routing](https://svelte.dev/docs/kit/shallow-routing).\n *\n * @param {string | URL} url\n * @param {App.PageState} state\n * @returns {void}\n */\nexport function replaceState(url, state) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call replaceState(...) on the server');\n\t}\n\n\tif (DEV) {\n\t\tif (!started) {\n\t\t\tthrow new Error('Cannot call replaceState(...) before router is initialized');\n\t\t}\n\n\t\ttry {\n\t\t\t// use `devalue.stringify` as a convenient way to ensure we exclude values that can't be properly rehydrated, such as custom class instances\n\t\t\tdevalue.stringify(state);\n\t\t} catch (error) {\n\t\t\t// @ts-expect-error\n\t\t\tthrow new Error(`Could not serialize state${error.path}`);\n\t\t}\n\t}\n\n\tconst opts = {\n\t\t[HISTORY_INDEX]: current_history_index,\n\t\t[NAVIGATION_INDEX]: current_navigation_index,\n\t\t[PAGE_URL_KEY]: page.url.href,\n\t\t[STATES_KEY]: state\n\t};\n\n\thistory.replaceState(opts, '', resolve_url(url));\n\n\tpage.state = state;\n\troot.$set({\n\t\tpage: untrack(() => clone_page(page))\n\t});\n}\n\n/**\n * This action updates the `form` property of the current page with the given data and updates `page.status`.\n * In case of an error, it redirects to the nearest error page.\n * @template {Record<string, unknown> | undefined} Success\n * @template {Record<string, unknown> | undefined} Failure\n * @param {import('@sveltejs/kit').ActionResult<Success, Failure>} result\n * @returns {Promise<void>}\n */\nexport async function applyAction(result) {\n\tif (!BROWSER) {\n\t\tthrow new Error('Cannot call applyAction(...) on the server');\n\t}\n\n\tif (result.type === 'error') {\n\t\tawait set_nearest_error_page(result.error, result.status);\n\t} else if (result.type === 'redirect') {\n\t\tawait _goto(result.location, { invalidateAll: true }, 0);\n\t} else {\n\t\tpage.form = result.data;\n\t\tpage.status = result.status;\n\n\t\t/** @type {Record<string, any>} */\n\t\troot.$set({\n\t\t\t// this brings Svelte's view of the world in line with SvelteKit's\n\t\t\t// after use:enhance reset the form....\n\t\t\tform: null,\n\t\t\tpage: clone_page(page)\n\t\t});\n\n\t\t// ...so that setting the `form` prop takes effect and isn't ignored\n\t\tawait tick();\n\t\troot.$set({ form: result.data });\n\n\t\tif (result.type === 'success') {\n\t\t\treset_focus(page.url);\n\t\t}\n\t}\n}\n\n/**\n * @param {App.Error} error\n * @param {number} status\n */\nexport async function set_nearest_error_page(error, status = 500) {\n\tconst url = new URL(location.href);\n\n\tconst { branch, route } = current;\n\tif (!route) return;\n\n\tconst error_load = await load_nearest_error_page(current.branch.length, branch, route.errors);\n\tif (error_load) {\n\t\tconst navigation_result = get_navigation_result_from_branch({\n\t\t\turl,\n\t\t\tparams: current.params,\n\t\t\tbranch: branch.slice(0, error_load.idx).concat(error_load.node),\n\t\t\tstatus,\n\t\t\terror,\n\t\t\troute\n\t\t});\n\n\t\tcurrent = navigation_result.state;\n\n\t\troot.$set(navigation_result.props);\n\t\tupdate(navigation_result.props.page);\n\n\t\tvoid tick().then(() => reset_focus(current.url));\n\t}\n}\n\nfunction _start_router() {\n\thistory.scrollRestoration = 'manual';\n\n\t// Adopted from Nuxt.js\n\t// Reset scrollRestoration to auto when leaving page, allowing page reload\n\t// and back-navigation from other pages to use the browser to restore the\n\t// scrolling position.\n\taddEventListener('beforeunload', (e) => {\n\t\tlet should_block = false;\n\n\t\tpersist_state();\n\n\t\tif (!is_navigating) {\n\t\t\tconst nav = create_navigation(current, undefined, null, 'leave');\n\n\t\t\t// If we're navigating, beforeNavigate was already called. If we end up in here during navigation,\n\t\t\t// it's due to an external or full-page-reload link, for which we don't want to call the hook again.\n\t\t\t/** @type {import('@sveltejs/kit').BeforeNavigate} */\n\t\t\tconst navigation = {\n\t\t\t\t...nav.navigation,\n\t\t\t\tcancel: () => {\n\t\t\t\t\tshould_block = true;\n\t\t\t\t\tnav.reject(new Error('navigation cancelled'));\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tbefore_navigate_callbacks.forEach((fn) => fn(navigation));\n\t\t}\n\n\t\tif (should_block) {\n\t\t\te.preventDefault();\n\t\t\te.returnValue = '';\n\t\t} else {\n\t\t\thistory.scrollRestoration = 'auto';\n\t\t}\n\t});\n\n\taddEventListener('visibilitychange', () => {\n\t\tif (document.visibilityState === 'hidden') {\n\t\t\tpersist_state();\n\t\t}\n\t});\n\n\t// @ts-expect-error this isn't supported everywhere yet\n\tif (!navigator.connection?.saveData) {\n\t\tsetup_preload();\n\t}\n\n\t/** @param {MouseEvent} event */\n\tcontainer.addEventListener('click', async (event) => {\n\t\t// Adapted from https://github.com/visionmedia/page.js\n\t\t// MIT license https://github.com/visionmedia/page.js#license\n\t\tif (event.button || event.which !== 1) return;\n\t\tif (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return;\n\t\tif (event.defaultPrevented) return;\n\n\t\tconst a = find_anchor(/** @type {Element} */ (event.composedPath()[0]), container);\n\t\tif (!a) return;\n\n\t\tconst { url, external, target, download } = get_link_info(a, base, app.hash);\n\t\tif (!url) return;\n\n\t\t// bail out before `beforeNavigate` if link opens in a different tab\n\t\tif (target === '_parent' || target === '_top') {\n\t\t\tif (window.parent !== window) return;\n\t\t} else if (target && target !== '_self') {\n\t\t\treturn;\n\t\t}\n\n\t\tconst options = get_router_options(a);\n\t\tconst is_svg_a_element = a instanceof SVGAElement;\n\n\t\t// Ignore URL protocols that differ to the current one and are not http(s) (e.g. `mailto:`, `tel:`, `myapp:`, etc.)\n\t\t// This may be wrong when the protocol is x: and the link goes to y:.. which should be treated as an external\n\t\t// navigation, but it's not clear how to handle that case and it's not likely to come up in practice.\n\t\t// MEMO: Without this condition, firefox will open mailer twice.\n\t\t// See:\n\t\t// - https://github.com/sveltejs/kit/issues/4045\n\t\t// - https://github.com/sveltejs/kit/issues/5725\n\t\t// - https://github.com/sveltejs/kit/issues/6496\n\t\tif (\n\t\t\t!is_svg_a_element &&\n\t\t\turl.protocol !== location.protocol &&\n\t\t\t!(url.protocol === 'https:' || url.protocol === 'http:')\n\t\t)\n\t\t\treturn;\n\n\t\tif (download) return;\n\n\t\tconst [nonhash, hash] = (app.hash ? url.hash.replace(/^#/, '') : url.href).split('#');\n\t\tconst same_pathname = nonhash === strip_hash(location);\n\n\t\t// Ignore the following but fire beforeNavigate\n\t\tif (external || (options.reload && (!same_pathname || !hash))) {\n\t\t\tif (_before_navigate({ url, type: 'link', event })) {\n\t\t\t\t// set `navigating` to `true` to prevent `beforeNavigate` callbacks\n\t\t\t\t// being called when the page unloads\n\t\t\t\tis_navigating = true;\n\t\t\t} else {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\t// Check if new url only differs by hash and use the browser default behavior in that case\n\t\t// This will ensure the `hashchange` event is fired\n\t\t// Removing the hash does a full page navigation in the browser, so make sure a hash is present\n\t\tif (hash !== undefined && same_pathname) {\n\t\t\t// If we are trying to navigate to the same hash, we should only\n\t\t\t// attempt to scroll to that element and avoid any history changes.\n\t\t\t// Otherwise, this can cause Firefox to incorrectly assign a null\n\t\t\t// history state value without any signal that we can detect.\n\t\t\tconst [, current_hash] = current.url.href.split('#');\n\t\t\tif (current_hash === hash) {\n\t\t\t\tevent.preventDefault();\n\n\t\t\t\t// We're already on /# and click on a link that goes to /#, or we're on\n\t\t\t\t// /#top and click on a link that goes to /#top. In those cases just go to\n\t\t\t\t// the top of the page, and avoid a history change.\n\t\t\t\tif (hash === '' || (hash === 'top' && a.ownerDocument.getElementById('top') === null)) {\n\t\t\t\t\tscrollTo({ top: 0 });\n\t\t\t\t} else {\n\t\t\t\t\tconst element = a.ownerDocument.getElementById(decodeURIComponent(hash));\n\t\t\t\t\tif (element) {\n\t\t\t\t\t\telement.scrollIntoView();\n\t\t\t\t\t\telement.focus();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// set this flag to distinguish between navigations triggered by\n\t\t\t// clicking a hash link and those triggered by popstate\n\t\t\thash_navigating = true;\n\n\t\t\tupdate_scroll_positions(current_history_index);\n\n\t\t\tupdate_url(url);\n\n\t\t\tif (!options.replace_state) return;\n\n\t\t\t// hashchange event shouldn't occur if the router is replacing state.\n\t\t\thash_navigating = false;\n\t\t}\n\n\t\tevent.preventDefault();\n\n\t\t// allow the browser to repaint before navigating —\n\t\t// this prevents INP scores being penalised\n\t\tawait new Promise((fulfil) => {\n\t\t\trequestAnimationFrame(() => {\n\t\t\t\tsetTimeout(fulfil, 0);\n\t\t\t});\n\n\t\t\tsetTimeout(fulfil, 100); // fallback for edge case where rAF doesn't fire because e.g. tab was backgrounded\n\t\t});\n\n\t\tawait navigate({\n\t\t\ttype: 'link',\n\t\t\turl,\n\t\t\tkeepfocus: options.keepfocus,\n\t\t\tnoscroll: options.noscroll,\n\t\t\treplace_state: options.replace_state ?? url.href === location.href,\n\t\t\tevent\n\t\t});\n\t});\n\n\tcontainer.addEventListener('submit', (event) => {\n\t\tif (event.defaultPrevented) return;\n\n\t\tconst form = /** @type {HTMLFormElement} */ (\n\t\t\tHTMLFormElement.prototype.cloneNode.call(event.target)\n\t\t);\n\n\t\tconst submitter = /** @type {HTMLButtonElement | HTMLInputElement | null} */ (event.submitter);\n\n\t\tconst target = submitter?.formTarget || form.target;\n\n\t\tif (target === '_blank') return;\n\n\t\tconst method = submitter?.formMethod || form.method;\n\n\t\tif (method !== 'get') return;\n\n\t\t// It is impossible to use form actions with hash router, so we just ignore handling them here\n\t\tconst url = new URL(\n\t\t\t(submitter?.hasAttribute('formaction') && submitter?.formAction) || form.action\n\t\t);\n\n\t\tif (is_external_url(url, base, false)) return;\n\n\t\tconst event_form = /** @type {HTMLFormElement} */ (event.target);\n\n\t\tconst options = get_router_options(event_form);\n\t\tif (options.reload) return;\n\n\t\tevent.preventDefault();\n\t\tevent.stopPropagation();\n\n\t\tconst data = new FormData(event_form, submitter);\n\n\t\t// @ts-expect-error `URLSearchParams(fd)` is kosher, but typescript doesn't know that\n\t\turl.search = new URLSearchParams(data).toString();\n\n\t\tvoid navigate({\n\t\t\ttype: 'form',\n\t\t\turl,\n\t\t\tkeepfocus: options.keepfocus,\n\t\t\tnoscroll: options.noscroll,\n\t\t\treplace_state: options.replace_state ?? url.href === location.href,\n\t\t\tevent\n\t\t});\n\t});\n\n\taddEventListener('popstate', async (event) => {\n\t\tif (resetting_focus) return;\n\n\t\tif (event.state?.[HISTORY_INDEX]) {\n\t\t\tconst history_index = event.state[HISTORY_INDEX];\n\t\t\ttoken = {};\n\n\t\t\t// if a popstate-driven navigation is cancelled, we need to counteract it\n\t\t\t// with history.go, which means we end up back here, hence this check\n\t\t\tif (history_index === current_history_index) return;\n\n\t\t\tconst scroll = scroll_positions[history_index];\n\t\t\tconst state = event.state[STATES_KEY] ?? {};\n\t\t\tconst url = new URL(event.state[PAGE_URL_KEY] ?? location.href);\n\t\t\tconst navigation_index = event.state[NAVIGATION_INDEX];\n\t\t\tconst is_hash_change = current.url ? strip_hash(location) === strip_hash(current.url) : false;\n\t\t\tconst shallow =\n\t\t\t\tnavigation_index === current_navigation_index && (has_navigated || is_hash_change);\n\n\t\t\tif (shallow) {\n\t\t\t\t// We don't need to navigate, we just need to update scroll and/or state.\n\t\t\t\t// This happens with hash links and `pushState`/`replaceState`. The\n\t\t\t\t// exception is if we haven't navigated yet, since we could have\n\t\t\t\t// got here after a modal navigation then a reload\n\t\t\t\tif (state !== page.state) {\n\t\t\t\t\tpage.state = state;\n\t\t\t\t}\n\n\t\t\t\tupdate_url(url);\n\n\t\t\t\tscroll_positions[current_history_index] = scroll_state();\n\t\t\t\tif (scroll) scrollTo(scroll.x, scroll.y);\n\n\t\t\t\tcurrent_history_index = history_index;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst delta = history_index - current_history_index;\n\n\t\t\tawait navigate({\n\t\t\t\ttype: 'popstate',\n\t\t\t\turl,\n\t\t\t\tpopped: {\n\t\t\t\t\tstate,\n\t\t\t\t\tscroll,\n\t\t\t\t\tdelta\n\t\t\t\t},\n\t\t\t\taccept: () => {\n\t\t\t\t\tcurrent_history_index = history_index;\n\t\t\t\t\tcurrent_navigation_index = navigation_index;\n\t\t\t\t},\n\t\t\t\tblock: () => {\n\t\t\t\t\thistory.go(-delta);\n\t\t\t\t},\n\t\t\t\tnav_token: token,\n\t\t\t\tevent\n\t\t\t});\n\t\t} else {\n\t\t\t// since popstate event is also emitted when an anchor referencing the same\n\t\t\t// document is clicked, we have to check that the router isn't already handling\n\t\t\t// the navigation. otherwise we would be updating the page store twice.\n\t\t\tif (!hash_navigating) {\n\t\t\t\tconst url = new URL(location.href);\n\t\t\t\tupdate_url(url);\n\n\t\t\t\t// if the user edits the hash via the browser URL bar, trigger a full-page\n\t\t\t\t// reload to align with pathname router behavior\n\t\t\t\tif (app.hash) {\n\t\t\t\t\tlocation.reload();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\taddEventListener('hashchange', () => {\n\t\t// if the hashchange happened as a result of clicking on a link,\n\t\t// we need to update history, otherwise we have to leave it alone\n\t\tif (hash_navigating) {\n\t\t\thash_navigating = false;\n\t\t\thistory.replaceState(\n\t\t\t\t{\n\t\t\t\t\t...history.state,\n\t\t\t\t\t[HISTORY_INDEX]: ++current_history_index,\n\t\t\t\t\t[NAVIGATION_INDEX]: current_navigation_index\n\t\t\t\t},\n\t\t\t\t'',\n\t\t\t\tlocation.href\n\t\t\t);\n\t\t}\n\t});\n\n\t// fix link[rel=icon], because browsers will occasionally try to load relative\n\t// URLs after a pushState/replaceState, resulting in a 404 — see\n\t// https://github.com/sveltejs/kit/issues/3748#issuecomment-1125980897\n\tfor (const link of document.querySelectorAll('link')) {\n\t\tif (ICON_REL_ATTRIBUTES.has(link.rel)) {\n\t\t\tlink.href = link.href; // eslint-disable-line\n\t\t}\n\t}\n\n\taddEventListener('pageshow', (event) => {\n\t\t// If the user navigates to another site and then uses the back button and\n\t\t// bfcache hits, we need to set navigating to null, the site doesn't know\n\t\t// the navigation away from it was successful.\n\t\t// Info about bfcache here: https://web.dev/bfcache\n\t\tif (event.persisted) {\n\t\t\tstores.navigating.set((navigating.current = null));\n\t\t}\n\t});\n\n\t/**\n\t * @param {URL} url\n\t */\n\tfunction update_url(url) {\n\t\tcurrent.url = page.url = url;\n\t\tstores.page.set(clone_page(page));\n\t\tstores.page.notify();\n\t}\n}\n\n/**\n * @param {HTMLElement} target\n * @param {import('./types.js').HydrateOptions} opts\n */\nasync function _hydrate(\n\ttarget,\n\t{ status = 200, error, node_ids, params, route, server_route, data: server_data_nodes, form }\n) {\n\thydrated = true;\n\n\tconst url = new URL(location.href);\n\n\t/** @type {import('types').CSRRoute | undefined} */\n\tlet parsed_route;\n\n\tif (__SVELTEKIT_CLIENT_ROUTING__) {\n\t\tif (!__SVELTEKIT_EMBEDDED__) {\n\t\t\t// See https://github.com/sveltejs/kit/pull/4935#issuecomment-1328093358 for one motivation\n\t\t\t// of determining the params on the client side.\n\t\t\t({ params = {}, route = { id: null } } = (await get_navigation_intent(url, false)) || {});\n\t\t}\n\n\t\tparsed_route = routes.find(({ id }) => id === route.id);\n\t} else {\n\t\t// undefined in case of 404\n\t\tif (server_route) {\n\t\t\tparsed_route = route = parse_server_route(server_route, app.nodes);\n\t\t} else {\n\t\t\troute = { id: null };\n\t\t\tparams = {};\n\t\t}\n\t}\n\n\t/** @type {import('./types.js').NavigationFinished | undefined} */\n\tlet result;\n\tlet hydrate = true;\n\n\ttry {\n\t\tconst branch_promises = node_ids.map(async (n, i) => {\n\t\t\tconst server_data_node = server_data_nodes[i];\n\t\t\t// Type isn't completely accurate, we still need to deserialize uses\n\t\t\tif (server_data_node?.uses) {\n\t\t\t\tserver_data_node.uses = deserialize_uses(server_data_node.uses);\n\t\t\t}\n\n\t\t\treturn load_node({\n\t\t\t\tloader: app.nodes[n],\n\t\t\t\turl,\n\t\t\t\tparams,\n\t\t\t\troute,\n\t\t\t\tparent: async () => {\n\t\t\t\t\tconst data = {};\n\t\t\t\t\tfor (let j = 0; j < i; j += 1) {\n\t\t\t\t\t\tObject.assign(data, (await branch_promises[j]).data);\n\t\t\t\t\t}\n\t\t\t\t\treturn data;\n\t\t\t\t},\n\t\t\t\tserver_data_node: create_data_node(server_data_node)\n\t\t\t});\n\t\t});\n\n\t\t/** @type {Array<import('./types.js').BranchNode | undefined>} */\n\t\tconst branch = await Promise.all(branch_promises);\n\n\t\t// server-side will have compacted the branch, reinstate empty slots\n\t\t// so that error boundaries can be lined up correctly\n\t\tif (parsed_route) {\n\t\t\tconst layouts = parsed_route.layouts;\n\t\t\tfor (let i = 0; i < layouts.length; i++) {\n\t\t\t\tif (!layouts[i]) {\n\t\t\t\t\tbranch.splice(i, 0, undefined);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tresult = get_navigation_result_from_branch({\n\t\t\turl,\n\t\t\tparams,\n\t\t\tbranch,\n\t\t\tstatus,\n\t\t\terror,\n\t\t\tform,\n\t\t\troute: parsed_route ?? null\n\t\t});\n\t} catch (error) {\n\t\tif (error instanceof Redirect) {\n\t\t\t// this is a real edge case — `load` would need to return\n\t\t\t// a redirect but only in the browser\n\t\t\tawait native_navigation(new URL(error.location, location.href));\n\t\t\treturn;\n\t\t}\n\n\t\tresult = await load_root_error_page({\n\t\t\tstatus: get_status(error),\n\t\t\terror: await handle_error(error, { url, params, route }),\n\t\t\turl,\n\t\t\troute\n\t\t});\n\n\t\ttarget.textContent = '';\n\t\thydrate = false;\n\t}\n\n\tif (result.props.page) {\n\t\tresult.props.page.state = {};\n\t}\n\n\tawait initialize(result, target, hydrate);\n}\n\n/**\n * @param {URL} url\n * @param {boolean[]} invalid\n * @returns {Promise<import('types').ServerNodesResponse | import('types').ServerRedirectNode>}\n */\nasync function load_data(url, invalid) {\n\tconst data_url = new URL(url);\n\tdata_url.pathname = add_data_suffix(url.pathname);\n\tif (url.pathname.endsWith('/')) {\n\t\tdata_url.searchParams.append(TRAILING_SLASH_PARAM, '1');\n\t}\n\tif (DEV && url.searchParams.has(INVALIDATED_PARAM)) {\n\t\tthrow new Error(`Cannot used reserved query parameter \"${INVALIDATED_PARAM}\"`);\n\t}\n\tdata_url.searchParams.append(INVALIDATED_PARAM, invalid.map((i) => (i ? '1' : '0')).join(''));\n\n\t// use window.fetch directly to allow using a 3rd party-patched fetch implementation\n\tconst fetcher = DEV ? dev_fetch : window.fetch;\n\tconst res = await fetcher(data_url.href, {});\n\n\tif (!res.ok) {\n\t\t// error message is a JSON-stringified string which devalue can't handle at the top level\n\t\t// turn it into a HttpError to not call handleError on the client again (was already handled on the server)\n\t\t// if `__data.json` doesn't exist or the server has an internal error,\n\t\t// avoid parsing the HTML error page as a JSON\n\t\t/** @type {string | undefined} */\n\t\tlet message;\n\t\tif (res.headers.get('content-type')?.includes('application/json')) {\n\t\t\tmessage = await res.json();\n\t\t} else if (res.status === 404) {\n\t\t\tmessage = 'Not Found';\n\t\t} else if (res.status === 500) {\n\t\t\tmessage = 'Internal Error';\n\t\t}\n\t\tthrow new HttpError(res.status, message);\n\t}\n\n\t// TODO: fix eslint error / figure out if it actually applies to our situation\n\t// eslint-disable-next-line\n\treturn new Promise(async (resolve) => {\n\t\t/**\n\t\t * Map of deferred promises that will be resolved by a subsequent chunk of data\n\t\t * @type {Map<string, import('types').Deferred>}\n\t\t */\n\t\tconst deferreds = new Map();\n\t\tconst reader = /** @type {ReadableStream<Uint8Array>} */ (res.body).getReader();\n\n\t\t/**\n\t\t * @param {any} data\n\t\t */\n\t\tfunction deserialize(data) {\n\t\t\treturn devalue.unflatten(data, {\n\t\t\t\t...app.decoders,\n\t\t\t\tPromise: (id) => {\n\t\t\t\t\treturn new Promise((fulfil, reject) => {\n\t\t\t\t\t\tdeferreds.set(id, { fulfil, reject });\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tlet text = '';\n\n\t\twhile (true) {\n\t\t\t// Format follows ndjson (each line is a JSON object) or regular JSON spec\n\t\t\tconst { done, value } = await reader.read();\n\t\t\tif (done && !text) break;\n\n\t\t\ttext += !value && text ? '\\n' : text_decoder.decode(value, { stream: true }); // no value -> final chunk -> add a new line to trigger the last parse\n\n\t\t\twhile (true) {\n\t\t\t\tconst split = text.indexOf('\\n');\n\t\t\t\tif (split === -1) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tconst node = JSON.parse(text.slice(0, split));\n\t\t\t\ttext = text.slice(split + 1);\n\n\t\t\t\tif (node.type === 'redirect') {\n\t\t\t\t\treturn resolve(node);\n\t\t\t\t}\n\n\t\t\t\tif (node.type === 'data') {\n\t\t\t\t\t// This is the first (and possibly only, if no pending promises) chunk\n\t\t\t\t\tnode.nodes?.forEach((/** @type {any} */ node) => {\n\t\t\t\t\t\tif (node?.type === 'data') {\n\t\t\t\t\t\t\tnode.uses = deserialize_uses(node.uses);\n\t\t\t\t\t\t\tnode.data = deserialize(node.data);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tresolve(node);\n\t\t\t\t} else if (node.type === 'chunk') {\n\t\t\t\t\t// This is a subsequent chunk containing deferred data\n\t\t\t\t\tconst { id, data, error } = node;\n\t\t\t\t\tconst deferred = /** @type {import('types').Deferred} */ (deferreds.get(id));\n\t\t\t\t\tdeferreds.delete(id);\n\n\t\t\t\t\tif (error) {\n\t\t\t\t\t\tdeferred.reject(deserialize(error));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdeferred.fulfil(deserialize(data));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\t// TODO edge case handling necessary? stream() read fails?\n}\n\n/**\n * @param {any} uses\n * @return {import('types').Uses}\n */\nfunction deserialize_uses(uses) {\n\treturn {\n\t\tdependencies: new Set(uses?.dependencies ?? []),\n\t\tparams: new Set(uses?.params ?? []),\n\t\tparent: !!uses?.parent,\n\t\troute: !!uses?.route,\n\t\turl: !!uses?.url,\n\t\tsearch_params: new Set(uses?.search_params ?? [])\n\t};\n}\n\n/**\n * This flag is used to avoid client-side navigation when we're only using\n * `location.replace()` to set focus.\n */\nlet resetting_focus = false;\n\n/**\n * @param {URL} url\n * @param {{ x: number, y: number } | null} scroll\n */\nfunction reset_focus(url, scroll = null) {\n\tconst autofocus = document.querySelector('[autofocus]');\n\tif (autofocus) {\n\t\t// @ts-ignore\n\t\tautofocus.focus();\n\t} else {\n\t\t// Reset page selection and focus\n\n\t\t// Mimic the browsers' behaviour and set the sequential focus navigation\n\t\t// starting point to the fragment identifier.\n\t\tconst id = get_id(url);\n\t\tif (id && document.getElementById(id)) {\n\t\t\tconst { x, y } = scroll ?? scroll_state();\n\n\t\t\t// `element.focus()` doesn't work on Safari and Firefox Ubuntu so we need\n\t\t\t// to use this hack with `location.replace()` instead.\n\t\t\tsetTimeout(() => {\n\t\t\t\tconst history_state = history.state;\n\n\t\t\t\tresetting_focus = true;\n\t\t\t\tlocation.replace(`#${id}`);\n\n\t\t\t\t// if we're using hash routing, we need to restore the original hash after\n\t\t\t\t// setting the focus with `location.replace()`. Although we're calling\n\t\t\t\t// `location.replace()` again, the focus won't shift to the new hash\n\t\t\t\t// unless there's an element with the ID `/pathname#hash`, etc.\n\t\t\t\tif (app.hash) {\n\t\t\t\t\tlocation.replace(url.hash);\n\t\t\t\t}\n\n\t\t\t\t// but Firefox has a bug that sets the history state to `null` so we\n\t\t\t\t// need to restore it after.\n\t\t\t\t// See https://bugzilla.mozilla.org/show_bug.cgi?id=1199924\n\t\t\t\thistory.replaceState(history_state, '', url.hash);\n\n\t\t\t\t// Scroll management has already happened earlier so we need to restore\n\t\t\t\t// the scroll position after setting the sequential focus navigation starting point\n\t\t\t\tscrollTo(x, y);\n\t\t\t\tresetting_focus = false;\n\t\t\t});\n\t\t} else {\n\t\t\t// If the ID doesn't exist, we try to mimic browsers' behaviour as closely\n\t\t\t// as possible by targeting the first scrollable region. Unfortunately, it's\n\t\t\t// not a perfect match — e.g. shift-tabbing won't immediately cycle up from\n\t\t\t// the end of the page on Chromium\n\t\t\t// See https://html.spec.whatwg.org/multipage/interaction.html#get-the-focusable-area\n\t\t\tconst root = document.body;\n\t\t\tconst tabindex = root.getAttribute('tabindex');\n\n\t\t\troot.tabIndex = -1;\n\t\t\t// @ts-expect-error options.focusVisible is only supported in Firefox\n\t\t\t// See https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#browser_compatibility\n\t\t\troot.focus({ preventScroll: true, focusVisible: false });\n\n\t\t\t// restore `tabindex` as to prevent `root` from stealing input from elements\n\t\t\tif (tabindex !== null) {\n\t\t\t\troot.setAttribute('tabindex', tabindex);\n\t\t\t} else {\n\t\t\t\troot.removeAttribute('tabindex');\n\t\t\t}\n\t\t}\n\n\t\t// capture current selection, so we can compare the state after\n\t\t// snapshot restoration and afterNavigate callbacks have run\n\t\tconst selection = getSelection();\n\n\t\tif (selection && selection.type !== 'None') {\n\t\t\t/** @type {Range[]} */\n\t\t\tconst ranges = [];\n\n\t\t\tfor (let i = 0; i < selection.rangeCount; i += 1) {\n\t\t\t\tranges.push(selection.getRangeAt(i));\n\t\t\t}\n\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (selection.rangeCount !== ranges.length) return;\n\n\t\t\t\tfor (let i = 0; i < selection.rangeCount; i += 1) {\n\t\t\t\t\tconst a = ranges[i];\n\t\t\t\t\tconst b = selection.getRangeAt(i);\n\n\t\t\t\t\t// we need to do a deep comparison rather than just `a !== b` because\n\t\t\t\t\t// Safari behaves differently to other browsers\n\t\t\t\t\tif (\n\t\t\t\t\t\ta.commonAncestorContainer !== b.commonAncestorContainer ||\n\t\t\t\t\t\ta.startContainer !== b.startContainer ||\n\t\t\t\t\t\ta.endContainer !== b.endContainer ||\n\t\t\t\t\t\ta.startOffset !== b.startOffset ||\n\t\t\t\t\t\ta.endOffset !== b.endOffset\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if the selection hasn't changed (as a result of an element being (auto)focused,\n\t\t\t\t// or a programmatic selection, we reset everything as part of the navigation)\n\t\t\t\t// fixes https://github.com/sveltejs/kit/issues/8439\n\t\t\t\tselection.removeAllRanges();\n\t\t\t});\n\t\t}\n\t}\n}\n\n/**\n * @template {import('@sveltejs/kit').NavigationType} T\n * @param {import('./types.js').NavigationState} current\n * @param {import('./types.js').NavigationIntent | undefined} intent\n * @param {URL | null} url\n * @param {T} type\n */\nfunction create_navigation(current, intent, url, type) {\n\t/** @type {(value: any) => void} */\n\tlet fulfil;\n\n\t/** @type {(error: any) => void} */\n\tlet reject;\n\n\tconst complete = new Promise((f, r) => {\n\t\tfulfil = f;\n\t\treject = r;\n\t});\n\n\t// Handle any errors off-chain so that it doesn't show up as an unhandled rejection\n\tcomplete.catch(() => {});\n\n\t/** @type {(import('@sveltejs/kit').Navigation | import('@sveltejs/kit').AfterNavigate) & { type: T }} */\n\tconst navigation = /** @type {any} */ ({\n\t\tfrom: {\n\t\t\tparams: current.params,\n\t\t\troute: { id: current.route?.id ?? null },\n\t\t\turl: current.url\n\t\t},\n\t\tto: url && {\n\t\t\tparams: intent?.params ?? null,\n\t\t\troute: { id: intent?.route?.id ?? null },\n\t\t\turl\n\t\t},\n\t\twillUnload: !intent,\n\t\ttype,\n\t\tcomplete\n\t});\n\n\treturn {\n\t\tnavigation,\n\t\t// @ts-expect-error\n\t\tfulfil,\n\t\t// @ts-expect-error\n\t\treject\n\t};\n}\n\n/**\n * TODO: remove this in 3.0 when the page store is also removed\n *\n * We need to assign a new page object so that subscribers are correctly notified.\n * However, spreading `{ ...page }` returns an empty object so we manually\n * assign to each property instead.\n *\n * @param {import('@sveltejs/kit').Page} page\n */\nfunction clone_page(page) {\n\treturn {\n\t\tdata: page.data,\n\t\terror: page.error,\n\t\tform: page.form,\n\t\tparams: page.params,\n\t\troute: page.route,\n\t\tstate: page.state,\n\t\tstatus: page.status,\n\t\turl: page.url\n\t};\n}\n\n/**\n * @param {URL} url\n * @returns {URL}\n */\nfunction decode_hash(url) {\n\tconst new_url = new URL(url);\n\t// Safari, for some reason, does change # to %23, when entered through the address bar\n\tnew_url.hash = decodeURIComponent(url.hash);\n\treturn new_url;\n}\n\n/**\n * @param {URL} url\n * @returns {string}\n */\nfunction get_id(url) {\n\tlet id;\n\n\tif (app.hash) {\n\t\tconst [, , second] = url.hash.split('#', 3);\n\t\tid = second ?? '';\n\t} else {\n\t\tid = url.hash.slice(1);\n\t}\n\n\treturn decodeURIComponent(id);\n}\n\nif (DEV) {\n\t// Nasty hack to silence harmless warnings the user can do nothing about\n\tconst console_warn = console.warn;\n\tconsole.warn = function warn(...args) {\n\t\tif (\n\t\t\targs.length === 1 &&\n\t\t\t/<(Layout|Page|Error)(_[\\w$]+)?> was created (with unknown|without expected) prop '(data|form)'/.test(\n\t\t\t\targs[0]\n\t\t\t)\n\t\t) {\n\t\t\treturn;\n\t\t}\n\t\tconsole_warn(...args);\n\t};\n\n\tif (import.meta.hot) {\n\t\timport.meta.hot.on('vite:beforeUpdate', () => {\n\t\t\tif (errored) {\n\t\t\t\tlocation.reload();\n\t\t\t}\n\t\t});\n\t}\n}\n"],"names":["HttpError","status","body","Redirect","location","SvelteKitError","text","message","normalize_path","path","trailing_slash","decode_pathname","pathname","decode_params","params","key","strip_hash","href","make_trackable","url","callback","search_params_callback","allow_hash","tracked","obj","param","value","tracked_url_properties","property","hash","values","i","buffer","base64_decode","encoded","binary","bytes","native_fetch","input","init","cache","build_selector","initial_fetch","resource","opts","selector","script","ttl","subsequent_fetch","resolved","cached","param_pattern","parse_route_id","id","get_route_segments","segment","rest_match","optional_match","parts","content","escape","code","match","is_optional","is_rest","name","matcher","affects_path","route","exec","matchers","result","values_needing_match","buffered","s","next_param","next_value","str","basic_param_pattern","resolve_route","segments","has_id_trailing_slash","_","optional","rest","param_value","parse","nodes","server_loads","dictionary","layouts_with_server_load","leaf","layouts","errors","pattern","n","create_layout_loader","create_leaf_loader","uses_server_data","get","set","stringify","data","base","assets","SNAPSHOT_KEY","SCROLL_KEY","STATES_KEY","PAGE_URL_KEY","HISTORY_INDEX","NAVIGATION_INDEX","PRELOAD_PRIORITIES","origin","resolve_url","baseURI","baseTags","scroll_state","link_option","element","levels","parent_element","parent","find_anchor","target","get_link_info","a","uses_hash_router","external","is_external_url","download","get_router_options","keepfocus","noscroll","preload_code","preload_data","reload","replace_state","el","get_option_state","notifiable_store","store","writable","ready","notify","val","new_value","subscribe","run","old_value","updated_listener","create_updated_store","timeout","check","res","updated","version","hash_routing","load_css","deps","valid_layout_exports","valid_layout_server_exports","compact","arr","get_status","error","get_message","page","navigating","is_legacy","onMount","$.state","#form","#error","#status","#current","update","new_page","noop_span","noop_span_context","svelte","ICON_REL_ATTRIBUTES","scroll_positions","storage.get","snapshots","stores","update_scroll_positions","index","clear_onward_history","current_history_index","current_navigation_index","native_navigation","replace","update_service_worker","registration","noop","routes","default_layout_loader","default_error_loader","container","app","invalidated","components","load_cache","discard_load_cache","f","reroute_cache","before_navigate_callbacks","on_navigate_callbacks","after_navigate_callbacks","current","hydrated","started","autoscroll","is_navigating","hash_navigating","has_navigated","force_invalidation","root","token","preload_tokens","query_map","start","_app","_target","hydrate","scroll","restore_scroll","_hydrate","navigate","decode_hash","_start_router","reset_invalidation","capture_snapshot","c","restore_snapshot","persist_state","storage.set","_goto","options","redirect_count","nav_token","query_keys","push_invalidated","svelte.tick","_preload_data","intent","preload","load_route","svelte.fork","lc","_preload_code","get_navigation_intent","load","initialize","style","navigation","fn","get_navigation_result_from_branch","branch","form","slash","node","branch_node","clone_page","data_changed","p","prev","load_node","loader","server_data_node","is_tracking","uses","depends","dep","load_input","promise","resolve_fetch_url","requested","has_changed","parent_changed","route_changed","url_changed","search_params_changed","tracked_params","create_data_node","previous","diff_search_params","old_url","new_url","changed","old_values","new_values","preload_error","invalidating","loaders","get_page_key","branch_promises","j","err","handle_error","error_load","load_nearest_error_page","server_fallback","load_root_error_page","root_layout","root_error","get_rerouted_url","rerouted","tmp","get_url_path","_before_navigate","type","delta","event","should_block","nav","create_navigation","cancellable","popped","state","accept","block","prev_token","previous_history_index","previous_navigation_index","navigation_result","change","entry","load_cache_fork","commit_promise","after_navigate","cleanup","fork","svelte.settled","activeElement","deep_linked","get_id","top","left","changed_focus","reset_focus","setup_preload","mousemove_timeout","current_a","current_priority","tap","observer","entries","priority","interacted","same_url","add_navigation_callback","callbacks","afterNavigate","goto","e","nonhash","same_pathname","current_hash","update_url","fulfil","submitter","event_form","resetting_focus","history_index","navigation_index","is_hash_change","link","node_ids","server_route","server_data_nodes","parsed_route","deserialize_uses","autofocus","x","y","history_state","tabindex","selection","ranges","b","reject","complete","r","second"],"mappings":"4HAEO,MAAMA,EAAU,CAKtB,YAAYC,EAAQC,EAAM,CACzB,KAAK,OAASD,EACV,OAAOC,GAAS,SACnB,KAAK,KAAO,CAAE,QAASA,CAAI,EACjBA,EACV,KAAK,KAAOA,EAEZ,KAAK,KAAO,CAAE,QAAS,UAAUD,CAAM,EAAE,CAE3C,CAEA,UAAW,CACV,OAAO,KAAK,UAAU,KAAK,IAAI,CAChC,CACD,CAEO,MAAME,EAAS,CAKrB,YAAYF,EAAQG,EAAU,CAC7B,KAAK,OAASH,EACd,KAAK,SAAWG,CACjB,CACD,CAOO,MAAMC,WAAuB,KAAM,CAMzC,YAAYJ,EAAQK,EAAMC,EAAS,CAClC,MAAMA,CAAO,EACb,KAAK,OAASN,EACd,KAAK,KAAOK,CAC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KAAK,MAAM,CAAC,EAGtB,OAAO,mBAAmBkC,CAAE,CAC7B","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/DE17DnKW.js b/backend/static/frontend/_app/immutable/chunks/BJPFuIL3.js
similarity index 92%
rename from backend/static/frontend/_app/immutable/chunks/DE17DnKW.js
rename to backend/static/frontend/_app/immutable/chunks/BJPFuIL3.js
index 7bf4c7f1..1e13f9e5 100644
--- a/backend/static/frontend/_app/immutable/chunks/DE17DnKW.js
+++ b/backend/static/frontend/_app/immutable/chunks/BJPFuIL3.js
@@ -1 +1 @@
-import"./DMODTt3n.js";import{p as x,d as n,c as t,n as w,f as k,s as T,k as A,l as N,b as a,g as P,u as V,a as $}from"./B2WdN-7r.js";import{c as i}from"./BAcG0-U_.js";import{T as y,a as B}from"./CeOjHHJH.js";import{a as C}from"./CyOblkUv.js";import{A as H}from"./Dt-hNsWv.js";var R=k(" <!>",1);function I(m,e){x(e,!0);var r=n(),c=t(r);{let f=V(()=>C(e.href,e.onBeforeNavigate));i(c,()=>y,(d,u)=>{u(d,{class:"cursor-pointer bg-muted/50 hover:bg-muted",get onclick(){return P(f)},children:(_,W)=>{var o=n(),g=t(o);i(g,()=>B,(p,v)=>{v(p,{get colspan(){return e.colspan},class:"py-2 text-center text-sm text-muted-foreground",children:(h,j)=>{w();var s=R(),l=t(s),b=T(l);H(b,{class:"inline h-3.5 w-3.5"}),A(()=>N(l,`${e.label??""} `)),a(h,s)},$$slots:{default:!0}})}),a(_,o)},$$slots:{default:!0}})})}a(m,r),$()}export{I as V};
+import"./DMODTt3n.js";import{p as x,d as n,c as t,n as w,f as k,s as T,k as A,l as N,b as a,g as P,u as V,a as $}from"./B2WdN-7r.js";import{c as i}from"./BAcG0-U_.js";import{T as y,a as B}from"./CeOjHHJH.js";import{a as C}from"./UIirCQWa.js";import{A as H}from"./Dt-hNsWv.js";var R=k(" <!>",1);function I(m,e){x(e,!0);var r=n(),c=t(r);{let f=V(()=>C(e.href,e.onBeforeNavigate));i(c,()=>y,(d,u)=>{u(d,{class:"cursor-pointer bg-muted/50 hover:bg-muted",get onclick(){return P(f)},children:(_,W)=>{var o=n(),g=t(o);i(g,()=>B,(p,v)=>{v(p,{get colspan(){return e.colspan},class:"py-2 text-center text-sm text-muted-foreground",children:(h,j)=>{w();var s=R(),l=t(s),b=T(l);H(b,{class:"inline h-3.5 w-3.5"}),A(()=>N(l,`${e.label??""} `)),a(h,s)},$$slots:{default:!0}})}),a(_,o)},$$slots:{default:!0}})})}a(m,r),$()}export{I as V};
diff --git a/backend/static/frontend/_app/immutable/chunks/DE17DnKW.js.map b/backend/static/frontend/_app/immutable/chunks/BJPFuIL3.js.map
similarity index 91%
rename from backend/static/frontend/_app/immutable/chunks/DE17DnKW.js.map
rename to backend/static/frontend/_app/immutable/chunks/BJPFuIL3.js.map
index 0b148da7..0cdc661f 100644
--- a/backend/static/frontend/_app/immutable/chunks/DE17DnKW.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/BJPFuIL3.js.map
@@ -1 +1 @@
-{"version":3,"file":"DE17DnKW.js","sources":["../../../../../../src/lib/components/ui/view-all-table-row/view-all-table-row.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport * as Table from '$lib/components/ui/table';\n\timport { ArrowRight } from 'lucide-svelte';\n\timport { createRowClickHandlerWithNavigate } from '$lib/utils/navigation';\n\n\tlet {\n\t\tcolspan,\n\t\thref,\n\t\tlabel,\n\t\tonBeforeNavigate\n\t}: {\n\t\tcolspan: number;\n\t\thref: string;\n\t\tlabel: string;\n\t\tonBeforeNavigate?: () => void;\n\t} = $props();\n</script>\n\n<Table.Row class=\"cursor-pointer bg-muted/50 hover:bg-muted\" onclick={createRowClickHandlerWithNavigate(href, onBeforeNavigate)}>\n\t<Table.Cell {colspan} class=\"py-2 text-center text-sm text-muted-foreground\">\n\t\t{label} <ArrowRight class=\"inline h-3.5 w-3.5\" />\n\t</Table.Cell>\n</Table.Row>\n"],"names":["createRowClickHandlerWithNavigate","$$props","Table_Row","$$anchor","Table_Cell","ArrowRight","node_2"],"mappings":"qTAAA,uCAkBsEA,EAAiCC,EAAA,KAAAA,EAAA,gBAAA,CAAA,oBAAtGC,EAASC,EAAA,kIACRC,EAAUD,EAAA,qIACDE,EAAUC,EAAA,CAAA,MAAA,oBAAA,CAAA,4GAJrB"}
\ No newline at end of file
+{"version":3,"file":"BJPFuIL3.js","sources":["../../../../../../src/lib/components/ui/view-all-table-row/view-all-table-row.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport * as Table from '$lib/components/ui/table';\n\timport { ArrowRight } from 'lucide-svelte';\n\timport { createRowClickHandlerWithNavigate } from '$lib/utils/navigation';\n\n\tlet {\n\t\tcolspan,\n\t\thref,\n\t\tlabel,\n\t\tonBeforeNavigate\n\t}: {\n\t\tcolspan: number;\n\t\thref: string;\n\t\tlabel: string;\n\t\tonBeforeNavigate?: () => void;\n\t} = $props();\n</script>\n\n<Table.Row class=\"cursor-pointer bg-muted/50 hover:bg-muted\" onclick={createRowClickHandlerWithNavigate(href, onBeforeNavigate)}>\n\t<Table.Cell {colspan} class=\"py-2 text-center text-sm text-muted-foreground\">\n\t\t{label} <ArrowRight class=\"inline h-3.5 w-3.5\" />\n\t</Table.Cell>\n</Table.Row>\n"],"names":["createRowClickHandlerWithNavigate","$$props","Table_Row","$$anchor","Table_Cell","ArrowRight","node_2"],"mappings":"qTAAA,uCAkBsEA,EAAiCC,EAAA,KAAAA,EAAA,gBAAA,CAAA,oBAAtGC,EAASC,EAAA,kIACRC,EAAUD,EAAA,qIACDE,EAAUC,EAAA,CAAA,MAAA,oBAAA,CAAA,4GAJrB"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/BJZ1igWb.js b/backend/static/frontend/_app/immutable/chunks/BJZ1igWb.js
deleted file mode 100644
index d4cc1dbb..00000000
--- a/backend/static/frontend/_app/immutable/chunks/BJZ1igWb.js
+++ /dev/null
@@ -1 +0,0 @@
-import{R as e}from"./xR3pK9Ey.js";function i(r,t){throw new e(r,t.toString())}export{i as r};
diff --git a/backend/static/frontend/_app/immutable/chunks/CYYjDwkn.js b/backend/static/frontend/_app/immutable/chunks/BT31m2vG.js
similarity index 93%
rename from backend/static/frontend/_app/immutable/chunks/CYYjDwkn.js
rename to backend/static/frontend/_app/immutable/chunks/BT31m2vG.js
index 38fcbbcb..d23dcb64 100644
--- a/backend/static/frontend/_app/immutable/chunks/CYYjDwkn.js
+++ b/backend/static/frontend/_app/immutable/chunks/BT31m2vG.js
@@ -1 +1 @@
-import{p as f,i as k,r as R,s as J}from"./DMODTt3n.js";import{p as A,d as T,c as w,g as r,u as l,b as c,a as H,f as M,i as a,h as I,F as bt,aG as te,b9 as yt,K as it,m as P,e as K,o as G,r as U,s as St}from"./B2WdN-7r.js";import{b as E,d as Et}from"./DH0tcjsQ.js";import{a as ee}from"./BuKxAPQs.js";import{j as oe,m as W,a as F,e as ut,g as ct,h as Rt,k as re,f as Mt,b as N,d as ie,c as st}from"./DWAABZDo.js";import{z as se,A as ne,C as wt,x as pt,w as O,B as Dt,H as V,I as L,J as he,K as le,L as ae,N as de,O as ue,Q as ce,U as pe,E as rt,V as ge,W as fe,X as ve,Y as me,Z as be,_ as ye,$ as Se,a0 as we,a1 as Ne,a2 as Ce,a3 as Te,a4 as _e,a5 as dt,a6 as Ie,a7 as Nt,a8 as Ct,a9 as Tt,aa as _t,ab as Bt,ac as Ft,ad as Kt,ae as Ut,S as at,o as Pe,g as xe,n as Z,af as Lt,P as ke,ag as Ae,ah as He,q as Oe,d as Me,e as Ve}from"./CAQEdoSh.js";import{c as Wt}from"./BAcG0-U_.js";import{I as Gt}from"./Bv_PbELb.js";import{P as Ee}from"./DQwRaN-E.js";import{o as Re}from"./Cg3qFI0z.js";const De={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},Be=oe(De);var Fe=M("<input/>"),Ke=M("<input/>");function Ue(g,t){A(t,!0);let e=f(t,"value",15),o=R(t,["$$slots","$$events","$$legacy","value"]);const s=l(()=>W(o,{"aria-hidden":"true",tabindex:-1,style:Be}));var h=T(),i=w(h);{var n=d=>{var u=Fe();E(u,()=>({...r(s),value:e()}),void 0,void 0,void 0,void 0,!0),c(d,u)},m=d=>{var u=Ke();E(u,()=>({...r(s)}),void 0,void 0,void 0,void 0,!0),ee(u,e),c(d,u)};k(i,d=>{r(s).type==="checkbox"?d(n):d(m,!1)})}c(g,h),H()}class Le{#t;#e=l(()=>this.#t.candidateValues());#o;constructor(t){this.#t=t,this.#o=se("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!r(this.#e).length)return;this.#o.current=this.#o.current+t;const e=this.#t.getCurrentItem(),o=r(this.#e).find(n=>n===e)??"",s=r(this.#e).map(n=>n??""),h=ne(s,this.#o.current,o),i=r(this.#e).find(n=>n===h);return i&&this.#t.onMatch(i),i}resetTypeahead(){this.#o.current=""}}const Vt=[he,Dt,le,ae,de,ue,ce,pe,rt,ge,fe,ve,me,be,ye,Se,we,Ne,Ce,Te,_e],We=[L,Nt,Ct],Ge=[V,Tt,_t],Yt=[...We,...Ge],Ye=ie({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Y=new wt("Select.Root | Combobox.Root"),jt=new wt("Select.Group | Combobox.Group"),gt=new wt("Select.Content | Combobox.Content");class qt{opts;#t=I(!1);get touchedInput(){return r(this.#t)}set touchedInput(t){a(this.#t,t,!0)}#e=I(null);get inputNode(){return r(this.#e)}set inputNode(t){a(this.#e,t,!0)}#o=I(null);get contentNode(){return r(this.#o)}set contentNode(t){a(this.#o,t,!0)}contentPresence;#r=I(null);get viewportNode(){return r(this.#r)}set viewportNode(t){a(this.#r,t,!0)}#i=I(null);get triggerNode(){return r(this.#i)}set triggerNode(t){a(this.#i,t,!0)}#s=I("");get valueId(){return r(this.#s)}set valueId(t){a(this.#s,t,!0)}#n=I(null);get highlightedNode(){return r(this.#n)}set highlightedNode(t){a(this.#n,t,!0)}#h=l(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return r(this.#h)}set highlightedValue(t){a(this.#h,t)}#l=l(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return r(this.#l)}set highlightedId(t){a(this.#l,t)}#a=l(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return r(this.#a)}set highlightedLabel(t){a(this.#a,t)}isUsingKeyboard=!1;isCombobox=!1;domContext=new pt(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new ke({ref:N(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),te(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(s=>{if(!this.viewportNode)return!1;const h=s.getBoundingClientRect();return h.right<o.right&&h.left>o.left&&h.bottom<o.bottom&&h.top>o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=t=>Ye.getAttr(t,this.isCombobox?"combobox":void 0)}class je extends qt{opts;isMulti=!1;#t=l(()=>this.opts.value.current!=="");get hasValue(){return r(this.#t)}set hasValue(t){a(this.#t,t)}#e=l(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return r(this.#e)}set currentLabel(t){a(this.#e,t)}#o=l(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return r(this.#o)}set candidateLabels(t){a(this.#o,t)}#r=l(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return r(this.#r)}set dataTypeaheadEnabled(t){a(this.#r,t)}constructor(t){super(t),this.opts=t,bt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),O(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,e=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=e)}setInitialHighlightedNode(){Lt(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class qe extends qt{opts;isMulti=!0;#t=l(()=>this.opts.value.current.length>0);get hasValue(){return r(this.#t)}set hasValue(t){a(this.#t,t)}constructor(t){super(t),this.opts=t,bt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),O(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,e=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=e}setInitialHighlightedNode(){Lt(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class bo{static create(t){const{type:e,...o}=t,s=e==="single"?new je(o):new qe(o);return Y.set(s)}}class zt{static create(t){return new zt(t,Y.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref,o=>this.root.inputNode=o),this.root.domContext=new pt(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),O([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([o,s],[h])=>{s&&(Array.isArray(o)&&Array.isArray(h)?o.length===0&&h.length!==0&&(this.root.opts.inputValue.current=""):o===""&&h!==""&&(this.root.opts.inputValue.current=""))})}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==Dt){if((t.key===V||t.key===L)&&t.preventDefault(),!this.root.opts.open.current){if(Vt.includes(t.key)||t.key===dt||t.key===Ie&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===L){const o=e[0];this.root.setHighlightedNode(o)}else if(t.key===V){const o=e[e.length-1];this.root.setHighlightedNode(o)}return}if(t.key===dt){this.root.handleClose();return}if(t.key===rt&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e&&this.root.handleClose()}if(t.key===V&&t.altKey&&this.root.handleClose(),Yt.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),o=this.root.highlightedNode,s=o?e.indexOf(o):-1,h=this.root.opts.loop.current;let i;if(t.key===L?i=Bt(e,s,h):t.key===V?i=Ft(e,s,h):t.key===Tt?i=Kt(e,s,10,h):t.key===Nt?i=Ut(e,s,10,h):t.key===Ct?i=e[0]:t.key===_t&&(i=e[e.length-1]),!i)return;this.root.setHighlightedNode(i);return}Vt.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}#t=l(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":Rt(this.root.opts.open.current),"data-state":ct(this.root.opts.open.current),"data-disabled":ut(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment}));get props(){return r(this.#t)}set props(t){a(this.#t,t)}}class Xt{static create(t){return new Xt(t,Y.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this)}onkeydown(t){this.root.domContext&&(t.key===rt||t.key===at)&&(t.preventDefault(),this.root.domContext.getActiveElement()!==this.root.inputNode&&this.root.inputNode?.focus(),this.root.toggleMenu())}onpointerdown(t){this.root.opts.disabled.current||!this.root.domContext||(t.preventDefault(),this.root.domContext.getActiveElement()!==this.root.inputNode&&this.root.inputNode?.focus(),this.root.toggleMenu())}#t=l(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","data-state":ct(this.root.opts.open.current),"data-disabled":ut(this.root.opts.disabled.current),[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,...this.attachment}));get props(){return r(this.#t)}set props(t){a(this.#t,t)}}class Jt{static create(t){return new Jt(t,Y.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new pt(t.ref),this.#t=new Ae({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new Le({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const s=this.root.opts.items.current.find(h=>h.label===o);s&&(this.root.opts.value.current=s.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#o(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#r(t){this.#o()}#i(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===V||t.key===L)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===rt||t.key===at||t.key===L||t.key===V)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const i=this.root.getCandidateNodes();if(!i.length)return;if(t.key===L){const n=i[0];this.root.setHighlightedNode(n)}else if(t.key===V){const n=i[i.length-1];this.root.setHighlightedNode(n)}return}if(t.key===dt){this.root.handleClose();return}if((t.key===rt||t.key===at&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#i()))return;if(t.key===V&&t.altKey&&this.root.handleClose(),Yt.includes(t.key)){t.preventDefault();const i=this.root.getCandidateNodes(),n=this.root.highlightedNode,m=n?i.indexOf(n):-1,d=this.root.opts.loop.current;let u;if(t.key===L?u=Bt(i,m,d):t.key===V?u=Ft(i,m,d):t.key===Tt?u=Kt(i,m,10,d):t.key===Nt?u=Ut(i,m,10,d):t.key===Ct?u=i[0]:t.key===_t&&(u=i[i.length-1]),!u)return;this.root.setHighlightedNode(u);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,s=t.key===at,h=this.root.getCandidateNodes();if(t.key!==dt){if(!e&&(o||s)){!this.#t.handleTypeaheadSearch(t.key,h)&&s&&(t.preventDefault(),this.#i());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#r(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#r(t):this.root.handleClose()))}#s=l(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Rt(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":ct(this.root.opts.open.current),"data-disabled":ut(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return r(this.#s)}set props(t){a(this.#s,t)}}class It{static create(t){return gt.set(new It(t,Y.get()))}opts;root;attachment;#t=I(!1);get isPositioned(){return r(this.#t)}set isPositioned(t){a(this.#t,t,!0)}domContext;constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref,o=>this.root.contentNode=o),this.domContext=new pt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Pe(()=>{this.root.contentNode=null,this.isPositioned=!1}),O(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=l(()=>xe(this.root.isCombobox?"combobox":"select"));onInteractOutside=t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#o=l(()=>({open:this.root.opts.open.current}));get snippetProps(){return r(this.#o)}set snippetProps(t){a(this.#o,t)}#r=l(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":ct(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...r(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return r(this.#r)}set props(t){a(this.#r,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class Pt{static create(t){return new Pt(t,Y.get())}opts;root;attachment;#t=l(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return r(this.#t)}set isSelected(t){a(this.#t,t)}#e=l(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return r(this.#e)}set isHighlighted(t){a(this.#e,t)}prevHighlighted=new Ee(()=>this.isHighlighted);#o=I(!1);get mounted(){return r(this.#o)}set mounted(t){a(this.#o,t,!0)}constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref),O([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),O(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}#r=l(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return r(this.#r)}set snippetProps(t){a(this.#r,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!He){yt(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#i=l(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":ut(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return r(this.#i)}set props(t){a(this.#i,t)}}class Qt{static create(t){return jt.set(new Qt(t,Y.get()))}opts;root;#t=I(null);get labelNode(){return r(this.#t)}set labelNode(t){a(this.#t,t,!0)}attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref)}#e=l(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}class Zt{static create(t){return new Zt(t,jt.get())}opts;group;attachment;constructor(t,e){this.opts=t,this.group=e,this.attachment=F(t.ref,o=>this.group.labelNode=o)}#t=l(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment}));get props(){return r(this.#t)}set props(t){a(this.#t,t)}}class xt{static create(t){return new xt(t,Y.get())}opts;root;#t=l(()=>this.root.opts.name.current!=="");get shouldRender(){return r(this.#t)}set shouldRender(t){a(this.#t,t)}constructor(t,e){this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=l(()=>({disabled:Mt(this.root.opts.disabled.current),required:Mt(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}class kt{static create(t){return new kt(t,gt.get())}opts;content;root;attachment;#t=I(0);get prevScrollTop(){return r(this.#t)}set prevScrollTop(t){a(this.#t,t,!0)}constructor(t,e){this.opts=t,this.content=e,this.root=e.root,this.attachment=F(t.ref,o=>{this.root.viewportNode=o})}#e=l(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}class $t{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=Z;#t=I(!1);get mounted(){return r(this.#t)}set mounted(t){a(this.#t,t,!0)}constructor(t,e){this.opts=t,this.content=e,this.root=e.root,this.attachment=F(t.ref),O([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),bt(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(t){if(this.autoScrollTimer!==null)return;const e=o=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>e(o+1),this.opts.delay.current(o))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>e(1),this.opts.delay.current(0))}onpointermove(t){this.onpointerdown(t)}onpointerleave(t){this.clearAutoScrollInterval()}#e=l(()=>({id:this.opts.id.current,"aria-hidden":re(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}class At{static create(t){return new At(new $t(t,gt.get()))}scrollButtonState;content;root;#t=I(!1);get canScrollDown(){return r(this.#t)}set canScrollDown(t){a(this.#t,t,!0)}scrollIntoViewTimer=null;constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,O([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),yt(this.root.viewportNode,"scroll",()=>this.handleScroll())}),O([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),O(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=Oe(5,()=>{this.root.highlightedNode?.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const e=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,o=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<e-o};handleAutoScroll=()=>{const t=this.root.viewportNode,e=this.root.highlightedNode;!t||!e||(t.scrollTop=t.scrollTop+e.offsetHeight)};#e=l(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}class Ht{static create(t){return new Ht(new $t(t,gt.get()))}scrollButtonState;content;root;#t=I(!1);get canScrollUp(){return r(this.#t)}set canScrollUp(t){a(this.#t,t,!0)}constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,O([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),yt(this.root.viewportNode,"scroll",()=>this.handleScroll())})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const e=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-e>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#e=l(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}function yo(g,t){A(t,!0);let e=f(t,"value",15);const o=xt.create({value:N(()=>e())});var s=T(),h=w(s);{var i=n=>{Ue(n,J(()=>o.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(m){e(m)}}))};k(h,n=>{o.shouldRender&&n(i)})}c(g,s),H()}var ze=M("<div><div><!></div></div>"),Xe=M("<div><div><!></div></div>");function So(g,t){const e=it();A(t,!0);let o=f(t,"id",19,()=>st(e)),s=f(t,"ref",15,null),h=f(t,"forceMount",3,!1),i=f(t,"side",3,"bottom"),n=f(t,"onInteractOutside",3,Z),m=f(t,"onEscapeKeydown",3,Z),d=f(t,"preventScroll",3,!1),u=R(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll"]);const S=It.create({id:N(()=>o()),ref:N(()=>s(),b=>s(b)),onInteractOutside:N(()=>n()),onEscapeKeydown:N(()=>m())}),v=l(()=>W(u,S.props));var C=T(),x=w(C);{var j=b=>{Me(b,J(()=>r(v),()=>S.popperProps,{get ref(){return S.opts.ref},get side(){return i()},get enabled(){return S.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!0,get shouldRender(){return S.shouldRender},popper:(y,_)=>{let $=()=>_?.().props,ft=()=>_?.().wrapperProps;const nt=l(()=>W($(),{style:S.props.style}));var tt=T(),vt=w(tt);{var ht=D=>{var B=T(),z=w(B);{let et=l(()=>({props:r(nt),wrapperProps:ft(),...S.snippetProps}));P(z,()=>t.child,()=>r(et))}c(D,B)},lt=D=>{var B=ze();E(B,()=>({...ft()}));var z=K(B);E(z,()=>({...r(nt)}));var et=K(z);P(et,()=>t.children??G),U(z),U(B),c(D,B)};k(vt,D=>{t.child?D(ht):D(lt,!1)})}c(y,tt)},$$slots:{popper:!0}}))},q=b=>{var p=T(),y=w(p);{var _=$=>{Ve($,J(()=>r(v),()=>S.popperProps,{get ref(){return S.opts.ref},get side(){return i()},get open(){return S.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!1,get shouldRender(){return S.shouldRender},popper:(nt,tt)=>{let vt=()=>tt?.().props,ht=()=>tt?.().wrapperProps;const lt=l(()=>W(vt(),{style:S.props.style}));var D=T(),B=w(D);{var z=Q=>{var X=T(),ot=w(X);{let mt=l(()=>({props:r(lt),wrapperProps:ht(),...S.snippetProps}));P(ot,()=>t.child,()=>r(mt))}c(Q,X)},et=Q=>{var X=Xe();E(X,()=>({...ht()}));var ot=K(X);E(ot,()=>({...r(lt)}));var mt=K(ot);P(mt,()=>t.children??G),U(ot),U(X),c(Q,X)};k(B,Q=>{t.child?Q(z):Q(et,!1)})}c(nt,D)},$$slots:{popper:!0}}))};k(y,$=>{h()||$(_)},!0)}c(b,p)};k(x,b=>{h()?b(j):b(q,!1)})}c(g,C),H()}function Ot(g,t){A(t,!0);let e=f(t,"mounted",15,!1),o=f(t,"onMountedChange",3,Z);Re(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)})),H()}var Je=M("<div><!></div>"),Qe=M("<!> <!>",1);function wo(g,t){const e=it();A(t,!0);let o=f(t,"id",19,()=>st(e)),s=f(t,"ref",15,null),h=f(t,"label",19,()=>t.value),i=f(t,"disabled",3,!1),n=f(t,"onHighlight",3,Z),m=f(t,"onUnhighlight",3,Z),d=R(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const u=Pt.create({id:N(()=>o()),ref:N(()=>s(),b=>s(b)),value:N(()=>t.value),disabled:N(()=>i()),label:N(()=>h()),onHighlight:N(()=>n()),onUnhighlight:N(()=>m())}),S=l(()=>W(d,u.props));var v=Qe(),C=w(v);{var x=b=>{var p=T(),y=w(p);{let _=l(()=>({props:r(S),...u.snippetProps}));P(y,()=>t.child,()=>r(_))}c(b,p)},j=b=>{var p=Je();E(p,()=>({...r(S)}));var y=K(p);P(y,()=>t.children??G,()=>u.snippetProps),U(p),c(b,p)};k(C,b=>{t.child?b(x):b(j,!1)})}var q=St(C,2);Ot(q,{get mounted(){return u.mounted},set mounted(b){u.mounted=b}}),c(g,v),H()}var Ze=M("<div><!></div>");function No(g,t){const e=it();A(t,!0);let o=f(t,"id",19,()=>st(e)),s=f(t,"ref",15,null),h=R(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const i=kt.create({id:N(()=>o()),ref:N(()=>s(),v=>s(v))}),n=l(()=>W(h,i.props));var m=T(),d=w(m);{var u=v=>{var C=T(),x=w(C);P(x,()=>t.child,()=>({props:r(n)})),c(v,C)},S=v=>{var C=Ze();E(C,()=>({...r(n)}));var x=K(C);P(x,()=>t.children??G),U(C),c(v,C)};k(d,v=>{t.child?v(u):v(S,!1)})}c(g,m),H()}var $e=M("<div><!></div>"),to=M("<!> <!>",1);function eo(g,t){const e=it();A(t,!0);let o=f(t,"id",19,()=>st(e)),s=f(t,"ref",15,null),h=f(t,"delay",3,()=>50),i=R(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const n=At.create({id:N(()=>o()),ref:N(()=>s(),v=>s(v)),delay:N(()=>h())}),m=l(()=>W(i,n.props));var d=T(),u=w(d);{var S=v=>{var C=to(),x=w(C);Ot(x,{get mounted(){return n.scrollButtonState.mounted},set mounted(p){n.scrollButtonState.mounted=p}});var j=St(x,2);{var q=p=>{var y=T(),_=w(y);P(_,()=>t.child,()=>({props:i})),c(p,y)},b=p=>{var y=$e();E(y,()=>({...r(m)}));var _=K(y);P(_,()=>t.children??G),U(y),c(p,y)};k(j,p=>{t.child?p(q):p(b,!1)})}c(v,C)};k(u,v=>{n.canScrollDown&&v(S)})}c(g,d),H()}var oo=M("<div><!></div>"),ro=M("<!> <!>",1);function io(g,t){const e=it();A(t,!0);let o=f(t,"id",19,()=>st(e)),s=f(t,"ref",15,null),h=f(t,"delay",3,()=>50),i=R(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const n=Ht.create({id:N(()=>o()),ref:N(()=>s(),v=>s(v)),delay:N(()=>h())}),m=l(()=>W(i,n.props));var d=T(),u=w(d);{var S=v=>{var C=ro(),x=w(C);Ot(x,{get mounted(){return n.scrollButtonState.mounted},set mounted(p){n.scrollButtonState.mounted=p}});var j=St(x,2);{var q=p=>{var y=T(),_=w(y);P(_,()=>t.child,()=>({props:i})),c(p,y)},b=p=>{var y=oo();E(y,()=>({...r(m)}));var _=K(y);P(_,()=>t.children??G),U(y),c(p,y)};k(j,p=>{t.child?p(q):p(b,!1)})}c(v,C)};k(u,v=>{n.canScrollUp&&v(S)})}c(g,d),H()}function so(g,t){A(t,!0);let e=R(t,["$$slots","$$events","$$legacy"]);const o=[["path",{d:"m6 9 6 6 6-6"}]];Gt(g,J({name:"chevron-down"},()=>e,{get iconNode(){return o},children:(s,h)=>{var i=T(),n=w(i);P(n,()=>t.children??G),c(s,i)},$$slots:{default:!0}})),H()}function no(g,t){A(t,!0);let e=R(t,["$$slots","$$events","$$legacy"]);const o=[["path",{d:"m18 15-6-6-6 6"}]];Gt(g,J({name:"chevron-up"},()=>e,{get iconNode(){return o},children:(s,h)=>{var i=T(),n=w(i);P(n,()=>t.children??G),c(s,i)},$$slots:{default:!0}})),H()}function Co(g,t){A(t,!0);let e=f(t,"ref",15,null),o=R(t,["$$slots","$$events","$$legacy","ref","class"]);var s=T(),h=w(s);{let i=l(()=>Et("flex cursor-default items-center justify-center py-1",t.class));Wt(h,()=>io,(n,m)=>{m(n,J({"data-slot":"select-scroll-up-button",get class(){return r(i)}},()=>o,{get ref(){return e()},set ref(d){e(d)},children:(d,u)=>{no(d,{class:"size-4"})},$$slots:{default:!0}}))})}c(g,s),H()}function To(g,t){A(t,!0);let e=f(t,"ref",15,null),o=R(t,["$$slots","$$events","$$legacy","ref","class"]);var s=T(),h=w(s);{let i=l(()=>Et("flex cursor-default items-center justify-center py-1",t.class));Wt(h,()=>eo,(n,m)=>{m(n,J({"data-slot":"select-scroll-down-button",get class(){return r(i)}},()=>o,{get ref(){return e()},set ref(d){e(d)},children:(d,u)=>{so(d,{class:"size-4"})},$$slots:{default:!0}}))})}c(g,s),H()}export{so as C,Ue as H,Qt as S,Zt as a,bo as b,yo as c,zt as d,Xt as e,So as f,Co as g,No as h,To as i,wo as j,Jt as k,Be as s};
+import{p as f,i as x,r as R,s as J}from"./DMODTt3n.js";import{p as A,d as T,c as w,g as r,u as l,b as c,a as H,f as M,i as a,h as I,F as bt,aG as te,b9 as yt,K as it,m as P,e as K,o as G,r as U,s as St}from"./B2WdN-7r.js";import{b as E,d as Et}from"./DH0tcjsQ.js";import{a as ee}from"./BuKxAPQs.js";import{j as oe,m as W,a as F,e as ut,h as ct,g as Rt,k as re,f as Mt,b as N,d as ie,c as st}from"./BDd6-VcB.js";import{z as se,A as ne,C as wt,q as pt,w as O,B as Dt,H as V,I as L,J as he,K as le,L as ae,N as de,O as ue,Q as ce,U as pe,E as rt,V as ge,W as fe,X as ve,Y as me,Z as be,_ as ye,$ as Se,a0 as we,a1 as Ne,a2 as Ce,a3 as Te,a4 as _e,a5 as dt,a6 as Ie,a7 as Nt,a8 as Ct,a9 as Tt,aa as _t,ab as Bt,ac as Ft,ad as Kt,ae as Ut,S as at,p as Pe,g as ke,n as Z,af as Lt,c as xe,ag as Ae,ah as He,t as Oe,d as Me,e as Ve}from"./CjLH05gQ.js";import{c as Wt}from"./BAcG0-U_.js";import{I as Gt}from"./Bv_PbELb.js";import{P as Ee}from"./DQwRaN-E.js";import{o as Re}from"./Cg3qFI0z.js";const De={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},Be=oe(De);var Fe=M("<input/>"),Ke=M("<input/>");function Ue(g,t){A(t,!0);let e=f(t,"value",15),o=R(t,["$$slots","$$events","$$legacy","value"]);const s=l(()=>W(o,{"aria-hidden":"true",tabindex:-1,style:Be}));var h=T(),i=w(h);{var n=d=>{var u=Fe();E(u,()=>({...r(s),value:e()}),void 0,void 0,void 0,void 0,!0),c(d,u)},m=d=>{var u=Ke();E(u,()=>({...r(s)}),void 0,void 0,void 0,void 0,!0),ee(u,e),c(d,u)};x(i,d=>{r(s).type==="checkbox"?d(n):d(m,!1)})}c(g,h),H()}class Le{#t;#e=l(()=>this.#t.candidateValues());#o;constructor(t){this.#t=t,this.#o=se("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!r(this.#e).length)return;this.#o.current=this.#o.current+t;const e=this.#t.getCurrentItem(),o=r(this.#e).find(n=>n===e)??"",s=r(this.#e).map(n=>n??""),h=ne(s,this.#o.current,o),i=r(this.#e).find(n=>n===h);return i&&this.#t.onMatch(i),i}resetTypeahead(){this.#o.current=""}}const Vt=[he,Dt,le,ae,de,ue,ce,pe,rt,ge,fe,ve,me,be,ye,Se,we,Ne,Ce,Te,_e],We=[L,Nt,Ct],Ge=[V,Tt,_t],Yt=[...We,...Ge],Ye=ie({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),Y=new wt("Select.Root | Combobox.Root"),jt=new wt("Select.Group | Combobox.Group"),gt=new wt("Select.Content | Combobox.Content");class qt{opts;#t=I(!1);get touchedInput(){return r(this.#t)}set touchedInput(t){a(this.#t,t,!0)}#e=I(null);get inputNode(){return r(this.#e)}set inputNode(t){a(this.#e,t,!0)}#o=I(null);get contentNode(){return r(this.#o)}set contentNode(t){a(this.#o,t,!0)}contentPresence;#r=I(null);get viewportNode(){return r(this.#r)}set viewportNode(t){a(this.#r,t,!0)}#i=I(null);get triggerNode(){return r(this.#i)}set triggerNode(t){a(this.#i,t,!0)}#s=I("");get valueId(){return r(this.#s)}set valueId(t){a(this.#s,t,!0)}#n=I(null);get highlightedNode(){return r(this.#n)}set highlightedNode(t){a(this.#n,t,!0)}#h=l(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return r(this.#h)}set highlightedValue(t){a(this.#h,t)}#l=l(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return r(this.#l)}set highlightedId(t){a(this.#l,t)}#a=l(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return r(this.#a)}set highlightedLabel(t){a(this.#a,t)}isUsingKeyboard=!1;isCombobox=!1;domContext=new pt(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new xe({ref:N(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),te(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(s=>{if(!this.viewportNode)return!1;const h=s.getBoundingClientRect();return h.right<o.right&&h.left>o.left&&h.bottom<o.bottom&&h.top>o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=t=>Ye.getAttr(t,this.isCombobox?"combobox":void 0)}class je extends qt{opts;isMulti=!1;#t=l(()=>this.opts.value.current!=="");get hasValue(){return r(this.#t)}set hasValue(t){a(this.#t,t)}#e=l(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return r(this.#e)}set currentLabel(t){a(this.#e,t)}#o=l(()=>this.opts.items.current.length?this.opts.items.current.filter(e=>!e.disabled).map(e=>e.label):[]);get candidateLabels(){return r(this.#o)}set candidateLabels(t){a(this.#o,t)}#r=l(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return r(this.#r)}set dataTypeaheadEnabled(t){a(this.#r,t)}constructor(t){super(t),this.opts=t,bt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),O(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,e=t){const o=this.includesItem(t)?"":t;this.opts.value.current=o,o!==""&&(this.opts.inputValue.current=e)}setInitialHighlightedNode(){Lt(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class qe extends qt{opts;isMulti=!0;#t=l(()=>this.opts.value.current.length>0);get hasValue(){return r(this.#t)}set hasValue(t){a(this.#t,t)}constructor(t){super(t),this.opts=t,bt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),O(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,e=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(o=>o!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=e}setInitialHighlightedNode(){Lt(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class bo{static create(t){const{type:e,...o}=t,s=e==="single"?new je(o):new qe(o);return Y.set(s)}}class zt{static create(t){return new zt(t,Y.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref,o=>this.root.inputNode=o),this.root.domContext=new pt(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),O([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([o,s],[h])=>{s&&(Array.isArray(o)&&Array.isArray(h)?o.length===0&&h.length!==0&&(this.root.opts.inputValue.current=""):o===""&&h!==""&&(this.root.opts.inputValue.current=""))})}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==Dt){if((t.key===V||t.key===L)&&t.preventDefault(),!this.root.opts.open.current){if(Vt.includes(t.key)||t.key===dt||t.key===Ie&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===L){const o=e[0];this.root.setHighlightedNode(o)}else if(t.key===V){const o=e[e.length-1];this.root.setHighlightedNode(o)}return}if(t.key===dt){this.root.handleClose();return}if(t.key===rt&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e&&this.root.handleClose()}if(t.key===V&&t.altKey&&this.root.handleClose(),Yt.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),o=this.root.highlightedNode,s=o?e.indexOf(o):-1,h=this.root.opts.loop.current;let i;if(t.key===L?i=Bt(e,s,h):t.key===V?i=Ft(e,s,h):t.key===Tt?i=Kt(e,s,10,h):t.key===Nt?i=Ut(e,s,10,h):t.key===Ct?i=e[0]:t.key===_t&&(i=e[e.length-1]),!i)return;this.root.setHighlightedNode(i);return}Vt.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}#t=l(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":Rt(this.root.opts.open.current),"data-state":ct(this.root.opts.open.current),"data-disabled":ut(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment}));get props(){return r(this.#t)}set props(t){a(this.#t,t)}}class Xt{static create(t){return new Xt(t,Y.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this)}onkeydown(t){this.root.domContext&&(t.key===rt||t.key===at)&&(t.preventDefault(),this.root.domContext.getActiveElement()!==this.root.inputNode&&this.root.inputNode?.focus(),this.root.toggleMenu())}onpointerdown(t){this.root.opts.disabled.current||!this.root.domContext||(t.preventDefault(),this.root.domContext.getActiveElement()!==this.root.inputNode&&this.root.inputNode?.focus(),this.root.toggleMenu())}#t=l(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","data-state":ct(this.root.opts.open.current),"data-disabled":ut(this.root.opts.disabled.current),[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,...this.attachment}));get props(){return r(this.#t)}set props(t){a(this.#t,t)}}class Jt{static create(t){return new Jt(t,Y.get())}opts;root;attachment;#t;#e;constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new pt(t.ref),this.#t=new Ae({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new Le({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const s=this.root.opts.items.current.find(h=>h.label===o);s&&(this.root.opts.value.current=s.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#o(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#r(t){this.#o()}#i(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===V||t.key===L)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===rt||t.key===at||t.key===L||t.key===V)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const i=this.root.getCandidateNodes();if(!i.length)return;if(t.key===L){const n=i[0];this.root.setHighlightedNode(n)}else if(t.key===V){const n=i[i.length-1];this.root.setHighlightedNode(n)}return}if(t.key===dt){this.root.handleClose();return}if((t.key===rt||t.key===at&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#i()))return;if(t.key===V&&t.altKey&&this.root.handleClose(),Yt.includes(t.key)){t.preventDefault();const i=this.root.getCandidateNodes(),n=this.root.highlightedNode,m=n?i.indexOf(n):-1,d=this.root.opts.loop.current;let u;if(t.key===L?u=Bt(i,m,d):t.key===V?u=Ft(i,m,d):t.key===Tt?u=Kt(i,m,10,d):t.key===Nt?u=Ut(i,m,10,d):t.key===Ct?u=i[0]:t.key===_t&&(u=i[i.length-1]),!u)return;this.root.setHighlightedNode(u);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,s=t.key===at,h=this.root.getCandidateNodes();if(t.key!==dt){if(!e&&(o||s)){!this.#t.handleTypeaheadSearch(t.key,h)&&s&&(t.preventDefault(),this.#i());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#r(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#r(t):this.root.handleClose()))}#s=l(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Rt(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":ct(this.root.opts.open.current),"data-disabled":ut(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return r(this.#s)}set props(t){a(this.#s,t)}}class It{static create(t){return gt.set(new It(t,Y.get()))}opts;root;attachment;#t=I(!1);get isPositioned(){return r(this.#t)}set isPositioned(t){a(this.#t,t,!0)}domContext;constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref,o=>this.root.contentNode=o),this.domContext=new pt(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),Pe(()=>{this.root.contentNode=null,this.isPositioned=!1}),O(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=l(()=>ke(this.root.isCombobox?"combobox":"select"));onInteractOutside=t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#o=l(()=>({open:this.root.opts.open.current}));get snippetProps(){return r(this.#o)}set snippetProps(t){a(this.#o,t)}#r=l(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":ct(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...r(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return r(this.#r)}set props(t){a(this.#r,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class Pt{static create(t){return new Pt(t,Y.get())}opts;root;attachment;#t=l(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return r(this.#t)}set isSelected(t){a(this.#t,t)}#e=l(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return r(this.#e)}set isHighlighted(t){a(this.#e,t)}prevHighlighted=new Ee(()=>this.isHighlighted);#o=I(!1);get mounted(){return r(this.#o)}set mounted(t){a(this.#o,t,!0)}constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref),O([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),O(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}#r=l(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return r(this.#r)}set snippetProps(t){a(this.#r,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!He){yt(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#i=l(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":ut(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return r(this.#i)}set props(t){a(this.#i,t)}}class Qt{static create(t){return jt.set(new Qt(t,Y.get()))}opts;root;#t=I(null);get labelNode(){return r(this.#t)}set labelNode(t){a(this.#t,t,!0)}attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=F(t.ref)}#e=l(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}class Zt{static create(t){return new Zt(t,jt.get())}opts;group;attachment;constructor(t,e){this.opts=t,this.group=e,this.attachment=F(t.ref,o=>this.group.labelNode=o)}#t=l(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment}));get props(){return r(this.#t)}set props(t){a(this.#t,t)}}class kt{static create(t){return new kt(t,Y.get())}opts;root;#t=l(()=>this.root.opts.name.current!=="");get shouldRender(){return r(this.#t)}set shouldRender(t){a(this.#t,t)}constructor(t,e){this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=l(()=>({disabled:Mt(this.root.opts.disabled.current),required:Mt(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}class xt{static create(t){return new xt(t,gt.get())}opts;content;root;attachment;#t=I(0);get prevScrollTop(){return r(this.#t)}set prevScrollTop(t){a(this.#t,t,!0)}constructor(t,e){this.opts=t,this.content=e,this.root=e.root,this.attachment=F(t.ref,o=>{this.root.viewportNode=o})}#e=l(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}class $t{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=Z;#t=I(!1);get mounted(){return r(this.#t)}set mounted(t){a(this.#t,t,!0)}constructor(t,e){this.opts=t,this.content=e,this.root=e.root,this.attachment=F(t.ref),O([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),bt(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(t){if(this.autoScrollTimer!==null)return;const e=o=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>e(o+1),this.opts.delay.current(o))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>e(1),this.opts.delay.current(0))}onpointermove(t){this.onpointerdown(t)}onpointerleave(t){this.clearAutoScrollInterval()}#e=l(()=>({id:this.opts.id.current,"aria-hidden":re(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}class At{static create(t){return new At(new $t(t,gt.get()))}scrollButtonState;content;root;#t=I(!1);get canScrollDown(){return r(this.#t)}set canScrollDown(t){a(this.#t,t,!0)}scrollIntoViewTimer=null;constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,O([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),yt(this.root.viewportNode,"scroll",()=>this.handleScroll())}),O([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),O(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=Oe(5,()=>{this.root.highlightedNode?.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const e=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,o=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<e-o};handleAutoScroll=()=>{const t=this.root.viewportNode,e=this.root.highlightedNode;!t||!e||(t.scrollTop=t.scrollTop+e.offsetHeight)};#e=l(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}class Ht{static create(t){return new Ht(new $t(t,gt.get()))}scrollButtonState;content;root;#t=I(!1);get canScrollUp(){return r(this.#t)}set canScrollUp(t){a(this.#t,t,!0)}constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,O([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),yt(this.root.viewportNode,"scroll",()=>this.handleScroll())})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const e=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-e>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#e=l(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return r(this.#e)}set props(t){a(this.#e,t)}}function yo(g,t){A(t,!0);let e=f(t,"value",15);const o=kt.create({value:N(()=>e())});var s=T(),h=w(s);{var i=n=>{Ue(n,J(()=>o.props,{get autocomplete(){return t.autocomplete},get value(){return e()},set value(m){e(m)}}))};x(h,n=>{o.shouldRender&&n(i)})}c(g,s),H()}var ze=M("<div><div><!></div></div>"),Xe=M("<div><div><!></div></div>");function So(g,t){const e=it();A(t,!0);let o=f(t,"id",19,()=>st(e)),s=f(t,"ref",15,null),h=f(t,"forceMount",3,!1),i=f(t,"side",3,"bottom"),n=f(t,"onInteractOutside",3,Z),m=f(t,"onEscapeKeydown",3,Z),d=f(t,"preventScroll",3,!1),u=R(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll"]);const S=It.create({id:N(()=>o()),ref:N(()=>s(),b=>s(b)),onInteractOutside:N(()=>n()),onEscapeKeydown:N(()=>m())}),v=l(()=>W(u,S.props));var C=T(),k=w(C);{var j=b=>{Me(b,J(()=>r(v),()=>S.popperProps,{get ref(){return S.opts.ref},get side(){return i()},get enabled(){return S.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!0,get shouldRender(){return S.shouldRender},popper:(y,_)=>{let $=()=>_?.().props,ft=()=>_?.().wrapperProps;const nt=l(()=>W($(),{style:S.props.style}));var tt=T(),vt=w(tt);{var ht=D=>{var B=T(),z=w(B);{let et=l(()=>({props:r(nt),wrapperProps:ft(),...S.snippetProps}));P(z,()=>t.child,()=>r(et))}c(D,B)},lt=D=>{var B=ze();E(B,()=>({...ft()}));var z=K(B);E(z,()=>({...r(nt)}));var et=K(z);P(et,()=>t.children??G),U(z),U(B),c(D,B)};x(vt,D=>{t.child?D(ht):D(lt,!1)})}c(y,tt)},$$slots:{popper:!0}}))},q=b=>{var p=T(),y=w(p);{var _=$=>{Ve($,J(()=>r(v),()=>S.popperProps,{get ref(){return S.opts.ref},get side(){return i()},get open(){return S.root.opts.open.current},get id(){return o()},get preventScroll(){return d()},forceMount:!1,get shouldRender(){return S.shouldRender},popper:(nt,tt)=>{let vt=()=>tt?.().props,ht=()=>tt?.().wrapperProps;const lt=l(()=>W(vt(),{style:S.props.style}));var D=T(),B=w(D);{var z=Q=>{var X=T(),ot=w(X);{let mt=l(()=>({props:r(lt),wrapperProps:ht(),...S.snippetProps}));P(ot,()=>t.child,()=>r(mt))}c(Q,X)},et=Q=>{var X=Xe();E(X,()=>({...ht()}));var ot=K(X);E(ot,()=>({...r(lt)}));var mt=K(ot);P(mt,()=>t.children??G),U(ot),U(X),c(Q,X)};x(B,Q=>{t.child?Q(z):Q(et,!1)})}c(nt,D)},$$slots:{popper:!0}}))};x(y,$=>{h()||$(_)},!0)}c(b,p)};x(k,b=>{h()?b(j):b(q,!1)})}c(g,C),H()}function Ot(g,t){A(t,!0);let e=f(t,"mounted",15,!1),o=f(t,"onMountedChange",3,Z);Re(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)})),H()}var Je=M("<div><!></div>"),Qe=M("<!> <!>",1);function wo(g,t){const e=it();A(t,!0);let o=f(t,"id",19,()=>st(e)),s=f(t,"ref",15,null),h=f(t,"label",19,()=>t.value),i=f(t,"disabled",3,!1),n=f(t,"onHighlight",3,Z),m=f(t,"onUnhighlight",3,Z),d=R(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const u=Pt.create({id:N(()=>o()),ref:N(()=>s(),b=>s(b)),value:N(()=>t.value),disabled:N(()=>i()),label:N(()=>h()),onHighlight:N(()=>n()),onUnhighlight:N(()=>m())}),S=l(()=>W(d,u.props));var v=Qe(),C=w(v);{var k=b=>{var p=T(),y=w(p);{let _=l(()=>({props:r(S),...u.snippetProps}));P(y,()=>t.child,()=>r(_))}c(b,p)},j=b=>{var p=Je();E(p,()=>({...r(S)}));var y=K(p);P(y,()=>t.children??G,()=>u.snippetProps),U(p),c(b,p)};x(C,b=>{t.child?b(k):b(j,!1)})}var q=St(C,2);Ot(q,{get mounted(){return u.mounted},set mounted(b){u.mounted=b}}),c(g,v),H()}var Ze=M("<div><!></div>");function No(g,t){const e=it();A(t,!0);let o=f(t,"id",19,()=>st(e)),s=f(t,"ref",15,null),h=R(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const i=xt.create({id:N(()=>o()),ref:N(()=>s(),v=>s(v))}),n=l(()=>W(h,i.props));var m=T(),d=w(m);{var u=v=>{var C=T(),k=w(C);P(k,()=>t.child,()=>({props:r(n)})),c(v,C)},S=v=>{var C=Ze();E(C,()=>({...r(n)}));var k=K(C);P(k,()=>t.children??G),U(C),c(v,C)};x(d,v=>{t.child?v(u):v(S,!1)})}c(g,m),H()}var $e=M("<div><!></div>"),to=M("<!> <!>",1);function eo(g,t){const e=it();A(t,!0);let o=f(t,"id",19,()=>st(e)),s=f(t,"ref",15,null),h=f(t,"delay",3,()=>50),i=R(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const n=At.create({id:N(()=>o()),ref:N(()=>s(),v=>s(v)),delay:N(()=>h())}),m=l(()=>W(i,n.props));var d=T(),u=w(d);{var S=v=>{var C=to(),k=w(C);Ot(k,{get mounted(){return n.scrollButtonState.mounted},set mounted(p){n.scrollButtonState.mounted=p}});var j=St(k,2);{var q=p=>{var y=T(),_=w(y);P(_,()=>t.child,()=>({props:i})),c(p,y)},b=p=>{var y=$e();E(y,()=>({...r(m)}));var _=K(y);P(_,()=>t.children??G),U(y),c(p,y)};x(j,p=>{t.child?p(q):p(b,!1)})}c(v,C)};x(u,v=>{n.canScrollDown&&v(S)})}c(g,d),H()}var oo=M("<div><!></div>"),ro=M("<!> <!>",1);function io(g,t){const e=it();A(t,!0);let o=f(t,"id",19,()=>st(e)),s=f(t,"ref",15,null),h=f(t,"delay",3,()=>50),i=R(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const n=Ht.create({id:N(()=>o()),ref:N(()=>s(),v=>s(v)),delay:N(()=>h())}),m=l(()=>W(i,n.props));var d=T(),u=w(d);{var S=v=>{var C=ro(),k=w(C);Ot(k,{get mounted(){return n.scrollButtonState.mounted},set mounted(p){n.scrollButtonState.mounted=p}});var j=St(k,2);{var q=p=>{var y=T(),_=w(y);P(_,()=>t.child,()=>({props:i})),c(p,y)},b=p=>{var y=oo();E(y,()=>({...r(m)}));var _=K(y);P(_,()=>t.children??G),U(y),c(p,y)};x(j,p=>{t.child?p(q):p(b,!1)})}c(v,C)};x(u,v=>{n.canScrollUp&&v(S)})}c(g,d),H()}function so(g,t){A(t,!0);let e=R(t,["$$slots","$$events","$$legacy"]);const o=[["path",{d:"m6 9 6 6 6-6"}]];Gt(g,J({name:"chevron-down"},()=>e,{get iconNode(){return o},children:(s,h)=>{var i=T(),n=w(i);P(n,()=>t.children??G),c(s,i)},$$slots:{default:!0}})),H()}function no(g,t){A(t,!0);let e=R(t,["$$slots","$$events","$$legacy"]);const o=[["path",{d:"m18 15-6-6-6 6"}]];Gt(g,J({name:"chevron-up"},()=>e,{get iconNode(){return o},children:(s,h)=>{var i=T(),n=w(i);P(n,()=>t.children??G),c(s,i)},$$slots:{default:!0}})),H()}function Co(g,t){A(t,!0);let e=f(t,"ref",15,null),o=R(t,["$$slots","$$events","$$legacy","ref","class"]);var s=T(),h=w(s);{let i=l(()=>Et("flex cursor-default items-center justify-center py-1",t.class));Wt(h,()=>io,(n,m)=>{m(n,J({"data-slot":"select-scroll-up-button",get class(){return r(i)}},()=>o,{get ref(){return e()},set ref(d){e(d)},children:(d,u)=>{no(d,{class:"size-4"})},$$slots:{default:!0}}))})}c(g,s),H()}function To(g,t){A(t,!0);let e=f(t,"ref",15,null),o=R(t,["$$slots","$$events","$$legacy","ref","class"]);var s=T(),h=w(s);{let i=l(()=>Et("flex cursor-default items-center justify-center py-1",t.class));Wt(h,()=>eo,(n,m)=>{m(n,J({"data-slot":"select-scroll-down-button",get class(){return r(i)}},()=>o,{get ref(){return e()},set ref(d){e(d)},children:(d,u)=>{so(d,{class:"size-4"})},$$slots:{default:!0}}))})}c(g,s),H()}export{so as C,Ue as H,Qt as S,Zt as a,bo as b,yo as c,zt as d,Xt as e,So as f,Co as g,No as h,To as i,wo as j,Jt as k,Be as s};
diff --git a/backend/static/frontend/_app/immutable/chunks/CYYjDwkn.js.map b/backend/static/frontend/_app/immutable/chunks/BT31m2vG.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/CYYjDwkn.js.map
rename to backend/static/frontend/_app/immutable/chunks/BT31m2vG.js.map
index 880315b9..f4cbdcbb 100644
--- a/backend/static/frontend/_app/immutable/chunks/CYYjDwkn.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/BT31m2vG.js.map
@@ -1 +1 @@
-{"version":3,"file":"CYYjDwkn.js","sources":["../../../../../../node_modules/svelte-toolbelt/dist/utils/sr-only-styles.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/hidden-input.svelte","../../../../../../node_modules/bits-ui/dist/internal/data-typeahead.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/select/select.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-hidden-input.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/mounted.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-item.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-viewport.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-scroll-down-button.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-scroll-up-button.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/chevron-down.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/chevron-up.svelte","../../../../../../src/lib/components/ui/select/select-scroll-up-button.svelte","../../../../../../src/lib/components/ui/select/select-scroll-down-button.svelte"],"sourcesContent":["import { styleToString } from \"./style.js\";\nexport const srOnlyStyles = {\n position: \"absolute\",\n width: \"1px\",\n height: \"1px\",\n padding: \"0\",\n margin: \"-1px\",\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n borderWidth: \"0\",\n transform: \"translateX(-100%)\"\n};\nexport const srOnlyStylesString = styleToString(srOnlyStyles);\n","<script lang=\"ts\">\n\timport { mergeProps, srOnlyStylesString } from \"svelte-toolbelt\";\n\timport type { HTMLInputAttributes } from \"svelte/elements\";\n\n\tlet { value = $bindable(), ...restProps }: HTMLInputAttributes = $props();\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, {\n\t\t\t\"aria-hidden\": \"true\",\n\t\t\ttabindex: -1,\n\t\t\tstyle: srOnlyStylesString,\n\t\t})\n\t);\n</script>\n\n{#if mergedProps.type === \"checkbox\"}\n\t<input {...mergedProps} {value} />\n{:else}\n\t<input bind:value {...mergedProps} />\n{/if}\n","import { getNextMatch } from \"./arrays.js\";\nimport { boxAutoReset } from \"./box-auto-reset.svelte.js\";\nexport class DataTypeahead {\n #opts;\n #candidateValues = $derived.by(() => this.#opts.candidateValues());\n #search;\n constructor(opts) {\n this.#opts = opts;\n this.#search = boxAutoReset(\"\", {\n afterMs: 1000,\n getWindow: this.#opts.getWindow,\n });\n this.handleTypeaheadSearch = this.handleTypeaheadSearch.bind(this);\n this.resetTypeahead = this.resetTypeahead.bind(this);\n }\n handleTypeaheadSearch(key) {\n if (!this.#opts.enabled() || !this.#candidateValues.length)\n return;\n this.#search.current = this.#search.current + key;\n const currentItem = this.#opts.getCurrentItem();\n const currentMatch = this.#candidateValues.find((item) => item === currentItem) ?? \"\";\n const values = this.#candidateValues.map((item) => item ?? \"\");\n const nextMatch = getNextMatch(values, this.#search.current, currentMatch);\n const newItem = this.#candidateValues.find((item) => item === nextMatch);\n if (newItem) {\n this.#opts.onMatch(newItem);\n }\n return newItem;\n }\n resetTypeahead() {\n this.#search.current = \"\";\n }\n}\n","import { Context, Previous, watch } from \"runed\";\nimport { afterSleep, afterTick, onDestroyEffect, attachRef, DOMContext, boxWith, } from \"svelte-toolbelt\";\nimport { on } from \"svelte/events\";\nimport { backward, forward, next, prev } from \"../../internal/arrays.js\";\nimport { boolToStr, boolToStrTrueOrUndef, boolToEmptyStrOrUndef, getDataOpenClosed, boolToTrueOrUndef, } from \"../../internal/attrs.js\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { noop } from \"../../internal/noop.js\";\nimport { isIOS } from \"../../internal/is.js\";\nimport { createBitsAttrs } from \"../../internal/attrs.js\";\nimport { getFloatingContentCSSVars } from \"../../internal/floating-svelte/floating-utils.svelte.js\";\nimport { DataTypeahead } from \"../../internal/data-typeahead.svelte.js\";\nimport { DOMTypeahead } from \"../../internal/dom-typeahead.svelte.js\";\nimport { PresenceManager } from \"../../internal/presence-manager.svelte.js\";\n// prettier-ignore\nexport const INTERACTION_KEYS = [kbd.ARROW_LEFT, kbd.ESCAPE, kbd.ARROW_RIGHT, kbd.SHIFT, kbd.CAPS_LOCK, kbd.CONTROL, kbd.ALT, kbd.META, kbd.ENTER, kbd.F1, kbd.F2, kbd.F3, kbd.F4, kbd.F5, kbd.F6, kbd.F7, kbd.F8, kbd.F9, kbd.F10, kbd.F11, kbd.F12];\nexport const FIRST_KEYS = [kbd.ARROW_DOWN, kbd.PAGE_UP, kbd.HOME];\nexport const LAST_KEYS = [kbd.ARROW_UP, kbd.PAGE_DOWN, kbd.END];\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nexport const SELECTION_KEYS = [kbd.ENTER, kbd.SPACE];\nexport const CONTENT_MARGIN = 10;\nconst selectAttrs = createBitsAttrs({\n component: \"select\",\n parts: [\n \"trigger\",\n \"content\",\n \"item\",\n \"viewport\",\n \"scroll-up-button\",\n \"scroll-down-button\",\n \"group\",\n \"group-label\",\n \"separator\",\n \"arrow\",\n \"input\",\n \"content-wrapper\",\n \"item-text\",\n \"value\",\n ],\n});\nconst SelectRootContext = new Context(\"Select.Root | Combobox.Root\");\nconst SelectGroupContext = new Context(\"Select.Group | Combobox.Group\");\nconst SelectContentContext = new Context(\"Select.Content | Combobox.Content\");\nclass SelectBaseRootState {\n opts;\n touchedInput = $state(false);\n inputNode = $state(null);\n contentNode = $state(null);\n contentPresence;\n viewportNode = $state(null);\n triggerNode = $state(null);\n valueId = $state(\"\");\n highlightedNode = $state(null);\n highlightedValue = $derived.by(() => {\n if (!this.highlightedNode)\n return null;\n return this.highlightedNode.getAttribute(\"data-value\");\n });\n highlightedId = $derived.by(() => {\n if (!this.highlightedNode)\n return undefined;\n return this.highlightedNode.id;\n });\n highlightedLabel = $derived.by(() => {\n if (!this.highlightedNode)\n return null;\n return this.highlightedNode.getAttribute(\"data-label\");\n });\n isUsingKeyboard = false;\n isCombobox = false;\n domContext = new DOMContext(() => null);\n constructor(opts) {\n this.opts = opts;\n this.isCombobox = opts.isCombobox;\n this.contentPresence = new PresenceManager({\n ref: boxWith(() => this.contentNode),\n open: this.opts.open,\n onComplete: () => {\n this.opts.onOpenChangeComplete.current(this.opts.open.current);\n },\n });\n $effect.pre(() => {\n if (!this.opts.open.current) {\n this.setHighlightedNode(null);\n }\n });\n }\n setHighlightedNode(node, initial = false) {\n this.highlightedNode = node;\n if (node && (this.isUsingKeyboard || initial)) {\n node.scrollIntoView({ block: this.opts.scrollAlignment.current });\n }\n }\n getCandidateNodes() {\n const node = this.contentNode;\n if (!node)\n return [];\n return Array.from(node.querySelectorAll(`[${this.getBitsAttr(\"item\")}]:not([data-disabled])`));\n }\n setHighlightedToFirstCandidate(initial = false) {\n this.setHighlightedNode(null);\n let nodes = this.getCandidateNodes();\n if (!nodes.length)\n return;\n // don't consider nodes that aren't visible within the viewport\n if (this.viewportNode) {\n const viewportRect = this.viewportNode.getBoundingClientRect();\n nodes = nodes.filter((node) => {\n if (!this.viewportNode)\n return false;\n const nodeRect = node.getBoundingClientRect();\n const isNodeFullyVisible = nodeRect.right < viewportRect.right &&\n nodeRect.left > viewportRect.left &&\n nodeRect.bottom < viewportRect.bottom &&\n nodeRect.top > viewportRect.top;\n return isNodeFullyVisible;\n });\n }\n this.setHighlightedNode(nodes[0], initial);\n }\n getNodeByValue(value) {\n const candidateNodes = this.getCandidateNodes();\n return candidateNodes.find((node) => node.dataset.value === value) ?? null;\n }\n setOpen(open) {\n this.opts.open.current = open;\n }\n toggleOpen() {\n this.opts.open.current = !this.opts.open.current;\n }\n handleOpen() {\n this.setOpen(true);\n }\n handleClose() {\n this.setHighlightedNode(null);\n this.setOpen(false);\n }\n toggleMenu() {\n this.toggleOpen();\n }\n getBitsAttr = (part) => {\n return selectAttrs.getAttr(part, this.isCombobox ? \"combobox\" : undefined);\n };\n}\nexport class SelectSingleRootState extends SelectBaseRootState {\n opts;\n isMulti = false;\n hasValue = $derived.by(() => this.opts.value.current !== \"\");\n currentLabel = $derived.by(() => {\n if (!this.opts.items.current.length)\n return \"\";\n return (this.opts.items.current.find((item) => item.value === this.opts.value.current)?.label ??\n \"\");\n });\n candidateLabels = $derived.by(() => {\n if (!this.opts.items.current.length)\n return [];\n const filteredItems = this.opts.items.current.filter((item) => !item.disabled);\n return filteredItems.map((item) => item.label);\n });\n dataTypeaheadEnabled = $derived.by(() => {\n if (this.isMulti)\n return false;\n if (this.opts.items.current.length === 0)\n return false;\n return true;\n });\n constructor(opts) {\n super(opts);\n this.opts = opts;\n $effect(() => {\n if (!this.opts.open.current && this.highlightedNode) {\n this.setHighlightedNode(null);\n }\n });\n watch(() => this.opts.open.current, () => {\n if (!this.opts.open.current)\n return;\n this.setInitialHighlightedNode();\n });\n }\n includesItem(itemValue) {\n return this.opts.value.current === itemValue;\n }\n toggleItem(itemValue, itemLabel = itemValue) {\n const newValue = this.includesItem(itemValue) ? \"\" : itemValue;\n this.opts.value.current = newValue;\n if (newValue !== \"\") {\n this.opts.inputValue.current = itemLabel;\n }\n }\n setInitialHighlightedNode() {\n afterTick(() => {\n if (this.highlightedNode &&\n this.domContext.getDocument().contains(this.highlightedNode))\n return;\n if (this.opts.value.current !== \"\") {\n const node = this.getNodeByValue(this.opts.value.current);\n if (node) {\n this.setHighlightedNode(node, true);\n return;\n }\n }\n // if no value is set, we want to highlight the first item\n this.setHighlightedToFirstCandidate(true);\n });\n }\n}\nclass SelectMultipleRootState extends SelectBaseRootState {\n opts;\n isMulti = true;\n hasValue = $derived.by(() => this.opts.value.current.length > 0);\n constructor(opts) {\n super(opts);\n this.opts = opts;\n $effect(() => {\n if (!this.opts.open.current && this.highlightedNode) {\n this.setHighlightedNode(null);\n }\n });\n watch(() => this.opts.open.current, () => {\n if (!this.opts.open.current)\n return;\n this.setInitialHighlightedNode();\n });\n }\n includesItem(itemValue) {\n return this.opts.value.current.includes(itemValue);\n }\n toggleItem(itemValue, itemLabel = itemValue) {\n if (this.includesItem(itemValue)) {\n this.opts.value.current = this.opts.value.current.filter((v) => v !== itemValue);\n }\n else {\n this.opts.value.current = [...this.opts.value.current, itemValue];\n }\n this.opts.inputValue.current = itemLabel;\n }\n setInitialHighlightedNode() {\n afterTick(() => {\n if (!this.domContext)\n return;\n if (this.highlightedNode &&\n this.domContext.getDocument().contains(this.highlightedNode))\n return;\n if (this.opts.value.current.length && this.opts.value.current[0] !== \"\") {\n const node = this.getNodeByValue(this.opts.value.current[0]);\n if (node) {\n this.setHighlightedNode(node, true);\n return;\n }\n }\n // if no value is set, we want to highlight the first item\n this.setHighlightedToFirstCandidate(true);\n });\n }\n}\nexport class SelectRootState {\n static create(props) {\n const { type, ...rest } = props;\n const rootState = type === \"single\"\n ? new SelectSingleRootState(rest)\n : new SelectMultipleRootState(rest);\n return SelectRootContext.set(rootState);\n }\n}\nexport class SelectInputState {\n static create(opts) {\n return new SelectInputState(opts, SelectRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref, (v) => (this.root.inputNode = v));\n this.root.domContext = new DOMContext(opts.ref);\n this.onkeydown = this.onkeydown.bind(this);\n this.oninput = this.oninput.bind(this);\n watch([() => this.root.opts.value.current, () => this.opts.clearOnDeselect.current], ([value, clearOnDeselect], [prevValue]) => {\n if (!clearOnDeselect)\n return;\n if (Array.isArray(value) && Array.isArray(prevValue)) {\n if (value.length === 0 && prevValue.length !== 0) {\n this.root.opts.inputValue.current = \"\";\n }\n }\n else if (value === \"\" && prevValue !== \"\") {\n this.root.opts.inputValue.current = \"\";\n }\n });\n }\n onkeydown(e) {\n this.root.isUsingKeyboard = true;\n if (e.key === kbd.ESCAPE)\n return;\n // prevent arrow up/down from moving the position of the cursor in the input\n if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN)\n e.preventDefault();\n if (!this.root.opts.open.current) {\n if (INTERACTION_KEYS.includes(e.key))\n return;\n if (e.key === kbd.TAB)\n return;\n if (e.key === kbd.BACKSPACE && this.root.opts.inputValue.current === \"\")\n return;\n this.root.handleOpen();\n // we need to wait for a tick after the menu opens to ensure the highlighted nodes are\n // set correctly.\n if (this.root.hasValue)\n return;\n const candidateNodes = this.root.getCandidateNodes();\n if (!candidateNodes.length)\n return;\n if (e.key === kbd.ARROW_DOWN) {\n const firstCandidate = candidateNodes[0];\n this.root.setHighlightedNode(firstCandidate);\n }\n else if (e.key === kbd.ARROW_UP) {\n const lastCandidate = candidateNodes[candidateNodes.length - 1];\n this.root.setHighlightedNode(lastCandidate);\n }\n return;\n }\n if (e.key === kbd.TAB) {\n this.root.handleClose();\n return;\n }\n if (e.key === kbd.ENTER && !e.isComposing) {\n e.preventDefault();\n const isCurrentSelectedValue = this.root.highlightedValue === this.root.opts.value.current;\n if (!this.root.opts.allowDeselect.current &&\n isCurrentSelectedValue &&\n !this.root.isMulti) {\n this.root.handleClose();\n return;\n }\n if (this.root.highlightedValue &&\n this.root.highlightedNode &&\n this.root.highlightedNode.isConnected) {\n this.root.toggleItem(this.root.highlightedValue, this.root.highlightedLabel ?? undefined);\n }\n if (!this.root.isMulti && !isCurrentSelectedValue) {\n this.root.handleClose();\n }\n }\n if (e.key === kbd.ARROW_UP && e.altKey) {\n this.root.handleClose();\n }\n if (FIRST_LAST_KEYS.includes(e.key)) {\n e.preventDefault();\n const candidateNodes = this.root.getCandidateNodes();\n const currHighlightedNode = this.root.highlightedNode;\n const currIndex = currHighlightedNode\n ? candidateNodes.indexOf(currHighlightedNode)\n : -1;\n const loop = this.root.opts.loop.current;\n let nextItem;\n if (e.key === kbd.ARROW_DOWN) {\n nextItem = next(candidateNodes, currIndex, loop);\n }\n else if (e.key === kbd.ARROW_UP) {\n nextItem = prev(candidateNodes, currIndex, loop);\n }\n else if (e.key === kbd.PAGE_DOWN) {\n nextItem = forward(candidateNodes, currIndex, 10, loop);\n }\n else if (e.key === kbd.PAGE_UP) {\n nextItem = backward(candidateNodes, currIndex, 10, loop);\n }\n else if (e.key === kbd.HOME) {\n nextItem = candidateNodes[0];\n }\n else if (e.key === kbd.END) {\n nextItem = candidateNodes[candidateNodes.length - 1];\n }\n if (!nextItem)\n return;\n this.root.setHighlightedNode(nextItem);\n return;\n }\n if (INTERACTION_KEYS.includes(e.key))\n return;\n if (!this.root.highlightedNode) {\n this.root.setHighlightedToFirstCandidate();\n }\n }\n oninput(e) {\n this.root.opts.inputValue.current = e.currentTarget.value;\n this.root.setHighlightedToFirstCandidate();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"combobox\",\n disabled: this.root.opts.disabled.current ? true : undefined,\n \"aria-activedescendant\": this.root.highlightedId,\n \"aria-autocomplete\": \"list\",\n \"aria-expanded\": boolToStr(this.root.opts.open.current),\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n onkeydown: this.onkeydown,\n oninput: this.oninput,\n [this.root.getBitsAttr(\"input\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class SelectComboTriggerState {\n static create(opts) {\n return new SelectComboTriggerState(opts, SelectRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n this.onkeydown = this.onkeydown.bind(this);\n this.onpointerdown = this.onpointerdown.bind(this);\n }\n onkeydown(e) {\n if (!this.root.domContext)\n return;\n if (e.key === kbd.ENTER || e.key === kbd.SPACE) {\n e.preventDefault();\n if (this.root.domContext.getActiveElement() !== this.root.inputNode) {\n this.root.inputNode?.focus();\n }\n this.root.toggleMenu();\n }\n }\n /**\n * `pointerdown` fires before the `focus` event, so we can prevent the default\n * behavior of focusing the button and keep focus on the input.\n */\n onpointerdown(e) {\n if (this.root.opts.disabled.current || !this.root.domContext)\n return;\n e.preventDefault();\n if (this.root.domContext.getActiveElement() !== this.root.inputNode) {\n this.root.inputNode?.focus();\n }\n this.root.toggleMenu();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n disabled: this.root.opts.disabled.current ? true : undefined,\n \"aria-haspopup\": \"listbox\",\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n [this.root.getBitsAttr(\"trigger\")]: \"\",\n onpointerdown: this.onpointerdown,\n onkeydown: this.onkeydown,\n ...this.attachment,\n }));\n}\nexport class SelectTriggerState {\n static create(opts) {\n return new SelectTriggerState(opts, SelectRootContext.get());\n }\n opts;\n root;\n attachment;\n #domTypeahead;\n #dataTypeahead;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref, (v) => (this.root.triggerNode = v));\n this.root.domContext = new DOMContext(opts.ref);\n this.#domTypeahead = new DOMTypeahead({\n getCurrentItem: () => this.root.highlightedNode,\n onMatch: (node) => {\n this.root.setHighlightedNode(node);\n },\n getActiveElement: () => this.root.domContext.getActiveElement(),\n getWindow: () => this.root.domContext.getWindow(),\n });\n this.#dataTypeahead = new DataTypeahead({\n getCurrentItem: () => {\n if (this.root.isMulti)\n return \"\";\n return this.root.currentLabel;\n },\n onMatch: (label) => {\n if (this.root.isMulti)\n return;\n if (!this.root.opts.items.current)\n return;\n const matchedItem = this.root.opts.items.current.find((item) => item.label === label);\n if (!matchedItem)\n return;\n this.root.opts.value.current = matchedItem.value;\n },\n enabled: () => !this.root.isMulti && this.root.dataTypeaheadEnabled,\n candidateValues: () => (this.root.isMulti ? [] : this.root.candidateLabels),\n getWindow: () => this.root.domContext.getWindow(),\n });\n this.onkeydown = this.onkeydown.bind(this);\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n this.onclick = this.onclick.bind(this);\n }\n #handleOpen() {\n this.root.opts.open.current = true;\n this.#dataTypeahead.resetTypeahead();\n this.#domTypeahead.resetTypeahead();\n }\n #handlePointerOpen(_) {\n this.#handleOpen();\n }\n /**\n * Logic used to handle keyboard selection/deselection.\n *\n * If it returns true, it means the item was selected and whatever is calling\n * this function should return early\n *\n */\n #handleKeyboardSelection() {\n const isCurrentSelectedValue = this.root.highlightedValue === this.root.opts.value.current;\n if (!this.root.opts.allowDeselect.current && isCurrentSelectedValue && !this.root.isMulti) {\n this.root.handleClose();\n return true;\n }\n // \"\" is a valid value for a select item so we need to check for that\n if (this.root.highlightedValue !== null) {\n this.root.toggleItem(this.root.highlightedValue, this.root.highlightedLabel ?? undefined);\n }\n if (!this.root.isMulti && !isCurrentSelectedValue) {\n this.root.handleClose();\n return true;\n }\n return false;\n }\n onkeydown(e) {\n this.root.isUsingKeyboard = true;\n if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN)\n e.preventDefault();\n if (!this.root.opts.open.current) {\n if (e.key === kbd.ENTER ||\n e.key === kbd.SPACE ||\n e.key === kbd.ARROW_DOWN ||\n e.key === kbd.ARROW_UP) {\n e.preventDefault();\n this.root.handleOpen();\n }\n else if (!this.root.isMulti && this.root.dataTypeaheadEnabled) {\n this.#dataTypeahead.handleTypeaheadSearch(e.key);\n return;\n }\n // we need to wait for a tick after the menu opens to ensure\n // the highlighted nodes are set correctly\n if (this.root.hasValue)\n return;\n const candidateNodes = this.root.getCandidateNodes();\n if (!candidateNodes.length)\n return;\n if (e.key === kbd.ARROW_DOWN) {\n const firstCandidate = candidateNodes[0];\n this.root.setHighlightedNode(firstCandidate);\n }\n else if (e.key === kbd.ARROW_UP) {\n const lastCandidate = candidateNodes[candidateNodes.length - 1];\n this.root.setHighlightedNode(lastCandidate);\n }\n return;\n }\n if (e.key === kbd.TAB) {\n this.root.handleClose();\n return;\n }\n if ((e.key === kbd.ENTER ||\n // if we're currently \"typing ahead\", we don't want to select the item\n // just yet as the item the user is trying to get to may have a space in it,\n // so we defer handling the close for this case until further down\n (e.key === kbd.SPACE && this.#domTypeahead.search === \"\")) &&\n !e.isComposing) {\n e.preventDefault();\n const shouldReturn = this.#handleKeyboardSelection();\n if (shouldReturn)\n return;\n }\n if (e.key === kbd.ARROW_UP && e.altKey) {\n this.root.handleClose();\n }\n if (FIRST_LAST_KEYS.includes(e.key)) {\n e.preventDefault();\n const candidateNodes = this.root.getCandidateNodes();\n const currHighlightedNode = this.root.highlightedNode;\n const currIndex = currHighlightedNode\n ? candidateNodes.indexOf(currHighlightedNode)\n : -1;\n const loop = this.root.opts.loop.current;\n let nextItem;\n if (e.key === kbd.ARROW_DOWN) {\n nextItem = next(candidateNodes, currIndex, loop);\n }\n else if (e.key === kbd.ARROW_UP) {\n nextItem = prev(candidateNodes, currIndex, loop);\n }\n else if (e.key === kbd.PAGE_DOWN) {\n nextItem = forward(candidateNodes, currIndex, 10, loop);\n }\n else if (e.key === kbd.PAGE_UP) {\n nextItem = backward(candidateNodes, currIndex, 10, loop);\n }\n else if (e.key === kbd.HOME) {\n nextItem = candidateNodes[0];\n }\n else if (e.key === kbd.END) {\n nextItem = candidateNodes[candidateNodes.length - 1];\n }\n if (!nextItem)\n return;\n this.root.setHighlightedNode(nextItem);\n return;\n }\n const isModifierKey = e.ctrlKey || e.altKey || e.metaKey;\n const isCharacterKey = e.key.length === 1;\n const isSpaceKey = e.key === kbd.SPACE;\n const candidateNodes = this.root.getCandidateNodes();\n if (e.key === kbd.TAB)\n return;\n if (!isModifierKey && (isCharacterKey || isSpaceKey)) {\n const matchedNode = this.#domTypeahead.handleTypeaheadSearch(e.key, candidateNodes);\n if (!matchedNode && isSpaceKey) {\n e.preventDefault();\n this.#handleKeyboardSelection();\n }\n return;\n }\n if (!this.root.highlightedNode) {\n this.root.setHighlightedToFirstCandidate();\n }\n }\n onclick(e) {\n // While browsers generally have no issue focusing the trigger when clicking\n // on a label, Safari seems to struggle with the fact that there's no `onClick`.\n // We force `focus` in this case. Note: this doesn't create any other side-effect\n // because we are preventing default in `onpointerdown` so effectively\n // this only runs for a label 'click'\n const currTarget = e.currentTarget;\n currTarget.focus();\n }\n onpointerdown(e) {\n if (this.root.opts.disabled.current)\n return;\n // prevent opening on touch down which can be triggered when scrolling on touch devices\n if (e.pointerType === \"touch\")\n return e.preventDefault();\n // prevent implicit pointer capture\n const target = e.target;\n if (target?.hasPointerCapture(e.pointerId)) {\n target?.releasePointerCapture(e.pointerId);\n }\n // only call the handle if it's a left click, since pointerdown is triggered\n // by right clicks as well, but not when ctrl is pressed\n if (e.button === 0 && e.ctrlKey === false) {\n if (this.root.opts.open.current === false) {\n this.#handlePointerOpen(e);\n }\n else {\n this.root.handleClose();\n }\n }\n }\n onpointerup(e) {\n if (this.root.opts.disabled.current)\n return;\n e.preventDefault();\n if (e.pointerType === \"touch\") {\n if (this.root.opts.open.current === false) {\n this.#handlePointerOpen(e);\n }\n else {\n this.root.handleClose();\n }\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n disabled: this.root.opts.disabled.current ? true : undefined,\n \"aria-haspopup\": \"listbox\",\n \"aria-expanded\": boolToStr(this.root.opts.open.current),\n \"aria-activedescendant\": this.root.highlightedId,\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-placeholder\": this.root.hasValue ? undefined : \"\",\n [this.root.getBitsAttr(\"trigger\")]: \"\",\n onpointerdown: this.onpointerdown,\n onkeydown: this.onkeydown,\n onclick: this.onclick,\n onpointerup: this.onpointerup,\n ...this.attachment,\n }));\n}\nexport class SelectContentState {\n static create(opts) {\n return SelectContentContext.set(new SelectContentState(opts, SelectRootContext.get()));\n }\n opts;\n root;\n attachment;\n isPositioned = $state(false);\n domContext;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref, (v) => (this.root.contentNode = v));\n this.domContext = new DOMContext(this.opts.ref);\n if (this.root.domContext === null) {\n this.root.domContext = this.domContext;\n }\n onDestroyEffect(() => {\n this.root.contentNode = null;\n this.isPositioned = false;\n });\n watch(() => this.root.opts.open.current, () => {\n if (this.root.opts.open.current)\n return;\n this.isPositioned = false;\n });\n this.onpointermove = this.onpointermove.bind(this);\n }\n onpointermove(_) {\n this.root.isUsingKeyboard = false;\n }\n #styles = $derived.by(() => {\n return getFloatingContentCSSVars(this.root.isCombobox ? \"combobox\" : \"select\");\n });\n onInteractOutside = (e) => {\n if (e.target === this.root.triggerNode || e.target === this.root.inputNode) {\n e.preventDefault();\n return;\n }\n this.opts.onInteractOutside.current(e);\n if (e.defaultPrevented)\n return;\n this.root.handleClose();\n };\n onEscapeKeydown = (e) => {\n this.opts.onEscapeKeydown.current(e);\n if (e.defaultPrevented)\n return;\n this.root.handleClose();\n };\n onOpenAutoFocus = (e) => {\n e.preventDefault();\n };\n onCloseAutoFocus = (e) => {\n e.preventDefault();\n };\n get shouldRender() {\n return this.root.contentPresence.shouldRender;\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"listbox\",\n \"aria-multiselectable\": this.root.isMulti ? \"true\" : undefined,\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n [this.root.getBitsAttr(\"content\")]: \"\",\n style: {\n display: \"flex\",\n flexDirection: \"column\",\n outline: \"none\",\n boxSizing: \"border-box\",\n pointerEvents: \"auto\",\n ...this.#styles,\n },\n onpointermove: this.onpointermove,\n ...this.attachment,\n }));\n popperProps = {\n onInteractOutside: this.onInteractOutside,\n onEscapeKeydown: this.onEscapeKeydown,\n onOpenAutoFocus: this.onOpenAutoFocus,\n onCloseAutoFocus: this.onCloseAutoFocus,\n trapFocus: false,\n loop: false,\n onPlaced: () => {\n // onPlaced is also called when the menu is closed, so we need to check if the menu\n // is actually open to avoid setting positioning to true when the menu is closed\n if (this.root.opts.open.current) {\n this.isPositioned = true;\n }\n },\n };\n}\nexport class SelectItemState {\n static create(opts) {\n return new SelectItemState(opts, SelectRootContext.get());\n }\n opts;\n root;\n attachment;\n isSelected = $derived.by(() => this.root.includesItem(this.opts.value.current));\n isHighlighted = $derived.by(() => this.root.highlightedValue === this.opts.value.current);\n prevHighlighted = new Previous(() => this.isHighlighted);\n mounted = $state(false);\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n watch([() => this.isHighlighted, () => this.prevHighlighted.current], () => {\n if (this.isHighlighted) {\n this.opts.onHighlight.current();\n }\n else if (this.prevHighlighted.current) {\n this.opts.onUnhighlight.current();\n }\n });\n watch(() => this.mounted, () => {\n if (!this.mounted)\n return;\n this.root.setInitialHighlightedNode();\n });\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n this.onpointermove = this.onpointermove.bind(this);\n }\n handleSelect() {\n if (this.opts.disabled.current)\n return;\n const isCurrentSelectedValue = this.opts.value.current === this.root.opts.value.current;\n // if allowDeselect is false and the item is already selected and we're not in a\n // multi select, do nothing and close the menu\n if (!this.root.opts.allowDeselect.current && isCurrentSelectedValue && !this.root.isMulti) {\n this.root.handleClose();\n return;\n }\n // otherwise, toggle the item and if we're not in a multi select, close the menu\n this.root.toggleItem(this.opts.value.current, this.opts.label.current);\n if (!this.root.isMulti && !isCurrentSelectedValue) {\n this.root.handleClose();\n }\n }\n snippetProps = $derived.by(() => ({\n selected: this.isSelected,\n highlighted: this.isHighlighted,\n }));\n onpointerdown(e) {\n // prevent focus from leaving the input/select trigger\n e.preventDefault();\n }\n /**\n * Using `pointerup` instead of `click` allows power users to pointerdown\n * the trigger, then release pointerup on an item to select it vs having to do\n * multiple clicks.\n */\n onpointerup(e) {\n if (e.defaultPrevented || !this.opts.ref.current)\n return;\n /**\n * For one reason or another, when it's a touch pointer and _not_ on IOS,\n * we need to listen for the immediate click event to handle the selection,\n * otherwise a click event will fire on the element _behind_ the item.\n */\n if (e.pointerType === \"touch\" && !isIOS) {\n on(this.opts.ref.current, \"click\", () => {\n this.handleSelect();\n // set highlighted node since we don't do it on `pointermove` events\n // for touch devices\n this.root.setHighlightedNode(this.opts.ref.current);\n }, { once: true });\n return;\n }\n e.preventDefault();\n this.handleSelect();\n if (e.pointerType === \"touch\") {\n // set highlighted node since we don't do it on `pointermove` events\n // for touch devices\n this.root.setHighlightedNode(this.opts.ref.current);\n }\n }\n onpointermove(e) {\n /**\n * We don't want to highlight items on touch devices when scrolling,\n * as this is confusing behavior, so we return here and instead handle\n * the highlighting on the `pointerup` (or following `click`) event for\n * touch devices only.\n */\n if (e.pointerType === \"touch\")\n return;\n if (this.root.highlightedNode !== this.opts.ref.current) {\n this.root.setHighlightedNode(this.opts.ref.current);\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"option\",\n \"aria-selected\": this.root.includesItem(this.opts.value.current)\n ? \"true\"\n : undefined,\n \"data-value\": this.opts.value.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.opts.disabled.current),\n \"data-highlighted\": this.root.highlightedValue === this.opts.value.current &&\n !this.opts.disabled.current\n ? \"\"\n : undefined,\n \"data-selected\": this.root.includesItem(this.opts.value.current) ? \"\" : undefined,\n \"data-label\": this.opts.label.current,\n [this.root.getBitsAttr(\"item\")]: \"\",\n onpointermove: this.onpointermove,\n onpointerdown: this.onpointerdown,\n onpointerup: this.onpointerup,\n ...this.attachment,\n }));\n}\nexport class SelectGroupState {\n static create(opts) {\n return SelectGroupContext.set(new SelectGroupState(opts, SelectRootContext.get()));\n }\n opts;\n root;\n labelNode = $state(null);\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"group\",\n [this.root.getBitsAttr(\"group\")]: \"\",\n \"aria-labelledby\": this.labelNode?.id ?? undefined,\n ...this.attachment,\n }));\n}\nexport class SelectGroupHeadingState {\n static create(opts) {\n return new SelectGroupHeadingState(opts, SelectGroupContext.get());\n }\n opts;\n group;\n attachment;\n constructor(opts, group) {\n this.opts = opts;\n this.group = group;\n this.attachment = attachRef(opts.ref, (v) => (this.group.labelNode = v));\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.group.root.getBitsAttr(\"group-label\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class SelectHiddenInputState {\n static create(opts) {\n return new SelectHiddenInputState(opts, SelectRootContext.get());\n }\n opts;\n root;\n shouldRender = $derived.by(() => this.root.opts.name.current !== \"\");\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.onfocus = this.onfocus.bind(this);\n }\n onfocus(e) {\n e.preventDefault();\n if (!this.root.isCombobox) {\n this.root.triggerNode?.focus();\n }\n else {\n this.root.inputNode?.focus();\n }\n }\n props = $derived.by(() => ({\n disabled: boolToTrueOrUndef(this.root.opts.disabled.current),\n required: boolToTrueOrUndef(this.root.opts.required.current),\n name: this.root.opts.name.current,\n value: this.opts.value.current,\n onfocus: this.onfocus,\n }));\n}\nexport class SelectViewportState {\n static create(opts) {\n return new SelectViewportState(opts, SelectContentContext.get());\n }\n opts;\n content;\n root;\n attachment;\n prevScrollTop = $state(0);\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n this.root = content.root;\n this.attachment = attachRef(opts.ref, (v) => {\n this.root.viewportNode = v;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"presentation\",\n [this.root.getBitsAttr(\"viewport\")]: \"\",\n style: {\n // we use position: 'relative' here on the `viewport` so that when we call\n // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport\n // (independent of the scrollUpButton).\n position: \"relative\",\n flex: 1,\n overflow: \"auto\",\n },\n ...this.attachment,\n }));\n}\nexport class SelectScrollButtonImplState {\n opts;\n content;\n root;\n attachment;\n autoScrollTimer = null;\n userScrollTimer = -1;\n isUserScrolling = false;\n onAutoScroll = noop;\n mounted = $state(false);\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n this.root = content.root;\n this.attachment = attachRef(opts.ref);\n watch([() => this.mounted], () => {\n if (!this.mounted) {\n this.isUserScrolling = false;\n return;\n }\n if (this.isUserScrolling)\n return;\n });\n $effect(() => {\n if (this.mounted)\n return;\n this.clearAutoScrollInterval();\n });\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointermove = this.onpointermove.bind(this);\n this.onpointerleave = this.onpointerleave.bind(this);\n }\n handleUserScroll() {\n this.content.domContext.clearTimeout(this.userScrollTimer);\n this.isUserScrolling = true;\n this.userScrollTimer = this.content.domContext.setTimeout(() => {\n this.isUserScrolling = false;\n }, 200);\n }\n clearAutoScrollInterval() {\n if (this.autoScrollTimer === null)\n return;\n this.content.domContext.clearTimeout(this.autoScrollTimer);\n this.autoScrollTimer = null;\n }\n onpointerdown(_) {\n if (this.autoScrollTimer !== null)\n return;\n const autoScroll = (tick) => {\n this.onAutoScroll();\n this.autoScrollTimer = this.content.domContext.setTimeout(() => autoScroll(tick + 1), this.opts.delay.current(tick));\n };\n this.autoScrollTimer = this.content.domContext.setTimeout(() => autoScroll(1), this.opts.delay.current(0));\n }\n onpointermove(e) {\n this.onpointerdown(e);\n }\n onpointerleave(_) {\n this.clearAutoScrollInterval();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"aria-hidden\": boolToStrTrueOrUndef(true),\n style: {\n flexShrink: 0,\n },\n onpointerdown: this.onpointerdown,\n onpointermove: this.onpointermove,\n onpointerleave: this.onpointerleave,\n ...this.attachment,\n }));\n}\nexport class SelectScrollDownButtonState {\n static create(opts) {\n return new SelectScrollDownButtonState(new SelectScrollButtonImplState(opts, SelectContentContext.get()));\n }\n scrollButtonState;\n content;\n root;\n canScrollDown = $state(false);\n scrollIntoViewTimer = null;\n constructor(scrollButtonState) {\n this.scrollButtonState = scrollButtonState;\n this.content = scrollButtonState.content;\n this.root = scrollButtonState.root;\n this.scrollButtonState.onAutoScroll = this.handleAutoScroll;\n watch([() => this.root.viewportNode, () => this.content.isPositioned], () => {\n if (!this.root.viewportNode || !this.content.isPositioned)\n return;\n this.handleScroll(true);\n return on(this.root.viewportNode, \"scroll\", () => this.handleScroll());\n });\n /**\n * If the input value changes, this means that the filtered items may have changed,\n * so we need to re-evaluate the scroll-ability of the list.\n */\n watch([\n () => this.root.opts.inputValue.current,\n () => this.root.viewportNode,\n () => this.content.isPositioned,\n ], () => {\n if (!this.root.viewportNode || !this.content.isPositioned)\n return;\n this.handleScroll(true);\n });\n watch(() => this.scrollButtonState.mounted, () => {\n if (!this.scrollButtonState.mounted)\n return;\n if (this.scrollIntoViewTimer) {\n clearTimeout(this.scrollIntoViewTimer);\n }\n this.scrollIntoViewTimer = afterSleep(5, () => {\n const activeItem = this.root.highlightedNode;\n activeItem?.scrollIntoView({ block: this.root.opts.scrollAlignment.current });\n });\n });\n }\n /**\n * @param manual - if true, it means the function was invoked manually outside of an event\n * listener, so we don't call `handleUserScroll` to prevent the auto scroll from kicking in.\n */\n handleScroll = (manual = false) => {\n if (!manual) {\n this.scrollButtonState.handleUserScroll();\n }\n if (!this.root.viewportNode)\n return;\n const maxScroll = this.root.viewportNode.scrollHeight - this.root.viewportNode.clientHeight;\n const paddingTop = Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop, 10);\n this.canScrollDown = Math.ceil(this.root.viewportNode.scrollTop) < maxScroll - paddingTop;\n };\n handleAutoScroll = () => {\n const viewport = this.root.viewportNode;\n const selectedItem = this.root.highlightedNode;\n if (!viewport || !selectedItem)\n return;\n viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;\n };\n props = $derived.by(() => ({\n ...this.scrollButtonState.props,\n [this.root.getBitsAttr(\"scroll-down-button\")]: \"\",\n }));\n}\nexport class SelectScrollUpButtonState {\n static create(opts) {\n return new SelectScrollUpButtonState(new SelectScrollButtonImplState(opts, SelectContentContext.get()));\n }\n scrollButtonState;\n content;\n root;\n canScrollUp = $state(false);\n constructor(scrollButtonState) {\n this.scrollButtonState = scrollButtonState;\n this.content = scrollButtonState.content;\n this.root = scrollButtonState.root;\n this.scrollButtonState.onAutoScroll = this.handleAutoScroll;\n watch([() => this.root.viewportNode, () => this.content.isPositioned], () => {\n if (!this.root.viewportNode || !this.content.isPositioned)\n return;\n this.handleScroll(true);\n return on(this.root.viewportNode, \"scroll\", () => this.handleScroll());\n });\n }\n /**\n * @param manual - if true, it means the function was invoked manually outside of an event\n * listener, so we don't call `handleUserScroll` to prevent the auto scroll from kicking in.\n */\n handleScroll = (manual = false) => {\n if (!manual) {\n this.scrollButtonState.handleUserScroll();\n }\n if (!this.root.viewportNode)\n return;\n const paddingTop = Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop, 10);\n this.canScrollUp = this.root.viewportNode.scrollTop - paddingTop > 0.1;\n };\n handleAutoScroll = () => {\n if (!this.root.viewportNode || !this.root.highlightedNode)\n return;\n this.root.viewportNode.scrollTop =\n this.root.viewportNode.scrollTop - this.root.highlightedNode.offsetHeight;\n };\n props = $derived.by(() => ({\n ...this.scrollButtonState.props,\n [this.root.getBitsAttr(\"scroll-up-button\")]: \"\",\n }));\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport { SelectHiddenInputState } from \"../select.svelte.js\";\n\timport type { HTMLInputAttributes } from \"svelte/elements\";\n\timport HiddenInput from \"../../utilities/hidden-input.svelte\";\n\n\tlet {\n\t\tvalue = $bindable(),\n\t\tautocomplete,\n\t}: { value?: string } & Omit<HTMLInputAttributes, \"value\"> = $props();\n\n\tconst hiddenInputState = SelectHiddenInputState.create({\n\t\tvalue: boxWith(() => value),\n\t});\n</script>\n\n{#if hiddenInputState.shouldRender}\n\t<HiddenInput {...hiddenInputState.props} bind:value {autocomplete} />\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { SelectContentProps } from \"../types.js\";\n\timport { SelectContentState } from \"../select.svelte.js\";\n\timport PopperLayer from \"../../utilities/popper-layer/popper-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport PopperLayerForceMount from \"../../utilities/popper-layer/popper-layer-force-mount.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tforceMount = false,\n\t\tside = \"bottom\",\n\t\tonInteractOutside = noop,\n\t\tonEscapeKeydown = noop,\n\t\tchildren,\n\t\tchild,\n\t\tpreventScroll = false,\n\t\t...restProps\n\t}: SelectContentProps = $props();\n\n\tconst contentState = SelectContentState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tonInteractOutside: boxWith(() => onInteractOutside),\n\t\tonEscapeKeydown: boxWith(() => onEscapeKeydown),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n</script>\n\n{#if forceMount}\n\t<PopperLayerForceMount\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\t{side}\n\t\tenabled={contentState.root.opts.open.current}\n\t\t{id}\n\t\t{preventScroll}\n\t\tforceMount={true}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, { style: contentState.props.style })}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayerForceMount>\n{:else if !forceMount}\n\t<PopperLayer\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\t{side}\n\t\topen={contentState.root.opts.open.current}\n\t\t{id}\n\t\t{preventScroll}\n\t\tforceMount={false}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, { style: contentState.props.style })}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayer>\n{/if}\n","<script lang=\"ts\">\n\timport { onMountEffect } from \"svelte-toolbelt\";\n\timport { noop } from \"../../internal/noop.js\";\n\n\tlet {\n\t\tmounted = $bindable(false),\n\t\tonMountedChange = noop,\n\t}: { mounted?: boolean; onMountedChange?: (mounted: boolean) => void } = $props();\n\n\tonMountEffect(() => {\n\t\tmounted = true;\n\t\tonMountedChange(true);\n\t\treturn () => {\n\t\t\tmounted = false;\n\t\t\tonMountedChange(false);\n\t\t};\n\t});\n</script>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { SelectItemState } from \"../select.svelte.js\";\n\timport type { SelectItemProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport Mounted from \"../../utilities/mounted.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tvalue,\n\t\tlabel = value,\n\t\tdisabled = false,\n\t\tchildren,\n\t\tchild,\n\t\tonHighlight = noop,\n\t\tonUnhighlight = noop,\n\t\t...restProps\n\t}: SelectItemProps = $props();\n\n\tconst itemState = SelectItemState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tvalue: boxWith(() => value),\n\t\tdisabled: boxWith(() => disabled),\n\t\tlabel: boxWith(() => label),\n\t\tonHighlight: boxWith(() => onHighlight),\n\t\tonUnhighlight: boxWith(() => onUnhighlight),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, itemState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps, ...itemState.snippetProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.(itemState.snippetProps)}\n\t</div>\n{/if}\n\n<Mounted bind:mounted={itemState.mounted} />\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { SelectViewportProps } from \"../types.js\";\n\timport { SelectViewportState } from \"../select.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchildren,\n\t\tchild,\n\t\t...restProps\n\t}: SelectViewportProps = $props();\n\n\tconst viewportState = SelectViewportState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, viewportState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n\n<style>\n\t/* Hide scrollbars cross browser and enable momentum scroll for touch devices */\n\t:global([data-select-viewport]) {\n\t\tscrollbar-width: none !important;\n\t\t-ms-overflow-style: none !important;\n\t\t-webkit-overflow-scrolling: touch !important;\n\t}\n\n\t:global([data-combobox-viewport]) {\n\t\tscrollbar-width: none !important;\n\t\t-ms-overflow-style: none !important;\n\t\t-webkit-overflow-scrolling: touch !important;\n\t}\n\n\t:global([data-combobox-viewport])::-webkit-scrollbar {\n\t\tdisplay: none !important;\n\t}\n\t:global([data-select-viewport])::-webkit-scrollbar {\n\t\tdisplay: none !important;\n\t}\n</style>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { SelectScrollDownButtonProps } from \"../types.js\";\n\timport { SelectScrollDownButtonState } from \"../select.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { Mounted } from \"../../utilities/index.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tdelay = () => 50,\n\t\tchild,\n\t\tchildren,\n\t\t...restProps\n\t}: SelectScrollDownButtonProps = $props();\n\n\tconst scrollButtonState = SelectScrollDownButtonState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdelay: boxWith(() => delay),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, scrollButtonState.props));\n</script>\n\n{#if scrollButtonState.canScrollDown}\n\t<Mounted bind:mounted={scrollButtonState.scrollButtonState.mounted} />\n\t{#if child}\n\t\t{@render child({ props: restProps })}\n\t{:else}\n\t\t<div {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</div>\n\t{/if}\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { SelectScrollUpButtonProps } from \"../types.js\";\n\timport { SelectScrollUpButtonState } from \"../select.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { Mounted } from \"../../utilities/index.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tdelay = () => 50,\n\t\tchild,\n\t\tchildren,\n\t\t...restProps\n\t}: SelectScrollUpButtonProps = $props();\n\n\tconst scrollButtonState = SelectScrollUpButtonState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdelay: boxWith(() => delay),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, scrollButtonState.props));\n</script>\n\n{#if scrollButtonState.canScrollUp}\n\t<Mounted bind:mounted={scrollButtonState.scrollButtonState.mounted} />\n\t{#if child}\n\t\t{@render child({ props: restProps })}\n\t{:else}\n\t\t<div {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</div>\n\t{/if}\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m6 9 6 6 6-6\" }]];\n/**\n * @component @name ChevronDown\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtNiA5IDYgNiA2LTYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/chevron-down\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chevron-down\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m18 15-6-6-6 6\" }]];\n/**\n * @component @name ChevronUp\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTggMTUtNi02LTYgNiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/chevron-up\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chevron-up\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport ChevronUpIcon from \"@lucide/svelte/icons/chevron-up\";\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<SelectPrimitive.ScrollUpButtonProps> = $props();\n</script>\n\n<SelectPrimitive.ScrollUpButton\n\tbind:ref\n\tdata-slot=\"select-scroll-up-button\"\n\tclass={cn(\"flex cursor-default items-center justify-center py-1\", className)}\n\t{...restProps}\n>\n\t<ChevronUpIcon class=\"size-4\" />\n</SelectPrimitive.ScrollUpButton>\n","<script lang=\"ts\">\n\timport ChevronDownIcon from \"@lucide/svelte/icons/chevron-down\";\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<SelectPrimitive.ScrollDownButtonProps> = $props();\n</script>\n\n<SelectPrimitive.ScrollDownButton\n\tbind:ref\n\tdata-slot=\"select-scroll-down-button\"\n\tclass={cn(\"flex cursor-default items-center justify-center py-1\", className)}\n\t{...restProps}\n>\n\t<ChevronDownIcon class=\"size-4\" />\n</SelectPrimitive.ScrollDownButton>\n"],"names":["srOnlyStyles","srOnlyStylesString","styleToString","value","$.prop","$$props","restProps","$.rest_props","mergedProps","$.derived","mergeProps","input","root_1","$.get","input_1","root_2","$.attribute_effect","$$render","consequent","alternate","DataTypeahead","#candidateValues","#opts","opts","boxAutoReset","key","#search","currentItem","currentMatch","item","values","nextMatch","getNextMatch","newItem","INTERACTION_KEYS","kbd.ARROW_LEFT","kbd.ESCAPE","kbd.ARROW_RIGHT","kbd.SHIFT","kbd.CAPS_LOCK","kbd.CONTROL","kbd.ALT","kbd.META","kbd.ENTER","kbd.F1","kbd.F2","kbd.F3","kbd.F4","kbd.F5","kbd.F6","kbd.F7","kbd.F8","kbd.F9","kbd.F10","kbd.F11","kbd.F12","FIRST_KEYS","kbd.ARROW_DOWN","kbd.PAGE_UP","kbd.HOME","LAST_KEYS","kbd.ARROW_UP","kbd.PAGE_DOWN","kbd.END","FIRST_LAST_KEYS","selectAttrs","createBitsAttrs","SelectRootContext","Context","SelectGroupContext","SelectContentContext","SelectBaseRootState","#touchedInput","$.state","#inputNode","#contentNode","#viewportNode","#triggerNode","#valueId","#highlightedNode","DOMContext","PresenceManager","boxWith","$.user_pre_effect","node","initial","nodes","viewportRect","nodeRect","open","part","SelectSingleRootState","#hasValue","$.user_effect","watch","itemValue","itemLabel","newValue","afterTick","SelectMultipleRootState","v","SelectRootState","props","type","rest","rootState","SelectInputState","root","attachRef","clearOnDeselect","prevValue","e","kbd.TAB","kbd.BACKSPACE","candidateNodes","firstCandidate","lastCandidate","isCurrentSelectedValue","currHighlightedNode","currIndex","loop","nextItem","next","prev","forward","backward","boolToStr","getDataOpenClosed","boolToEmptyStrOrUndef","SelectComboTriggerState","kbd.SPACE","SelectTriggerState","#domTypeahead","DOMTypeahead","#dataTypeahead","label","matchedItem","#handleOpen","_","#handleKeyboardSelection","isModifierKey","isCharacterKey","isSpaceKey","target","#handlePointerOpen","SelectContentState","#isPositioned","onDestroyEffect","#styles","getFloatingContentCSSVars","SelectItemState","Previous","#mounted","isIOS","on","SelectGroupState","#labelNode","SelectGroupHeadingState","group","SelectHiddenInputState","boolToTrueOrUndef","SelectViewportState","#prevScrollTop","content","SelectScrollButtonImplState","noop","autoScroll","tick","boolToStrTrueOrUndef","SelectScrollDownButtonState","#canScrollDown","scrollButtonState","afterSleep","manual","maxScroll","paddingTop","viewport","selectedItem","SelectScrollUpButtonState","#canScrollUp","hiddenInputState","HiddenInput","$$anchor","$.spread_props","$$value","uid","$.props_id","id","createId","ref","forceMount","side","onInteractOutside","onEscapeKeydown","preventScroll","contentState","PopperLayerForceMount","$$arg0","wrapperProps","finalProps","div","root_4","div_1","PopperLayer","div_2","root_9","div_3","consequent_3","consequent_1","alternate_2","mounted","onMountedChange","onMountEffect","disabled","onHighlight","onUnhighlight","itemState","$0","$.snippet","node_2","$.noop","Mounted","node_3","viewportState","node_1","delay","root_3","iconNode","Icon","cn","SelectPrimitive_ScrollUpButton","ChevronUpIcon","SelectPrimitive_ScrollDownButton","ChevronDownIcon"],"mappings":"w9BACO,MAAMA,GAAe,CACxB,SAAU,WACV,MAAO,MACP,OAAQ,MACR,QAAS,IACT,OAAQ,OACR,SAAU,SACV,KAAM,mBACN,WAAY,SACZ,YAAa,IACb,UAAW,mBACf,EACaC,GAAqBC,GAAcF,EAAY,wDCb5D,aAIOG,EAAKC,EAAAC,EAAA,QAAA,EAAA,EAAmBC,EAASC,EAAAF,EAAA,CAAA,UAAA,WAAA,WAAA,OAAA,CAAA,QAEjCG,EAAWC,EAAA,IAChBC,EAAWJ,EAAS,CACnB,cAAe,OACf,YACA,MAAOL,sCAMRU,EAAKC,GAAA,IAALD,EAAK,KAAA,CAAA,GAAAE,EAAKL,CAAW,EAAA,MA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AAA,QAAA,CAAA,uCARf,iBCVA,SAME,IAAAO,eAAgB,IAAI,EAEjBvL,EAAAC,EAAAF,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAoN,EAAAhN,EAAA,IAAA4N,GAAG,uDAAsDhO,EAAA,KAAA,CAAA,sBAHhEmO,EAAgBlD,EAAAC,yEAIZjL,OAHJ,KAAK,iBAAL,IAAKkL,EAAA,wBAKJiD,GAAenD,EAAA,CAAA,MAAA,QAAA,CAAA,uCARjB","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12]}
\ No newline at end of file
+{"version":3,"file":"BT31m2vG.js","sources":["../../../../../../node_modules/svelte-toolbelt/dist/utils/sr-only-styles.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/hidden-input.svelte","../../../../../../node_modules/bits-ui/dist/internal/data-typeahead.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/select/select.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-hidden-input.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/mounted.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-item.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-viewport.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-scroll-down-button.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-scroll-up-button.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/chevron-down.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/chevron-up.svelte","../../../../../../src/lib/components/ui/select/select-scroll-up-button.svelte","../../../../../../src/lib/components/ui/select/select-scroll-down-button.svelte"],"sourcesContent":["import { styleToString } from \"./style.js\";\nexport const srOnlyStyles = {\n position: \"absolute\",\n width: \"1px\",\n height: \"1px\",\n padding: \"0\",\n margin: \"-1px\",\n overflow: \"hidden\",\n clip: \"rect(0, 0, 0, 0)\",\n whiteSpace: \"nowrap\",\n borderWidth: \"0\",\n transform: \"translateX(-100%)\"\n};\nexport const srOnlyStylesString = styleToString(srOnlyStyles);\n","<script lang=\"ts\">\n\timport { mergeProps, srOnlyStylesString } from \"svelte-toolbelt\";\n\timport type { HTMLInputAttributes } from \"svelte/elements\";\n\n\tlet { value = $bindable(), ...restProps }: HTMLInputAttributes = $props();\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, {\n\t\t\t\"aria-hidden\": \"true\",\n\t\t\ttabindex: -1,\n\t\t\tstyle: srOnlyStylesString,\n\t\t})\n\t);\n</script>\n\n{#if mergedProps.type === \"checkbox\"}\n\t<input {...mergedProps} {value} />\n{:else}\n\t<input bind:value {...mergedProps} />\n{/if}\n","import { getNextMatch } from \"./arrays.js\";\nimport { boxAutoReset } from \"./box-auto-reset.svelte.js\";\nexport class DataTypeahead {\n #opts;\n #candidateValues = $derived.by(() => this.#opts.candidateValues());\n #search;\n constructor(opts) {\n this.#opts = opts;\n this.#search = boxAutoReset(\"\", {\n afterMs: 1000,\n getWindow: this.#opts.getWindow,\n });\n this.handleTypeaheadSearch = this.handleTypeaheadSearch.bind(this);\n this.resetTypeahead = this.resetTypeahead.bind(this);\n }\n handleTypeaheadSearch(key) {\n if (!this.#opts.enabled() || !this.#candidateValues.length)\n return;\n this.#search.current = this.#search.current + key;\n const currentItem = this.#opts.getCurrentItem();\n const currentMatch = this.#candidateValues.find((item) => item === currentItem) ?? \"\";\n const values = this.#candidateValues.map((item) => item ?? \"\");\n const nextMatch = getNextMatch(values, this.#search.current, currentMatch);\n const newItem = this.#candidateValues.find((item) => item === nextMatch);\n if (newItem) {\n this.#opts.onMatch(newItem);\n }\n return newItem;\n }\n resetTypeahead() {\n this.#search.current = \"\";\n }\n}\n","import { Context, Previous, watch } from \"runed\";\nimport { afterSleep, afterTick, onDestroyEffect, attachRef, DOMContext, boxWith, } from \"svelte-toolbelt\";\nimport { on } from \"svelte/events\";\nimport { backward, forward, next, prev } from \"../../internal/arrays.js\";\nimport { boolToStr, boolToStrTrueOrUndef, boolToEmptyStrOrUndef, getDataOpenClosed, boolToTrueOrUndef, } from \"../../internal/attrs.js\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { noop } from \"../../internal/noop.js\";\nimport { isIOS } from \"../../internal/is.js\";\nimport { createBitsAttrs } from \"../../internal/attrs.js\";\nimport { getFloatingContentCSSVars } from \"../../internal/floating-svelte/floating-utils.svelte.js\";\nimport { DataTypeahead } from \"../../internal/data-typeahead.svelte.js\";\nimport { DOMTypeahead } from \"../../internal/dom-typeahead.svelte.js\";\nimport { PresenceManager } from \"../../internal/presence-manager.svelte.js\";\n// prettier-ignore\nexport const INTERACTION_KEYS = [kbd.ARROW_LEFT, kbd.ESCAPE, kbd.ARROW_RIGHT, kbd.SHIFT, kbd.CAPS_LOCK, kbd.CONTROL, kbd.ALT, kbd.META, kbd.ENTER, kbd.F1, kbd.F2, kbd.F3, kbd.F4, kbd.F5, kbd.F6, kbd.F7, kbd.F8, kbd.F9, kbd.F10, kbd.F11, kbd.F12];\nexport const FIRST_KEYS = [kbd.ARROW_DOWN, kbd.PAGE_UP, kbd.HOME];\nexport const LAST_KEYS = [kbd.ARROW_UP, kbd.PAGE_DOWN, kbd.END];\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nexport const SELECTION_KEYS = [kbd.ENTER, kbd.SPACE];\nexport const CONTENT_MARGIN = 10;\nconst selectAttrs = createBitsAttrs({\n component: \"select\",\n parts: [\n \"trigger\",\n \"content\",\n \"item\",\n \"viewport\",\n \"scroll-up-button\",\n \"scroll-down-button\",\n \"group\",\n \"group-label\",\n \"separator\",\n \"arrow\",\n \"input\",\n \"content-wrapper\",\n \"item-text\",\n \"value\",\n ],\n});\nconst SelectRootContext = new Context(\"Select.Root | Combobox.Root\");\nconst SelectGroupContext = new Context(\"Select.Group | Combobox.Group\");\nconst SelectContentContext = new Context(\"Select.Content | Combobox.Content\");\nclass SelectBaseRootState {\n opts;\n touchedInput = $state(false);\n inputNode = $state(null);\n contentNode = $state(null);\n contentPresence;\n viewportNode = $state(null);\n triggerNode = $state(null);\n valueId = $state(\"\");\n highlightedNode = $state(null);\n highlightedValue = $derived.by(() => {\n if (!this.highlightedNode)\n return null;\n return this.highlightedNode.getAttribute(\"data-value\");\n });\n highlightedId = $derived.by(() => {\n if (!this.highlightedNode)\n return undefined;\n return this.highlightedNode.id;\n });\n highlightedLabel = $derived.by(() => {\n if (!this.highlightedNode)\n return null;\n return this.highlightedNode.getAttribute(\"data-label\");\n });\n isUsingKeyboard = false;\n isCombobox = false;\n domContext = new DOMContext(() => null);\n constructor(opts) {\n this.opts = opts;\n this.isCombobox = opts.isCombobox;\n this.contentPresence = new PresenceManager({\n ref: boxWith(() => this.contentNode),\n open: this.opts.open,\n onComplete: () => {\n this.opts.onOpenChangeComplete.current(this.opts.open.current);\n },\n });\n $effect.pre(() => {\n if (!this.opts.open.current) {\n this.setHighlightedNode(null);\n }\n });\n }\n setHighlightedNode(node, initial = false) {\n this.highlightedNode = node;\n if (node && (this.isUsingKeyboard || initial)) {\n node.scrollIntoView({ block: this.opts.scrollAlignment.current });\n }\n }\n getCandidateNodes() {\n const node = this.contentNode;\n if (!node)\n return [];\n return Array.from(node.querySelectorAll(`[${this.getBitsAttr(\"item\")}]:not([data-disabled])`));\n }\n setHighlightedToFirstCandidate(initial = false) {\n this.setHighlightedNode(null);\n let nodes = this.getCandidateNodes();\n if (!nodes.length)\n return;\n // don't consider nodes that aren't visible within the viewport\n if (this.viewportNode) {\n const viewportRect = this.viewportNode.getBoundingClientRect();\n nodes = nodes.filter((node) => {\n if (!this.viewportNode)\n return false;\n const nodeRect = node.getBoundingClientRect();\n const isNodeFullyVisible = nodeRect.right < viewportRect.right &&\n nodeRect.left > viewportRect.left &&\n nodeRect.bottom < viewportRect.bottom &&\n nodeRect.top > viewportRect.top;\n return isNodeFullyVisible;\n });\n }\n this.setHighlightedNode(nodes[0], initial);\n }\n getNodeByValue(value) {\n const candidateNodes = this.getCandidateNodes();\n return candidateNodes.find((node) => node.dataset.value === value) ?? null;\n }\n setOpen(open) {\n this.opts.open.current = open;\n }\n toggleOpen() {\n this.opts.open.current = !this.opts.open.current;\n }\n handleOpen() {\n this.setOpen(true);\n }\n handleClose() {\n this.setHighlightedNode(null);\n this.setOpen(false);\n }\n toggleMenu() {\n this.toggleOpen();\n }\n getBitsAttr = (part) => {\n return selectAttrs.getAttr(part, this.isCombobox ? \"combobox\" : undefined);\n };\n}\nexport class SelectSingleRootState extends SelectBaseRootState {\n opts;\n isMulti = false;\n hasValue = $derived.by(() => this.opts.value.current !== \"\");\n currentLabel = $derived.by(() => {\n if (!this.opts.items.current.length)\n return \"\";\n return (this.opts.items.current.find((item) => item.value === this.opts.value.current)?.label ??\n \"\");\n });\n candidateLabels = $derived.by(() => {\n if (!this.opts.items.current.length)\n return [];\n const filteredItems = this.opts.items.current.filter((item) => !item.disabled);\n return filteredItems.map((item) => item.label);\n });\n dataTypeaheadEnabled = $derived.by(() => {\n if (this.isMulti)\n return false;\n if (this.opts.items.current.length === 0)\n return false;\n return true;\n });\n constructor(opts) {\n super(opts);\n this.opts = opts;\n $effect(() => {\n if (!this.opts.open.current && this.highlightedNode) {\n this.setHighlightedNode(null);\n }\n });\n watch(() => this.opts.open.current, () => {\n if (!this.opts.open.current)\n return;\n this.setInitialHighlightedNode();\n });\n }\n includesItem(itemValue) {\n return this.opts.value.current === itemValue;\n }\n toggleItem(itemValue, itemLabel = itemValue) {\n const newValue = this.includesItem(itemValue) ? \"\" : itemValue;\n this.opts.value.current = newValue;\n if (newValue !== \"\") {\n this.opts.inputValue.current = itemLabel;\n }\n }\n setInitialHighlightedNode() {\n afterTick(() => {\n if (this.highlightedNode &&\n this.domContext.getDocument().contains(this.highlightedNode))\n return;\n if (this.opts.value.current !== \"\") {\n const node = this.getNodeByValue(this.opts.value.current);\n if (node) {\n this.setHighlightedNode(node, true);\n return;\n }\n }\n // if no value is set, we want to highlight the first item\n this.setHighlightedToFirstCandidate(true);\n });\n }\n}\nclass SelectMultipleRootState extends SelectBaseRootState {\n opts;\n isMulti = true;\n hasValue = $derived.by(() => this.opts.value.current.length > 0);\n constructor(opts) {\n super(opts);\n this.opts = opts;\n $effect(() => {\n if (!this.opts.open.current && this.highlightedNode) {\n this.setHighlightedNode(null);\n }\n });\n watch(() => this.opts.open.current, () => {\n if (!this.opts.open.current)\n return;\n this.setInitialHighlightedNode();\n });\n }\n includesItem(itemValue) {\n return this.opts.value.current.includes(itemValue);\n }\n toggleItem(itemValue, itemLabel = itemValue) {\n if (this.includesItem(itemValue)) {\n this.opts.value.current = this.opts.value.current.filter((v) => v !== itemValue);\n }\n else {\n this.opts.value.current = [...this.opts.value.current, itemValue];\n }\n this.opts.inputValue.current = itemLabel;\n }\n setInitialHighlightedNode() {\n afterTick(() => {\n if (!this.domContext)\n return;\n if (this.highlightedNode &&\n this.domContext.getDocument().contains(this.highlightedNode))\n return;\n if (this.opts.value.current.length && this.opts.value.current[0] !== \"\") {\n const node = this.getNodeByValue(this.opts.value.current[0]);\n if (node) {\n this.setHighlightedNode(node, true);\n return;\n }\n }\n // if no value is set, we want to highlight the first item\n this.setHighlightedToFirstCandidate(true);\n });\n }\n}\nexport class SelectRootState {\n static create(props) {\n const { type, ...rest } = props;\n const rootState = type === \"single\"\n ? new SelectSingleRootState(rest)\n : new SelectMultipleRootState(rest);\n return SelectRootContext.set(rootState);\n }\n}\nexport class SelectInputState {\n static create(opts) {\n return new SelectInputState(opts, SelectRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref, (v) => (this.root.inputNode = v));\n this.root.domContext = new DOMContext(opts.ref);\n this.onkeydown = this.onkeydown.bind(this);\n this.oninput = this.oninput.bind(this);\n watch([() => this.root.opts.value.current, () => this.opts.clearOnDeselect.current], ([value, clearOnDeselect], [prevValue]) => {\n if (!clearOnDeselect)\n return;\n if (Array.isArray(value) && Array.isArray(prevValue)) {\n if (value.length === 0 && prevValue.length !== 0) {\n this.root.opts.inputValue.current = \"\";\n }\n }\n else if (value === \"\" && prevValue !== \"\") {\n this.root.opts.inputValue.current = \"\";\n }\n });\n }\n onkeydown(e) {\n this.root.isUsingKeyboard = true;\n if (e.key === kbd.ESCAPE)\n return;\n // prevent arrow up/down from moving the position of the cursor in the input\n if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN)\n e.preventDefault();\n if (!this.root.opts.open.current) {\n if (INTERACTION_KEYS.includes(e.key))\n return;\n if (e.key === kbd.TAB)\n return;\n if (e.key === kbd.BACKSPACE && this.root.opts.inputValue.current === \"\")\n return;\n this.root.handleOpen();\n // we need to wait for a tick after the menu opens to ensure the highlighted nodes are\n // set correctly.\n if (this.root.hasValue)\n return;\n const candidateNodes = this.root.getCandidateNodes();\n if (!candidateNodes.length)\n return;\n if (e.key === kbd.ARROW_DOWN) {\n const firstCandidate = candidateNodes[0];\n this.root.setHighlightedNode(firstCandidate);\n }\n else if (e.key === kbd.ARROW_UP) {\n const lastCandidate = candidateNodes[candidateNodes.length - 1];\n this.root.setHighlightedNode(lastCandidate);\n }\n return;\n }\n if (e.key === kbd.TAB) {\n this.root.handleClose();\n return;\n }\n if (e.key === kbd.ENTER && !e.isComposing) {\n e.preventDefault();\n const isCurrentSelectedValue = this.root.highlightedValue === this.root.opts.value.current;\n if (!this.root.opts.allowDeselect.current &&\n isCurrentSelectedValue &&\n !this.root.isMulti) {\n this.root.handleClose();\n return;\n }\n if (this.root.highlightedValue &&\n this.root.highlightedNode &&\n this.root.highlightedNode.isConnected) {\n this.root.toggleItem(this.root.highlightedValue, this.root.highlightedLabel ?? undefined);\n }\n if (!this.root.isMulti && !isCurrentSelectedValue) {\n this.root.handleClose();\n }\n }\n if (e.key === kbd.ARROW_UP && e.altKey) {\n this.root.handleClose();\n }\n if (FIRST_LAST_KEYS.includes(e.key)) {\n e.preventDefault();\n const candidateNodes = this.root.getCandidateNodes();\n const currHighlightedNode = this.root.highlightedNode;\n const currIndex = currHighlightedNode\n ? candidateNodes.indexOf(currHighlightedNode)\n : -1;\n const loop = this.root.opts.loop.current;\n let nextItem;\n if (e.key === kbd.ARROW_DOWN) {\n nextItem = next(candidateNodes, currIndex, loop);\n }\n else if (e.key === kbd.ARROW_UP) {\n nextItem = prev(candidateNodes, currIndex, loop);\n }\n else if (e.key === kbd.PAGE_DOWN) {\n nextItem = forward(candidateNodes, currIndex, 10, loop);\n }\n else if (e.key === kbd.PAGE_UP) {\n nextItem = backward(candidateNodes, currIndex, 10, loop);\n }\n else if (e.key === kbd.HOME) {\n nextItem = candidateNodes[0];\n }\n else if (e.key === kbd.END) {\n nextItem = candidateNodes[candidateNodes.length - 1];\n }\n if (!nextItem)\n return;\n this.root.setHighlightedNode(nextItem);\n return;\n }\n if (INTERACTION_KEYS.includes(e.key))\n return;\n if (!this.root.highlightedNode) {\n this.root.setHighlightedToFirstCandidate();\n }\n }\n oninput(e) {\n this.root.opts.inputValue.current = e.currentTarget.value;\n this.root.setHighlightedToFirstCandidate();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"combobox\",\n disabled: this.root.opts.disabled.current ? true : undefined,\n \"aria-activedescendant\": this.root.highlightedId,\n \"aria-autocomplete\": \"list\",\n \"aria-expanded\": boolToStr(this.root.opts.open.current),\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n onkeydown: this.onkeydown,\n oninput: this.oninput,\n [this.root.getBitsAttr(\"input\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class SelectComboTriggerState {\n static create(opts) {\n return new SelectComboTriggerState(opts, SelectRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n this.onkeydown = this.onkeydown.bind(this);\n this.onpointerdown = this.onpointerdown.bind(this);\n }\n onkeydown(e) {\n if (!this.root.domContext)\n return;\n if (e.key === kbd.ENTER || e.key === kbd.SPACE) {\n e.preventDefault();\n if (this.root.domContext.getActiveElement() !== this.root.inputNode) {\n this.root.inputNode?.focus();\n }\n this.root.toggleMenu();\n }\n }\n /**\n * `pointerdown` fires before the `focus` event, so we can prevent the default\n * behavior of focusing the button and keep focus on the input.\n */\n onpointerdown(e) {\n if (this.root.opts.disabled.current || !this.root.domContext)\n return;\n e.preventDefault();\n if (this.root.domContext.getActiveElement() !== this.root.inputNode) {\n this.root.inputNode?.focus();\n }\n this.root.toggleMenu();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n disabled: this.root.opts.disabled.current ? true : undefined,\n \"aria-haspopup\": \"listbox\",\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n [this.root.getBitsAttr(\"trigger\")]: \"\",\n onpointerdown: this.onpointerdown,\n onkeydown: this.onkeydown,\n ...this.attachment,\n }));\n}\nexport class SelectTriggerState {\n static create(opts) {\n return new SelectTriggerState(opts, SelectRootContext.get());\n }\n opts;\n root;\n attachment;\n #domTypeahead;\n #dataTypeahead;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref, (v) => (this.root.triggerNode = v));\n this.root.domContext = new DOMContext(opts.ref);\n this.#domTypeahead = new DOMTypeahead({\n getCurrentItem: () => this.root.highlightedNode,\n onMatch: (node) => {\n this.root.setHighlightedNode(node);\n },\n getActiveElement: () => this.root.domContext.getActiveElement(),\n getWindow: () => this.root.domContext.getWindow(),\n });\n this.#dataTypeahead = new DataTypeahead({\n getCurrentItem: () => {\n if (this.root.isMulti)\n return \"\";\n return this.root.currentLabel;\n },\n onMatch: (label) => {\n if (this.root.isMulti)\n return;\n if (!this.root.opts.items.current)\n return;\n const matchedItem = this.root.opts.items.current.find((item) => item.label === label);\n if (!matchedItem)\n return;\n this.root.opts.value.current = matchedItem.value;\n },\n enabled: () => !this.root.isMulti && this.root.dataTypeaheadEnabled,\n candidateValues: () => (this.root.isMulti ? [] : this.root.candidateLabels),\n getWindow: () => this.root.domContext.getWindow(),\n });\n this.onkeydown = this.onkeydown.bind(this);\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n this.onclick = this.onclick.bind(this);\n }\n #handleOpen() {\n this.root.opts.open.current = true;\n this.#dataTypeahead.resetTypeahead();\n this.#domTypeahead.resetTypeahead();\n }\n #handlePointerOpen(_) {\n this.#handleOpen();\n }\n /**\n * Logic used to handle keyboard selection/deselection.\n *\n * If it returns true, it means the item was selected and whatever is calling\n * this function should return early\n *\n */\n #handleKeyboardSelection() {\n const isCurrentSelectedValue = this.root.highlightedValue === this.root.opts.value.current;\n if (!this.root.opts.allowDeselect.current && isCurrentSelectedValue && !this.root.isMulti) {\n this.root.handleClose();\n return true;\n }\n // \"\" is a valid value for a select item so we need to check for that\n if (this.root.highlightedValue !== null) {\n this.root.toggleItem(this.root.highlightedValue, this.root.highlightedLabel ?? undefined);\n }\n if (!this.root.isMulti && !isCurrentSelectedValue) {\n this.root.handleClose();\n return true;\n }\n return false;\n }\n onkeydown(e) {\n this.root.isUsingKeyboard = true;\n if (e.key === kbd.ARROW_UP || e.key === kbd.ARROW_DOWN)\n e.preventDefault();\n if (!this.root.opts.open.current) {\n if (e.key === kbd.ENTER ||\n e.key === kbd.SPACE ||\n e.key === kbd.ARROW_DOWN ||\n e.key === kbd.ARROW_UP) {\n e.preventDefault();\n this.root.handleOpen();\n }\n else if (!this.root.isMulti && this.root.dataTypeaheadEnabled) {\n this.#dataTypeahead.handleTypeaheadSearch(e.key);\n return;\n }\n // we need to wait for a tick after the menu opens to ensure\n // the highlighted nodes are set correctly\n if (this.root.hasValue)\n return;\n const candidateNodes = this.root.getCandidateNodes();\n if (!candidateNodes.length)\n return;\n if (e.key === kbd.ARROW_DOWN) {\n const firstCandidate = candidateNodes[0];\n this.root.setHighlightedNode(firstCandidate);\n }\n else if (e.key === kbd.ARROW_UP) {\n const lastCandidate = candidateNodes[candidateNodes.length - 1];\n this.root.setHighlightedNode(lastCandidate);\n }\n return;\n }\n if (e.key === kbd.TAB) {\n this.root.handleClose();\n return;\n }\n if ((e.key === kbd.ENTER ||\n // if we're currently \"typing ahead\", we don't want to select the item\n // just yet as the item the user is trying to get to may have a space in it,\n // so we defer handling the close for this case until further down\n (e.key === kbd.SPACE && this.#domTypeahead.search === \"\")) &&\n !e.isComposing) {\n e.preventDefault();\n const shouldReturn = this.#handleKeyboardSelection();\n if (shouldReturn)\n return;\n }\n if (e.key === kbd.ARROW_UP && e.altKey) {\n this.root.handleClose();\n }\n if (FIRST_LAST_KEYS.includes(e.key)) {\n e.preventDefault();\n const candidateNodes = this.root.getCandidateNodes();\n const currHighlightedNode = this.root.highlightedNode;\n const currIndex = currHighlightedNode\n ? candidateNodes.indexOf(currHighlightedNode)\n : -1;\n const loop = this.root.opts.loop.current;\n let nextItem;\n if (e.key === kbd.ARROW_DOWN) {\n nextItem = next(candidateNodes, currIndex, loop);\n }\n else if (e.key === kbd.ARROW_UP) {\n nextItem = prev(candidateNodes, currIndex, loop);\n }\n else if (e.key === kbd.PAGE_DOWN) {\n nextItem = forward(candidateNodes, currIndex, 10, loop);\n }\n else if (e.key === kbd.PAGE_UP) {\n nextItem = backward(candidateNodes, currIndex, 10, loop);\n }\n else if (e.key === kbd.HOME) {\n nextItem = candidateNodes[0];\n }\n else if (e.key === kbd.END) {\n nextItem = candidateNodes[candidateNodes.length - 1];\n }\n if (!nextItem)\n return;\n this.root.setHighlightedNode(nextItem);\n return;\n }\n const isModifierKey = e.ctrlKey || e.altKey || e.metaKey;\n const isCharacterKey = e.key.length === 1;\n const isSpaceKey = e.key === kbd.SPACE;\n const candidateNodes = this.root.getCandidateNodes();\n if (e.key === kbd.TAB)\n return;\n if (!isModifierKey && (isCharacterKey || isSpaceKey)) {\n const matchedNode = this.#domTypeahead.handleTypeaheadSearch(e.key, candidateNodes);\n if (!matchedNode && isSpaceKey) {\n e.preventDefault();\n this.#handleKeyboardSelection();\n }\n return;\n }\n if (!this.root.highlightedNode) {\n this.root.setHighlightedToFirstCandidate();\n }\n }\n onclick(e) {\n // While browsers generally have no issue focusing the trigger when clicking\n // on a label, Safari seems to struggle with the fact that there's no `onClick`.\n // We force `focus` in this case. Note: this doesn't create any other side-effect\n // because we are preventing default in `onpointerdown` so effectively\n // this only runs for a label 'click'\n const currTarget = e.currentTarget;\n currTarget.focus();\n }\n onpointerdown(e) {\n if (this.root.opts.disabled.current)\n return;\n // prevent opening on touch down which can be triggered when scrolling on touch devices\n if (e.pointerType === \"touch\")\n return e.preventDefault();\n // prevent implicit pointer capture\n const target = e.target;\n if (target?.hasPointerCapture(e.pointerId)) {\n target?.releasePointerCapture(e.pointerId);\n }\n // only call the handle if it's a left click, since pointerdown is triggered\n // by right clicks as well, but not when ctrl is pressed\n if (e.button === 0 && e.ctrlKey === false) {\n if (this.root.opts.open.current === false) {\n this.#handlePointerOpen(e);\n }\n else {\n this.root.handleClose();\n }\n }\n }\n onpointerup(e) {\n if (this.root.opts.disabled.current)\n return;\n e.preventDefault();\n if (e.pointerType === \"touch\") {\n if (this.root.opts.open.current === false) {\n this.#handlePointerOpen(e);\n }\n else {\n this.root.handleClose();\n }\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n disabled: this.root.opts.disabled.current ? true : undefined,\n \"aria-haspopup\": \"listbox\",\n \"aria-expanded\": boolToStr(this.root.opts.open.current),\n \"aria-activedescendant\": this.root.highlightedId,\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-placeholder\": this.root.hasValue ? undefined : \"\",\n [this.root.getBitsAttr(\"trigger\")]: \"\",\n onpointerdown: this.onpointerdown,\n onkeydown: this.onkeydown,\n onclick: this.onclick,\n onpointerup: this.onpointerup,\n ...this.attachment,\n }));\n}\nexport class SelectContentState {\n static create(opts) {\n return SelectContentContext.set(new SelectContentState(opts, SelectRootContext.get()));\n }\n opts;\n root;\n attachment;\n isPositioned = $state(false);\n domContext;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref, (v) => (this.root.contentNode = v));\n this.domContext = new DOMContext(this.opts.ref);\n if (this.root.domContext === null) {\n this.root.domContext = this.domContext;\n }\n onDestroyEffect(() => {\n this.root.contentNode = null;\n this.isPositioned = false;\n });\n watch(() => this.root.opts.open.current, () => {\n if (this.root.opts.open.current)\n return;\n this.isPositioned = false;\n });\n this.onpointermove = this.onpointermove.bind(this);\n }\n onpointermove(_) {\n this.root.isUsingKeyboard = false;\n }\n #styles = $derived.by(() => {\n return getFloatingContentCSSVars(this.root.isCombobox ? \"combobox\" : \"select\");\n });\n onInteractOutside = (e) => {\n if (e.target === this.root.triggerNode || e.target === this.root.inputNode) {\n e.preventDefault();\n return;\n }\n this.opts.onInteractOutside.current(e);\n if (e.defaultPrevented)\n return;\n this.root.handleClose();\n };\n onEscapeKeydown = (e) => {\n this.opts.onEscapeKeydown.current(e);\n if (e.defaultPrevented)\n return;\n this.root.handleClose();\n };\n onOpenAutoFocus = (e) => {\n e.preventDefault();\n };\n onCloseAutoFocus = (e) => {\n e.preventDefault();\n };\n get shouldRender() {\n return this.root.contentPresence.shouldRender;\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"listbox\",\n \"aria-multiselectable\": this.root.isMulti ? \"true\" : undefined,\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n [this.root.getBitsAttr(\"content\")]: \"\",\n style: {\n display: \"flex\",\n flexDirection: \"column\",\n outline: \"none\",\n boxSizing: \"border-box\",\n pointerEvents: \"auto\",\n ...this.#styles,\n },\n onpointermove: this.onpointermove,\n ...this.attachment,\n }));\n popperProps = {\n onInteractOutside: this.onInteractOutside,\n onEscapeKeydown: this.onEscapeKeydown,\n onOpenAutoFocus: this.onOpenAutoFocus,\n onCloseAutoFocus: this.onCloseAutoFocus,\n trapFocus: false,\n loop: false,\n onPlaced: () => {\n // onPlaced is also called when the menu is closed, so we need to check if the menu\n // is actually open to avoid setting positioning to true when the menu is closed\n if (this.root.opts.open.current) {\n this.isPositioned = true;\n }\n },\n };\n}\nexport class SelectItemState {\n static create(opts) {\n return new SelectItemState(opts, SelectRootContext.get());\n }\n opts;\n root;\n attachment;\n isSelected = $derived.by(() => this.root.includesItem(this.opts.value.current));\n isHighlighted = $derived.by(() => this.root.highlightedValue === this.opts.value.current);\n prevHighlighted = new Previous(() => this.isHighlighted);\n mounted = $state(false);\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n watch([() => this.isHighlighted, () => this.prevHighlighted.current], () => {\n if (this.isHighlighted) {\n this.opts.onHighlight.current();\n }\n else if (this.prevHighlighted.current) {\n this.opts.onUnhighlight.current();\n }\n });\n watch(() => this.mounted, () => {\n if (!this.mounted)\n return;\n this.root.setInitialHighlightedNode();\n });\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n this.onpointermove = this.onpointermove.bind(this);\n }\n handleSelect() {\n if (this.opts.disabled.current)\n return;\n const isCurrentSelectedValue = this.opts.value.current === this.root.opts.value.current;\n // if allowDeselect is false and the item is already selected and we're not in a\n // multi select, do nothing and close the menu\n if (!this.root.opts.allowDeselect.current && isCurrentSelectedValue && !this.root.isMulti) {\n this.root.handleClose();\n return;\n }\n // otherwise, toggle the item and if we're not in a multi select, close the menu\n this.root.toggleItem(this.opts.value.current, this.opts.label.current);\n if (!this.root.isMulti && !isCurrentSelectedValue) {\n this.root.handleClose();\n }\n }\n snippetProps = $derived.by(() => ({\n selected: this.isSelected,\n highlighted: this.isHighlighted,\n }));\n onpointerdown(e) {\n // prevent focus from leaving the input/select trigger\n e.preventDefault();\n }\n /**\n * Using `pointerup` instead of `click` allows power users to pointerdown\n * the trigger, then release pointerup on an item to select it vs having to do\n * multiple clicks.\n */\n onpointerup(e) {\n if (e.defaultPrevented || !this.opts.ref.current)\n return;\n /**\n * For one reason or another, when it's a touch pointer and _not_ on IOS,\n * we need to listen for the immediate click event to handle the selection,\n * otherwise a click event will fire on the element _behind_ the item.\n */\n if (e.pointerType === \"touch\" && !isIOS) {\n on(this.opts.ref.current, \"click\", () => {\n this.handleSelect();\n // set highlighted node since we don't do it on `pointermove` events\n // for touch devices\n this.root.setHighlightedNode(this.opts.ref.current);\n }, { once: true });\n return;\n }\n e.preventDefault();\n this.handleSelect();\n if (e.pointerType === \"touch\") {\n // set highlighted node since we don't do it on `pointermove` events\n // for touch devices\n this.root.setHighlightedNode(this.opts.ref.current);\n }\n }\n onpointermove(e) {\n /**\n * We don't want to highlight items on touch devices when scrolling,\n * as this is confusing behavior, so we return here and instead handle\n * the highlighting on the `pointerup` (or following `click`) event for\n * touch devices only.\n */\n if (e.pointerType === \"touch\")\n return;\n if (this.root.highlightedNode !== this.opts.ref.current) {\n this.root.setHighlightedNode(this.opts.ref.current);\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"option\",\n \"aria-selected\": this.root.includesItem(this.opts.value.current)\n ? \"true\"\n : undefined,\n \"data-value\": this.opts.value.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.opts.disabled.current),\n \"data-highlighted\": this.root.highlightedValue === this.opts.value.current &&\n !this.opts.disabled.current\n ? \"\"\n : undefined,\n \"data-selected\": this.root.includesItem(this.opts.value.current) ? \"\" : undefined,\n \"data-label\": this.opts.label.current,\n [this.root.getBitsAttr(\"item\")]: \"\",\n onpointermove: this.onpointermove,\n onpointerdown: this.onpointerdown,\n onpointerup: this.onpointerup,\n ...this.attachment,\n }));\n}\nexport class SelectGroupState {\n static create(opts) {\n return SelectGroupContext.set(new SelectGroupState(opts, SelectRootContext.get()));\n }\n opts;\n root;\n labelNode = $state(null);\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"group\",\n [this.root.getBitsAttr(\"group\")]: \"\",\n \"aria-labelledby\": this.labelNode?.id ?? undefined,\n ...this.attachment,\n }));\n}\nexport class SelectGroupHeadingState {\n static create(opts) {\n return new SelectGroupHeadingState(opts, SelectGroupContext.get());\n }\n opts;\n group;\n attachment;\n constructor(opts, group) {\n this.opts = opts;\n this.group = group;\n this.attachment = attachRef(opts.ref, (v) => (this.group.labelNode = v));\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.group.root.getBitsAttr(\"group-label\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class SelectHiddenInputState {\n static create(opts) {\n return new SelectHiddenInputState(opts, SelectRootContext.get());\n }\n opts;\n root;\n shouldRender = $derived.by(() => this.root.opts.name.current !== \"\");\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.onfocus = this.onfocus.bind(this);\n }\n onfocus(e) {\n e.preventDefault();\n if (!this.root.isCombobox) {\n this.root.triggerNode?.focus();\n }\n else {\n this.root.inputNode?.focus();\n }\n }\n props = $derived.by(() => ({\n disabled: boolToTrueOrUndef(this.root.opts.disabled.current),\n required: boolToTrueOrUndef(this.root.opts.required.current),\n name: this.root.opts.name.current,\n value: this.opts.value.current,\n onfocus: this.onfocus,\n }));\n}\nexport class SelectViewportState {\n static create(opts) {\n return new SelectViewportState(opts, SelectContentContext.get());\n }\n opts;\n content;\n root;\n attachment;\n prevScrollTop = $state(0);\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n this.root = content.root;\n this.attachment = attachRef(opts.ref, (v) => {\n this.root.viewportNode = v;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"presentation\",\n [this.root.getBitsAttr(\"viewport\")]: \"\",\n style: {\n // we use position: 'relative' here on the `viewport` so that when we call\n // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport\n // (independent of the scrollUpButton).\n position: \"relative\",\n flex: 1,\n overflow: \"auto\",\n },\n ...this.attachment,\n }));\n}\nexport class SelectScrollButtonImplState {\n opts;\n content;\n root;\n attachment;\n autoScrollTimer = null;\n userScrollTimer = -1;\n isUserScrolling = false;\n onAutoScroll = noop;\n mounted = $state(false);\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n this.root = content.root;\n this.attachment = attachRef(opts.ref);\n watch([() => this.mounted], () => {\n if (!this.mounted) {\n this.isUserScrolling = false;\n return;\n }\n if (this.isUserScrolling)\n return;\n });\n $effect(() => {\n if (this.mounted)\n return;\n this.clearAutoScrollInterval();\n });\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointermove = this.onpointermove.bind(this);\n this.onpointerleave = this.onpointerleave.bind(this);\n }\n handleUserScroll() {\n this.content.domContext.clearTimeout(this.userScrollTimer);\n this.isUserScrolling = true;\n this.userScrollTimer = this.content.domContext.setTimeout(() => {\n this.isUserScrolling = false;\n }, 200);\n }\n clearAutoScrollInterval() {\n if (this.autoScrollTimer === null)\n return;\n this.content.domContext.clearTimeout(this.autoScrollTimer);\n this.autoScrollTimer = null;\n }\n onpointerdown(_) {\n if (this.autoScrollTimer !== null)\n return;\n const autoScroll = (tick) => {\n this.onAutoScroll();\n this.autoScrollTimer = this.content.domContext.setTimeout(() => autoScroll(tick + 1), this.opts.delay.current(tick));\n };\n this.autoScrollTimer = this.content.domContext.setTimeout(() => autoScroll(1), this.opts.delay.current(0));\n }\n onpointermove(e) {\n this.onpointerdown(e);\n }\n onpointerleave(_) {\n this.clearAutoScrollInterval();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"aria-hidden\": boolToStrTrueOrUndef(true),\n style: {\n flexShrink: 0,\n },\n onpointerdown: this.onpointerdown,\n onpointermove: this.onpointermove,\n onpointerleave: this.onpointerleave,\n ...this.attachment,\n }));\n}\nexport class SelectScrollDownButtonState {\n static create(opts) {\n return new SelectScrollDownButtonState(new SelectScrollButtonImplState(opts, SelectContentContext.get()));\n }\n scrollButtonState;\n content;\n root;\n canScrollDown = $state(false);\n scrollIntoViewTimer = null;\n constructor(scrollButtonState) {\n this.scrollButtonState = scrollButtonState;\n this.content = scrollButtonState.content;\n this.root = scrollButtonState.root;\n this.scrollButtonState.onAutoScroll = this.handleAutoScroll;\n watch([() => this.root.viewportNode, () => this.content.isPositioned], () => {\n if (!this.root.viewportNode || !this.content.isPositioned)\n return;\n this.handleScroll(true);\n return on(this.root.viewportNode, \"scroll\", () => this.handleScroll());\n });\n /**\n * If the input value changes, this means that the filtered items may have changed,\n * so we need to re-evaluate the scroll-ability of the list.\n */\n watch([\n () => this.root.opts.inputValue.current,\n () => this.root.viewportNode,\n () => this.content.isPositioned,\n ], () => {\n if (!this.root.viewportNode || !this.content.isPositioned)\n return;\n this.handleScroll(true);\n });\n watch(() => this.scrollButtonState.mounted, () => {\n if (!this.scrollButtonState.mounted)\n return;\n if (this.scrollIntoViewTimer) {\n clearTimeout(this.scrollIntoViewTimer);\n }\n this.scrollIntoViewTimer = afterSleep(5, () => {\n const activeItem = this.root.highlightedNode;\n activeItem?.scrollIntoView({ block: this.root.opts.scrollAlignment.current });\n });\n });\n }\n /**\n * @param manual - if true, it means the function was invoked manually outside of an event\n * listener, so we don't call `handleUserScroll` to prevent the auto scroll from kicking in.\n */\n handleScroll = (manual = false) => {\n if (!manual) {\n this.scrollButtonState.handleUserScroll();\n }\n if (!this.root.viewportNode)\n return;\n const maxScroll = this.root.viewportNode.scrollHeight - this.root.viewportNode.clientHeight;\n const paddingTop = Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop, 10);\n this.canScrollDown = Math.ceil(this.root.viewportNode.scrollTop) < maxScroll - paddingTop;\n };\n handleAutoScroll = () => {\n const viewport = this.root.viewportNode;\n const selectedItem = this.root.highlightedNode;\n if (!viewport || !selectedItem)\n return;\n viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;\n };\n props = $derived.by(() => ({\n ...this.scrollButtonState.props,\n [this.root.getBitsAttr(\"scroll-down-button\")]: \"\",\n }));\n}\nexport class SelectScrollUpButtonState {\n static create(opts) {\n return new SelectScrollUpButtonState(new SelectScrollButtonImplState(opts, SelectContentContext.get()));\n }\n scrollButtonState;\n content;\n root;\n canScrollUp = $state(false);\n constructor(scrollButtonState) {\n this.scrollButtonState = scrollButtonState;\n this.content = scrollButtonState.content;\n this.root = scrollButtonState.root;\n this.scrollButtonState.onAutoScroll = this.handleAutoScroll;\n watch([() => this.root.viewportNode, () => this.content.isPositioned], () => {\n if (!this.root.viewportNode || !this.content.isPositioned)\n return;\n this.handleScroll(true);\n return on(this.root.viewportNode, \"scroll\", () => this.handleScroll());\n });\n }\n /**\n * @param manual - if true, it means the function was invoked manually outside of an event\n * listener, so we don't call `handleUserScroll` to prevent the auto scroll from kicking in.\n */\n handleScroll = (manual = false) => {\n if (!manual) {\n this.scrollButtonState.handleUserScroll();\n }\n if (!this.root.viewportNode)\n return;\n const paddingTop = Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop, 10);\n this.canScrollUp = this.root.viewportNode.scrollTop - paddingTop > 0.1;\n };\n handleAutoScroll = () => {\n if (!this.root.viewportNode || !this.root.highlightedNode)\n return;\n this.root.viewportNode.scrollTop =\n this.root.viewportNode.scrollTop - this.root.highlightedNode.offsetHeight;\n };\n props = $derived.by(() => ({\n ...this.scrollButtonState.props,\n [this.root.getBitsAttr(\"scroll-up-button\")]: \"\",\n }));\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport { SelectHiddenInputState } from \"../select.svelte.js\";\n\timport type { HTMLInputAttributes } from \"svelte/elements\";\n\timport HiddenInput from \"../../utilities/hidden-input.svelte\";\n\n\tlet {\n\t\tvalue = $bindable(),\n\t\tautocomplete,\n\t}: { value?: string } & Omit<HTMLInputAttributes, \"value\"> = $props();\n\n\tconst hiddenInputState = SelectHiddenInputState.create({\n\t\tvalue: boxWith(() => value),\n\t});\n</script>\n\n{#if hiddenInputState.shouldRender}\n\t<HiddenInput {...hiddenInputState.props} bind:value {autocomplete} />\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { SelectContentProps } from \"../types.js\";\n\timport { SelectContentState } from \"../select.svelte.js\";\n\timport PopperLayer from \"../../utilities/popper-layer/popper-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport PopperLayerForceMount from \"../../utilities/popper-layer/popper-layer-force-mount.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tforceMount = false,\n\t\tside = \"bottom\",\n\t\tonInteractOutside = noop,\n\t\tonEscapeKeydown = noop,\n\t\tchildren,\n\t\tchild,\n\t\tpreventScroll = false,\n\t\t...restProps\n\t}: SelectContentProps = $props();\n\n\tconst contentState = SelectContentState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tonInteractOutside: boxWith(() => onInteractOutside),\n\t\tonEscapeKeydown: boxWith(() => onEscapeKeydown),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n</script>\n\n{#if forceMount}\n\t<PopperLayerForceMount\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\t{side}\n\t\tenabled={contentState.root.opts.open.current}\n\t\t{id}\n\t\t{preventScroll}\n\t\tforceMount={true}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, { style: contentState.props.style })}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayerForceMount>\n{:else if !forceMount}\n\t<PopperLayer\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\t{side}\n\t\topen={contentState.root.opts.open.current}\n\t\t{id}\n\t\t{preventScroll}\n\t\tforceMount={false}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, { style: contentState.props.style })}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayer>\n{/if}\n","<script lang=\"ts\">\n\timport { onMountEffect } from \"svelte-toolbelt\";\n\timport { noop } from \"../../internal/noop.js\";\n\n\tlet {\n\t\tmounted = $bindable(false),\n\t\tonMountedChange = noop,\n\t}: { mounted?: boolean; onMountedChange?: (mounted: boolean) => void } = $props();\n\n\tonMountEffect(() => {\n\t\tmounted = true;\n\t\tonMountedChange(true);\n\t\treturn () => {\n\t\t\tmounted = false;\n\t\t\tonMountedChange(false);\n\t\t};\n\t});\n</script>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { SelectItemState } from \"../select.svelte.js\";\n\timport type { SelectItemProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport Mounted from \"../../utilities/mounted.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tvalue,\n\t\tlabel = value,\n\t\tdisabled = false,\n\t\tchildren,\n\t\tchild,\n\t\tonHighlight = noop,\n\t\tonUnhighlight = noop,\n\t\t...restProps\n\t}: SelectItemProps = $props();\n\n\tconst itemState = SelectItemState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tvalue: boxWith(() => value),\n\t\tdisabled: boxWith(() => disabled),\n\t\tlabel: boxWith(() => label),\n\t\tonHighlight: boxWith(() => onHighlight),\n\t\tonUnhighlight: boxWith(() => onUnhighlight),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, itemState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps, ...itemState.snippetProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.(itemState.snippetProps)}\n\t</div>\n{/if}\n\n<Mounted bind:mounted={itemState.mounted} />\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { SelectViewportProps } from \"../types.js\";\n\timport { SelectViewportState } from \"../select.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchildren,\n\t\tchild,\n\t\t...restProps\n\t}: SelectViewportProps = $props();\n\n\tconst viewportState = SelectViewportState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, viewportState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n\n<style>\n\t/* Hide scrollbars cross browser and enable momentum scroll for touch devices */\n\t:global([data-select-viewport]) {\n\t\tscrollbar-width: none !important;\n\t\t-ms-overflow-style: none !important;\n\t\t-webkit-overflow-scrolling: touch !important;\n\t}\n\n\t:global([data-combobox-viewport]) {\n\t\tscrollbar-width: none !important;\n\t\t-ms-overflow-style: none !important;\n\t\t-webkit-overflow-scrolling: touch !important;\n\t}\n\n\t:global([data-combobox-viewport])::-webkit-scrollbar {\n\t\tdisplay: none !important;\n\t}\n\t:global([data-select-viewport])::-webkit-scrollbar {\n\t\tdisplay: none !important;\n\t}\n</style>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { SelectScrollDownButtonProps } from \"../types.js\";\n\timport { SelectScrollDownButtonState } from \"../select.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { Mounted } from \"../../utilities/index.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tdelay = () => 50,\n\t\tchild,\n\t\tchildren,\n\t\t...restProps\n\t}: SelectScrollDownButtonProps = $props();\n\n\tconst scrollButtonState = SelectScrollDownButtonState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdelay: boxWith(() => delay),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, scrollButtonState.props));\n</script>\n\n{#if scrollButtonState.canScrollDown}\n\t<Mounted bind:mounted={scrollButtonState.scrollButtonState.mounted} />\n\t{#if child}\n\t\t{@render child({ props: restProps })}\n\t{:else}\n\t\t<div {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</div>\n\t{/if}\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { SelectScrollUpButtonProps } from \"../types.js\";\n\timport { SelectScrollUpButtonState } from \"../select.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { Mounted } from \"../../utilities/index.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tdelay = () => 50,\n\t\tchild,\n\t\tchildren,\n\t\t...restProps\n\t}: SelectScrollUpButtonProps = $props();\n\n\tconst scrollButtonState = SelectScrollUpButtonState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdelay: boxWith(() => delay),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, scrollButtonState.props));\n</script>\n\n{#if scrollButtonState.canScrollUp}\n\t<Mounted bind:mounted={scrollButtonState.scrollButtonState.mounted} />\n\t{#if child}\n\t\t{@render child({ props: restProps })}\n\t{:else}\n\t\t<div {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</div>\n\t{/if}\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m6 9 6 6 6-6\" }]];\n/**\n * @component @name ChevronDown\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtNiA5IDYgNiA2LTYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/chevron-down\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chevron-down\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m18 15-6-6-6 6\" }]];\n/**\n * @component @name ChevronUp\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTggMTUtNi02LTYgNiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/chevron-up\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chevron-up\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport ChevronUpIcon from \"@lucide/svelte/icons/chevron-up\";\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<SelectPrimitive.ScrollUpButtonProps> = $props();\n</script>\n\n<SelectPrimitive.ScrollUpButton\n\tbind:ref\n\tdata-slot=\"select-scroll-up-button\"\n\tclass={cn(\"flex cursor-default items-center justify-center py-1\", className)}\n\t{...restProps}\n>\n\t<ChevronUpIcon class=\"size-4\" />\n</SelectPrimitive.ScrollUpButton>\n","<script lang=\"ts\">\n\timport ChevronDownIcon from \"@lucide/svelte/icons/chevron-down\";\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<SelectPrimitive.ScrollDownButtonProps> = $props();\n</script>\n\n<SelectPrimitive.ScrollDownButton\n\tbind:ref\n\tdata-slot=\"select-scroll-down-button\"\n\tclass={cn(\"flex cursor-default items-center justify-center py-1\", className)}\n\t{...restProps}\n>\n\t<ChevronDownIcon class=\"size-4\" />\n</SelectPrimitive.ScrollDownButton>\n"],"names":["srOnlyStyles","srOnlyStylesString","styleToString","value","$.prop","$$props","restProps","$.rest_props","mergedProps","$.derived","mergeProps","input","root_1","$.get","input_1","root_2","$.attribute_effect","$$render","consequent","alternate","DataTypeahead","#candidateValues","#opts","opts","boxAutoReset","key","#search","currentItem","currentMatch","item","values","nextMatch","getNextMatch","newItem","INTERACTION_KEYS","kbd.ARROW_LEFT","kbd.ESCAPE","kbd.ARROW_RIGHT","kbd.SHIFT","kbd.CAPS_LOCK","kbd.CONTROL","kbd.ALT","kbd.META","kbd.ENTER","kbd.F1","kbd.F2","kbd.F3","kbd.F4","kbd.F5","kbd.F6","kbd.F7","kbd.F8","kbd.F9","kbd.F10","kbd.F11","kbd.F12","FIRST_KEYS","kbd.ARROW_DOWN","kbd.PAGE_UP","kbd.HOME","LAST_KEYS","kbd.ARROW_UP","kbd.PAGE_DOWN","kbd.END","FIRST_LAST_KEYS","selectAttrs","createBitsAttrs","SelectRootContext","Context","SelectGroupContext","SelectContentContext","SelectBaseRootState","#touchedInput","$.state","#inputNode","#contentNode","#viewportNode","#triggerNode","#valueId","#highlightedNode","DOMContext","PresenceManager","boxWith","$.user_pre_effect","node","initial","nodes","viewportRect","nodeRect","open","part","SelectSingleRootState","#hasValue","$.user_effect","watch","itemValue","itemLabel","newValue","afterTick","SelectMultipleRootState","v","SelectRootState","props","type","rest","rootState","SelectInputState","root","attachRef","clearOnDeselect","prevValue","e","kbd.TAB","kbd.BACKSPACE","candidateNodes","firstCandidate","lastCandidate","isCurrentSelectedValue","currHighlightedNode","currIndex","loop","nextItem","next","prev","forward","backward","boolToStr","getDataOpenClosed","boolToEmptyStrOrUndef","SelectComboTriggerState","kbd.SPACE","SelectTriggerState","#domTypeahead","DOMTypeahead","#dataTypeahead","label","matchedItem","#handleOpen","_","#handleKeyboardSelection","isModifierKey","isCharacterKey","isSpaceKey","target","#handlePointerOpen","SelectContentState","#isPositioned","onDestroyEffect","#styles","getFloatingContentCSSVars","SelectItemState","Previous","#mounted","isIOS","on","SelectGroupState","#labelNode","SelectGroupHeadingState","group","SelectHiddenInputState","boolToTrueOrUndef","SelectViewportState","#prevScrollTop","content","SelectScrollButtonImplState","noop","autoScroll","tick","boolToStrTrueOrUndef","SelectScrollDownButtonState","#canScrollDown","scrollButtonState","afterSleep","manual","maxScroll","paddingTop","viewport","selectedItem","SelectScrollUpButtonState","#canScrollUp","hiddenInputState","HiddenInput","$$anchor","$.spread_props","$$value","uid","$.props_id","id","createId","ref","forceMount","side","onInteractOutside","onEscapeKeydown","preventScroll","contentState","PopperLayerForceMount","$$arg0","wrapperProps","finalProps","div","root_4","div_1","PopperLayer","div_2","root_9","div_3","consequent_3","consequent_1","alternate_2","mounted","onMountedChange","onMountEffect","disabled","onHighlight","onUnhighlight","itemState","$0","$.snippet","node_2","$.noop","Mounted","node_3","viewportState","node_1","delay","root_3","iconNode","Icon","cn","SelectPrimitive_ScrollUpButton","ChevronUpIcon","SelectPrimitive_ScrollDownButton","ChevronDownIcon"],"mappings":"w9BACO,MAAMA,GAAe,CAC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AQ,CAAA,CAAK,OAAM,CAAI,EAAK,gBAAgB,CAAA,CAAA,EAcjDC,+BAA2B9H,EAAK,uBAAY6H,+CAC5B,UAAQP,CAAA,qCAHzB,iBC1DA,SAME,IAAA/B,eAAgB,IAAI,EAEjBvL,EAAAC,EAAAF,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAoN,EAAAhN,EAAA,IAAA4N,GAAG,uDAAsDhO,EAAA,KAAA,CAAA,sBAHhEiO,EAAgBhD,EAAAC,uEAIZjL,OAHJ,KAAK,iBAAL,IAAKkL,EAAA,wBAKJ+C,GAAajD,EAAA,CAAA,MAAA,QAAA,CAAA,uCARf,iBCVA,SAME,IAAAO,eAAgB,IAAI,EAEjBvL,EAAAC,EAAAF,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAoN,EAAAhN,EAAA,IAAA4N,GAAG,uDAAsDhO,EAAA,KAAA,CAAA,sBAHhEmO,EAAgBlD,EAAAC,yEAIZjL,OAHJ,KAAK,iBAAL,IAAKkL,EAAA,wBAKJiD,GAAenD,EAAA,CAAA,MAAA,QAAA,CAAA,uCARjB","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/CzIIBX62.js b/backend/static/frontend/_app/immutable/chunks/BgAHJuQl.js
similarity index 97%
rename from backend/static/frontend/_app/immutable/chunks/CzIIBX62.js
rename to backend/static/frontend/_app/immutable/chunks/BgAHJuQl.js
index 1c654748..8c6359e8 100644
--- a/backend/static/frontend/_app/immutable/chunks/CzIIBX62.js
+++ b/backend/static/frontend/_app/immutable/chunks/BgAHJuQl.js
@@ -1 +1 @@
-import{p as t,i as W,r as I,s as q}from"./DMODTt3n.js";import{p as K,i as ee,h as te,g as A,f as G,c as i,d as p,m as F,o as J,b as l,s as B,a as R,K as ae,u as E,e as Q,r as U,t as re,k as le,l as se}from"./B2WdN-7r.js";import{c as V}from"./BAcG0-U_.js";import{e as ne}from"./CMyj8Fzw.js";import{n as M,w as oe,F as ie,a as de,b as ce}from"./CAQEdoSh.js";import{b as ue,c as N,k as fe,j as ve,f as ge,g as me,h as he,i as _e,C as pe}from"./CYYjDwkn.js";import{b as _,c as be,m as xe}from"./DWAABZDo.js";import{b as ye,d as H}from"./DH0tcjsQ.js";import{C as Se}from"./DUJ_Z9AF.js";var we=G("<!> <!>",1);function Pe(h,e){K(e,!0);let a=t(e,"value",15),d=t(e,"onValueChange",3,M),c=t(e,"name",3,""),u=t(e,"disabled",3,!1),g=t(e,"open",15,!1),y=t(e,"onOpenChange",3,M),f=t(e,"onOpenChangeComplete",3,M),n=t(e,"loop",3,!1),m=t(e,"scrollAlignment",3,"nearest"),w=t(e,"required",3,!1),S=t(e,"items",19,()=>[]),v=t(e,"allowDeselect",3,!1);function C(){a()===void 0&&a(e.type==="single"?"":[])}C(),oe.pre(()=>a(),()=>{C()});let b=te("");const x=ue.create({type:e.type,value:_(()=>a(),s=>{a(s),d()(s)}),disabled:_(()=>u()),required:_(()=>w()),open:_(()=>g(),s=>{g(s),y()(s)}),loop:_(()=>n()),scrollAlignment:_(()=>m()),name:_(()=>c()),isCombobox:!1,items:_(()=>S()),allowDeselect:_(()=>v()),inputValue:_(()=>A(b),s=>ee(b,s,!0)),onOpenChangeComplete:_(()=>f())});var P=we(),k=i(P);ie(k,{children:(s,D)=>{var O=p(),T=i(O);F(T,()=>e.children??J),l(s,O)},$$slots:{default:!0}});var r=B(k,2);{var o=s=>{var D=p(),O=i(D);{var T=j=>{N(j,{get autocomplete(){return e.autocomplete}})},Y=j=>{var X=p(),Z=i(X);ne(Z,16,()=>x.opts.value.current,L=>L,(L,$)=>{N(L,{get value(){return $},get autocomplete(){return e.autocomplete}})}),l(j,X)};W(O,j=>{x.opts.value.current.length===0?j(T):j(Y,!1)})}l(s,D)},z=s=>{N(s,{get autocomplete(){return e.autocomplete},get value(){return x.opts.value.current},set value(D){x.opts.value.current=D}})};W(r,s=>{Array.isArray(x.opts.value.current)?s(o):s(z,!1)})}l(h,P),R()}var ze=G("<button><!></button>");function Ce(h,e){const a=ae();K(e,!0);let d=t(e,"id",19,()=>be(a)),c=t(e,"ref",15,null),u=t(e,"type",3,"button"),g=I(e,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const y=fe.create({id:_(()=>d()),ref:_(()=>c(),w=>c(w))}),f=E(()=>xe(g,y.props,{type:u()}));var n=p(),m=i(n);V(m,()=>de,(w,S)=>{S(w,{get id(){return d()},get ref(){return y.opts.ref},children:(v,C)=>{var b=p(),x=i(b);{var P=r=>{var o=p(),z=i(o);F(z,()=>e.child,()=>({props:A(f)})),l(r,o)},k=r=>{var o=ze();ye(o,()=>({...A(f)}));var z=Q(o);F(z,()=>e.children??J),U(o),l(r,o)};W(x,r=>{e.child?r(P):r(k,!1)})}l(v,b)},$$slots:{default:!0}})}),l(h,n),R()}function Be(h,e){K(e,!0);let a=t(e,"open",15,!1),d=t(e,"value",15),c=I(e,["$$slots","$$events","$$legacy","open","value"]);var u=p(),g=i(u);V(g,()=>Pe,(y,f)=>{f(y,q(()=>c,{get open(){return a()},set open(n){a(n)},get value(){return d()},set value(n){d(n)}}))}),l(h,u),R()}var ke=G('<span class="absolute end-2 flex size-3.5 items-center justify-center"><!></span> <!>',1);function Ee(h,e){K(e,!0);let a=t(e,"ref",15,null),d=I(e,["$$slots","$$events","$$legacy","ref","class","value","label","children"]);var c=p(),u=i(c);{const g=(f,n)=>{let m=()=>n?.().selected,w=()=>n?.().highlighted;var S=ke(),v=i(S),C=Q(v);{var b=r=>{Se(r,{class:"size-4"})};W(C,r=>{m()&&r(b)})}U(v);var x=B(v,2);{var P=r=>{var o=p(),z=i(o);F(z,()=>e.children,()=>({selected:m(),highlighted:w()})),l(r,o)},k=r=>{var o=re();le(()=>se(o,e.label||e.value)),l(r,o)};W(x,r=>{e.children?r(P):r(k,!1)})}l(f,S)};let y=E(()=>H("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e.class));V(u,()=>ve,(f,n)=>{n(f,q({get value(){return e.value},"data-slot":"select-item",get class(){return A(y)}},()=>d,{get ref(){return a()},set ref(m){a(m)},children:g,$$slots:{default:!0}}))})}l(h,c),R()}function Oe(h,e){let a=I(e,["$$slots","$$events","$$legacy"]);var d=p(),c=i(d);V(c,()=>ce,(u,g)=>{g(u,q(()=>a))}),l(h,d)}var Ae=G("<!> <!> <!>",1);function Ge(h,e){K(e,!0);let a=t(e,"ref",15,null),d=t(e,"sideOffset",3,4),c=t(e,"preventScroll",3,!0),u=I(e,["$$slots","$$events","$$legacy","ref","class","sideOffset","portalProps","children","preventScroll"]);Oe(h,q(()=>e.portalProps,{children:(g,y)=>{var f=p(),n=i(f);{let m=E(()=>H("bg-popover text-popover-foreground border-hair-2 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-[0_20px_60px_-20px_rgba(0,0,0,0.7),0_0_0_1px_rgba(255,255,255,0.03)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e.class));V(n,()=>ge,(w,S)=>{S(w,q({get sideOffset(){return d()},get preventScroll(){return c()},"data-slot":"select-content",get class(){return A(m)}},()=>u,{get ref(){return a()},set ref(v){a(v)},children:(v,C)=>{var b=Ae(),x=i(b);me(x,{});var P=B(x,2);{let r=E(()=>H("h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1"));V(P,()=>he,(o,z)=>{z(o,{get class(){return A(r)},children:(s,D)=>{var O=p(),T=i(O);F(T,()=>e.children??J),l(s,O)},$$slots:{default:!0}})})}var k=B(P,2);_e(k,{}),l(v,b)},$$slots:{default:!0}}))})}l(g,f)},$$slots:{default:!0}})),R()}var Ve=G('<span class="flex-1 truncate text-left"><!></span> <!>',1);function He(h,e){K(e,!0);let a=t(e,"ref",15,null),d=t(e,"size",3,"default"),c=I(e,["$$slots","$$events","$$legacy","ref","class","children","size"]);var u=p(),g=i(u);{let y=E(()=>H("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:ring-ring/40 aria-invalid:ring-destructive/40 aria-invalid:border-destructive bg-transparent dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[2px] data-[state=open]:border-ring/60 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e.class));V(g,()=>Ce,(f,n)=>{n(f,q({"data-slot":"select-trigger",get"data-size"(){return d()},get class(){return A(y)}},()=>c,{get ref(){return a()},set ref(m){a(m)},children:(m,w)=>{var S=Ve(),v=i(S),C=Q(v);F(C,()=>e.children??J),U(v);var b=B(v,2);pe(b,{class:"size-4 shrink-0 opacity-50"}),l(m,S)},$$slots:{default:!0}}))})}l(h,u),R()}export{He as S,Ge as a,Be as b,Ee as c};
+import{p as t,i as W,r as I,s as q}from"./DMODTt3n.js";import{p as K,i as ee,h as te,g as A,f as G,c as i,d as p,m as F,o as J,b as l,s as B,a as R,K as ae,u as E,e as Q,r as U,t as re,k as le,l as se}from"./B2WdN-7r.js";import{c as V}from"./BAcG0-U_.js";import{e as ne}from"./CMyj8Fzw.js";import{n as M,w as oe,F as ie,a as de,P as ce}from"./CjLH05gQ.js";import{b as ue,c as N,k as fe,j as ve,f as ge,g as me,h as he,i as _e,C as pe}from"./BT31m2vG.js";import{b as _,c as be,m as xe}from"./BDd6-VcB.js";import{b as ye,d as H}from"./DH0tcjsQ.js";import{C as Se}from"./DUJ_Z9AF.js";var we=G("<!> <!>",1);function Pe(h,e){K(e,!0);let a=t(e,"value",15),d=t(e,"onValueChange",3,M),c=t(e,"name",3,""),u=t(e,"disabled",3,!1),g=t(e,"open",15,!1),y=t(e,"onOpenChange",3,M),f=t(e,"onOpenChangeComplete",3,M),n=t(e,"loop",3,!1),m=t(e,"scrollAlignment",3,"nearest"),w=t(e,"required",3,!1),S=t(e,"items",19,()=>[]),v=t(e,"allowDeselect",3,!1);function C(){a()===void 0&&a(e.type==="single"?"":[])}C(),oe.pre(()=>a(),()=>{C()});let b=te("");const x=ue.create({type:e.type,value:_(()=>a(),s=>{a(s),d()(s)}),disabled:_(()=>u()),required:_(()=>w()),open:_(()=>g(),s=>{g(s),y()(s)}),loop:_(()=>n()),scrollAlignment:_(()=>m()),name:_(()=>c()),isCombobox:!1,items:_(()=>S()),allowDeselect:_(()=>v()),inputValue:_(()=>A(b),s=>ee(b,s,!0)),onOpenChangeComplete:_(()=>f())});var P=we(),k=i(P);ie(k,{children:(s,D)=>{var O=p(),T=i(O);F(T,()=>e.children??J),l(s,O)},$$slots:{default:!0}});var r=B(k,2);{var o=s=>{var D=p(),O=i(D);{var T=j=>{N(j,{get autocomplete(){return e.autocomplete}})},Y=j=>{var X=p(),Z=i(X);ne(Z,16,()=>x.opts.value.current,L=>L,(L,$)=>{N(L,{get value(){return $},get autocomplete(){return e.autocomplete}})}),l(j,X)};W(O,j=>{x.opts.value.current.length===0?j(T):j(Y,!1)})}l(s,D)},z=s=>{N(s,{get autocomplete(){return e.autocomplete},get value(){return x.opts.value.current},set value(D){x.opts.value.current=D}})};W(r,s=>{Array.isArray(x.opts.value.current)?s(o):s(z,!1)})}l(h,P),R()}var ze=G("<button><!></button>");function Ce(h,e){const a=ae();K(e,!0);let d=t(e,"id",19,()=>be(a)),c=t(e,"ref",15,null),u=t(e,"type",3,"button"),g=I(e,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const y=fe.create({id:_(()=>d()),ref:_(()=>c(),w=>c(w))}),f=E(()=>xe(g,y.props,{type:u()}));var n=p(),m=i(n);V(m,()=>de,(w,S)=>{S(w,{get id(){return d()},get ref(){return y.opts.ref},children:(v,C)=>{var b=p(),x=i(b);{var P=r=>{var o=p(),z=i(o);F(z,()=>e.child,()=>({props:A(f)})),l(r,o)},k=r=>{var o=ze();ye(o,()=>({...A(f)}));var z=Q(o);F(z,()=>e.children??J),U(o),l(r,o)};W(x,r=>{e.child?r(P):r(k,!1)})}l(v,b)},$$slots:{default:!0}})}),l(h,n),R()}function Be(h,e){K(e,!0);let a=t(e,"open",15,!1),d=t(e,"value",15),c=I(e,["$$slots","$$events","$$legacy","open","value"]);var u=p(),g=i(u);V(g,()=>Pe,(y,f)=>{f(y,q(()=>c,{get open(){return a()},set open(n){a(n)},get value(){return d()},set value(n){d(n)}}))}),l(h,u),R()}var ke=G('<span class="absolute end-2 flex size-3.5 items-center justify-center"><!></span> <!>',1);function Ee(h,e){K(e,!0);let a=t(e,"ref",15,null),d=I(e,["$$slots","$$events","$$legacy","ref","class","value","label","children"]);var c=p(),u=i(c);{const g=(f,n)=>{let m=()=>n?.().selected,w=()=>n?.().highlighted;var S=ke(),v=i(S),C=Q(v);{var b=r=>{Se(r,{class:"size-4"})};W(C,r=>{m()&&r(b)})}U(v);var x=B(v,2);{var P=r=>{var o=p(),z=i(o);F(z,()=>e.children,()=>({selected:m(),highlighted:w()})),l(r,o)},k=r=>{var o=re();le(()=>se(o,e.label||e.value)),l(r,o)};W(x,r=>{e.children?r(P):r(k,!1)})}l(f,S)};let y=E(()=>H("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e.class));V(u,()=>ve,(f,n)=>{n(f,q({get value(){return e.value},"data-slot":"select-item",get class(){return A(y)}},()=>d,{get ref(){return a()},set ref(m){a(m)},children:g,$$slots:{default:!0}}))})}l(h,c),R()}function Oe(h,e){let a=I(e,["$$slots","$$events","$$legacy"]);var d=p(),c=i(d);V(c,()=>ce,(u,g)=>{g(u,q(()=>a))}),l(h,d)}var Ae=G("<!> <!> <!>",1);function Ge(h,e){K(e,!0);let a=t(e,"ref",15,null),d=t(e,"sideOffset",3,4),c=t(e,"preventScroll",3,!0),u=I(e,["$$slots","$$events","$$legacy","ref","class","sideOffset","portalProps","children","preventScroll"]);Oe(h,q(()=>e.portalProps,{children:(g,y)=>{var f=p(),n=i(f);{let m=E(()=>H("bg-popover text-popover-foreground border-hair-2 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-[0_20px_60px_-20px_rgba(0,0,0,0.7),0_0_0_1px_rgba(255,255,255,0.03)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e.class));V(n,()=>ge,(w,S)=>{S(w,q({get sideOffset(){return d()},get preventScroll(){return c()},"data-slot":"select-content",get class(){return A(m)}},()=>u,{get ref(){return a()},set ref(v){a(v)},children:(v,C)=>{var b=Ae(),x=i(b);me(x,{});var P=B(x,2);{let r=E(()=>H("h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1"));V(P,()=>he,(o,z)=>{z(o,{get class(){return A(r)},children:(s,D)=>{var O=p(),T=i(O);F(T,()=>e.children??J),l(s,O)},$$slots:{default:!0}})})}var k=B(P,2);_e(k,{}),l(v,b)},$$slots:{default:!0}}))})}l(g,f)},$$slots:{default:!0}})),R()}var Ve=G('<span class="flex-1 truncate text-left"><!></span> <!>',1);function He(h,e){K(e,!0);let a=t(e,"ref",15,null),d=t(e,"size",3,"default"),c=I(e,["$$slots","$$events","$$legacy","ref","class","children","size"]);var u=p(),g=i(u);{let y=E(()=>H("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:ring-ring/40 aria-invalid:ring-destructive/40 aria-invalid:border-destructive bg-transparent dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[2px] data-[state=open]:border-ring/60 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e.class));V(g,()=>Ce,(f,n)=>{n(f,q({"data-slot":"select-trigger",get"data-size"(){return d()},get class(){return A(y)}},()=>c,{get ref(){return a()},set ref(m){a(m)},children:(m,w)=>{var S=Ve(),v=i(S),C=Q(v);F(C,()=>e.children??J),U(v);var b=B(v,2);pe(b,{class:"size-4 shrink-0 opacity-50"}),l(m,S)},$$slots:{default:!0}}))})}l(h,u),R()}export{He as S,Ge as a,Be as b,Ee as c};
diff --git a/backend/static/frontend/_app/immutable/chunks/CzIIBX62.js.map b/backend/static/frontend/_app/immutable/chunks/BgAHJuQl.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/CzIIBX62.js.map
rename to backend/static/frontend/_app/immutable/chunks/BgAHJuQl.js.map
index 0d4eab86..18dd89bf 100644
--- a/backend/static/frontend/_app/immutable/chunks/CzIIBX62.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/BgAHJuQl.js.map
@@ -1 +1 @@
-{"version":3,"file":"CzIIBX62.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/select/components/select.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-trigger.svelte","../../../../../../src/lib/components/ui/select/select.svelte","../../../../../../src/lib/components/ui/select/select-item.svelte","../../../../../../src/lib/components/ui/select/select-portal.svelte","../../../../../../src/lib/components/ui/select/select-content.svelte","../../../../../../src/lib/components/ui/select/select-trigger.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { type WritableBox, boxWith } from \"svelte-toolbelt\";\n\timport { SelectRootState } from \"../select.svelte.js\";\n\timport type { SelectRootProps } from \"../types.js\";\n\timport SelectHiddenInput from \"./select-hidden-input.svelte\";\n\timport { watch } from \"runed\";\n\n\tlet {\n\t\tvalue = $bindable(),\n\t\tonValueChange = noop,\n\t\tname = \"\",\n\t\tdisabled = false,\n\t\ttype,\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tloop = false,\n\t\tscrollAlignment = \"nearest\",\n\t\trequired = false,\n\t\titems = [],\n\t\tallowDeselect = false,\n\t\tautocomplete,\n\t\tchildren,\n\t}: SelectRootProps = $props();\n\n\tfunction handleDefaultValue() {\n\t\tif (value !== undefined) return;\n\t\tvalue = type === \"single\" ? \"\" : [];\n\t}\n\n\t// SSR\n\thandleDefaultValue();\n\n\twatch.pre(\n\t\t() => value,\n\t\t() => {\n\t\t\thandleDefaultValue();\n\t\t}\n\t);\n\n\tlet inputValue = $state(\"\");\n\n\tconst rootState = SelectRootState.create({\n\t\ttype,\n\t\tvalue: boxWith(\n\t\t\t() => value!,\n\t\t\t(v) => {\n\t\t\t\tvalue = v;\n\t\t\t\t// oxlint-disable-next-line no-explicit-any\n\t\t\t\tonValueChange(v as any);\n\t\t\t}\n\t\t) as WritableBox<string> | WritableBox<string[]>,\n\t\tdisabled: boxWith(() => disabled),\n\t\trequired: boxWith(() => required),\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tloop: boxWith(() => loop),\n\t\tscrollAlignment: boxWith(() => scrollAlignment),\n\t\tname: boxWith(() => name),\n\t\tisCombobox: false,\n\t\titems: boxWith(() => items),\n\t\tallowDeselect: boxWith(() => allowDeselect),\n\t\tinputValue: boxWith(\n\t\t\t() => inputValue,\n\t\t\t(v) => (inputValue = v)\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n<FloatingLayer>\n\t{@render children?.()}\n</FloatingLayer>\n\n{#if Array.isArray(rootState.opts.value.current)}\n\t{#if rootState.opts.value.current.length === 0}\n\t\t<SelectHiddenInput {autocomplete} />\n\t{:else}\n\t\t{#each rootState.opts.value.current as item (item)}\n\t\t\t<SelectHiddenInput value={item} {autocomplete} />\n\t\t{/each}\n\t{/if}\n{:else}\n\t<SelectHiddenInput bind:value={rootState.opts.value.current as string} {autocomplete} />\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { SelectTriggerState } from \"../select.svelte.js\";\n\timport type { SelectTriggerProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { FloatingLayer } from \"../../utilities/floating-layer/index.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tchildren,\n\t\ttype = \"button\",\n\t\t...restProps\n\t}: SelectTriggerProps = $props();\n\n\tconst triggerState = SelectTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n<FloatingLayer.Anchor {id} ref={triggerState.opts.ref}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<button {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</button>\n\t{/if}\n</FloatingLayer.Anchor>\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tvalue = $bindable(),\n\t\t...restProps\n\t}: SelectPrimitive.RootProps = $props();\n</script>\n\n<SelectPrimitive.Root bind:open bind:value={value as never} {...restProps} />\n","<script lang=\"ts\">\n\timport CheckIcon from \"@lucide/svelte/icons/check\";\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tvalue,\n\t\tlabel,\n\t\tchildren: childrenProp,\n\t\t...restProps\n\t}: WithoutChild<SelectPrimitive.ItemProps> = $props();\n</script>\n\n<SelectPrimitive.Item\n\tbind:ref\n\t{value}\n\tdata-slot=\"select-item\"\n\tclass={cn(\n\t\t\"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{#snippet children({ selected, highlighted })}\n\t\t<span class=\"absolute end-2 flex size-3.5 items-center justify-center\">\n\t\t\t{#if selected}\n\t\t\t\t<CheckIcon class=\"size-4\" />\n\t\t\t{/if}\n\t\t</span>\n\t\t{#if childrenProp}\n\t\t\t{@render childrenProp({ selected, highlighted })}\n\t\t{:else}\n\t\t\t{label || value}\n\t\t{/if}\n\t{/snippet}\n</SelectPrimitive.Item>\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: SelectPrimitive.PortalProps = $props();\n</script>\n\n<SelectPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport SelectPortal from \"./select-portal.svelte\";\n\timport SelectScrollUpButton from \"./select-scroll-up-button.svelte\";\n\timport SelectScrollDownButton from \"./select-scroll-down-button.svelte\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\timport type { ComponentProps } from \"svelte\";\n\timport type { WithoutChildrenOrChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tsideOffset = 4,\n\t\tportalProps,\n\t\tchildren,\n\t\tpreventScroll = true,\n\t\t...restProps\n\t}: WithoutChild<SelectPrimitive.ContentProps> & {\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof SelectPortal>>;\n\t} = $props();\n</script>\n\n<SelectPortal {...portalProps}>\n\t<SelectPrimitive.Content\n\t\tbind:ref\n\t\t{sideOffset}\n\t\t{preventScroll}\n\t\tdata-slot=\"select-content\"\n\t\tclass={cn(\n\t\t\t\"bg-popover text-popover-foreground border-hair-2 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-[0_20px_60px_-20px_rgba(0,0,0,0.7),0_0_0_1px_rgba(255,255,255,0.03)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n\t\t\tclassName\n\t\t)}\n\t\t{...restProps}\n\t>\n\t\t<SelectScrollUpButton />\n\t\t<SelectPrimitive.Viewport\n\t\t\tclass={cn(\n\t\t\t\t\"h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1\"\n\t\t\t)}\n\t\t>\n\t\t\t{@render children?.()}\n\t\t</SelectPrimitive.Viewport>\n\t\t<SelectScrollDownButton />\n\t</SelectPrimitive.Content>\n</SelectPortal>\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport ChevronDownIcon from \"@lucide/svelte/icons/chevron-down\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\tsize = \"default\",\n\t\t...restProps\n\t}: WithoutChild<SelectPrimitive.TriggerProps> & {\n\t\tsize?: \"sm\" | \"default\";\n\t} = $props();\n</script>\n\n<SelectPrimitive.Trigger\n\tbind:ref\n\tdata-slot=\"select-trigger\"\n\tdata-size={size}\n\tclass={cn(\n\t\t\"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:ring-ring/40 aria-invalid:ring-destructive/40 aria-invalid:border-destructive bg-transparent dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[2px] data-[state=open]:border-ring/60 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t<span class=\"flex-1 truncate text-left\">\n\t\t{@render children?.()}\n\t</span>\n\t<ChevronDownIcon class=\"size-4 shrink-0 opacity-50\" />\n</SelectPrimitive.Trigger>\n"],"names":["value","$.prop","$$props","onValueChange","noop","name","disabled","open","onOpenChange","onOpenChangeComplete","loop","scrollAlignment","required","items","allowDeselect","handleDefaultValue","watch","inputValue","$.state","rootState","SelectRootState","boxWith","v","$.get","$.set","FloatingLayer","node","SelectHiddenInput","$$anchor","item","$$render","consequent","alternate","$$value","consequent_1","alternate_1","uid","$.props_id","id","createId","ref","type","restProps","$.rest_props","triggerState","SelectTriggerState","mergedProps","$.derived","mergeProps","FloatingLayer_Anchor","$.snippet","node_2","button","root_3","$.attribute_effect","SelectPrimitive_Root","children","$$arg0","selected","highlighted","span","$.first_child","fragment_1","CheckIcon","node_3","$0","cn","SelectPrimitive_Item","$.spread_props","SelectPrimitive_Portal","sideOffset","preventScroll","SelectPortal","SelectPrimitive_Content","SelectScrollUpButton","node_1","SelectPrimitive_Viewport","SelectScrollDownButton","node_4","size","SelectPrimitive_Trigger","ChevronDownIcon"],"mappings":"2mBAAA,aAUEA,EAAKC,EAAAC,EAAA,QAAA,EAAA,EACLC,wBAAgBC,CAAI,EACpBC,eAAO,EAAE,EACTC,mBAAW,EAAK,EAEhBC,gBA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,EAAA,KAAA,CAAA,qBAL5xB8E,EAAgBpD,EAAAwC,wDAGLW,EAAI,iCAKXrC,OAPJ,KAAK,iBAAL,IAAKT,EAAA,mCASJ2B,EAAIC,EAAAC,CAAA,MAAJF,CAAI,2BAAJA,CAAI,UAAJA,EAAI,CAAA,EAGJqB,GAAe9B,EAAA,CAAA,MAAA,4BAAA,CAAA,8CAfjB","x_google_ignoreList":[0,1]}
\ No newline at end of file
+{"version":3,"file":"BgAHJuQl.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/select/components/select.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-trigger.svelte","../../../../../../src/lib/components/ui/select/select.svelte","../../../../../../src/lib/components/ui/select/select-item.svelte","../../../../../../src/lib/components/ui/select/select-portal.svelte","../../../../../../src/lib/components/ui/select/select-content.svelte","../../../../../../src/lib/components/ui/select/select-trigger.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { type WritableBox, boxWith } from \"svelte-toolbelt\";\n\timport { SelectRootState } from \"../select.svelte.js\";\n\timport type { SelectRootProps } from \"../types.js\";\n\timport SelectHiddenInput from \"./select-hidden-input.svelte\";\n\timport { watch } from \"runed\";\n\n\tlet {\n\t\tvalue = $bindable(),\n\t\tonValueChange = noop,\n\t\tname = \"\",\n\t\tdisabled = false,\n\t\ttype,\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tloop = false,\n\t\tscrollAlignment = \"nearest\",\n\t\trequired = false,\n\t\titems = [],\n\t\tallowDeselect = false,\n\t\tautocomplete,\n\t\tchildren,\n\t}: SelectRootProps = $props();\n\n\tfunction handleDefaultValue() {\n\t\tif (value !== undefined) return;\n\t\tvalue = type === \"single\" ? \"\" : [];\n\t}\n\n\t// SSR\n\thandleDefaultValue();\n\n\twatch.pre(\n\t\t() => value,\n\t\t() => {\n\t\t\thandleDefaultValue();\n\t\t}\n\t);\n\n\tlet inputValue = $state(\"\");\n\n\tconst rootState = SelectRootState.create({\n\t\ttype,\n\t\tvalue: boxWith(\n\t\t\t() => value!,\n\t\t\t(v) => {\n\t\t\t\tvalue = v;\n\t\t\t\t// oxlint-disable-next-line no-explicit-any\n\t\t\t\tonValueChange(v as any);\n\t\t\t}\n\t\t) as WritableBox<string> | WritableBox<string[]>,\n\t\tdisabled: boxWith(() => disabled),\n\t\trequired: boxWith(() => required),\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tloop: boxWith(() => loop),\n\t\tscrollAlignment: boxWith(() => scrollAlignment),\n\t\tname: boxWith(() => name),\n\t\tisCombobox: false,\n\t\titems: boxWith(() => items),\n\t\tallowDeselect: boxWith(() => allowDeselect),\n\t\tinputValue: boxWith(\n\t\t\t() => inputValue,\n\t\t\t(v) => (inputValue = v)\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n<FloatingLayer>\n\t{@render children?.()}\n</FloatingLayer>\n\n{#if Array.isArray(rootState.opts.value.current)}\n\t{#if rootState.opts.value.current.length === 0}\n\t\t<SelectHiddenInput {autocomplete} />\n\t{:else}\n\t\t{#each rootState.opts.value.current as item (item)}\n\t\t\t<SelectHiddenInput value={item} {autocomplete} />\n\t\t{/each}\n\t{/if}\n{:else}\n\t<SelectHiddenInput bind:value={rootState.opts.value.current as string} {autocomplete} />\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { SelectTriggerState } from \"../select.svelte.js\";\n\timport type { SelectTriggerProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { FloatingLayer } from \"../../utilities/floating-layer/index.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tchildren,\n\t\ttype = \"button\",\n\t\t...restProps\n\t}: SelectTriggerProps = $props();\n\n\tconst triggerState = SelectTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n<FloatingLayer.Anchor {id} ref={triggerState.opts.ref}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<button {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</button>\n\t{/if}\n</FloatingLayer.Anchor>\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tvalue = $bindable(),\n\t\t...restProps\n\t}: SelectPrimitive.RootProps = $props();\n</script>\n\n<SelectPrimitive.Root bind:open bind:value={value as never} {...restProps} />\n","<script lang=\"ts\">\n\timport CheckIcon from \"@lucide/svelte/icons/check\";\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tvalue,\n\t\tlabel,\n\t\tchildren: childrenProp,\n\t\t...restProps\n\t}: WithoutChild<SelectPrimitive.ItemProps> = $props();\n</script>\n\n<SelectPrimitive.Item\n\tbind:ref\n\t{value}\n\tdata-slot=\"select-item\"\n\tclass={cn(\n\t\t\"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{#snippet children({ selected, highlighted })}\n\t\t<span class=\"absolute end-2 flex size-3.5 items-center justify-center\">\n\t\t\t{#if selected}\n\t\t\t\t<CheckIcon class=\"size-4\" />\n\t\t\t{/if}\n\t\t</span>\n\t\t{#if childrenProp}\n\t\t\t{@render childrenProp({ selected, highlighted })}\n\t\t{:else}\n\t\t\t{label || value}\n\t\t{/if}\n\t{/snippet}\n</SelectPrimitive.Item>\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: SelectPrimitive.PortalProps = $props();\n</script>\n\n<SelectPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport SelectPortal from \"./select-portal.svelte\";\n\timport SelectScrollUpButton from \"./select-scroll-up-button.svelte\";\n\timport SelectScrollDownButton from \"./select-scroll-down-button.svelte\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\timport type { ComponentProps } from \"svelte\";\n\timport type { WithoutChildrenOrChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tsideOffset = 4,\n\t\tportalProps,\n\t\tchildren,\n\t\tpreventScroll = true,\n\t\t...restProps\n\t}: WithoutChild<SelectPrimitive.ContentProps> & {\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof SelectPortal>>;\n\t} = $props();\n</script>\n\n<SelectPortal {...portalProps}>\n\t<SelectPrimitive.Content\n\t\tbind:ref\n\t\t{sideOffset}\n\t\t{preventScroll}\n\t\tdata-slot=\"select-content\"\n\t\tclass={cn(\n\t\t\t\"bg-popover text-popover-foreground border-hair-2 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-[0_20px_60px_-20px_rgba(0,0,0,0.7),0_0_0_1px_rgba(255,255,255,0.03)] data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n\t\t\tclassName\n\t\t)}\n\t\t{...restProps}\n\t>\n\t\t<SelectScrollUpButton />\n\t\t<SelectPrimitive.Viewport\n\t\t\tclass={cn(\n\t\t\t\t\"h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1\"\n\t\t\t)}\n\t\t>\n\t\t\t{@render children?.()}\n\t\t</SelectPrimitive.Viewport>\n\t\t<SelectScrollDownButton />\n\t</SelectPrimitive.Content>\n</SelectPortal>\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport ChevronDownIcon from \"@lucide/svelte/icons/chevron-down\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\tsize = \"default\",\n\t\t...restProps\n\t}: WithoutChild<SelectPrimitive.TriggerProps> & {\n\t\tsize?: \"sm\" | \"default\";\n\t} = $props();\n</script>\n\n<SelectPrimitive.Trigger\n\tbind:ref\n\tdata-slot=\"select-trigger\"\n\tdata-size={size}\n\tclass={cn(\n\t\t\"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:ring-ring/40 aria-invalid:ring-destructive/40 aria-invalid:border-destructive bg-transparent dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[2px] data-[state=open]:border-ring/60 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t<span class=\"flex-1 truncate text-left\">\n\t\t{@render children?.()}\n\t</span>\n\t<ChevronDownIcon class=\"size-4 shrink-0 opacity-50\" />\n</SelectPrimitive.Trigger>\n"],"names":["value","$.prop","$$props","onValueChange","noop","name","disabled","open","onOpenChange","onOpenChangeComplete","loop","scrollAlignment","required","items","allowDeselect","handleDefaultValue","watch","inputValue","$.state","rootState","SelectRootState","boxWith","v","$.get","$.set","FloatingLayer","node","SelectHiddenInput","$$anchor","item","$$render","consequent","alternate","$$value","consequent_1","alternate_1","uid","$.props_id","id","createId","ref","type","restProps","$.rest_props","triggerState","SelectTriggerState","mergedProps","$.derived","mergeProps","FloatingLayer_Anchor","$.snippet","node_2","button","root_3","$.attribute_effect","SelectPrimitive_Root","children","$$arg0","selected","highlighted","span","$.first_child","fragment_1","CheckIcon","node_3","$0","cn","SelectPrimitive_Item","$.spread_props","SelectPrimitive_Portal","sideOffset","preventScroll","SelectPortal","SelectPrimitive_Content","SelectScrollUpButton","node_1","SelectPrimitive_Viewport","SelectScrollDownButton","node_4","size","SelectPrimitive_Trigger","ChevronDownIcon"],"mappings":"2mBAAA,aAUEA,EAAKC,EAAAC,EAAA,QAAA,EAAA,EACLC,wBAAgBC,CAAI,EACpBC,eAAO,EAAE,EACTC,mBAAW,EAAK,EAEhBC,gBAAiB,EAAK,EACtBC,uBAAeJ,CAAI,EACnBK,+BAAuBL,CAAI,EAC3BM,eAAO,EAAK,EACZC,0BAAkB,SAAS,EAC3BC,mBAAW,EAAK,EAChBC,EAAKZ,EAAAC,EAAA,QAAA,GAAA,IAAA,CAAA,CAAA,EACLY,wBAAgB,EAAK,EAKb,SAAAC,GAAqB,CACzBf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,CAAA,8CAfjB","x_google_ignoreList":[0,1]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/BOK8K7n_.js b/backend/static/frontend/_app/immutable/chunks/BpQ9RPzK.js
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/BOK8K7n_.js
rename to backend/static/frontend/_app/immutable/chunks/BpQ9RPzK.js
index 1cbbb3d5..34da1bfb 100644
--- a/backend/static/frontend/_app/immutable/chunks/BOK8K7n_.js
+++ b/backend/static/frontend/_app/immutable/chunks/BpQ9RPzK.js
@@ -1 +1 @@
-import{_ as Je}from"./PPVm8Dsz.js";import{l as pe,s as be,i as oe,b as he}from"./DMODTt3n.js";import{o as je,a as Ke}from"./Dwk6gGSK.js";import{d as z,c as v,b as n,q as Qe,p as ze,F as Pe,g as t,u as J,a as Ee,f as q,e as N,r as S,s as h,h as ce,k as ne,l as te,i as G,n as ue,t as ve}from"./B2WdN-7r.js";import{e as Fe,i as Ne}from"./CMyj8Fzw.js";import{s as Te,a as Ye,e as De}from"./DH0tcjsQ.js";import{I as xe,s as $e}from"./CQWqWi6p.js";import{c as k}from"./BAcG0-U_.js";import{c as Re,b as Ce,T as Me,a as fe}from"./CeOjHHJH.js";import{T as He}from"./CEJkX7WU.js";import{T as me}from"./BQmrPeqT.js";import{T as Oe}from"./xk30YnJ1.js";function Ze(P,r){const s=pe(r,["children","$$slots","$$events","$$legacy"]);const c=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];xe(P,be({name:"globe"},()=>s,{get iconNode(){return c},children:($,H)=>{var f=z(),p=v(f);$e(p,r,"default",{},null),n($,f)},$$slots:{default:!0}}))}function et(P,r){const s=pe(r,["children","$$slots","$$events","$$legacy"]);const c=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"}]];xe(P,be({name:"maximize"},()=>s,{get iconNode(){return c},children:($,H)=>{var f=z(),p=v(f);$e(p,r,"default",{},null),n($,f)},$$slots:{default:!0}}))}function tt(P,r){const s=pe(r,["children","$$slots","$$events","$$legacy"]);const c=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"}]];xe(P,be({name:"minimize"},()=>s,{get iconNode(){return c},children:($,H)=>{var f=z(),p=v(f);$e(p,r,"default",{},null),n($,f)},$$slots:{default:!0}}))}function rt(P,r){const s=pe(r,["children","$$slots","$$events","$$legacy"]);const c=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"}]];xe(P,be({name:"pause"},()=>s,{get iconNode(){return c},children:($,H)=>{var f=z(),p=v(f);$e(p,r,"default",{},null),n($,f)},$$slots:{default:!0}}))}function at(P,r){const s=pe(r,["children","$$slots","$$events","$$legacy"]);const c=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]];xe(P,be({name:"play"},()=>s,{get iconNode(){return c},children:($,H)=>{var f=z(),p=v(f);$e(p,r,"default",{},null),n($,f)},$$slots:{default:!0}}))}var st=q("<button> </button>"),ot=q('<div class="url-bar svelte-1oczmfl"><img src="/flutter.png" alt="Flutter" class="flutter-icon svelte-1oczmfl"/> <span class="url-bar-text svelte-1oczmfl">Flutter Screen Recording</span></div> <div class="flutter-video-container svelte-1oczmfl"><video playsinline="" loop class="svelte-1oczmfl"><track kind="captions"/></video> <div class="fv-controller svelte-1oczmfl"><div class="fv-timeline svelte-1oczmfl"><span class="fv-timeline__time svelte-1oczmfl"> </span> <div class="fv-progress svelte-1oczmfl" role="slider" tabindex="0"><div class="fv-progress__step svelte-1oczmfl"></div> <div class="fv-progress__handler svelte-1oczmfl"></div></div> <span class="fv-timeline__time svelte-1oczmfl"> </span></div> <div class="fv-controller__btns svelte-1oczmfl"><button class="svelte-1oczmfl"><!></button> <!> <button class="svelte-1oczmfl"><!></button></div></div></div>',3),nt=q('<div class="url-bar svelte-1oczmfl"><!> <span class="url-bar-text svelte-1oczmfl"> </span></div>'),lt=q('<!> <div class="player-container svelte-1oczmfl"></div>',1),it=q('<div class="player-wrapper overflow-hidden svelte-1oczmfl"><!></div>');function Et(P,r){ze(r,!0);let s,c=null,$=null,H=null,f=-1;function p(o){const i=Math.max(0,o);t(I)&&e?e.currentTime=i/1e3:c&&c.goto(i,!1)}let I=J(()=>r.events&&r.events.length>0&&r.events[0]?.type==="flutter_video"),_=J(()=>!t(I)||!r.events?"":`data:video/mp4;base64,${r.events[0].data}`),e,a,l=ce(!1),d=ce(0),y=ce(0),le=ce(1),de=ce(!1),W=ce(!1),O=J(()=>t(y)>0?t(d)/t(y)*100:0);function X(o){const i=Math.floor(o/60),m=Math.floor(o%60);return`${String(i).padStart(2,"0")}:${String(m).padStart(2,"0")}`}function re(){e&&(e.paused?e.play():e.pause())}function ae(o){G(le,o,!0),e&&(e.playbackRate=o)}function j(){a&&(document.fullscreenElement?document.exitFullscreen():a.requestFullscreen())}function ie(o){if(!e||!t(y))return;const m=o.currentTarget.getBoundingClientRect(),b=Math.max(0,Math.min(1,(o.clientX-m.left)/m.width));e.currentTime=b*t(y)}function se(o){o.preventDefault(),G(W,!0);const i=o.currentTarget.parentElement,m=x=>{const E=i.getBoundingClientRect(),A=Math.max(0,Math.min(1,(x.clientX-E.left)/E.width));G(d,A*t(y)),e&&(e.currentTime=t(d))},b=()=>{G(W,!1),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",b)};window.addEventListener("mousemove",m),window.addEventListener("mouseup",b)}Pe(()=>{if(!e)return;const o=()=>{t(W)||G(d,e.currentTime,!0),r.onTimeUpdate?.(e.currentTime*1e3)},i=()=>{G(y,e.duration,!0)},m=()=>{G(l,!0)},b=()=>{G(l,!1)},x=()=>{G(de,!!document.fullscreenElement)};return e.addEventListener("timeupdate",o),e.addEventListener("loadedmetadata",i),e.addEventListener("play",m),e.addEventListener("pause",b),document.addEventListener("fullscreenchange",x),()=>{e.removeEventListener("timeupdate",o),e.removeEventListener("loadedmetadata",i),e.removeEventListener("play",m),e.removeEventListener("pause",b),document.removeEventListener("fullscreenchange",x)}});let w=J(()=>!r.events||r.events.length===0||t(I)?"":r.events.find(i=>i.type===4)?.data?.href??"");function T(o){return Math.round(o*9/16)}je(async()=>{if(!r.events||r.events.length===0||t(I))return;const{default:o}=await Je(async()=>{const{default:x}=await import("./G425APu8.js");return{default:x}},[],import.meta.url),i=Math.round(s.clientWidth*.75),m=getComputedStyle(s).getPropertyValue("--chart-1").trim();c=new o({target:s,props:{events:r.events,width:i,height:T(i),autoPlay:!1,mouseTail:{strokeStyle:m}}}),$=new ResizeObserver(x=>{for(const E of x){const A=Math.round(E.contentRect.width*.75);c&&A>0&&(c.$set({width:A,height:T(A)}),c.triggerResize())}}),$.observe(s);const b=()=>{if(c){try{const x=c.getReplayer().getCurrentTime();x!==f&&(f=x,r.onTimeUpdate?.(x))}catch{}H=requestAnimationFrame(b)}};H=requestAnimationFrame(b)}),Ke(()=>{H!==null&&cancelAnimationFrame(H),$?.disconnect(),c&&c.$destroy()});var K={seek:p},Q=z(),V=v(Q);{var L=o=>{var i=it(),m=N(i);{var b=E=>{var A=ot(),Y=h(v(A),2),U=N(Y);U.__click=re,he(U,u=>e=u,()=>e);var Z=h(U,2),D=N(Z),F=N(D),M=N(F,!0);S(F);var g=h(F,2);Te(g,"aria-valuemin",0),g.__click=ie,g.__keydown=u=>{e&&(u.key==="ArrowRight"&&(e.currentTime=Math.min(t(y),t(d)+5)),u.key==="ArrowLeft"&&(e.currentTime=Math.max(0,t(d)-5)))};var R=N(g);let C;var B=h(R,2);B.__mousedown=se;let ee;S(g);var ye=h(g,2),Ve=N(ye,!0);S(ye),S(D);var Se=h(D,2),we=N(Se);we.__click=re;var qe=N(we);{var Ie=u=>{rt(u,{size:16})},Ue=u=>{at(u,{size:16})};oe(qe,u=>{t(l)?u(Ie):u(Ue,!1)})}S(we);var Le=h(we,2);Fe(Le,16,()=>[1,2,4,8],Ne,(u,ge)=>{var _e=st();_e.__click=()=>ae(ge);let Ae;var Ge=N(_e);S(_e),ne(()=>{Ae=Ye(_e,1,"svelte-1oczmfl",null,Ae,{active:t(le)===ge}),te(Ge,`${ge??""}x`)}),n(u,_e)});var ke=h(Le,2);ke.__click=j;var Be=N(ke);{var We=u=>{tt(u,{size:16})},Xe=u=>{et(u,{size:16})};oe(Be,u=>{t(de)?u(We):u(Xe,!1)})}S(ke),S(Se),S(Z),S(Y),he(Y,u=>a=u,()=>a),ne((u,ge)=>{Te(U,"src",t(_)),te(M,u),Te(g,"aria-valuemax",t(y)),Te(g,"aria-valuenow",t(d)),C=De(R,"",C,{width:`${t(O)??""}%`}),ee=De(B,"",ee,{left:`${t(O)??""}%`}),te(Ve,ge)},[()=>X(t(d)),()=>X(t(y))]),n(E,A)},x=E=>{var A=lt(),Y=v(A);{var U=D=>{var F=nt(),M=N(F);Ze(M,{});var g=h(M,2),R=N(g,!0);S(g),S(F),ne(()=>te(R,t(w))),n(D,F)};oe(Y,D=>{t(w)&&D(U)})}var Z=h(Y,2);he(Z,D=>s=D,()=>s),n(E,A)};oe(m,E=>{t(I)?E(b):E(x,!1)})}S(i),n(o,i)};oe(V,o=>{r.events&&r.events.length>0&&o(L)})}return n(P,Q),Ee(K)}Qe(["click","keydown","mousedown"]);var ct=q("<!> <!> <!>",1),dt=q("<!> <!> <!>",1),ut=q("<!> <!>",1),vt=q('<div class="rounded-md border max-h-[440px] overflow-y-auto"><!></div>');function Ft(P,r){ze(r,!0);let s=ce(void 0);function c(_){if(!r.startedAt)return 0;const e=Date.parse(r.startedAt),a=Date.parse(_);return!Number.isFinite(e)||!Number.isFinite(a)?0:a-e}function $(_){if(!r.startedAt)return _;const e=Date.parse(r.startedAt),a=Date.parse(_);if(!Number.isFinite(e)||!Number.isFinite(a))return _;const l=a-e;return Math.abs(l)>=1e3?`${l>=0?"+":"-"}${(Math.abs(l)/1e3).toFixed(2)}s`:`${l>=0?"+":"-"}${Math.abs(l)}ms`}function H(_){switch(_){case"error":return"text-destructive";case"warn":return"text-yellow-600 dark:text-yellow-500";case"debug":return"text-muted-foreground";default:return"text-foreground"}}const f=J(()=>{if(r.currentTimeMs==null)return-1;let _=-1;for(let e=0;e<r.logs.length&&c(r.logs[e].timestamp)<=r.currentTimeMs;e++)_=e;return _});Pe(()=>{const _=t(f);if(_<0||!t(s))return;const e=t(s).querySelectorAll("tbody tr")[_];if(!e)return;const a=e.offsetTop,l=a+e.offsetHeight;a<t(s).scrollTop?t(s).scrollTo({top:a,behavior:"smooth"}):l>t(s).scrollTop+t(s).clientHeight&&t(s).scrollTo({top:l-t(s).clientHeight,behavior:"smooth"})});var p=vt(),I=N(p);k(I,()=>Re,(_,e)=>{e(_,{children:(a,l)=>{var d=ut(),y=v(d);{var le=W=>{var O=z(),X=v(O);k(X,()=>He,(re,ae)=>{ae(re,{class:"sticky top-0 bg-background z-10",children:(j,ie)=>{var se=z(),w=v(se);k(w,()=>Me,(T,K)=>{K(T,{children:(Q,V)=>{var L=ct(),o=v(L);me(o,{label:"Time",tooltip:"Offset from the start of the session recording",class:"w-[110px]"});var i=h(o,2);me(i,{label:"Level",tooltip:"Console severity (debug / info / warn / error)",class:"w-[80px]"});var m=h(i,2);me(m,{label:"Message",tooltip:"The console line as captured"}),n(Q,L)},$$slots:{default:!0}})}),n(j,se)},$$slots:{default:!0}})}),n(W,O)};oe(y,W=>{r.logs.length>0&&W(le)})}var de=h(y,2);k(de,()=>Ce,(W,O)=>{O(W,{children:(X,re)=>{var ae=z(),j=v(ae);{var ie=w=>{Oe(w,{colspan:3,message:"No logs captured for this session."})},se=w=>{var T=z(),K=v(T);Fe(K,17,()=>r.logs,Ne,(Q,V,L)=>{var o=z(),i=v(o);{let m=J(()=>L===t(f)?"bg-primary/10 border-l-2 border-l-primary":"");k(i,()=>Me,(b,x)=>{x(b,{onclick:()=>r.onSeek?.(c(t(V).timestamp)),get class(){return`cursor-pointer hover:bg-muted/50 ${t(m)??""}`},children:(E,A)=>{var Y=dt(),U=v(Y);k(U,()=>fe,(F,M)=>{M(F,{class:"font-mono text-xs text-muted-foreground tabular-nums",children:(g,R)=>{ue();var C=ve();ne(B=>te(C,B),[()=>$(t(V).timestamp)]),n(g,C)},$$slots:{default:!0}})});var Z=h(U,2);{let F=J(()=>H(t(V).level));k(Z,()=>fe,(M,g)=>{g(M,{get class(){return`font-mono text-xs uppercase ${t(F)??""}`},children:(R,C)=>{ue();var B=ve();ne(()=>te(B,t(V).level)),n(R,B)},$$slots:{default:!0}})})}var D=h(Z,2);k(D,()=>fe,(F,M)=>{M(F,{class:"font-mono text-xs whitespace-pre-wrap break-all",get title(){return t(V).message},children:(g,R)=>{ue();var C=ve();ne(()=>te(C,t(V).message)),n(g,C)},$$slots:{default:!0}})}),n(E,Y)},$$slots:{default:!0}})})}n(Q,o)}),n(w,T)};oe(j,w=>{r.logs.length===0?w(ie):w(se,!1)})}n(X,ae)},$$slots:{default:!0}})}),n(a,d)},$$slots:{default:!0}})}),S(p),he(p,_=>G(s,_),()=>t(s)),n(P,p),Ee()}var ft=q("<!> <!> <!>",1),mt=q("<!> <!> <!>",1),gt=q("<!> <!>",1),_t=q('<div class="rounded-md border max-h-[440px] overflow-y-auto"><!></div>');function Nt(P,r){ze(r,!0);let s=ce(void 0);function c(e){if(!r.startedAt)return 0;const a=Date.parse(r.startedAt),l=Date.parse(e);return!Number.isFinite(a)||!Number.isFinite(l)?0:l-a}function $(e){if(!r.startedAt)return e;const a=Date.parse(r.startedAt),l=Date.parse(e);if(!Number.isFinite(a)||!Number.isFinite(l))return e;const d=l-a;return Math.abs(d)>=1e3?`${d>=0?"+":"-"}${(Math.abs(d)/1e3).toFixed(2)}s`:`${d>=0?"+":"-"}${Math.abs(d)}ms`}function H(e){switch(e){case"network":return"text-sky-600 dark:text-sky-400";case"navigation":return"text-violet-600 dark:text-violet-400";case"custom":return"text-amber-600 dark:text-amber-400";default:return"text-foreground"}}function f(e){switch(e.type){case"network":{const a=e,l=a.statusCode??(a.error?"ERR":"?");return`${a.method} ${a.url} → ${l} (${a.durationMs}ms)`}case"navigation":{const a=e,l=a.from??"?",d=a.to??"?";return`${a.action}: ${l} → ${d}`}case"custom":{const a=e,l=a.data?` ${JSON.stringify(a.data)}`:"";return`${a.category}/${a.name}${l}`}}}const p=J(()=>{if(r.currentTimeMs==null)return-1;let e=-1;for(let a=0;a<r.actions.length&&c(r.actions[a].timestamp)<=r.currentTimeMs;a++)e=a;return e});Pe(()=>{const e=t(p);if(e<0||!t(s))return;const a=t(s).querySelectorAll("tbody tr")[e];if(!a)return;const l=a.offsetTop,d=l+a.offsetHeight;l<t(s).scrollTop?t(s).scrollTo({top:l,behavior:"smooth"}):d>t(s).scrollTop+t(s).clientHeight&&t(s).scrollTo({top:d-t(s).clientHeight,behavior:"smooth"})});var I=_t(),_=N(I);k(_,()=>Re,(e,a)=>{a(e,{children:(l,d)=>{var y=gt(),le=v(y);{var de=O=>{var X=z(),re=v(X);k(re,()=>He,(ae,j)=>{j(ae,{class:"sticky top-0 bg-background z-10",children:(ie,se)=>{var w=z(),T=v(w);k(T,()=>Me,(K,Q)=>{Q(K,{children:(V,L)=>{var o=ft(),i=v(o);me(i,{label:"Time",tooltip:"Offset from the start of the session recording",class:"w-[110px]"});var m=h(i,2);me(m,{label:"Type",tooltip:"Network / navigation / custom",class:"w-[110px]"});var b=h(m,2);me(b,{label:"Details",tooltip:"One-line summary; full payload visible on hover"}),n(V,o)},$$slots:{default:!0}})}),n(ie,w)},$$slots:{default:!0}})}),n(O,X)};oe(le,O=>{r.actions.length>0&&O(de)})}var W=h(le,2);k(W,()=>Ce,(O,X)=>{X(O,{children:(re,ae)=>{var j=z(),ie=v(j);{var se=T=>{Oe(T,{colspan:3,message:"No actions captured for this session."})},w=T=>{var K=z(),Q=v(K);Fe(Q,17,()=>r.actions,Ne,(V,L,o)=>{var i=z(),m=v(i);{let b=J(()=>o===t(p)?"bg-primary/10 border-l-2 border-l-primary":"");k(m,()=>Me,(x,E)=>{E(x,{onclick:()=>r.onSeek?.(c(t(L).timestamp)),get class(){return`cursor-pointer hover:bg-muted/50 ${t(b)??""}`},children:(A,Y)=>{var U=mt(),Z=v(U);k(Z,()=>fe,(M,g)=>{g(M,{class:"font-mono text-xs text-muted-foreground tabular-nums",children:(R,C)=>{ue();var B=ve();ne(ee=>te(B,ee),[()=>$(t(L).timestamp)]),n(R,B)},$$slots:{default:!0}})});var D=h(Z,2);{let M=J(()=>H(t(L).type));k(D,()=>fe,(g,R)=>{R(g,{get class(){return`font-mono text-xs uppercase ${t(M)??""}`},children:(C,B)=>{ue();var ee=ve();ne(()=>te(ee,t(L).type)),n(C,ee)},$$slots:{default:!0}})})}var F=h(D,2);{let M=J(()=>f(t(L)));k(F,()=>fe,(g,R)=>{R(g,{class:"font-mono text-xs truncate max-w-[600px]",get title(){return t(M)},children:(C,B)=>{ue();var ee=ve();ne(ye=>te(ee,ye),[()=>f(t(L))]),n(C,ee)},$$slots:{default:!0}})})}n(A,U)},$$slots:{default:!0}})})}n(V,i)}),n(T,K)};oe(ie,T=>{r.actions.length===0?T(se):T(w,!1)})}n(re,j)},$$slots:{default:!0}})}),n(l,y)},$$slots:{default:!0}})}),S(I),he(I,e=>G(s,e),()=>t(s)),n(P,I),Ee()}export{Et as S,Ft as a,Nt as b};
+import{_ as Je}from"./PPVm8Dsz.js";import{l as pe,s as be,i as oe,b as he}from"./DMODTt3n.js";import{o as je,a as Ke}from"./Dwk6gGSK.js";import{d as z,c as v,b as n,q as Qe,p as ze,F as Pe,g as t,u as J,a as Ee,f as q,e as N,r as S,s as h,h as ce,k as ne,l as te,i as G,n as ue,t as ve}from"./B2WdN-7r.js";import{e as Fe,i as Ne}from"./CMyj8Fzw.js";import{s as Te,a as Ye,e as De}from"./DH0tcjsQ.js";import{I as xe,s as $e}from"./CQWqWi6p.js";import{c as k}from"./BAcG0-U_.js";import{c as Re,b as Ce,T as Me,a as fe}from"./CeOjHHJH.js";import{T as He}from"./CEJkX7WU.js";import{T as me}from"./CkVJuMBr.js";import{T as Oe}from"./xk30YnJ1.js";function Ze(P,r){const s=pe(r,["children","$$slots","$$events","$$legacy"]);const c=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];xe(P,be({name:"globe"},()=>s,{get iconNode(){return c},children:($,H)=>{var f=z(),p=v(f);$e(p,r,"default",{},null),n($,f)},$$slots:{default:!0}}))}function et(P,r){const s=pe(r,["children","$$slots","$$events","$$legacy"]);const c=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"}]];xe(P,be({name:"maximize"},()=>s,{get iconNode(){return c},children:($,H)=>{var f=z(),p=v(f);$e(p,r,"default",{},null),n($,f)},$$slots:{default:!0}}))}function tt(P,r){const s=pe(r,["children","$$slots","$$events","$$legacy"]);const c=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3"}]];xe(P,be({name:"minimize"},()=>s,{get iconNode(){return c},children:($,H)=>{var f=z(),p=v(f);$e(p,r,"default",{},null),n($,f)},$$slots:{default:!0}}))}function rt(P,r){const s=pe(r,["children","$$slots","$$events","$$legacy"]);const c=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"}]];xe(P,be({name:"pause"},()=>s,{get iconNode(){return c},children:($,H)=>{var f=z(),p=v(f);$e(p,r,"default",{},null),n($,f)},$$slots:{default:!0}}))}function at(P,r){const s=pe(r,["children","$$slots","$$events","$$legacy"]);const c=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]];xe(P,be({name:"play"},()=>s,{get iconNode(){return c},children:($,H)=>{var f=z(),p=v(f);$e(p,r,"default",{},null),n($,f)},$$slots:{default:!0}}))}var st=q("<button> </button>"),ot=q('<div class="url-bar svelte-1oczmfl"><img src="/flutter.png" alt="Flutter" class="flutter-icon svelte-1oczmfl"/> <span class="url-bar-text svelte-1oczmfl">Flutter Screen Recording</span></div> <div class="flutter-video-container svelte-1oczmfl"><video playsinline="" loop class="svelte-1oczmfl"><track kind="captions"/></video> <div class="fv-controller svelte-1oczmfl"><div class="fv-timeline svelte-1oczmfl"><span class="fv-timeline__time svelte-1oczmfl"> </span> <div class="fv-progress svelte-1oczmfl" role="slider" tabindex="0"><div class="fv-progress__step svelte-1oczmfl"></div> <div class="fv-progress__handler svelte-1oczmfl"></div></div> <span class="fv-timeline__time svelte-1oczmfl"> </span></div> <div class="fv-controller__btns svelte-1oczmfl"><button class="svelte-1oczmfl"><!></button> <!> <button class="svelte-1oczmfl"><!></button></div></div></div>',3),nt=q('<div class="url-bar svelte-1oczmfl"><!> <span class="url-bar-text svelte-1oczmfl"> </span></div>'),lt=q('<!> <div class="player-container svelte-1oczmfl"></div>',1),it=q('<div class="player-wrapper overflow-hidden svelte-1oczmfl"><!></div>');function Et(P,r){ze(r,!0);let s,c=null,$=null,H=null,f=-1;function p(o){const i=Math.max(0,o);t(I)&&e?e.currentTime=i/1e3:c&&c.goto(i,!1)}let I=J(()=>r.events&&r.events.length>0&&r.events[0]?.type==="flutter_video"),_=J(()=>!t(I)||!r.events?"":`data:video/mp4;base64,${r.events[0].data}`),e,a,l=ce(!1),d=ce(0),y=ce(0),le=ce(1),de=ce(!1),W=ce(!1),O=J(()=>t(y)>0?t(d)/t(y)*100:0);function X(o){const i=Math.floor(o/60),m=Math.floor(o%60);return`${String(i).padStart(2,"0")}:${String(m).padStart(2,"0")}`}function re(){e&&(e.paused?e.play():e.pause())}function ae(o){G(le,o,!0),e&&(e.playbackRate=o)}function j(){a&&(document.fullscreenElement?document.exitFullscreen():a.requestFullscreen())}function ie(o){if(!e||!t(y))return;const m=o.currentTarget.getBoundingClientRect(),b=Math.max(0,Math.min(1,(o.clientX-m.left)/m.width));e.currentTime=b*t(y)}function se(o){o.preventDefault(),G(W,!0);const i=o.currentTarget.parentElement,m=x=>{const E=i.getBoundingClientRect(),A=Math.max(0,Math.min(1,(x.clientX-E.left)/E.width));G(d,A*t(y)),e&&(e.currentTime=t(d))},b=()=>{G(W,!1),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",b)};window.addEventListener("mousemove",m),window.addEventListener("mouseup",b)}Pe(()=>{if(!e)return;const o=()=>{t(W)||G(d,e.currentTime,!0),r.onTimeUpdate?.(e.currentTime*1e3)},i=()=>{G(y,e.duration,!0)},m=()=>{G(l,!0)},b=()=>{G(l,!1)},x=()=>{G(de,!!document.fullscreenElement)};return e.addEventListener("timeupdate",o),e.addEventListener("loadedmetadata",i),e.addEventListener("play",m),e.addEventListener("pause",b),document.addEventListener("fullscreenchange",x),()=>{e.removeEventListener("timeupdate",o),e.removeEventListener("loadedmetadata",i),e.removeEventListener("play",m),e.removeEventListener("pause",b),document.removeEventListener("fullscreenchange",x)}});let w=J(()=>!r.events||r.events.length===0||t(I)?"":r.events.find(i=>i.type===4)?.data?.href??"");function T(o){return Math.round(o*9/16)}je(async()=>{if(!r.events||r.events.length===0||t(I))return;const{default:o}=await Je(async()=>{const{default:x}=await import("./G425APu8.js");return{default:x}},[],import.meta.url),i=Math.round(s.clientWidth*.75),m=getComputedStyle(s).getPropertyValue("--chart-1").trim();c=new o({target:s,props:{events:r.events,width:i,height:T(i),autoPlay:!1,mouseTail:{strokeStyle:m}}}),$=new ResizeObserver(x=>{for(const E of x){const A=Math.round(E.contentRect.width*.75);c&&A>0&&(c.$set({width:A,height:T(A)}),c.triggerResize())}}),$.observe(s);const b=()=>{if(c){try{const x=c.getReplayer().getCurrentTime();x!==f&&(f=x,r.onTimeUpdate?.(x))}catch{}H=requestAnimationFrame(b)}};H=requestAnimationFrame(b)}),Ke(()=>{H!==null&&cancelAnimationFrame(H),$?.disconnect(),c&&c.$destroy()});var K={seek:p},Q=z(),V=v(Q);{var L=o=>{var i=it(),m=N(i);{var b=E=>{var A=ot(),Y=h(v(A),2),U=N(Y);U.__click=re,he(U,u=>e=u,()=>e);var Z=h(U,2),D=N(Z),F=N(D),M=N(F,!0);S(F);var g=h(F,2);Te(g,"aria-valuemin",0),g.__click=ie,g.__keydown=u=>{e&&(u.key==="ArrowRight"&&(e.currentTime=Math.min(t(y),t(d)+5)),u.key==="ArrowLeft"&&(e.currentTime=Math.max(0,t(d)-5)))};var R=N(g);let C;var B=h(R,2);B.__mousedown=se;let ee;S(g);var ye=h(g,2),Ve=N(ye,!0);S(ye),S(D);var Se=h(D,2),we=N(Se);we.__click=re;var qe=N(we);{var Ie=u=>{rt(u,{size:16})},Ue=u=>{at(u,{size:16})};oe(qe,u=>{t(l)?u(Ie):u(Ue,!1)})}S(we);var Le=h(we,2);Fe(Le,16,()=>[1,2,4,8],Ne,(u,ge)=>{var _e=st();_e.__click=()=>ae(ge);let Ae;var Ge=N(_e);S(_e),ne(()=>{Ae=Ye(_e,1,"svelte-1oczmfl",null,Ae,{active:t(le)===ge}),te(Ge,`${ge??""}x`)}),n(u,_e)});var ke=h(Le,2);ke.__click=j;var Be=N(ke);{var We=u=>{tt(u,{size:16})},Xe=u=>{et(u,{size:16})};oe(Be,u=>{t(de)?u(We):u(Xe,!1)})}S(ke),S(Se),S(Z),S(Y),he(Y,u=>a=u,()=>a),ne((u,ge)=>{Te(U,"src",t(_)),te(M,u),Te(g,"aria-valuemax",t(y)),Te(g,"aria-valuenow",t(d)),C=De(R,"",C,{width:`${t(O)??""}%`}),ee=De(B,"",ee,{left:`${t(O)??""}%`}),te(Ve,ge)},[()=>X(t(d)),()=>X(t(y))]),n(E,A)},x=E=>{var A=lt(),Y=v(A);{var U=D=>{var F=nt(),M=N(F);Ze(M,{});var g=h(M,2),R=N(g,!0);S(g),S(F),ne(()=>te(R,t(w))),n(D,F)};oe(Y,D=>{t(w)&&D(U)})}var Z=h(Y,2);he(Z,D=>s=D,()=>s),n(E,A)};oe(m,E=>{t(I)?E(b):E(x,!1)})}S(i),n(o,i)};oe(V,o=>{r.events&&r.events.length>0&&o(L)})}return n(P,Q),Ee(K)}Qe(["click","keydown","mousedown"]);var ct=q("<!> <!> <!>",1),dt=q("<!> <!> <!>",1),ut=q("<!> <!>",1),vt=q('<div class="rounded-md border max-h-[440px] overflow-y-auto"><!></div>');function Ft(P,r){ze(r,!0);let s=ce(void 0);function c(_){if(!r.startedAt)return 0;const e=Date.parse(r.startedAt),a=Date.parse(_);return!Number.isFinite(e)||!Number.isFinite(a)?0:a-e}function $(_){if(!r.startedAt)return _;const e=Date.parse(r.startedAt),a=Date.parse(_);if(!Number.isFinite(e)||!Number.isFinite(a))return _;const l=a-e;return Math.abs(l)>=1e3?`${l>=0?"+":"-"}${(Math.abs(l)/1e3).toFixed(2)}s`:`${l>=0?"+":"-"}${Math.abs(l)}ms`}function H(_){switch(_){case"error":return"text-destructive";case"warn":return"text-yellow-600 dark:text-yellow-500";case"debug":return"text-muted-foreground";default:return"text-foreground"}}const f=J(()=>{if(r.currentTimeMs==null)return-1;let _=-1;for(let e=0;e<r.logs.length&&c(r.logs[e].timestamp)<=r.currentTimeMs;e++)_=e;return _});Pe(()=>{const _=t(f);if(_<0||!t(s))return;const e=t(s).querySelectorAll("tbody tr")[_];if(!e)return;const a=e.offsetTop,l=a+e.offsetHeight;a<t(s).scrollTop?t(s).scrollTo({top:a,behavior:"smooth"}):l>t(s).scrollTop+t(s).clientHeight&&t(s).scrollTo({top:l-t(s).clientHeight,behavior:"smooth"})});var p=vt(),I=N(p);k(I,()=>Re,(_,e)=>{e(_,{children:(a,l)=>{var d=ut(),y=v(d);{var le=W=>{var O=z(),X=v(O);k(X,()=>He,(re,ae)=>{ae(re,{class:"sticky top-0 bg-background z-10",children:(j,ie)=>{var se=z(),w=v(se);k(w,()=>Me,(T,K)=>{K(T,{children:(Q,V)=>{var L=ct(),o=v(L);me(o,{label:"Time",tooltip:"Offset from the start of the session recording",class:"w-[110px]"});var i=h(o,2);me(i,{label:"Level",tooltip:"Console severity (debug / info / warn / error)",class:"w-[80px]"});var m=h(i,2);me(m,{label:"Message",tooltip:"The console line as captured"}),n(Q,L)},$$slots:{default:!0}})}),n(j,se)},$$slots:{default:!0}})}),n(W,O)};oe(y,W=>{r.logs.length>0&&W(le)})}var de=h(y,2);k(de,()=>Ce,(W,O)=>{O(W,{children:(X,re)=>{var ae=z(),j=v(ae);{var ie=w=>{Oe(w,{colspan:3,message:"No logs captured for this session."})},se=w=>{var T=z(),K=v(T);Fe(K,17,()=>r.logs,Ne,(Q,V,L)=>{var o=z(),i=v(o);{let m=J(()=>L===t(f)?"bg-primary/10 border-l-2 border-l-primary":"");k(i,()=>Me,(b,x)=>{x(b,{onclick:()=>r.onSeek?.(c(t(V).timestamp)),get class(){return`cursor-pointer hover:bg-muted/50 ${t(m)??""}`},children:(E,A)=>{var Y=dt(),U=v(Y);k(U,()=>fe,(F,M)=>{M(F,{class:"font-mono text-xs text-muted-foreground tabular-nums",children:(g,R)=>{ue();var C=ve();ne(B=>te(C,B),[()=>$(t(V).timestamp)]),n(g,C)},$$slots:{default:!0}})});var Z=h(U,2);{let F=J(()=>H(t(V).level));k(Z,()=>fe,(M,g)=>{g(M,{get class(){return`font-mono text-xs uppercase ${t(F)??""}`},children:(R,C)=>{ue();var B=ve();ne(()=>te(B,t(V).level)),n(R,B)},$$slots:{default:!0}})})}var D=h(Z,2);k(D,()=>fe,(F,M)=>{M(F,{class:"font-mono text-xs whitespace-pre-wrap break-all",get title(){return t(V).message},children:(g,R)=>{ue();var C=ve();ne(()=>te(C,t(V).message)),n(g,C)},$$slots:{default:!0}})}),n(E,Y)},$$slots:{default:!0}})})}n(Q,o)}),n(w,T)};oe(j,w=>{r.logs.length===0?w(ie):w(se,!1)})}n(X,ae)},$$slots:{default:!0}})}),n(a,d)},$$slots:{default:!0}})}),S(p),he(p,_=>G(s,_),()=>t(s)),n(P,p),Ee()}var ft=q("<!> <!> <!>",1),mt=q("<!> <!> <!>",1),gt=q("<!> <!>",1),_t=q('<div class="rounded-md border max-h-[440px] overflow-y-auto"><!></div>');function Nt(P,r){ze(r,!0);let s=ce(void 0);function c(e){if(!r.startedAt)return 0;const a=Date.parse(r.startedAt),l=Date.parse(e);return!Number.isFinite(a)||!Number.isFinite(l)?0:l-a}function $(e){if(!r.startedAt)return e;const a=Date.parse(r.startedAt),l=Date.parse(e);if(!Number.isFinite(a)||!Number.isFinite(l))return e;const d=l-a;return Math.abs(d)>=1e3?`${d>=0?"+":"-"}${(Math.abs(d)/1e3).toFixed(2)}s`:`${d>=0?"+":"-"}${Math.abs(d)}ms`}function H(e){switch(e){case"network":return"text-sky-600 dark:text-sky-400";case"navigation":return"text-violet-600 dark:text-violet-400";case"custom":return"text-amber-600 dark:text-amber-400";default:return"text-foreground"}}function f(e){switch(e.type){case"network":{const a=e,l=a.statusCode??(a.error?"ERR":"?");return`${a.method} ${a.url} → ${l} (${a.durationMs}ms)`}case"navigation":{const a=e,l=a.from??"?",d=a.to??"?";return`${a.action}: ${l} → ${d}`}case"custom":{const a=e,l=a.data?` ${JSON.stringify(a.data)}`:"";return`${a.category}/${a.name}${l}`}}}const p=J(()=>{if(r.currentTimeMs==null)return-1;let e=-1;for(let a=0;a<r.actions.length&&c(r.actions[a].timestamp)<=r.currentTimeMs;a++)e=a;return e});Pe(()=>{const e=t(p);if(e<0||!t(s))return;const a=t(s).querySelectorAll("tbody tr")[e];if(!a)return;const l=a.offsetTop,d=l+a.offsetHeight;l<t(s).scrollTop?t(s).scrollTo({top:l,behavior:"smooth"}):d>t(s).scrollTop+t(s).clientHeight&&t(s).scrollTo({top:d-t(s).clientHeight,behavior:"smooth"})});var I=_t(),_=N(I);k(_,()=>Re,(e,a)=>{a(e,{children:(l,d)=>{var y=gt(),le=v(y);{var de=O=>{var X=z(),re=v(X);k(re,()=>He,(ae,j)=>{j(ae,{class:"sticky top-0 bg-background z-10",children:(ie,se)=>{var w=z(),T=v(w);k(T,()=>Me,(K,Q)=>{Q(K,{children:(V,L)=>{var o=ft(),i=v(o);me(i,{label:"Time",tooltip:"Offset from the start of the session recording",class:"w-[110px]"});var m=h(i,2);me(m,{label:"Type",tooltip:"Network / navigation / custom",class:"w-[110px]"});var b=h(m,2);me(b,{label:"Details",tooltip:"One-line summary; full payload visible on hover"}),n(V,o)},$$slots:{default:!0}})}),n(ie,w)},$$slots:{default:!0}})}),n(O,X)};oe(le,O=>{r.actions.length>0&&O(de)})}var W=h(le,2);k(W,()=>Ce,(O,X)=>{X(O,{children:(re,ae)=>{var j=z(),ie=v(j);{var se=T=>{Oe(T,{colspan:3,message:"No actions captured for this session."})},w=T=>{var K=z(),Q=v(K);Fe(Q,17,()=>r.actions,Ne,(V,L,o)=>{var i=z(),m=v(i);{let b=J(()=>o===t(p)?"bg-primary/10 border-l-2 border-l-primary":"");k(m,()=>Me,(x,E)=>{E(x,{onclick:()=>r.onSeek?.(c(t(L).timestamp)),get class(){return`cursor-pointer hover:bg-muted/50 ${t(b)??""}`},children:(A,Y)=>{var U=mt(),Z=v(U);k(Z,()=>fe,(M,g)=>{g(M,{class:"font-mono text-xs text-muted-foreground tabular-nums",children:(R,C)=>{ue();var B=ve();ne(ee=>te(B,ee),[()=>$(t(L).timestamp)]),n(R,B)},$$slots:{default:!0}})});var D=h(Z,2);{let M=J(()=>H(t(L).type));k(D,()=>fe,(g,R)=>{R(g,{get class(){return`font-mono text-xs uppercase ${t(M)??""}`},children:(C,B)=>{ue();var ee=ve();ne(()=>te(ee,t(L).type)),n(C,ee)},$$slots:{default:!0}})})}var F=h(D,2);{let M=J(()=>f(t(L)));k(F,()=>fe,(g,R)=>{R(g,{class:"font-mono text-xs truncate max-w-[600px]",get title(){return t(M)},children:(C,B)=>{ue();var ee=ve();ne(ye=>te(ee,ye),[()=>f(t(L))]),n(C,ee)},$$slots:{default:!0}})})}n(A,U)},$$slots:{default:!0}})})}n(V,i)}),n(T,K)};oe(ie,T=>{r.actions.length===0?T(se):T(w,!1)})}n(re,j)},$$slots:{default:!0}})}),n(l,y)},$$slots:{default:!0}})}),S(I),he(I,e=>G(s,e),()=>t(s)),n(P,I),Ee()}export{Et as S,Ft as a,Nt as b};
diff --git a/backend/static/frontend/_app/immutable/chunks/BOK8K7n_.js.map b/backend/static/frontend/_app/immutable/chunks/BpQ9RPzK.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/BOK8K7n_.js.map
rename to backend/static/frontend/_app/immutable/chunks/BpQ9RPzK.js.map
index 14205cef..07e16f7a 100644
--- a/backend/static/frontend/_app/immutable/chunks/BOK8K7n_.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/BpQ9RPzK.js.map
@@ -1 +1 @@
-{"version":3,"mappings":"ipBAAA,kEA6CMA,EAAQ,EAAK,SAAQ,CAAI,GAAM,KAAM,GAAM,KAAM,EAAK,KAAI,GAAM,OAAU,GAAK,iDAAiD,IAAM,OAAM,CAAI,EAAK,UAAU,IAcpKC,GAAIC,EAAAC,GAAA,mBAAAC,EAAA,uBAAqCJ,8FAF1C,iBCzDA,kEA6CMA,EAAQ,EAAK,OAAM,CAAI,EAAK,yBAAwB,GAAM,OAAM,CAAI,EAAK,2BAA0B,GAAM,OAAM,CAAI,EAAK,0BAAyB,GAAM,OAAM,CAAI,EAAK,2BAA2B,IActMC,GAAIC,EAAAC,GAAA,sBAAAC,EAAA,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qCAoBtB+C,EAAUrI,EAAA,kDAERsI,cAAyB,EAAC,sGAET5E,EAAKiE,IAAA,mBAGoB,IAAAY,EAAA1H,EAAA,IAAA8G,IAAC3G,EAAKyG,CAAA,EAC5C,4CACA,EAAE,qBAJLe,EAAMxI,EAAA,wBACkBS,EAAQO,EAAC0C,CAAK,EAAC,SAAS,2HAK/C+E,EAAUzI,EAAA,oHACTqH,EAAYrG,EAAC0C,CAAK,EAAC,SAAS,+DAEkBqF,EAAS/H,EAAC0C,CAAK,EAAC,IAAI,sBAAnEgF,EAAU1I,EAAA,gGACT2I,GAAA,IAAAC,GAAAC,GAAA7H,EAAA0C,CAAK,EAAC,IAAI,mDAIJ,IAAA6E,EAAA1H,EAAA,IAAAoI,IAAQvF,CAAK,uBAFpBoF,EAAM9I,EAAA,6GAIL2I,GAAAJ,IAAAK,GAAAhD,GAAA2C,EAAA,OAAAU,IAAQvF,CAAK,mGApBL5C,EAAA,iBAAW,EAACuE,EAAAa,EAAA,EAAAb,EAAAE,EAAA,2EAvB3BxB,CAAG,KAAHA,EAAGQ,GAAAtC,EAAYiF,EAAQ3C,CAAA,MAAAvD,EAARkG,CAAQ,OAAvBnD,CAAG,MAFJ","names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","container","player","resizeObserver","rafId","lastReportedMs","seek","offsetMs","ms","isFlutterVideo","videoEl","$.derived","$$props","flutterVideoSrc","$.get","videoContainerEl","playing","$.state","currentTime","duration","playbackSpeed","isFullscreen","dragging","progressPercent","formatTime","seconds","m","s","togglePlay","setSpeed","speed","$.set","toggleFullscreen","handleProgressClick","e","rect","ratio","handleProgressDragStart","progressEl","onMove","ev","onUp","$.user_effect","onVideoTimeUpdate","onLoadedMetadata","onPlay","onPause","onFullscreenChange","pageUrl","getPlayerHeight","width","onMount","rrwebPlayer","__vitePreload","chartColor","entries","entry","newWidth","pollTime","t","onDestroy","div","root_1","div_1","$.sibling","$.first_child","fragment_1","video","$.child","$$value","div_2","div_3","span","div_4","$.set_attribute","div_5","div_6","$.reset","span_1","div_7","button","Pause","Play","$$render","consequent","alternate","$.each","node_3","button_1","root_5","text_2","classes","$.append","button_2","Minimize","Maximize","consequent_1","alternate_1","styles","$.set_style","styles_1","div_8","root_9","Globe","node_6","span_2","consequent_3","div_9","node_5","consequent_2","alternate_2","consequent_4","scrollEl","timestamp","start","formatOffset","deltaMs","levelColor","level","activeIndex","last","i","el","top","bottom","root","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_4","Table_Body","TableEmptyState","$0","Table_Row_1","Table_Cell","Table_Cell_1","$.template_effect","$.set_text","text_1","Table_Cell_2","typeColor","type","summary","a","n","status","from","to","c","data"],"ignoreList":[0,1,2,3,4],"sources":["../../../../../../node_modules/lucide-svelte/dist/icons/globe.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/maximize.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/minimize.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/pause.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/play.svelte","../../../../../../src/lib/components/issues/session-replay.svelte","../../../../../../src/lib/components/issues/session-logs-table.svelte","../../../../../../src/lib/components/issues/session-actions-table.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"10\" }], [\"path\", { \"d\": \"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\" }], [\"path\", { \"d\": \"M2 12h20\" }]];\n/**\n * @component @name Globe\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KICA8cGF0aCBkPSJNMTIgMmExNC41IDE0LjUgMCAwIDAgMCAyMCAxNC41IDE0LjUgMCAwIDAgMC0yMCIgLz4KICA8cGF0aCBkPSJNMiAxMmgyMCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/globe\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"globe\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M8 3H5a2 2 0 0 0-2 2v3\" }], [\"path\", { \"d\": \"M21 8V5a2 2 0 0 0-2-2h-3\" }], [\"path\", { \"d\": \"M3 16v3a2 2 0 0 0 2 2h3\" }], [\"path\", { \"d\": \"M16 21h3a2 2 0 0 0 2-2v-3\" }]];\n/**\n * @component @name Maximize\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOCAzSDVhMiAyIDAgMCAwLTIgMnYzIiAvPgogIDxwYXRoIGQ9Ik0yMSA4VjVhMiAyIDAgMCAwLTItMmgtMyIgLz4KICA8cGF0aCBkPSJNMyAxNnYzYTIgMiAwIDAgMCAyIDJoMyIgLz4KICA8cGF0aCBkPSJNMTYgMjFoM2EyIDIgMCAwIDAgMi0ydi0zIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/maximize\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"maximize\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M8 3v3a2 2 0 0 1-2 2H3\" }], [\"path\", { \"d\": \"M21 8h-3a2 2 0 0 1-2-2V3\" }], [\"path\", { \"d\": \"M3 16h3a2 2 0 0 1 2 2v3\" }], [\"path\", { \"d\": \"M16 21v-3a2 2 0 0 1 2-2h3\" }]];\n/**\n * @component @name Minimize\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOCAzdjNhMiAyIDAgMCAxLTIgMkgzIiAvPgogIDxwYXRoIGQ9Ik0yMSA4aC0zYTIgMiAwIDAgMS0yLTJWMyIgLz4KICA8cGF0aCBkPSJNMyAxNmgzYTIgMiAwIDAgMSAyIDJ2MyIgLz4KICA8cGF0aCBkPSJNMTYgMjF2LTNhMiAyIDAgMCAxIDItMmgzIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/minimize\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"minimize\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"rect\", { \"x\": \"14\", \"y\": \"3\", \"width\": \"5\", \"height\": \"18\", \"rx\": \"1\" }], [\"rect\", { \"x\": \"5\", \"y\": \"3\", \"width\": \"5\", \"height\": \"18\", \"rx\": \"1\" }]];\n/**\n * @component @name Pause\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB4PSIxNCIgeT0iMyIgd2lkdGg9IjUiIGhlaWdodD0iMTgiIHJ4PSIxIiAvPgogIDxyZWN0IHg9IjUiIHk9IjMiIHdpZHRoPSI1IiBoZWlnaHQ9IjE4IiByeD0iMSIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/pause\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"pause\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z\" }]];\n/**\n * @component @name Play\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNSA1YTIgMiAwIDAgMSAzLjAwOC0xLjcyOGwxMS45OTcgNi45OThhMiAyIDAgMCAxIC4wMDMgMy40NThsLTEyIDdBMiAyIDAgMCAxIDUgMTl6IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/play\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"play\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { onMount, onDestroy } from 'svelte';\n\timport { Globe, Play, Pause, Maximize, Minimize } from 'lucide-svelte';\n\timport type { eventWithTime } from '@rrweb/types';\n\t// Static side-effect import — keeps the rrweb-player stylesheet attached\n\t// to the page for the lifetime of the SPA, even across mount/unmount cycles.\n\t// A dynamic import inside onMount would let Vite's HMR dispose the style\n\t// node when the component unmounts, leaving the next mount with no\n\t// background fill on .replayer-wrapper until a hard refresh.\n\timport 'rrweb-player/dist/style.css';\n\n\tinterface FlutterVideoEvent {\n\t\ttype: 'flutter_video';\n\t\tdata: string;\n\t\tformat: string;\n\t\tfps: number;\n\t\tdurationSeconds: number;\n\t}\n\n\tinterface Props {\n\t\tevents: (eventWithTime & { data?: { href?: string } })[] | FlutterVideoEvent[] | null;\n\t\tonTimeUpdate?: (ms: number) => void;\n\t}\n\n\tlet { events, onTimeUpdate }: Props = $props();\n\tlet container: HTMLElement;\n\tlet player: any = null;\n\tlet resizeObserver: ResizeObserver | null = null;\n\tlet rafId: number | null = null;\n\tlet lastReportedMs = -1;\n\n\texport function seek(offsetMs: number) {\n\t\tconst ms = Math.max(0, offsetMs);\n\t\tif (isFlutterVideo && videoEl) {\n\t\t\tvideoEl.currentTime = ms / 1000;\n\t\t} else if (player) {\n\t\t\tplayer.goto(ms, false);\n\t\t}\n\t}\n\n\tlet isFlutterVideo = $derived(\n\t\tevents && events.length > 0 && (events[0] as any)?.type === 'flutter_video'\n\t);\n\n\tlet flutterVideoSrc = $derived.by(() => {\n\t\tif (!isFlutterVideo || !events) return '';\n\t\tconst evt = events[0] as unknown as FlutterVideoEvent;\n\t\treturn `data:video/mp4;base64,${evt.data}`;\n\t});\n\n\tlet videoEl: HTMLVideoElement;\n\tlet videoContainerEl: HTMLElement;\n\tlet playing = $state(false);\n\tlet currentTime = $state(0);\n\tlet duration = $state(0);\n\tlet playbackSpeed = $state(1);\n\tlet isFullscreen = $state(false);\n\tlet dragging = $state(false);\n\tlet progressPercent = $derived(duration > 0 ? (currentTime / duration) * 100 : 0);\n\n\tfunction formatTime(seconds: number): string {\n\t\tconst m = Math.floor(seconds / 60);\n\t\tconst s = Math.floor(seconds % 60);\n\t\treturn `${String(m).padStart(2, '0')}:${String(s).padStart(2, '0')}`;\n\t}\n\n\tfunction togglePlay() {\n\t\tif (!videoEl) return;\n\t\tif (videoEl.paused) {\n\t\t\tvideoEl.play();\n\t\t} else {\n\t\t\tvideoEl.pause();\n\t\t}\n\t}\n\n\tfunction setSpeed(speed: number) {\n\t\tplaybackSpeed = speed;\n\t\tif (videoEl) videoEl.playbackRate = speed;\n\t}\n\n\tfunction toggleFullscreen() {\n\t\tif (!videoContainerEl) return;\n\t\tif (document.fullscreenElement) {\n\t\t\tdocument.exitFullscreen();\n\t\t} else {\n\t\t\tvideoContainerEl.requestFullscreen();\n\t\t}\n\t}\n\n\tfunction handleProgressClick(e: MouseEvent) {\n\t\tif (!videoEl || !duration) return;\n\t\tconst target = e.currentTarget as HTMLElement;\n\t\tconst rect = target.getBoundingClientRect();\n\t\tconst ratio = Math.max(0, Math.min(1, (e.clientX - rect.left) / rect.width));\n\t\tvideoEl.currentTime = ratio * duration;\n\t}\n\n\tfunction handleProgressDragStart(e: MouseEvent) {\n\t\te.preventDefault();\n\t\tdragging = true;\n\t\tconst progressEl = (e.currentTarget as HTMLElement).parentElement!;\n\n\t\tconst onMove = (ev: MouseEvent) => {\n\t\t\tconst rect = progressEl.getBoundingClientRect();\n\t\t\tconst ratio = Math.max(0, Math.min(1, (ev.clientX - rect.left) / rect.width));\n\t\t\tcurrentTime = ratio * duration;\n\t\t\tif (videoEl) videoEl.currentTime = currentTime;\n\t\t};\n\n\t\tconst onUp = () => {\n\t\t\tdragging = false;\n\t\t\twindow.removeEventListener('mousemove', onMove);\n\t\t\twindow.removeEventListener('mouseup', onUp);\n\t\t};\n\n\t\twindow.addEventListener('mousemove', onMove);\n\t\twindow.addEventListener('mouseup', onUp);\n\t}\n\n\t$effect(() => {\n\t\tif (!videoEl) return;\n\n\t\tconst onVideoTimeUpdate = () => {\n\t\t\tif (!dragging) currentTime = videoEl.currentTime;\n\t\t\tonTimeUpdate?.(videoEl.currentTime * 1000);\n\t\t};\n\t\tconst onLoadedMetadata = () => {\n\t\t\tduration = videoEl.duration;\n\t\t};\n\t\tconst onPlay = () => {\n\t\t\tplaying = true;\n\t\t};\n\t\tconst onPause = () => {\n\t\t\tplaying = false;\n\t\t};\n\t\tconst onFullscreenChange = () => {\n\t\t\tisFullscreen = !!document.fullscreenElement;\n\t\t};\n\n\t\tvideoEl.addEventListener('timeupdate', onVideoTimeUpdate);\n\t\tvideoEl.addEventListener('loadedmetadata', onLoadedMetadata);\n\t\tvideoEl.addEventListener('play', onPlay);\n\t\tvideoEl.addEventListener('pause', onPause);\n\t\tdocument.addEventListener('fullscreenchange', onFullscreenChange);\n\n\t\treturn () => {\n\t\t\tvideoEl.removeEventListener('timeupdate', onVideoTimeUpdate);\n\t\t\tvideoEl.removeEventListener('loadedmetadata', onLoadedMetadata);\n\t\t\tvideoEl.removeEventListener('play', onPlay);\n\t\t\tvideoEl.removeEventListener('pause', onPause);\n\t\t\tdocument.removeEventListener('fullscreenchange', onFullscreenChange);\n\t\t};\n\t});\n\n\tlet pageUrl = $derived.by(() => {\n\t\tif (!events || events.length === 0 || isFlutterVideo) return '';\n\t\tconst metaEvent = events.find((e: any) => e.type === 4);\n\t\treturn metaEvent?.data?.href ?? '';\n\t});\n\n\tfunction getPlayerHeight(width: number): number {\n\t\treturn Math.round((width * 9) / 16);\n\t}\n\n\tonMount(async () => {\n\t\tif (!events || events.length === 0 || isFlutterVideo) return;\n\n\t\tconst { default: rrwebPlayer } = await import('rrweb-player');\n\n\t\tconst width = Math.round(container.clientWidth * 0.75);\n\n\t\tconst chartColor = getComputedStyle(container).getPropertyValue('--chart-1').trim();\n\n\t\tplayer = new rrwebPlayer({\n\t\t\ttarget: container,\n\t\t\tprops: {\n\t\t\t\tevents,\n\t\t\t\twidth,\n\t\t\t\theight: getPlayerHeight(width),\n\t\t\t\tautoPlay: false,\n\t\t\t\tmouseTail: {\n\t\t\t\t\tstrokeStyle: chartColor\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tresizeObserver = new ResizeObserver((entries) => {\n\t\t\tfor (const entry of entries) {\n\t\t\t\tconst newWidth = Math.round(entry.contentRect.width * 0.75);\n\t\t\t\tif (player && newWidth > 0) {\n\t\t\t\t\tplayer.$set({ width: newWidth, height: getPlayerHeight(newWidth) });\n\t\t\t\t\tplayer.triggerResize();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tresizeObserver.observe(container);\n\n\t\tconst pollTime = () => {\n\t\t\tif (!player) return;\n\t\t\ttry {\n\t\t\t\tconst t = player.getReplayer().getCurrentTime();\n\t\t\t\tif (t !== lastReportedMs) {\n\t\t\t\t\tlastReportedMs = t;\n\t\t\t\t\tonTimeUpdate?.(t);\n\t\t\t\t}\n\t\t\t} catch {\n\t\t\t\t// Replayer may briefly be unavailable during init/destroy\n\t\t\t}\n\t\t\trafId = requestAnimationFrame(pollTime);\n\t\t};\n\t\trafId = requestAnimationFrame(pollTime);\n\t});\n\n\tonDestroy(() => {\n\t\tif (rafId !== null) cancelAnimationFrame(rafId);\n\t\tresizeObserver?.disconnect();\n\t\tif (player) player.$destroy();\n\t});\n</script>\n\n{#if events && events.length > 0}\n\t<div class=\"player-wrapper overflow-hidden\">\n\t\t{#if isFlutterVideo}\n\t\t\t<div class=\"url-bar\">\n\t\t\t\t<img src=\"/flutter.png\" alt=\"Flutter\" class=\"flutter-icon\" />\n\t\t\t\t<span class=\"url-bar-text\">Flutter Screen Recording</span>\n\t\t\t</div>\n\t\t\t<div class=\"flutter-video-container\" bind:this={videoContainerEl}>\n\t\t\t\t<video\n\t\t\t\t\tbind:this={videoEl}\n\t\t\t\t\tsrc={flutterVideoSrc}\n\t\t\t\t\tplaysinline\n\t\t\t\t\tloop\n\t\t\t\t\tonclick={togglePlay}\n\t\t\t\t>\n\t\t\t\t\t<track kind=\"captions\" />\n\t\t\t\t</video>\n\t\t\t\t<div class=\"fv-controller\">\n\t\t\t\t\t<div class=\"fv-timeline\">\n\t\t\t\t\t\t<span class=\"fv-timeline__time\">{formatTime(currentTime)}</span>\n\t\t\t\t\t\t<!-- svelte-ignore a11y_no_static_element_interactions -->\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"fv-progress\"\n\t\t\t\t\t\t\trole=\"slider\"\n\t\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t\taria-valuemin={0}\n\t\t\t\t\t\t\taria-valuemax={duration}\n\t\t\t\t\t\t\taria-valuenow={currentTime}\n\t\t\t\t\t\t\tonclick={handleProgressClick}\n\t\t\t\t\t\t\tonkeydown={(e) => {\n\t\t\t\t\t\t\t\tif (!videoEl) return;\n\t\t\t\t\t\t\t\tif (e.key === 'ArrowRight') videoEl.currentTime = Math.min(duration, currentTime + 5);\n\t\t\t\t\t\t\t\tif (e.key === 'ArrowLeft') videoEl.currentTime = Math.max(0, currentTime - 5);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<div class=\"fv-progress__step\" style:width=\"{progressPercent}%\"></div>\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"fv-progress__handler\"\n\t\t\t\t\t\t\t\tstyle:left=\"{progressPercent}%\"\n\t\t\t\t\t\t\t\tonmousedown={handleProgressDragStart}\n\t\t\t\t\t\t\t></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<span class=\"fv-timeline__time\">{formatTime(duration)}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"fv-controller__btns\">\n\t\t\t\t\t\t<button onclick={togglePlay}>\n\t\t\t\t\t\t\t{#if playing}\n\t\t\t\t\t\t\t\t<Pause size={16} />\n\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t<Play size={16} />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t{#each [1, 2, 4, 8] as s}\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\tclass:active={playbackSpeed === s}\n\t\t\t\t\t\t\t\tonclick={() => setSpeed(s)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{s}x\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t<button onclick={toggleFullscreen}>\n\t\t\t\t\t\t\t{#if isFullscreen}\n\t\t\t\t\t\t\t\t<Minimize size={16} />\n\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t<Maximize size={16} />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{:else}\n\t\t\t{#if pageUrl}\n\t\t\t\t<div class=\"url-bar\">\n\t\t\t\t\t<Globe />\n\t\t\t\t\t<span class=\"url-bar-text\">{pageUrl}</span>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t\t<div bind:this={container} class=\"player-container\"></div>\n\t\t{/if}\n\t</div>\n{/if}\n\n<style>\n\t.url-bar {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: 8px;\n\t\tpadding: 8px 12px;\n\t\tborder-bottom: 1px solid var(--border);\n\t\tborder-top: 1px solid var(--border);\n\t\tcolor: var(--muted-foreground);\n\t}\n\n\t.url-bar :global(svg) {\n\t\twidth: 14px;\n\t\theight: 14px;\n\t\tflex-shrink: 0;\n\t}\n\n\t.flutter-icon {\n\t\twidth: 14px;\n\t\theight: 14px;\n\t\tflex-shrink: 0;\n\t}\n\n\t.url-bar-text {\n\t\tfont-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n\t\tfont-size: 12px;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t}\n\n\t.player-container {\n\t\twidth: 100%;\n\t}\n\n\t/* rrweb player root */\n\t.player-wrapper :global(.rr-player) {\n\t\twidth: 100% !important;\n\t\theight: auto !important;\n\t\tbackground: transparent !important;\n\t\tbox-shadow: none !important;\n\t\tborder-radius: 0 !important;\n\t}\n\n\t.player-wrapper :global(.rr-player__frame) {\n\t\tmargin: 0 auto !important;\n\t}\n\n\t/* Controller bar */\n\t.player-wrapper :global(.rr-controller) {\n\t\tbackground: var(--muted) !important;\n\t\tborder-top: 1px solid var(--border) !important;\n\t\tborder-radius: 0px 0px 9px 9px !important;\n\t}\n\n\t/* Timeline */\n\t.player-wrapper :global(.rr-timeline) {\n\t\twidth: 100% !important;\n\t}\n\n\t.player-wrapper :global(.rr-timeline__time) {\n\t\tfont-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n\t\tfont-size: 12px !important;\n\t\tcolor: var(--muted-foreground) !important;\n\t}\n\n\t/* Progress track */\n\t.player-wrapper :global(.rr-progress) {\n\t\theight: 6px !important;\n\t\tbackground: var(--border) !important;\n\t\tborder-radius: 3px !important;\n\t}\n\n\t/* Progress fill */\n\t.player-wrapper :global(.rr-progress__step) {\n\t\tbackground: var(--chart-1) !important;\n\t\tborder-radius: 3px !important;\n\t}\n\n\t/* Progress handle */\n\t.player-wrapper :global(.rr-progress__handler) {\n\t\twidth: 14px !important;\n\t\theight: 14px !important;\n\t\tbackground: var(--chart-1) !important;\n\t\tborder-radius: 50% !important;\n\t\ttop: -0px !important;\n\t}\n\n\t/* Buttons */\n\t.player-wrapper :global(.rr-controller__btns button) {\n\t\tcolor: var(--foreground) !important;\n\t}\n\n\t.player-wrapper :global(.rr-controller__btns button svg) {\n\t\tfill: currentColor;\n\t}\n\n\t.player-wrapper :global(.rr-controller__btns button:hover) {\n\t\tbackground: var(--accent) !important;\n\t}\n\n\t.player-wrapper :global(.rr-controller__btns button.active) {\n\t\tbackground: var(--chart-1) !important;\n\t}\n\n\t.player-wrapper :global(.rr-controller__btns button:active) {\n\t\tbackground: var(--chart-1) !important;\n\t\topacity: 0.8;\n\t}\n\n\t/* Switch toggle */\n\t.player-wrapper :global(.switch label:before) {\n\t\tbackground: var(--border) !important;\n\t}\n\n\t.player-wrapper :global(.switch input[type='checkbox']:checked + label:before) {\n\t\tbackground: var(--chart-1) !important;\n\t}\n\n\t/* Replayer wrapper */\n\t.player-wrapper :global(.replayer-wrapper) {\n\t\tborder-color: transparent !important;\n\t}\n\n\t.player-wrapper :global(.replayer-wrapper.touch-active) {\n\t\tborder-color: var(--chart-1) !important;\n\t}\n\n\t/* Mouse cursor */\n\t.player-wrapper :global(.replayer-mouse) {\n\t\tbackground-image: url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMDBweCcgaGVpZ2h0PSczMDBweCcgdmlld0JveD0nMCAwIDUwIDUwJz48cGF0aCBkPSdNNSAyTDUgNDNMMTQuNSAzM0wyMyA0OEwzMCA0NC41TDIxLjUgMjkuNUwzNSAyOS41WicgZmlsbD0nIzAwMDAwMCcgc3Ryb2tlPScjZmZmZmZmJyBzdHJva2Utd2lkdGg9JzIuNScgc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcvPjwvc3ZnPg==') !important;\n\t}\n\n\t/* Flutter video player */\n\t.flutter-video-container {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tbackground: var(--muted);\n\t\tmin-height: 300px;\n\t}\n\n\t.flutter-video-container video {\n\t\tmax-width: 100%;\n\t\tmax-height: 70vh;\n\t\tbackground: #000;\n\t\tcursor: pointer;\n\t\tflex: 1;\n\t}\n\n\t.flutter-video-container:fullscreen {\n\t\tbackground: #000;\n\t\tjustify-content: center;\n\t}\n\n\t.flutter-video-container:fullscreen video {\n\t\tmax-height: calc(100vh - 80px);\n\t}\n\n\t.flutter-video-container:fullscreen .fv-controller {\n\t\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\topacity: 0;\n\t\ttransition: opacity 0.2s;\n\t}\n\n\t.flutter-video-container:fullscreen:hover .fv-controller {\n\t\topacity: 1;\n\t}\n\n\t.fv-controller {\n\t\twidth: 100%;\n\t\tbackground: var(--muted);\n\t\tborder-top: 1px solid var(--border);\n\t\tborder-radius: 0px 0px 9px 9px;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content: space-around;\n\t\talign-items: center;\n\t\tpadding: 8px 0;\n\t}\n\n\t.fv-timeline {\n\t\twidth: 80%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding: 8px 0;\n\t}\n\n\t.fv-timeline__time {\n\t\tdisplay: inline-block;\n\t\twidth: 80px;\n\t\ttext-align: center;\n\t\tfont-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n\t\tfont-size: 12px;\n\t\tcolor: var(--muted-foreground);\n\t}\n\n\t.fv-progress {\n\t\tflex: 1;\n\t\theight: 6px;\n\t\tbackground: var(--border);\n\t\tposition: relative;\n\t\tborder-radius: 3px;\n\t\tcursor: pointer;\n\t}\n\n\t.fv-progress__step {\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\tbackground: var(--chart-1);\n\t\tborder-radius: 3px;\n\t}\n\n\t.fv-progress__handler {\n\t\twidth: 14px;\n\t\theight: 14px;\n\t\tbackground: var(--chart-1);\n\t\tborder-radius: 50%;\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\tcursor: grab;\n\t}\n\n\t.fv-progress__handler:active {\n\t\tcursor: grabbing;\n\t}\n\n\t.fv-controller__btns {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tfont-size: 13px;\n\t\tgap: 2px;\n\t}\n\n\t.fv-controller__btns button {\n\t\twidth: 32px;\n\t\theight: 32px;\n\t\tdisplay: flex;\n\t\tpadding: 0;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbackground: none;\n\t\tborder: none;\n\t\tborder-radius: 50%;\n\t\tcursor: pointer;\n\t\tcolor: var(--foreground);\n\t}\n\n\t.fv-controller__btns button:hover {\n\t\tbackground: var(--accent);\n\t}\n\n\t.fv-controller__btns button.active {\n\t\tbackground: var(--chart-1);\n\t\tcolor: #fff;\n\t}\n\n\t.fv-controller__btns button:active {\n\t\tbackground: var(--chart-1);\n\t\topacity: 0.8;\n\t}\n</style>\n","<script lang=\"ts\">\n\timport * as Table from '$lib/components/ui/table';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport type { SessionLogEvent, SessionLogLevel } from '$lib/types/exceptions';\n\n\tinterface Props {\n\t\tlogs: SessionLogEvent[];\n\t\tstartedAt?: string;\n\t\tcurrentTimeMs?: number;\n\t\tonSeek?: (offsetMs: number) => void;\n\t}\n\n\tlet { logs, startedAt, currentTimeMs, onSeek }: Props = $props();\n\n\tlet scrollEl: HTMLDivElement | undefined = $state();\n\n\tfunction offsetMs(timestamp: string): number {\n\t\tif (!startedAt) return 0;\n\t\tconst start = Date.parse(startedAt);\n\t\tconst t = Date.parse(timestamp);\n\t\tif (!Number.isFinite(start) || !Number.isFinite(t)) return 0;\n\t\treturn t - start;\n\t}\n\n\tfunction formatOffset(timestamp: string): string {\n\t\tif (!startedAt) return timestamp;\n\t\tconst start = Date.parse(startedAt);\n\t\tconst t = Date.parse(timestamp);\n\t\tif (!Number.isFinite(start) || !Number.isFinite(t)) return timestamp;\n\t\tconst deltaMs = t - start;\n\t\tif (Math.abs(deltaMs) >= 1000) {\n\t\t\tconst sign = deltaMs >= 0 ? '+' : '-';\n\t\t\treturn `${sign}${(Math.abs(deltaMs) / 1000).toFixed(2)}s`;\n\t\t}\n\t\tconst sign = deltaMs >= 0 ? '+' : '-';\n\t\treturn `${sign}${Math.abs(deltaMs)}ms`;\n\t}\n\n\tfunction levelColor(level: SessionLogLevel): string {\n\t\tswitch (level) {\n\t\t\tcase 'error':\n\t\t\t\treturn 'text-destructive';\n\t\t\tcase 'warn':\n\t\t\t\treturn 'text-yellow-600 dark:text-yellow-500';\n\t\t\tcase 'debug':\n\t\t\t\treturn 'text-muted-foreground';\n\t\t\tdefault:\n\t\t\t\treturn 'text-foreground';\n\t\t}\n\t}\n\n\tconst activeIndex = $derived.by(() => {\n\t\tif (currentTimeMs == null) return -1;\n\t\tlet last = -1;\n\t\tfor (let i = 0; i < logs.length; i++) {\n\t\t\tif (offsetMs(logs[i].timestamp) <= currentTimeMs) last = i;\n\t\t\telse break;\n\t\t}\n\t\treturn last;\n\t});\n\n\t$effect(() => {\n\t\tconst i = activeIndex;\n\t\tif (i < 0 || !scrollEl) return;\n\t\tconst el = scrollEl.querySelectorAll<HTMLTableRowElement>('tbody tr')[i];\n\t\tif (!el) return;\n\t\tconst top = el.offsetTop;\n\t\tconst bottom = top + el.offsetHeight;\n\t\tif (top < scrollEl.scrollTop) {\n\t\t\tscrollEl.scrollTo({ top, behavior: 'smooth' });\n\t\t} else if (bottom > scrollEl.scrollTop + scrollEl.clientHeight) {\n\t\t\tscrollEl.scrollTo({ top: bottom - scrollEl.clientHeight, behavior: 'smooth' });\n\t\t}\n\t});\n</script>\n\n<div bind:this={scrollEl} class=\"rounded-md border max-h-[440px] overflow-y-auto\">\n\t<Table.Root>\n\t\t{#if logs.length > 0}\n\t\t\t<Table.Header class=\"sticky top-0 bg-background z-10\">\n\t\t\t\t<Table.Row>\n\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\tlabel=\"Time\"\n\t\t\t\t\t\ttooltip=\"Offset from the start of the session recording\"\n\t\t\t\t\t\tclass=\"w-[110px]\"\n\t\t\t\t\t/>\n\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\tlabel=\"Level\"\n\t\t\t\t\t\ttooltip=\"Console severity (debug / info / warn / error)\"\n\t\t\t\t\t\tclass=\"w-[80px]\"\n\t\t\t\t\t/>\n\t\t\t\t\t<TracewayTableHeader label=\"Message\" tooltip=\"The console line as captured\" />\n\t\t\t\t</Table.Row>\n\t\t\t</Table.Header>\n\t\t{/if}\n\t\t<Table.Body>\n\t\t\t{#if logs.length === 0}\n\t\t\t\t<TableEmptyState colspan={3} message=\"No logs captured for this session.\" />\n\t\t\t{:else}\n\t\t\t\t{#each logs as entry, i}\n\t\t\t\t\t<Table.Row\n\t\t\t\t\t\tonclick={() => onSeek?.(offsetMs(entry.timestamp))}\n\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50 {i === activeIndex\n\t\t\t\t\t\t\t? 'bg-primary/10 border-l-2 border-l-primary'\n\t\t\t\t\t\t\t: ''}\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<Table.Cell class=\"font-mono text-xs text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t{formatOffset(entry.timestamp)}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t<Table.Cell class=\"font-mono text-xs uppercase {levelColor(entry.level)}\">\n\t\t\t\t\t\t\t{entry.level}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\tclass=\"font-mono text-xs whitespace-pre-wrap break-all\"\n\t\t\t\t\t\t\ttitle={entry.message}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{entry.message}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t{/each}\n\t\t\t{/if}\n\t\t</Table.Body>\n\t</Table.Root>\n</div>\n","<script lang=\"ts\">\n\timport * as Table from '$lib/components/ui/table';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport type {\n\t\tSessionActionEvent,\n\t\tSessionNetworkEvent,\n\t\tSessionNavigationEvent,\n\t\tSessionCustomEvent\n\t} from '$lib/types/exceptions';\n\n\tinterface Props {\n\t\tactions: SessionActionEvent[];\n\t\tstartedAt?: string;\n\t\tcurrentTimeMs?: number;\n\t\tonSeek?: (offsetMs: number) => void;\n\t}\n\n\tlet { actions, startedAt, currentTimeMs, onSeek }: Props = $props();\n\n\tlet scrollEl: HTMLDivElement | undefined = $state();\n\n\tfunction offsetMs(timestamp: string): number {\n\t\tif (!startedAt) return 0;\n\t\tconst start = Date.parse(startedAt);\n\t\tconst t = Date.parse(timestamp);\n\t\tif (!Number.isFinite(start) || !Number.isFinite(t)) return 0;\n\t\treturn t - start;\n\t}\n\n\tfunction formatOffset(timestamp: string): string {\n\t\tif (!startedAt) return timestamp;\n\t\tconst start = Date.parse(startedAt);\n\t\tconst t = Date.parse(timestamp);\n\t\tif (!Number.isFinite(start) || !Number.isFinite(t)) return timestamp;\n\t\tconst deltaMs = t - start;\n\t\tif (Math.abs(deltaMs) >= 1000) {\n\t\t\tconst sign = deltaMs >= 0 ? '+' : '-';\n\t\t\treturn `${sign}${(Math.abs(deltaMs) / 1000).toFixed(2)}s`;\n\t\t}\n\t\tconst sign = deltaMs >= 0 ? '+' : '-';\n\t\treturn `${sign}${Math.abs(deltaMs)}ms`;\n\t}\n\n\tfunction typeColor(type: SessionActionEvent['type']): string {\n\t\tswitch (type) {\n\t\t\tcase 'network':\n\t\t\t\treturn 'text-sky-600 dark:text-sky-400';\n\t\t\tcase 'navigation':\n\t\t\t\treturn 'text-violet-600 dark:text-violet-400';\n\t\t\tcase 'custom':\n\t\t\t\treturn 'text-amber-600 dark:text-amber-400';\n\t\t\tdefault:\n\t\t\t\treturn 'text-foreground';\n\t\t}\n\t}\n\n\tfunction summary(a: SessionActionEvent): string {\n\t\tswitch (a.type) {\n\t\t\tcase 'network': {\n\t\t\t\tconst n = a as SessionNetworkEvent;\n\t\t\t\tconst status = n.statusCode ?? (n.error ? 'ERR' : '?');\n\t\t\t\treturn `${n.method} ${n.url} → ${status} (${n.durationMs}ms)`;\n\t\t\t}\n\t\t\tcase 'navigation': {\n\t\t\t\tconst n = a as SessionNavigationEvent;\n\t\t\t\tconst from = n.from ?? '?';\n\t\t\t\tconst to = n.to ?? '?';\n\t\t\t\treturn `${n.action}: ${from} → ${to}`;\n\t\t\t}\n\t\t\tcase 'custom': {\n\t\t\t\tconst c = a as SessionCustomEvent;\n\t\t\t\tconst data = c.data ? ` ${JSON.stringify(c.data)}` : '';\n\t\t\t\treturn `${c.category}/${c.name}${data}`;\n\t\t\t}\n\t\t}\n\t}\n\n\tconst activeIndex = $derived.by(() => {\n\t\tif (currentTimeMs == null) return -1;\n\t\tlet last = -1;\n\t\tfor (let i = 0; i < actions.length; i++) {\n\t\t\tif (offsetMs(actions[i].timestamp) <= currentTimeMs) last = i;\n\t\t\telse break;\n\t\t}\n\t\treturn last;\n\t});\n\n\t$effect(() => {\n\t\tconst i = activeIndex;\n\t\tif (i < 0 || !scrollEl) return;\n\t\tconst el = scrollEl.querySelectorAll<HTMLTableRowElement>('tbody tr')[i];\n\t\tif (!el) return;\n\t\tconst top = el.offsetTop;\n\t\tconst bottom = top + el.offsetHeight;\n\t\tif (top < scrollEl.scrollTop) {\n\t\t\tscrollEl.scrollTo({ top, behavior: 'smooth' });\n\t\t} else if (bottom > scrollEl.scrollTop + scrollEl.clientHeight) {\n\t\t\tscrollEl.scrollTo({ top: bottom - scrollEl.clientHeight, behavior: 'smooth' });\n\t\t}\n\t});\n</script>\n\n<div bind:this={scrollEl} class=\"rounded-md border max-h-[440px] overflow-y-auto\">\n\t<Table.Root>\n\t\t{#if actions.length > 0}\n\t\t\t<Table.Header class=\"sticky top-0 bg-background z-10\">\n\t\t\t\t<Table.Row>\n\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\tlabel=\"Time\"\n\t\t\t\t\t\ttooltip=\"Offset from the start of the session recording\"\n\t\t\t\t\t\tclass=\"w-[110px]\"\n\t\t\t\t\t/>\n\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\tlabel=\"Type\"\n\t\t\t\t\t\ttooltip=\"Network / navigation / custom\"\n\t\t\t\t\t\tclass=\"w-[110px]\"\n\t\t\t\t\t/>\n\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\tlabel=\"Details\"\n\t\t\t\t\t\ttooltip=\"One-line summary; full payload visible on hover\"\n\t\t\t\t\t/>\n\t\t\t\t</Table.Row>\n\t\t\t</Table.Header>\n\t\t{/if}\n\t\t<Table.Body>\n\t\t\t{#if actions.length === 0}\n\t\t\t\t<TableEmptyState colspan={3} message=\"No actions captured for this session.\" />\n\t\t\t{:else}\n\t\t\t\t{#each actions as entry, i}\n\t\t\t\t\t<Table.Row\n\t\t\t\t\t\tonclick={() => onSeek?.(offsetMs(entry.timestamp))}\n\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50 {i === activeIndex\n\t\t\t\t\t\t\t? 'bg-primary/10 border-l-2 border-l-primary'\n\t\t\t\t\t\t\t: ''}\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<Table.Cell class=\"font-mono text-xs text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t{formatOffset(entry.timestamp)}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t<Table.Cell class=\"font-mono text-xs uppercase {typeColor(entry.type)}\">\n\t\t\t\t\t\t\t{entry.type}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\tclass=\"font-mono text-xs truncate max-w-[600px]\"\n\t\t\t\t\t\t\ttitle={summary(entry)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{summary(entry)}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t{/each}\n\t\t\t{/if}\n\t\t</Table.Body>\n\t</Table.Root>\n</div>\n"],"file":"BOK8K7n_.js"}
\ No newline at end of file
+{"version":3,"mappings":"ipBAAA,kEA6CMA,EAAQ,EAAK,SAAQ,CAAI,GAAM,KAAM,GAAM,KAAM,EAAK,KAAI,GAAM,OAAU,GAAK,iDAAiD,IAAM,OAAM,CAAI,EAAK,UAAU,IAcpKC,GAAIC,EAAAC,GAAA,mBAAAC,EAAA,uBAAqCJ,8FAF1C,iBCzDA,kEA6CMA,EAAQ,EAAK,OAAM,CAAI,EAAK,yBAAwB,GAAM,OAAM,CAAI,EAAK,2BAA0B,GAAM,OAAM,CAAI,EAAK,0BAAyB,GAAM,OAAM,CAAI,EAAK,2BAA2B,IActMC,GAAIC,EAAAC,GAAA,sBAAAC,EAAA,uBAAwCJ,8FAF7C,iBCzDA,kEA6CMA,EAAQ,EAAK,OAAM,CAAI,EAAK,yBAAwB,GAAM,OAAM,CAAI,EAAK,2BAA0B,GAAM,OAAM,CAAI,EAAK,0BAAyB,GAAM,OAAM,CAAI,EAAK,2BAA2B,IActMC,GAAIC,EAAAC,GAAA,sBAAAC,EAAA,uBAAwCJ,8FAF7C,iBCzDA,kEA6CMA,EAAQ,EAAK,OAAU,GAAK,KAAM,EAAK,IAAK,MAAS,IAAK,OAAU,KAAM,GAAM,GAAG,IAAM,OAAU,GAAK,IAAK,EAAK,IAAK,MAAS,IAAK,OAAU,KAAM,GAAM,GAAG,IAcnKC,GAAIC,EAAAC,GAAA,mBAAAC,EAAA,uBAAqCJ,8FAF1C,iBCzDA,kEA6CMA,EA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AM9I,EAAA,6GAIL2I,GAAAJ,IAAAK,GAAAhD,GAAA2C,EAAA,OAAAU,IAAQvF,CAAK,mGApBL5C,EAAA,iBAAW,EAACuE,EAAAa,EAAA,EAAAb,EAAAE,EAAA,2EAvB3BxB,CAAG,KAAHA,EAAGQ,GAAAtC,EAAYiF,EAAQ3C,CAAA,MAAAvD,EAARkG,CAAQ,OAAvBnD,CAAG,MAFJ","names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","container","player","resizeObserver","rafId","lastReportedMs","seek","offsetMs","ms","isFlutterVideo","videoEl","$.derived","$$props","flutterVideoSrc","$.get","videoContainerEl","playing","$.state","currentTime","duration","playbackSpeed","isFullscreen","dragging","progressPercent","formatTime","seconds","m","s","togglePlay","setSpeed","speed","$.set","toggleFullscreen","handleProgressClick","e","rect","ratio","handleProgressDragStart","progressEl","onMove","ev","onUp","$.user_effect","onVideoTimeUpdate","onLoadedMetadata","onPlay","onPause","onFullscreenChange","pageUrl","getPlayerHeight","width","onMount","rrwebPlayer","__vitePreload","chartColor","entries","entry","newWidth","pollTime","t","onDestroy","div","root_1","div_1","$.sibling","$.first_child","fragment_1","video","$.child","$$value","div_2","div_3","span","div_4","$.set_attribute","div_5","div_6","$.reset","span_1","div_7","button","Pause","Play","$$render","consequent","alternate","$.each","node_3","button_1","root_5","text_2","classes","$.append","button_2","Minimize","Maximize","consequent_1","alternate_1","styles","$.set_style","styles_1","div_8","root_9","Globe","node_6","span_2","consequent_3","div_9","node_5","consequent_2","alternate_2","consequent_4","scrollEl","timestamp","start","formatOffset","deltaMs","levelColor","level","activeIndex","last","i","el","top","bottom","root","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_4","Table_Body","TableEmptyState","$0","Table_Row_1","Table_Cell","Table_Cell_1","$.template_effect","$.set_text","text_1","Table_Cell_2","typeColor","type","summary","a","n","status","from","to","c","data"],"ignoreList":[0,1,2,3,4],"sources":["../../../../../../node_modules/lucide-svelte/dist/icons/globe.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/maximize.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/minimize.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/pause.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/play.svelte","../../../../../../src/lib/components/issues/session-replay.svelte","../../../../../../src/lib/components/issues/session-logs-table.svelte","../../../../../../src/lib/components/issues/session-actions-table.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"10\" }], [\"path\", { \"d\": \"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\" }], [\"path\", { \"d\": \"M2 12h20\" }]];\n/**\n * @component @name Globe\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KICA8cGF0aCBkPSJNMTIgMmExNC41IDE0LjUgMCAwIDAgMCAyMCAxNC41IDE0LjUgMCAwIDAgMC0yMCIgLz4KICA8cGF0aCBkPSJNMiAxMmgyMCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/globe\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"globe\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M8 3H5a2 2 0 0 0-2 2v3\" }], [\"path\", { \"d\": \"M21 8V5a2 2 0 0 0-2-2h-3\" }], [\"path\", { \"d\": \"M3 16v3a2 2 0 0 0 2 2h3\" }], [\"path\", { \"d\": \"M16 21h3a2 2 0 0 0 2-2v-3\" }]];\n/**\n * @component @name Maximize\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOCAzSDVhMiAyIDAgMCAwLTIgMnYzIiAvPgogIDxwYXRoIGQ9Ik0yMSA4VjVhMiAyIDAgMCAwLTItMmgtMyIgLz4KICA8cGF0aCBkPSJNMyAxNnYzYTIgMiAwIDAgMCAyIDJoMyIgLz4KICA8cGF0aCBkPSJNMTYgMjFoM2EyIDIgMCAwIDAgMi0ydi0zIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/maximize\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"maximize\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M8 3v3a2 2 0 0 1-2 2H3\" }], [\"path\", { \"d\": \"M21 8h-3a2 2 0 0 1-2-2V3\" }], [\"path\", { \"d\": \"M3 16h3a2 2 0 0 1 2 2v3\" }], [\"path\", { \"d\": \"M16 21v-3a2 2 0 0 1 2-2h3\" }]];\n/**\n * @component @name Minimize\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOCAzdjNhMiAyIDAgMCAxLTIgMkgzIiAvPgogIDxwYXRoIGQ9Ik0yMSA4aC0zYTIgMiAwIDAgMS0yLTJWMyIgLz4KICA8cGF0aCBkPSJNMyAxNmgzYTIgMiAwIDAgMSAyIDJ2MyIgLz4KICA8cGF0aCBkPSJNMTYgMjF2LTNhMiAyIDAgMCAxIDItMmgzIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/minimize\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"minimize\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"rect\", { \"x\": \"14\", \"y\": \"3\", \"width\": \"5\", \"height\": \"18\", \"rx\": \"1\" }], [\"rect\", { \"x\": \"5\", \"y\": \"3\", \"width\": \"5\", \"height\": \"18\", \"rx\": \"1\" }]];\n/**\n * @component @name Pause\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB4PSIxNCIgeT0iMyIgd2lkdGg9IjUiIGhlaWdodD0iMTgiIHJ4PSIxIiAvPgogIDxyZWN0IHg9IjUiIHk9IjMiIHdpZHRoPSI1IiBoZWlnaHQ9IjE4IiByeD0iMSIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/pause\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"pause\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z\" }]];\n/**\n * @component @name Play\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNSA1YTIgMiAwIDAgMSAzLjAwOC0xLjcyOGwxMS45OTcgNi45OThhMiAyIDAgMCAxIC4wMDMgMy40NThsLTEyIDdBMiAyIDAgMCAxIDUgMTl6IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/play\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"play\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { onMount, onDestroy } from 'svelte';\n\timport { Globe, Play, Pause, Maximize, Minimize } from 'lucide-svelte';\n\timport type { eventWithTime } from '@rrweb/types';\n\t// Static side-effect import — keeps the rrweb-player stylesheet attached\n\t// to the page for the lifetime of the SPA, even across mount/unmount cycles.\n\t// A dynamic import inside onMount would let Vite's HMR dispose the style\n\t// node when the component unmounts, leaving the next mount with no\n\t// background fill on .replayer-wrapper until a hard refresh.\n\timport 'rrweb-player/dist/style.css';\n\n\tinterface FlutterVideoEvent {\n\t\ttype: 'flutter_video';\n\t\tdata: string;\n\t\tformat: string;\n\t\tfps: number;\n\t\tdurationSeconds: number;\n\t}\n\n\tinterface Props {\n\t\tevents: (eventWithTime & { data?: { href?: string } })[] | FlutterVideoEvent[] | null;\n\t\tonTimeUpdate?: (ms: number) => void;\n\t}\n\n\tlet { events, onTimeUpdate }: Props = $props();\n\tlet container: HTMLElement;\n\tlet player: any = null;\n\tlet resizeObserver: ResizeObserver | null = null;\n\tlet rafId: number | null = null;\n\tlet lastReportedMs = -1;\n\n\texport function seek(offsetMs: number) {\n\t\tconst ms = Math.max(0, offsetMs);\n\t\tif (isFlutterVideo && videoEl) {\n\t\t\tvideoEl.currentTime = ms / 1000;\n\t\t} else if (player) {\n\t\t\tplayer.goto(ms, false);\n\t\t}\n\t}\n\n\tlet isFlutterVideo = $derived(\n\t\tevents && events.length > 0 && (events[0] as any)?.type === 'flutter_video'\n\t);\n\n\tlet flutterVideoSrc = $derived.by(() => {\n\t\tif (!isFlutterVideo || !events) return '';\n\t\tconst evt = events[0] as unknown as FlutterVideoEvent;\n\t\treturn `data:video/mp4;base64,${evt.data}`;\n\t});\n\n\tlet videoEl: HTMLVideoElement;\n\tlet videoContainerEl: HTMLElement;\n\tlet playing = $state(false);\n\tlet currentTime = $state(0);\n\tlet duration = $state(0);\n\tlet playbackSpeed = $state(1);\n\tlet isFullscreen = $state(false);\n\tlet dragging = $state(false);\n\tlet progressPercent = $derived(duration > 0 ? (currentTime / duration) * 100 : 0);\n\n\tfunction formatTime(seconds: number): string {\n\t\tconst m = Math.floor(seconds / 60);\n\t\tconst s = Math.floor(seconds % 60);\n\t\treturn `${String(m).padStart(2, '0')}:${String(s).padStart(2, '0')}`;\n\t}\n\n\tfunction togglePlay() {\n\t\tif (!videoEl) return;\n\t\tif (videoEl.paused) {\n\t\t\tvideoEl.play();\n\t\t} else {\n\t\t\tvideoEl.pause();\n\t\t}\n\t}\n\n\tfunction setSpeed(speed: number) {\n\t\tplaybackSpeed = speed;\n\t\tif (videoEl) videoEl.playbackRate = speed;\n\t}\n\n\tfunction toggleFullscreen() {\n\t\tif (!videoContainerEl) return;\n\t\tif (document.fullscreenElement) {\n\t\t\tdocument.exitFullscreen();\n\t\t} else {\n\t\t\tvideoContainerEl.requestFullscreen();\n\t\t}\n\t}\n\n\tfunction handleProgressClick(e: MouseEvent) {\n\t\tif (!videoEl || !duration) return;\n\t\tconst target = e.currentTarget as HTMLElement;\n\t\tconst rect = target.getBoundingClientRect();\n\t\tconst ratio = Math.max(0, Math.min(1, (e.clientX - rect.left) / rect.width));\n\t\tvideoEl.currentTime = ratio * duration;\n\t}\n\n\tfunction handleProgressDragStart(e: MouseEvent) {\n\t\te.preventDefault();\n\t\tdragging = true;\n\t\tconst progressEl = (e.currentTarget as HTMLElement).parentElement!;\n\n\t\tconst onMove = (ev: MouseEvent) => {\n\t\t\tconst rect = progressEl.getBoundingClientRect();\n\t\t\tconst ratio = Math.max(0, Math.min(1, (ev.clientX - rect.left) / rect.width));\n\t\t\tcurrentTime = ratio * duration;\n\t\t\tif (videoEl) videoEl.currentTime = currentTime;\n\t\t};\n\n\t\tconst onUp = () => {\n\t\t\tdragging = false;\n\t\t\twindow.removeEventListener('mousemove', onMove);\n\t\t\twindow.removeEventListener('mouseup', onUp);\n\t\t};\n\n\t\twindow.addEventListener('mousemove', onMove);\n\t\twindow.addEventListener('mouseup', onUp);\n\t}\n\n\t$effect(() => {\n\t\tif (!videoEl) return;\n\n\t\tconst onVideoTimeUpdate = () => {\n\t\t\tif (!dragging) currentTime = videoEl.currentTime;\n\t\t\tonTimeUpdate?.(videoEl.currentTime * 1000);\n\t\t};\n\t\tconst onLoadedMetadata = () => {\n\t\t\tduration = videoEl.duration;\n\t\t};\n\t\tconst onPlay = () => {\n\t\t\tplaying = true;\n\t\t};\n\t\tconst onPause = () => {\n\t\t\tplaying = false;\n\t\t};\n\t\tconst onFullscreenChange = () => {\n\t\t\tisFullscreen = !!document.fullscreenElement;\n\t\t};\n\n\t\tvideoEl.addEventListener('timeupdate', onVideoTimeUpdate);\n\t\tvideoEl.addEventListener('loadedmetadata', onLoadedMetadata);\n\t\tvideoEl.addEventListener('play', onPlay);\n\t\tvideoEl.addEventListener('pause', onPause);\n\t\tdocument.addEventListener('fullscreenchange', onFullscreenChange);\n\n\t\treturn () => {\n\t\t\tvideoEl.removeEventListener('timeupdate', onVideoTimeUpdate);\n\t\t\tvideoEl.removeEventListener('loadedmetadata', onLoadedMetadata);\n\t\t\tvideoEl.removeEventListener('play', onPlay);\n\t\t\tvideoEl.removeEventListener('pause', onPause);\n\t\t\tdocument.removeEventListener('fullscreenchange', onFullscreenChange);\n\t\t};\n\t});\n\n\tlet pageUrl = $derived.by(() => {\n\t\tif (!events || events.length === 0 || isFlutterVideo) return '';\n\t\tconst metaEvent = events.find((e: any) => e.type === 4);\n\t\treturn metaEvent?.data?.href ?? '';\n\t});\n\n\tfunction getPlayerHeight(width: number): number {\n\t\treturn Math.round((width * 9) / 16);\n\t}\n\n\tonMount(async () => {\n\t\tif (!events || events.length === 0 || isFlutterVideo) return;\n\n\t\tconst { default: rrwebPlayer } = await import('rrweb-player');\n\n\t\tconst width = Math.round(container.clientWidth * 0.75);\n\n\t\tconst chartColor = getComputedStyle(container).getPropertyValue('--chart-1').trim();\n\n\t\tplayer = new rrwebPlayer({\n\t\t\ttarget: container,\n\t\t\tprops: {\n\t\t\t\tevents,\n\t\t\t\twidth,\n\t\t\t\theight: getPlayerHeight(width),\n\t\t\t\tautoPlay: false,\n\t\t\t\tmouseTail: {\n\t\t\t\t\tstrokeStyle: chartColor\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tresizeObserver = new ResizeObserver((entries) => {\n\t\t\tfor (const entry of entries) {\n\t\t\t\tconst newWidth = Math.round(entry.contentRect.width * 0.75);\n\t\t\t\tif (player && newWidth > 0) {\n\t\t\t\t\tplayer.$set({ width: newWidth, height: getPlayerHeight(newWidth) });\n\t\t\t\t\tplayer.triggerResize();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tresizeObserver.observe(container);\n\n\t\tconst pollTime = () => {\n\t\t\tif (!player) return;\n\t\t\ttry {\n\t\t\t\tconst t = player.getReplayer().getCurrentTime();\n\t\t\t\tif (t !== lastReportedMs) {\n\t\t\t\t\tlastReportedMs = t;\n\t\t\t\t\tonTimeUpdate?.(t);\n\t\t\t\t}\n\t\t\t} catch {\n\t\t\t\t// Replayer may briefly be unavailable during init/destroy\n\t\t\t}\n\t\t\trafId = requestAnimationFrame(pollTime);\n\t\t};\n\t\trafId = requestAnimationFrame(pollTime);\n\t});\n\n\tonDestroy(() => {\n\t\tif (rafId !== null) cancelAnimationFrame(rafId);\n\t\tresizeObserver?.disconnect();\n\t\tif (player) player.$destroy();\n\t});\n</script>\n\n{#if events && events.length > 0}\n\t<div class=\"player-wrapper overflow-hidden\">\n\t\t{#if isFlutterVideo}\n\t\t\t<div class=\"url-bar\">\n\t\t\t\t<img src=\"/flutter.png\" alt=\"Flutter\" class=\"flutter-icon\" />\n\t\t\t\t<span class=\"url-bar-text\">Flutter Screen Recording</span>\n\t\t\t</div>\n\t\t\t<div class=\"flutter-video-container\" bind:this={videoContainerEl}>\n\t\t\t\t<video\n\t\t\t\t\tbind:this={videoEl}\n\t\t\t\t\tsrc={flutterVideoSrc}\n\t\t\t\t\tplaysinline\n\t\t\t\t\tloop\n\t\t\t\t\tonclick={togglePlay}\n\t\t\t\t>\n\t\t\t\t\t<track kind=\"captions\" />\n\t\t\t\t</video>\n\t\t\t\t<div class=\"fv-controller\">\n\t\t\t\t\t<div class=\"fv-timeline\">\n\t\t\t\t\t\t<span class=\"fv-timeline__time\">{formatTime(currentTime)}</span>\n\t\t\t\t\t\t<!-- svelte-ignore a11y_no_static_element_interactions -->\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"fv-progress\"\n\t\t\t\t\t\t\trole=\"slider\"\n\t\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\t\taria-valuemin={0}\n\t\t\t\t\t\t\taria-valuemax={duration}\n\t\t\t\t\t\t\taria-valuenow={currentTime}\n\t\t\t\t\t\t\tonclick={handleProgressClick}\n\t\t\t\t\t\t\tonkeydown={(e) => {\n\t\t\t\t\t\t\t\tif (!videoEl) return;\n\t\t\t\t\t\t\t\tif (e.key === 'ArrowRight') videoEl.currentTime = Math.min(duration, currentTime + 5);\n\t\t\t\t\t\t\t\tif (e.key === 'ArrowLeft') videoEl.currentTime = Math.max(0, currentTime - 5);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<div class=\"fv-progress__step\" style:width=\"{progressPercent}%\"></div>\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"fv-progress__handler\"\n\t\t\t\t\t\t\t\tstyle:left=\"{progressPercent}%\"\n\t\t\t\t\t\t\t\tonmousedown={handleProgressDragStart}\n\t\t\t\t\t\t\t></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<span class=\"fv-timeline__time\">{formatTime(duration)}</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"fv-controller__btns\">\n\t\t\t\t\t\t<button onclick={togglePlay}>\n\t\t\t\t\t\t\t{#if playing}\n\t\t\t\t\t\t\t\t<Pause size={16} />\n\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t<Play size={16} />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t\t{#each [1, 2, 4, 8] as s}\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\tclass:active={playbackSpeed === s}\n\t\t\t\t\t\t\t\tonclick={() => setSpeed(s)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{s}x\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t<button onclick={toggleFullscreen}>\n\t\t\t\t\t\t\t{#if isFullscreen}\n\t\t\t\t\t\t\t\t<Minimize size={16} />\n\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t<Maximize size={16} />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{:else}\n\t\t\t{#if pageUrl}\n\t\t\t\t<div class=\"url-bar\">\n\t\t\t\t\t<Globe />\n\t\t\t\t\t<span class=\"url-bar-text\">{pageUrl}</span>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t\t<div bind:this={container} class=\"player-container\"></div>\n\t\t{/if}\n\t</div>\n{/if}\n\n<style>\n\t.url-bar {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: 8px;\n\t\tpadding: 8px 12px;\n\t\tborder-bottom: 1px solid var(--border);\n\t\tborder-top: 1px solid var(--border);\n\t\tcolor: var(--muted-foreground);\n\t}\n\n\t.url-bar :global(svg) {\n\t\twidth: 14px;\n\t\theight: 14px;\n\t\tflex-shrink: 0;\n\t}\n\n\t.flutter-icon {\n\t\twidth: 14px;\n\t\theight: 14px;\n\t\tflex-shrink: 0;\n\t}\n\n\t.url-bar-text {\n\t\tfont-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n\t\tfont-size: 12px;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t}\n\n\t.player-container {\n\t\twidth: 100%;\n\t}\n\n\t/* rrweb player root */\n\t.player-wrapper :global(.rr-player) {\n\t\twidth: 100% !important;\n\t\theight: auto !important;\n\t\tbackground: transparent !important;\n\t\tbox-shadow: none !important;\n\t\tborder-radius: 0 !important;\n\t}\n\n\t.player-wrapper :global(.rr-player__frame) {\n\t\tmargin: 0 auto !important;\n\t}\n\n\t/* Controller bar */\n\t.player-wrapper :global(.rr-controller) {\n\t\tbackground: var(--muted) !important;\n\t\tborder-top: 1px solid var(--border) !important;\n\t\tborder-radius: 0px 0px 9px 9px !important;\n\t}\n\n\t/* Timeline */\n\t.player-wrapper :global(.rr-timeline) {\n\t\twidth: 100% !important;\n\t}\n\n\t.player-wrapper :global(.rr-timeline__time) {\n\t\tfont-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n\t\tfont-size: 12px !important;\n\t\tcolor: var(--muted-foreground) !important;\n\t}\n\n\t/* Progress track */\n\t.player-wrapper :global(.rr-progress) {\n\t\theight: 6px !important;\n\t\tbackground: var(--border) !important;\n\t\tborder-radius: 3px !important;\n\t}\n\n\t/* Progress fill */\n\t.player-wrapper :global(.rr-progress__step) {\n\t\tbackground: var(--chart-1) !important;\n\t\tborder-radius: 3px !important;\n\t}\n\n\t/* Progress handle */\n\t.player-wrapper :global(.rr-progress__handler) {\n\t\twidth: 14px !important;\n\t\theight: 14px !important;\n\t\tbackground: var(--chart-1) !important;\n\t\tborder-radius: 50% !important;\n\t\ttop: -0px !important;\n\t}\n\n\t/* Buttons */\n\t.player-wrapper :global(.rr-controller__btns button) {\n\t\tcolor: var(--foreground) !important;\n\t}\n\n\t.player-wrapper :global(.rr-controller__btns button svg) {\n\t\tfill: currentColor;\n\t}\n\n\t.player-wrapper :global(.rr-controller__btns button:hover) {\n\t\tbackground: var(--accent) !important;\n\t}\n\n\t.player-wrapper :global(.rr-controller__btns button.active) {\n\t\tbackground: var(--chart-1) !important;\n\t}\n\n\t.player-wrapper :global(.rr-controller__btns button:active) {\n\t\tbackground: var(--chart-1) !important;\n\t\topacity: 0.8;\n\t}\n\n\t/* Switch toggle */\n\t.player-wrapper :global(.switch label:before) {\n\t\tbackground: var(--border) !important;\n\t}\n\n\t.player-wrapper :global(.switch input[type='checkbox']:checked + label:before) {\n\t\tbackground: var(--chart-1) !important;\n\t}\n\n\t/* Replayer wrapper */\n\t.player-wrapper :global(.replayer-wrapper) {\n\t\tborder-color: transparent !important;\n\t}\n\n\t.player-wrapper :global(.replayer-wrapper.touch-active) {\n\t\tborder-color: var(--chart-1) !important;\n\t}\n\n\t/* Mouse cursor */\n\t.player-wrapper :global(.replayer-mouse) {\n\t\tbackground-image: url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMDBweCcgaGVpZ2h0PSczMDBweCcgdmlld0JveD0nMCAwIDUwIDUwJz48cGF0aCBkPSdNNSAyTDUgNDNMMTQuNSAzM0wyMyA0OEwzMCA0NC41TDIxLjUgMjkuNUwzNSAyOS41WicgZmlsbD0nIzAwMDAwMCcgc3Ryb2tlPScjZmZmZmZmJyBzdHJva2Utd2lkdGg9JzIuNScgc3Ryb2tlLWxpbmVqb2luPSdyb3VuZCcvPjwvc3ZnPg==') !important;\n\t}\n\n\t/* Flutter video player */\n\t.flutter-video-container {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\t\tbackground: var(--muted);\n\t\tmin-height: 300px;\n\t}\n\n\t.flutter-video-container video {\n\t\tmax-width: 100%;\n\t\tmax-height: 70vh;\n\t\tbackground: #000;\n\t\tcursor: pointer;\n\t\tflex: 1;\n\t}\n\n\t.flutter-video-container:fullscreen {\n\t\tbackground: #000;\n\t\tjustify-content: center;\n\t}\n\n\t.flutter-video-container:fullscreen video {\n\t\tmax-height: calc(100vh - 80px);\n\t}\n\n\t.flutter-video-container:fullscreen .fv-controller {\n\t\tposition: absolute;\n\t\tbottom: 0;\n\t\tleft: 0;\n\t\tright: 0;\n\t\topacity: 0;\n\t\ttransition: opacity 0.2s;\n\t}\n\n\t.flutter-video-container:fullscreen:hover .fv-controller {\n\t\topacity: 1;\n\t}\n\n\t.fv-controller {\n\t\twidth: 100%;\n\t\tbackground: var(--muted);\n\t\tborder-top: 1px solid var(--border);\n\t\tborder-radius: 0px 0px 9px 9px;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content: space-around;\n\t\talign-items: center;\n\t\tpadding: 8px 0;\n\t}\n\n\t.fv-timeline {\n\t\twidth: 80%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tpadding: 8px 0;\n\t}\n\n\t.fv-timeline__time {\n\t\tdisplay: inline-block;\n\t\twidth: 80px;\n\t\ttext-align: center;\n\t\tfont-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;\n\t\tfont-size: 12px;\n\t\tcolor: var(--muted-foreground);\n\t}\n\n\t.fv-progress {\n\t\tflex: 1;\n\t\theight: 6px;\n\t\tbackground: var(--border);\n\t\tposition: relative;\n\t\tborder-radius: 3px;\n\t\tcursor: pointer;\n\t}\n\n\t.fv-progress__step {\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t\tbackground: var(--chart-1);\n\t\tborder-radius: 3px;\n\t}\n\n\t.fv-progress__handler {\n\t\twidth: 14px;\n\t\theight: 14px;\n\t\tbackground: var(--chart-1);\n\t\tborder-radius: 50%;\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\tcursor: grab;\n\t}\n\n\t.fv-progress__handler:active {\n\t\tcursor: grabbing;\n\t}\n\n\t.fv-controller__btns {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tfont-size: 13px;\n\t\tgap: 2px;\n\t}\n\n\t.fv-controller__btns button {\n\t\twidth: 32px;\n\t\theight: 32px;\n\t\tdisplay: flex;\n\t\tpadding: 0;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tbackground: none;\n\t\tborder: none;\n\t\tborder-radius: 50%;\n\t\tcursor: pointer;\n\t\tcolor: var(--foreground);\n\t}\n\n\t.fv-controller__btns button:hover {\n\t\tbackground: var(--accent);\n\t}\n\n\t.fv-controller__btns button.active {\n\t\tbackground: var(--chart-1);\n\t\tcolor: #fff;\n\t}\n\n\t.fv-controller__btns button:active {\n\t\tbackground: var(--chart-1);\n\t\topacity: 0.8;\n\t}\n</style>\n","<script lang=\"ts\">\n\timport * as Table from '$lib/components/ui/table';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport type { SessionLogEvent, SessionLogLevel } from '$lib/types/exceptions';\n\n\tinterface Props {\n\t\tlogs: SessionLogEvent[];\n\t\tstartedAt?: string;\n\t\tcurrentTimeMs?: number;\n\t\tonSeek?: (offsetMs: number) => void;\n\t}\n\n\tlet { logs, startedAt, currentTimeMs, onSeek }: Props = $props();\n\n\tlet scrollEl: HTMLDivElement | undefined = $state();\n\n\tfunction offsetMs(timestamp: string): number {\n\t\tif (!startedAt) return 0;\n\t\tconst start = Date.parse(startedAt);\n\t\tconst t = Date.parse(timestamp);\n\t\tif (!Number.isFinite(start) || !Number.isFinite(t)) return 0;\n\t\treturn t - start;\n\t}\n\n\tfunction formatOffset(timestamp: string): string {\n\t\tif (!startedAt) return timestamp;\n\t\tconst start = Date.parse(startedAt);\n\t\tconst t = Date.parse(timestamp);\n\t\tif (!Number.isFinite(start) || !Number.isFinite(t)) return timestamp;\n\t\tconst deltaMs = t - start;\n\t\tif (Math.abs(deltaMs) >= 1000) {\n\t\t\tconst sign = deltaMs >= 0 ? '+' : '-';\n\t\t\treturn `${sign}${(Math.abs(deltaMs) / 1000).toFixed(2)}s`;\n\t\t}\n\t\tconst sign = deltaMs >= 0 ? '+' : '-';\n\t\treturn `${sign}${Math.abs(deltaMs)}ms`;\n\t}\n\n\tfunction levelColor(level: SessionLogLevel): string {\n\t\tswitch (level) {\n\t\t\tcase 'error':\n\t\t\t\treturn 'text-destructive';\n\t\t\tcase 'warn':\n\t\t\t\treturn 'text-yellow-600 dark:text-yellow-500';\n\t\t\tcase 'debug':\n\t\t\t\treturn 'text-muted-foreground';\n\t\t\tdefault:\n\t\t\t\treturn 'text-foreground';\n\t\t}\n\t}\n\n\tconst activeIndex = $derived.by(() => {\n\t\tif (currentTimeMs == null) return -1;\n\t\tlet last = -1;\n\t\tfor (let i = 0; i < logs.length; i++) {\n\t\t\tif (offsetMs(logs[i].timestamp) <= currentTimeMs) last = i;\n\t\t\telse break;\n\t\t}\n\t\treturn last;\n\t});\n\n\t$effect(() => {\n\t\tconst i = activeIndex;\n\t\tif (i < 0 || !scrollEl) return;\n\t\tconst el = scrollEl.querySelectorAll<HTMLTableRowElement>('tbody tr')[i];\n\t\tif (!el) return;\n\t\tconst top = el.offsetTop;\n\t\tconst bottom = top + el.offsetHeight;\n\t\tif (top < scrollEl.scrollTop) {\n\t\t\tscrollEl.scrollTo({ top, behavior: 'smooth' });\n\t\t} else if (bottom > scrollEl.scrollTop + scrollEl.clientHeight) {\n\t\t\tscrollEl.scrollTo({ top: bottom - scrollEl.clientHeight, behavior: 'smooth' });\n\t\t}\n\t});\n</script>\n\n<div bind:this={scrollEl} class=\"rounded-md border max-h-[440px] overflow-y-auto\">\n\t<Table.Root>\n\t\t{#if logs.length > 0}\n\t\t\t<Table.Header class=\"sticky top-0 bg-background z-10\">\n\t\t\t\t<Table.Row>\n\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\tlabel=\"Time\"\n\t\t\t\t\t\ttooltip=\"Offset from the start of the session recording\"\n\t\t\t\t\t\tclass=\"w-[110px]\"\n\t\t\t\t\t/>\n\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\tlabel=\"Level\"\n\t\t\t\t\t\ttooltip=\"Console severity (debug / info / warn / error)\"\n\t\t\t\t\t\tclass=\"w-[80px]\"\n\t\t\t\t\t/>\n\t\t\t\t\t<TracewayTableHeader label=\"Message\" tooltip=\"The console line as captured\" />\n\t\t\t\t</Table.Row>\n\t\t\t</Table.Header>\n\t\t{/if}\n\t\t<Table.Body>\n\t\t\t{#if logs.length === 0}\n\t\t\t\t<TableEmptyState colspan={3} message=\"No logs captured for this session.\" />\n\t\t\t{:else}\n\t\t\t\t{#each logs as entry, i}\n\t\t\t\t\t<Table.Row\n\t\t\t\t\t\tonclick={() => onSeek?.(offsetMs(entry.timestamp))}\n\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50 {i === activeIndex\n\t\t\t\t\t\t\t? 'bg-primary/10 border-l-2 border-l-primary'\n\t\t\t\t\t\t\t: ''}\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<Table.Cell class=\"font-mono text-xs text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t{formatOffset(entry.timestamp)}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t<Table.Cell class=\"font-mono text-xs uppercase {levelColor(entry.level)}\">\n\t\t\t\t\t\t\t{entry.level}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\tclass=\"font-mono text-xs whitespace-pre-wrap break-all\"\n\t\t\t\t\t\t\ttitle={entry.message}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{entry.message}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t{/each}\n\t\t\t{/if}\n\t\t</Table.Body>\n\t</Table.Root>\n</div>\n","<script lang=\"ts\">\n\timport * as Table from '$lib/components/ui/table';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport type {\n\t\tSessionActionEvent,\n\t\tSessionNetworkEvent,\n\t\tSessionNavigationEvent,\n\t\tSessionCustomEvent\n\t} from '$lib/types/exceptions';\n\n\tinterface Props {\n\t\tactions: SessionActionEvent[];\n\t\tstartedAt?: string;\n\t\tcurrentTimeMs?: number;\n\t\tonSeek?: (offsetMs: number) => void;\n\t}\n\n\tlet { actions, startedAt, currentTimeMs, onSeek }: Props = $props();\n\n\tlet scrollEl: HTMLDivElement | undefined = $state();\n\n\tfunction offsetMs(timestamp: string): number {\n\t\tif (!startedAt) return 0;\n\t\tconst start = Date.parse(startedAt);\n\t\tconst t = Date.parse(timestamp);\n\t\tif (!Number.isFinite(start) || !Number.isFinite(t)) return 0;\n\t\treturn t - start;\n\t}\n\n\tfunction formatOffset(timestamp: string): string {\n\t\tif (!startedAt) return timestamp;\n\t\tconst start = Date.parse(startedAt);\n\t\tconst t = Date.parse(timestamp);\n\t\tif (!Number.isFinite(start) || !Number.isFinite(t)) return timestamp;\n\t\tconst deltaMs = t - start;\n\t\tif (Math.abs(deltaMs) >= 1000) {\n\t\t\tconst sign = deltaMs >= 0 ? '+' : '-';\n\t\t\treturn `${sign}${(Math.abs(deltaMs) / 1000).toFixed(2)}s`;\n\t\t}\n\t\tconst sign = deltaMs >= 0 ? '+' : '-';\n\t\treturn `${sign}${Math.abs(deltaMs)}ms`;\n\t}\n\n\tfunction typeColor(type: SessionActionEvent['type']): string {\n\t\tswitch (type) {\n\t\t\tcase 'network':\n\t\t\t\treturn 'text-sky-600 dark:text-sky-400';\n\t\t\tcase 'navigation':\n\t\t\t\treturn 'text-violet-600 dark:text-violet-400';\n\t\t\tcase 'custom':\n\t\t\t\treturn 'text-amber-600 dark:text-amber-400';\n\t\t\tdefault:\n\t\t\t\treturn 'text-foreground';\n\t\t}\n\t}\n\n\tfunction summary(a: SessionActionEvent): string {\n\t\tswitch (a.type) {\n\t\t\tcase 'network': {\n\t\t\t\tconst n = a as SessionNetworkEvent;\n\t\t\t\tconst status = n.statusCode ?? (n.error ? 'ERR' : '?');\n\t\t\t\treturn `${n.method} ${n.url} → ${status} (${n.durationMs}ms)`;\n\t\t\t}\n\t\t\tcase 'navigation': {\n\t\t\t\tconst n = a as SessionNavigationEvent;\n\t\t\t\tconst from = n.from ?? '?';\n\t\t\t\tconst to = n.to ?? '?';\n\t\t\t\treturn `${n.action}: ${from} → ${to}`;\n\t\t\t}\n\t\t\tcase 'custom': {\n\t\t\t\tconst c = a as SessionCustomEvent;\n\t\t\t\tconst data = c.data ? ` ${JSON.stringify(c.data)}` : '';\n\t\t\t\treturn `${c.category}/${c.name}${data}`;\n\t\t\t}\n\t\t}\n\t}\n\n\tconst activeIndex = $derived.by(() => {\n\t\tif (currentTimeMs == null) return -1;\n\t\tlet last = -1;\n\t\tfor (let i = 0; i < actions.length; i++) {\n\t\t\tif (offsetMs(actions[i].timestamp) <= currentTimeMs) last = i;\n\t\t\telse break;\n\t\t}\n\t\treturn last;\n\t});\n\n\t$effect(() => {\n\t\tconst i = activeIndex;\n\t\tif (i < 0 || !scrollEl) return;\n\t\tconst el = scrollEl.querySelectorAll<HTMLTableRowElement>('tbody tr')[i];\n\t\tif (!el) return;\n\t\tconst top = el.offsetTop;\n\t\tconst bottom = top + el.offsetHeight;\n\t\tif (top < scrollEl.scrollTop) {\n\t\t\tscrollEl.scrollTo({ top, behavior: 'smooth' });\n\t\t} else if (bottom > scrollEl.scrollTop + scrollEl.clientHeight) {\n\t\t\tscrollEl.scrollTo({ top: bottom - scrollEl.clientHeight, behavior: 'smooth' });\n\t\t}\n\t});\n</script>\n\n<div bind:this={scrollEl} class=\"rounded-md border max-h-[440px] overflow-y-auto\">\n\t<Table.Root>\n\t\t{#if actions.length > 0}\n\t\t\t<Table.Header class=\"sticky top-0 bg-background z-10\">\n\t\t\t\t<Table.Row>\n\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\tlabel=\"Time\"\n\t\t\t\t\t\ttooltip=\"Offset from the start of the session recording\"\n\t\t\t\t\t\tclass=\"w-[110px]\"\n\t\t\t\t\t/>\n\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\tlabel=\"Type\"\n\t\t\t\t\t\ttooltip=\"Network / navigation / custom\"\n\t\t\t\t\t\tclass=\"w-[110px]\"\n\t\t\t\t\t/>\n\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\tlabel=\"Details\"\n\t\t\t\t\t\ttooltip=\"One-line summary; full payload visible on hover\"\n\t\t\t\t\t/>\n\t\t\t\t</Table.Row>\n\t\t\t</Table.Header>\n\t\t{/if}\n\t\t<Table.Body>\n\t\t\t{#if actions.length === 0}\n\t\t\t\t<TableEmptyState colspan={3} message=\"No actions captured for this session.\" />\n\t\t\t{:else}\n\t\t\t\t{#each actions as entry, i}\n\t\t\t\t\t<Table.Row\n\t\t\t\t\t\tonclick={() => onSeek?.(offsetMs(entry.timestamp))}\n\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50 {i === activeIndex\n\t\t\t\t\t\t\t? 'bg-primary/10 border-l-2 border-l-primary'\n\t\t\t\t\t\t\t: ''}\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<Table.Cell class=\"font-mono text-xs text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t{formatOffset(entry.timestamp)}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t<Table.Cell class=\"font-mono text-xs uppercase {typeColor(entry.type)}\">\n\t\t\t\t\t\t\t{entry.type}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\tclass=\"font-mono text-xs truncate max-w-[600px]\"\n\t\t\t\t\t\t\ttitle={summary(entry)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{summary(entry)}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t{/each}\n\t\t\t{/if}\n\t\t</Table.Body>\n\t</Table.Root>\n</div>\n"],"file":"BpQ9RPzK.js"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/DKXzXP9M.js b/backend/static/frontend/_app/immutable/chunks/Bzt1ocTi.js
similarity index 97%
rename from backend/static/frontend/_app/immutable/chunks/DKXzXP9M.js
rename to backend/static/frontend/_app/immutable/chunks/Bzt1ocTi.js
index 89718abd..7617596f 100644
--- a/backend/static/frontend/_app/immutable/chunks/DKXzXP9M.js
+++ b/backend/static/frontend/_app/immutable/chunks/Bzt1ocTi.js
@@ -1 +1 @@
-import{p as o,i as q,s as E,r as I}from"./DMODTt3n.js";import{u as v,g as s,i as R,h as st,K as gt,p as K,d as u,c as h,b as i,a as x,m as N,f as it,e as V,o as Z,r as W}from"./B2WdN-7r.js";import{c as $}from"./BAcG0-U_.js";import{C as _t,E as bt,S as wt,i as ut,P as ht,n as G,d as Ct,e as Ot,g as ft,a as At,F as Nt,b as Et}from"./CAQEdoSh.js";import{a as vt,g as mt,h as Ft,d as kt,b as f,c as Pt,m as Y}from"./DWAABZDo.js";import{b as j,d as yt}from"./DH0tcjsQ.js";const at=kt({component:"popover",parts:["root","trigger","content","close","overlay"]}),ct=new _t("Popover.Root");class pt{static create(t){return ct.set(new pt(t))}opts;#e=st(null);get contentNode(){return s(this.#e)}set contentNode(t){R(this.#e,t,!0)}contentPresence;#t=st(null);get triggerNode(){return s(this.#t)}set triggerNode(t){R(this.#t,t,!0)}#r=st(null);get overlayNode(){return s(this.#r)}set overlayNode(t){R(this.#r,t,!0)}overlayPresence;constructor(t){this.opts=t,this.contentPresence=new ht({ref:f(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ht({ref:f(()=>this.overlayNode),open:this.opts.open})}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}}class lt{static create(t){return new lt(t,ct.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,r=>this.root.triggerNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button===0&&this.root.toggleOpen()}onkeydown(t){this.opts.disabled.current||(t.key===bt||t.key===wt)&&(t.preventDefault(),this.root.toggleOpen())}#e(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#t=v(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Ft(this.root.opts.open.current),"data-state":mt(this.root.opts.open.current),"aria-controls":this.#e(),[at.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,...this.attachment}));get props(){return s(this.#t)}set props(t){R(this.#t,t)}}class dt{static create(t){return new dt(t,ct.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,r=>this.root.contentNode=r)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ut(t.target))return;const e=t.target.closest(at.selector("trigger"));if(!(e&&e===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ut(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}#e=v(()=>({open:this.root.opts.open.current}));get snippetProps(){return s(this.#e)}set snippetProps(t){R(this.#e,t)}#t=v(()=>({id:this.opts.id.current,tabindex:-1,"data-state":mt(this.root.opts.open.current),[at.content]:"",style:{pointerEvents:"auto"},...this.attachment}));get props(){return s(this.#t)}set props(t){R(this.#t,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var St=it("<div><div><!></div></div>"),Rt=it("<div><div><!></div></div>");function It(p,t){const e=gt();K(t,!0);let r=o(t,"ref",15,null),n=o(t,"id",19,()=>Pt(e)),a=o(t,"forceMount",3,!1),l=o(t,"onCloseAutoFocus",3,G),g=o(t,"onEscapeKeydown",3,G),d=o(t,"onInteractOutside",3,G),m=o(t,"trapFocus",3,!0),b=o(t,"preventScroll",3,!1),F=o(t,"customAnchor",3,null),k=I(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor"]);const c=dt.create({id:f(()=>n()),ref:f(()=>r(),C=>r(C)),onInteractOutside:f(()=>d()),onEscapeKeydown:f(()=>g()),customAnchor:f(()=>F())}),H=v(()=>Y(k,c.props));var J=u(),w=h(J);{var P=C=>{Ct(C,E(()=>s(H),()=>c.popperProps,{get ref(){return c.opts.ref},get enabled(){return c.root.opts.open.current},get id(){return n()},get trapFocus(){return m()},get preventScroll(){return b()},loop:!0,forceMount:!0,get customAnchor(){return F()},get onCloseAutoFocus(){return l()},get shouldRender(){return c.shouldRender},popper:(et,L)=>{let z=()=>L?.().props,rt=()=>L?.().wrapperProps;const Q=v(()=>Y(z(),{style:ft("popover")}));var T=u(),ot=h(T);{var U=y=>{var _=u(),O=h(_);{let B=v(()=>({props:s(Q),wrapperProps:rt(),...c.snippetProps}));N(O,()=>t.child,()=>s(B))}i(y,_)},X=y=>{var _=St();j(_,()=>({...rt()}));var O=V(_);j(O,()=>({...s(Q)}));var B=V(O);N(B,()=>t.children??Z),W(O),W(_),i(y,_)};q(ot,y=>{t.child?y(U):y(X,!1)})}i(et,T)},$$slots:{popper:!0}}))},M=C=>{var tt=u(),et=h(tt);{var L=z=>{Ot(z,E(()=>s(H),()=>c.popperProps,{get ref(){return c.opts.ref},get open(){return c.root.opts.open.current},get id(){return n()},get trapFocus(){return m()},get preventScroll(){return b()},loop:!0,forceMount:!1,get customAnchor(){return F()},get onCloseAutoFocus(){return l()},get shouldRender(){return c.shouldRender},popper:(Q,T)=>{let ot=()=>T?.().props,U=()=>T?.().wrapperProps;const X=v(()=>Y(ot(),{style:ft("popover")}));var y=u(),_=h(y);{var O=S=>{var A=u(),D=h(A);{let nt=v(()=>({props:s(X),wrapperProps:U(),...c.snippetProps}));N(D,()=>t.child,()=>s(nt))}i(S,A)},B=S=>{var A=Rt();j(A,()=>({...U()}));var D=V(A);j(D,()=>({...s(X)}));var nt=V(D);N(nt,()=>t.children??Z),W(D),W(A),i(S,A)};q(_,S=>{t.child?S(O):S(B,!1)})}i(Q,y)},$$slots:{popper:!0}}))};q(et,z=>{a()||z(L)},!0)}i(C,tt)};q(w,C=>{a()?C(P):C(M,!1)})}i(p,J),x()}var Kt=it("<button><!></button>");function xt(p,t){const e=gt();K(t,!0);let r=o(t,"id",19,()=>Pt(e)),n=o(t,"ref",15,null),a=o(t,"type",3,"button"),l=o(t,"disabled",3,!1),g=I(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled"]);const d=lt.create({id:f(()=>r()),ref:f(()=>n(),b=>n(b)),disabled:f(()=>!!l())}),m=v(()=>Y(g,d.props,{type:a()}));At(p,{get id(){return r()},get ref(){return d.opts.ref},children:(b,F)=>{var k=u(),c=h(k);{var H=w=>{var P=u(),M=h(P);N(M,()=>t.child,()=>({props:s(m)})),i(w,P)},J=w=>{var P=Kt();j(P,()=>({...s(m)}));var M=V(P);N(M,()=>t.children??Z),W(P),i(w,P)};q(c,w=>{t.child?w(H):w(J,!1)})}i(b,k)},$$slots:{default:!0}}),x()}function Mt(p,t){K(t,!0);let e=o(t,"open",15,!1),r=o(t,"onOpenChange",3,G),n=o(t,"onOpenChangeComplete",3,G);pt.create({open:f(()=>e(),a=>{e(a),r()(a)}),onOpenChangeComplete:f(()=>n())}),Nt(p,{children:(a,l)=>{var g=u(),d=h(g);N(d,()=>t.children??Z),i(a,g)},$$slots:{default:!0}}),x()}function jt(p,t){K(t,!0);let e=o(t,"open",15,!1),r=I(t,["$$slots","$$events","$$legacy","open"]);var n=u(),a=h(n);$(a,()=>Mt,(l,g)=>{g(l,E(()=>r,{get open(){return e()},set open(d){e(d)}}))}),i(p,n),x()}function zt(p,t){let e=I(t,["$$slots","$$events","$$legacy"]);var r=u(),n=h(r);$(n,()=>Et,(a,l)=>{l(a,E(()=>e))}),i(p,r)}function Gt(p,t){K(t,!0);let e=o(t,"ref",15,null),r=o(t,"sideOffset",3,4),n=o(t,"align",3,"center"),a=I(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","align","portalProps"]);zt(p,E(()=>t.portalProps,{children:(l,g)=>{var d=u(),m=h(d);{let b=v(()=>yt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--bits-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t.class));$(m,()=>It,(F,k)=>{k(F,E({"data-slot":"popover-content",get sideOffset(){return r()},get align(){return n()},get class(){return s(b)}},()=>a,{get ref(){return e()},set ref(c){e(c)}}))})}i(l,d)},$$slots:{default:!0}})),x()}function Ht(p,t){K(t,!0);let e=o(t,"ref",15,null),r=I(t,["$$slots","$$events","$$legacy","ref","class"]);var n=u(),a=h(n);{let l=v(()=>yt("",t.class));$(a,()=>xt,(g,d)=>{d(g,E({"data-slot":"popover-trigger",get class(){return s(l)}},()=>r,{get ref(){return e()},set ref(m){e(m)}}))})}i(p,n),x()}export{Ht as P,Gt as a,jt as b};
+import{p as o,i as q,s as E,r as I}from"./DMODTt3n.js";import{u as v,g as s,i as R,h as st,K as gt,p as K,d as u,c as h,b as i,a as x,m as N,f as it,e as V,o as Z,r as W}from"./B2WdN-7r.js";import{c as $}from"./BAcG0-U_.js";import{C as _t,E as bt,S as wt,i as ut,c as ht,n as G,d as Ct,e as Ot,g as ft,a as At,F as Nt,P as Et}from"./CjLH05gQ.js";import{a as vt,h as mt,g as Ft,d as kt,b as f,c as Pt,m as Y}from"./BDd6-VcB.js";import{b as j,d as yt}from"./DH0tcjsQ.js";const at=kt({component:"popover",parts:["root","trigger","content","close","overlay"]}),ct=new _t("Popover.Root");class pt{static create(t){return ct.set(new pt(t))}opts;#e=st(null);get contentNode(){return s(this.#e)}set contentNode(t){R(this.#e,t,!0)}contentPresence;#t=st(null);get triggerNode(){return s(this.#t)}set triggerNode(t){R(this.#t,t,!0)}#r=st(null);get overlayNode(){return s(this.#r)}set overlayNode(t){R(this.#r,t,!0)}overlayPresence;constructor(t){this.opts=t,this.contentPresence=new ht({ref:f(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ht({ref:f(()=>this.overlayNode),open:this.opts.open})}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}}class lt{static create(t){return new lt(t,ct.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,r=>this.root.triggerNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button===0&&this.root.toggleOpen()}onkeydown(t){this.opts.disabled.current||(t.key===bt||t.key===wt)&&(t.preventDefault(),this.root.toggleOpen())}#e(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#t=v(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Ft(this.root.opts.open.current),"data-state":mt(this.root.opts.open.current),"aria-controls":this.#e(),[at.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,...this.attachment}));get props(){return s(this.#t)}set props(t){R(this.#t,t)}}class dt{static create(t){return new dt(t,ct.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=vt(this.opts.ref,r=>this.root.contentNode=r)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ut(t.target))return;const e=t.target.closest(at.selector("trigger"));if(!(e&&e===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ut(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}#e=v(()=>({open:this.root.opts.open.current}));get snippetProps(){return s(this.#e)}set snippetProps(t){R(this.#e,t)}#t=v(()=>({id:this.opts.id.current,tabindex:-1,"data-state":mt(this.root.opts.open.current),[at.content]:"",style:{pointerEvents:"auto"},...this.attachment}));get props(){return s(this.#t)}set props(t){R(this.#t,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var St=it("<div><div><!></div></div>"),Rt=it("<div><div><!></div></div>");function It(p,t){const e=gt();K(t,!0);let r=o(t,"ref",15,null),n=o(t,"id",19,()=>Pt(e)),a=o(t,"forceMount",3,!1),l=o(t,"onCloseAutoFocus",3,G),g=o(t,"onEscapeKeydown",3,G),d=o(t,"onInteractOutside",3,G),m=o(t,"trapFocus",3,!0),b=o(t,"preventScroll",3,!1),F=o(t,"customAnchor",3,null),k=I(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor"]);const c=dt.create({id:f(()=>n()),ref:f(()=>r(),C=>r(C)),onInteractOutside:f(()=>d()),onEscapeKeydown:f(()=>g()),customAnchor:f(()=>F())}),H=v(()=>Y(k,c.props));var J=u(),w=h(J);{var P=C=>{Ct(C,E(()=>s(H),()=>c.popperProps,{get ref(){return c.opts.ref},get enabled(){return c.root.opts.open.current},get id(){return n()},get trapFocus(){return m()},get preventScroll(){return b()},loop:!0,forceMount:!0,get customAnchor(){return F()},get onCloseAutoFocus(){return l()},get shouldRender(){return c.shouldRender},popper:(et,L)=>{let z=()=>L?.().props,rt=()=>L?.().wrapperProps;const Q=v(()=>Y(z(),{style:ft("popover")}));var T=u(),ot=h(T);{var U=y=>{var _=u(),O=h(_);{let B=v(()=>({props:s(Q),wrapperProps:rt(),...c.snippetProps}));N(O,()=>t.child,()=>s(B))}i(y,_)},X=y=>{var _=St();j(_,()=>({...rt()}));var O=V(_);j(O,()=>({...s(Q)}));var B=V(O);N(B,()=>t.children??Z),W(O),W(_),i(y,_)};q(ot,y=>{t.child?y(U):y(X,!1)})}i(et,T)},$$slots:{popper:!0}}))},M=C=>{var tt=u(),et=h(tt);{var L=z=>{Ot(z,E(()=>s(H),()=>c.popperProps,{get ref(){return c.opts.ref},get open(){return c.root.opts.open.current},get id(){return n()},get trapFocus(){return m()},get preventScroll(){return b()},loop:!0,forceMount:!1,get customAnchor(){return F()},get onCloseAutoFocus(){return l()},get shouldRender(){return c.shouldRender},popper:(Q,T)=>{let ot=()=>T?.().props,U=()=>T?.().wrapperProps;const X=v(()=>Y(ot(),{style:ft("popover")}));var y=u(),_=h(y);{var O=S=>{var A=u(),D=h(A);{let nt=v(()=>({props:s(X),wrapperProps:U(),...c.snippetProps}));N(D,()=>t.child,()=>s(nt))}i(S,A)},B=S=>{var A=Rt();j(A,()=>({...U()}));var D=V(A);j(D,()=>({...s(X)}));var nt=V(D);N(nt,()=>t.children??Z),W(D),W(A),i(S,A)};q(_,S=>{t.child?S(O):S(B,!1)})}i(Q,y)},$$slots:{popper:!0}}))};q(et,z=>{a()||z(L)},!0)}i(C,tt)};q(w,C=>{a()?C(P):C(M,!1)})}i(p,J),x()}var Kt=it("<button><!></button>");function xt(p,t){const e=gt();K(t,!0);let r=o(t,"id",19,()=>Pt(e)),n=o(t,"ref",15,null),a=o(t,"type",3,"button"),l=o(t,"disabled",3,!1),g=I(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled"]);const d=lt.create({id:f(()=>r()),ref:f(()=>n(),b=>n(b)),disabled:f(()=>!!l())}),m=v(()=>Y(g,d.props,{type:a()}));At(p,{get id(){return r()},get ref(){return d.opts.ref},children:(b,F)=>{var k=u(),c=h(k);{var H=w=>{var P=u(),M=h(P);N(M,()=>t.child,()=>({props:s(m)})),i(w,P)},J=w=>{var P=Kt();j(P,()=>({...s(m)}));var M=V(P);N(M,()=>t.children??Z),W(P),i(w,P)};q(c,w=>{t.child?w(H):w(J,!1)})}i(b,k)},$$slots:{default:!0}}),x()}function Mt(p,t){K(t,!0);let e=o(t,"open",15,!1),r=o(t,"onOpenChange",3,G),n=o(t,"onOpenChangeComplete",3,G);pt.create({open:f(()=>e(),a=>{e(a),r()(a)}),onOpenChangeComplete:f(()=>n())}),Nt(p,{children:(a,l)=>{var g=u(),d=h(g);N(d,()=>t.children??Z),i(a,g)},$$slots:{default:!0}}),x()}function jt(p,t){K(t,!0);let e=o(t,"open",15,!1),r=I(t,["$$slots","$$events","$$legacy","open"]);var n=u(),a=h(n);$(a,()=>Mt,(l,g)=>{g(l,E(()=>r,{get open(){return e()},set open(d){e(d)}}))}),i(p,n),x()}function zt(p,t){let e=I(t,["$$slots","$$events","$$legacy"]);var r=u(),n=h(r);$(n,()=>Et,(a,l)=>{l(a,E(()=>e))}),i(p,r)}function Gt(p,t){K(t,!0);let e=o(t,"ref",15,null),r=o(t,"sideOffset",3,4),n=o(t,"align",3,"center"),a=I(t,["$$slots","$$events","$$legacy","ref","class","sideOffset","align","portalProps"]);zt(p,E(()=>t.portalProps,{children:(l,g)=>{var d=u(),m=h(d);{let b=v(()=>yt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--bits-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t.class));$(m,()=>It,(F,k)=>{k(F,E({"data-slot":"popover-content",get sideOffset(){return r()},get align(){return n()},get class(){return s(b)}},()=>a,{get ref(){return e()},set ref(c){e(c)}}))})}i(l,d)},$$slots:{default:!0}})),x()}function Ht(p,t){K(t,!0);let e=o(t,"ref",15,null),r=I(t,["$$slots","$$events","$$legacy","ref","class"]);var n=u(),a=h(n);{let l=v(()=>yt("",t.class));$(a,()=>xt,(g,d)=>{d(g,E({"data-slot":"popover-trigger",get class(){return s(l)}},()=>r,{get ref(){return e()},set ref(m){e(m)}}))})}i(p,n),x()}export{Ht as P,Gt as a,jt as b};
diff --git a/backend/static/frontend/_app/immutable/chunks/DKXzXP9M.js.map b/backend/static/frontend/_app/immutable/chunks/Bzt1ocTi.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/DKXzXP9M.js.map
rename to backend/static/frontend/_app/immutable/chunks/Bzt1ocTi.js.map
index 8442f0dc..035e2946 100644
--- a/backend/static/frontend/_app/immutable/chunks/DKXzXP9M.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/Bzt1ocTi.js.map
@@ -1 +1 @@
-{"version":3,"file":"DKXzXP9M.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/popover/popover.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/popover/components/popover-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/popover/components/popover-trigger.svelte","../../../../../../node_modules/bits-ui/dist/bits/popover/components/popover.svelte","../../../../../../src/lib/components/ui/popover/popover.svelte","../../../../../../src/lib/components/ui/popover/popover-portal.svelte","../../../../../../src/lib/components/ui/popover/popover-content.svelte","../../../../../../src/lib/components/ui/popover/popover-trigger.svelte"],"sourcesContent":["import { attachRef, boxWith, } from \"svelte-toolbelt\";\nimport { Context } from \"runed\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { createBitsAttrs, boolToStr, getDataOpenClosed } from \"../../internal/attrs.js\";\nimport { isElement } from \"../../internal/is.js\";\nimport { PresenceManager } from \"../../internal/presence-manager.svelte.js\";\nconst popoverAttrs = createBitsAttrs({\n component: \"popover\",\n parts: [\"root\", \"trigger\", \"content\", \"close\", \"overlay\"],\n});\nconst PopoverRootContext = new Context(\"Popover.Root\");\nexport class PopoverRootState {\n static create(opts) {\n return PopoverRootContext.set(new PopoverRootState(opts));\n }\n opts;\n contentNode = $state(null);\n contentPresence;\n triggerNode = $state(null);\n overlayNode = $state(null);\n overlayPresence;\n constructor(opts) {\n this.opts = opts;\n this.contentPresence = new PresenceManager({\n ref: boxWith(() => this.contentNode),\n open: this.opts.open,\n onComplete: () => {\n this.opts.onOpenChangeComplete.current(this.opts.open.current);\n },\n });\n this.overlayPresence = new PresenceManager({\n ref: boxWith(() => this.overlayNode),\n open: this.opts.open,\n });\n }\n toggleOpen() {\n this.opts.open.current = !this.opts.open.current;\n }\n handleClose() {\n if (!this.opts.open.current)\n return;\n this.opts.open.current = false;\n }\n}\nexport class PopoverTriggerState {\n static create(opts) {\n return new PopoverTriggerState(opts, PopoverRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.triggerNode = v));\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n onclick(e) {\n if (this.opts.disabled.current)\n return;\n if (e.button !== 0)\n return;\n this.root.toggleOpen();\n }\n onkeydown(e) {\n if (this.opts.disabled.current)\n return;\n if (!(e.key === kbd.ENTER || e.key === kbd.SPACE))\n return;\n e.preventDefault();\n this.root.toggleOpen();\n }\n #getAriaControls() {\n if (this.root.opts.open.current && this.root.contentNode?.id) {\n return this.root.contentNode?.id;\n }\n return undefined;\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": boolToStr(this.root.opts.open.current),\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n \"aria-controls\": this.#getAriaControls(),\n [popoverAttrs.trigger]: \"\",\n disabled: this.opts.disabled.current,\n //\n onkeydown: this.onkeydown,\n onclick: this.onclick,\n ...this.attachment,\n }));\n}\nexport class PopoverContentState {\n static create(opts) {\n return new PopoverContentState(opts, PopoverRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.contentNode = v));\n }\n onInteractOutside = (e) => {\n this.opts.onInteractOutside.current(e);\n if (e.defaultPrevented)\n return;\n if (!isElement(e.target))\n return;\n const closestTrigger = e.target.closest(popoverAttrs.selector(\"trigger\"));\n if (closestTrigger && closestTrigger === this.root.triggerNode)\n return;\n if (this.opts.customAnchor.current) {\n if (isElement(this.opts.customAnchor.current)) {\n if (this.opts.customAnchor.current.contains(e.target))\n return;\n }\n else if (typeof this.opts.customAnchor.current === \"string\") {\n const el = document.querySelector(this.opts.customAnchor.current);\n if (el && el.contains(e.target))\n return;\n }\n }\n this.root.handleClose();\n };\n onEscapeKeydown = (e) => {\n this.opts.onEscapeKeydown.current(e);\n if (e.defaultPrevented)\n return;\n this.root.handleClose();\n };\n get shouldRender() {\n return this.root.contentPresence.shouldRender;\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n tabindex: -1,\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n [popoverAttrs.content]: \"\",\n style: {\n pointerEvents: \"auto\",\n },\n ...this.attachment,\n }));\n popperProps = {\n onInteractOutside: this.onInteractOutside,\n onEscapeKeydown: this.onEscapeKeydown,\n };\n}\nexport class PopoverCloseState {\n static create(opts) {\n return new PopoverCloseState(opts, PopoverRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n onclick(_) {\n this.root.handleClose();\n }\n onkeydown(e) {\n if (!(e.key === kbd.ENTER || e.key === kbd.SPACE))\n return;\n e.preventDefault();\n this.root.handleClose();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n onclick: this.onclick,\n onkeydown: this.onkeydown,\n type: \"button\",\n [popoverAttrs.close]: \"\",\n ...this.attachment,\n }));\n}\nexport class PopoverOverlayState {\n static create(opts) {\n return new PopoverOverlayState(opts, PopoverRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.overlayNode = v));\n }\n get shouldRender() {\n return this.root.overlayPresence.shouldRender;\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [popoverAttrs.overlay]: \"\",\n style: {\n pointerEvents: \"auto\",\n },\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n ...this.attachment,\n }));\n}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { PopoverContentProps } from \"../types.js\";\n\timport { PopoverContentState } from \"../popover.svelte.js\";\n\timport PopperLayer from \"../../utilities/popper-layer/popper-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { getFloatingContentCSSVars } from \"../../../internal/floating-svelte/floating-utils.svelte.js\";\n\timport PopperLayerForceMount from \"../../utilities/popper-layer/popper-layer-force-mount.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchild,\n\t\tchildren,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tforceMount = false,\n\t\tonCloseAutoFocus = noop,\n\t\tonEscapeKeydown = noop,\n\t\tonInteractOutside = noop,\n\t\ttrapFocus = true,\n\t\tpreventScroll = false,\n\t\tcustomAnchor = null,\n\t\t...restProps\n\t}: PopoverContentProps = $props();\n\n\tconst contentState = PopoverContentState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tonInteractOutside: boxWith(() => onInteractOutside),\n\t\tonEscapeKeydown: boxWith(() => onEscapeKeydown),\n\t\tcustomAnchor: boxWith(() => customAnchor),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n</script>\n\n{#if forceMount}\n\t<PopperLayerForceMount\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\tenabled={contentState.root.opts.open.current}\n\t\t{id}\n\t\t{trapFocus}\n\t\t{preventScroll}\n\t\tloop\n\t\tforceMount={true}\n\t\t{customAnchor}\n\t\t{onCloseAutoFocus}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"popover\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayerForceMount>\n{:else if !forceMount}\n\t<PopperLayer\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\topen={contentState.root.opts.open.current}\n\t\t{id}\n\t\t{trapFocus}\n\t\t{preventScroll}\n\t\tloop\n\t\tforceMount={false}\n\t\t{customAnchor}\n\t\t{onCloseAutoFocus}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"popover\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayer>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { PopoverTriggerProps } from \"../types.js\";\n\timport { PopoverTriggerState } from \"../popover.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport FloatingLayerAnchor from \"../../utilities/floating-layer/components/floating-layer-anchor.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\ttype = \"button\",\n\t\tdisabled = false,\n\t\t...restProps\n\t}: PopoverTriggerProps = $props();\n\n\tconst triggerState = PopoverTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdisabled: boxWith(() => Boolean(disabled)),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n<FloatingLayerAnchor {id} ref={triggerState.opts.ref}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<button {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</button>\n\t{/if}\n</FloatingLayerAnchor>\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { PopoverRootProps } from \"../types.js\";\n\timport { PopoverRootState } from \"../popover.svelte.js\";\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tchildren,\n\t}: PopoverRootProps = $props();\n\n\tPopoverRootState.create({\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n<FloatingLayer>\n\t{@render children?.()}\n</FloatingLayer>\n","<script lang=\"ts\">\n\timport { Popover as PopoverPrimitive } from \"bits-ui\";\n\n\tlet { open = $bindable(false), ...restProps }: PopoverPrimitive.RootProps = $props();\n</script>\n\n<PopoverPrimitive.Root bind:open {...restProps} />\n","<script lang=\"ts\">\n\timport { Popover as PopoverPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: PopoverPrimitive.PortalProps = $props();\n</script>\n\n<PopoverPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { Popover as PopoverPrimitive } from \"bits-ui\";\n\timport PopoverPortal from \"./popover-portal.svelte\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport type { ComponentProps } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tsideOffset = 4,\n\t\talign = \"center\",\n\t\tportalProps,\n\t\t...restProps\n\t}: PopoverPrimitive.ContentProps & {\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof PopoverPortal>>;\n\t} = $props();\n</script>\n\n<PopoverPortal {...portalProps}>\n\t<PopoverPrimitive.Content\n\t\tbind:ref\n\t\tdata-slot=\"popover-content\"\n\t\t{sideOffset}\n\t\t{align}\n\t\tclass={cn(\n\t\t\t\"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--bits-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden\",\n\t\t\tclassName\n\t\t)}\n\t\t{...restProps}\n\t/>\n</PopoverPortal>\n","<script lang=\"ts\">\n\timport { cn } from \"$lib/utils.js\";\n\timport { Popover as PopoverPrimitive } from \"bits-ui\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: PopoverPrimitive.TriggerProps = $props();\n</script>\n\n<PopoverPrimitive.Trigger\n\tbind:ref\n\tdata-slot=\"popover-trigger\"\n\tclass={cn(\"\", className)}\n\t{...restProps}\n/>\n"],"names":["popoverAttrs","createBitsAttrs","PopoverRootContext","Context","PopoverRootState","opts","#contentNode","$.state","value","#triggerNode","#overlayNode","PresenceManager","boxWith","PopoverTriggerState","root","attachRef","v","e","kbd.ENTER","kbd.SPACE","#getAriaControls","boolToStr","getDataOpenClosed","PopoverContentState","isElement","closestTrigger","el","uid","$.props_id","ref","id","$.prop","$$props","createId","forceMount","onCloseAutoFocus","noop","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","restProps","$.rest_props","contentState","mergedProps","mergeProps","PopperLayerForceMount","$$anchor","$.spread_props","$.get","$$arg0","props","wrapperProps","finalProps","$.derived","getFloatingContentCSSVars","div","root_4","$.attribute_effect","div_1","PopperLayer","div_2","root_9","div_3","$$render","consequent_3","consequent_1","alternate_2","type","disabled","triggerState","FloatingLayerAnchor","$.snippet","node_1","button","root_3","open","onOpenChange","onOpenChangeComplete","FloatingLayer","PopoverPrimitive_Root","$$value","PopoverPrimitive_Portal","sideOffset","align","PopoverPortal","$0","cn","PopoverPrimitive_Content","PopoverPrimitive_Trigger"],"mappings":"qdAMM,MAAAA,GAAeC,GAAe,CAChC,UAAW,UACX,MAAK,CAAG,OAAQ,UAAW,UAAW,QAAS,SAAS,IAEtDC,GAAkB,IAAOC,GAAQ,cAAc,EACxC,MAAAC,EAAiB,QACnB,OAAOC,EAAM,CACT,OAAAH,GAAmB,IAAG,IAAKE,GAAiBC,CAAI,CAAA,CAC3D,CACA,KACcC,GAAAC,GAAO,IAAI,MAAzB,aAAW,uBAAX,YAAWC,EAAA,iBACX,gBACcC,GAAAF,GAAO,IAAI,MAA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gBAAQ,QAAQ,EAEb3C,EAAAC,EAAAX,EAAA,oFAMJsD,GAAatC,EAAAC,EAAA,IAAAjB,EAAA,YAAA,oCAML,IAAAuD,EAAAhC,EAAA,IAAAiC,GACN,+dAA8dxD,EAAA,KAAA,CAAA,qBAN/dyD,EAAiBzC,EAAAC,yDAGhBmC,EAAU,sBACVC,EAAK,iCAKF3C,OARJ,KAAK,iBAAL,IAAKwC,EAAA,+CAJP,iBChBA,SAKE,IAAArD,eAAgB,IAAI,EAEjBa,EAAAC,EAAAX,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAuD,EAAAhC,EAAA,IAAAiC,GAAG,GAAExD,EAAA,KAAA,CAAA,qBAHZ0D,EAAiB1C,EAAAC,+DAIbP,OAHJ,KAAK,iBAAL,IAAKwC,EAAA,sBAHN","x_google_ignoreList":[0,1,2,3]}
\ No newline at end of file
+{"version":3,"file":"Bzt1ocTi.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/popover/popover.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/popover/components/popover-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/popover/components/popover-trigger.svelte","../../../../../../node_modules/bits-ui/dist/bits/popover/components/popover.svelte","../../../../../../src/lib/components/ui/popover/popover.svelte","../../../../../../src/lib/components/ui/popover/popover-portal.svelte","../../../../../../src/lib/components/ui/popover/popover-content.svelte","../../../../../../src/lib/components/ui/popover/popover-trigger.svelte"],"sourcesContent":["import { attachRef, boxWith, } from \"svelte-toolbelt\";\nimport { Context } from \"runed\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { createBitsAttrs, boolToStr, getDataOpenClosed } from \"../../internal/attrs.js\";\nimport { isElement } from \"../../internal/is.js\";\nimport { PresenceManager } from \"../../internal/presence-manager.svelte.js\";\nconst popoverAttrs = createBitsAttrs({\n component: \"popover\",\n parts: [\"root\", \"trigger\", \"content\", \"close\", \"overlay\"],\n});\nconst PopoverRootContext = new Context(\"Popover.Root\");\nexport class PopoverRootState {\n static create(opts) {\n return PopoverRootContext.set(new PopoverRootState(opts));\n }\n opts;\n contentNode = $state(null);\n contentPresence;\n triggerNode = $state(null);\n overlayNode = $state(null);\n overlayPresence;\n constructor(opts) {\n this.opts = opts;\n this.contentPresence = new PresenceManager({\n ref: boxWith(() => this.contentNode),\n open: this.opts.open,\n onComplete: () => {\n this.opts.onOpenChangeComplete.current(this.opts.open.current);\n },\n });\n this.overlayPresence = new PresenceManager({\n ref: boxWith(() => this.overlayNode),\n open: this.opts.open,\n });\n }\n toggleOpen() {\n this.opts.open.current = !this.opts.open.current;\n }\n handleClose() {\n if (!this.opts.open.current)\n return;\n this.opts.open.current = false;\n }\n}\nexport class PopoverTriggerState {\n static create(opts) {\n return new PopoverTriggerState(opts, PopoverRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.triggerNode = v));\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n onclick(e) {\n if (this.opts.disabled.current)\n return;\n if (e.button !== 0)\n return;\n this.root.toggleOpen();\n }\n onkeydown(e) {\n if (this.opts.disabled.current)\n return;\n if (!(e.key === kbd.ENTER || e.key === kbd.SPACE))\n return;\n e.preventDefault();\n this.root.toggleOpen();\n }\n #getAriaControls() {\n if (this.root.opts.open.current && this.root.contentNode?.id) {\n return this.root.contentNode?.id;\n }\n return undefined;\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": boolToStr(this.root.opts.open.current),\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n \"aria-controls\": this.#getAriaControls(),\n [popoverAttrs.trigger]: \"\",\n disabled: this.opts.disabled.current,\n //\n onkeydown: this.onkeydown,\n onclick: this.onclick,\n ...this.attachment,\n }));\n}\nexport class PopoverContentState {\n static create(opts) {\n return new PopoverContentState(opts, PopoverRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.contentNode = v));\n }\n onInteractOutside = (e) => {\n this.opts.onInteractOutside.current(e);\n if (e.defaultPrevented)\n return;\n if (!isElement(e.target))\n return;\n const closestTrigger = e.target.closest(popoverAttrs.selector(\"trigger\"));\n if (closestTrigger && closestTrigger === this.root.triggerNode)\n return;\n if (this.opts.customAnchor.current) {\n if (isElement(this.opts.customAnchor.current)) {\n if (this.opts.customAnchor.current.contains(e.target))\n return;\n }\n else if (typeof this.opts.customAnchor.current === \"string\") {\n const el = document.querySelector(this.opts.customAnchor.current);\n if (el && el.contains(e.target))\n return;\n }\n }\n this.root.handleClose();\n };\n onEscapeKeydown = (e) => {\n this.opts.onEscapeKeydown.current(e);\n if (e.defaultPrevented)\n return;\n this.root.handleClose();\n };\n get shouldRender() {\n return this.root.contentPresence.shouldRender;\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n tabindex: -1,\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n [popoverAttrs.content]: \"\",\n style: {\n pointerEvents: \"auto\",\n },\n ...this.attachment,\n }));\n popperProps = {\n onInteractOutside: this.onInteractOutside,\n onEscapeKeydown: this.onEscapeKeydown,\n };\n}\nexport class PopoverCloseState {\n static create(opts) {\n return new PopoverCloseState(opts, PopoverRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n onclick(_) {\n this.root.handleClose();\n }\n onkeydown(e) {\n if (!(e.key === kbd.ENTER || e.key === kbd.SPACE))\n return;\n e.preventDefault();\n this.root.handleClose();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n onclick: this.onclick,\n onkeydown: this.onkeydown,\n type: \"button\",\n [popoverAttrs.close]: \"\",\n ...this.attachment,\n }));\n}\nexport class PopoverOverlayState {\n static create(opts) {\n return new PopoverOverlayState(opts, PopoverRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.overlayNode = v));\n }\n get shouldRender() {\n return this.root.overlayPresence.shouldRender;\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [popoverAttrs.overlay]: \"\",\n style: {\n pointerEvents: \"auto\",\n },\n \"data-state\": getDataOpenClosed(this.root.opts.open.current),\n ...this.attachment,\n }));\n}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { PopoverContentProps } from \"../types.js\";\n\timport { PopoverContentState } from \"../popover.svelte.js\";\n\timport PopperLayer from \"../../utilities/popper-layer/popper-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { getFloatingContentCSSVars } from \"../../../internal/floating-svelte/floating-utils.svelte.js\";\n\timport PopperLayerForceMount from \"../../utilities/popper-layer/popper-layer-force-mount.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchild,\n\t\tchildren,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tforceMount = false,\n\t\tonCloseAutoFocus = noop,\n\t\tonEscapeKeydown = noop,\n\t\tonInteractOutside = noop,\n\t\ttrapFocus = true,\n\t\tpreventScroll = false,\n\t\tcustomAnchor = null,\n\t\t...restProps\n\t}: PopoverContentProps = $props();\n\n\tconst contentState = PopoverContentState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tonInteractOutside: boxWith(() => onInteractOutside),\n\t\tonEscapeKeydown: boxWith(() => onEscapeKeydown),\n\t\tcustomAnchor: boxWith(() => customAnchor),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n</script>\n\n{#if forceMount}\n\t<PopperLayerForceMount\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\tenabled={contentState.root.opts.open.current}\n\t\t{id}\n\t\t{trapFocus}\n\t\t{preventScroll}\n\t\tloop\n\t\tforceMount={true}\n\t\t{customAnchor}\n\t\t{onCloseAutoFocus}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"popover\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayerForceMount>\n{:else if !forceMount}\n\t<PopperLayer\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\topen={contentState.root.opts.open.current}\n\t\t{id}\n\t\t{trapFocus}\n\t\t{preventScroll}\n\t\tloop\n\t\tforceMount={false}\n\t\t{customAnchor}\n\t\t{onCloseAutoFocus}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"popover\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayer>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { PopoverTriggerProps } from \"../types.js\";\n\timport { PopoverTriggerState } from \"../popover.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport FloatingLayerAnchor from \"../../utilities/floating-layer/components/floating-layer-anchor.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\ttype = \"button\",\n\t\tdisabled = false,\n\t\t...restProps\n\t}: PopoverTriggerProps = $props();\n\n\tconst triggerState = PopoverTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdisabled: boxWith(() => Boolean(disabled)),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n<FloatingLayerAnchor {id} ref={triggerState.opts.ref}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<button {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</button>\n\t{/if}\n</FloatingLayerAnchor>\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { PopoverRootProps } from \"../types.js\";\n\timport { PopoverRootState } from \"../popover.svelte.js\";\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tchildren,\n\t}: PopoverRootProps = $props();\n\n\tPopoverRootState.create({\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n<FloatingLayer>\n\t{@render children?.()}\n</FloatingLayer>\n","<script lang=\"ts\">\n\timport { Popover as PopoverPrimitive } from \"bits-ui\";\n\n\tlet { open = $bindable(false), ...restProps }: PopoverPrimitive.RootProps = $props();\n</script>\n\n<PopoverPrimitive.Root bind:open {...restProps} />\n","<script lang=\"ts\">\n\timport { Popover as PopoverPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: PopoverPrimitive.PortalProps = $props();\n</script>\n\n<PopoverPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { Popover as PopoverPrimitive } from \"bits-ui\";\n\timport PopoverPortal from \"./popover-portal.svelte\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport type { ComponentProps } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tsideOffset = 4,\n\t\talign = \"center\",\n\t\tportalProps,\n\t\t...restProps\n\t}: PopoverPrimitive.ContentProps & {\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof PopoverPortal>>;\n\t} = $props();\n</script>\n\n<PopoverPortal {...portalProps}>\n\t<PopoverPrimitive.Content\n\t\tbind:ref\n\t\tdata-slot=\"popover-content\"\n\t\t{sideOffset}\n\t\t{align}\n\t\tclass={cn(\n\t\t\t\"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--bits-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden\",\n\t\t\tclassName\n\t\t)}\n\t\t{...restProps}\n\t/>\n</PopoverPortal>\n","<script lang=\"ts\">\n\timport { cn } from \"$lib/utils.js\";\n\timport { Popover as PopoverPrimitive } from \"bits-ui\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: PopoverPrimitive.TriggerProps = $props();\n</script>\n\n<PopoverPrimitive.Trigger\n\tbind:ref\n\tdata-slot=\"popover-trigger\"\n\tclass={cn(\"\", className)}\n\t{...restProps}\n/>\n"],"names":["popoverAttrs","createBitsAttrs","PopoverRootContext","Context","PopoverRootState","opts","#contentNode","$.state","value","#triggerNode","#overlayNode","PresenceManager","boxWith","PopoverTriggerState","root","attachRef","v","e","kbd.ENTER","kbd.SPACE","#getAriaControls","boolToStr","getDataOpenClosed","PopoverContentState","isElement","closestTrigger","el","uid","$.props_id","ref","id","$.prop","$$props","createId","forceMount","onCloseAutoFocus","noop","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","restProps","$.rest_props","contentState","mergedProps","mergeProps","PopperLayerForceMount","$$anchor","$.spread_props","$.get","$$arg0","props","wrapperProps","finalProps","$.derived","getFloatingContentCSSVars","div","root_4","$.attribute_effect","div_1","PopperLayer","div_2","root_9","div_3","$$render","consequent_3","consequent_1","alternate_2","type","disabled","triggerState","FloatingLayerAnchor","$.snippet","node_1","button","root_3","open","onOpenChange","onOpenChangeComplete","FloatingLayer","PopoverPrimitive_Root","$$value","PopoverPrimitive_Portal","sideOffset","align","PopoverPortal","$0","cn","PopoverPrimitive_Content","PopoverPrimitive_Trigger"],"mappings":"qdAMM,MAAAA,GAAeC,GAAe,CAChC,UAAW,UACX,MAAK,CAAG,OAAQ,UAAW,UAAW,QAAS,SAAS,IAEtDC,GAAkB,IAAOC,GAAQ,cAAc,EACxC,MAAAC,EAAiB,QACnB,OAAOC,EAAM,CACT,OAAAH,GAAmB,IAAG,IAAKE,GAAiBC,CAAI,CAAA,CAC3D,CACA,KACcC,GAAAC,GAAO,IAAI,MAAzB,aAAW,uBAAX,YAAWC,EAAA,iBACX,gBACcC,GAAAF,GAAO,IAAI,MAAzB,aAAW,uBAAX,YAAWC,EA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AAC,EAAAX,EAAA,oFAMJsD,GAAatC,EAAAC,EAAA,IAAAjB,EAAA,YAAA,oCAML,IAAAuD,EAAAhC,EAAA,IAAAiC,GACN,+dAA8dxD,EAAA,KAAA,CAAA,qBAN/dyD,EAAiBzC,EAAAC,yDAGhBmC,EAAU,sBACVC,EAAK,iCAKF3C,OARJ,KAAK,iBAAL,IAAKwC,EAAA,+CAJP,iBChBA,SAKE,IAAArD,eAAgB,IAAI,EAEjBa,EAAAC,EAAAX,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAuD,EAAAhC,EAAA,IAAAiC,GAAG,GAAExD,EAAA,KAAA,CAAA,qBAHZ0D,EAAiB1C,EAAAC,+DAIbP,OAHJ,KAAK,iBAAL,IAAKwC,EAAA,sBAHN","x_google_ignoreList":[0,1,2,3]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/Btlz2xiW.js b/backend/static/frontend/_app/immutable/chunks/CC8KIeOw.js
similarity index 97%
rename from backend/static/frontend/_app/immutable/chunks/Btlz2xiW.js
rename to backend/static/frontend/_app/immutable/chunks/CC8KIeOw.js
index e2d43030..7d6ce380 100644
--- a/backend/static/frontend/_app/immutable/chunks/Btlz2xiW.js
+++ b/backend/static/frontend/_app/immutable/chunks/CC8KIeOw.js
@@ -1 +1 @@
-import{p as a,i as G,r as P,s as j}from"./DMODTt3n.js";import{u as l,g as e,i as C,h as X,F as it,v as at,K as B,p as S,d as _,c as y,b as d,a as A,m as k,f as K,e as N,o as E,r as O}from"./B2WdN-7r.js";import{c as U}from"./BAcG0-U_.js";import{b as z,d as Y}from"./DH0tcjsQ.js";import{a as F,e as Z,d as ot,f as $,h as nt,c as L,b as h,m as W}from"./DWAABZDo.js";import{C as lt,w as tt,S as ct,E as dt,c as Q,R as ut,n as ht}from"./CAQEdoSh.js";const R=ot({component:"tabs",parts:["root","list","trigger","content"]}),V=new lt("Tabs.Root");class q{static create(t){return V.set(new q(t))}opts;attachment;rovingFocusGroup;#t=X(at([]));get triggerIds(){return e(this.#t)}set triggerIds(t){C(this.#t,t,!0)}valueToTriggerId=new Q;valueToContentId=new Q;constructor(t){this.opts=t,this.attachment=F(t.ref),this.rovingFocusGroup=new ut({candidateAttr:R.trigger,rootNode:this.opts.ref,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(t,r){return this.triggerIds.push(t),this.valueToTriggerId.set(r,t),()=>{this.triggerIds=this.triggerIds.filter(i=>i!==t),this.valueToTriggerId.delete(r)}}registerContent(t,r){return this.valueToContentId.set(r,t),()=>{this.valueToContentId.delete(r)}}setValue(t){this.opts.value.current=t}#e=l(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[R.root]:"",...this.attachment}));get props(){return e(this.#e)}set props(t){C(this.#e,t)}}class H{static create(t){return new H(t,V.get())}opts;root;attachment;#t=l(()=>this.root.opts.disabled.current);constructor(t,r){this.opts=t,this.root=r,this.attachment=F(t.ref)}#e=l(()=>({id:this.opts.id.current,role:"tablist","aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[R.list]:"","data-disabled":Z(e(this.#t)),...this.attachment}));get props(){return e(this.#e)}set props(t){C(this.#e,t)}}class J{static create(t){return new J(t,V.get())}opts;root;attachment;#t=X(0);#e=l(()=>this.root.opts.value.current===this.opts.value.current);#r=l(()=>this.opts.disabled.current||this.root.opts.disabled.current);#a=l(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(t,r){this.opts=t,this.root=r,this.attachment=F(t.ref),tt([()=>this.opts.id.current,()=>this.opts.value.current],([i,s])=>this.root.registerTrigger(i,s)),it(()=>{this.root.triggerIds.length,e(this.#e)||!this.root.opts.value.current?C(this.#t,0):C(this.#t,-1)}),this.onfocus=this.onfocus.bind(this),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#s(){this.root.opts.value.current!==this.opts.value.current&&this.root.setValue(this.opts.value.current)}onfocus(t){this.root.opts.activationMode.current!=="automatic"||e(this.#r)||this.#s()}onclick(t){e(this.#r)||this.#s()}onkeydown(t){if(!e(this.#r)){if(t.key===ct||t.key===dt){t.preventDefault(),this.#s();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,t)}}#i=l(()=>({id:this.opts.id.current,role:"tab","data-state":rt(e(this.#e)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Z(e(this.#r)),"aria-selected":nt(e(this.#e)),"aria-controls":e(this.#a),[R.trigger]:"",disabled:$(e(this.#r)),tabindex:e(this.#t),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return e(this.#i)}set props(t){C(this.#i,t)}}class et{static create(t){return new et(t,V.get())}opts;root;attachment;#t=l(()=>this.root.opts.value.current===this.opts.value.current);#e=l(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(t,r){this.opts=t,this.root=r,this.attachment=F(t.ref),tt([()=>this.opts.id.current,()=>this.opts.value.current],([i,s])=>this.root.registerContent(i,s))}#r=l(()=>({id:this.opts.id.current,role:"tabpanel",hidden:$(!e(this.#t)),tabindex:0,"data-value":this.opts.value.current,"data-state":rt(e(this.#t)),"aria-labelledby":e(this.#e),"data-orientation":this.root.opts.orientation.current,[R.content]:"",...this.attachment}));get props(){return e(this.#r)}set props(t){C(this.#r,t)}}function rt(u){return u?"active":"inactive"}var vt=K("<div><!></div>");function ft(u,t){const r=B();S(t,!0);let i=a(t,"id",19,()=>L(r)),s=a(t,"ref",15,null),v=a(t,"value",15,""),f=a(t,"onValueChange",3,ht),g=a(t,"orientation",3,"horizontal"),p=a(t,"loop",3,!0),c=a(t,"activationMode",3,"automatic"),I=a(t,"disabled",3,!1),m=P(t,["$$slots","$$events","$$legacy","id","ref","value","onValueChange","orientation","loop","activationMode","disabled","children","child"]);const o=q.create({id:h(()=>i()),value:h(()=>v(),T=>{v(T),f()(T)}),orientation:h(()=>g()),loop:h(()=>p()),activationMode:h(()=>c()),disabled:h(()=>I()),ref:h(()=>s(),T=>s(T))}),b=l(()=>W(m,o.props));var n=_(),w=y(n);{var M=T=>{var x=_(),D=y(x);k(D,()=>t.child,()=>({props:e(b)})),d(T,x)},st=T=>{var x=vt();z(x,()=>({...e(b)}));var D=N(x);k(D,()=>t.children??E),O(x),d(T,x)};G(w,T=>{t.child?T(M):T(st,!1)})}d(u,n),A()}var gt=K("<div><!></div>");function pt(u,t){const r=B();S(t,!0);let i=a(t,"id",19,()=>L(r)),s=a(t,"ref",15,null),v=P(t,["$$slots","$$events","$$legacy","child","children","id","ref"]);const f=H.create({id:h(()=>i()),ref:h(()=>s(),o=>s(o))}),g=l(()=>W(v,f.props));var p=_(),c=y(p);{var I=o=>{var b=_(),n=y(b);k(n,()=>t.child,()=>({props:e(g)})),d(o,b)},m=o=>{var b=gt();z(b,()=>({...e(g)}));var n=N(b);k(n,()=>t.children??E),O(b),d(o,b)};G(c,o=>{t.child?o(I):o(m,!1)})}d(u,p),A()}var bt=K("<button><!></button>");function mt(u,t){const r=B();S(t,!0);let i=a(t,"disabled",3,!1),s=a(t,"id",19,()=>L(r)),v=a(t,"type",3,"button"),f=a(t,"ref",15,null),g=P(t,["$$slots","$$events","$$legacy","child","children","disabled","id","type","value","ref"]);const p=J.create({id:h(()=>s()),disabled:h(()=>i()??!1),value:h(()=>t.value),ref:h(()=>f(),n=>f(n))}),c=l(()=>W(g,p.props,{type:v()}));var I=_(),m=y(I);{var o=n=>{var w=_(),M=y(w);k(M,()=>t.child,()=>({props:e(c)})),d(n,w)},b=n=>{var w=bt();z(w,()=>({...e(c)}));var M=N(w);k(M,()=>t.children??E),O(w),d(n,w)};G(m,n=>{t.child?n(o):n(b,!1)})}d(u,I),A()}function xt(u,t){S(t,!0);let r=a(t,"value",15),i=P(t,["$$slots","$$events","$$legacy","value"]);var s=_(),v=y(s);U(v,()=>ft,(f,g)=>{g(f,j(()=>i,{get value(){return r()},set value(p){r(p)}}))}),d(u,s),A()}function Ct(u,t){S(t,!0);let r=a(t,"ref",15,null),i=P(t,["$$slots","$$events","$$legacy","ref","class","children"]);var s=_(),v=y(s);{let f=l(()=>Y("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",t.class));U(v,()=>pt,(g,p)=>{p(g,j({get class(){return e(f)}},()=>i,{get ref(){return r()},set ref(c){r(c)},children:(c,I)=>{var m=_(),o=y(m);k(o,()=>t.children??E),d(c,m)},$$slots:{default:!0}}))})}d(u,s),A()}function Pt(u,t){S(t,!0);let r=a(t,"ref",15,null),i=P(t,["$$slots","$$events","$$legacy","ref","class","children"]);var s=_(),v=y(s);{let f=l(()=>Y("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow",t.class));U(v,()=>mt,(g,p)=>{p(g,j({get class(){return e(f)}},()=>i,{get ref(){return r()},set ref(c){r(c)},children:(c,I)=>{var m=_(),o=y(m);k(o,()=>t.children??E),d(c,m)},$$slots:{default:!0}}))})}d(u,s),A()}export{xt as T,Ct as a,Pt as b,et as c};
+import{p as a,i as G,r as P,s as j}from"./DMODTt3n.js";import{u as l,g as e,i as C,h as X,F as it,v as at,K as B,p as S,d as _,c as y,b as d,a as A,m as k,f as K,e as N,o as E,r as O}from"./B2WdN-7r.js";import{c as U}from"./BAcG0-U_.js";import{b as z,d as Y}from"./DH0tcjsQ.js";import{a as F,e as Z,d as ot,f as $,g as nt,c as L,b as h,m as W}from"./BDd6-VcB.js";import{C as lt,w as tt,S as ct,E as dt,b as Q,R as ut,n as ht}from"./CjLH05gQ.js";const R=ot({component:"tabs",parts:["root","list","trigger","content"]}),V=new lt("Tabs.Root");class q{static create(t){return V.set(new q(t))}opts;attachment;rovingFocusGroup;#t=X(at([]));get triggerIds(){return e(this.#t)}set triggerIds(t){C(this.#t,t,!0)}valueToTriggerId=new Q;valueToContentId=new Q;constructor(t){this.opts=t,this.attachment=F(t.ref),this.rovingFocusGroup=new ut({candidateAttr:R.trigger,rootNode:this.opts.ref,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(t,r){return this.triggerIds.push(t),this.valueToTriggerId.set(r,t),()=>{this.triggerIds=this.triggerIds.filter(i=>i!==t),this.valueToTriggerId.delete(r)}}registerContent(t,r){return this.valueToContentId.set(r,t),()=>{this.valueToContentId.delete(r)}}setValue(t){this.opts.value.current=t}#e=l(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[R.root]:"",...this.attachment}));get props(){return e(this.#e)}set props(t){C(this.#e,t)}}class H{static create(t){return new H(t,V.get())}opts;root;attachment;#t=l(()=>this.root.opts.disabled.current);constructor(t,r){this.opts=t,this.root=r,this.attachment=F(t.ref)}#e=l(()=>({id:this.opts.id.current,role:"tablist","aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[R.list]:"","data-disabled":Z(e(this.#t)),...this.attachment}));get props(){return e(this.#e)}set props(t){C(this.#e,t)}}class J{static create(t){return new J(t,V.get())}opts;root;attachment;#t=X(0);#e=l(()=>this.root.opts.value.current===this.opts.value.current);#r=l(()=>this.opts.disabled.current||this.root.opts.disabled.current);#a=l(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(t,r){this.opts=t,this.root=r,this.attachment=F(t.ref),tt([()=>this.opts.id.current,()=>this.opts.value.current],([i,s])=>this.root.registerTrigger(i,s)),it(()=>{this.root.triggerIds.length,e(this.#e)||!this.root.opts.value.current?C(this.#t,0):C(this.#t,-1)}),this.onfocus=this.onfocus.bind(this),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#s(){this.root.opts.value.current!==this.opts.value.current&&this.root.setValue(this.opts.value.current)}onfocus(t){this.root.opts.activationMode.current!=="automatic"||e(this.#r)||this.#s()}onclick(t){e(this.#r)||this.#s()}onkeydown(t){if(!e(this.#r)){if(t.key===ct||t.key===dt){t.preventDefault(),this.#s();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,t)}}#i=l(()=>({id:this.opts.id.current,role:"tab","data-state":rt(e(this.#e)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Z(e(this.#r)),"aria-selected":nt(e(this.#e)),"aria-controls":e(this.#a),[R.trigger]:"",disabled:$(e(this.#r)),tabindex:e(this.#t),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return e(this.#i)}set props(t){C(this.#i,t)}}class et{static create(t){return new et(t,V.get())}opts;root;attachment;#t=l(()=>this.root.opts.value.current===this.opts.value.current);#e=l(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(t,r){this.opts=t,this.root=r,this.attachment=F(t.ref),tt([()=>this.opts.id.current,()=>this.opts.value.current],([i,s])=>this.root.registerContent(i,s))}#r=l(()=>({id:this.opts.id.current,role:"tabpanel",hidden:$(!e(this.#t)),tabindex:0,"data-value":this.opts.value.current,"data-state":rt(e(this.#t)),"aria-labelledby":e(this.#e),"data-orientation":this.root.opts.orientation.current,[R.content]:"",...this.attachment}));get props(){return e(this.#r)}set props(t){C(this.#r,t)}}function rt(u){return u?"active":"inactive"}var vt=K("<div><!></div>");function ft(u,t){const r=B();S(t,!0);let i=a(t,"id",19,()=>L(r)),s=a(t,"ref",15,null),v=a(t,"value",15,""),f=a(t,"onValueChange",3,ht),g=a(t,"orientation",3,"horizontal"),p=a(t,"loop",3,!0),c=a(t,"activationMode",3,"automatic"),I=a(t,"disabled",3,!1),m=P(t,["$$slots","$$events","$$legacy","id","ref","value","onValueChange","orientation","loop","activationMode","disabled","children","child"]);const o=q.create({id:h(()=>i()),value:h(()=>v(),T=>{v(T),f()(T)}),orientation:h(()=>g()),loop:h(()=>p()),activationMode:h(()=>c()),disabled:h(()=>I()),ref:h(()=>s(),T=>s(T))}),b=l(()=>W(m,o.props));var n=_(),w=y(n);{var M=T=>{var x=_(),D=y(x);k(D,()=>t.child,()=>({props:e(b)})),d(T,x)},st=T=>{var x=vt();z(x,()=>({...e(b)}));var D=N(x);k(D,()=>t.children??E),O(x),d(T,x)};G(w,T=>{t.child?T(M):T(st,!1)})}d(u,n),A()}var gt=K("<div><!></div>");function pt(u,t){const r=B();S(t,!0);let i=a(t,"id",19,()=>L(r)),s=a(t,"ref",15,null),v=P(t,["$$slots","$$events","$$legacy","child","children","id","ref"]);const f=H.create({id:h(()=>i()),ref:h(()=>s(),o=>s(o))}),g=l(()=>W(v,f.props));var p=_(),c=y(p);{var I=o=>{var b=_(),n=y(b);k(n,()=>t.child,()=>({props:e(g)})),d(o,b)},m=o=>{var b=gt();z(b,()=>({...e(g)}));var n=N(b);k(n,()=>t.children??E),O(b),d(o,b)};G(c,o=>{t.child?o(I):o(m,!1)})}d(u,p),A()}var bt=K("<button><!></button>");function mt(u,t){const r=B();S(t,!0);let i=a(t,"disabled",3,!1),s=a(t,"id",19,()=>L(r)),v=a(t,"type",3,"button"),f=a(t,"ref",15,null),g=P(t,["$$slots","$$events","$$legacy","child","children","disabled","id","type","value","ref"]);const p=J.create({id:h(()=>s()),disabled:h(()=>i()??!1),value:h(()=>t.value),ref:h(()=>f(),n=>f(n))}),c=l(()=>W(g,p.props,{type:v()}));var I=_(),m=y(I);{var o=n=>{var w=_(),M=y(w);k(M,()=>t.child,()=>({props:e(c)})),d(n,w)},b=n=>{var w=bt();z(w,()=>({...e(c)}));var M=N(w);k(M,()=>t.children??E),O(w),d(n,w)};G(m,n=>{t.child?n(o):n(b,!1)})}d(u,I),A()}function xt(u,t){S(t,!0);let r=a(t,"value",15),i=P(t,["$$slots","$$events","$$legacy","value"]);var s=_(),v=y(s);U(v,()=>ft,(f,g)=>{g(f,j(()=>i,{get value(){return r()},set value(p){r(p)}}))}),d(u,s),A()}function Ct(u,t){S(t,!0);let r=a(t,"ref",15,null),i=P(t,["$$slots","$$events","$$legacy","ref","class","children"]);var s=_(),v=y(s);{let f=l(()=>Y("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",t.class));U(v,()=>pt,(g,p)=>{p(g,j({get class(){return e(f)}},()=>i,{get ref(){return r()},set ref(c){r(c)},children:(c,I)=>{var m=_(),o=y(m);k(o,()=>t.children??E),d(c,m)},$$slots:{default:!0}}))})}d(u,s),A()}function Pt(u,t){S(t,!0);let r=a(t,"ref",15,null),i=P(t,["$$slots","$$events","$$legacy","ref","class","children"]);var s=_(),v=y(s);{let f=l(()=>Y("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow",t.class));U(v,()=>mt,(g,p)=>{p(g,j({get class(){return e(f)}},()=>i,{get ref(){return r()},set ref(c){r(c)},children:(c,I)=>{var m=_(),o=y(m);k(o,()=>t.children??E),d(c,m)},$$slots:{default:!0}}))})}d(u,s),A()}export{xt as T,Ct as a,Pt as b,et as c};
diff --git a/backend/static/frontend/_app/immutable/chunks/Btlz2xiW.js.map b/backend/static/frontend/_app/immutable/chunks/CC8KIeOw.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/Btlz2xiW.js.map
rename to backend/static/frontend/_app/immutable/chunks/CC8KIeOw.js.map
index f12c6cda..44a99535 100644
--- a/backend/static/frontend/_app/immutable/chunks/Btlz2xiW.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/CC8KIeOw.js.map
@@ -1 +1 @@
-{"version":3,"file":"Btlz2xiW.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/tabs/tabs.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/tabs/components/tabs.svelte","../../../../../../node_modules/bits-ui/dist/bits/tabs/components/tabs-list.svelte","../../../../../../node_modules/bits-ui/dist/bits/tabs/components/tabs-trigger.svelte","../../../../../../src/lib/components/ui/tabs/tabs.svelte","../../../../../../src/lib/components/ui/tabs/tabs-list.svelte","../../../../../../src/lib/components/ui/tabs/tabs-trigger.svelte"],"sourcesContent":["import { SvelteMap } from \"svelte/reactivity\";\nimport { attachRef } from \"svelte-toolbelt\";\nimport { Context, watch } from \"runed\";\nimport { createBitsAttrs, boolToStr, boolToEmptyStrOrUndef, boolToTrueOrUndef, } from \"../../internal/attrs.js\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { RovingFocusGroup } from \"../../internal/roving-focus-group.js\";\nconst tabsAttrs = createBitsAttrs({\n component: \"tabs\",\n parts: [\"root\", \"list\", \"trigger\", \"content\"],\n});\nconst TabsRootContext = new Context(\"Tabs.Root\");\nexport class TabsRootState {\n static create(opts) {\n return TabsRootContext.set(new TabsRootState(opts));\n }\n opts;\n attachment;\n rovingFocusGroup;\n triggerIds = $state([]);\n // holds the trigger ID for each value to associate it with the content\n valueToTriggerId = new SvelteMap();\n // holds the content ID for each value to associate it with the trigger\n valueToContentId = new SvelteMap();\n constructor(opts) {\n this.opts = opts;\n this.attachment = attachRef(opts.ref);\n this.rovingFocusGroup = new RovingFocusGroup({\n candidateAttr: tabsAttrs.trigger,\n rootNode: this.opts.ref,\n loop: this.opts.loop,\n orientation: this.opts.orientation,\n });\n }\n registerTrigger(id, value) {\n this.triggerIds.push(id);\n this.valueToTriggerId.set(value, id);\n // returns the deregister function\n return () => {\n this.triggerIds = this.triggerIds.filter((triggerId) => triggerId !== id);\n this.valueToTriggerId.delete(value);\n };\n }\n registerContent(id, value) {\n this.valueToContentId.set(value, id);\n // returns the deregister function\n return () => {\n this.valueToContentId.delete(value);\n };\n }\n setValue(v) {\n this.opts.value.current = v;\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-orientation\": this.opts.orientation.current,\n [tabsAttrs.root]: \"\",\n ...this.attachment,\n }));\n}\nexport class TabsListState {\n static create(opts) {\n return new TabsListState(opts, TabsRootContext.get());\n }\n opts;\n root;\n attachment;\n #isDisabled = $derived.by(() => this.root.opts.disabled.current);\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"tablist\",\n \"aria-orientation\": this.root.opts.orientation.current,\n \"data-orientation\": this.root.opts.orientation.current,\n [tabsAttrs.list]: \"\",\n \"data-disabled\": boolToEmptyStrOrUndef(this.#isDisabled),\n ...this.attachment,\n }));\n}\nexport class TabsTriggerState {\n static create(opts) {\n return new TabsTriggerState(opts, TabsRootContext.get());\n }\n opts;\n root;\n attachment;\n #tabIndex = $state(0);\n #isActive = $derived.by(() => this.root.opts.value.current === this.opts.value.current);\n #isDisabled = $derived.by(() => this.opts.disabled.current || this.root.opts.disabled.current);\n #ariaControls = $derived.by(() => this.root.valueToContentId.get(this.opts.value.current));\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n watch([() => this.opts.id.current, () => this.opts.value.current], ([id, value]) => {\n return this.root.registerTrigger(id, value);\n });\n $effect(() => {\n this.root.triggerIds.length;\n if (this.#isActive || !this.root.opts.value.current) {\n this.#tabIndex = 0;\n }\n else {\n this.#tabIndex = -1;\n }\n });\n this.onfocus = this.onfocus.bind(this);\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n #activate() {\n if (this.root.opts.value.current === this.opts.value.current)\n return;\n this.root.setValue(this.opts.value.current);\n }\n onfocus(_) {\n if (this.root.opts.activationMode.current !== \"automatic\" || this.#isDisabled)\n return;\n this.#activate();\n }\n onclick(_) {\n if (this.#isDisabled)\n return;\n this.#activate();\n }\n onkeydown(e) {\n if (this.#isDisabled)\n return;\n if (e.key === kbd.SPACE || e.key === kbd.ENTER) {\n e.preventDefault();\n this.#activate();\n return;\n }\n this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current, e);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"tab\",\n \"data-state\": getTabDataState(this.#isActive),\n \"data-value\": this.opts.value.current,\n \"data-orientation\": this.root.opts.orientation.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.#isDisabled),\n \"aria-selected\": boolToStr(this.#isActive),\n \"aria-controls\": this.#ariaControls,\n [tabsAttrs.trigger]: \"\",\n disabled: boolToTrueOrUndef(this.#isDisabled),\n tabindex: this.#tabIndex,\n //\n onclick: this.onclick,\n onfocus: this.onfocus,\n onkeydown: this.onkeydown,\n ...this.attachment,\n }));\n}\nexport class TabsContentState {\n static create(opts) {\n return new TabsContentState(opts, TabsRootContext.get());\n }\n opts;\n root;\n attachment;\n #isActive = $derived.by(() => this.root.opts.value.current === this.opts.value.current);\n #ariaLabelledBy = $derived.by(() => this.root.valueToTriggerId.get(this.opts.value.current));\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n watch([() => this.opts.id.current, () => this.opts.value.current], ([id, value]) => {\n return this.root.registerContent(id, value);\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"tabpanel\",\n hidden: boolToTrueOrUndef(!this.#isActive),\n tabindex: 0,\n \"data-value\": this.opts.value.current,\n \"data-state\": getTabDataState(this.#isActive),\n \"aria-labelledby\": this.#ariaLabelledBy,\n \"data-orientation\": this.root.opts.orientation.current,\n [tabsAttrs.content]: \"\",\n ...this.attachment,\n }));\n}\nfunction getTabDataState(condition) {\n return condition ? \"active\" : \"inactive\";\n}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TabsRootProps } from \"../types.js\";\n\timport { TabsRootState } from \"../tabs.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tvalue = $bindable(\"\"),\n\t\tonValueChange = noop,\n\t\torientation = \"horizontal\",\n\t\tloop = true,\n\t\tactivationMode = \"automatic\",\n\t\tdisabled = false,\n\t\tchildren,\n\t\tchild,\n\t\t...restProps\n\t}: TabsRootProps = $props();\n\n\tconst rootState = TabsRootState.create({\n\t\tid: boxWith(() => id),\n\t\tvalue: boxWith(\n\t\t\t() => value,\n\t\t\t(v) => {\n\t\t\t\tvalue = v;\n\t\t\t\tonValueChange(v);\n\t\t\t}\n\t\t),\n\t\torientation: boxWith(() => orientation),\n\t\tloop: boxWith(() => loop),\n\t\tactivationMode: boxWith(() => activationMode),\n\t\tdisabled: boxWith(() => disabled),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, rootState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TabsListProps } from \"../types.js\";\n\timport { TabsListState } from \"../tabs.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchild,\n\t\tchildren,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: TabsListProps = $props();\n\n\tconst listState = TabsListState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, listState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TabsTriggerProps } from \"../types.js\";\n\timport { TabsTriggerState } from \"../tabs.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchild,\n\t\tchildren,\n\t\tdisabled = false,\n\t\tid = createId(uid),\n\t\ttype = \"button\",\n\t\tvalue,\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: TabsTriggerProps = $props();\n\n\tconst triggerState = TabsTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tdisabled: boxWith(() => disabled ?? false),\n\t\tvalue: boxWith(() => value),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">\n\timport { Tabs as TabsPrimitive } from \"bits-ui\";\n\n\tlet {\n\t\tvalue = $bindable(),\n\t\t...restProps\n\t}: TabsPrimitive.RootProps = $props();\n</script>\n\n<TabsPrimitive.Root bind:value {...restProps} />\n","<script lang=\"ts\">\n\timport { Tabs as TabsPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChild<TabsPrimitive.ListProps> = $props();\n</script>\n\n<TabsPrimitive.List\n\tbind:ref\n\tclass={cn(\n\t\t\"bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</TabsPrimitive.List>\n","<script lang=\"ts\">\n\timport { Tabs as TabsPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChild<TabsPrimitive.TriggerProps> = $props();\n</script>\n\n<TabsPrimitive.Trigger\n\tbind:ref\n\tclass={cn(\n\t\t\"ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</TabsPrimitive.Trigger>\n"],"names":["tabsAttrs","createBitsAttrs","TabsRootContext","Context","TabsRootState","opts","$.state","$.proxy","value","SvelteMap","attachRef","RovingFocusGroup","id","triggerId","v","TabsListState","$.derived","root","boolToEmptyStrOrUndef","$.get","TabsTriggerState","#isActive","#isDisabled","#ariaControls","watch","$.user_effect","#tabIndex","#activate","_","e","kbd.SPACE","kbd.ENTER","getTabDataState","boolToStr","boolToTrueOrUndef","TabsContentState","#ariaLabelledBy","condition","uid","$.props_id","$.prop","$$props","createId","ref","onValueChange","noop","orientation","loop","activationMode","disabled","restProps","$.rest_props","rootState","boxWith","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","listState","type","triggerState","button","TabsPrimitive_Root","$$value","$0","cn","TabsPrimitive_List","$$anchor","$.spread_props","TabsPrimitive_Trigger"],"mappings":"6bAMM,MAAAA,EAAYC,GAAe,CAC7B,UAAW,OACX,OAAQ,OAAQ,OAAQ,UAAW,SAAS,IAE1CC,EAAe,IAAOC,GAAQ,WAAW,EAClC,MAAAC,CAAc,QAChB,OAAOC,EAAM,CACT,OAAAH,EAAgB,IAAG,IAAKE,EAAcC,CAAI,CAAA,CACrD,CACA,KACA,WACA,oBACaC,EAAMC,GAAA,CAAA,CAAA,CAAA,MAAnB,YAAU,uBAAV,WAAUC,EAAA,iBAEV,qBAAuBC,EAEvB,qBAAuBA,EACvB,YAAYJ,EAAM,CACd,KAAK,KAAOA,EACZ,KAAK,WAAaK,EAAUL,EAAK,GAAG,EACpC,KAAK,iBAAgB,IAAOM,GAAgB,CACxC,cAAeX,EAAU,QACzB,SAAU,KAAK,KAAK,IACpB,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B,EAAA,sBAF9B,iBCPA,SAKE,IAAAvB,eAAgB,IAAI,EAGjBO,EAAAC,EAAAV,EAAA,8EAMG,IAAA0B,EAAAnD,EAAA,IAAAoD,EACN,4FAA2F3B,EAAA,KAAA,CAAA,qBAH5F4B,EAAcC,EAAAC,iCAMVrB,OALJ,KAAK,iBAAL,IAAKgB,EAAA,4GAHN,iBCVA,SAKE,IAAAvB,eAAgB,IAAI,EAGjBO,EAAAC,EAAAV,EAAA,8EAMG,IAAA0B,EAAAnD,EAAA,IAAAoD,EACN,iYAAgY3B,EAAA,KAAA,CAAA,qBAHjY+B,EAAcF,EAAAC,iCAMVrB,OALJ,KAAK,iBAAL,IAAKgB,EAAA,4GAHN","x_google_ignoreList":[0,1,2,3]}
\ No newline at end of file
+{"version":3,"file":"CC8KIeOw.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/tabs/tabs.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/tabs/components/tabs.svelte","../../../../../../node_modules/bits-ui/dist/bits/tabs/components/tabs-list.svelte","../../../../../../node_modules/bits-ui/dist/bits/tabs/components/tabs-trigger.svelte","../../../../../../src/lib/components/ui/tabs/tabs.svelte","../../../../../../src/lib/components/ui/tabs/tabs-list.svelte","../../../../../../src/lib/components/ui/tabs/tabs-trigger.svelte"],"sourcesContent":["import { SvelteMap } from \"svelte/reactivity\";\nimport { attachRef } from \"svelte-toolbelt\";\nimport { Context, watch } from \"runed\";\nimport { createBitsAttrs, boolToStr, boolToEmptyStrOrUndef, boolToTrueOrUndef, } from \"../../internal/attrs.js\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { RovingFocusGroup } from \"../../internal/roving-focus-group.js\";\nconst tabsAttrs = createBitsAttrs({\n component: \"tabs\",\n parts: [\"root\", \"list\", \"trigger\", \"content\"],\n});\nconst TabsRootContext = new Context(\"Tabs.Root\");\nexport class TabsRootState {\n static create(opts) {\n return TabsRootContext.set(new TabsRootState(opts));\n }\n opts;\n attachment;\n rovingFocusGroup;\n triggerIds = $state([]);\n // holds the trigger ID for each value to associate it with the content\n valueToTriggerId = new SvelteMap();\n // holds the content ID for each value to associate it with the trigger\n valueToContentId = new SvelteMap();\n constructor(opts) {\n this.opts = opts;\n this.attachment = attachRef(opts.ref);\n this.rovingFocusGroup = new RovingFocusGroup({\n candidateAttr: tabsAttrs.trigger,\n rootNode: this.opts.ref,\n loop: this.opts.loop,\n orientation: this.opts.orientation,\n });\n }\n registerTrigger(id, value) {\n this.triggerIds.push(id);\n this.valueToTriggerId.set(value, id);\n // returns the deregister function\n return () => {\n this.triggerIds = this.triggerIds.filter((triggerId) => triggerId !== id);\n this.valueToTriggerId.delete(value);\n };\n }\n registerContent(id, value) {\n this.valueToContentId.set(value, id);\n // returns the deregister function\n return () => {\n this.valueToContentId.delete(value);\n };\n }\n setValue(v) {\n this.opts.value.current = v;\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-orientation\": this.opts.orientation.current,\n [tabsAttrs.root]: \"\",\n ...this.attachment,\n }));\n}\nexport class TabsListState {\n static create(opts) {\n return new TabsListState(opts, TabsRootContext.get());\n }\n opts;\n root;\n attachment;\n #isDisabled = $derived.by(() => this.root.opts.disabled.current);\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"tablist\",\n \"aria-orientation\": this.root.opts.orientation.current,\n \"data-orientation\": this.root.opts.orientation.current,\n [tabsAttrs.list]: \"\",\n \"data-disabled\": boolToEmptyStrOrUndef(this.#isDisabled),\n ...this.attachment,\n }));\n}\nexport class TabsTriggerState {\n static create(opts) {\n return new TabsTriggerState(opts, TabsRootContext.get());\n }\n opts;\n root;\n attachment;\n #tabIndex = $state(0);\n #isActive = $derived.by(() => this.root.opts.value.current === this.opts.value.current);\n #isDisabled = $derived.by(() => this.opts.disabled.current || this.root.opts.disabled.current);\n #ariaControls = $derived.by(() => this.root.valueToContentId.get(this.opts.value.current));\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n watch([() => this.opts.id.current, () => this.opts.value.current], ([id, value]) => {\n return this.root.registerTrigger(id, value);\n });\n $effect(() => {\n this.root.triggerIds.length;\n if (this.#isActive || !this.root.opts.value.current) {\n this.#tabIndex = 0;\n }\n else {\n this.#tabIndex = -1;\n }\n });\n this.onfocus = this.onfocus.bind(this);\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n #activate() {\n if (this.root.opts.value.current === this.opts.value.current)\n return;\n this.root.setValue(this.opts.value.current);\n }\n onfocus(_) {\n if (this.root.opts.activationMode.current !== \"automatic\" || this.#isDisabled)\n return;\n this.#activate();\n }\n onclick(_) {\n if (this.#isDisabled)\n return;\n this.#activate();\n }\n onkeydown(e) {\n if (this.#isDisabled)\n return;\n if (e.key === kbd.SPACE || e.key === kbd.ENTER) {\n e.preventDefault();\n this.#activate();\n return;\n }\n this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current, e);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"tab\",\n \"data-state\": getTabDataState(this.#isActive),\n \"data-value\": this.opts.value.current,\n \"data-orientation\": this.root.opts.orientation.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.#isDisabled),\n \"aria-selected\": boolToStr(this.#isActive),\n \"aria-controls\": this.#ariaControls,\n [tabsAttrs.trigger]: \"\",\n disabled: boolToTrueOrUndef(this.#isDisabled),\n tabindex: this.#tabIndex,\n //\n onclick: this.onclick,\n onfocus: this.onfocus,\n onkeydown: this.onkeydown,\n ...this.attachment,\n }));\n}\nexport class TabsContentState {\n static create(opts) {\n return new TabsContentState(opts, TabsRootContext.get());\n }\n opts;\n root;\n attachment;\n #isActive = $derived.by(() => this.root.opts.value.current === this.opts.value.current);\n #ariaLabelledBy = $derived.by(() => this.root.valueToTriggerId.get(this.opts.value.current));\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref);\n watch([() => this.opts.id.current, () => this.opts.value.current], ([id, value]) => {\n return this.root.registerContent(id, value);\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"tabpanel\",\n hidden: boolToTrueOrUndef(!this.#isActive),\n tabindex: 0,\n \"data-value\": this.opts.value.current,\n \"data-state\": getTabDataState(this.#isActive),\n \"aria-labelledby\": this.#ariaLabelledBy,\n \"data-orientation\": this.root.opts.orientation.current,\n [tabsAttrs.content]: \"\",\n ...this.attachment,\n }));\n}\nfunction getTabDataState(condition) {\n return condition ? \"active\" : \"inactive\";\n}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TabsRootProps } from \"../types.js\";\n\timport { TabsRootState } from \"../tabs.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tvalue = $bindable(\"\"),\n\t\tonValueChange = noop,\n\t\torientation = \"horizontal\",\n\t\tloop = true,\n\t\tactivationMode = \"automatic\",\n\t\tdisabled = false,\n\t\tchildren,\n\t\tchild,\n\t\t...restProps\n\t}: TabsRootProps = $props();\n\n\tconst rootState = TabsRootState.create({\n\t\tid: boxWith(() => id),\n\t\tvalue: boxWith(\n\t\t\t() => value,\n\t\t\t(v) => {\n\t\t\t\tvalue = v;\n\t\t\t\tonValueChange(v);\n\t\t\t}\n\t\t),\n\t\torientation: boxWith(() => orientation),\n\t\tloop: boxWith(() => loop),\n\t\tactivationMode: boxWith(() => activationMode),\n\t\tdisabled: boxWith(() => disabled),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, rootState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TabsListProps } from \"../types.js\";\n\timport { TabsListState } from \"../tabs.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchild,\n\t\tchildren,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: TabsListProps = $props();\n\n\tconst listState = TabsListState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, listState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TabsTriggerProps } from \"../types.js\";\n\timport { TabsTriggerState } from \"../tabs.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchild,\n\t\tchildren,\n\t\tdisabled = false,\n\t\tid = createId(uid),\n\t\ttype = \"button\",\n\t\tvalue,\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: TabsTriggerProps = $props();\n\n\tconst triggerState = TabsTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tdisabled: boxWith(() => disabled ?? false),\n\t\tvalue: boxWith(() => value),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">\n\timport { Tabs as TabsPrimitive } from \"bits-ui\";\n\n\tlet {\n\t\tvalue = $bindable(),\n\t\t...restProps\n\t}: TabsPrimitive.RootProps = $props();\n</script>\n\n<TabsPrimitive.Root bind:value {...restProps} />\n","<script lang=\"ts\">\n\timport { Tabs as TabsPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChild<TabsPrimitive.ListProps> = $props();\n</script>\n\n<TabsPrimitive.List\n\tbind:ref\n\tclass={cn(\n\t\t\"bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</TabsPrimitive.List>\n","<script lang=\"ts\">\n\timport { Tabs as TabsPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChild<TabsPrimitive.TriggerProps> = $props();\n</script>\n\n<TabsPrimitive.Trigger\n\tbind:ref\n\tclass={cn(\n\t\t\"ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</TabsPrimitive.Trigger>\n"],"names":["tabsAttrs","createBitsAttrs","TabsRootContext","Context","TabsRootState","opts","$.state","$.proxy","value","SvelteMap","attachRef","RovingFocusGroup","id","triggerId","v","TabsListState","$.derived","root","boolToEmptyStrOrUndef","$.get","TabsTriggerState","#isActive","#isDisabled","#ariaControls","watch","$.user_effect","#tabIndex","#activate","_","e","kbd.SPACE","kbd.ENTER","getTabDataState","boolToStr","boolToTrueOrUndef","TabsContentState","#ariaLabelledBy","condition","uid","$.props_id","$.prop","$$props","createId","ref","onValueChange","noop","orientation","loop","activationMode","disabled","restProps","$.rest_props","rootState","boxWith","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","listState","type","triggerState","button","TabsPrimitive_Root","$$value","$0","cn","TabsPrimitive_List","$$anchor","$.spread_props","TabsPrimitive_Trigger"],"mappings":"6bAMM,MAAAA,EAAYC,GAAe,CAC7B,UAAW,OACX,OAAQ,OAAQ,OAAQ,UAAW,SAAS,IAE1CC,EAAe,IAAOC,GAAQ,WAAW,EAClC,MAAAC,CAAc,QAChB,OAAOC,EAAM,CACT,OAAAH,EAAgB,IAAG,IAAKE,EAAcC,CAAI,CAAA,CACrD,CACA,KACA,WACA,oBACaC,EAAMC,GAAA,CAAA,CAAA,CAAA,MAAnB,YAAU,uBAAV,WAAUC,EAAA,iBAEV,qBAAuBC,EAEvB,qBAAuBA,EACvB,YAAYJ,EAAM,CACd,KAAK,KAAOA,EACZ,KAAK,WAAaK,EAAUL,EAAK,GAAG,EACpC,KAAK,iBAAgB,IAAOM,GAAgB,CACxC,cAAeX,EAAU,QACzB,SAAU,KAAK,KAAK,IACpB,KAAM,KAAK,KAAK,KAChB,YAAa,KAAK,KAAK,aAE/B,CACA,gBAAgBY,EAAIJ,EAAO,CACvB,YAAK,WAAW,KAAKI,CAAE,EACvB,KAAK,iBAAiB,IAAIJ,EAAOI,CAAE,MAEtB,CACT,KAAK,WAAa,KAAK,WAAW,OAAQC,GAAcA,IAAcD,CAAE,EACxE,KAAK,iBAAiB,OAAOJ,CAAK,CACtC,CACJ,CACA,gBAAgBI,EAAIJ,EAAO,CACvB,YAAK,iBAAiB,IAAIA,EAAOI,CAAE,MAEtB,CACT,KAAK,iBAAiB,OAAOJ,CAAK,CACtC,CACJ,CACA,SAASM,EAAG,CACR,KAAK,KAAK,MAAM,QAAUA,CAC9B,YAEI,GAAI,KAAK,KAAK,GAAG,QACjB,mBAAoB,KAAK,KAAK,YAAY,SACz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unks/B7mBgJdZ.js b/backend/static/frontend/_app/immutable/chunks/CCYdrD-l.js
similarity index 96%
rename from backend/static/frontend/_app/immutable/chunks/B7mBgJdZ.js
rename to backend/static/frontend/_app/immutable/chunks/CCYdrD-l.js
index add8a7d7..8bfaf752 100644
--- a/backend/static/frontend/_app/immutable/chunks/B7mBgJdZ.js
+++ b/backend/static/frontend/_app/immutable/chunks/CCYdrD-l.js
@@ -1,4 +1,4 @@
-import{p as ze,i as $,b as nt}from"./DMODTt3n.js";import{q as lt,p as Ye,h as Je,v as it,d as N,c as o,f as n,e as k,n as A,t as ee,b as e,s as a,r as T,g as t,u as g,k as j,l as E,a as Ze,i as Ke}from"./B2WdN-7r.js";import{e as Qe,i as Xe}from"./CMyj8Fzw.js";import{c as s}from"./BAcG0-U_.js";import{a as Ee,b as Re,C as Me}from"./BHR29ZVu.js";import{C as De}from"./BKHeGn2e.js";import{C as Ge}from"./KAiF5-Ht.js";import{f as Le,g as et,b as dt,h as vt,e as ct}from"./DJdWGDax.js";import{B as Ve}from"./C1aqwstW.js";import{a as ut}from"./CagnQ-rd.js";import{C as ft}from"./RIbCUOxE.js";import{C as _t}from"./CXTzohMM.js";import{k as mt}from"./CAQEdoSh.js";import{a as gt}from"./DH0tcjsQ.js";import{g as Fe}from"./xR3pK9Ey.js";import{T as ht,a as $t,b as tt}from"./Btlz2xiW.js";import{T as rt}from"./BMae-b69.js";import{A as pt}from"./DW1P0xGN.js";import{L as He}from"./BCZTK7qK.js";import{i as ot,p as Oe}from"./D6S6XYVy.js";import{S as xt,a as bt,b as kt}from"./BOK8K7n_.js";import{D as Tt}from"./NF-n962K.js";import{A as Ue}from"./Dt-hNsWv.js";import{c as Pt}from"./CyOblkUv.js";import{c as wt,b as yt,T as at,a as qe}from"./CeOjHHJH.js";import{T as St}from"./CEJkX7WU.js";import{T as Be}from"./BQmrPeqT.js";import{T as At}from"./xk30YnJ1.js";import{V as Ct}from"./DE17DnKW.js";function zt(_e){const r=_e.match(/node_modules\/([^/]+)/);if(r)return r[1];const V=_e.match(/^(package:[^/]+|dart:[^/]+)/);return V?V[1]:"library"}function It(_e){const r=_e.split(`
+import{p as ze,i as $,b as nt}from"./DMODTt3n.js";import{q as lt,p as Ye,h as Je,v as it,d as N,c as o,f as n,e as k,n as A,t as ee,b as e,s as a,r as T,g as t,u as g,k as j,l as E,a as Ze,i as Ke}from"./B2WdN-7r.js";import{e as Qe,i as Xe}from"./CMyj8Fzw.js";import{c as s}from"./BAcG0-U_.js";import{a as Ee,b as Re,C as Me}from"./BHR29ZVu.js";import{C as De}from"./BKHeGn2e.js";import{C as Ge}from"./KAiF5-Ht.js";import{f as Le,g as et,b as dt,h as vt,e as ct}from"./Dq-0lVru.js";import{B as Ve}from"./C1aqwstW.js";import{a as ut}from"./x4zBYqLS.js";import{C as ft}from"./RIbCUOxE.js";import{C as _t}from"./CXTzohMM.js";import{k as mt}from"./CjLH05gQ.js";import{a as gt}from"./DH0tcjsQ.js";import{g as Fe}from"./BIF4_51j.js";import{T as ht,a as $t,b as tt}from"./CC8KIeOw.js";import{T as rt}from"./CItL7JvW.js";import{A as pt}from"./DW1P0xGN.js";import{L as He}from"./BCZTK7qK.js";import{i as ot,p as Oe}from"./qCQ2nSvO.js";import{S as xt,a as bt,b as kt}from"./BpQ9RPzK.js";import{D as Tt}from"./lEFYSxvE.js";import{A as Ue}from"./Dt-hNsWv.js";import{c as Pt}from"./UIirCQWa.js";import{c as wt,b as yt,T as at,a as qe}from"./CeOjHHJH.js";import{T as St}from"./CEJkX7WU.js";import{T as Be}from"./CkVJuMBr.js";import{T as At}from"./xk30YnJ1.js";import{V as Ct}from"./BJPFuIL3.js";function zt(_e){const r=_e.match(/node_modules\/([^/]+)/);if(r)return r[1];const V=_e.match(/^(package:[^/]+|dart:[^/]+)/);return V?V[1]:"library"}function It(_e){const r=_e.split(`
`),V=[];let te=-1,$e=-1;const ce=/^\s*.+:\d+:\d+$/;for(let C=0;C<r.length;C++)if(ce.test(r[C])){const L=r[C].trim();let q=null;for(let F=C-1;F>=0;F--){const Pe=r[F].trim();if(Pe!==""){ce.test(r[F])||(q=Pe,te===-1&&($e=F));break}}te===-1&&(te=C),V.push({functionName:q,location:L,isLibrary:L.includes("node_modules")||/^(package:flutter\/|dart:|package:collection\/)/.test(L)})}const Te=te===-1?r.length:$e!==-1?$e:te,se=te===-1?_e.trim():r.slice(0,Te).join(`
`).trim(),ne=[];for(let C=0;C<V.length;C++){const L=V[C];if(!L.isLibrary)ne.push({type:"app",frame:L});else{const q=[L];for(;C+1<V.length&&V[C+1].isLibrary;)C++,q.push(V[C]);ne.push({type:"library",frames:q,packageName:zt(q[0].location)})}}return{errorMessage:se,groups:ne}}var Et=n('<span class="inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-blue-700 ring-1 ring-blue-700/10 ring-inset dark:bg-blue-900/30 dark:text-blue-300 dark:ring-blue-400/30">Message</span>'),Rt=n("<!> Archive",1),Mt=n('<div class="flex justify-between"><div class="flex items-center gap-2"><!> <!></div> <!></div> <!>',1),Dt=n("<div> </div>"),Nt=n("<div> </div>"),jt=n("<div><!> <div> </div></div>"),Vt=n("<div> </div>"),Lt=n('<div class="text-muted-foreground"><!> <div> </div></div>'),Ft=n('<div class="-mb-4 cursor-pointer pt-2 text-muted-foreground select-none" role="button" tabindex="0"><span class="inline-flex items-center"><!> </span></div> <!>',1),Ht=n('<div class="overflow-x-auto rounded-md bg-muted p-4 font-mono text-sm whitespace-pre-wrap"><!> <!></div>'),Ut=n("<!> <!>",1);function Kr(_e,r){Ye(r,!0);let V=ze(r,"isMessage",3,!1),te=ze(r,"showArchiveDialog",15);const $e=g(()=>r.timezone??et()),ce=g(()=>r.firstSeen&&r.lastSeen&&r.totalCount!==void 0),Te=g(()=>It(r.stackTrace));let se=Je(it(new Set));function ne(q){const F=new Set(t(se));F.has(q)?F.delete(q):F.add(q),Ke(se,F,!0)}var C=N(),L=o(C);s(L,()=>Me,(q,F)=>{F(q,{children:(Pe,Ne)=>{var Ie=Ut(),Ae=o(Ie);{let pe=g(()=>t(ce)?"":"gap-0 pb-0");s(Ae,()=>Ee,(xe,Ce)=>{Ce(xe,{get class(){return t(pe)},children:(me,ge)=>{var ue=Mt(),ie=o(ue),le=k(ie),re=k(le);s(re,()=>Re,(h,p)=>{p(h,{children:(y,f)=>{A();var P=ee("Stack Trace");e(y,P)},$$slots:{default:!0}})});var z=a(re,2);{var i=h=>{var p=Et();e(h,p)};$(z,h=>{V()&&h(i)})}T(le);var H=a(le,2);Ve(H,{variant:"outline",size:"sm",onclick:()=>te(!0),get disabled(){return r.archiving},class:"shrink-0 gap-1.5",children:(h,p)=>{var y=Rt(),f=o(y);ut(f,{class:"h-4 w-4"}),A(),e(h,y)},$$slots:{default:!0}}),T(ie);var de=a(ie,2);{var Z=h=>{var p=N(),y=o(p);s(y,()=>Ge,(f,P)=>{P(f,{children:(R,M)=>{A();var v=ee();j((c,S)=>E(v,`First seen: ${c??""} · Last seen: ${S??""} · Total occurrences: ${r.totalCount??""}`),[()=>Le(r.firstSeen,{timezone:t($e)}),()=>Le(r.lastSeen,{timezone:t($e)})]),e(R,v)},$$slots:{default:!0}})}),e(h,p)};$(de,h=>{t(ce)&&h(Z)})}e(me,ue)},$$slots:{default:!0}})})}var we=a(Ae,2);s(we,()=>De,(pe,xe)=>{xe(pe,{children:(Ce,me)=>{var ge=Ht(),ue=k(ge);{var ie=re=>{var z=Dt(),i=k(z,!0);T(z),j(()=>E(i,t(Te).errorMessage)),e(re,z)};$(ue,re=>{t(Te).errorMessage&&re(ie)})}var le=a(ue,2);Qe(le,17,()=>t(Te).groups,Xe,(re,z,i)=>{var H=N(),de=o(H);{var Z=p=>{var y=jt(),f=k(y);{var P=v=>{var c=Nt(),S=k(c,!0);T(c),j(()=>E(S,t(z).frame.functionName)),e(v,c)};$(f,v=>{t(z).frame.functionName&&v(P)})}var R=a(f,2),M=k(R,!0);T(R),T(y),j(()=>E(M,t(z).frame.location)),e(p,y)},h=p=>{var y=Ft(),f=o(y);f.__click=()=>ne(i),f.__keydown=l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),ne(i))};var P=k(f),R=k(P);{var M=l=>{ft(l,{class:"mr-0.5 h-3.5 w-3.5"})},v=l=>{_t(l,{class:"mr-0.5 h-3.5 w-3.5"})};$(R,l=>{t(se).has(i)?l(M):l(v,!1)})}var c=a(R);T(P),T(f);var S=a(f,2);{var x=l=>{var _=N(),u=o(_);Qe(u,17,()=>t(z).frames,Xe,(d,w)=>{var U=Lt(),b=k(U);{var B=be=>{var G=Vt(),m=k(G,!0);T(G),j(()=>E(m,t(w).functionName)),e(be,G)};$(b,be=>{t(w).functionName&&be(B)})}var Q=a(b,2),fe=k(Q,!0);T(Q),T(U),j(()=>E(fe,t(w).location)),e(d,U)}),e(l,_)};$(S,l=>{t(se).has(i)&&l(x)})}j(()=>E(c,` ${t(z).frames.length??""} library ${t(z).frames.length===1?"frame":"frames"} (${t(z).packageName??""})`)),e(p,y)};$(de,p=>{t(z).type==="app"?p(Z):p(h,!1)})}e(re,H)}),T(ge),e(Ce,ge)},$$slots:{default:!0}})}),e(Pe,Ie)},$$slots:{default:!0}})}),e(_e,C),Ze()}lt(["click","keydown"]);var qt=n("View full session <!>",1),Bt=n("<!> <!>",1),Gt=n("<!> <!>",1),Ot=n("View full session <!>",1),Wt=n("<!> <!>",1),Jt=n("<!> <!>",1),Kt=n("<!> <!>",1),Qt=n("<!> <!>",1),Xt=n("<!> <!> <!>",1),Yt=n("<!> <!>",1),Zt=n("<!> <!>",1),er=n('<div class="space-y-1"><p class="text-sm text-muted-foreground">Server</p> <p class="font-mono text-sm"> </p></div>'),tr=n('<div class="space-y-1"><p class="text-sm text-muted-foreground">Trace</p> <p class="font-mono text-sm"> </p></div>'),rr=n('<hr class="border-border"/> <div><p class="mb-3 text-sm font-medium">Attributes</p> <!></div>',1),ar=n("View Task Details <!>",1),or=n("View Endpoint Details <!>",1),sr=n('<hr class="border-border"/> <div><p class="mb-3 text-sm font-medium"> </p> <div class="mb-4 grid grid-cols-2 gap-4 md:grid-cols-4"><!> <!> <!> <!></div> <!></div>',1),nr=n('<div><div class="space-y-1"><p class="text-sm text-muted-foreground">Recorded At</p> <p class="font-mono text-sm"> </p></div> <!> <div class="space-y-1"><p class="text-sm text-muted-foreground">Version</p> <p class="font-mono text-sm"> </p></div> <!></div> <!> <!>',1),lr=n("<!> <!>",1),ir=n("<!> <!> <!> <!>",1);function Qr(_e,r){Ye(r,!0);let V=ze(r,"sessionRecording",3,null),te=ze(r,"sessionId",3,null),$e=ze(r,"title",3,"Event"),ce=ze(r,"description",3,"Details for this specific occurrence");const Te=g(()=>r.timezone??et()),se=g(()=>Oe.currentProject?.framework?ot(Oe.currentProject.framework):!1),ne=g(()=>V()?.events??null),C=g(()=>!!t(ne)&&t(ne).length>0),L=g(()=>V()?.logs??[]),q=g(()=>V()?.actions??[]),F=g(()=>t(L).length>0),Pe=g(()=>t(q).length>0),Ne=g(()=>t(se)&&(t(F)||t(Pe))),Ie=g(()=>t(F)?"logs":"actions");let Ae=Je(0),we=Je(null);function pe(i){t(we)?.seek(i)}var xe=ir(),Ce=o(xe);{var me=i=>{var H=N(),de=o(H);s(de,()=>Me,(Z,h)=>{h(Z,{class:"pb-0",children:(p,y)=>{var f=Gt(),P=o(f);s(P,()=>Ee,(M,v)=>{v(M,{class:"flex flex-row items-center justify-between gap-2",children:(c,S)=>{var x=Bt(),l=o(x);s(l,()=>Re,(d,w)=>{w(d,{children:(U,b)=>{A();var B=ee("Session Replay");e(U,B)},$$slots:{default:!0}})});var _=a(l,2);{var u=d=>{Ve(d,{variant:"outline",size:"sm",onclick:()=>Fe(`/sessions/${te()}`),children:(w,U)=>{A();var b=qt(),B=a(o(b));Ue(B,{class:"size-4"}),e(w,b)},$$slots:{default:!0}})};$(_,d=>{te()&&d(u)})}e(c,x)},$$slots:{default:!0}})});var R=a(P,2);s(R,()=>De,(M,v)=>{v(M,{class:"p-0",children:(c,S)=>{var x=N(),l=o(x);mt(l,()=>t(ne),_=>{nt(xt(_,{get events(){return t(ne)},onTimeUpdate:u=>Ke(Ae,u,!0)}),u=>Ke(we,u,!0),()=>t(we))}),e(c,x)},$$slots:{default:!0}})}),e(p,f)},$$slots:{default:!0}})}),e(i,H)},ge=i=>{var H=N(),de=o(H);{var Z=h=>{var p=N(),y=o(p);s(y,()=>Me,(f,P)=>{P(f,{children:(R,M)=>{var v=Jt(),c=o(v);s(c,()=>Ee,(x,l)=>{l(x,{class:"flex flex-row items-center justify-between gap-2",children:(_,u)=>{var d=Wt(),w=o(d);s(w,()=>Re,(b,B)=>{B(b,{children:(Q,fe)=>{A();var be=ee("Session");e(Q,be)},$$slots:{default:!0}})});var U=a(w,2);Ve(U,{variant:"outline",size:"sm",onclick:()=>Fe(`/sessions/${te()}`),children:(b,B)=>{A();var Q=Ot(),fe=a(o(Q));Ue(fe,{class:"size-4"}),e(b,Q)},$$slots:{default:!0}}),e(_,d)},$$slots:{default:!0}})});var S=a(c,2);s(S,()=>De,(x,l)=>{l(x,{class:"text-sm text-muted-foreground",children:(_,u)=>{A();var d=ee("This exception is linked to a recorded user session.");e(_,d)},$$slots:{default:!0}})}),e(R,v)},$$slots:{default:!0}})}),e(h,p)};$(de,h=>{te()&&h(Z)},!0)}e(i,H)};$(Ce,i=>{t(C)?i(me):i(ge,!1)})}var ue=a(Ce,2);{var ie=i=>{var H=N(),de=o(H);s(de,()=>Me,(Z,h)=>{h(Z,{children:(p,y)=>{var f=Yt(),P=o(f);s(P,()=>Ee,(M,v)=>{v(M,{children:(c,S)=>{var x=Kt(),l=o(x);s(l,()=>Re,(u,d)=>{d(u,{children:(w,U)=>{A();var b=ee("Session Context");e(w,b)},$$slots:{default:!0}})});var _=a(l,2);s(_,()=>Ge,(u,d)=>{d(u,{children:(w,U)=>{A();var b=ee(`The last seconds of console output and recorded actions before this
exception. Times are offsets from the start of the recording.`);e(w,b)},$$slots:{default:!0}})}),e(c,x)},$$slots:{default:!0}})});var R=a(P,2);s(R,()=>De,(M,v)=>{v(M,{children:(c,S)=>{var x=N(),l=o(x);s(l,()=>ht,(_,u)=>{u(_,{get value(){return t(Ie)},children:(d,w)=>{var U=Xt(),b=o(U);s(b,()=>$t,(G,m)=>{m(G,{class:"mb-4",children:(I,O)=>{var W=Qt(),X=o(W);{var ae=J=>{var Y=N(),ve=o(Y);s(ve,()=>tt,(ke,D)=>{D(ke,{value:"logs",children:(Se,K)=>{A();var he=ee();j(()=>E(he,`Logs (${t(L).length??""})`)),e(Se,he)},$$slots:{default:!0}})}),e(J,Y)};$(X,J=>{t(F)&&J(ae)})}var oe=a(X,2);{var ye=J=>{var Y=N(),ve=o(Y);s(ve,()=>tt,(ke,D)=>{D(ke,{value:"actions",children:(Se,K)=>{A();var he=ee();j(()=>E(he,`Actions (${t(q).length??""})`)),e(Se,he)},$$slots:{default:!0}})}),e(J,Y)};$(oe,J=>{t(Pe)&&J(ye)})}e(I,W)},$$slots:{default:!0}})});var B=a(b,2);{var Q=G=>{var m=N(),I=o(m);s(I,()=>rt,(O,W)=>{W(O,{value:"logs",children:(X,ae)=>{{let oe=g(()=>V()?.startedAt);bt(X,{get logs(){return t(L)},get startedAt(){return t(oe)},get currentTimeMs(){return t(Ae)},onSeek:pe})}},$$slots:{default:!0}})}),e(G,m)};$(B,G=>{t(F)&&G(Q)})}var fe=a(B,2);{var be=G=>{var m=N(),I=o(m);s(I,()=>rt,(O,W)=>{W(O,{value:"actions",children:(X,ae)=>{{let oe=g(()=>V()?.startedAt);kt(X,{get actions(){return t(q)},get startedAt(){return t(oe)},get currentTimeMs(){return t(Ae)},onSeek:pe})}},$$slots:{default:!0}})}),e(G,m)};$(fe,G=>{t(Pe)&&G(be)})}e(d,U)},$$slots:{default:!0}})}),e(c,x)},$$slots:{default:!0}})}),e(p,f)},$$slots:{default:!0}})}),e(i,H)};$(ue,i=>{t(Ne)&&i(ie)})}var le=a(ue,2);s(le,()=>Me,(i,H)=>{H(i,{children:(de,Z)=>{var h=lr(),p=o(h);s(p,()=>Ee,(f,P)=>{P(f,{children:(R,M)=>{var v=Zt(),c=o(v);s(c,()=>Re,(x,l)=>{l(x,{children:(_,u)=>{A();var d=ee();j(()=>E(d,$e())),e(_,d)},$$slots:{default:!0}})});var S=a(c,2);s(S,()=>Ge,(x,l)=>{l(x,{children:(_,u)=>{A();var d=ee();j(()=>E(d,ce())),e(_,d)},$$slots:{default:!0}})}),e(R,v)},$$slots:{default:!0}})});var y=a(p,2);s(y,()=>De,(f,P)=>{P(f,{class:"space-y-6",children:(R,M)=>{var v=nr(),c=o(v),S=k(c),x=a(k(S),2),l=k(x,!0);T(x),T(S);var _=a(S,2);{var u=m=>{var I=er(),O=a(k(I),2),W=k(O,!0);T(O),T(I),j(()=>E(W,r.occurrence.serverName||"-")),e(m,I)};$(_,m=>{t(se)||m(u)})}var d=a(_,2),w=a(k(d),2),U=k(w,!0);T(w),T(d);var b=a(d,2);{var B=m=>{var I=tr(),O=a(k(I),2),W=k(O,!0);T(O),T(I),j(()=>E(W,r.occurrence.traceId||"-")),e(m,I)};$(b,m=>{t(se)||m(B)})}T(c);var Q=a(c,2);{var fe=m=>{var I=rr(),O=a(o(I),2),W=a(k(O),2);pt(W,{get attributes(){return r.occurrence.attributes}}),T(O),e(m,I)};$(Q,m=>{r.occurrence.attributes&&Object.keys(r.occurrence.attributes).length>0&&m(fe)})}var be=a(Q,2);{var G=m=>{var I=sr(),O=a(o(I),2),W=k(O),X=k(W,!0);T(W);var ae=a(W,2),oe=k(ae);{let K=g(()=>r.linkedTrace.traceType==="task"?"Task":"Endpoint");He(oe,{get label(){return t(K)},get value(){return r.linkedTrace.endpoint},mono:!0})}var ye=a(oe,2);{var J=K=>{{let he=g(()=>vt(r.linkedTrace.statusCode));He(K,{label:"Status",get value(){return r.linkedTrace.statusCode},mono:!0,large:!0,get valueClass(){return t(he)}})}};$(ye,K=>{r.linkedTrace.traceType!=="task"&&K(J)})}var Y=a(ye,2);{let K=g(()=>dt(r.linkedTrace.duration));He(Y,{label:"Duration",get value(){return t(K)},mono:!0,large:!0})}var ve=a(Y,2);{let K=g(()=>Le(r.linkedTrace.recordedAt,{timezone:r.timezone}));He(ve,{label:"Recorded At",get value(){return t(K)},mono:!0})}T(ae);var ke=a(ae,2);{var D=K=>{Ve(K,{variant:"outline",size:"sm",onclick:()=>Fe(`/tasks/${encodeURIComponent(r.linkedTrace.endpoint)}/${r.linkedTrace.id}?preset=24h`),children:(he,st)=>{A();var je=ar(),We=a(o(je));Ue(We,{class:"ml-2 h-4 w-4"}),e(he,je)},$$slots:{default:!0}})},Se=K=>{Ve(K,{variant:"outline",size:"sm",onclick:()=>Fe(`/endpoints/${encodeURIComponent(r.linkedTrace.endpoint)}/${r.linkedTrace.id}?preset=24h`),children:(he,st)=>{A();var je=or(),We=a(o(je));Ue(We,{class:"ml-2 h-4 w-4"}),e(he,je)},$$slots:{default:!0}})};$(ke,K=>{r.linkedTrace.traceType==="task"?K(D):K(Se,!1)})}T(O),j(()=>E(X,r.linkedTrace.traceType==="task"?"Related Task":"Related Endpoint")),e(m,I)};$(be,m=>{r.linkedTrace&&m(G)})}j(m=>{gt(c,1,`grid grid-cols-2 gap-4 ${t(se)?"md:grid-cols-2":"md:grid-cols-4"}`),E(l,m),E(U,r.occurrence.appVersion||"-")},[()=>Le(r.occurrence.recordedAt,{timezone:t(Te)})]),e(R,v)},$$slots:{default:!0}})}),e(de,h)},$$slots:{default:!0}})});var re=a(le,2);{var z=i=>{{let H=g(()=>r.linkedTrace?.distributedTraceId??r.occurrence.distributedTraceId);Tt(i,{get distributedTraceId(){return t(H)},get currentExceptionHash(){return r.occurrence.exceptionHash}})}};$(re,i=>{(r.linkedTrace?.distributedTraceId||r.occurrence.distributedTraceId)&&i(z)})}e(_e,xe),Ze()}var dr=n("<!> <!>",1),vr=n("<!> <!>",1),cr=n("<!> <!>",1),ur=n('<span class="ml-2 text-xs text-muted-foreground">(current)</span>'),fr=n(" <!>",1),_r=n("<!> <!>",1),mr=n("<!> <!>",1),gr=n("<!> <!>",1),hr=n("<!> <!>",1),$r=n('<div class="rounded-md border overflow-hidden"><!></div>'),pr=n("<!> <!>",1);function Xr(_e,r){Ye(r,!0);let V=ze(r,"hasMore",3,!1),te=ze(r,"showViewAll",3,!0);const $e=g(()=>r.timezone??et()),ce=g(()=>Oe.currentProject?.framework?ot(Oe.currentProject.framework):!1);function Te(L){return`/issues/${r.exceptionHash}/${L.id}`}function se(L){return r.currentExceptionId!==void 0&&L.id===r.currentExceptionId}var ne=N(),C=o(ne);s(C,()=>Me,(L,q)=>{q(L,{children:(F,Pe)=>{var Ne=pr(),Ie=o(Ne);s(Ie,()=>Ee,(we,pe)=>{pe(we,{children:(xe,Ce)=>{var me=dr(),ge=o(me);s(ge,()=>Re,(ie,le)=>{le(ie,{children:(re,z)=>{A();var i=ee("Events");e(re,i)},$$slots:{default:!0}})});var ue=a(ge,2);s(ue,()=>Ge,(ie,le)=>{le(ie,{children:(re,z)=>{A();var i=ee();j(()=>E(i,`All occurrences of this exception (${r.total??""} total)`)),e(re,i)},$$slots:{default:!0}})}),e(xe,me)},$$slots:{default:!0}})});var Ae=a(Ie,2);s(Ae,()=>De,(we,pe)=>{pe(we,{children:(xe,Ce)=>{var me=$r(),ge=k(me);s(ge,()=>wt,(ue,ie)=>{ie(ue,{children:(le,re)=>{var z=hr(),i=o(z);{var H=Z=>{var h=N(),p=o(h);s(p,()=>St,(y,f)=>{f(y,{children:(P,R)=>{var M=N(),v=o(M);s(v,()=>at,(c,S)=>{S(c,{children:(x,l)=>{var _=cr(),u=o(_);Be(u,{label:"Recorded At",tooltip:"When this occurrence was recorded"});var d=a(u,2);{var w=b=>{Be(b,{label:"Title",tooltip:"Exception message from the first line of the stack trace"})},U=b=>{var B=vr(),Q=o(B);Be(Q,{label:"Server",tooltip:"Server instance where error occurred"});var fe=a(Q,2);Be(fe,{label:"Trace",tooltip:"Trace ID if this occurred during a request"}),e(b,B)};$(d,b=>{t(ce)?b(w):b(U,!1)})}e(x,_)},$$slots:{default:!0}})}),e(P,M)},$$slots:{default:!0}})}),e(Z,h)};$(i,Z=>{r.occurrences.length>0&&Z(H)})}var de=a(i,2);s(de,()=>yt,(Z,h)=>{h(Z,{children:(p,y)=>{var f=N(),P=o(f);{var R=v=>{{let c=g(()=>t(ce)?2:3);At(v,{get colspan(){return t(c)},message:"No occurrences found."})}},M=v=>{var c=gr(),S=o(c);Qe(S,17,()=>r.occurrences,Xe,(_,u)=>{var d=N(),w=o(d);{let U=g(()=>se(t(u))?"bg-muted":""),b=g(()=>Pt(Te(t(u))));s(w,()=>at,(B,Q)=>{Q(B,{get class(){return`cursor-pointer hover:bg-muted/50 ${t(U)??""}`},get onclick(){return t(b)},children:(fe,be)=>{var G=mr(),m=o(G);s(m,()=>qe,(X,ae)=>{ae(X,{children:(oe,ye)=>{A();var J=fr(),Y=o(J),ve=a(Y);{var ke=D=>{var Se=ur();e(D,Se)};$(ve,D=>{se(t(u))&&D(ke)})}j(D=>E(Y,`${D??""} `),[()=>Le(t(u).recordedAt,{timezone:t($e)})]),e(oe,J)},$$slots:{default:!0}})});var I=a(m,2);{var O=X=>{var ae=N(),oe=o(ae);{let ye=g(()=>t(u).stackTrace.split(`
diff --git a/backend/static/frontend/_app/immutable/chunks/B7mBgJdZ.js.map b/backend/static/frontend/_app/immutable/chunks/CCYdrD-l.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/B7mBgJdZ.js.map
rename to backend/static/frontend/_app/immutable/chunks/CCYdrD-l.js.map
index 7ae89554..49448d25 100644
--- a/backend/static/frontend/_app/immutable/chunks/B7mBgJdZ.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/CCYdrD-l.js.map
@@ -1 +1 @@
-{"version":3,"file":"B7mBgJdZ.js","sources":["../../../../../../src/lib/utils/stack-trace-parser.ts","../../../../../../src/lib/components/issues/stack-trace-card.svelte","../../../../../../src/lib/components/issues/event-card.svelte","../../../../../../src/lib/components/issues/events-table.svelte"],"sourcesContent":["export type StackFrame = {\n\tfunctionName: string | null;\n\tlocation: string;\n\tisLibrary: boolean;\n};\n\nexport type FrameGroup = {\n\ttype: 'app';\n\tframe: StackFrame;\n} | {\n\ttype: 'library';\n\tframes: StackFrame[];\n\tpackageName: string;\n};\n\nexport type ParsedStackTrace = {\n\terrorMessage: string;\n\tgroups: FrameGroup[];\n};\n\nfunction extractPackageName(location: string): string {\n\tconst nodeMatch = location.match(/node_modules\\/([^/]+)/);\n\tif (nodeMatch) return nodeMatch[1];\n\n\tconst dartMatch = location.match(/^(package:[^/]+|dart:[^/]+)/);\n\tif (dartMatch) return dartMatch[1];\n\n\treturn 'library';\n}\n\nexport function parseStackTrace(raw: string): ParsedStackTrace {\n\tconst lines = raw.split('\\n');\n\tconst frames: StackFrame[] = [];\n\tlet firstFrameIndex = -1;\n\tlet firstFuncNameIndex = -1;\n\n\tconst locationPattern = /^\\s*.+:\\d+:\\d+$/;\n\n\tfor (let i = 0; i < lines.length; i++) {\n\t\tif (locationPattern.test(lines[i])) {\n\t\t\tconst location = lines[i].trim();\n\t\t\tlet functionName: string | null = null;\n\n\t\t\tfor (let j = i - 1; j >= 0; j--) {\n\t\t\t\tconst prevLine = lines[j].trim();\n\t\t\t\tif (prevLine === '') continue;\n\t\t\t\tif (!locationPattern.test(lines[j])) {\n\t\t\t\t\tfunctionName = prevLine;\n\t\t\t\t\tif (firstFrameIndex === -1) firstFuncNameIndex = j;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (firstFrameIndex === -1) firstFrameIndex = i;\n\n\t\t\tframes.push({\n\t\t\t\tfunctionName,\n\t\t\t\tlocation,\n\t\t\t\tisLibrary: location.includes('node_modules') ||\n\t\t\t\t\t/^(package:flutter\\/|dart:|package:collection\\/)/.test(location)\n\t\t\t});\n\t\t}\n\t}\n\n\tconst errorEndIndex = firstFrameIndex === -1\n\t\t? lines.length\n\t\t: firstFuncNameIndex !== -1 ? firstFuncNameIndex : firstFrameIndex;\n\tconst errorMessage = firstFrameIndex === -1\n\t\t? raw.trim()\n\t\t: lines.slice(0, errorEndIndex).join('\\n').trim();\n\n\tconst groups: FrameGroup[] = [];\n\n\tfor (let i = 0; i < frames.length; i++) {\n\t\tconst frame = frames[i];\n\n\t\tif (!frame.isLibrary) {\n\t\t\tgroups.push({ type: 'app', frame });\n\t\t} else {\n\t\t\tconst libraryFrames: StackFrame[] = [frame];\n\t\t\twhile (i + 1 < frames.length && frames[i + 1].isLibrary) {\n\t\t\t\ti++;\n\t\t\t\tlibraryFrames.push(frames[i]);\n\t\t\t}\n\t\t\tgroups.push({\n\t\t\t\ttype: 'library',\n\t\t\t\tframes: libraryFrames,\n\t\t\t\tpackageName: extractPackageName(libraryFrames[0].location)\n\t\t\t});\n\t\t}\n\t}\n\n\treturn { errorMessage, groups };\n}\n","<script lang=\"ts\">\n\timport * as Card from '$lib/components/ui/card';\n\timport { formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport Button from '../ui/button/button.svelte';\n\timport { Archive, ChevronRight, ChevronDown } from 'lucide-svelte';\n\timport { parseStackTrace } from '$lib/utils/stack-trace-parser';\n\n\tinterface Props {\n\t\tstackTrace: string;\n\t\tisMessage?: boolean;\n\t\tfirstSeen?: string;\n\t\tlastSeen?: string;\n\t\ttotalCount?: number;\n\t\ttimezone?: string;\n\t\tshowArchiveDialog: boolean;\n\t\tarchiving: boolean;\n\t}\n\n\tlet {\n\t\tstackTrace,\n\t\tisMessage = false,\n\t\tfirstSeen,\n\t\tlastSeen,\n\t\ttotalCount,\n\t\ttimezone,\n\t\tarchiving = $bindable(),\n\t\tshowArchiveDialog = $bindable()\n\t}: Props = $props();\n\n\tconst tz = $derived(timezone ?? getTimezone());\n\tconst showStats = $derived(firstSeen && lastSeen && totalCount !== undefined);\n\tconst parsed = $derived(parseStackTrace(stackTrace));\n\n\tlet expandedGroups = $state<Set<number>>(new Set());\n\n\tfunction toggleGroup(index: number) {\n\t\tconst next = new Set(expandedGroups);\n\t\tif (next.has(index)) {\n\t\t\tnext.delete(index);\n\t\t} else {\n\t\t\tnext.add(index);\n\t\t}\n\t\texpandedGroups = next;\n\t}\n</script>\n\n<Card.Root>\n\t<Card.Header class={showStats ? '' : 'gap-0 pb-0'}>\n\t\t<div class=\"flex justify-between\">\n\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t<Card.Title>Stack Trace</Card.Title>\n\t\t\t\t{#if isMessage}\n\t\t\t\t\t<span\n\t\t\t\t\t\tclass=\"inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-blue-700 ring-1 ring-blue-700/10 ring-inset dark:bg-blue-900/30 dark:text-blue-300 dark:ring-blue-400/30\"\n\t\t\t\t\t>\n\t\t\t\t\t\tMessage\n\t\t\t\t\t</span>\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tonclick={() => (showArchiveDialog = true)}\n\t\t\t\tdisabled={archiving}\n\t\t\t\tclass=\"shrink-0 gap-1.5\"\n\t\t\t>\n\t\t\t\t<Archive class=\"h-4 w-4\" />\n\t\t\t\tArchive\n\t\t\t</Button>\n\t\t</div>\n\t\t{#if showStats}\n\t\t\t<Card.Description>\n\t\t\t\tFirst seen: {formatDateTime(firstSeen!, { timezone: tz })} · Last seen: {formatDateTime(\n\t\t\t\t\tlastSeen!,\n\t\t\t\t\t{ timezone: tz }\n\t\t\t\t)} · Total occurrences: {totalCount}\n\t\t\t</Card.Description>\n\t\t{/if}\n\t</Card.Header>\n\t<Card.Content>\n\t\t<div class=\"overflow-x-auto rounded-md bg-muted p-4 font-mono text-sm whitespace-pre-wrap\">\n\t\t\t{#if parsed.errorMessage}<div>{parsed.errorMessage}</div>{/if}\n\t\t\t{#each parsed.groups as group, i}\n\t\t\t\t{#if group.type === 'app'}\n\t\t\t\t\t<div>\n\t\t\t\t\t\t{#if group.frame.functionName}\n\t\t\t\t\t\t\t<div>{group.frame.functionName}</div>\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t<div>{group.frame.location}</div>\n\t\t\t\t\t</div>\n\t\t\t\t{:else}\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"-mb-4 cursor-pointer pt-2 text-muted-foreground select-none\"\n\t\t\t\t\t\trole=\"button\"\n\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\tonclick={() => toggleGroup(i)}\n\t\t\t\t\t\tonkeydown={(e) => {\n\t\t\t\t\t\t\tif (e.key === 'Enter' || e.key === ' ') {\n\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\ttoggleGroup(i);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"inline-flex items-center\">\n\t\t\t\t\t\t\t{#if expandedGroups.has(i)}\n\t\t\t\t\t\t\t\t<ChevronDown class=\"mr-0.5 h-3.5 w-3.5\" />\n\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t<ChevronRight class=\"mr-0.5 h-3.5 w-3.5\" />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{group.frames.length} library {group.frames.length === 1 ? 'frame' : 'frames'} ({group.packageName})\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t{#if expandedGroups.has(i)}\n\t\t\t\t\t\t{#each group.frames as frame}\n\t\t\t\t\t\t\t<div class=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t{#if frame.functionName}\n\t\t\t\t\t\t\t\t\t<div>{frame.functionName}</div>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t<div>{frame.location}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t{/each}\n\t\t</div>\n\t</Card.Content>\n</Card.Root>\n","<script lang=\"ts\">\n\timport { goto } from '$app/navigation';\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Card from '$lib/components/ui/card';\n\timport * as Tabs from '$lib/components/ui/tabs';\n\timport { ArrowRight } from 'lucide-svelte';\n\timport type {\n\t\tExceptionOccurrence,\n\t\tLinkedTrace,\n\t\tSessionRecording\n\t} from '$lib/types/exceptions';\n\timport { formatDuration, getStatusColor, formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { AttributesGrid } from '$lib/components/ui/attributes-grid';\n\timport { LabelValue } from '../ui/label-value';\n\timport { projectsState, isFrontendFramework } from '$lib/state/projects.svelte';\n\timport SessionReplay from './session-replay.svelte';\n\timport SessionLogsTable from './session-logs-table.svelte';\n\timport SessionActionsTable from './session-actions-table.svelte';\n\timport DistributedTraceCard from '$lib/components/distributed-trace/distributed-trace-card.svelte';\n\n\tinterface Props {\n\t\toccurrence: ExceptionOccurrence;\n\t\tlinkedTrace: LinkedTrace | null;\n\t\tsessionRecording?: SessionRecording | null;\n\t\tsessionId?: string | null;\n\t\ttitle?: string;\n\t\tdescription?: string;\n\t\ttimezone?: string;\n\t}\n\n\tlet {\n\t\toccurrence,\n\t\tlinkedTrace,\n\t\tsessionRecording = null,\n\t\tsessionId = null,\n\t\ttitle = 'Event',\n\t\tdescription = 'Details for this specific occurrence',\n\t\ttimezone\n\t}: Props = $props();\n\n\tconst tz = $derived(timezone ?? getTimezone());\n\tconst isFrontend = $derived(\n\t\tprojectsState.currentProject?.framework\n\t\t\t? isFrontendFramework(projectsState.currentProject.framework)\n\t\t\t: false\n\t);\n\n\tconst recordingEvents = $derived(sessionRecording?.events ?? null);\n\tconst hasReplay = $derived(!!recordingEvents && recordingEvents.length > 0);\n\tconst logs = $derived(sessionRecording?.logs ?? []);\n\tconst actions = $derived(sessionRecording?.actions ?? []);\n\tconst hasLogs = $derived(logs.length > 0);\n\tconst hasActions = $derived(actions.length > 0);\n\t// Logs/actions tables are only meaningful for frontend-framework projects.\n\t// Backend / OTel exception pages must look identical to before.\n\tconst showSessionContext = $derived(isFrontend && (hasLogs || hasActions));\n\tconst defaultTab = $derived(hasLogs ? 'logs' : 'actions');\n\n\tlet currentTimeMs = $state(0);\n\tlet replayRef = $state<{ seek: (ms: number) => void } | null>(null);\n\n\tfunction handleSeek(offsetMs: number) {\n\t\treplayRef?.seek(offsetMs);\n\t}\n</script>\n\n<!-- Session Replay -->\n{#if hasReplay}\n\t<Card.Root class=\"pb-0\">\n\t\t<Card.Header class=\"flex flex-row items-center justify-between gap-2\">\n\t\t\t<Card.Title>Session Replay</Card.Title>\n\t\t\t{#if sessionId}\n\t\t\t\t<Button\n\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\tonclick={() => goto(`/sessions/${sessionId}`)}\n\t\t\t\t>\n\t\t\t\t\tView full session\n\t\t\t\t\t<ArrowRight class=\"size-4\" />\n\t\t\t\t</Button>\n\t\t\t{/if}\n\t\t</Card.Header>\n\t\t<Card.Content class=\"p-0\">\n\t\t\t{#key recordingEvents}\n\t\t\t\t<SessionReplay\n\t\t\t\t\tbind:this={replayRef}\n\t\t\t\t\tevents={recordingEvents as any}\n\t\t\t\t\tonTimeUpdate={(ms) => (currentTimeMs = ms)}\n\t\t\t\t/>\n\t\t\t{/key}\n\t\t</Card.Content>\n\t</Card.Root>\n{:else if sessionId}\n\t<Card.Root>\n\t\t<Card.Header class=\"flex flex-row items-center justify-between gap-2\">\n\t\t\t<Card.Title>Session</Card.Title>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tonclick={() => goto(`/sessions/${sessionId}`)}\n\t\t\t>\n\t\t\t\tView full session\n\t\t\t\t<ArrowRight class=\"size-4\" />\n\t\t\t</Button>\n\t\t</Card.Header>\n\t\t<Card.Content class=\"text-sm text-muted-foreground\">\n\t\t\tThis exception is linked to a recorded user session.\n\t\t</Card.Content>\n\t</Card.Root>\n{/if}\n\n<!-- Session Context (logs + actions). Frontend projects only. -->\n{#if showSessionContext}\n\t<Card.Root>\n\t\t<Card.Header>\n\t\t\t<Card.Title>Session Context</Card.Title>\n\t\t\t<Card.Description>\n\t\t\t\tThe last seconds of console output and recorded actions before this\n\t\t\t\texception. Times are offsets from the start of the recording.\n\t\t\t</Card.Description>\n\t\t</Card.Header>\n\t\t<Card.Content>\n\t\t\t<Tabs.Root value={defaultTab}>\n\t\t\t\t<Tabs.List class=\"mb-4\">\n\t\t\t\t\t{#if hasLogs}\n\t\t\t\t\t\t<Tabs.Trigger value=\"logs\">Logs ({logs.length})</Tabs.Trigger>\n\t\t\t\t\t{/if}\n\t\t\t\t\t{#if hasActions}\n\t\t\t\t\t\t<Tabs.Trigger value=\"actions\">Actions ({actions.length})</Tabs.Trigger>\n\t\t\t\t\t{/if}\n\t\t\t\t</Tabs.List>\n\t\t\t\t{#if hasLogs}\n\t\t\t\t\t<Tabs.Content value=\"logs\">\n\t\t\t\t\t\t<SessionLogsTable\n\t\t\t\t\t\t\t{logs}\n\t\t\t\t\t\t\tstartedAt={sessionRecording?.startedAt}\n\t\t\t\t\t\t\t{currentTimeMs}\n\t\t\t\t\t\t\tonSeek={handleSeek}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Tabs.Content>\n\t\t\t\t{/if}\n\t\t\t\t{#if hasActions}\n\t\t\t\t\t<Tabs.Content value=\"actions\">\n\t\t\t\t\t\t<SessionActionsTable\n\t\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t\tstartedAt={sessionRecording?.startedAt}\n\t\t\t\t\t\t\t{currentTimeMs}\n\t\t\t\t\t\t\tonSeek={handleSeek}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Tabs.Content>\n\t\t\t\t{/if}\n\t\t\t</Tabs.Root>\n\t\t</Card.Content>\n\t</Card.Root>\n{/if}\n\n<Card.Root>\n\t<Card.Header>\n\t\t<Card.Title>{title}</Card.Title>\n\t\t<Card.Description>{description}</Card.Description>\n\t</Card.Header>\n\t<Card.Content class=\"space-y-6\">\n\t\t<!-- Event Details -->\n\t\t<div class=\"grid grid-cols-2 gap-4 {isFrontend ? 'md:grid-cols-2' : 'md:grid-cols-4'}\">\n\t\t\t<div class=\"space-y-1\">\n\t\t\t\t<p class=\"text-sm text-muted-foreground\">Recorded At</p>\n\t\t\t\t<p class=\"font-mono text-sm\">{formatDateTime(occurrence.recordedAt, { timezone: tz })}</p>\n\t\t\t</div>\n\t\t\t{#if !isFrontend}\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-sm text-muted-foreground\">Server</p>\n\t\t\t\t\t<p class=\"font-mono text-sm\">{occurrence.serverName || '-'}</p>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t\t<div class=\"space-y-1\">\n\t\t\t\t<p class=\"text-sm text-muted-foreground\">Version</p>\n\t\t\t\t<p class=\"font-mono text-sm\">{occurrence.appVersion || '-'}</p>\n\t\t\t</div>\n\t\t\t{#if !isFrontend}\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-sm text-muted-foreground\">Trace</p>\n\t\t\t\t\t<p class=\"font-mono text-sm\">{occurrence.traceId || '-'}</p>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t</div>\n\n\t\t<!-- AttributesGrid -->\n\t\t{#if occurrence.attributes && Object.keys(occurrence.attributes).length > 0}\n\t\t\t<hr class=\"border-border\" />\n\t\t\t<div>\n\t\t\t\t<p class=\"mb-3 text-sm font-medium\">Attributes</p>\n\t\t\t\t<AttributesGrid attributes={occurrence.attributes} />\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Related Trace -->\n\t\t{#if linkedTrace}\n\t\t\t<hr class=\"border-border\" />\n\t\t\t<div>\n\t\t\t\t<p class=\"mb-3 text-sm font-medium\">\n\t\t\t\t\t{linkedTrace.traceType === 'task' ? 'Related Task' : 'Related Endpoint'}\n\t\t\t\t</p>\n\t\t\t\t<div class=\"mb-4 grid grid-cols-2 gap-4 md:grid-cols-4\">\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel={linkedTrace.traceType === 'task' ? 'Task' : 'Endpoint'}\n\t\t\t\t\t\tvalue={linkedTrace.endpoint}\n\t\t\t\t\t\tmono\n\t\t\t\t\t/>\n\t\t\t\t\t{#if linkedTrace.traceType !== 'task'}\n\t\t\t\t\t\t<LabelValue\n\t\t\t\t\t\t\tlabel=\"Status\"\n\t\t\t\t\t\t\tvalue={linkedTrace.statusCode}\n\t\t\t\t\t\t\tmono\n\t\t\t\t\t\t\tlarge\n\t\t\t\t\t\t\tvalueClass={getStatusColor(linkedTrace.statusCode)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t{/if}\n\t\t\t\t\t<LabelValue label=\"Duration\" value={formatDuration(linkedTrace.duration)} mono large />\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\tvalue={formatDateTime(linkedTrace.recordedAt, { timezone })}\n\t\t\t\t\t\tmono\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t{#if linkedTrace.traceType === 'task'}\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\tonclick={() =>\n\t\t\t\t\t\t\tgoto(\n\t\t\t\t\t\t\t\t`/tasks/${encodeURIComponent(linkedTrace.endpoint)}/${linkedTrace.id}?preset=24h`\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\tView Task Details\n\t\t\t\t\t\t<ArrowRight class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t</Button>\n\t\t\t\t{:else}\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\tonclick={() =>\n\t\t\t\t\t\t\tgoto(\n\t\t\t\t\t\t\t\t`/endpoints/${encodeURIComponent(linkedTrace.endpoint)}/${linkedTrace.id}?preset=24h`\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\tView Endpoint Details\n\t\t\t\t\t\t<ArrowRight class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t</Button>\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t{/if}\n\t</Card.Content>\n</Card.Root>\n\n{#if linkedTrace?.distributedTraceId || occurrence.distributedTraceId}\n\t<DistributedTraceCard distributedTraceId={(linkedTrace?.distributedTraceId ?? occurrence.distributedTraceId)!} currentExceptionHash={occurrence.exceptionHash} />\n{/if}\n","<script lang=\"ts\">\n import { createRowClickHandler } from '$lib/utils/navigation';\n import * as Card from \"$lib/components/ui/card\";\n import * as Table from \"$lib/components/ui/table\";\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { ViewAllTableRow } from \"$lib/components/ui/view-all-table-row\";\n import type { ExceptionOccurrence } from '$lib/types/exceptions';\n import { formatDateTime, truncateStackTrace } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import { projectsState, isFrontendFramework } from '$lib/state/projects.svelte';\n\n interface Props {\n occurrences: ExceptionOccurrence[];\n exceptionHash: string;\n total: number;\n hasMore?: boolean;\n showViewAll?: boolean;\n currentExceptionId?: string;\n timezone?: string;\n }\n\n let {\n occurrences,\n exceptionHash,\n total,\n hasMore = false,\n showViewAll = true,\n currentExceptionId,\n timezone\n }: Props = $props();\n\n const tz = $derived(timezone ?? getTimezone());\n const isFrontend = $derived(\n projectsState.currentProject?.framework\n ? isFrontendFramework(projectsState.currentProject.framework)\n : false\n );\n\n function getRowUrl(occurrence: ExceptionOccurrence): string {\n return `/issues/${exceptionHash}/${occurrence.id}`;\n }\n\n function isCurrentEvent(occurrence: ExceptionOccurrence): boolean {\n return currentExceptionId !== undefined && occurrence.id === currentExceptionId;\n }\n</script>\n\n<Card.Root>\n <Card.Header>\n <Card.Title>Events</Card.Title>\n <Card.Description>All occurrences of this exception ({total} total)</Card.Description>\n </Card.Header>\n <Card.Content>\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if occurrences.length > 0}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader\n label=\"Recorded At\"\n tooltip=\"When this occurrence was recorded\"\n />\n {#if isFrontend}\n <TracewayTableHeader\n label=\"Title\"\n tooltip=\"Exception message from the first line of the stack trace\"\n />\n {:else}\n <TracewayTableHeader\n label=\"Server\"\n tooltip=\"Server instance where error occurred\"\n />\n <TracewayTableHeader\n label=\"Trace\"\n tooltip=\"Trace ID if this occurred during a request\"\n />\n {/if}\n </Table.Row>\n </Table.Header>\n {/if}\n <Table.Body>\n {#if occurrences.length === 0}\n <TableEmptyState colspan={isFrontend ? 2 : 3} message=\"No occurrences found.\" />\n {:else}\n {#each occurrences as occurrence}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50 {isCurrentEvent(occurrence) ? 'bg-muted' : ''}\"\n onclick={createRowClickHandler(getRowUrl(occurrence))}\n >\n <Table.Cell>\n {formatDateTime(occurrence.recordedAt, { timezone: tz })}\n {#if isCurrentEvent(occurrence)}\n <span class=\"ml-2 text-xs text-muted-foreground\">(current)</span>\n {/if}\n </Table.Cell>\n {#if isFrontend}\n <Table.Cell class=\"font-mono text-sm text-muted-foreground truncate max-w-[400px]\" title={occurrence.stackTrace.split('\\n')[0]}>\n {truncateStackTrace(occurrence.stackTrace, 60)}\n </Table.Cell>\n {:else}\n <Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n {occurrence.serverName || '-'}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm\">\n {occurrence.traceId || '-'}\n </Table.Cell>\n {/if}\n </Table.Row>\n {/each}\n {#if hasMore && showViewAll}\n <ViewAllTableRow colspan={isFrontend ? 2 : 3} href={`/issues/${exceptionHash}/events`} label={`View all ${total} events`} />\n {/if}\n {/if}\n </Table.Body>\n </Table.Root>\n </div>\n </Card.Content>\n</Card.Root>\n"],"names":["extractPackageName","location","nodeMatch","dartMatch","parseStackTrace","raw","lines","frames","firstFrameIndex","firstFuncNameIndex","locationPattern","i","functionName","j","prevLine","errorEndIndex","errorMessage","groups","frame","libraryFrames","isMessage","showArchiveDialog","$.prop","$$props","tz","getTimezone","showStats","parsed","expandedGroups","$.state","$.proxy","toggleGroup","index","next","$.get","$.set","Card_Root","$$anchor","Card_Header","div","$.first_child","fragment_2","div_1","Card_Title","span","root_4","$.append","$$render","consequent","Button","node_4","Archive","node_5","Card_Description","formatDateTime","consequent_1","Card_Content","div_2","root_8","div_3","root_9","$.template_effect","$.set_text","text_2","consequent_2","$.index","group","div_4","root_11","div_5","root_12","consequent_3","div_6","$.sibling","node_12","div_7","fragment_7","e","span_1","$.child","ChevronDown","ChevronRight","consequent_5","alternate","$.reset","node_14","div_8","root_17","div_9","root_18","text_6","consequent_6","div_10","node_16","text_7","consequent_7","text_5","consequent_4","alternate_1","sessionRecording","sessionId","title","description","isFrontend","$.derived","projectsState","isFrontendFramework","recordingEvents","hasReplay","logs","actions","hasLogs","hasActions","showSessionContext","defaultTab","currentTimeMs","replayRef","handleSeek","offsetMs","goto","ArrowRight","SessionReplay","ms","$$value","Card_Root_1","Card_Header_1","Card_Title_1","node_13","Card_Content_1","Card_Root_2","Card_Header_2","Card_Title_2","Card_Content_2","Tabs_Root","Tabs_List","Tabs_Trigger","Tabs_Trigger_1","Tabs_Content","$0","SessionLogsTable","Tabs_Content_1","SessionActionsTable","Card_Root_3","Card_Header_3","Card_Title_3","Card_Description_1","Card_Content_3","fragment_31","p","root_37","p_1","text_10","consequent_8","node_36","p_2","root_38","p_3","text_12","consequent_9","fragment_32","AttributesGrid","node_39","consequent_10","fragment_33","p_4","LabelValue","node_41","getStatusColor","consequent_11","formatDuration","node_43","node_44","node_46","node_47","consequent_12","text_13","$.set_class","text_11","DistributedTraceCard","consequent_14","hasMore","showViewAll","getRowUrl","occurrence","isCurrentEvent","root_5","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_9","node_11","Table_Body","TableEmptyState","createRowClickHandler","Table_Row_1","Table_Cell","Table_Cell_1","text_3","truncateStackTrace","Table_Cell_2","Table_Cell_3","ViewAllTableRow","alternate_2"],"mappings":"iwCAoBA,SAASA,GAAmBC,GAA0B,CACrD,MAAMC,EAAYD,GAAS,MAAM,uBAAuB,EACxD,GAAIC,EAAW,OAAOA,EAAU,CAAC,EAEjC,MAAMC,EAAYF,GAAS,MAAM,6BAA6B,EAC9D,OAAIE,EAAkBA,EAAU,CAAC,EAE1B,SACR,CAEO,SAASC,GAAgBC,GAA+B,CAC9D,MAAMC,EAAQD,GAAI,MAAM;AAAA,CAAI,EACtBE,EAAuB,CAAA,EAC7B,IAAIC,GAAkB,GAClBC,GAAqB,GAEzB,MAAMC,GAAkB,kBAExB,QAASC,EAAI,EAAGA,EAAIL,EAAM,OAAQK,IACjC,GAAID,GAAgB,KAAKJ,EAAMK,CAAC,CAAC,EAAG,CACnC,MAAMV,EAAWK,EAAMK,CAAC,EAAE,KAAA,EAC1B,IAAIC,EAA8B,KAElC,QAASC,EAAIF,EAAI,EAAGE,GAAK,EAAGA,IAAK,CAChC,MAAMC,GAAWR,EAAMO,CAAC,EAAE,KAAA,EAC1B,GAAIC,KAAa,GACjB,CAAKJ,GAAgB,KAAKJ,EAAMO,CAAC,CAAC,IACjCD,EAAeE,GACXN,KAAoB,KAAIC,GAAqBI,IAElD,MACD,CAEIL,KAAoB,KAAIA,GAAkBG,GAE9CJ,EAAO,KAAK,CACX,aAAAK,EACA,SAAAX,EACA,UAAWA,EAAS,SAAS,cAAc,GAC1C,kDAAkD,KAAKA,CAAQ,CAAA,CAChE,CACF,CAGD,MAAMc,GAAgBP,KAAoB,GACvCF,EAAM,OACNG,KAAuB,GAAKA,GAAqBD,GAC9CQ,GAAeR,KAAoB,GACtCH,GAAI,OACJC,EAAM,MAAM,EAAGS,EAAa,EAAE,KAAK;AAAA,CAAI,EAAE,KAAA,EAEtCE,GAAuB,CAAA,EAE7B,QAASN,EAAI,EAAGA,EAAIJ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AA6E,IAAA5E,EAAAwI,EAAA5D,EAAA,EAAA,CAAA,IAAA6D,GAAkBrK,EAACqJ,CAAU,EAAC,WAAY,EAAE,CAAA,CAAA,4FAGhDiB,EAAUnK,EAAA,+FACNkJ,CAAU,EAAC,YAAc,GAAG,CAAA,uEAEhCkB,EAAUpK,EAAA,yEACNkJ,CAAU,EAAC,SAAW,GAAG,CAAA,uDATzBhF,EAAU,EAAAxD,EAAAkD,CAAA,EAAAlD,EAAAmD,EAAA,EAAA,sFAeOK,EAAU,EAAG,EAAI,CAAC,qFAA3CmG,GAAerK,EAAA,yFADf+I,EAAO,GAAIC,MAAWtI,EAAAmC,CAAA,oBA5Bd3D,EAAA,YAAA,SAAW,EAACwB,EAAAiB,CAAA,EAAAjB,EAAA4J,EAAA,EAAA,yEA5BxCpK,EAAG,OAAHA,EAAG,2EARZ"}
\ No newline at end of file
+{"version":3,"file":"CCYdrD-l.js","sources":["../../../../../../src/lib/utils/stack-trace-parser.ts","../../../../../../src/lib/components/issues/stack-trace-card.svelte","../../../../../../src/lib/components/issues/event-card.svelte","../../../../../../src/lib/components/issues/events-table.svelte"],"sourcesContent":["export type StackFrame = {\n\tfunctionName: string | null;\n\tlocation: string;\n\tisLibrary: boolean;\n};\n\nexport type FrameGroup = {\n\ttype: 'app';\n\tframe: StackFrame;\n} | {\n\ttype: 'library';\n\tframes: StackFrame[];\n\tpackageName: string;\n};\n\nexport type ParsedStackTrace = {\n\terrorMessage: string;\n\tgroups: FrameGroup[];\n};\n\nfunction extractPackageName(location: string): string {\n\tconst nodeMatch = location.match(/node_modules\\/([^/]+)/);\n\tif (nodeMatch) return nodeMatch[1];\n\n\tconst dartMatch = location.match(/^(package:[^/]+|dart:[^/]+)/);\n\tif (dartMatch) return dartMatch[1];\n\n\treturn 'library';\n}\n\nexport function parseStackTrace(raw: string): ParsedStackTrace {\n\tconst lines = raw.split('\\n');\n\tconst frames: StackFrame[] = [];\n\tlet firstFrameIndex = -1;\n\tlet firstFuncNameIndex = -1;\n\n\tconst locationPattern = /^\\s*.+:\\d+:\\d+$/;\n\n\tfor (let i = 0; i < lines.length; i++) {\n\t\tif (locationPattern.test(lines[i])) {\n\t\t\tconst location = lines[i].trim();\n\t\t\tlet functionName: string | null = null;\n\n\t\t\tfor (let j = i - 1; j >= 0; j--) {\n\t\t\t\tconst prevLine = lines[j].trim();\n\t\t\t\tif (prevLine === '') continue;\n\t\t\t\tif (!locationPattern.test(lines[j])) {\n\t\t\t\t\tfunctionName = prevLine;\n\t\t\t\t\tif (firstFrameIndex === -1) firstFuncNameIndex = j;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (firstFrameIndex === -1) firstFrameIndex = i;\n\n\t\t\tframes.push({\n\t\t\t\tfunctionName,\n\t\t\t\tlocation,\n\t\t\t\tisLibrary: location.includes('node_modules') ||\n\t\t\t\t\t/^(package:flutter\\/|dart:|package:collection\\/)/.test(location)\n\t\t\t});\n\t\t}\n\t}\n\n\tconst errorEndIndex = firstFrameIndex === -1\n\t\t? lines.length\n\t\t: firstFuncNameIndex !== -1 ? firstFuncNameIndex : firstFrameIndex;\n\tconst errorMessage = firstFrameIndex === -1\n\t\t? raw.trim()\n\t\t: lines.slice(0, errorEndIndex).join('\\n').trim();\n\n\tconst groups: FrameGroup[] = [];\n\n\tfor (let i = 0; i < frames.length; i++) {\n\t\tconst frame = frames[i];\n\n\t\tif (!frame.isLibrary) {\n\t\t\tgroups.push({ type: 'app', frame });\n\t\t} else {\n\t\t\tconst libraryFrames: StackFrame[] = [frame];\n\t\t\twhile (i + 1 < frames.length && frames[i + 1].isLibrary) {\n\t\t\t\ti++;\n\t\t\t\tlibraryFrames.push(frames[i]);\n\t\t\t}\n\t\t\tgroups.push({\n\t\t\t\ttype: 'library',\n\t\t\t\tframes: libraryFrames,\n\t\t\t\tpackageName: extractPackageName(libraryFrames[0].location)\n\t\t\t});\n\t\t}\n\t}\n\n\treturn { errorMessage, groups };\n}\n","<script lang=\"ts\">\n\timport * as Card from '$lib/components/ui/card';\n\timport { formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport Button from '../ui/button/button.svelte';\n\timport { Archive, ChevronRight, ChevronDown } from 'lucide-svelte';\n\timport { parseStackTrace } from '$lib/utils/stack-trace-parser';\n\n\tinterface Props {\n\t\tstackTrace: string;\n\t\tisMessage?: boolean;\n\t\tfirstSeen?: string;\n\t\tlastSeen?: string;\n\t\ttotalCount?: number;\n\t\ttimezone?: string;\n\t\tshowArchiveDialog: boolean;\n\t\tarchiving: boolean;\n\t}\n\n\tlet {\n\t\tstackTrace,\n\t\tisMessage = false,\n\t\tfirstSeen,\n\t\tlastSeen,\n\t\ttotalCount,\n\t\ttimezone,\n\t\tarchiving = $bindable(),\n\t\tshowArchiveDialog = $bindable()\n\t}: Props = $props();\n\n\tconst tz = $derived(timezone ?? getTimezone());\n\tconst showStats = $derived(firstSeen && lastSeen && totalCount !== undefined);\n\tconst parsed = $derived(parseStackTrace(stackTrace));\n\n\tlet expandedGroups = $state<Set<number>>(new Set());\n\n\tfunction toggleGroup(index: number) {\n\t\tconst next = new Set(expandedGroups);\n\t\tif (next.has(index)) {\n\t\t\tnext.delete(index);\n\t\t} else {\n\t\t\tnext.add(index);\n\t\t}\n\t\texpandedGroups = next;\n\t}\n</script>\n\n<Card.Root>\n\t<Card.Header class={showStats ? '' : 'gap-0 pb-0'}>\n\t\t<div class=\"flex justify-between\">\n\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t<Card.Title>Stack Trace</Card.Title>\n\t\t\t\t{#if isMessage}\n\t\t\t\t\t<span\n\t\t\t\t\t\tclass=\"inline-flex items-center rounded-md bg-blue-50 px-2 py-1 text-xs font-medium text-blue-700 ring-1 ring-blue-700/10 ring-inset dark:bg-blue-900/30 dark:text-blue-300 dark:ring-blue-400/30\"\n\t\t\t\t\t>\n\t\t\t\t\t\tMessage\n\t\t\t\t\t</span>\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tonclick={() => (showArchiveDialog = true)}\n\t\t\t\tdisabled={archiving}\n\t\t\t\tclass=\"shrink-0 gap-1.5\"\n\t\t\t>\n\t\t\t\t<Archive class=\"h-4 w-4\" />\n\t\t\t\tArchive\n\t\t\t</Button>\n\t\t</div>\n\t\t{#if showStats}\n\t\t\t<Card.Description>\n\t\t\t\tFirst seen: {formatDateTime(firstSeen!, { timezone: tz })} · Last seen: {formatDateTime(\n\t\t\t\t\tlastSeen!,\n\t\t\t\t\t{ timezone: tz }\n\t\t\t\t)} · Total occurrences: {totalCount}\n\t\t\t</Card.Description>\n\t\t{/if}\n\t</Card.Header>\n\t<Card.Content>\n\t\t<div class=\"overflow-x-auto rounded-md bg-muted p-4 font-mono text-sm whitespace-pre-wrap\">\n\t\t\t{#if parsed.errorMessage}<div>{parsed.errorMessage}</div>{/if}\n\t\t\t{#each parsed.groups as group, i}\n\t\t\t\t{#if group.type === 'app'}\n\t\t\t\t\t<div>\n\t\t\t\t\t\t{#if group.frame.functionName}\n\t\t\t\t\t\t\t<div>{group.frame.functionName}</div>\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t<div>{group.frame.location}</div>\n\t\t\t\t\t</div>\n\t\t\t\t{:else}\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"-mb-4 cursor-pointer pt-2 text-muted-foreground select-none\"\n\t\t\t\t\t\trole=\"button\"\n\t\t\t\t\t\ttabindex=\"0\"\n\t\t\t\t\t\tonclick={() => toggleGroup(i)}\n\t\t\t\t\t\tonkeydown={(e) => {\n\t\t\t\t\t\t\tif (e.key === 'Enter' || e.key === ' ') {\n\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\ttoggleGroup(i);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<span class=\"inline-flex items-center\">\n\t\t\t\t\t\t\t{#if expandedGroups.has(i)}\n\t\t\t\t\t\t\t\t<ChevronDown class=\"mr-0.5 h-3.5 w-3.5\" />\n\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t<ChevronRight class=\"mr-0.5 h-3.5 w-3.5\" />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{group.frames.length} library {group.frames.length === 1 ? 'frame' : 'frames'} ({group.packageName})\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t{#if expandedGroups.has(i)}\n\t\t\t\t\t\t{#each group.frames as frame}\n\t\t\t\t\t\t\t<div class=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t{#if frame.functionName}\n\t\t\t\t\t\t\t\t\t<div>{frame.functionName}</div>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t<div>{frame.location}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t{/each}\n\t\t</div>\n\t</Card.Content>\n</Card.Root>\n","<script lang=\"ts\">\n\timport { goto } from '$app/navigation';\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Card from '$lib/components/ui/card';\n\timport * as Tabs from '$lib/components/ui/tabs';\n\timport { ArrowRight } from 'lucide-svelte';\n\timport type {\n\t\tExceptionOccurrence,\n\t\tLinkedTrace,\n\t\tSessionRecording\n\t} from '$lib/types/exceptions';\n\timport { formatDuration, getStatusColor, formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { AttributesGrid } from '$lib/components/ui/attributes-grid';\n\timport { LabelValue } from '../ui/label-value';\n\timport { projectsState, isFrontendFramework } from '$lib/state/projects.svelte';\n\timport SessionReplay from './session-replay.svelte';\n\timport SessionLogsTable from './session-logs-table.svelte';\n\timport SessionActionsTable from './session-actions-table.svelte';\n\timport DistributedTraceCard from '$lib/components/distributed-trace/distributed-trace-card.svelte';\n\n\tinterface Props {\n\t\toccurrence: ExceptionOccurrence;\n\t\tlinkedTrace: LinkedTrace | null;\n\t\tsessionRecording?: SessionRecording | null;\n\t\tsessionId?: string | null;\n\t\ttitle?: string;\n\t\tdescription?: string;\n\t\ttimezone?: string;\n\t}\n\n\tlet {\n\t\toccurrence,\n\t\tlinkedTrace,\n\t\tsessionRecording = null,\n\t\tsessionId = null,\n\t\ttitle = 'Event',\n\t\tdescription = 'Details for this specific occurrence',\n\t\ttimezone\n\t}: Props = $props();\n\n\tconst tz = $derived(timezone ?? getTimezone());\n\tconst isFrontend = $derived(\n\t\tprojectsState.currentProject?.framework\n\t\t\t? isFrontendFramework(projectsState.currentProject.framework)\n\t\t\t: false\n\t);\n\n\tconst recordingEvents = $derived(sessionRecording?.events ?? null);\n\tconst hasReplay = $derived(!!recordingEvents && recordingEvents.length > 0);\n\tconst logs = $derived(sessionRecording?.logs ?? []);\n\tconst actions = $derived(sessionRecording?.actions ?? []);\n\tconst hasLogs = $derived(logs.length > 0);\n\tconst hasActions = $derived(actions.length > 0);\n\t// Logs/actions tables are only meaningful for frontend-framework projects.\n\t// Backend / OTel exception pages must look identical to before.\n\tconst showSessionContext = $derived(isFrontend && (hasLogs || hasActions));\n\tconst defaultTab = $derived(hasLogs ? 'logs' : 'actions');\n\n\tlet currentTimeMs = $state(0);\n\tlet replayRef = $state<{ seek: (ms: number) => void } | null>(null);\n\n\tfunction handleSeek(offsetMs: number) {\n\t\treplayRef?.seek(offsetMs);\n\t}\n</script>\n\n<!-- Session Replay -->\n{#if hasReplay}\n\t<Card.Root class=\"pb-0\">\n\t\t<Card.Header class=\"flex flex-row items-center justify-between gap-2\">\n\t\t\t<Card.Title>Session Replay</Card.Title>\n\t\t\t{#if sessionId}\n\t\t\t\t<Button\n\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\tonclick={() => goto(`/sessions/${sessionId}`)}\n\t\t\t\t>\n\t\t\t\t\tView full session\n\t\t\t\t\t<ArrowRight class=\"size-4\" />\n\t\t\t\t</Button>\n\t\t\t{/if}\n\t\t</Card.Header>\n\t\t<Card.Content class=\"p-0\">\n\t\t\t{#key recordingEvents}\n\t\t\t\t<SessionReplay\n\t\t\t\t\tbind:this={replayRef}\n\t\t\t\t\tevents={recordingEvents as any}\n\t\t\t\t\tonTimeUpdate={(ms) => (currentTimeMs = ms)}\n\t\t\t\t/>\n\t\t\t{/key}\n\t\t</Card.Content>\n\t</Card.Root>\n{:else if sessionId}\n\t<Card.Root>\n\t\t<Card.Header class=\"flex flex-row items-center justify-between gap-2\">\n\t\t\t<Card.Title>Session</Card.Title>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tonclick={() => goto(`/sessions/${sessionId}`)}\n\t\t\t>\n\t\t\t\tView full session\n\t\t\t\t<ArrowRight class=\"size-4\" />\n\t\t\t</Button>\n\t\t</Card.Header>\n\t\t<Card.Content class=\"text-sm text-muted-foreground\">\n\t\t\tThis exception is linked to a recorded user session.\n\t\t</Card.Content>\n\t</Card.Root>\n{/if}\n\n<!-- Session Context (logs + actions). Frontend projects only. -->\n{#if showSessionContext}\n\t<Card.Root>\n\t\t<Card.Header>\n\t\t\t<Card.Title>Session Context</Card.Title>\n\t\t\t<Card.Description>\n\t\t\t\tThe last seconds of console output and recorded actions before this\n\t\t\t\texception. Times are offsets from the start of the recording.\n\t\t\t</Card.Description>\n\t\t</Card.Header>\n\t\t<Card.Content>\n\t\t\t<Tabs.Root value={defaultTab}>\n\t\t\t\t<Tabs.List class=\"mb-4\">\n\t\t\t\t\t{#if hasLogs}\n\t\t\t\t\t\t<Tabs.Trigger value=\"logs\">Logs ({logs.length})</Tabs.Trigger>\n\t\t\t\t\t{/if}\n\t\t\t\t\t{#if hasActions}\n\t\t\t\t\t\t<Tabs.Trigger value=\"actions\">Actions ({actions.length})</Tabs.Trigger>\n\t\t\t\t\t{/if}\n\t\t\t\t</Tabs.List>\n\t\t\t\t{#if hasLogs}\n\t\t\t\t\t<Tabs.Content value=\"logs\">\n\t\t\t\t\t\t<SessionLogsTable\n\t\t\t\t\t\t\t{logs}\n\t\t\t\t\t\t\tstartedAt={sessionRecording?.startedAt}\n\t\t\t\t\t\t\t{currentTimeMs}\n\t\t\t\t\t\t\tonSeek={handleSeek}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Tabs.Content>\n\t\t\t\t{/if}\n\t\t\t\t{#if hasActions}\n\t\t\t\t\t<Tabs.Content value=\"actions\">\n\t\t\t\t\t\t<SessionActionsTable\n\t\t\t\t\t\t\t{actions}\n\t\t\t\t\t\t\tstartedAt={sessionRecording?.startedAt}\n\t\t\t\t\t\t\t{currentTimeMs}\n\t\t\t\t\t\t\tonSeek={handleSeek}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Tabs.Content>\n\t\t\t\t{/if}\n\t\t\t</Tabs.Root>\n\t\t</Card.Content>\n\t</Card.Root>\n{/if}\n\n<Card.Root>\n\t<Card.Header>\n\t\t<Card.Title>{title}</Card.Title>\n\t\t<Card.Description>{description}</Card.Description>\n\t</Card.Header>\n\t<Card.Content class=\"space-y-6\">\n\t\t<!-- Event Details -->\n\t\t<div class=\"grid grid-cols-2 gap-4 {isFrontend ? 'md:grid-cols-2' : 'md:grid-cols-4'}\">\n\t\t\t<div class=\"space-y-1\">\n\t\t\t\t<p class=\"text-sm text-muted-foreground\">Recorded At</p>\n\t\t\t\t<p class=\"font-mono text-sm\">{formatDateTime(occurrence.recordedAt, { timezone: tz })}</p>\n\t\t\t</div>\n\t\t\t{#if !isFrontend}\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-sm text-muted-foreground\">Server</p>\n\t\t\t\t\t<p class=\"font-mono text-sm\">{occurrence.serverName || '-'}</p>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t\t<div class=\"space-y-1\">\n\t\t\t\t<p class=\"text-sm text-muted-foreground\">Version</p>\n\t\t\t\t<p class=\"font-mono text-sm\">{occurrence.appVersion || '-'}</p>\n\t\t\t</div>\n\t\t\t{#if !isFrontend}\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-sm text-muted-foreground\">Trace</p>\n\t\t\t\t\t<p class=\"font-mono text-sm\">{occurrence.traceId || '-'}</p>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t</div>\n\n\t\t<!-- AttributesGrid -->\n\t\t{#if occurrence.attributes && Object.keys(occurrence.attributes).length > 0}\n\t\t\t<hr class=\"border-border\" />\n\t\t\t<div>\n\t\t\t\t<p class=\"mb-3 text-sm font-medium\">Attributes</p>\n\t\t\t\t<AttributesGrid attributes={occurrence.attributes} />\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Related Trace -->\n\t\t{#if linkedTrace}\n\t\t\t<hr class=\"border-border\" />\n\t\t\t<div>\n\t\t\t\t<p class=\"mb-3 text-sm font-medium\">\n\t\t\t\t\t{linkedTrace.traceType === 'task' ? 'Related Task' : 'Related Endpoint'}\n\t\t\t\t</p>\n\t\t\t\t<div class=\"mb-4 grid grid-cols-2 gap-4 md:grid-cols-4\">\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel={linkedTrace.traceType === 'task' ? 'Task' : 'Endpoint'}\n\t\t\t\t\t\tvalue={linkedTrace.endpoint}\n\t\t\t\t\t\tmono\n\t\t\t\t\t/>\n\t\t\t\t\t{#if linkedTrace.traceType !== 'task'}\n\t\t\t\t\t\t<LabelValue\n\t\t\t\t\t\t\tlabel=\"Status\"\n\t\t\t\t\t\t\tvalue={linkedTrace.statusCode}\n\t\t\t\t\t\t\tmono\n\t\t\t\t\t\t\tlarge\n\t\t\t\t\t\t\tvalueClass={getStatusColor(linkedTrace.statusCode)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t{/if}\n\t\t\t\t\t<LabelValue label=\"Duration\" value={formatDuration(linkedTrace.duration)} mono large />\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\tvalue={formatDateTime(linkedTrace.recordedAt, { timezone })}\n\t\t\t\t\t\tmono\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t{#if linkedTrace.traceType === 'task'}\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\tonclick={() =>\n\t\t\t\t\t\t\tgoto(\n\t\t\t\t\t\t\t\t`/tasks/${encodeURIComponent(linkedTrace.endpoint)}/${linkedTrace.id}?preset=24h`\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\tView Task Details\n\t\t\t\t\t\t<ArrowRight class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t</Button>\n\t\t\t\t{:else}\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\tonclick={() =>\n\t\t\t\t\t\t\tgoto(\n\t\t\t\t\t\t\t\t`/endpoints/${encodeURIComponent(linkedTrace.endpoint)}/${linkedTrace.id}?preset=24h`\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\tView Endpoint Details\n\t\t\t\t\t\t<ArrowRight class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t</Button>\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t{/if}\n\t</Card.Content>\n</Card.Root>\n\n{#if linkedTrace?.distributedTraceId || occurrence.distributedTraceId}\n\t<DistributedTraceCard distributedTraceId={(linkedTrace?.distributedTraceId ?? occurrence.distributedTraceId)!} currentExceptionHash={occurrence.exceptionHash} />\n{/if}\n","<script lang=\"ts\">\n import { createRowClickHandler } from '$lib/utils/navigation';\n import * as Card from \"$lib/components/ui/card\";\n import * as Table from \"$lib/components/ui/table\";\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { ViewAllTableRow } from \"$lib/components/ui/view-all-table-row\";\n import type { ExceptionOccurrence } from '$lib/types/exceptions';\n import { formatDateTime, truncateStackTrace } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import { projectsState, isFrontendFramework } from '$lib/state/projects.svelte';\n\n interface Props {\n occurrences: ExceptionOccurrence[];\n exceptionHash: string;\n total: number;\n hasMore?: boolean;\n showViewAll?: boolean;\n currentExceptionId?: string;\n timezone?: string;\n }\n\n let {\n occurrences,\n exceptionHash,\n total,\n hasMore = false,\n showViewAll = true,\n currentExceptionId,\n timezone\n }: Props = $props();\n\n const tz = $derived(timezone ?? getTimezone());\n const isFrontend = $derived(\n projectsState.currentProject?.framework\n ? isFrontendFramework(projectsState.currentProject.framework)\n : false\n );\n\n function getRowUrl(occurrence: ExceptionOccurrence): string {\n return `/issues/${exceptionHash}/${occurrence.id}`;\n }\n\n function isCurrentEvent(occurrence: ExceptionOccurrence): boolean {\n return currentExceptionId !== undefined && occurrence.id === currentExceptionId;\n }\n</script>\n\n<Card.Root>\n <Card.Header>\n <Card.Title>Events</Card.Title>\n <Card.Description>All occurrences of this exception ({total} total)</Card.Description>\n </Card.Header>\n <Card.Content>\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if occurrences.length > 0}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader\n label=\"Recorded At\"\n tooltip=\"When this occurrence was recorded\"\n />\n {#if isFrontend}\n <TracewayTableHeader\n label=\"Title\"\n tooltip=\"Exception message from the first line of the stack trace\"\n />\n {:else}\n <TracewayTableHeader\n label=\"Server\"\n tooltip=\"Server instance where error occurred\"\n />\n <TracewayTableHeader\n label=\"Trace\"\n tooltip=\"Trace ID if this occurred during a request\"\n />\n {/if}\n </Table.Row>\n </Table.Header>\n {/if}\n <Table.Body>\n {#if occurrences.length === 0}\n <TableEmptyState colspan={isFrontend ? 2 : 3} message=\"No occurrences found.\" />\n {:else}\n {#each occurrences as occurrence}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50 {isCurrentEvent(occurrence) ? 'bg-muted' : ''}\"\n onclick={createRowClickHandler(getRowUrl(occurrence))}\n >\n <Table.Cell>\n {formatDateTime(occurrence.recordedAt, { timezone: tz })}\n {#if isCurrentEvent(occurrence)}\n <span class=\"ml-2 text-xs text-muted-foreground\">(current)</span>\n {/if}\n </Table.Cell>\n {#if isFrontend}\n <Table.Cell class=\"font-mono text-sm text-muted-foreground truncate max-w-[400px]\" title={occurrence.stackTrace.split('\\n')[0]}>\n {truncateStackTrace(occurrence.stackTrace, 60)}\n </Table.Cell>\n {:else}\n <Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n {occurrence.serverName || '-'}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm\">\n {occurrence.traceId || '-'}\n </Table.Cell>\n {/if}\n </Table.Row>\n {/each}\n {#if hasMore && showViewAll}\n <ViewAllTableRow colspan={isFrontend ? 2 : 3} href={`/issues/${exceptionHash}/events`} label={`View all ${total} events`} />\n {/if}\n {/if}\n </Table.Body>\n </Table.Root>\n </div>\n </Card.Content>\n</Card.Root>\n"],"names":["extractPackageName","location","nodeMatch","dartMatch","parseStackTrace","raw","lines","frames","firstFrameIndex","firstFuncNameIndex","locationPattern","i","functionName","j","prevLine","errorEndIndex","errorMessage","groups","frame","libraryFrames","isMessage","showArchiveDialog","$.prop","$$props","tz","getTimezone","showStats","parsed","expandedGroups","$.state","$.proxy","toggleGroup","index","next","$.get","$.set","Card_Root","$$anchor","Card_Header","div","$.first_child","fragment_2","div_1","Card_Title","span","root_4","$.append","$$render","consequent","Button","node_4","Archive","node_5","Card_Description","formatDateTime","consequent_1","Card_Content","div_2","root_8","div_3","root_9","$.template_effect","$.set_text","text_2","consequent_2","$.index","group","div_4","root_11","div_5","root_12","consequent_3","div_6","$.sibling","node_12","div_7","fragment_7","e","span_1","$.child","ChevronDown","ChevronRight","consequent_5","alternate","$.reset","node_14","div_8","root_17","div_9","root_18","text_6","consequent_6","div_10","node_16","text_7","consequent_7","text_5","consequent_4","alternate_1","sessionRecording","sessionId","title","description","isFrontend","$.derived","projectsState","isFrontendFramework","recordingEvents","hasReplay","logs","actions","hasLogs","hasActions","showSessionContext","defaultTab","currentTimeMs","replayRef","handleSeek","offsetMs","goto","ArrowRight","SessionReplay","ms","$$value","Card_Root_1","Card_Header_1","Card_Title_1","node_13","Card_Content_1","Card_Root_2","Card_Header_2","Card_Title_2","Card_Content_2","Tabs_Root","Tabs_List","Tabs_Trigger","Tabs_Trigger_1","Tabs_Content","$0","SessionLogsTable","Tabs_Content_1","SessionActionsTable","Card_Root_3","Card_Header_3","Card_Title_3","Card_Description_1","Card_Content_3","fragment_31","p","root_37","p_1","text_10","consequent_8","node_36","p_2","root_38","p_3","text_12","consequent_9","fragment_32","AttributesGrid","node_39","consequent_10","fragment_33","p_4","LabelValue","node_41","getStatusColor","consequent_11","formatDuration","node_43","node_44","node_46","node_47","consequent_12","text_13","$.set_class","text_11","DistributedTraceCard","consequent_14","hasMore","showViewAll","getRowUrl","occurrence","isCurrentEvent","root_5","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_9","node_11","Table_Body","TableEmptyState","createRowClickHandler","Table_Row_1","Table_Cell","Table_Cell_1","text_3","truncateStackTrace","Table_Cell_2","Table_Cell_3","ViewAllTableRow","alternate_2"],"mappings":"iwCAoBA,SAASA,GAAmBC,GAA0B,CACrD,MAAMC,EAAYD,GAAS,MAAM,uBAAuB,EACxD,GAAIC,EAAW,OAAOA,EAAU,CAAC,EAEjC,MAAMC,EAAYF,GAAS,MAAM,6BAA6B,EAC9D,OAAIE,EAAkBA,EAAU,CAAC,EAE1B,SACR,CAEO,SAASC,GAAgBC,GAA+B,CAC9D,MAAMC,EAAQD,GAAI,MAAM;AAAA,CAAI,EACtBE,EAAuB,CAAA,EAC7B,IAAIC,GAAkB,GAClBC,GAAqB,GAEzB,MAAMC,GAAkB,kBAExB,QAASC,EAAI,EAAGA,EAAIL,EAAM,OAAQK,IACjC,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HA,EAAG,2EARZ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/B-KBEnoV.js b/backend/static/frontend/_app/immutable/chunks/CFZS-Ydw.js
similarity index 97%
rename from backend/static/frontend/_app/immutable/chunks/B-KBEnoV.js
rename to backend/static/frontend/_app/immutable/chunks/CFZS-Ydw.js
index 4078939d..007e9b09 100644
--- a/backend/static/frontend/_app/immutable/chunks/B-KBEnoV.js
+++ b/backend/static/frontend/_app/immutable/chunks/CFZS-Ydw.js
@@ -1 +1 @@
-import{p as D,i as h}from"./DMODTt3n.js";import{p as et,f as g,k as E,b as r,a as rt,e as n,s as p,r as v,w as f,c as m,l as w,g as F,u as G,d as _,n as at}from"./B2WdN-7r.js";import"./xR3pK9Ey.js";import{B as H}from"./C1aqwstW.js";var ot=g('<div class="absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-red-500 via-orange-500 to-yellow-500 rounded-full scale-150"></div>'),it=g('<div class="absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-amber-500 via-orange-500 to-red-500 rounded-full scale-150"></div>'),st=g('<div class="absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-purple-500 via-pink-500 to-red-500 rounded-full scale-150"></div>'),lt=g('<div class="absolute inset-0 blur-3xl opacity-20 bg-red-500 rounded-full scale-150"></div>'),dt=f('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground"><circle cx="12" cy="12" r="10"></circle><path d="m15 9-6 6"></path><path d="m9 9 6 6"></path></svg>'),nt=f('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="text-amber-500"><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"></path><path d="M12 9v4"></path><path d="M12 17h.01"></path></svg>'),vt=f('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="text-purple-500"><circle cx="12" cy="12" r="10"></circle><path d="M12 8v4"></path><path d="M12 16h.01"></path></svg>'),ct=f('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="text-red-500"><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"></path><path d="M12 9v4"></path><path d="M12 17h.01"></path></svg>'),ht=f('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg> ',1),ut=f('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2"><path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"></path><path d="M3 3v5h5"></path><path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16"></path><path d="M16 16h5v5"></path></svg> Try Again',1),pt=g('<div class="mt-8 px-4 py-2 rounded-lg bg-muted/50 border border-border/50"><code class="text-xs text-muted-foreground font-mono"> </code></div>'),gt=g('<div class="flex flex-col items-center justify-center py-16 px-4"><div class="relative mb-8"><!> <div class="relative flex items-center justify-center w-24 h-24 rounded-2xl bg-gradient-to-br from-muted/80 to-muted border border-border/50 shadow-lg"><!></div></div> <div class="text-center space-y-3 max-w-md"><h2 class="text-2xl font-semibold tracking-tight"> </h2> <p class="text-muted-foreground leading-relaxed"> </p></div> <div class="flex items-center gap-3 mt-8"><!> <!></div> <!></div>');function xt(N,i){et(i,!0);let c=D(i,"status",3,404),S=D(i,"backLabel",3,"Go Back");const L={404:{title:"Not Found",description:"The resource you're looking for doesn't exist or may have been removed."},400:{title:"Bad Request",description:"The request was invalid. Please check your input and try again."},422:{title:"Validation Error",description:"The data provided could not be processed. Please verify your input."}},V=G(()=>i.title||L[c()]?.title||"Error"),z=G(()=>i.description||L[c()]?.description||"Something went wrong.");function I(t){i.onBack?i.onBack(t):history.back()}var x=gt(),k=n(x),P=n(k);{var J=t=>{var e=ot();r(t,e)},K=t=>{var e=_(),s=m(e);{var l=a=>{var d=it();r(a,d)},M=a=>{var d=_(),j=m(d);{var C=o=>{var u=st();r(o,u)},T=o=>{var u=lt();r(o,u)};h(j,o=>{c()===422?o(C):o(T,!1)},!0)}r(a,d)};h(s,a=>{c()===400?a(l):a(M,!1)},!0)}r(t,e)};h(P,t=>{c()===404?t(J):t(K,!1)})}var A=p(P,2),O=n(A);{var Q=t=>{var e=dt();r(t,e)},U=t=>{var e=_(),s=m(e);{var l=a=>{var d=nt();r(a,d)},M=a=>{var d=_(),j=m(d);{var C=o=>{var u=vt();r(o,u)},T=o=>{var u=ct();r(o,u)};h(j,o=>{c()===422?o(C):o(T,!1)},!0)}r(a,d)};h(s,a=>{c()===400?a(l):a(M,!1)},!0)}r(t,e)};h(O,t=>{c()===404?t(Q):t(U,!1)})}v(A),v(k);var b=p(k,2),y=n(b),W=n(y,!0);v(y);var R=p(y,2),X=n(R,!0);v(R),v(b);var B=p(b,2),q=n(B);H(q,{variant:"outline",onclick:I,children:(t,e)=>{var s=ht(),l=p(m(s),1,!0);E(()=>w(l,S())),r(t,s)},$$slots:{default:!0}});var Y=p(q,2);{var Z=t=>{H(t,{get onclick(){return i.onRetry},children:(e,s)=>{var l=ut();at(),r(e,l)},$$slots:{default:!0}})};h(Y,t=>{i.onRetry&&t(Z)})}v(B);var $=p(B,2);{var tt=t=>{var e=pt(),s=n(e),l=n(s,!0);v(s),v(e),E(()=>w(l,i.identifier)),r(t,e)};h($,t=>{i.identifier&&t(tt)})}v(x),E(()=>{w(W,F(V)),w(X,F(z))}),r(N,x),rt()}export{xt as E};
+import{p as D,i as h}from"./DMODTt3n.js";import{p as et,f as g,k as E,b as r,a as rt,e as n,s as p,r as v,w as f,c as m,l as w,g as F,u as G,d as _,n as at}from"./B2WdN-7r.js";import"./BIF4_51j.js";import{B as H}from"./C1aqwstW.js";var ot=g('<div class="absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-red-500 via-orange-500 to-yellow-500 rounded-full scale-150"></div>'),it=g('<div class="absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-amber-500 via-orange-500 to-red-500 rounded-full scale-150"></div>'),st=g('<div class="absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-purple-500 via-pink-500 to-red-500 rounded-full scale-150"></div>'),lt=g('<div class="absolute inset-0 blur-3xl opacity-20 bg-red-500 rounded-full scale-150"></div>'),dt=f('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground"><circle cx="12" cy="12" r="10"></circle><path d="m15 9-6 6"></path><path d="m9 9 6 6"></path></svg>'),nt=f('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="text-amber-500"><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"></path><path d="M12 9v4"></path><path d="M12 17h.01"></path></svg>'),vt=f('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="text-purple-500"><circle cx="12" cy="12" r="10"></circle><path d="M12 8v4"></path><path d="M12 16h.01"></path></svg>'),ct=f('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="text-red-500"><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"></path><path d="M12 9v4"></path><path d="M12 17h.01"></path></svg>'),ht=f('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg> ',1),ut=f('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2"><path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"></path><path d="M3 3v5h5"></path><path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16"></path><path d="M16 16h5v5"></path></svg> Try Again',1),pt=g('<div class="mt-8 px-4 py-2 rounded-lg bg-muted/50 border border-border/50"><code class="text-xs text-muted-foreground font-mono"> </code></div>'),gt=g('<div class="flex flex-col items-center justify-center py-16 px-4"><div class="relative mb-8"><!> <div class="relative flex items-center justify-center w-24 h-24 rounded-2xl bg-gradient-to-br from-muted/80 to-muted border border-border/50 shadow-lg"><!></div></div> <div class="text-center space-y-3 max-w-md"><h2 class="text-2xl font-semibold tracking-tight"> </h2> <p class="text-muted-foreground leading-relaxed"> </p></div> <div class="flex items-center gap-3 mt-8"><!> <!></div> <!></div>');function xt(N,i){et(i,!0);let c=D(i,"status",3,404),S=D(i,"backLabel",3,"Go Back");const L={404:{title:"Not Found",description:"The resource you're looking for doesn't exist or may have been removed."},400:{title:"Bad Request",description:"The request was invalid. Please check your input and try again."},422:{title:"Validation Error",description:"The data provided could not be processed. Please verify your input."}},V=G(()=>i.title||L[c()]?.title||"Error"),z=G(()=>i.description||L[c()]?.description||"Something went wrong.");function I(t){i.onBack?i.onBack(t):history.back()}var x=gt(),k=n(x),P=n(k);{var J=t=>{var e=ot();r(t,e)},K=t=>{var e=_(),s=m(e);{var l=a=>{var d=it();r(a,d)},M=a=>{var d=_(),j=m(d);{var C=o=>{var u=st();r(o,u)},T=o=>{var u=lt();r(o,u)};h(j,o=>{c()===422?o(C):o(T,!1)},!0)}r(a,d)};h(s,a=>{c()===400?a(l):a(M,!1)},!0)}r(t,e)};h(P,t=>{c()===404?t(J):t(K,!1)})}var A=p(P,2),O=n(A);{var Q=t=>{var e=dt();r(t,e)},U=t=>{var e=_(),s=m(e);{var l=a=>{var d=nt();r(a,d)},M=a=>{var d=_(),j=m(d);{var C=o=>{var u=vt();r(o,u)},T=o=>{var u=ct();r(o,u)};h(j,o=>{c()===422?o(C):o(T,!1)},!0)}r(a,d)};h(s,a=>{c()===400?a(l):a(M,!1)},!0)}r(t,e)};h(O,t=>{c()===404?t(Q):t(U,!1)})}v(A),v(k);var b=p(k,2),y=n(b),W=n(y,!0);v(y);var R=p(y,2),X=n(R,!0);v(R),v(b);var B=p(b,2),q=n(B);H(q,{variant:"outline",onclick:I,children:(t,e)=>{var s=ht(),l=p(m(s),1,!0);E(()=>w(l,S())),r(t,s)},$$slots:{default:!0}});var Y=p(q,2);{var Z=t=>{H(t,{get onclick(){return i.onRetry},children:(e,s)=>{var l=ut();at(),r(e,l)},$$slots:{default:!0}})};h(Y,t=>{i.onRetry&&t(Z)})}v(B);var $=p(B,2);{var tt=t=>{var e=pt(),s=n(e),l=n(s,!0);v(s),v(e),E(()=>w(l,i.identifier)),r(t,e)};h($,t=>{i.identifier&&t(tt)})}v(x),E(()=>{w(W,F(V)),w(X,F(z))}),r(N,x),rt()}export{xt as E};
diff --git a/backend/static/frontend/_app/immutable/chunks/B-KBEnoV.js.map b/backend/static/frontend/_app/immutable/chunks/CFZS-Ydw.js.map
similarity index 98%
rename from backend/static/frontend/_app/immutable/chunks/B-KBEnoV.js.map
rename to backend/static/frontend/_app/immutable/chunks/CFZS-Ydw.js.map
index cfb28e7d..9f5d0377 100644
--- a/backend/static/frontend/_app/immutable/chunks/B-KBEnoV.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/CFZS-Ydw.js.map
@@ -1 +1 @@
-{"version":3,"file":"B-KBEnoV.js","sources":["../../../../../../src/lib/components/ui/error-display/error-display.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { Button } from \"$lib/components/ui/button\";\n\n interface Props {\n status?: 404 | 400 | 422 | number;\n title?: string;\n description?: string;\n onBack?: (e: MouseEvent) => void;\n backLabel?: string;\n onRetry?: () => void;\n identifier?: string;\n }\n\n let {\n status = 404,\n title,\n description,\n onBack,\n backLabel = 'Go Back',\n onRetry,\n identifier\n }: Props = $props();\n\n const defaults: Record<number, { title: string; description: string }> = {\n 404: {\n title: 'Not Found',\n description: \"The resource you're looking for doesn't exist or may have been removed.\"\n },\n 400: {\n title: 'Bad Request',\n description: 'The request was invalid. Please check your input and try again.'\n },\n 422: {\n title: 'Validation Error',\n description: 'The data provided could not be processed. Please verify your input.'\n }\n };\n\n const displayTitle = $derived(title || defaults[status]?.title || 'Error');\n const displayDescription = $derived(description || defaults[status]?.description || 'Something went wrong.');\n\n function handleBack(e: MouseEvent) {\n if (onBack) {\n onBack(e);\n } else {\n history.back();\n }\n }\n</script>\n\n<div class=\"flex flex-col items-center justify-center py-16 px-4\">\n <div class=\"relative mb-8\">\n <!-- Glowing background effect -->\n {#if status === 404}\n <div class=\"absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-red-500 via-orange-500 to-yellow-500 rounded-full scale-150\"></div>\n {:else if status === 400}\n <div class=\"absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-amber-500 via-orange-500 to-red-500 rounded-full scale-150\"></div>\n {:else if status === 422}\n <div class=\"absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-purple-500 via-pink-500 to-red-500 rounded-full scale-150\"></div>\n {:else}\n <div class=\"absolute inset-0 blur-3xl opacity-20 bg-red-500 rounded-full scale-150\"></div>\n {/if}\n\n <!-- Icon container -->\n <div class=\"relative flex items-center justify-center w-24 h-24 rounded-2xl bg-gradient-to-br from-muted/80 to-muted border border-border/50 shadow-lg\">\n {#if status === 404}\n <!-- X in circle icon -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"text-muted-foreground\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\n <path d=\"m15 9-6 6\"/>\n <path d=\"m9 9 6 6\"/>\n </svg>\n {:else if status === 400}\n <!-- Alert triangle icon -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"text-amber-500\"\n >\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/>\n <path d=\"M12 9v4\"/>\n <path d=\"M12 17h.01\"/>\n </svg>\n {:else if status === 422}\n <!-- Alert circle icon -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"text-purple-500\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\n <path d=\"M12 8v4\"/>\n <path d=\"M12 16h.01\"/>\n </svg>\n {:else}\n <!-- Generic error icon -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"text-red-500\"\n >\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/>\n <path d=\"M12 9v4\"/>\n <path d=\"M12 17h.01\"/>\n </svg>\n {/if}\n </div>\n </div>\n\n <div class=\"text-center space-y-3 max-w-md\">\n <h2 class=\"text-2xl font-semibold tracking-tight\">{displayTitle}</h2>\n <p class=\"text-muted-foreground leading-relaxed\">{displayDescription}</p>\n </div>\n\n <div class=\"flex items-center gap-3 mt-8\">\n <Button variant=\"outline\" onclick={handleBack}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"mr-2\">\n <path d=\"m12 19-7-7 7-7\"/><path d=\"M19 12H5\"/>\n </svg>\n {backLabel}\n </Button>\n {#if onRetry}\n <Button onclick={onRetry}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"mr-2\">\n <path d=\"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\"/>\n <path d=\"M3 3v5h5\"/>\n <path d=\"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16\"/>\n <path d=\"M16 16h5v5\"/>\n </svg>\n Try Again\n </Button>\n {/if}\n </div>\n\n {#if identifier}\n <div class=\"mt-8 px-4 py-2 rounded-lg bg-muted/50 border border-border/50\">\n <code class=\"text-xs text-muted-foreground font-mono\">\n {identifier}\n </code>\n </div>\n {/if}\n</div>\n"],"names":["status","backLabel","defaults","displayTitle","displayDescription","handleBack","e","$$props","div","root","div_1","div_2","root_1","div_3","root_3","div_4","root_5","div_5","root_6","$$render","consequent_2","alternate","consequent_1","alternate_1","consequent","alternate_2","div_6","$.sibling","node","svg","root_7","$.append","$$anchor","svg_1","root_9","svg_2","root_11","svg_3","root_12","consequent_5","alternate_3","consequent_4","alternate_4","consequent_3","alternate_5","div_7","h2","p","div_8","Button","node_6","div_9","root_16","code"],"mappings":"i6GAAA,UAeQ,IAAAA,iBAAS,GAAG,EAIZC,oBAAY,SAAS,QAKnBC,EAAgE,CAClE,IAAG,CACC,MAAO,YACP,YAAa,2EAEjB,IAAG,CACC,MAAO,cACP,YAAa,mEAEjB,IAAG,CACC,MAAO,mBACP,YAAa,wEAIfC,iBAAiCD,EAASF,EAAM,CAAA,GAAG,OAAS,OAAO,EACnEI,uBAA6CF,EAASF,EAAM,CAAA,GAAG,aAAe,uBAAuB,WAElGK,EAAWC,EAAe,CACnBC,EAAA,gBACDD,CAAC,EAER,QAAQ,KAAI,CAEpB,KAGHE,EAAGC,GAAA,EACCC,IADJF,CAAG,MACCE,CAAG,iBAGKC,EAAGC,GAAA,MAAHD,CAAG,yCAEHE,EAAGC,GAAA,MAAHD,CAAG,yCAEHE,EAAGC,GAAA,MAAHD,CAAG,aAEHE,EAAGC,GAAA,MAAHD,CAAG,WAHEjB,EAAM,IAAK,IAAGmB,EAAAC,CAAA,EAAAD,EAAAE,EAAA,EAAA,uBAFdrB,EAAM,IAAK,IAAGmB,EAAAG,CAAA,EAAAH,EAAAI,EAAA,EAAA,uBAFnBvB,EAAM,IAAK,IAAGmB,EAAAK,CAAA,EAAAL,EAAAM,EAAA,EAAA,QAWlBC,EAAGC,EAAAC,EAAA,CAAA,MAAHF,CAAG,aAGK,IAAAG,EAAAC,GAAA,EAAAC,EAAAC,EAAAH,CAAA,qCAkBA,IAAAI,EAAAC,GAAA,EAAAH,EAAAC,EAAAC,CAAA,qCAkBA,IAAAE,EAAAC,GAAA,EAAAL,EAAAC,EAAAG,CAAA,SAkBA,IAAAE,EAAAC,GAAA,EAAAP,EAAAC,EAAAK,CAAA,WApBKrC,EAAM,IAAK,IAAGmB,EAAAoB,CAAA,EAAApB,EAAAqB,EAAA,EAAA,uBAlBdxC,EAAM,IAAK,IAAGmB,EAAAsB,CAAA,EAAAtB,EAAAuB,EAAA,EAAA,uBAlBnB1C,EAAM,IAAK,IAAGmB,EAAAwB,CAAA,EAAAxB,EAAAyB,EAAA,EAAA,MADtBlB,CAAG,IAbPhB,CAAG,EA0FH,IAAAmC,IA1FAnC,EAAG,CAAA,EA2FCoC,IADJD,CAAG,MACCC,EAAE,EAAA,IAAFA,CAAE,EACF,IAAAC,IADAD,EAAE,CAAA,MACFC,EAAC,EAAA,IAADA,CAAC,IAFLF,CAAG,EAKH,IAAAG,IALAH,EAAG,CAAA,MAKHG,CAAG,EACCC,EAAMC,EAAA,2BAA4B7C,uDAI9BJ,EAAS,CAAA,CAAA,yDAGTgD,EAAMjB,EAAA,8HARdgB,CAAG,UAAHA,EAAG,CAAA,kBAqBCG,EAAGC,GAAA,EACCC,IADJF,CAAG,MACCE,EAAI,EAAA,IAAJA,CAAI,IADRF,CAAG,+BAAHA,CAAG,mCArHX3C,CAAG,eA4FuDL,CAAY,CAAA,QACbC,CAAkB,CAAA,QA7F3EI,CAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"CFZS-Ydw.js","sources":["../../../../../../src/lib/components/ui/error-display/error-display.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { Button } from \"$lib/components/ui/button\";\n\n interface Props {\n status?: 404 | 400 | 422 | number;\n title?: string;\n description?: string;\n onBack?: (e: MouseEvent) => void;\n backLabel?: string;\n onRetry?: () => void;\n identifier?: string;\n }\n\n let {\n status = 404,\n title,\n description,\n onBack,\n backLabel = 'Go Back',\n onRetry,\n identifier\n }: Props = $props();\n\n const defaults: Record<number, { title: string; description: string }> = {\n 404: {\n title: 'Not Found',\n description: \"The resource you're looking for doesn't exist or may have been removed.\"\n },\n 400: {\n title: 'Bad Request',\n description: 'The request was invalid. Please check your input and try again.'\n },\n 422: {\n title: 'Validation Error',\n description: 'The data provided could not be processed. Please verify your input.'\n }\n };\n\n const displayTitle = $derived(title || defaults[status]?.title || 'Error');\n const displayDescription = $derived(description || defaults[status]?.description || 'Something went wrong.');\n\n function handleBack(e: MouseEvent) {\n if (onBack) {\n onBack(e);\n } else {\n history.back();\n }\n }\n</script>\n\n<div class=\"flex flex-col items-center justify-center py-16 px-4\">\n <div class=\"relative mb-8\">\n <!-- Glowing background effect -->\n {#if status === 404}\n <div class=\"absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-red-500 via-orange-500 to-yellow-500 rounded-full scale-150\"></div>\n {:else if status === 400}\n <div class=\"absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-amber-500 via-orange-500 to-red-500 rounded-full scale-150\"></div>\n {:else if status === 422}\n <div class=\"absolute inset-0 blur-3xl opacity-20 bg-gradient-to-br from-purple-500 via-pink-500 to-red-500 rounded-full scale-150\"></div>\n {:else}\n <div class=\"absolute inset-0 blur-3xl opacity-20 bg-red-500 rounded-full scale-150\"></div>\n {/if}\n\n <!-- Icon container -->\n <div class=\"relative flex items-center justify-center w-24 h-24 rounded-2xl bg-gradient-to-br from-muted/80 to-muted border border-border/50 shadow-lg\">\n {#if status === 404}\n <!-- X in circle icon -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"text-muted-foreground\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\n <path d=\"m15 9-6 6\"/>\n <path d=\"m9 9 6 6\"/>\n </svg>\n {:else if status === 400}\n <!-- Alert triangle icon -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"text-amber-500\"\n >\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/>\n <path d=\"M12 9v4\"/>\n <path d=\"M12 17h.01\"/>\n </svg>\n {:else if status === 422}\n <!-- Alert circle icon -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"text-purple-500\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\n <path d=\"M12 8v4\"/>\n <path d=\"M12 16h.01\"/>\n </svg>\n {:else}\n <!-- Generic error icon -->\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"48\"\n height=\"48\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n class=\"text-red-500\"\n >\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/>\n <path d=\"M12 9v4\"/>\n <path d=\"M12 17h.01\"/>\n </svg>\n {/if}\n </div>\n </div>\n\n <div class=\"text-center space-y-3 max-w-md\">\n <h2 class=\"text-2xl font-semibold tracking-tight\">{displayTitle}</h2>\n <p class=\"text-muted-foreground leading-relaxed\">{displayDescription}</p>\n </div>\n\n <div class=\"flex items-center gap-3 mt-8\">\n <Button variant=\"outline\" onclick={handleBack}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"mr-2\">\n <path d=\"m12 19-7-7 7-7\"/><path d=\"M19 12H5\"/>\n </svg>\n {backLabel}\n </Button>\n {#if onRetry}\n <Button onclick={onRetry}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"mr-2\">\n <path d=\"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\"/>\n <path d=\"M3 3v5h5\"/>\n <path d=\"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16\"/>\n <path d=\"M16 16h5v5\"/>\n </svg>\n Try Again\n </Button>\n {/if}\n </div>\n\n {#if identifier}\n <div class=\"mt-8 px-4 py-2 rounded-lg bg-muted/50 border border-border/50\">\n <code class=\"text-xs text-muted-foreground font-mono\">\n {identifier}\n </code>\n </div>\n {/if}\n</div>\n"],"names":["status","backLabel","defaults","displayTitle","displayDescription","handleBack","e","$$props","div","root","div_1","div_2","root_1","div_3","root_3","div_4","root_5","div_5","root_6","$$render","consequent_2","alternate","consequent_1","alternate_1","consequent","alternate_2","div_6","$.sibling","node","svg","root_7","$.append","$$anchor","svg_1","root_9","svg_2","root_11","svg_3","root_12","consequent_5","alternate_3","consequent_4","alternate_4","consequent_3","alternate_5","div_7","h2","p","div_8","Button","node_6","div_9","root_16","code"],"mappings":"i6GAAA,UAeQ,IAAAA,iBAAS,GAAG,EAIZC,oBAAY,SAAS,QAKnBC,EAAgE,CAClE,IAAG,CACC,MAAO,YACP,YAAa,2EAEjB,IAAG,CACC,MAAO,cACP,YAAa,mEAEjB,IAAG,CACC,MAAO,mBACP,YAAa,wEAIfC,iBAAiCD,EAASF,E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,CAAG,EAKH,IAAAG,IALAH,EAAG,CAAA,MAKHG,CAAG,EACCC,EAAMC,EAAA,2BAA4B7C,uDAI9BJ,EAAS,CAAA,CAAA,yDAGTgD,EAAMjB,EAAA,8HARdgB,CAAG,UAAHA,EAAG,CAAA,kBAqBCG,EAAGC,GAAA,EACCC,IADJF,CAAG,MACCE,EAAI,EAAA,IAAJA,CAAI,IADRF,CAAG,+BAAHA,CAAG,mCArHX3C,CAAG,eA4FuDL,CAAY,CAAA,QACbC,CAAkB,CAAA,QA7F3EI,CAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/BMae-b69.js b/backend/static/frontend/_app/immutable/chunks/CItL7JvW.js
similarity index 95%
rename from backend/static/frontend/_app/immutable/chunks/BMae-b69.js
rename to backend/static/frontend/_app/immutable/chunks/CItL7JvW.js
index a8a5e33c..f1b51488 100644
--- a/backend/static/frontend/_app/immutable/chunks/BMae-b69.js
+++ b/backend/static/frontend/_app/immutable/chunks/CItL7JvW.js
@@ -1 +1 @@
-import{p,i as I,r as k,s as K}from"./DMODTt3n.js";import{K as W,p as x,d as f,c as d,b as o,a as y,m as h,g as P,u as S,f as j,e as q,o as C,r as w}from"./B2WdN-7r.js";import{c as z}from"./BAcG0-U_.js";import{b as A,d as B}from"./DH0tcjsQ.js";import{c as D}from"./Btlz2xiW.js";import{c as E,b,m as F}from"./DWAABZDo.js";var G=j("<div><!></div>");function H(m,e){const n=W();x(e,!0);let v=p(e,"id",19,()=>E(n)),t=p(e,"ref",15,null),u=k(e,["$$slots","$$events","$$legacy","children","child","id","ref","value"]);const g=D.create({value:b(()=>e.value),id:b(()=>v()),ref:b(()=>t(),r=>t(r))}),i=S(()=>F(u,g.props));var c=f(),a=d(c);{var T=r=>{var s=f(),_=d(s);h(_,()=>e.child,()=>({props:P(i)})),o(r,s)},l=r=>{var s=G();A(s,()=>({...P(i)}));var _=q(s);h(_,()=>e.children??C),w(s),o(r,s)};I(a,r=>{e.child?r(T):r(l,!1)})}o(m,c),y()}function R(m,e){x(e,!0);let n=p(e,"ref",15,null),v=k(e,["$$slots","$$events","$$legacy","ref","class","children"]);var t=f(),u=d(t);{let g=S(()=>B("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e.class));z(u,()=>H,(i,c)=>{c(i,K({get class(){return P(g)}},()=>v,{get ref(){return n()},set ref(a){n(a)},children:(a,T)=>{var l=f(),r=d(l);h(r,()=>e.children??C),o(a,l)},$$slots:{default:!0}}))})}o(m,t),y()}export{R as T};
+import{p,i as I,r as k,s as K}from"./DMODTt3n.js";import{K as W,p as x,d as f,c as d,b as o,a as y,m as h,g as P,u as S,f as j,e as q,o as C,r as w}from"./B2WdN-7r.js";import{c as z}from"./BAcG0-U_.js";import{b as A,d as B}from"./DH0tcjsQ.js";import{c as D}from"./CC8KIeOw.js";import{c as E,b,m as F}from"./BDd6-VcB.js";var G=j("<div><!></div>");function H(m,e){const n=W();x(e,!0);let v=p(e,"id",19,()=>E(n)),t=p(e,"ref",15,null),u=k(e,["$$slots","$$events","$$legacy","children","child","id","ref","value"]);const g=D.create({value:b(()=>e.value),id:b(()=>v()),ref:b(()=>t(),r=>t(r))}),i=S(()=>F(u,g.props));var c=f(),a=d(c);{var T=r=>{var s=f(),_=d(s);h(_,()=>e.child,()=>({props:P(i)})),o(r,s)},l=r=>{var s=G();A(s,()=>({...P(i)}));var _=q(s);h(_,()=>e.children??C),w(s),o(r,s)};I(a,r=>{e.child?r(T):r(l,!1)})}o(m,c),y()}function R(m,e){x(e,!0);let n=p(e,"ref",15,null),v=k(e,["$$slots","$$events","$$legacy","ref","class","children"]);var t=f(),u=d(t);{let g=S(()=>B("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e.class));z(u,()=>H,(i,c)=>{c(i,K({get class(){return P(g)}},()=>v,{get ref(){return n()},set ref(a){n(a)},children:(a,T)=>{var l=f(),r=d(l);h(r,()=>e.children??C),o(a,l)},$$slots:{default:!0}}))})}o(m,t),y()}export{R as T};
diff --git a/backend/static/frontend/_app/immutable/chunks/BMae-b69.js.map b/backend/static/frontend/_app/immutable/chunks/CItL7JvW.js.map
similarity index 96%
rename from backend/static/frontend/_app/immutable/chunks/BMae-b69.js.map
rename to backend/static/frontend/_app/immutable/chunks/CItL7JvW.js.map
index 33081806..a355f541 100644
--- a/backend/static/frontend/_app/immutable/chunks/BMae-b69.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/CItL7JvW.js.map
@@ -1 +1 @@
-{"version":3,"file":"BMae-b69.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/tabs/components/tabs-content.svelte","../../../../../../src/lib/components/ui/tabs/tabs-content.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TabsContentProps } from \"../types.js\";\n\timport { TabsContentState } from \"../tabs.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tvalue,\n\t\t...restProps\n\t}: TabsContentProps = $props();\n\n\tconst contentState = TabsContentState.create({\n\t\tvalue: boxWith(() => value),\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { Tabs as TabsPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChild<TabsPrimitive.ContentProps> = $props();\n</script>\n\n<TabsPrimitive.Content\n\tbind:ref\n\tclass={cn(\n\t\t\"ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</TabsPrimitive.Content>\n"],"names":["uid","$.props_id","id","$.prop","$$props","createId","ref","restProps","$.rest_props","contentState","TabsContentState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","$0","$.derived","cn","TabsPrimitive_Content","$$anchor","$.spread_props","$$value"],"mappings":"yWAAA,OAMOA,EAAGC,EAAA,cAKRC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,EAASL,CAAG,CAAA,EACjBM,eAAgB,IAAI,EAEjBC,EAAAC,EAAAJ,EAAA,+EAGEK,EAAeC,EAAiB,OAAM,CAC3C,MAAOC,EAAO,IAAAP,EAAA,KAAA,EACd,GAAIO,EAAO,IAAOT,GAAE,EACpB,IAAKS,EAAO,IACLL,EAAG,EACRM,GAAON,EAAMM,CAAC,CAAA,IAIXC,QAAuBC,EAAWP,EAAWE,EAAa,KAAK,CAAA,+CAIpDM,EAAAC,EAAA,IAAAZ,EAAA,MAAA,KAAA,CAAA,QAAOS,CAAW,CAAA,EAAA,oBAElCI,EAAGC,EAAA,EAAHC,EAAAF,aAAQJ,CAAW,CAAA,EAAA,UAAnBI,CAAG,2BAAHA,CAAG,MAAHA,CAAG,4CALL,gBC3BA,SAKE,IAAAX,eAAgB,IAAI,EAGjBC,EAAAC,EAAAJ,EAAA,8EAMG,IAAAgB,EAAAC,EAAA,IAAAC,EACN,kIAAiIlB,EAAA,KAAA,CAAA,oBAHlImB,EAAcC,EAAAC,iCAMVlB,OALJ,KAAK,iBAAL,IAAKmB,EAAA,4GAHN","x_google_ignoreList":[0]}
\ No newline at end of file
+{"version":3,"file":"CItL7JvW.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/tabs/components/tabs-content.svelte","../../../../../../src/lib/components/ui/tabs/tabs-content.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { TabsContentProps } from \"../types.js\";\n\timport { TabsContentState } from \"../tabs.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tvalue,\n\t\t...restProps\n\t}: TabsContentProps = $props();\n\n\tconst contentState = TabsContentState.create({\n\t\tvalue: boxWith(() => value),\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { Tabs as TabsPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChild<TabsPrimitive.ContentProps> = $props();\n</script>\n\n<TabsPrimitive.Content\n\tbind:ref\n\tclass={cn(\n\t\t\"ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</TabsPrimitive.Content>\n"],"names":["uid","$.props_id","id","$.prop","$$props","createId","ref","restProps","$.rest_props","contentState","TabsContentState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","$0","$.derived","cn","TabsPrimitive_Content","$$anchor","$.spread_props","$$value"],"mappings":"yWAAA,OAMOA,EAAGC,EAAA,cAKRC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,EAASL,CAAG,CAAA,EACjBM,eAAgB,IAAI,EAEjBC,EAAAC,EAAAJ,EAAA,+EAGEK,EAAeC,EAAiB,OAAM,CAC3C,MAAOC,EAAO,IAAAP,EAAA,KAAA,EACd,GAAIO,EAAO,IAAOT,GAAE,EACpB,IAAKS,EAAO,IACLL,EAAG,EACRM,GAAON,EAAMM,CAAC,CAAA,IAIXC,QAAuBC,EAAWP,EAAWE,EAAa,KAAK,CAAA,+CAIpDM,EAAAC,EAAA,IAAAZ,EAAA,MAAA,KAAA,CAAA,QAAOS,CAAW,CAAA,EAAA,oBAElCI,EAAGC,EAAA,EAAHC,EAAAF,aAAQJ,CAAW,CAAA,EAAA,UAAnBI,CAAG,2BAAHA,CAAG,MAAHA,CAAG,4CALL,gBC3BA,SAKE,IAAAX,eAAgB,IAAI,EAGjBC,EAAAC,EAAAJ,EAAA,8EAMG,IAAAgB,EAAAC,EAAA,IAAAC,EACN,kIAAiIlB,EAAA,KAAA,CAAA,oBAHlImB,EAAcC,EAAAC,iCAMVlB,OALJ,KAAK,iBAAL,IAAKmB,EAAA,4GAHN","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/CKSCW-4I.js b/backend/static/frontend/_app/immutable/chunks/CKSCW-4I.js
new file mode 100644
index 00000000..c5984bce
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/CKSCW-4I.js
@@ -0,0 +1 @@
+import{p as h,i as C,r as x,l as b,s as g}from"./DMODTt3n.js";import{I as M,s as P}from"./CQWqWi6p.js";import{K as D,p as N,d as f,c as p,b as c,a as I,m as $,g as _,u as S,f as T,e as V,o as k,r as H}from"./B2WdN-7r.js";import{c as K}from"./BAcG0-U_.js";import{b as W,d as j}from"./DH0tcjsQ.js";import{M as q}from"./CjLH05gQ.js";import{c as A,b as y,m as B}from"./BDd6-VcB.js";var E=T("<div><!></div>");function F(l,e){const a=D();N(e,!0);let t=h(e,"ref",15,null),s=h(e,"id",19,()=>A(a)),i=x(e,["$$slots","$$events","$$legacy","ref","id","child","children"]);const r=q.create({id:y(()=>s()),ref:y(()=>t(),n=>t(n))}),o=S(()=>B(i,r.props));var m=f(),u=p(m);{var w=n=>{var d=f(),v=p(d);$(v,()=>e.child,()=>({props:_(o)})),c(n,d)},z=n=>{var d=E();W(d,()=>({..._(o)}));var v=V(d);$(v,()=>e.children??k),H(d),c(n,d)};C(u,n=>{e.child?n(w):n(z,!1)})}c(l,m),I()}function X(l,e){const a=b(e,["children","$$slots","$$events","$$legacy"]);const t=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]];M(l,g({name:"circle-alert"},()=>a,{get iconNode(){return t},children:(s,i)=>{var r=f(),o=p(r);P(o,e,"default",{},null),c(s,r)},$$slots:{default:!0}}))}function Y(l,e){const a=b(e,["children","$$slots","$$events","$$legacy"]);const t=[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];M(l,g({name:"trash-2"},()=>a,{get iconNode(){return t},children:(s,i)=>{var r=f(),o=p(r);P(o,e,"default",{},null),c(s,r)},$$slots:{default:!0}}))}function Z(l,e){N(e,!0);let a=h(e,"ref",15,null),t=x(e,["$$slots","$$events","$$legacy","ref","class"]);var s=f(),i=p(s);{let r=S(()=>j("bg-border -mx-1 my-1 h-px",e.class));K(i,()=>F,(o,m)=>{m(o,g({"data-slot":"dropdown-menu-separator",get class(){return _(r)}},()=>t,{get ref(){return a()},set ref(u){a(u)}}))})}c(l,s),I()}export{X as C,Z as D,Y as T};
diff --git a/backend/static/frontend/_app/immutable/chunks/CKSCW-4I.js.map b/backend/static/frontend/_app/immutable/chunks/CKSCW-4I.js.map
new file mode 100644
index 00000000..4ae75711
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/CKSCW-4I.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"CKSCW-4I.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-separator.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/circle-alert.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/trash-2.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuSeparatorProps } from \"../types.js\";\n\timport { MenuSeparatorState } from \"../menu.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tchild,\n\t\tchildren,\n\t\t...restProps\n\t}: MenuSeparatorProps = $props();\n\n\tconst separatorState = MenuSeparatorState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, separatorState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"10\" }], [\"line\", { \"x1\": \"12\", \"x2\": \"12\", \"y1\": \"8\", \"y2\": \"12\" }], [\"line\", { \"x1\": \"12\", \"x2\": \"12.01\", \"y1\": \"16\", \"y2\": \"16\" }]];\n/**\n * @component @name CircleAlert\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KICA8bGluZSB4MT0iMTIiIHgyPSIxMiIgeTE9IjgiIHkyPSIxMiIgLz4KICA8bGluZSB4MT0iMTIiIHgyPSIxMi4wMSIgeTE9IjE2IiB5Mj0iMTYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/circle-alert\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"circle-alert\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M10 11v6\" }], [\"path\", { \"d\": \"M14 11v6\" }], [\"path\", { \"d\": \"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\" }], [\"path\", { \"d\": \"M3 6h18\" }], [\"path\", { \"d\": \"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\" }]];\n/**\n * @component @name Trash2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTAgMTF2NiIgLz4KICA8cGF0aCBkPSJNMTQgMTF2NiIgLz4KICA8cGF0aCBkPSJNMTkgNnYxNGEyIDIgMCAwIDEtMiAySDdhMiAyIDAgMCAxLTItMlY2IiAvPgogIDxwYXRoIGQ9Ik0zIDZoMTgiIC8+CiAgPHBhdGggZD0iTTggNlY0YTIgMiAwIDAgMSAyLTJoNGEyIDIgMCAwIDEgMiAydjIiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/trash-2\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"trash-2\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: DropdownMenuPrimitive.SeparatorProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Separator\n\tbind:ref\n\tdata-slot=\"dropdown-menu-separator\"\n\tclass={cn(\"bg-border -mx-1 my-1 h-px\", className)}\n\t{...restProps}\n/>\n"],"names":["uid","$.props_id","ref","id","$.prop","$$props","createId","restProps","$.rest_props","separatorState","MenuSeparatorState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","$0","$.derived","cn","DropdownMenuPrimitive_Separator","$$value"],"mappings":"maAAA,OAMOA,EAAGC,EAAA,UAGR,IAAAC,eAAgB,IAAI,EACpBC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,EAASN,CAAG,CAAA,EAGdO,EAAAC,EAAAH,EAAA,uEAGEI,EAAiBC,EAAmB,OAAM,CAC/C,GAAIC,EAAO,IAAOR,GAAE,EACpB,IAAKQ,EAAO,IACLT,EAAG,EACRU,GAAOV,EAAMU,CAAC,CAAA,IAIXC,QAAuBC,EAAWP,EAAWE,EAAe,KAAK,CAAA,+CAItDM,EAAAC,EAAA,IAAAX,EAAA,MAAA,KAAA,CAAA,QAAOQ,CAAW,CAAA,EAAA,oBAElCI,EAAGC,EAAA,EAAHC,EAAAF,aAAQJ,CAAW,CAAA,EAAA,UAAnBI,CAAG,2BAAHA,CAAG,MAAHA,CAAG,4CALL,gBCzBA,iEA6CMG,EAAQ,EAAK,SAAQ,CAAI,GAAM,KAAM,GAAM,KAAM,EAAK,KAAI,EAAM,CAAA,OAAM,CAAI,GAAM,KAAM,GAAM,KAAM,GAAM,IAAK,GAAM,KAAI,GAAM,OAAU,CAAA,GAAM,KAAM,GAAM,QAAS,GAAM,KAAM,GAAM,IAAI,IAc7LC,EAAIC,EAAAC,EAAA,CAAA,KAAA,cAAA,EAAA,IAAAC,EAAA,uBAA4CJ,6FAFjD,gBCzDA,iEA6CMA,EAAQ,EAAK,OAAM,CAAI,EAAK,WAAU,GAAM,OAAM,CAAI,EAAK,WAAU,GAAM,OAAM,CAAI,EAAK,2CAA0C,GAAM,OAAM,CAAI,EAAK,UAAS,GAAM,OAAM,CAAI,EAAK,wCAAwC,CAAA,GAcpOC,EAAIC,EAAAC,EAAA,CAAA,KAAA,SAAA,EAAA,IAAAC,EAAA,uBAAuCJ,6FAF5C,gBCzDA,SAKE,IAAAlB,eAAgB,IAAI,EAEjBK,EAAAC,EAAAH,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAoB,EAAAC,EAAA,IAAAC,EAAG,4BAA2BtB,EAAA,KAAA,CAAA,oBAHrCuB,EAAsBN,EAAAC,uEAIlBhB,OAHJ,KAAK,iBAAL,IAAKsB,EAAA,sBAHN","x_google_ignoreList":[0,1,2]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/CM0V6MFA.js b/backend/static/frontend/_app/immutable/chunks/CM0V6MFA.js
new file mode 100644
index 00000000..66d4acf8
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/CM0V6MFA.js
@@ -0,0 +1 @@
+import{s as n,r as c}from"./DMODTt3n.js";import{p as i,d as l,c as d,m,o as f,b as h,a as u}from"./B2WdN-7r.js";import{I as $}from"./Bv_PbELb.js";function I(o,a){i(a,!0);let e=c(a,["$$slots","$$events","$$legacy"]);const t=[["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"}],["path",{d:"m15 5 4 4"}]];$(o,n({name:"pencil"},()=>e,{get iconNode(){return t},children:(r,_)=>{var s=l(),p=d(s);m(p,()=>a.children??f),h(r,s)},$$slots:{default:!0}})),u()}export{I as P};
diff --git a/backend/static/frontend/_app/immutable/chunks/CM0V6MFA.js.map b/backend/static/frontend/_app/immutable/chunks/CM0V6MFA.js.map
new file mode 100644
index 00000000..9d3544cc
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/CM0V6MFA.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"CM0V6MFA.js","sources":["../../../../../../node_modules/@lucide/svelte/dist/icons/pencil.svelte"],"sourcesContent":["<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"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\" }], [\"path\", { \"d\": \"m15 5 4 4\" }]];\n/**\n * @component @name Pencil\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEuMTc0IDYuODEyYTEgMSAwIDAgMC0zLjk4Ni0zLjk4N0wzLjg0MiAxNi4xNzRhMiAyIDAgMCAwLS41LjgzbC0xLjMyMSA0LjM1MmEuNS41IDAgMCAwIC42MjMuNjIybDQuMzUzLTEuMzJhMiAyIDAgMCAwIC44My0uNDk3eiIgLz4KICA8cGF0aCBkPSJtMTUgNSA0IDQiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/pencil\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"pencil\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n"],"names":["props","$.rest_props","$$props","iconNode","Icon","$.noop"],"mappings":"iKAAA,aA6CIA,EAAKC,EAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,EAAQ,EAAK,QAAU,EAAK,sIAAwI,OAAM,CAAI,EAAK,WAAW,CAAA,GAcnMC,0BAAuBJ,EAAK,uBAAYG,+CACxB,UAAQE,CAAA,qCAHzB","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/CRXNgefC.js b/backend/static/frontend/_app/immutable/chunks/CRXNgefC.js
new file mode 100644
index 00000000..d7140f47
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/CRXNgefC.js
@@ -0,0 +1 @@
+import{p as C,i as v}from"./DMODTt3n.js";import{o as I}from"./Dwk6gGSK.js";import{p as J,h as z,v as y,d as B,c as f,b as s,a as K,i as u,g as r,f as M,e as N,w as h,s as L,k as Q,l as R,r as T}from"./B2WdN-7r.js";import{e as U,i as W}from"./CMyj8Fzw.js";import{B as X}from"./C1aqwstW.js";var Y=h('<svg class="size-4" viewBox="0 0 24 24" aria-hidden="true"><path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"></path><path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"></path><path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"></path><path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"></path></svg>'),Z=h('<svg class="size-4" viewBox="0 0 24 24" aria-hidden="true" fill="currentColor"><path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.1.79-.25.79-.56v-2.16c-3.2.7-3.87-1.37-3.87-1.37-.52-1.32-1.27-1.67-1.27-1.67-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.75 2.69 1.24 3.34.95.1-.74.4-1.24.72-1.53-2.55-.29-5.24-1.27-5.24-5.66 0-1.25.45-2.27 1.18-3.07-.12-.29-.51-1.46.11-3.05 0 0 .96-.31 3.15 1.17.91-.25 1.89-.38 2.86-.39.97 0 1.95.13 2.86.39 2.18-1.48 3.14-1.17 3.14-1.17.62 1.59.23 2.76.11 3.05.74.8 1.18 1.82 1.18 3.07 0 4.4-2.69 5.36-5.25 5.65.41.36.78 1.07.78 2.15v3.18c0 .31.21.67.8.56C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5z"></path></svg>'),t1=h("<!> ",1),a1=M('<div class="flex items-center gap-3 my-2"><div class="flex-1 border-t"></div> <p class="text-xs text-muted-foreground">or</p> <div class="flex-1 border-t"></div></div>'),e1=M('<div class="flex flex-col gap-2"><!> <!></div>');function v1(k,c){J(c,!0);let p=C(c,"passwordLoginEnabled",15,!0),g=C(c,"loaded",15,!1),l=z(y([])),m=z(y({}));I(async()=>{try{const t=await fetch("/api/auth/providers");if(t.ok){const a=await t.json();u(l,a.providers||[],!0),u(m,a.providerLabels||{},!0),p(a.passwordLoginEnabled??!0)}}catch{u(l,[],!0)}finally{g(!0)}});function E(t){window.location.href=`/api/auth/start/${t}`}function H(t){if(t==="google")return"Continue with Google";if(t==="github")return"Continue with GitHub";const a=r(m)[t];return t==="oidc"?`Continue with ${a??"SSO"}`:`Continue with ${a??t}`}var _=B(),O=f(_);{var A=t=>{var a=e1(),b=N(a);U(b,17,()=>r(l),W,(i,o)=>{X(i,{type:"button",variant:"outline",class:"w-full",onclick:()=>E(r(o)),children:(S,s1)=>{var w=t1(),x=f(w);{var j=e=>{var n=Y();s(e,n)},P=e=>{var n=B(),$=f(n);{var q=d=>{var D=Z();s(d,D)};v($,d=>{r(o)==="github"&&d(q)},!0)}s(e,n)};v(x,e=>{r(o)==="google"?e(j):e(P,!1)})}var V=L(x,1,!0);Q(e=>R(V,e),[()=>H(r(o))]),s(S,w)},$$slots:{default:!0}})});var F=L(b,2);{var G=i=>{var o=a1();s(i,o)};v(F,i=>{p()&&i(G)})}T(a),s(t,a)};v(O,t=>{g()&&r(l).length>0&&t(A)})}s(k,_),K()}export{v1 as O};
diff --git a/backend/static/frontend/_app/immutable/chunks/CRXNgefC.js.map b/backend/static/frontend/_app/immutable/chunks/CRXNgefC.js.map
new file mode 100644
index 00000000..a6c16347
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/CRXNgefC.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"CRXNgefC.js","sources":["../../../../../../src/lib/components/oauth-buttons.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { Button } from \"$lib/components/ui/button\";\n import { onMount } from 'svelte';\n\n let { passwordLoginEnabled = $bindable(true), loaded = $bindable(false) } = $props();\n\n let providers = $state<string[]>([]);\n let providerLabels = $state<Record<string, string>>({});\n\n onMount(async () => {\n try {\n const response = await fetch('/api/auth/providers');\n if (response.ok) {\n const data = await response.json();\n providers = data.providers || [];\n providerLabels = data.providerLabels || {};\n passwordLoginEnabled = data.passwordLoginEnabled ?? true;\n }\n } catch {\n providers = [];\n } finally {\n loaded = true;\n }\n });\n\n function start(provider: string) {\n window.location.href = `/api/auth/start/${provider}`;\n }\n\n function getLabel(provider: string): string {\n if (provider === 'google') return 'Continue with Google';\n if (provider === 'github') return 'Continue with GitHub';\n const custom = providerLabels[provider];\n if (provider === 'oidc') return `Continue with ${custom ?? 'SSO'}`;\n return `Continue with ${custom ?? provider}`;\n }\n</script>\n\n{#if loaded && providers.length > 0}\n <div class=\"flex flex-col gap-2\">\n {#each providers as provider}\n <Button\n type=\"button\"\n variant=\"outline\"\n class=\"w-full\"\n onclick={() => start(provider)}\n >\n {#if provider === 'google'}\n <svg class=\"size-4\" viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path fill=\"#4285F4\" d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z\" />\n <path fill=\"#34A853\" d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\" />\n <path fill=\"#FBBC05\" d=\"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z\" />\n <path fill=\"#EA4335\" d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\" />\n </svg>\n {:else if provider === 'github'}\n <svg class=\"size-4\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" fill=\"currentColor\">\n <path d=\"M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.1.79-.25.79-.56v-2.16c-3.2.7-3.87-1.37-3.87-1.37-.52-1.32-1.27-1.67-1.27-1.67-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.75 2.69 1.24 3.34.95.1-.74.4-1.24.72-1.53-2.55-.29-5.24-1.27-5.24-5.66 0-1.25.45-2.27 1.18-3.07-.12-.29-.51-1.46.11-3.05 0 0 .96-.31 3.15 1.17.91-.25 1.89-.38 2.86-.39.97 0 1.95.13 2.86.39 2.18-1.48 3.14-1.17 3.14-1.17.62 1.59.23 2.76.11 3.05.74.8 1.18 1.82 1.18 3.07 0 4.4-2.69 5.36-5.25 5.65.41.36.78 1.07.78 2.15v3.18c0 .31.21.67.8.56C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5z\" />\n </svg>\n {/if}\n {getLabel(provider)}\n </Button>\n {/each}\n {#if passwordLoginEnabled}\n <div class=\"flex items-center gap-3 my-2\">\n <div class=\"flex-1 border-t\"></div>\n <p class=\"text-xs text-muted-foreground\">or</p>\n <div class=\"flex-1 border-t\"></div>\n </div>\n {/if}\n </div>\n{/if}\n"],"names":["passwordLoginEnabled","loaded","providers","$.state","$.proxy","providerLabels","onMount","response","data","start","provider","getLabel","custom","$.get","div","root_1","$.each","node_1","Button","$$anchor","svg","root_4","svg_1","root_6","$$render","consequent_1","consequent","alternate","$.template_effect","$0","$.set_text","text","div_1","root_7","consequent_2","consequent_3"],"mappings":"26DAAA,SAIU,IAAAA,gCAAiC,EAAI,EAAGC,kBAAmB,EAAK,EAElEC,EAAYC,EAAMC,EAAA,CAAA,CAAA,CAAA,EAClBC,EAAiBF,EAAMC,EAAA,CAAA,CAAA,CAAA,EAE3BE,EAAO,SAAa,CACZ,GAAA,OACMC,EAAQ,MAAS,MAAM,qBAAqB,KAC9CA,EAAS,GAAI,OACPC,EAAI,MAASD,EAAS,KAAI,IAChCL,EAAYM,EAAK,WAAS,CAAA,EAAA,EAAA,IAC1BH,EAAiBG,EAAK,gBAAc,CAAA,EAAA,EAAA,EACpCR,EAAuBQ,EAAK,sBAAwB,EAAI,CAC5D,CACJ,MAAQ,GACJN,EAAS,CAAA,EAAA,EAAA,CACb,QAAC,CACGD,EAAS,EAAI,CACjB,CACJ,CAAC,WAEQQ,EAAMC,EAAkB,CAC7B,OAAO,SAAS,wBAA0BA,CAAQ,EACtD,UAESC,EAASD,EAA0B,IACpCA,IAAa,SAAQ,MAAS,0BAC9BA,IAAa,SAAQ,MAAS,6BAC5BE,EAAMC,EAAGR,CAAc,EAACK,CAAQ,EAClC,OAAAA,IAAa,OAAM,iBAA0BE,GAAU,KAAK,GACxC,iBAAAA,GAAUF,CAAQ,EAC9C,iCAICI,EAAGC,GAAA,MAAHD,CAAG,EACOE,EAAAC,EAAA,GAAA,IAAAJ,EAAAX,CAAS,OAAIQ,IAAQ,CACvBQ,EAAAC,EAAA,gDAIkB,QAAA,IAAAV,IAAMC,CAAQ,CAAA,qDAGxBU,EAAGC,EAAA,MAAHD,CAAG,yCAOHE,EAAGC,EAAA,MAAHD,CAAG,WADET,EAAAH,CAAQ,IAAK,UAAQc,EAAAC,CAAA,uBAP1BZ,EAAAH,CAAQ,IAAK,SAAQc,EAAAE,CAAA,EAAAF,EAAAG,EAAA,EAAA,oBAYzBC,EAAAC,GAAAC,EAAAC,EAAAF,CAAA,EAAA,CAAA,IAAAlB,IAASD,CAAQ,CAAA,CAAA,CAAA,+DAIrBsB,EAAGC,GAAA,MAAHD,CAAG,WADHhC,EAAoB,GAAAwB,EAAAU,CAAA,MAvB5BpB,CAAG,MAAHA,CAAG,WADHb,EAAM,GAAAY,EAAIX,CAAS,EAAC,OAAS,GAACsB,EAAAW,CAAA,cAFnC"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/CAQEdoSh.js b/backend/static/frontend/_app/immutable/chunks/CjLH05gQ.js
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/CAQEdoSh.js
rename to backend/static/frontend/_app/immutable/chunks/CjLH05gQ.js
index a6580164..994a8c0f 100644
--- a/backend/static/frontend/_app/immutable/chunks/CAQEdoSh.js
+++ b/backend/static/frontend/_app/immutable/chunks/CjLH05gQ.js
@@ -1 +1 @@
-import{i as kt,p as b,s as Oe,r as oe}from"./DMODTt3n.js";import{B as pr,H as mr,br as wr,G as br,J as vr,h as P,bs as Xe,ak as yr,g as f,i as m,bt as Pt,v as Dt,bu as mn,b9 as M,_ as xr,Z as je,a1 as Sr,aG as Ar,F as B,C as Or,u as A,A as Tr,d as N,c as R,b as D,m as j,o as Z,p as J,Y as Cr,a as Q,a0 as Er,a3 as Pr,aM as wn,f as Fr,s as Mr}from"./B2WdN-7r.js";import{n as Rr,B as Dr,o as bn,b as v,p as Ir,t as kr,q as Nr,r as Lr,u as se,l as xt,d as Br,a as ut,g as Te,e as vn,h as Ce,m as ae,s as ct,v as Wr,w as _r,j as Kr}from"./DWAABZDo.js";import{o as Vr}from"./Dwk6gGSK.js";function Hr(e,t,n){pr&&mr();var r=new vr(e),i=!wr();br(()=>{var s=t();i&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}class zr extends Map{#t=new Map;#e=P(0);#n=P(0);#r=Xe||-1;constructor(t){if(super(),t){for(var[n,r]of t)super.set(n,r);this.#n.v=super.size}}#i(t){return Xe===this.#r?P(t):yr(t)}has(t){var n=this.#t,r=n.get(t);if(r===void 0){var i=super.get(t);if(i!==void 0)r=this.#i(0),n.set(t,r);else return f(this.#e),!1}return f(r),!0}forEach(t,n){this.#o(),super.forEach(t,n)}get(t){var n=this.#t,r=n.get(t);if(r===void 0){var i=super.get(t);if(i!==void 0)r=this.#i(0),n.set(t,r);else{f(this.#e);return}}return f(r),super.get(t)}set(t,n){var r=this.#t,i=r.get(t),s=super.get(t),o=super.set(t,n),a=this.#e;if(i===void 0)i=this.#i(0),r.set(t,i),m(this.#n,super.size),Pt(a);else if(s!==n){Pt(i);var c=a.reactions===null?null:new Set(a.reactions),u=c===null||!i.reactions?.every(d=>c.has(d));u&&Pt(a)}return o}delete(t){var n=this.#t,r=n.get(t),i=super.delete(t);return r!==void 0&&(n.delete(t),m(this.#n,super.size),m(r,-1),Pt(this.#e)),i}clear(){if(super.size!==0){super.clear();var t=this.#t;m(this.#n,0);for(var n of t.values())m(n,-1);Pt(this.#e),t.clear()}}#o(){f(this.#e);var t=this.#t;if(this.#n.v!==t.size){for(var n of super.keys())if(!t.has(n)){var r=this.#i(0);t.set(n,r)}}for([,r]of this.#t)f(r)}keys(){return f(this.#e),super.keys()}values(){return this.#o(),super.values()}entries(){return this.#o(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return f(this.#n),super.size}}function yt(e){let t=P(Dt(e));return{[Dr]:!0,[Rr]:!0,get current(){return f(t)},set current(n){m(t,n,!0)}}}yt.from=bn;yt.with=v;yt.flatten=Ir;yt.readonly=kr;yt.isBox=Nr;yt.isWritableBox=Lr;const yn=typeof window<"u"?window:void 0;function Ur(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Yr{#t;#e;constructor(t={}){const{window:n=yn,document:r=n?.document}=t;n!==void 0&&(this.#t=r,this.#e=mn(i=>{const s=M(n,"focusin",i),o=M(n,"focusout",i);return()=>{s(),o()}}))}get current(){return this.#e?.(),this.#t?Ur(this.#t):null}}new Yr;function Gr(e){return typeof e=="function"}class mt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return xr(this.#e)}get(){const t=je(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const n=je(this.#e);return n===void 0?t:n}set(t){return Sr(this.#e,t)}}function qr(e,t){switch(e){case"post":B(t);break;case"pre":Ar(t);break}}function xn(e,t,n,r={}){const{lazy:i=!1}=r;let s=!i,o=Array.isArray(e)?[]:void 0;qr(t,()=>{const a=Array.isArray(e)?e.map(u=>u()):e();if(!s){s=!0,o=a;return}const c=Or(()=>n(a,o));return o=a,c})}function _(e,t,n){xn(e,"post",t,n)}function Xr(e,t,n){xn(e,"pre",t,n)}_.pre=Xr;function Ze(e){return Gr(e)?e():e}class jr{#t={width:0,height:0};#e=!1;#n;#r;#i;#o=A(()=>(f(this.#s)?.(),this.getSize().width));#a=A(()=>(f(this.#s)?.(),this.getSize().height));#s=A(()=>{const t=Ze(this.#r);if(t)return mn(n=>{if(!this.#i)return;const r=new this.#i.ResizeObserver(i=>{this.#e=!0;for(const s of i){const o=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(o)?o:[o];this.#t.width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),this.#t.height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}n()});return r.observe(t),()=>{this.#e=!1,r.disconnect()}})});constructor(t,n={box:"border-box"}){this.#i=n.window??yn,this.#n=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Ze(this.#r);if(!t||!this.#i)return;const n=t.offsetWidth,r=t.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const i=this.#i.getComputedStyle(t),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),o=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),a=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),c=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),u=n-s-a,d=r-o-c;return{width:u,height:d}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return f(this.#s)?.(),this.getSize()}get width(){return f(this.#o)}get height(){return f(this.#a)}}function Tt(e){B(()=>()=>{e()})}function Zr(e,t){return setTimeout(t,e)}function nt(e){Tr().then(e)}const Jr=1,Qr=9,$r=11;function me(e){return se(e)&&e.nodeType===Jr&&typeof e.nodeName=="string"}function Sn(e){return se(e)&&e.nodeType===Qr}function ti(e){return se(e)&&e.constructor?.name==="VisualViewport"}function ei(e){return se(e)&&e.nodeType!==void 0}function An(e){return ei(e)&&e.nodeType===$r&&"host"in e}function ni(e,t){if(!e||!t||!me(e)||!me(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&An(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function _t(e){return Sn(e)?e:ti(e)?e.document:e?.ownerDocument??document}function Ee(e){return An(e)?Ee(e.host):Sn(e)?e.defaultView??window:me(e)?e.ownerDocument?.defaultView??window:window}function ri(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Pe{element;#t=A(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return f(this.#t)}set root(t){m(this.#t,t)}constructor(t){typeof t=="function"?this.element=v(t):this.element=t}getDocument=()=>_t(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>ri(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,n)=>this.getWindow().setTimeout(t,n);clearTimeout=t=>this.getWindow().clearTimeout(t)}const Is="Alt",Nt="ArrowDown",Kt="ArrowLeft",Vt="ArrowRight",qt="ArrowUp",ks="Backspace",Ns="CapsLock",Ls="Control",On="End",Tn="Enter",ii="Escape",Bs="F1",Ws="F10",_s="F11",Ks="F12",Vs="F2",Hs="F3",zs="F4",Us="F5",Ys="F6",Gs="F7",qs="F8",Xs="F9",Cn="Home",js="Meta",oi="PageDown",si="PageUp",Zs="Shift",ce=" ",ai="Tab";function ci(e){return window.getComputedStyle(e).getPropertyValue("direction")}function ui(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?Kt:Vt,vertical:Nt}[t]}function li(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?Vt:Kt,vertical:qt}[t]}function di(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:ui(e,t),prevKey:li(e,t)}}const En=typeof document<"u",Je=fi();function fi(){return En&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function ot(e){return e instanceof HTMLElement}function we(e){return e instanceof Element}function Pn(e){return e instanceof Element||e instanceof SVGElement}function Js(e){return e.matches(":focus-visible")}function hi(e){return e!==null}function gi(e){return e instanceof HTMLInputElement&&"select"in e}class pi{#t;#e=yt(null);constructor(t){this.#t=t}getCandidateNodes(){return this.#t.rootNode.current?this.#t.candidateSelector?Array.from(this.#t.rootNode.current.querySelectorAll(this.#t.candidateSelector)):this.#t.candidateAttr?Array.from(this.#t.rootNode.current.querySelectorAll(`[${this.#t.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const t=this.getCandidateNodes();t.length&&t[0]?.focus()}handleKeydown(t,n,r=!1){const i=this.#t.rootNode.current;if(!i||!t)return;const s=this.getCandidateNodes();if(!s.length)return;const o=s.indexOf(t),a=ci(i),{nextKey:c,prevKey:u}=di(a,this.#t.orientation.current),d=this.#t.loop.current,l={[c]:o+1,[u]:o-1,[Cn]:0,[On]:s.length-1};if(r){const p=c===Nt?Vt:Nt,w=u===qt?Kt:qt;l[p]=o+1,l[w]=o-1}let g=l[n.key];if(g===void 0)return;n.preventDefault(),g<0&&d?g=s.length-1:g===s.length&&d&&(g=0);const h=s[g];if(h)return h.focus(),this.#e.current=h.id,this.#t.onCandidateFocus?.(h),h}getTabIndex(t){const n=this.getCandidateNodes(),r=this.#e.current!==null;return t&&!r&&n[0]===t?(this.#e.current=t.id,0):t?.id===this.#e.current?0:-1}setCurrentTabStopId(t){this.#e.current=t}focusCurrentTabStop(){const t=this.#e.current;if(!t)return;const n=this.#t.rootNode.current?.querySelector(`#${t}`);!n||!ot(n)||n.focus()}}class mi{#t;#e=null;constructor(t){this.#t=t,Tt(()=>this.#n())}#n(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#n();const n=this.#t.ref.current;if(n){if(typeof n.getAnimations!="function"){this.#r(t);return}this.#e=window.requestAnimationFrame(()=>{const r=n.getAnimations();if(r.length===0){this.#r(t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{this.#r(t)})})}}#r(t){const n=()=>{t()};this.#t.afterTick?nt(n):n()}}class wi{#t;#e;#n;#r=P(!1);constructor(t){this.#t=t,m(this.#r,t.open.current,!0),this.#e=t.enabled??!0,this.#n=new mi({ref:this.#t.ref,afterTick:this.#t.open}),_(()=>this.#t.open.current,n=>{n&&m(this.#r,!0),this.#e&&this.#n.run(()=>{n===this.#t.open.current&&(this.#t.open.current||m(this.#r,!1),this.#t.onComplete?.())})})}get shouldRender(){return f(this.#r)}}function W(){}function bi(e,t){var n=N(),r=R(n);Hr(r,()=>t.children,i=>{var s=N(),o=R(s);j(o,()=>t.children??Z),D(i,s)}),D(e,n)}const vi=new mt("BitsConfig");function yi(){const e=new xi(null,{});return vi.getOr(e).opts}class xi{opts;constructor(t,n){const r=Si(t,n);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function Si(e,t){return n=>v(()=>{const i=n(t)?.current;if(i!==void 0)return i;if(e!==null)return n(e.opts)?.current})}function Fn(e,t){return n=>{const r=yi();return v(()=>{const i=n();if(i!==void 0)return i;const s=e(r).current;return s!==void 0?s:t})}}const Qs=Fn(e=>e.defaultLocale,"en"),Ai=Fn(e=>e.defaultPortalTo,"body");function $s(e,t){J(t,!0);const n=Ai(()=>t.to),r=Cr();let i=A(s);function s(){if(!En||t.disabled)return null;let l=null;return typeof n.current=="string"?l=document.querySelector(n.current):l=n.current,l}let o;function a(){o&&(Pr(o),o=null)}_([()=>f(i),()=>t.disabled],([l,g])=>{if(!l||g){a();return}return o=Er(bi,{target:l,props:{children:t.children},context:r}),()=>{a()}});var c=N(),u=R(c);{var d=l=>{var g=N(),h=R(g);j(h,()=>t.children??Z),D(l,g)};kt(u,l=>{t.disabled&&l(d)})}D(e,c),Q()}class Oi{eventName;options;constructor(t,n={bubbles:!0,cancelable:!0}){this.eventName=t,this.options=n}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,n){const r=this.createEvent(n);return t.dispatchEvent(r),r}listen(t,n,r){const i=s=>{n(s)};return M(t,this.eventName,i,r)}}function Qe(e,t=500){let n=null;const r=(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...i)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Mn(e,t){return e===t||e.contains(t)}function Rn(e){return e?.ownerDocument??document}function Ti(e,t){const{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}const be=[Tn,ce],Ci=[Nt,si,Cn],Dn=[qt,oi,On],Ei=[...Ci,...Dn],Pi={ltr:[...be,Vt],rtl:[...be,Kt]},ta={ltr:[Kt],rtl:[Vt]};function Xt(e){return e.pointerType==="mouse"}function Fi(e,{select:t=!1}={}){if(!e||!e.focus)return;const n=_t(e);if(n.activeElement===e)return;const r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&gi(e)&&t&&e.select()}function Mi(e,{select:t=!1}={},n){const r=n();for(const i of e)if(Fi(i,{select:t}),n()!==r)return!0}var In=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],jt=In.join(","),kn=typeof Element>"u",bt=kn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Zt=!kn&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Lt=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=i===""||i==="true",o=s||n&&t&&Lt(t.parentNode);return o},Ri=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Nn=function(t,n,r){if(Lt(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(jt));return n&&bt.call(t,jt)&&i.unshift(t),i=i.filter(r),i},Jt=function(t,n,r){for(var i=[],s=Array.from(t);s.length;){var o=s.shift();if(!Lt(o,!1))if(o.tagName==="SLOT"){var a=o.assignedElements(),c=a.length?a:o.children,u=Jt(c,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var d=bt.call(o,jt);d&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var l=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),g=!Lt(l,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(l&&g){var h=Jt(l===!0?o.children:l.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:o,candidates:h})}else s.unshift.apply(s,o.children)}}return i},Ln=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Bn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Ri(t))&&!Ln(t)?0:t.tabIndex},Di=function(t,n){var r=Bn(t);return r<0&&n&&!Ln(t)?0:r},Ii=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Wn=function(t){return t.tagName==="INPUT"},ki=function(t){return Wn(t)&&t.type==="hidden"},Ni=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Li=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Bi=function(t){if(!t.name)return!0;var n=t.form||Zt(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var s=Li(i,t.form);return!s||s===t},Wi=function(t){return Wn(t)&&t.type==="radio"},_i=function(t){return Wi(t)&&!Bi(t)},Ki=function(t){var n,r=t&&Zt(t),i=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var o,a,c;for(s=!!((o=i)!==null&&o!==void 0&&(a=o.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!s&&i;){var u,d,l;r=Zt(i),i=(u=r)===null||u===void 0?void 0:u.host,s=!!((d=i)!==null&&d!==void 0&&(l=d.ownerDocument)!==null&&l!==void 0&&l.contains(i))}}return s},$e=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Vi=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var o=bt.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(bt.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var c=t;t;){var u=t.parentElement,d=Zt(t);if(u&&!u.shadowRoot&&i(u)===!0)return $e(t);t.assignedSlot?t=t.assignedSlot:!u&&d!==t.ownerDocument?t=d.host:t=u}t=c}if(Ki(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return $e(t);return!1},Hi=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return bt.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},Qt=function(t,n){return!(n.disabled||Lt(n)||ki(n)||Vi(n,t)||Ni(n)||Hi(n))},ve=function(t,n){return!(_i(n)||Bn(n)<0||!Qt(t,n))},zi=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},_n=function(t){var n=[],r=[];return t.forEach(function(i,s){var o=!!i.scopeParent,a=o?i.scopeParent:i,c=Di(a,o),u=o?_n(i.candidates):a;c===0?o?n.push.apply(n,u):n.push(a):r.push({documentOrder:s,tabIndex:c,item:i,isScope:o,content:u})}),r.sort(Ii).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),i},[]).concat(n)},Kn=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Jt([t],n.includeContainer,{filter:ve.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:zi}):r=Nn(t,n.includeContainer,ve.bind(null,n)),_n(r)},Vn=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Jt([t],n.includeContainer,{filter:Qt.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Nn(t,n.includeContainer,Qt.bind(null,n)),r},Fe=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return bt.call(t,jt)===!1?!1:ve(n,t)},Ui=In.concat("iframe").join(","),Hn=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return bt.call(t,Ui)===!1?!1:Qt(n,t)};function It(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function Yi(e,t){if(!Fe(e,It()))return Gi(e,t);const n=_t(e),r=Kn(n.body,It());t==="prev"&&r.reverse();const i=r.indexOf(e);return i===-1?n.body:r.slice(i+1)[0]}function Gi(e,t){const n=_t(e);if(!Hn(e,It()))return n.body;const r=Vn(n.body,It());t==="prev"&&r.reverse();const i=r.indexOf(e);return i===-1?n.body:r.slice(i+1).find(o=>Fe(o,It()))??n.body}function ea(e,t){const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function na(e,t){return e>=0&&e<t.length}function ra(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function ia(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function oa(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t+n;return r?i=(i%e.length+e.length)%e.length:i=Math.max(0,Math.min(i,e.length-1)),e[i]}function sa(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t-n;return r?i=(i%e.length+e.length)%e.length:i=Math.max(0,Math.min(i,e.length-1)),e[i]}function zn(e,t,n){const r=t.toLowerCase();if(r.endsWith(" ")){const l=r.slice(0,-1);if(e.filter(w=>w.toLowerCase().startsWith(l)).length<=1)return zn(e,l,n);const h=n?.toLowerCase();if(h&&h.startsWith(l)&&h.charAt(l.length)===" "&&t.trim()===l)return n;const p=e.filter(w=>w.toLowerCase().startsWith(r));if(p.length>0){const w=n?e.indexOf(n):-1;return tn(p,Math.max(w,0)).find(O=>O!==n)||n}}const s=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,o=s.toLowerCase(),a=n?e.indexOf(n):-1;let c=tn(e,Math.max(a,0));s.length===1&&(c=c.filter(l=>l!==n));const d=c.find(l=>l?.toLowerCase().startsWith(o));return d!==n?d:void 0}function tn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const qi={afterMs:1e4,onChange:W};function Un(e,t){const{afterMs:n,onChange:r,getWindow:i}={...qi,...t};let s=null,o=P(Dt(e));function a(){return i().setTimeout(()=>{m(o,e,!0),r?.(e)},n)}return B(()=>()=>{s&&i().clearTimeout(s)}),v(()=>f(o),c=>{m(o,c,!0),r?.(c),s&&i().clearTimeout(s),s=a()})}class Xi{#t;#e;#n=A(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#r=A(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=Un("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){if(!n.length)return;this.#e.current=this.#e.current+t;const r=f(this.#r)(),i=n.find(c=>c===r)?.textContent?.trim()??"",s=n.map(c=>c.textContent?.trim()??""),o=zn(s,this.#e.current,i),a=n.find(c=>c.textContent?.trim()===o);return a&&f(this.#n)(a),a}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class ji{#t;#e;#n;#r=P(null);constructor(t){this.#t=t,this.#e=A(()=>this.#t.enabled()),this.#n=Un(!1,{afterMs:t.transitTimeout??300,onChange:n=>{f(this.#e)&&this.#t.setIsPointerInTransit?.(n)},getWindow:()=>Ee(this.#t.triggerNode())}),_([t.triggerNode,t.contentNode,t.enabled],([n,r,i])=>{if(!n||!r||!i)return;const s=a=>{this.#o(a,r)},o=a=>{this.#o(a,n)};return xt(M(n,"pointerleave",s),M(r,"pointerleave",o))}),_(()=>f(this.#r),()=>{const n=i=>{if(!f(this.#r))return;const s=i.target;if(!we(s))return;const o={x:i.clientX,y:i.clientY},a=t.triggerNode()?.contains(s)||t.contentNode()?.contains(s),c=!$i(o,f(this.#r));a?this.#i():c&&(this.#i(),t.onPointerExit())},r=_t(t.triggerNode()??t.contentNode());if(r)return M(r,"pointermove",n)})}#i(){m(this.#r,null),this.#n.current=!1}#o(t,n){const r=t.currentTarget;if(!ot(r))return;const i={x:t.clientX,y:t.clientY},s=Zi(i,r.getBoundingClientRect()),o=Ji(i,s),a=Qi(n.getBoundingClientRect()),c=to([...o,...a]);m(this.#r,c,!0),this.#n.current=!0}}function Zi(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ji(e,t,n=5){const r=n*1.5;switch(t){case"top":return[{x:e.x-n,y:e.y+n},{x:e.x,y:e.y-r},{x:e.x+n,y:e.y+n}];case"bottom":return[{x:e.x-n,y:e.y-n},{x:e.x,y:e.y+r},{x:e.x+n,y:e.y-n}];case"left":return[{x:e.x+n,y:e.y-n},{x:e.x-r,y:e.y},{x:e.x+n,y:e.y+n}];case"right":return[{x:e.x-n,y:e.y-n},{x:e.x+r,y:e.y},{x:e.x-n,y:e.y+n}]}}function Qi(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function $i(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s].x,c=t[s].y,u=t[o].x,d=t[o].y;c>r!=d>r&&n<(u-a)*(r-c)/(d-c)+a&&(i=!i)}return i}function to(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),eo(t)}function eo(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const no="data-context-menu-trigger",ro="data-context-menu-content",Me=new mt("Menu.Root"),At=new mt("Menu.Root | Menu.Sub"),Re=new mt("Menu.Content"),io=new mt("Menu.Group | Menu.RadioGroup"),Yn=new Oi("bitsmenuopen",{bubbles:!1,cancelable:!0}),oo=Br({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class Gn{static create(t){const n=new Gn(t);return Me.set(n)}opts;isUsingKeyboard=new ht;#t=P(!1);get ignoreCloseAutoFocus(){return f(this.#t)}set ignoreCloseAutoFocus(t){m(this.#t,t,!0)}#e=P(!1);get isPointerInTransit(){return f(this.#e)}set isPointerInTransit(t){m(this.#e,t,!0)}constructor(t){this.opts=t}getBitsAttr=t=>oo.getAttr(t,this.opts.variant.current)}class De{static create(t,n){return At.set(new De(t,n,null))}opts;root;parentMenu;contentId=v(()=>"");#t=P(null);get contentNode(){return f(this.#t)}set contentNode(t){m(this.#t,t,!0)}contentPresence;#e=P(null);get triggerNode(){return f(this.#e)}set triggerNode(t){m(this.#e,t,!0)}constructor(t,n,r){this.opts=t,this.root=n,this.parentMenu=r,this.contentPresence=new wi({ref:v(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),r&&_(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class qn{static create(t){return Re.set(new qn(t,At.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#t=P("");get search(){return f(this.#t)}set search(t){m(this.#t,t,!0)}#e=0;#n;#r=P(!1);get mounted(){return f(this.#r)}set mounted(t){m(this.#r,t,!0)}#i;constructor(t,n){this.opts=t,this.parentMenu=n,this.domContext=new Pe(t.ref),this.attachment=ut(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=t.id,this.#i=t.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new ji({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),this.#n=new Xi({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new pi({rootNode:v(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:v(()=>"vertical")}),_(()=>this.parentMenu.contentNode,r=>{if(!r)return;const i=()=>{nt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return Yn.listen(r,i)}),B(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#e)})}#o(){const t=this.parentMenu.contentNode;return t?Array.from(t.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#a(){return this.parentMenu.root.isPointerInTransit}onCloseAutoFocus=t=>{this.opts.onCloseAutoFocus.current?.(t),!(t.defaultPrevented||this.#i)&&this.parentMenu.triggerNode&&Fe(this.parentMenu.triggerNode)&&(t.preventDefault(),this.parentMenu.triggerNode.focus())};handleTabKeyDown(t){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;t.preventDefault();const r=Yi(n.triggerNode,t.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),nt(()=>{r.focus(),nt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(t){if(t.defaultPrevented)return;if(t.key===ai){this.handleTabKeyDown(t);return}const n=t.target,r=t.currentTarget;if(!ot(n)||!ot(r))return;const i=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,s=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,t)||t.code==="Space")return;const c=this.#o();i&&!s&&o&&this.#n(t.key,c),t.target?.id===this.parentMenu.contentId.current&&Ei.includes(t.key)&&(t.preventDefault(),Dn.includes(t.key)&&c.reverse(),Mi(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){we(t.currentTarget)&&we(t.target)&&(t.currentTarget.contains?.(t.target)||(this.domContext.getWindow().clearTimeout(this.#e),this.search=""))}onfocus(t){this.parentMenu.root.isUsingKeyboard.current&&nt(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#a()}onItemLeave(t){if(t.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#a()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#a()}handleInteractOutside(t){if(!Pn(t.target))return;const n=this.parentMenu.triggerNode?.id;if(t.target.id===n){t.preventDefault();return}t.target.closest(`#${n}`)&&t.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=A(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return f(this.#s)}set snippetProps(t){m(this.#s,t)}#c=A(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Te(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto"},...this.attachment}));get props(){return f(this.#c)}set props(t){m(this.#c,t)}popperProps={onCloseAutoFocus:t=>this.onCloseAutoFocus(t)}}class Xn{opts;content;attachment;#t=P(!1);constructor(t,n){this.opts=t,this.content=n,this.attachment=ut(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(t){if(!t.defaultPrevented&&Xt(t))if(this.opts.disabled.current)this.content.onItemLeave(t);else{if(this.content.onItemEnter())return;const r=t.currentTarget;if(!ot(r))return;r.focus()}}onpointerleave(t){t.defaultPrevented||Xt(t)&&this.content.onItemLeave(t)}onfocus(t){nt(()=>{t.defaultPrevented||this.opts.disabled.current||m(this.#t,!0)})}onblur(t){nt(()=>{t.defaultPrevented||m(this.#t,!1)})}#e=A(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":Ce(this.opts.disabled.current),"data-disabled":vn(this.opts.disabled.current),"data-highlighted":f(this.#t)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return f(this.#e)}set props(t){m(this.#e,t)}}class jn{static create(t){const n=new Xn(t,Re.get());return new jn(t,n)}opts;item;root;#t=!1;constructor(t,n){this.opts=t,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#e(){if(this.item.opts.disabled.current)return;const t=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(t),t.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(t){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&t.key===ce)&&be.includes(t.key)){if(!ot(t.currentTarget))return;t.currentTarget.click(),t.preventDefault()}}onclick(t){this.item.opts.disabled.current||this.#e()}onpointerup(t){if(!t.defaultPrevented&&!this.#t){if(!ot(t.currentTarget))return;t.currentTarget?.click()}}onpointerdown(t){this.#t=!0}#n=A(()=>ae(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return f(this.#n)}set props(t){m(this.#n,t)}}class Zn{static create(t){const n=Re.get(),r=new Xn(t,n),i=At.get();return new Zn(t,r,n,i)}opts;item;content;submenu;attachment;#t=null;constructor(t,n,r,i){this.opts=t,this.item=n,this.content=r,this.submenu=i,this.attachment=ut(this.opts.ref,s=>this.submenu.triggerNode=s),this.onpointerleave=this.onpointerleave.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),Tt(()=>{this.#e()})}#e(){this.#t!==null&&(this.content.domContext.getWindow().clearTimeout(this.#t),this.#t=null)}onpointermove(t){Xt(t)&&!this.item.opts.disabled.current&&!this.submenu.opts.open.current&&!this.#t&&!this.content.parentMenu.root.isPointerInTransit&&(this.#t=this.content.domContext.setTimeout(()=>{this.submenu.onOpen(),this.#e()},this.opts.openDelay.current))}onpointerleave(t){Xt(t)&&this.#e()}onkeydown(t){const n=this.content.search!=="";this.item.opts.disabled.current||n&&t.key===ce||Pi[this.submenu.root.opts.dir.current].includes(t.key)&&(t.currentTarget.click(),t.preventDefault())}onclick(t){if(this.item.opts.disabled.current||!ot(t.currentTarget))return;t.currentTarget.focus();const n=new CustomEvent("menusubtriggerselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(n),this.submenu.opts.open.current||(this.submenu.onOpen(),nt(()=>{const r=this.submenu.contentNode;r&&Yn.dispatch(r)}))}#n=A(()=>ae({"aria-haspopup":"menu","aria-expanded":Ce(this.submenu.opts.open.current),"data-state":Te(this.submenu.opts.open.current),"aria-controls":this.submenu.opts.open.current?this.submenu.contentId.current:void 0,[this.submenu.root.getBitsAttr("sub-trigger")]:"",onclick:this.onclick,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onkeydown:this.onkeydown,...this.attachment},this.item.props));get props(){return f(this.#n)}set props(t){m(this.#n,t)}}class Jn{static create(t){return io.set(new Jn(t,Me.get()))}opts;root;attachment;#t=P(void 0);get groupHeadingId(){return f(this.#t)}set groupHeadingId(t){m(this.#t,t,!0)}constructor(t,n){this.opts=t,this.root=n,this.attachment=ut(this.opts.ref)}#e=A(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.groupHeadingId,[this.root.getBitsAttr("group")]:"",...this.attachment}));get props(){return f(this.#e)}set props(t){m(this.#e,t)}}class Qn{static create(t){return new Qn(t,Me.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=ut(this.opts.ref)}#t=A(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return f(this.#t)}set props(t){m(this.#t,t)}}class $n{static create(t){return new $n(t,At.get())}opts;parentMenu;attachment;constructor(t,n){this.opts=t,this.parentMenu=n,this.attachment=ut(this.opts.ref,r=>this.parentMenu.triggerNode=r)}onclick=t=>{this.opts.disabled.current||t.detail!==0||(this.parentMenu.toggleOpen(),t.preventDefault())};onpointerdown=t=>{if(!this.opts.disabled.current){if(t.pointerType==="touch")return t.preventDefault();t.button===0&&t.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||t.preventDefault())}};onpointerup=t=>{this.opts.disabled.current||t.pointerType==="touch"&&(t.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=t=>{if(!this.opts.disabled.current){if(t.key===ce||t.key===Tn){this.parentMenu.toggleOpen(),t.preventDefault();return}t.key===Nt&&(this.parentMenu.onOpen(),t.preventDefault())}};#t=A(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#e=A(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":Ce(this.parentMenu.opts.open.current),"aria-controls":f(this.#t),"data-disabled":vn(this.opts.disabled.current),"data-state":Te(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return f(this.#e)}set props(t){m(this.#e,t)}}class aa{static create(t){const n=At.get();return At.set(new De(t,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;class Ie{static create(t){return new Ie(t)}opts;#t;#e;#n={pointerdown:!1};#r=!1;#i=!1;#o=void 0;#a;#s=W;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,B(()=>{this.#o=Rn(this.opts.ref.current)});let n=W;const r=()=>{this.#f(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),n()};_([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return Zr(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),n(),n=this.#d())}),r}),Tt(()=>{this.#f.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),this.#s(),n()})}#c=t=>{t.defaultPrevented||this.opts.ref.current&&nt(()=>{!this.opts.ref.current||this.#m(t.target)||t.target&&!this.#i&&this.#a.current?.(t)})};#d(){return xt(M(this.#o,"pointerdown",xt(this.#h,this.#p),{capture:!0}),M(this.#o,"pointerdown",xt(this.#g,this.#u)),M(this.#o,"focusin",this.#c))}#l=t=>{let n=t;n.defaultPrevented&&(n=en(t)),this.#t.current(t)};#u=Qe(t=>{if(!this.opts.ref.current){this.#s();return}const n=this.opts.isValidEvent.current(t,this.opts.ref.current)||co(t,this.opts.ref.current);if(!this.#r||this.#w()||!n){this.#s();return}let r=t;if(r.defaultPrevented&&(r=en(r)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=M(this.#o,"click",this.#l,{once:!0})):this.#t.current(r)},10);#h=t=>{this.#n[t.type]=!0};#g=t=>{this.#n[t.type]=!1};#p=()=>{this.opts.ref.current&&(this.#r=ao(this.opts.ref.current))};#m=t=>this.opts.ref.current?Mn(this.opts.ref.current,t):!1;#f=Qe(()=>{for(const t in this.#n)this.#n[t]=!1;this.#r=!1},20);#w(){return Object.values(this.#n).some(Boolean)}#b=()=>{this.#i=!0};#v=()=>{this.#i=!1};props={onfocuscapture:this.#b,onblurcapture:this.#v}}function so(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function ao(e){const t=[...globalThis.bitsDismissableLayers],n=so(t);if(n)return n[0].opts.ref.current===e;const[r]=t[0];return r.opts.ref.current===e}function co(e,t){const n=e.target;if(!Pn(n))return!1;const r=!!n.closest(`[${no}]`);if("button"in e&&e.button>0&&!r)return!1;if("button"in e&&e.button===0&&r)return!0;const i=!!t.closest(`[${ro}]`);return r&&i?!1:Rn(n).documentElement.contains(n)&&!Mn(t,n)&&Ti(e,t)}function en(e){const t=e.currentTarget,n=e.target;let r;e instanceof PointerEvent?r=new PointerEvent(e.type,e):r=new PointerEvent("pointerdown",e);let i=!1;return new Proxy(r,{get:(o,a)=>a==="currentTarget"?t:a==="target"?n:a==="preventDefault"?()=>{i=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:a==="defaultPrevented"?i:a in o?o[a]:e[a]})}function uo(e,t){J(t,!0);let n=b(t,"interactOutsideBehavior",3,"close"),r=b(t,"onInteractOutside",3,W),i=b(t,"onFocusOutside",3,W),s=b(t,"isValidEvent",3,()=>!1);const o=Ie.create({id:v(()=>t.id),interactOutsideBehavior:v(()=>n()),onInteractOutside:v(()=>r()),enabled:v(()=>t.enabled),onFocusOutside:v(()=>i()),isValidEvent:v(()=>s()),ref:t.ref});var a=N(),c=R(a);j(c,()=>t.children??Z,()=>({props:o.props})),D(e,a),Q()}globalThis.bitsEscapeLayers??=new Map;class ke{static create(t){return new ke(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new Pe(this.opts.ref);let n=W;_(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),n=this.#t()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>M(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==ii||!lo(this))return;const n=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function lo(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast(([i,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===e;const[r]=t[0];return r===e}function fo(e,t){J(t,!0);let n=b(t,"escapeKeydownBehavior",3,"close"),r=b(t,"onEscapeKeydown",3,W);ke.create({escapeKeydownBehavior:v(()=>n()),onEscapeKeydown:v(()=>r()),enabled:v(()=>t.enabled),ref:t.ref});var i=N(),s=R(i);j(s,()=>t.children??Z),D(e,i),Q()}class Ne{static instance;#t=ct([]);#e=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new Ne),this.instance}register(t){const n=this.getActive();n&&n!==t&&n.pause();const r=document.activeElement;r&&r!==document.body&&this.#n.set(t,r),this.#t.current=this.#t.current.filter(i=>i!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(r=>r!==t);const n=this.getActive();n&&n.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,n){this.#e.set(t,n)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,n){this.#n.set(t,n)}getPreFocusMemory(t){return this.#n.get(t)}clearPreFocusMemory(t){this.#n.delete(t)}}class Le{#t=!1;#e=null;#n=Ne.getInstance();#r=[];#i;constructor(t){this.#i=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#o(){for(const t of this.#r)t();this.#r=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#n.register(this),this.#c(),this.#a()}unmount(){this.#e&&(this.#o(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#e=null)}#a(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const n=this.#l();n?(n.focus(),this.#n.setFocusMemory(this,n)):this.#e.focus()})}#s(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}}#c(){if(!this.#e||!this.#i.trap.current)return;const t=this.#e,n=t.ownerDocument,r=o=>{if(this.#t||!this.#n.isActiveScope(this))return;const a=o.target;if(!a)return;if(t.contains(a))this.#n.setFocusMemory(this,a);else{const u=this.#n.getFocusMemory(this);if(u&&t.contains(u)&&Hn(u))o.preventDefault(),u.focus();else{const d=this.#l(),l=this.#u()[0];(d||l||t).focus()}}},i=o=>{if(!this.#i.loop||this.#t||o.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#d();if(a.length<2)return;const c=a[0],u=a[a.length-1];!o.shiftKey&&n.activeElement===u?(o.preventDefault(),c.focus()):o.shiftKey&&n.activeElement===c&&(o.preventDefault(),u.focus())};this.#r.push(M(n,"focusin",r,{capture:!0}),M(t,"keydown",i));const s=new MutationObserver(()=>{const o=this.#n.getFocusMemory(this);if(o&&!t.contains(o)){const a=this.#l(),c=this.#u()[0],u=a||c;u?(u.focus(),this.#n.setFocusMemory(this,u)):t.focus()}});s.observe(t,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#d(){return this.#e?Kn(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#l(){return this.#d()[0]||null}#u(){return this.#e?Vn(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return _([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||(n=new Le(t)),n.mount(r)):n&&(n.unmount(),n=null)}),Tt(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function ho(e,t){J(t,!0);let n=b(t,"enabled",3,!1),r=b(t,"trapFocus",3,!1),i=b(t,"loop",3,!1),s=b(t,"onCloseAutoFocus",3,W),o=b(t,"onOpenAutoFocus",3,W);const a=Le.use({enabled:v(()=>n()),trap:v(()=>r()),loop:i(),onCloseAutoFocus:v(()=>s()),onOpenAutoFocus:v(()=>o()),ref:t.ref});var c=N(),u=R(c);j(u,()=>t.focusScope??Z,()=>({props:a.props})),D(e,c),Q()}globalThis.bitsTextSelectionLayers??=new Map;class Be{static create(t){return new Be(t)}opts;domContext;#t=W;constructor(t){this.opts=t,this.domContext=new Pe(t.ref);let n=W;_(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#e()),()=>{n(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return xt(M(this.domContext.getDocument(),"pointerdown",this.#n),M(this.domContext.getDocument(),"pointerup",Wr(this.#r,this.opts.onPointerUp.current)))}#n=t=>{const n=this.opts.ref.current,r=t.target;!ot(n)||!ot(r)||!this.opts.enabled.current||!po(this)||!ni(n,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=go(n,this.domContext.getDocument().body)))};#r=()=>{this.#t(),this.#t=W}}const nn=e=>e.style.userSelect||e.style.webkitUserSelect;function go(e,t){const n=nn(t),r=nn(e);return zt(t,"none"),zt(e,"text"),()=>{zt(t,n),zt(e,r)}}function zt(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function po(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function mo(e,t){J(t,!0);let n=b(t,"preventOverflowTextSelection",3,!0),r=b(t,"onPointerDown",3,W),i=b(t,"onPointerUp",3,W);Be.create({id:v(()=>t.id),onPointerDown:v(()=>r()),onPointerUp:v(()=>i()),enabled:v(()=>t.enabled&&n()),ref:t.ref});var s=N(),o=R(s);j(o,()=>t.children??Z),D(e,s),Q()}globalThis.bitsIdCounter??={current:0};function We(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}class wo{#t;#e=0;#n=P();#r;constructor(t){this.#t=t}#i(){this.#e-=1,this.#r&&this.#e<=0&&(this.#r(),m(this.#n,void 0),this.#r=void 0)}get(...t){return this.#e+=1,f(this.#n)===void 0&&(this.#r=wn(()=>{m(this.#n,this.#t(...t),!0)})),B(()=>()=>{this.#i()}),f(this.#n)}}const Gt=new zr;let Ut=P(null),he=null,Ft=null,Mt=!1;const rn=v(()=>{for(const e of Gt.values())if(e)return!0;return!1});let ge=null;const bo=new wo(()=>{function e(){document.body.setAttribute("style",f(Ut)??""),document.body.style.removeProperty("--scrollbar-width"),Je&&he?.(),m(Ut,null)}function t(){Ft!==null&&(window.clearTimeout(Ft),Ft=null)}function n(i,s){t(),Mt=!0,ge=Date.now();const o=ge,a=()=>{Ft=null,ge===o&&(tr(Gt)?Mt=!1:(Mt=!1,s()))},c=i===null?24:i;Ft=window.setTimeout(a,c)}function r(){f(Ut)===null&&Gt.size===0&&!Mt&&m(Ut,document.body.getAttribute("style"),!0)}return _(()=>rn.current,()=>{if(!rn.current)return;r(),Mt=!1;const i=getComputedStyle(document.body),s=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(i.paddingRight??"0",10)+s,margin:Number.parseInt(i.marginRight??"0",10)};s>0&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty("--scrollbar-width",`${s}px`),document.body.style.overflow="hidden"),Je&&(he=M(document,"touchmove",c=>{c.target===document.documentElement&&(c.touches.length>1||c.preventDefault())},{passive:!1})),nt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Tt(()=>()=>{he?.()}),{get lockMap(){return Gt},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});class vo{#t=We();#e;#n=()=>null;#r;locked;constructor(t,n=()=>null){this.#e=t,this.#n=n,this.#r=bo.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#t,this.#e??!1),this.locked=v(()=>this.#r.lockMap.get(this.#t)??!1,r=>this.#r.lockMap.set(this.#t,r)),Tt(()=>{if(this.#r.lockMap.delete(this.#t),tr(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function tr(e){for(const[t,n]of e)if(n)return!0;return!1}function on(e,t){J(t,!0);let n=b(t,"preventScroll",3,!0),r=b(t,"restoreScrollDelay",3,null);n()&&new vo(n(),()=>r()),Q()}const yo=["top","right","bottom","left"],gt=Math.min,V=Math.max,$t=Math.round,Yt=Math.floor,it=e=>({x:e,y:e}),xo={left:"right",right:"left",bottom:"top",top:"bottom"},So={start:"end",end:"start"};function ye(e,t,n){return V(e,gt(t,n))}function lt(e,t){return typeof e=="function"?e(t):e}function dt(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function _e(e){return e==="x"?"y":"x"}function Ke(e){return e==="y"?"height":"width"}const Ao=new Set(["top","bottom"]);function rt(e){return Ao.has(dt(e))?"y":"x"}function Ve(e){return _e(rt(e))}function Oo(e,t,n){n===void 0&&(n=!1);const r=Ct(e),i=Ve(e),s=Ke(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=te(o)),[o,te(o)]}function To(e){const t=te(e);return[xe(e),t,xe(t)]}function xe(e){return e.replace(/start|end/g,t=>So[t])}const sn=["left","right"],an=["right","left"],Co=["top","bottom"],Eo=["bottom","top"];function Po(e,t,n){switch(e){case"top":case"bottom":return n?t?an:sn:t?sn:an;case"left":case"right":return t?Co:Eo;default:return[]}}function Fo(e,t,n,r){const i=Ct(e);let s=Po(dt(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(xe)))),s}function te(e){return e.replace(/left|right|bottom|top/g,t=>xo[t])}function Mo(e){return{top:0,right:0,bottom:0,left:0,...e}}function er(e){return typeof e!="number"?Mo(e):{top:e,right:e,bottom:e,left:e}}function ee(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function cn(e,t,n){let{reference:r,floating:i}=e;const s=rt(t),o=Ve(t),a=Ke(o),c=dt(t),u=s==="y",d=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2,g=r[a]/2-i[a]/2;let h;switch(c){case"top":h={x:d,y:r.y-i.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:l};break;case"left":h={x:r.x-i.width,y:l};break;default:h={x:r.x,y:r.y}}switch(Ct(t)){case"start":h[o]-=g*(n&&u?-1:1);break;case"end":h[o]+=g*(n&&u?-1:1);break}return h}const Ro=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:l}=cn(u,r,c),g=r,h={},p=0;for(let w=0;w<a.length;w++){const{name:y,fn:S}=a[w],{x:O,y:x,data:T,reset:C}=await S({x:d,y:l,initialPlacement:r,placement:g,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});d=O??d,l=x??l,h={...h,[y]:{...h[y],...T}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:d,y:l}=cn(u,g,c)),w=-1)}return{x:d,y:l,placement:g,strategy:i,middlewareData:h}};async function Bt(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:l="floating",altBoundary:g=!1,padding:h=0}=lt(t,e),p=er(h),y=a[g?l==="floating"?"reference":"floating":l],S=ee(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),O=l==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),T=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},C=ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:x,strategy:c}):O);return{top:(S.top-C.top+p.top)/T.y,bottom:(C.bottom-S.bottom+p.bottom)/T.y,left:(S.left-C.left+p.left)/T.x,right:(C.right-S.right+p.right)/T.x}}const Do=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=lt(e,t)||{};if(u==null)return{};const l=er(d),g={x:n,y:r},h=Ve(i),p=Ke(h),w=await o.getDimensions(u),y=h==="y",S=y?"top":"left",O=y?"bottom":"right",x=y?"clientHeight":"clientWidth",T=s.reference[p]+s.reference[h]-g[h]-s.floating[p],C=g[h]-s.reference[h],F=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let E=F?F[x]:0;(!E||!await(o.isElement==null?void 0:o.isElement(F)))&&(E=a.floating[x]||s.floating[p]);const I=T/2-C/2,U=E/2-w[p]/2-1,L=gt(l[S],U),$=gt(l[O],U),z=L,tt=E-w[p]-$,k=E/2-w[p]/2+I,et=ye(z,k,tt),Y=!c.arrow&&Ct(i)!=null&&k!==et&&s.reference[p]/2-(k<z?L:$)-w[p]/2<0,K=Y?k<z?k-z:k-tt:0;return{[h]:g[h]+K,data:{[h]:et,centerOffset:k-et-K,...Y&&{alignmentOffset:K}},reset:Y}}}),Io=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:w=!0,...y}=lt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=dt(i),O=rt(a),x=dt(a)===a,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),C=g||(x||!w?[te(a)]:To(a)),F=p!=="none";!g&&F&&C.push(...Fo(a,w,p,T));const E=[a,...C],I=await Bt(t,y),U=[];let L=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&U.push(I[S]),l){const k=Oo(i,o,T);U.push(I[k[0]],I[k[1]])}if(L=[...L,{placement:i,overflows:U}],!U.every(k=>k<=0)){var $,z;const k=((($=s.flip)==null?void 0:$.index)||0)+1,et=E[k];if(et&&(!(l==="alignment"?O!==rt(et):!1)||L.every(G=>rt(G.placement)===O?G.overflows[0]>0:!0)))return{data:{index:k,overflows:L},reset:{placement:et}};let Y=(z=L.filter(K=>K.overflows[0]<=0).sort((K,G)=>K.overflows[1]-G.overflows[1])[0])==null?void 0:z.placement;if(!Y)switch(h){case"bestFit":{var tt;const K=(tt=L.filter(G=>{if(F){const ft=rt(G.placement);return ft===O||ft==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(ft=>ft>0).reduce((ft,gr)=>ft+gr,0)]).sort((G,ft)=>G[1]-ft[1])[0])==null?void 0:tt[0];K&&(Y=K);break}case"initialPlacement":Y=a;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};function un(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ln(e){return yo.some(t=>e[t]>=0)}const ko=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=lt(e,t);switch(r){case"referenceHidden":{const s=await Bt(t,{...i,elementContext:"reference"}),o=un(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ln(o)}}}case"escaped":{const s=await Bt(t,{...i,altBoundary:!0}),o=un(s,n.floating);return{data:{escapedOffsets:o,escaped:ln(o)}}}default:return{}}}}},nr=new Set(["left","top"]);async function No(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=dt(n),a=Ct(n),c=rt(n)==="y",u=nr.has(o)?-1:1,d=s&&c?-1:1,l=lt(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:p}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),c?{x:h*d,y:g*u}:{x:g*u,y:h*d}}const Lo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,c=await No(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:{...c,placement:o}}}}},Bo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:y=>{let{x:S,y:O}=y;return{x:S,y:O}}},...c}=lt(e,t),u={x:n,y:r},d=await Bt(t,c),l=rt(dt(i)),g=_e(l);let h=u[g],p=u[l];if(s){const y=g==="y"?"top":"left",S=g==="y"?"bottom":"right",O=h+d[y],x=h-d[S];h=ye(O,h,x)}if(o){const y=l==="y"?"top":"left",S=l==="y"?"bottom":"right",O=p+d[y],x=p-d[S];p=ye(O,p,x)}const w=a.fn({...t,[g]:h,[l]:p});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:s,[l]:o}}}}}},Wo=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=lt(e,t),d={x:n,y:r},l=rt(i),g=_e(l);let h=d[g],p=d[l];const w=lt(a,t),y=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(c){const x=g==="y"?"height":"width",T=s.reference[g]-s.floating[x]+y.mainAxis,C=s.reference[g]+s.reference[x]-y.mainAxis;h<T?h=T:h>C&&(h=C)}if(u){var S,O;const x=g==="y"?"width":"height",T=nr.has(dt(i)),C=s.reference[l]-s.floating[x]+(T&&((S=o.offset)==null?void 0:S[l])||0)+(T?0:y.crossAxis),F=s.reference[l]+s.reference[x]+(T?0:((O=o.offset)==null?void 0:O[l])||0)-(T?y.crossAxis:0);p<C?p=C:p>F&&(p=F)}return{[g]:h,[l]:p}}}},_o=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:c=()=>{},...u}=lt(e,t),d=await Bt(t,u),l=dt(i),g=Ct(i),h=rt(i)==="y",{width:p,height:w}=s.floating;let y,S;l==="top"||l==="bottom"?(y=l,S=g===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(S=l,y=g==="end"?"top":"bottom");const O=w-d.top-d.bottom,x=p-d.left-d.right,T=gt(w-d[y],O),C=gt(p-d[S],x),F=!t.middlewareData.shift;let E=T,I=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=O),F&&!g){const L=V(d.left,0),$=V(d.right,0),z=V(d.top,0),tt=V(d.bottom,0);h?I=p-2*(L!==0||$!==0?L+$:V(d.left,d.right)):E=w-2*(z!==0||tt!==0?z+tt:V(d.top,d.bottom))}await c({...t,availableWidth:I,availableHeight:E});const U=await o.getDimensions(a.floating);return p!==U.width||w!==U.height?{reset:{rects:!0}}:{}}}};function ue(){return typeof window<"u"}function Et(e){return rr(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function at(e){var t;return(t=(rr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rr(e){return ue()?e instanceof Node||e instanceof H(e).Node:!1}function q(e){return ue()?e instanceof Element||e instanceof H(e).Element:!1}function st(e){return ue()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function dn(e){return!ue()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}const Ko=new Set(["inline","contents"]);function Ht(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ko.has(i)}const Vo=new Set(["table","td","th"]);function Ho(e){return Vo.has(Et(e))}const zo=[":popover-open",":modal"];function le(e){return zo.some(t=>{try{return e.matches(t)}catch{return!1}})}const Uo=["transform","translate","scale","rotate","perspective"],Yo=["transform","translate","scale","rotate","perspective","filter"],Go=["paint","layout","strict","content"];function He(e){const t=ze(),n=q(e)?X(e):e;return Uo.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Yo.some(r=>(n.willChange||"").includes(r))||Go.some(r=>(n.contain||"").includes(r))}function qo(e){let t=pt(e);for(;st(t)&&!Ot(t);){if(He(t))return t;if(le(t))return null;t=pt(t)}return null}function ze(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xo=new Set(["html","body","#document"]);function Ot(e){return Xo.has(Et(e))}function X(e){return H(e).getComputedStyle(e)}function de(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dn(e)&&e.host||at(e);return dn(t)?t.host:t}function ir(e){const t=pt(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:st(t)&&Ht(t)?t:ir(t)}function Wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=ir(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=H(i);if(s){const a=Se(o);return t.concat(o,o.visualViewport||[],Ht(i)?i:[],a&&n?Wt(a):[])}return t.concat(i,Wt(i,[],n))}function Se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function or(e){const t=X(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=st(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=$t(n)!==s||$t(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function Ue(e){return q(e)?e:e.contextElement}function St(e){const t=Ue(e);if(!st(t))return it(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=or(t);let o=(s?$t(n.width):n.width)/r,a=(s?$t(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const jo=it(0);function sr(e){const t=H(e);return!ze()||!t.visualViewport?jo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function vt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Ue(e);let o=it(1);t&&(r?q(r)&&(o=St(r)):o=St(e));const a=Zo(s,n,r)?sr(s):it(0);let c=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,d=i.width/o.x,l=i.height/o.y;if(s){const g=H(s),h=r&&q(r)?H(r):r;let p=g,w=Se(p);for(;w&&r&&h!==p;){const y=St(w),S=w.getBoundingClientRect(),O=X(w),x=S.left+(w.clientLeft+parseFloat(O.paddingLeft))*y.x,T=S.top+(w.clientTop+parseFloat(O.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,l*=y.y,c+=x,u+=T,p=H(w),w=Se(p)}}return ee({width:d,height:l,x:c,y:u})}function fe(e,t){const n=de(e).scrollLeft;return t?t.left+n:vt(at(e)).left+n}function ar(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-fe(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Jo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=at(r),a=t?le(t.floating):!1;if(r===o||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=it(1);const d=it(0),l=st(r);if((l||!l&&!s)&&((Et(r)!=="body"||Ht(o))&&(c=de(r)),st(r))){const h=vt(r);u=St(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const g=o&&!l&&!s?ar(o,c):it(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-c.scrollTop*u.y+d.y+g.y}}function Qo(e){return Array.from(e.getClientRects())}function $o(e){const t=at(e),n=de(e),r=e.ownerDocument.body,i=V(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=V(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+fe(e);const a=-n.scrollTop;return X(r).direction==="rtl"&&(o+=V(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}const fn=25;function ts(e,t){const n=H(e),r=at(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,c=0;if(i){s=i.width,o=i.height;const d=ze();(!d||d&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}const u=fe(r);if(u<=0){const d=r.ownerDocument,l=d.body,g=getComputedStyle(l),h=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,p=Math.abs(r.clientWidth-l.clientWidth-h);p<=fn&&(s-=p)}else u<=fn&&(s+=u);return{width:s,height:o,x:a,y:c}}const es=new Set(["absolute","fixed"]);function ns(e,t){const n=vt(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=st(e)?St(e):it(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,c=i*s.x,u=r*s.y;return{width:o,height:a,x:c,y:u}}function hn(e,t,n){let r;if(t==="viewport")r=ts(e,n);else if(t==="document")r=$o(at(e));else if(q(t))r=ns(t,n);else{const i=sr(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ee(r)}function cr(e,t){const n=pt(e);return n===t||!q(n)||Ot(n)?!1:X(n).position==="fixed"||cr(n,t)}function rs(e,t){const n=t.get(e);if(n)return n;let r=Wt(e,[],!1).filter(a=>q(a)&&Et(a)!=="body"),i=null;const s=X(e).position==="fixed";let o=s?pt(e):e;for(;q(o)&&!Ot(o);){const a=X(o),c=He(o);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&es.has(i.position)||Ht(o)&&!c&&cr(e,o))?r=r.filter(d=>d!==o):i=a,o=pt(o)}return t.set(e,r),r}function is(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?le(t)?[]:rs(t,this._c):[].concat(n),r],a=o[0],c=o.reduce((u,d)=>{const l=hn(t,d,i);return u.top=V(l.top,u.top),u.right=gt(l.right,u.right),u.bottom=gt(l.bottom,u.bottom),u.left=V(l.left,u.left),u},hn(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function os(e){const{width:t,height:n}=or(e);return{width:t,height:n}}function ss(e,t,n){const r=st(t),i=at(t),s=n==="fixed",o=vt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=it(0);function u(){c.x=fe(i)}if(r||!r&&!s)if((Et(t)!=="body"||Ht(i))&&(a=de(t)),r){const h=vt(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();s&&!r&&i&&u();const d=i&&!r&&!s?ar(i,a):it(0),l=o.left+a.scrollLeft-c.x-d.x,g=o.top+a.scrollTop-c.y-d.y;return{x:l,y:g,width:o.width,height:o.height}}function pe(e){return X(e).position==="static"}function gn(e,t){if(!st(e)||X(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return at(e)===n&&(n=n.ownerDocument.body),n}function ur(e,t){const n=H(e);if(le(e))return n;if(!st(e)){let i=pt(e);for(;i&&!Ot(i);){if(q(i)&&!pe(i))return i;i=pt(i)}return n}let r=gn(e,t);for(;r&&Ho(r)&&pe(r);)r=gn(r,t);return r&&Ot(r)&&pe(r)&&!He(r)?n:r||qo(e)||n}const as=async function(e){const t=this.getOffsetParent||ur,n=this.getDimensions,r=await n(e.floating);return{reference:ss(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cs(e){return X(e).direction==="rtl"}const us={convertOffsetParentRelativeRectToViewportRelativeRect:Jo,getDocumentElement:at,getClippingRect:is,getOffsetParent:ur,getElementRects:as,getClientRects:Qo,getDimensions:os,getScale:St,isElement:q,isRTL:cs};function lr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ls(e,t){let n=null,r;const i=at(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:l,width:g,height:h}=u;if(a||t(),!g||!h)return;const p=Yt(l),w=Yt(i.clientWidth-(d+g)),y=Yt(i.clientHeight-(l+h)),S=Yt(d),x={rootMargin:-p+"px "+-w+"px "+-y+"px "+-S+"px",threshold:V(0,gt(1,c))||1};let T=!0;function C(F){const E=F[0].intersectionRatio;if(E!==c){if(!T)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!lr(u,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return o(!0),s}function ds(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Ue(e),d=i||s?[...u?Wt(u):[],...Wt(t)]:[];d.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const l=u&&a?ls(u,n):null;let g=-1,h=null;o&&(h=new ResizeObserver(S=>{let[O]=S;O&&O.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let p,w=c?vt(e):null;c&&y();function y(){const S=vt(e);w&&!lr(w,S)&&n(),w=S,p=requestAnimationFrame(y)}return n(),()=>{var S;d.forEach(O=>{i&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),l?.(),(S=h)==null||S.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const fs=Lo,hs=Bo,gs=Io,ps=_o,ms=ko,ws=Do,bs=Wo,vs=(e,t,n)=>{const r=new Map,i={platform:us,...n},s={...i.platform,_c:r};return Ro(e,t,{...i,platform:s})};function wt(e){return typeof e=="function"?e():e}function dr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pn(e,t){const n=dr(e);return Math.round(t*n)/n}function ca(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function ys(e){const t=e.whileElementsMounted,n=A(()=>wt(e.open)??!0),r=A(()=>wt(e.middleware)),i=A(()=>wt(e.transform)??!0),s=A(()=>wt(e.placement)??"bottom"),o=A(()=>wt(e.strategy)??"absolute"),a=A(()=>wt(e.sideOffset)??0),c=A(()=>wt(e.alignOffset)??0),u=e.reference;let d=P(0),l=P(0);const g=ct(null);let h=P(Dt(f(o))),p=P(Dt(f(s))),w=P(Dt({})),y=P(!1);const S=A(()=>{const E=g.current?pn(g.current,f(d)):f(d),I=g.current?pn(g.current,f(l)):f(l);return f(i)?{position:f(h),left:"0",top:"0",transform:`translate(${E}px, ${I}px)`,...g.current&&dr(g.current)>=1.5&&{willChange:"transform"}}:{position:f(h),left:`${E}px`,top:`${I}px`}});let O;function x(){u.current===null||g.current===null||vs(u.current,g.current,{middleware:f(r),placement:f(s),strategy:f(o)}).then(E=>{if(!f(n)&&f(d)!==0&&f(l)!==0){const I=Math.max(Math.abs(f(a)),Math.abs(f(c)),15);if(E.x<=I&&E.y<=I)return}m(d,E.x,!0),m(l,E.y,!0),m(h,E.strategy,!0),m(p,E.placement,!0),m(w,E.middlewareData,!0),m(y,!0)})}function T(){typeof O=="function"&&(O(),O=void 0)}function C(){if(T(),t===void 0){x();return}u.current===null||g.current===null||(O=t(u.current,g.current,x))}function F(){f(n)||m(y,!1)}return B(x),B(C),B(F),B(()=>T),{floating:g,reference:u,get strategy(){return f(h)},get placement(){return f(p)},get middlewareData(){return f(w)},get isPositioned(){return f(y)},get floatingStyles(){return f(S)},get update(){return x}}}const xs={top:"bottom",right:"left",bottom:"top",left:"right"},Ye=new mt("Floating.Root"),Ae=new mt("Floating.Content"),Ge=new mt("Floating.Root");class ne{static create(t=!1){return t?Ge.set(new ne):Ye.set(new ne)}anchorNode=ct(null);customAnchorNode=ct(null);triggerNode=ct(null);constructor(){B(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class re{static create(t,n=!1){return n?Ae.set(new re(t,Ge.get())):Ae.set(new re(t,Ye.get()))}opts;root;contentRef=ct(null);wrapperRef=ct(null);arrowRef=ct(null);contentAttachment=ut(this.contentRef);wrapperAttachment=ut(this.wrapperRef);arrowAttachment=ut(this.arrowRef);arrowId=ct(We());#t=A(()=>{if(typeof this.opts.style=="string")return _r(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new jr(()=>this.arrowRef.current??void 0);#r=A(()=>this.#n?.width??0);#i=A(()=>this.#n?.height??0);#o=A(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=A(()=>f(this.#a).length>0);get hasExplicitBoundaries(){return f(this.#s)}set hasExplicitBoundaries(t){m(this.#s,t)}#c=A(()=>({padding:this.opts.collisionPadding.current,boundary:f(this.#a).filter(hi),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return f(this.#c)}set detectOverflowOptions(t){m(this.#c,t)}#d=P(void 0);#l=P(void 0);#u=P(void 0);#h=P(void 0);#g=A(()=>[fs({mainAxis:this.opts.sideOffset.current+f(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&hs({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?bs():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&gs({...this.detectOverflowOptions}),ps({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=t.reference;m(this.#d,n,!0),m(this.#l,r,!0),m(this.#u,i,!0),m(this.#h,s,!0)}}),this.arrowRef.current&&ws({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Ss({arrowWidth:f(this.#r),arrowHeight:f(this.#i)}),this.opts.hideWhenDetached.current&&ms({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return f(this.#g)}set middleware(t){m(this.#g,t)}floating;#p=A(()=>As(this.floating.placement));get placedSide(){return f(this.#p)}set placedSide(t){m(this.#p,t)}#m=A(()=>Os(this.floating.placement));get placedAlign(){return f(this.#m)}set placedAlign(t){m(this.#m,t)}#f=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return f(this.#f)}set arrowX(t){m(this.#f,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return f(this.#w)}set arrowY(t){m(this.#w,t)}#b=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return f(this.#b)}set cannotCenterArrow(t){m(this.#b,t)}#v=P();get contentZIndex(){return f(this.#v)}set contentZIndex(t){m(this.#v,t,!0)}#y=A(()=>xs[this.placedSide]);get arrowBaseSide(){return f(this.#y)}set arrowBaseSide(t){m(this.#y,t)}#x=A(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${f(this.#d)}px`,"--bits-floating-available-height":`${f(this.#l)}px`,"--bits-floating-anchor-width":`${f(this.#u)}px`,"--bits-floating-anchor-height":`${f(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...f(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return f(this.#x)}set wrapperProps(t){m(this.#x,t)}#S=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Kr({...f(this.#t)}),...this.contentAttachment}));get props(){return f(this.#S)}set props(t){m(this.#S,t)}#A=A(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return f(this.#A)}set arrowStyle(t){m(this.#A,t)}constructor(t,n){this.opts=t,this.root=n,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),_(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=ys({strategy:()=>this.opts.strategy.current,placement:()=>f(this.#o),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>ds(...r,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),B(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),_(()=>this.contentRef.current,r=>{if(!r)return;const i=Ee(r);this.contentZIndex=i.getComputedStyle(r).zIndex}),B(()=>{this.floating.floating.current=this.wrapperRef.current})}}class fr{static create(t){return new fr(t,Ae.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=A(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return f(this.#t)}set props(t){m(this.#t,t)}}class ie{static create(t,n=!1){return n?new ie(t,Ge.get()):new ie(t,Ye.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=bn(t.virtualEl.current):n.triggerNode=t.ref}}function Ss(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=qe(n),l={start:"0%",center:"50%",end:"100%"}[d],g=(i.arrow?.x??0)+a/2,h=(i.arrow?.y??0)+c/2;let p="",w="";return u==="bottom"?(p=o?l:`${g}px`,w=`${-c}px`):u==="top"?(p=o?l:`${g}px`,w=`${r.floating.height+c}px`):u==="right"?(p=`${-c}px`,w=o?l:`${h}px`):u==="left"&&(p=`${r.floating.width+c}px`,w=o?l:`${h}px`),{data:{x:p,y:w}}}}}function qe(e){const[t,n="center"]=e.split("-");return[t,n]}function As(e){return qe(e)[0]}function Os(e){return qe(e)[1]}function ua(e,t){J(t,!0);let n=b(t,"tooltip",3,!1);ne.create(n());var r=N(),i=R(r);j(i,()=>t.children??Z),D(e,r),Q()}function la(e,t){J(t,!0);let n=b(t,"tooltip",3,!1);ie.create({id:v(()=>t.id),virtualEl:v(()=>t.virtualEl),ref:t.ref},n());var r=N(),i=R(r);j(i,()=>t.children??Z),D(e,r),Q()}function Ts(e,t){J(t,!0);let n=b(t,"side",3,"bottom"),r=b(t,"sideOffset",3,0),i=b(t,"align",3,"center"),s=b(t,"alignOffset",3,0),o=b(t,"arrowPadding",3,0),a=b(t,"avoidCollisions",3,!0),c=b(t,"collisionBoundary",19,()=>[]),u=b(t,"collisionPadding",3,0),d=b(t,"hideWhenDetached",3,!1),l=b(t,"onPlaced",3,()=>{}),g=b(t,"sticky",3,"partial"),h=b(t,"updatePositionStrategy",3,"optimized"),p=b(t,"strategy",3,"fixed"),w=b(t,"dir",3,"ltr"),y=b(t,"style",19,()=>({})),S=b(t,"wrapperId",19,We),O=b(t,"customAnchor",3,null),x=b(t,"tooltip",3,!1);const T=re.create({side:v(()=>n()),sideOffset:v(()=>r()),align:v(()=>i()),alignOffset:v(()=>s()),id:v(()=>t.id),arrowPadding:v(()=>o()),avoidCollisions:v(()=>a()),collisionBoundary:v(()=>c()),collisionPadding:v(()=>u()),hideWhenDetached:v(()=>d()),onPlaced:v(()=>l()),sticky:v(()=>g()),updatePositionStrategy:v(()=>h()),strategy:v(()=>p()),dir:v(()=>w()),style:v(()=>y()),enabled:v(()=>t.enabled),wrapperId:v(()=>S()),customAnchor:v(()=>O())},x()),C=A(()=>ae(T.wrapperProps,{style:{pointerEvents:"auto"}}));var F=N(),E=R(F);j(E,()=>t.content??Z,()=>({props:T.props,wrapperProps:f(C)})),D(e,F),Q()}function Cs(e,t){J(t,!0),Vr(()=>{t.onPlaced?.()});var n=N(),r=R(n);j(r,()=>t.content??Z,()=>({props:{},wrapperProps:{}})),D(e,n),Q()}function Es(e,t){let n=b(t,"isStatic",3,!1),r=oe(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=N(),s=R(i);{var o=c=>{Cs(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{Ts(c,Oe({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};kt(s,c=>{n()?c(o):c(a,!1)})}D(e,i)}var Ps=Fr("<!> <!>",1);function hr(e,t){J(t,!0);let n=b(t,"interactOutsideBehavior",3,"close"),r=b(t,"trapFocus",3,!0),i=b(t,"isValidEvent",3,()=>!1),s=b(t,"customAnchor",3,null),o=b(t,"isStatic",3,!1),a=b(t,"tooltip",3,!1),c=oe(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip"]);Es(e,{get isStatic(){return o()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return a()},content:(d,l)=>{let g=()=>l?.().props,h=()=>l?.().wrapperProps;var p=Ps(),w=R(p);{var y=x=>{on(x,{get preventScroll(){return t.preventScroll}})},S=x=>{var T=N(),C=R(T);{var F=E=>{on(E,{get preventScroll(){return t.preventScroll}})};kt(C,E=>{t.forceMount||E(F)},!0)}D(x,T)};kt(w,x=>{t.forceMount&&t.enabled?x(y):x(S,!1)})}var O=Mr(w,2);ho(O,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(T,C)=>{let F=()=>C?.().props;fo(T,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(E,I)=>{uo(E,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(L,$)=>{let z=()=>$?.().props;mo(L,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(tt,k)=>{var et=N(),Y=R(et);{let K=A(()=>({props:ae(c,g(),z(),F(),{style:{pointerEvents:"auto"}}),wrapperProps:h()}));j(Y,()=>t.popper??Z,()=>f(K))}D(tt,et)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),D(d,p)},$$slots:{content:!0}}),Q()}function da(e,t){let n=b(t,"interactOutsideBehavior",3,"close"),r=b(t,"trapFocus",3,!0),i=b(t,"isValidEvent",3,()=>!1),s=b(t,"customAnchor",3,null),o=b(t,"isStatic",3,!1),a=oe(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var c=N(),u=R(c);{var d=l=>{hr(l,Oe({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return o()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};kt(u,l=>{t.shouldRender&&l(d)})}D(e,c)}function fa(e,t){let n=b(t,"interactOutsideBehavior",3,"close"),r=b(t,"trapFocus",3,!0),i=b(t,"isValidEvent",3,()=>!1),s=b(t,"customAnchor",3,null),o=b(t,"isStatic",3,!1),a=oe(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);hr(e,Oe({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return o()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}let Rt=P(!1);class ht{static _refs=0;static _cleanup;constructor(){B(()=>(ht._refs===0&&(ht._cleanup=wn(()=>{const t=[],n=i=>{m(Rt,!1)},r=i=>{m(Rt,!0)};return t.push(M(document,"pointerdown",n,{capture:!0}),M(document,"pointermove",n,{capture:!0}),M(document,"keydown",r,{capture:!0})),xt(...t)})),ht._refs++,()=>{ht._refs--,ht._refs===0&&(m(Rt,!1),ht._cleanup?.())}))}get current(){return f(Rt)}set current(t){m(Rt,t,!0)}}export{Gs as $,zn as A,ii as B,mt as C,$n as D,Tn as E,ua as F,ji as G,qt as H,Nt as I,Kt as J,Vt as K,Zs as L,Qn as M,Ns as N,Ls as O,wi as P,Is as Q,pi as R,ce as S,mo as T,js as U,Bs as V,Vs as W,Hs as X,zs as Y,Us as Z,Ys as _,la as a,qs as a0,Xs as a1,Ws as a2,_s as a3,Ks as a4,ai as a5,ks as a6,si as a7,Cn as a8,oi as a9,On as aa,ra as ab,ia as ac,oa as ad,sa as ae,nt as af,Xi as ag,Je as ah,aa as ai,Yn as aj,ta as ak,Zn as al,Gr as am,Ee as an,En as ao,_t as ap,na as aq,ea as ar,Qs as as,Jn as at,$s as b,zr as c,fa as d,da as e,ot as f,ca as g,jn as h,we as i,Gn as j,Hr as k,De as l,qn as m,W as n,Tt as o,ho as p,Zr as q,fo as r,uo as s,on as t,We as u,fr as v,_ as w,Pe as x,Js as y,Un as z};
+import{i as kt,p as b,s as Oe,r as oe}from"./DMODTt3n.js";import{B as pr,H as mr,br as wr,G as br,J as vr,h as P,bs as Xe,ak as yr,g as f,i as m,bt as Pt,v as Dt,bu as mn,b9 as M,_ as xr,Z as je,a1 as Sr,aG as Ar,F as B,C as Or,u as A,A as Tr,d as N,c as R,b as D,m as j,o as Z,p as J,Y as Cr,a as Q,a0 as Er,a3 as Pr,aM as wn,f as Fr,s as Mr}from"./B2WdN-7r.js";import{n as Rr,B as Dr,o as bn,b as v,p as Ir,t as kr,q as Nr,r as Lr,u as se,l as xt,d as Br,a as ut,h as Te,e as vn,g as Ce,m as ae,s as ct,v as Wr,w as _r,j as Kr}from"./BDd6-VcB.js";import{o as Vr}from"./Dwk6gGSK.js";function Hr(e,t,n){pr&&mr();var r=new vr(e),i=!wr();br(()=>{var s=t();i&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}class zr extends Map{#t=new Map;#e=P(0);#n=P(0);#r=Xe||-1;constructor(t){if(super(),t){for(var[n,r]of t)super.set(n,r);this.#n.v=super.size}}#i(t){return Xe===this.#r?P(t):yr(t)}has(t){var n=this.#t,r=n.get(t);if(r===void 0){var i=super.get(t);if(i!==void 0)r=this.#i(0),n.set(t,r);else return f(this.#e),!1}return f(r),!0}forEach(t,n){this.#o(),super.forEach(t,n)}get(t){var n=this.#t,r=n.get(t);if(r===void 0){var i=super.get(t);if(i!==void 0)r=this.#i(0),n.set(t,r);else{f(this.#e);return}}return f(r),super.get(t)}set(t,n){var r=this.#t,i=r.get(t),s=super.get(t),o=super.set(t,n),a=this.#e;if(i===void 0)i=this.#i(0),r.set(t,i),m(this.#n,super.size),Pt(a);else if(s!==n){Pt(i);var c=a.reactions===null?null:new Set(a.reactions),u=c===null||!i.reactions?.every(d=>c.has(d));u&&Pt(a)}return o}delete(t){var n=this.#t,r=n.get(t),i=super.delete(t);return r!==void 0&&(n.delete(t),m(this.#n,super.size),m(r,-1),Pt(this.#e)),i}clear(){if(super.size!==0){super.clear();var t=this.#t;m(this.#n,0);for(var n of t.values())m(n,-1);Pt(this.#e),t.clear()}}#o(){f(this.#e);var t=this.#t;if(this.#n.v!==t.size){for(var n of super.keys())if(!t.has(n)){var r=this.#i(0);t.set(n,r)}}for([,r]of this.#t)f(r)}keys(){return f(this.#e),super.keys()}values(){return this.#o(),super.values()}entries(){return this.#o(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return f(this.#n),super.size}}function yt(e){let t=P(Dt(e));return{[Dr]:!0,[Rr]:!0,get current(){return f(t)},set current(n){m(t,n,!0)}}}yt.from=bn;yt.with=v;yt.flatten=Ir;yt.readonly=kr;yt.isBox=Nr;yt.isWritableBox=Lr;const yn=typeof window<"u"?window:void 0;function Ur(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Yr{#t;#e;constructor(t={}){const{window:n=yn,document:r=n?.document}=t;n!==void 0&&(this.#t=r,this.#e=mn(i=>{const s=M(n,"focusin",i),o=M(n,"focusout",i);return()=>{s(),o()}}))}get current(){return this.#e?.(),this.#t?Ur(this.#t):null}}new Yr;function Gr(e){return typeof e=="function"}class mt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return xr(this.#e)}get(){const t=je(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const n=je(this.#e);return n===void 0?t:n}set(t){return Sr(this.#e,t)}}function qr(e,t){switch(e){case"post":B(t);break;case"pre":Ar(t);break}}function xn(e,t,n,r={}){const{lazy:i=!1}=r;let s=!i,o=Array.isArray(e)?[]:void 0;qr(t,()=>{const a=Array.isArray(e)?e.map(u=>u()):e();if(!s){s=!0,o=a;return}const c=Or(()=>n(a,o));return o=a,c})}function _(e,t,n){xn(e,"post",t,n)}function Xr(e,t,n){xn(e,"pre",t,n)}_.pre=Xr;function Ze(e){return Gr(e)?e():e}class jr{#t={width:0,height:0};#e=!1;#n;#r;#i;#o=A(()=>(f(this.#s)?.(),this.getSize().width));#a=A(()=>(f(this.#s)?.(),this.getSize().height));#s=A(()=>{const t=Ze(this.#r);if(t)return mn(n=>{if(!this.#i)return;const r=new this.#i.ResizeObserver(i=>{this.#e=!0;for(const s of i){const o=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(o)?o:[o];this.#t.width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),this.#t.height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}n()});return r.observe(t),()=>{this.#e=!1,r.disconnect()}})});constructor(t,n={box:"border-box"}){this.#i=n.window??yn,this.#n=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Ze(this.#r);if(!t||!this.#i)return;const n=t.offsetWidth,r=t.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const i=this.#i.getComputedStyle(t),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),o=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),a=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),c=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),u=n-s-a,d=r-o-c;return{width:u,height:d}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return f(this.#s)?.(),this.getSize()}get width(){return f(this.#o)}get height(){return f(this.#a)}}function Tt(e){B(()=>()=>{e()})}function Zr(e,t){return setTimeout(t,e)}function nt(e){Tr().then(e)}const Jr=1,Qr=9,$r=11;function me(e){return se(e)&&e.nodeType===Jr&&typeof e.nodeName=="string"}function Sn(e){return se(e)&&e.nodeType===Qr}function ti(e){return se(e)&&e.constructor?.name==="VisualViewport"}function ei(e){return se(e)&&e.nodeType!==void 0}function An(e){return ei(e)&&e.nodeType===$r&&"host"in e}function ni(e,t){if(!e||!t||!me(e)||!me(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&An(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function _t(e){return Sn(e)?e:ti(e)?e.document:e?.ownerDocument??document}function Ee(e){return An(e)?Ee(e.host):Sn(e)?e.defaultView??window:me(e)?e.ownerDocument?.defaultView??window:window}function ri(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Pe{element;#t=A(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return f(this.#t)}set root(t){m(this.#t,t)}constructor(t){typeof t=="function"?this.element=v(t):this.element=t}getDocument=()=>_t(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>ri(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,n)=>this.getWindow().setTimeout(t,n);clearTimeout=t=>this.getWindow().clearTimeout(t)}const Is="Alt",Nt="ArrowDown",Kt="ArrowLeft",Vt="ArrowRight",qt="ArrowUp",ks="Backspace",Ns="CapsLock",Ls="Control",On="End",Tn="Enter",ii="Escape",Bs="F1",Ws="F10",_s="F11",Ks="F12",Vs="F2",Hs="F3",zs="F4",Us="F5",Ys="F6",Gs="F7",qs="F8",Xs="F9",Cn="Home",js="Meta",oi="PageDown",si="PageUp",Zs="Shift",ce=" ",ai="Tab";function ci(e){return window.getComputedStyle(e).getPropertyValue("direction")}function ui(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?Kt:Vt,vertical:Nt}[t]}function li(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?Vt:Kt,vertical:qt}[t]}function di(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:ui(e,t),prevKey:li(e,t)}}const En=typeof document<"u",Je=fi();function fi(){return En&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function ot(e){return e instanceof HTMLElement}function we(e){return e instanceof Element}function Pn(e){return e instanceof Element||e instanceof SVGElement}function Js(e){return e.matches(":focus-visible")}function hi(e){return e!==null}function gi(e){return e instanceof HTMLInputElement&&"select"in e}class pi{#t;#e=yt(null);constructor(t){this.#t=t}getCandidateNodes(){return this.#t.rootNode.current?this.#t.candidateSelector?Array.from(this.#t.rootNode.current.querySelectorAll(this.#t.candidateSelector)):this.#t.candidateAttr?Array.from(this.#t.rootNode.current.querySelectorAll(`[${this.#t.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const t=this.getCandidateNodes();t.length&&t[0]?.focus()}handleKeydown(t,n,r=!1){const i=this.#t.rootNode.current;if(!i||!t)return;const s=this.getCandidateNodes();if(!s.length)return;const o=s.indexOf(t),a=ci(i),{nextKey:c,prevKey:u}=di(a,this.#t.orientation.current),d=this.#t.loop.current,l={[c]:o+1,[u]:o-1,[Cn]:0,[On]:s.length-1};if(r){const p=c===Nt?Vt:Nt,w=u===qt?Kt:qt;l[p]=o+1,l[w]=o-1}let g=l[n.key];if(g===void 0)return;n.preventDefault(),g<0&&d?g=s.length-1:g===s.length&&d&&(g=0);const h=s[g];if(h)return h.focus(),this.#e.current=h.id,this.#t.onCandidateFocus?.(h),h}getTabIndex(t){const n=this.getCandidateNodes(),r=this.#e.current!==null;return t&&!r&&n[0]===t?(this.#e.current=t.id,0):t?.id===this.#e.current?0:-1}setCurrentTabStopId(t){this.#e.current=t}focusCurrentTabStop(){const t=this.#e.current;if(!t)return;const n=this.#t.rootNode.current?.querySelector(`#${t}`);!n||!ot(n)||n.focus()}}class mi{#t;#e=null;constructor(t){this.#t=t,Tt(()=>this.#n())}#n(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#n();const n=this.#t.ref.current;if(n){if(typeof n.getAnimations!="function"){this.#r(t);return}this.#e=window.requestAnimationFrame(()=>{const r=n.getAnimations();if(r.length===0){this.#r(t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{this.#r(t)})})}}#r(t){const n=()=>{t()};this.#t.afterTick?nt(n):n()}}class wi{#t;#e;#n;#r=P(!1);constructor(t){this.#t=t,m(this.#r,t.open.current,!0),this.#e=t.enabled??!0,this.#n=new mi({ref:this.#t.ref,afterTick:this.#t.open}),_(()=>this.#t.open.current,n=>{n&&m(this.#r,!0),this.#e&&this.#n.run(()=>{n===this.#t.open.current&&(this.#t.open.current||m(this.#r,!1),this.#t.onComplete?.())})})}get shouldRender(){return f(this.#r)}}function W(){}function bi(e,t){var n=N(),r=R(n);Hr(r,()=>t.children,i=>{var s=N(),o=R(s);j(o,()=>t.children??Z),D(i,s)}),D(e,n)}const vi=new mt("BitsConfig");function yi(){const e=new xi(null,{});return vi.getOr(e).opts}class xi{opts;constructor(t,n){const r=Si(t,n);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function Si(e,t){return n=>v(()=>{const i=n(t)?.current;if(i!==void 0)return i;if(e!==null)return n(e.opts)?.current})}function Fn(e,t){return n=>{const r=yi();return v(()=>{const i=n();if(i!==void 0)return i;const s=e(r).current;return s!==void 0?s:t})}}const Qs=Fn(e=>e.defaultLocale,"en"),Ai=Fn(e=>e.defaultPortalTo,"body");function $s(e,t){J(t,!0);const n=Ai(()=>t.to),r=Cr();let i=A(s);function s(){if(!En||t.disabled)return null;let l=null;return typeof n.current=="string"?l=document.querySelector(n.current):l=n.current,l}let o;function a(){o&&(Pr(o),o=null)}_([()=>f(i),()=>t.disabled],([l,g])=>{if(!l||g){a();return}return o=Er(bi,{target:l,props:{children:t.children},context:r}),()=>{a()}});var c=N(),u=R(c);{var d=l=>{var g=N(),h=R(g);j(h,()=>t.children??Z),D(l,g)};kt(u,l=>{t.disabled&&l(d)})}D(e,c),Q()}class Oi{eventName;options;constructor(t,n={bubbles:!0,cancelable:!0}){this.eventName=t,this.options=n}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,n){const r=this.createEvent(n);return t.dispatchEvent(r),r}listen(t,n,r){const i=s=>{n(s)};return M(t,this.eventName,i,r)}}function Qe(e,t=500){let n=null;const r=(...i)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...i)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Mn(e,t){return e===t||e.contains(t)}function Rn(e){return e?.ownerDocument??document}function Ti(e,t){const{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}const be=[Tn,ce],Ci=[Nt,si,Cn],Dn=[qt,oi,On],Ei=[...Ci,...Dn],Pi={ltr:[...be,Vt],rtl:[...be,Kt]},ta={ltr:[Kt],rtl:[Vt]};function Xt(e){return e.pointerType==="mouse"}function Fi(e,{select:t=!1}={}){if(!e||!e.focus)return;const n=_t(e);if(n.activeElement===e)return;const r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&gi(e)&&t&&e.select()}function Mi(e,{select:t=!1}={},n){const r=n();for(const i of e)if(Fi(i,{select:t}),n()!==r)return!0}var In=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],jt=In.join(","),kn=typeof Element>"u",bt=kn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Zt=!kn&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Lt=function(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=i===""||i==="true",o=s||n&&t&&Lt(t.parentNode);return o},Ri=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Nn=function(t,n,r){if(Lt(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(jt));return n&&bt.call(t,jt)&&i.unshift(t),i=i.filter(r),i},Jt=function(t,n,r){for(var i=[],s=Array.from(t);s.length;){var o=s.shift();if(!Lt(o,!1))if(o.tagName==="SLOT"){var a=o.assignedElements(),c=a.length?a:o.children,u=Jt(c,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var d=bt.call(o,jt);d&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var l=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),g=!Lt(l,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(l&&g){var h=Jt(l===!0?o.children:l.children,!0,r);r.flatten?i.push.apply(i,h):i.push({scopeParent:o,candidates:h})}else s.unshift.apply(s,o.children)}}return i},Ln=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Bn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Ri(t))&&!Ln(t)?0:t.tabIndex},Di=function(t,n){var r=Bn(t);return r<0&&n&&!Ln(t)?0:r},Ii=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Wn=function(t){return t.tagName==="INPUT"},ki=function(t){return Wn(t)&&t.type==="hidden"},Ni=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Li=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Bi=function(t){if(!t.name)return!0;var n=t.form||Zt(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var s=Li(i,t.form);return!s||s===t},Wi=function(t){return Wn(t)&&t.type==="radio"},_i=function(t){return Wi(t)&&!Bi(t)},Ki=function(t){var n,r=t&&Zt(t),i=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var o,a,c;for(s=!!((o=i)!==null&&o!==void 0&&(a=o.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!s&&i;){var u,d,l;r=Zt(i),i=(u=r)===null||u===void 0?void 0:u.host,s=!!((d=i)!==null&&d!==void 0&&(l=d.ownerDocument)!==null&&l!==void 0&&l.contains(i))}}return s},$e=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Vi=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var o=bt.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(bt.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var c=t;t;){var u=t.parentElement,d=Zt(t);if(u&&!u.shadowRoot&&i(u)===!0)return $e(t);t.assignedSlot?t=t.assignedSlot:!u&&d!==t.ownerDocument?t=d.host:t=u}t=c}if(Ki(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return $e(t);return!1},Hi=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return bt.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},Qt=function(t,n){return!(n.disabled||Lt(n)||ki(n)||Vi(n,t)||Ni(n)||Hi(n))},ve=function(t,n){return!(_i(n)||Bn(n)<0||!Qt(t,n))},zi=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},_n=function(t){var n=[],r=[];return t.forEach(function(i,s){var o=!!i.scopeParent,a=o?i.scopeParent:i,c=Di(a,o),u=o?_n(i.candidates):a;c===0?o?n.push.apply(n,u):n.push(a):r.push({documentOrder:s,tabIndex:c,item:i,isScope:o,content:u})}),r.sort(Ii).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),i},[]).concat(n)},Kn=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Jt([t],n.includeContainer,{filter:ve.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:zi}):r=Nn(t,n.includeContainer,ve.bind(null,n)),_n(r)},Vn=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Jt([t],n.includeContainer,{filter:Qt.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Nn(t,n.includeContainer,Qt.bind(null,n)),r},Fe=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return bt.call(t,jt)===!1?!1:ve(n,t)},Ui=In.concat("iframe").join(","),Hn=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return bt.call(t,Ui)===!1?!1:Qt(n,t)};function It(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function Yi(e,t){if(!Fe(e,It()))return Gi(e,t);const n=_t(e),r=Kn(n.body,It());t==="prev"&&r.reverse();const i=r.indexOf(e);return i===-1?n.body:r.slice(i+1)[0]}function Gi(e,t){const n=_t(e);if(!Hn(e,It()))return n.body;const r=Vn(n.body,It());t==="prev"&&r.reverse();const i=r.indexOf(e);return i===-1?n.body:r.slice(i+1).find(o=>Fe(o,It()))??n.body}function ea(e,t){const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function na(e,t){return e>=0&&e<t.length}function ra(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function ia(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function oa(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t+n;return r?i=(i%e.length+e.length)%e.length:i=Math.max(0,Math.min(i,e.length-1)),e[i]}function sa(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let i=t-n;return r?i=(i%e.length+e.length)%e.length:i=Math.max(0,Math.min(i,e.length-1)),e[i]}function zn(e,t,n){const r=t.toLowerCase();if(r.endsWith(" ")){const l=r.slice(0,-1);if(e.filter(w=>w.toLowerCase().startsWith(l)).length<=1)return zn(e,l,n);const h=n?.toLowerCase();if(h&&h.startsWith(l)&&h.charAt(l.length)===" "&&t.trim()===l)return n;const p=e.filter(w=>w.toLowerCase().startsWith(r));if(p.length>0){const w=n?e.indexOf(n):-1;return tn(p,Math.max(w,0)).find(O=>O!==n)||n}}const s=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,o=s.toLowerCase(),a=n?e.indexOf(n):-1;let c=tn(e,Math.max(a,0));s.length===1&&(c=c.filter(l=>l!==n));const d=c.find(l=>l?.toLowerCase().startsWith(o));return d!==n?d:void 0}function tn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const qi={afterMs:1e4,onChange:W};function Un(e,t){const{afterMs:n,onChange:r,getWindow:i}={...qi,...t};let s=null,o=P(Dt(e));function a(){return i().setTimeout(()=>{m(o,e,!0),r?.(e)},n)}return B(()=>()=>{s&&i().clearTimeout(s)}),v(()=>f(o),c=>{m(o,c,!0),r?.(c),s&&i().clearTimeout(s),s=a()})}class Xi{#t;#e;#n=A(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#r=A(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=Un("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){if(!n.length)return;this.#e.current=this.#e.current+t;const r=f(this.#r)(),i=n.find(c=>c===r)?.textContent?.trim()??"",s=n.map(c=>c.textContent?.trim()??""),o=zn(s,this.#e.current,i),a=n.find(c=>c.textContent?.trim()===o);return a&&f(this.#n)(a),a}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class ji{#t;#e;#n;#r=P(null);constructor(t){this.#t=t,this.#e=A(()=>this.#t.enabled()),this.#n=Un(!1,{afterMs:t.transitTimeout??300,onChange:n=>{f(this.#e)&&this.#t.setIsPointerInTransit?.(n)},getWindow:()=>Ee(this.#t.triggerNode())}),_([t.triggerNode,t.contentNode,t.enabled],([n,r,i])=>{if(!n||!r||!i)return;const s=a=>{this.#o(a,r)},o=a=>{this.#o(a,n)};return xt(M(n,"pointerleave",s),M(r,"pointerleave",o))}),_(()=>f(this.#r),()=>{const n=i=>{if(!f(this.#r))return;const s=i.target;if(!we(s))return;const o={x:i.clientX,y:i.clientY},a=t.triggerNode()?.contains(s)||t.contentNode()?.contains(s),c=!$i(o,f(this.#r));a?this.#i():c&&(this.#i(),t.onPointerExit())},r=_t(t.triggerNode()??t.contentNode());if(r)return M(r,"pointermove",n)})}#i(){m(this.#r,null),this.#n.current=!1}#o(t,n){const r=t.currentTarget;if(!ot(r))return;const i={x:t.clientX,y:t.clientY},s=Zi(i,r.getBoundingClientRect()),o=Ji(i,s),a=Qi(n.getBoundingClientRect()),c=to([...o,...a]);m(this.#r,c,!0),this.#n.current=!0}}function Zi(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ji(e,t,n=5){const r=n*1.5;switch(t){case"top":return[{x:e.x-n,y:e.y+n},{x:e.x,y:e.y-r},{x:e.x+n,y:e.y+n}];case"bottom":return[{x:e.x-n,y:e.y-n},{x:e.x,y:e.y+r},{x:e.x+n,y:e.y-n}];case"left":return[{x:e.x+n,y:e.y-n},{x:e.x-r,y:e.y},{x:e.x+n,y:e.y+n}];case"right":return[{x:e.x-n,y:e.y-n},{x:e.x+r,y:e.y},{x:e.x-n,y:e.y+n}]}}function Qi(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function $i(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s].x,c=t[s].y,u=t[o].x,d=t[o].y;c>r!=d>r&&n<(u-a)*(r-c)/(d-c)+a&&(i=!i)}return i}function to(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),eo(t)}function eo(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const no="data-context-menu-trigger",ro="data-context-menu-content",Me=new mt("Menu.Root"),At=new mt("Menu.Root | Menu.Sub"),Re=new mt("Menu.Content"),io=new mt("Menu.Group | Menu.RadioGroup"),Yn=new Oi("bitsmenuopen",{bubbles:!1,cancelable:!0}),oo=Br({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class Gn{static create(t){const n=new Gn(t);return Me.set(n)}opts;isUsingKeyboard=new ht;#t=P(!1);get ignoreCloseAutoFocus(){return f(this.#t)}set ignoreCloseAutoFocus(t){m(this.#t,t,!0)}#e=P(!1);get isPointerInTransit(){return f(this.#e)}set isPointerInTransit(t){m(this.#e,t,!0)}constructor(t){this.opts=t}getBitsAttr=t=>oo.getAttr(t,this.opts.variant.current)}class De{static create(t,n){return At.set(new De(t,n,null))}opts;root;parentMenu;contentId=v(()=>"");#t=P(null);get contentNode(){return f(this.#t)}set contentNode(t){m(this.#t,t,!0)}contentPresence;#e=P(null);get triggerNode(){return f(this.#e)}set triggerNode(t){m(this.#e,t,!0)}constructor(t,n,r){this.opts=t,this.root=n,this.parentMenu=r,this.contentPresence=new wi({ref:v(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),r&&_(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class qn{static create(t){return Re.set(new qn(t,At.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#t=P("");get search(){return f(this.#t)}set search(t){m(this.#t,t,!0)}#e=0;#n;#r=P(!1);get mounted(){return f(this.#r)}set mounted(t){m(this.#r,t,!0)}#i;constructor(t,n){this.opts=t,this.parentMenu=n,this.domContext=new Pe(t.ref),this.attachment=ut(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=t.id,this.#i=t.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new ji({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),this.#n=new Xi({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new pi({rootNode:v(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:v(()=>"vertical")}),_(()=>this.parentMenu.contentNode,r=>{if(!r)return;const i=()=>{nt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return Yn.listen(r,i)}),B(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#e)})}#o(){const t=this.parentMenu.contentNode;return t?Array.from(t.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#a(){return this.parentMenu.root.isPointerInTransit}onCloseAutoFocus=t=>{this.opts.onCloseAutoFocus.current?.(t),!(t.defaultPrevented||this.#i)&&this.parentMenu.triggerNode&&Fe(this.parentMenu.triggerNode)&&(t.preventDefault(),this.parentMenu.triggerNode.focus())};handleTabKeyDown(t){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;t.preventDefault();const r=Yi(n.triggerNode,t.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),nt(()=>{r.focus(),nt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(t){if(t.defaultPrevented)return;if(t.key===ai){this.handleTabKeyDown(t);return}const n=t.target,r=t.currentTarget;if(!ot(n)||!ot(r))return;const i=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,s=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,t)||t.code==="Space")return;const c=this.#o();i&&!s&&o&&this.#n(t.key,c),t.target?.id===this.parentMenu.contentId.current&&Ei.includes(t.key)&&(t.preventDefault(),Dn.includes(t.key)&&c.reverse(),Mi(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){we(t.currentTarget)&&we(t.target)&&(t.currentTarget.contains?.(t.target)||(this.domContext.getWindow().clearTimeout(this.#e),this.search=""))}onfocus(t){this.parentMenu.root.isUsingKeyboard.current&&nt(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#a()}onItemLeave(t){if(t.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#a()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#a()}handleInteractOutside(t){if(!Pn(t.target))return;const n=this.parentMenu.triggerNode?.id;if(t.target.id===n){t.preventDefault();return}t.target.closest(`#${n}`)&&t.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=A(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return f(this.#s)}set snippetProps(t){m(this.#s,t)}#c=A(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Te(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto"},...this.attachment}));get props(){return f(this.#c)}set props(t){m(this.#c,t)}popperProps={onCloseAutoFocus:t=>this.onCloseAutoFocus(t)}}class Xn{opts;content;attachment;#t=P(!1);constructor(t,n){this.opts=t,this.content=n,this.attachment=ut(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(t){if(!t.defaultPrevented&&Xt(t))if(this.opts.disabled.current)this.content.onItemLeave(t);else{if(this.content.onItemEnter())return;const r=t.currentTarget;if(!ot(r))return;r.focus()}}onpointerleave(t){t.defaultPrevented||Xt(t)&&this.content.onItemLeave(t)}onfocus(t){nt(()=>{t.defaultPrevented||this.opts.disabled.current||m(this.#t,!0)})}onblur(t){nt(()=>{t.defaultPrevented||m(this.#t,!1)})}#e=A(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":Ce(this.opts.disabled.current),"data-disabled":vn(this.opts.disabled.current),"data-highlighted":f(this.#t)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return f(this.#e)}set props(t){m(this.#e,t)}}class jn{static create(t){const n=new Xn(t,Re.get());return new jn(t,n)}opts;item;root;#t=!1;constructor(t,n){this.opts=t,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#e(){if(this.item.opts.disabled.current)return;const t=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(t),t.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(t){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&t.key===ce)&&be.includes(t.key)){if(!ot(t.currentTarget))return;t.currentTarget.click(),t.preventDefault()}}onclick(t){this.item.opts.disabled.current||this.#e()}onpointerup(t){if(!t.defaultPrevented&&!this.#t){if(!ot(t.currentTarget))return;t.currentTarget?.click()}}onpointerdown(t){this.#t=!0}#n=A(()=>ae(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return f(this.#n)}set props(t){m(this.#n,t)}}class Zn{static create(t){const n=Re.get(),r=new Xn(t,n),i=At.get();return new Zn(t,r,n,i)}opts;item;content;submenu;attachment;#t=null;constructor(t,n,r,i){this.opts=t,this.item=n,this.content=r,this.submenu=i,this.attachment=ut(this.opts.ref,s=>this.submenu.triggerNode=s),this.onpointerleave=this.onpointerleave.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),Tt(()=>{this.#e()})}#e(){this.#t!==null&&(this.content.domContext.getWindow().clearTimeout(this.#t),this.#t=null)}onpointermove(t){Xt(t)&&!this.item.opts.disabled.current&&!this.submenu.opts.open.current&&!this.#t&&!this.content.parentMenu.root.isPointerInTransit&&(this.#t=this.content.domContext.setTimeout(()=>{this.submenu.onOpen(),this.#e()},this.opts.openDelay.current))}onpointerleave(t){Xt(t)&&this.#e()}onkeydown(t){const n=this.content.search!=="";this.item.opts.disabled.current||n&&t.key===ce||Pi[this.submenu.root.opts.dir.current].includes(t.key)&&(t.currentTarget.click(),t.preventDefault())}onclick(t){if(this.item.opts.disabled.current||!ot(t.currentTarget))return;t.currentTarget.focus();const n=new CustomEvent("menusubtriggerselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(n),this.submenu.opts.open.current||(this.submenu.onOpen(),nt(()=>{const r=this.submenu.contentNode;r&&Yn.dispatch(r)}))}#n=A(()=>ae({"aria-haspopup":"menu","aria-expanded":Ce(this.submenu.opts.open.current),"data-state":Te(this.submenu.opts.open.current),"aria-controls":this.submenu.opts.open.current?this.submenu.contentId.current:void 0,[this.submenu.root.getBitsAttr("sub-trigger")]:"",onclick:this.onclick,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onkeydown:this.onkeydown,...this.attachment},this.item.props));get props(){return f(this.#n)}set props(t){m(this.#n,t)}}class Jn{static create(t){return io.set(new Jn(t,Me.get()))}opts;root;attachment;#t=P(void 0);get groupHeadingId(){return f(this.#t)}set groupHeadingId(t){m(this.#t,t,!0)}constructor(t,n){this.opts=t,this.root=n,this.attachment=ut(this.opts.ref)}#e=A(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.groupHeadingId,[this.root.getBitsAttr("group")]:"",...this.attachment}));get props(){return f(this.#e)}set props(t){m(this.#e,t)}}class Qn{static create(t){return new Qn(t,Me.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=ut(this.opts.ref)}#t=A(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return f(this.#t)}set props(t){m(this.#t,t)}}class $n{static create(t){return new $n(t,At.get())}opts;parentMenu;attachment;constructor(t,n){this.opts=t,this.parentMenu=n,this.attachment=ut(this.opts.ref,r=>this.parentMenu.triggerNode=r)}onclick=t=>{this.opts.disabled.current||t.detail!==0||(this.parentMenu.toggleOpen(),t.preventDefault())};onpointerdown=t=>{if(!this.opts.disabled.current){if(t.pointerType==="touch")return t.preventDefault();t.button===0&&t.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||t.preventDefault())}};onpointerup=t=>{this.opts.disabled.current||t.pointerType==="touch"&&(t.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=t=>{if(!this.opts.disabled.current){if(t.key===ce||t.key===Tn){this.parentMenu.toggleOpen(),t.preventDefault();return}t.key===Nt&&(this.parentMenu.onOpen(),t.preventDefault())}};#t=A(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#e=A(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":Ce(this.parentMenu.opts.open.current),"aria-controls":f(this.#t),"data-disabled":vn(this.opts.disabled.current),"data-state":Te(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return f(this.#e)}set props(t){m(this.#e,t)}}class aa{static create(t){const n=At.get();return At.set(new De(t,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;class Ie{static create(t){return new Ie(t)}opts;#t;#e;#n={pointerdown:!1};#r=!1;#i=!1;#o=void 0;#a;#s=W;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,B(()=>{this.#o=Rn(this.opts.ref.current)});let n=W;const r=()=>{this.#f(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),n()};_([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return Zr(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),n(),n=this.#d())}),r}),Tt(()=>{this.#f.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#u.destroy(),this.#s(),n()})}#c=t=>{t.defaultPrevented||this.opts.ref.current&&nt(()=>{!this.opts.ref.current||this.#m(t.target)||t.target&&!this.#i&&this.#a.current?.(t)})};#d(){return xt(M(this.#o,"pointerdown",xt(this.#h,this.#p),{capture:!0}),M(this.#o,"pointerdown",xt(this.#g,this.#u)),M(this.#o,"focusin",this.#c))}#l=t=>{let n=t;n.defaultPrevented&&(n=en(t)),this.#t.current(t)};#u=Qe(t=>{if(!this.opts.ref.current){this.#s();return}const n=this.opts.isValidEvent.current(t,this.opts.ref.current)||co(t,this.opts.ref.current);if(!this.#r||this.#w()||!n){this.#s();return}let r=t;if(r.defaultPrevented&&(r=en(r)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=M(this.#o,"click",this.#l,{once:!0})):this.#t.current(r)},10);#h=t=>{this.#n[t.type]=!0};#g=t=>{this.#n[t.type]=!1};#p=()=>{this.opts.ref.current&&(this.#r=ao(this.opts.ref.current))};#m=t=>this.opts.ref.current?Mn(this.opts.ref.current,t):!1;#f=Qe(()=>{for(const t in this.#n)this.#n[t]=!1;this.#r=!1},20);#w(){return Object.values(this.#n).some(Boolean)}#b=()=>{this.#i=!0};#v=()=>{this.#i=!1};props={onfocuscapture:this.#b,onblurcapture:this.#v}}function so(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function ao(e){const t=[...globalThis.bitsDismissableLayers],n=so(t);if(n)return n[0].opts.ref.current===e;const[r]=t[0];return r.opts.ref.current===e}function co(e,t){const n=e.target;if(!Pn(n))return!1;const r=!!n.closest(`[${no}]`);if("button"in e&&e.button>0&&!r)return!1;if("button"in e&&e.button===0&&r)return!0;const i=!!t.closest(`[${ro}]`);return r&&i?!1:Rn(n).documentElement.contains(n)&&!Mn(t,n)&&Ti(e,t)}function en(e){const t=e.currentTarget,n=e.target;let r;e instanceof PointerEvent?r=new PointerEvent(e.type,e):r=new PointerEvent("pointerdown",e);let i=!1;return new Proxy(r,{get:(o,a)=>a==="currentTarget"?t:a==="target"?n:a==="preventDefault"?()=>{i=!0,typeof o.preventDefault=="function"&&o.preventDefault()}:a==="defaultPrevented"?i:a in o?o[a]:e[a]})}function uo(e,t){J(t,!0);let n=b(t,"interactOutsideBehavior",3,"close"),r=b(t,"onInteractOutside",3,W),i=b(t,"onFocusOutside",3,W),s=b(t,"isValidEvent",3,()=>!1);const o=Ie.create({id:v(()=>t.id),interactOutsideBehavior:v(()=>n()),onInteractOutside:v(()=>r()),enabled:v(()=>t.enabled),onFocusOutside:v(()=>i()),isValidEvent:v(()=>s()),ref:t.ref});var a=N(),c=R(a);j(c,()=>t.children??Z,()=>({props:o.props})),D(e,a),Q()}globalThis.bitsEscapeLayers??=new Map;class ke{static create(t){return new ke(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new Pe(this.opts.ref);let n=W;_(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),n=this.#t()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>M(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==ii||!lo(this))return;const n=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function lo(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast(([i,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===e;const[r]=t[0];return r===e}function fo(e,t){J(t,!0);let n=b(t,"escapeKeydownBehavior",3,"close"),r=b(t,"onEscapeKeydown",3,W);ke.create({escapeKeydownBehavior:v(()=>n()),onEscapeKeydown:v(()=>r()),enabled:v(()=>t.enabled),ref:t.ref});var i=N(),s=R(i);j(s,()=>t.children??Z),D(e,i),Q()}class Ne{static instance;#t=ct([]);#e=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new Ne),this.instance}register(t){const n=this.getActive();n&&n!==t&&n.pause();const r=document.activeElement;r&&r!==document.body&&this.#n.set(t,r),this.#t.current=this.#t.current.filter(i=>i!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(r=>r!==t);const n=this.getActive();n&&n.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,n){this.#e.set(t,n)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,n){this.#n.set(t,n)}getPreFocusMemory(t){return this.#n.get(t)}clearPreFocusMemory(t){this.#n.delete(t)}}class Le{#t=!1;#e=null;#n=Ne.getInstance();#r=[];#i;constructor(t){this.#i=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#o(){for(const t of this.#r)t();this.#r=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#n.register(this),this.#c(),this.#a()}unmount(){this.#e&&(this.#o(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#e=null)}#a(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const n=this.#l();n?(n.focus(),this.#n.setFocusMemory(this,n)):this.#e.focus()})}#s(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}}#c(){if(!this.#e||!this.#i.trap.current)return;const t=this.#e,n=t.ownerDocument,r=o=>{if(this.#t||!this.#n.isActiveScope(this))return;const a=o.target;if(!a)return;if(t.contains(a))this.#n.setFocusMemory(this,a);else{const u=this.#n.getFocusMemory(this);if(u&&t.contains(u)&&Hn(u))o.preventDefault(),u.focus();else{const d=this.#l(),l=this.#u()[0];(d||l||t).focus()}}},i=o=>{if(!this.#i.loop||this.#t||o.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#d();if(a.length<2)return;const c=a[0],u=a[a.length-1];!o.shiftKey&&n.activeElement===u?(o.preventDefault(),c.focus()):o.shiftKey&&n.activeElement===c&&(o.preventDefault(),u.focus())};this.#r.push(M(n,"focusin",r,{capture:!0}),M(t,"keydown",i));const s=new MutationObserver(()=>{const o=this.#n.getFocusMemory(this);if(o&&!t.contains(o)){const a=this.#l(),c=this.#u()[0],u=a||c;u?(u.focus(),this.#n.setFocusMemory(this,u)):t.focus()}});s.observe(t,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#d(){return this.#e?Kn(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#l(){return this.#d()[0]||null}#u(){return this.#e?Vn(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return _([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||(n=new Le(t)),n.mount(r)):n&&(n.unmount(),n=null)}),Tt(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function ho(e,t){J(t,!0);let n=b(t,"enabled",3,!1),r=b(t,"trapFocus",3,!1),i=b(t,"loop",3,!1),s=b(t,"onCloseAutoFocus",3,W),o=b(t,"onOpenAutoFocus",3,W);const a=Le.use({enabled:v(()=>n()),trap:v(()=>r()),loop:i(),onCloseAutoFocus:v(()=>s()),onOpenAutoFocus:v(()=>o()),ref:t.ref});var c=N(),u=R(c);j(u,()=>t.focusScope??Z,()=>({props:a.props})),D(e,c),Q()}globalThis.bitsTextSelectionLayers??=new Map;class Be{static create(t){return new Be(t)}opts;domContext;#t=W;constructor(t){this.opts=t,this.domContext=new Pe(t.ref);let n=W;_(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#e()),()=>{n(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return xt(M(this.domContext.getDocument(),"pointerdown",this.#n),M(this.domContext.getDocument(),"pointerup",Wr(this.#r,this.opts.onPointerUp.current)))}#n=t=>{const n=this.opts.ref.current,r=t.target;!ot(n)||!ot(r)||!this.opts.enabled.current||!po(this)||!ni(n,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=go(n,this.domContext.getDocument().body)))};#r=()=>{this.#t(),this.#t=W}}const nn=e=>e.style.userSelect||e.style.webkitUserSelect;function go(e,t){const n=nn(t),r=nn(e);return zt(t,"none"),zt(e,"text"),()=>{zt(t,n),zt(e,r)}}function zt(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function po(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function mo(e,t){J(t,!0);let n=b(t,"preventOverflowTextSelection",3,!0),r=b(t,"onPointerDown",3,W),i=b(t,"onPointerUp",3,W);Be.create({id:v(()=>t.id),onPointerDown:v(()=>r()),onPointerUp:v(()=>i()),enabled:v(()=>t.enabled&&n()),ref:t.ref});var s=N(),o=R(s);j(o,()=>t.children??Z),D(e,s),Q()}globalThis.bitsIdCounter??={current:0};function We(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}class wo{#t;#e=0;#n=P();#r;constructor(t){this.#t=t}#i(){this.#e-=1,this.#r&&this.#e<=0&&(this.#r(),m(this.#n,void 0),this.#r=void 0)}get(...t){return this.#e+=1,f(this.#n)===void 0&&(this.#r=wn(()=>{m(this.#n,this.#t(...t),!0)})),B(()=>()=>{this.#i()}),f(this.#n)}}const Gt=new zr;let Ut=P(null),he=null,Ft=null,Mt=!1;const rn=v(()=>{for(const e of Gt.values())if(e)return!0;return!1});let ge=null;const bo=new wo(()=>{function e(){document.body.setAttribute("style",f(Ut)??""),document.body.style.removeProperty("--scrollbar-width"),Je&&he?.(),m(Ut,null)}function t(){Ft!==null&&(window.clearTimeout(Ft),Ft=null)}function n(i,s){t(),Mt=!0,ge=Date.now();const o=ge,a=()=>{Ft=null,ge===o&&(tr(Gt)?Mt=!1:(Mt=!1,s()))},c=i===null?24:i;Ft=window.setTimeout(a,c)}function r(){f(Ut)===null&&Gt.size===0&&!Mt&&m(Ut,document.body.getAttribute("style"),!0)}return _(()=>rn.current,()=>{if(!rn.current)return;r(),Mt=!1;const i=getComputedStyle(document.body),s=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(i.paddingRight??"0",10)+s,margin:Number.parseInt(i.marginRight??"0",10)};s>0&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty("--scrollbar-width",`${s}px`),document.body.style.overflow="hidden"),Je&&(he=M(document,"touchmove",c=>{c.target===document.documentElement&&(c.touches.length>1||c.preventDefault())},{passive:!1})),nt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Tt(()=>()=>{he?.()}),{get lockMap(){return Gt},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});class vo{#t=We();#e;#n=()=>null;#r;locked;constructor(t,n=()=>null){this.#e=t,this.#n=n,this.#r=bo.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#t,this.#e??!1),this.locked=v(()=>this.#r.lockMap.get(this.#t)??!1,r=>this.#r.lockMap.set(this.#t,r)),Tt(()=>{if(this.#r.lockMap.delete(this.#t),tr(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function tr(e){for(const[t,n]of e)if(n)return!0;return!1}function on(e,t){J(t,!0);let n=b(t,"preventScroll",3,!0),r=b(t,"restoreScrollDelay",3,null);n()&&new vo(n(),()=>r()),Q()}const yo=["top","right","bottom","left"],gt=Math.min,V=Math.max,$t=Math.round,Yt=Math.floor,it=e=>({x:e,y:e}),xo={left:"right",right:"left",bottom:"top",top:"bottom"},So={start:"end",end:"start"};function ye(e,t,n){return V(e,gt(t,n))}function lt(e,t){return typeof e=="function"?e(t):e}function dt(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function _e(e){return e==="x"?"y":"x"}function Ke(e){return e==="y"?"height":"width"}const Ao=new Set(["top","bottom"]);function rt(e){return Ao.has(dt(e))?"y":"x"}function Ve(e){return _e(rt(e))}function Oo(e,t,n){n===void 0&&(n=!1);const r=Ct(e),i=Ve(e),s=Ke(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=te(o)),[o,te(o)]}function To(e){const t=te(e);return[xe(e),t,xe(t)]}function xe(e){return e.replace(/start|end/g,t=>So[t])}const sn=["left","right"],an=["right","left"],Co=["top","bottom"],Eo=["bottom","top"];function Po(e,t,n){switch(e){case"top":case"bottom":return n?t?an:sn:t?sn:an;case"left":case"right":return t?Co:Eo;default:return[]}}function Fo(e,t,n,r){const i=Ct(e);let s=Po(dt(e),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(xe)))),s}function te(e){return e.replace(/left|right|bottom|top/g,t=>xo[t])}function Mo(e){return{top:0,right:0,bottom:0,left:0,...e}}function er(e){return typeof e!="number"?Mo(e):{top:e,right:e,bottom:e,left:e}}function ee(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function cn(e,t,n){let{reference:r,floating:i}=e;const s=rt(t),o=Ve(t),a=Ke(o),c=dt(t),u=s==="y",d=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2,g=r[a]/2-i[a]/2;let h;switch(c){case"top":h={x:d,y:r.y-i.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:l};break;case"left":h={x:r.x-i.width,y:l};break;default:h={x:r.x,y:r.y}}switch(Ct(t)){case"start":h[o]-=g*(n&&u?-1:1);break;case"end":h[o]+=g*(n&&u?-1:1);break}return h}const Ro=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:l}=cn(u,r,c),g=r,h={},p=0;for(let w=0;w<a.length;w++){const{name:y,fn:S}=a[w],{x:O,y:x,data:T,reset:C}=await S({x:d,y:l,initialPlacement:r,placement:g,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});d=O??d,l=x??l,h={...h,[y]:{...h[y],...T}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):C.rects),{x:d,y:l}=cn(u,g,c)),w=-1)}return{x:d,y:l,placement:g,strategy:i,middlewareData:h}};async function Bt(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:o,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:l="floating",altBoundary:g=!1,padding:h=0}=lt(t,e),p=er(h),y=a[g?l==="floating"?"reference":"floating":l],S=ee(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),O=l==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),T=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},C=ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:x,strategy:c}):O);return{top:(S.top-C.top+p.top)/T.y,bottom:(C.bottom-S.bottom+p.bottom)/T.y,left:(S.left-C.left+p.left)/T.x,right:(C.right-S.right+p.right)/T.x}}const Do=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:o,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=lt(e,t)||{};if(u==null)return{};const l=er(d),g={x:n,y:r},h=Ve(i),p=Ke(h),w=await o.getDimensions(u),y=h==="y",S=y?"top":"left",O=y?"bottom":"right",x=y?"clientHeight":"clientWidth",T=s.reference[p]+s.reference[h]-g[h]-s.floating[p],C=g[h]-s.reference[h],F=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let E=F?F[x]:0;(!E||!await(o.isElement==null?void 0:o.isElement(F)))&&(E=a.floating[x]||s.floating[p]);const I=T/2-C/2,U=E/2-w[p]/2-1,L=gt(l[S],U),$=gt(l[O],U),z=L,tt=E-w[p]-$,k=E/2-w[p]/2+I,et=ye(z,k,tt),Y=!c.arrow&&Ct(i)!=null&&k!==et&&s.reference[p]/2-(k<z?L:$)-w[p]/2<0,K=Y?k<z?k-z:k-tt:0;return{[h]:g[h]+K,data:{[h]:et,centerOffset:k-et-K,...Y&&{alignmentOffset:K}},reset:Y}}}),Io=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:w=!0,...y}=lt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=dt(i),O=rt(a),x=dt(a)===a,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),C=g||(x||!w?[te(a)]:To(a)),F=p!=="none";!g&&F&&C.push(...Fo(a,w,p,T));const E=[a,...C],I=await Bt(t,y),U=[];let L=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&U.push(I[S]),l){const k=Oo(i,o,T);U.push(I[k[0]],I[k[1]])}if(L=[...L,{placement:i,overflows:U}],!U.every(k=>k<=0)){var $,z;const k=((($=s.flip)==null?void 0:$.index)||0)+1,et=E[k];if(et&&(!(l==="alignment"?O!==rt(et):!1)||L.every(G=>rt(G.placement)===O?G.overflows[0]>0:!0)))return{data:{index:k,overflows:L},reset:{placement:et}};let Y=(z=L.filter(K=>K.overflows[0]<=0).sort((K,G)=>K.overflows[1]-G.overflows[1])[0])==null?void 0:z.placement;if(!Y)switch(h){case"bestFit":{var tt;const K=(tt=L.filter(G=>{if(F){const ft=rt(G.placement);return ft===O||ft==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(ft=>ft>0).reduce((ft,gr)=>ft+gr,0)]).sort((G,ft)=>G[1]-ft[1])[0])==null?void 0:tt[0];K&&(Y=K);break}case"initialPlacement":Y=a;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};function un(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ln(e){return yo.some(t=>e[t]>=0)}const ko=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=lt(e,t);switch(r){case"referenceHidden":{const s=await Bt(t,{...i,elementContext:"reference"}),o=un(s,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ln(o)}}}case"escaped":{const s=await Bt(t,{...i,altBoundary:!0}),o=un(s,n.floating);return{data:{escapedOffsets:o,escaped:ln(o)}}}default:return{}}}}},nr=new Set(["left","top"]);async function No(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=dt(n),a=Ct(n),c=rt(n)==="y",u=nr.has(o)?-1:1,d=s&&c?-1:1,l=lt(t,e);let{mainAxis:g,crossAxis:h,alignmentAxis:p}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),c?{x:h*d,y:g*u}:{x:g*u,y:h*d}}const Lo=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:o,middlewareData:a}=t,c=await No(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:s+c.y,data:{...c,placement:o}}}}},Bo=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:y=>{let{x:S,y:O}=y;return{x:S,y:O}}},...c}=lt(e,t),u={x:n,y:r},d=await Bt(t,c),l=rt(dt(i)),g=_e(l);let h=u[g],p=u[l];if(s){const y=g==="y"?"top":"left",S=g==="y"?"bottom":"right",O=h+d[y],x=h-d[S];h=ye(O,h,x)}if(o){const y=l==="y"?"top":"left",S=l==="y"?"bottom":"right",O=p+d[y],x=p-d[S];p=ye(O,p,x)}const w=a.fn({...t,[g]:h,[l]:p});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:s,[l]:o}}}}}},Wo=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=lt(e,t),d={x:n,y:r},l=rt(i),g=_e(l);let h=d[g],p=d[l];const w=lt(a,t),y=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(c){const x=g==="y"?"height":"width",T=s.reference[g]-s.floating[x]+y.mainAxis,C=s.reference[g]+s.reference[x]-y.mainAxis;h<T?h=T:h>C&&(h=C)}if(u){var S,O;const x=g==="y"?"width":"height",T=nr.has(dt(i)),C=s.reference[l]-s.floating[x]+(T&&((S=o.offset)==null?void 0:S[l])||0)+(T?0:y.crossAxis),F=s.reference[l]+s.reference[x]+(T?0:((O=o.offset)==null?void 0:O[l])||0)-(T?y.crossAxis:0);p<C?p=C:p>F&&(p=F)}return{[g]:h,[l]:p}}}},_o=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:c=()=>{},...u}=lt(e,t),d=await Bt(t,u),l=dt(i),g=Ct(i),h=rt(i)==="y",{width:p,height:w}=s.floating;let y,S;l==="top"||l==="bottom"?(y=l,S=g===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(S=l,y=g==="end"?"top":"bottom");const O=w-d.top-d.bottom,x=p-d.left-d.right,T=gt(w-d[y],O),C=gt(p-d[S],x),F=!t.middlewareData.shift;let E=T,I=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=O),F&&!g){const L=V(d.left,0),$=V(d.right,0),z=V(d.top,0),tt=V(d.bottom,0);h?I=p-2*(L!==0||$!==0?L+$:V(d.left,d.right)):E=w-2*(z!==0||tt!==0?z+tt:V(d.top,d.bottom))}await c({...t,availableWidth:I,availableHeight:E});const U=await o.getDimensions(a.floating);return p!==U.width||w!==U.height?{reset:{rects:!0}}:{}}}};function ue(){return typeof window<"u"}function Et(e){return rr(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function at(e){var t;return(t=(rr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rr(e){return ue()?e instanceof Node||e instanceof H(e).Node:!1}function q(e){return ue()?e instanceof Element||e instanceof H(e).Element:!1}function st(e){return ue()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function dn(e){return!ue()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}const Ko=new Set(["inline","contents"]);function Ht(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Ko.has(i)}const Vo=new Set(["table","td","th"]);function Ho(e){return Vo.has(Et(e))}const zo=[":popover-open",":modal"];function le(e){return zo.some(t=>{try{return e.matches(t)}catch{return!1}})}const Uo=["transform","translate","scale","rotate","perspective"],Yo=["transform","translate","scale","rotate","perspective","filter"],Go=["paint","layout","strict","content"];function He(e){const t=ze(),n=q(e)?X(e):e;return Uo.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Yo.some(r=>(n.willChange||"").includes(r))||Go.some(r=>(n.contain||"").includes(r))}function qo(e){let t=pt(e);for(;st(t)&&!Ot(t);){if(He(t))return t;if(le(t))return null;t=pt(t)}return null}function ze(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xo=new Set(["html","body","#document"]);function Ot(e){return Xo.has(Et(e))}function X(e){return H(e).getComputedStyle(e)}function de(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Et(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dn(e)&&e.host||at(e);return dn(t)?t.host:t}function ir(e){const t=pt(e);return Ot(t)?e.ownerDocument?e.ownerDocument.body:e.body:st(t)&&Ht(t)?t:ir(t)}function Wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=ir(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),o=H(i);if(s){const a=Se(o);return t.concat(o,o.visualViewport||[],Ht(i)?i:[],a&&n?Wt(a):[])}return t.concat(i,Wt(i,[],n))}function Se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function or(e){const t=X(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=st(e),s=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=$t(n)!==s||$t(r)!==o;return a&&(n=s,r=o),{width:n,height:r,$:a}}function Ue(e){return q(e)?e:e.contextElement}function St(e){const t=Ue(e);if(!st(t))return it(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=or(t);let o=(s?$t(n.width):n.width)/r,a=(s?$t(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const jo=it(0);function sr(e){const t=H(e);return!ze()||!t.visualViewport?jo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zo(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function vt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Ue(e);let o=it(1);t&&(r?q(r)&&(o=St(r)):o=St(e));const a=Zo(s,n,r)?sr(s):it(0);let c=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,d=i.width/o.x,l=i.height/o.y;if(s){const g=H(s),h=r&&q(r)?H(r):r;let p=g,w=Se(p);for(;w&&r&&h!==p;){const y=St(w),S=w.getBoundingClientRect(),O=X(w),x=S.left+(w.clientLeft+parseFloat(O.paddingLeft))*y.x,T=S.top+(w.clientTop+parseFloat(O.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,l*=y.y,c+=x,u+=T,p=H(w),w=Se(p)}}return ee({width:d,height:l,x:c,y:u})}function fe(e,t){const n=de(e).scrollLeft;return t?t.left+n:vt(at(e)).left+n}function ar(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-fe(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Jo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",o=at(r),a=t?le(t.floating):!1;if(r===o||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=it(1);const d=it(0),l=st(r);if((l||!l&&!s)&&((Et(r)!=="body"||Ht(o))&&(c=de(r)),st(r))){const h=vt(r);u=St(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const g=o&&!l&&!s?ar(o,c):it(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-c.scrollTop*u.y+d.y+g.y}}function Qo(e){return Array.from(e.getClientRects())}function $o(e){const t=at(e),n=de(e),r=e.ownerDocument.body,i=V(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=V(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+fe(e);const a=-n.scrollTop;return X(r).direction==="rtl"&&(o+=V(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:a}}const fn=25;function ts(e,t){const n=H(e),r=at(e),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,a=0,c=0;if(i){s=i.width,o=i.height;const d=ze();(!d||d&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}const u=fe(r);if(u<=0){const d=r.ownerDocument,l=d.body,g=getComputedStyle(l),h=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,p=Math.abs(r.clientWidth-l.clientWidth-h);p<=fn&&(s-=p)}else u<=fn&&(s+=u);return{width:s,height:o,x:a,y:c}}const es=new Set(["absolute","fixed"]);function ns(e,t){const n=vt(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=st(e)?St(e):it(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,c=i*s.x,u=r*s.y;return{width:o,height:a,x:c,y:u}}function hn(e,t,n){let r;if(t==="viewport")r=ts(e,n);else if(t==="document")r=$o(at(e));else if(q(t))r=ns(t,n);else{const i=sr(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ee(r)}function cr(e,t){const n=pt(e);return n===t||!q(n)||Ot(n)?!1:X(n).position==="fixed"||cr(n,t)}function rs(e,t){const n=t.get(e);if(n)return n;let r=Wt(e,[],!1).filter(a=>q(a)&&Et(a)!=="body"),i=null;const s=X(e).position==="fixed";let o=s?pt(e):e;for(;q(o)&&!Ot(o);){const a=X(o),c=He(o);!c&&a.position==="fixed"&&(i=null),(s?!c&&!i:!c&&a.position==="static"&&!!i&&es.has(i.position)||Ht(o)&&!c&&cr(e,o))?r=r.filter(d=>d!==o):i=a,o=pt(o)}return t.set(e,r),r}function is(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?le(t)?[]:rs(t,this._c):[].concat(n),r],a=o[0],c=o.reduce((u,d)=>{const l=hn(t,d,i);return u.top=V(l.top,u.top),u.right=gt(l.right,u.right),u.bottom=gt(l.bottom,u.bottom),u.left=V(l.left,u.left),u},hn(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function os(e){const{width:t,height:n}=or(e);return{width:t,height:n}}function ss(e,t,n){const r=st(t),i=at(t),s=n==="fixed",o=vt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=it(0);function u(){c.x=fe(i)}if(r||!r&&!s)if((Et(t)!=="body"||Ht(i))&&(a=de(t)),r){const h=vt(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();s&&!r&&i&&u();const d=i&&!r&&!s?ar(i,a):it(0),l=o.left+a.scrollLeft-c.x-d.x,g=o.top+a.scrollTop-c.y-d.y;return{x:l,y:g,width:o.width,height:o.height}}function pe(e){return X(e).position==="static"}function gn(e,t){if(!st(e)||X(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return at(e)===n&&(n=n.ownerDocument.body),n}function ur(e,t){const n=H(e);if(le(e))return n;if(!st(e)){let i=pt(e);for(;i&&!Ot(i);){if(q(i)&&!pe(i))return i;i=pt(i)}return n}let r=gn(e,t);for(;r&&Ho(r)&&pe(r);)r=gn(r,t);return r&&Ot(r)&&pe(r)&&!He(r)?n:r||qo(e)||n}const as=async function(e){const t=this.getOffsetParent||ur,n=this.getDimensions,r=await n(e.floating);return{reference:ss(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cs(e){return X(e).direction==="rtl"}const us={convertOffsetParentRelativeRectToViewportRelativeRect:Jo,getDocumentElement:at,getClippingRect:is,getOffsetParent:ur,getElementRects:as,getClientRects:Qo,getDimensions:os,getScale:St,isElement:q,isRTL:cs};function lr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ls(e,t){let n=null,r;const i=at(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:l,width:g,height:h}=u;if(a||t(),!g||!h)return;const p=Yt(l),w=Yt(i.clientWidth-(d+g)),y=Yt(i.clientHeight-(l+h)),S=Yt(d),x={rootMargin:-p+"px "+-w+"px "+-y+"px "+-S+"px",threshold:V(0,gt(1,c))||1};let T=!0;function C(F){const E=F[0].intersectionRatio;if(E!==c){if(!T)return o();E?o(!1,E):r=setTimeout(()=>{o(!1,1e-7)},1e3)}E===1&&!lr(u,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return o(!0),s}function ds(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Ue(e),d=i||s?[...u?Wt(u):[],...Wt(t)]:[];d.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const l=u&&a?ls(u,n):null;let g=-1,h=null;o&&(h=new ResizeObserver(S=>{let[O]=S;O&&O.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!c&&h.observe(u),h.observe(t));let p,w=c?vt(e):null;c&&y();function y(){const S=vt(e);w&&!lr(w,S)&&n(),w=S,p=requestAnimationFrame(y)}return n(),()=>{var S;d.forEach(O=>{i&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),l?.(),(S=h)==null||S.disconnect(),h=null,c&&cancelAnimationFrame(p)}}const fs=Lo,hs=Bo,gs=Io,ps=_o,ms=ko,ws=Do,bs=Wo,vs=(e,t,n)=>{const r=new Map,i={platform:us,...n},s={...i.platform,_c:r};return Ro(e,t,{...i,platform:s})};function wt(e){return typeof e=="function"?e():e}function dr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pn(e,t){const n=dr(e);return Math.round(t*n)/n}function ca(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function ys(e){const t=e.whileElementsMounted,n=A(()=>wt(e.open)??!0),r=A(()=>wt(e.middleware)),i=A(()=>wt(e.transform)??!0),s=A(()=>wt(e.placement)??"bottom"),o=A(()=>wt(e.strategy)??"absolute"),a=A(()=>wt(e.sideOffset)??0),c=A(()=>wt(e.alignOffset)??0),u=e.reference;let d=P(0),l=P(0);const g=ct(null);let h=P(Dt(f(o))),p=P(Dt(f(s))),w=P(Dt({})),y=P(!1);const S=A(()=>{const E=g.current?pn(g.current,f(d)):f(d),I=g.current?pn(g.current,f(l)):f(l);return f(i)?{position:f(h),left:"0",top:"0",transform:`translate(${E}px, ${I}px)`,...g.current&&dr(g.current)>=1.5&&{willChange:"transform"}}:{position:f(h),left:`${E}px`,top:`${I}px`}});let O;function x(){u.current===null||g.current===null||vs(u.current,g.current,{middleware:f(r),placement:f(s),strategy:f(o)}).then(E=>{if(!f(n)&&f(d)!==0&&f(l)!==0){const I=Math.max(Math.abs(f(a)),Math.abs(f(c)),15);if(E.x<=I&&E.y<=I)return}m(d,E.x,!0),m(l,E.y,!0),m(h,E.strategy,!0),m(p,E.placement,!0),m(w,E.middlewareData,!0),m(y,!0)})}function T(){typeof O=="function"&&(O(),O=void 0)}function C(){if(T(),t===void 0){x();return}u.current===null||g.current===null||(O=t(u.current,g.current,x))}function F(){f(n)||m(y,!1)}return B(x),B(C),B(F),B(()=>T),{floating:g,reference:u,get strategy(){return f(h)},get placement(){return f(p)},get middlewareData(){return f(w)},get isPositioned(){return f(y)},get floatingStyles(){return f(S)},get update(){return x}}}const xs={top:"bottom",right:"left",bottom:"top",left:"right"},Ye=new mt("Floating.Root"),Ae=new mt("Floating.Content"),Ge=new mt("Floating.Root");class ne{static create(t=!1){return t?Ge.set(new ne):Ye.set(new ne)}anchorNode=ct(null);customAnchorNode=ct(null);triggerNode=ct(null);constructor(){B(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class re{static create(t,n=!1){return n?Ae.set(new re(t,Ge.get())):Ae.set(new re(t,Ye.get()))}opts;root;contentRef=ct(null);wrapperRef=ct(null);arrowRef=ct(null);contentAttachment=ut(this.contentRef);wrapperAttachment=ut(this.wrapperRef);arrowAttachment=ut(this.arrowRef);arrowId=ct(We());#t=A(()=>{if(typeof this.opts.style=="string")return _r(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new jr(()=>this.arrowRef.current??void 0);#r=A(()=>this.#n?.width??0);#i=A(()=>this.#n?.height??0);#o=A(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=A(()=>f(this.#a).length>0);get hasExplicitBoundaries(){return f(this.#s)}set hasExplicitBoundaries(t){m(this.#s,t)}#c=A(()=>({padding:this.opts.collisionPadding.current,boundary:f(this.#a).filter(hi),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return f(this.#c)}set detectOverflowOptions(t){m(this.#c,t)}#d=P(void 0);#l=P(void 0);#u=P(void 0);#h=P(void 0);#g=A(()=>[fs({mainAxis:this.opts.sideOffset.current+f(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&hs({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?bs():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&gs({...this.detectOverflowOptions}),ps({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=t.reference;m(this.#d,n,!0),m(this.#l,r,!0),m(this.#u,i,!0),m(this.#h,s,!0)}}),this.arrowRef.current&&ws({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Ss({arrowWidth:f(this.#r),arrowHeight:f(this.#i)}),this.opts.hideWhenDetached.current&&ms({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return f(this.#g)}set middleware(t){m(this.#g,t)}floating;#p=A(()=>As(this.floating.placement));get placedSide(){return f(this.#p)}set placedSide(t){m(this.#p,t)}#m=A(()=>Os(this.floating.placement));get placedAlign(){return f(this.#m)}set placedAlign(t){m(this.#m,t)}#f=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return f(this.#f)}set arrowX(t){m(this.#f,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return f(this.#w)}set arrowY(t){m(this.#w,t)}#b=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return f(this.#b)}set cannotCenterArrow(t){m(this.#b,t)}#v=P();get contentZIndex(){return f(this.#v)}set contentZIndex(t){m(this.#v,t,!0)}#y=A(()=>xs[this.placedSide]);get arrowBaseSide(){return f(this.#y)}set arrowBaseSide(t){m(this.#y,t)}#x=A(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${f(this.#d)}px`,"--bits-floating-available-height":`${f(this.#l)}px`,"--bits-floating-anchor-width":`${f(this.#u)}px`,"--bits-floating-anchor-height":`${f(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...f(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return f(this.#x)}set wrapperProps(t){m(this.#x,t)}#S=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Kr({...f(this.#t)}),...this.contentAttachment}));get props(){return f(this.#S)}set props(t){m(this.#S,t)}#A=A(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return f(this.#A)}set arrowStyle(t){m(this.#A,t)}constructor(t,n){this.opts=t,this.root=n,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),_(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=ys({strategy:()=>this.opts.strategy.current,placement:()=>f(this.#o),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>ds(...r,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),B(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),_(()=>this.contentRef.current,r=>{if(!r)return;const i=Ee(r);this.contentZIndex=i.getComputedStyle(r).zIndex}),B(()=>{this.floating.floating.current=this.wrapperRef.current})}}class fr{static create(t){return new fr(t,Ae.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=A(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return f(this.#t)}set props(t){m(this.#t,t)}}class ie{static create(t,n=!1){return n?new ie(t,Ge.get()):new ie(t,Ye.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=bn(t.virtualEl.current):n.triggerNode=t.ref}}function Ss(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[u,d]=qe(n),l={start:"0%",center:"50%",end:"100%"}[d],g=(i.arrow?.x??0)+a/2,h=(i.arrow?.y??0)+c/2;let p="",w="";return u==="bottom"?(p=o?l:`${g}px`,w=`${-c}px`):u==="top"?(p=o?l:`${g}px`,w=`${r.floating.height+c}px`):u==="right"?(p=`${-c}px`,w=o?l:`${h}px`):u==="left"&&(p=`${r.floating.width+c}px`,w=o?l:`${h}px`),{data:{x:p,y:w}}}}}function qe(e){const[t,n="center"]=e.split("-");return[t,n]}function As(e){return qe(e)[0]}function Os(e){return qe(e)[1]}function ua(e,t){J(t,!0);let n=b(t,"tooltip",3,!1);ne.create(n());var r=N(),i=R(r);j(i,()=>t.children??Z),D(e,r),Q()}function la(e,t){J(t,!0);let n=b(t,"tooltip",3,!1);ie.create({id:v(()=>t.id),virtualEl:v(()=>t.virtualEl),ref:t.ref},n());var r=N(),i=R(r);j(i,()=>t.children??Z),D(e,r),Q()}function Ts(e,t){J(t,!0);let n=b(t,"side",3,"bottom"),r=b(t,"sideOffset",3,0),i=b(t,"align",3,"center"),s=b(t,"alignOffset",3,0),o=b(t,"arrowPadding",3,0),a=b(t,"avoidCollisions",3,!0),c=b(t,"collisionBoundary",19,()=>[]),u=b(t,"collisionPadding",3,0),d=b(t,"hideWhenDetached",3,!1),l=b(t,"onPlaced",3,()=>{}),g=b(t,"sticky",3,"partial"),h=b(t,"updatePositionStrategy",3,"optimized"),p=b(t,"strategy",3,"fixed"),w=b(t,"dir",3,"ltr"),y=b(t,"style",19,()=>({})),S=b(t,"wrapperId",19,We),O=b(t,"customAnchor",3,null),x=b(t,"tooltip",3,!1);const T=re.create({side:v(()=>n()),sideOffset:v(()=>r()),align:v(()=>i()),alignOffset:v(()=>s()),id:v(()=>t.id),arrowPadding:v(()=>o()),avoidCollisions:v(()=>a()),collisionBoundary:v(()=>c()),collisionPadding:v(()=>u()),hideWhenDetached:v(()=>d()),onPlaced:v(()=>l()),sticky:v(()=>g()),updatePositionStrategy:v(()=>h()),strategy:v(()=>p()),dir:v(()=>w()),style:v(()=>y()),enabled:v(()=>t.enabled),wrapperId:v(()=>S()),customAnchor:v(()=>O())},x()),C=A(()=>ae(T.wrapperProps,{style:{pointerEvents:"auto"}}));var F=N(),E=R(F);j(E,()=>t.content??Z,()=>({props:T.props,wrapperProps:f(C)})),D(e,F),Q()}function Cs(e,t){J(t,!0),Vr(()=>{t.onPlaced?.()});var n=N(),r=R(n);j(r,()=>t.content??Z,()=>({props:{},wrapperProps:{}})),D(e,n),Q()}function Es(e,t){let n=b(t,"isStatic",3,!1),r=oe(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=N(),s=R(i);{var o=c=>{Cs(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{Ts(c,Oe({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};kt(s,c=>{n()?c(o):c(a,!1)})}D(e,i)}var Ps=Fr("<!> <!>",1);function hr(e,t){J(t,!0);let n=b(t,"interactOutsideBehavior",3,"close"),r=b(t,"trapFocus",3,!0),i=b(t,"isValidEvent",3,()=>!1),s=b(t,"customAnchor",3,null),o=b(t,"isStatic",3,!1),a=b(t,"tooltip",3,!1),c=oe(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip"]);Es(e,{get isStatic(){return o()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return a()},content:(d,l)=>{let g=()=>l?.().props,h=()=>l?.().wrapperProps;var p=Ps(),w=R(p);{var y=x=>{on(x,{get preventScroll(){return t.preventScroll}})},S=x=>{var T=N(),C=R(T);{var F=E=>{on(E,{get preventScroll(){return t.preventScroll}})};kt(C,E=>{t.forceMount||E(F)},!0)}D(x,T)};kt(w,x=>{t.forceMount&&t.enabled?x(y):x(S,!1)})}var O=Mr(w,2);ho(O,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(T,C)=>{let F=()=>C?.().props;fo(T,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(E,I)=>{uo(E,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(L,$)=>{let z=()=>$?.().props;mo(L,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(tt,k)=>{var et=N(),Y=R(et);{let K=A(()=>({props:ae(c,g(),z(),F(),{style:{pointerEvents:"auto"}}),wrapperProps:h()}));j(Y,()=>t.popper??Z,()=>f(K))}D(tt,et)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),D(d,p)},$$slots:{content:!0}}),Q()}function da(e,t){let n=b(t,"interactOutsideBehavior",3,"close"),r=b(t,"trapFocus",3,!0),i=b(t,"isValidEvent",3,()=>!1),s=b(t,"customAnchor",3,null),o=b(t,"isStatic",3,!1),a=oe(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var c=N(),u=R(c);{var d=l=>{hr(l,Oe({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return o()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};kt(u,l=>{t.shouldRender&&l(d)})}D(e,c)}function fa(e,t){let n=b(t,"interactOutsideBehavior",3,"close"),r=b(t,"trapFocus",3,!0),i=b(t,"isValidEvent",3,()=>!1),s=b(t,"customAnchor",3,null),o=b(t,"isStatic",3,!1),a=oe(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);hr(e,Oe({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return o()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}let Rt=P(!1);class ht{static _refs=0;static _cleanup;constructor(){B(()=>(ht._refs===0&&(ht._cleanup=wn(()=>{const t=[],n=i=>{m(Rt,!1)},r=i=>{m(Rt,!0)};return t.push(M(document,"pointerdown",n,{capture:!0}),M(document,"pointermove",n,{capture:!0}),M(document,"keydown",r,{capture:!0})),xt(...t)})),ht._refs++,()=>{ht._refs--,ht._refs===0&&(m(Rt,!1),ht._cleanup?.())}))}get current(){return f(Rt)}set current(t){m(Rt,t,!0)}}export{Gs as $,zn as A,ii as B,mt as C,$n as D,Tn as E,ua as F,ji as G,qt as H,Nt as I,Kt as J,Vt as K,Zs as L,Qn as M,Ns as N,Ls as O,$s as P,Is as Q,pi as R,ce as S,mo as T,js as U,Bs as V,Vs as W,Hs as X,zs as Y,Us as Z,Ys as _,la as a,qs as a0,Xs as a1,Ws as a2,_s as a3,Ks as a4,ai as a5,ks as a6,si as a7,Cn as a8,oi as a9,On as aa,ra as ab,ia as ac,oa as ad,sa as ae,nt as af,Xi as ag,Je as ah,aa as ai,Yn as aj,ta as ak,Zn as al,Gr as am,Ee as an,En as ao,_t as ap,na as aq,ea as ar,Qs as as,Jn as at,zr as b,wi as c,fa as d,da as e,ot as f,ca as g,jn as h,we as i,Gn as j,Hr as k,De as l,qn as m,W as n,fr as o,Tt as p,Pe as q,Js as r,ho as s,Zr as t,We as u,fo as v,_ as w,uo as x,on as y,Un as z};
diff --git a/backend/static/frontend/_app/immutable/chunks/CAQEdoSh.js.map b/backend/static/frontend/_app/immutable/chunks/CjLH05gQ.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/CAQEdoSh.js.map
rename to backend/static/frontend/_app/immutable/chunks/CjLH05gQ.js.map
index a9cba9da..2b3cc444 100644
--- a/backend/static/frontend/_app/immutable/chunks/CAQEdoSh.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/CjLH05gQ.js.map
@@ -1 +1 @@
-{"version":3,"file":"CAQEdoSh.js","sources":["../../../../../../node_modules/svelte/src/internal/client/dom/blocks/key.js","../../../../../../node_modules/svelte/src/reactivity/map.js","../../../../../../node_modules/svelte-toolbelt/dist/box/box.svelte.js","../../../../../../node_modules/runed/dist/internal/configurable-globals.js","../../../../../../node_modules/runed/dist/internal/utils/dom.js","../../../../../../node_modules/runed/dist/utilities/active-element/active-element.svelte.js","../../../../../../node_modules/runed/dist/internal/utils/is.js","../../../../../../node_modules/runed/dist/utilities/context/context.js","../../../../../../node_modules/runed/dist/utilities/watch/watch.svelte.js","../../../../../../node_modules/runed/dist/internal/utils/get.js","../../../../../../node_modules/runed/dist/utilities/element-size/element-size.svelte.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/on-destroy-effect.svelte.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/after-sleep.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/after-tick.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/dom.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/dom-context.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/kbd-constants.js","../../../../../../node_modules/bits-ui/dist/internal/locale.js","../../../../../../node_modules/bits-ui/dist/internal/get-directional-keys.js","../../../../../../node_modules/bits-ui/dist/internal/is.js","../../../../../../node_modules/bits-ui/dist/internal/roving-focus-group.js","../../../../../../node_modules/bits-ui/dist/internal/animations-complete.js","../../../../../../node_modules/bits-ui/dist/internal/presence-manager.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/noop.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/portal/portal-consumer.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/config/bits-config.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/config/prop-resolvers.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/portal/portal.svelte","../../../../../../node_modules/bits-ui/dist/internal/events.js","../../../../../../node_modules/bits-ui/dist/internal/debounce.js","../../../../../../node_modules/bits-ui/dist/internal/elements.js","../../../../../../node_modules/bits-ui/dist/internal/dom.js","../../../../../../node_modules/bits-ui/dist/bits/menu/utils.js","../../../../../../node_modules/bits-ui/dist/internal/focus.js","../../../../../../node_modules/tabbable/dist/index.esm.js","../../../../../../node_modules/bits-ui/dist/internal/tabbable.js","../../../../../../node_modules/bits-ui/dist/internal/arrays.js","../../../../../../node_modules/bits-ui/dist/internal/box-auto-reset.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/dom-typeahead.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/grace-area.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/menu/menu.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/dismissible-layer/use-dismissable-layer.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/dismissible-layer/dismissible-layer.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/escape-layer/use-escape-layer.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/escape-layer/escape-layer.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope-manager.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/text-selection-layer/use-text-selection-layer.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/text-selection-layer/text-selection-layer.svelte","../../../../../../node_modules/bits-ui/dist/internal/use-id.js","../../../../../../node_modules/bits-ui/dist/internal/shared-state.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/body-scroll-lock.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/scroll-lock/scroll-lock.svelte","../../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../../../../../../node_modules/bits-ui/dist/internal/floating-svelte/floating-utils.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/floating-svelte/use-floating.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-anchor.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content-static.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-inner.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-force-mount.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/is-using-keyboard/is-using-keyboard.svelte.js"],"sourcesContent":["/** @import { TemplateNode } from '#client' */\nimport { is_runes } from '../../context.js';\nimport { block } from '../../reactivity/effects.js';\nimport { hydrate_next, hydrating } from '../hydration.js';\nimport { BranchManager } from './branches.js';\n\n/**\n * @template V\n * @param {TemplateNode} node\n * @param {() => V} get_key\n * @param {(anchor: Node) => TemplateNode | void} render_fn\n * @returns {void}\n */\nexport function key(node, get_key, render_fn) {\n\tif (hydrating) {\n\t\thydrate_next();\n\t}\n\n\tvar branches = new BranchManager(node);\n\n\tvar legacy = !is_runes();\n\n\tblock(() => {\n\t\tvar key = get_key();\n\n\t\t// key blocks in Svelte <5 had stupid semantics\n\t\tif (legacy && key !== null && typeof key === 'object') {\n\t\t\tkey = /** @type {V} */ ({});\n\t\t}\n\n\t\tbranches.ensure(key, render_fn);\n\t});\n}\n","/** @import { Source } from '#client' */\nimport { DEV } from 'esm-env';\nimport { set, source, state, increment } from '../internal/client/reactivity/sources.js';\nimport { label, tag } from '../internal/client/dev/tracing.js';\nimport { get, update_version } from '../internal/client/runtime.js';\n\n/**\n * A reactive version of the built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) object.\n * Reading contents of the map (by iterating, or by reading `map.size` or calling `map.get(...)` or `map.has(...)` as in the [tic-tac-toe example](https://svelte.dev/playground/0b0ff4aa49c9443f9b47fe5203c78293) below) in an [effect](https://svelte.dev/docs/svelte/$effect) or [derived](https://svelte.dev/docs/svelte/$derived)\n * will cause it to be re-evaluated as necessary when the map is updated.\n *\n * Note that values in a reactive map are _not_ made [deeply reactive](https://svelte.dev/docs/svelte/$state#Deep-state).\n *\n * ```svelte\n * <script>\n * \timport { SvelteMap } from 'svelte/reactivity';\n * \timport { result } from './game.js';\n *\n * \tlet board = new SvelteMap();\n * \tlet player = $state('x');\n * \tlet winner = $derived(result(board));\n *\n * \tfunction reset() {\n * \t\tplayer = 'x';\n * \t\tboard.clear();\n * \t}\n * </script>\n *\n * <div class=\"board\">\n * \t{#each Array(9), i}\n * \t\t<button\n * \t\t\tdisabled={board.has(i) || winner}\n * \t\t\tonclick={() => {\n * \t\t\t\tboard.set(i, player);\n * \t\t\t\tplayer = player === 'x' ? 'o' : 'x';\n * \t\t\t}}\n * \t\t>{board.get(i)}</button>\n * \t{/each}\n * </div>\n *\n * {#if winner}\n * \t<p>{winner} wins!</p>\n * \t<button onclick={reset}>reset</button>\n * {:else}\n * \t<p>{player} is next</p>\n * {/if}\n * ```\n *\n * @template K\n * @template V\n * @extends {Map<K, V>}\n */\nexport class SvelteMap extends Map {\n\t/** @type {Map<K, Source<number>>} */\n\t#sources = new Map();\n\t#version = state(0);\n\t#size = state(0);\n\t#update_version = update_version || -1;\n\n\t/**\n\t * @param {Iterable<readonly [K, V]> | null | undefined} [value]\n\t */\n\tconstructor(value) {\n\t\tsuper();\n\n\t\tif (DEV) {\n\t\t\t// If the value is invalid then the native exception will fire here\n\t\t\tvalue = new Map(value);\n\n\t\t\ttag(this.#version, 'SvelteMap version');\n\t\t\ttag(this.#size, 'SvelteMap.size');\n\t\t}\n\n\t\tif (value) {\n\t\t\tfor (var [key, v] of value) {\n\t\t\t\tsuper.set(key, v);\n\t\t\t}\n\t\t\tthis.#size.v = super.size;\n\t\t}\n\t}\n\n\t/**\n\t * If the source is being created inside the same reaction as the SvelteMap instance,\n\t * we use `state` so that it will not be a dependency of the reaction. Otherwise we\n\t * use `source` so it will be.\n\t *\n\t * @template T\n\t * @param {T} value\n\t * @returns {Source<T>}\n\t */\n\t#source(value) {\n\t\treturn update_version === this.#update_version ? state(value) : source(value);\n\t}\n\n\t/** @param {K} key */\n\thas(key) {\n\t\tvar sources = this.#sources;\n\t\tvar s = sources.get(key);\n\n\t\tif (s === undefined) {\n\t\t\tvar ret = super.get(key);\n\t\t\tif (ret !== undefined) {\n\t\t\t\ts = this.#source(0);\n\n\t\t\t\tif (DEV) {\n\t\t\t\t\ttag(s, `SvelteMap get(${label(key)})`);\n\t\t\t\t}\n\n\t\t\t\tsources.set(key, s);\n\t\t\t} else {\n\t\t\t\t// We should always track the version in case\n\t\t\t\t// the Set ever gets this value in the future.\n\t\t\t\tget(this.#version);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tget(s);\n\t\treturn true;\n\t}\n\n\t/**\n\t * @param {(value: V, key: K, map: Map<K, V>) => void} callbackfn\n\t * @param {any} [this_arg]\n\t */\n\tforEach(callbackfn, this_arg) {\n\t\tthis.#read_all();\n\t\tsuper.forEach(callbackfn, this_arg);\n\t}\n\n\t/** @param {K} key */\n\tget(key) {\n\t\tvar sources = this.#sources;\n\t\tvar s = sources.get(key);\n\n\t\tif (s === undefined) {\n\t\t\tvar ret = super.get(key);\n\t\t\tif (ret !== undefined) {\n\t\t\t\ts = this.#source(0);\n\n\t\t\t\tif (DEV) {\n\t\t\t\t\ttag(s, `SvelteMap get(${label(key)})`);\n\t\t\t\t}\n\n\t\t\t\tsources.set(key, s);\n\t\t\t} else {\n\t\t\t\t// We should always track the version in case\n\t\t\t\t// the Set ever gets this value in the future.\n\t\t\t\tget(this.#version);\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t}\n\n\t\tget(s);\n\t\treturn super.get(key);\n\t}\n\n\t/**\n\t * @param {K} key\n\t * @param {V} value\n\t * */\n\tset(key, value) {\n\t\tvar sources = this.#sources;\n\t\tvar s = sources.get(key);\n\t\tvar prev_res = super.get(key);\n\t\tvar res = super.set(key, value);\n\t\tvar version = this.#version;\n\n\t\tif (s === undefined) {\n\t\t\ts = this.#source(0);\n\n\t\t\tif (DEV) {\n\t\t\t\ttag(s, `SvelteMap get(${label(key)})`);\n\t\t\t}\n\n\t\t\tsources.set(key, s);\n\t\t\tset(this.#size, super.size);\n\t\t\tincrement(version);\n\t\t} else if (prev_res !== value) {\n\t\t\tincrement(s);\n\n\t\t\t// if not every reaction of s is a reaction of version we need to also include version\n\t\t\tvar v_reactions = version.reactions === null ? null : new Set(version.reactions);\n\t\t\tvar needs_version_increase =\n\t\t\t\tv_reactions === null ||\n\t\t\t\t!s.reactions?.every((r) =>\n\t\t\t\t\t/** @type {NonNullable<typeof v_reactions>} */ (v_reactions).has(r)\n\t\t\t\t);\n\t\t\tif (needs_version_increase) {\n\t\t\t\tincrement(version);\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}\n\n\t/** @param {K} key */\n\tdelete(key) {\n\t\tvar sources = this.#sources;\n\t\tvar s = sources.get(key);\n\t\tvar res = super.delete(key);\n\n\t\tif (s !== undefined) {\n\t\t\tsources.delete(key);\n\t\t\tset(this.#size, super.size);\n\t\t\tset(s, -1);\n\t\t\tincrement(this.#version);\n\t\t}\n\n\t\treturn res;\n\t}\n\n\tclear() {\n\t\tif (super.size === 0) {\n\t\t\treturn;\n\t\t}\n\t\t// Clear first, so we get nice console.log outputs with $inspect\n\t\tsuper.clear();\n\t\tvar sources = this.#sources;\n\t\tset(this.#size, 0);\n\t\tfor (var s of sources.values()) {\n\t\t\tset(s, -1);\n\t\t}\n\t\tincrement(this.#version);\n\t\tsources.clear();\n\t}\n\n\t#read_all() {\n\t\tget(this.#version);\n\n\t\tvar sources = this.#sources;\n\t\tif (this.#size.v !== sources.size) {\n\t\t\tfor (var key of super.keys()) {\n\t\t\t\tif (!sources.has(key)) {\n\t\t\t\t\tvar s = this.#source(0);\n\t\t\t\t\tif (DEV) {\n\t\t\t\t\t\ttag(s, `SvelteMap get(${label(key)})`);\n\t\t\t\t\t}\n\n\t\t\t\t\tsources.set(key, s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor ([, s] of this.#sources) {\n\t\t\tget(s);\n\t\t}\n\t}\n\n\tkeys() {\n\t\tget(this.#version);\n\t\treturn super.keys();\n\t}\n\n\tvalues() {\n\t\tthis.#read_all();\n\t\treturn super.values();\n\t}\n\n\tentries() {\n\t\tthis.#read_all();\n\t\treturn super.entries();\n\t}\n\n\t[Symbol.iterator]() {\n\t\treturn this.entries();\n\t}\n\n\tget size() {\n\t\tget(this.#size);\n\t\treturn super.size;\n\t}\n}\n","import { boxFrom, boxWith, boxFlatten, toReadonlyBox, isBox, isWritableBox, BoxSymbol, isWritableSymbol } from \"./box-extras.svelte.js\";\nexport function box(initialValue) {\n let current = $state(initialValue);\n return {\n [BoxSymbol]: true,\n [isWritableSymbol]: true,\n get current() {\n return current;\n },\n set current(v) {\n current = v;\n }\n };\n}\nbox.from = boxFrom;\nbox.with = boxWith;\nbox.flatten = boxFlatten;\nbox.readonly = toReadonlyBox;\nbox.isBox = isBox;\nbox.isWritableBox = isWritableBox;\n","import { BROWSER } from \"esm-env\";\nexport const defaultWindow = BROWSER && typeof window !== \"undefined\" ? window : undefined;\nexport const defaultDocument = BROWSER && typeof window !== \"undefined\" ? window.document : undefined;\nexport const defaultNavigator = BROWSER && typeof window !== \"undefined\" ? window.navigator : undefined;\nexport const defaultLocation = BROWSER && typeof window !== \"undefined\" ? window.location : undefined;\n","import { defaultDocument } from \"../configurable-globals.js\";\n/**\n * Handles getting the active element in a document or shadow root.\n * If the active element is within a shadow root, it will traverse the shadow root\n * to find the active element.\n * If not, it will return the active element in the document.\n *\n * @param document A document or shadow root to get the active element from.\n * @returns The active element in the document or shadow root.\n */\nexport function getActiveElement(document) {\n let activeElement = document.activeElement;\n while (activeElement?.shadowRoot) {\n const node = activeElement.shadowRoot.activeElement;\n if (node === activeElement)\n break;\n else\n activeElement = node;\n }\n return activeElement;\n}\n/**\n * Returns the owner document of a given element.\n *\n * @param node The element to get the owner document from.\n * @returns\n */\nexport function getOwnerDocument(node, fallback = defaultDocument) {\n return node?.ownerDocument ?? fallback;\n}\n/**\n * Checks if an element is or is contained by another element.\n *\n * @param node The element to check if it or its descendants contain the target element.\n * @param target The element to check if it is contained by the node.\n * @returns\n */\nexport function isOrContainsTarget(node, target) {\n return node === target || node.contains(target);\n}\n","import { defaultWindow, } from \"../../internal/configurable-globals.js\";\nimport { getActiveElement } from \"../../internal/utils/dom.js\";\nimport { on } from \"svelte/events\";\nimport { createSubscriber } from \"svelte/reactivity\";\nexport class ActiveElement {\n #document;\n #subscribe;\n constructor(options = {}) {\n const { window = defaultWindow, document = window?.document } = options;\n if (window === undefined)\n return;\n this.#document = document;\n this.#subscribe = createSubscriber((update) => {\n const cleanupFocusIn = on(window, \"focusin\", update);\n const cleanupFocusOut = on(window, \"focusout\", update);\n return () => {\n cleanupFocusIn();\n cleanupFocusOut();\n };\n });\n }\n get current() {\n this.#subscribe?.();\n if (!this.#document)\n return null;\n return getActiveElement(this.#document);\n }\n}\n/**\n * An object holding a reactive value that is equal to `document.activeElement`.\n * It automatically listens for changes, keeping the reference up to date.\n *\n * If you wish to use a custom document or shadowRoot, you should use\n * [useActiveElement](https://runed.dev/docs/utilities/active-element) instead.\n *\n * @see {@link https://runed.dev/docs/utilities/active-element}\n */\nexport const activeElement = new ActiveElement();\n","export function isFunction(value) {\n return typeof value === \"function\";\n}\nexport function isObject(value) {\n return value !== null && typeof value === \"object\";\n}\nexport function isElement(value) {\n return value instanceof Element;\n}\n","import { getContext, hasContext, setContext } from \"svelte\";\nexport class Context {\n #name;\n #key;\n /**\n * @param name The name of the context.\n * This is used for generating the context key and error messages.\n */\n constructor(name) {\n this.#name = name;\n this.#key = Symbol(name);\n }\n /**\n * The key used to get and set the context.\n *\n * It is not recommended to use this value directly.\n * Instead, use the methods provided by this class.\n */\n get key() {\n return this.#key;\n }\n /**\n * Checks whether this has been set in the context of a parent component.\n *\n * Must be called during component initialisation.\n */\n exists() {\n return hasContext(this.#key);\n }\n /**\n * Retrieves the context that belongs to the closest parent component.\n *\n * Must be called during component initialisation.\n *\n * @throws An error if the context does not exist.\n */\n get() {\n const context = getContext(this.#key);\n if (context === undefined) {\n throw new Error(`Context \"${this.#name}\" not found`);\n }\n return context;\n }\n /**\n * Retrieves the context that belongs to the closest parent component,\n * or the given fallback value if the context does not exist.\n *\n * Must be called during component initialisation.\n */\n getOr(fallback) {\n const context = getContext(this.#key);\n if (context === undefined) {\n return fallback;\n }\n return context;\n }\n /**\n * Associates the given value with the current component and returns it.\n *\n * Must be called during component initialisation.\n */\n set(context) {\n return setContext(this.#key, context);\n }\n}\n","import { untrack } from \"svelte\";\nfunction runEffect(flush, effect) {\n switch (flush) {\n case \"post\":\n $effect(effect);\n break;\n case \"pre\":\n $effect.pre(effect);\n break;\n }\n}\nfunction runWatcher(sources, flush, effect, options = {}) {\n const { lazy = false } = options;\n // Run the effect immediately if `lazy` is `false`.\n let active = !lazy;\n // On the first run, if the dependencies are an array, pass an empty array\n // to the previous value instead of `undefined` to allow destructuring.\n //\n // watch(() => [a, b], ([a, b], [prevA, prevB]) => { ... });\n let previousValues = Array.isArray(sources)\n ? []\n : undefined;\n runEffect(flush, () => {\n const values = Array.isArray(sources) ? sources.map((source) => source()) : sources();\n if (!active) {\n active = true;\n previousValues = values;\n return;\n }\n const cleanup = untrack(() => effect(values, previousValues));\n previousValues = values;\n return cleanup;\n });\n}\nfunction runWatcherOnce(sources, flush, effect) {\n const cleanupRoot = $effect.root(() => {\n let stop = false;\n runWatcher(sources, flush, (values, previousValues) => {\n if (stop) {\n cleanupRoot();\n return;\n }\n // Since `lazy` is `true`, `previousValues` is always defined.\n const cleanup = effect(values, previousValues);\n stop = true;\n return cleanup;\n }, \n // Running the effect immediately just once makes no sense at all.\n // That's just `onMount` with extra steps.\n { lazy: true });\n });\n $effect(() => {\n return cleanupRoot;\n });\n}\nexport function watch(sources, effect, options) {\n runWatcher(sources, \"post\", effect, options);\n}\nfunction watchPre(sources, effect, options) {\n runWatcher(sources, \"pre\", effect, options);\n}\nwatch.pre = watchPre;\nexport function watchOnce(source, effect) {\n runWatcherOnce(source, \"post\", effect);\n}\nfunction watchOncePre(source, effect) {\n runWatcherOnce(source, \"pre\", effect);\n}\nwatchOnce.pre = watchOncePre;\n","import { isFunction } from \"./is.js\";\nexport function get(value) {\n if (isFunction(value)) {\n return value();\n }\n return value;\n}\n","import { defaultWindow } from \"../../internal/configurable-globals.js\";\nimport { get } from \"../../internal/utils/get.js\";\nimport { createSubscriber } from \"svelte/reactivity\";\n/**\n * Returns a reactive value holding the size of `node`.\n *\n * Accepts an `options` object with the following properties:\n * - `initialSize`: The initial size of the element. Defaults to `{ width: 0, height: 0 }`.\n * - `box`: The box model to use. Can be either `\"content-box\"` or `\"border-box\"`. Defaults to `\"border-box\"`.\n *\n * @returns an object with `width` and `height` properties.\n *\n * @see {@link https://runed.dev/docs/utilities/element-size}\n */\nexport class ElementSize {\n // no need to use `$state` here since we are using createSubscriber\n #size = {\n width: 0,\n height: 0,\n };\n #observed = false;\n #options;\n #node;\n #window;\n // we use a derived here to extract the width so that if the width doesn't change we don't get a state update\n // which we would get if we would just use a getter since the version of the subscriber will be changing\n #width = $derived.by(() => {\n this.#subscribe?.();\n return this.getSize().width;\n });\n // we use a derived here to extract the height so that if the height doesn't change we don't get a state update\n // which we would get if we would just use a getter since the version of the subscriber will be changing\n #height = $derived.by(() => {\n this.#subscribe?.();\n return this.getSize().height;\n });\n // we need to use a derived here because the class will be created before the node is bound to the ref\n #subscribe = $derived.by(() => {\n const node$ = get(this.#node);\n if (!node$)\n return;\n return createSubscriber((update) => {\n if (!this.#window)\n return;\n const observer = new this.#window.ResizeObserver((entries) => {\n this.#observed = true;\n for (const entry of entries) {\n const boxSize = this.#options.box === \"content-box\" ? entry.contentBoxSize : entry.borderBoxSize;\n const boxSizeArr = Array.isArray(boxSize) ? boxSize : [boxSize];\n this.#size.width = boxSizeArr.reduce((acc, size) => Math.max(acc, size.inlineSize), 0);\n this.#size.height = boxSizeArr.reduce((acc, size) => Math.max(acc, size.blockSize), 0);\n }\n update();\n });\n observer.observe(node$);\n return () => {\n this.#observed = false;\n observer.disconnect();\n };\n });\n });\n constructor(node, options = { box: \"border-box\" }) {\n this.#window = options.window ?? defaultWindow;\n this.#options = options;\n this.#node = node;\n this.#size = {\n width: 0,\n height: 0,\n };\n }\n calculateSize() {\n const element = get(this.#node);\n // no element or no window, return undefined, we will return 0x0 in the getSize method\n if (!element || !this.#window) {\n return;\n }\n const offsetWidth = element.offsetWidth;\n const offsetHeight = element.offsetHeight;\n // easy mode, just return offsets\n if (this.#options.box === \"border-box\") {\n return {\n width: offsetWidth,\n height: offsetHeight,\n };\n }\n // hard mode, we need to calculate the content size\n const style = this.#window.getComputedStyle(element);\n const paddingWidth = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\n const paddingHeight = parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);\n const borderWidth = parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);\n const borderHeight = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n const contentWidth = offsetWidth - paddingWidth - borderWidth;\n const contentHeight = offsetHeight - paddingHeight - borderHeight;\n return {\n width: contentWidth,\n height: contentHeight,\n };\n }\n getSize() {\n // if the resize observer already run we can just return the size\n // otherwise we calculate the size if possible or we return the initial size\n return this.#observed ? this.#size : (this.calculateSize() ?? this.#size);\n }\n get current() {\n this.#subscribe?.();\n return this.getSize();\n }\n get width() {\n return this.#width;\n }\n get height() {\n return this.#height;\n }\n}\n","export function onDestroyEffect(fn) {\n $effect(() => {\n return () => {\n fn();\n };\n });\n}\n","/**\n * A utility function that executes a callback after a specified number of milliseconds.\n */\nexport function afterSleep(ms, cb) {\n return setTimeout(cb, ms);\n}\n","import { tick } from \"svelte\";\nexport function afterTick(fn) {\n tick().then(fn);\n}\n","import { isObject } from \"./is.js\";\nconst ELEMENT_NODE = 1;\nconst DOCUMENT_NODE = 9;\nconst DOCUMENT_FRAGMENT_NODE = 11;\nexport function isHTMLElement(node) {\n return isObject(node) && node.nodeType === ELEMENT_NODE && typeof node.nodeName === \"string\";\n}\nexport function isDocument(node) {\n return isObject(node) && node.nodeType === DOCUMENT_NODE;\n}\nexport function isWindow(node) {\n return isObject(node) && node.constructor?.name === \"VisualViewport\";\n}\nexport function getNodeName(node) {\n if (isHTMLElement(node))\n return node.localName ?? \"\";\n return \"#document\";\n}\nexport function isNode(node) {\n return isObject(node) && node.nodeType !== undefined;\n}\nexport function isShadowRoot(node) {\n return isNode(node) && node.nodeType === DOCUMENT_FRAGMENT_NODE && \"host\" in node;\n}\nexport function contains(parent, child) {\n if (!parent || !child)\n return false;\n if (!isHTMLElement(parent) || !isHTMLElement(child))\n return false;\n const rootNode = child.getRootNode?.();\n if (parent === child)\n return true;\n if (parent.contains(child))\n return true;\n if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n while (next) {\n if (parent === next)\n return true;\n // @ts-expect-error - host is not typed\n next = next.parentNode || next.host;\n }\n }\n return false;\n}\nexport function getDocument(node) {\n if (isDocument(node))\n return node;\n if (isWindow(node))\n return node.document;\n return node?.ownerDocument ?? document;\n}\nexport function getDocumentElement(node) {\n return getDocument(node).documentElement;\n}\nexport function getWindow(node) {\n if (isShadowRoot(node))\n return getWindow(node.host);\n if (isDocument(node))\n return node.defaultView ?? window;\n if (isHTMLElement(node))\n return node.ownerDocument?.defaultView ?? window;\n return window;\n}\nexport function getActiveElement(rootNode) {\n let activeElement = rootNode.activeElement;\n while (activeElement?.shadowRoot) {\n const el = activeElement.shadowRoot.activeElement;\n if (el === activeElement)\n break;\n else\n activeElement = el;\n }\n return activeElement;\n}\nexport function getParentNode(node) {\n if (getNodeName(node) === \"html\")\n return node;\n const result = \n // @ts-expect-error - assignedSlot is not typed\n node.assignedSlot ||\n node.parentNode ||\n (isShadowRoot(node) && node.host) ||\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\n","import { boxWith } from \"../box/box-extras.svelte.js\";\nimport { getActiveElement, getDocument } from \"./dom.js\";\nexport class DOMContext {\n element;\n root = $derived.by(() => {\n if (!this.element.current)\n return document;\n const rootNode = this.element.current.getRootNode() ?? document;\n return rootNode;\n });\n constructor(element) {\n if (typeof element === \"function\") {\n this.element = boxWith(element);\n }\n else {\n this.element = element;\n }\n }\n getDocument = () => {\n return getDocument(this.root);\n };\n getWindow = () => {\n return this.getDocument().defaultView ?? window;\n };\n getActiveElement = () => {\n return getActiveElement(this.root);\n };\n isActiveElement = (node) => {\n return node === this.getActiveElement();\n };\n getElementById(id) {\n return this.root.getElementById(id);\n }\n querySelector = (selector) => {\n if (!this.root)\n return null;\n return this.root.querySelector(selector);\n };\n querySelectorAll = (selector) => {\n if (!this.root)\n return [];\n return this.root.querySelectorAll(selector);\n };\n setTimeout = (callback, delay) => {\n return this.getWindow().setTimeout(callback, delay);\n };\n clearTimeout = (timeoutId) => {\n return this.getWindow().clearTimeout(timeoutId);\n };\n}\n","export const ALT = \"Alt\";\nexport const ARROW_DOWN = \"ArrowDown\";\nexport const ARROW_LEFT = \"ArrowLeft\";\nexport const ARROW_RIGHT = \"ArrowRight\";\nexport const ARROW_UP = \"ArrowUp\";\nexport const BACKSPACE = \"Backspace\";\nexport const CAPS_LOCK = \"CapsLock\";\nexport const CONTROL = \"Control\";\nexport const DELETE = \"Delete\";\nexport const END = \"End\";\nexport const ENTER = \"Enter\";\nexport const ESCAPE = \"Escape\";\nexport const F1 = \"F1\";\nexport const F10 = \"F10\";\nexport const F11 = \"F11\";\nexport const F12 = \"F12\";\nexport const F2 = \"F2\";\nexport const F3 = \"F3\";\nexport const F4 = \"F4\";\nexport const F5 = \"F5\";\nexport const F6 = \"F6\";\nexport const F7 = \"F7\";\nexport const F8 = \"F8\";\nexport const F9 = \"F9\";\nexport const HOME = \"Home\";\nexport const META = \"Meta\";\nexport const PAGE_DOWN = \"PageDown\";\nexport const PAGE_UP = \"PageUp\";\nexport const SHIFT = \"Shift\";\nexport const SPACE = \" \";\nexport const TAB = \"Tab\";\nexport const CTRL = \"Control\";\nexport const ASTERISK = \"*\";\nexport const a = \"a\";\nexport const P = \"P\";\nexport const A = \"A\";\nexport const p = \"p\";\nexport const n = \"n\";\nexport const j = \"j\";\nexport const k = \"k\";\nexport const h = \"h\";\nexport const l = \"l\";\n","/**\n * Detects the text direction in the element.\n * @returns {Direction} The text direction ('ltr' for left-to-right or 'rtl' for right-to-left).\n */\nexport function getElemDirection(elem) {\n const style = window.getComputedStyle(elem);\n const direction = style.getPropertyValue(\"direction\");\n return direction;\n}\n","import { kbd } from \"./kbd.js\";\nexport const FIRST_KEYS = [kbd.ARROW_DOWN, kbd.PAGE_UP, kbd.HOME];\nexport const LAST_KEYS = [kbd.ARROW_UP, kbd.PAGE_DOWN, kbd.END];\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nexport const SELECTION_KEYS = [kbd.SPACE, kbd.ENTER];\n/**\n * A utility function that returns the next key based on the direction and orientation.\n */\nexport function getNextKey(dir = \"ltr\", orientation = \"horizontal\") {\n return {\n horizontal: dir === \"rtl\" ? kbd.ARROW_LEFT : kbd.ARROW_RIGHT,\n vertical: kbd.ARROW_DOWN,\n }[orientation];\n}\n/**\n * A utility function that returns the previous key based on the direction and orientation.\n */\nexport function getPrevKey(dir = \"ltr\", orientation = \"horizontal\") {\n return {\n horizontal: dir === \"rtl\" ? kbd.ARROW_RIGHT : kbd.ARROW_LEFT,\n vertical: kbd.ARROW_UP,\n }[orientation];\n}\n/**\n * A utility function that returns the next and previous keys based on the direction\n * and orientation.\n */\nexport function getDirectionalKeys(dir = \"ltr\", orientation = \"horizontal\") {\n if (![\"ltr\", \"rtl\"].includes(dir))\n dir = \"ltr\";\n if (![\"horizontal\", \"vertical\"].includes(orientation))\n orientation = \"horizontal\";\n return {\n nextKey: getNextKey(dir, orientation),\n prevKey: getPrevKey(dir, orientation),\n };\n}\n","export const isBrowser = typeof document !== \"undefined\";\nexport const isIOS = getIsIOS();\nfunction getIsIOS() {\n return (isBrowser &&\n window?.navigator?.userAgent &&\n (/iP(ad|hone|od)/.test(window.navigator.userAgent) ||\n // The new iPad Pro Gen3 does not identify itself as iPad, but as Macintosh.\n (window?.navigator?.maxTouchPoints > 2 &&\n /iPad|Macintosh/.test(window?.navigator.userAgent))));\n}\nexport function isFunction(value) {\n return typeof value === \"function\";\n}\nexport function isHTMLElement(element) {\n return element instanceof HTMLElement;\n}\nexport function isElement(element) {\n return element instanceof Element;\n}\nexport function isElementOrSVGElement(element) {\n return element instanceof Element || element instanceof SVGElement;\n}\nexport function isNumberString(value) {\n return !Number.isNaN(Number(value)) && !Number.isNaN(Number.parseFloat(value));\n}\nexport function isNull(value) {\n return value === null;\n}\nexport function isTouch(e) {\n return e.pointerType === \"touch\";\n}\nexport function isFocusVisible(element) {\n return element.matches(\":focus-visible\");\n}\nexport function isNotNull(value) {\n return value !== null;\n}\n/**\n * Determines if the provided object is a valid `HTMLInputElement` with\n * a `select` method available.\n */\nexport function isSelectableInput(element) {\n return element instanceof HTMLInputElement && \"select\" in element;\n}\n/**\n * Given a node, determine if it is hidden by walking up the\n * DOM tree until we hit the `stopAt` node (exclusive), if provided)\n * otherwise we stop at the document root.\n */\nexport function isElementHidden(node, stopAt) {\n if (getComputedStyle(node).visibility === \"hidden\")\n return true;\n while (node) {\n // we stop at `upTo` (excluding it)\n if (stopAt !== undefined && node === stopAt)\n return false;\n if (getComputedStyle(node).display === \"none\")\n return true;\n node = node.parentElement;\n }\n return false;\n}\n","import { box } from \"svelte-toolbelt\";\nimport { getElemDirection } from \"./locale.js\";\nimport { getDirectionalKeys } from \"./get-directional-keys.js\";\nimport { kbd } from \"./kbd.js\";\nimport { BROWSER } from \"esm-env\";\nimport { isHTMLElement } from \"./is.js\";\nexport class RovingFocusGroup {\n #opts;\n #currentTabStopId = box(null);\n constructor(opts) {\n this.#opts = opts;\n }\n getCandidateNodes() {\n if (!BROWSER || !this.#opts.rootNode.current)\n return [];\n if (this.#opts.candidateSelector) {\n const candidates = Array.from(this.#opts.rootNode.current.querySelectorAll(this.#opts.candidateSelector));\n return candidates;\n }\n else if (this.#opts.candidateAttr) {\n const candidates = Array.from(this.#opts.rootNode.current.querySelectorAll(`[${this.#opts.candidateAttr}]:not([data-disabled])`));\n return candidates;\n }\n return [];\n }\n focusFirstCandidate() {\n const items = this.getCandidateNodes();\n if (!items.length)\n return;\n items[0]?.focus();\n }\n handleKeydown(node, e, both = false) {\n const rootNode = this.#opts.rootNode.current;\n if (!rootNode || !node)\n return;\n const items = this.getCandidateNodes();\n if (!items.length)\n return;\n const currentIndex = items.indexOf(node);\n const dir = getElemDirection(rootNode);\n const { nextKey, prevKey } = getDirectionalKeys(dir, this.#opts.orientation.current);\n const loop = this.#opts.loop.current;\n const keyToIndex = {\n [nextKey]: currentIndex + 1,\n [prevKey]: currentIndex - 1,\n [kbd.HOME]: 0,\n [kbd.END]: items.length - 1,\n };\n if (both) {\n const altNextKey = nextKey === kbd.ARROW_DOWN ? kbd.ARROW_RIGHT : kbd.ARROW_DOWN;\n const altPrevKey = prevKey === kbd.ARROW_UP ? kbd.ARROW_LEFT : kbd.ARROW_UP;\n keyToIndex[altNextKey] = currentIndex + 1;\n keyToIndex[altPrevKey] = currentIndex - 1;\n }\n let itemIndex = keyToIndex[e.key];\n if (itemIndex === undefined)\n return;\n e.preventDefault();\n if (itemIndex < 0 && loop) {\n itemIndex = items.length - 1;\n }\n else if (itemIndex === items.length && loop) {\n itemIndex = 0;\n }\n const itemToFocus = items[itemIndex];\n if (!itemToFocus)\n return;\n itemToFocus.focus();\n this.#currentTabStopId.current = itemToFocus.id;\n this.#opts.onCandidateFocus?.(itemToFocus);\n return itemToFocus;\n }\n getTabIndex(node) {\n const items = this.getCandidateNodes();\n const anyActive = this.#currentTabStopId.current !== null;\n if (node && !anyActive && items[0] === node) {\n this.#currentTabStopId.current = node.id;\n return 0;\n }\n else if (node?.id === this.#currentTabStopId.current) {\n return 0;\n }\n return -1;\n }\n setCurrentTabStopId(id) {\n this.#currentTabStopId.current = id;\n }\n focusCurrentTabStop() {\n const currentTabStopId = this.#currentTabStopId.current;\n if (!currentTabStopId)\n return;\n const currentTabStop = this.#opts.rootNode.current?.querySelector(`#${currentTabStopId}`);\n if (!currentTabStop || !isHTMLElement(currentTabStop))\n return;\n currentTabStop.focus();\n }\n}\n","import { afterTick, onDestroyEffect } from \"svelte-toolbelt\";\nexport class AnimationsComplete {\n #opts;\n #currentFrame = null;\n constructor(opts) {\n this.#opts = opts;\n onDestroyEffect(() => this.#cleanup());\n }\n #cleanup() {\n if (!this.#currentFrame)\n return;\n window.cancelAnimationFrame(this.#currentFrame);\n this.#currentFrame = null;\n }\n run(fn) {\n // if already running, cleanup and restart\n this.#cleanup();\n const node = this.#opts.ref.current;\n if (!node)\n return;\n if (typeof node.getAnimations !== \"function\") {\n this.#executeCallback(fn);\n return;\n }\n this.#currentFrame = window.requestAnimationFrame(() => {\n const animations = node.getAnimations();\n if (animations.length === 0) {\n this.#executeCallback(fn);\n return;\n }\n Promise.allSettled(animations.map((animation) => animation.finished)).then(() => {\n this.#executeCallback(fn);\n });\n });\n }\n #executeCallback(fn) {\n const execute = () => {\n fn();\n };\n if (this.#opts.afterTick) {\n afterTick(execute);\n }\n else {\n execute();\n }\n }\n}\n","import { watch } from \"runed\";\nimport { AnimationsComplete } from \"./animations-complete.js\";\nexport class PresenceManager {\n #opts;\n #enabled;\n #afterAnimations;\n #shouldRender = $state(false);\n constructor(opts) {\n this.#opts = opts;\n this.#shouldRender = opts.open.current;\n this.#enabled = opts.enabled ?? true;\n this.#afterAnimations = new AnimationsComplete({\n ref: this.#opts.ref,\n afterTick: this.#opts.open,\n });\n watch(() => this.#opts.open.current, (isOpen) => {\n if (isOpen)\n this.#shouldRender = true;\n if (!this.#enabled)\n return;\n this.#afterAnimations.run(() => {\n if (isOpen === this.#opts.open.current) {\n if (!this.#opts.open.current) {\n this.#shouldRender = false;\n }\n this.#opts.onComplete?.();\n }\n });\n });\n }\n get shouldRender() {\n return this.#shouldRender;\n }\n}\n","/**\n * A no operation function (does nothing)\n */\nexport function noop() { }\n","<script lang=\"ts\">\n\timport type { Snippet } from \"svelte\";\n\n\tconst { children }: { children?: Snippet } = $props();\n</script>\n\n{#key children}\n\t{@render children?.()}\n{/key}\n","import { Context } from \"runed\";\nimport { boxWith } from \"svelte-toolbelt\";\nexport const BitsConfigContext = new Context(\"BitsConfig\");\n/**\n * Gets the current Bits UI configuration state from the context.\n *\n * Returns a default configuration (where all values are `undefined`) if no configuration is found.\n */\nexport function getBitsConfig() {\n const fallback = new BitsConfigState(null, {});\n return BitsConfigContext.getOr(fallback).opts;\n}\n/**\n * Creates and sets a new Bits UI configuration state that inherits from parent configs.\n *\n * @param opts - Configuration options for this level\n * @returns The configuration state instance\n *\n * @example\n * ```typescript\n * // In a component that wants to set a default portal target\n * const config = useBitsConfig({ defaultPortalTo: box(\"#some-element\") });\n *\n * // Child components will inherit this config and can override specific values\n * const childConfig = useBitsConfig({ someOtherProp: box(\"value\") });\n * // childConfig still has defaultPortalTo=\"#some-element\" from parent\n * ```\n */\nexport function useBitsConfig(opts) {\n return BitsConfigContext.set(new BitsConfigState(BitsConfigContext.getOr(null), opts));\n}\n/**\n * Configuration state that inherits from parent configurations.\n *\n * @example\n * Config resolution:\n * ```\n * Level 1: { defaultPortalTo: \"#some-element\", theme: \"dark\" }\n * Level 2: { spacing: \"large\" } // inherits defaultPortalTo=\"#some-element\", theme=\"dark\"\n * Level 3: { theme: \"light\" } // inherits defaultPortalTo=\"#some-element\", spacing=\"large\", overrides theme=\"light\"\n * ```\n */\nexport class BitsConfigState {\n opts;\n constructor(parent, opts) {\n const resolveConfigOption = createConfigResolver(parent, opts);\n this.opts = {\n defaultPortalTo: resolveConfigOption((config) => config.defaultPortalTo),\n defaultLocale: resolveConfigOption((config) => config.defaultLocale),\n };\n }\n}\n/**\n * Returns a config resolver that resolves a given config option's value.\n *\n * The resolver creates reactive boxes that resolve config option values using this priority:\n * 1. Current level's value (if defined)\n * 2. Parent level's value (if defined and current is undefined)\n * 3. `undefined` (if no value is found in either parent or child)\n *\n * @param parent - Parent configuration state (null if this is root level)\n * @param currentOpts - Current level's configuration options\n *\n * @example\n * ```typescript\n * // Given this hierarchy:\n * // Root: { defaultPortalTo: \"#some-element\" }\n * // Child: { someOtherProp: \"value\" } // no defaultPortalTo specified\n *\n * const resolveConfigOption = createConfigResolver(parent, opts);\n * const portalTo = resolveConfigOption(config => config.defaultPortalTo);\n *\n * // portalTo.current === \"#some-element\" (inherited from parent)\n * // even when child didn't specify `defaultPortalTo`\n * ```\n */\nfunction createConfigResolver(parent, currentOpts) {\n return (getter) => {\n const configOption = boxWith(() => {\n // try current opts first\n const value = getter(currentOpts)?.current;\n if (value !== undefined)\n return value;\n // if no parent, return undefined\n if (parent === null)\n return undefined;\n // get value from parent (which already has its own chain resolved)\n return getter(parent.opts)?.current;\n });\n return configOption;\n };\n}\n","import { boxWith } from \"svelte-toolbelt\";\nimport { getBitsConfig } from \"./bits-config.js\";\n/**\n * Creates a generic prop resolver that follows a standard priority chain:\n * 1. The getter's prop value (if defined)\n * 2. The config default value (if no getter prop value is defined)\n * 3. The fallback value (if no config value found)\n */\nfunction createPropResolver(configOption, fallback) {\n return (getProp) => {\n const config = getBitsConfig();\n return boxWith(() => {\n // 1. return the prop's value, if provided\n const propValue = getProp();\n if (propValue !== undefined)\n return propValue;\n // 2. return the resolved config option value, if available\n const option = configOption(config).current;\n if (option !== undefined)\n return option;\n // 3. return the fallback if no other value is found\n return fallback;\n });\n };\n}\n/**\n * Resolves a locale value using the prop, the config default, or a fallback.\n *\n * Default value: `\"en\"`\n */\nexport const resolveLocaleProp = createPropResolver((config) => config.defaultLocale, \"en\");\n/**\n * Resolves a portal's `to` value using the prop, the config default, or a fallback.\n *\n * Default value: `\"body\"`\n */\nexport const resolvePortalToProp = createPropResolver((config) => config.defaultPortalTo, \"body\");\n","<script lang=\"ts\">\n\timport { getAllContexts, mount, unmount } from \"svelte\";\n\timport { DEV } from \"esm-env\";\n\timport { watch } from \"runed\";\n\timport PortalConsumer from \"./portal-consumer.svelte\";\n\timport type { PortalProps } from \"./types.js\";\n\timport { isBrowser } from \"../../../internal/is.js\";\n\timport { resolvePortalToProp } from \"../config/prop-resolvers.js\";\n\n\tlet { to: toProp, children, disabled }: PortalProps = $props();\n\n\tconst to = resolvePortalToProp(() => toProp);\n\tconst context = getAllContexts();\n\n\tlet target = $derived(getTarget());\n\n\tfunction getTarget() {\n\t\tif (!isBrowser || disabled) return null;\n\n\t\tlet localTarget: Element | null = null;\n\n\t\tif (typeof to.current === \"string\") {\n\t\t\tconst target = document.querySelector(to.current);\n\t\t\tif (DEV && target === null) {\n\t\t\t\tthrow new Error(`Target element \"${to.current}\" not found.`);\n\t\t\t}\n\t\t\tlocalTarget = target;\n\t\t} else {\n\t\t\tlocalTarget = to.current;\n\t\t}\n\n\t\tif (DEV && !(localTarget instanceof Element)) {\n\t\t\tconst type = localTarget === null ? \"null\" : typeof localTarget;\n\t\t\tthrow new TypeError(\n\t\t\t\t`Unknown portal target type: ${type}. Allowed types: string (query selector) or Element.`\n\t\t\t);\n\t\t}\n\n\t\treturn localTarget;\n\t}\n\n\tlet instance: ReturnType<typeof mount> | null;\n\n\tfunction unmountInstance() {\n\t\tif (instance) {\n\t\t\tunmount(instance);\n\t\t\tinstance = null;\n\t\t}\n\t}\n\n\twatch([() => target, () => disabled], ([target, disabled]) => {\n\t\tif (!target || disabled) {\n\t\t\tunmountInstance();\n\t\t\treturn;\n\t\t}\n\t\tinstance = mount(PortalConsumer, {\n\t\t\ttarget: target,\n\t\t\tprops: { children },\n\t\t\tcontext,\n\t\t});\n\n\t\treturn () => {\n\t\t\tunmountInstance();\n\t\t};\n\t});\n</script>\n\n{#if disabled}\n\t{@render children?.()}\n{/if}\n","import { on } from \"svelte/events\";\n/**\n * Creates a typed event dispatcher and listener pair for custom events\n * @template T - The type of data that will be passed in the event detail\n * @param eventName - The name of the custom event\n * @param options - CustomEvent options (bubbles, cancelable, etc.)\n */\nexport class CustomEventDispatcher {\n eventName;\n options;\n constructor(eventName, options = { bubbles: true, cancelable: true }) {\n this.eventName = eventName;\n this.options = options;\n }\n createEvent(detail) {\n return new CustomEvent(this.eventName, {\n ...this.options,\n detail,\n });\n }\n dispatch(element, detail) {\n const event = this.createEvent(detail);\n element.dispatchEvent(event);\n return event;\n }\n listen(element, callback, options) {\n const handler = (event) => {\n callback(event);\n };\n return on(element, this.eventName, handler, options);\n }\n}\n","// oxlint-disable-next-line no-explicit-any\nexport function debounce(fn, wait = 500) {\n let timeout = null;\n const debounced = (...args) => {\n if (timeout !== null) {\n clearTimeout(timeout);\n }\n timeout = setTimeout(() => {\n fn(...args);\n }, wait);\n };\n debounced.destroy = () => {\n if (timeout !== null) {\n clearTimeout(timeout);\n timeout = null;\n }\n };\n return debounced;\n}\n","export function isOrContainsTarget(node, target) {\n return node === target || node.contains(target);\n}\nexport function getOwnerDocument(el) {\n return el?.ownerDocument ?? document;\n}\n","export function getFirstNonCommentChild(element) {\n if (!element)\n return null;\n for (const child of element.childNodes) {\n if (child.nodeType !== Node.COMMENT_NODE) {\n return child;\n }\n }\n return null;\n}\n/**\n * Determines if the click event truly occurred outside the content node.\n * This was added to handle password managers and other elements that may be injected\n * into the DOM but visually appear inside the content.\n */\nexport function isClickTrulyOutside(event, contentNode) {\n const { clientX, clientY } = event;\n const rect = contentNode.getBoundingClientRect();\n return (clientX < rect.left || clientX > rect.right || clientY < rect.top || clientY > rect.bottom);\n}\n","import { kbd } from \"../../internal/kbd.js\";\nexport const SELECTION_KEYS = [kbd.ENTER, kbd.SPACE];\nexport const FIRST_KEYS = [kbd.ARROW_DOWN, kbd.PAGE_UP, kbd.HOME];\nexport const LAST_KEYS = [kbd.ARROW_UP, kbd.PAGE_DOWN, kbd.END];\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nexport const SUB_OPEN_KEYS = {\n ltr: [...SELECTION_KEYS, kbd.ARROW_RIGHT],\n rtl: [...SELECTION_KEYS, kbd.ARROW_LEFT],\n};\nexport const SUB_CLOSE_KEYS = {\n ltr: [kbd.ARROW_LEFT],\n rtl: [kbd.ARROW_RIGHT],\n};\nexport function isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nexport function getCheckedState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nexport function isMouseEvent(event) {\n return event.pointerType === \"mouse\";\n}\n","import { getDocument, getWindow } from \"svelte-toolbelt\";\nimport { isBrowser, isElementHidden, isSelectableInput } from \"./is.js\";\n/**\n * Handles `initialFocus` prop behavior for the\n * Calendar & RangeCalendar components.\n */\nexport function handleCalendarInitialFocus(calendar) {\n if (!isBrowser)\n return;\n const selectedDay = calendar.querySelector(\"[data-selected]\");\n if (selectedDay)\n return focusWithoutScroll(selectedDay);\n const today = calendar.querySelector(\"[data-today]\");\n if (today)\n return focusWithoutScroll(today);\n const firstDay = calendar.querySelector(\"[data-calendar-date]\");\n if (firstDay)\n return focusWithoutScroll(firstDay);\n}\n/**\n * A utility function that focuses an element without scrolling.\n */\nexport function focusWithoutScroll(element) {\n const doc = getDocument(element);\n const win = getWindow(element);\n const scrollPosition = {\n x: win.pageXOffset || doc.documentElement.scrollLeft,\n y: win.pageYOffset || doc.documentElement.scrollTop,\n };\n element.focus();\n win.scrollTo(scrollPosition.x, scrollPosition.y);\n}\n/**\n * A utility function that focuses an element.\n */\nexport function focus(element, { select = false } = {}) {\n if (!element || !element.focus)\n return;\n const doc = getDocument(element);\n if (doc.activeElement === element)\n return;\n const previouslyFocusedElement = doc.activeElement;\n // prevent scroll on focus\n element.focus({ preventScroll: true });\n // only elect if its not the same element, it supports selection, and we need to select it\n if (element !== previouslyFocusedElement && isSelectableInput(element) && select) {\n element.select();\n }\n}\n/**\n * Attempts to focus the first element in a list of candidates.\n * Stops when focus is successful.\n */\nexport function focusFirst(candidates, { select = false } = {}, getActiveElement) {\n const previouslyFocusedElement = getActiveElement();\n for (const candidate of candidates) {\n focus(candidate, { select });\n if (getActiveElement() !== previouslyFocusedElement)\n return true;\n }\n}\n/**\n * Returns the first visible element in a list.\n * NOTE: Only checks visibility up to the `container`.\n */\nexport function findVisible(elements, container) {\n for (const element of elements) {\n // we stop checking if it's hidden at the `container` level (excluding)\n if (!isElementHidden(element, container))\n return element;\n }\n}\n/**\n * Returns a list of potential tabbable candidates.\n *\n * NOTE: This is only a close approximation. For example it doesn't take into account cases like when\n * elements are not visible. This cannot be worked out easily by just reading a property, but rather\n * necessitate runtime knowledge (computed styles, etc). We deal with these cases separately.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker\n * Credit: https://github.com/discord/focus-layers/blob/master/src/util/wrapFocus.tsx#L1\n */\nexport function getTabbableCandidates(container) {\n const nodes = [];\n const doc = getDocument(container);\n const walker = doc.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n // oxlint-disable-next-line no-explicit-any\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput)\n return NodeFilter.FILTER_SKIP;\n // `.tabIndex` is not the same as the `tabindex` attribute. It works on the\n // runtime's understanding of tabbability, so this automatically accounts\n // for any kind of element that could be tabbed to.\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n },\n });\n while (walker.nextNode())\n nodes.push(walker.currentNode);\n // we do not take into account the order of nodes with positive `tabIndex` as it\n // hinders accessibility to have tab order different from visual order.\n return nodes;\n}\n/**\n * A utility function that returns the first and last elements within a container that are\n * visible and focusable.\n */\nexport function getTabbableEdges(container) {\n const candidates = getTabbableCandidates(container);\n const first = findVisible(candidates, container);\n const last = findVisible(candidates.reverse(), container);\n return [first, last];\n}\n","/*!\n* tabbable 6.3.0\n* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n*/\n// NOTE: separate `:not()` selectors has broader browser support than the newer\n// `:not([inert], [inert] *)` (Feb 2023)\n// CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes\n// the entire query to fail, resulting in no nodes found, which will break a lot\n// of things... so we have to rely on JS to identify nodes inside an inert container\nvar candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable=\"false\"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];\nvar candidateSelector = /* #__PURE__ */candidateSelectors.join(',');\nvar NoElement = typeof Element === 'undefined';\nvar matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {\n var _element$getRootNode;\n return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);\n} : function (element) {\n return element === null || element === void 0 ? void 0 : element.ownerDocument;\n};\n\n/**\n * Determines if a node is inert or in an inert ancestor.\n * @param {Element} [node]\n * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to\n * see if any of them are inert. If false, only `node` itself is considered.\n * @returns {boolean} True if inert itself or by way of being in an inert ancestor.\n * False if `node` is falsy.\n */\nvar _isInert = function isInert(node, lookUp) {\n var _node$getAttribute;\n if (lookUp === void 0) {\n lookUp = true;\n }\n // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`\n // JS API property; we have to check the attribute, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's an active element\n var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');\n var inert = inertAtt === '' || inertAtt === 'true';\n\n // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`\n // if it weren't for `matches()` not being a function on shadow roots; the following\n // code works for any kind of node\n // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`\n // so it likely would not support `:is([inert] *)` either...\n var result = inert || lookUp && node && _isInert(node.parentNode); // recursive\n\n return result;\n};\n\n/**\n * Determines if a node's content is editable.\n * @param {Element} [node]\n * @returns True if it's content-editable; false if it's not or `node` is falsy.\n */\nvar isContentEditable = function isContentEditable(node) {\n var _node$getAttribute2;\n // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have\n // to use the attribute directly to check for this, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's a non-editable element\n var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');\n return attValue === '' || attValue === 'true';\n};\n\n/**\n * @param {Element} el container to check in\n * @param {boolean} includeContainer add container to check\n * @param {(node: Element) => boolean} filter filter candidates\n * @returns {Element[]}\n */\nvar getCandidates = function getCandidates(el, includeContainer, filter) {\n // even if `includeContainer=false`, we still have to check it for inertness because\n // if it's inert, all its children are inert\n if (_isInert(el)) {\n return [];\n }\n var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n if (includeContainer && matches.call(el, candidateSelector)) {\n candidates.unshift(el);\n }\n candidates = candidates.filter(filter);\n return candidates;\n};\n\n/**\n * @callback GetShadowRoot\n * @param {Element} element to check for shadow root\n * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.\n */\n\n/**\n * @callback ShadowRootFilter\n * @param {Element} shadowHostNode the element which contains shadow content\n * @returns {boolean} true if a shadow root could potentially contain valid candidates.\n */\n\n/**\n * @typedef {Object} CandidateScope\n * @property {Element} scopeParent contains inner candidates\n * @property {Element[]} candidates list of candidates found in the scope parent\n */\n\n/**\n * @typedef {Object} IterativeOptions\n * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;\n * if a function, implies shadow support is enabled and either returns the shadow root of an element\n * or a boolean stating if it has an undisclosed shadow root\n * @property {(node: Element) => boolean} filter filter candidates\n * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list\n * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;\n */\n\n/**\n * @param {Element[]} elements list of element containers to match candidates from\n * @param {boolean} includeContainer add container list to check\n * @param {IterativeOptions} options\n * @returns {Array.<Element|CandidateScope>}\n */\nvar _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {\n var candidates = [];\n var elementsToCheck = Array.from(elements);\n while (elementsToCheck.length) {\n var element = elementsToCheck.shift();\n if (_isInert(element, false)) {\n // no need to look up since we're drilling down\n // anything inside this container will also be inert\n continue;\n }\n if (element.tagName === 'SLOT') {\n // add shadow dom slot scope (slot itself cannot be focusable)\n var assigned = element.assignedElements();\n var content = assigned.length ? assigned : element.children;\n var nestedCandidates = _getCandidatesIteratively(content, true, options);\n if (options.flatten) {\n candidates.push.apply(candidates, nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: nestedCandidates\n });\n }\n } else {\n // check candidate element\n var validCandidate = matches.call(element, candidateSelector);\n if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n candidates.push(element);\n }\n\n // iterate over shadow content if possible\n var shadowRoot = element.shadowRoot ||\n // check for an undisclosed shadow\n typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);\n\n // no inert look up because we're already drilling down and checking for inertness\n // on the way down, so all containers to this root node should have already been\n // vetted as non-inert\n var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));\n if (shadowRoot && validShadowRoot) {\n // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed\n // shadow exists, so look at light dom children as fallback BUT create a scope for any\n // child candidates found because they're likely slotted elements (elements that are\n // children of the web component element (which has the shadow), in the light dom, but\n // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,\n // _after_ we return from this recursive call\n var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n if (options.flatten) {\n candidates.push.apply(candidates, _nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: _nestedCandidates\n });\n }\n } else {\n // there's not shadow so just dig into the element's (light dom) children\n // __without__ giving the element special scope treatment\n elementsToCheck.unshift.apply(elementsToCheck, element.children);\n }\n }\n }\n return candidates;\n};\n\n/**\n * @private\n * Determines if the node has an explicitly specified `tabindex` attribute.\n * @param {HTMLElement} node\n * @returns {boolean} True if so; false if not.\n */\nvar hasTabIndex = function hasTabIndex(node) {\n return !isNaN(parseInt(node.getAttribute('tabindex'), 10));\n};\n\n/**\n * Determine the tab index of a given node.\n * @param {HTMLElement} node\n * @returns {number} Tab order (negative, 0, or positive number).\n * @throws {Error} If `node` is falsy.\n */\nvar getTabIndex = function getTabIndex(node) {\n if (!node) {\n throw new Error('No node provided');\n }\n if (node.tabIndex < 0) {\n // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default\n // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,\n // yet they are still part of the regular tab order; in FF, they get a default\n // `tabIndex` of 0; since Chrome still puts those elements in the regular tab\n // order, consider their tab index to be 0.\n // Also browsers do not return `tabIndex` correctly for contentEditable nodes;\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {\n return 0;\n }\n }\n return node.tabIndex;\n};\n\n/**\n * Determine the tab index of a given node __for sort order purposes__.\n * @param {HTMLElement} node\n * @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,\n * has tabIndex -1, but needs to be sorted by document order in order for its content to be\n * inserted into the correct sort position.\n * @returns {number} Tab order (negative, 0, or positive number).\n */\nvar getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {\n var tabIndex = getTabIndex(node);\n if (tabIndex < 0 && isScope && !hasTabIndex(node)) {\n return 0;\n }\n return tabIndex;\n};\nvar sortOrderedTabbables = function sortOrderedTabbables(a, b) {\n return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n};\nvar isInput = function isInput(node) {\n return node.tagName === 'INPUT';\n};\nvar isHiddenInput = function isHiddenInput(node) {\n return isInput(node) && node.type === 'hidden';\n};\nvar isDetailsWithSummary = function isDetailsWithSummary(node) {\n var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {\n return child.tagName === 'SUMMARY';\n });\n return r;\n};\nvar getCheckedRadio = function getCheckedRadio(nodes, form) {\n for (var i = 0; i < nodes.length; i++) {\n if (nodes[i].checked && nodes[i].form === form) {\n return nodes[i];\n }\n }\n};\nvar isTabbableRadio = function isTabbableRadio(node) {\n if (!node.name) {\n return true;\n }\n var radioScope = node.form || getRootNode(node);\n var queryRadios = function queryRadios(name) {\n return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n };\n var radioSet;\n if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {\n radioSet = queryRadios(window.CSS.escape(node.name));\n } else {\n try {\n radioSet = queryRadios(node.name);\n } catch (err) {\n // eslint-disable-next-line no-console\n console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);\n return false;\n }\n }\n var checked = getCheckedRadio(radioSet, node.form);\n return !checked || checked === node;\n};\nvar isRadio = function isRadio(node) {\n return isInput(node) && node.type === 'radio';\n};\nvar isNonTabbableRadio = function isNonTabbableRadio(node) {\n return isRadio(node) && !isTabbableRadio(node);\n};\n\n// determines if a node is ultimately attached to the window's document\nvar isNodeAttached = function isNodeAttached(node) {\n var _nodeRoot;\n // The root node is the shadow root if the node is in a shadow DOM; some document otherwise\n // (but NOT _the_ document; see second 'If' comment below for more).\n // If rootNode is shadow root, it'll have a host, which is the element to which the shadow\n // is attached, and the one we need to check if it's in the document or not (because the\n // shadow, and all nodes it contains, is never considered in the document since shadows\n // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,\n // is hidden, or is not in the document itself but is detached, it will affect the shadow's\n // visibility, including all the nodes it contains). The host could be any normal node,\n // or a custom element (i.e. web component). Either way, that's the one that is considered\n // part of the document, not the shadow root, nor any of its children (i.e. the node being\n // tested).\n // To further complicate things, we have to look all the way up until we find a shadow HOST\n // that is attached (or find none) because the node might be in nested shadows...\n // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the\n // document (per the docs) and while it's a Document-type object, that document does not\n // appear to be the same as the node's `ownerDocument` for some reason, so it's safer\n // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,\n // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when\n // node is actually detached.\n // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible\n // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed\n // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then\n // `ownerDocument` will be `null`, hence the optional chaining on it.\n var nodeRoot = node && getRootNode(node);\n var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;\n\n // in some cases, a detached node will return itself as the root instead of a document or\n // shadow root object, in which case, we shouldn't try to look further up the host chain\n var attached = false;\n if (nodeRoot && nodeRoot !== node) {\n var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;\n attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));\n while (!attached && nodeRootHost) {\n var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;\n // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,\n // which means we need to get the host's host and check if that parent host is contained\n // in (i.e. attached to) the document\n nodeRoot = getRootNode(nodeRootHost);\n nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;\n attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));\n }\n }\n return attached;\n};\nvar isZeroArea = function isZeroArea(node) {\n var _node$getBoundingClie = node.getBoundingClientRect(),\n width = _node$getBoundingClie.width,\n height = _node$getBoundingClie.height;\n return width === 0 && height === 0;\n};\nvar isHidden = function isHidden(node, _ref) {\n var displayCheck = _ref.displayCheck,\n getShadowRoot = _ref.getShadowRoot;\n if (displayCheck === 'full-native') {\n if ('checkVisibility' in node) {\n // Chrome >= 105, Edge >= 105, Firefox >= 106, Safari >= 17.4\n // @see https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility#browser_compatibility\n var visible = node.checkVisibility({\n // Checking opacity might be desirable for some use cases, but natively,\n // opacity zero elements _are_ focusable and tabbable.\n checkOpacity: false,\n opacityProperty: false,\n contentVisibilityAuto: true,\n visibilityProperty: true,\n // This is an alias for `visibilityProperty`. Contemporary browsers\n // support both. However, this alias has wider browser support (Chrome\n // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so\n // we include it anyway.\n checkVisibilityCSS: true\n });\n return !visible;\n }\n // Fall through to manual visibility checks\n }\n\n // NOTE: visibility will be `undefined` if node is detached from the document\n // (see notes about this further down), which means we will consider it visible\n // (this is legacy behavior from a very long way back)\n // NOTE: we check this regardless of `displayCheck=\"none\"` because this is a\n // _visibility_ check, not a _display_ check\n if (getComputedStyle(node).visibility === 'hidden') {\n return true;\n }\n var isDirectSummary = matches.call(node, 'details>summary:first-of-type');\n var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {\n return true;\n }\n if (!displayCheck || displayCheck === 'full' ||\n // full-native can run this branch when it falls through in case\n // Element#checkVisibility is unsupported\n displayCheck === 'full-native' || displayCheck === 'legacy-full') {\n if (typeof getShadowRoot === 'function') {\n // figure out if we should consider the node to be in an undisclosed shadow and use the\n // 'non-zero-area' fallback\n var originalNode = node;\n while (node) {\n var parentElement = node.parentElement;\n var rootNode = getRootNode(node);\n if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow\n ) {\n // node has an undisclosed shadow which means we can only treat it as a black box, so we\n // fall back to a non-zero-area test\n return isZeroArea(node);\n } else if (node.assignedSlot) {\n // iterate up slot\n node = node.assignedSlot;\n } else if (!parentElement && rootNode !== node.ownerDocument) {\n // cross shadow boundary\n node = rootNode.host;\n } else {\n // iterate up normal dom\n node = parentElement;\n }\n }\n node = originalNode;\n }\n // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support\n // (i.e. it does not also presume that all nodes might have undisclosed shadows); or\n // it might be a falsy value, which means shadow DOM support is disabled\n\n // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)\n // now we can just test to see if it would normally be visible or not, provided it's\n // attached to the main document.\n // NOTE: We must consider case where node is inside a shadow DOM and given directly to\n // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.\n\n if (isNodeAttached(node)) {\n // this works wherever the node is: if there's at least one client rect, it's\n // somehow displayed; it also covers the CSS 'display: contents' case where the\n // node itself is hidden in place of its contents; and there's no need to search\n // up the hierarchy either\n return !node.getClientRects().length;\n }\n\n // Else, the node isn't attached to the document, which means the `getClientRects()`\n // API will __always__ return zero rects (this can happen, for example, if React\n // is used to render nodes onto a detached tree, as confirmed in this thread:\n // https://github.com/facebook/react/issues/9117#issuecomment-284228870)\n //\n // It also means that even window.getComputedStyle(node).display will return `undefined`\n // because styles are only computed for nodes that are in the document.\n //\n // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable\n // somehow. Though it was never stated officially, anyone who has ever used tabbable\n // APIs on nodes in detached containers has actually implicitly used tabbable in what\n // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck=\"none\"` mode -- essentially\n // considering __everything__ to be visible because of the innability to determine styles.\n //\n // v6.0.0: As of this major release, the default 'full' option __no longer treats detached\n // nodes as visible with the 'none' fallback.__\n if (displayCheck !== 'legacy-full') {\n return true; // hidden\n }\n // else, fallback to 'none' mode and consider the node visible\n } else if (displayCheck === 'non-zero-area') {\n // NOTE: Even though this tests that the node's client rect is non-zero to determine\n // whether it's displayed, and that a detached node will __always__ have a zero-area\n // client rect, we don't special-case for whether the node is attached or not. In\n // this mode, we do want to consider nodes that have a zero area to be hidden at all\n // times, and that includes attached or not.\n return isZeroArea(node);\n }\n\n // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume\n // it's visible\n return false;\n};\n\n// form fields (nested) inside a disabled fieldset are not focusable/tabbable\n// unless they are in the _first_ <legend> element of the top-most disabled\n// fieldset\nvar isDisabledFromFieldset = function isDisabledFromFieldset(node) {\n if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n var parentNode = node.parentElement;\n // check if `node` is contained in a disabled <fieldset>\n while (parentNode) {\n if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {\n // look for the first <legend> among the children of the disabled <fieldset>\n for (var i = 0; i < parentNode.children.length; i++) {\n var child = parentNode.children.item(i);\n // when the first <legend> (in document order) is found\n if (child.tagName === 'LEGEND') {\n // if its parent <fieldset> is not nested in another disabled <fieldset>,\n // return whether `node` is a descendant of its first <legend>\n return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);\n }\n }\n // the disabled <fieldset> containing `node` has no <legend>\n return true;\n }\n parentNode = parentNode.parentElement;\n }\n }\n\n // else, node's tabbable/focusable state should not be affected by a fieldset's\n // enabled/disabled state\n return false;\n};\nvar isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {\n if (node.disabled ||\n // we must do an inert look up to filter out any elements inside an inert ancestor\n // because we're limited in the type of selectors we can use in JSDom (see related\n // note related to `candidateSelectors`)\n _isInert(node) || isHiddenInput(node) || isHidden(node, options) ||\n // For a details element with a summary, the summary element gets the focus\n isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n return false;\n }\n return true;\n};\nvar isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {\n if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {\n return false;\n }\n return true;\n};\nvar isShadowRootTabbable = function isShadowRootTabbable(shadowHostNode) {\n var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);\n if (isNaN(tabIndex) || tabIndex >= 0) {\n return true;\n }\n // If a custom element has an explicit negative tabindex,\n // browsers will not allow tab targeting said element's children.\n return false;\n};\n\n/**\n * @param {Array.<Element|CandidateScope>} candidates\n * @returns Element[]\n */\nvar _sortByOrder = function sortByOrder(candidates) {\n var regularTabbables = [];\n var orderedTabbables = [];\n candidates.forEach(function (item, i) {\n var isScope = !!item.scopeParent;\n var element = isScope ? item.scopeParent : item;\n var candidateTabindex = getSortOrderTabIndex(element, isScope);\n var elements = isScope ? _sortByOrder(item.candidates) : element;\n if (candidateTabindex === 0) {\n isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);\n } else {\n orderedTabbables.push({\n documentOrder: i,\n tabIndex: candidateTabindex,\n item: item,\n isScope: isScope,\n content: elements\n });\n }\n });\n return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {\n sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);\n return acc;\n }, []).concat(regularTabbables);\n};\nvar tabbable = function tabbable(container, options) {\n options = options || {};\n var candidates;\n if (options.getShadowRoot) {\n candidates = _getCandidatesIteratively([container], options.includeContainer, {\n filter: isNodeMatchingSelectorTabbable.bind(null, options),\n flatten: false,\n getShadowRoot: options.getShadowRoot,\n shadowRootFilter: isShadowRootTabbable\n });\n } else {\n candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n }\n return _sortByOrder(candidates);\n};\nvar focusable = function focusable(container, options) {\n options = options || {};\n var candidates;\n if (options.getShadowRoot) {\n candidates = _getCandidatesIteratively([container], options.includeContainer, {\n filter: isNodeMatchingSelectorFocusable.bind(null, options),\n flatten: true,\n getShadowRoot: options.getShadowRoot\n });\n } else {\n candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n }\n return candidates;\n};\nvar isTabbable = function isTabbable(node, options) {\n options = options || {};\n if (!node) {\n throw new Error('No node provided');\n }\n if (matches.call(node, candidateSelector) === false) {\n return false;\n }\n return isNodeMatchingSelectorTabbable(options, node);\n};\nvar focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');\nvar isFocusable = function isFocusable(node, options) {\n options = options || {};\n if (!node) {\n throw new Error('No node provided');\n }\n if (matches.call(node, focusableCandidateSelector) === false) {\n return false;\n }\n return isNodeMatchingSelectorFocusable(options, node);\n};\n\nexport { focusable, getTabIndex, isFocusable, isTabbable, tabbable };\n//# sourceMappingURL=index.esm.js.map\n","import { focusable, isFocusable, isTabbable, tabbable } from \"tabbable\";\nimport { getDocument } from \"svelte-toolbelt\";\nfunction getTabbableOptions() {\n return {\n getShadowRoot: true,\n displayCheck: \n // JSDOM does not support the `tabbable` library. To solve this we can\n // check if `ResizeObserver` is a real function (not polyfilled), which\n // determines if the current environment is JSDOM-like.\n typeof ResizeObserver === \"function\" &&\n ResizeObserver.toString().includes(\"[native code]\")\n ? \"full\"\n : \"none\",\n };\n}\n/**\n * Gets all tabbable elements in the body and finds the next/previous tabbable element\n * from the `currentNode` based on the `direction` provided.\n * @param currentNode - the node we want to get the next/previous tabbable from\n */\nexport function getTabbableFrom(currentNode, direction) {\n if (!isTabbable(currentNode, getTabbableOptions())) {\n return getTabbableFromFocusable(currentNode, direction);\n }\n const doc = getDocument(currentNode);\n const allTabbable = tabbable(doc.body, getTabbableOptions());\n if (direction === \"prev\")\n allTabbable.reverse();\n const activeIndex = allTabbable.indexOf(currentNode);\n if (activeIndex === -1)\n return doc.body;\n const nextTabbableElements = allTabbable.slice(activeIndex + 1);\n return nextTabbableElements[0];\n}\nexport function getTabbableFromFocusable(currentNode, direction) {\n const doc = getDocument(currentNode);\n if (!isFocusable(currentNode, getTabbableOptions()))\n return doc.body;\n // find all focusable nodes, since some elements may be focusable but not tabbable\n // such as context menu triggers\n const allFocusable = focusable(doc.body, getTabbableOptions());\n // find index of current node among focusable siblings\n if (direction === \"prev\")\n allFocusable.reverse();\n const activeIndex = allFocusable.indexOf(currentNode);\n if (activeIndex === -1)\n return doc.body;\n const nextFocusableElements = allFocusable.slice(activeIndex + 1);\n // find the next focusable node that is also tabbable\n return nextFocusableElements.find((node) => isTabbable(node, getTabbableOptions())) ?? doc.body;\n}\n","/**\n * Checks if two arrays are equal by comparing their values.\n */\nexport function arraysAreEqual(arr1, arr2) {\n if (arr1.length !== arr2.length)\n return false;\n return arr1.every((value, index) => isEqual(value, arr2[index]));\n}\n/**\n * A utility function that compares two values for equality.\n */\nfunction isEqual(a, b) {\n if (Number.isNaN(a) && Number.isNaN(b))\n return true;\n if (Array.isArray(a) && Array.isArray(b))\n return arraysAreEqual(a, b);\n if (typeof a === \"object\" && typeof b === \"object\")\n return isDeepEqual(a, b);\n return Object.is(a, b);\n}\n/**\n * A utility function that compares two values for deep equality.\n */\nfunction isDeepEqual(a, b) {\n if (typeof a !== \"object\" || typeof b !== \"object\" || a === null || b === null)\n return false;\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n if (aKeys.length !== bKeys.length)\n return false;\n for (const key of aKeys) {\n if (!bKeys.includes(key))\n return false;\n if (!isEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n}\n/**\n * Splits an array into chunks of a given size.\n * @param arr The array to split.\n * @param size The size of each chunk.\n * @returns An array of arrays, where each sub-array has `size` elements from the original array.\n * @example ```ts\n * const arr = [1, 2, 3, 4, 5, 6, 7, 8];\n * const chunks = chunk(arr, 3);\n * // chunks = [[1, 2, 3], [4, 5, 6], [7, 8]]\n * ```\n */\nexport function chunk(arr, size) {\n if (size <= 0)\n return [];\n const result = [];\n for (let i = 0; i < arr.length; i += size) {\n result.push(arr.slice(i, i + size));\n }\n return result;\n}\n/**\n * Checks if the given index is valid for the given array.\n *\n * @param index - The index to check\n * @param arr - The array to check\n */\nexport function isValidIndex(index, arr) {\n return index >= 0 && index < arr.length;\n}\n/**\n * Returns the array element after the given index, or undefined for out-of-bounds or empty arrays.\n * @param array the array.\n * @param index the index of the current element.\n * @param loop loop to the beginning of the array if the next index is out of bounds?\n */\n/**\n * Returns the array element after the given index, or undefined for out-of-bounds or empty arrays.\n * For single-element arrays, returns the element if the index is 0.\n * @param array the array.\n * @param index the index of the current element.\n * @param loop loop to the beginning of the array if the next index is out of bounds?\n */\nexport function next(array, index, loop = true) {\n if (array.length === 0 || index < 0 || index >= array.length)\n return;\n if (array.length === 1 && index === 0)\n return array[0];\n if (index === array.length - 1)\n return loop ? array[0] : undefined;\n return array[index + 1];\n}\n/**\n * Returns the array element prior to the given index, or undefined for out-of-bounds or empty arrays.\n * For single-element arrays, returns the element if the index is 0.\n * @param array the array.\n * @param index the index of the current element.\n * @param loop loop to the end of the array if the previous index is out of bounds?\n */\nexport function prev(array, index, loop = true) {\n if (array.length === 0 || index < 0 || index >= array.length)\n return;\n if (array.length === 1 && index === 0)\n return array[0];\n if (index === 0)\n return loop ? array[array.length - 1] : undefined;\n return array[index - 1];\n}\n/**\n * Returns the element some number after the given index. If the target index is out of bounds:\n * - If looping is disabled, the first or last element will be returned.\n * - If looping is enabled, it will wrap around the array.\n * Returns undefined for empty arrays or out-of-bounds initial indices.\n * @param array the array.\n * @param index the index of the current element.\n * @param increment the number of elements to move forward (can be negative).\n * @param loop loop around the array if the target index is out of bounds?\n */\nexport function forward(array, index, increment, loop = true) {\n if (array.length === 0 || index < 0 || index >= array.length)\n return;\n let targetIndex = index + increment;\n if (loop) {\n // Ensure positive modulus\n targetIndex = ((targetIndex % array.length) + array.length) % array.length;\n }\n else {\n // Clamp to array bounds when not looping\n targetIndex = Math.max(0, Math.min(targetIndex, array.length - 1));\n }\n return array[targetIndex];\n}\n/**\n * Returns the element some number before the given index. If the target index is out of bounds:\n * - If looping is disabled, the first or last element will be returned.\n * - If looping is enabled, it will wrap around the array.\n * Returns undefined for empty arrays or out-of-bounds initial indices.\n * @param array the array.\n * @param index the index of the current element.\n * @param decrement the number of elements to move backward (can be negative).\n * @param loop loop around the array if the target index is out of bounds?\n */\nexport function backward(array, index, decrement, loop = true) {\n if (array.length === 0 || index < 0 || index >= array.length)\n return;\n let targetIndex = index - decrement;\n if (loop) {\n // Ensure positive modulus\n targetIndex = ((targetIndex % array.length) + array.length) % array.length;\n }\n else {\n // Clamp to array bounds when not looping\n targetIndex = Math.max(0, Math.min(targetIndex, array.length - 1));\n }\n return array[targetIndex];\n}\n/**\n * Finds the next matching item from a list of values based on a search string.\n *\n * This function handles several special cases in typeahead behavior:\n *\n * 1. Space handling: When a search string ends with a space, it handles it specially:\n * - If there's only one match for the text before the space, it ignores the space\n * - If there are multiple matches and the current match already starts with the search prefix\n * followed by a space, it keeps the current match (doesn't change selection on space)\n * - Only after typing characters beyond the space will it move to a more specific match\n *\n * 2. Repeated character handling: If a search consists of repeated characters (e.g., \"aaa\"),\n * it treats it as a single character for matching purposes\n *\n * 3. Cycling behavior: The function wraps around the values array starting from the current match\n * to find the next appropriate match, creating a cycling selection behavior\n *\n * @param values - Array of string values to search through (e.g., the text content of menu items)\n * @param search - The current search string typed by the user\n * @param currentMatch - The currently selected/matched item, if any\n * @returns The next matching value that should be selected, or undefined if no match is found\n */\nexport function getNextMatch(values, search, currentMatch) {\n const lowerSearch = search.toLowerCase();\n if (lowerSearch.endsWith(\" \")) {\n const searchWithoutSpace = lowerSearch.slice(0, -1);\n const matchesWithoutSpace = values.filter((value) => value.toLowerCase().startsWith(searchWithoutSpace));\n /**\n * If there's only one match for the prefix without space, we don't\n * watch to match with space.\n */\n if (matchesWithoutSpace.length <= 1) {\n return getNextMatch(values, searchWithoutSpace, currentMatch);\n }\n const currentMatchLowercase = currentMatch?.toLowerCase();\n /**\n * If the current match already starts with the search prefix and has a space afterward,\n * and the user has only typed up to that space, keep the current match until they\n * disambiguate.\n */\n if (currentMatchLowercase &&\n currentMatchLowercase.startsWith(searchWithoutSpace) &&\n currentMatchLowercase.charAt(searchWithoutSpace.length) === \" \" &&\n search.trim() === searchWithoutSpace) {\n return currentMatch;\n }\n /**\n * With multiple matches, find items that match the full search string with space\n */\n const spacedMatches = values.filter((value) => value.toLowerCase().startsWith(lowerSearch));\n /**\n * If we found matches with the space, use the first one that's not the current match\n */\n if (spacedMatches.length > 0) {\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedMatches = wrapArray(spacedMatches, Math.max(currentMatchIndex, 0));\n // return the first match that is not the current one.\n const nextMatch = wrappedMatches.find((match) => match !== currentMatch);\n // fallback to current if no other is found.\n return nextMatch || currentMatch;\n }\n }\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const normalizedLowerSearch = normalizedSearch.toLowerCase();\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch)\n wrappedValues = wrappedValues.filter((v) => v !== currentMatch);\n const nextMatch = wrappedValues.find((value) => value?.toLowerCase().startsWith(normalizedLowerSearch));\n return nextMatch !== currentMatch ? nextMatch : undefined;\n}\n/**\n * Wraps an array around itself at a given start index\n * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`\n */\nexport function wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\n","import { boxWith } from \"svelte-toolbelt\";\nimport { noop } from \"./noop.js\";\nconst defaultOptions = {\n afterMs: 10000,\n onChange: noop,\n};\n/**\n * Creates a box which will be reset to the default value after some time.\n *\n * @param defaultValue The value which will be set.\n * @param afterMs A zero-or-greater delay in milliseconds.\n */\nexport function boxAutoReset(defaultValue, options) {\n const { afterMs, onChange, getWindow } = { ...defaultOptions, ...options };\n let timeout = null;\n let value = $state(defaultValue);\n function resetAfter() {\n return getWindow().setTimeout(() => {\n value = defaultValue;\n onChange?.(defaultValue);\n }, afterMs);\n }\n $effect(() => {\n return () => {\n if (timeout)\n getWindow().clearTimeout(timeout);\n };\n });\n return boxWith(() => value, (v) => {\n value = v;\n onChange?.(v);\n if (timeout)\n getWindow().clearTimeout(timeout);\n timeout = resetAfter();\n });\n}\n","import { getNextMatch } from \"./arrays.js\";\nimport { boxAutoReset } from \"./box-auto-reset.svelte.js\";\nexport class DOMTypeahead {\n #opts;\n #search;\n #onMatch = $derived.by(() => {\n if (this.#opts.onMatch)\n return this.#opts.onMatch;\n return (node) => node.focus();\n });\n #getCurrentItem = $derived.by(() => {\n if (this.#opts.getCurrentItem)\n return this.#opts.getCurrentItem;\n return this.#opts.getActiveElement;\n });\n constructor(opts) {\n this.#opts = opts;\n this.#search = boxAutoReset(\"\", {\n afterMs: 1000,\n getWindow: opts.getWindow,\n });\n this.handleTypeaheadSearch = this.handleTypeaheadSearch.bind(this);\n this.resetTypeahead = this.resetTypeahead.bind(this);\n }\n handleTypeaheadSearch(key, candidates) {\n if (!candidates.length)\n return;\n this.#search.current = this.#search.current + key;\n const currentItem = this.#getCurrentItem();\n const currentMatch = candidates.find((item) => item === currentItem)?.textContent?.trim() ?? \"\";\n const values = candidates.map((item) => item.textContent?.trim() ?? \"\");\n const nextMatch = getNextMatch(values, this.#search.current, currentMatch);\n const newItem = candidates.find((item) => item.textContent?.trim() === nextMatch);\n if (newItem)\n this.#onMatch(newItem);\n return newItem;\n }\n resetTypeahead() {\n this.#search.current = \"\";\n }\n get search() {\n return this.#search.current;\n }\n}\n","import { executeCallbacks, getDocument, getWindow, } from \"svelte-toolbelt\";\nimport { on } from \"svelte/events\";\nimport { watch } from \"runed\";\nimport { boxAutoReset } from \"./box-auto-reset.svelte.js\";\nimport { isElement, isHTMLElement } from \"./is.js\";\nexport class GraceArea {\n #opts;\n #enabled;\n #isPointerInTransit;\n #pointerGraceArea = $state(null);\n constructor(opts) {\n this.#opts = opts;\n this.#enabled = $derived(this.#opts.enabled());\n this.#isPointerInTransit = boxAutoReset(false, {\n afterMs: opts.transitTimeout ?? 300,\n onChange: (value) => {\n if (!this.#enabled)\n return;\n this.#opts.setIsPointerInTransit?.(value);\n },\n getWindow: () => getWindow(this.#opts.triggerNode()),\n });\n watch([opts.triggerNode, opts.contentNode, opts.enabled], ([triggerNode, contentNode, enabled]) => {\n if (!triggerNode || !contentNode || !enabled)\n return;\n const handleTriggerLeave = (e) => {\n this.#createGraceArea(e, contentNode);\n };\n const handleContentLeave = (e) => {\n this.#createGraceArea(e, triggerNode);\n };\n return executeCallbacks(on(triggerNode, \"pointerleave\", handleTriggerLeave), on(contentNode, \"pointerleave\", handleContentLeave));\n });\n watch(() => this.#pointerGraceArea, () => {\n const handleTrackPointerGrace = (e) => {\n if (!this.#pointerGraceArea)\n return;\n const target = e.target;\n if (!isElement(target))\n return;\n const pointerPosition = { x: e.clientX, y: e.clientY };\n const hasEnteredTarget = opts.triggerNode()?.contains(target) ||\n opts.contentNode()?.contains(target);\n const isPointerOutsideGraceArea = !isPointInPolygon(pointerPosition, this.#pointerGraceArea);\n if (hasEnteredTarget) {\n this.#removeGraceArea();\n }\n else if (isPointerOutsideGraceArea) {\n this.#removeGraceArea();\n opts.onPointerExit();\n }\n };\n const doc = getDocument(opts.triggerNode() ?? opts.contentNode());\n if (!doc)\n return;\n return on(doc, \"pointermove\", handleTrackPointerGrace);\n });\n }\n #removeGraceArea() {\n this.#pointerGraceArea = null;\n this.#isPointerInTransit.current = false;\n }\n #createGraceArea(e, hoverTarget) {\n const currentTarget = e.currentTarget;\n if (!isHTMLElement(currentTarget))\n return;\n const exitPoint = { x: e.clientX, y: e.clientY };\n const exitSide = getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());\n const paddedExitPoints = getPaddedExitPoints(exitPoint, exitSide);\n const hoverTargetPoints = getPointsFromRect(hoverTarget.getBoundingClientRect());\n const graceArea = getHull([...paddedExitPoints, ...hoverTargetPoints]);\n this.#pointerGraceArea = graceArea;\n this.#isPointerInTransit.current = true;\n }\n}\nfunction getExitSideFromRect(point, rect) {\n const top = Math.abs(rect.top - point.y);\n const bottom = Math.abs(rect.bottom - point.y);\n const right = Math.abs(rect.right - point.x);\n const left = Math.abs(rect.left - point.x);\n switch (Math.min(top, bottom, right, left)) {\n case left:\n return \"left\";\n case right:\n return \"right\";\n case top:\n return \"top\";\n case bottom:\n return \"bottom\";\n default:\n throw new Error(\"unreachable\");\n }\n}\nfunction getPaddedExitPoints(exitPoint, exitSide, padding = 5) {\n // we extend the tip of the exit point to make it easier to navigate without\n // a minor jitter triggering a pointer exit\n const tipPadding = padding * 1.5;\n switch (exitSide) {\n case \"top\":\n return [\n { x: exitPoint.x - padding, y: exitPoint.y + padding },\n { x: exitPoint.x, y: exitPoint.y - tipPadding },\n { x: exitPoint.x + padding, y: exitPoint.y + padding },\n ];\n case \"bottom\":\n return [\n { x: exitPoint.x - padding, y: exitPoint.y - padding },\n { x: exitPoint.x, y: exitPoint.y + tipPadding },\n { x: exitPoint.x + padding, y: exitPoint.y - padding },\n ];\n case \"left\":\n return [\n { x: exitPoint.x + padding, y: exitPoint.y - padding },\n { x: exitPoint.x - tipPadding, y: exitPoint.y },\n { x: exitPoint.x + padding, y: exitPoint.y + padding },\n ];\n case \"right\":\n return [\n { x: exitPoint.x - padding, y: exitPoint.y - padding },\n { x: exitPoint.x + tipPadding, y: exitPoint.y },\n { x: exitPoint.x - padding, y: exitPoint.y + padding },\n ];\n }\n}\nfunction getPointsFromRect(rect) {\n const { top, right, bottom, left } = rect;\n return [\n { x: left, y: top },\n { x: right, y: top },\n { x: right, y: bottom },\n { x: left, y: bottom },\n ];\n}\n// Determine if a point is inside of a polygon.\n// Based on https://github.com/substack/point-in-polygon\nfunction isPointInPolygon(point, polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y;\n // prettier-ignore\n const intersect = ((yi > y) !== (yj > y)) && (x < (xj - xi) * (y - yi) / (yj - yi) + xi);\n if (intersect)\n inside = !inside;\n }\n return inside;\n}\n// Returns a new array of points representing the convex hull of the given set of points.\n// https://www.nayuki.io/page/convex-hull-algorithm\nfunction getHull(points) {\n const newPoints = points.slice();\n newPoints.sort((a, b) => {\n if (a.x < b.x)\n return -1;\n else if (a.x > b.x)\n return +1;\n else if (a.y < b.y)\n return -1;\n else if (a.y > b.y)\n return +1;\n else\n return 0;\n });\n return getHullPresorted(newPoints);\n}\n// Returns the convex hull, assuming that each points[i] <= points[i + 1]. Runs in O(n) time.\nfunction getHullPresorted(points) {\n if (points.length <= 1)\n return points.slice();\n const upperHull = [];\n for (let i = 0; i < points.length; i++) {\n const p = points[i];\n while (upperHull.length >= 2) {\n const q = upperHull[upperHull.length - 1];\n const r = upperHull[upperHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))\n upperHull.pop();\n else\n break;\n }\n upperHull.push(p);\n }\n upperHull.pop();\n const lowerHull = [];\n for (let i = points.length - 1; i >= 0; i--) {\n const p = points[i];\n while (lowerHull.length >= 2) {\n const q = lowerHull[lowerHull.length - 1];\n const r = lowerHull[lowerHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))\n lowerHull.pop();\n else\n break;\n }\n lowerHull.push(p);\n }\n lowerHull.pop();\n if (upperHull.length === 1 &&\n lowerHull.length === 1 &&\n upperHull[0].x === lowerHull[0].x &&\n upperHull[0].y === lowerHull[0].y)\n return upperHull;\n else\n return upperHull.concat(lowerHull);\n}\n","import { afterTick, mergeProps, onDestroyEffect, attachRef, DOMContext, getWindow, simpleBox, boxWith, } from \"svelte-toolbelt\";\nimport { Context, watch } from \"runed\";\nimport { FIRST_LAST_KEYS, LAST_KEYS, SELECTION_KEYS, SUB_OPEN_KEYS, getCheckedState, isMouseEvent, } from \"./utils.js\";\nimport { focusFirst } from \"../../internal/focus.js\";\nimport { CustomEventDispatcher } from \"../../internal/events.js\";\nimport { isElement, isElementOrSVGElement, isHTMLElement } from \"../../internal/is.js\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { createBitsAttrs, getAriaChecked, boolToStr, getDataOpenClosed, boolToEmptyStrOrUndef, } from \"../../internal/attrs.js\";\nimport { IsUsingKeyboard } from \"../../index.js\";\nimport { getTabbableFrom } from \"../../internal/tabbable.js\";\nimport { isTabbable } from \"tabbable\";\nimport { DOMTypeahead } from \"../../internal/dom-typeahead.svelte.js\";\nimport { RovingFocusGroup } from \"../../internal/roving-focus-group.js\";\nimport { GraceArea } from \"../../internal/grace-area.svelte.js\";\nimport { PresenceManager } from \"../../internal/presence-manager.svelte.js\";\nexport const CONTEXT_MENU_TRIGGER_ATTR = \"data-context-menu-trigger\";\nexport const CONTEXT_MENU_CONTENT_ATTR = \"data-context-menu-content\";\nconst MenuRootContext = new Context(\"Menu.Root\");\nconst MenuMenuContext = new Context(\"Menu.Root | Menu.Sub\");\nconst MenuContentContext = new Context(\"Menu.Content\");\nconst MenuGroupContext = new Context(\"Menu.Group | Menu.RadioGroup\");\nconst MenuRadioGroupContext = new Context(\"Menu.RadioGroup\");\nexport const MenuCheckboxGroupContext = new Context(\"Menu.CheckboxGroup\");\nexport const MenuOpenEvent = new CustomEventDispatcher(\"bitsmenuopen\", {\n bubbles: false,\n cancelable: true,\n});\nexport const menuAttrs = createBitsAttrs({\n component: \"menu\",\n parts: [\n \"trigger\",\n \"content\",\n \"sub-trigger\",\n \"item\",\n \"group\",\n \"group-heading\",\n \"checkbox-group\",\n \"checkbox-item\",\n \"radio-group\",\n \"radio-item\",\n \"separator\",\n \"sub-content\",\n \"arrow\",\n ],\n});\nexport class MenuRootState {\n static create(opts) {\n const root = new MenuRootState(opts);\n return MenuRootContext.set(root);\n }\n opts;\n isUsingKeyboard = new IsUsingKeyboard();\n ignoreCloseAutoFocus = $state(false);\n isPointerInTransit = $state(false);\n constructor(opts) {\n this.opts = opts;\n }\n getBitsAttr = (part) => {\n return menuAttrs.getAttr(part, this.opts.variant.current);\n };\n}\nexport class MenuMenuState {\n static create(opts, root) {\n return MenuMenuContext.set(new MenuMenuState(opts, root, null));\n }\n opts;\n root;\n parentMenu;\n contentId = boxWith(() => \"\");\n contentNode = $state(null);\n contentPresence;\n triggerNode = $state(null);\n constructor(opts, root, parentMenu) {\n this.opts = opts;\n this.root = root;\n this.parentMenu = parentMenu;\n this.contentPresence = new PresenceManager({\n ref: boxWith(() => this.contentNode),\n open: this.opts.open,\n onComplete: () => {\n this.opts.onOpenChangeComplete.current(this.opts.open.current);\n },\n });\n if (parentMenu) {\n watch(() => parentMenu.opts.open.current, () => {\n if (parentMenu.opts.open.current)\n return;\n this.opts.open.current = false;\n });\n }\n }\n toggleOpen() {\n this.opts.open.current = !this.opts.open.current;\n }\n onOpen() {\n this.opts.open.current = true;\n }\n onClose() {\n this.opts.open.current = false;\n }\n}\nexport class MenuContentState {\n static create(opts) {\n return MenuContentContext.set(new MenuContentState(opts, MenuMenuContext.get()));\n }\n opts;\n parentMenu;\n rovingFocusGroup;\n domContext;\n attachment;\n search = $state(\"\");\n #timer = 0;\n #handleTypeaheadSearch;\n mounted = $state(false);\n #isSub;\n constructor(opts, parentMenu) {\n this.opts = opts;\n this.parentMenu = parentMenu;\n this.domContext = new DOMContext(opts.ref);\n this.attachment = attachRef(this.opts.ref, (v) => {\n if (this.parentMenu.contentNode !== v) {\n this.parentMenu.contentNode = v;\n }\n });\n parentMenu.contentId = opts.id;\n this.#isSub = opts.isSub ?? false;\n this.onkeydown = this.onkeydown.bind(this);\n this.onblur = this.onblur.bind(this);\n this.onfocus = this.onfocus.bind(this);\n this.handleInteractOutside = this.handleInteractOutside.bind(this);\n new GraceArea({\n contentNode: () => this.parentMenu.contentNode,\n triggerNode: () => this.parentMenu.triggerNode,\n enabled: () => this.parentMenu.opts.open.current &&\n Boolean(this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr(\"sub-trigger\"))),\n onPointerExit: () => {\n this.parentMenu.opts.open.current = false;\n },\n setIsPointerInTransit: (value) => {\n this.parentMenu.root.isPointerInTransit = value;\n },\n });\n this.#handleTypeaheadSearch = new DOMTypeahead({\n getActiveElement: () => this.domContext.getActiveElement(),\n getWindow: () => this.domContext.getWindow(),\n }).handleTypeaheadSearch;\n this.rovingFocusGroup = new RovingFocusGroup({\n rootNode: boxWith(() => this.parentMenu.contentNode),\n candidateAttr: this.parentMenu.root.getBitsAttr(\"item\"),\n loop: this.opts.loop,\n orientation: boxWith(() => \"vertical\"),\n });\n watch(() => this.parentMenu.contentNode, (contentNode) => {\n if (!contentNode)\n return;\n const handler = () => {\n afterTick(() => {\n if (!this.parentMenu.root.isUsingKeyboard.current)\n return;\n this.rovingFocusGroup.focusFirstCandidate();\n });\n };\n return MenuOpenEvent.listen(contentNode, handler);\n });\n $effect(() => {\n if (!this.parentMenu.opts.open.current) {\n this.domContext.getWindow().clearTimeout(this.#timer);\n }\n });\n }\n #getCandidateNodes() {\n const node = this.parentMenu.contentNode;\n if (!node)\n return [];\n const candidates = Array.from(node.querySelectorAll(`[${this.parentMenu.root.getBitsAttr(\"item\")}]:not([data-disabled])`));\n return candidates;\n }\n #isPointerMovingToSubmenu() {\n return this.parentMenu.root.isPointerInTransit;\n }\n onCloseAutoFocus = (e) => {\n this.opts.onCloseAutoFocus.current?.(e);\n if (e.defaultPrevented || this.#isSub)\n return;\n if (this.parentMenu.triggerNode && isTabbable(this.parentMenu.triggerNode)) {\n e.preventDefault();\n this.parentMenu.triggerNode.focus();\n }\n };\n handleTabKeyDown(e) {\n /**\n * We locate the root `menu`'s trigger by going up the tree until\n * we find a menu that has no parent. This will allow us to focus the next\n * tabbable element before/after the root trigger.\n */\n let rootMenu = this.parentMenu;\n while (rootMenu.parentMenu !== null) {\n rootMenu = rootMenu.parentMenu;\n }\n // if for some unforeseen reason the root menu has no trigger, we bail\n if (!rootMenu.triggerNode)\n return;\n // cancel default tab behavior\n e.preventDefault();\n // find the next/previous tabbable\n const nodeToFocus = getTabbableFrom(rootMenu.triggerNode, e.shiftKey ? \"prev\" : \"next\");\n if (nodeToFocus) {\n /**\n * We set a flag to ignore the `onCloseAutoFocus` event handler\n * as well as the fallbacks inside the focus scope to prevent\n * race conditions causing focus to fall back to the body even\n * though we're trying to focus the next tabbable element.\n */\n this.parentMenu.root.ignoreCloseAutoFocus = true;\n rootMenu.onClose();\n afterTick(() => {\n nodeToFocus.focus();\n afterTick(() => {\n this.parentMenu.root.ignoreCloseAutoFocus = false;\n });\n });\n }\n else {\n this.domContext.getDocument().body.focus();\n }\n }\n onkeydown(e) {\n if (e.defaultPrevented)\n return;\n if (e.key === kbd.TAB) {\n this.handleTabKeyDown(e);\n return;\n }\n const target = e.target;\n const currentTarget = e.currentTarget;\n if (!isHTMLElement(target) || !isHTMLElement(currentTarget))\n return;\n const isKeydownInside = target.closest(`[${this.parentMenu.root.getBitsAttr(\"content\")}]`)?.id ===\n this.parentMenu.contentId.current;\n const isModifierKey = e.ctrlKey || e.altKey || e.metaKey;\n const isCharacterKey = e.key.length === 1;\n const kbdFocusedEl = this.rovingFocusGroup.handleKeydown(target, e);\n if (kbdFocusedEl)\n return;\n // prevent space from being considered with typeahead\n if (e.code === \"Space\")\n return;\n const candidateNodes = this.#getCandidateNodes();\n if (isKeydownInside) {\n if (!isModifierKey && isCharacterKey) {\n this.#handleTypeaheadSearch(e.key, candidateNodes);\n }\n }\n // focus first/last based on key pressed\n if (e.target?.id !== this.parentMenu.contentId.current)\n return;\n if (!FIRST_LAST_KEYS.includes(e.key))\n return;\n e.preventDefault();\n if (LAST_KEYS.includes(e.key)) {\n candidateNodes.reverse();\n }\n focusFirst(candidateNodes, { select: false }, () => this.domContext.getActiveElement());\n }\n onblur(e) {\n if (!isElement(e.currentTarget))\n return;\n if (!isElement(e.target))\n return;\n // clear search buffer when leaving the menu\n if (!e.currentTarget.contains?.(e.target)) {\n this.domContext.getWindow().clearTimeout(this.#timer);\n this.search = \"\";\n }\n }\n onfocus(_) {\n if (!this.parentMenu.root.isUsingKeyboard.current)\n return;\n afterTick(() => this.rovingFocusGroup.focusFirstCandidate());\n }\n onItemEnter() {\n return this.#isPointerMovingToSubmenu();\n }\n onItemLeave(e) {\n if (e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr(\"sub-trigger\")))\n return;\n if (this.#isPointerMovingToSubmenu() || this.parentMenu.root.isUsingKeyboard.current)\n return;\n const contentNode = this.parentMenu.contentNode;\n contentNode?.focus();\n this.rovingFocusGroup.setCurrentTabStopId(\"\");\n }\n onTriggerLeave() {\n if (this.#isPointerMovingToSubmenu())\n return true;\n return false;\n }\n handleInteractOutside(e) {\n if (!isElementOrSVGElement(e.target))\n return;\n const triggerId = this.parentMenu.triggerNode?.id;\n if (e.target.id === triggerId) {\n e.preventDefault();\n return;\n }\n if (e.target.closest(`#${triggerId}`)) {\n e.preventDefault();\n }\n }\n get shouldRender() {\n return this.parentMenu.contentPresence.shouldRender;\n }\n snippetProps = $derived.by(() => ({ open: this.parentMenu.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"menu\",\n \"aria-orientation\": \"vertical\",\n [this.parentMenu.root.getBitsAttr(\"content\")]: \"\",\n \"data-state\": getDataOpenClosed(this.parentMenu.opts.open.current),\n onkeydown: this.onkeydown,\n onblur: this.onblur,\n onfocus: this.onfocus,\n dir: this.parentMenu.root.opts.dir.current,\n style: {\n pointerEvents: \"auto\",\n },\n ...this.attachment,\n }));\n popperProps = {\n onCloseAutoFocus: (e) => this.onCloseAutoFocus(e),\n };\n}\nclass MenuItemSharedState {\n opts;\n content;\n attachment;\n #isFocused = $state(false);\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n this.attachment = attachRef(this.opts.ref);\n this.onpointermove = this.onpointermove.bind(this);\n this.onpointerleave = this.onpointerleave.bind(this);\n this.onfocus = this.onfocus.bind(this);\n this.onblur = this.onblur.bind(this);\n }\n onpointermove(e) {\n if (e.defaultPrevented)\n return;\n if (!isMouseEvent(e))\n return;\n if (this.opts.disabled.current) {\n this.content.onItemLeave(e);\n }\n else {\n const defaultPrevented = this.content.onItemEnter();\n if (defaultPrevented)\n return;\n const item = e.currentTarget;\n if (!isHTMLElement(item))\n return;\n item.focus();\n }\n }\n onpointerleave(e) {\n if (e.defaultPrevented)\n return;\n if (!isMouseEvent(e))\n return;\n this.content.onItemLeave(e);\n }\n onfocus(e) {\n afterTick(() => {\n if (e.defaultPrevented || this.opts.disabled.current)\n return;\n this.#isFocused = true;\n });\n }\n onblur(e) {\n afterTick(() => {\n if (e.defaultPrevented)\n return;\n this.#isFocused = false;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n tabindex: -1,\n role: \"menuitem\",\n \"aria-disabled\": boolToStr(this.opts.disabled.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.opts.disabled.current),\n \"data-highlighted\": this.#isFocused ? \"\" : undefined,\n [this.content.parentMenu.root.getBitsAttr(\"item\")]: \"\",\n //\n onpointermove: this.onpointermove,\n onpointerleave: this.onpointerleave,\n onfocus: this.onfocus,\n onblur: this.onblur,\n ...this.attachment,\n }));\n}\nexport class MenuItemState {\n static create(opts) {\n const item = new MenuItemSharedState(opts, MenuContentContext.get());\n return new MenuItemState(opts, item);\n }\n opts;\n item;\n root;\n #isPointerDown = false;\n constructor(opts, item) {\n this.opts = opts;\n this.item = item;\n this.root = item.content.parentMenu.root;\n this.onkeydown = this.onkeydown.bind(this);\n this.onclick = this.onclick.bind(this);\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n }\n #handleSelect() {\n if (this.item.opts.disabled.current)\n return;\n const selectEvent = new CustomEvent(\"menuitemselect\", { bubbles: true, cancelable: true });\n this.opts.onSelect.current(selectEvent);\n if (selectEvent.defaultPrevented) {\n this.item.content.parentMenu.root.isUsingKeyboard.current = false;\n return;\n }\n if (this.opts.closeOnSelect.current) {\n this.item.content.parentMenu.root.opts.onClose();\n }\n }\n onkeydown(e) {\n const isTypingAhead = this.item.content.search !== \"\";\n if (this.item.opts.disabled.current || (isTypingAhead && e.key === kbd.SPACE))\n return;\n if (SELECTION_KEYS.includes(e.key)) {\n if (!isHTMLElement(e.currentTarget))\n return;\n e.currentTarget.click();\n /**\n * We prevent default browser behavior for selection keys as they should trigger\n * a selection only:\n * - prevents space from scrolling the page.\n * - if keydown causes focus to move, prevents keydown from firing on the new target.\n */\n e.preventDefault();\n }\n }\n onclick(_) {\n if (this.item.opts.disabled.current)\n return;\n this.#handleSelect();\n }\n onpointerup(e) {\n if (e.defaultPrevented)\n return;\n if (!this.#isPointerDown) {\n if (!isHTMLElement(e.currentTarget))\n return;\n e.currentTarget?.click();\n }\n }\n onpointerdown(_) {\n this.#isPointerDown = true;\n }\n props = $derived.by(() => mergeProps(this.item.props, {\n onclick: this.onclick,\n onpointerdown: this.onpointerdown,\n onpointerup: this.onpointerup,\n onkeydown: this.onkeydown,\n }));\n}\nexport class MenuSubTriggerState {\n static create(opts) {\n const content = MenuContentContext.get();\n const item = new MenuItemSharedState(opts, content);\n const submenu = MenuMenuContext.get();\n return new MenuSubTriggerState(opts, item, content, submenu);\n }\n opts;\n item;\n content;\n submenu;\n attachment;\n #openTimer = null;\n constructor(opts, item, content, submenu) {\n this.opts = opts;\n this.item = item;\n this.content = content;\n this.submenu = submenu;\n this.attachment = attachRef(this.opts.ref, (v) => (this.submenu.triggerNode = v));\n this.onpointerleave = this.onpointerleave.bind(this);\n this.onpointermove = this.onpointermove.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n this.onclick = this.onclick.bind(this);\n onDestroyEffect(() => {\n this.#clearOpenTimer();\n });\n }\n #clearOpenTimer() {\n if (this.#openTimer === null)\n return;\n this.content.domContext.getWindow().clearTimeout(this.#openTimer);\n this.#openTimer = null;\n }\n onpointermove(e) {\n if (!isMouseEvent(e))\n return;\n if (!this.item.opts.disabled.current &&\n !this.submenu.opts.open.current &&\n !this.#openTimer &&\n !this.content.parentMenu.root.isPointerInTransit) {\n this.#openTimer = this.content.domContext.setTimeout(() => {\n this.submenu.onOpen();\n this.#clearOpenTimer();\n }, this.opts.openDelay.current);\n }\n }\n onpointerleave(e) {\n if (!isMouseEvent(e))\n return;\n this.#clearOpenTimer();\n }\n onkeydown(e) {\n const isTypingAhead = this.content.search !== \"\";\n if (this.item.opts.disabled.current || (isTypingAhead && e.key === kbd.SPACE))\n return;\n if (SUB_OPEN_KEYS[this.submenu.root.opts.dir.current].includes(e.key)) {\n e.currentTarget.click();\n e.preventDefault();\n }\n }\n onclick(e) {\n if (this.item.opts.disabled.current)\n return;\n /**\n * We manually focus because iOS Safari doesn't always focus on click (e.g. buttons)\n * and we rely heavily on `onFocusOutside` for submenus to close when switching\n * between separate submenus.\n */\n if (!isHTMLElement(e.currentTarget))\n return;\n e.currentTarget.focus();\n const selectEvent = new CustomEvent(\"menusubtriggerselect\", {\n bubbles: true,\n cancelable: true,\n });\n this.opts.onSelect.current(selectEvent);\n if (!this.submenu.opts.open.current) {\n this.submenu.onOpen();\n afterTick(() => {\n const contentNode = this.submenu.contentNode;\n if (!contentNode)\n return;\n MenuOpenEvent.dispatch(contentNode);\n });\n }\n }\n props = $derived.by(() => mergeProps({\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": boolToStr(this.submenu.opts.open.current),\n \"data-state\": getDataOpenClosed(this.submenu.opts.open.current),\n \"aria-controls\": this.submenu.opts.open.current\n ? this.submenu.contentId.current\n : undefined,\n [this.submenu.root.getBitsAttr(\"sub-trigger\")]: \"\",\n onclick: this.onclick,\n onpointermove: this.onpointermove,\n onpointerleave: this.onpointerleave,\n onkeydown: this.onkeydown,\n ...this.attachment,\n }, this.item.props));\n}\nexport class MenuCheckboxItemState {\n static create(opts, checkboxGroup) {\n const item = new MenuItemState(opts, new MenuItemSharedState(opts, MenuContentContext.get()));\n return new MenuCheckboxItemState(opts, item, checkboxGroup);\n }\n opts;\n item;\n group;\n constructor(opts, item, group = null) {\n this.opts = opts;\n this.item = item;\n this.group = group;\n // Watch for value changes in the group if we're part of one\n if (this.group) {\n watch(() => this.group.opts.value.current, (groupValues) => {\n this.opts.checked.current = groupValues.includes(this.opts.value.current);\n });\n // Watch for checked state changes and sync with group\n watch(() => this.opts.checked.current, (checked) => {\n if (checked) {\n this.group.addValue(this.opts.value.current);\n }\n else {\n this.group.removeValue(this.opts.value.current);\n }\n });\n }\n }\n toggleChecked() {\n if (this.opts.indeterminate.current) {\n this.opts.indeterminate.current = false;\n this.opts.checked.current = true;\n }\n else {\n this.opts.checked.current = !this.opts.checked.current;\n }\n }\n snippetProps = $derived.by(() => ({\n checked: this.opts.checked.current,\n indeterminate: this.opts.indeterminate.current,\n }));\n props = $derived.by(() => ({\n ...this.item.props,\n role: \"menuitemcheckbox\",\n \"aria-checked\": getAriaChecked(this.opts.checked.current, this.opts.indeterminate.current),\n \"data-state\": getCheckedState(this.opts.checked.current),\n [this.item.root.getBitsAttr(\"checkbox-item\")]: \"\",\n }));\n}\nexport class MenuGroupState {\n static create(opts) {\n return MenuGroupContext.set(new MenuGroupState(opts, MenuRootContext.get()));\n }\n opts;\n root;\n attachment;\n groupHeadingId = $state(undefined);\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"group\",\n \"aria-labelledby\": this.groupHeadingId,\n [this.root.getBitsAttr(\"group\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class MenuGroupHeadingState {\n static create(opts) {\n // Try to get checkbox group first, then radio group, then regular group\n const checkboxGroup = MenuCheckboxGroupContext.getOr(null);\n if (checkboxGroup)\n return new MenuGroupHeadingState(opts, checkboxGroup);\n const radioGroup = MenuRadioGroupContext.getOr(null);\n if (radioGroup)\n return new MenuGroupHeadingState(opts, radioGroup);\n return new MenuGroupHeadingState(opts, MenuGroupContext.get());\n }\n opts;\n group;\n attachment;\n constructor(opts, group) {\n this.opts = opts;\n this.group = group;\n this.attachment = attachRef(this.opts.ref, (v) => (this.group.groupHeadingId = v?.id));\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"group\",\n [this.group.root.getBitsAttr(\"group-heading\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class MenuSeparatorState {\n static create(opts) {\n return new MenuSeparatorState(opts, MenuRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"group\",\n [this.root.getBitsAttr(\"separator\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class MenuArrowState {\n static create() {\n return new MenuArrowState(MenuRootContext.get());\n }\n root;\n constructor(root) {\n this.root = root;\n }\n props = $derived.by(() => ({\n [this.root.getBitsAttr(\"arrow\")]: \"\",\n }));\n}\nexport class MenuRadioGroupState {\n static create(opts) {\n return MenuGroupContext.set(MenuRadioGroupContext.set(new MenuRadioGroupState(opts, MenuContentContext.get())));\n }\n opts;\n content;\n attachment;\n groupHeadingId = $state(null);\n root;\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n this.root = content.parentMenu.root;\n this.attachment = attachRef(this.opts.ref);\n }\n setValue(v) {\n this.opts.value.current = v;\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"radio-group\")]: \"\",\n role: \"group\",\n \"aria-labelledby\": this.groupHeadingId,\n ...this.attachment,\n }));\n}\nexport class MenuRadioItemState {\n static create(opts) {\n const radioGroup = MenuRadioGroupContext.get();\n const sharedItem = new MenuItemSharedState(opts, radioGroup.content);\n const item = new MenuItemState(opts, sharedItem);\n return new MenuRadioItemState(opts, item, radioGroup);\n }\n opts;\n item;\n group;\n attachment;\n isChecked = $derived.by(() => this.group.opts.value.current === this.opts.value.current);\n constructor(opts, item, group) {\n this.opts = opts;\n this.item = item;\n this.group = group;\n this.attachment = attachRef(this.opts.ref);\n }\n selectValue() {\n this.group.setValue(this.opts.value.current);\n }\n props = $derived.by(() => ({\n [this.group.root.getBitsAttr(\"radio-item\")]: \"\",\n ...this.item.props,\n role: \"menuitemradio\",\n \"aria-checked\": getAriaChecked(this.isChecked, false),\n \"data-state\": getCheckedState(this.isChecked),\n ...this.attachment,\n }));\n}\nexport class DropdownMenuTriggerState {\n static create(opts) {\n return new DropdownMenuTriggerState(opts, MenuMenuContext.get());\n }\n opts;\n parentMenu;\n attachment;\n constructor(opts, parentMenu) {\n this.opts = opts;\n this.parentMenu = parentMenu;\n this.attachment = attachRef(this.opts.ref, (v) => (this.parentMenu.triggerNode = v));\n }\n onclick = (e) => {\n /**\n * MacOS VoiceOver sends a click in Safari/Firefox bypassing the keydown event\n * when V0+Space is pressed. Since we already handle the keydown event and the\n * pointerdown events separately, we ignore it if the detail is not 0.\n */\n if (this.opts.disabled.current || e.detail !== 0)\n return;\n this.parentMenu.toggleOpen();\n e.preventDefault();\n };\n onpointerdown = (e) => {\n if (this.opts.disabled.current)\n return;\n if (e.pointerType === \"touch\")\n return e.preventDefault();\n if (e.button === 0 && e.ctrlKey === false) {\n this.parentMenu.toggleOpen();\n // prevent trigger focusing when opening to allow\n // the content to be given focus without competition\n if (!this.parentMenu.opts.open.current)\n e.preventDefault();\n }\n };\n onpointerup = (e) => {\n if (this.opts.disabled.current)\n return;\n if (e.pointerType === \"touch\") {\n e.preventDefault();\n this.parentMenu.toggleOpen();\n }\n };\n onkeydown = (e) => {\n if (this.opts.disabled.current)\n return;\n if (e.key === kbd.SPACE || e.key === kbd.ENTER) {\n this.parentMenu.toggleOpen();\n e.preventDefault();\n return;\n }\n if (e.key === kbd.ARROW_DOWN) {\n this.parentMenu.onOpen();\n e.preventDefault();\n }\n };\n #ariaControls = $derived.by(() => {\n if (this.parentMenu.opts.open.current && this.parentMenu.contentId.current)\n return this.parentMenu.contentId.current;\n return undefined;\n });\n props = $derived.by(() => ({\n id: this.opts.id.current,\n disabled: this.opts.disabled.current,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": boolToStr(this.parentMenu.opts.open.current),\n \"aria-controls\": this.#ariaControls,\n \"data-disabled\": boolToEmptyStrOrUndef(this.opts.disabled.current),\n \"data-state\": getDataOpenClosed(this.parentMenu.opts.open.current),\n [this.parentMenu.root.getBitsAttr(\"trigger\")]: \"\",\n //\n onclick: this.onclick,\n onpointerdown: this.onpointerdown,\n onpointerup: this.onpointerup,\n onkeydown: this.onkeydown,\n ...this.attachment,\n }));\n}\nexport class ContextMenuTriggerState {\n static create(opts) {\n return new ContextMenuTriggerState(opts, MenuMenuContext.get());\n }\n opts;\n parentMenu;\n attachment;\n #point = $state({ x: 0, y: 0 });\n virtualElement = simpleBox({\n getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...this.#point }),\n });\n #longPressTimer = null;\n constructor(opts, parentMenu) {\n this.opts = opts;\n this.parentMenu = parentMenu;\n this.attachment = attachRef(this.opts.ref, (v) => (this.parentMenu.triggerNode = v));\n this.oncontextmenu = this.oncontextmenu.bind(this);\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointermove = this.onpointermove.bind(this);\n this.onpointercancel = this.onpointercancel.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n watch(() => this.#point, (point) => {\n this.virtualElement.current = {\n getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...point }),\n };\n });\n watch(() => this.opts.disabled.current, (isDisabled) => {\n if (isDisabled) {\n this.#clearLongPressTimer();\n }\n });\n onDestroyEffect(() => this.#clearLongPressTimer());\n }\n #clearLongPressTimer() {\n if (this.#longPressTimer === null)\n return;\n getWindow(this.opts.ref.current).clearTimeout(this.#longPressTimer);\n }\n #handleOpen(e) {\n this.#point = { x: e.clientX, y: e.clientY };\n this.parentMenu.onOpen();\n }\n oncontextmenu(e) {\n if (e.defaultPrevented || this.opts.disabled.current)\n return;\n this.#clearLongPressTimer();\n this.#handleOpen(e);\n e.preventDefault();\n this.parentMenu.contentNode?.focus();\n }\n onpointerdown(e) {\n if (this.opts.disabled.current || isMouseEvent(e))\n return;\n this.#clearLongPressTimer();\n this.#longPressTimer = getWindow(this.opts.ref.current).setTimeout(() => this.#handleOpen(e), 700);\n }\n onpointermove(e) {\n if (this.opts.disabled.current || isMouseEvent(e))\n return;\n this.#clearLongPressTimer();\n }\n onpointercancel(e) {\n if (this.opts.disabled.current || isMouseEvent(e))\n return;\n this.#clearLongPressTimer();\n }\n onpointerup(e) {\n if (this.opts.disabled.current || isMouseEvent(e))\n return;\n this.#clearLongPressTimer();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n disabled: this.opts.disabled.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.opts.disabled.current),\n \"data-state\": getDataOpenClosed(this.parentMenu.opts.open.current),\n [CONTEXT_MENU_TRIGGER_ATTR]: \"\",\n tabindex: -1,\n //\n onpointerdown: this.onpointerdown,\n onpointermove: this.onpointermove,\n onpointercancel: this.onpointercancel,\n onpointerup: this.onpointerup,\n oncontextmenu: this.oncontextmenu,\n ...this.attachment,\n }));\n}\nexport class MenuCheckboxGroupState {\n static create(opts) {\n return MenuCheckboxGroupContext.set(new MenuCheckboxGroupState(opts, MenuContentContext.get()));\n }\n opts;\n content;\n root;\n attachment;\n groupHeadingId = $state(null);\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n this.root = content.parentMenu.root;\n this.attachment = attachRef(this.opts.ref);\n }\n addValue(checkboxValue) {\n if (!checkboxValue)\n return;\n if (!this.opts.value.current.includes(checkboxValue)) {\n const newValue = [...$state.snapshot(this.opts.value.current), checkboxValue];\n this.opts.value.current = newValue;\n this.opts.onValueChange.current(newValue);\n }\n }\n removeValue(checkboxValue) {\n if (!checkboxValue)\n return;\n const index = this.opts.value.current.indexOf(checkboxValue);\n if (index === -1)\n return;\n const newValue = this.opts.value.current.filter((v) => v !== checkboxValue);\n this.opts.value.current = newValue;\n this.opts.onValueChange.current(newValue);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"checkbox-group\")]: \"\",\n role: \"group\",\n \"aria-labelledby\": this.groupHeadingId,\n ...this.attachment,\n }));\n}\nexport class MenuSubmenuState {\n static create(opts) {\n const menu = MenuMenuContext.get();\n return MenuMenuContext.set(new MenuMenuState(opts, menu.root, menu));\n }\n}\n","import { afterSleep, afterTick, executeCallbacks, onDestroyEffect, } from \"svelte-toolbelt\";\nimport { watch } from \"runed\";\nimport { on } from \"svelte/events\";\nimport {} from \"../../../internal/events.js\";\nimport { debounce } from \"../../../internal/debounce.js\";\nimport { noop } from \"../../../internal/noop.js\";\nimport { getOwnerDocument, isOrContainsTarget } from \"../../../internal/elements.js\";\nimport { isElementOrSVGElement } from \"../../../internal/is.js\";\nimport { isClickTrulyOutside } from \"../../../internal/dom.js\";\nimport { CONTEXT_MENU_CONTENT_ATTR, CONTEXT_MENU_TRIGGER_ATTR, } from \"../../menu/menu.svelte.js\";\nglobalThis.bitsDismissableLayers ??= new Map();\nexport class DismissibleLayerState {\n static create(opts) {\n return new DismissibleLayerState(opts);\n }\n opts;\n #interactOutsideProp;\n #behaviorType;\n #interceptedEvents = {\n pointerdown: false,\n };\n #isResponsibleLayer = false;\n #isFocusInsideDOMTree = false;\n #documentObj = undefined;\n #onFocusOutside;\n #unsubClickListener = noop;\n constructor(opts) {\n this.opts = opts;\n this.#behaviorType = opts.interactOutsideBehavior;\n this.#interactOutsideProp = opts.onInteractOutside;\n this.#onFocusOutside = opts.onFocusOutside;\n $effect(() => {\n this.#documentObj = getOwnerDocument(this.opts.ref.current);\n });\n let unsubEvents = noop;\n const cleanup = () => {\n this.#resetState();\n globalThis.bitsDismissableLayers.delete(this);\n this.#handleInteractOutside.destroy();\n unsubEvents();\n };\n watch([() => this.opts.enabled.current, () => this.opts.ref.current], () => {\n if (!this.opts.enabled.current || !this.opts.ref.current)\n return;\n afterSleep(1, () => {\n if (!this.opts.ref.current)\n return;\n globalThis.bitsDismissableLayers.set(this, this.#behaviorType);\n unsubEvents();\n unsubEvents = this.#addEventListeners();\n });\n return cleanup;\n });\n onDestroyEffect(() => {\n this.#resetState.destroy();\n globalThis.bitsDismissableLayers.delete(this);\n this.#handleInteractOutside.destroy();\n this.#unsubClickListener();\n unsubEvents();\n });\n }\n #handleFocus = (event) => {\n if (event.defaultPrevented)\n return;\n if (!this.opts.ref.current)\n return;\n afterTick(() => {\n if (!this.opts.ref.current || this.#isTargetWithinLayer(event.target))\n return;\n if (event.target && !this.#isFocusInsideDOMTree) {\n this.#onFocusOutside.current?.(event);\n }\n });\n };\n #addEventListeners() {\n return executeCallbacks(\n /**\n * CAPTURE INTERACTION START\n * mark interaction-start event as intercepted.\n * mark responsible layer during interaction start\n * to avoid checking if is responsible layer during interaction end\n * when a new floating element may have been opened.\n */\n on(this.#documentObj, \"pointerdown\", executeCallbacks(this.#markInterceptedEvent, this.#markResponsibleLayer), { capture: true }), \n /**\n * BUBBLE INTERACTION START\n * Mark interaction-start event as non-intercepted. Debounce `onInteractOutsideStart`\n * to avoid prematurely checking if other events were intercepted.\n */\n on(this.#documentObj, \"pointerdown\", executeCallbacks(this.#markNonInterceptedEvent, this.#handleInteractOutside)), \n /**\n * HANDLE FOCUS OUTSIDE\n */\n on(this.#documentObj, \"focusin\", this.#handleFocus));\n }\n #handleDismiss = (e) => {\n let event = e;\n if (event.defaultPrevented) {\n event = createWrappedEvent(e);\n }\n this.#interactOutsideProp.current(e);\n };\n #handleInteractOutside = debounce((e) => {\n if (!this.opts.ref.current) {\n this.#unsubClickListener();\n return;\n }\n const isEventValid = this.opts.isValidEvent.current(e, this.opts.ref.current) ||\n isValidEvent(e, this.opts.ref.current);\n if (!this.#isResponsibleLayer || this.#isAnyEventIntercepted() || !isEventValid) {\n this.#unsubClickListener();\n return;\n }\n let event = e;\n if (event.defaultPrevented) {\n event = createWrappedEvent(event);\n }\n if (this.#behaviorType.current !== \"close\" &&\n this.#behaviorType.current !== \"defer-otherwise-close\") {\n this.#unsubClickListener();\n return;\n }\n if (e.pointerType === \"touch\") {\n this.#unsubClickListener();\n this.#unsubClickListener = on(this.#documentObj, \"click\", this.#handleDismiss, {\n once: true,\n });\n }\n else {\n this.#interactOutsideProp.current(event);\n }\n }, 10);\n #markInterceptedEvent = (e) => {\n this.#interceptedEvents[e.type] = true;\n };\n #markNonInterceptedEvent = (e) => {\n this.#interceptedEvents[e.type] = false;\n };\n #markResponsibleLayer = () => {\n if (!this.opts.ref.current)\n return;\n this.#isResponsibleLayer = isResponsibleLayer(this.opts.ref.current);\n };\n #isTargetWithinLayer = (target) => {\n if (!this.opts.ref.current)\n return false;\n return isOrContainsTarget(this.opts.ref.current, target);\n };\n #resetState = debounce(() => {\n for (const eventType in this.#interceptedEvents) {\n this.#interceptedEvents[eventType] = false;\n }\n this.#isResponsibleLayer = false;\n }, 20);\n #isAnyEventIntercepted() {\n const i = Object.values(this.#interceptedEvents).some(Boolean);\n return i;\n }\n #onfocuscapture = () => {\n this.#isFocusInsideDOMTree = true;\n };\n #onblurcapture = () => {\n this.#isFocusInsideDOMTree = false;\n };\n props = {\n onfocuscapture: this.#onfocuscapture,\n onblurcapture: this.#onblurcapture,\n };\n}\nexport function getTopMostDismissableLayer(layersArr = [\n ...globalThis.bitsDismissableLayers,\n]) {\n return layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === \"close\" || behaviorType === \"ignore\");\n}\nfunction isResponsibleLayer(node) {\n const layersArr = [...globalThis.bitsDismissableLayers];\n /**\n * We first check if we can find a top layer with `close` or `ignore`.\n * If that top layer was found and matches the provided node, then the node is\n * responsible for the outside interaction. Otherwise, we know that all layers defer so\n * the first layer is the responsible one.\n */\n const topMostLayer = getTopMostDismissableLayer(layersArr);\n if (topMostLayer)\n return topMostLayer[0].opts.ref.current === node;\n const [firstLayerNode] = layersArr[0];\n return firstLayerNode.opts.ref.current === node;\n}\nfunction isValidEvent(e, node) {\n const target = e.target;\n if (!isElementOrSVGElement(target))\n return false;\n const targetIsContextMenuTrigger = Boolean(target.closest(`[${CONTEXT_MENU_TRIGGER_ATTR}]`));\n if (\"button\" in e && e.button > 0 && !targetIsContextMenuTrigger)\n return false;\n if (\"button\" in e && e.button === 0 && targetIsContextMenuTrigger)\n return true;\n const nodeIsContextMenu = Boolean(node.closest(`[${CONTEXT_MENU_CONTENT_ATTR}]`));\n if (targetIsContextMenuTrigger && nodeIsContextMenu)\n return false;\n const ownerDocument = getOwnerDocument(target);\n const isValid = ownerDocument.documentElement.contains(target) &&\n !isOrContainsTarget(node, target) &&\n isClickTrulyOutside(e, node);\n return isValid;\n}\nfunction createWrappedEvent(e) {\n const capturedCurrentTarget = e.currentTarget;\n const capturedTarget = e.target;\n let newEvent;\n if (e instanceof PointerEvent) {\n newEvent = new PointerEvent(e.type, e);\n }\n else {\n newEvent = new PointerEvent(\"pointerdown\", e);\n }\n // track the prevented state separately\n let isPrevented = false;\n // Create a proxy to intercept property access and method calls\n const wrappedEvent = new Proxy(newEvent, {\n get: (target, prop) => {\n if (prop === \"currentTarget\") {\n return capturedCurrentTarget;\n }\n if (prop === \"target\") {\n return capturedTarget;\n }\n if (prop === \"preventDefault\") {\n return () => {\n isPrevented = true;\n if (typeof target.preventDefault === \"function\") {\n target.preventDefault();\n }\n };\n }\n if (prop === \"defaultPrevented\") {\n return isPrevented;\n }\n if (prop in target) {\n // oxlint-disable-next-line no-explicit-any\n return target[prop];\n }\n // oxlint-disable-next-line no-explicit-any\n return e[prop];\n },\n });\n return wrappedEvent;\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { DismissibleLayerImplProps } from \"./types.js\";\n\timport { DismissibleLayerState } from \"./use-dismissable-layer.svelte.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\tinteractOutsideBehavior = \"close\",\n\t\tonInteractOutside = noop,\n\t\tonFocusOutside = noop,\n\t\tid,\n\t\tchildren,\n\t\tenabled,\n\t\tisValidEvent = () => false,\n\t\tref,\n\t}: DismissibleLayerImplProps = $props();\n\n\tconst dismissibleLayerState = DismissibleLayerState.create({\n\t\tid: boxWith(() => id),\n\t\tinteractOutsideBehavior: boxWith(() => interactOutsideBehavior),\n\t\tonInteractOutside: boxWith(() => onInteractOutside),\n\t\tenabled: boxWith(() => enabled),\n\t\tonFocusOutside: boxWith(() => onFocusOutside),\n\t\tisValidEvent: boxWith(() => isValidEvent),\n\t\tref,\n\t});\n</script>\n\n{@render children?.({ props: dismissibleLayerState.props })}\n","import { DOMContext } from \"svelte-toolbelt\";\nimport { watch } from \"runed\";\nimport { on } from \"svelte/events\";\nimport { kbd } from \"../../../internal/kbd.js\";\nimport { noop } from \"../../../internal/noop.js\";\nglobalThis.bitsEscapeLayers ??= new Map();\nexport class EscapeLayerState {\n static create(opts) {\n return new EscapeLayerState(opts);\n }\n opts;\n domContext;\n constructor(opts) {\n this.opts = opts;\n this.domContext = new DOMContext(this.opts.ref);\n let unsubEvents = noop;\n watch(() => opts.enabled.current, (enabled) => {\n if (enabled) {\n globalThis.bitsEscapeLayers.set(this, opts.escapeKeydownBehavior);\n unsubEvents = this.#addEventListener();\n }\n return () => {\n unsubEvents();\n globalThis.bitsEscapeLayers.delete(this);\n };\n });\n }\n #addEventListener = () => {\n return on(this.domContext.getDocument(), \"keydown\", this.#onkeydown, { passive: false });\n };\n #onkeydown = (e) => {\n if (e.key !== kbd.ESCAPE || !isResponsibleEscapeLayer(this))\n return;\n const clonedEvent = new KeyboardEvent(e.type, e);\n e.preventDefault();\n const behaviorType = this.opts.escapeKeydownBehavior.current;\n if (behaviorType !== \"close\" && behaviorType !== \"defer-otherwise-close\")\n return;\n this.opts.onEscapeKeydown.current(clonedEvent);\n };\n}\nfunction isResponsibleEscapeLayer(instance) {\n const layersArr = [...globalThis.bitsEscapeLayers];\n /**\n * We first check if we can find a top layer with `close` or `ignore`.\n * If that top layer was found and matches the provided node, then the node is\n * responsible for the escape. Otherwise, we know that all layers defer so\n * the first layer is the responsible one.\n */\n const topMostLayer = layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === \"close\" || behaviorType === \"ignore\");\n if (topMostLayer)\n return topMostLayer[0] === instance;\n const [firstLayerNode] = layersArr[0];\n return firstLayerNode === instance;\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { EscapeLayerImplProps } from \"./types.js\";\n\timport { EscapeLayerState } from \"./use-escape-layer.svelte.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\tescapeKeydownBehavior = \"close\",\n\t\tonEscapeKeydown = noop,\n\t\tchildren,\n\t\tenabled,\n\t\tref,\n\t}: EscapeLayerImplProps = $props();\n\n\tEscapeLayerState.create({\n\t\tescapeKeydownBehavior: boxWith(() => escapeKeydownBehavior),\n\t\tonEscapeKeydown: boxWith(() => onEscapeKeydown),\n\t\tenabled: boxWith(() => enabled),\n\t\tref,\n\t});\n</script>\n\n{@render children?.()}\n","import { simpleBox } from \"svelte-toolbelt\";\nimport { FocusScope } from \"./focus-scope.svelte.js\";\nexport class FocusScopeManager {\n static instance;\n #scopeStack = simpleBox([]);\n #focusHistory = new WeakMap();\n #preFocusHistory = new WeakMap();\n static getInstance() {\n if (!this.instance) {\n this.instance = new FocusScopeManager();\n }\n return this.instance;\n }\n register(scope) {\n const current = this.getActive();\n if (current && current !== scope) {\n current.pause();\n }\n // capture the currently focused element before this scope becomes active\n const activeElement = document.activeElement;\n if (activeElement && activeElement !== document.body) {\n this.#preFocusHistory.set(scope, activeElement);\n }\n this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);\n this.#scopeStack.current.unshift(scope);\n }\n unregister(scope) {\n this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);\n const next = this.getActive();\n if (next) {\n next.resume();\n }\n }\n getActive() {\n return this.#scopeStack.current[0];\n }\n setFocusMemory(scope, element) {\n this.#focusHistory.set(scope, element);\n }\n getFocusMemory(scope) {\n return this.#focusHistory.get(scope);\n }\n isActiveScope(scope) {\n return this.getActive() === scope;\n }\n setPreFocusMemory(scope, element) {\n this.#preFocusHistory.set(scope, element);\n }\n getPreFocusMemory(scope) {\n return this.#preFocusHistory.get(scope);\n }\n clearPreFocusMemory(scope) {\n this.#preFocusHistory.delete(scope);\n }\n}\n","import { onDestroyEffect } from \"svelte-toolbelt\";\nimport { FocusScopeManager } from \"./focus-scope-manager.js\";\nimport { focusable, isFocusable, tabbable } from \"tabbable\";\nimport { on } from \"svelte/events\";\nimport { watch } from \"runed\";\nexport class FocusScope {\n #paused = false;\n #container = null;\n #manager = FocusScopeManager.getInstance();\n #cleanupFns = [];\n #opts;\n constructor(opts) {\n this.#opts = opts;\n }\n get paused() {\n return this.#paused;\n }\n pause() {\n this.#paused = true;\n }\n resume() {\n this.#paused = false;\n }\n #cleanup() {\n for (const fn of this.#cleanupFns) {\n fn();\n }\n this.#cleanupFns = [];\n }\n mount(container) {\n if (this.#container) {\n this.unmount();\n }\n this.#container = container;\n this.#manager.register(this);\n this.#setupEventListeners();\n this.#handleOpenAutoFocus();\n }\n unmount() {\n if (!this.#container)\n return;\n this.#cleanup();\n // handle close auto-focus\n this.#handleCloseAutoFocus();\n this.#manager.unregister(this);\n this.#manager.clearPreFocusMemory(this);\n this.#container = null;\n }\n #handleOpenAutoFocus() {\n if (!this.#container)\n return;\n const event = new CustomEvent(\"focusScope.onOpenAutoFocus\", {\n bubbles: false,\n cancelable: true,\n });\n this.#opts.onOpenAutoFocus.current(event);\n if (!event.defaultPrevented) {\n requestAnimationFrame(() => {\n if (!this.#container)\n return;\n const firstTabbable = this.#getFirstTabbable();\n if (firstTabbable) {\n firstTabbable.focus();\n this.#manager.setFocusMemory(this, firstTabbable);\n }\n else {\n this.#container.focus();\n }\n });\n }\n }\n #handleCloseAutoFocus() {\n const event = new CustomEvent(\"focusScope.onCloseAutoFocus\", {\n bubbles: false,\n cancelable: true,\n });\n this.#opts.onCloseAutoFocus.current?.(event);\n if (!event.defaultPrevented) {\n // return focus to the element that was focused before this scope opened\n const preFocusedElement = this.#manager.getPreFocusMemory(this);\n if (preFocusedElement && document.contains(preFocusedElement)) {\n // ensure the element is still focusable and in the document\n try {\n preFocusedElement.focus();\n }\n catch {\n // fallback if focus fails\n document.body.focus();\n }\n }\n }\n }\n #setupEventListeners() {\n if (!this.#container || !this.#opts.trap.current)\n return;\n const container = this.#container;\n const doc = container.ownerDocument;\n const handleFocus = (e) => {\n if (this.#paused || !this.#manager.isActiveScope(this))\n return;\n const target = e.target;\n if (!target)\n return;\n const isInside = container.contains(target);\n if (isInside) {\n // store last focused element\n this.#manager.setFocusMemory(this, target);\n }\n else {\n // focus escaped - bring it back\n const lastFocused = this.#manager.getFocusMemory(this);\n if (lastFocused && container.contains(lastFocused) && isFocusable(lastFocused)) {\n e.preventDefault();\n lastFocused.focus();\n }\n else {\n // fallback to first tabbable or first focusable or container\n const firstTabbable = this.#getFirstTabbable();\n const firstFocusable = this.#getAllFocusables()[0];\n (firstTabbable || firstFocusable || container).focus();\n }\n }\n };\n const handleKeydown = (e) => {\n if (!this.#opts.loop || this.#paused || e.key !== \"Tab\")\n return;\n if (!this.#manager.isActiveScope(this))\n return;\n const tabbables = this.#getTabbables();\n if (tabbables.length < 2)\n return;\n const first = tabbables[0];\n const last = tabbables[tabbables.length - 1];\n if (!e.shiftKey && doc.activeElement === last) {\n e.preventDefault();\n first.focus();\n }\n else if (e.shiftKey && doc.activeElement === first) {\n e.preventDefault();\n last.focus();\n }\n };\n this.#cleanupFns.push(on(doc, \"focusin\", handleFocus, { capture: true }), on(container, \"keydown\", handleKeydown));\n const observer = new MutationObserver(() => {\n const lastFocused = this.#manager.getFocusMemory(this);\n if (lastFocused && !container.contains(lastFocused)) {\n // last focused element was removed\n const firstTabbable = this.#getFirstTabbable();\n const firstFocusable = this.#getAllFocusables()[0];\n const elementToFocus = firstTabbable || firstFocusable;\n if (elementToFocus) {\n elementToFocus.focus();\n this.#manager.setFocusMemory(this, elementToFocus);\n }\n else {\n // no focusable elements left, focus container\n container.focus();\n }\n }\n });\n observer.observe(container, {\n childList: true,\n subtree: true,\n });\n this.#cleanupFns.push(() => observer.disconnect());\n }\n #getTabbables() {\n if (!this.#container)\n return [];\n return tabbable(this.#container, {\n includeContainer: false,\n getShadowRoot: true,\n });\n }\n #getFirstTabbable() {\n const tabbables = this.#getTabbables();\n return tabbables[0] || null;\n }\n #getAllFocusables() {\n if (!this.#container)\n return [];\n return focusable(this.#container, {\n includeContainer: false,\n getShadowRoot: true,\n });\n }\n static use(opts) {\n let scope = null;\n watch([() => opts.ref.current, () => opts.enabled.current], ([ref, enabled]) => {\n if (ref && enabled) {\n if (!scope) {\n scope = new FocusScope(opts);\n }\n scope.mount(ref);\n }\n else if (scope) {\n scope.unmount();\n scope = null;\n }\n });\n onDestroyEffect(() => {\n scope?.unmount();\n });\n return {\n get props() {\n return {\n tabindex: -1,\n };\n },\n };\n }\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { FocusScopeImplProps } from \"./types.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { FocusScope } from \"./focus-scope.svelte.js\";\n\n\tlet {\n\t\tenabled = false,\n\t\ttrapFocus = false,\n\t\tloop = false,\n\t\tonCloseAutoFocus = noop,\n\t\tonOpenAutoFocus = noop,\n\t\tfocusScope,\n\t\tref,\n\t}: FocusScopeImplProps = $props();\n\n\tconst focusScopeState = FocusScope.use({\n\t\tenabled: boxWith(() => enabled),\n\t\ttrap: boxWith(() => trapFocus),\n\t\tloop: loop,\n\t\tonCloseAutoFocus: boxWith(() => onCloseAutoFocus),\n\t\tonOpenAutoFocus: boxWith(() => onOpenAutoFocus),\n\t\tref,\n\t});\n</script>\n\n{@render focusScope?.({ props: focusScopeState.props })}\n","import { DOMContext, composeHandlers, contains, executeCallbacks, } from \"svelte-toolbelt\";\nimport { watch } from \"runed\";\nimport { on } from \"svelte/events\";\nimport { noop } from \"../../../internal/noop.js\";\nimport { isHTMLElement } from \"../../../internal/is.js\";\nglobalThis.bitsTextSelectionLayers ??= new Map();\nexport class TextSelectionLayerState {\n static create(opts) {\n return new TextSelectionLayerState(opts);\n }\n opts;\n domContext;\n #unsubSelectionLock = noop;\n constructor(opts) {\n this.opts = opts;\n this.domContext = new DOMContext(opts.ref);\n let unsubEvents = noop;\n watch(() => this.opts.enabled.current, (isEnabled) => {\n if (isEnabled) {\n globalThis.bitsTextSelectionLayers.set(this, this.opts.enabled);\n unsubEvents();\n unsubEvents = this.#addEventListeners();\n }\n return () => {\n unsubEvents();\n this.#resetSelectionLock();\n globalThis.bitsTextSelectionLayers.delete(this);\n };\n });\n }\n #addEventListeners() {\n return executeCallbacks(on(this.domContext.getDocument(), \"pointerdown\", this.#pointerdown), on(this.domContext.getDocument(), \"pointerup\", composeHandlers(this.#resetSelectionLock, this.opts.onPointerUp.current)));\n }\n #pointerdown = (e) => {\n const node = this.opts.ref.current;\n const target = e.target;\n if (!isHTMLElement(node) || !isHTMLElement(target) || !this.opts.enabled.current)\n return;\n /**\n * We only lock user-selection overflow if layer is the top most layer and\n * pointerdown occurred inside the node. You are still allowed to select text\n * outside the node provided pointerdown occurs outside the node.\n */\n if (!isHighestLayer(this) || !contains(node, target))\n return;\n this.opts.onPointerDown.current(e);\n if (e.defaultPrevented)\n return;\n this.#unsubSelectionLock = preventTextSelectionOverflow(node, this.domContext.getDocument().body);\n };\n #resetSelectionLock = () => {\n this.#unsubSelectionLock();\n this.#unsubSelectionLock = noop;\n };\n}\nconst getUserSelect = (node) => node.style.userSelect || node.style.webkitUserSelect;\nfunction preventTextSelectionOverflow(node, body) {\n const originalBodyUserSelect = getUserSelect(body);\n const originalNodeUserSelect = getUserSelect(node);\n setUserSelect(body, \"none\");\n setUserSelect(node, \"text\");\n return () => {\n setUserSelect(body, originalBodyUserSelect);\n setUserSelect(node, originalNodeUserSelect);\n };\n}\nfunction setUserSelect(node, value) {\n node.style.userSelect = value;\n node.style.webkitUserSelect = value;\n}\nfunction isHighestLayer(instance) {\n const layersArr = [...globalThis.bitsTextSelectionLayers];\n if (!layersArr.length)\n return false;\n const highestLayer = layersArr.at(-1);\n if (!highestLayer)\n return false;\n return highestLayer[0] === instance;\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { TextSelectionLayerImplProps } from \"./types.js\";\n\timport { TextSelectionLayerState } from \"./use-text-selection-layer.svelte.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\tpreventOverflowTextSelection = true,\n\t\tonPointerDown = noop,\n\t\tonPointerUp = noop,\n\t\tid,\n\t\tchildren,\n\t\tenabled,\n\t\tref,\n\t}: TextSelectionLayerImplProps = $props();\n\n\tTextSelectionLayerState.create({\n\t\tid: boxWith(() => id),\n\t\tonPointerDown: boxWith(() => onPointerDown),\n\t\tonPointerUp: boxWith(() => onPointerUp),\n\t\tenabled: boxWith(() => enabled && preventOverflowTextSelection),\n\t\tref,\n\t});\n</script>\n\n{@render children?.()}\n","globalThis.bitsIdCounter ??= { current: 0 };\n/**\n * Generates a unique ID based on a global counter.\n */\nexport function useId(prefix = \"bits\") {\n globalThis.bitsIdCounter.current++;\n return `${prefix}-${globalThis.bitsIdCounter.current}`;\n}\n","export class SharedState {\n #factory;\n #subscribers = 0;\n #state = $state();\n #scope;\n constructor(factory) {\n this.#factory = factory;\n }\n #dispose() {\n this.#subscribers -= 1;\n if (this.#scope && this.#subscribers <= 0) {\n this.#scope();\n this.#state = undefined;\n this.#scope = undefined;\n }\n }\n get(...args) {\n this.#subscribers += 1;\n if (this.#state === undefined) {\n this.#scope = $effect.root(() => {\n this.#state = this.#factory(...args);\n });\n }\n $effect(() => {\n return () => {\n this.#dispose();\n };\n });\n return this.#state;\n }\n}\n","import { SvelteMap } from \"svelte/reactivity\";\nimport { afterTick, boxWith, onDestroyEffect, } from \"svelte-toolbelt\";\nimport { isIOS } from \"./is.js\";\nimport { useId } from \"./use-id.js\";\nimport { watch } from \"runed\";\nimport { SharedState } from \"./shared-state.svelte.js\";\nimport { BROWSER } from \"esm-env\";\nimport { on } from \"svelte/events\";\n/** A map of lock ids to their `locked` state. */\nconst lockMap = new SvelteMap();\nlet initialBodyStyle = $state(null);\nlet stopTouchMoveListener = null;\nlet cleanupTimeoutId = null;\nlet isInCleanupTransition = false;\nconst anyLocked = boxWith(() => {\n for (const value of lockMap.values()) {\n if (value)\n return true;\n }\n return false;\n});\n/**\n * We track the time we scheduled the cleanup to prevent race conditions\n * when multiple locks are created/destroyed in the same tick, ensuring\n * only the last one to schedule the cleanup will run.\n *\n * reference: https://github.com/huntabyte/bits-ui/issues/1639\n */\nlet cleanupScheduledAt = null;\nconst bodyLockStackCount = new SharedState(() => {\n function resetBodyStyle() {\n if (!BROWSER)\n return;\n document.body.setAttribute(\"style\", initialBodyStyle ?? \"\");\n document.body.style.removeProperty(\"--scrollbar-width\");\n isIOS && stopTouchMoveListener?.();\n // reset initialBodyStyle so next locker captures the correct styles\n initialBodyStyle = null;\n }\n function cancelPendingCleanup() {\n if (cleanupTimeoutId === null)\n return;\n window.clearTimeout(cleanupTimeoutId);\n cleanupTimeoutId = null;\n }\n function scheduleCleanupIfNoNewLocks(delay, callback) {\n cancelPendingCleanup();\n isInCleanupTransition = true;\n cleanupScheduledAt = Date.now();\n const currentCleanupId = cleanupScheduledAt;\n /**\n * We schedule the cleanup to run after a delay to allow new locks to register\n * that might have been added in the same tick as the current cleanup.\n *\n * If a new lock is added in the same tick, the cleanup will be cancelled and\n * a new cleanup will be scheduled.\n *\n * This is to prevent the cleanup from running too early and resetting the body\n * style before the new lock has had a chance to apply its styles.\n */\n const cleanupFn = () => {\n cleanupTimeoutId = null;\n // check if this cleanup is still valid (no newer cleanups scheduled)\n if (cleanupScheduledAt !== currentCleanupId)\n return;\n // ensure no new locks were added during the delay\n if (!isAnyLocked(lockMap)) {\n isInCleanupTransition = false;\n callback();\n }\n else {\n isInCleanupTransition = false;\n }\n };\n const actualDelay = delay === null ? 24 : delay;\n cleanupTimeoutId = window.setTimeout(cleanupFn, actualDelay);\n }\n function ensureInitialStyleCaptured() {\n // only capture initial style once, when no locks exist and no cleanup is in progress\n if (initialBodyStyle === null && lockMap.size === 0 && !isInCleanupTransition) {\n initialBodyStyle = document.body.getAttribute(\"style\");\n }\n }\n watch(() => anyLocked.current, () => {\n if (!anyLocked.current)\n return;\n // ensure we've captured the initial style before applying any lock styles\n ensureInitialStyleCaptured();\n // if we're applying lock styles, we're no longer in a cleanup transition\n isInCleanupTransition = false;\n const bodyStyle = getComputedStyle(document.body);\n // TODO: account for RTL direction, etc.\n const verticalScrollbarWidth = window.innerWidth - document.documentElement.clientWidth;\n const paddingRight = Number.parseInt(bodyStyle.paddingRight ?? \"0\", 10);\n const config = {\n padding: paddingRight + verticalScrollbarWidth,\n margin: Number.parseInt(bodyStyle.marginRight ?? \"0\", 10),\n };\n if (verticalScrollbarWidth > 0) {\n document.body.style.paddingRight = `${config.padding}px`;\n document.body.style.marginRight = `${config.margin}px`;\n document.body.style.setProperty(\"--scrollbar-width\", `${verticalScrollbarWidth}px`);\n document.body.style.overflow = \"hidden\";\n }\n if (isIOS) {\n // IOS devices are special and require a touchmove listener to prevent scrolling\n stopTouchMoveListener = on(document, \"touchmove\", (e) => {\n if (e.target !== document.documentElement)\n return;\n if (e.touches.length > 1)\n return;\n e.preventDefault();\n }, { passive: false });\n }\n /**\n * We ensure pointer-events: none is applied _after_ DOM updates, so that any focus/\n * interaction changes from opening overlays/menus complete _before_ we block pointer\n * events.\n *\n * this avoids race conditions where pointer-events could be set too early and break\n * focus/interaction.\n */\n afterTick(() => {\n document.body.style.pointerEvents = \"none\";\n document.body.style.overflow = \"hidden\";\n });\n });\n onDestroyEffect(() => {\n return () => {\n stopTouchMoveListener?.();\n };\n });\n return {\n get lockMap() {\n return lockMap;\n },\n resetBodyStyle,\n scheduleCleanupIfNoNewLocks,\n cancelPendingCleanup,\n ensureInitialStyleCaptured,\n };\n});\nexport class BodyScrollLock {\n #id = useId();\n #initialState;\n #restoreScrollDelay = () => null;\n #countState;\n locked;\n constructor(initialState, restoreScrollDelay = () => null) {\n this.#initialState = initialState;\n this.#restoreScrollDelay = restoreScrollDelay;\n this.#countState = bodyLockStackCount.get();\n if (!this.#countState)\n return;\n /**\n * Since a new lock is being created, we cancel any pending cleanup to\n * prevent the cleanup from running too early and resetting the body style\n * before the new lock has had a chance to apply its styles.\n *\n * reference: https://github.com/huntabyte/bits-ui/issues/1639\n */\n this.#countState.cancelPendingCleanup();\n // capture initial style before this lock is registered\n this.#countState.ensureInitialStyleCaptured();\n this.#countState.lockMap.set(this.#id, this.#initialState ?? false);\n this.locked = boxWith(() => this.#countState.lockMap.get(this.#id) ?? false, (v) => this.#countState.lockMap.set(this.#id, v));\n onDestroyEffect(() => {\n this.#countState.lockMap.delete(this.#id);\n // if not the last lock, we don't need to do anything\n if (isAnyLocked(this.#countState.lockMap))\n return;\n const restoreScrollDelay = this.#restoreScrollDelay();\n /**\n * We schedule the cleanup to run after a delay to handle same-tick\n * destroy/create scenarios.\n *\n * reference: https://github.com/huntabyte/bits-ui/issues/1639\n */\n this.#countState.scheduleCleanupIfNoNewLocks(restoreScrollDelay, () => {\n this.#countState.resetBodyStyle();\n });\n });\n }\n}\nfunction isAnyLocked(map) {\n for (const [_, value] of map) {\n if (value)\n return true;\n }\n return false;\n}\n","<script lang=\"ts\">\n\timport type { ScrollLockProps } from \"./index.js\";\n\timport { BodyScrollLock } from \"../../../internal/body-scroll-lock.svelte.js\";\n\n\tlet { preventScroll = true, restoreScrollDelay = null }: ScrollLockProps = $props();\n\n\tif (preventScroll) {\n\t\tnew BodyScrollLock(preventScroll, () => restoreScrollDelay);\n\t}\n</script>\n","/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nconst yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);\nfunction getSideAxis(placement) {\n return yAxisSides.has(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n","import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const sideAxis = getSideAxis(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const alignLength = getAxisLength(alignmentAxis);\n const side = getSide(placement);\n const isVertical = sideAxis === 'y';\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n let coords;\n switch (side) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n switch (getAlignment(placement)) {\n case 'start':\n coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n }\n return coords;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n const validMiddleware = middleware.filter(Boolean);\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement(rects, placement, rtl);\n let statefulPlacement = placement;\n let middlewareData = {};\n let resetCount = 0;\n for (let i = 0; i < validMiddleware.length; i++) {\n const {\n name,\n fn\n } = validMiddleware[i];\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData = {\n ...middlewareData,\n [name]: {\n ...middlewareData[name],\n ...data\n }\n };\n if (reset && resetCount <= 50) {\n resetCount++;\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n ({\n x,\n y\n } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n }\n i = -1;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n var _await$platform$isEle;\n if (options === void 0) {\n options = {};\n }\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = state;\n const {\n boundary = 'clippingAncestors',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = evaluate(options, state);\n const paddingObject = getPaddingObject(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n boundary,\n rootBoundary,\n strategy\n }));\n const rect = elementContext === 'floating' ? {\n x,\n y,\n width: rects.floating.width,\n height: rects.floating.height\n } : rects.reference;\n const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n x: 1,\n y: 1\n } : {\n x: 1,\n y: 1\n };\n const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n elements,\n rect,\n offsetParent,\n strategy\n }) : rect);\n return {\n top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n };\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min$1 = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min$1, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n return true;\n });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'autoPlacement',\n options,\n async fn(state) {\n var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n const {\n rects,\n middlewareData,\n placement,\n platform,\n elements\n } = state;\n const {\n crossAxis = false,\n alignment,\n allowedPlacements = placements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n const currentPlacement = placements$1[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n\n // Make `computeCoords` start from the right place.\n if (placement !== currentPlacement) {\n return {\n reset: {\n placement: placements$1[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements$1[currentIndex + 1];\n\n // There are more placements to check.\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n const placementsSortedByMostSpace = allOverflows.map(d => {\n const alignment = getAlignment(d.placement);\n return [d.placement, alignment && crossAxis ?\n // Check along the mainAxis and main crossAxis side.\n d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n // Check only the mainAxis.\n d.overflows[0], d.overflows];\n }).sort((a, b) => a[1] - b[1]);\n const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n // Aligned placements should not check their opposite crossAxis\n // side.\n getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n if (resetPlacement !== placement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n return {};\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'flip',\n options,\n async fn(state) {\n var _middlewareData$arrow, _middlewareData$flip;\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement,\n platform,\n elements\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n fallbackAxisSideDirection = 'none',\n flipAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n\n // If a reset by the arrow was caused due to an alignment offset being\n // added, we should skip any logic now since `flip()` has already done its\n // work.\n // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n const side = getSide(placement);\n const initialSideAxis = getSideAxis(initialPlacement);\n const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';\n if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {\n fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n }\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n if (checkMainAxis) {\n overflows.push(overflow[side]);\n }\n if (checkCrossAxis) {\n const sides = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[sides[0]], overflow[sides[1]]);\n }\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }];\n\n // One or more sides is overflowing.\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip2, _overflowsData$filter;\n const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n const nextPlacement = placements[nextIndex];\n if (nextPlacement) {\n const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;\n if (!ignoreCrossAxisOverflow ||\n // We leave the current main axis only if every placement on that axis\n // overflows the main axis.\n overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {\n // Try next placement and re-run the lifecycle.\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n }\n\n // First, find the candidates that fit on the mainAxis side of overflow,\n // then find the placement that fits the best on the main crossAxis side.\n let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n // Otherwise fallback.\n if (!resetPlacement) {\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$filter2;\n const placement = (_overflowsData$filter2 = overflowsData.filter(d => {\n if (hasFallbackAxisSideDirection) {\n const currentSideAxis = getSideAxis(d.placement);\n return currentSideAxis === initialSideAxis ||\n // Create a bias to the `y` side axis due to horizontal\n // reading directions favoring greater width.\n currentSideAxis === 'y';\n }\n return true;\n }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];\n if (placement) {\n resetPlacement = placement;\n }\n break;\n }\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n }\n if (placement !== resetPlacement) {\n return {\n reset: {\n placement: resetPlacement\n }\n };\n }\n }\n return {};\n }\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'hide',\n options,\n async fn(state) {\n const {\n rects\n } = state;\n const {\n strategy = 'referenceHidden',\n ...detectOverflowOptions\n } = evaluate(options, state);\n switch (strategy) {\n case 'referenceHidden':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const offsets = getSideOffsets(overflow, rects.reference);\n return {\n data: {\n referenceHiddenOffsets: offsets,\n referenceHidden: isAnySideFullyClipped(offsets)\n }\n };\n }\n case 'escaped':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n altBoundary: true\n });\n const offsets = getSideOffsets(overflow, rects.floating);\n return {\n data: {\n escapedOffsets: offsets,\n escaped: isAnySideFullyClipped(offsets)\n }\n };\n }\n default:\n {\n return {};\n }\n }\n }\n };\n};\n\nfunction getBoundingRect(rects) {\n const minX = min(...rects.map(rect => rect.left));\n const minY = min(...rects.map(rect => rect.top));\n const maxX = max(...rects.map(rect => rect.right));\n const maxY = max(...rects.map(rect => rect.bottom));\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nfunction getRectsByLine(rects) {\n const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n const groups = [];\n let prevRect = null;\n for (let i = 0; i < sortedRects.length; i++) {\n const rect = sortedRects[i];\n if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n groups.push([rect]);\n } else {\n groups[groups.length - 1].push(rect);\n }\n prevRect = rect;\n }\n return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'inline',\n options,\n async fn(state) {\n const {\n placement,\n elements,\n rects,\n platform,\n strategy\n } = state;\n // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n const {\n padding = 2,\n x,\n y\n } = evaluate(options, state);\n const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n const clientRects = getRectsByLine(nativeClientRects);\n const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n const paddingObject = getPaddingObject(padding);\n function getBoundingClientRect() {\n // There are two rects and they are disjoined.\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n // Find the first rect in which the point is fully inside.\n return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n }\n\n // There are 2 or more connected rects.\n if (clientRects.length >= 2) {\n if (getSideAxis(placement) === 'y') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getSide(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n const isLeftSide = getSide(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n return fallback;\n }\n const resetRects = await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n });\n if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n return {\n reset: {\n rects: resetRects\n }\n };\n }\n return {};\n }\n };\n};\n\nconst originSides = /*#__PURE__*/new Set(['left', 'top']);\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n const {\n placement,\n platform,\n elements\n } = state;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isVertical = getSideAxis(placement) === 'y';\n const mainAxisMulti = originSides.has(side) ? -1 : 1;\n const crossAxisMulti = rtl && isVertical ? -1 : 1;\n const rawValue = evaluate(options, state);\n\n // eslint-disable-next-line prefer-const\n let {\n mainAxis,\n crossAxis,\n alignmentAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0,\n alignmentAxis: null\n } : {\n mainAxis: rawValue.mainAxis || 0,\n crossAxis: rawValue.crossAxis || 0,\n alignmentAxis: rawValue.alignmentAxis\n };\n if (alignment && typeof alignmentAxis === 'number') {\n crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n }\n return isVertical ? {\n x: crossAxis * crossAxisMulti,\n y: mainAxis * mainAxisMulti\n } : {\n x: mainAxis * mainAxisMulti,\n y: crossAxis * crossAxisMulti\n };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n if (options === void 0) {\n options = 0;\n }\n return {\n name: 'offset',\n options,\n async fn(state) {\n var _middlewareData$offse, _middlewareData$arrow;\n const {\n x,\n y,\n placement,\n middlewareData\n } = state;\n const diffCoords = await convertValueToCoords(state, options);\n\n // If the placement is the same and the arrow caused an alignment offset\n // then we don't need to change the positioning coordinates.\n if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: {\n ...diffCoords,\n placement\n }\n };\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'shift',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const crossAxis = getSideAxis(getSide(placement));\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = clamp(min, mainAxisCoord, max);\n }\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = clamp(min, crossAxisCoord, max);\n }\n const limitedCoords = limiter.fn({\n ...state,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return {\n ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y,\n enabled: {\n [mainAxis]: checkMainAxis,\n [crossAxis]: checkCrossAxis\n }\n }\n };\n }\n };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n options,\n fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = state;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const crossAxis = getSideAxis(placement);\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = evaluate(offset, state);\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2;\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = originSides.has(getSide(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'size',\n options,\n async fn(state) {\n var _state$middlewareData, _state$middlewareData2;\n const {\n placement,\n rects,\n platform,\n elements\n } = state;\n const {\n apply = () => {},\n ...detectOverflowOptions\n } = evaluate(options, state);\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isYAxis = getSideAxis(placement) === 'y';\n const {\n width,\n height\n } = rects.floating;\n let heightSide;\n let widthSide;\n if (side === 'top' || side === 'bottom') {\n heightSide = side;\n widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n } else {\n widthSide = side;\n heightSide = alignment === 'end' ? 'top' : 'bottom';\n }\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n const maximumClippingWidth = width - overflow.left - overflow.right;\n const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);\n const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {\n availableWidth = maximumClippingWidth;\n }\n if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {\n availableHeight = maximumClippingHeight;\n }\n if (noShift && !alignment) {\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n if (isYAxis) {\n availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));\n } else {\n availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));\n }\n }\n await apply({\n ...state,\n availableWidth,\n availableHeight\n });\n const nextDimensions = await platform.getDimensions(elements.floating);\n if (width !== nextDimensions.width || height !== nextDimensions.height) {\n return {\n reset: {\n rects: true\n }\n };\n }\n return {};\n }\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n","function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nconst invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);\n}\nconst tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);\nfunction isTableElement(element) {\n return tableElements.has(getNodeName(element));\n}\nconst topLayerSelectors = [':popover-open', ':modal'];\nfunction isTopLayer(element) {\n return topLayerSelectors.some(selector => {\n try {\n return element.matches(selector);\n } catch (_e) {\n return false;\n }\n });\n}\nconst transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];\nconst willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];\nconst containValues = ['paint', 'layout', 'strict', 'content'];\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nconst lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);\nfunction isLastTraversableNode(node) {\n return lastTraversableNodeNames.has(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n","import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle as getComputedStyle$1, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle$1(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = getFrameElement(currentWin);\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle$1(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = getFrameElement(currentWin);\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n const leftScroll = getNodeScroll(element).scrollLeft;\n if (!rect) {\n return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n }\n return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll) {\n const htmlRect = documentElement.getBoundingClientRect();\n const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);\n const y = htmlRect.top + scroll.scrollTop;\n return {\n x,\n y\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle$1(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Safety check: ensure the scrollbar space is reasonable in case this\n// calculation is affected by unusual styles.\n// Most scrollbars leave 15-18px of space.\nconst SCROLLBAR_MAX = 25;\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n const windowScrollbarX = getWindowScrollBarX(html);\n // <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the\n // visual width of the <html> but this is not considered in the size\n // of `html.clientWidth`.\n if (windowScrollbarX <= 0) {\n const doc = html.ownerDocument;\n const body = doc.body;\n const bodyStyles = getComputedStyle(body);\n const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;\n const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);\n if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {\n width -= clippingStableScrollbarWidth;\n }\n } else if (windowScrollbarX <= SCROLLBAR_MAX) {\n // If the <body> scrollbar is on the left, the width needs to be extended\n // by the scrollbar amount so there isn't extra space on the right.\n width += windowScrollbarX;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nconst absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y,\n width: clippingAncestor.width,\n height: clippingAncestor.height\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle$1(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle$1(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n\n // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n function setLeftRTLScrollbarOffset() {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n setLeftRTLScrollbarOffset();\n }\n }\n if (isFixed && !isOffsetParentAnElement && documentElement) {\n setLeftRTLScrollbarOffset();\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction isStaticPositioned(element) {\n return getComputedStyle$1(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n let rawOffsetParent = element.offsetParent;\n\n // Firefox returns the <html> element as the offsetParent if it's non-static,\n // while Chrome and Safari return the <body> element. The <body> element must\n // be used to perform the correct calculations even if the <html> element is\n // non-static.\n if (getDocumentElement(element) === rawOffsetParent) {\n rawOffsetParent = rawOffsetParent.ownerDocument.body;\n }\n return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const win = getWindow(element);\n if (isTopLayer(element)) {\n return win;\n }\n if (!isHTMLElement(element)) {\n let svgOffsetParent = getParentNode(element);\n while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n return svgOffsetParent;\n }\n svgOffsetParent = getParentNode(svgOffsetParent);\n }\n return win;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n return win;\n }\n return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n const floatingDimensions = await getDimensionsFn(data.floating);\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n width: floatingDimensions.width,\n height: floatingDimensions.height\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle$1(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const elementRectForRootMargin = element.getBoundingClientRect();\n const {\n left,\n top,\n width,\n height\n } = elementRectForRootMargin;\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n // If the reference is clipped, the ratio is 0. Throttle the refresh\n // to prevent an infinite loop of updates.\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 1000);\n } else {\n refresh(false, ratio);\n }\n }\n if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n // It's possible that even though the ratio is reported as 1, the\n // element is not actually fully within the IntersectionObserver's root\n // area anymore. This can happen under performance constraints. This may\n // be a bug in the browser's IntersectionObserver implementation. To\n // work around this, we compare the element's bounding rect now with\n // what it was at the time we created the IntersectionObserver. If they\n // are not equal then the element moved, so we refresh.\n refresh();\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (_e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n var _resizeObserver;\n (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n resizeObserver.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _resizeObserver2;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo == null || cleanupIo();\n (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n","export function get(valueOrGetValue) {\n return typeof valueOrGetValue === \"function\"\n ? valueOrGetValue()\n : valueOrGetValue;\n}\nexport function getDPR(element) {\n if (typeof window === \"undefined\")\n return 1;\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\nexport function roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\nexport function getFloatingContentCSSVars(name) {\n return {\n [`--bits-${name}-content-transform-origin`]: `var(--bits-floating-transform-origin)`,\n [`--bits-${name}-content-available-width`]: `var(--bits-floating-available-width)`,\n [`--bits-${name}-content-available-height`]: `var(--bits-floating-available-height)`,\n [`--bits-${name}-anchor-width`]: `var(--bits-floating-anchor-width)`,\n [`--bits-${name}-anchor-height`]: `var(--bits-floating-anchor-height)`,\n };\n}\n","import { computePosition } from \"@floating-ui/dom\";\nimport { simpleBox } from \"svelte-toolbelt\";\nimport { get, getDPR, roundByDPR } from \"./floating-utils.svelte.js\";\nexport function useFloating(options) {\n /** Options */\n const whileElementsMountedOption = options.whileElementsMounted;\n const openOption = $derived(get(options.open) ?? true);\n const middlewareOption = $derived(get(options.middleware));\n const transformOption = $derived(get(options.transform) ?? true);\n const placementOption = $derived(get(options.placement) ?? \"bottom\");\n const strategyOption = $derived(get(options.strategy) ?? \"absolute\");\n const sideOffsetOption = $derived(get(options.sideOffset) ?? 0);\n const alignOffsetOption = $derived(get(options.alignOffset) ?? 0);\n const reference = options.reference;\n /** State */\n let x = $state(0);\n let y = $state(0);\n const floating = simpleBox(null);\n // svelte-ignore state_referenced_locally\n let strategy = $state(strategyOption);\n // svelte-ignore state_referenced_locally\n let placement = $state(placementOption);\n let middlewareData = $state({});\n let isPositioned = $state(false);\n const floatingStyles = $derived.by(() => {\n // preserve last known position when floating ref is null (during transitions)\n const xVal = floating.current ? roundByDPR(floating.current, x) : x;\n const yVal = floating.current ? roundByDPR(floating.current, y) : y;\n if (transformOption) {\n return {\n position: strategy,\n left: \"0\",\n top: \"0\",\n transform: `translate(${xVal}px, ${yVal}px)`,\n ...(floating.current &&\n getDPR(floating.current) >= 1.5 && {\n willChange: \"transform\",\n }),\n };\n }\n return {\n position: strategy,\n left: `${xVal}px`,\n top: `${yVal}px`,\n };\n });\n /** Effects */\n let whileElementsMountedCleanup;\n function update() {\n if (reference.current === null || floating.current === null)\n return;\n computePosition(reference.current, floating.current, {\n middleware: middlewareOption,\n placement: placementOption,\n strategy: strategyOption,\n }).then((position) => {\n // ignore bad coordinates that cause jumping during close transitions\n if (!openOption && x !== 0 && y !== 0) {\n // if we had a good position and now getting coordinates near\n // the expected offset bounds during close, ignore it\n const maxExpectedOffset = Math.max(Math.abs(sideOffsetOption), Math.abs(alignOffsetOption), 15);\n if (position.x <= maxExpectedOffset && position.y <= maxExpectedOffset)\n return;\n }\n x = position.x;\n y = position.y;\n strategy = position.strategy;\n placement = position.placement;\n middlewareData = position.middlewareData;\n isPositioned = true;\n });\n }\n function cleanup() {\n if (typeof whileElementsMountedCleanup === \"function\") {\n whileElementsMountedCleanup();\n whileElementsMountedCleanup = undefined;\n }\n }\n function attach() {\n cleanup();\n if (whileElementsMountedOption === undefined) {\n update();\n return;\n }\n if (reference.current === null || floating.current === null)\n return;\n whileElementsMountedCleanup = whileElementsMountedOption(reference.current, floating.current, update);\n }\n function reset() {\n if (!openOption) {\n isPositioned = false;\n }\n }\n $effect(update);\n $effect(attach);\n $effect(reset);\n $effect(() => cleanup);\n return {\n floating,\n reference,\n get strategy() {\n return strategy;\n },\n get placement() {\n return placement;\n },\n get middlewareData() {\n return middlewareData;\n },\n get isPositioned() {\n return isPositioned;\n },\n get floatingStyles() {\n return floatingStyles;\n },\n get update() {\n return update;\n },\n };\n}\n","import { arrow, autoUpdate, flip, hide, limitShift, offset, shift, size, } from \"@floating-ui/dom\";\nimport { attachRef, cssToStyleObj, getWindow, styleToString, simpleBox, boxFrom, } from \"svelte-toolbelt\";\nimport { Context, ElementSize, watch } from \"runed\";\nimport { isNotNull } from \"../../../internal/is.js\";\nimport { useId } from \"../../../internal/use-id.js\";\nimport { useFloating } from \"../../../internal/floating-svelte/use-floating.svelte.js\";\nexport const SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nexport const ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nconst OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\",\n};\nconst FloatingRootContext = new Context(\"Floating.Root\");\nconst FloatingContentContext = new Context(\"Floating.Content\");\nconst FloatingTooltipRootContext = new Context(\"Floating.Root\");\nexport class FloatingRootState {\n static create(tooltip = false) {\n return tooltip\n ? FloatingTooltipRootContext.set(new FloatingRootState())\n : FloatingRootContext.set(new FloatingRootState());\n }\n anchorNode = simpleBox(null);\n customAnchorNode = simpleBox(null);\n triggerNode = simpleBox(null);\n constructor() {\n $effect(() => {\n if (this.customAnchorNode.current) {\n if (typeof this.customAnchorNode.current === \"string\") {\n this.anchorNode.current = document.querySelector(this.customAnchorNode.current);\n }\n else {\n this.anchorNode.current = this.customAnchorNode.current;\n }\n }\n else {\n this.anchorNode.current = this.triggerNode.current;\n }\n });\n }\n}\nexport class FloatingContentState {\n static create(opts, tooltip = false) {\n return tooltip\n ? FloatingContentContext.set(new FloatingContentState(opts, FloatingTooltipRootContext.get()))\n : FloatingContentContext.set(new FloatingContentState(opts, FloatingRootContext.get()));\n }\n opts;\n root;\n // nodes\n contentRef = simpleBox(null);\n wrapperRef = simpleBox(null);\n arrowRef = simpleBox(null);\n contentAttachment = attachRef(this.contentRef);\n wrapperAttachment = attachRef(this.wrapperRef);\n arrowAttachment = attachRef(this.arrowRef);\n // ids\n arrowId = simpleBox(useId());\n #transformedStyle = $derived.by(() => {\n if (typeof this.opts.style === \"string\")\n return cssToStyleObj(this.opts.style);\n if (!this.opts.style)\n return {};\n });\n #updatePositionStrategy = undefined;\n #arrowSize = new ElementSize(() => this.arrowRef.current ?? undefined);\n #arrowWidth = $derived(this.#arrowSize?.width ?? 0);\n #arrowHeight = $derived(this.#arrowSize?.height ?? 0);\n #desiredPlacement = $derived.by(() => (this.opts.side?.current +\n (this.opts.align.current !== \"center\"\n ? `-${this.opts.align.current}`\n : \"\")));\n #boundary = $derived.by(() => Array.isArray(this.opts.collisionBoundary.current)\n ? this.opts.collisionBoundary.current\n : [this.opts.collisionBoundary.current]);\n hasExplicitBoundaries = $derived(this.#boundary.length > 0);\n detectOverflowOptions = $derived.by(() => ({\n padding: this.opts.collisionPadding.current,\n boundary: this.#boundary.filter(isNotNull),\n altBoundary: this.hasExplicitBoundaries,\n }));\n #availableWidth = $state(undefined);\n #availableHeight = $state(undefined);\n #anchorWidth = $state(undefined);\n #anchorHeight = $state(undefined);\n middleware = $derived.by(() => [\n offset({\n mainAxis: this.opts.sideOffset.current + this.#arrowHeight,\n alignmentAxis: this.opts.alignOffset.current,\n }),\n this.opts.avoidCollisions.current &&\n shift({\n mainAxis: true,\n crossAxis: false,\n limiter: this.opts.sticky.current === \"partial\" ? limitShift() : undefined,\n ...this.detectOverflowOptions,\n }),\n this.opts.avoidCollisions.current && flip({ ...this.detectOverflowOptions }),\n size({\n ...this.detectOverflowOptions,\n apply: ({ rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n this.#availableWidth = availableWidth;\n this.#availableHeight = availableHeight;\n this.#anchorWidth = anchorWidth;\n this.#anchorHeight = anchorHeight;\n },\n }),\n this.arrowRef.current &&\n arrow({\n element: this.arrowRef.current,\n padding: this.opts.arrowPadding.current,\n }),\n transformOrigin({ arrowWidth: this.#arrowWidth, arrowHeight: this.#arrowHeight }),\n this.opts.hideWhenDetached.current &&\n hide({ strategy: \"referenceHidden\", ...this.detectOverflowOptions }),\n ].filter(Boolean));\n floating;\n placedSide = $derived.by(() => getSideFromPlacement(this.floating.placement));\n placedAlign = $derived.by(() => getAlignFromPlacement(this.floating.placement));\n arrowX = $derived.by(() => this.floating.middlewareData.arrow?.x ?? 0);\n arrowY = $derived.by(() => this.floating.middlewareData.arrow?.y ?? 0);\n cannotCenterArrow = $derived.by(() => this.floating.middlewareData.arrow?.centerOffset !== 0);\n contentZIndex = $state();\n arrowBaseSide = $derived(OPPOSITE_SIDE[this.placedSide]);\n wrapperProps = $derived.by(() => ({\n id: this.opts.wrapperId.current,\n \"data-bits-floating-content-wrapper\": \"\",\n style: {\n ...this.floating.floatingStyles,\n // keep off page when measuring\n transform: this.floating.isPositioned\n ? this.floating.floatingStyles.transform\n : \"translate(0, -200%)\",\n minWidth: \"max-content\",\n zIndex: this.contentZIndex,\n \"--bits-floating-transform-origin\": `${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,\n \"--bits-floating-available-width\": `${this.#availableWidth}px`,\n \"--bits-floating-available-height\": `${this.#availableHeight}px`,\n \"--bits-floating-anchor-width\": `${this.#anchorWidth}px`,\n \"--bits-floating-anchor-height\": `${this.#anchorHeight}px`,\n // hide the content if using the hide middleware and should be hidden\n ...(this.floating.middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n \"pointer-events\": \"none\",\n }),\n ...this.#transformedStyle,\n },\n // Floating UI calculates logical alignment based the `dir` attribute\n dir: this.opts.dir.current,\n ...this.wrapperAttachment,\n }));\n props = $derived.by(() => ({\n \"data-side\": this.placedSide,\n \"data-align\": this.placedAlign,\n style: styleToString({\n ...this.#transformedStyle,\n }),\n ...this.contentAttachment,\n }));\n arrowStyle = $derived({\n position: \"absolute\",\n left: this.arrowX ? `${this.arrowX}px` : undefined,\n top: this.arrowY ? `${this.arrowY}px` : undefined,\n [this.arrowBaseSide]: 0,\n \"transform-origin\": {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\",\n }[this.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: \"rotate(180deg)\",\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\",\n }[this.placedSide],\n visibility: this.cannotCenterArrow ? \"hidden\" : undefined,\n });\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n if (opts.customAnchor) {\n this.root.customAnchorNode.current = opts.customAnchor.current;\n }\n watch(() => opts.customAnchor.current, (customAnchor) => {\n this.root.customAnchorNode.current = customAnchor;\n });\n this.floating = useFloating({\n strategy: () => this.opts.strategy.current,\n placement: () => this.#desiredPlacement,\n middleware: () => this.middleware,\n reference: this.root.anchorNode,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: this.#updatePositionStrategy?.current === \"always\",\n });\n return cleanup;\n },\n open: () => this.opts.enabled.current,\n sideOffset: () => this.opts.sideOffset.current,\n alignOffset: () => this.opts.alignOffset.current,\n });\n $effect(() => {\n if (!this.floating.isPositioned)\n return;\n this.opts.onPlaced?.current();\n });\n watch(() => this.contentRef.current, (contentNode) => {\n if (!contentNode)\n return;\n const win = getWindow(contentNode);\n this.contentZIndex = win.getComputedStyle(contentNode).zIndex;\n });\n $effect(() => {\n this.floating.floating.current = this.wrapperRef.current;\n });\n }\n}\nexport class FloatingArrowState {\n static create(opts) {\n return new FloatingArrowState(opts, FloatingContentContext.get());\n }\n opts;\n content;\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n style: this.content.arrowStyle,\n \"data-side\": this.content.placedSide,\n ...this.content.arrowAttachment,\n }));\n}\nexport class FloatingAnchorState {\n static create(opts, tooltip = false) {\n return tooltip\n ? new FloatingAnchorState(opts, FloatingTooltipRootContext.get())\n : new FloatingAnchorState(opts, FloatingRootContext.get());\n }\n opts;\n root;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n if (opts.virtualEl && opts.virtualEl.current) {\n root.triggerNode = boxFrom(opts.virtualEl.current);\n }\n else {\n root.triggerNode = opts.ref;\n }\n }\n}\n//\n// HELPERS\n//\nfunction transformOrigin(options) {\n return {\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n }\n else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n }\n else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n },\n };\n}\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nexport function getSideFromPlacement(placement) {\n return getSideAndAlignFromPlacement(placement)[0];\n}\nexport function getAlignFromPlacement(placement) {\n return getSideAndAlignFromPlacement(placement)[1];\n}\n","<script lang=\"ts\">\n\timport type { Snippet } from \"svelte\";\n\timport { FloatingRootState } from \"../use-floating-layer.svelte.js\";\n\n\tlet { children, tooltip = false }: { children?: Snippet; tooltip?: boolean } = $props();\n\n\tFloatingRootState.create(tooltip);\n</script>\n\n{@render children?.()}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport { FloatingAnchorState } from \"../use-floating-layer.svelte.js\";\n\timport type { AnchorProps } from \"./index.js\";\n\timport type { Measurable } from \"../../../../internal/floating-svelte/types.js\";\n\n\tlet { id, children, virtualEl, ref, tooltip = false }: AnchorProps = $props();\n\n\tFloatingAnchorState.create(\n\t\t{\n\t\t\tid: boxWith(() => id),\n\t\t\tvirtualEl: boxWith(() => virtualEl as unknown as Measurable | null),\n\t\t\tref,\n\t\t},\n\t\ttooltip\n\t);\n</script>\n\n{@render children?.()}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { FloatingContentState } from \"../use-floating-layer.svelte.js\";\n\timport type { ContentImplProps } from \"./index.js\";\n\timport { useId } from \"../../../../internal/use-id.js\";\n\n\tlet {\n\t\tcontent,\n\t\tside = \"bottom\",\n\t\tsideOffset = 0,\n\t\talign = \"center\",\n\t\talignOffset = 0,\n\t\tid,\n\t\tarrowPadding = 0,\n\t\tavoidCollisions = true,\n\t\tcollisionBoundary = [],\n\t\tcollisionPadding = 0,\n\t\thideWhenDetached = false,\n\t\tonPlaced = () => {},\n\t\tsticky = \"partial\",\n\t\tupdatePositionStrategy = \"optimized\",\n\t\tstrategy = \"fixed\",\n\t\tdir = \"ltr\",\n\t\tstyle = {},\n\t\twrapperId = useId(),\n\t\tcustomAnchor = null,\n\t\tenabled,\n\t\ttooltip = false,\n\t}: ContentImplProps = $props();\n\n\tconst contentState = FloatingContentState.create(\n\t\t{\n\t\t\tside: boxWith(() => side),\n\t\t\tsideOffset: boxWith(() => sideOffset),\n\t\t\talign: boxWith(() => align),\n\t\t\talignOffset: boxWith(() => alignOffset),\n\t\t\tid: boxWith(() => id),\n\t\t\tarrowPadding: boxWith(() => arrowPadding),\n\t\t\tavoidCollisions: boxWith(() => avoidCollisions),\n\t\t\tcollisionBoundary: boxWith(() => collisionBoundary),\n\t\t\tcollisionPadding: boxWith(() => collisionPadding),\n\t\t\thideWhenDetached: boxWith(() => hideWhenDetached),\n\t\t\tonPlaced: boxWith(() => onPlaced),\n\t\t\tsticky: boxWith(() => sticky),\n\t\t\tupdatePositionStrategy: boxWith(() => updatePositionStrategy),\n\t\t\tstrategy: boxWith(() => strategy),\n\t\t\tdir: boxWith(() => dir),\n\t\t\tstyle: boxWith(() => style),\n\t\t\tenabled: boxWith(() => enabled),\n\t\t\twrapperId: boxWith(() => wrapperId),\n\t\t\tcustomAnchor: boxWith(() => customAnchor),\n\t\t},\n\t\ttooltip\n\t);\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(contentState.wrapperProps, {\n\t\t\tstyle: {\n\t\t\t\tpointerEvents: \"auto\",\n\t\t\t},\n\t\t})\n\t);\n</script>\n\n{@render content?.({ props: contentState.props, wrapperProps: mergedProps })}\n","<script lang=\"ts\">\n\timport { type Snippet, onMount } from \"svelte\";\n\n\tlet {\n\t\tcontent,\n\t\tonPlaced,\n\t}: {\n\t\tcontent?: Snippet<\n\t\t\t[{ props: Record<string, unknown>; wrapperProps: Record<string, unknown> }]\n\t\t>;\n\t\tonPlaced?: () => void;\n\t} = $props();\n\n\tonMount(() => {\n\t\tonPlaced?.();\n\t});\n</script>\n\n{@render content?.({ props: {}, wrapperProps: {} })}\n","<script lang=\"ts\">\n\timport FloatingLayerContentStatic from \"../floating-layer/components/floating-layer-content-static.svelte\";\n\timport FloatingLayerContent from \"../floating-layer/components/floating-layer-content.svelte\";\n\timport type { FloatingLayerContentImplProps } from \"../floating-layer/types.js\";\n\n\tlet {\n\t\tcontent,\n\t\tisStatic = false,\n\t\tonPlaced,\n\t\t...restProps\n\t}: FloatingLayerContentImplProps & { isStatic: boolean } = $props();\n</script>\n\n{#if isStatic}\n\t<FloatingLayerContentStatic {content} {onPlaced} />\n{:else}\n\t<FloatingLayerContent {content} {onPlaced} {...restProps} />\n{/if}\n","<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport ScrollLock from \"../scroll-lock/scroll-lock.svelte\";\n\timport type { PopperLayerImplProps } from \"./types.js\";\n\timport PopperContent from \"./popper-content.svelte\";\n\timport EscapeLayer from \"../escape-layer/escape-layer.svelte\";\n\timport DismissibleLayer from \"../dismissible-layer/dismissible-layer.svelte\";\n\timport TextSelectionLayer from \"../text-selection-layer/text-selection-layer.svelte\";\n\timport FocusScope from \"../focus-scope/focus-scope.svelte\";\n\n\tlet {\n\t\tpopper,\n\t\tonEscapeKeydown,\n\t\tescapeKeydownBehavior,\n\t\tpreventOverflowTextSelection,\n\t\tid,\n\t\tonPointerDown,\n\t\tonPointerUp,\n\t\tside,\n\t\tsideOffset,\n\t\talign,\n\t\talignOffset,\n\t\tarrowPadding,\n\t\tavoidCollisions,\n\t\tcollisionBoundary,\n\t\tcollisionPadding,\n\t\tsticky,\n\t\thideWhenDetached,\n\t\tupdatePositionStrategy,\n\t\tstrategy,\n\t\tdir,\n\t\tpreventScroll,\n\t\twrapperId,\n\t\tstyle,\n\t\tonPlaced,\n\t\tonInteractOutside,\n\t\tonCloseAutoFocus,\n\t\tonOpenAutoFocus,\n\t\tonFocusOutside,\n\t\tinteractOutsideBehavior = \"close\",\n\t\tloop,\n\t\ttrapFocus = true,\n\t\tisValidEvent = () => false,\n\t\tcustomAnchor = null,\n\t\tisStatic = false,\n\t\tenabled,\n\t\tref,\n\t\ttooltip = false,\n\t\t...restProps\n\t}: Omit<PopperLayerImplProps, \"open\" | \"children\" | \"shouldRender\"> & {\n\t\tenabled: boolean;\n\t} = $props();\n</script>\n\n<PopperContent\n\t{isStatic}\n\t{id}\n\t{side}\n\t{sideOffset}\n\t{align}\n\t{alignOffset}\n\t{arrowPadding}\n\t{avoidCollisions}\n\t{collisionBoundary}\n\t{collisionPadding}\n\t{sticky}\n\t{hideWhenDetached}\n\t{updatePositionStrategy}\n\t{strategy}\n\t{dir}\n\t{wrapperId}\n\t{style}\n\t{onPlaced}\n\t{customAnchor}\n\t{enabled}\n\t{tooltip}\n>\n\t{#snippet content({ props: floatingProps, wrapperProps })}\n\t\t{#if restProps.forceMount && enabled}\n\t\t\t<ScrollLock {preventScroll} />\n\t\t{:else if !restProps.forceMount}\n\t\t\t<ScrollLock {preventScroll} />\n\t\t{/if}\n\t\t<FocusScope\n\t\t\t{onOpenAutoFocus}\n\t\t\t{onCloseAutoFocus}\n\t\t\t{loop}\n\t\t\t{enabled}\n\t\t\t{trapFocus}\n\t\t\tforceMount={restProps.forceMount}\n\t\t\t{ref}\n\t\t>\n\t\t\t{#snippet focusScope({ props: focusScopeProps })}\n\t\t\t\t<EscapeLayer {onEscapeKeydown} {escapeKeydownBehavior} {enabled} {ref}>\n\t\t\t\t\t<DismissibleLayer\n\t\t\t\t\t\t{id}\n\t\t\t\t\t\t{onInteractOutside}\n\t\t\t\t\t\t{onFocusOutside}\n\t\t\t\t\t\t{interactOutsideBehavior}\n\t\t\t\t\t\t{isValidEvent}\n\t\t\t\t\t\t{enabled}\n\t\t\t\t\t\t{ref}\n\t\t\t\t\t>\n\t\t\t\t\t\t{#snippet children({ props: dismissibleProps })}\n\t\t\t\t\t\t\t<TextSelectionLayer\n\t\t\t\t\t\t\t\t{id}\n\t\t\t\t\t\t\t\t{preventOverflowTextSelection}\n\t\t\t\t\t\t\t\t{onPointerDown}\n\t\t\t\t\t\t\t\t{onPointerUp}\n\t\t\t\t\t\t\t\t{enabled}\n\t\t\t\t\t\t\t\t{ref}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{@render popper?.({\n\t\t\t\t\t\t\t\t\tprops: mergeProps(\n\t\t\t\t\t\t\t\t\t\trestProps,\n\t\t\t\t\t\t\t\t\t\tfloatingProps,\n\t\t\t\t\t\t\t\t\t\tdismissibleProps,\n\t\t\t\t\t\t\t\t\t\tfocusScopeProps,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\t\t\tpointerEvents: \"auto\",\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\twrapperProps,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t</TextSelectionLayer>\n\t\t\t\t\t\t{/snippet}\n\t\t\t\t\t</DismissibleLayer>\n\t\t\t\t</EscapeLayer>\n\t\t\t{/snippet}\n\t\t</FocusScope>\n\t{/snippet}\n</PopperContent>\n","<script lang=\"ts\">\n\timport type { PopperLayerImplProps } from \"./types.js\";\n\timport PopperLayerInner from \"./popper-layer-inner.svelte\";\n\n\tlet {\n\t\tpopper,\n\t\topen,\n\t\tonEscapeKeydown,\n\t\tescapeKeydownBehavior,\n\t\tpreventOverflowTextSelection,\n\t\tid,\n\t\tonPointerDown,\n\t\tonPointerUp,\n\t\tside,\n\t\tsideOffset,\n\t\talign,\n\t\talignOffset,\n\t\tarrowPadding,\n\t\tavoidCollisions,\n\t\tcollisionBoundary,\n\t\tcollisionPadding,\n\t\tsticky,\n\t\thideWhenDetached,\n\t\tupdatePositionStrategy,\n\t\tstrategy,\n\t\tdir,\n\t\tpreventScroll,\n\t\twrapperId,\n\t\tstyle,\n\t\tonPlaced,\n\t\tonInteractOutside,\n\t\tonCloseAutoFocus,\n\t\tonOpenAutoFocus,\n\t\tonFocusOutside,\n\t\tinteractOutsideBehavior = \"close\",\n\t\tloop,\n\t\ttrapFocus = true,\n\t\tisValidEvent = () => false,\n\t\tcustomAnchor = null,\n\t\tisStatic = false,\n\t\tref,\n\t\tshouldRender,\n\t\t...restProps\n\t}: PopperLayerImplProps = $props();\n</script>\n\n{#if shouldRender}\n\t<PopperLayerInner\n\t\t{popper}\n\t\t{onEscapeKeydown}\n\t\t{escapeKeydownBehavior}\n\t\t{preventOverflowTextSelection}\n\t\t{id}\n\t\t{onPointerDown}\n\t\t{onPointerUp}\n\t\t{side}\n\t\t{sideOffset}\n\t\t{align}\n\t\t{alignOffset}\n\t\t{arrowPadding}\n\t\t{avoidCollisions}\n\t\t{collisionBoundary}\n\t\t{collisionPadding}\n\t\t{sticky}\n\t\t{hideWhenDetached}\n\t\t{updatePositionStrategy}\n\t\t{strategy}\n\t\t{dir}\n\t\t{preventScroll}\n\t\t{wrapperId}\n\t\t{style}\n\t\t{onPlaced}\n\t\t{customAnchor}\n\t\t{isStatic}\n\t\tenabled={open}\n\t\t{onInteractOutside}\n\t\t{onCloseAutoFocus}\n\t\t{onOpenAutoFocus}\n\t\t{interactOutsideBehavior}\n\t\t{loop}\n\t\t{trapFocus}\n\t\t{isValidEvent}\n\t\t{onFocusOutside}\n\t\tforceMount={false}\n\t\t{ref}\n\t\t{...restProps}\n\t/>\n{/if}\n","<script lang=\"ts\">\n\timport type { PopperLayerImplProps } from \"./types.js\";\n\timport PopperLayerInner from \"./popper-layer-inner.svelte\";\n\n\tlet {\n\t\tpopper,\n\t\tonEscapeKeydown,\n\t\tescapeKeydownBehavior,\n\t\tpreventOverflowTextSelection,\n\t\tid,\n\t\tonPointerDown,\n\t\tonPointerUp,\n\t\tside,\n\t\tsideOffset,\n\t\talign,\n\t\talignOffset,\n\t\tarrowPadding,\n\t\tavoidCollisions,\n\t\tcollisionBoundary,\n\t\tcollisionPadding,\n\t\tsticky,\n\t\thideWhenDetached,\n\t\tupdatePositionStrategy,\n\t\tstrategy,\n\t\tdir,\n\t\tpreventScroll,\n\t\twrapperId,\n\t\tstyle,\n\t\tonPlaced,\n\t\tonInteractOutside,\n\t\tonCloseAutoFocus,\n\t\tonOpenAutoFocus,\n\t\tonFocusOutside,\n\t\tinteractOutsideBehavior = \"close\",\n\t\tloop,\n\t\ttrapFocus = true,\n\t\tisValidEvent = () => false,\n\t\tcustomAnchor = null,\n\t\tisStatic = false,\n\t\tenabled,\n\t\t...restProps\n\t}: Omit<PopperLayerImplProps, \"open\"> & {\n\t\tenabled: boolean;\n\t} = $props();\n</script>\n\n<PopperLayerInner\n\t{popper}\n\t{onEscapeKeydown}\n\t{escapeKeydownBehavior}\n\t{preventOverflowTextSelection}\n\t{id}\n\t{onPointerDown}\n\t{onPointerUp}\n\t{side}\n\t{sideOffset}\n\t{align}\n\t{alignOffset}\n\t{arrowPadding}\n\t{avoidCollisions}\n\t{collisionBoundary}\n\t{collisionPadding}\n\t{sticky}\n\t{hideWhenDetached}\n\t{updatePositionStrategy}\n\t{strategy}\n\t{dir}\n\t{preventScroll}\n\t{wrapperId}\n\t{style}\n\t{onPlaced}\n\t{customAnchor}\n\t{isStatic}\n\t{enabled}\n\t{onInteractOutside}\n\t{onCloseAutoFocus}\n\t{onOpenAutoFocus}\n\t{interactOutsideBehavior}\n\t{loop}\n\t{trapFocus}\n\t{isValidEvent}\n\t{onFocusOutside}\n\t{...restProps}\n\tforceMount={true}\n/>\n","import { executeCallbacks } from \"svelte-toolbelt\";\nimport { on } from \"svelte/events\";\n// Using global state to avoid multiple listeners.\nlet isUsingKeyboard = $state(false);\n/**\n * Detects whether the user is currently using the keyboard\n * or not by listening to keyboard and pointer events. Uses shared global\n * state to avoid listener duplication.\n */\nexport class IsUsingKeyboard {\n static _refs = 0; // Reference counting to avoid multiple listeners.\n static _cleanup;\n constructor() {\n $effect(() => {\n if (IsUsingKeyboard._refs === 0) {\n IsUsingKeyboard._cleanup = $effect.root(() => {\n const callbacksToDispose = [];\n const handlePointer = (_) => {\n isUsingKeyboard = false;\n };\n const handleKeydown = (_) => {\n isUsingKeyboard = true;\n };\n callbacksToDispose.push(on(document, \"pointerdown\", handlePointer, {\n capture: true,\n }), on(document, \"pointermove\", handlePointer, {\n capture: true,\n }), on(document, \"keydown\", handleKeydown, {\n capture: true,\n }));\n // Don't forget to spread and call twice.\n return executeCallbacks(...callbacksToDispose);\n });\n }\n IsUsingKeyboard._refs++;\n return () => {\n IsUsingKeyboard._refs--;\n if (IsUsingKeyboard._refs === 0) {\n isUsingKeyboard = false;\n IsUsingKeyboard._cleanup?.();\n }\n };\n });\n }\n get current() {\n return isUsingKeyboard;\n }\n set current(value) {\n isUsingKeyboard = value;\n }\n}\n"],"names":["key","node","get_key","render_fn","hydrating","hydrate_next","branches","BranchManager","legacy","is_runes","block","SvelteMap","#sources","#version","state","#size","#update_version","update_version","value","v","#source","source","sources","s","ret","get","callbackfn","this_arg","#read_all","prev_res","res","version","set","increment","v_reactions","needs_version_increase","r","box","initialValue","current","$.state","$.proxy","BoxSymbol","isWritableSymbol","$.set","boxFrom","boxWith","boxFlatten","toReadonlyBox","isBox","isWritableBox","defaultWindow","getActiveElement","document","activeElement","ActiveElement","options","window","#document","createSubscriber","update","cleanupFocusIn","on","cleanupFocusOut","isFunction","Context","#name","#key","name","hasContext","context","getContext","fallback","setContext","runEffect","flush","effect","$.user_effect","$.user_pre_effect","runWatcher","lazy","active","previousValues","values","cleanup","untrack","watch","watchPre","ElementSize","#observed","#width","$.get","#height","#subscribe","node$","observer","#window","entries","entry","boxSize","#options","boxSizeArr","acc","size","#node","element","offsetWidth","offsetHeight","style","paddingWidth","paddingHeight","borderWidth","borderHeight","contentWidth","contentHeight","onDestroyEffect","fn","afterSleep","ms","cb","afterTick","tick","ELEMENT_NODE","DOCUMENT_NODE","DOCUMENT_FRAGMENT_NODE","isHTMLElement","isObject","isDocument","isWindow","isNode","isShadowRoot","contains","parent","child","rootNode","next","getDocument","getWindow","el","DOMContext","id","selector","callback","delay","timeoutId","ALT","ARROW_DOWN","ARROW_LEFT","ARROW_RIGHT","ARROW_UP","BACKSPACE","CAPS_LOCK","CONTROL","END","ENTER","ESCAPE","F1","F10","F11","F12","F2","F3","F4","F5","F6","F7","F8","F9","HOME","META","PAGE_DOWN","PAGE_UP","SHIFT","SPACE","TAB","getElemDirection","elem","getNextKey","dir","orientation","kbd.ARROW_LEFT","kbd.ARROW_RIGHT","kbd.ARROW_DOWN","getPrevKey","kbd.ARROW_UP","getDirectionalKeys","isBrowser","isIOS","getIsIOS","isElement","isElementOrSVGElement","isFocusVisible","isNotNull","isSelectableInput","RovingFocusGroup","#opts","#currentTabStopId","opts","items","e","both","currentIndex","nextKey","prevKey","loop","keyToIndex","kbd.HOME","kbd.END","altNextKey","altPrevKey","itemIndex","itemToFocus","anyActive","currentTabStopId","currentTabStop","AnimationsComplete","#currentFrame","#cleanup","#executeCallback","animations","animation","execute","PresenceManager","isOpen","#shouldRender","#afterAnimations","noop","BitsConfigContext","getBitsConfig","BitsConfigState","resolveConfigOption","createConfigResolver","config","currentOpts","getter","createPropResolver","configOption","getProp","propValue","option","resolveLocaleProp","resolvePortalToProp","to","$$props","getAllContexts","target","getTarget","localTarget","instance","unmountInstance","unmount","disabled","mount","PortalConsumer","CustomEventDispatcher","eventName","detail","event","handler","debounce","wait","timeout","debounced","args","isOrContainsTarget","getOwnerDocument","isClickTrulyOutside","contentNode","clientX","clientY","rect","SELECTION_KEYS","kbd.ENTER","kbd.SPACE","FIRST_KEYS","kbd.PAGE_UP","LAST_KEYS","kbd.PAGE_DOWN","FIRST_LAST_KEYS","SUB_OPEN_KEYS","SUB_CLOSE_KEYS","isMouseEvent","focus","select","doc","previouslyFocusedElement","focusFirst","candidates","candidate","candidateSelectors","candidateSelector","NoElement","matches","getRootNode","_element$getRootNode","_isInert","lookUp","_node$getAttribute","inertAtt","inert","result","isContentEditable","_node$getAttribute2","attValue","getCandidates","includeContainer","filter","_getCandidatesIteratively","elements","elementsToCheck","assigned","content","nestedCandidates","validCandidate","shadowRoot","validShadowRoot","_nestedCandidates","hasTabIndex","getTabIndex","getSortOrderTabIndex","isScope","tabIndex","sortOrderedTabbables","a","b","isInput","isHiddenInput","isDetailsWithSummary","getCheckedRadio","nodes","form","i","isTabbableRadio","radioScope","queryRadios","radioSet","err","checked","isRadio","isNonTabbableRadio","isNodeAttached","_nodeRoot","nodeRoot","nodeRootHost","attached","_nodeRootHost","_nodeRootHost$ownerDo","_node$ownerDocument","_nodeRoot2","_nodeRootHost2","_nodeRootHost2$ownerD","isZeroArea","_node$getBoundingClie","width","height","isHidden","_ref","displayCheck","getShadowRoot","visible","isDirectSummary","nodeUnderDetails","originalNode","parentElement","isDisabledFromFieldset","parentNode","isNodeMatchingSelectorFocusable","isNodeMatchingSelectorTabbable","isShadowRootTabbable","shadowHostNode","_sortByOrder","regularTabbables","orderedTabbables","item","candidateTabindex","sortable","tabbable","container","focusable","isTabbable","focusableCandidateSelector","isFocusable","getTabbableOptions","getTabbableFrom","currentNode","direction","getTabbableFromFocusable","allTabbable","activeIndex","allFocusable","chunk","arr","isValidIndex","index","array","prev","forward","targetIndex","backward","decrement","getNextMatch","search","currentMatch","lowerSearch","searchWithoutSpace","currentMatchLowercase","spacedMatches","currentMatchIndex","wrapArray","match","normalizedSearch","char","normalizedLowerSearch","wrappedValues","nextMatch","startIndex","_","defaultOptions","boxAutoReset","defaultValue","afterMs","onChange","resetAfter","DOMTypeahead","#onMatch","#getCurrentItem","#search","currentItem","newItem","GraceArea","#enabled","$.derived","#isPointerInTransit","triggerNode","enabled","handleTriggerLeave","#createGraceArea","handleContentLeave","executeCallbacks","#pointerGraceArea","handleTrackPointerGrace","pointerPosition","hasEnteredTarget","isPointerOutsideGraceArea","isPointInPolygon","#removeGraceArea","hoverTarget","currentTarget","exitPoint","exitSide","getExitSideFromRect","paddedExitPoints","getPaddedExitPoints","hoverTargetPoints","getPointsFromRect","graceArea","getHull","point","top","bottom","right","left","padding","tipPadding","polygon","x","y","inside","j","xi","yi","xj","yj","points","newPoints","getHullPresorted","upperHull","p","q","lowerHull","CONTEXT_MENU_TRIGGER_ATTR","CONTEXT_MENU_CONTENT_ATTR","MenuRootContext","MenuMenuContext","MenuContentContext","MenuGroupContext","MenuOpenEvent","menuAttrs","createBitsAttrs","MenuRootState","root","IsUsingKeyboard","#ignoreCloseAutoFocus","part","MenuMenuState","#contentNode","#triggerNode","parentMenu","MenuContentState","#timer","#mounted","attachRef","#handleTypeaheadSearch","#getCandidateNodes","#isPointerMovingToSubmenu","rootMenu","nodeToFocus","kbd.TAB","isKeydownInside","isModifierKey","isCharacterKey","candidateNodes","triggerId","getDataOpenClosed","MenuItemSharedState","#isFocused","boolToStr","boolToEmptyStrOrUndef","MenuItemState","#isPointerDown","#handleSelect","selectEvent","isTypingAhead","#props","mergeProps","MenuSubTriggerState","submenu","#openTimer","#clearOpenTimer","MenuGroupState","#groupHeadingId","MenuSeparatorState","DropdownMenuTriggerState","#ariaControls","MenuSubmenuState","menu","DismissibleLayerState","#isResponsibleLayer","#isFocusInsideDOMTree","#documentObj","#unsubClickListener","#behaviorType","#interactOutsideProp","#onFocusOutside","unsubEvents","#handleInteractOutside","#addEventListeners","#resetState","#isTargetWithinLayer","#markInterceptedEvent","#markResponsibleLayer","#markNonInterceptedEvent","#handleFocus","createWrappedEvent","isEventValid","isValidEvent","#handleDismiss","isResponsibleLayer","eventType","#interceptedEvents","#isAnyEventIntercepted","#onfocuscapture","#onblurcapture","getTopMostDismissableLayer","layersArr","behaviorType","topMostLayer","firstLayerNode","targetIsContextMenuTrigger","nodeIsContextMenu","capturedCurrentTarget","capturedTarget","newEvent","isPrevented","prop","interactOutsideBehavior","onInteractOutside","onFocusOutside","dismissibleLayerState","EscapeLayerState","#addEventListener","#onkeydown","kbd.ESCAPE","isResponsibleEscapeLayer","clonedEvent","escapeKeydownBehavior","onEscapeKeydown","FocusScopeManager","#scopeStack","simpleBox","#focusHistory","#preFocusHistory","scope","FocusScope","#paused","#container","#cleanupFns","#manager","#handleOpenAutoFocus","firstTabbable","#getFirstTabbable","#handleCloseAutoFocus","preFocusedElement","#setupEventListeners","handleFocus","lastFocused","firstFocusable","#getAllFocusables","handleKeydown","tabbables","#getTabbables","first","last","elementToFocus","ref","trapFocus","onCloseAutoFocus","onOpenAutoFocus","focusScopeState","TextSelectionLayerState","#unsubSelectionLock","isEnabled","#pointerdown","composeHandlers","#resetSelectionLock","isHighestLayer","preventTextSelectionOverflow","getUserSelect","body","originalBodyUserSelect","originalNodeUserSelect","setUserSelect","highestLayer","preventOverflowTextSelection","onPointerDown","onPointerUp","useId","prefix","SharedState","#subscribers","#state","factory","#factory","#dispose","#scope","$.effect_root","lockMap","initialBodyStyle","stopTouchMoveListener","cleanupTimeoutId","isInCleanupTransition","anyLocked","cleanupScheduledAt","bodyLockStackCount","resetBodyStyle","cancelPendingCleanup","scheduleCleanupIfNoNewLocks","currentCleanupId","cleanupFn","isAnyLocked","actualDelay","ensureInitialStyleCaptured","bodyStyle","verticalScrollbarWidth","BodyScrollLock","#id","#restoreScrollDelay","initialState","restoreScrollDelay","#initialState","#countState","map","preventScroll","sides","min","max","round","floor","createCoords","oppositeSideMap","oppositeAlignmentMap","clamp","start","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","yAxisSides","getSideAxis","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","lrPlacement","rlPlacement","tbPlacement","btPlacement","getSideList","side","isStart","getOppositeAxisPlacements","flipAlignment","list","expandPaddingObject","getPaddingObject","rectToClientRect","computeCoordsFromPlacement","reference","floating","sideAxis","alignLength","isVertical","commonX","commonY","commonAlign","coords","computePosition","strategy","middleware","platform","validMiddleware","statefulPlacement","middlewareData","resetCount","nextX","nextY","data","reset","detectOverflow","_await$platform$isEle","boundary","rootBoundary","elementContext","altBoundary","paddingObject","clippingClientRect","offsetParent","offsetScale","elementClientRect","arrow","arrowDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","maxPadding","min$1","center","offset","shouldAddOffset","alignmentOffset","flip","_middlewareData$arrow","_middlewareData$flip","initialPlacement","checkMainAxis","checkCrossAxis","specifiedFallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","detectOverflowOptions","initialSideAxis","isBasePlacement","fallbackPlacements","hasFallbackAxisSideDirection","placements","overflow","overflows","overflowsData","_middlewareData$flip2","_overflowsData$filter","nextIndex","nextPlacement","d","resetPlacement","_overflowsData$filter2","currentSideAxis","getSideOffsets","isAnySideFullyClipped","hide","offsets","originSides","convertValueToCoords","mainAxisMulti","crossAxisMulti","rawValue","mainAxis","crossAxis","_middlewareData$offse","diffCoords","shift","limiter","mainAxisCoord","crossAxisCoord","minSide","maxSide","limitedCoords","limitShift","rawOffset","computedOffset","len","limitMin","limitMax","_middlewareData$offse2","isOriginSide","_state$middlewareData","_state$middlewareData2","apply","heightSide","widthSide","maximumClippingHeight","maximumClippingWidth","overflowAvailableHeight","overflowAvailableWidth","noShift","availableHeight","availableWidth","xMin","xMax","yMin","yMax","nextDimensions","hasWindow","getNodeName","getDocumentElement","invalidOverflowDisplayValues","isOverflowElement","overflowX","overflowY","display","getComputedStyle","tableElements","isTableElement","topLayerSelectors","isTopLayer","transformProperties","willChangeValues","containValues","isContainingBlock","elementOrCss","webkit","isWebKit","css","getContainingBlock","getParentNode","isLastTraversableNode","lastTraversableNodeNames","getNodeScroll","getNearestOverflowAncestor","getOverflowAncestors","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","frameElement","getFrameElement","getCssDimensions","getComputedStyle$1","hasOffset","shouldFallback","unwrapElement","getScale","domElement","$","noOffsets","getVisualOffsets","shouldAddVisualOffsets","isFixed","floatingOffsetParent","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scale","visualOffsets","offsetWin","currentWin","currentIFrame","iframeScale","iframeRect","getWindowScrollBarX","leftScroll","getHTMLOffset","documentElement","scroll","htmlRect","convertOffsetParentRelativeRectToViewportRelativeRect","topLayer","isOffsetParentAnElement","offsetRect","htmlOffset","getClientRects","getDocumentRect","html","SCROLLBAR_MAX","getViewportRect","visualViewport","visualViewportBased","windowScrollbarX","bodyStyles","bodyMarginInline","clippingStableScrollbarWidth","absoluteOrFixed","getInnerBoundingClientRect","getClientRectFromClippingAncestor","clippingAncestor","hasFixedPositionAncestor","stopNode","getClippingElementAncestors","cache","cachedResult","currentContainingBlockComputedStyle","elementIsFixed","computedStyle","currentNodeIsContaining","ancestor","getClippingRect","clippingAncestors","firstClippingAncestor","clippingRect","accRect","getDimensions","getRectRelativeToOffsetParent","setLeftRTLScrollbarOffset","isStaticPositioned","getTrueOffsetParent","polyfill","rawOffsetParent","getOffsetParent","svgOffsetParent","getElementRects","getOffsetParentFn","getDimensionsFn","floatingDimensions","isRTL","rectsAreEqual","observeMove","onMove","io","_io","refresh","skip","threshold","elementRectForRootMargin","insetTop","insetRight","insetBottom","insetLeft","isFirstUpdate","handleObserve","ratio","autoUpdate","ancestorScroll","ancestorResize","elementResize","layoutShift","animationFrame","referenceEl","ancestors","cleanupIo","reobserveFrame","resizeObserver","firstEntry","_resizeObserver","frameId","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","offset$1","shift$1","flip$1","size$1","hide$1","arrow$1","limitShift$1","mergedOptions","platformWithCache","computePosition$1","valueOrGetValue","getDPR","roundByDPR","dpr","getFloatingContentCSSVars","useFloating","whileElementsMountedOption","openOption","middlewareOption","transformOption","placementOption","strategyOption","sideOffsetOption","alignOffsetOption","isPositioned","floatingStyles","xVal","yVal","whileElementsMountedCleanup","position","maxExpectedOffset","attach","OPPOSITE_SIDE","FloatingRootContext","FloatingContentContext","FloatingTooltipRootContext","FloatingRootState","tooltip","FloatingContentState","#transformedStyle","cssToStyleObj","#updatePositionStrategy","#arrowWidth","#arrowSize","#arrowHeight","#hasExplicitBoundaries","#boundary","anchorWidth","anchorHeight","#availableWidth","#availableHeight","#anchorWidth","#anchorHeight","transformOrigin","#placedSide","getSideFromPlacement","#placedAlign","getAlignFromPlacement","styleToString","customAnchor","#desiredPlacement","FloatingArrowState","FloatingAnchorState","isArrowHidden","arrowWidth","arrowHeight","placedSide","placedAlign","getSideAndAlignFromPlacement","noArrowAlign","arrowXCenter","arrowYCenter","align","sideOffset","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","$.prop","collisionPadding","hideWhenDetached","onPlaced","sticky","updatePositionStrategy","wrapperId","contentState","mergedProps","$.snippet","$.noop","onMount","isStatic","restProps","$.rest_props","FloatingLayerContentStatic","$$anchor","FloatingLayerContent","$.spread_props","$$render","consequent","alternate","PopperContent","$$arg0","floatingProps","wrapperProps","ScrollLock","consequent_1","node_2","focusScopeProps","EscapeLayer","DismissibleLayer","dismissibleProps","TextSelectionLayer","PopperLayerInner","isUsingKeyboard","callbacksToDispose","handlePointer"],"mappings":"wkBAaO,SAASA,GAAIC,EAAMC,EAASC,EAAW,CACzCC,IACHC,GAAY,EAGb,IAAIC,EAAW,IAAIC,GAAcN,CAAI,EAEjCO,EAAS,CAACC,GAAQ,EAEtBC,GAAM,IAAM,CACX,IAAIV,EAAME,EAAO,EAGbM,GAAUR,IAAQ,MAAQ,OAAOA,GAAQ,WAC5CA,EAAwB,CAAA,GAGzBM,EAAS,OAAON,EAAKG,CAAS,CAC/B,CAAC,CACF,CCoBO,MAAMQ,WAAkB,GAAI,CAElCC,GAAW,IAAI,IACfC,GAAWC,EAAM,CAAC,EAClBC,GAAQD,EAAM,CAAC,EACfE,GAAkBC,IAAkB,GAKpC,YAAYC,EAAO,CAWlB,GAVA,MAAK,EAUDA,EAAO,CACV,OAAS,CAAClB,EAAKmB,CAAC,IAAKD,EACpB,MAAM,IAAIlB,EAAKmB,CAAC,EAEjB,KAAKJ,GAAM,EAAI,MAAM,IACtB,CACD,CAWAK,GAAQF,EAAO,CACd,OAAOD,KAAmB,KAAKD,GAAkBF,EAAMI,CAAK,EAAIG,GAAOH,CAAK,CAC7E,CAGA,IAAIlB,EAAK,CACR,IAAIsB,EAAU,KAAKV,GACfW,EAAID,EAAQ,IAAItB,CAAG,EAEvB,GAAIuB,IAAM,OAAW,CACpB,IAAIC,EAAM,MAAM,IAAIxB,CAAG,EACvB,GAAIwB,IAAQ,OACXD,EAAI,KAAKH,GAAQ,CAAC,EAMlBE,EAAQ,IAAItB,EAAKuB,CAAC,MAIlBE,QAAAA,EAAI,KAAKZ,EAAQ,EACV,EAET,CAEAY,OAAAA,EAAIF,CAAC,EACE,EACR,CAMA,QAAQG,EAAYC,EAAU,CAC7B,KAAKC,GAAS,EACd,MAAM,QAAQF,EAAYC,CAAQ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,EAAK,EAMrB,MAAAmc,EAAgB,CAClB,OAAA,MAAQ,SACR,SACP,aAAc,CACV9Z,OACQ8Z,GAAgB,QAAU,IAC1BA,GAAgB,SAAQ0J,GAAA,IAAsB,OACpC2c,EAAkB,CAAA,EAClBC,EAAiBjrB,GAAM,CACzBpX,EAAAmiC,GAAkB,EAAK,CAC3B,EACM/e,EAAiBhM,GAAM,CACzBpX,EAAAmiC,GAAkB,EAAI,CAC1B,EACA,OAAAC,EAAmB,KAAKlhC,EAAG,SAAU,cAAemhC,GAChD,QAAS,EAAI,CAAA,EACbnhC,EAAG,SAAU,cAAemhC,EAAa,CACzC,QAAS,EAAI,CAAA,EACbnhC,EAAG,SAAU,UAAWkiB,EAAa,CACrC,QAAS,EAAI,CAAA,CAAA,EAGV1K,MAAoB0pB,CAAkB,CACjD,CAAC,GAELrmB,GAAgB,YACH,CACTA,GAAgB,QACZA,GAAgB,QAAU,IAC1B/b,EAAAmiC,GAAkB,EAAK,EACvBpmB,GAAgB,WAAQ,EAEhC,EACH,CACL,CACI,IAAA,SAAU,UACHomB,EAAe,CAC1B,KACI,QAAQ7jC,EAAO,CACf0B,EAAAmiC,GAAkB7jC,EAAK,EAAA,CAC3B,CACJ","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69]}
\ No newline at end of file
+{"version":3,"file":"CjLH05gQ.js","sources":["../../../../../../node_modules/svelte/src/internal/client/dom/blocks/key.js","../../../../../../node_modules/svelte/src/reactivity/map.js","../../../../../../node_modules/svelte-toolbelt/dist/box/box.svelte.js","../../../../../../node_modules/runed/dist/internal/configurable-globals.js","../../../../../../node_modules/runed/dist/internal/utils/dom.js","../../../../../../node_modules/runed/dist/utilities/active-element/active-element.svelte.js","../../../../../../node_modules/runed/dist/internal/utils/is.js","../../../../../../node_modules/runed/dist/utilities/context/context.js","../../../../../../node_modules/runed/dist/utilities/watch/watch.svelte.js","../../../../../../node_modules/runed/dist/internal/utils/get.js","../../../../../../node_modules/runed/dist/utilities/element-size/element-size.svelte.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/on-destroy-effect.svelte.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/after-sleep.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/after-tick.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/dom.js","../../../../../../node_modules/svelte-toolbelt/dist/utils/dom-context.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/kbd-constants.js","../../../../../../node_modules/bits-ui/dist/internal/locale.js","../../../../../../node_modules/bits-ui/dist/internal/get-directional-keys.js","../../../../../../node_modules/bits-ui/dist/internal/is.js","../../../../../../node_modules/bits-ui/dist/internal/roving-focus-group.js","../../../../../../node_modules/bits-ui/dist/internal/animations-complete.js","../../../../../../node_modules/bits-ui/dist/internal/presence-manager.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/noop.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/portal/portal-consumer.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/config/bits-config.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/config/prop-resolvers.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/portal/portal.svelte","../../../../../../node_modules/bits-ui/dist/internal/events.js","../../../../../../node_modules/bits-ui/dist/internal/debounce.js","../../../../../../node_modules/bits-ui/dist/internal/elements.js","../../../../../../node_modules/bits-ui/dist/internal/dom.js","../../../../../../node_modules/bits-ui/dist/bits/menu/utils.js","../../../../../../node_modules/bits-ui/dist/internal/focus.js","../../../../../../node_modules/tabbable/dist/index.esm.js","../../../../../../node_modules/bits-ui/dist/internal/tabbable.js","../../../../../../node_modules/bits-ui/dist/internal/arrays.js","../../../../../../node_modules/bits-ui/dist/internal/box-auto-reset.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/dom-typeahead.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/grace-area.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/menu/menu.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/dismissible-layer/use-dismissable-layer.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/dismissible-layer/dismissible-layer.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/escape-layer/use-escape-layer.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/escape-layer/escape-layer.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope-manager.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/focus-scope/focus-scope.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/text-selection-layer/use-text-selection-layer.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/text-selection-layer/text-selection-layer.svelte","../../../../../../node_modules/bits-ui/dist/internal/use-id.js","../../../../../../node_modules/bits-ui/dist/internal/shared-state.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/body-scroll-lock.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/scroll-lock/scroll-lock.svelte","../../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../../../../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../../../../../../node_modules/bits-ui/dist/internal/floating-svelte/floating-utils.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/floating-svelte/use-floating.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/use-floating-layer.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-anchor.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/floating-layer/components/floating-layer-content-static.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-inner.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/popper-layer/popper-layer-force-mount.svelte","../../../../../../node_modules/bits-ui/dist/bits/utilities/is-using-keyboard/is-using-keyboard.svelte.js"],"sourcesContent":["/** @import { TemplateNode } from '#client' */\nimport { is_runes } from '../../context.js';\nimport { block } from '../../reactivity/effects.js';\nimport { hydrate_next, hydrating } from '../hydration.js';\nimport { BranchManager } from './branches.js';\n\n/**\n * @template V\n * @param {TemplateNode} node\n * @param {() => V} get_key\n * @param {(anchor: Node) => TemplateNode | void} render_fn\n * @returns {void}\n */\nexport function key(node, get_key, render_fn) {\n\tif (hydrating) {\n\t\thydrate_next();\n\t}\n\n\tvar branches = new BranchManager(node);\n\n\tvar legacy = !is_runes();\n\n\tblock(() => {\n\t\tvar key = get_key();\n\n\t\t// key blocks in Svelte <5 had stupid semantics\n\t\tif (legacy && key !== null && typeof key === 'object') {\n\t\t\tkey = /** @type {V} */ ({});\n\t\t}\n\n\t\tbranches.ensure(key, render_fn);\n\t});\n}\n","/** @import { Source } from '#client' */\nimport { DEV } from 'esm-env';\nimport { set, source, state, increment } from '../internal/client/reactivity/sources.js';\nimport { label, tag } from '../internal/client/dev/tracing.js';\nimport { get, update_version } from '../internal/client/runtime.js';\n\n/**\n * A reactive version of the built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) object.\n * Reading contents of the map (by iterating, or by reading `map.size` or calling `map.get(...)` or `map.has(...)` as in the [tic-tac-toe example](https://svelte.dev/playground/0b0ff4aa49c9443f9b47fe5203c78293) below) in an [effect](https://svelte.dev/docs/svelte/$effect) or [derived](https://svelte.dev/docs/svelte/$derived)\n * will cause it to be re-evaluated as necessary when the map is updated.\n *\n * Note that values in a reactive map are _not_ made [deeply reactive](https://svelte.dev/docs/svelte/$state#Deep-state).\n *\n * ```svelte\n * <script>\n * \timport { SvelteMap } from 'svelte/reactivity';\n * \timport { result } from './game.js';\n *\n * \tlet board = new SvelteMap();\n * \tlet player = $state('x');\n * \tlet winner = $derived(result(board));\n *\n * \tfunction reset() {\n * \t\tplayer = 'x';\n * \t\tboard.clear();\n * \t}\n * </script>\n *\n * <div class=\"board\">\n * \t{#each Array(9), i}\n * \t\t<button\n * \t\t\tdisabled={board.has(i) || winner}\n * \t\t\tonclick={() => {\n * \t\t\t\tboard.set(i, player);\n * \t\t\t\tplayer = player === 'x' ? 'o' : 'x';\n * \t\t\t}}\n * \t\t>{board.get(i)}</button>\n * \t{/each}\n * </div>\n *\n * {#if winner}\n * \t<p>{winner} wins!</p>\n * \t<button onclick={reset}>reset</button>\n * {:else}\n * \t<p>{player} is next</p>\n * {/if}\n * ```\n *\n * @template K\n * @template V\n * @extends {Map<K, V>}\n */\nexport class SvelteMap extends Map {\n\t/** @type {Map<K, Source<number>>} */\n\t#sources = new Map();\n\t#version = state(0);\n\t#size = state(0);\n\t#update_version = update_version || -1;\n\n\t/**\n\t * @param {Iterable<readonly [K, V]> | null | undefined} [value]\n\t */\n\tconstructor(value) {\n\t\tsuper();\n\n\t\tif (DEV) {\n\t\t\t// If the value is invalid then the native exception will fire here\n\t\t\tvalue = new Map(value);\n\n\t\t\ttag(this.#version, 'SvelteMap version');\n\t\t\ttag(this.#size, 'SvelteMap.size');\n\t\t}\n\n\t\tif (value) {\n\t\t\tfor (var [key, v] of value) {\n\t\t\t\tsuper.set(key, v);\n\t\t\t}\n\t\t\tthis.#size.v = super.size;\n\t\t}\n\t}\n\n\t/**\n\t * If the source is being created inside the same reaction as the SvelteMap instance,\n\t * we use `state` so that it will not be a dependency of the reaction. Otherwise we\n\t * use `source` so it will be.\n\t *\n\t * @template T\n\t * @param {T} value\n\t * @returns {Source<T>}\n\t */\n\t#source(value) {\n\t\treturn update_version === this.#update_version ? state(value) : source(value);\n\t}\n\n\t/** @param {K} key */\n\thas(key) {\n\t\tvar sources = this.#sources;\n\t\tvar s = sources.get(key);\n\n\t\tif (s === undefined) {\n\t\t\tvar ret = super.get(key);\n\t\t\tif (ret !== undefined) {\n\t\t\t\ts = this.#source(0);\n\n\t\t\t\tif (DEV) {\n\t\t\t\t\ttag(s, `SvelteMap get(${label(key)})`);\n\t\t\t\t}\n\n\t\t\t\tsources.set(key, s);\n\t\t\t} else {\n\t\t\t\t// We should always track the version in case\n\t\t\t\t// the Set ever gets this value in the future.\n\t\t\t\tget(this.#version);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tget(s);\n\t\treturn true;\n\t}\n\n\t/**\n\t * @param {(value: V, key: K, map: Map<K, V>) => void} callbackfn\n\t * @param {any} [this_arg]\n\t */\n\tforEach(callbackfn, this_arg) {\n\t\tthis.#read_all();\n\t\tsuper.forEach(callbackfn, this_arg);\n\t}\n\n\t/** @param {K} key */\n\tget(key) {\n\t\tvar sources = this.#sources;\n\t\tvar s = sources.get(key);\n\n\t\tif (s === undefined) {\n\t\t\tvar ret = super.get(key);\n\t\t\tif (ret !== undefined) {\n\t\t\t\ts = this.#source(0);\n\n\t\t\t\tif (DEV) {\n\t\t\t\t\ttag(s, `SvelteMap get(${label(key)})`);\n\t\t\t\t}\n\n\t\t\t\tsources.set(key, s);\n\t\t\t} else {\n\t\t\t\t// We should always track the version in case\n\t\t\t\t// the Set ever gets this value in the future.\n\t\t\t\tget(this.#version);\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t}\n\n\t\tget(s);\n\t\treturn super.get(key);\n\t}\n\n\t/**\n\t * @param {K} key\n\t * @param {V} value\n\t * */\n\tset(key, value) {\n\t\tvar sources = this.#sources;\n\t\tvar s = sources.get(key);\n\t\tvar prev_res = super.get(key);\n\t\tvar res = super.set(key, value);\n\t\tvar version = this.#version;\n\n\t\tif (s === undefined) {\n\t\t\ts = this.#source(0);\n\n\t\t\tif (DEV) {\n\t\t\t\ttag(s, `SvelteMap get(${label(key)})`);\n\t\t\t}\n\n\t\t\tsources.set(key, s);\n\t\t\tset(this.#size, super.size);\n\t\t\tincrement(version);\n\t\t} else if (prev_res !== value) {\n\t\t\tincrement(s);\n\n\t\t\t// if not every reaction of s is a reaction of version we need to also include version\n\t\t\tvar v_reactions = version.reactions === null ? null : new Set(version.reactions);\n\t\t\tvar needs_version_increase =\n\t\t\t\tv_reactions === null ||\n\t\t\t\t!s.reactions?.every((r) =>\n\t\t\t\t\t/** @type {NonNullable<typeof v_reactions>} */ (v_reactions).has(r)\n\t\t\t\t);\n\t\t\tif (needs_version_increase) {\n\t\t\t\tincrement(version);\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}\n\n\t/** @param {K} key */\n\tdelete(key) {\n\t\tvar sources = this.#sources;\n\t\tvar s = sources.get(key);\n\t\tvar res = super.delete(key);\n\n\t\tif (s !== undefined) {\n\t\t\tsources.delete(key);\n\t\t\tset(this.#size, super.size);\n\t\t\tset(s, -1);\n\t\t\tincrement(this.#version);\n\t\t}\n\n\t\treturn res;\n\t}\n\n\tclear() {\n\t\tif (super.size === 0) {\n\t\t\treturn;\n\t\t}\n\t\t// Clear first, so we get nice console.log outputs with $inspect\n\t\tsuper.clear();\n\t\tvar sources = this.#sources;\n\t\tset(this.#size, 0);\n\t\tfor (var s of sources.values()) {\n\t\t\tset(s, -1);\n\t\t}\n\t\tincrement(this.#version);\n\t\tsources.clear();\n\t}\n\n\t#read_all() {\n\t\tget(this.#version);\n\n\t\tvar sources = this.#sources;\n\t\tif (this.#size.v !== sources.size) {\n\t\t\tfor (var key of super.keys()) {\n\t\t\t\tif (!sources.has(key)) {\n\t\t\t\t\tvar s = this.#source(0);\n\t\t\t\t\tif (DEV) {\n\t\t\t\t\t\ttag(s, `SvelteMap get(${label(key)})`);\n\t\t\t\t\t}\n\n\t\t\t\t\tsources.set(key, s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor ([, s] of this.#sources) {\n\t\t\tget(s);\n\t\t}\n\t}\n\n\tkeys() {\n\t\tget(this.#version);\n\t\treturn super.keys();\n\t}\n\n\tvalues() {\n\t\tthis.#read_all();\n\t\treturn super.values();\n\t}\n\n\tentries() {\n\t\tthis.#read_all();\n\t\treturn super.entries();\n\t}\n\n\t[Symbol.iterator]() {\n\t\treturn this.entries();\n\t}\n\n\tget size() {\n\t\tget(this.#size);\n\t\treturn super.size;\n\t}\n}\n","import { boxFrom, boxWith, boxFlatten, toReadonlyBox, isBox, isWritableBox, BoxSymbol, isWritableSymbol } from \"./box-extras.svelte.js\";\nexport function box(initialValue) {\n let current = $state(initialValue);\n return {\n [BoxSymbol]: true,\n [isWritableSymbol]: true,\n get current() {\n return current;\n },\n set current(v) {\n current = v;\n }\n };\n}\nbox.from = boxFrom;\nbox.with = boxWith;\nbox.flatten = boxFlatten;\nbox.readonly = toReadonlyBox;\nbox.isBox = isBox;\nbox.isWritableBox = isWritableBox;\n","import { BROWSER } from \"esm-env\";\nexport const defaultWindow = BROWSER && typeof window !== \"undefined\" ? window : undefined;\nexport const defaultDocument = BROWSER && typeof window !== \"undefined\" ? window.document : undefined;\nexport const defaultNavigator = BROWSER && typeof window !== \"undefined\" ? window.navigator : undefined;\nexport const defaultLocation = BROWSER && typeof window !== \"undefined\" ? window.location : undefined;\n","import { defaultDocument } from \"../configurable-globals.js\";\n/**\n * Handles getting the active element in a document or shadow root.\n * If the active element is within a shadow root, it will traverse the shadow root\n * to find the active element.\n * If not, it will return the active element in the document.\n *\n * @param document A document or shadow root to get the active element from.\n * @returns The active element in the document or shadow root.\n */\nexport function getActiveElement(document) {\n let activeElement = document.activeElement;\n while (activeElement?.shadowRoot) {\n const node = activeElement.shadowRoot.activeElement;\n if (node === activeElement)\n break;\n else\n activeElement = node;\n }\n return activeElement;\n}\n/**\n * Returns the owner document of a given element.\n *\n * @param node The element to get the owner document from.\n * @returns\n */\nexport function getOwnerDocument(node, fallback = defaultDocument) {\n return node?.ownerDocument ?? fallback;\n}\n/**\n * Checks if an element is or is contained by another element.\n *\n * @param node The element to check if it or its descendants contain the target element.\n * @param target The element to check if it is contained by the node.\n * @returns\n */\nexport function isOrContainsTarget(node, target) {\n return node === target || node.contains(target);\n}\n","import { defaultWindow, } from \"../../internal/configurable-globals.js\";\nimport { getActiveElement } from \"../../internal/utils/dom.js\";\nimport { on } from \"svelte/events\";\nimport { createSubscriber } from \"svelte/reactivity\";\nexport class ActiveElement {\n #document;\n #subscribe;\n constructor(options = {}) {\n const { window = defaultWindow, document = window?.document } = options;\n if (window === undefined)\n return;\n this.#document = document;\n this.#subscribe = createSubscriber((update) => {\n const cleanupFocusIn = on(window, \"focusin\", update);\n const cleanupFocusOut = on(window, \"focusout\", update);\n return () => {\n cleanupFocusIn();\n cleanupFocusOut();\n };\n });\n }\n get current() {\n this.#subscribe?.();\n if (!this.#document)\n return null;\n return getActiveElement(this.#document);\n }\n}\n/**\n * An object holding a reactive value that is equal to `document.activeElement`.\n * It automatically listens for changes, keeping the reference up to date.\n *\n * If you wish to use a custom document or shadowRoot, you should use\n * [useActiveElement](https://runed.dev/docs/utilities/active-element) instead.\n *\n * @see {@link https://runed.dev/docs/utilities/active-element}\n */\nexport const activeElement = new ActiveElement();\n","export function isFunction(value) {\n return typeof value === \"function\";\n}\nexport function isObject(value) {\n return value !== null && typeof value === \"object\";\n}\nexport function isElement(value) {\n return value instanceof Element;\n}\n","import { getContext, hasContext, setContext } from \"svelte\";\nexport class Context {\n #name;\n #key;\n /**\n * @param name The name of the context.\n * This is used for generating the context key and error messages.\n */\n constructor(name) {\n this.#name = name;\n this.#key = Symbol(name);\n }\n /**\n * The key used to get and set the context.\n *\n * It is not recommended to use this value directly.\n * Instead, use the methods provided by this class.\n */\n get key() {\n return this.#key;\n }\n /**\n * Checks whether this has been set in the context of a parent component.\n *\n * Must be called during component initialisation.\n */\n exists() {\n return hasContext(this.#key);\n }\n /**\n * Retrieves the context that belongs to the closest parent component.\n *\n * Must be called during component initialisation.\n *\n * @throws An error if the context does not exist.\n */\n get() {\n const context = getContext(this.#key);\n if (context === undefined) {\n throw new Error(`Context \"${this.#name}\" not found`);\n }\n return context;\n }\n /**\n * Retrieves the context that belongs to the closest parent component,\n * or the given fallback value if the context does not exist.\n *\n * Must be called during component initialisation.\n */\n getOr(fallback) {\n const context = getContext(this.#key);\n if (context === undefined) {\n return fallback;\n }\n return context;\n }\n /**\n * Associates the given value with the current component and returns it.\n *\n * Must be called during component initialisation.\n */\n set(context) {\n return setContext(this.#key, context);\n }\n}\n","import { untrack } from \"svelte\";\nfunction runEffect(flush, effect) {\n switch (flush) {\n case \"post\":\n $effect(effect);\n break;\n case \"pre\":\n $effect.pre(effect);\n break;\n }\n}\nfunction runWatcher(sources, flush, effect, options = {}) {\n const { lazy = false } = options;\n // Run the effect immediately if `lazy` is `false`.\n let active = !lazy;\n // On the first run, if the dependencies are an array, pass an empty array\n // to the previous value instead of `undefined` to allow destructuring.\n //\n // watch(() => [a, b], ([a, b], [prevA, prevB]) => { ... });\n let previousValues = Array.isArray(sources)\n ? []\n : undefined;\n runEffect(flush, () => {\n const values = Array.isArray(sources) ? sources.map((source) => source()) : sources();\n if (!active) {\n active = true;\n previousValues = values;\n return;\n }\n const cleanup = untrack(() => effect(values, previousValues));\n previousValues = values;\n return cleanup;\n });\n}\nfunction runWatcherOnce(sources, flush, effect) {\n const cleanupRoot = $effect.root(() => {\n let stop = false;\n runWatcher(sources, flush, (values, previousValues) => {\n if (stop) {\n cleanupRoot();\n return;\n }\n // Since `lazy` is `true`, `previousValues` is always defined.\n const cleanup = effect(values, previousValues);\n stop = true;\n return cleanup;\n }, \n // Running the effect immediately just once makes no sense at all.\n // That's just `onMount` with extra steps.\n { lazy: true });\n });\n $effect(() => {\n return cleanupRoot;\n });\n}\nexport function watch(sources, effect, options) {\n runWatcher(sources, \"post\", effect, options);\n}\nfunction watchPre(sources, effect, options) {\n runWatcher(sources, \"pre\", effect, options);\n}\nwatch.pre = watchPre;\nexport function watchOnce(source, effect) {\n runWatcherOnce(source, \"post\", effect);\n}\nfunction watchOncePre(source, effect) {\n runWatcherOnce(source, \"pre\", effect);\n}\nwatchOnce.pre = watchOncePre;\n","import { isFunction } from \"./is.js\";\nexport function get(value) {\n if (isFunction(value)) {\n return value();\n }\n return value;\n}\n","import { defaultWindow } from \"../../internal/configurable-globals.js\";\nimport { get } from \"../../internal/utils/get.js\";\nimport { createSubscriber } from \"svelte/reactivity\";\n/**\n * Returns a reactive value holding the size of `node`.\n *\n * Accepts an `options` object with the following properties:\n * - `initialSize`: The initial size of the element. Defaults to `{ width: 0, height: 0 }`.\n * - `box`: The box model to use. Can be either `\"content-box\"` or `\"border-box\"`. Defaults to `\"border-box\"`.\n *\n * @returns an object with `width` and `height` properties.\n *\n * @see {@link https://runed.dev/docs/utilities/element-size}\n */\nexport class ElementSize {\n // no need to use `$state` here since we are using createSubscriber\n #size = {\n width: 0,\n height: 0,\n };\n #observed = false;\n #options;\n #node;\n #window;\n // we use a derived here to extract the width so that if the width doesn't change we don't get a state update\n // which we would get if we would just use a getter since the version of the subscriber will be changing\n #width = $derived.by(() => {\n this.#subscribe?.();\n return this.getSize().width;\n });\n // we use a derived here to extract the height so that if the height doesn't change we don't get a state update\n // which we would get if we would just use a getter since the version of the subscriber will be changing\n #height = $derived.by(() => {\n this.#subscribe?.();\n return this.getSize().height;\n });\n // we need to use a derived here because the class will be created before the node is bound to the ref\n #subscribe = $derived.by(() => {\n const node$ = get(this.#node);\n if (!node$)\n return;\n return createSubscriber((update) => {\n if (!this.#window)\n return;\n const observer = new this.#window.ResizeObserver((entries) => {\n this.#observed = true;\n for (const entry of entries) {\n const boxSize = this.#options.box === \"content-box\" ? entry.contentBoxSize : entry.borderBoxSize;\n const boxSizeArr = Array.isArray(boxSize) ? boxSize : [boxSize];\n this.#size.width = boxSizeArr.reduce((acc, size) => Math.max(acc, size.inlineSize), 0);\n this.#size.height = boxSizeArr.reduce((acc, size) => Math.max(acc, size.blockSize), 0);\n }\n update();\n });\n observer.observe(node$);\n return () => {\n this.#observed = false;\n observer.disconnect();\n };\n });\n });\n constructor(node, options = { box: \"border-box\" }) {\n this.#window = options.window ?? defaultWindow;\n this.#options = options;\n this.#node = node;\n this.#size = {\n width: 0,\n height: 0,\n };\n }\n calculateSize() {\n const element = get(this.#node);\n // no element or no window, return undefined, we will return 0x0 in the getSize method\n if (!element || !this.#window) {\n return;\n }\n const offsetWidth = element.offsetWidth;\n const offsetHeight = element.offsetHeight;\n // easy mode, just return offsets\n if (this.#options.box === \"border-box\") {\n return {\n width: offsetWidth,\n height: offsetHeight,\n };\n }\n // hard mode, we need to calculate the content size\n const style = this.#window.getComputedStyle(element);\n const paddingWidth = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);\n const paddingHeight = parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);\n const borderWidth = parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);\n const borderHeight = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);\n const contentWidth = offsetWidth - paddingWidth - borderWidth;\n const contentHeight = offsetHeight - paddingHeight - borderHeight;\n return {\n width: contentWidth,\n height: contentHeight,\n };\n }\n getSize() {\n // if the resize observer already run we can just return the size\n // otherwise we calculate the size if possible or we return the initial size\n return this.#observed ? this.#size : (this.calculateSize() ?? this.#size);\n }\n get current() {\n this.#subscribe?.();\n return this.getSize();\n }\n get width() {\n return this.#width;\n }\n get height() {\n return this.#height;\n }\n}\n","export function onDestroyEffect(fn) {\n $effect(() => {\n return () => {\n fn();\n };\n });\n}\n","/**\n * A utility function that executes a callback after a specified number of milliseconds.\n */\nexport function afterSleep(ms, cb) {\n return setTimeout(cb, ms);\n}\n","import { tick } from \"svelte\";\nexport function afterTick(fn) {\n tick().then(fn);\n}\n","import { isObject } from \"./is.js\";\nconst ELEMENT_NODE = 1;\nconst DOCUMENT_NODE = 9;\nconst DOCUMENT_FRAGMENT_NODE = 11;\nexport function isHTMLElement(node) {\n return isObject(node) && node.nodeType === ELEMENT_NODE && typeof node.nodeName === \"string\";\n}\nexport function isDocument(node) {\n return isObject(node) && node.nodeType === DOCUMENT_NODE;\n}\nexport function isWindow(node) {\n return isObject(node) && node.constructor?.name === \"VisualViewport\";\n}\nexport function getNodeName(node) {\n if (isHTMLElement(node))\n return node.localName ?? \"\";\n return \"#document\";\n}\nexport function isNode(node) {\n return isObject(node) && node.nodeType !== undefined;\n}\nexport function isShadowRoot(node) {\n return isNode(node) && node.nodeType === DOCUMENT_FRAGMENT_NODE && \"host\" in node;\n}\nexport function contains(parent, child) {\n if (!parent || !child)\n return false;\n if (!isHTMLElement(parent) || !isHTMLElement(child))\n return false;\n const rootNode = child.getRootNode?.();\n if (parent === child)\n return true;\n if (parent.contains(child))\n return true;\n if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n while (next) {\n if (parent === next)\n return true;\n // @ts-expect-error - host is not typed\n next = next.parentNode || next.host;\n }\n }\n return false;\n}\nexport function getDocument(node) {\n if (isDocument(node))\n return node;\n if (isWindow(node))\n return node.document;\n return node?.ownerDocument ?? document;\n}\nexport function getDocumentElement(node) {\n return getDocument(node).documentElement;\n}\nexport function getWindow(node) {\n if (isShadowRoot(node))\n return getWindow(node.host);\n if (isDocument(node))\n return node.defaultView ?? window;\n if (isHTMLElement(node))\n return node.ownerDocument?.defaultView ?? window;\n return window;\n}\nexport function getActiveElement(rootNode) {\n let activeElement = rootNode.activeElement;\n while (activeElement?.shadowRoot) {\n const el = activeElement.shadowRoot.activeElement;\n if (el === activeElement)\n break;\n else\n activeElement = el;\n }\n return activeElement;\n}\nexport function getParentNode(node) {\n if (getNodeName(node) === \"html\")\n return node;\n const result = \n // @ts-expect-error - assignedSlot is not typed\n node.assignedSlot ||\n node.parentNode ||\n (isShadowRoot(node) && node.host) ||\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\n","import { boxWith } from \"../box/box-extras.svelte.js\";\nimport { getActiveElement, getDocument } from \"./dom.js\";\nexport class DOMContext {\n element;\n root = $derived.by(() => {\n if (!this.element.current)\n return document;\n const rootNode = this.element.current.getRootNode() ?? document;\n return rootNode;\n });\n constructor(element) {\n if (typeof element === \"function\") {\n this.element = boxWith(element);\n }\n else {\n this.element = element;\n }\n }\n getDocument = () => {\n return getDocument(this.root);\n };\n getWindow = () => {\n return this.getDocument().defaultView ?? window;\n };\n getActiveElement = () => {\n return getActiveElement(this.root);\n };\n isActiveElement = (node) => {\n return node === this.getActiveElement();\n };\n getElementById(id) {\n return this.root.getElementById(id);\n }\n querySelector = (selector) => {\n if (!this.root)\n return null;\n return this.root.querySelector(selector);\n };\n querySelectorAll = (selector) => {\n if (!this.root)\n return [];\n return this.root.querySelectorAll(selector);\n };\n setTimeout = (callback, delay) => {\n return this.getWindow().setTimeout(callback, delay);\n };\n clearTimeout = (timeoutId) => {\n return this.getWindow().clearTimeout(timeoutId);\n };\n}\n","export const ALT = \"Alt\";\nexport const ARROW_DOWN = \"ArrowDown\";\nexport const ARROW_LEFT = \"ArrowLeft\";\nexport const ARROW_RIGHT = \"ArrowRight\";\nexport const ARROW_UP = \"ArrowUp\";\nexport const BACKSPACE = \"Backspace\";\nexport const CAPS_LOCK = \"CapsLock\";\nexport const CONTROL = \"Control\";\nexport const DELETE = \"Delete\";\nexport const END = \"End\";\nexport const ENTER = \"Enter\";\nexport const ESCAPE = \"Escape\";\nexport const F1 = \"F1\";\nexport const F10 = \"F10\";\nexport const F11 = \"F11\";\nexport const F12 = \"F12\";\nexport const F2 = \"F2\";\nexport const F3 = \"F3\";\nexport const F4 = \"F4\";\nexport const F5 = \"F5\";\nexport const F6 = \"F6\";\nexport const F7 = \"F7\";\nexport const F8 = \"F8\";\nexport const F9 = \"F9\";\nexport const HOME = \"Home\";\nexport const META = \"Meta\";\nexport const PAGE_DOWN = \"PageDown\";\nexport const PAGE_UP = \"PageUp\";\nexport const SHIFT = \"Shift\";\nexport const SPACE = \" \";\nexport const TAB = \"Tab\";\nexport const CTRL = \"Control\";\nexport const ASTERISK = \"*\";\nexport const a = \"a\";\nexport const P = \"P\";\nexport const A = \"A\";\nexport const p = \"p\";\nexport const n = \"n\";\nexport const j = \"j\";\nexport const k = \"k\";\nexport const h = \"h\";\nexport const l = \"l\";\n","/**\n * Detects the text direction in the element.\n * @returns {Direction} The text direction ('ltr' for left-to-right or 'rtl' for right-to-left).\n */\nexport function getElemDirection(elem) {\n const style = window.getComputedStyle(elem);\n const direction = style.getPropertyValue(\"direction\");\n return direction;\n}\n","import { kbd } from \"./kbd.js\";\nexport const FIRST_KEYS = [kbd.ARROW_DOWN, kbd.PAGE_UP, kbd.HOME];\nexport const LAST_KEYS = [kbd.ARROW_UP, kbd.PAGE_DOWN, kbd.END];\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nexport const SELECTION_KEYS = [kbd.SPACE, kbd.ENTER];\n/**\n * A utility function that returns the next key based on the direction and orientation.\n */\nexport function getNextKey(dir = \"ltr\", orientation = \"horizontal\") {\n return {\n horizontal: dir === \"rtl\" ? kbd.ARROW_LEFT : kbd.ARROW_RIGHT,\n vertical: kbd.ARROW_DOWN,\n }[orientation];\n}\n/**\n * A utility function that returns the previous key based on the direction and orientation.\n */\nexport function getPrevKey(dir = \"ltr\", orientation = \"horizontal\") {\n return {\n horizontal: dir === \"rtl\" ? kbd.ARROW_RIGHT : kbd.ARROW_LEFT,\n vertical: kbd.ARROW_UP,\n }[orientation];\n}\n/**\n * A utility function that returns the next and previous keys based on the direction\n * and orientation.\n */\nexport function getDirectionalKeys(dir = \"ltr\", orientation = \"horizontal\") {\n if (![\"ltr\", \"rtl\"].includes(dir))\n dir = \"ltr\";\n if (![\"horizontal\", \"vertical\"].includes(orientation))\n orientation = \"horizontal\";\n return {\n nextKey: getNextKey(dir, orientation),\n prevKey: getPrevKey(dir, orientation),\n };\n}\n","export const isBrowser = typeof document !== \"undefined\";\nexport const isIOS = getIsIOS();\nfunction getIsIOS() {\n return (isBrowser &&\n window?.navigator?.userAgent &&\n (/iP(ad|hone|od)/.test(window.navigator.userAgent) ||\n // The new iPad Pro Gen3 does not identify itself as iPad, but as Macintosh.\n (window?.navigator?.maxTouchPoints > 2 &&\n /iPad|Macintosh/.test(window?.navigator.userAgent))));\n}\nexport function isFunction(value) {\n return typeof value === \"function\";\n}\nexport function isHTMLElement(element) {\n return element instanceof HTMLElement;\n}\nexport function isElement(element) {\n return element instanceof Element;\n}\nexport function isElementOrSVGElement(element) {\n return element instanceof Element || element instanceof SVGElement;\n}\nexport function isNumberString(value) {\n return !Number.isNaN(Number(value)) && !Number.isNaN(Number.parseFloat(value));\n}\nexport function isNull(value) {\n return value === null;\n}\nexport function isTouch(e) {\n return e.pointerType === \"touch\";\n}\nexport function isFocusVisible(element) {\n return element.matches(\":focus-visible\");\n}\nexport function isNotNull(value) {\n return value !== null;\n}\n/**\n * Determines if the provided object is a valid `HTMLInputElement` with\n * a `select` method available.\n */\nexport function isSelectableInput(element) {\n return element instanceof HTMLInputElement && \"select\" in element;\n}\n/**\n * Given a node, determine if it is hidden by walking up the\n * DOM tree until we hit the `stopAt` node (exclusive), if provided)\n * otherwise we stop at the document root.\n */\nexport function isElementHidden(node, stopAt) {\n if (getComputedStyle(node).visibility === \"hidden\")\n return true;\n while (node) {\n // we stop at `upTo` (excluding it)\n if (stopAt !== undefined && node === stopAt)\n return false;\n if (getComputedStyle(node).display === \"none\")\n return true;\n node = node.parentElement;\n }\n return false;\n}\n","import { box } from \"svelte-toolbelt\";\nimport { getElemDirection } from \"./locale.js\";\nimport { getDirectionalKeys } from \"./get-directional-keys.js\";\nimport { kbd } from \"./kbd.js\";\nimport { BROWSER } from \"esm-env\";\nimport { isHTMLElement } from \"./is.js\";\nexport class RovingFocusGroup {\n #opts;\n #currentTabStopId = box(null);\n constructor(opts) {\n this.#opts = opts;\n }\n getCandidateNodes() {\n if (!BROWSER || !this.#opts.rootNode.current)\n return [];\n if (this.#opts.candidateSelector) {\n const candidates = Array.from(this.#opts.rootNode.current.querySelectorAll(this.#opts.candidateSelector));\n return candidates;\n }\n else if (this.#opts.candidateAttr) {\n const candidates = Array.from(this.#opts.rootNode.current.querySelectorAll(`[${this.#opts.candidateAttr}]:not([data-disabled])`));\n return candidates;\n }\n return [];\n }\n focusFirstCandidate() {\n const items = this.getCandidateNodes();\n if (!items.length)\n return;\n items[0]?.focus();\n }\n handleKeydown(node, e, both = false) {\n const rootNode = this.#opts.rootNode.current;\n if (!rootNode || !node)\n return;\n const items = this.getCandidateNodes();\n if (!items.length)\n return;\n const currentIndex = items.indexOf(node);\n const dir = getElemDirection(rootNode);\n const { nextKey, prevKey } = getDirectionalKeys(dir, this.#opts.orientation.current);\n const loop = this.#opts.loop.current;\n const keyToIndex = {\n [nextKey]: currentIndex + 1,\n [prevKey]: currentIndex - 1,\n [kbd.HOME]: 0,\n [kbd.END]: items.length - 1,\n };\n if (both) {\n const altNextKey = nextKey === kbd.ARROW_DOWN ? kbd.ARROW_RIGHT : kbd.ARROW_DOWN;\n const altPrevKey = prevKey === kbd.ARROW_UP ? kbd.ARROW_LEFT : kbd.ARROW_UP;\n keyToIndex[altNextKey] = currentIndex + 1;\n keyToIndex[altPrevKey] = currentIndex - 1;\n }\n let itemIndex = keyToIndex[e.key];\n if (itemIndex === undefined)\n return;\n e.preventDefault();\n if (itemIndex < 0 && loop) {\n itemIndex = items.length - 1;\n }\n else if (itemIndex === items.length && loop) {\n itemIndex = 0;\n }\n const itemToFocus = items[itemIndex];\n if (!itemToFocus)\n return;\n itemToFocus.focus();\n this.#currentTabStopId.current = itemToFocus.id;\n this.#opts.onCandidateFocus?.(itemToFocus);\n return itemToFocus;\n }\n getTabIndex(node) {\n const items = this.getCandidateNodes();\n const anyActive = this.#currentTabStopId.current !== null;\n if (node && !anyActive && items[0] === node) {\n this.#currentTabStopId.current = node.id;\n return 0;\n }\n else if (node?.id === this.#currentTabStopId.current) {\n return 0;\n }\n return -1;\n }\n setCurrentTabStopId(id) {\n this.#currentTabStopId.current = id;\n }\n focusCurrentTabStop() {\n const currentTabStopId = this.#currentTabStopId.current;\n if (!currentTabStopId)\n return;\n const currentTabStop = this.#opts.rootNode.current?.querySelector(`#${currentTabStopId}`);\n if (!currentTabStop || !isHTMLElement(currentTabStop))\n return;\n currentTabStop.focus();\n }\n}\n","import { afterTick, onDestroyEffect } from \"svelte-toolbelt\";\nexport class AnimationsComplete {\n #opts;\n #currentFrame = null;\n constructor(opts) {\n this.#opts = opts;\n onDestroyEffect(() => this.#cleanup());\n }\n #cleanup() {\n if (!this.#currentFrame)\n return;\n window.cancelAnimationFrame(this.#currentFrame);\n this.#currentFrame = null;\n }\n run(fn) {\n // if already running, cleanup and restart\n this.#cleanup();\n const node = this.#opts.ref.current;\n if (!node)\n return;\n if (typeof node.getAnimations !== \"function\") {\n this.#executeCallback(fn);\n return;\n }\n this.#currentFrame = window.requestAnimationFrame(() => {\n const animations = node.getAnimations();\n if (animations.length === 0) {\n this.#executeCallback(fn);\n return;\n }\n Promise.allSettled(animations.map((animation) => animation.finished)).then(() => {\n this.#executeCallback(fn);\n });\n });\n }\n #executeCallback(fn) {\n const execute = () => {\n fn();\n };\n if (this.#opts.afterTick) {\n afterTick(execute);\n }\n else {\n execute();\n }\n }\n}\n","import { watch } from \"runed\";\nimport { AnimationsComplete } from \"./animations-complete.js\";\nexport class PresenceManager {\n #opts;\n #enabled;\n #afterAnimations;\n #shouldRender = $state(false);\n constructor(opts) {\n this.#opts = opts;\n this.#shouldRender = opts.open.current;\n this.#enabled = opts.enabled ?? true;\n this.#afterAnimations = new AnimationsComplete({\n ref: this.#opts.ref,\n afterTick: this.#opts.open,\n });\n watch(() => this.#opts.open.current, (isOpen) => {\n if (isOpen)\n this.#shouldRender = true;\n if (!this.#enabled)\n return;\n this.#afterAnimations.run(() => {\n if (isOpen === this.#opts.open.current) {\n if (!this.#opts.open.current) {\n this.#shouldRender = false;\n }\n this.#opts.onComplete?.();\n }\n });\n });\n }\n get shouldRender() {\n return this.#shouldRender;\n }\n}\n","/**\n * A no operation function (does nothing)\n */\nexport function noop() { }\n","<script lang=\"ts\">\n\timport type { Snippet } from \"svelte\";\n\n\tconst { children }: { children?: Snippet } = $props();\n</script>\n\n{#key children}\n\t{@render children?.()}\n{/key}\n","import { Context } from \"runed\";\nimport { boxWith } from \"svelte-toolbelt\";\nexport const BitsConfigContext = new Context(\"BitsConfig\");\n/**\n * Gets the current Bits UI configuration state from the context.\n *\n * Returns a default configuration (where all values are `undefined`) if no configuration is found.\n */\nexport function getBitsConfig() {\n const fallback = new BitsConfigState(null, {});\n return BitsConfigContext.getOr(fallback).opts;\n}\n/**\n * Creates and sets a new Bits UI configuration state that inherits from parent configs.\n *\n * @param opts - Configuration options for this level\n * @returns The configuration state instance\n *\n * @example\n * ```typescript\n * // In a component that wants to set a default portal target\n * const config = useBitsConfig({ defaultPortalTo: box(\"#some-element\") });\n *\n * // Child components will inherit this config and can override specific values\n * const childConfig = useBitsConfig({ someOtherProp: box(\"value\") });\n * // childConfig still has defaultPortalTo=\"#some-element\" from parent\n * ```\n */\nexport function useBitsConfig(opts) {\n return BitsConfigContext.set(new BitsConfigState(BitsConfigContext.getOr(null), opts));\n}\n/**\n * Configuration state that inherits from parent configurations.\n *\n * @example\n * Config resolution:\n * ```\n * Level 1: { defaultPortalTo: \"#some-element\", theme: \"dark\" }\n * Level 2: { spacing: \"large\" } // inherits defaultPortalTo=\"#some-element\", theme=\"dark\"\n * Level 3: { theme: \"light\" } // inherits defaultPortalTo=\"#some-element\", spacing=\"large\", overrides theme=\"light\"\n * ```\n */\nexport class BitsConfigState {\n opts;\n constructor(parent, opts) {\n const resolveConfigOption = createConfigResolver(parent, opts);\n this.opts = {\n defaultPortalTo: resolveConfigOption((config) => config.defaultPortalTo),\n defaultLocale: resolveConfigOption((config) => config.defaultLocale),\n };\n }\n}\n/**\n * Returns a config resolver that resolves a given config option's value.\n *\n * The resolver creates reactive boxes that resolve config option values using this priority:\n * 1. Current level's value (if defined)\n * 2. Parent level's value (if defined and current is undefined)\n * 3. `undefined` (if no value is found in either parent or child)\n *\n * @param parent - Parent configuration state (null if this is root level)\n * @param currentOpts - Current level's configuration options\n *\n * @example\n * ```typescript\n * // Given this hierarchy:\n * // Root: { defaultPortalTo: \"#some-element\" }\n * // Child: { someOtherProp: \"value\" } // no defaultPortalTo specified\n *\n * const resolveConfigOption = createConfigResolver(parent, opts);\n * const portalTo = resolveConfigOption(config => config.defaultPortalTo);\n *\n * // portalTo.current === \"#some-element\" (inherited from parent)\n * // even when child didn't specify `defaultPortalTo`\n * ```\n */\nfunction createConfigResolver(parent, currentOpts) {\n return (getter) => {\n const configOption = boxWith(() => {\n // try current opts first\n const value = getter(currentOpts)?.current;\n if (value !== undefined)\n return value;\n // if no parent, return undefined\n if (parent === null)\n return undefined;\n // get value from parent (which already has its own chain resolved)\n return getter(parent.opts)?.current;\n });\n return configOption;\n };\n}\n","import { boxWith } from \"svelte-toolbelt\";\nimport { getBitsConfig } from \"./bits-config.js\";\n/**\n * Creates a generic prop resolver that follows a standard priority chain:\n * 1. The getter's prop value (if defined)\n * 2. The config default value (if no getter prop value is defined)\n * 3. The fallback value (if no config value found)\n */\nfunction createPropResolver(configOption, fallback) {\n return (getProp) => {\n const config = getBitsConfig();\n return boxWith(() => {\n // 1. return the prop's value, if provided\n const propValue = getProp();\n if (propValue !== undefined)\n return propValue;\n // 2. return the resolved config option value, if available\n const option = configOption(config).current;\n if (option !== undefined)\n return option;\n // 3. return the fallback if no other value is found\n return fallback;\n });\n };\n}\n/**\n * Resolves a locale value using the prop, the config default, or a fallback.\n *\n * Default value: `\"en\"`\n */\nexport const resolveLocaleProp = createPropResolver((config) => config.defaultLocale, \"en\");\n/**\n * Resolves a portal's `to` value using the prop, the config default, or a fallback.\n *\n * Default value: `\"body\"`\n */\nexport const resolvePortalToProp = createPropResolver((config) => config.defaultPortalTo, \"body\");\n","<script lang=\"ts\">\n\timport { getAllContexts, mount, unmount } from \"svelte\";\n\timport { DEV } from \"esm-env\";\n\timport { watch } from \"runed\";\n\timport PortalConsumer from \"./portal-consumer.svelte\";\n\timport type { PortalProps } from \"./types.js\";\n\timport { isBrowser } from \"../../../internal/is.js\";\n\timport { resolvePortalToProp } from \"../config/prop-resolvers.js\";\n\n\tlet { to: toProp, children, disabled }: PortalProps = $props();\n\n\tconst to = resolvePortalToProp(() => toProp);\n\tconst context = getAllContexts();\n\n\tlet target = $derived(getTarget());\n\n\tfunction getTarget() {\n\t\tif (!isBrowser || disabled) return null;\n\n\t\tlet localTarget: Element | null = null;\n\n\t\tif (typeof to.current === \"string\") {\n\t\t\tconst target = document.querySelector(to.current);\n\t\t\tif (DEV && target === null) {\n\t\t\t\tthrow new Error(`Target element \"${to.current}\" not found.`);\n\t\t\t}\n\t\t\tlocalTarget = target;\n\t\t} else {\n\t\t\tlocalTarget = to.current;\n\t\t}\n\n\t\tif (DEV && !(localTarget instanceof Element)) {\n\t\t\tconst type = localTarget === null ? \"null\" : typeof localTarget;\n\t\t\tthrow new TypeError(\n\t\t\t\t`Unknown portal target type: ${type}. Allowed types: string (query selector) or Element.`\n\t\t\t);\n\t\t}\n\n\t\treturn localTarget;\n\t}\n\n\tlet instance: ReturnType<typeof mount> | null;\n\n\tfunction unmountInstance() {\n\t\tif (instance) {\n\t\t\tunmount(instance);\n\t\t\tinstance = null;\n\t\t}\n\t}\n\n\twatch([() => target, () => disabled], ([target, disabled]) => {\n\t\tif (!target || disabled) {\n\t\t\tunmountInstance();\n\t\t\treturn;\n\t\t}\n\t\tinstance = mount(PortalConsumer, {\n\t\t\ttarget: target,\n\t\t\tprops: { children },\n\t\t\tcontext,\n\t\t});\n\n\t\treturn () => {\n\t\t\tunmountInstance();\n\t\t};\n\t});\n</script>\n\n{#if disabled}\n\t{@render children?.()}\n{/if}\n","import { on } from \"svelte/events\";\n/**\n * Creates a typed event dispatcher and listener pair for custom events\n * @template T - The type of data that will be passed in the event detail\n * @param eventName - The name of the custom event\n * @param options - CustomEvent options (bubbles, cancelable, etc.)\n */\nexport class CustomEventDispatcher {\n eventName;\n options;\n constructor(eventName, options = { bubbles: true, cancelable: true }) {\n this.eventName = eventName;\n this.options = options;\n }\n createEvent(detail) {\n return new CustomEvent(this.eventName, {\n ...this.options,\n detail,\n });\n }\n dispatch(element, detail) {\n const event = this.createEvent(detail);\n element.dispatchEvent(event);\n return event;\n }\n listen(element, callback, options) {\n const handler = (event) => {\n callback(event);\n };\n return on(element, this.eventName, handler, options);\n }\n}\n","// oxlint-disable-next-line no-explicit-any\nexport function debounce(fn, wait = 500) {\n let timeout = null;\n const debounced = (...args) => {\n if (timeout !== null) {\n clearTimeout(timeout);\n }\n timeout = setTimeout(() => {\n fn(...args);\n }, wait);\n };\n debounced.destroy = () => {\n if (timeout !== null) {\n clearTimeout(timeout);\n timeout = null;\n }\n };\n return debounced;\n}\n","export function isOrContainsTarget(node, target) {\n return node === target || node.contains(target);\n}\nexport function getOwnerDocument(el) {\n return el?.ownerDocument ?? document;\n}\n","export function getFirstNonCommentChild(element) {\n if (!element)\n return null;\n for (const child of element.childNodes) {\n if (child.nodeType !== Node.COMMENT_NODE) {\n return child;\n }\n }\n return null;\n}\n/**\n * Determines if the click event truly occurred outside the content node.\n * This was added to handle password managers and other elements that may be injected\n * into the DOM but visually appear inside the content.\n */\nexport function isClickTrulyOutside(event, contentNode) {\n const { clientX, clientY } = event;\n const rect = contentNode.getBoundingClientRect();\n return (clientX < rect.left || clientX > rect.right || clientY < rect.top || clientY > rect.bottom);\n}\n","import { kbd } from \"../../internal/kbd.js\";\nexport const SELECTION_KEYS = [kbd.ENTER, kbd.SPACE];\nexport const FIRST_KEYS = [kbd.ARROW_DOWN, kbd.PAGE_UP, kbd.HOME];\nexport const LAST_KEYS = [kbd.ARROW_UP, kbd.PAGE_DOWN, kbd.END];\nexport const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];\nexport const SUB_OPEN_KEYS = {\n ltr: [...SELECTION_KEYS, kbd.ARROW_RIGHT],\n rtl: [...SELECTION_KEYS, kbd.ARROW_LEFT],\n};\nexport const SUB_CLOSE_KEYS = {\n ltr: [kbd.ARROW_LEFT],\n rtl: [kbd.ARROW_RIGHT],\n};\nexport function isIndeterminate(checked) {\n return checked === \"indeterminate\";\n}\nexport function getCheckedState(checked) {\n return isIndeterminate(checked) ? \"indeterminate\" : checked ? \"checked\" : \"unchecked\";\n}\nexport function isMouseEvent(event) {\n return event.pointerType === \"mouse\";\n}\n","import { getDocument, getWindow } from \"svelte-toolbelt\";\nimport { isBrowser, isElementHidden, isSelectableInput } from \"./is.js\";\n/**\n * Handles `initialFocus` prop behavior for the\n * Calendar & RangeCalendar components.\n */\nexport function handleCalendarInitialFocus(calendar) {\n if (!isBrowser)\n return;\n const selectedDay = calendar.querySelector(\"[data-selected]\");\n if (selectedDay)\n return focusWithoutScroll(selectedDay);\n const today = calendar.querySelector(\"[data-today]\");\n if (today)\n return focusWithoutScroll(today);\n const firstDay = calendar.querySelector(\"[data-calendar-date]\");\n if (firstDay)\n return focusWithoutScroll(firstDay);\n}\n/**\n * A utility function that focuses an element without scrolling.\n */\nexport function focusWithoutScroll(element) {\n const doc = getDocument(element);\n const win = getWindow(element);\n const scrollPosition = {\n x: win.pageXOffset || doc.documentElement.scrollLeft,\n y: win.pageYOffset || doc.documentElement.scrollTop,\n };\n element.focus();\n win.scrollTo(scrollPosition.x, scrollPosition.y);\n}\n/**\n * A utility function that focuses an element.\n */\nexport function focus(element, { select = false } = {}) {\n if (!element || !element.focus)\n return;\n const doc = getDocument(element);\n if (doc.activeElement === element)\n return;\n const previouslyFocusedElement = doc.activeElement;\n // prevent scroll on focus\n element.focus({ preventScroll: true });\n // only elect if its not the same element, it supports selection, and we need to select it\n if (element !== previouslyFocusedElement && isSelectableInput(element) && select) {\n element.select();\n }\n}\n/**\n * Attempts to focus the first element in a list of candidates.\n * Stops when focus is successful.\n */\nexport function focusFirst(candidates, { select = false } = {}, getActiveElement) {\n const previouslyFocusedElement = getActiveElement();\n for (const candidate of candidates) {\n focus(candidate, { select });\n if (getActiveElement() !== previouslyFocusedElement)\n return true;\n }\n}\n/**\n * Returns the first visible element in a list.\n * NOTE: Only checks visibility up to the `container`.\n */\nexport function findVisible(elements, container) {\n for (const element of elements) {\n // we stop checking if it's hidden at the `container` level (excluding)\n if (!isElementHidden(element, container))\n return element;\n }\n}\n/**\n * Returns a list of potential tabbable candidates.\n *\n * NOTE: This is only a close approximation. For example it doesn't take into account cases like when\n * elements are not visible. This cannot be worked out easily by just reading a property, but rather\n * necessitate runtime knowledge (computed styles, etc). We deal with these cases separately.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker\n * Credit: https://github.com/discord/focus-layers/blob/master/src/util/wrapFocus.tsx#L1\n */\nexport function getTabbableCandidates(container) {\n const nodes = [];\n const doc = getDocument(container);\n const walker = doc.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n // oxlint-disable-next-line no-explicit-any\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput)\n return NodeFilter.FILTER_SKIP;\n // `.tabIndex` is not the same as the `tabindex` attribute. It works on the\n // runtime's understanding of tabbability, so this automatically accounts\n // for any kind of element that could be tabbed to.\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n },\n });\n while (walker.nextNode())\n nodes.push(walker.currentNode);\n // we do not take into account the order of nodes with positive `tabIndex` as it\n // hinders accessibility to have tab order different from visual order.\n return nodes;\n}\n/**\n * A utility function that returns the first and last elements within a container that are\n * visible and focusable.\n */\nexport function getTabbableEdges(container) {\n const candidates = getTabbableCandidates(container);\n const first = findVisible(candidates, container);\n const last = findVisible(candidates.reverse(), container);\n return [first, last];\n}\n","/*!\n* tabbable 6.3.0\n* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n*/\n// NOTE: separate `:not()` selectors has broader browser support than the newer\n// `:not([inert], [inert] *)` (Feb 2023)\n// CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes\n// the entire query to fail, resulting in no nodes found, which will break a lot\n// of things... so we have to rely on JS to identify nodes inside an inert container\nvar candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable=\"false\"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];\nvar candidateSelector = /* #__PURE__ */candidateSelectors.join(',');\nvar NoElement = typeof Element === 'undefined';\nvar matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {\n var _element$getRootNode;\n return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);\n} : function (element) {\n return element === null || element === void 0 ? void 0 : element.ownerDocument;\n};\n\n/**\n * Determines if a node is inert or in an inert ancestor.\n * @param {Element} [node]\n * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to\n * see if any of them are inert. If false, only `node` itself is considered.\n * @returns {boolean} True if inert itself or by way of being in an inert ancestor.\n * False if `node` is falsy.\n */\nvar _isInert = function isInert(node, lookUp) {\n var _node$getAttribute;\n if (lookUp === void 0) {\n lookUp = true;\n }\n // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`\n // JS API property; we have to check the attribute, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's an active element\n var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');\n var inert = inertAtt === '' || inertAtt === 'true';\n\n // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`\n // if it weren't for `matches()` not being a function on shadow roots; the following\n // code works for any kind of node\n // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`\n // so it likely would not support `:is([inert] *)` either...\n var result = inert || lookUp && node && _isInert(node.parentNode); // recursive\n\n return result;\n};\n\n/**\n * Determines if a node's content is editable.\n * @param {Element} [node]\n * @returns True if it's content-editable; false if it's not or `node` is falsy.\n */\nvar isContentEditable = function isContentEditable(node) {\n var _node$getAttribute2;\n // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have\n // to use the attribute directly to check for this, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's a non-editable element\n var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');\n return attValue === '' || attValue === 'true';\n};\n\n/**\n * @param {Element} el container to check in\n * @param {boolean} includeContainer add container to check\n * @param {(node: Element) => boolean} filter filter candidates\n * @returns {Element[]}\n */\nvar getCandidates = function getCandidates(el, includeContainer, filter) {\n // even if `includeContainer=false`, we still have to check it for inertness because\n // if it's inert, all its children are inert\n if (_isInert(el)) {\n return [];\n }\n var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n if (includeContainer && matches.call(el, candidateSelector)) {\n candidates.unshift(el);\n }\n candidates = candidates.filter(filter);\n return candidates;\n};\n\n/**\n * @callback GetShadowRoot\n * @param {Element} element to check for shadow root\n * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.\n */\n\n/**\n * @callback ShadowRootFilter\n * @param {Element} shadowHostNode the element which contains shadow content\n * @returns {boolean} true if a shadow root could potentially contain valid candidates.\n */\n\n/**\n * @typedef {Object} CandidateScope\n * @property {Element} scopeParent contains inner candidates\n * @property {Element[]} candidates list of candidates found in the scope parent\n */\n\n/**\n * @typedef {Object} IterativeOptions\n * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;\n * if a function, implies shadow support is enabled and either returns the shadow root of an element\n * or a boolean stating if it has an undisclosed shadow root\n * @property {(node: Element) => boolean} filter filter candidates\n * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list\n * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;\n */\n\n/**\n * @param {Element[]} elements list of element containers to match candidates from\n * @param {boolean} includeContainer add container list to check\n * @param {IterativeOptions} options\n * @returns {Array.<Element|CandidateScope>}\n */\nvar _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {\n var candidates = [];\n var elementsToCheck = Array.from(elements);\n while (elementsToCheck.length) {\n var element = elementsToCheck.shift();\n if (_isInert(element, false)) {\n // no need to look up since we're drilling down\n // anything inside this container will also be inert\n continue;\n }\n if (element.tagName === 'SLOT') {\n // add shadow dom slot scope (slot itself cannot be focusable)\n var assigned = element.assignedElements();\n var content = assigned.length ? assigned : element.children;\n var nestedCandidates = _getCandidatesIteratively(content, true, options);\n if (options.flatten) {\n candidates.push.apply(candidates, nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: nestedCandidates\n });\n }\n } else {\n // check candidate element\n var validCandidate = matches.call(element, candidateSelector);\n if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n candidates.push(element);\n }\n\n // iterate over shadow content if possible\n var shadowRoot = element.shadowRoot ||\n // check for an undisclosed shadow\n typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);\n\n // no inert look up because we're already drilling down and checking for inertness\n // on the way down, so all containers to this root node should have already been\n // vetted as non-inert\n var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));\n if (shadowRoot && validShadowRoot) {\n // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed\n // shadow exists, so look at light dom children as fallback BUT create a scope for any\n // child candidates found because they're likely slotted elements (elements that are\n // children of the web component element (which has the shadow), in the light dom, but\n // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,\n // _after_ we return from this recursive call\n var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n if (options.flatten) {\n candidates.push.apply(candidates, _nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: _nestedCandidates\n });\n }\n } else {\n // there's not shadow so just dig into the element's (light dom) children\n // __without__ giving the element special scope treatment\n elementsToCheck.unshift.apply(elementsToCheck, element.children);\n }\n }\n }\n return candidates;\n};\n\n/**\n * @private\n * Determines if the node has an explicitly specified `tabindex` attribute.\n * @param {HTMLElement} node\n * @returns {boolean} True if so; false if not.\n */\nvar hasTabIndex = function hasTabIndex(node) {\n return !isNaN(parseInt(node.getAttribute('tabindex'), 10));\n};\n\n/**\n * Determine the tab index of a given node.\n * @param {HTMLElement} node\n * @returns {number} Tab order (negative, 0, or positive number).\n * @throws {Error} If `node` is falsy.\n */\nvar getTabIndex = function getTabIndex(node) {\n if (!node) {\n throw new Error('No node provided');\n }\n if (node.tabIndex < 0) {\n // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default\n // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,\n // yet they are still part of the regular tab order; in FF, they get a default\n // `tabIndex` of 0; since Chrome still puts those elements in the regular tab\n // order, consider their tab index to be 0.\n // Also browsers do not return `tabIndex` correctly for contentEditable nodes;\n // so if they don't have a tabindex attribute specifically set, assume it's 0.\n if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {\n return 0;\n }\n }\n return node.tabIndex;\n};\n\n/**\n * Determine the tab index of a given node __for sort order purposes__.\n * @param {HTMLElement} node\n * @param {boolean} [isScope] True for a custom element with shadow root or slot that, by default,\n * has tabIndex -1, but needs to be sorted by document order in order for its content to be\n * inserted into the correct sort position.\n * @returns {number} Tab order (negative, 0, or positive number).\n */\nvar getSortOrderTabIndex = function getSortOrderTabIndex(node, isScope) {\n var tabIndex = getTabIndex(node);\n if (tabIndex < 0 && isScope && !hasTabIndex(node)) {\n return 0;\n }\n return tabIndex;\n};\nvar sortOrderedTabbables = function sortOrderedTabbables(a, b) {\n return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;\n};\nvar isInput = function isInput(node) {\n return node.tagName === 'INPUT';\n};\nvar isHiddenInput = function isHiddenInput(node) {\n return isInput(node) && node.type === 'hidden';\n};\nvar isDetailsWithSummary = function isDetailsWithSummary(node) {\n var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {\n return child.tagName === 'SUMMARY';\n });\n return r;\n};\nvar getCheckedRadio = function getCheckedRadio(nodes, form) {\n for (var i = 0; i < nodes.length; i++) {\n if (nodes[i].checked && nodes[i].form === form) {\n return nodes[i];\n }\n }\n};\nvar isTabbableRadio = function isTabbableRadio(node) {\n if (!node.name) {\n return true;\n }\n var radioScope = node.form || getRootNode(node);\n var queryRadios = function queryRadios(name) {\n return radioScope.querySelectorAll('input[type=\"radio\"][name=\"' + name + '\"]');\n };\n var radioSet;\n if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {\n radioSet = queryRadios(window.CSS.escape(node.name));\n } else {\n try {\n radioSet = queryRadios(node.name);\n } catch (err) {\n // eslint-disable-next-line no-console\n console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);\n return false;\n }\n }\n var checked = getCheckedRadio(radioSet, node.form);\n return !checked || checked === node;\n};\nvar isRadio = function isRadio(node) {\n return isInput(node) && node.type === 'radio';\n};\nvar isNonTabbableRadio = function isNonTabbableRadio(node) {\n return isRadio(node) && !isTabbableRadio(node);\n};\n\n// determines if a node is ultimately attached to the window's document\nvar isNodeAttached = function isNodeAttached(node) {\n var _nodeRoot;\n // The root node is the shadow root if the node is in a shadow DOM; some document otherwise\n // (but NOT _the_ document; see second 'If' comment below for more).\n // If rootNode is shadow root, it'll have a host, which is the element to which the shadow\n // is attached, and the one we need to check if it's in the document or not (because the\n // shadow, and all nodes it contains, is never considered in the document since shadows\n // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,\n // is hidden, or is not in the document itself but is detached, it will affect the shadow's\n // visibility, including all the nodes it contains). The host could be any normal node,\n // or a custom element (i.e. web component). Either way, that's the one that is considered\n // part of the document, not the shadow root, nor any of its children (i.e. the node being\n // tested).\n // To further complicate things, we have to look all the way up until we find a shadow HOST\n // that is attached (or find none) because the node might be in nested shadows...\n // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the\n // document (per the docs) and while it's a Document-type object, that document does not\n // appear to be the same as the node's `ownerDocument` for some reason, so it's safer\n // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,\n // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when\n // node is actually detached.\n // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible\n // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed\n // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then\n // `ownerDocument` will be `null`, hence the optional chaining on it.\n var nodeRoot = node && getRootNode(node);\n var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;\n\n // in some cases, a detached node will return itself as the root instead of a document or\n // shadow root object, in which case, we shouldn't try to look further up the host chain\n var attached = false;\n if (nodeRoot && nodeRoot !== node) {\n var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;\n attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));\n while (!attached && nodeRootHost) {\n var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;\n // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,\n // which means we need to get the host's host and check if that parent host is contained\n // in (i.e. attached to) the document\n nodeRoot = getRootNode(nodeRootHost);\n nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;\n attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));\n }\n }\n return attached;\n};\nvar isZeroArea = function isZeroArea(node) {\n var _node$getBoundingClie = node.getBoundingClientRect(),\n width = _node$getBoundingClie.width,\n height = _node$getBoundingClie.height;\n return width === 0 && height === 0;\n};\nvar isHidden = function isHidden(node, _ref) {\n var displayCheck = _ref.displayCheck,\n getShadowRoot = _ref.getShadowRoot;\n if (displayCheck === 'full-native') {\n if ('checkVisibility' in node) {\n // Chrome >= 105, Edge >= 105, Firefox >= 106, Safari >= 17.4\n // @see https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility#browser_compatibility\n var visible = node.checkVisibility({\n // Checking opacity might be desirable for some use cases, but natively,\n // opacity zero elements _are_ focusable and tabbable.\n checkOpacity: false,\n opacityProperty: false,\n contentVisibilityAuto: true,\n visibilityProperty: true,\n // This is an alias for `visibilityProperty`. Contemporary browsers\n // support both. However, this alias has wider browser support (Chrome\n // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so\n // we include it anyway.\n checkVisibilityCSS: true\n });\n return !visible;\n }\n // Fall through to manual visibility checks\n }\n\n // NOTE: visibility will be `undefined` if node is detached from the document\n // (see notes about this further down), which means we will consider it visible\n // (this is legacy behavior from a very long way back)\n // NOTE: we check this regardless of `displayCheck=\"none\"` because this is a\n // _visibility_ check, not a _display_ check\n if (getComputedStyle(node).visibility === 'hidden') {\n return true;\n }\n var isDirectSummary = matches.call(node, 'details>summary:first-of-type');\n var nodeUnderDetails = isDirectSummary ? node.parentElement : node;\n if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {\n return true;\n }\n if (!displayCheck || displayCheck === 'full' ||\n // full-native can run this branch when it falls through in case\n // Element#checkVisibility is unsupported\n displayCheck === 'full-native' || displayCheck === 'legacy-full') {\n if (typeof getShadowRoot === 'function') {\n // figure out if we should consider the node to be in an undisclosed shadow and use the\n // 'non-zero-area' fallback\n var originalNode = node;\n while (node) {\n var parentElement = node.parentElement;\n var rootNode = getRootNode(node);\n if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow\n ) {\n // node has an undisclosed shadow which means we can only treat it as a black box, so we\n // fall back to a non-zero-area test\n return isZeroArea(node);\n } else if (node.assignedSlot) {\n // iterate up slot\n node = node.assignedSlot;\n } else if (!parentElement && rootNode !== node.ownerDocument) {\n // cross shadow boundary\n node = rootNode.host;\n } else {\n // iterate up normal dom\n node = parentElement;\n }\n }\n node = originalNode;\n }\n // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support\n // (i.e. it does not also presume that all nodes might have undisclosed shadows); or\n // it might be a falsy value, which means shadow DOM support is disabled\n\n // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)\n // now we can just test to see if it would normally be visible or not, provided it's\n // attached to the main document.\n // NOTE: We must consider case where node is inside a shadow DOM and given directly to\n // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.\n\n if (isNodeAttached(node)) {\n // this works wherever the node is: if there's at least one client rect, it's\n // somehow displayed; it also covers the CSS 'display: contents' case where the\n // node itself is hidden in place of its contents; and there's no need to search\n // up the hierarchy either\n return !node.getClientRects().length;\n }\n\n // Else, the node isn't attached to the document, which means the `getClientRects()`\n // API will __always__ return zero rects (this can happen, for example, if React\n // is used to render nodes onto a detached tree, as confirmed in this thread:\n // https://github.com/facebook/react/issues/9117#issuecomment-284228870)\n //\n // It also means that even window.getComputedStyle(node).display will return `undefined`\n // because styles are only computed for nodes that are in the document.\n //\n // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable\n // somehow. Though it was never stated officially, anyone who has ever used tabbable\n // APIs on nodes in detached containers has actually implicitly used tabbable in what\n // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck=\"none\"` mode -- essentially\n // considering __everything__ to be visible because of the innability to determine styles.\n //\n // v6.0.0: As of this major release, the default 'full' option __no longer treats detached\n // nodes as visible with the 'none' fallback.__\n if (displayCheck !== 'legacy-full') {\n return true; // hidden\n }\n // else, fallback to 'none' mode and consider the node visible\n } else if (displayCheck === 'non-zero-area') {\n // NOTE: Even though this tests that the node's client rect is non-zero to determine\n // whether it's displayed, and that a detached node will __always__ have a zero-area\n // client rect, we don't special-case for whether the node is attached or not. In\n // this mode, we do want to consider nodes that have a zero area to be hidden at all\n // times, and that includes attached or not.\n return isZeroArea(node);\n }\n\n // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume\n // it's visible\n return false;\n};\n\n// form fields (nested) inside a disabled fieldset are not focusable/tabbable\n// unless they are in the _first_ <legend> element of the top-most disabled\n// fieldset\nvar isDisabledFromFieldset = function isDisabledFromFieldset(node) {\n if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {\n var parentNode = node.parentElement;\n // check if `node` is contained in a disabled <fieldset>\n while (parentNode) {\n if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {\n // look for the first <legend> among the children of the disabled <fieldset>\n for (var i = 0; i < parentNode.children.length; i++) {\n var child = parentNode.children.item(i);\n // when the first <legend> (in document order) is found\n if (child.tagName === 'LEGEND') {\n // if its parent <fieldset> is not nested in another disabled <fieldset>,\n // return whether `node` is a descendant of its first <legend>\n return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);\n }\n }\n // the disabled <fieldset> containing `node` has no <legend>\n return true;\n }\n parentNode = parentNode.parentElement;\n }\n }\n\n // else, node's tabbable/focusable state should not be affected by a fieldset's\n // enabled/disabled state\n return false;\n};\nvar isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {\n if (node.disabled ||\n // we must do an inert look up to filter out any elements inside an inert ancestor\n // because we're limited in the type of selectors we can use in JSDom (see related\n // note related to `candidateSelectors`)\n _isInert(node) || isHiddenInput(node) || isHidden(node, options) ||\n // For a details element with a summary, the summary element gets the focus\n isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {\n return false;\n }\n return true;\n};\nvar isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {\n if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {\n return false;\n }\n return true;\n};\nvar isShadowRootTabbable = function isShadowRootTabbable(shadowHostNode) {\n var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);\n if (isNaN(tabIndex) || tabIndex >= 0) {\n return true;\n }\n // If a custom element has an explicit negative tabindex,\n // browsers will not allow tab targeting said element's children.\n return false;\n};\n\n/**\n * @param {Array.<Element|CandidateScope>} candidates\n * @returns Element[]\n */\nvar _sortByOrder = function sortByOrder(candidates) {\n var regularTabbables = [];\n var orderedTabbables = [];\n candidates.forEach(function (item, i) {\n var isScope = !!item.scopeParent;\n var element = isScope ? item.scopeParent : item;\n var candidateTabindex = getSortOrderTabIndex(element, isScope);\n var elements = isScope ? _sortByOrder(item.candidates) : element;\n if (candidateTabindex === 0) {\n isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);\n } else {\n orderedTabbables.push({\n documentOrder: i,\n tabIndex: candidateTabindex,\n item: item,\n isScope: isScope,\n content: elements\n });\n }\n });\n return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {\n sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);\n return acc;\n }, []).concat(regularTabbables);\n};\nvar tabbable = function tabbable(container, options) {\n options = options || {};\n var candidates;\n if (options.getShadowRoot) {\n candidates = _getCandidatesIteratively([container], options.includeContainer, {\n filter: isNodeMatchingSelectorTabbable.bind(null, options),\n flatten: false,\n getShadowRoot: options.getShadowRoot,\n shadowRootFilter: isShadowRootTabbable\n });\n } else {\n candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));\n }\n return _sortByOrder(candidates);\n};\nvar focusable = function focusable(container, options) {\n options = options || {};\n var candidates;\n if (options.getShadowRoot) {\n candidates = _getCandidatesIteratively([container], options.includeContainer, {\n filter: isNodeMatchingSelectorFocusable.bind(null, options),\n flatten: true,\n getShadowRoot: options.getShadowRoot\n });\n } else {\n candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));\n }\n return candidates;\n};\nvar isTabbable = function isTabbable(node, options) {\n options = options || {};\n if (!node) {\n throw new Error('No node provided');\n }\n if (matches.call(node, candidateSelector) === false) {\n return false;\n }\n return isNodeMatchingSelectorTabbable(options, node);\n};\nvar focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');\nvar isFocusable = function isFocusable(node, options) {\n options = options || {};\n if (!node) {\n throw new Error('No node provided');\n }\n if (matches.call(node, focusableCandidateSelector) === false) {\n return false;\n }\n return isNodeMatchingSelectorFocusable(options, node);\n};\n\nexport { focusable, getTabIndex, isFocusable, isTabbable, tabbable };\n//# sourceMappingURL=index.esm.js.map\n","import { focusable, isFocusable, isTabbable, tabbable } from \"tabbable\";\nimport { getDocument } from \"svelte-toolbelt\";\nfunction getTabbableOptions() {\n return {\n getShadowRoot: true,\n displayCheck: \n // JSDOM does not support the `tabbable` library. To solve this we can\n // check if `ResizeObserver` is a real function (not polyfilled), which\n // determines if the current environment is JSDOM-like.\n typeof ResizeObserver === \"function\" &&\n ResizeObserver.toString().includes(\"[native code]\")\n ? \"full\"\n : \"none\",\n };\n}\n/**\n * Gets all tabbable elements in the body and finds the next/previous tabbable element\n * from the `currentNode` based on the `direction` provided.\n * @param currentNode - the node we want to get the next/previous tabbable from\n */\nexport function getTabbableFrom(currentNode, direction) {\n if (!isTabbable(currentNode, getTabbableOptions())) {\n return getTabbableFromFocusable(currentNode, direction);\n }\n const doc = getDocument(currentNode);\n const allTabbable = tabbable(doc.body, getTabbableOptions());\n if (direction === \"prev\")\n allTabbable.reverse();\n const activeIndex = allTabbable.indexOf(currentNode);\n if (activeIndex === -1)\n return doc.body;\n const nextTabbableElements = allTabbable.slice(activeIndex + 1);\n return nextTabbableElements[0];\n}\nexport function getTabbableFromFocusable(currentNode, direction) {\n const doc = getDocument(currentNode);\n if (!isFocusable(currentNode, getTabbableOptions()))\n return doc.body;\n // find all focusable nodes, since some elements may be focusable but not tabbable\n // such as context menu triggers\n const allFocusable = focusable(doc.body, getTabbableOptions());\n // find index of current node among focusable siblings\n if (direction === \"prev\")\n allFocusable.reverse();\n const activeIndex = allFocusable.indexOf(currentNode);\n if (activeIndex === -1)\n return doc.body;\n const nextFocusableElements = allFocusable.slice(activeIndex + 1);\n // find the next focusable node that is also tabbable\n return nextFocusableElements.find((node) => isTabbable(node, getTabbableOptions())) ?? doc.body;\n}\n","/**\n * Checks if two arrays are equal by comparing their values.\n */\nexport function arraysAreEqual(arr1, arr2) {\n if (arr1.length !== arr2.length)\n return false;\n return arr1.every((value, index) => isEqual(value, arr2[index]));\n}\n/**\n * A utility function that compares two values for equality.\n */\nfunction isEqual(a, b) {\n if (Number.isNaN(a) && Number.isNaN(b))\n return true;\n if (Array.isArray(a) && Array.isArray(b))\n return arraysAreEqual(a, b);\n if (typeof a === \"object\" && typeof b === \"object\")\n return isDeepEqual(a, b);\n return Object.is(a, b);\n}\n/**\n * A utility function that compares two values for deep equality.\n */\nfunction isDeepEqual(a, b) {\n if (typeof a !== \"object\" || typeof b !== \"object\" || a === null || b === null)\n return false;\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n if (aKeys.length !== bKeys.length)\n return false;\n for (const key of aKeys) {\n if (!bKeys.includes(key))\n return false;\n if (!isEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n}\n/**\n * Splits an array into chunks of a given size.\n * @param arr The array to split.\n * @param size The size of each chunk.\n * @returns An array of arrays, where each sub-array has `size` elements from the original array.\n * @example ```ts\n * const arr = [1, 2, 3, 4, 5, 6, 7, 8];\n * const chunks = chunk(arr, 3);\n * // chunks = [[1, 2, 3], [4, 5, 6], [7, 8]]\n * ```\n */\nexport function chunk(arr, size) {\n if (size <= 0)\n return [];\n const result = [];\n for (let i = 0; i < arr.length; i += size) {\n result.push(arr.slice(i, i + size));\n }\n return result;\n}\n/**\n * Checks if the given index is valid for the given array.\n *\n * @param index - The index to check\n * @param arr - The array to check\n */\nexport function isValidIndex(index, arr) {\n return index >= 0 && index < arr.length;\n}\n/**\n * Returns the array element after the given index, or undefined for out-of-bounds or empty arrays.\n * @param array the array.\n * @param index the index of the current element.\n * @param loop loop to the beginning of the array if the next index is out of bounds?\n */\n/**\n * Returns the array element after the given index, or undefined for out-of-bounds or empty arrays.\n * For single-element arrays, returns the element if the index is 0.\n * @param array the array.\n * @param index the index of the current element.\n * @param loop loop to the beginning of the array if the next index is out of bounds?\n */\nexport function next(array, index, loop = true) {\n if (array.length === 0 || index < 0 || index >= array.length)\n return;\n if (array.length === 1 && index === 0)\n return array[0];\n if (index === array.length - 1)\n return loop ? array[0] : undefined;\n return array[index + 1];\n}\n/**\n * Returns the array element prior to the given index, or undefined for out-of-bounds or empty arrays.\n * For single-element arrays, returns the element if the index is 0.\n * @param array the array.\n * @param index the index of the current element.\n * @param loop loop to the end of the array if the previous index is out of bounds?\n */\nexport function prev(array, index, loop = true) {\n if (array.length === 0 || index < 0 || index >= array.length)\n return;\n if (array.length === 1 && index === 0)\n return array[0];\n if (index === 0)\n return loop ? array[array.length - 1] : undefined;\n return array[index - 1];\n}\n/**\n * Returns the element some number after the given index. If the target index is out of bounds:\n * - If looping is disabled, the first or last element will be returned.\n * - If looping is enabled, it will wrap around the array.\n * Returns undefined for empty arrays or out-of-bounds initial indices.\n * @param array the array.\n * @param index the index of the current element.\n * @param increment the number of elements to move forward (can be negative).\n * @param loop loop around the array if the target index is out of bounds?\n */\nexport function forward(array, index, increment, loop = true) {\n if (array.length === 0 || index < 0 || index >= array.length)\n return;\n let targetIndex = index + increment;\n if (loop) {\n // Ensure positive modulus\n targetIndex = ((targetIndex % array.length) + array.length) % array.length;\n }\n else {\n // Clamp to array bounds when not looping\n targetIndex = Math.max(0, Math.min(targetIndex, array.length - 1));\n }\n return array[targetIndex];\n}\n/**\n * Returns the element some number before the given index. If the target index is out of bounds:\n * - If looping is disabled, the first or last element will be returned.\n * - If looping is enabled, it will wrap around the array.\n * Returns undefined for empty arrays or out-of-bounds initial indices.\n * @param array the array.\n * @param index the index of the current element.\n * @param decrement the number of elements to move backward (can be negative).\n * @param loop loop around the array if the target index is out of bounds?\n */\nexport function backward(array, index, decrement, loop = true) {\n if (array.length === 0 || index < 0 || index >= array.length)\n return;\n let targetIndex = index - decrement;\n if (loop) {\n // Ensure positive modulus\n targetIndex = ((targetIndex % array.length) + array.length) % array.length;\n }\n else {\n // Clamp to array bounds when not looping\n targetIndex = Math.max(0, Math.min(targetIndex, array.length - 1));\n }\n return array[targetIndex];\n}\n/**\n * Finds the next matching item from a list of values based on a search string.\n *\n * This function handles several special cases in typeahead behavior:\n *\n * 1. Space handling: When a search string ends with a space, it handles it specially:\n * - If there's only one match for the text before the space, it ignores the space\n * - If there are multiple matches and the current match already starts with the search prefix\n * followed by a space, it keeps the current match (doesn't change selection on space)\n * - Only after typing characters beyond the space will it move to a more specific match\n *\n * 2. Repeated character handling: If a search consists of repeated characters (e.g., \"aaa\"),\n * it treats it as a single character for matching purposes\n *\n * 3. Cycling behavior: The function wraps around the values array starting from the current match\n * to find the next appropriate match, creating a cycling selection behavior\n *\n * @param values - Array of string values to search through (e.g., the text content of menu items)\n * @param search - The current search string typed by the user\n * @param currentMatch - The currently selected/matched item, if any\n * @returns The next matching value that should be selected, or undefined if no match is found\n */\nexport function getNextMatch(values, search, currentMatch) {\n const lowerSearch = search.toLowerCase();\n if (lowerSearch.endsWith(\" \")) {\n const searchWithoutSpace = lowerSearch.slice(0, -1);\n const matchesWithoutSpace = values.filter((value) => value.toLowerCase().startsWith(searchWithoutSpace));\n /**\n * If there's only one match for the prefix without space, we don't\n * watch to match with space.\n */\n if (matchesWithoutSpace.length <= 1) {\n return getNextMatch(values, searchWithoutSpace, currentMatch);\n }\n const currentMatchLowercase = currentMatch?.toLowerCase();\n /**\n * If the current match already starts with the search prefix and has a space afterward,\n * and the user has only typed up to that space, keep the current match until they\n * disambiguate.\n */\n if (currentMatchLowercase &&\n currentMatchLowercase.startsWith(searchWithoutSpace) &&\n currentMatchLowercase.charAt(searchWithoutSpace.length) === \" \" &&\n search.trim() === searchWithoutSpace) {\n return currentMatch;\n }\n /**\n * With multiple matches, find items that match the full search string with space\n */\n const spacedMatches = values.filter((value) => value.toLowerCase().startsWith(lowerSearch));\n /**\n * If we found matches with the space, use the first one that's not the current match\n */\n if (spacedMatches.length > 0) {\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedMatches = wrapArray(spacedMatches, Math.max(currentMatchIndex, 0));\n // return the first match that is not the current one.\n const nextMatch = wrappedMatches.find((match) => match !== currentMatch);\n // fallback to current if no other is found.\n return nextMatch || currentMatch;\n }\n }\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const normalizedLowerSearch = normalizedSearch.toLowerCase();\n const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;\n let wrappedValues = wrapArray(values, Math.max(currentMatchIndex, 0));\n const excludeCurrentMatch = normalizedSearch.length === 1;\n if (excludeCurrentMatch)\n wrappedValues = wrappedValues.filter((v) => v !== currentMatch);\n const nextMatch = wrappedValues.find((value) => value?.toLowerCase().startsWith(normalizedLowerSearch));\n return nextMatch !== currentMatch ? nextMatch : undefined;\n}\n/**\n * Wraps an array around itself at a given start index\n * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`\n */\nexport function wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\n","import { boxWith } from \"svelte-toolbelt\";\nimport { noop } from \"./noop.js\";\nconst defaultOptions = {\n afterMs: 10000,\n onChange: noop,\n};\n/**\n * Creates a box which will be reset to the default value after some time.\n *\n * @param defaultValue The value which will be set.\n * @param afterMs A zero-or-greater delay in milliseconds.\n */\nexport function boxAutoReset(defaultValue, options) {\n const { afterMs, onChange, getWindow } = { ...defaultOptions, ...options };\n let timeout = null;\n let value = $state(defaultValue);\n function resetAfter() {\n return getWindow().setTimeout(() => {\n value = defaultValue;\n onChange?.(defaultValue);\n }, afterMs);\n }\n $effect(() => {\n return () => {\n if (timeout)\n getWindow().clearTimeout(timeout);\n };\n });\n return boxWith(() => value, (v) => {\n value = v;\n onChange?.(v);\n if (timeout)\n getWindow().clearTimeout(timeout);\n timeout = resetAfter();\n });\n}\n","import { getNextMatch } from \"./arrays.js\";\nimport { boxAutoReset } from \"./box-auto-reset.svelte.js\";\nexport class DOMTypeahead {\n #opts;\n #search;\n #onMatch = $derived.by(() => {\n if (this.#opts.onMatch)\n return this.#opts.onMatch;\n return (node) => node.focus();\n });\n #getCurrentItem = $derived.by(() => {\n if (this.#opts.getCurrentItem)\n return this.#opts.getCurrentItem;\n return this.#opts.getActiveElement;\n });\n constructor(opts) {\n this.#opts = opts;\n this.#search = boxAutoReset(\"\", {\n afterMs: 1000,\n getWindow: opts.getWindow,\n });\n this.handleTypeaheadSearch = this.handleTypeaheadSearch.bind(this);\n this.resetTypeahead = this.resetTypeahead.bind(this);\n }\n handleTypeaheadSearch(key, candidates) {\n if (!candidates.length)\n return;\n this.#search.current = this.#search.current + key;\n const currentItem = this.#getCurrentItem();\n const currentMatch = candidates.find((item) => item === currentItem)?.textContent?.trim() ?? \"\";\n const values = candidates.map((item) => item.textContent?.trim() ?? \"\");\n const nextMatch = getNextMatch(values, this.#search.current, currentMatch);\n const newItem = candidates.find((item) => item.textContent?.trim() === nextMatch);\n if (newItem)\n this.#onMatch(newItem);\n return newItem;\n }\n resetTypeahead() {\n this.#search.current = \"\";\n }\n get search() {\n return this.#search.current;\n }\n}\n","import { executeCallbacks, getDocument, getWindow, } from \"svelte-toolbelt\";\nimport { on } from \"svelte/events\";\nimport { watch } from \"runed\";\nimport { boxAutoReset } from \"./box-auto-reset.svelte.js\";\nimport { isElement, isHTMLElement } from \"./is.js\";\nexport class GraceArea {\n #opts;\n #enabled;\n #isPointerInTransit;\n #pointerGraceArea = $state(null);\n constructor(opts) {\n this.#opts = opts;\n this.#enabled = $derived(this.#opts.enabled());\n this.#isPointerInTransit = boxAutoReset(false, {\n afterMs: opts.transitTimeout ?? 300,\n onChange: (value) => {\n if (!this.#enabled)\n return;\n this.#opts.setIsPointerInTransit?.(value);\n },\n getWindow: () => getWindow(this.#opts.triggerNode()),\n });\n watch([opts.triggerNode, opts.contentNode, opts.enabled], ([triggerNode, contentNode, enabled]) => {\n if (!triggerNode || !contentNode || !enabled)\n return;\n const handleTriggerLeave = (e) => {\n this.#createGraceArea(e, contentNode);\n };\n const handleContentLeave = (e) => {\n this.#createGraceArea(e, triggerNode);\n };\n return executeCallbacks(on(triggerNode, \"pointerleave\", handleTriggerLeave), on(contentNode, \"pointerleave\", handleContentLeave));\n });\n watch(() => this.#pointerGraceArea, () => {\n const handleTrackPointerGrace = (e) => {\n if (!this.#pointerGraceArea)\n return;\n const target = e.target;\n if (!isElement(target))\n return;\n const pointerPosition = { x: e.clientX, y: e.clientY };\n const hasEnteredTarget = opts.triggerNode()?.contains(target) ||\n opts.contentNode()?.contains(target);\n const isPointerOutsideGraceArea = !isPointInPolygon(pointerPosition, this.#pointerGraceArea);\n if (hasEnteredTarget) {\n this.#removeGraceArea();\n }\n else if (isPointerOutsideGraceArea) {\n this.#removeGraceArea();\n opts.onPointerExit();\n }\n };\n const doc = getDocument(opts.triggerNode() ?? opts.contentNode());\n if (!doc)\n return;\n return on(doc, \"pointermove\", handleTrackPointerGrace);\n });\n }\n #removeGraceArea() {\n this.#pointerGraceArea = null;\n this.#isPointerInTransit.current = false;\n }\n #createGraceArea(e, hoverTarget) {\n const currentTarget = e.currentTarget;\n if (!isHTMLElement(currentTarget))\n return;\n const exitPoint = { x: e.clientX, y: e.clientY };\n const exitSide = getExitSideFromRect(exitPoint, currentTarget.getBoundingClientRect());\n const paddedExitPoints = getPaddedExitPoints(exitPoint, exitSide);\n const hoverTargetPoints = getPointsFromRect(hoverTarget.getBoundingClientRect());\n const graceArea = getHull([...paddedExitPoints, ...hoverTargetPoints]);\n this.#pointerGraceArea = graceArea;\n this.#isPointerInTransit.current = true;\n }\n}\nfunction getExitSideFromRect(point, rect) {\n const top = Math.abs(rect.top - point.y);\n const bottom = Math.abs(rect.bottom - point.y);\n const right = Math.abs(rect.right - point.x);\n const left = Math.abs(rect.left - point.x);\n switch (Math.min(top, bottom, right, left)) {\n case left:\n return \"left\";\n case right:\n return \"right\";\n case top:\n return \"top\";\n case bottom:\n return \"bottom\";\n default:\n throw new Error(\"unreachable\");\n }\n}\nfunction getPaddedExitPoints(exitPoint, exitSide, padding = 5) {\n // we extend the tip of the exit point to make it easier to navigate without\n // a minor jitter triggering a pointer exit\n const tipPadding = padding * 1.5;\n switch (exitSide) {\n case \"top\":\n return [\n { x: exitPoint.x - padding, y: exitPoint.y + padding },\n { x: exitPoint.x, y: exitPoint.y - tipPadding },\n { x: exitPoint.x + padding, y: exitPoint.y + padding },\n ];\n case \"bottom\":\n return [\n { x: exitPoint.x - padding, y: exitPoint.y - padding },\n { x: exitPoint.x, y: exitPoint.y + tipPadding },\n { x: exitPoint.x + padding, y: exitPoint.y - padding },\n ];\n case \"left\":\n return [\n { x: exitPoint.x + padding, y: exitPoint.y - padding },\n { x: exitPoint.x - tipPadding, y: exitPoint.y },\n { x: exitPoint.x + padding, y: exitPoint.y + padding },\n ];\n case \"right\":\n return [\n { x: exitPoint.x - padding, y: exitPoint.y - padding },\n { x: exitPoint.x + tipPadding, y: exitPoint.y },\n { x: exitPoint.x - padding, y: exitPoint.y + padding },\n ];\n }\n}\nfunction getPointsFromRect(rect) {\n const { top, right, bottom, left } = rect;\n return [\n { x: left, y: top },\n { x: right, y: top },\n { x: right, y: bottom },\n { x: left, y: bottom },\n ];\n}\n// Determine if a point is inside of a polygon.\n// Based on https://github.com/substack/point-in-polygon\nfunction isPointInPolygon(point, polygon) {\n const { x, y } = point;\n let inside = false;\n for (let i = 0, j = polygon.length - 1; i < polygon.length; j = i++) {\n const xi = polygon[i].x;\n const yi = polygon[i].y;\n const xj = polygon[j].x;\n const yj = polygon[j].y;\n // prettier-ignore\n const intersect = ((yi > y) !== (yj > y)) && (x < (xj - xi) * (y - yi) / (yj - yi) + xi);\n if (intersect)\n inside = !inside;\n }\n return inside;\n}\n// Returns a new array of points representing the convex hull of the given set of points.\n// https://www.nayuki.io/page/convex-hull-algorithm\nfunction getHull(points) {\n const newPoints = points.slice();\n newPoints.sort((a, b) => {\n if (a.x < b.x)\n return -1;\n else if (a.x > b.x)\n return +1;\n else if (a.y < b.y)\n return -1;\n else if (a.y > b.y)\n return +1;\n else\n return 0;\n });\n return getHullPresorted(newPoints);\n}\n// Returns the convex hull, assuming that each points[i] <= points[i + 1]. Runs in O(n) time.\nfunction getHullPresorted(points) {\n if (points.length <= 1)\n return points.slice();\n const upperHull = [];\n for (let i = 0; i < points.length; i++) {\n const p = points[i];\n while (upperHull.length >= 2) {\n const q = upperHull[upperHull.length - 1];\n const r = upperHull[upperHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))\n upperHull.pop();\n else\n break;\n }\n upperHull.push(p);\n }\n upperHull.pop();\n const lowerHull = [];\n for (let i = points.length - 1; i >= 0; i--) {\n const p = points[i];\n while (lowerHull.length >= 2) {\n const q = lowerHull[lowerHull.length - 1];\n const r = lowerHull[lowerHull.length - 2];\n if ((q.x - r.x) * (p.y - r.y) >= (q.y - r.y) * (p.x - r.x))\n lowerHull.pop();\n else\n break;\n }\n lowerHull.push(p);\n }\n lowerHull.pop();\n if (upperHull.length === 1 &&\n lowerHull.length === 1 &&\n upperHull[0].x === lowerHull[0].x &&\n upperHull[0].y === lowerHull[0].y)\n return upperHull;\n else\n return upperHull.concat(lowerHull);\n}\n","import { afterTick, mergeProps, onDestroyEffect, attachRef, DOMContext, getWindow, simpleBox, boxWith, } from \"svelte-toolbelt\";\nimport { Context, watch } from \"runed\";\nimport { FIRST_LAST_KEYS, LAST_KEYS, SELECTION_KEYS, SUB_OPEN_KEYS, getCheckedState, isMouseEvent, } from \"./utils.js\";\nimport { focusFirst } from \"../../internal/focus.js\";\nimport { CustomEventDispatcher } from \"../../internal/events.js\";\nimport { isElement, isElementOrSVGElement, isHTMLElement } from \"../../internal/is.js\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { createBitsAttrs, getAriaChecked, boolToStr, getDataOpenClosed, boolToEmptyStrOrUndef, } from \"../../internal/attrs.js\";\nimport { IsUsingKeyboard } from \"../../index.js\";\nimport { getTabbableFrom } from \"../../internal/tabbable.js\";\nimport { isTabbable } from \"tabbable\";\nimport { DOMTypeahead } from \"../../internal/dom-typeahead.svelte.js\";\nimport { RovingFocusGroup } from \"../../internal/roving-focus-group.js\";\nimport { GraceArea } from \"../../internal/grace-area.svelte.js\";\nimport { PresenceManager } from \"../../internal/presence-manager.svelte.js\";\nexport const CONTEXT_MENU_TRIGGER_ATTR = \"data-context-menu-trigger\";\nexport const CONTEXT_MENU_CONTENT_ATTR = \"data-context-menu-content\";\nconst MenuRootContext = new Context(\"Menu.Root\");\nconst MenuMenuContext = new Context(\"Menu.Root | Menu.Sub\");\nconst MenuContentContext = new Context(\"Menu.Content\");\nconst MenuGroupContext = new Context(\"Menu.Group | Menu.RadioGroup\");\nconst MenuRadioGroupContext = new Context(\"Menu.RadioGroup\");\nexport const MenuCheckboxGroupContext = new Context(\"Menu.CheckboxGroup\");\nexport const MenuOpenEvent = new CustomEventDispatcher(\"bitsmenuopen\", {\n bubbles: false,\n cancelable: true,\n});\nexport const menuAttrs = createBitsAttrs({\n component: \"menu\",\n parts: [\n \"trigger\",\n \"content\",\n \"sub-trigger\",\n \"item\",\n \"group\",\n \"group-heading\",\n \"checkbox-group\",\n \"checkbox-item\",\n \"radio-group\",\n \"radio-item\",\n \"separator\",\n \"sub-content\",\n \"arrow\",\n ],\n});\nexport class MenuRootState {\n static create(opts) {\n const root = new MenuRootState(opts);\n return MenuRootContext.set(root);\n }\n opts;\n isUsingKeyboard = new IsUsingKeyboard();\n ignoreCloseAutoFocus = $state(false);\n isPointerInTransit = $state(false);\n constructor(opts) {\n this.opts = opts;\n }\n getBitsAttr = (part) => {\n return menuAttrs.getAttr(part, this.opts.variant.current);\n };\n}\nexport class MenuMenuState {\n static create(opts, root) {\n return MenuMenuContext.set(new MenuMenuState(opts, root, null));\n }\n opts;\n root;\n parentMenu;\n contentId = boxWith(() => \"\");\n contentNode = $state(null);\n contentPresence;\n triggerNode = $state(null);\n constructor(opts, root, parentMenu) {\n this.opts = opts;\n this.root = root;\n this.parentMenu = parentMenu;\n this.contentPresence = new PresenceManager({\n ref: boxWith(() => this.contentNode),\n open: this.opts.open,\n onComplete: () => {\n this.opts.onOpenChangeComplete.current(this.opts.open.current);\n },\n });\n if (parentMenu) {\n watch(() => parentMenu.opts.open.current, () => {\n if (parentMenu.opts.open.current)\n return;\n this.opts.open.current = false;\n });\n }\n }\n toggleOpen() {\n this.opts.open.current = !this.opts.open.current;\n }\n onOpen() {\n this.opts.open.current = true;\n }\n onClose() {\n this.opts.open.current = false;\n }\n}\nexport class MenuContentState {\n static create(opts) {\n return MenuContentContext.set(new MenuContentState(opts, MenuMenuContext.get()));\n }\n opts;\n parentMenu;\n rovingFocusGroup;\n domContext;\n attachment;\n search = $state(\"\");\n #timer = 0;\n #handleTypeaheadSearch;\n mounted = $state(false);\n #isSub;\n constructor(opts, parentMenu) {\n this.opts = opts;\n this.parentMenu = parentMenu;\n this.domContext = new DOMContext(opts.ref);\n this.attachment = attachRef(this.opts.ref, (v) => {\n if (this.parentMenu.contentNode !== v) {\n this.parentMenu.contentNode = v;\n }\n });\n parentMenu.contentId = opts.id;\n this.#isSub = opts.isSub ?? false;\n this.onkeydown = this.onkeydown.bind(this);\n this.onblur = this.onblur.bind(this);\n this.onfocus = this.onfocus.bind(this);\n this.handleInteractOutside = this.handleInteractOutside.bind(this);\n new GraceArea({\n contentNode: () => this.parentMenu.contentNode,\n triggerNode: () => this.parentMenu.triggerNode,\n enabled: () => this.parentMenu.opts.open.current &&\n Boolean(this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr(\"sub-trigger\"))),\n onPointerExit: () => {\n this.parentMenu.opts.open.current = false;\n },\n setIsPointerInTransit: (value) => {\n this.parentMenu.root.isPointerInTransit = value;\n },\n });\n this.#handleTypeaheadSearch = new DOMTypeahead({\n getActiveElement: () => this.domContext.getActiveElement(),\n getWindow: () => this.domContext.getWindow(),\n }).handleTypeaheadSearch;\n this.rovingFocusGroup = new RovingFocusGroup({\n rootNode: boxWith(() => this.parentMenu.contentNode),\n candidateAttr: this.parentMenu.root.getBitsAttr(\"item\"),\n loop: this.opts.loop,\n orientation: boxWith(() => \"vertical\"),\n });\n watch(() => this.parentMenu.contentNode, (contentNode) => {\n if (!contentNode)\n return;\n const handler = () => {\n afterTick(() => {\n if (!this.parentMenu.root.isUsingKeyboard.current)\n return;\n this.rovingFocusGroup.focusFirstCandidate();\n });\n };\n return MenuOpenEvent.listen(contentNode, handler);\n });\n $effect(() => {\n if (!this.parentMenu.opts.open.current) {\n this.domContext.getWindow().clearTimeout(this.#timer);\n }\n });\n }\n #getCandidateNodes() {\n const node = this.parentMenu.contentNode;\n if (!node)\n return [];\n const candidates = Array.from(node.querySelectorAll(`[${this.parentMenu.root.getBitsAttr(\"item\")}]:not([data-disabled])`));\n return candidates;\n }\n #isPointerMovingToSubmenu() {\n return this.parentMenu.root.isPointerInTransit;\n }\n onCloseAutoFocus = (e) => {\n this.opts.onCloseAutoFocus.current?.(e);\n if (e.defaultPrevented || this.#isSub)\n return;\n if (this.parentMenu.triggerNode && isTabbable(this.parentMenu.triggerNode)) {\n e.preventDefault();\n this.parentMenu.triggerNode.focus();\n }\n };\n handleTabKeyDown(e) {\n /**\n * We locate the root `menu`'s trigger by going up the tree until\n * we find a menu that has no parent. This will allow us to focus the next\n * tabbable element before/after the root trigger.\n */\n let rootMenu = this.parentMenu;\n while (rootMenu.parentMenu !== null) {\n rootMenu = rootMenu.parentMenu;\n }\n // if for some unforeseen reason the root menu has no trigger, we bail\n if (!rootMenu.triggerNode)\n return;\n // cancel default tab behavior\n e.preventDefault();\n // find the next/previous tabbable\n const nodeToFocus = getTabbableFrom(rootMenu.triggerNode, e.shiftKey ? \"prev\" : \"next\");\n if (nodeToFocus) {\n /**\n * We set a flag to ignore the `onCloseAutoFocus` event handler\n * as well as the fallbacks inside the focus scope to prevent\n * race conditions causing focus to fall back to the body even\n * though we're trying to focus the next tabbable element.\n */\n this.parentMenu.root.ignoreCloseAutoFocus = true;\n rootMenu.onClose();\n afterTick(() => {\n nodeToFocus.focus();\n afterTick(() => {\n this.parentMenu.root.ignoreCloseAutoFocus = false;\n });\n });\n }\n else {\n this.domContext.getDocument().body.focus();\n }\n }\n onkeydown(e) {\n if (e.defaultPrevented)\n return;\n if (e.key === kbd.TAB) {\n this.handleTabKeyDown(e);\n return;\n }\n const target = e.target;\n const currentTarget = e.currentTarget;\n if (!isHTMLElement(target) || !isHTMLElement(currentTarget))\n return;\n const isKeydownInside = target.closest(`[${this.parentMenu.root.getBitsAttr(\"content\")}]`)?.id ===\n this.parentMenu.contentId.current;\n const isModifierKey = e.ctrlKey || e.altKey || e.metaKey;\n const isCharacterKey = e.key.length === 1;\n const kbdFocusedEl = this.rovingFocusGroup.handleKeydown(target, e);\n if (kbdFocusedEl)\n return;\n // prevent space from being considered with typeahead\n if (e.code === \"Space\")\n return;\n const candidateNodes = this.#getCandidateNodes();\n if (isKeydownInside) {\n if (!isModifierKey && isCharacterKey) {\n this.#handleTypeaheadSearch(e.key, candidateNodes);\n }\n }\n // focus first/last based on key pressed\n if (e.target?.id !== this.parentMenu.contentId.current)\n return;\n if (!FIRST_LAST_KEYS.includes(e.key))\n return;\n e.preventDefault();\n if (LAST_KEYS.includes(e.key)) {\n candidateNodes.reverse();\n }\n focusFirst(candidateNodes, { select: false }, () => this.domContext.getActiveElement());\n }\n onblur(e) {\n if (!isElement(e.currentTarget))\n return;\n if (!isElement(e.target))\n return;\n // clear search buffer when leaving the menu\n if (!e.currentTarget.contains?.(e.target)) {\n this.domContext.getWindow().clearTimeout(this.#timer);\n this.search = \"\";\n }\n }\n onfocus(_) {\n if (!this.parentMenu.root.isUsingKeyboard.current)\n return;\n afterTick(() => this.rovingFocusGroup.focusFirstCandidate());\n }\n onItemEnter() {\n return this.#isPointerMovingToSubmenu();\n }\n onItemLeave(e) {\n if (e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr(\"sub-trigger\")))\n return;\n if (this.#isPointerMovingToSubmenu() || this.parentMenu.root.isUsingKeyboard.current)\n return;\n const contentNode = this.parentMenu.contentNode;\n contentNode?.focus();\n this.rovingFocusGroup.setCurrentTabStopId(\"\");\n }\n onTriggerLeave() {\n if (this.#isPointerMovingToSubmenu())\n return true;\n return false;\n }\n handleInteractOutside(e) {\n if (!isElementOrSVGElement(e.target))\n return;\n const triggerId = this.parentMenu.triggerNode?.id;\n if (e.target.id === triggerId) {\n e.preventDefault();\n return;\n }\n if (e.target.closest(`#${triggerId}`)) {\n e.preventDefault();\n }\n }\n get shouldRender() {\n return this.parentMenu.contentPresence.shouldRender;\n }\n snippetProps = $derived.by(() => ({ open: this.parentMenu.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"menu\",\n \"aria-orientation\": \"vertical\",\n [this.parentMenu.root.getBitsAttr(\"content\")]: \"\",\n \"data-state\": getDataOpenClosed(this.parentMenu.opts.open.current),\n onkeydown: this.onkeydown,\n onblur: this.onblur,\n onfocus: this.onfocus,\n dir: this.parentMenu.root.opts.dir.current,\n style: {\n pointerEvents: \"auto\",\n },\n ...this.attachment,\n }));\n popperProps = {\n onCloseAutoFocus: (e) => this.onCloseAutoFocus(e),\n };\n}\nclass MenuItemSharedState {\n opts;\n content;\n attachment;\n #isFocused = $state(false);\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n this.attachment = attachRef(this.opts.ref);\n this.onpointermove = this.onpointermove.bind(this);\n this.onpointerleave = this.onpointerleave.bind(this);\n this.onfocus = this.onfocus.bind(this);\n this.onblur = this.onblur.bind(this);\n }\n onpointermove(e) {\n if (e.defaultPrevented)\n return;\n if (!isMouseEvent(e))\n return;\n if (this.opts.disabled.current) {\n this.content.onItemLeave(e);\n }\n else {\n const defaultPrevented = this.content.onItemEnter();\n if (defaultPrevented)\n return;\n const item = e.currentTarget;\n if (!isHTMLElement(item))\n return;\n item.focus();\n }\n }\n onpointerleave(e) {\n if (e.defaultPrevented)\n return;\n if (!isMouseEvent(e))\n return;\n this.content.onItemLeave(e);\n }\n onfocus(e) {\n afterTick(() => {\n if (e.defaultPrevented || this.opts.disabled.current)\n return;\n this.#isFocused = true;\n });\n }\n onblur(e) {\n afterTick(() => {\n if (e.defaultPrevented)\n return;\n this.#isFocused = false;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n tabindex: -1,\n role: \"menuitem\",\n \"aria-disabled\": boolToStr(this.opts.disabled.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.opts.disabled.current),\n \"data-highlighted\": this.#isFocused ? \"\" : undefined,\n [this.content.parentMenu.root.getBitsAttr(\"item\")]: \"\",\n //\n onpointermove: this.onpointermove,\n onpointerleave: this.onpointerleave,\n onfocus: this.onfocus,\n onblur: this.onblur,\n ...this.attachment,\n }));\n}\nexport class MenuItemState {\n static create(opts) {\n const item = new MenuItemSharedState(opts, MenuContentContext.get());\n return new MenuItemState(opts, item);\n }\n opts;\n item;\n root;\n #isPointerDown = false;\n constructor(opts, item) {\n this.opts = opts;\n this.item = item;\n this.root = item.content.parentMenu.root;\n this.onkeydown = this.onkeydown.bind(this);\n this.onclick = this.onclick.bind(this);\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n }\n #handleSelect() {\n if (this.item.opts.disabled.current)\n return;\n const selectEvent = new CustomEvent(\"menuitemselect\", { bubbles: true, cancelable: true });\n this.opts.onSelect.current(selectEvent);\n if (selectEvent.defaultPrevented) {\n this.item.content.parentMenu.root.isUsingKeyboard.current = false;\n return;\n }\n if (this.opts.closeOnSelect.current) {\n this.item.content.parentMenu.root.opts.onClose();\n }\n }\n onkeydown(e) {\n const isTypingAhead = this.item.content.search !== \"\";\n if (this.item.opts.disabled.current || (isTypingAhead && e.key === kbd.SPACE))\n return;\n if (SELECTION_KEYS.includes(e.key)) {\n if (!isHTMLElement(e.currentTarget))\n return;\n e.currentTarget.click();\n /**\n * We prevent default browser behavior for selection keys as they should trigger\n * a selection only:\n * - prevents space from scrolling the page.\n * - if keydown causes focus to move, prevents keydown from firing on the new target.\n */\n e.preventDefault();\n }\n }\n onclick(_) {\n if (this.item.opts.disabled.current)\n return;\n this.#handleSelect();\n }\n onpointerup(e) {\n if (e.defaultPrevented)\n return;\n if (!this.#isPointerDown) {\n if (!isHTMLElement(e.currentTarget))\n return;\n e.currentTarget?.click();\n }\n }\n onpointerdown(_) {\n this.#isPointerDown = true;\n }\n props = $derived.by(() => mergeProps(this.item.props, {\n onclick: this.onclick,\n onpointerdown: this.onpointerdown,\n onpointerup: this.onpointerup,\n onkeydown: this.onkeydown,\n }));\n}\nexport class MenuSubTriggerState {\n static create(opts) {\n const content = MenuContentContext.get();\n const item = new MenuItemSharedState(opts, content);\n const submenu = MenuMenuContext.get();\n return new MenuSubTriggerState(opts, item, content, submenu);\n }\n opts;\n item;\n content;\n submenu;\n attachment;\n #openTimer = null;\n constructor(opts, item, content, submenu) {\n this.opts = opts;\n this.item = item;\n this.content = content;\n this.submenu = submenu;\n this.attachment = attachRef(this.opts.ref, (v) => (this.submenu.triggerNode = v));\n this.onpointerleave = this.onpointerleave.bind(this);\n this.onpointermove = this.onpointermove.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n this.onclick = this.onclick.bind(this);\n onDestroyEffect(() => {\n this.#clearOpenTimer();\n });\n }\n #clearOpenTimer() {\n if (this.#openTimer === null)\n return;\n this.content.domContext.getWindow().clearTimeout(this.#openTimer);\n this.#openTimer = null;\n }\n onpointermove(e) {\n if (!isMouseEvent(e))\n return;\n if (!this.item.opts.disabled.current &&\n !this.submenu.opts.open.current &&\n !this.#openTimer &&\n !this.content.parentMenu.root.isPointerInTransit) {\n this.#openTimer = this.content.domContext.setTimeout(() => {\n this.submenu.onOpen();\n this.#clearOpenTimer();\n }, this.opts.openDelay.current);\n }\n }\n onpointerleave(e) {\n if (!isMouseEvent(e))\n return;\n this.#clearOpenTimer();\n }\n onkeydown(e) {\n const isTypingAhead = this.content.search !== \"\";\n if (this.item.opts.disabled.current || (isTypingAhead && e.key === kbd.SPACE))\n return;\n if (SUB_OPEN_KEYS[this.submenu.root.opts.dir.current].includes(e.key)) {\n e.currentTarget.click();\n e.preventDefault();\n }\n }\n onclick(e) {\n if (this.item.opts.disabled.current)\n return;\n /**\n * We manually focus because iOS Safari doesn't always focus on click (e.g. buttons)\n * and we rely heavily on `onFocusOutside` for submenus to close when switching\n * between separate submenus.\n */\n if (!isHTMLElement(e.currentTarget))\n return;\n e.currentTarget.focus();\n const selectEvent = new CustomEvent(\"menusubtriggerselect\", {\n bubbles: true,\n cancelable: true,\n });\n this.opts.onSelect.current(selectEvent);\n if (!this.submenu.opts.open.current) {\n this.submenu.onOpen();\n afterTick(() => {\n const contentNode = this.submenu.contentNode;\n if (!contentNode)\n return;\n MenuOpenEvent.dispatch(contentNode);\n });\n }\n }\n props = $derived.by(() => mergeProps({\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": boolToStr(this.submenu.opts.open.current),\n \"data-state\": getDataOpenClosed(this.submenu.opts.open.current),\n \"aria-controls\": this.submenu.opts.open.current\n ? this.submenu.contentId.current\n : undefined,\n [this.submenu.root.getBitsAttr(\"sub-trigger\")]: \"\",\n onclick: this.onclick,\n onpointermove: this.onpointermove,\n onpointerleave: this.onpointerleave,\n onkeydown: this.onkeydown,\n ...this.attachment,\n }, this.item.props));\n}\nexport class MenuCheckboxItemState {\n static create(opts, checkboxGroup) {\n const item = new MenuItemState(opts, new MenuItemSharedState(opts, MenuContentContext.get()));\n return new MenuCheckboxItemState(opts, item, checkboxGroup);\n }\n opts;\n item;\n group;\n constructor(opts, item, group = null) {\n this.opts = opts;\n this.item = item;\n this.group = group;\n // Watch for value changes in the group if we're part of one\n if (this.group) {\n watch(() => this.group.opts.value.current, (groupValues) => {\n this.opts.checked.current = groupValues.includes(this.opts.value.current);\n });\n // Watch for checked state changes and sync with group\n watch(() => this.opts.checked.current, (checked) => {\n if (checked) {\n this.group.addValue(this.opts.value.current);\n }\n else {\n this.group.removeValue(this.opts.value.current);\n }\n });\n }\n }\n toggleChecked() {\n if (this.opts.indeterminate.current) {\n this.opts.indeterminate.current = false;\n this.opts.checked.current = true;\n }\n else {\n this.opts.checked.current = !this.opts.checked.current;\n }\n }\n snippetProps = $derived.by(() => ({\n checked: this.opts.checked.current,\n indeterminate: this.opts.indeterminate.current,\n }));\n props = $derived.by(() => ({\n ...this.item.props,\n role: \"menuitemcheckbox\",\n \"aria-checked\": getAriaChecked(this.opts.checked.current, this.opts.indeterminate.current),\n \"data-state\": getCheckedState(this.opts.checked.current),\n [this.item.root.getBitsAttr(\"checkbox-item\")]: \"\",\n }));\n}\nexport class MenuGroupState {\n static create(opts) {\n return MenuGroupContext.set(new MenuGroupState(opts, MenuRootContext.get()));\n }\n opts;\n root;\n attachment;\n groupHeadingId = $state(undefined);\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"group\",\n \"aria-labelledby\": this.groupHeadingId,\n [this.root.getBitsAttr(\"group\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class MenuGroupHeadingState {\n static create(opts) {\n // Try to get checkbox group first, then radio group, then regular group\n const checkboxGroup = MenuCheckboxGroupContext.getOr(null);\n if (checkboxGroup)\n return new MenuGroupHeadingState(opts, checkboxGroup);\n const radioGroup = MenuRadioGroupContext.getOr(null);\n if (radioGroup)\n return new MenuGroupHeadingState(opts, radioGroup);\n return new MenuGroupHeadingState(opts, MenuGroupContext.get());\n }\n opts;\n group;\n attachment;\n constructor(opts, group) {\n this.opts = opts;\n this.group = group;\n this.attachment = attachRef(this.opts.ref, (v) => (this.group.groupHeadingId = v?.id));\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"group\",\n [this.group.root.getBitsAttr(\"group-heading\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class MenuSeparatorState {\n static create(opts) {\n return new MenuSeparatorState(opts, MenuRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"group\",\n [this.root.getBitsAttr(\"separator\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class MenuArrowState {\n static create() {\n return new MenuArrowState(MenuRootContext.get());\n }\n root;\n constructor(root) {\n this.root = root;\n }\n props = $derived.by(() => ({\n [this.root.getBitsAttr(\"arrow\")]: \"\",\n }));\n}\nexport class MenuRadioGroupState {\n static create(opts) {\n return MenuGroupContext.set(MenuRadioGroupContext.set(new MenuRadioGroupState(opts, MenuContentContext.get())));\n }\n opts;\n content;\n attachment;\n groupHeadingId = $state(null);\n root;\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n this.root = content.parentMenu.root;\n this.attachment = attachRef(this.opts.ref);\n }\n setValue(v) {\n this.opts.value.current = v;\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"radio-group\")]: \"\",\n role: \"group\",\n \"aria-labelledby\": this.groupHeadingId,\n ...this.attachment,\n }));\n}\nexport class MenuRadioItemState {\n static create(opts) {\n const radioGroup = MenuRadioGroupContext.get();\n const sharedItem = new MenuItemSharedState(opts, radioGroup.content);\n const item = new MenuItemState(opts, sharedItem);\n return new MenuRadioItemState(opts, item, radioGroup);\n }\n opts;\n item;\n group;\n attachment;\n isChecked = $derived.by(() => this.group.opts.value.current === this.opts.value.current);\n constructor(opts, item, group) {\n this.opts = opts;\n this.item = item;\n this.group = group;\n this.attachment = attachRef(this.opts.ref);\n }\n selectValue() {\n this.group.setValue(this.opts.value.current);\n }\n props = $derived.by(() => ({\n [this.group.root.getBitsAttr(\"radio-item\")]: \"\",\n ...this.item.props,\n role: \"menuitemradio\",\n \"aria-checked\": getAriaChecked(this.isChecked, false),\n \"data-state\": getCheckedState(this.isChecked),\n ...this.attachment,\n }));\n}\nexport class DropdownMenuTriggerState {\n static create(opts) {\n return new DropdownMenuTriggerState(opts, MenuMenuContext.get());\n }\n opts;\n parentMenu;\n attachment;\n constructor(opts, parentMenu) {\n this.opts = opts;\n this.parentMenu = parentMenu;\n this.attachment = attachRef(this.opts.ref, (v) => (this.parentMenu.triggerNode = v));\n }\n onclick = (e) => {\n /**\n * MacOS VoiceOver sends a click in Safari/Firefox bypassing the keydown event\n * when V0+Space is pressed. Since we already handle the keydown event and the\n * pointerdown events separately, we ignore it if the detail is not 0.\n */\n if (this.opts.disabled.current || e.detail !== 0)\n return;\n this.parentMenu.toggleOpen();\n e.preventDefault();\n };\n onpointerdown = (e) => {\n if (this.opts.disabled.current)\n return;\n if (e.pointerType === \"touch\")\n return e.preventDefault();\n if (e.button === 0 && e.ctrlKey === false) {\n this.parentMenu.toggleOpen();\n // prevent trigger focusing when opening to allow\n // the content to be given focus without competition\n if (!this.parentMenu.opts.open.current)\n e.preventDefault();\n }\n };\n onpointerup = (e) => {\n if (this.opts.disabled.current)\n return;\n if (e.pointerType === \"touch\") {\n e.preventDefault();\n this.parentMenu.toggleOpen();\n }\n };\n onkeydown = (e) => {\n if (this.opts.disabled.current)\n return;\n if (e.key === kbd.SPACE || e.key === kbd.ENTER) {\n this.parentMenu.toggleOpen();\n e.preventDefault();\n return;\n }\n if (e.key === kbd.ARROW_DOWN) {\n this.parentMenu.onOpen();\n e.preventDefault();\n }\n };\n #ariaControls = $derived.by(() => {\n if (this.parentMenu.opts.open.current && this.parentMenu.contentId.current)\n return this.parentMenu.contentId.current;\n return undefined;\n });\n props = $derived.by(() => ({\n id: this.opts.id.current,\n disabled: this.opts.disabled.current,\n \"aria-haspopup\": \"menu\",\n \"aria-expanded\": boolToStr(this.parentMenu.opts.open.current),\n \"aria-controls\": this.#ariaControls,\n \"data-disabled\": boolToEmptyStrOrUndef(this.opts.disabled.current),\n \"data-state\": getDataOpenClosed(this.parentMenu.opts.open.current),\n [this.parentMenu.root.getBitsAttr(\"trigger\")]: \"\",\n //\n onclick: this.onclick,\n onpointerdown: this.onpointerdown,\n onpointerup: this.onpointerup,\n onkeydown: this.onkeydown,\n ...this.attachment,\n }));\n}\nexport class ContextMenuTriggerState {\n static create(opts) {\n return new ContextMenuTriggerState(opts, MenuMenuContext.get());\n }\n opts;\n parentMenu;\n attachment;\n #point = $state({ x: 0, y: 0 });\n virtualElement = simpleBox({\n getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...this.#point }),\n });\n #longPressTimer = null;\n constructor(opts, parentMenu) {\n this.opts = opts;\n this.parentMenu = parentMenu;\n this.attachment = attachRef(this.opts.ref, (v) => (this.parentMenu.triggerNode = v));\n this.oncontextmenu = this.oncontextmenu.bind(this);\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointermove = this.onpointermove.bind(this);\n this.onpointercancel = this.onpointercancel.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n watch(() => this.#point, (point) => {\n this.virtualElement.current = {\n getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...point }),\n };\n });\n watch(() => this.opts.disabled.current, (isDisabled) => {\n if (isDisabled) {\n this.#clearLongPressTimer();\n }\n });\n onDestroyEffect(() => this.#clearLongPressTimer());\n }\n #clearLongPressTimer() {\n if (this.#longPressTimer === null)\n return;\n getWindow(this.opts.ref.current).clearTimeout(this.#longPressTimer);\n }\n #handleOpen(e) {\n this.#point = { x: e.clientX, y: e.clientY };\n this.parentMenu.onOpen();\n }\n oncontextmenu(e) {\n if (e.defaultPrevented || this.opts.disabled.current)\n return;\n this.#clearLongPressTimer();\n this.#handleOpen(e);\n e.preventDefault();\n this.parentMenu.contentNode?.focus();\n }\n onpointerdown(e) {\n if (this.opts.disabled.current || isMouseEvent(e))\n return;\n this.#clearLongPressTimer();\n this.#longPressTimer = getWindow(this.opts.ref.current).setTimeout(() => this.#handleOpen(e), 700);\n }\n onpointermove(e) {\n if (this.opts.disabled.current || isMouseEvent(e))\n return;\n this.#clearLongPressTimer();\n }\n onpointercancel(e) {\n if (this.opts.disabled.current || isMouseEvent(e))\n return;\n this.#clearLongPressTimer();\n }\n onpointerup(e) {\n if (this.opts.disabled.current || isMouseEvent(e))\n return;\n this.#clearLongPressTimer();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n disabled: this.opts.disabled.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.opts.disabled.current),\n \"data-state\": getDataOpenClosed(this.parentMenu.opts.open.current),\n [CONTEXT_MENU_TRIGGER_ATTR]: \"\",\n tabindex: -1,\n //\n onpointerdown: this.onpointerdown,\n onpointermove: this.onpointermove,\n onpointercancel: this.onpointercancel,\n onpointerup: this.onpointerup,\n oncontextmenu: this.oncontextmenu,\n ...this.attachment,\n }));\n}\nexport class MenuCheckboxGroupState {\n static create(opts) {\n return MenuCheckboxGroupContext.set(new MenuCheckboxGroupState(opts, MenuContentContext.get()));\n }\n opts;\n content;\n root;\n attachment;\n groupHeadingId = $state(null);\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n this.root = content.parentMenu.root;\n this.attachment = attachRef(this.opts.ref);\n }\n addValue(checkboxValue) {\n if (!checkboxValue)\n return;\n if (!this.opts.value.current.includes(checkboxValue)) {\n const newValue = [...$state.snapshot(this.opts.value.current), checkboxValue];\n this.opts.value.current = newValue;\n this.opts.onValueChange.current(newValue);\n }\n }\n removeValue(checkboxValue) {\n if (!checkboxValue)\n return;\n const index = this.opts.value.current.indexOf(checkboxValue);\n if (index === -1)\n return;\n const newValue = this.opts.value.current.filter((v) => v !== checkboxValue);\n this.opts.value.current = newValue;\n this.opts.onValueChange.current(newValue);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"checkbox-group\")]: \"\",\n role: \"group\",\n \"aria-labelledby\": this.groupHeadingId,\n ...this.attachment,\n }));\n}\nexport class MenuSubmenuState {\n static create(opts) {\n const menu = MenuMenuContext.get();\n return MenuMenuContext.set(new MenuMenuState(opts, menu.root, menu));\n }\n}\n","import { afterSleep, afterTick, executeCallbacks, onDestroyEffect, } from \"svelte-toolbelt\";\nimport { watch } from \"runed\";\nimport { on } from \"svelte/events\";\nimport {} from \"../../../internal/events.js\";\nimport { debounce } from \"../../../internal/debounce.js\";\nimport { noop } from \"../../../internal/noop.js\";\nimport { getOwnerDocument, isOrContainsTarget } from \"../../../internal/elements.js\";\nimport { isElementOrSVGElement } from \"../../../internal/is.js\";\nimport { isClickTrulyOutside } from \"../../../internal/dom.js\";\nimport { CONTEXT_MENU_CONTENT_ATTR, CONTEXT_MENU_TRIGGER_ATTR, } from \"../../menu/menu.svelte.js\";\nglobalThis.bitsDismissableLayers ??= new Map();\nexport class DismissibleLayerState {\n static create(opts) {\n return new DismissibleLayerState(opts);\n }\n opts;\n #interactOutsideProp;\n #behaviorType;\n #interceptedEvents = {\n pointerdown: false,\n };\n #isResponsibleLayer = false;\n #isFocusInsideDOMTree = false;\n #documentObj = undefined;\n #onFocusOutside;\n #unsubClickListener = noop;\n constructor(opts) {\n this.opts = opts;\n this.#behaviorType = opts.interactOutsideBehavior;\n this.#interactOutsideProp = opts.onInteractOutside;\n this.#onFocusOutside = opts.onFocusOutside;\n $effect(() => {\n this.#documentObj = getOwnerDocument(this.opts.ref.current);\n });\n let unsubEvents = noop;\n const cleanup = () => {\n this.#resetState();\n globalThis.bitsDismissableLayers.delete(this);\n this.#handleInteractOutside.destroy();\n unsubEvents();\n };\n watch([() => this.opts.enabled.current, () => this.opts.ref.current], () => {\n if (!this.opts.enabled.current || !this.opts.ref.current)\n return;\n afterSleep(1, () => {\n if (!this.opts.ref.current)\n return;\n globalThis.bitsDismissableLayers.set(this, this.#behaviorType);\n unsubEvents();\n unsubEvents = this.#addEventListeners();\n });\n return cleanup;\n });\n onDestroyEffect(() => {\n this.#resetState.destroy();\n globalThis.bitsDismissableLayers.delete(this);\n this.#handleInteractOutside.destroy();\n this.#unsubClickListener();\n unsubEvents();\n });\n }\n #handleFocus = (event) => {\n if (event.defaultPrevented)\n return;\n if (!this.opts.ref.current)\n return;\n afterTick(() => {\n if (!this.opts.ref.current || this.#isTargetWithinLayer(event.target))\n return;\n if (event.target && !this.#isFocusInsideDOMTree) {\n this.#onFocusOutside.current?.(event);\n }\n });\n };\n #addEventListeners() {\n return executeCallbacks(\n /**\n * CAPTURE INTERACTION START\n * mark interaction-start event as intercepted.\n * mark responsible layer during interaction start\n * to avoid checking if is responsible layer during interaction end\n * when a new floating element may have been opened.\n */\n on(this.#documentObj, \"pointerdown\", executeCallbacks(this.#markInterceptedEvent, this.#markResponsibleLayer), { capture: true }), \n /**\n * BUBBLE INTERACTION START\n * Mark interaction-start event as non-intercepted. Debounce `onInteractOutsideStart`\n * to avoid prematurely checking if other events were intercepted.\n */\n on(this.#documentObj, \"pointerdown\", executeCallbacks(this.#markNonInterceptedEvent, this.#handleInteractOutside)), \n /**\n * HANDLE FOCUS OUTSIDE\n */\n on(this.#documentObj, \"focusin\", this.#handleFocus));\n }\n #handleDismiss = (e) => {\n let event = e;\n if (event.defaultPrevented) {\n event = createWrappedEvent(e);\n }\n this.#interactOutsideProp.current(e);\n };\n #handleInteractOutside = debounce((e) => {\n if (!this.opts.ref.current) {\n this.#unsubClickListener();\n return;\n }\n const isEventValid = this.opts.isValidEvent.current(e, this.opts.ref.current) ||\n isValidEvent(e, this.opts.ref.current);\n if (!this.#isResponsibleLayer || this.#isAnyEventIntercepted() || !isEventValid) {\n this.#unsubClickListener();\n return;\n }\n let event = e;\n if (event.defaultPrevented) {\n event = createWrappedEvent(event);\n }\n if (this.#behaviorType.current !== \"close\" &&\n this.#behaviorType.current !== \"defer-otherwise-close\") {\n this.#unsubClickListener();\n return;\n }\n if (e.pointerType === \"touch\") {\n this.#unsubClickListener();\n this.#unsubClickListener = on(this.#documentObj, \"click\", this.#handleDismiss, {\n once: true,\n });\n }\n else {\n this.#interactOutsideProp.current(event);\n }\n }, 10);\n #markInterceptedEvent = (e) => {\n this.#interceptedEvents[e.type] = true;\n };\n #markNonInterceptedEvent = (e) => {\n this.#interceptedEvents[e.type] = false;\n };\n #markResponsibleLayer = () => {\n if (!this.opts.ref.current)\n return;\n this.#isResponsibleLayer = isResponsibleLayer(this.opts.ref.current);\n };\n #isTargetWithinLayer = (target) => {\n if (!this.opts.ref.current)\n return false;\n return isOrContainsTarget(this.opts.ref.current, target);\n };\n #resetState = debounce(() => {\n for (const eventType in this.#interceptedEvents) {\n this.#interceptedEvents[eventType] = false;\n }\n this.#isResponsibleLayer = false;\n }, 20);\n #isAnyEventIntercepted() {\n const i = Object.values(this.#interceptedEvents).some(Boolean);\n return i;\n }\n #onfocuscapture = () => {\n this.#isFocusInsideDOMTree = true;\n };\n #onblurcapture = () => {\n this.#isFocusInsideDOMTree = false;\n };\n props = {\n onfocuscapture: this.#onfocuscapture,\n onblurcapture: this.#onblurcapture,\n };\n}\nexport function getTopMostDismissableLayer(layersArr = [\n ...globalThis.bitsDismissableLayers,\n]) {\n return layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === \"close\" || behaviorType === \"ignore\");\n}\nfunction isResponsibleLayer(node) {\n const layersArr = [...globalThis.bitsDismissableLayers];\n /**\n * We first check if we can find a top layer with `close` or `ignore`.\n * If that top layer was found and matches the provided node, then the node is\n * responsible for the outside interaction. Otherwise, we know that all layers defer so\n * the first layer is the responsible one.\n */\n const topMostLayer = getTopMostDismissableLayer(layersArr);\n if (topMostLayer)\n return topMostLayer[0].opts.ref.current === node;\n const [firstLayerNode] = layersArr[0];\n return firstLayerNode.opts.ref.current === node;\n}\nfunction isValidEvent(e, node) {\n const target = e.target;\n if (!isElementOrSVGElement(target))\n return false;\n const targetIsContextMenuTrigger = Boolean(target.closest(`[${CONTEXT_MENU_TRIGGER_ATTR}]`));\n if (\"button\" in e && e.button > 0 && !targetIsContextMenuTrigger)\n return false;\n if (\"button\" in e && e.button === 0 && targetIsContextMenuTrigger)\n return true;\n const nodeIsContextMenu = Boolean(node.closest(`[${CONTEXT_MENU_CONTENT_ATTR}]`));\n if (targetIsContextMenuTrigger && nodeIsContextMenu)\n return false;\n const ownerDocument = getOwnerDocument(target);\n const isValid = ownerDocument.documentElement.contains(target) &&\n !isOrContainsTarget(node, target) &&\n isClickTrulyOutside(e, node);\n return isValid;\n}\nfunction createWrappedEvent(e) {\n const capturedCurrentTarget = e.currentTarget;\n const capturedTarget = e.target;\n let newEvent;\n if (e instanceof PointerEvent) {\n newEvent = new PointerEvent(e.type, e);\n }\n else {\n newEvent = new PointerEvent(\"pointerdown\", e);\n }\n // track the prevented state separately\n let isPrevented = false;\n // Create a proxy to intercept property access and method calls\n const wrappedEvent = new Proxy(newEvent, {\n get: (target, prop) => {\n if (prop === \"currentTarget\") {\n return capturedCurrentTarget;\n }\n if (prop === \"target\") {\n return capturedTarget;\n }\n if (prop === \"preventDefault\") {\n return () => {\n isPrevented = true;\n if (typeof target.preventDefault === \"function\") {\n target.preventDefault();\n }\n };\n }\n if (prop === \"defaultPrevented\") {\n return isPrevented;\n }\n if (prop in target) {\n // oxlint-disable-next-line no-explicit-any\n return target[prop];\n }\n // oxlint-disable-next-line no-explicit-any\n return e[prop];\n },\n });\n return wrappedEvent;\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { DismissibleLayerImplProps } from \"./types.js\";\n\timport { DismissibleLayerState } from \"./use-dismissable-layer.svelte.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\tinteractOutsideBehavior = \"close\",\n\t\tonInteractOutside = noop,\n\t\tonFocusOutside = noop,\n\t\tid,\n\t\tchildren,\n\t\tenabled,\n\t\tisValidEvent = () => false,\n\t\tref,\n\t}: DismissibleLayerImplProps = $props();\n\n\tconst dismissibleLayerState = DismissibleLayerState.create({\n\t\tid: boxWith(() => id),\n\t\tinteractOutsideBehavior: boxWith(() => interactOutsideBehavior),\n\t\tonInteractOutside: boxWith(() => onInteractOutside),\n\t\tenabled: boxWith(() => enabled),\n\t\tonFocusOutside: boxWith(() => onFocusOutside),\n\t\tisValidEvent: boxWith(() => isValidEvent),\n\t\tref,\n\t});\n</script>\n\n{@render children?.({ props: dismissibleLayerState.props })}\n","import { DOMContext } from \"svelte-toolbelt\";\nimport { watch } from \"runed\";\nimport { on } from \"svelte/events\";\nimport { kbd } from \"../../../internal/kbd.js\";\nimport { noop } from \"../../../internal/noop.js\";\nglobalThis.bitsEscapeLayers ??= new Map();\nexport class EscapeLayerState {\n static create(opts) {\n return new EscapeLayerState(opts);\n }\n opts;\n domContext;\n constructor(opts) {\n this.opts = opts;\n this.domContext = new DOMContext(this.opts.ref);\n let unsubEvents = noop;\n watch(() => opts.enabled.current, (enabled) => {\n if (enabled) {\n globalThis.bitsEscapeLayers.set(this, opts.escapeKeydownBehavior);\n unsubEvents = this.#addEventListener();\n }\n return () => {\n unsubEvents();\n globalThis.bitsEscapeLayers.delete(this);\n };\n });\n }\n #addEventListener = () => {\n return on(this.domContext.getDocument(), \"keydown\", this.#onkeydown, { passive: false });\n };\n #onkeydown = (e) => {\n if (e.key !== kbd.ESCAPE || !isResponsibleEscapeLayer(this))\n return;\n const clonedEvent = new KeyboardEvent(e.type, e);\n e.preventDefault();\n const behaviorType = this.opts.escapeKeydownBehavior.current;\n if (behaviorType !== \"close\" && behaviorType !== \"defer-otherwise-close\")\n return;\n this.opts.onEscapeKeydown.current(clonedEvent);\n };\n}\nfunction isResponsibleEscapeLayer(instance) {\n const layersArr = [...globalThis.bitsEscapeLayers];\n /**\n * We first check if we can find a top layer with `close` or `ignore`.\n * If that top layer was found and matches the provided node, then the node is\n * responsible for the escape. Otherwise, we know that all layers defer so\n * the first layer is the responsible one.\n */\n const topMostLayer = layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === \"close\" || behaviorType === \"ignore\");\n if (topMostLayer)\n return topMostLayer[0] === instance;\n const [firstLayerNode] = layersArr[0];\n return firstLayerNode === instance;\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { EscapeLayerImplProps } from \"./types.js\";\n\timport { EscapeLayerState } from \"./use-escape-layer.svelte.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\tescapeKeydownBehavior = \"close\",\n\t\tonEscapeKeydown = noop,\n\t\tchildren,\n\t\tenabled,\n\t\tref,\n\t}: EscapeLayerImplProps = $props();\n\n\tEscapeLayerState.create({\n\t\tescapeKeydownBehavior: boxWith(() => escapeKeydownBehavior),\n\t\tonEscapeKeydown: boxWith(() => onEscapeKeydown),\n\t\tenabled: boxWith(() => enabled),\n\t\tref,\n\t});\n</script>\n\n{@render children?.()}\n","import { simpleBox } from \"svelte-toolbelt\";\nimport { FocusScope } from \"./focus-scope.svelte.js\";\nexport class FocusScopeManager {\n static instance;\n #scopeStack = simpleBox([]);\n #focusHistory = new WeakMap();\n #preFocusHistory = new WeakMap();\n static getInstance() {\n if (!this.instance) {\n this.instance = new FocusScopeManager();\n }\n return this.instance;\n }\n register(scope) {\n const current = this.getActive();\n if (current && current !== scope) {\n current.pause();\n }\n // capture the currently focused element before this scope becomes active\n const activeElement = document.activeElement;\n if (activeElement && activeElement !== document.body) {\n this.#preFocusHistory.set(scope, activeElement);\n }\n this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);\n this.#scopeStack.current.unshift(scope);\n }\n unregister(scope) {\n this.#scopeStack.current = this.#scopeStack.current.filter((s) => s !== scope);\n const next = this.getActive();\n if (next) {\n next.resume();\n }\n }\n getActive() {\n return this.#scopeStack.current[0];\n }\n setFocusMemory(scope, element) {\n this.#focusHistory.set(scope, element);\n }\n getFocusMemory(scope) {\n return this.#focusHistory.get(scope);\n }\n isActiveScope(scope) {\n return this.getActive() === scope;\n }\n setPreFocusMemory(scope, element) {\n this.#preFocusHistory.set(scope, element);\n }\n getPreFocusMemory(scope) {\n return this.#preFocusHistory.get(scope);\n }\n clearPreFocusMemory(scope) {\n this.#preFocusHistory.delete(scope);\n }\n}\n","import { onDestroyEffect } from \"svelte-toolbelt\";\nimport { FocusScopeManager } from \"./focus-scope-manager.js\";\nimport { focusable, isFocusable, tabbable } from \"tabbable\";\nimport { on } from \"svelte/events\";\nimport { watch } from \"runed\";\nexport class FocusScope {\n #paused = false;\n #container = null;\n #manager = FocusScopeManager.getInstance();\n #cleanupFns = [];\n #opts;\n constructor(opts) {\n this.#opts = opts;\n }\n get paused() {\n return this.#paused;\n }\n pause() {\n this.#paused = true;\n }\n resume() {\n this.#paused = false;\n }\n #cleanup() {\n for (const fn of this.#cleanupFns) {\n fn();\n }\n this.#cleanupFns = [];\n }\n mount(container) {\n if (this.#container) {\n this.unmount();\n }\n this.#container = container;\n this.#manager.register(this);\n this.#setupEventListeners();\n this.#handleOpenAutoFocus();\n }\n unmount() {\n if (!this.#container)\n return;\n this.#cleanup();\n // handle close auto-focus\n this.#handleCloseAutoFocus();\n this.#manager.unregister(this);\n this.#manager.clearPreFocusMemory(this);\n this.#container = null;\n }\n #handleOpenAutoFocus() {\n if (!this.#container)\n return;\n const event = new CustomEvent(\"focusScope.onOpenAutoFocus\", {\n bubbles: false,\n cancelable: true,\n });\n this.#opts.onOpenAutoFocus.current(event);\n if (!event.defaultPrevented) {\n requestAnimationFrame(() => {\n if (!this.#container)\n return;\n const firstTabbable = this.#getFirstTabbable();\n if (firstTabbable) {\n firstTabbable.focus();\n this.#manager.setFocusMemory(this, firstTabbable);\n }\n else {\n this.#container.focus();\n }\n });\n }\n }\n #handleCloseAutoFocus() {\n const event = new CustomEvent(\"focusScope.onCloseAutoFocus\", {\n bubbles: false,\n cancelable: true,\n });\n this.#opts.onCloseAutoFocus.current?.(event);\n if (!event.defaultPrevented) {\n // return focus to the element that was focused before this scope opened\n const preFocusedElement = this.#manager.getPreFocusMemory(this);\n if (preFocusedElement && document.contains(preFocusedElement)) {\n // ensure the element is still focusable and in the document\n try {\n preFocusedElement.focus();\n }\n catch {\n // fallback if focus fails\n document.body.focus();\n }\n }\n }\n }\n #setupEventListeners() {\n if (!this.#container || !this.#opts.trap.current)\n return;\n const container = this.#container;\n const doc = container.ownerDocument;\n const handleFocus = (e) => {\n if (this.#paused || !this.#manager.isActiveScope(this))\n return;\n const target = e.target;\n if (!target)\n return;\n const isInside = container.contains(target);\n if (isInside) {\n // store last focused element\n this.#manager.setFocusMemory(this, target);\n }\n else {\n // focus escaped - bring it back\n const lastFocused = this.#manager.getFocusMemory(this);\n if (lastFocused && container.contains(lastFocused) && isFocusable(lastFocused)) {\n e.preventDefault();\n lastFocused.focus();\n }\n else {\n // fallback to first tabbable or first focusable or container\n const firstTabbable = this.#getFirstTabbable();\n const firstFocusable = this.#getAllFocusables()[0];\n (firstTabbable || firstFocusable || container).focus();\n }\n }\n };\n const handleKeydown = (e) => {\n if (!this.#opts.loop || this.#paused || e.key !== \"Tab\")\n return;\n if (!this.#manager.isActiveScope(this))\n return;\n const tabbables = this.#getTabbables();\n if (tabbables.length < 2)\n return;\n const first = tabbables[0];\n const last = tabbables[tabbables.length - 1];\n if (!e.shiftKey && doc.activeElement === last) {\n e.preventDefault();\n first.focus();\n }\n else if (e.shiftKey && doc.activeElement === first) {\n e.preventDefault();\n last.focus();\n }\n };\n this.#cleanupFns.push(on(doc, \"focusin\", handleFocus, { capture: true }), on(container, \"keydown\", handleKeydown));\n const observer = new MutationObserver(() => {\n const lastFocused = this.#manager.getFocusMemory(this);\n if (lastFocused && !container.contains(lastFocused)) {\n // last focused element was removed\n const firstTabbable = this.#getFirstTabbable();\n const firstFocusable = this.#getAllFocusables()[0];\n const elementToFocus = firstTabbable || firstFocusable;\n if (elementToFocus) {\n elementToFocus.focus();\n this.#manager.setFocusMemory(this, elementToFocus);\n }\n else {\n // no focusable elements left, focus container\n container.focus();\n }\n }\n });\n observer.observe(container, {\n childList: true,\n subtree: true,\n });\n this.#cleanupFns.push(() => observer.disconnect());\n }\n #getTabbables() {\n if (!this.#container)\n return [];\n return tabbable(this.#container, {\n includeContainer: false,\n getShadowRoot: true,\n });\n }\n #getFirstTabbable() {\n const tabbables = this.#getTabbables();\n return tabbables[0] || null;\n }\n #getAllFocusables() {\n if (!this.#container)\n return [];\n return focusable(this.#container, {\n includeContainer: false,\n getShadowRoot: true,\n });\n }\n static use(opts) {\n let scope = null;\n watch([() => opts.ref.current, () => opts.enabled.current], ([ref, enabled]) => {\n if (ref && enabled) {\n if (!scope) {\n scope = new FocusScope(opts);\n }\n scope.mount(ref);\n }\n else if (scope) {\n scope.unmount();\n scope = null;\n }\n });\n onDestroyEffect(() => {\n scope?.unmount();\n });\n return {\n get props() {\n return {\n tabindex: -1,\n };\n },\n };\n }\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { FocusScopeImplProps } from \"./types.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { FocusScope } from \"./focus-scope.svelte.js\";\n\n\tlet {\n\t\tenabled = false,\n\t\ttrapFocus = false,\n\t\tloop = false,\n\t\tonCloseAutoFocus = noop,\n\t\tonOpenAutoFocus = noop,\n\t\tfocusScope,\n\t\tref,\n\t}: FocusScopeImplProps = $props();\n\n\tconst focusScopeState = FocusScope.use({\n\t\tenabled: boxWith(() => enabled),\n\t\ttrap: boxWith(() => trapFocus),\n\t\tloop: loop,\n\t\tonCloseAutoFocus: boxWith(() => onCloseAutoFocus),\n\t\tonOpenAutoFocus: boxWith(() => onOpenAutoFocus),\n\t\tref,\n\t});\n</script>\n\n{@render focusScope?.({ props: focusScopeState.props })}\n","import { DOMContext, composeHandlers, contains, executeCallbacks, } from \"svelte-toolbelt\";\nimport { watch } from \"runed\";\nimport { on } from \"svelte/events\";\nimport { noop } from \"../../../internal/noop.js\";\nimport { isHTMLElement } from \"../../../internal/is.js\";\nglobalThis.bitsTextSelectionLayers ??= new Map();\nexport class TextSelectionLayerState {\n static create(opts) {\n return new TextSelectionLayerState(opts);\n }\n opts;\n domContext;\n #unsubSelectionLock = noop;\n constructor(opts) {\n this.opts = opts;\n this.domContext = new DOMContext(opts.ref);\n let unsubEvents = noop;\n watch(() => this.opts.enabled.current, (isEnabled) => {\n if (isEnabled) {\n globalThis.bitsTextSelectionLayers.set(this, this.opts.enabled);\n unsubEvents();\n unsubEvents = this.#addEventListeners();\n }\n return () => {\n unsubEvents();\n this.#resetSelectionLock();\n globalThis.bitsTextSelectionLayers.delete(this);\n };\n });\n }\n #addEventListeners() {\n return executeCallbacks(on(this.domContext.getDocument(), \"pointerdown\", this.#pointerdown), on(this.domContext.getDocument(), \"pointerup\", composeHandlers(this.#resetSelectionLock, this.opts.onPointerUp.current)));\n }\n #pointerdown = (e) => {\n const node = this.opts.ref.current;\n const target = e.target;\n if (!isHTMLElement(node) || !isHTMLElement(target) || !this.opts.enabled.current)\n return;\n /**\n * We only lock user-selection overflow if layer is the top most layer and\n * pointerdown occurred inside the node. You are still allowed to select text\n * outside the node provided pointerdown occurs outside the node.\n */\n if (!isHighestLayer(this) || !contains(node, target))\n return;\n this.opts.onPointerDown.current(e);\n if (e.defaultPrevented)\n return;\n this.#unsubSelectionLock = preventTextSelectionOverflow(node, this.domContext.getDocument().body);\n };\n #resetSelectionLock = () => {\n this.#unsubSelectionLock();\n this.#unsubSelectionLock = noop;\n };\n}\nconst getUserSelect = (node) => node.style.userSelect || node.style.webkitUserSelect;\nfunction preventTextSelectionOverflow(node, body) {\n const originalBodyUserSelect = getUserSelect(body);\n const originalNodeUserSelect = getUserSelect(node);\n setUserSelect(body, \"none\");\n setUserSelect(node, \"text\");\n return () => {\n setUserSelect(body, originalBodyUserSelect);\n setUserSelect(node, originalNodeUserSelect);\n };\n}\nfunction setUserSelect(node, value) {\n node.style.userSelect = value;\n node.style.webkitUserSelect = value;\n}\nfunction isHighestLayer(instance) {\n const layersArr = [...globalThis.bitsTextSelectionLayers];\n if (!layersArr.length)\n return false;\n const highestLayer = layersArr.at(-1);\n if (!highestLayer)\n return false;\n return highestLayer[0] === instance;\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { TextSelectionLayerImplProps } from \"./types.js\";\n\timport { TextSelectionLayerState } from \"./use-text-selection-layer.svelte.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\tpreventOverflowTextSelection = true,\n\t\tonPointerDown = noop,\n\t\tonPointerUp = noop,\n\t\tid,\n\t\tchildren,\n\t\tenabled,\n\t\tref,\n\t}: TextSelectionLayerImplProps = $props();\n\n\tTextSelectionLayerState.create({\n\t\tid: boxWith(() => id),\n\t\tonPointerDown: boxWith(() => onPointerDown),\n\t\tonPointerUp: boxWith(() => onPointerUp),\n\t\tenabled: boxWith(() => enabled && preventOverflowTextSelection),\n\t\tref,\n\t});\n</script>\n\n{@render children?.()}\n","globalThis.bitsIdCounter ??= { current: 0 };\n/**\n * Generates a unique ID based on a global counter.\n */\nexport function useId(prefix = \"bits\") {\n globalThis.bitsIdCounter.current++;\n return `${prefix}-${globalThis.bitsIdCounter.current}`;\n}\n","export class SharedState {\n #factory;\n #subscribers = 0;\n #state = $state();\n #scope;\n constructor(factory) {\n this.#factory = factory;\n }\n #dispose() {\n this.#subscribers -= 1;\n if (this.#scope && this.#subscribers <= 0) {\n this.#scope();\n this.#state = undefined;\n this.#scope = undefined;\n }\n }\n get(...args) {\n this.#subscribers += 1;\n if (this.#state === undefined) {\n this.#scope = $effect.root(() => {\n this.#state = this.#factory(...args);\n });\n }\n $effect(() => {\n return () => {\n this.#dispose();\n };\n });\n return this.#state;\n }\n}\n","import { SvelteMap } from \"svelte/reactivity\";\nimport { afterTick, boxWith, onDestroyEffect, } from \"svelte-toolbelt\";\nimport { isIOS } from \"./is.js\";\nimport { useId } from \"./use-id.js\";\nimport { watch } from \"runed\";\nimport { SharedState } from \"./shared-state.svelte.js\";\nimport { BROWSER } from \"esm-env\";\nimport { on } from \"svelte/events\";\n/** A map of lock ids to their `locked` state. */\nconst lockMap = new SvelteMap();\nlet initialBodyStyle = $state(null);\nlet stopTouchMoveListener = null;\nlet cleanupTimeoutId = null;\nlet isInCleanupTransition = false;\nconst anyLocked = boxWith(() => {\n for (const value of lockMap.values()) {\n if (value)\n return true;\n }\n return false;\n});\n/**\n * We track the time we scheduled the cleanup to prevent race conditions\n * when multiple locks are created/destroyed in the same tick, ensuring\n * only the last one to schedule the cleanup will run.\n *\n * reference: https://github.com/huntabyte/bits-ui/issues/1639\n */\nlet cleanupScheduledAt = null;\nconst bodyLockStackCount = new SharedState(() => {\n function resetBodyStyle() {\n if (!BROWSER)\n return;\n document.body.setAttribute(\"style\", initialBodyStyle ?? \"\");\n document.body.style.removeProperty(\"--scrollbar-width\");\n isIOS && stopTouchMoveListener?.();\n // reset initialBodyStyle so next locker captures the correct styles\n initialBodyStyle = null;\n }\n function cancelPendingCleanup() {\n if (cleanupTimeoutId === null)\n return;\n window.clearTimeout(cleanupTimeoutId);\n cleanupTimeoutId = null;\n }\n function scheduleCleanupIfNoNewLocks(delay, callback) {\n cancelPendingCleanup();\n isInCleanupTransition = true;\n cleanupScheduledAt = Date.now();\n const currentCleanupId = cleanupScheduledAt;\n /**\n * We schedule the cleanup to run after a delay to allow new locks to register\n * that might have been added in the same tick as the current cleanup.\n *\n * If a new lock is added in the same tick, the cleanup will be cancelled and\n * a new cleanup will be scheduled.\n *\n * This is to prevent the cleanup from running too early and resetting the body\n * style before the new lock has had a chance to apply its styles.\n */\n const cleanupFn = () => {\n cleanupTimeoutId = null;\n // check if this cleanup is still valid (no newer cleanups scheduled)\n if (cleanupScheduledAt !== currentCleanupId)\n return;\n // ensure no new locks were added during the delay\n if (!isAnyLocked(lockMap)) {\n isInCleanupTransition = false;\n callback();\n }\n else {\n isInCleanupTransition = false;\n }\n };\n const actualDelay = delay === null ? 24 : delay;\n cleanupTimeoutId = window.setTimeout(cleanupFn, actualDelay);\n }\n function ensureInitialStyleCaptured() {\n // only capture initial style once, when no locks exist and no cleanup is in progress\n if (initialBodyStyle === null && lockMap.size === 0 && !isInCleanupTransition) {\n initialBodyStyle = document.body.getAttribute(\"style\");\n }\n }\n watch(() => anyLocked.current, () => {\n if (!anyLocked.current)\n return;\n // ensure we've captured the initial style before applying any lock styles\n ensureInitialStyleCaptured();\n // if we're applying lock styles, we're no longer in a cleanup transition\n isInCleanupTransition = false;\n const bodyStyle = getComputedStyle(document.body);\n // TODO: account for RTL direction, etc.\n const verticalScrollbarWidth = window.innerWidth - document.documentElement.clientWidth;\n const paddingRight = Number.parseInt(bodyStyle.paddingRight ?? \"0\", 10);\n const config = {\n padding: paddingRight + verticalScrollbarWidth,\n margin: Number.parseInt(bodyStyle.marginRight ?? \"0\", 10),\n };\n if (verticalScrollbarWidth > 0) {\n document.body.style.paddingRight = `${config.padding}px`;\n document.body.style.marginRight = `${config.margin}px`;\n document.body.style.setProperty(\"--scrollbar-width\", `${verticalScrollbarWidth}px`);\n document.body.style.overflow = \"hidden\";\n }\n if (isIOS) {\n // IOS devices are special and require a touchmove listener to prevent scrolling\n stopTouchMoveListener = on(document, \"touchmove\", (e) => {\n if (e.target !== document.documentElement)\n return;\n if (e.touches.length > 1)\n return;\n e.preventDefault();\n }, { passive: false });\n }\n /**\n * We ensure pointer-events: none is applied _after_ DOM updates, so that any focus/\n * interaction changes from opening overlays/menus complete _before_ we block pointer\n * events.\n *\n * this avoids race conditions where pointer-events could be set too early and break\n * focus/interaction.\n */\n afterTick(() => {\n document.body.style.pointerEvents = \"none\";\n document.body.style.overflow = \"hidden\";\n });\n });\n onDestroyEffect(() => {\n return () => {\n stopTouchMoveListener?.();\n };\n });\n return {\n get lockMap() {\n return lockMap;\n },\n resetBodyStyle,\n scheduleCleanupIfNoNewLocks,\n cancelPendingCleanup,\n ensureInitialStyleCaptured,\n };\n});\nexport class BodyScrollLock {\n #id = useId();\n #initialState;\n #restoreScrollDelay = () => null;\n #countState;\n locked;\n constructor(initialState, restoreScrollDelay = () => null) {\n this.#initialState = initialState;\n this.#restoreScrollDelay = restoreScrollDelay;\n this.#countState = bodyLockStackCount.get();\n if (!this.#countState)\n return;\n /**\n * Since a new lock is being created, we cancel any pending cleanup to\n * prevent the cleanup from running too early and resetting the body style\n * before the new lock has had a chance to apply its styles.\n *\n * reference: https://github.com/huntabyte/bits-ui/issues/1639\n */\n this.#countState.cancelPendingCleanup();\n // capture initial style before this lock is registered\n this.#countState.ensureInitialStyleCaptured();\n this.#countState.lockMap.set(this.#id, this.#initialState ?? false);\n this.locked = boxWith(() => this.#countState.lockMap.get(this.#id) ?? false, (v) => this.#countState.lockMap.set(this.#id, v));\n onDestroyEffect(() => {\n this.#countState.lockMap.delete(this.#id);\n // if not the last lock, we don't need to do anything\n if (isAnyLocked(this.#countState.lockMap))\n return;\n const restoreScrollDelay = this.#restoreScrollDelay();\n /**\n * We schedule the cleanup to run after a delay to handle same-tick\n * destroy/create scenarios.\n *\n * reference: https://github.com/huntabyte/bits-ui/issues/1639\n */\n this.#countState.scheduleCleanupIfNoNewLocks(restoreScrollDelay, () => {\n this.#countState.resetBodyStyle();\n });\n });\n }\n}\nfunction isAnyLocked(map) {\n for (const [_, value] of map) {\n if (value)\n return true;\n }\n return false;\n}\n","<script lang=\"ts\">\n\timport type { ScrollLockProps } from \"./index.js\";\n\timport { BodyScrollLock } from \"../../../internal/body-scroll-lock.svelte.js\";\n\n\tlet { preventScroll = true, restoreScrollDelay = null }: ScrollLockProps = $props();\n\n\tif (preventScroll) {\n\t\tnew BodyScrollLock(preventScroll, () => restoreScrollDelay);\n\t}\n</script>\n","/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nconst yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);\nfunction getSideAxis(placement) {\n return yAxisSides.has(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n","import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';\nexport { rectToClientRect } from '@floating-ui/utils';\n\nfunction computeCoordsFromPlacement(_ref, placement, rtl) {\n let {\n reference,\n floating\n } = _ref;\n const sideAxis = getSideAxis(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const alignLength = getAxisLength(alignmentAxis);\n const side = getSide(placement);\n const isVertical = sideAxis === 'y';\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;\n let coords;\n switch (side) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n switch (getAlignment(placement)) {\n case 'start':\n coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n case 'end':\n coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);\n break;\n }\n return coords;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n *\n * This export does not have any `platform` interface logic. You will need to\n * write one for the platform you are using Floating UI with.\n */\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n const validMiddleware = middleware.filter(Boolean);\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement(rects, placement, rtl);\n let statefulPlacement = placement;\n let middlewareData = {};\n let resetCount = 0;\n for (let i = 0; i < validMiddleware.length; i++) {\n const {\n name,\n fn\n } = validMiddleware[i];\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData = {\n ...middlewareData,\n [name]: {\n ...middlewareData[name],\n ...data\n }\n };\n if (reset && resetCount <= 50) {\n resetCount++;\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n ({\n x,\n y\n } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));\n }\n i = -1;\n }\n }\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nasync function detectOverflow(state, options) {\n var _await$platform$isEle;\n if (options === void 0) {\n options = {};\n }\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = state;\n const {\n boundary = 'clippingAncestors',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = evaluate(options, state);\n const paddingObject = getPaddingObject(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = rectToClientRect(await platform.getClippingRect({\n element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),\n boundary,\n rootBoundary,\n strategy\n }));\n const rect = elementContext === 'floating' ? {\n x,\n y,\n width: rects.floating.width,\n height: rects.floating.height\n } : rects.reference;\n const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));\n const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {\n x: 1,\n y: 1\n } : {\n x: 1,\n y: 1\n };\n const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n elements,\n rect,\n offsetParent,\n strategy\n }) : rect);\n return {\n top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,\n bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,\n left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,\n right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x\n };\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = options => ({\n name: 'arrow',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n platform,\n elements,\n middlewareData\n } = state;\n // Since `element` is required, we don't Partial<> the type.\n const {\n element,\n padding = 0\n } = evaluate(options, state) || {};\n if (element == null) {\n return {};\n }\n const paddingObject = getPaddingObject(padding);\n const coords = {\n x,\n y\n };\n const axis = getAlignmentAxis(placement);\n const length = getAxisLength(axis);\n const arrowDimensions = await platform.getDimensions(element);\n const isYAxis = axis === 'y';\n const minProp = isYAxis ? 'top' : 'left';\n const maxProp = isYAxis ? 'bottom' : 'right';\n const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));\n let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;\n\n // DOM platform can return `window` as the `offsetParent`.\n if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {\n clientSize = elements.floating[clientProp] || rects.floating[length];\n }\n const centerToReference = endDiff / 2 - startDiff / 2;\n\n // If the padding is large enough that it causes the arrow to no longer be\n // centered, modify the padding so that it is centered.\n const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;\n const minPadding = min(paddingObject[minProp], largestPossiblePadding);\n const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);\n\n // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside the floating element's bounds.\n const min$1 = minPadding;\n const max = clientSize - arrowDimensions[length] - maxPadding;\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = clamp(min$1, center, max);\n\n // If the reference is small enough that the arrow's padding causes it to\n // to point to nothing for an aligned placement, adjust the offset of the\n // floating element itself. To ensure `shift()` continues to take action,\n // a single reset is performed when this is true.\n const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;\n const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;\n return {\n [axis]: coords[axis] + alignmentOffset,\n data: {\n [axis]: offset,\n centerOffset: center - offset - alignmentOffset,\n ...(shouldAddOffset && {\n alignmentOffset\n })\n },\n reset: shouldAddOffset\n };\n }\n});\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n return true;\n });\n}\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'autoPlacement',\n options,\n async fn(state) {\n var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;\n const {\n rects,\n middlewareData,\n placement,\n platform,\n elements\n } = state;\n const {\n crossAxis = false,\n alignment,\n allowedPlacements = placements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;\n const currentPlacement = placements$1[currentIndex];\n if (currentPlacement == null) {\n return {};\n }\n const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));\n\n // Make `computeCoords` start from the right place.\n if (placement !== currentPlacement) {\n return {\n reset: {\n placement: placements$1[0]\n }\n };\n }\n const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];\n const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements$1[currentIndex + 1];\n\n // There are more placements to check.\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n const placementsSortedByMostSpace = allOverflows.map(d => {\n const alignment = getAlignment(d.placement);\n return [d.placement, alignment && crossAxis ?\n // Check along the mainAxis and main crossAxis side.\n d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :\n // Check only the mainAxis.\n d.overflows[0], d.overflows];\n }).sort((a, b) => a[1] - b[1]);\n const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,\n // Aligned placements should not check their opposite crossAxis\n // side.\n getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));\n const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];\n if (resetPlacement !== placement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n return {};\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'flip',\n options,\n async fn(state) {\n var _middlewareData$arrow, _middlewareData$flip;\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement,\n platform,\n elements\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n fallbackAxisSideDirection = 'none',\n flipAlignment = true,\n ...detectOverflowOptions\n } = evaluate(options, state);\n\n // If a reset by the arrow was caused due to an alignment offset being\n // added, we should skip any logic now since `flip()` has already done its\n // work.\n // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643\n if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n const side = getSide(placement);\n const initialSideAxis = getSideAxis(initialPlacement);\n const isBasePlacement = getSide(initialPlacement) === initialPlacement;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';\n if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {\n fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));\n }\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];\n if (checkMainAxis) {\n overflows.push(overflow[side]);\n }\n if (checkCrossAxis) {\n const sides = getAlignmentSides(placement, rects, rtl);\n overflows.push(overflow[sides[0]], overflow[sides[1]]);\n }\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }];\n\n // One or more sides is overflowing.\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip2, _overflowsData$filter;\n const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;\n const nextPlacement = placements[nextIndex];\n if (nextPlacement) {\n const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;\n if (!ignoreCrossAxisOverflow ||\n // We leave the current main axis only if every placement on that axis\n // overflows the main axis.\n overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {\n // Try next placement and re-run the lifecycle.\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n }\n\n // First, find the candidates that fit on the mainAxis side of overflow,\n // then find the placement that fits the best on the main crossAxis side.\n let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;\n\n // Otherwise fallback.\n if (!resetPlacement) {\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$filter2;\n const placement = (_overflowsData$filter2 = overflowsData.filter(d => {\n if (hasFallbackAxisSideDirection) {\n const currentSideAxis = getSideAxis(d.placement);\n return currentSideAxis === initialSideAxis ||\n // Create a bias to the `y` side axis due to horizontal\n // reading directions favoring greater width.\n currentSideAxis === 'y';\n }\n return true;\n }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];\n if (placement) {\n resetPlacement = placement;\n }\n break;\n }\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n }\n if (placement !== resetPlacement) {\n return {\n reset: {\n placement: resetPlacement\n }\n };\n }\n }\n return {};\n }\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\nfunction isAnySideFullyClipped(overflow) {\n return sides.some(side => overflow[side] >= 0);\n}\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'hide',\n options,\n async fn(state) {\n const {\n rects\n } = state;\n const {\n strategy = 'referenceHidden',\n ...detectOverflowOptions\n } = evaluate(options, state);\n switch (strategy) {\n case 'referenceHidden':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n elementContext: 'reference'\n });\n const offsets = getSideOffsets(overflow, rects.reference);\n return {\n data: {\n referenceHiddenOffsets: offsets,\n referenceHidden: isAnySideFullyClipped(offsets)\n }\n };\n }\n case 'escaped':\n {\n const overflow = await detectOverflow(state, {\n ...detectOverflowOptions,\n altBoundary: true\n });\n const offsets = getSideOffsets(overflow, rects.floating);\n return {\n data: {\n escapedOffsets: offsets,\n escaped: isAnySideFullyClipped(offsets)\n }\n };\n }\n default:\n {\n return {};\n }\n }\n }\n };\n};\n\nfunction getBoundingRect(rects) {\n const minX = min(...rects.map(rect => rect.left));\n const minY = min(...rects.map(rect => rect.top));\n const maxX = max(...rects.map(rect => rect.right));\n const maxY = max(...rects.map(rect => rect.bottom));\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY\n };\n}\nfunction getRectsByLine(rects) {\n const sortedRects = rects.slice().sort((a, b) => a.y - b.y);\n const groups = [];\n let prevRect = null;\n for (let i = 0; i < sortedRects.length; i++) {\n const rect = sortedRects[i];\n if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {\n groups.push([rect]);\n } else {\n groups[groups.length - 1].push(rect);\n }\n prevRect = rect;\n }\n return groups.map(rect => rectToClientRect(getBoundingRect(rect)));\n}\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'inline',\n options,\n async fn(state) {\n const {\n placement,\n elements,\n rects,\n platform,\n strategy\n } = state;\n // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n const {\n padding = 2,\n x,\n y\n } = evaluate(options, state);\n const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);\n const clientRects = getRectsByLine(nativeClientRects);\n const fallback = rectToClientRect(getBoundingRect(nativeClientRects));\n const paddingObject = getPaddingObject(padding);\n function getBoundingClientRect() {\n // There are two rects and they are disjoined.\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n // Find the first rect in which the point is fully inside.\n return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;\n }\n\n // There are 2 or more connected rects.\n if (clientRects.length >= 2) {\n if (getSideAxis(placement) === 'y') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getSide(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n const isLeftSide = getSide(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n return fallback;\n }\n const resetRects = await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n });\n if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {\n return {\n reset: {\n rects: resetRects\n }\n };\n }\n return {};\n }\n };\n};\n\nconst originSides = /*#__PURE__*/new Set(['left', 'top']);\n\n// For type backwards-compatibility, the `OffsetOptions` type was also\n// Derivable.\n\nasync function convertValueToCoords(state, options) {\n const {\n placement,\n platform,\n elements\n } = state;\n const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isVertical = getSideAxis(placement) === 'y';\n const mainAxisMulti = originSides.has(side) ? -1 : 1;\n const crossAxisMulti = rtl && isVertical ? -1 : 1;\n const rawValue = evaluate(options, state);\n\n // eslint-disable-next-line prefer-const\n let {\n mainAxis,\n crossAxis,\n alignmentAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0,\n alignmentAxis: null\n } : {\n mainAxis: rawValue.mainAxis || 0,\n crossAxis: rawValue.crossAxis || 0,\n alignmentAxis: rawValue.alignmentAxis\n };\n if (alignment && typeof alignmentAxis === 'number') {\n crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;\n }\n return isVertical ? {\n x: crossAxis * crossAxisMulti,\n y: mainAxis * mainAxisMulti\n } : {\n x: mainAxis * mainAxisMulti,\n y: crossAxis * crossAxisMulti\n };\n}\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = function (options) {\n if (options === void 0) {\n options = 0;\n }\n return {\n name: 'offset',\n options,\n async fn(state) {\n var _middlewareData$offse, _middlewareData$arrow;\n const {\n x,\n y,\n placement,\n middlewareData\n } = state;\n const diffCoords = await convertValueToCoords(state, options);\n\n // If the placement is the same and the arrow caused an alignment offset\n // then we don't need to change the positioning coordinates.\n if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {\n return {};\n }\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: {\n ...diffCoords,\n placement\n }\n };\n }\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'shift',\n options,\n async fn(state) {\n const {\n x,\n y,\n placement\n } = state;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const crossAxis = getSideAxis(getSide(placement));\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = clamp(min, mainAxisCoord, max);\n }\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = clamp(min, crossAxisCoord, max);\n }\n const limitedCoords = limiter.fn({\n ...state,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return {\n ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y,\n enabled: {\n [mainAxis]: checkMainAxis,\n [crossAxis]: checkCrossAxis\n }\n }\n };\n }\n };\n};\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n options,\n fn(state) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = state;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = evaluate(options, state);\n const coords = {\n x,\n y\n };\n const crossAxis = getSideAxis(placement);\n const mainAxis = getOppositeAxis(crossAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = evaluate(offset, state);\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2;\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = originSides.has(getSide(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n return {\n name: 'size',\n options,\n async fn(state) {\n var _state$middlewareData, _state$middlewareData2;\n const {\n placement,\n rects,\n platform,\n elements\n } = state;\n const {\n apply = () => {},\n ...detectOverflowOptions\n } = evaluate(options, state);\n const overflow = await detectOverflow(state, detectOverflowOptions);\n const side = getSide(placement);\n const alignment = getAlignment(placement);\n const isYAxis = getSideAxis(placement) === 'y';\n const {\n width,\n height\n } = rects.floating;\n let heightSide;\n let widthSide;\n if (side === 'top' || side === 'bottom') {\n heightSide = side;\n widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';\n } else {\n widthSide = side;\n heightSide = alignment === 'end' ? 'top' : 'bottom';\n }\n const maximumClippingHeight = height - overflow.top - overflow.bottom;\n const maximumClippingWidth = width - overflow.left - overflow.right;\n const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);\n const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);\n const noShift = !state.middlewareData.shift;\n let availableHeight = overflowAvailableHeight;\n let availableWidth = overflowAvailableWidth;\n if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {\n availableWidth = maximumClippingWidth;\n }\n if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {\n availableHeight = maximumClippingHeight;\n }\n if (noShift && !alignment) {\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n if (isYAxis) {\n availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));\n } else {\n availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));\n }\n }\n await apply({\n ...state,\n availableWidth,\n availableHeight\n });\n const nextDimensions = await platform.getDimensions(elements.floating);\n if (width !== nextDimensions.width || height !== nextDimensions.height) {\n return {\n reset: {\n rects: true\n }\n };\n }\n return {};\n }\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };\n","function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nconst invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);\n}\nconst tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);\nfunction isTableElement(element) {\n return tableElements.has(getNodeName(element));\n}\nconst topLayerSelectors = [':popover-open', ':modal'];\nfunction isTopLayer(element) {\n return topLayerSelectors.some(selector => {\n try {\n return element.matches(selector);\n } catch (_e) {\n return false;\n }\n });\n}\nconst transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];\nconst willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];\nconst containValues = ['paint', 'layout', 'strict', 'content'];\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nconst lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);\nfunction isLastTraversableNode(node) {\n return lastTraversableNodeNames.has(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n","import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle as getComputedStyle$1, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle$1(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = getFrameElement(currentWin);\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle$1(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = getFrameElement(currentWin);\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n const leftScroll = getNodeScroll(element).scrollLeft;\n if (!rect) {\n return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n }\n return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll) {\n const htmlRect = documentElement.getBoundingClientRect();\n const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);\n const y = htmlRect.top + scroll.scrollTop;\n return {\n x,\n y\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle$1(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Safety check: ensure the scrollbar space is reasonable in case this\n// calculation is affected by unusual styles.\n// Most scrollbars leave 15-18px of space.\nconst SCROLLBAR_MAX = 25;\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n const windowScrollbarX = getWindowScrollBarX(html);\n // <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the\n // visual width of the <html> but this is not considered in the size\n // of `html.clientWidth`.\n if (windowScrollbarX <= 0) {\n const doc = html.ownerDocument;\n const body = doc.body;\n const bodyStyles = getComputedStyle(body);\n const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;\n const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);\n if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {\n width -= clippingStableScrollbarWidth;\n }\n } else if (windowScrollbarX <= SCROLLBAR_MAX) {\n // If the <body> scrollbar is on the left, the width needs to be extended\n // by the scrollbar amount so there isn't extra space on the right.\n width += windowScrollbarX;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nconst absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y,\n width: clippingAncestor.width,\n height: clippingAncestor.height\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle$1(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle$1(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n\n // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n function setLeftRTLScrollbarOffset() {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n setLeftRTLScrollbarOffset();\n }\n }\n if (isFixed && !isOffsetParentAnElement && documentElement) {\n setLeftRTLScrollbarOffset();\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction isStaticPositioned(element) {\n return getComputedStyle$1(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n let rawOffsetParent = element.offsetParent;\n\n // Firefox returns the <html> element as the offsetParent if it's non-static,\n // while Chrome and Safari return the <body> element. The <body> element must\n // be used to perform the correct calculations even if the <html> element is\n // non-static.\n if (getDocumentElement(element) === rawOffsetParent) {\n rawOffsetParent = rawOffsetParent.ownerDocument.body;\n }\n return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const win = getWindow(element);\n if (isTopLayer(element)) {\n return win;\n }\n if (!isHTMLElement(element)) {\n let svgOffsetParent = getParentNode(element);\n while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n return svgOffsetParent;\n }\n svgOffsetParent = getParentNode(svgOffsetParent);\n }\n return win;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n return win;\n }\n return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n const floatingDimensions = await getDimensionsFn(data.floating);\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n width: floatingDimensions.width,\n height: floatingDimensions.height\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle$1(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const elementRectForRootMargin = element.getBoundingClientRect();\n const {\n left,\n top,\n width,\n height\n } = elementRectForRootMargin;\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n // If the reference is clipped, the ratio is 0. Throttle the refresh\n // to prevent an infinite loop of updates.\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 1000);\n } else {\n refresh(false, ratio);\n }\n }\n if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n // It's possible that even though the ratio is reported as 1, the\n // element is not actually fully within the IntersectionObserver's root\n // area anymore. This can happen under performance constraints. This may\n // be a bug in the browser's IntersectionObserver implementation. To\n // work around this, we compare the element's bounding rect now with\n // what it was at the time we created the IntersectionObserver. If they\n // are not equal then the element moved, so we refresh.\n refresh();\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (_e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n var _resizeObserver;\n (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n resizeObserver.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _resizeObserver2;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo == null || cleanupIo();\n (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n","export function get(valueOrGetValue) {\n return typeof valueOrGetValue === \"function\"\n ? valueOrGetValue()\n : valueOrGetValue;\n}\nexport function getDPR(element) {\n if (typeof window === \"undefined\")\n return 1;\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\nexport function roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\nexport function getFloatingContentCSSVars(name) {\n return {\n [`--bits-${name}-content-transform-origin`]: `var(--bits-floating-transform-origin)`,\n [`--bits-${name}-content-available-width`]: `var(--bits-floating-available-width)`,\n [`--bits-${name}-content-available-height`]: `var(--bits-floating-available-height)`,\n [`--bits-${name}-anchor-width`]: `var(--bits-floating-anchor-width)`,\n [`--bits-${name}-anchor-height`]: `var(--bits-floating-anchor-height)`,\n };\n}\n","import { computePosition } from \"@floating-ui/dom\";\nimport { simpleBox } from \"svelte-toolbelt\";\nimport { get, getDPR, roundByDPR } from \"./floating-utils.svelte.js\";\nexport function useFloating(options) {\n /** Options */\n const whileElementsMountedOption = options.whileElementsMounted;\n const openOption = $derived(get(options.open) ?? true);\n const middlewareOption = $derived(get(options.middleware));\n const transformOption = $derived(get(options.transform) ?? true);\n const placementOption = $derived(get(options.placement) ?? \"bottom\");\n const strategyOption = $derived(get(options.strategy) ?? \"absolute\");\n const sideOffsetOption = $derived(get(options.sideOffset) ?? 0);\n const alignOffsetOption = $derived(get(options.alignOffset) ?? 0);\n const reference = options.reference;\n /** State */\n let x = $state(0);\n let y = $state(0);\n const floating = simpleBox(null);\n // svelte-ignore state_referenced_locally\n let strategy = $state(strategyOption);\n // svelte-ignore state_referenced_locally\n let placement = $state(placementOption);\n let middlewareData = $state({});\n let isPositioned = $state(false);\n const floatingStyles = $derived.by(() => {\n // preserve last known position when floating ref is null (during transitions)\n const xVal = floating.current ? roundByDPR(floating.current, x) : x;\n const yVal = floating.current ? roundByDPR(floating.current, y) : y;\n if (transformOption) {\n return {\n position: strategy,\n left: \"0\",\n top: \"0\",\n transform: `translate(${xVal}px, ${yVal}px)`,\n ...(floating.current &&\n getDPR(floating.current) >= 1.5 && {\n willChange: \"transform\",\n }),\n };\n }\n return {\n position: strategy,\n left: `${xVal}px`,\n top: `${yVal}px`,\n };\n });\n /** Effects */\n let whileElementsMountedCleanup;\n function update() {\n if (reference.current === null || floating.current === null)\n return;\n computePosition(reference.current, floating.current, {\n middleware: middlewareOption,\n placement: placementOption,\n strategy: strategyOption,\n }).then((position) => {\n // ignore bad coordinates that cause jumping during close transitions\n if (!openOption && x !== 0 && y !== 0) {\n // if we had a good position and now getting coordinates near\n // the expected offset bounds during close, ignore it\n const maxExpectedOffset = Math.max(Math.abs(sideOffsetOption), Math.abs(alignOffsetOption), 15);\n if (position.x <= maxExpectedOffset && position.y <= maxExpectedOffset)\n return;\n }\n x = position.x;\n y = position.y;\n strategy = position.strategy;\n placement = position.placement;\n middlewareData = position.middlewareData;\n isPositioned = true;\n });\n }\n function cleanup() {\n if (typeof whileElementsMountedCleanup === \"function\") {\n whileElementsMountedCleanup();\n whileElementsMountedCleanup = undefined;\n }\n }\n function attach() {\n cleanup();\n if (whileElementsMountedOption === undefined) {\n update();\n return;\n }\n if (reference.current === null || floating.current === null)\n return;\n whileElementsMountedCleanup = whileElementsMountedOption(reference.current, floating.current, update);\n }\n function reset() {\n if (!openOption) {\n isPositioned = false;\n }\n }\n $effect(update);\n $effect(attach);\n $effect(reset);\n $effect(() => cleanup);\n return {\n floating,\n reference,\n get strategy() {\n return strategy;\n },\n get placement() {\n return placement;\n },\n get middlewareData() {\n return middlewareData;\n },\n get isPositioned() {\n return isPositioned;\n },\n get floatingStyles() {\n return floatingStyles;\n },\n get update() {\n return update;\n },\n };\n}\n","import { arrow, autoUpdate, flip, hide, limitShift, offset, shift, size, } from \"@floating-ui/dom\";\nimport { attachRef, cssToStyleObj, getWindow, styleToString, simpleBox, boxFrom, } from \"svelte-toolbelt\";\nimport { Context, ElementSize, watch } from \"runed\";\nimport { isNotNull } from \"../../../internal/is.js\";\nimport { useId } from \"../../../internal/use-id.js\";\nimport { useFloating } from \"../../../internal/floating-svelte/use-floating.svelte.js\";\nexport const SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nexport const ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nconst OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\",\n};\nconst FloatingRootContext = new Context(\"Floating.Root\");\nconst FloatingContentContext = new Context(\"Floating.Content\");\nconst FloatingTooltipRootContext = new Context(\"Floating.Root\");\nexport class FloatingRootState {\n static create(tooltip = false) {\n return tooltip\n ? FloatingTooltipRootContext.set(new FloatingRootState())\n : FloatingRootContext.set(new FloatingRootState());\n }\n anchorNode = simpleBox(null);\n customAnchorNode = simpleBox(null);\n triggerNode = simpleBox(null);\n constructor() {\n $effect(() => {\n if (this.customAnchorNode.current) {\n if (typeof this.customAnchorNode.current === \"string\") {\n this.anchorNode.current = document.querySelector(this.customAnchorNode.current);\n }\n else {\n this.anchorNode.current = this.customAnchorNode.current;\n }\n }\n else {\n this.anchorNode.current = this.triggerNode.current;\n }\n });\n }\n}\nexport class FloatingContentState {\n static create(opts, tooltip = false) {\n return tooltip\n ? FloatingContentContext.set(new FloatingContentState(opts, FloatingTooltipRootContext.get()))\n : FloatingContentContext.set(new FloatingContentState(opts, FloatingRootContext.get()));\n }\n opts;\n root;\n // nodes\n contentRef = simpleBox(null);\n wrapperRef = simpleBox(null);\n arrowRef = simpleBox(null);\n contentAttachment = attachRef(this.contentRef);\n wrapperAttachment = attachRef(this.wrapperRef);\n arrowAttachment = attachRef(this.arrowRef);\n // ids\n arrowId = simpleBox(useId());\n #transformedStyle = $derived.by(() => {\n if (typeof this.opts.style === \"string\")\n return cssToStyleObj(this.opts.style);\n if (!this.opts.style)\n return {};\n });\n #updatePositionStrategy = undefined;\n #arrowSize = new ElementSize(() => this.arrowRef.current ?? undefined);\n #arrowWidth = $derived(this.#arrowSize?.width ?? 0);\n #arrowHeight = $derived(this.#arrowSize?.height ?? 0);\n #desiredPlacement = $derived.by(() => (this.opts.side?.current +\n (this.opts.align.current !== \"center\"\n ? `-${this.opts.align.current}`\n : \"\")));\n #boundary = $derived.by(() => Array.isArray(this.opts.collisionBoundary.current)\n ? this.opts.collisionBoundary.current\n : [this.opts.collisionBoundary.current]);\n hasExplicitBoundaries = $derived(this.#boundary.length > 0);\n detectOverflowOptions = $derived.by(() => ({\n padding: this.opts.collisionPadding.current,\n boundary: this.#boundary.filter(isNotNull),\n altBoundary: this.hasExplicitBoundaries,\n }));\n #availableWidth = $state(undefined);\n #availableHeight = $state(undefined);\n #anchorWidth = $state(undefined);\n #anchorHeight = $state(undefined);\n middleware = $derived.by(() => [\n offset({\n mainAxis: this.opts.sideOffset.current + this.#arrowHeight,\n alignmentAxis: this.opts.alignOffset.current,\n }),\n this.opts.avoidCollisions.current &&\n shift({\n mainAxis: true,\n crossAxis: false,\n limiter: this.opts.sticky.current === \"partial\" ? limitShift() : undefined,\n ...this.detectOverflowOptions,\n }),\n this.opts.avoidCollisions.current && flip({ ...this.detectOverflowOptions }),\n size({\n ...this.detectOverflowOptions,\n apply: ({ rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n this.#availableWidth = availableWidth;\n this.#availableHeight = availableHeight;\n this.#anchorWidth = anchorWidth;\n this.#anchorHeight = anchorHeight;\n },\n }),\n this.arrowRef.current &&\n arrow({\n element: this.arrowRef.current,\n padding: this.opts.arrowPadding.current,\n }),\n transformOrigin({ arrowWidth: this.#arrowWidth, arrowHeight: this.#arrowHeight }),\n this.opts.hideWhenDetached.current &&\n hide({ strategy: \"referenceHidden\", ...this.detectOverflowOptions }),\n ].filter(Boolean));\n floating;\n placedSide = $derived.by(() => getSideFromPlacement(this.floating.placement));\n placedAlign = $derived.by(() => getAlignFromPlacement(this.floating.placement));\n arrowX = $derived.by(() => this.floating.middlewareData.arrow?.x ?? 0);\n arrowY = $derived.by(() => this.floating.middlewareData.arrow?.y ?? 0);\n cannotCenterArrow = $derived.by(() => this.floating.middlewareData.arrow?.centerOffset !== 0);\n contentZIndex = $state();\n arrowBaseSide = $derived(OPPOSITE_SIDE[this.placedSide]);\n wrapperProps = $derived.by(() => ({\n id: this.opts.wrapperId.current,\n \"data-bits-floating-content-wrapper\": \"\",\n style: {\n ...this.floating.floatingStyles,\n // keep off page when measuring\n transform: this.floating.isPositioned\n ? this.floating.floatingStyles.transform\n : \"translate(0, -200%)\",\n minWidth: \"max-content\",\n zIndex: this.contentZIndex,\n \"--bits-floating-transform-origin\": `${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,\n \"--bits-floating-available-width\": `${this.#availableWidth}px`,\n \"--bits-floating-available-height\": `${this.#availableHeight}px`,\n \"--bits-floating-anchor-width\": `${this.#anchorWidth}px`,\n \"--bits-floating-anchor-height\": `${this.#anchorHeight}px`,\n // hide the content if using the hide middleware and should be hidden\n ...(this.floating.middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n \"pointer-events\": \"none\",\n }),\n ...this.#transformedStyle,\n },\n // Floating UI calculates logical alignment based the `dir` attribute\n dir: this.opts.dir.current,\n ...this.wrapperAttachment,\n }));\n props = $derived.by(() => ({\n \"data-side\": this.placedSide,\n \"data-align\": this.placedAlign,\n style: styleToString({\n ...this.#transformedStyle,\n }),\n ...this.contentAttachment,\n }));\n arrowStyle = $derived({\n position: \"absolute\",\n left: this.arrowX ? `${this.arrowX}px` : undefined,\n top: this.arrowY ? `${this.arrowY}px` : undefined,\n [this.arrowBaseSide]: 0,\n \"transform-origin\": {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\",\n }[this.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: \"rotate(180deg)\",\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\",\n }[this.placedSide],\n visibility: this.cannotCenterArrow ? \"hidden\" : undefined,\n });\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n if (opts.customAnchor) {\n this.root.customAnchorNode.current = opts.customAnchor.current;\n }\n watch(() => opts.customAnchor.current, (customAnchor) => {\n this.root.customAnchorNode.current = customAnchor;\n });\n this.floating = useFloating({\n strategy: () => this.opts.strategy.current,\n placement: () => this.#desiredPlacement,\n middleware: () => this.middleware,\n reference: this.root.anchorNode,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: this.#updatePositionStrategy?.current === \"always\",\n });\n return cleanup;\n },\n open: () => this.opts.enabled.current,\n sideOffset: () => this.opts.sideOffset.current,\n alignOffset: () => this.opts.alignOffset.current,\n });\n $effect(() => {\n if (!this.floating.isPositioned)\n return;\n this.opts.onPlaced?.current();\n });\n watch(() => this.contentRef.current, (contentNode) => {\n if (!contentNode)\n return;\n const win = getWindow(contentNode);\n this.contentZIndex = win.getComputedStyle(contentNode).zIndex;\n });\n $effect(() => {\n this.floating.floating.current = this.wrapperRef.current;\n });\n }\n}\nexport class FloatingArrowState {\n static create(opts) {\n return new FloatingArrowState(opts, FloatingContentContext.get());\n }\n opts;\n content;\n constructor(opts, content) {\n this.opts = opts;\n this.content = content;\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n style: this.content.arrowStyle,\n \"data-side\": this.content.placedSide,\n ...this.content.arrowAttachment,\n }));\n}\nexport class FloatingAnchorState {\n static create(opts, tooltip = false) {\n return tooltip\n ? new FloatingAnchorState(opts, FloatingTooltipRootContext.get())\n : new FloatingAnchorState(opts, FloatingRootContext.get());\n }\n opts;\n root;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n if (opts.virtualEl && opts.virtualEl.current) {\n root.triggerNode = boxFrom(opts.virtualEl.current);\n }\n else {\n root.triggerNode = opts.ref;\n }\n }\n}\n//\n// HELPERS\n//\nfunction transformOrigin(options) {\n return {\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n }\n else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n }\n else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n },\n };\n}\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nexport function getSideFromPlacement(placement) {\n return getSideAndAlignFromPlacement(placement)[0];\n}\nexport function getAlignFromPlacement(placement) {\n return getSideAndAlignFromPlacement(placement)[1];\n}\n","<script lang=\"ts\">\n\timport type { Snippet } from \"svelte\";\n\timport { FloatingRootState } from \"../use-floating-layer.svelte.js\";\n\n\tlet { children, tooltip = false }: { children?: Snippet; tooltip?: boolean } = $props();\n\n\tFloatingRootState.create(tooltip);\n</script>\n\n{@render children?.()}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport { FloatingAnchorState } from \"../use-floating-layer.svelte.js\";\n\timport type { AnchorProps } from \"./index.js\";\n\timport type { Measurable } from \"../../../../internal/floating-svelte/types.js\";\n\n\tlet { id, children, virtualEl, ref, tooltip = false }: AnchorProps = $props();\n\n\tFloatingAnchorState.create(\n\t\t{\n\t\t\tid: boxWith(() => id),\n\t\t\tvirtualEl: boxWith(() => virtualEl as unknown as Measurable | null),\n\t\t\tref,\n\t\t},\n\t\ttooltip\n\t);\n</script>\n\n{@render children?.()}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { FloatingContentState } from \"../use-floating-layer.svelte.js\";\n\timport type { ContentImplProps } from \"./index.js\";\n\timport { useId } from \"../../../../internal/use-id.js\";\n\n\tlet {\n\t\tcontent,\n\t\tside = \"bottom\",\n\t\tsideOffset = 0,\n\t\talign = \"center\",\n\t\talignOffset = 0,\n\t\tid,\n\t\tarrowPadding = 0,\n\t\tavoidCollisions = true,\n\t\tcollisionBoundary = [],\n\t\tcollisionPadding = 0,\n\t\thideWhenDetached = false,\n\t\tonPlaced = () => {},\n\t\tsticky = \"partial\",\n\t\tupdatePositionStrategy = \"optimized\",\n\t\tstrategy = \"fixed\",\n\t\tdir = \"ltr\",\n\t\tstyle = {},\n\t\twrapperId = useId(),\n\t\tcustomAnchor = null,\n\t\tenabled,\n\t\ttooltip = false,\n\t}: ContentImplProps = $props();\n\n\tconst contentState = FloatingContentState.create(\n\t\t{\n\t\t\tside: boxWith(() => side),\n\t\t\tsideOffset: boxWith(() => sideOffset),\n\t\t\talign: boxWith(() => align),\n\t\t\talignOffset: boxWith(() => alignOffset),\n\t\t\tid: boxWith(() => id),\n\t\t\tarrowPadding: boxWith(() => arrowPadding),\n\t\t\tavoidCollisions: boxWith(() => avoidCollisions),\n\t\t\tcollisionBoundary: boxWith(() => collisionBoundary),\n\t\t\tcollisionPadding: boxWith(() => collisionPadding),\n\t\t\thideWhenDetached: boxWith(() => hideWhenDetached),\n\t\t\tonPlaced: boxWith(() => onPlaced),\n\t\t\tsticky: boxWith(() => sticky),\n\t\t\tupdatePositionStrategy: boxWith(() => updatePositionStrategy),\n\t\t\tstrategy: boxWith(() => strategy),\n\t\t\tdir: boxWith(() => dir),\n\t\t\tstyle: boxWith(() => style),\n\t\t\tenabled: boxWith(() => enabled),\n\t\t\twrapperId: boxWith(() => wrapperId),\n\t\t\tcustomAnchor: boxWith(() => customAnchor),\n\t\t},\n\t\ttooltip\n\t);\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(contentState.wrapperProps, {\n\t\t\tstyle: {\n\t\t\t\tpointerEvents: \"auto\",\n\t\t\t},\n\t\t})\n\t);\n</script>\n\n{@render content?.({ props: contentState.props, wrapperProps: mergedProps })}\n","<script lang=\"ts\">\n\timport { type Snippet, onMount } from \"svelte\";\n\n\tlet {\n\t\tcontent,\n\t\tonPlaced,\n\t}: {\n\t\tcontent?: Snippet<\n\t\t\t[{ props: Record<string, unknown>; wrapperProps: Record<string, unknown> }]\n\t\t>;\n\t\tonPlaced?: () => void;\n\t} = $props();\n\n\tonMount(() => {\n\t\tonPlaced?.();\n\t});\n</script>\n\n{@render content?.({ props: {}, wrapperProps: {} })}\n","<script lang=\"ts\">\n\timport FloatingLayerContentStatic from \"../floating-layer/components/floating-layer-content-static.svelte\";\n\timport FloatingLayerContent from \"../floating-layer/components/floating-layer-content.svelte\";\n\timport type { FloatingLayerContentImplProps } from \"../floating-layer/types.js\";\n\n\tlet {\n\t\tcontent,\n\t\tisStatic = false,\n\t\tonPlaced,\n\t\t...restProps\n\t}: FloatingLayerContentImplProps & { isStatic: boolean } = $props();\n</script>\n\n{#if isStatic}\n\t<FloatingLayerContentStatic {content} {onPlaced} />\n{:else}\n\t<FloatingLayerContent {content} {onPlaced} {...restProps} />\n{/if}\n","<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport ScrollLock from \"../scroll-lock/scroll-lock.svelte\";\n\timport type { PopperLayerImplProps } from \"./types.js\";\n\timport PopperContent from \"./popper-content.svelte\";\n\timport EscapeLayer from \"../escape-layer/escape-layer.svelte\";\n\timport DismissibleLayer from \"../dismissible-layer/dismissible-layer.svelte\";\n\timport TextSelectionLayer from \"../text-selection-layer/text-selection-layer.svelte\";\n\timport FocusScope from \"../focus-scope/focus-scope.svelte\";\n\n\tlet {\n\t\tpopper,\n\t\tonEscapeKeydown,\n\t\tescapeKeydownBehavior,\n\t\tpreventOverflowTextSelection,\n\t\tid,\n\t\tonPointerDown,\n\t\tonPointerUp,\n\t\tside,\n\t\tsideOffset,\n\t\talign,\n\t\talignOffset,\n\t\tarrowPadding,\n\t\tavoidCollisions,\n\t\tcollisionBoundary,\n\t\tcollisionPadding,\n\t\tsticky,\n\t\thideWhenDetached,\n\t\tupdatePositionStrategy,\n\t\tstrategy,\n\t\tdir,\n\t\tpreventScroll,\n\t\twrapperId,\n\t\tstyle,\n\t\tonPlaced,\n\t\tonInteractOutside,\n\t\tonCloseAutoFocus,\n\t\tonOpenAutoFocus,\n\t\tonFocusOutside,\n\t\tinteractOutsideBehavior = \"close\",\n\t\tloop,\n\t\ttrapFocus = true,\n\t\tisValidEvent = () => false,\n\t\tcustomAnchor = null,\n\t\tisStatic = false,\n\t\tenabled,\n\t\tref,\n\t\ttooltip = false,\n\t\t...restProps\n\t}: Omit<PopperLayerImplProps, \"open\" | \"children\" | \"shouldRender\"> & {\n\t\tenabled: boolean;\n\t} = $props();\n</script>\n\n<PopperContent\n\t{isStatic}\n\t{id}\n\t{side}\n\t{sideOffset}\n\t{align}\n\t{alignOffset}\n\t{arrowPadding}\n\t{avoidCollisions}\n\t{collisionBoundary}\n\t{collisionPadding}\n\t{sticky}\n\t{hideWhenDetached}\n\t{updatePositionStrategy}\n\t{strategy}\n\t{dir}\n\t{wrapperId}\n\t{style}\n\t{onPlaced}\n\t{customAnchor}\n\t{enabled}\n\t{tooltip}\n>\n\t{#snippet content({ props: floatingProps, wrapperProps })}\n\t\t{#if restProps.forceMount && enabled}\n\t\t\t<ScrollLock {preventScroll} />\n\t\t{:else if !restProps.forceMount}\n\t\t\t<ScrollLock {preventScroll} />\n\t\t{/if}\n\t\t<FocusScope\n\t\t\t{onOpenAutoFocus}\n\t\t\t{onCloseAutoFocus}\n\t\t\t{loop}\n\t\t\t{enabled}\n\t\t\t{trapFocus}\n\t\t\tforceMount={restProps.forceMount}\n\t\t\t{ref}\n\t\t>\n\t\t\t{#snippet focusScope({ props: focusScopeProps })}\n\t\t\t\t<EscapeLayer {onEscapeKeydown} {escapeKeydownBehavior} {enabled} {ref}>\n\t\t\t\t\t<DismissibleLayer\n\t\t\t\t\t\t{id}\n\t\t\t\t\t\t{onInteractOutside}\n\t\t\t\t\t\t{onFocusOutside}\n\t\t\t\t\t\t{interactOutsideBehavior}\n\t\t\t\t\t\t{isValidEvent}\n\t\t\t\t\t\t{enabled}\n\t\t\t\t\t\t{ref}\n\t\t\t\t\t>\n\t\t\t\t\t\t{#snippet children({ props: dismissibleProps })}\n\t\t\t\t\t\t\t<TextSelectionLayer\n\t\t\t\t\t\t\t\t{id}\n\t\t\t\t\t\t\t\t{preventOverflowTextSelection}\n\t\t\t\t\t\t\t\t{onPointerDown}\n\t\t\t\t\t\t\t\t{onPointerUp}\n\t\t\t\t\t\t\t\t{enabled}\n\t\t\t\t\t\t\t\t{ref}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{@render popper?.({\n\t\t\t\t\t\t\t\t\tprops: mergeProps(\n\t\t\t\t\t\t\t\t\t\trestProps,\n\t\t\t\t\t\t\t\t\t\tfloatingProps,\n\t\t\t\t\t\t\t\t\t\tdismissibleProps,\n\t\t\t\t\t\t\t\t\t\tfocusScopeProps,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tstyle: {\n\t\t\t\t\t\t\t\t\t\t\t\tpointerEvents: \"auto\",\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\twrapperProps,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t</TextSelectionLayer>\n\t\t\t\t\t\t{/snippet}\n\t\t\t\t\t</DismissibleLayer>\n\t\t\t\t</EscapeLayer>\n\t\t\t{/snippet}\n\t\t</FocusScope>\n\t{/snippet}\n</PopperContent>\n","<script lang=\"ts\">\n\timport type { PopperLayerImplProps } from \"./types.js\";\n\timport PopperLayerInner from \"./popper-layer-inner.svelte\";\n\n\tlet {\n\t\tpopper,\n\t\topen,\n\t\tonEscapeKeydown,\n\t\tescapeKeydownBehavior,\n\t\tpreventOverflowTextSelection,\n\t\tid,\n\t\tonPointerDown,\n\t\tonPointerUp,\n\t\tside,\n\t\tsideOffset,\n\t\talign,\n\t\talignOffset,\n\t\tarrowPadding,\n\t\tavoidCollisions,\n\t\tcollisionBoundary,\n\t\tcollisionPadding,\n\t\tsticky,\n\t\thideWhenDetached,\n\t\tupdatePositionStrategy,\n\t\tstrategy,\n\t\tdir,\n\t\tpreventScroll,\n\t\twrapperId,\n\t\tstyle,\n\t\tonPlaced,\n\t\tonInteractOutside,\n\t\tonCloseAutoFocus,\n\t\tonOpenAutoFocus,\n\t\tonFocusOutside,\n\t\tinteractOutsideBehavior = \"close\",\n\t\tloop,\n\t\ttrapFocus = true,\n\t\tisValidEvent = () => false,\n\t\tcustomAnchor = null,\n\t\tisStatic = false,\n\t\tref,\n\t\tshouldRender,\n\t\t...restProps\n\t}: PopperLayerImplProps = $props();\n</script>\n\n{#if shouldRender}\n\t<PopperLayerInner\n\t\t{popper}\n\t\t{onEscapeKeydown}\n\t\t{escapeKeydownBehavior}\n\t\t{preventOverflowTextSelection}\n\t\t{id}\n\t\t{onPointerDown}\n\t\t{onPointerUp}\n\t\t{side}\n\t\t{sideOffset}\n\t\t{align}\n\t\t{alignOffset}\n\t\t{arrowPadding}\n\t\t{avoidCollisions}\n\t\t{collisionBoundary}\n\t\t{collisionPadding}\n\t\t{sticky}\n\t\t{hideWhenDetached}\n\t\t{updatePositionStrategy}\n\t\t{strategy}\n\t\t{dir}\n\t\t{preventScroll}\n\t\t{wrapperId}\n\t\t{style}\n\t\t{onPlaced}\n\t\t{customAnchor}\n\t\t{isStatic}\n\t\tenabled={open}\n\t\t{onInteractOutside}\n\t\t{onCloseAutoFocus}\n\t\t{onOpenAutoFocus}\n\t\t{interactOutsideBehavior}\n\t\t{loop}\n\t\t{trapFocus}\n\t\t{isValidEvent}\n\t\t{onFocusOutside}\n\t\tforceMount={false}\n\t\t{ref}\n\t\t{...restProps}\n\t/>\n{/if}\n","<script lang=\"ts\">\n\timport type { PopperLayerImplProps } from \"./types.js\";\n\timport PopperLayerInner from \"./popper-layer-inner.svelte\";\n\n\tlet {\n\t\tpopper,\n\t\tonEscapeKeydown,\n\t\tescapeKeydownBehavior,\n\t\tpreventOverflowTextSelection,\n\t\tid,\n\t\tonPointerDown,\n\t\tonPointerUp,\n\t\tside,\n\t\tsideOffset,\n\t\talign,\n\t\talignOffset,\n\t\tarrowPadding,\n\t\tavoidCollisions,\n\t\tcollisionBoundary,\n\t\tcollisionPadding,\n\t\tsticky,\n\t\thideWhenDetached,\n\t\tupdatePositionStrategy,\n\t\tstrategy,\n\t\tdir,\n\t\tpreventScroll,\n\t\twrapperId,\n\t\tstyle,\n\t\tonPlaced,\n\t\tonInteractOutside,\n\t\tonCloseAutoFocus,\n\t\tonOpenAutoFocus,\n\t\tonFocusOutside,\n\t\tinteractOutsideBehavior = \"close\",\n\t\tloop,\n\t\ttrapFocus = true,\n\t\tisValidEvent = () => false,\n\t\tcustomAnchor = null,\n\t\tisStatic = false,\n\t\tenabled,\n\t\t...restProps\n\t}: Omit<PopperLayerImplProps, \"open\"> & {\n\t\tenabled: boolean;\n\t} = $props();\n</script>\n\n<PopperLayerInner\n\t{popper}\n\t{onEscapeKeydown}\n\t{escapeKeydownBehavior}\n\t{preventOverflowTextSelection}\n\t{id}\n\t{onPointerDown}\n\t{onPointerUp}\n\t{side}\n\t{sideOffset}\n\t{align}\n\t{alignOffset}\n\t{arrowPadding}\n\t{avoidCollisions}\n\t{collisionBoundary}\n\t{collisionPadding}\n\t{sticky}\n\t{hideWhenDetached}\n\t{updatePositionStrategy}\n\t{strategy}\n\t{dir}\n\t{preventScroll}\n\t{wrapperId}\n\t{style}\n\t{onPlaced}\n\t{customAnchor}\n\t{isStatic}\n\t{enabled}\n\t{onInteractOutside}\n\t{onCloseAutoFocus}\n\t{onOpenAutoFocus}\n\t{interactOutsideBehavior}\n\t{loop}\n\t{trapFocus}\n\t{isValidEvent}\n\t{onFocusOutside}\n\t{...restProps}\n\tforceMount={true}\n/>\n","import { executeCallbacks } from \"svelte-toolbelt\";\nimport { on } from \"svelte/events\";\n// Using global state to avoid multiple listeners.\nlet isUsingKeyboard = $state(false);\n/**\n * Detects whether the user is currently using the keyboard\n * or not by listening to keyboard and pointer events. Uses shared global\n * state to avoid listener duplication.\n */\nexport class IsUsingKeyboard {\n static _refs = 0; // Reference counting to avoid multiple listeners.\n static _cleanup;\n constructor() {\n $effect(() => {\n if (IsUsingKeyboard._refs === 0) {\n IsUsingKeyboard._cleanup = $effect.root(() => {\n const callbacksToDispose = [];\n const handlePointer = (_) => {\n isUsingKeyboard = false;\n };\n const handleKeydown = (_) => {\n isUsingKeyboard = true;\n };\n callbacksToDispose.push(on(document, \"pointerdown\", handlePointer, {\n capture: true,\n }), on(document, \"pointermove\", handlePointer, {\n capture: true,\n }), on(document, \"keydown\", handleKeydown, {\n capture: true,\n }));\n // Don't forget to spread and call twice.\n return executeCallbacks(...callbacksToDispose);\n });\n }\n IsUsingKeyboard._refs++;\n return () => {\n IsUsingKeyboard._refs--;\n if (IsUsingKeyboard._refs === 0) {\n isUsingKeyboard = false;\n IsUsingKeyboard._cleanup?.();\n }\n };\n });\n }\n get current() {\n return isUsingKeyboard;\n }\n set current(value) {\n isUsingKeyboard = value;\n }\n}\n"],"names":["key","node","get_key","render_fn","hydrating","hydrate_next","branches","BranchManager","legacy","is_runes","block","SvelteMap","#sources","#version","state","#size","#update_version","update_version","value","v","#source","source","sources","s","ret","get","callbackfn","this_arg","#read_all","prev_res","res","version","set","increment","v_reactions","needs_version_increase","r","box","initialValue","current","$.state","$.proxy","BoxSymbol","isWritableSymbol","$.set","boxFrom","boxWith","boxFlatten","toReadonlyBox","isBox","isWritableBox","defaultWindow","getActiveElement","document","activeElement","ActiveElement","options","window","#document","createSubscriber","update","cleanupFocusIn","on","cleanupFocusOut","isFunction","Context","#name","#key","name","hasContext","context","getContext","fallback","setContext","runEffect","flush","effect","$.user_effect","$.user_pre_effect","runWatcher","lazy","active","previousValues","values","cleanup","untrack","watch","watchPre","ElementSize","#observed","#width","$.get","#height","#subscribe","node$","observer","#window","entries","entry","boxSize","#options","boxSizeArr","acc","size","#node","element","offsetWidth","offsetHeight","style","paddingWidth","paddingHeight","borderWidth","borderHeight","contentWidth","contentHeight","onDestroyEffect","fn","afterSleep","ms","cb","afterTick","tick","ELEMENT_NODE","DOCUMENT_NODE","DOCUMENT_FRAGMENT_NODE","isHTMLElement","isObject","isDocument","isWindow","isNode","isShadowRoot","contains","parent","child","rootNode","next","getDocument","getWindow","el","DOMContext","id","selector","callback","delay","timeoutId","ALT","ARROW_DOWN","ARROW_LEFT","ARROW_RIGHT","ARROW_UP","BACKSPACE","CAPS_LOCK","CONTROL","END","ENTER","ESCAPE","F1","F10","F11","F12","F2","F3","F4","F5","F6","F7","F8","F9","HOME","META","PAGE_DOWN","PAGE_UP","SHIFT","SPACE","TAB","getElemDirection","elem","getNextKey","dir","orientation","kbd.ARROW_LEFT","kbd.ARROW_RIGHT","kbd.ARROW_DOWN","getPrevKey","kbd.ARROW_UP","getDirectionalKeys","isBrowser","isIOS","getIsIOS","isElement","isElementOrSVGElement","isFocusVisible","isNotNull","isSelectableInput","RovingFocusGroup","#opts","#currentTabStopId","opts","items","e","both","currentIndex","nextKey","prevKey","loop","keyToIndex","kbd.HOME","kbd.END","altNextKey","altPrevKey","itemIndex","itemToFocus","anyActive","currentTabStopId","currentTabStop","AnimationsComplete","#currentFrame","#cleanup","#executeCallback","animations","animation","execute","PresenceManager","isOpen","#shouldRender","#afterAnimations","noop","BitsConfigContext","getBitsConfig","BitsConfigState","resolveConfigOption","createConfigResolver","config","currentOpts","getter","createPropResolver","configOption","getProp","propValue","option","resolveLocaleProp","resolvePortalToProp","to","$$props","getAllContexts","target","getTarget","localTarget","instance","unmountInstance","unmount","disabled","mount","PortalConsumer","CustomEventDispatcher","eventName","detail","event","handler","debounce","wait","timeout","debounced","args","isOrContainsTarget","getOwnerDocument","isClickTrulyOutside","contentNode","clientX","clientY","rect","SELECTION_KEYS","kbd.ENTER","kbd.SPACE","FIRST_KEYS","kbd.PAGE_UP","LAST_KEYS","kbd.PAGE_DOWN","FIRST_LAST_KEYS","SUB_OPEN_KEYS","SUB_CLOSE_KEYS","isMouseEvent","focus","select","doc","previouslyFocusedElement","focusFirst","candidates","candidate","candidateSelectors","candidateSelector","NoElement","matches","getRootNode","_element$getRootNode","_isInert","lookUp","_node$getAttribute","inertAtt","inert","result","isContentEditable","_node$getAttribute2","attValue","getCandidates","includeContainer","filter","_getCandidatesIteratively","elements","elementsToCheck","assigned","content","nestedCandidates","validCandidate","shadowRoot","validShadowRoot","_nestedCandidates","hasTabIndex","getTabIndex","getSortOrderTabIndex","isScope","tabIndex","sortOrderedTabbables","a","b","isInput","isHiddenInput","isDetailsWithSummary","getCheckedRadio","nodes","form","i","isTabbableRadio","radioScope","queryRadios","radioSet","err","checked","isRadio","isNonTabbableRadio","isNodeAttached","_nodeRoot","nodeRoot","nodeRootHost","attached","_nodeRootHost","_nodeRootHost$ownerDo","_node$ownerDocument","_nodeRoot2","_nodeRootHost2","_nodeRootHost2$ownerD","isZeroArea","_node$getBoundingClie","width","height","isHidden","_ref","displayCheck","getShadowRoot","visible","isDirectSummary","nodeUnderDetails","originalNode","parentElement","isDisabledFromFieldset","parentNode","isNodeMatchingSelectorFocusable","isNodeMatchingSelectorTabbable","isShadowRootTabbable","shadowHostNode","_sortByOrder","regularTabbables","orderedTabbables","item","candidateTabindex","sortable","tabbable","container","focusable","isTabbable","focusableCandidateSelector","isFocusable","getTabbableOptions","getTabbableFrom","currentNode","direction","getTabbableFromFocusable","allTabbable","activeIndex","allFocusable","chunk","arr","isValidIndex","index","array","prev","forward","targetIndex","backward","decrement","getNextMatch","search","currentMatch","lowerSearch","searchWithoutSpace","currentMatchLowercase","spacedMatches","currentMatchIndex","wrapArray","match","normalizedSearch","char","normalizedLowerSearch","wrappedValues","nextMatch","startIndex","_","defaultOptions","boxAutoReset","defaultValue","afterMs","onChange","resetAfter","DOMTypeahead","#onMatch","#getCurrentItem","#search","currentItem","newItem","GraceArea","#enabled","$.derived","#isPointerInTransit","triggerNode","enabled","handleTriggerLeave","#createGraceArea","handleContentLeave","executeCallbacks","#pointerGraceArea","handleTrackPointerGrace","pointerPosition","hasEnteredTarget","isPointerOutsideGraceArea","isPointInPolygon","#removeGraceArea","hoverTarget","currentTarget","exitPoint","exitSide","getExitSideFromRect","paddedExitPoints","getPaddedExitPoints","hoverTargetPoints","getPointsFromRect","graceArea","getHull","point","top","bottom","right","left","padding","tipPadding","polygon","x","y","inside","j","xi","yi","xj","yj","points","newPoints","getHullPresorted","upperHull","p","q","lowerHull","CONTEXT_MENU_TRIGGER_ATTR","CONTEXT_MENU_CONTENT_ATTR","MenuRootContext","MenuMenuContext","MenuContentContext","MenuGroupContext","MenuOpenEvent","menuAttrs","createBitsAttrs","MenuRootState","root","IsUsingKeyboard","#ignoreCloseAutoFocus","part","MenuMenuState","#contentNode","#triggerNode","parentMenu","MenuContentState","#timer","#mounted","attachRef","#handleTypeaheadSearch","#getCandidateNodes","#isPointerMovingToSubmenu","rootMenu","nodeToFocus","kbd.TAB","isKeydownInside","isModifierKey","isCharacterKey","candidateNodes","triggerId","getDataOpenClosed","MenuItemSharedState","#isFocused","boolToStr","boolToEmptyStrOrUndef","MenuItemState","#isPointerDown","#handleSelect","selectEvent","isTypingAhead","#props","mergeProps","MenuSubTriggerState","submenu","#openTimer","#clearOpenTimer","MenuGroupState","#groupHeadingId","MenuSeparatorState","DropdownMenuTriggerState","#ariaControls","MenuSubmenuState","menu","DismissibleLayerState","#isResponsibleLayer","#isFocusInsideDOMTree","#documentObj","#unsubClickListener","#behaviorType","#interactOutsideProp","#onFocusOutside","unsubEvents","#handleInteractOutside","#addEventListeners","#resetState","#isTargetWithinLayer","#markInterceptedEvent","#markResponsibleLayer","#markNonInterceptedEvent","#handleFocus","createWrappedEvent","isEventValid","isValidEvent","#handleDismiss","isResponsibleLayer","eventType","#interceptedEvents","#isAnyEventIntercepted","#onfocuscapture","#onblurcapture","getTopMostDismissableLayer","layersArr","behaviorType","topMostLayer","firstLayerNode","targetIsContextMenuTrigger","nodeIsContextMenu","capturedCurrentTarget","capturedTarget","newEvent","isPrevented","prop","interactOutsideBehavior","onInteractOutside","onFocusOutside","dismissibleLayerState","EscapeLayerState","#addEventListener","#onkeydown","kbd.ESCAPE","isResponsibleEscapeLayer","clonedEvent","escapeKeydownBehavior","onEscapeKeydown","FocusScopeManager","#scopeStack","simpleBox","#focusHistory","#preFocusHistory","scope","FocusScope","#paused","#container","#cleanupFns","#manager","#handleOpenAutoFocus","firstTabbable","#getFirstTabbable","#handleCloseAutoFocus","preFocusedElement","#setupEventListeners","handleFocus","lastFocused","firstFocusable","#getAllFocusables","handleKeydown","tabbables","#getTabbables","first","last","elementToFocus","ref","trapFocus","onCloseAutoFocus","onOpenAutoFocus","focusScopeState","TextSelectionLayerState","#unsubSelectionLock","isEnabled","#pointerdown","composeHandlers","#resetSelectionLock","isHighestLayer","preventTextSelectionOverflow","getUserSelect","body","originalBodyUserSelect","originalNodeUserSelect","setUserSelect","highestLayer","preventOverflowTextSelection","onPointerDown","onPointerUp","useId","prefix","SharedState","#subscribers","#state","factory","#factory","#dispose","#scope","$.effect_root","lockMap","initialBodyStyle","stopTouchMoveListener","cleanupTimeoutId","isInCleanupTransition","anyLocked","cleanupScheduledAt","bodyLockStackCount","resetBodyStyle","cancelPendingCleanup","scheduleCleanupIfNoNewLocks","currentCleanupId","cleanupFn","isAnyLocked","actualDelay","ensureInitialStyleCaptured","bodyStyle","verticalScrollbarWidth","BodyScrollLock","#id","#restoreScrollDelay","initialState","restoreScrollDelay","#initialState","#countState","map","preventScroll","sides","min","max","round","floor","createCoords","oppositeSideMap","oppositeAlignmentMap","clamp","start","end","evaluate","param","getSide","placement","getAlignment","getOppositeAxis","axis","getAxisLength","yAxisSides","getSideAxis","getAlignmentAxis","getAlignmentSides","rects","rtl","alignment","alignmentAxis","length","mainAlignmentSide","getOppositePlacement","getExpandedPlacements","oppositePlacement","getOppositeAlignmentPlacement","lrPlacement","rlPlacement","tbPlacement","btPlacement","getSideList","side","isStart","getOppositeAxisPlacements","flipAlignment","list","expandPaddingObject","getPaddingObject","rectToClientRect","computeCoordsFromPlacement","reference","floating","sideAxis","alignLength","isVertical","commonX","commonY","commonAlign","coords","computePosition","strategy","middleware","platform","validMiddleware","statefulPlacement","middlewareData","resetCount","nextX","nextY","data","reset","detectOverflow","_await$platform$isEle","boundary","rootBoundary","elementContext","altBoundary","paddingObject","clippingClientRect","offsetParent","offsetScale","elementClientRect","arrow","arrowDimensions","isYAxis","minProp","maxProp","clientProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","largestPossiblePadding","minPadding","maxPadding","min$1","center","offset","shouldAddOffset","alignmentOffset","flip","_middlewareData$arrow","_middlewareData$flip","initialPlacement","checkMainAxis","checkCrossAxis","specifiedFallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","detectOverflowOptions","initialSideAxis","isBasePlacement","fallbackPlacements","hasFallbackAxisSideDirection","placements","overflow","overflows","overflowsData","_middlewareData$flip2","_overflowsData$filter","nextIndex","nextPlacement","d","resetPlacement","_overflowsData$filter2","currentSideAxis","getSideOffsets","isAnySideFullyClipped","hide","offsets","originSides","convertValueToCoords","mainAxisMulti","crossAxisMulti","rawValue","mainAxis","crossAxis","_middlewareData$offse","diffCoords","shift","limiter","mainAxisCoord","crossAxisCoord","minSide","maxSide","limitedCoords","limitShift","rawOffset","computedOffset","len","limitMin","limitMax","_middlewareData$offse2","isOriginSide","_state$middlewareData","_state$middlewareData2","apply","heightSide","widthSide","maximumClippingHeight","maximumClippingWidth","overflowAvailableHeight","overflowAvailableWidth","noShift","availableHeight","availableWidth","xMin","xMax","yMin","yMax","nextDimensions","hasWindow","getNodeName","getDocumentElement","invalidOverflowDisplayValues","isOverflowElement","overflowX","overflowY","display","getComputedStyle","tableElements","isTableElement","topLayerSelectors","isTopLayer","transformProperties","willChangeValues","containValues","isContainingBlock","elementOrCss","webkit","isWebKit","css","getContainingBlock","getParentNode","isLastTraversableNode","lastTraversableNodeNames","getNodeScroll","getNearestOverflowAncestor","getOverflowAncestors","traverseIframes","_node$ownerDocument2","scrollableAncestor","isBody","win","frameElement","getFrameElement","getCssDimensions","getComputedStyle$1","hasOffset","shouldFallback","unwrapElement","getScale","domElement","$","noOffsets","getVisualOffsets","shouldAddVisualOffsets","isFixed","floatingOffsetParent","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scale","visualOffsets","offsetWin","currentWin","currentIFrame","iframeScale","iframeRect","getWindowScrollBarX","leftScroll","getHTMLOffset","documentElement","scroll","htmlRect","convertOffsetParentRelativeRectToViewportRelativeRect","topLayer","isOffsetParentAnElement","offsetRect","htmlOffset","getClientRects","getDocumentRect","html","SCROLLBAR_MAX","getViewportRect","visualViewport","visualViewportBased","windowScrollbarX","bodyStyles","bodyMarginInline","clippingStableScrollbarWidth","absoluteOrFixed","getInnerBoundingClientRect","getClientRectFromClippingAncestor","clippingAncestor","hasFixedPositionAncestor","stopNode","getClippingElementAncestors","cache","cachedResult","currentContainingBlockComputedStyle","elementIsFixed","computedStyle","currentNodeIsContaining","ancestor","getClippingRect","clippingAncestors","firstClippingAncestor","clippingRect","accRect","getDimensions","getRectRelativeToOffsetParent","setLeftRTLScrollbarOffset","isStaticPositioned","getTrueOffsetParent","polyfill","rawOffsetParent","getOffsetParent","svgOffsetParent","getElementRects","getOffsetParentFn","getDimensionsFn","floatingDimensions","isRTL","rectsAreEqual","observeMove","onMove","io","_io","refresh","skip","threshold","elementRectForRootMargin","insetTop","insetRight","insetBottom","insetLeft","isFirstUpdate","handleObserve","ratio","autoUpdate","ancestorScroll","ancestorResize","elementResize","layoutShift","animationFrame","referenceEl","ancestors","cleanupIo","reobserveFrame","resizeObserver","firstEntry","_resizeObserver","frameId","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","offset$1","shift$1","flip$1","size$1","hide$1","arrow$1","limitShift$1","mergedOptions","platformWithCache","computePosition$1","valueOrGetValue","getDPR","roundByDPR","dpr","getFloatingContentCSSVars","useFloating","whileElementsMountedOption","openOption","middlewareOption","transformOption","placementOption","strategyOption","sideOffsetOption","alignOffsetOption","isPositioned","floatingStyles","xVal","yVal","whileElementsMountedCleanup","position","maxExpectedOffset","attach","OPPOSITE_SIDE","FloatingRootContext","FloatingContentContext","FloatingTooltipRootContext","FloatingRootState","tooltip","FloatingContentState","#transformedStyle","cssToStyleObj","#updatePositionStrategy","#arrowWidth","#arrowSize","#arrowHeight","#hasExplicitBoundaries","#boundary","anchorWidth","anchorHeight","#availableWidth","#availableHeight","#anchorWidth","#anchorHeight","transformOrigin","#placedSide","getSideFromPlacement","#placedAlign","getAlignFromPlacement","styleToString","customAnchor","#desiredPlacement","FloatingArrowState","FloatingAnchorState","isArrowHidden","arrowWidth","arrowHeight","placedSide","placedAlign","getSideAndAlignFromPlacement","noArrowAlign","arrowXCenter","arrowYCenter","align","sideOffset","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","$.prop","collisionPadding","hideWhenDetached","onPlaced","sticky","updatePositionStrategy","wrapperId","contentState","mergedProps","$.snippet","$.noop","onMount","isStatic","restProps","$.rest_props","FloatingLayerContentStatic","$$anchor","FloatingLayerContent","$.spread_props","$$render","consequent","alternate","PopperContent","$$arg0","floatingProps","wrapperProps","ScrollLock","consequent_1","node_2","focusScopeProps","EscapeLayer","DismissibleLayer","dismissibleProps","TextSelectionLayer","PopperLayerInner","isUsingKeyboard","callbacksToDispose","handlePointer"],"mappings":"wkBAaO,SAASA,GAAIC,EAAMC,EAASC,EAAW,CACzCC,IACHC,GAAY,EAGb,IAAIC,EAAW,IAAIC,GAAcN,CAAI,EAEjCO,EAAS,CAACC,GAAQ,EAEtBC,GAAM,IAAM,CACX,IAAIV,EAAME,EAAO,EAGbM,GAAUR,IAAQ,MAAQ,OAAOA,GAAQ,WAC5CA,EAAwB,CAAA,GAGzBM,EAAS,OAAON,EAAKG,CAAS,CAC/B,CAAC,CACF,CCoBO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CACrC,QAAS,EAAI,CAAA,CAAA,EAGV1K,MAAoB0pB,CAAkB,CACjD,CAAC,GAELrmB,GAAgB,YACH,CACTA,GAAgB,QACZA,GAAgB,QAAU,IAC1B/b,EAAAmiC,GAAkB,EAAK,EACvBpmB,GAAgB,WAAQ,EAEhC,EACH,CACL,CACI,IAAA,SAAU,UACHomB,EAAe,CAC1B,KACI,QAAQ7jC,EAAO,CACf0B,EAAAmiC,GAAkB7jC,EAAK,EAAA,CAC3B,CACJ","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/BLztqFjH.js b/backend/static/frontend/_app/immutable/chunks/Cjl85b3B.js
similarity index 85%
rename from backend/static/frontend/_app/immutable/chunks/BLztqFjH.js
rename to backend/static/frontend/_app/immutable/chunks/Cjl85b3B.js
index 5b3dc32a..73e8cc87 100644
--- a/backend/static/frontend/_app/immutable/chunks/BLztqFjH.js
+++ b/backend/static/frontend/_app/immutable/chunks/Cjl85b3B.js
@@ -1 +1 @@
-import{p as t,i as k,r as F,s as x}from"./DMODTt3n.js";import{K as oe,p as D,d as g,c as m,b as d,a as I,m as S,g as _,u as M,f as ee,e as j,o as Q,r as B}from"./B2WdN-7r.js";import{c as U}from"./BAcG0-U_.js";import{n as V,h as ue,j as ce,l as fe,F as ve,m as pe,d as ge,e as me,g as de,D as he,a as _e,b as be}from"./CAQEdoSh.js";import{c as se,b as h,m as N}from"./DWAABZDo.js";import{b as T,d as ie}from"./DH0tcjsQ.js";var Pe=ee("<div><!></div>");function we(u,e){const r=oe();D(e,!0);let n=t(e,"ref",15,null),a=t(e,"id",19,()=>se(r)),s=t(e,"disabled",3,!1),f=t(e,"onSelect",3,V),v=t(e,"closeOnSelect",3,!0),i=F(e,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]);const w=ue.create({id:h(()=>a()),disabled:h(()=>s()),onSelect:h(()=>f()),ref:h(()=>n(),b=>n(b)),closeOnSelect:h(()=>v())}),p=M(()=>N(i,w.props));var y=g(),o=m(y);{var z=b=>{var c=g(),P=m(c);S(P,()=>e.child,()=>({props:_(p)})),d(b,c)},A=b=>{var c=Pe();T(c,()=>({..._(p)}));var P=j(c);S(P,()=>e.children??Q),B(c),d(b,c)};k(o,b=>{e.child?b(z):b(A,!1)})}d(u,y),I()}function ye(u,e){D(e,!0);let r=t(e,"open",15,!1),n=t(e,"dir",3,"ltr"),a=t(e,"onOpenChange",3,V),s=t(e,"onOpenChangeComplete",3,V),f=t(e,"_internal_variant",3,"dropdown-menu");const v=ce.create({variant:h(()=>f()),dir:h(()=>n()),onClose:()=>{r(!1),a()(!1)}});fe.create({open:h(()=>r(),i=>{r(i),a()(i)}),onOpenChangeComplete:h(()=>s())},v),ve(u,{children:(i,w)=>{var p=g(),y=m(p);S(y,()=>e.children??Q),d(i,p)},$$slots:{default:!0}}),I()}var Oe=ee("<div><div><!></div></div>"),Ce=ee("<div><div><!></div></div>");function Me(u,e){const r=oe();D(e,!0);let n=t(e,"id",19,()=>se(r)),a=t(e,"ref",15,null),s=t(e,"loop",3,!0),f=t(e,"onInteractOutside",3,V),v=t(e,"onEscapeKeydown",3,V),i=t(e,"onCloseAutoFocus",3,V),w=t(e,"forceMount",3,!1),p=t(e,"trapFocus",3,!1),y=F(e,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus"]);const o=pe.create({id:h(()=>n()),loop:h(()=>s()),ref:h(()=>a(),l=>a(l)),onCloseAutoFocus:h(()=>i())}),z=M(()=>N(y,o.props));function A(l){if(o.handleInteractOutside(l),!l.defaultPrevented&&(f()(l),!l.defaultPrevented)){if(l.target&&l.target instanceof Element){const q=`[${o.parentMenu.root.getBitsAttr("sub-content")}]`;if(l.target.closest(q))return}o.parentMenu.onClose()}}function b(l){v()(l),!l.defaultPrevented&&o.parentMenu.onClose()}var c=g(),P=m(c);{var W=l=>{ge(l,x(()=>_(z),()=>o.popperProps,{get ref(){return o.opts.ref},get enabled(){return o.parentMenu.opts.open.current},onInteractOutside:A,onEscapeKeydown:b,get trapFocus(){return p()},get loop(){return s()},forceMount:!0,get id(){return n()},get shouldRender(){return o.shouldRender},popper:(te,X)=>{let G=()=>X?.().props,re=()=>X?.().wrapperProps;const Y=M(()=>N(G(),{style:de("dropdown-menu")}));var H=g(),ne=m(H);{var Z=O=>{var C=g(),E=m(C);{let J=M(()=>({props:_(Y),wrapperProps:re(),...o.snippetProps}));S(E,()=>e.child,()=>_(J))}d(O,C)},$=O=>{var C=Oe();T(C,()=>({...re()}));var E=j(C);T(E,()=>({..._(Y)}));var J=j(E);S(J,()=>e.children??Q),B(E),B(C),d(O,C)};k(ne,O=>{e.child?O(Z):O($,!1)})}d(te,H)},$$slots:{popper:!0}}))},le=l=>{var q=g(),te=m(q);{var X=G=>{me(G,x(()=>_(z),()=>o.popperProps,{get ref(){return o.opts.ref},get open(){return o.parentMenu.opts.open.current},onInteractOutside:A,onEscapeKeydown:b,get trapFocus(){return p()},get loop(){return s()},forceMount:!1,get id(){return n()},get shouldRender(){return o.shouldRender},popper:(Y,H)=>{let ne=()=>H?.().props,Z=()=>H?.().wrapperProps;const $=M(()=>N(ne(),{style:de("dropdown-menu")}));var O=g(),C=m(O);{var E=R=>{var K=g(),L=m(K);{let ae=M(()=>({props:_($),wrapperProps:Z(),...o.snippetProps}));S(L,()=>e.child,()=>_(ae))}d(R,K)},J=R=>{var K=Ce();T(K,()=>({...Z()}));var L=j(K);T(L,()=>({..._($)}));var ae=j(L);S(ae,()=>e.children??Q),B(L),B(K),d(R,K)};k(C,R=>{e.child?R(E):R(J,!1)})}d(Y,O)},$$slots:{popper:!0}}))};k(te,G=>{w()||G(X)},!0)}d(l,q)};k(P,l=>{w()?l(W):l(le,!1)})}d(u,c),I()}var Se=ee("<button><!></button>");function xe(u,e){const r=oe();D(e,!0);let n=t(e,"id",19,()=>se(r)),a=t(e,"ref",15,null),s=t(e,"disabled",3,!1),f=t(e,"type",3,"button"),v=F(e,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const i=he.create({id:h(()=>n()),disabled:h(()=>s()??!1),ref:h(()=>a(),p=>a(p))}),w=M(()=>N(v,i.props,{type:f()}));_e(u,{get id(){return n()},get ref(){return i.opts.ref},children:(p,y)=>{var o=g(),z=m(o);{var A=c=>{var P=g(),W=m(P);S(W,()=>e.child,()=>({props:_(w)})),d(c,P)},b=c=>{var P=Se();T(P,()=>({..._(w)}));var W=j(P);S(W,()=>e.children??Q),B(P),d(c,P)};k(z,c=>{e.child?c(A):c(b,!1)})}d(p,o)},$$slots:{default:!0}}),I()}function Re(u,e){D(e,!0);let r=t(e,"open",15,!1),n=F(e,["$$slots","$$events","$$legacy","open"]);var a=g(),s=m(a);U(s,()=>ye,(f,v)=>{v(f,x(()=>n,{get open(){return r()},set open(i){r(i)}}))}),d(u,a),I()}function Fe(u,e){let r=F(e,["$$slots","$$events","$$legacy"]);var n=g(),a=m(n);U(a,()=>be,(s,f)=>{f(s,x(()=>r))}),d(u,n)}function ke(u,e){D(e,!0);let r=t(e,"ref",15,null),n=t(e,"sideOffset",3,4),a=F(e,["$$slots","$$events","$$legacy","ref","sideOffset","portalProps","class"]);Fe(u,x(()=>e.portalProps,{children:(s,f)=>{var v=g(),i=m(v);{let w=M(()=>ie("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--bits-dropdown-menu-content-available-height) min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md outline-none",e.class));U(i,()=>Me,(p,y)=>{y(p,x({"data-slot":"dropdown-menu-content",get sideOffset(){return n()},get class(){return _(w)}},()=>a,{get ref(){return r()},set ref(o){r(o)}}))})}d(s,v)},$$slots:{default:!0}})),I()}function je(u,e){D(e,!0);let r=t(e,"ref",15,null),n=t(e,"variant",3,"default"),a=F(e,["$$slots","$$events","$$legacy","ref","class","inset","variant"]);var s=g(),f=m(s);{let v=M(()=>ie("data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e.class));U(f,()=>we,(i,w)=>{w(i,x({"data-slot":"dropdown-menu-item",get"data-inset"(){return e.inset},get"data-variant"(){return n()},get class(){return _(v)}},()=>a,{get ref(){return r()},set ref(p){r(p)}}))})}d(u,s),I()}function Be(u,e){D(e,!0);let r=t(e,"ref",15,null),n=F(e,["$$slots","$$events","$$legacy","ref"]);var a=g(),s=m(a);U(s,()=>xe,(f,v)=>{v(f,x({"data-slot":"dropdown-menu-trigger"},()=>n,{get ref(){return r()},set ref(i){r(i)}}))}),d(u,a),I()}export{Re as D,Be as a,ke as b,je as c};
+import{p as t,i as k,r as F,s as x}from"./DMODTt3n.js";import{K as oe,p as D,d as g,c as m,b as d,a as I,m as S,g as _,u as M,f as ee,e as j,o as Q,r as B}from"./B2WdN-7r.js";import{c as U}from"./BAcG0-U_.js";import{n as V,h as ue,j as ce,l as fe,F as ve,m as pe,d as ge,e as me,g as de,D as he,a as _e,P as Pe}from"./CjLH05gQ.js";import{c as se,b as h,m as N}from"./BDd6-VcB.js";import{b as T,d as ie}from"./DH0tcjsQ.js";var be=ee("<div><!></div>");function we(u,e){const r=oe();D(e,!0);let n=t(e,"ref",15,null),a=t(e,"id",19,()=>se(r)),s=t(e,"disabled",3,!1),f=t(e,"onSelect",3,V),v=t(e,"closeOnSelect",3,!0),i=F(e,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]);const w=ue.create({id:h(()=>a()),disabled:h(()=>s()),onSelect:h(()=>f()),ref:h(()=>n(),P=>n(P)),closeOnSelect:h(()=>v())}),p=M(()=>N(i,w.props));var y=g(),o=m(y);{var z=P=>{var c=g(),b=m(c);S(b,()=>e.child,()=>({props:_(p)})),d(P,c)},A=P=>{var c=be();T(c,()=>({..._(p)}));var b=j(c);S(b,()=>e.children??Q),B(c),d(P,c)};k(o,P=>{e.child?P(z):P(A,!1)})}d(u,y),I()}function ye(u,e){D(e,!0);let r=t(e,"open",15,!1),n=t(e,"dir",3,"ltr"),a=t(e,"onOpenChange",3,V),s=t(e,"onOpenChangeComplete",3,V),f=t(e,"_internal_variant",3,"dropdown-menu");const v=ce.create({variant:h(()=>f()),dir:h(()=>n()),onClose:()=>{r(!1),a()(!1)}});fe.create({open:h(()=>r(),i=>{r(i),a()(i)}),onOpenChangeComplete:h(()=>s())},v),ve(u,{children:(i,w)=>{var p=g(),y=m(p);S(y,()=>e.children??Q),d(i,p)},$$slots:{default:!0}}),I()}var Oe=ee("<div><div><!></div></div>"),Ce=ee("<div><div><!></div></div>");function Me(u,e){const r=oe();D(e,!0);let n=t(e,"id",19,()=>se(r)),a=t(e,"ref",15,null),s=t(e,"loop",3,!0),f=t(e,"onInteractOutside",3,V),v=t(e,"onEscapeKeydown",3,V),i=t(e,"onCloseAutoFocus",3,V),w=t(e,"forceMount",3,!1),p=t(e,"trapFocus",3,!1),y=F(e,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus"]);const o=pe.create({id:h(()=>n()),loop:h(()=>s()),ref:h(()=>a(),l=>a(l)),onCloseAutoFocus:h(()=>i())}),z=M(()=>N(y,o.props));function A(l){if(o.handleInteractOutside(l),!l.defaultPrevented&&(f()(l),!l.defaultPrevented)){if(l.target&&l.target instanceof Element){const q=`[${o.parentMenu.root.getBitsAttr("sub-content")}]`;if(l.target.closest(q))return}o.parentMenu.onClose()}}function P(l){v()(l),!l.defaultPrevented&&o.parentMenu.onClose()}var c=g(),b=m(c);{var W=l=>{ge(l,x(()=>_(z),()=>o.popperProps,{get ref(){return o.opts.ref},get enabled(){return o.parentMenu.opts.open.current},onInteractOutside:A,onEscapeKeydown:P,get trapFocus(){return p()},get loop(){return s()},forceMount:!0,get id(){return n()},get shouldRender(){return o.shouldRender},popper:(te,X)=>{let G=()=>X?.().props,re=()=>X?.().wrapperProps;const Y=M(()=>N(G(),{style:de("dropdown-menu")}));var H=g(),ne=m(H);{var Z=O=>{var C=g(),E=m(C);{let J=M(()=>({props:_(Y),wrapperProps:re(),...o.snippetProps}));S(E,()=>e.child,()=>_(J))}d(O,C)},$=O=>{var C=Oe();T(C,()=>({...re()}));var E=j(C);T(E,()=>({..._(Y)}));var J=j(E);S(J,()=>e.children??Q),B(E),B(C),d(O,C)};k(ne,O=>{e.child?O(Z):O($,!1)})}d(te,H)},$$slots:{popper:!0}}))},le=l=>{var q=g(),te=m(q);{var X=G=>{me(G,x(()=>_(z),()=>o.popperProps,{get ref(){return o.opts.ref},get open(){return o.parentMenu.opts.open.current},onInteractOutside:A,onEscapeKeydown:P,get trapFocus(){return p()},get loop(){return s()},forceMount:!1,get id(){return n()},get shouldRender(){return o.shouldRender},popper:(Y,H)=>{let ne=()=>H?.().props,Z=()=>H?.().wrapperProps;const $=M(()=>N(ne(),{style:de("dropdown-menu")}));var O=g(),C=m(O);{var E=R=>{var K=g(),L=m(K);{let ae=M(()=>({props:_($),wrapperProps:Z(),...o.snippetProps}));S(L,()=>e.child,()=>_(ae))}d(R,K)},J=R=>{var K=Ce();T(K,()=>({...Z()}));var L=j(K);T(L,()=>({..._($)}));var ae=j(L);S(ae,()=>e.children??Q),B(L),B(K),d(R,K)};k(C,R=>{e.child?R(E):R(J,!1)})}d(Y,O)},$$slots:{popper:!0}}))};k(te,G=>{w()||G(X)},!0)}d(l,q)};k(b,l=>{w()?l(W):l(le,!1)})}d(u,c),I()}var Se=ee("<button><!></button>");function xe(u,e){const r=oe();D(e,!0);let n=t(e,"id",19,()=>se(r)),a=t(e,"ref",15,null),s=t(e,"disabled",3,!1),f=t(e,"type",3,"button"),v=F(e,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const i=he.create({id:h(()=>n()),disabled:h(()=>s()??!1),ref:h(()=>a(),p=>a(p))}),w=M(()=>N(v,i.props,{type:f()}));_e(u,{get id(){return n()},get ref(){return i.opts.ref},children:(p,y)=>{var o=g(),z=m(o);{var A=c=>{var b=g(),W=m(b);S(W,()=>e.child,()=>({props:_(w)})),d(c,b)},P=c=>{var b=Se();T(b,()=>({..._(w)}));var W=j(b);S(W,()=>e.children??Q),B(b),d(c,b)};k(z,c=>{e.child?c(A):c(P,!1)})}d(p,o)},$$slots:{default:!0}}),I()}function Re(u,e){D(e,!0);let r=t(e,"open",15,!1),n=F(e,["$$slots","$$events","$$legacy","open"]);var a=g(),s=m(a);U(s,()=>ye,(f,v)=>{v(f,x(()=>n,{get open(){return r()},set open(i){r(i)}}))}),d(u,a),I()}function Fe(u,e){let r=F(e,["$$slots","$$events","$$legacy"]);var n=g(),a=m(n);U(a,()=>Pe,(s,f)=>{f(s,x(()=>r))}),d(u,n)}function ke(u,e){D(e,!0);let r=t(e,"ref",15,null),n=t(e,"sideOffset",3,4),a=F(e,["$$slots","$$events","$$legacy","ref","sideOffset","portalProps","class"]);Fe(u,x(()=>e.portalProps,{children:(s,f)=>{var v=g(),i=m(v);{let w=M(()=>ie("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--bits-dropdown-menu-content-available-height) min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md outline-none",e.class));U(i,()=>Me,(p,y)=>{y(p,x({"data-slot":"dropdown-menu-content",get sideOffset(){return n()},get class(){return _(w)}},()=>a,{get ref(){return r()},set ref(o){r(o)}}))})}d(s,v)},$$slots:{default:!0}})),I()}function je(u,e){D(e,!0);let r=t(e,"ref",15,null),n=t(e,"variant",3,"default"),a=F(e,["$$slots","$$events","$$legacy","ref","class","inset","variant"]);var s=g(),f=m(s);{let v=M(()=>ie("data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e.class));U(f,()=>we,(i,w)=>{w(i,x({"data-slot":"dropdown-menu-item",get"data-inset"(){return e.inset},get"data-variant"(){return n()},get class(){return _(v)}},()=>a,{get ref(){return r()},set ref(p){r(p)}}))})}d(u,s),I()}function Be(u,e){D(e,!0);let r=t(e,"ref",15,null),n=F(e,["$$slots","$$events","$$legacy","ref"]);var a=g(),s=m(a);U(s,()=>xe,(f,v)=>{v(f,x({"data-slot":"dropdown-menu-trigger"},()=>n,{get ref(){return r()},set ref(i){r(i)}}))}),d(u,a),I()}export{Re as D,Be as a,ke as b,je as c};
diff --git a/backend/static/frontend/_app/immutable/chunks/BLztqFjH.js.map b/backend/static/frontend/_app/immutable/chunks/Cjl85b3B.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/BLztqFjH.js.map
rename to backend/static/frontend/_app/immutable/chunks/Cjl85b3B.js.map
index bfb866bd..dde3968d 100644
--- a/backend/static/frontend/_app/immutable/chunks/BLztqFjH.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/Cjl85b3B.js.map
@@ -1 +1 @@
-{"version":3,"file":"BLztqFjH.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-item.svelte","../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu.svelte","../../../../../../node_modules/bits-ui/dist/bits/dropdown-menu/components/dropdown-menu-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-trigger.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-portal.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuItemProps } from \"../types.js\";\n\timport { MenuItemState } from \"../menu.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchild,\n\t\tchildren,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tdisabled = false,\n\t\tonSelect = noop,\n\t\tcloseOnSelect = true,\n\t\t...restProps\n\t}: MenuItemProps = $props();\n\n\tconst itemState = MenuItemState.create({\n\t\tid: boxWith(() => id),\n\t\tdisabled: boxWith(() => disabled),\n\t\tonSelect: boxWith(() => onSelect),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tcloseOnSelect: boxWith(() => closeOnSelect),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, itemState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { MenuRootProps } from \"../types.js\";\n\timport { MenuMenuState, MenuRootState } from \"../menu.svelte.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tdir = \"ltr\",\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\t_internal_variant: variant = \"dropdown-menu\",\n\t\tchildren,\n\t}: MenuRootProps & {\n\t\t_internal_variant?: \"context-menu\" | \"dropdown-menu\" | \"menubar\";\n\t} = $props();\n\n\tconst root = MenuRootState.create({\n\t\tvariant: boxWith(() => variant),\n\t\tdir: boxWith(() => dir),\n\t\tonClose: () => {\n\t\t\topen = false;\n\t\t\tonOpenChange(false);\n\t\t},\n\t});\n\n\tMenuMenuState.create(\n\t\t{\n\t\t\topen: boxWith(\n\t\t\t\t() => open,\n\t\t\t\t(v) => {\n\t\t\t\t\topen = v;\n\t\t\t\t\tonOpenChange(v);\n\t\t\t\t}\n\t\t\t),\n\t\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t\t},\n\t\troot\n\t);\n</script>\n\n<FloatingLayer>\n\t{@render children?.()}\n</FloatingLayer>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { DropdownMenuContentProps } from \"../types.js\";\n\timport { MenuContentState } from \"../../menu/menu.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport PopperLayer from \"../../utilities/popper-layer/popper-layer.svelte\";\n\timport { getFloatingContentCSSVars } from \"../../../internal/floating-svelte/floating-utils.svelte.js\";\n\timport PopperLayerForceMount from \"../../utilities/popper-layer/popper-layer-force-mount.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tchild,\n\t\tchildren,\n\t\tref = $bindable(null),\n\t\tloop = true,\n\t\tonInteractOutside = noop,\n\t\tonEscapeKeydown = noop,\n\t\tonCloseAutoFocus = noop,\n\t\tforceMount = false,\n\t\ttrapFocus = false,\n\t\t...restProps\n\t}: DropdownMenuContentProps = $props();\n\n\tconst contentState = MenuContentState.create({\n\t\tid: boxWith(() => id),\n\t\tloop: boxWith(() => loop),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tonCloseAutoFocus: boxWith(() => onCloseAutoFocus),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n\n\tfunction handleInteractOutside(e: PointerEvent) {\n\t\tcontentState.handleInteractOutside(e);\n\t\tif (e.defaultPrevented) return;\n\t\tonInteractOutside(e);\n\t\tif (e.defaultPrevented) return;\n\n\t\t// don't close if the interaction is with a submenu content or items\n\t\tif (e.target && e.target instanceof Element) {\n\t\t\tconst subContentSelector = `[${contentState.parentMenu.root.getBitsAttr(\"sub-content\")}]`;\n\t\t\tif (e.target.closest(subContentSelector)) return;\n\t\t}\n\t\tcontentState.parentMenu.onClose();\n\t}\n\tfunction handleEscapeKeydown(e: KeyboardEvent) {\n\t\tonEscapeKeydown(e);\n\t\tif (e.defaultPrevented) return;\n\t\tcontentState.parentMenu.onClose();\n\t}\n</script>\n\n{#if forceMount}\n\t<PopperLayerForceMount\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\tenabled={contentState.parentMenu.opts.open.current}\n\t\tonInteractOutside={handleInteractOutside}\n\t\tonEscapeKeydown={handleEscapeKeydown}\n\t\t{trapFocus}\n\t\t{loop}\n\t\tforceMount={true}\n\t\t{id}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"dropdown-menu\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayerForceMount>\n{:else if !forceMount}\n\t<PopperLayer\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\topen={contentState.parentMenu.opts.open.current}\n\t\tonInteractOutside={handleInteractOutside}\n\t\tonEscapeKeydown={handleEscapeKeydown}\n\t\t{trapFocus}\n\t\t{loop}\n\t\tforceMount={false}\n\t\t{id}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"dropdown-menu\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayer>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuTriggerProps } from \"../types.js\";\n\timport { DropdownMenuTriggerState } from \"../menu.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport FloatingLayerAnchor from \"../../utilities/floating-layer/components/floating-layer-anchor.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tchildren,\n\t\tdisabled = false,\n\t\ttype = \"button\",\n\t\t...restProps\n\t}: MenuTriggerProps = $props();\n\n\tconst triggerState = DropdownMenuTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tdisabled: boxWith(() => disabled ?? false),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n<FloatingLayerAnchor {id} ref={triggerState.opts.ref}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<button {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</button>\n\t{/if}\n</FloatingLayerAnchor>\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet { open = $bindable(false), ...restProps }: DropdownMenuPrimitive.RootProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Root bind:open {...restProps} />\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: DropdownMenuPrimitive.PortalProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport DropdownMenuPortal from \"./dropdown-menu-portal.svelte\";\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport type { ComponentProps } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tsideOffset = 4,\n\t\tportalProps,\n\t\tclass: className,\n\t\t...restProps\n\t}: DropdownMenuPrimitive.ContentProps & {\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof DropdownMenuPortal>>;\n\t} = $props();\n</script>\n\n<DropdownMenuPortal {...portalProps}>\n\t<DropdownMenuPrimitive.Content\n\t\tbind:ref\n\t\tdata-slot=\"dropdown-menu-content\"\n\t\t{sideOffset}\n\t\tclass={cn(\n\t\t\t\"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--bits-dropdown-menu-content-available-height) min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md outline-none\",\n\t\t\tclassName\n\t\t)}\n\t\t{...restProps}\n\t/>\n</DropdownMenuPortal>\n","<script lang=\"ts\">\n\timport { cn } from \"$lib/utils.js\";\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tinset,\n\t\tvariant = \"default\",\n\t\t...restProps\n\t}: DropdownMenuPrimitive.ItemProps & {\n\t\tinset?: boolean;\n\t\tvariant?: \"default\" | \"destructive\";\n\t} = $props();\n</script>\n\n<DropdownMenuPrimitive.Item\n\tbind:ref\n\tdata-slot=\"dropdown-menu-item\"\n\tdata-inset={inset}\n\tdata-variant={variant}\n\tclass={cn(\n\t\t\"data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet { ref = $bindable(null), ...restProps }: DropdownMenuPrimitive.TriggerProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Trigger bind:ref data-slot=\"dropdown-menu-trigger\" {...restProps} />\n"],"names":["uid","$.props_id","ref","id","$.prop","$$props","createId","disabled","onSelect","noop","closeOnSelect","restProps","$.rest_props","itemState","MenuItemState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","open","dir","onOpenChange","onOpenChangeComplete","variant","root","MenuRootState","MenuMenuState","FloatingLayer","$$anchor","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","contentState","MenuContentState","handleInteractOutside","e","subContentSelector","handleEscapeKeydown","PopperLayerForceMount","$.spread_props","$.get","$$arg0","props","wrapperProps","finalProps","$.derived","getFloatingContentCSSVars","root_4","div_1","PopperLayer","div_2","root_9","div_3","$$render","consequent_3","consequent_1","alternate_2","type","triggerState","DropdownMenuTriggerState","FloatingLayerAnchor","button","root_3","DropdownMenuPrimitive_Root","$$value","DropdownMenuPrimitive_Portal","sideOffset","DropdownMenuPortal","$0","cn","DropdownMenuPrimitive_Content","DropdownMenuPrimitive_Item","DropdownMenuPrimitive_Trigger"],"mappings":"kdAAA,OAOOA,EAAGC,GAAA,UAKR,IAAAC,eAAgB,IAAI,EACpBC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,GAASN,CAAG,CAAA,EACjBO,mBAAW,EAAK,EAChBC,mBAAWC,CAAI,EACfC,w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CAAA,sCAGzC2E,gDAA6ErE,EAAS,KAAxD,KAAQ,iBAAR,IAAQ6D,EAAA,sBAFvC","x_google_ignoreList":[0,1,2,3]}
\ No newline at end of file
+{"version":3,"file":"Cjl85b3B.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-item.svelte","../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu.svelte","../../../../../../node_modules/bits-ui/dist/bits/dropdown-menu/components/dropdown-menu-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-trigger.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-portal.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuItemProps } from \"../types.js\";\n\timport { MenuItemState } from \"../menu.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchild,\n\t\tchildren,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tdisabled = false,\n\t\tonSelect = noop,\n\t\tcloseOnSelect = true,\n\t\t...restProps\n\t}: MenuItemProps = $props();\n\n\tconst itemState = MenuItemState.create({\n\t\tid: boxWith(() => id),\n\t\tdisabled: boxWith(() => disabled),\n\t\tonSelect: boxWith(() => onSelect),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tcloseOnSelect: boxWith(() => closeOnSelect),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, itemState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { MenuRootProps } from \"../types.js\";\n\timport { MenuMenuState, MenuRootState } from \"../menu.svelte.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tdir = \"ltr\",\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\t_internal_variant: variant = \"dropdown-menu\",\n\t\tchildren,\n\t}: MenuRootProps & {\n\t\t_internal_variant?: \"context-menu\" | \"dropdown-menu\" | \"menubar\";\n\t} = $props();\n\n\tconst root = MenuRootState.create({\n\t\tvariant: boxWith(() => variant),\n\t\tdir: boxWith(() => dir),\n\t\tonClose: () => {\n\t\t\topen = false;\n\t\t\tonOpenChange(false);\n\t\t},\n\t});\n\n\tMenuMenuState.create(\n\t\t{\n\t\t\topen: boxWith(\n\t\t\t\t() => open,\n\t\t\t\t(v) => {\n\t\t\t\t\topen = v;\n\t\t\t\t\tonOpenChange(v);\n\t\t\t\t}\n\t\t\t),\n\t\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t\t},\n\t\troot\n\t);\n</script>\n\n<FloatingLayer>\n\t{@render children?.()}\n</FloatingLayer>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { DropdownMenuContentProps } from \"../types.js\";\n\timport { MenuContentState } from \"../../menu/menu.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport PopperLayer from \"../../utilities/popper-layer/popper-layer.svelte\";\n\timport { getFloatingContentCSSVars } from \"../../../internal/floating-svelte/floating-utils.svelte.js\";\n\timport PopperLayerForceMount from \"../../utilities/popper-layer/popper-layer-force-mount.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tchild,\n\t\tchildren,\n\t\tref = $bindable(null),\n\t\tloop = true,\n\t\tonInteractOutside = noop,\n\t\tonEscapeKeydown = noop,\n\t\tonCloseAutoFocus = noop,\n\t\tforceMount = false,\n\t\ttrapFocus = false,\n\t\t...restProps\n\t}: DropdownMenuContentProps = $props();\n\n\tconst contentState = MenuContentState.create({\n\t\tid: boxWith(() => id),\n\t\tloop: boxWith(() => loop),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tonCloseAutoFocus: boxWith(() => onCloseAutoFocus),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n\n\tfunction handleInteractOutside(e: PointerEvent) {\n\t\tcontentState.handleInteractOutside(e);\n\t\tif (e.defaultPrevented) return;\n\t\tonInteractOutside(e);\n\t\tif (e.defaultPrevented) return;\n\n\t\t// don't close if the interaction is with a submenu content or items\n\t\tif (e.target && e.target instanceof Element) {\n\t\t\tconst subContentSelector = `[${contentState.parentMenu.root.getBitsAttr(\"sub-content\")}]`;\n\t\t\tif (e.target.closest(subContentSelector)) return;\n\t\t}\n\t\tcontentState.parentMenu.onClose();\n\t}\n\tfunction handleEscapeKeydown(e: KeyboardEvent) {\n\t\tonEscapeKeydown(e);\n\t\tif (e.defaultPrevented) return;\n\t\tcontentState.parentMenu.onClose();\n\t}\n</script>\n\n{#if forceMount}\n\t<PopperLayerForceMount\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\tenabled={contentState.parentMenu.opts.open.current}\n\t\tonInteractOutside={handleInteractOutside}\n\t\tonEscapeKeydown={handleEscapeKeydown}\n\t\t{trapFocus}\n\t\t{loop}\n\t\tforceMount={true}\n\t\t{id}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"dropdown-menu\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayerForceMount>\n{:else if !forceMount}\n\t<PopperLayer\n\t\t{...mergedProps}\n\t\t{...contentState.popperProps}\n\t\tref={contentState.opts.ref}\n\t\topen={contentState.parentMenu.opts.open.current}\n\t\tonInteractOutside={handleInteractOutside}\n\t\tonEscapeKeydown={handleEscapeKeydown}\n\t\t{trapFocus}\n\t\t{loop}\n\t\tforceMount={false}\n\t\t{id}\n\t\tshouldRender={contentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"dropdown-menu\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({ props: finalProps, wrapperProps, ...contentState.snippetProps })}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayer>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuTriggerProps } from \"../types.js\";\n\timport { DropdownMenuTriggerState } from \"../menu.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport FloatingLayerAnchor from \"../../utilities/floating-layer/components/floating-layer-anchor.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tchildren,\n\t\tdisabled = false,\n\t\ttype = \"button\",\n\t\t...restProps\n\t}: MenuTriggerProps = $props();\n\n\tconst triggerState = DropdownMenuTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tdisabled: boxWith(() => disabled ?? false),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n<FloatingLayerAnchor {id} ref={triggerState.opts.ref}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<button {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</button>\n\t{/if}\n</FloatingLayerAnchor>\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet { open = $bindable(false), ...restProps }: DropdownMenuPrimitive.RootProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Root bind:open {...restProps} />\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: DropdownMenuPrimitive.PortalProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport DropdownMenuPortal from \"./dropdown-menu-portal.svelte\";\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport type { ComponentProps } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tsideOffset = 4,\n\t\tportalProps,\n\t\tclass: className,\n\t\t...restProps\n\t}: DropdownMenuPrimitive.ContentProps & {\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof DropdownMenuPortal>>;\n\t} = $props();\n</script>\n\n<DropdownMenuPortal {...portalProps}>\n\t<DropdownMenuPrimitive.Content\n\t\tbind:ref\n\t\tdata-slot=\"dropdown-menu-content\"\n\t\t{sideOffset}\n\t\tclass={cn(\n\t\t\t\"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--bits-dropdown-menu-content-available-height) min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md outline-none\",\n\t\t\tclassName\n\t\t)}\n\t\t{...restProps}\n\t/>\n</DropdownMenuPortal>\n","<script lang=\"ts\">\n\timport { cn } from \"$lib/utils.js\";\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tinset,\n\t\tvariant = \"default\",\n\t\t...restProps\n\t}: DropdownMenuPrimitive.ItemProps & {\n\t\tinset?: boolean;\n\t\tvariant?: \"default\" | \"destructive\";\n\t} = $props();\n</script>\n\n<DropdownMenuPrimitive.Item\n\tbind:ref\n\tdata-slot=\"dropdown-menu-item\"\n\tdata-inset={inset}\n\tdata-variant={variant}\n\tclass={cn(\n\t\t\"data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet { ref = $bindable(null), ...restProps }: DropdownMenuPrimitive.TriggerProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Trigger bind:ref data-slot=\"dropdown-menu-trigger\" {...restProps} />\n"],"names":["uid","$.props_id","ref","id","$.prop","$$props","createId","disabled","onSelect","noop","closeOnSelect","restProps","$.rest_props","itemState","MenuItemState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","open","dir","onOpenChange","onOpenChangeComplete","variant","root","MenuRootState","MenuMenuState","FloatingLayer","$$anchor","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","contentState","MenuContentState","handleInteractOutside","e","subContentSelector","handleEscapeKeydown","PopperLayerForceMount","$.spread_props","$.get","$$arg0","props","wrapperProps","finalProps","$.derived","getFloatingContentCSSVars","root_4","div_1","PopperLayer","div_2","root_9","div_3","$$render","consequent_3","consequent_1","alternate_2","type","triggerState","DropdownMenuTriggerState","FloatingLayerAnchor","button","root_3","DropdownMenuPrimitive_Root","$$value","DropdownMenuPrimitive_Portal","sideOffset","DropdownMenuPortal","$0","cn","DropdownMenuPrimitive_Content","DropdownMenuPrimitive_Item","DropdownMenuPrimitive_Trigger"],"mappings":"kdAAA,OAOOA,EAAGC,GAAA,UAKR,IAAAC,eAAgB,IAAI,EACpBC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,GAASN,CAAG,CAAA,EACjBO,mBAAW,EAAK,EAChBC,mBAAWC,CAAI,EACfC,wBAAgB,EAAI,EACjBC,EAAAC,EAAAP,EAAA,6GAGEQ,EAAYC,GAAc,OAAM,CACrC,GAAIC,EAAO,IAAOZ,GAAE,EACpB,SAAUY,EAAO,IAAOR,GAAQ,EAChC,SAAUQ,EAAO,IAAOP,GAAQ,EAChC,IAAKO,EAAO,IACLb,EAAG,EACRc,GAAOd,EAAMc,CAAC,CAAA,EAEhB,cAAeD,EAAO,IAAOL,EAAa,CAAA,IAGrCO,QAAuBC,EAAWP,EAAWE,EAAU,KAAK,CAAA,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,gBAAiB,EAAK,EAAMb,EAASC,EAAAP,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,CAAA,sCAG3CkE,UAAyC5D,EAAS,KAAvB,MAAS,iBAAT,KAAS6D,EAAA,sBAFrC,iBCJA,KAGU7D,EAASC,EAAAP,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,sCAGlBoE,UAAiC9D,CAAS,CAAA,UAF3C,iBCJA,SAOE,IAAAT,eAAgB,IAAI,EACpBwE,qBAAa,CAAC,EAGX/D,EAAAC,EAAAP,EAAA,4EAMJsE,GAAkB1C,EAAAc,EAAA,IAAA1C,EAAA,YAAA,oCAKV,IAAAuE,EAAAvB,EAAA,IAAAwB,GACN,mkBAAkkBxE,EAAA,KAAA,CAAA,qBALnkByE,EAAsB7C,EAAAc,+DAGrB2B,EAAU,iCAKP/D,OAPJ,KAAK,iBAAL,IAAK6D,EAAA,+CAJP,iBCfA,SAKE,IAAAtE,eAAgB,IAAI,EAGpB0B,kBAAU,SAAS,EAChBjB,EAAAC,EAAAP,EAAA,qFAYG,IAAAuE,EAAAvB,EAAA,IAAAwB,GACN,qqBAAoqBxE,EAAA,KAAA,CAAA,qBANrqB0E,EAAsB9C,EAAAc,iGAIRnB,EAAO,iCAKjBjB,OARJ,KAAK,iBAAL,IAAK6D,EAAA,sBAHN,iBCdA,SAGO,IAAAtE,eAAgB,IAAI,EAAMS,EAASC,EAAAP,EAAA,CAAA,UAAA,WAAA,WAAA,KAAA,CAAA,sCAGzC2E,gDAA6ErE,EAAS,KAAxD,KAAQ,iBAAR,IAAQ6D,EAAA,sBAFvC","x_google_ignoreList":[0,1,2,3]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/BQmrPeqT.js b/backend/static/frontend/_app/immutable/chunks/CkVJuMBr.js
similarity index 98%
rename from backend/static/frontend/_app/immutable/chunks/BQmrPeqT.js
rename to backend/static/frontend/_app/immutable/chunks/CkVJuMBr.js
index 1ab9d68a..a8a136fa 100644
--- a/backend/static/frontend/_app/immutable/chunks/BQmrPeqT.js
+++ b/backend/static/frontend/_app/immutable/chunks/CkVJuMBr.js
@@ -1 +1 @@
-import{l as W,s as X,p as it,i as z}from"./DMODTt3n.js";import{d as h,c as l,b as e,p as dt,g as d,u as C,a as ct,f as g,e as D,n as ft,s as j,k as b,l as q,r as R,t as vt}from"./B2WdN-7r.js";import{c as m}from"./BAcG0-U_.js";import{d as V,c as J,a as K}from"./DH0tcjsQ.js";import{a as _t}from"./CEJkX7WU.js";import{b as L,T as O,a as Q}from"./2aB7Aq1L.js";import{B as ut}from"./C1aqwstW.js";import{I as Y,s as Z}from"./CQWqWi6p.js";import{A as mt,a as ht}from"./NCUZrEi6.js";function gt(P,t){const y=W(t,["children","$$slots","$$events","$$legacy"]);const p=[["path",{d:"m21 16-4 4-4-4"}],["path",{d:"M17 20V4"}],["path",{d:"m3 8 4-4 4 4"}],["path",{d:"M7 4v16"}]];Y(P,X({name:"arrow-up-down"},()=>y,{get iconNode(){return p},children:(T,x)=>{var c=h(),k=l(c);Z(k,t,"default",{},null),e(T,c)},$$slots:{default:!0}}))}function U(P,t){const y=W(t,["children","$$slots","$$events","$$legacy"]);const p=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]];Y(P,X({name:"circle-question-mark"},()=>y,{get iconNode(){return p},children:(T,x)=>{var c=h(),k=l(c);Z(k,t,"default",{},null),e(T,c)},$$slots:{default:!0}}))}var pt=g(" <!>",1),xt=g('<p class="text-xs"> </p>'),$t=g("<!> <!>",1),wt=g("<div><!> <!></div>"),bt=g('<p class="text-xs"> </p>'),Pt=g("<!> <!>",1),yt=g("<span> <!></span>");function qt(P,t){dt(t,!0);let y=it(t,"align",3,"left");const p=C(()=>t.sortField!==void 0&&t.onSort!==void 0),T=C(()=>d(p)&&t.currentSortField===t.sortField),x=C(()=>y()==="right");var c=h(),k=l(c);{let tt=C(()=>V(d(x)&&"text-right",t.class));m(k,()=>_t,(et,at)=>{at(et,{get class(){return d(tt)},children:(rt,Tt)=>{var H=h(),st=l(H);{var ot=$=>{var v=wt(),B=D(v);{let a=C(()=>V("h-8 font-medium",!d(x)&&"-ml-3"));ut(B,{variant:"ghost",size:"sm",get class(){return d(a)},onclick:()=>t.onSort?.(t.sortField),children:(r,S)=>{ft();var w=pt(),f=l(w),A=j(f);{var I=s=>{var _=h(),u=l(_);{var n=o=>{mt(o,{class:"ml-2 h-4 w-4"})},i=o=>{ht(o,{class:"ml-2 h-4 w-4"})};z(u,o=>{t.sortDirection==="desc"?o(n):o(i,!1)})}e(s,_)},F=s=>{gt(s,{class:"ml-2 h-4 w-4"})};z(A,s=>{d(T)?s(I):s(F,!1)})}b(()=>q(f,`${t.label??""} `)),e(r,w)},$$slots:{default:!0}})}var E=j(B,2);{var G=a=>{var r=h(),S=l(r);m(S,()=>L,(w,f)=>{f(w,{children:(A,I)=>{var F=$t(),s=l(F);m(s,()=>O,(u,n)=>{n(u,{children:(i,o)=>{U(i,{class:"h-3.5 w-3.5 text-muted-foreground/60"})},$$slots:{default:!0}})});var _=j(s,2);m(_,()=>Q,(u,n)=>{n(u,{children:(i,o)=>{var M=xt(),N=D(M,!0);R(M),b(()=>q(N,t.tooltip)),e(i,M)},$$slots:{default:!0}})}),e(A,F)},$$slots:{default:!0}})}),e(a,r)};z(E,a=>{t.tooltip&&a(G)})}R(v),b(a=>K(v,1,a),[()=>J(V("flex items-center",d(x)&&"justify-end gap-1.5"))]),e($,v)},lt=$=>{var v=h(),B=l(v);{var E=a=>{var r=yt(),S=D(r),w=j(S);m(w,()=>L,(f,A)=>{A(f,{children:(I,F)=>{var s=Pt(),_=l(s);m(_,()=>O,(n,i)=>{i(n,{children:(o,M)=>{U(o,{class:"h-3.5 w-3.5 text-muted-foreground/60"})},$$slots:{default:!0}})});var u=j(_,2);m(u,()=>Q,(n,i)=>{i(n,{children:(o,M)=>{var N=bt(),nt=D(N,!0);R(N),b(()=>q(nt,t.tooltip)),e(o,N)},$$slots:{default:!0}})}),e(I,s)},$$slots:{default:!0}})}),R(r),b(f=>{K(r,1,f),q(S,`${t.label??""} `)},[()=>J(V("flex items-center gap-1.5",d(x)&&"justify-end"))]),e(a,r)},G=a=>{var r=vt();b(()=>q(r,t.label)),e(a,r)};z(B,a=>{t.tooltip?a(E):a(G,!1)},!0)}e($,v)};z(st,$=>{d(p)?$(ot):$(lt,!1)})}e(rt,H)},$$slots:{default:!0}})})}e(P,c),ct()}export{U as C,qt as T};
+import{l as W,s as X,p as it,i as z}from"./DMODTt3n.js";import{d as h,c as l,b as e,p as dt,g as d,u as C,a as ct,f as g,e as D,n as ft,s as j,k as b,l as q,r as R,t as vt}from"./B2WdN-7r.js";import{c as m}from"./BAcG0-U_.js";import{d as V,c as J,a as K}from"./DH0tcjsQ.js";import{a as _t}from"./CEJkX7WU.js";import{b as L,T as O,a as Q}from"./5D-Broyu.js";import{B as ut}from"./C1aqwstW.js";import{I as Y,s as Z}from"./CQWqWi6p.js";import{A as mt,a as ht}from"./NCUZrEi6.js";function gt(P,t){const y=W(t,["children","$$slots","$$events","$$legacy"]);const p=[["path",{d:"m21 16-4 4-4-4"}],["path",{d:"M17 20V4"}],["path",{d:"m3 8 4-4 4 4"}],["path",{d:"M7 4v16"}]];Y(P,X({name:"arrow-up-down"},()=>y,{get iconNode(){return p},children:(T,x)=>{var c=h(),k=l(c);Z(k,t,"default",{},null),e(T,c)},$$slots:{default:!0}}))}function U(P,t){const y=W(t,["children","$$slots","$$events","$$legacy"]);const p=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]];Y(P,X({name:"circle-question-mark"},()=>y,{get iconNode(){return p},children:(T,x)=>{var c=h(),k=l(c);Z(k,t,"default",{},null),e(T,c)},$$slots:{default:!0}}))}var pt=g(" <!>",1),xt=g('<p class="text-xs"> </p>'),$t=g("<!> <!>",1),wt=g("<div><!> <!></div>"),bt=g('<p class="text-xs"> </p>'),Pt=g("<!> <!>",1),yt=g("<span> <!></span>");function qt(P,t){dt(t,!0);let y=it(t,"align",3,"left");const p=C(()=>t.sortField!==void 0&&t.onSort!==void 0),T=C(()=>d(p)&&t.currentSortField===t.sortField),x=C(()=>y()==="right");var c=h(),k=l(c);{let tt=C(()=>V(d(x)&&"text-right",t.class));m(k,()=>_t,(et,at)=>{at(et,{get class(){return d(tt)},children:(rt,Tt)=>{var H=h(),st=l(H);{var ot=$=>{var v=wt(),B=D(v);{let a=C(()=>V("h-8 font-medium",!d(x)&&"-ml-3"));ut(B,{variant:"ghost",size:"sm",get class(){return d(a)},onclick:()=>t.onSort?.(t.sortField),children:(r,S)=>{ft();var w=pt(),f=l(w),A=j(f);{var I=s=>{var _=h(),u=l(_);{var n=o=>{mt(o,{class:"ml-2 h-4 w-4"})},i=o=>{ht(o,{class:"ml-2 h-4 w-4"})};z(u,o=>{t.sortDirection==="desc"?o(n):o(i,!1)})}e(s,_)},F=s=>{gt(s,{class:"ml-2 h-4 w-4"})};z(A,s=>{d(T)?s(I):s(F,!1)})}b(()=>q(f,`${t.label??""} `)),e(r,w)},$$slots:{default:!0}})}var E=j(B,2);{var G=a=>{var r=h(),S=l(r);m(S,()=>L,(w,f)=>{f(w,{children:(A,I)=>{var F=$t(),s=l(F);m(s,()=>O,(u,n)=>{n(u,{children:(i,o)=>{U(i,{class:"h-3.5 w-3.5 text-muted-foreground/60"})},$$slots:{default:!0}})});var _=j(s,2);m(_,()=>Q,(u,n)=>{n(u,{children:(i,o)=>{var M=xt(),N=D(M,!0);R(M),b(()=>q(N,t.tooltip)),e(i,M)},$$slots:{default:!0}})}),e(A,F)},$$slots:{default:!0}})}),e(a,r)};z(E,a=>{t.tooltip&&a(G)})}R(v),b(a=>K(v,1,a),[()=>J(V("flex items-center",d(x)&&"justify-end gap-1.5"))]),e($,v)},lt=$=>{var v=h(),B=l(v);{var E=a=>{var r=yt(),S=D(r),w=j(S);m(w,()=>L,(f,A)=>{A(f,{children:(I,F)=>{var s=Pt(),_=l(s);m(_,()=>O,(n,i)=>{i(n,{children:(o,M)=>{U(o,{class:"h-3.5 w-3.5 text-muted-foreground/60"})},$$slots:{default:!0}})});var u=j(_,2);m(u,()=>Q,(n,i)=>{i(n,{children:(o,M)=>{var N=bt(),nt=D(N,!0);R(N),b(()=>q(nt,t.tooltip)),e(o,N)},$$slots:{default:!0}})}),e(I,s)},$$slots:{default:!0}})}),R(r),b(f=>{K(r,1,f),q(S,`${t.label??""} `)},[()=>J(V("flex items-center gap-1.5",d(x)&&"justify-end"))]),e(a,r)},G=a=>{var r=vt();b(()=>q(r,t.label)),e(a,r)};z(B,a=>{t.tooltip?a(E):a(G,!1)},!0)}e($,v)};z(st,$=>{d(p)?$(ot):$(lt,!1)})}e(rt,H)},$$slots:{default:!0}})})}e(P,c),ct()}export{U as C,qt as T};
diff --git a/backend/static/frontend/_app/immutable/chunks/BQmrPeqT.js.map b/backend/static/frontend/_app/immutable/chunks/CkVJuMBr.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/BQmrPeqT.js.map
rename to backend/static/frontend/_app/immutable/chunks/CkVJuMBr.js.map
index e418f826..7ed43772 100644
--- a/backend/static/frontend/_app/immutable/chunks/BQmrPeqT.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/CkVJuMBr.js.map
@@ -1 +1 @@
-{"version":3,"file":"BQmrPeqT.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/arrow-up-down.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/circle-question-mark.svelte","../../../../../../src/lib/components/ui/traceway-table-header/traceway-table-header.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"m21 16-4 4-4-4\" }], [\"path\", { \"d\": \"M17 20V4\" }], [\"path\", { \"d\": \"m3 8 4-4 4 4\" }], [\"path\", { \"d\": \"M7 4v16\" }]];\n/**\n * @component @name ArrowUpDown\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMjEgMTYtNCA0LTQtNCIgLz4KICA8cGF0aCBkPSJNMTcgMjBWNCIgLz4KICA8cGF0aCBkPSJtMyA4IDQtNCA0IDQiIC8+CiAgPHBhdGggZD0iTTcgNHYxNiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/arrow-up-down\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"arrow-up-down\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"10\" }], [\"path\", { \"d\": \"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\" }], [\"path\", { \"d\": \"M12 17h.01\" }]];\n/**\n * @component @name CircleQuestionMark\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KICA8cGF0aCBkPSJNOS4wOSA5YTMgMyAwIDAgMSA1LjgzIDFjMCAyLTMgMy0zIDMiIC8+CiAgPHBhdGggZD0iTTEyIDE3aC4wMSIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/circle-question-mark\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"circle-question-mark\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { cn } from \"$lib/utils.js\";\n\timport * as Table from \"$lib/components/ui/table/index.js\";\n\timport * as Tooltip from \"$lib/components/ui/tooltip/index.js\";\n\timport { Button } from \"$lib/components/ui/button/index.js\";\n\timport { ArrowDown, ArrowUp, ArrowUpDown, CircleQuestionMark } from \"lucide-svelte\";\n\n\ttype SortDirection = \"asc\" | \"desc\";\n\n\tlet {\n\t\tlabel,\n\t\ttooltip,\n\t\tsortField,\n\t\tcurrentSortField,\n\t\tsortDirection,\n\t\tonSort,\n\t\talign = \"left\",\n\t\tclass: className\n\t}: {\n\t\tlabel: string;\n\t\ttooltip?: string;\n\t\tsortField?: string;\n\t\tcurrentSortField?: string;\n\t\tsortDirection?: SortDirection;\n\t\tonSort?: (field: string) => void;\n\t\talign?: \"left\" | \"right\";\n\t\tclass?: string;\n\t} = $props();\n\n\tconst isSortable = $derived(sortField !== undefined && onSort !== undefined);\n\tconst isCurrentSort = $derived(isSortable && currentSortField === sortField);\n\tconst alignRight = $derived(align === \"right\");\n</script>\n\n<Table.Head class={cn(alignRight && \"text-right\", className)}>\n\t{#if isSortable}\n\t\t<div class={cn(\"flex items-center\", alignRight && \"justify-end gap-1.5\")}>\n\t\t\t<Button\n\t\t\t\tvariant=\"ghost\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tclass={cn(\"h-8 font-medium\", !alignRight && \"-ml-3\")}\n\t\t\t\tonclick={() => onSort?.(sortField!)}\n\t\t\t>\n\t\t\t\t{label}\n\t\t\t\t{#if isCurrentSort}\n\t\t\t\t\t{#if sortDirection === \"desc\"}\n\t\t\t\t\t\t<ArrowDown class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<ArrowUp class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t{/if}\n\t\t\t\t{:else}\n\t\t\t\t\t<ArrowUpDown class=\"ml-2 h-4 w-4\" />\n\t\t\t\t{/if}\n\t\t\t</Button>\n\t\t\t{#if tooltip}\n\t\t\t\t<Tooltip.Root>\n\t\t\t\t\t<Tooltip.Trigger>\n\t\t\t\t\t\t<CircleQuestionMark class=\"h-3.5 w-3.5 text-muted-foreground/60\" />\n\t\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t\t<Tooltip.Content>\n\t\t\t\t\t\t<p class=\"text-xs\">{tooltip}</p>\n\t\t\t\t\t</Tooltip.Content>\n\t\t\t\t</Tooltip.Root>\n\t\t\t{/if}\n\t\t</div>\n\t{:else if tooltip}\n\t\t<span class={cn(\"flex items-center gap-1.5\", alignRight && \"justify-end\")}>\n\t\t\t{label}\n\t\t\t<Tooltip.Root>\n\t\t\t\t<Tooltip.Trigger>\n\t\t\t\t\t<CircleQuestionMark class=\"h-3.5 w-3.5 text-muted-foreground/60\" />\n\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t<Tooltip.Content>\n\t\t\t\t\t<p class=\"text-xs\">{tooltip}</p>\n\t\t\t\t</Tooltip.Content>\n\t\t\t</Tooltip.Root>\n\t\t</span>\n\t{:else}\n\t\t{label}\n\t{/if}\n</Table.Head>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","align","isSortable","$.derived","$$props","isCurrentSort","alignRight","cn","$.get","Table_Head","div","root_2","$0","Button","node_2","ArrowDown","ArrowUp","$$render","consequent","alternate","ArrowUpDown","consequent_1","alternate_1","Tooltip_Root","Tooltip_Trigger","CircleQuestionMark","Tooltip_Content","p","root_11","$.clsx","span","root_13","Tooltip_Root_1","Tooltip_Trigger_1","Tooltip_Content_1","p_1","root_16","consequent_3","alternate_3"],"mappings":"4eAAA,iEA6CMA,EAAQ,EAAK,OAAM,CAAI,EAAK,iBAAgB,GAAM,OAAM,CAAI,EAAK,WAAU,GAAM,OAAM,CAAI,EAAK,eAAc,GAAM,OAAM,CAAI,EAAK,SAAS,CAAA,GAcjJC,EAAIC,EAAAC,EAAA,CAAA,KAAA,eAAA,EAAA,IAAAC,EAAA,uBAA6CJ,6FAFlD,gBCzDA,iEA6CMA,EAAQ,EAAK,SAAQ,CAAI,GAAM,KAAM,GAAM,KAAM,EAAK,KAAI,GAAM,OAAM,CAAI,EAAK,uCAAsC,GAAM,OAAM,CAAI,EAAK,YAAY,CAAA,GAc3JC,EAAIC,EAAAC,EAAA,CAAA,KAAA,sBAAA,EAAA,IAAAC,EAAA,uBAAoDJ,6FAFzD,+LCzDA,UAgBE,IAAAK,iBAAQ,MAAM,QAaTC,EAAUC,EAAA,IAAAC,EAAA,YAA0B,QAASA,EAAA,SAAe,MAAS,EACr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,QAAvEwB,CAAI,uGA/BD5B,CAAU,EAAAe,EAAAoB,EAAA,EAAApB,EAAAqB,GAAA,EAAA,iDAHhB","x_google_ignoreList":[0,1]}
\ No newline at end of file
+{"version":3,"file":"CkVJuMBr.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/arrow-up-down.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/circle-question-mark.svelte","../../../../../../src/lib/components/ui/traceway-table-header/traceway-table-header.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"m21 16-4 4-4-4\" }], [\"path\", { \"d\": \"M17 20V4\" }], [\"path\", { \"d\": \"m3 8 4-4 4 4\" }], [\"path\", { \"d\": \"M7 4v16\" }]];\n/**\n * @component @name ArrowUpDown\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMjEgMTYtNCA0LTQtNCIgLz4KICA8cGF0aCBkPSJNMTcgMjBWNCIgLz4KICA8cGF0aCBkPSJtMyA4IDQtNCA0IDQiIC8+CiAgPHBhdGggZD0iTTcgNHYxNiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/arrow-up-down\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"arrow-up-down\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"10\" }], [\"path\", { \"d\": \"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3\" }], [\"path\", { \"d\": \"M12 17h.01\" }]];\n/**\n * @component @name CircleQuestionMark\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KICA8cGF0aCBkPSJNOS4wOSA5YTMgMyAwIDAgMSA1LjgzIDFjMCAyLTMgMy0zIDMiIC8+CiAgPHBhdGggZD0iTTEyIDE3aC4wMSIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/circle-question-mark\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"circle-question-mark\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { cn } from \"$lib/utils.js\";\n\timport * as Table from \"$lib/components/ui/table/index.js\";\n\timport * as Tooltip from \"$lib/components/ui/tooltip/index.js\";\n\timport { Button } from \"$lib/components/ui/button/index.js\";\n\timport { ArrowDown, ArrowUp, ArrowUpDown, CircleQuestionMark } from \"lucide-svelte\";\n\n\ttype SortDirection = \"asc\" | \"desc\";\n\n\tlet {\n\t\tlabel,\n\t\ttooltip,\n\t\tsortField,\n\t\tcurrentSortField,\n\t\tsortDirection,\n\t\tonSort,\n\t\talign = \"left\",\n\t\tclass: className\n\t}: {\n\t\tlabel: string;\n\t\ttooltip?: string;\n\t\tsortField?: string;\n\t\tcurrentSortField?: string;\n\t\tsortDirection?: SortDirection;\n\t\tonSort?: (field: string) => void;\n\t\talign?: \"left\" | \"right\";\n\t\tclass?: string;\n\t} = $props();\n\n\tconst isSortable = $derived(sortField !== undefined && onSort !== undefined);\n\tconst isCurrentSort = $derived(isSortable && currentSortField === sortField);\n\tconst alignRight = $derived(align === \"right\");\n</script>\n\n<Table.Head class={cn(alignRight && \"text-right\", className)}>\n\t{#if isSortable}\n\t\t<div class={cn(\"flex items-center\", alignRight && \"justify-end gap-1.5\")}>\n\t\t\t<Button\n\t\t\t\tvariant=\"ghost\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tclass={cn(\"h-8 font-medium\", !alignRight && \"-ml-3\")}\n\t\t\t\tonclick={() => onSort?.(sortField!)}\n\t\t\t>\n\t\t\t\t{label}\n\t\t\t\t{#if isCurrentSort}\n\t\t\t\t\t{#if sortDirection === \"desc\"}\n\t\t\t\t\t\t<ArrowDown class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<ArrowUp class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t{/if}\n\t\t\t\t{:else}\n\t\t\t\t\t<ArrowUpDown class=\"ml-2 h-4 w-4\" />\n\t\t\t\t{/if}\n\t\t\t</Button>\n\t\t\t{#if tooltip}\n\t\t\t\t<Tooltip.Root>\n\t\t\t\t\t<Tooltip.Trigger>\n\t\t\t\t\t\t<CircleQuestionMark class=\"h-3.5 w-3.5 text-muted-foreground/60\" />\n\t\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t\t<Tooltip.Content>\n\t\t\t\t\t\t<p class=\"text-xs\">{tooltip}</p>\n\t\t\t\t\t</Tooltip.Content>\n\t\t\t\t</Tooltip.Root>\n\t\t\t{/if}\n\t\t</div>\n\t{:else if tooltip}\n\t\t<span class={cn(\"flex items-center gap-1.5\", alignRight && \"justify-end\")}>\n\t\t\t{label}\n\t\t\t<Tooltip.Root>\n\t\t\t\t<Tooltip.Trigger>\n\t\t\t\t\t<CircleQuestionMark class=\"h-3.5 w-3.5 text-muted-foreground/60\" />\n\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t<Tooltip.Content>\n\t\t\t\t\t<p class=\"text-xs\">{tooltip}</p>\n\t\t\t\t</Tooltip.Content>\n\t\t\t</Tooltip.Root>\n\t\t</span>\n\t{:else}\n\t\t{label}\n\t{/if}\n</Table.Head>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","align","isSortable","$.derived","$$props","isCurrentSort","alignRight","cn","$.get","Table_Head","div","root_2","$0","Button","node_2","ArrowDown","ArrowUp","$$render","consequent","alternate","ArrowUpDown","consequent_1","alternate_1","Tooltip_Root","Tooltip_Trigger","CircleQuestionMark","Tooltip_Content","p","root_11","$.clsx","span","root_13","Tooltip_Root_1","Tooltip_Trigger_1","Tooltip_Content_1","p_1","root_16","consequent_3","alternate_3"],"mappings":"4eAAA,iEA6CMA,EAAQ,EAAK,OAAM,CAAI,EAAK,iBAAgB,GAAM,OAAM,CAAI,EAAK,WAAU,GAAM,OAAM,CAAI,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CAAC,iGAxBLjB,CAAG,SAAHA,EAAG,EAAAE,CAAA,EAAA,CAAQ,IAAAiB,EAAAtB,EAAG,oBAAmBC,EAAEF,CAAU,GAAI,qBAAqB,CAAA,QAAtEI,CAAG,0CA8BHoB,EAAIC,GAAA,MAAJD,CAAI,2BAEHE,EAAYlC,EAAA,sDACXmC,EAAenC,EAAA,kBACd2B,EAAkB3B,EAAA,CAAA,MAAA,sCAAA,CAAA,2DAEnBoC,EAAepC,EAAA,sBACdqC,EAACC,GAAA,OAADD,EAAC,EAAA,IAADA,CAAC,6BAADA,CAAC,+DAPJL,CAAI,UAAJA,EAAI,EAAAlB,CAAA,2BAAQ,IAAAiB,EAAAtB,EAAG,4BAA2BC,EAAEF,CAAU,GAAI,aAAa,CAAA,QAAvEwB,CAAI,uGA/BD5B,CAAU,EAAAe,EAAAoB,EAAA,EAAApB,EAAAqB,GAAA,EAAA,iDAHhB","x_google_ignoreList":[0,1]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/CmY6xZEr.js b/backend/static/frontend/_app/immutable/chunks/CmY6xZEr.js
new file mode 100644
index 00000000..156a75e3
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/CmY6xZEr.js
@@ -0,0 +1 @@
+import{p as a,i as T,r as O,s as I,b as vt}from"./DMODTt3n.js";import{h as N,g as o,i as g,u as v,p as A,d as _,c as m,m as C,o as R,b as c,a as w,K as rt,f as M,e as q,r as G,s as nt}from"./B2WdN-7r.js";import{c as H}from"./BAcG0-U_.js";import{C as Nt,c as ft,w as at,p as It,S as mt,E as yt,n as W,s as xt,t as St,v as Dt,x as Bt,T as Et,y as gt,P as Ft}from"./CjLH05gQ.js";import{b,d as Rt,h as Mt,a as j,e as et,c as st,m as F}from"./BDd6-VcB.js";import{b as J,d as L}from"./DH0tcjsQ.js";const zt=Rt({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),E=new Nt("Dialog.Root | AlertDialog.Root");class it{static create(t){const e=E.getOr(null);return E.set(new it(t,e))}opts;#t=N(null);get triggerNode(){return o(this.#t)}set triggerNode(t){g(this.#t,t,!0)}#e=N(null);get contentNode(){return o(this.#e)}set contentNode(t){g(this.#e,t,!0)}#r=N(null);get overlayNode(){return o(this.#r)}set overlayNode(t){g(this.#r,t,!0)}#s=N(null);get descriptionNode(){return o(this.#s)}set descriptionNode(t){g(this.#s,t,!0)}#o=N(void 0);get contentId(){return o(this.#o)}set contentId(t){g(this.#o,t,!0)}#n=N(void 0);get titleId(){return o(this.#n)}set titleId(t){g(this.#n,t,!0)}#a=N(void 0);get triggerId(){return o(this.#a)}set triggerId(t){g(this.#a,t,!0)}#i=N(void 0);get descriptionId(){return o(this.#i)}set descriptionId(t){g(this.#i,t,!0)}#l=N(null);get cancelNode(){return o(this.#l)}set cancelNode(t){g(this.#l,t,!0)}#d=N(0);get nestedOpenCount(){return o(this.#d)}set nestedOpenCount(t){g(this.#d,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,e){this.opts=t,this.parent=e,this.depth=e?e.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new ft({ref:b(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ft({ref:b(()=>this.overlayNode),open:this.opts.open,enabled:!0}),at(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),It(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>zt.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#c=v(()=>({"data-state":Mt(this.opts.open.current)}));get sharedProps(){return o(this.#c)}set sharedProps(t){g(this.#c,t)}}class Pt{static create(t){return new Pt(t,E.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=j(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===mt||t.key===yt)&&(t.preventDefault(),this.root.handleClose())}#t=v(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return o(this.#t)}set props(t){g(this.#t,t)}}class _t{static create(t){return new _t(t,E.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=j(this.opts.ref)}#t=v(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return o(this.#t)}set props(t){g(this.#t,t)}}class lt{static create(t){return new lt(t,E.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.root.titleId=this.opts.id.current,this.attachment=j(this.opts.ref),at.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}#t=v(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return o(this.#t)}set props(t){g(this.#t,t)}}class dt{static create(t){return new dt(t,E.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.root.descriptionId=this.opts.id.current,this.attachment=j(this.opts.ref,r=>{this.root.descriptionNode=r}),at.pre(()=>this.opts.id.current,r=>{this.root.descriptionId=r})}#t=v(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return o(this.#t)}set props(t){g(this.#t,t)}}class ct{static create(t){return new ct(t,E.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=j(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#t=v(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#t)}set snippetProps(t){g(this.#t,t)}#e=v(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":et(this.root.nestedOpenCount>0),"data-nested":et(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return o(this.#e)}set props(t){g(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class ht{static create(t){return new ht(t,E.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=j(this.opts.ref,r=>this.root.overlayNode=r)}#t=v(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#t)}set snippetProps(t){g(this.#t,t)}#e=v(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":et(this.root.nestedOpenCount>0),"data-nested":et(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return o(this.#e)}set props(t){g(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class bt{static create(t){return new bt(t,E.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=j(this.opts.ref,r=>this.root.cancelNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===mt||t.key===yt)&&(t.preventDefault(),this.root.handleClose())}#t=v(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return o(this.#t)}set props(t){g(this.#t,t)}}function Kt(l,t){A(t,!0);let e=a(t,"open",15,!1),r=a(t,"onOpenChange",3,W),s=a(t,"onOpenChangeComplete",3,W);it.create({variant:b(()=>"alert-dialog"),open:b(()=>e(),d=>{e(d),r()(d)}),onOpenChangeComplete:b(()=>s())});var i=_(),n=m(i);C(n,()=>t.children??R),c(l,i),w()}var Tt=M("<div><!></div>");function jt(l,t){const e=rt();A(t,!0);let r=a(t,"id",19,()=>st(e)),s=a(t,"ref",15,null),i=a(t,"level",3,2),n=O(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const d=lt.create({id:b(()=>r()),level:b(()=>i()),ref:b(()=>s(),p=>s(p))}),f=v(()=>F(n,d.props));var P=_(),x=m(P);{var k=p=>{var y=_(),h=m(y);C(h,()=>t.child,()=>({props:o(f)})),c(p,y)},u=p=>{var y=Tt();J(y,()=>({...o(f)}));var h=q(y);C(h,()=>t.children??R),G(y),c(p,y)};T(x,p=>{t.child?p(k):p(u,!1)})}c(l,P),w()}var Ut=M("<!> <!>",1),Wt=M("<!> <div><!></div>",1);function qt(l,t){const e=rt();A(t,!0);let r=a(t,"id",19,()=>st(e)),s=a(t,"ref",15,null),i=a(t,"forceMount",3,!1),n=a(t,"interactOutsideBehavior",3,"ignore"),d=a(t,"onCloseAutoFocus",3,W),f=a(t,"onEscapeKeydown",3,W),P=a(t,"onOpenAutoFocus",3,W),x=a(t,"onInteractOutside",3,W),k=a(t,"preventScroll",3,!0),u=a(t,"trapFocus",3,!0),p=a(t,"restoreScrollDelay",3,null),y=O(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]);const h=ct.create({id:b(()=>r()),ref:b(()=>s(),B=>s(B))}),z=v(()=>F(y,h.props));var S=_(),D=m(S);{var Q=B=>{xt(B,{get ref(){return h.opts.ref},loop:!0,get trapFocus(){return u()},get enabled(){return h.root.opts.open.current},get onCloseAutoFocus(){return d()},onOpenAutoFocus:V=>{P()(V),!V.defaultPrevented&&(V.preventDefault(),St(0,()=>h.opts.ref.current?.focus()))},focusScope:(V,Ct)=>{let ut=()=>Ct?.().props;Dt(V,I(()=>o(z),{get enabled(){return h.root.opts.open.current},get ref(){return h.opts.ref},onEscapeKeydown:$=>{f()($),!$.defaultPrevented&&h.root.handleClose()},children:($,te)=>{Bt($,I(()=>o(z),{get ref(){return h.opts.ref},get enabled(){return h.root.opts.open.current},get interactOutsideBehavior(){return n()},onInteractOutside:tt=>{x()(tt),!tt.defaultPrevented&&h.root.handleClose()},children:(tt,ee)=>{Et(tt,I(()=>o(z),{get ref(){return h.opts.ref},get enabled(){return h.root.opts.open.current},children:(Ot,re)=>{var pt=_(),At=m(pt);{var wt=U=>{var X=Ut(),Y=m(X);{var Z=K=>{gt(K,{get preventScroll(){return k()},get restoreScrollDelay(){return p()}})};T(Y,K=>{h.root.opts.open.current&&K(Z)})}var ot=nt(Y,2);{let K=v(()=>({props:F(o(z),ut()),...h.snippetProps}));C(ot,()=>t.child,()=>o(K))}c(U,X)},kt=U=>{var X=Wt(),Y=m(X);gt(Y,{get preventScroll(){return k()}});var Z=nt(Y,2);J(Z,K=>({...K}),[()=>F(o(z),ut())]);var ot=q(Z);C(ot,()=>t.children??R),G(Z),c(U,X)};T(At,U=>{t.child?U(wt):U(kt,!1)})}c(Ot,pt)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};T(D,B=>{(h.shouldRender||i())&&B(Q)})}c(l,S),w()}var Gt=M("<div><!></div>");function Ht(l,t){const e=rt();A(t,!0);let r=a(t,"id",19,()=>st(e)),s=a(t,"forceMount",3,!1),i=a(t,"ref",15,null),n=O(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const d=ht.create({id:b(()=>r()),ref:b(()=>i(),u=>i(u))}),f=v(()=>F(n,d.props));var P=_(),x=m(P);{var k=u=>{var p=_(),y=m(p);{var h=S=>{var D=_(),Q=m(D);{let B=v(()=>({props:F(o(f)),...d.snippetProps}));C(Q,()=>t.child,()=>o(B))}c(S,D)},z=S=>{var D=Gt();J(D,B=>({...B}),[()=>F(o(f))]);var Q=q(D);C(Q,()=>t.children??R,()=>d.snippetProps),G(D),c(S,D)};T(y,S=>{t.child?S(h):S(z,!1)})}c(u,p)};T(x,u=>{(d.shouldRender||s())&&u(k)})}c(l,P),w()}var Jt=M("<div><!></div>");function Lt(l,t){const e=rt();A(t,!0);let r=a(t,"id",19,()=>st(e)),s=a(t,"ref",15,null),i=O(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const n=dt.create({id:b(()=>r()),ref:b(()=>s(),u=>s(u))}),d=v(()=>F(i,n.props));var f=_(),P=m(f);{var x=u=>{var p=_(),y=m(p);C(y,()=>t.child,()=>({props:o(d)})),c(u,p)},k=u=>{var p=Jt();J(p,()=>({...o(d)}));var y=q(p);C(y,()=>t.children??R),G(p),c(u,p)};T(P,u=>{t.child?u(x):u(k,!1)})}c(l,f),w()}function de(l,t){A(t,!0);let e=a(t,"open",15,!1),r=O(t,["$$slots","$$events","$$legacy","open"]);var s=_(),i=m(s);H(i,()=>Kt,(n,d)=>{d(n,I(()=>r,{get open(){return e()},set open(f){e(f)}}))}),c(l,s),w()}function Qt(l,t){let e=O(t,["$$slots","$$events","$$legacy"]);var r=_(),s=m(r);H(s,()=>Ft,(i,n)=>{n(i,I(()=>e))}),c(l,r)}function Vt(l,t){A(t,!0);let e=a(t,"ref",15,null),r=O(t,["$$slots","$$events","$$legacy","ref","class"]);var s=_(),i=m(s);{let n=v(()=>L("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t.class));H(i,()=>Ht,(d,f)=>{f(d,I({"data-slot":"alert-dialog-overlay",get class(){return o(n)}},()=>r,{get ref(){return e()},set ref(P){e(P)}}))})}c(l,s),w()}var Xt=M("<!> <!>",1);function ce(l,t){A(t,!0);let e=a(t,"ref",15,null),r=O(t,["$$slots","$$events","$$legacy","ref","class","portalProps","children"]);Qt(l,I(()=>t.portalProps,{children:(s,i)=>{var n=Xt(),d=m(n);Vt(d,{});var f=nt(d,2);{let P=v(()=>L("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",t.class));H(f,()=>qt,(x,k)=>{k(x,I({"data-slot":"alert-dialog-content",get class(){return o(P)}},()=>r,{get ref(){return e()},set ref(u){e(u)},children:(u,p)=>{var y=_(),h=m(y);C(h,()=>t.children??R),c(u,y)},$$slots:{default:!0}}))})}c(s,n)},$$slots:{default:!0}})),w()}var Yt=M("<div><!></div>");function he(l,t){A(t,!0);let e=a(t,"ref",15,null),r=O(t,["$$slots","$$events","$$legacy","ref","class","children"]);var s=Yt();J(s,n=>({"data-slot":"alert-dialog-header",class:n,...r}),[()=>L("flex flex-col gap-2 text-center sm:text-left",t.class)]);var i=q(s);C(i,()=>t.children??R),G(s),vt(s,n=>e(n),()=>e()),c(l,s),w()}var Zt=M("<div><!></div>");function ue(l,t){A(t,!0);let e=a(t,"ref",15,null),r=O(t,["$$slots","$$events","$$legacy","ref","class","children"]);var s=Zt();J(s,n=>({"data-slot":"alert-dialog-footer",class:n,...r}),[()=>L("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class)]);var i=q(s);C(i,()=>t.children??R),G(s),vt(s,n=>e(n),()=>e()),c(l,s),w()}function pe(l,t){A(t,!0);let e=a(t,"ref",15,null),r=O(t,["$$slots","$$events","$$legacy","ref","class"]);var s=_(),i=m(s);{let n=v(()=>L("text-lg font-semibold",t.class));H(i,()=>jt,(d,f)=>{f(d,I({"data-slot":"alert-dialog-title",get class(){return o(n)}},()=>r,{get ref(){return e()},set ref(P){e(P)}}))})}c(l,s),w()}function fe(l,t){A(t,!0);let e=a(t,"ref",15,null),r=O(t,["$$slots","$$events","$$legacy","ref","class"]);var s=_(),i=m(s);{let n=v(()=>L("text-muted-foreground text-sm",t.class));H(i,()=>Lt,(d,f)=>{f(d,I({"data-slot":"alert-dialog-description",get class(){return o(n)}},()=>r,{get ref(){return e()},set ref(P){e(P)}}))})}c(l,s),w()}export{ce as A,_t as D,he as a,pe as b,fe as c,ue as d,de as e,bt as f,it as g,Pt as h,ct as i,Ht as j,jt as k,Lt as l};
diff --git a/backend/static/frontend/_app/immutable/chunks/CmY6xZEr.js.map b/backend/static/frontend/_app/immutable/chunks/CmY6xZEr.js.map
new file mode 100644
index 00000000..2e0cf49b
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/CmY6xZEr.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"CmY6xZEr.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/dialog/dialog.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog.svelte","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog-title.svelte","../../../../../../node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog-overlay.svelte","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog-description.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-portal.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-content.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-header.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-title.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-description.svelte"],"sourcesContent":["import { attachRef, boxWith, onDestroyEffect, } from \"svelte-toolbelt\";\nimport { Context, watch } from \"runed\";\nimport { createBitsAttrs, boolToStr, getDataOpenClosed, boolToEmptyStrOrUndef, } from \"../../internal/attrs.js\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { PresenceManager } from \"../../internal/presence-manager.svelte.js\";\nconst dialogAttrs = createBitsAttrs({\n component: \"dialog\",\n parts: [\"content\", \"trigger\", \"overlay\", \"title\", \"description\", \"close\", \"cancel\", \"action\"],\n});\nconst DialogRootContext = new Context(\"Dialog.Root | AlertDialog.Root\");\nexport class DialogRootState {\n static create(opts) {\n const parent = DialogRootContext.getOr(null);\n return DialogRootContext.set(new DialogRootState(opts, parent));\n }\n opts;\n triggerNode = $state(null);\n contentNode = $state(null);\n overlayNode = $state(null);\n descriptionNode = $state(null);\n contentId = $state(undefined);\n titleId = $state(undefined);\n triggerId = $state(undefined);\n descriptionId = $state(undefined);\n cancelNode = $state(null);\n nestedOpenCount = $state(0);\n depth;\n parent;\n contentPresence;\n overlayPresence;\n constructor(opts, parent) {\n this.opts = opts;\n this.parent = parent;\n this.depth = parent ? parent.depth + 1 : 0;\n this.handleOpen = this.handleOpen.bind(this);\n this.handleClose = this.handleClose.bind(this);\n this.contentPresence = new PresenceManager({\n ref: boxWith(() => this.contentNode),\n open: this.opts.open,\n enabled: true,\n onComplete: () => {\n this.opts.onOpenChangeComplete.current(this.opts.open.current);\n },\n });\n this.overlayPresence = new PresenceManager({\n ref: boxWith(() => this.overlayNode),\n open: this.opts.open,\n enabled: true,\n });\n watch(() => this.opts.open.current, (isOpen) => {\n if (!this.parent)\n return;\n if (isOpen) {\n this.parent.incrementNested();\n }\n else {\n this.parent.decrementNested();\n }\n }, { lazy: true });\n onDestroyEffect(() => {\n if (this.opts.open.current) {\n this.parent?.decrementNested();\n }\n });\n }\n handleOpen() {\n if (this.opts.open.current)\n return;\n this.opts.open.current = true;\n }\n handleClose() {\n if (!this.opts.open.current)\n return;\n this.opts.open.current = false;\n }\n getBitsAttr = (part) => {\n return dialogAttrs.getAttr(part, this.opts.variant.current);\n };\n incrementNested() {\n this.nestedOpenCount++;\n this.parent?.incrementNested();\n }\n decrementNested() {\n if (this.nestedOpenCount === 0)\n return;\n this.nestedOpenCount--;\n this.parent?.decrementNested();\n }\n sharedProps = $derived.by(() => ({\n \"data-state\": getDataOpenClosed(this.opts.open.current),\n }));\n}\nexport class DialogTriggerState {\n static create(opts) {\n return new DialogTriggerState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => {\n this.root.triggerNode = v;\n this.root.triggerId = v?.id;\n });\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n onclick(e) {\n if (this.opts.disabled.current)\n return;\n if (e.button > 0)\n return;\n this.root.handleOpen();\n }\n onkeydown(e) {\n if (this.opts.disabled.current)\n return;\n if (e.key === kbd.SPACE || e.key === kbd.ENTER) {\n e.preventDefault();\n this.root.handleOpen();\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": boolToStr(this.root.opts.open.current),\n \"aria-controls\": this.root.contentId,\n [this.root.getBitsAttr(\"trigger\")]: \"\",\n onkeydown: this.onkeydown,\n onclick: this.onclick,\n disabled: this.opts.disabled.current ? true : undefined,\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\nexport class DialogCloseState {\n static create(opts) {\n return new DialogCloseState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n onclick(e) {\n if (this.opts.disabled.current)\n return;\n if (e.button > 0)\n return;\n this.root.handleClose();\n }\n onkeydown(e) {\n if (this.opts.disabled.current)\n return;\n if (e.key === kbd.SPACE || e.key === kbd.ENTER) {\n e.preventDefault();\n this.root.handleClose();\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(this.opts.variant.current)]: \"\",\n onclick: this.onclick,\n onkeydown: this.onkeydown,\n disabled: this.opts.disabled.current ? true : undefined,\n tabindex: 0,\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\nexport class DialogActionState {\n static create(opts) {\n return new DialogActionState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"action\")]: \"\",\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\nexport class DialogTitleState {\n static create(opts) {\n return new DialogTitleState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.root.titleId = this.opts.id.current;\n this.attachment = attachRef(this.opts.ref);\n watch.pre(() => this.opts.id.current, (id) => {\n this.root.titleId = id;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"heading\",\n \"aria-level\": this.opts.level.current,\n [this.root.getBitsAttr(\"title\")]: \"\",\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\nexport class DialogDescriptionState {\n static create(opts) {\n return new DialogDescriptionState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.root.descriptionId = this.opts.id.current;\n this.attachment = attachRef(this.opts.ref, (v) => {\n this.root.descriptionNode = v;\n });\n watch.pre(() => this.opts.id.current, (id) => {\n this.root.descriptionId = id;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"description\")]: \"\",\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\nexport class DialogContentState {\n static create(opts) {\n return new DialogContentState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => {\n this.root.contentNode = v;\n this.root.contentId = v?.id;\n });\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: this.root.opts.variant.current === \"alert-dialog\" ? \"alertdialog\" : \"dialog\",\n \"aria-modal\": \"true\",\n \"aria-describedby\": this.root.descriptionId,\n \"aria-labelledby\": this.root.titleId,\n [this.root.getBitsAttr(\"content\")]: \"\",\n style: {\n pointerEvents: \"auto\",\n outline: this.root.opts.variant.current === \"alert-dialog\" ? \"none\" : undefined,\n \"--bits-dialog-depth\": this.root.depth,\n \"--bits-dialog-nested-count\": this.root.nestedOpenCount,\n },\n tabindex: this.root.opts.variant.current === \"alert-dialog\" ? -1 : undefined,\n \"data-nested-open\": boolToEmptyStrOrUndef(this.root.nestedOpenCount > 0),\n \"data-nested\": boolToEmptyStrOrUndef(this.root.parent !== null),\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n get shouldRender() {\n return this.root.contentPresence.shouldRender;\n }\n}\nexport class DialogOverlayState {\n static create(opts) {\n return new DialogOverlayState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.overlayNode = v));\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"overlay\")]: \"\",\n style: {\n pointerEvents: \"auto\",\n \"--bits-dialog-depth\": this.root.depth,\n \"--bits-dialog-nested-count\": this.root.nestedOpenCount,\n },\n \"data-nested-open\": boolToEmptyStrOrUndef(this.root.nestedOpenCount > 0),\n \"data-nested\": boolToEmptyStrOrUndef(this.root.parent !== null),\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n get shouldRender() {\n return this.root.overlayPresence.shouldRender;\n }\n}\nexport class AlertDialogCancelState {\n static create(opts) {\n return new AlertDialogCancelState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.cancelNode = v));\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n onclick(e) {\n if (this.opts.disabled.current)\n return;\n if (e.button > 0)\n return;\n this.root.handleClose();\n }\n onkeydown(e) {\n if (this.opts.disabled.current)\n return;\n if (e.key === kbd.SPACE || e.key === kbd.ENTER) {\n e.preventDefault();\n this.root.handleClose();\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"cancel\")]: \"\",\n onclick: this.onclick,\n onkeydown: this.onkeydown,\n tabindex: 0,\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { AlertDialogRootProps } from \"../types.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { DialogRootState } from \"../../dialog/dialog.svelte.js\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tchildren,\n\t}: AlertDialogRootProps = $props();\n\n\tDialogRootState.create({\n\t\tvariant: boxWith(() => \"alert-dialog\"),\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n{@render children?.()}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { DialogTitleState } from \"../dialog.svelte.js\";\n\timport type { DialogTitleProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tchildren,\n\t\tlevel = 2,\n\t\t...restProps\n\t}: DialogTitleProps = $props();\n\n\tconst titleState = DialogTitleState.create({\n\t\tid: boxWith(() => id),\n\t\tlevel: boxWith(() => level),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, titleState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { afterSleep, boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { AlertDialogContentProps } from \"../types.js\";\n\timport DismissibleLayer from \"../../utilities/dismissible-layer/dismissible-layer.svelte\";\n\timport EscapeLayer from \"../../utilities/escape-layer/escape-layer.svelte\";\n\timport FocusScope from \"../../utilities/focus-scope/focus-scope.svelte\";\n\timport TextSelectionLayer from \"../../utilities/text-selection-layer/text-selection-layer.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport ScrollLock from \"../../utilities/scroll-lock/scroll-lock.svelte\";\n\timport { DialogContentState } from \"../../dialog/dialog.svelte.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tforceMount = false,\n\t\tinteractOutsideBehavior = \"ignore\",\n\t\tonCloseAutoFocus = noop,\n\t\tonEscapeKeydown = noop,\n\t\tonOpenAutoFocus = noop,\n\t\tonInteractOutside = noop,\n\t\tpreventScroll = true,\n\t\ttrapFocus = true,\n\t\trestoreScrollDelay = null,\n\t\t...restProps\n\t}: AlertDialogContentProps = $props();\n\n\tconst contentState = DialogContentState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n</script>\n\n{#if contentState.shouldRender || forceMount}\n\t<FocusScope\n\t\tref={contentState.opts.ref}\n\t\tloop\n\t\t{trapFocus}\n\t\tenabled={contentState.root.opts.open.current}\n\t\t{onCloseAutoFocus}\n\t\tonOpenAutoFocus={(e) => {\n\t\t\tonOpenAutoFocus(e);\n\t\t\tif (e.defaultPrevented) return;\n\t\t\te.preventDefault();\n\t\t\tafterSleep(0, () => contentState.opts.ref.current?.focus());\n\t\t}}\n\t>\n\t\t{#snippet focusScope({ props: focusScopeProps })}\n\t\t\t<EscapeLayer\n\t\t\t\t{...mergedProps}\n\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\tref={contentState.opts.ref}\n\t\t\t\tonEscapeKeydown={(e) => {\n\t\t\t\t\tonEscapeKeydown(e);\n\t\t\t\t\tif (e.defaultPrevented) return;\n\t\t\t\t\tcontentState.root.handleClose();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<DismissibleLayer\n\t\t\t\t\t{...mergedProps}\n\t\t\t\t\tref={contentState.opts.ref}\n\t\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\t\t{interactOutsideBehavior}\n\t\t\t\t\tonInteractOutside={(e) => {\n\t\t\t\t\t\tonInteractOutside(e);\n\t\t\t\t\t\tif (e.defaultPrevented) return;\n\t\t\t\t\t\tcontentState.root.handleClose();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<TextSelectionLayer\n\t\t\t\t\t\t{...mergedProps}\n\t\t\t\t\t\tref={contentState.opts.ref}\n\t\t\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\t\t>\n\t\t\t\t\t\t{#if child}\n\t\t\t\t\t\t\t{#if contentState.root.opts.open.current}\n\t\t\t\t\t\t\t\t<ScrollLock {preventScroll} {restoreScrollDelay} />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{@render child({\n\t\t\t\t\t\t\t\tprops: mergeProps(mergedProps, focusScopeProps),\n\t\t\t\t\t\t\t\t...contentState.snippetProps,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t<ScrollLock {preventScroll} />\n\t\t\t\t\t\t\t<div {...mergeProps(mergedProps, focusScopeProps)}>\n\t\t\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t</TextSelectionLayer>\n\t\t\t\t</DismissibleLayer>\n\t\t\t</EscapeLayer>\n\t\t{/snippet}\n\t</FocusScope>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { DialogOverlayState } from \"../dialog.svelte.js\";\n\timport type { DialogOverlayProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tforceMount = false,\n\t\tchild,\n\t\tchildren,\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: DialogOverlayProps = $props();\n\n\tconst overlayState = DialogOverlayState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, overlayState.props));\n</script>\n\n{#if overlayState.shouldRender || forceMount}\n\t{#if child}\n\t\t{@render child({ props: mergeProps(mergedProps), ...overlayState.snippetProps })}\n\t{:else}\n\t\t<div {...mergeProps(mergedProps)}>\n\t\t\t{@render children?.(overlayState.snippetProps)}\n\t\t</div>\n\t{/if}\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { DialogDescriptionState } from \"../dialog.svelte.js\";\n\timport type { DialogDescriptionProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: DialogDescriptionProps = $props();\n\n\tconst descriptionState = DialogDescriptionState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, descriptionState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\n\tlet { open = $bindable(false), ...restProps }: AlertDialogPrimitive.RootProps = $props();\n</script>\n\n<AlertDialogPrimitive.Root bind:open {...restProps} />\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: AlertDialogPrimitive.PortalProps = $props();\n</script>\n\n<AlertDialogPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: AlertDialogPrimitive.OverlayProps = $props();\n</script>\n\n<AlertDialogPrimitive.Overlay\n\tbind:ref\n\tdata-slot=\"alert-dialog-overlay\"\n\tclass={cn(\n\t\t\"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport type { Snippet } from \"svelte\";\n\timport AlertDialogPortal from \"./alert-dialog-portal.svelte\";\n\timport AlertDialogOverlay from \"./alert-dialog-overlay.svelte\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport type { ComponentProps } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tportalProps,\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<AlertDialogPrimitive.ContentProps> & {\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof AlertDialogPortal>>;\n\t\tchildren: Snippet;\n\t} = $props();\n</script>\n\n<AlertDialogPortal {...portalProps}>\n\t<AlertDialogOverlay />\n\t<AlertDialogPrimitive.Content\n\t\tbind:ref\n\t\tdata-slot=\"alert-dialog-content\"\n\t\tclass={cn(\n\t\t\t\"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg\",\n\t\t\tclassName\n\t\t)}\n\t\t{...restProps}\n\t>\n\t\t{@render children?.()}\n\t</AlertDialogPrimitive.Content>\n</AlertDialogPortal>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"alert-dialog-header\"\n\tclass={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"alert-dialog-footer\"\n\tclass={cn(\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: AlertDialogPrimitive.TitleProps = $props();\n</script>\n\n<AlertDialogPrimitive.Title\n\tbind:ref\n\tdata-slot=\"alert-dialog-title\"\n\tclass={cn(\"text-lg font-semibold\", className)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: AlertDialogPrimitive.DescriptionProps = $props();\n</script>\n\n<AlertDialogPrimitive.Description\n\tbind:ref\n\tdata-slot=\"alert-dialog-description\"\n\tclass={cn(\"text-muted-foreground text-sm\", className)}\n\t{...restProps}\n/>\n"],"names":["dialogAttrs","createBitsAttrs","DialogRootContext","Context","DialogRootState","opts","parent","#triggerNode","$.state","value","#contentNode","#overlayNode","#descriptionNode","#contentId","#titleId","#triggerId","#descriptionId","#cancelNode","#nestedOpenCount","PresenceManager","boxWith","watch","isOpen","onDestroyEffect","part","getDataOpenClosed","DialogCloseState","root","attachRef","e","kbd.SPACE","kbd.ENTER","DialogActionState","DialogTitleState","id","DialogDescriptionState","v","DialogContentState","boolToEmptyStrOrUndef","DialogOverlayState","AlertDialogCancelState","open","onOpenChange","noop","onOpenChangeComplete","uid","$.props_id","$.prop","$$props","createId","ref","level","restProps","$.rest_props","titleState","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay","contentState","FocusScope","$$anchor","afterSleep","$$arg0","focusScopeProps","EscapeLayer","$.spread_props","$.get","DismissibleLayer","TextSelectionLayer","ScrollLock","$$render","consequent","node_4","$.sibling","$0","consequent_2","overlayState","root_3","node_3","$.noop","consequent_1","descriptionState","AlertDialogPrimitive_Root","$$value","AlertDialogPrimitive_Portal","$.derived","cn","AlertDialogPrimitive_Overlay","AlertDialogPortal","AlertDialogOverlay","node","AlertDialogPrimitive_Content","$.child","$.reset","$.append","AlertDialogPrimitive_Title","AlertDialogPrimitive_Description"],"mappings":"4eAKM,MAAAA,GAAcC,GAAe,CAC/B,UAAW,SACX,MAAK,CAAG,UAAW,UAAW,UAAW,QAAS,cAAe,QAAS,SAAU,YAElFC,EAAiB,IAAOC,GAAQ,gCAAgC,EACzD,MAAAC,EAAgB,QAClB,OAAOC,EAAM,CACV,MAAAC,EAASJ,EAAkB,MAAM,IAAI,EACpC,OAAAA,EAAkB,IAAG,IAAKE,GAAgBC,EAAMC,CAAM,CAAA,CACjE,CACA,KACcC,GAAAC,EAAO,IAAI,MAAzB,aAAW,uBAAX,YAAWC,EAAA,iBACGC,GAAAF,EAAO,IAAI,MAAzB,aAAW,uBAAX,YAAWC,EAAA,iBACGE,GAAAH,EAAO,IAAI,MAAzB,aAAW,uBAAX,YAAWC,EAAA,iBACOG,GAAAJ,EAAO,IAAI,MAA7B,iBAAe,uBAAf,gBAAeC,EAAA,iBACHI,GAAAL,EAAO,MAAS,MAA5B,WAAS,uBAAT,UAASC,EAAA,iBACCK,GAAAN,EAAO,MAAS,MAA1B,SAAO,uBAAP,QAAOC,EAAA,iBACKM,GAAAP,EAAO,MAAS,MAA5B,WAAS,uBAAT,UAASC,EAAA,iBACOO,GAAAR,EAAO,MAAS,MA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,CAAA,YAAA,sBAAA,MAAAA,EAAA,GAIInC,CAAS,GAAA,CADN,IAAA+C,EAAG,+CAA8CnD,EAAA,KAAA,IAHxD,IAAAuD,EAAAE,EAAA9C,CAAA,yBAAA+C,EAAA/C,CAAA,KAAAA,EAAAqC,GACW9C,SAAAA,GAAG,EADdyD,EAAAlC,EAAAd,CAAA,KAFD,4CCVA,SAKE,IAAAT,eAAgB,IAAI,EAGjBE,EAAAC,EAAAL,EAAA,4DAIJ,IAAAW,EAAAhC,GAAA,EAAAkC,EAAAF,EAAA4B,IAAA,CAAA,YAAA,sBAAA,MAAAA,EAAA,GAIInC,CAAS,GAAA,CADN,IAAA+C,EAAG,yDAAwDnD,EAAA,KAAA,IAHlE,IAAAuD,EAAAE,EAAA9C,CAAA,yBAAA+C,EAAA/C,CAAA,KAAAA,EAAAqC,GACW9C,SAAAA,GAAG,EADdyD,EAAAlC,EAAAd,CAAA,KAFD,iBCVA,SAKE,IAAAT,eAAgB,IAAI,EAEjBE,EAAAC,EAAAL,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAuC,EAAAW,EAAA,IAAAC,EAAG,wBAAuBnD,EAAA,KAAA,CAAA,qBAHjC4D,EAAqBnC,EAAAK,kEAIjB1B,OAHJ,KAAK,iBAAL,IAAK4C,EAAA,sBAHN,iBCTA,SAKE,IAAA9C,eAAgB,IAAI,EAEjBE,EAAAC,EAAAL,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAuC,EAAAW,EAAA,IAAAC,EAAG,gCAA+BnD,EAAA,KAAA,CAAA,qBAHzC6D,EAAqBpC,EAAAK,wEAIjB1B,OAHJ,KAAK,iBAAL,IAAK4C,EAAA,sBAHN","x_google_ignoreList":[0,1,2,3,4,5]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/BGqyWGxT.js b/backend/static/frontend/_app/immutable/chunks/Cplpgpvt.js
similarity index 92%
rename from backend/static/frontend/_app/immutable/chunks/BGqyWGxT.js
rename to backend/static/frontend/_app/immutable/chunks/Cplpgpvt.js
index 272e2a64..b0d50dbd 100644
--- a/backend/static/frontend/_app/immutable/chunks/BGqyWGxT.js
+++ b/backend/static/frontend/_app/immutable/chunks/Cplpgpvt.js
@@ -1 +1 @@
-import{i as n}from"./DMODTt3n.js";import{f as u,k as m,b as d,e,s as c,r as s,l as h}from"./B2WdN-7r.js";import"./xR3pK9Ey.js";import{B as p}from"./C1aqwstW.js";import{A as B}from"./D81VMsqm.js";var w=u('<p class="text-muted-foreground text-sm"> </p>'),P=u('<div class="flex items-start gap-4"><!> <div><h2 class="font-mono text-2xl font-bold tracking-tight break-all"> </h2> <!></div></div>');function C(_,a){var o=P(),l=e(o);{var x=t=>{p(t,{variant:"ghost",size:"sm",get onclick(){return a.onBack},class:"h-8 w-8 p-0",children:(r,f)=>{B(r,{class:"h-4 w-4"})},$$slots:{default:!0}})};n(l,t=>{a.onBack&&t(x)})}var v=c(l,2),i=e(v),g=e(i,!0);s(i);var b=c(i,2);{var k=t=>{var r=w(),f=e(r,!0);s(r),m(()=>h(f,a.subtitle)),d(t,r)};n(b,t=>{a.subtitle&&t(k)})}s(v),s(o),m(()=>h(g,a.title)),d(_,o)}export{C as P};
+import{i as n}from"./DMODTt3n.js";import{f as u,k as m,b as d,e,s as c,r as s,l as h}from"./B2WdN-7r.js";import"./BIF4_51j.js";import{B as p}from"./C1aqwstW.js";import{A as B}from"./D81VMsqm.js";var w=u('<p class="text-muted-foreground text-sm"> </p>'),P=u('<div class="flex items-start gap-4"><!> <div><h2 class="font-mono text-2xl font-bold tracking-tight break-all"> </h2> <!></div></div>');function C(_,a){var o=P(),l=e(o);{var x=t=>{p(t,{variant:"ghost",size:"sm",get onclick(){return a.onBack},class:"h-8 w-8 p-0",children:(r,f)=>{B(r,{class:"h-4 w-4"})},$$slots:{default:!0}})};n(l,t=>{a.onBack&&t(x)})}var v=c(l,2),i=e(v),g=e(i,!0);s(i);var b=c(i,2);{var k=t=>{var r=w(),f=e(r,!0);s(r),m(()=>h(f,a.subtitle)),d(t,r)};n(b,t=>{a.subtitle&&t(k)})}s(v),s(o),m(()=>h(g,a.title)),d(_,o)}export{C as P};
diff --git a/backend/static/frontend/_app/immutable/chunks/BGqyWGxT.js.map b/backend/static/frontend/_app/immutable/chunks/Cplpgpvt.js.map
similarity index 93%
rename from backend/static/frontend/_app/immutable/chunks/BGqyWGxT.js.map
rename to backend/static/frontend/_app/immutable/chunks/Cplpgpvt.js.map
index 519b3c5b..d4d47412 100644
--- a/backend/static/frontend/_app/immutable/chunks/BGqyWGxT.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/Cplpgpvt.js.map
@@ -1 +1 @@
-{"version":3,"file":"BGqyWGxT.js","sources":["../../../../../../src/lib/components/issues/page-header.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { Button } from \"$lib/components/ui/button\";\n import { ArrowLeft } from \"lucide-svelte\";\n\n interface Props {\n title: string;\n subtitle?: string;\n onBack?: (e: MouseEvent) => void;\n }\n\n let { title, subtitle, onBack }: Props = $props();\n</script>\n\n<div class=\"flex items-start gap-4\">\n {#if onBack}\n <Button variant=\"ghost\" size=\"sm\" onclick={onBack} class=\"h-8 w-8 p-0\">\n <ArrowLeft class=\"h-4 w-4\" />\n </Button>\n {/if}\n <div>\n <h2 class=\"font-mono text-2xl font-bold tracking-tight break-all\">\n {title}\n </h2>\n {#if subtitle}\n <p class=\"text-muted-foreground text-sm\">{subtitle}</p>\n {/if}\n </div>\n</div>\n"],"names":["div","root","Button","$$anchor","ArrowLeft","div_1","$.sibling","node","h2","p","root_3"],"mappings":"yZAAA,KAcCA,EAAGC,EAAA,MAAHD,CAAG,aAEKE,EAAMC,EAAA,+FACFC,EAASD,EAAA,CAAA,MAAA,SAAA,CAAA,wDAGjBE,EAAGC,EAAAC,EAAA,CAAA,EACCC,IADJH,CAAG,MACCG,EAAE,EAAA,IAAFA,CAAE,UAAFA,EAAE,CAAA,iBAIEC,EAACC,EAAA,MAADD,EAAC,EAAA,IAADA,CAAC,6BAADA,CAAC,gCALTJ,CAAG,IANPL,CAAG,0BAAHA,CAAG,CAFJ"}
\ No newline at end of file
+{"version":3,"file":"Cplpgpvt.js","sources":["../../../../../../src/lib/components/issues/page-header.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { Button } from \"$lib/components/ui/button\";\n import { ArrowLeft } from \"lucide-svelte\";\n\n interface Props {\n title: string;\n subtitle?: string;\n onBack?: (e: MouseEvent) => void;\n }\n\n let { title, subtitle, onBack }: Props = $props();\n</script>\n\n<div class=\"flex items-start gap-4\">\n {#if onBack}\n <Button variant=\"ghost\" size=\"sm\" onclick={onBack} class=\"h-8 w-8 p-0\">\n <ArrowLeft class=\"h-4 w-4\" />\n </Button>\n {/if}\n <div>\n <h2 class=\"font-mono text-2xl font-bold tracking-tight break-all\">\n {title}\n </h2>\n {#if subtitle}\n <p class=\"text-muted-foreground text-sm\">{subtitle}</p>\n {/if}\n </div>\n</div>\n"],"names":["div","root","Button","$$anchor","ArrowLeft","div_1","$.sibling","node","h2","p","root_3"],"mappings":"yZAAA,KAcCA,EAAGC,EAAA,MAAHD,CAAG,aAEKE,EAAMC,EAAA,+FACFC,EAASD,EAAA,CAAA,MAAA,SAAA,CAAA,wDAGjBE,EAAGC,EAAAC,EAAA,CAAA,EACCC,IADJH,CAAG,MACCG,EAAE,EAAA,IAAFA,CAAE,UAAFA,EAAE,CAAA,iBAIEC,EAACC,EAAA,MAADD,EAAC,EAAA,IAADA,CAAC,6BAADA,CAAC,gCALTJ,CAAG,IANPL,CAAG,0BAAHA,CAAG,CAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/Ba_8xUad.js b/backend/static/frontend/_app/immutable/chunks/Csh2s3-8.js
similarity index 96%
rename from backend/static/frontend/_app/immutable/chunks/Ba_8xUad.js
rename to backend/static/frontend/_app/immutable/chunks/Csh2s3-8.js
index 68b621f4..b4960ce2 100644
--- a/backend/static/frontend/_app/immutable/chunks/Ba_8xUad.js
+++ b/backend/static/frontend/_app/immutable/chunks/Csh2s3-8.js
@@ -1 +1 @@
-import{p as h,i as B,r as y,s as D}from"./DMODTt3n.js";import{u as v,g as l,i as I,K,p as P,d as b,c as g,b as i,a as L,m as w,f as R,e as S,o as W,r as j}from"./B2WdN-7r.js";import{c as q}from"./BAcG0-U_.js";import{b as z,d as C}from"./DH0tcjsQ.js";import{a as E,d as F,c as G,b as x,m as H}from"./DWAABZDo.js";const J=F({component:"label",parts:["root"]});class _{static create(e){return new _(e)}opts;attachment;constructor(e){this.opts=e,this.attachment=E(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=v(()=>({id:this.opts.id.current,[J.root]:"",onmousedown:this.onmousedown,...this.attachment}));get props(){return l(this.#e)}set props(e){I(this.#e,e)}}var M=R("<label><!></label>");function N(d,e){const r=K();P(e,!0);let c=h(e,"id",19,()=>G(r)),a=h(e,"ref",15,null),f=y(e,["$$slots","$$events","$$legacy","children","child","id","ref","for"]);const m=_.create({id:x(()=>c()),ref:x(()=>a(),t=>a(t))}),o=v(()=>H(f,m.props,{for:e.for}));var n=b(),p=g(n);{var A=t=>{var s=b(),u=g(s);w(u,()=>e.child,()=>({props:l(o)})),i(t,s)},k=t=>{var s=M();z(s,()=>({...l(o),for:e.for}));var u=S(s);w(u,()=>e.children??W),j(s),i(t,s)};B(p,t=>{e.child?t(A):t(k,!1)})}i(d,n),L()}function X(d,e){P(e,!0);let r=h(e,"ref",15,null),c=y(e,["$$slots","$$events","$$legacy","ref","class"]);var a=b(),f=g(a);{let m=v(()=>C("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e.class));q(f,()=>N,(o,n)=>{n(o,D({"data-slot":"label",get class(){return l(m)}},()=>c,{get ref(){return r()},set ref(p){r(p)}}))})}i(d,a),L()}export{X as L};
+import{p as h,i as B,r as y,s as D}from"./DMODTt3n.js";import{u as v,g as l,i as I,K,p as P,d as b,c as g,b as i,a as L,m as w,f as R,e as S,o as W,r as j}from"./B2WdN-7r.js";import{c as q}from"./BAcG0-U_.js";import{b as z,d as C}from"./DH0tcjsQ.js";import{a as E,d as F,c as G,b as x,m as H}from"./BDd6-VcB.js";const J=F({component:"label",parts:["root"]});class _{static create(e){return new _(e)}opts;attachment;constructor(e){this.opts=e,this.attachment=E(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=v(()=>({id:this.opts.id.current,[J.root]:"",onmousedown:this.onmousedown,...this.attachment}));get props(){return l(this.#e)}set props(e){I(this.#e,e)}}var M=R("<label><!></label>");function N(d,e){const r=K();P(e,!0);let c=h(e,"id",19,()=>G(r)),a=h(e,"ref",15,null),f=y(e,["$$slots","$$events","$$legacy","children","child","id","ref","for"]);const m=_.create({id:x(()=>c()),ref:x(()=>a(),t=>a(t))}),o=v(()=>H(f,m.props,{for:e.for}));var n=b(),p=g(n);{var A=t=>{var s=b(),u=g(s);w(u,()=>e.child,()=>({props:l(o)})),i(t,s)},k=t=>{var s=M();z(s,()=>({...l(o),for:e.for}));var u=S(s);w(u,()=>e.children??W),j(s),i(t,s)};B(p,t=>{e.child?t(A):t(k,!1)})}i(d,n),L()}function X(d,e){P(e,!0);let r=h(e,"ref",15,null),c=y(e,["$$slots","$$events","$$legacy","ref","class"]);var a=b(),f=g(a);{let m=v(()=>C("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e.class));q(f,()=>N,(o,n)=>{n(o,D({"data-slot":"label",get class(){return l(m)}},()=>c,{get ref(){return r()},set ref(p){r(p)}}))})}i(d,a),L()}export{X as L};
diff --git a/backend/static/frontend/_app/immutable/chunks/Ba_8xUad.js.map b/backend/static/frontend/_app/immutable/chunks/Csh2s3-8.js.map
similarity index 97%
rename from backend/static/frontend/_app/immutable/chunks/Ba_8xUad.js.map
rename to backend/static/frontend/_app/immutable/chunks/Csh2s3-8.js.map
index 4e34f8c5..925ba085 100644
--- a/backend/static/frontend/_app/immutable/chunks/Ba_8xUad.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/Csh2s3-8.js.map
@@ -1 +1 @@
-{"version":3,"file":"Ba_8xUad.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/label/label.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/label/components/label.svelte","../../../../../../src/lib/components/ui/label/label.svelte"],"sourcesContent":["import { attachRef } from \"svelte-toolbelt\";\nimport { createBitsAttrs } from \"../../internal/attrs.js\";\nconst labelAttrs = createBitsAttrs({\n component: \"label\",\n parts: [\"root\"],\n});\nexport class LabelRootState {\n static create(opts) {\n return new LabelRootState(opts);\n }\n opts;\n attachment;\n constructor(opts) {\n this.opts = opts;\n this.attachment = attachRef(this.opts.ref);\n this.onmousedown = this.onmousedown.bind(this);\n }\n onmousedown(e) {\n if (e.detail > 1)\n e.preventDefault();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [labelAttrs.root]: \"\",\n onmousedown: this.onmousedown,\n ...this.attachment,\n }));\n}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { LabelRootProps } from \"../types.js\";\n\timport { LabelRootState } from \"../label.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tfor: forProp,\n\t\t...restProps\n\t}: LabelRootProps = $props();\n\n\tconst rootState = LabelRootState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\tconst mergedProps = $derived(mergeProps(restProps, rootState.props, { for: forProp }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<label {...mergedProps} for={forProp}>\n\t\t{@render children?.()}\n\t</label>\n{/if}\n","<script lang=\"ts\">\n\timport { Label as LabelPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: LabelPrimitive.RootProps = $props();\n</script>\n\n<LabelPrimitive.Root\n\tbind:ref\n\tdata-slot=\"label\"\n\tclass={cn(\n\t\t\"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n"],"names":["labelAttrs","createBitsAttrs","LabelRootState","opts","attachRef","value","uid","$.props_id","id","$.prop","$$props","createId","ref","restProps","$.rest_props","rootState","boxWith","v","mergedProps","$.derived","mergeProps","$.snippet","node_1","label","root_2","$.attribute_effect","$0","cn","LabelPrimitive_Root","$$anchor","$.spread_props","$$value"],"mappings":"8TAEMA,EAAaC,EAAe,CAC9B,UAAW,QACX,MAAK,CAAG,MAAM,EAAA,EAEL,MAAAC,CAAe,QACjB,OAAOC,EAAM,CACL,OAAA,IAAAD,EAAeC,CAAI,CAClC,CACA,KACA,WACA,YAAYA,EAAM,CACd,KAAK,KAAOA,EACZ,KAAK,WAAaC,EAAU,KAAK,KAAK,GAAG,EACzC,KAAK,YAAc,KAAK,YAAY,KAAK,IAAI,CACjD,CACA,YAAY,EAAG,CACP,EAAE,OAAS,GACX,EAAE,eAAc,CACxB,YAEI,GAAI,KAAK,KAAK,GAAG,SAChBJ,EAAW,IAAI,EAAG,GACnB,YAAa,KAAK,YACf,GAAA,KAAK,kBAJZ,OAAK,uBAAL,MAAKK,EAAA,cAMT,8CC3BA,OAMOC,EAAGC,EAAA,cAKRC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,EAASL,CAAG,CAAA,EACjBM,eAAgB,IAAI,EAEjBC,EAAAC,EAAAJ,EAAA,6EAGEK,EAAYb,EAAe,OAAM,CACtC,GAAIc,EAAO,IAAOR,GAAE,EACpB,IAAKQ,EAAO,IACLJ,EAAG,EACRK,GAAOL,EAAMK,CAAC,CAAA,IAGXC,EAAWC,EAAA,IAAYC,EAAWP,EAAWE,EAAU,MAAK,CAAI,IAAGL,EAAA,GAAA,CAAA,CAAA,+CAIxDW,EAAAC,EAAA,IAAAZ,EAAA,MAAA,KAAA,CAAA,QAAOQ,CAAW,CAAA,EAAA,oBAElCK,EAAKC,EAAA,EAALC,EAAAF,aAAUL,CAAW,EAAA,IAAAR,EAAA,GAAA,EAAA,UAArBa,CAAK,2BAALA,CAAK,MAALA,CAAK,4CALP,gBCzBA,SAKE,IAAAX,eAAgB,IAAI,EAEjBC,EAAAC,EAAAJ,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAgB,EAAAP,EAAA,IAAAQ,EACN,sNAAqNjB,EAAA,KAAA,CAAA,oBAJtNkB,EAAeC,EAAAC,qDAOXjB,OANJ,KAAK,iBAAL,IAAKkB,EAAA,sBAHN","x_google_ignoreList":[0,1]}
\ No newline at end of file
+{"version":3,"file":"Csh2s3-8.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/label/label.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/label/components/label.svelte","../../../../../../src/lib/components/ui/label/label.svelte"],"sourcesContent":["import { attachRef } from \"svelte-toolbelt\";\nimport { createBitsAttrs } from \"../../internal/attrs.js\";\nconst labelAttrs = createBitsAttrs({\n component: \"label\",\n parts: [\"root\"],\n});\nexport class LabelRootState {\n static create(opts) {\n return new LabelRootState(opts);\n }\n opts;\n attachment;\n constructor(opts) {\n this.opts = opts;\n this.attachment = attachRef(this.opts.ref);\n this.onmousedown = this.onmousedown.bind(this);\n }\n onmousedown(e) {\n if (e.detail > 1)\n e.preventDefault();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [labelAttrs.root]: \"\",\n onmousedown: this.onmousedown,\n ...this.attachment,\n }));\n}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { LabelRootProps } from \"../types.js\";\n\timport { LabelRootState } from \"../label.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tfor: forProp,\n\t\t...restProps\n\t}: LabelRootProps = $props();\n\n\tconst rootState = LabelRootState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\tconst mergedProps = $derived(mergeProps(restProps, rootState.props, { for: forProp }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<label {...mergedProps} for={forProp}>\n\t\t{@render children?.()}\n\t</label>\n{/if}\n","<script lang=\"ts\">\n\timport { Label as LabelPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: LabelPrimitive.RootProps = $props();\n</script>\n\n<LabelPrimitive.Root\n\tbind:ref\n\tdata-slot=\"label\"\n\tclass={cn(\n\t\t\"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n"],"names":["labelAttrs","createBitsAttrs","LabelRootState","opts","attachRef","value","uid","$.props_id","id","$.prop","$$props","createId","ref","restProps","$.rest_props","rootState","boxWith","v","mergedProps","$.derived","mergeProps","$.snippet","node_1","label","root_2","$.attribute_effect","$0","cn","LabelPrimitive_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AAA,CAAA,oBAJtNkB,EAAeC,EAAAC,qDAOXjB,OANJ,KAAK,iBAAL,IAAKkB,EAAA,sBAHN","x_google_ignoreList":[0,1]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/CtIWnZub.js b/backend/static/frontend/_app/immutable/chunks/CtIWnZub.js
deleted file mode 100644
index 3c8c7064..00000000
--- a/backend/static/frontend/_app/immutable/chunks/CtIWnZub.js
+++ /dev/null
@@ -1 +0,0 @@
-import{p as o,i as H,s as v,r as p,b as ee}from"./DMODTt3n.js";import{p as h,d as _,c as u,m as S,o as B,b as i,a as y,K as de,g,u as x,f as M,s as L,e as N,r as Q}from"./B2WdN-7r.js";import{c as O}from"./BAcG0-U_.js";import{n as A,p as ce,q as ie,r as ue,s as fe,T as ge,t as $,b as ve}from"./CAQEdoSh.js";import{D as me,a as _e,b as pe,c as he,d as ye}from"./m9wcLEvn.js";import{b as z,c as Pe,m as J}from"./DWAABZDo.js";import{b as U,d as C}from"./DH0tcjsQ.js";function be(l,e){h(e,!0);let r=o(e,"open",15,!1),n=o(e,"onOpenChange",3,A),t=o(e,"onOpenChangeComplete",3,A);me.create({variant:z(()=>"alert-dialog"),open:z(()=>r(),c=>{r(c),n()(c)}),onOpenChangeComplete:z(()=>t())});var s=_(),a=u(s);S(a,()=>e.children??B),i(l,s),y()}var Ae=M("<!> <!>",1),Se=M("<!> <div><!></div>",1);function xe(l,e){const r=de();h(e,!0);let n=o(e,"id",19,()=>Pe(r)),t=o(e,"ref",15,null),s=o(e,"forceMount",3,!1),a=o(e,"interactOutsideBehavior",3,"ignore"),c=o(e,"onCloseAutoFocus",3,A),f=o(e,"onEscapeKeydown",3,A),m=o(e,"onOpenAutoFocus",3,A),W=o(e,"onInteractOutside",3,A),R=o(e,"preventScroll",3,!0),F=o(e,"trapFocus",3,!0),V=o(e,"restoreScrollDelay",3,null),T=p(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]);const d=_e.create({id:z(()=>n()),ref:z(()=>t(),w=>t(w))}),D=x(()=>J(T,d.props));var X=_(),te=u(X);{var re=w=>{ce(w,{get ref(){return d.opts.ref},loop:!0,get trapFocus(){return F()},get enabled(){return d.root.opts.open.current},get onCloseAutoFocus(){return c()},onOpenAutoFocus:E=>{m()(E),!E.defaultPrevented&&(E.preventDefault(),ie(0,()=>d.opts.ref.current?.focus()))},focusScope:(E,ae)=>{let Y=()=>ae?.().props;ue(E,v(()=>g(D),{get enabled(){return d.root.opts.open.current},get ref(){return d.opts.ref},onEscapeKeydown:j=>{f()(j),!j.defaultPrevented&&d.root.handleClose()},children:(j,Ie)=>{fe(j,v(()=>g(D),{get ref(){return d.opts.ref},get enabled(){return d.root.opts.open.current},get interactOutsideBehavior(){return a()},onInteractOutside:q=>{W()(q),!q.defaultPrevented&&d.root.handleClose()},children:(q,Ke)=>{ge(q,v(()=>g(D),{get ref(){return d.opts.ref},get enabled(){return d.root.opts.open.current},children:(oe,ke)=>{var Z=_(),ne=u(Z);{var le=b=>{var I=Ae(),K=u(I);{var k=P=>{$(P,{get preventScroll(){return R()},get restoreScrollDelay(){return V()}})};H(K,P=>{d.root.opts.open.current&&P(k)})}var G=L(K,2);{let P=x(()=>({props:J(g(D),Y()),...d.snippetProps}));S(G,()=>e.child,()=>g(P))}i(b,I)},se=b=>{var I=Se(),K=u(I);$(K,{get preventScroll(){return R()}});var k=L(K,2);U(k,P=>({...P}),[()=>J(g(D),Y())]);var G=N(k);S(G,()=>e.children??B),Q(k),i(b,I)};H(ne,b=>{e.child?b(le):b(se,!1)})}i(oe,Z)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};H(te,w=>{(d.shouldRender||s())&&w(re)})}i(l,X),y()}function We(l,e){h(e,!0);let r=o(e,"open",15,!1),n=p(e,["$$slots","$$events","$$legacy","open"]);var t=_(),s=u(t);O(s,()=>be,(a,c)=>{c(a,v(()=>n,{get open(){return r()},set open(f){r(f)}}))}),i(l,t),y()}function Oe(l,e){let r=p(e,["$$slots","$$events","$$legacy"]);var n=_(),t=u(n);O(t,()=>ve,(s,a)=>{a(s,v(()=>r))}),i(l,n)}function Ce(l,e){h(e,!0);let r=o(e,"ref",15,null),n=p(e,["$$slots","$$events","$$legacy","ref","class"]);var t=_(),s=u(t);{let a=x(()=>C("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e.class));O(s,()=>pe,(c,f)=>{f(c,v({"data-slot":"alert-dialog-overlay",get class(){return g(a)}},()=>n,{get ref(){return r()},set ref(m){r(m)}}))})}i(l,t),y()}var Fe=M("<!> <!>",1);function Ge(l,e){h(e,!0);let r=o(e,"ref",15,null),n=p(e,["$$slots","$$events","$$legacy","ref","class","portalProps","children"]);Oe(l,v(()=>e.portalProps,{children:(t,s)=>{var a=Fe(),c=u(a);Ce(c,{});var f=L(c,2);{let m=x(()=>C("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e.class));O(f,()=>xe,(W,R)=>{R(W,v({"data-slot":"alert-dialog-content",get class(){return g(m)}},()=>n,{get ref(){return r()},set ref(F){r(F)},children:(F,V)=>{var T=_(),d=u(T);S(d,()=>e.children??B),i(F,T)},$$slots:{default:!0}}))})}i(t,a)},$$slots:{default:!0}})),y()}var De=M("<div><!></div>");function He(l,e){h(e,!0);let r=o(e,"ref",15,null),n=p(e,["$$slots","$$events","$$legacy","ref","class","children"]);var t=De();U(t,a=>({"data-slot":"alert-dialog-header",class:a,...n}),[()=>C("flex flex-col gap-2 text-center sm:text-left",e.class)]);var s=N(t);S(s,()=>e.children??B),Q(t),ee(t,a=>r(a),()=>r()),i(l,t),y()}var we=M("<div><!></div>");function Je(l,e){h(e,!0);let r=o(e,"ref",15,null),n=p(e,["$$slots","$$events","$$legacy","ref","class","children"]);var t=we();U(t,a=>({"data-slot":"alert-dialog-footer",class:a,...n}),[()=>C("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e.class)]);var s=N(t);S(s,()=>e.children??B),Q(t),ee(t,a=>r(a),()=>r()),i(l,t),y()}function Le(l,e){h(e,!0);let r=o(e,"ref",15,null),n=p(e,["$$slots","$$events","$$legacy","ref","class"]);var t=_(),s=u(t);{let a=x(()=>C("text-lg font-semibold",e.class));O(s,()=>he,(c,f)=>{f(c,v({"data-slot":"alert-dialog-title",get class(){return g(a)}},()=>n,{get ref(){return r()},set ref(m){r(m)}}))})}i(l,t),y()}function Ne(l,e){h(e,!0);let r=o(e,"ref",15,null),n=p(e,["$$slots","$$events","$$legacy","ref","class"]);var t=_(),s=u(t);{let a=x(()=>C("text-muted-foreground text-sm",e.class));O(s,()=>ye,(c,f)=>{f(c,v({"data-slot":"alert-dialog-description",get class(){return g(a)}},()=>n,{get ref(){return r()},set ref(m){r(m)}}))})}i(l,t),y()}export{Ge as A,He as a,Le as b,Ne as c,Je as d,We as e};
diff --git a/backend/static/frontend/_app/immutable/chunks/CtIWnZub.js.map b/backend/static/frontend/_app/immutable/chunks/CtIWnZub.js.map
deleted file mode 100644
index 0ef8a8dd..00000000
--- a/backend/static/frontend/_app/immutable/chunks/CtIWnZub.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"CtIWnZub.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog.svelte","../../../../../../node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-content.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-portal.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-content.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-header.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-title.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-description.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { AlertDialogRootProps } from \"../types.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { DialogRootState } from \"../../dialog/dialog.svelte.js\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tchildren,\n\t}: AlertDialogRootProps = $props();\n\n\tDialogRootState.create({\n\t\tvariant: boxWith(() => \"alert-dialog\"),\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n{@render children?.()}\n","<script lang=\"ts\">\n\timport { afterSleep, boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { AlertDialogContentProps } from \"../types.js\";\n\timport DismissibleLayer from \"../../utilities/dismissible-layer/dismissible-layer.svelte\";\n\timport EscapeLayer from \"../../utilities/escape-layer/escape-layer.svelte\";\n\timport FocusScope from \"../../utilities/focus-scope/focus-scope.svelte\";\n\timport TextSelectionLayer from \"../../utilities/text-selection-layer/text-selection-layer.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport ScrollLock from \"../../utilities/scroll-lock/scroll-lock.svelte\";\n\timport { DialogContentState } from \"../../dialog/dialog.svelte.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tforceMount = false,\n\t\tinteractOutsideBehavior = \"ignore\",\n\t\tonCloseAutoFocus = noop,\n\t\tonEscapeKeydown = noop,\n\t\tonOpenAutoFocus = noop,\n\t\tonInteractOutside = noop,\n\t\tpreventScroll = true,\n\t\ttrapFocus = true,\n\t\trestoreScrollDelay = null,\n\t\t...restProps\n\t}: AlertDialogContentProps = $props();\n\n\tconst contentState = DialogContentState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n</script>\n\n{#if contentState.shouldRender || forceMount}\n\t<FocusScope\n\t\tref={contentState.opts.ref}\n\t\tloop\n\t\t{trapFocus}\n\t\tenabled={contentState.root.opts.open.current}\n\t\t{onCloseAutoFocus}\n\t\tonOpenAutoFocus={(e) => {\n\t\t\tonOpenAutoFocus(e);\n\t\t\tif (e.defaultPrevented) return;\n\t\t\te.preventDefault();\n\t\t\tafterSleep(0, () => contentState.opts.ref.current?.focus());\n\t\t}}\n\t>\n\t\t{#snippet focusScope({ props: focusScopeProps })}\n\t\t\t<EscapeLayer\n\t\t\t\t{...mergedProps}\n\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\tref={contentState.opts.ref}\n\t\t\t\tonEscapeKeydown={(e) => {\n\t\t\t\t\tonEscapeKeydown(e);\n\t\t\t\t\tif (e.defaultPrevented) return;\n\t\t\t\t\tcontentState.root.handleClose();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<DismissibleLayer\n\t\t\t\t\t{...mergedProps}\n\t\t\t\t\tref={contentState.opts.ref}\n\t\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\t\t{interactOutsideBehavior}\n\t\t\t\t\tonInteractOutside={(e) => {\n\t\t\t\t\t\tonInteractOutside(e);\n\t\t\t\t\t\tif (e.defaultPrevented) return;\n\t\t\t\t\t\tcontentState.root.handleClose();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<TextSelectionLayer\n\t\t\t\t\t\t{...mergedProps}\n\t\t\t\t\t\tref={contentState.opts.ref}\n\t\t\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\t\t>\n\t\t\t\t\t\t{#if child}\n\t\t\t\t\t\t\t{#if contentState.root.opts.open.current}\n\t\t\t\t\t\t\t\t<ScrollLock {preventScroll} {restoreScrollDelay} />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{@render child({\n\t\t\t\t\t\t\t\tprops: mergeProps(mergedProps, focusScopeProps),\n\t\t\t\t\t\t\t\t...contentState.snippetProps,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t<ScrollLock {preventScroll} />\n\t\t\t\t\t\t\t<div {...mergeProps(mergedProps, focusScopeProps)}>\n\t\t\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t</TextSelectionLayer>\n\t\t\t\t</DismissibleLayer>\n\t\t\t</EscapeLayer>\n\t\t{/snippet}\n\t</FocusScope>\n{/if}\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\n\tlet { open = $bindable(false), ...restProps }: AlertDialogPrimitive.RootProps = $props();\n</script>\n\n<AlertDialogPrimitive.Root bind:open {...restProps} />\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: AlertDialogPrimitive.PortalProps = $props();\n</script>\n\n<AlertDialogPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: AlertDialogPrimitive.OverlayProps = $props();\n</script>\n\n<AlertDialogPrimitive.Overlay\n\tbind:ref\n\tdata-slot=\"alert-dialog-overlay\"\n\tclass={cn(\n\t\t\"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport type { Snippet } from \"svelte\";\n\timport AlertDialogPortal from \"./alert-dialog-portal.svelte\";\n\timport AlertDialogOverlay from \"./alert-dialog-overlay.svelte\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport type { ComponentProps } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tportalProps,\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<AlertDialogPrimitive.ContentProps> & {\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof AlertDialogPortal>>;\n\t\tchildren: Snippet;\n\t} = $props();\n</script>\n\n<AlertDialogPortal {...portalProps}>\n\t<AlertDialogOverlay />\n\t<AlertDialogPrimitive.Content\n\t\tbind:ref\n\t\tdata-slot=\"alert-dialog-content\"\n\t\tclass={cn(\n\t\t\t\"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg\",\n\t\t\tclassName\n\t\t)}\n\t\t{...restProps}\n\t>\n\t\t{@render children?.()}\n\t</AlertDialogPrimitive.Content>\n</AlertDialogPortal>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"alert-dialog-header\"\n\tclass={cn(\"flex flex-col gap-2 text-center sm:text-left\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"alert-dialog-footer\"\n\tclass={cn(\"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: AlertDialogPrimitive.TitleProps = $props();\n</script>\n\n<AlertDialogPrimitive.Title\n\tbind:ref\n\tdata-slot=\"alert-dialog-title\"\n\tclass={cn(\"text-lg font-semibold\", className)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: AlertDialogPrimitive.DescriptionProps = $props();\n</script>\n\n<AlertDialogPrimitive.Description\n\tbind:ref\n\tdata-slot=\"alert-dialog-description\"\n\tclass={cn(\"text-muted-foreground text-sm\", className)}\n\t{...restProps}\n/>\n"],"names":["open","onOpenChange","noop","onOpenChangeComplete","DialogRootState","boxWith","v","uid","$.props_id","id","$.prop","$$props","createId","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay","restProps","$.rest_props","contentState","DialogContentState","mergedProps","mergeProps","FocusScope","$$anchor","e","afterSleep","$$arg0","focusScopeProps","EscapeLayer","$.spread_props","$.get","DismissibleLayer","TextSelectionLayer","ScrollLock","$$render","consequent","node_4","div","$.sibling","$.attribute_effect","$0","consequent_2","AlertDialogPrimitive_Root","$$value","AlertDialogPrimitive_Portal","$.derived","cn","AlertDialogPrimitive_Overlay","AlertDialogPortal","AlertDialogOverlay","node","AlertDialogPrimitive_Content","root","$.child","$.reset","$.append","AlertDialogPrimitive_Title","AlertDialogPrimitive_Description"],"mappings":"geAAA,SAOE,IAAAA,gBAAiB,EAAK,EACtBC,uBAAeC,CAAI,EACnBC,+BAAuBD,CAAI,EAI5BE,GAAgB,OAAM,CACrB,QAASC,EAAO,IAAO,cAAc,EACrC,KAAMA,EAAO,IACNL,EAAI,EACTM,GAAM,CACNN,EAAOM,CAAC,EACRL,EAAY,EAACK,CAAC,CACf,CAAA,EAED,qBAAsBD,EAAO,IAAOF,EAAoB,CAAA,sDAE1D,oECxBA,OAYOI,EAAGC,GAAA,cAGRC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,GAASL,CAAG,CAAA,EAGjBM,eAAgB,IAAI,EACpBC,qBAAa,EAAK,EAClBC,kCAA0B,QAAQ,EAClCC,2BAAmBd,CAAI,EACvBe,0BAAkBf,CAAI,EACtBgB,0BAAkBhB,CAAI,EACtBiB,4BAAoBjB,CAAI,EACxBkB,wBAAgB,EAAI,EACpBC,oBAAY,EAAI,EAChBC,6BAAqB,IAAI,EACtBC,EAAAC,EAAAb,EAAA,0OAGEc,EAAeC,GAAmB,OAAM,CAC7C,GAAIrB,EAAO,IAAOI,GAAE,EACpB,IAAKJ,EAAO,IACLQ,EAAG,EACRP,GAAOO,EAAMP,CAAC,CAAA,IAIXqB,QAAuBC,EAAWL,EAAWE,EA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D,EAAAhC,EAAAc,CAAA,KAFD,4CCVA,SAKE,IAAA/B,eAAgB,IAAI,EAGjBU,EAAAC,EAAAb,EAAA,4DAIJ,IAAAiC,EAAAe,GAAA,EAAAb,EAAAF,EAAAG,IAAA,CAAA,YAAA,sBAAA,MAAAA,EAAA,GAIIxB,CAAS,GAAA,CADN,IAAA8B,EAAG,yDAAwD1C,EAAA,KAAA,IAHlE,IAAA8C,EAAAG,EAAAhB,CAAA,yBAAAiB,EAAAjB,CAAA,KAAAA,EAAAM,GACWrC,SAAAA,GAAG,EADdiD,EAAAhC,EAAAc,CAAA,KAFD,iBCVA,SAKE,IAAA/B,eAAgB,IAAI,EAEjBU,EAAAC,EAAAb,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAoC,EAAAK,EAAA,IAAAC,EAAG,wBAAuB1C,EAAA,KAAA,CAAA,qBAHjCoD,EAAqBjC,EAAAM,kEAIjBb,OAHJ,KAAK,iBAAL,IAAK2B,EAAA,sBAHN,iBCTA,SAKE,IAAArC,eAAgB,IAAI,EAEjBU,EAAAC,EAAAb,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAoC,EAAAK,EAAA,IAAAC,EAAG,gCAA+B1C,EAAA,KAAA,CAAA,qBAHzCqD,EAAqBlC,EAAAM,wEAIjBb,OAHJ,KAAK,iBAAL,IAAK2B,EAAA,sBAHN","x_google_ignoreList":[0,1]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/BG_QVry4.js b/backend/static/frontend/_app/immutable/chunks/CyRgFauW.js
similarity index 79%
rename from backend/static/frontend/_app/immutable/chunks/BG_QVry4.js
rename to backend/static/frontend/_app/immutable/chunks/CyRgFauW.js
index 6a3b7894..b90ee2f5 100644
--- a/backend/static/frontend/_app/immutable/chunks/BG_QVry4.js
+++ b/backend/static/frontend/_app/immutable/chunks/CyRgFauW.js
@@ -1 +1 @@
-import{s as t,p as r}from"./xR3pK9Ey.js";const e={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}};t.updated.check;const s=e;export{s as p};
+import{s as t,p as r}from"./BIF4_51j.js";const e={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}};t.updated.check;const s=e;export{s as p};
diff --git a/backend/static/frontend/_app/immutable/chunks/BG_QVry4.js.map b/backend/static/frontend/_app/immutable/chunks/CyRgFauW.js.map
similarity index 98%
rename from backend/static/frontend/_app/immutable/chunks/BG_QVry4.js.map
rename to backend/static/frontend/_app/immutable/chunks/CyRgFauW.js.map
index b5e02990..7b901de8 100644
--- a/backend/static/frontend/_app/immutable/chunks/BG_QVry4.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/CyRgFauW.js.map
@@ -1 +1 @@
-{"version":3,"file":"BG_QVry4.js","sources":["../../../../../../node_modules/@sveltejs/kit/src/runtime/app/state/client.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/app/state/index.js"],"sourcesContent":["import {\n\tpage as _page,\n\tnavigating as _navigating,\n\tupdated as _updated\n} from '../../client/state.svelte.js';\nimport { stores } from '../../client/client.js';\n\nexport const page = {\n\tget data() {\n\t\treturn _page.data;\n\t},\n\tget error() {\n\t\treturn _page.error;\n\t},\n\tget form() {\n\t\treturn _page.form;\n\t},\n\tget params() {\n\t\treturn _page.params;\n\t},\n\tget route() {\n\t\treturn _page.route;\n\t},\n\tget state() {\n\t\treturn _page.state;\n\t},\n\tget status() {\n\t\treturn _page.status;\n\t},\n\tget url() {\n\t\treturn _page.url;\n\t}\n};\n\nexport const navigating = {\n\tget from() {\n\t\treturn _navigating.current ? _navigating.current.from : null;\n\t},\n\tget to() {\n\t\treturn _navigating.current ? _navigating.current.to : null;\n\t},\n\tget type() {\n\t\treturn _navigating.current ? _navigating.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn _navigating.current ? _navigating.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn _navigating.current ? _navigating.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn _navigating.current ? _navigating.current.complete : null;\n\t}\n};\n\nObject.defineProperty(navigating, 'current', {\n\tget() {\n\t\t// between 2.12.0 and 2.12.1 `navigating.current` existed\n\t\tthrow new Error('Replace navigating.current.<prop> with navigating.<prop>');\n\t}\n});\n\nexport const updated = {\n\tget current() {\n\t\treturn _updated.current;\n\t},\n\tcheck: stores.updated.check\n};\n","import {\n\tpage as client_page,\n\tnavigating as client_navigating,\n\tupdated as client_updated\n} from './client.js';\nimport {\n\tpage as server_page,\n\tnavigating as server_navigating,\n\tupdated as server_updated\n} from './server.js';\nimport { BROWSER } from 'esm-env';\n\n/**\n * A read-only reactive object with information about the current page, serving several use cases:\n * - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n * - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n * - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n * - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n *\n * ```svelte\n * <!--- file: +layout.svelte --->\n * <script>\n * \timport { page } from '$app/state';\n * </script>\n *\n * <p>Currently at {page.url.pathname}</p>\n *\n * {#if page.error}\n * \t<span class=\"red\">Problem detected</span>\n * {:else}\n * \t<span class=\"small\">All systems operational</span>\n * {/if}\n * ```\n *\n * Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n *\n * ```svelte\n * <!--- file: +page.svelte --->\n * <script>\n * \timport { page } from '$app/state';\n * \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n * \t$: badId = page.params.id; // Do not use; will never update after initial load\n * </script>\n * ```\n *\n * On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n *\n * @type {import('@sveltejs/kit').Page}\n */\nexport const page = BROWSER ? client_page : server_page;\n\n/**\n * A read-only object representing an in-progress navigation, with `from`, `to`, `type` and (if `type === 'popstate'`) `delta` properties.\n * Values are `null` when no navigation is occurring, or during server rendering.\n * @type {import('@sveltejs/kit').Navigation | { from: null, to: null, type: null, willUnload: null, delta: null, complete: null }}\n */\n// @ts-expect-error\nexport const navigating = BROWSER ? client_navigating : server_navigating;\n\n/**\n * A read-only reactive value that's initially `false`. If [`version.pollInterval`](https://svelte.dev/docs/kit/configuration#version) is a non-zero value, SvelteKit will poll for new versions of the app and update `current` to `true` when it detects one. `updated.check()` will force an immediate check, regardless of polling.\n * @type {{ get current(): boolean; check(): Promise<boolean>; }}\n */\nexport const updated = BROWSER ? client_updated : server_updated;\n"],"names":["page","_page","stores","client_page"],"mappings":"yCAOO,MAAMA,EAAO,CACnB,IAAI,MAAO,CACV,OAAOC,EAAM,IACd,EACA,IAAI,OAAQ,CACX,OAAOA,EAAM,KACd,EACA,IAAI,MAAO,CACV,OAAOA,EAAM,IACd,EACA,IAAI,QAAS,CACZ,OAAOA,EAAM,MACd,EACA,IAAI,OAAQ,CACX,OAAOA,EAAM,KACd,EACA,IAAI,OAAQ,CACX,OAAOA,EAAM,KACd,EACA,IAAI,QAAS,CACZ,OAAOA,EAAM,MACd,EACA,IAAI,KAAM,CACT,OAAOA,EAAM,GACd,CACD,EAkCQC,EAAO,QAAQ,MCjBX,MAACF,EAAiBG","x_google_ignoreList":[0,1]}
\ No newline at end of file
+{"version":3,"file":"CyRgFauW.js","sources":["../../../../../../node_modules/@sveltejs/kit/src/runtime/app/state/client.js","../../../../../../node_modules/@sveltejs/kit/src/runtime/app/state/index.js"],"sourcesContent":["import {\n\tpage as _page,\n\tnavigating as _navigating,\n\tupdated as _updated\n} from '../../client/state.svelte.js';\nimport { stores } from '../../client/client.js';\n\nexport const page = {\n\tget data() {\n\t\treturn _page.data;\n\t},\n\tget error() {\n\t\treturn _page.error;\n\t},\n\tget form() {\n\t\treturn _page.form;\n\t},\n\tget params() {\n\t\treturn _page.params;\n\t},\n\tget route() {\n\t\treturn _page.route;\n\t},\n\tget state() {\n\t\treturn _page.state;\n\t},\n\tget status() {\n\t\treturn _page.status;\n\t},\n\tget url() {\n\t\treturn _page.url;\n\t}\n};\n\nexport const navigating = {\n\tget from() {\n\t\treturn _navigating.current ? _navigating.current.from : null;\n\t},\n\tget to() {\n\t\treturn _navigating.current ? _navigating.current.to : null;\n\t},\n\tget type() {\n\t\treturn _navigating.current ? _navigating.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn _navigating.current ? _navigating.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn _navigating.current ? _navigating.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn _navigating.current ? _navigating.current.complete : null;\n\t}\n};\n\nObject.defineProperty(navigating, 'current', {\n\tget() {\n\t\t// between 2.12.0 and 2.12.1 `navigating.current` existed\n\t\tthrow new Error('Replace navigating.current.<prop> with navigating.<prop>');\n\t}\n});\n\nexport const updated = {\n\tget current() {\n\t\treturn _updated.current;\n\t},\n\tcheck: stores.updated.check\n};\n","import {\n\tpage as client_page,\n\tnavigating as client_navigating,\n\tupdated as client_updated\n} from './client.js';\nimport {\n\tpage as server_page,\n\tnavigating as server_navigating,\n\tupdated as server_updated\n} from './server.js';\nimport { BROWSER } from 'esm-env';\n\n/**\n * A read-only reactive object with information about the current page, serving several use cases:\n * - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n * - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n * - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n * - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n *\n * ```svelte\n * <!--- file: +layout.svelte --->\n * <script>\n * \timport { page } from '$app/state';\n * </script>\n *\n * <p>Currently at {page.url.pathname}</p>\n *\n * {#if page.error}\n * \t<span class=\"red\">Problem detected</span>\n * {:else}\n * \t<span class=\"small\">All systems operational</span>\n * {/if}\n * ```\n *\n * Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n *\n * ```svelte\n * <!--- file: +page.svelte --->\n * <script>\n * \timport { page } from '$app/state';\n * \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n * \t$: badId = page.params.id; // Do not use; will never update after initial load\n * </script>\n * ```\n *\n * On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n *\n * @type {import('@sveltejs/kit').Page}\n */\nexport const page = BROWSER ? client_page : server_page;\n\n/**\n * A read-only object representing an in-progress navigation, with `from`, `to`, `type` and (if `type === 'popstate'`) `delta` properties.\n * Values are `null` when no navigation is occurring, or during server rendering.\n * @type {import('@sveltejs/kit').Navigation | { from: null, to: null, type: null, willUnload: null, delta: null, complete: null }}\n */\n// @ts-expect-error\nexport const navigating = BROWSER ? client_navigating : server_navigating;\n\n/**\n * A read-only reactive value that's initially `false`. If [`version.pollInterval`](https://svelte.dev/docs/kit/configuration#version) is a non-zero value, SvelteKit will poll for new versions of the app and update `current` to `true` when it detects one. `updated.check()` will force an immediate check, regardless of polling.\n * @type {{ get current(): boolean; check(): Promise<boolean>; }}\n */\nexport const updated = BROWSER ? client_updated : server_updated;\n"],"names":["page","_page","stores","client_page"],"mappings":"yCAOO,MAAMA,EAAO,CACnB,IAAI,MAAO,CACV,OAAOC,EAAM,IACd,EACA,IAAI,OAAQ,CACX,OAAOA,EAAM,KACd,EACA,IAAI,MAAO,CACV,OAAOA,EAAM,IACd,EACA,IAAI,QAAS,CACZ,OAAOA,EAAM,MACd,EACA,IAAI,OAAQ,CACX,OAAOA,EAAM,KACd,EACA,IAAI,OAAQ,CACX,OAAOA,EAAM,KACd,EACA,IAAI,QAAS,CACZ,OAAOA,EAAM,MACd,EACA,IAAI,KAAM,CACT,OAAOA,EAAM,GACd,CACD,EAkCQC,EAAO,QAAQ,MCjBX,MAACF,EAAiBG","x_google_ignoreList":[0,1]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/DGXZzcqC.js b/backend/static/frontend/_app/immutable/chunks/D4tSNflE.js
similarity index 93%
rename from backend/static/frontend/_app/immutable/chunks/DGXZzcqC.js
rename to backend/static/frontend/_app/immutable/chunks/D4tSNflE.js
index 21b96a01..1fb82464 100644
--- a/backend/static/frontend/_app/immutable/chunks/DGXZzcqC.js
+++ b/backend/static/frontend/_app/immutable/chunks/D4tSNflE.js
@@ -1 +1 @@
-import{p as l,i as U}from"./DMODTt3n.js";import{p as W,f as G,m as X,b as r,a as Y,t as g,s,e as Z,o as ee,n as x,r as ae,d as S,c as o,k as V,l as E,g as n,u as re}from"./B2WdN-7r.js";import{e as te,i as le}from"./CMyj8Fzw.js";import{c as d}from"./BAcG0-U_.js";import{I as se}from"./D8CWOmhn.js";import{B as oe}from"./C1aqwstW.js";import{S as ne,a as de,c as ie,b as ue}from"./CzIIBX62.js";var ce=G("<!> <!>",1),ve=G('<div class="-mt-2 flex"><!> <!> <!> <!></div>');function ye(L,a){W(a,!0);let j=l(a,"placeholder",3,"Search..."),y=l(a,"value",15,""),i=l(a,"typeValue",15,""),u=l(a,"typeOptions",19,()=>[]),q=l(a,"disabled",3,!1);const z=re(()=>u().find(e=>e.value===i())?.label??"");var c=ve(),w=Z(c);se(w,{get placeholder(){return j()},class:"h-9 w-[250px] rounded-r-none border-r-0 shadow-none focus-visible:border-r focus-visible:border-sidebar-accent focus-visible:ring-0 lg:w-[320px]",onkeydown:e=>{e.key==="Enter"&&a.onSearch()},get value(){return y()},set value(e){y(e)}});var k=s(w,2);{var A=e=>{var v=S(),f=o(v);d(f,()=>ue,(D,F)=>{F(D,{type:"single",get value(){return i()},set value(m){i(m)},children:(m,fe)=>{var $=ce(),B=o($);d(B,()=>ne,(h,p)=>{p(h,{class:"h-9 w-[110px] rounded-none border-r-0 shadow-none",children:(_,J)=>{x();var t=g();V(()=>E(t,n(z))),r(_,t)},$$slots:{default:!0}})});var H=s(B,2);d(H,()=>de,(h,p)=>{p(h,{children:(_,J)=>{var t=S(),K=o(t);te(K,17,u,le,(M,b)=>{var I=S(),N=o(I);d(N,()=>ie,(Q,R)=>{R(Q,{get value(){return n(b).value},get label(){return n(b).label},children:(T,me)=>{x();var O=g();V(()=>E(O,n(b).label)),r(T,O)},$$slots:{default:!0}})}),r(M,I)}),r(_,t)},$$slots:{default:!0}})}),r(m,$)},$$slots:{default:!0}})}),r(e,v)};U(k,e=>{u().length>0&&e(A)})}var P=s(k,2);X(P,()=>a.children??ee);var C=s(P,2);oe(C,{variant:"outline",class:"h-9 rounded-l-none shadow-none",get onclick(){return a.onSearch},get disabled(){return q()},children:(e,v)=>{x();var f=g("Go");r(e,f)},$$slots:{default:!0}}),ae(c),r(L,c),Y()}export{ye as S};
+import{p as l,i as U}from"./DMODTt3n.js";import{p as W,f as G,m as X,b as r,a as Y,t as g,s,e as Z,o as ee,n as x,r as ae,d as S,c as o,k as V,l as E,g as n,u as re}from"./B2WdN-7r.js";import{e as te,i as le}from"./CMyj8Fzw.js";import{c as d}from"./BAcG0-U_.js";import{I as se}from"./D8CWOmhn.js";import{B as oe}from"./C1aqwstW.js";import{S as ne,a as de,c as ie,b as ue}from"./BgAHJuQl.js";var ce=G("<!> <!>",1),ve=G('<div class="-mt-2 flex"><!> <!> <!> <!></div>');function ye(L,a){W(a,!0);let j=l(a,"placeholder",3,"Search..."),y=l(a,"value",15,""),i=l(a,"typeValue",15,""),u=l(a,"typeOptions",19,()=>[]),q=l(a,"disabled",3,!1);const z=re(()=>u().find(e=>e.value===i())?.label??"");var c=ve(),w=Z(c);se(w,{get placeholder(){return j()},class:"h-9 w-[250px] rounded-r-none border-r-0 shadow-none focus-visible:border-r focus-visible:border-sidebar-accent focus-visible:ring-0 lg:w-[320px]",onkeydown:e=>{e.key==="Enter"&&a.onSearch()},get value(){return y()},set value(e){y(e)}});var k=s(w,2);{var A=e=>{var v=S(),f=o(v);d(f,()=>ue,(D,F)=>{F(D,{type:"single",get value(){return i()},set value(m){i(m)},children:(m,fe)=>{var $=ce(),B=o($);d(B,()=>ne,(h,p)=>{p(h,{class:"h-9 w-[110px] rounded-none border-r-0 shadow-none",children:(_,J)=>{x();var t=g();V(()=>E(t,n(z))),r(_,t)},$$slots:{default:!0}})});var H=s(B,2);d(H,()=>de,(h,p)=>{p(h,{children:(_,J)=>{var t=S(),K=o(t);te(K,17,u,le,(M,b)=>{var I=S(),N=o(I);d(N,()=>ie,(Q,R)=>{R(Q,{get value(){return n(b).value},get label(){return n(b).label},children:(T,me)=>{x();var O=g();V(()=>E(O,n(b).label)),r(T,O)},$$slots:{default:!0}})}),r(M,I)}),r(_,t)},$$slots:{default:!0}})}),r(m,$)},$$slots:{default:!0}})}),r(e,v)};U(k,e=>{u().length>0&&e(A)})}var P=s(k,2);X(P,()=>a.children??ee);var C=s(P,2);oe(C,{variant:"outline",class:"h-9 rounded-l-none shadow-none",get onclick(){return a.onSearch},get disabled(){return q()},children:(e,v)=>{x();var f=g("Go");r(e,f)},$$slots:{default:!0}}),ae(c),r(L,c),Y()}export{ye as S};
diff --git a/backend/static/frontend/_app/immutable/chunks/DGXZzcqC.js.map b/backend/static/frontend/_app/immutable/chunks/D4tSNflE.js.map
similarity index 97%
rename from backend/static/frontend/_app/immutable/chunks/DGXZzcqC.js.map
rename to backend/static/frontend/_app/immutable/chunks/D4tSNflE.js.map
index 90dafd35..3ec9351f 100644
--- a/backend/static/frontend/_app/immutable/chunks/DGXZzcqC.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/D4tSNflE.js.map
@@ -1 +1 @@
-{"version":3,"file":"DGXZzcqC.js","sources":["../../../../../../src/lib/components/ui/search-bar/search-bar.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport type { Snippet } from 'svelte';\n\timport { Input } from '$lib/components/ui/input';\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Select from '$lib/components/ui/select';\n\n\ttype TypeOption = {\n\t\tvalue: string;\n\t\tlabel: string;\n\t};\n\n\ttype Props = {\n\t\tplaceholder?: string;\n\t\tvalue?: string;\n\t\ttypeValue?: string;\n\t\ttypeOptions?: TypeOption[];\n\t\tonSearch: () => void;\n\t\tdisabled?: boolean;\n\t\t/**\n\t\t * Optional slot rendered between the type select and the Go button.\n\t\t * Consumers can drop additional selects in here (e.g. a severity filter)\n\t\t * so they visually belong to the same compound control. Your content is\n\t\t * responsible for matching the 9-unit height and using rounded-none +\n\t\t * border-r-0 to keep the joined look.\n\t\t */\n\t\tchildren?: Snippet;\n\t};\n\n\tlet {\n\t\tplaceholder = 'Search...',\n\t\tvalue = $bindable(''),\n\t\ttypeValue = $bindable(''),\n\t\ttypeOptions = [],\n\t\tonSearch,\n\t\tdisabled = false,\n\t\tchildren\n\t}: Props = $props();\n\n\tconst typeLabel = $derived(typeOptions.find((o) => o.value === typeValue)?.label ?? '');\n</script>\n\n<div class=\"-mt-2 flex\">\n\t<Input\n\t\t{placeholder}\n\t\tclass=\"h-9 w-[250px] rounded-r-none border-r-0 shadow-none focus-visible:border-r focus-visible:border-sidebar-accent focus-visible:ring-0 lg:w-[320px]\"\n\t\tbind:value\n\t\tonkeydown={(e) => {\n\t\t\tif (e.key === 'Enter') onSearch();\n\t\t}}\n\t/>\n\n\t{#if typeOptions.length > 0}\n\t\t<Select.Root type=\"single\" bind:value={typeValue}>\n\t\t\t<Select.Trigger class=\"h-9 w-[110px] rounded-none border-r-0 shadow-none\">\n\t\t\t\t{typeLabel}\n\t\t\t</Select.Trigger>\n\t\t\t<Select.Content>\n\t\t\t\t{#each typeOptions as option}\n\t\t\t\t\t<Select.Item value={option.value} label={option.label}>\n\t\t\t\t\t\t{option.label}\n\t\t\t\t\t</Select.Item>\n\t\t\t\t{/each}\n\t\t\t</Select.Content>\n\t\t</Select.Root>\n\t{/if}\n\n\t{@render children?.()}\n\n\t<Button variant=\"outline\" class=\"h-9 rounded-l-none shadow-none\" onclick={onSearch} {disabled}>\n\t\tGo\n\t</Button>\n</div>\n"],"names":["placeholder","value","typeValue","typeOptions","$.prop","$$props","disabled","typeLabel","$.derived","o","div","root","Input","node","$$value","Select_Root","$$anchor","Select_Trigger","Select_Content","$.each","node_5","option","Select_Item","$.get","$.template_effect","$.set_text","text_1","$$render","consequent","Button","node_8"],"mappings":"meAAA,SA6BE,IAAAA,sBAAc,WAAW,EACzBC,iBAAkB,EAAE,EACpBC,qBAAsB,EAAE,EACxBC,EAAWC,EAAAC,EAAA,cAAA,GAAA,IAAA,CAAA,CAAA,EAEXC,mBAAW,EAAK,EAIX,MAAAC,EAASC,GAAA,IAAYL,EAAW,EAAC,KAAMM,GAAMA,EAAE,QAAUP,EAAS,CAAA,GAAG,OAAS,EAAE,MAGtFQ,EAAGC,GAAA,MAAHD,CAAG,EACFE,GAAAC,EAAA,0BACCb,EAAW,4JAGA,UAAA,GAAM,CACb,EAAE,MAAQ,SAAOK,EAAA,SAAA,CACtB,MAHA,OAAK,iBAAL,MAAKS,EAAA,qEAOJC,EAAWC,EAAA,mBAAe,OAAU,QAAEd,EAAS,OAArB,MAAUY,EAAA,CAAEZ,EAASY,CAAA,0DAC9CG,EAAcD,EAAA,sGACbT,CAAS,CAAA,CAAA,mEAEVW,EAAcF,EAAA,mCACPG,GAAAC,EAAA,GAAAjB,QAAekB,IAAM,qCAC1BC,EAAWN,EAAA,aAAQ,OAAAO,EAAAF,CAAM,EAAC,mBAAc,OAAAE,EAAAF,CAAM,EAAC,uCAC9CG,EAAA,IAAAC,EAAAC,EAAAH,EAAAF,CAAM,EAAC,KAAK,CAAA,8HARblB,EAAW,EAAC,OAAS,GAACwB,EAAAC,CAAA,sDAiB1BC,GAAMC,EAAA,iHAA8ExB,EAAQ,wEA3B7FI,CAAG,MAAHA,CAAG,KAFJ"}
\ No newline at end of file
+{"version":3,"file":"D4tSNflE.js","sources":["../../../../../../src/lib/components/ui/search-bar/search-bar.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport type { Snippet } from 'svelte';\n\timport { Input } from '$lib/components/ui/input';\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Select from '$lib/components/ui/select';\n\n\ttype TypeOption = {\n\t\tvalue: string;\n\t\tlabel: string;\n\t};\n\n\ttype Props = {\n\t\tplaceholder?: string;\n\t\tvalue?: string;\n\t\ttypeValue?: string;\n\t\ttypeOptions?: TypeOption[];\n\t\tonSearch: () => void;\n\t\tdisabled?: boolean;\n\t\t/**\n\t\t * Optional slot rendered between the type select and the Go button.\n\t\t * Consumers can drop additional selects in here (e.g. a severity filter)\n\t\t * so they visually belong to the same compound control. Your content is\n\t\t * responsible for matching the 9-unit height and using rounded-none +\n\t\t * border-r-0 to keep the joined look.\n\t\t */\n\t\tchildren?: Snippet;\n\t};\n\n\tlet {\n\t\tplaceholder = 'Search...',\n\t\tvalue = $bindable(''),\n\t\ttypeValue = $bindable(''),\n\t\ttypeOptions = [],\n\t\tonSearch,\n\t\tdisabled = false,\n\t\tchildren\n\t}: Props = $props();\n\n\tconst typeLabel = $derived(typeOptions.find((o) => o.value === typeValue)?.label ?? '');\n</script>\n\n<div class=\"-mt-2 flex\">\n\t<Input\n\t\t{placeholder}\n\t\tclass=\"h-9 w-[250px] rounded-r-none border-r-0 shadow-none focus-visible:border-r focus-visible:border-sidebar-accent focus-visible:ring-0 lg:w-[320px]\"\n\t\tbind:value\n\t\tonkeydown={(e) => {\n\t\t\tif (e.key === 'Enter') onSearch();\n\t\t}}\n\t/>\n\n\t{#if typeOptions.length > 0}\n\t\t<Select.Root type=\"single\" bind:value={typeValue}>\n\t\t\t<Select.Trigger class=\"h-9 w-[110px] rounded-none border-r-0 shadow-none\">\n\t\t\t\t{typeLabel}\n\t\t\t</Select.Trigger>\n\t\t\t<Select.Content>\n\t\t\t\t{#each typeOptions as option}\n\t\t\t\t\t<Select.Item value={option.value} label={option.label}>\n\t\t\t\t\t\t{option.label}\n\t\t\t\t\t</Select.Item>\n\t\t\t\t{/each}\n\t\t\t</Select.Content>\n\t\t</Select.Root>\n\t{/if}\n\n\t{@render children?.()}\n\n\t<Button variant=\"outline\" class=\"h-9 rounded-l-none shadow-none\" onclick={onSearch} {disabled}>\n\t\tGo\n\t</Button>\n</div>\n"],"names":["placeholder","value","typeValue","typeOptions","$.prop","$$props","disabled","typeLabel","$.derived","o","div","root","Input","node","$$value","Select_Root","$$anchor","Select_Trigger","Select_Content","$.each","node_5","option","Select_Item","$.get","$.template_effect","$.set_text","text_1","$$render","consequent","Button","node_8"],"mappings":"meAAA,SA6BE,IAAAA,sBAAc,WAAW,EACzBC,iBAAkB,EAAE,EACpBC,qBAAsB,EAAE,EACxBC,EAAWC,EAAAC,EAAA,cAAA,GAAA,IAAA,CAAA,CAAA,EAEXC,mBAAW,EAAK,EAIX,MAAAC,EAASC,GAAA,IAAYL,EAAW,EAAC,KAAMM,GAAMA,EAAE,QAAUP,EAAS,CAAA,GAAG,OAAS,EAAE,MAGtFQ,EAAGC,GAAA,MAAHD,CAAG,EACFE,GAAAC,EAAA,0BACCb,EAAW,4JAGA,UAAA,GAAM,CACb,EAAE,MAAQ,SAAOK,EAAA,SAAA,CACtB,MAHA,OAAK,iBAAL,MAAKS,EAAA,qEAOJC,EAAWC,EAAA,mBAAe,OAAU,QAAEd,EAAS,OAArB,MAAUY,EAAA,CAAEZ,EAASY,CAAA,0DAC9CG,EAAcD,EAAA,sGACbT,CAAS,CAAA,CAAA,mEAEVW,EAAcF,EAAA,mCACPG,GAAAC,EAAA,GAAAjB,QAAekB,IAAM,qCAC1BC,EAAWN,EAAA,aAAQ,OAAAO,EAAAF,CAAM,EAAC,mBAAc,OAAAE,EAAAF,CAAM,EAAC,uCAC9CG,EAAA,IAAAC,EAAAC,EAAAH,EAAAF,CAAM,EAAC,KAAK,CAAA,8HARblB,EAAW,EAAC,OAAS,GAACwB,EAAAC,CAAA,sDAiB1BC,GAAMC,EAAA,iHAA8ExB,EAAQ,wEA3B7FI,CAAG,MAAHA,CAAG,KAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/D6S6XYVy.js b/backend/static/frontend/_app/immutable/chunks/D6S6XYVy.js
deleted file mode 100644
index d5b80d51..00000000
--- a/backend/static/frontend/_app/immutable/chunks/D6S6XYVy.js
+++ /dev/null
@@ -1 +0,0 @@
-import{h as g,v as f,g as u,i as h,u as j,aM as O,F as I,C as E}from"./B2WdN-7r.js";import{g as R}from"./xR3pK9Ey.js";const S="traceway_nav_depth";function T(){try{return parseInt(sessionStorage.getItem(S)||"0",10)}catch{return 0}}function z(s){try{sessionStorage.setItem(S,String(s))}catch{}}function B(){z(T()+1)}function L(){z(Math.max(0,T()-1))}function v(){try{sessionStorage.removeItem(S)}catch{}}function k(){return T()>0}function G(s){const{fallbackPath:t}=s;return e=>{if(e.ctrlKey||e.metaKey){window.open(t,"_blank");return}k()?history.back():R(t)}}class N{#t=g(f(localStorage.getItem("AUTH_TOKEN")));get token(){return u(this.#t)}set token(t){h(this.#t,t,!0)}#e=g(f(JSON.parse(localStorage.getItem("USER_ORGANIZATIONS")||"[]")));get organizations(){return u(this.#e)}set organizations(t){h(this.#e,t,!0)}#s=j(()=>!!this.token);get isAuthenticated(){return u(this.#s)}set isAuthenticated(t){h(this.#s,t)}constructor(){O(()=>{I(()=>{this.token?localStorage.setItem("AUTH_TOKEN",this.token):localStorage.removeItem("AUTH_TOKEN")}),I(()=>{this.organizations.length>0?localStorage.setItem("USER_ORGANIZATIONS",JSON.stringify(this.organizations)):localStorage.removeItem("USER_ORGANIZATIONS")})})}setToken(t){this.token=t}setOrganizations(t){this.organizations=t}getRoleForOrganization(t){return this.organizations.find(r=>r.id===t)?.role||null}canManageOrganization(t){const e=this.getRoleForOrganization(t);return e==="owner"||e==="admin"}getTimezoneForOrganization(t){return this.organizations.find(r=>r.id===t)?.timezone||null}updateOrganizationTimezone(t,e){const r=this.organizations.find(n=>n.id===t);r&&(r.timezone=e,this.organizations=[...this.organizations])}logout(){this.token=null,this.organizations=[],v()}}const m=new N;function q(...s){return s.filter(Boolean).join(" ")}const C=typeof document<"u";let w=0;class _{#t=g(f([]));get toasts(){return u(this.#t)}set toasts(t){h(this.#t,t,!0)}#e=g(f([]));get heights(){return u(this.#e)}set heights(t){h(this.#e,t,!0)}#s=t=>{const e=this.toasts.findIndex(r=>r.id===t);return e===-1?null:e};addToast=t=>{C&&this.toasts.unshift(t)};updateToast=({id:t,data:e,type:r,message:n})=>{const i=this.toasts.findIndex(a=>a.id===t),o=this.toasts[i];this.toasts[i]={...o,...e,id:t,title:n,type:r,updated:!0}};create=t=>{const{message:e,...r}=t,n=typeof t?.id=="number"||t.id&&t.id?.length>0?t.id:w++,i=t.dismissable===void 0?!0:t.dismissable,o=t.type===void 0?"default":t.type;return E(()=>{this.toasts.find(l=>l.id===n)?this.updateToast({id:n,data:t,type:o,message:e,dismissable:i}):this.addToast({...r,id:n,title:e,dismissable:i,type:o})}),n};dismiss=t=>(E(()=>{if(t===void 0){this.toasts=this.toasts.map(r=>({...r,dismiss:!0}));return}const e=this.toasts.findIndex(r=>r.id===t);this.toasts[e]&&(this.toasts[e]={...this.toasts[e],dismiss:!0})}),t);remove=t=>{if(t===void 0){this.toasts=[];return}const e=this.#s(t);if(e!==null)return this.toasts.splice(e,1),t};message=(t,e)=>this.create({...e,type:"default",message:t});error=(t,e)=>this.create({...e,type:"error",message:t});success=(t,e)=>this.create({...e,type:"success",message:t});info=(t,e)=>this.create({...e,type:"info",message:t});warning=(t,e)=>this.create({...e,type:"warning",message:t});loading=(t,e)=>this.create({...e,type:"loading",message:t});promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:typeof e.loading=="string"?e.loading:e.loading()}));const n=t instanceof Promise?t:t();let i=r!==void 0;return n.then(o=>{if(typeof o=="object"&&o&&"ok"in o&&typeof o.ok=="boolean"&&!o.ok){i=!1;const a=A(o);this.create({id:r,type:"error",message:a})}else if(e.success!==void 0){i=!1;const a=typeof e.success=="function"?e.success(o):e.success;this.create({id:r,type:"success",message:a})}}).catch(o=>{if(e.error!==void 0){i=!1;const a=typeof e.error=="function"?e.error(o):e.error;this.create({id:r,type:"error",message:a})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),e.finally?.()}),r};custom=(t,e)=>{const r=e?.id||w++;return this.create({component:t,id:r,...e}),r};removeHeight=t=>{this.heights=this.heights.filter(e=>e.toastId!==t)};setHeight=t=>{const e=this.#s(t.toastId);if(e===null){this.heights.push(t);return}this.heights[e]=t};reset=()=>{this.toasts=[],this.heights=[]}}function A(s){return s&&typeof s=="object"&&"status"in s?`HTTP error! Status: ${s.status}`:`Error! ${s}`}const c=new _;function x(s,t){return c.create({message:s,...t})}class V{#t=j(()=>c.toasts.filter(t=>!t.dismiss));get toasts(){return u(this.#t)}}const F=x,b=Object.assign(F,{success:c.success,info:c.info,warning:c.warning,error:c.error,custom:c.custom,message:c.message,promise:c.promise,dismiss:c.dismiss,loading:c.loading,getActiveToasts:()=>c.toasts.filter(s=>!s.dismiss)}),J="/api";async function p(s,t,e,r){const n=m.token,i={"Content-Type":"application/json"};n&&(i.Authorization=`Bearer ${n}`);const o={method:s,headers:i};e&&(o.body=JSON.stringify(e));let a=`${J}${t}`;if(r?.projectId&&!r?.skipProjectId){const d=t.includes("?")?"&":"?";a=`${a}${d}projectId=${r.projectId}`}const l=await fetch(a,o);if(l.status===401)throw m.logout(),window.location.href="/login",new Error("Unauthorized");if(l.status===403){const d=window.location.pathname;throw d==="/"||d===""?(m.logout(),window.location.href="/login"):(b.warning("You don't have permission to access that feature",{position:"top-center"}),window.location.href="/"),new Error("Forbidden")}if(l.status===422){const d=await l.json().catch(()=>({})),P=new Error(d.error||"Validation failed");throw P.status=422,P}if(!l.ok){const d=new Error(`API Error: ${l.statusText}`);throw d.status=l.status,d}return l.json()}const y={get:(s,t)=>p("GET",s,void 0,t),post:(s,t,e)=>p("POST",s,t,e),put:(s,t,e)=>p("PUT",s,t,e),delete:(s,t)=>p("DELETE",s,void 0,t)},H=["react","svelte","vuejs","jquery","react-native","flutter","android"],M=["react","svelte","vuejs","nextjs","nestjs","express","remix","jquery","react-native"],U={gin:"Gin",fiber:"Fiber",chi:"Chi",fasthttp:"FastHTTP",stdlib:"Standard Library",custom:"Custom",react:"React",svelte:"Svelte",vuejs:"Vue.js",nextjs:"Next.js",nestjs:"NestJS",express:"Express",remix:"Remix",jquery:"jQuery","react-native":"React Native",hono:"Hono",cloudflare:"Cloudflare",opentelemetry:"OpenTelemetry",symfony:"Symfony",flutter:"Flutter",android:"Android"};function W(s){return U[s]??s}function Z(s){return H.includes(s)}function Y(s){return M.includes(s)}function Q(s){return s==="opentelemetry"||s==="hono"}function X(s){return s==="cloudflare"}class D{#t=g(f(JSON.parse(localStorage.getItem("PROJECTS_CACHE")||"[]")));get projects(){return u(this.#t)}set projects(t){h(this.#t,t,!0)}#e=g(f(localStorage.getItem("CURRENT_PROJECT_ID")));get currentProjectId(){return u(this.#e)}set currentProjectId(t){h(this.#e,t,!0)}#s=g(!1);get loading(){return u(this.#s)}set loading(t){h(this.#s,t,!0)}#r=g(null);get error(){return u(this.#r)}set error(t){h(this.#r,t,!0)}#o=j(()=>this.projects.find(t=>t.id===this.currentProjectId)||this.projects[0]||null);get currentProject(){return u(this.#o)}set currentProject(t){h(this.#o,t)}#n=j(()=>{const t=this.currentProject?.organizationId;return t?m.canManageOrganization(t):!1});get canManageCurrentProject(){return u(this.#n)}set canManageCurrentProject(t){h(this.#n,t)}constructor(){O(()=>{I(()=>{this.currentProjectId?localStorage.setItem("CURRENT_PROJECT_ID",this.currentProjectId):localStorage.removeItem("CURRENT_PROJECT_ID")})})}setProjects(t){this.projects=t,(!this.currentProjectId||!this.projects.find(e=>e.id===this.currentProjectId))&&this.projects.length>0&&(this.currentProjectId=this.projects[0].id),localStorage.setItem("PROJECTS_CACHE",JSON.stringify(this.projects))}async loadProjects(){this.loading=!0,this.error=null;try{const t=await y.get("/projects");this.setProjects(t)}catch(t){const e=t instanceof Error?t.message:"Failed to load projects";this.error=e;const r=localStorage.getItem("PROJECTS_CACHE");r&&(this.projects=JSON.parse(r))}finally{this.loading=!1}}async createProject(t,e="gin"){const r=await y.post("/projects",{name:t,framework:e},{projectId:this.currentProjectId??void 0});return await this.loadProjects(),r}async generateSourceMapToken(){const t=await y.post("/projects/source-map-token",{},{projectId:this.currentProjectId??void 0});return await this.loadProjects(),t.sourceMapToken}selectProject(t){this.currentProjectId=t}initFromCache(){const t=localStorage.getItem("PROJECTS_CACHE");t&&(this.projects=JSON.parse(t))}}const tt=new D;export{U as F,V as S,y as a,m as b,G as c,Q as d,X as e,Y as f,W as g,c as h,Z as i,q as j,L as k,B as l,tt as p,b as t};
diff --git a/backend/static/frontend/_app/immutable/chunks/D6S6XYVy.js.map b/backend/static/frontend/_app/immutable/chunks/D6S6XYVy.js.map
deleted file mode 100644
index a02d197f..00000000
--- a/backend/static/frontend/_app/immutable/chunks/D6S6XYVy.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"D6S6XYVy.js","sources":["../../../../../../src/lib/utils/back-navigation.ts","../../../../../../src/lib/state/auth.svelte.ts","../../../../../../node_modules/svelte-sonner/dist/internal/helpers.js","../../../../../../node_modules/svelte-sonner/dist/toast-state.svelte.js","../../../../../../src/lib/api.ts","../../../../../../src/lib/state/projects.svelte.ts"],"sourcesContent":["import { goto } from '$app/navigation';\n\nconst NAV_DEPTH_KEY = 'traceway_nav_depth';\n\nexport interface SmartBackOptions {\n\tfallbackPath: string;\n}\n\n/**\n * Get current navigation depth\n */\nfunction getNavDepth(): number {\n\ttry {\n\t\treturn parseInt(sessionStorage.getItem(NAV_DEPTH_KEY) || '0', 10);\n\t} catch {\n\t\treturn 0;\n\t}\n}\n\n/**\n * Set navigation depth\n */\nfunction setNavDepth(depth: number): void {\n\ttry {\n\t\tsessionStorage.setItem(NAV_DEPTH_KEY, String(depth));\n\t} catch {\n\t\t// Ignore storage errors\n\t}\n}\n\n/**\n * Called when navigating to a new page (pathname changed)\n */\nexport function incrementNavDepth(): void {\n\tsetNavDepth(getNavDepth() + 1);\n}\n\n/**\n * Called on popstate (browser back/forward)\n */\nexport function decrementNavDepth(): void {\n\tsetNavDepth(Math.max(0, getNavDepth() - 1));\n}\n\n/**\n * Clear navigation depth (call on logout)\n */\nexport function clearNavDepth(): void {\n\ttry {\n\t\tsessionStorage.removeItem(NAV_DEPTH_KEY);\n\t} catch {\n\t\t// Ignore storage errors\n\t}\n}\n\n/**\n * Check if there's internal history to go back to\n */\nexport function hasInternalHistory(): boolean {\n\treturn getNavDepth() > 0;\n}\n\n/**\n * Create a smart back button handler that:\n * 1. Uses history.back() if there's valid internal navigation history\n * 2. Falls back to the specified path if no history (direct URL access, refresh with no prior nav)\n */\nexport function createSmartBackHandler(options: SmartBackOptions): (e: MouseEvent) => void {\n\tconst { fallbackPath } = options;\n\n\treturn (event: MouseEvent) => {\n\t\t// Ctrl/Cmd+Click: open fallback in new tab\n\t\tif (event.ctrlKey || event.metaKey) {\n\t\t\twindow.open(fallbackPath, '_blank');\n\t\t\treturn;\n\t\t}\n\n\t\tif (hasInternalHistory()) {\n\t\t\thistory.back();\n\t\t} else {\n\t\t\tgoto(fallbackPath);\n\t\t}\n\t};\n}\n","import { clearNavDepth } from '$lib/utils/back-navigation';\n\nexport interface UserOrganizationResponse {\n id: number;\n name: string;\n role: string;\n timezone: string;\n}\n\nclass AuthState {\n token = $state<string | null>(localStorage.getItem('AUTH_TOKEN'));\n organizations = $state<UserOrganizationResponse[]>(\n JSON.parse(localStorage.getItem('USER_ORGANIZATIONS') || '[]')\n );\n\n isAuthenticated = $derived(!!this.token);\n\n constructor() {\n $effect.root(() => {\n $effect(() => {\n if (this.token) {\n localStorage.setItem('AUTH_TOKEN', this.token);\n } else {\n localStorage.removeItem('AUTH_TOKEN');\n }\n });\n $effect(() => {\n if (this.organizations.length > 0) {\n localStorage.setItem('USER_ORGANIZATIONS', JSON.stringify(this.organizations));\n } else {\n localStorage.removeItem('USER_ORGANIZATIONS');\n }\n });\n });\n }\n\n setToken(token: string) {\n this.token = token;\n }\n\n setOrganizations(organizations: UserOrganizationResponse[]) {\n this.organizations = organizations;\n }\n\n getRoleForOrganization(organizationId: number): string | null {\n const organization = this.organizations.find(o => o.id === organizationId);\n return organization?.role || null;\n }\n\n canManageOrganization(organizationId: number): boolean {\n const role = this.getRoleForOrganization(organizationId);\n return role === 'owner' || role === 'admin';\n }\n\n getTimezoneForOrganization(organizationId: number): string | null {\n const organization = this.organizations.find(o => o.id === organizationId);\n return organization?.timezone || null;\n }\n\n updateOrganizationTimezone(organizationId: number, timezone: string) {\n const organization = this.organizations.find(o => o.id === organizationId);\n if (organization) {\n organization.timezone = timezone;\n this.organizations = [...this.organizations];\n }\n }\n\n logout() {\n this.token = null;\n this.organizations = [];\n clearNavDepth();\n }\n}\n\nexport const authState = new AuthState();\n","export function cn(...classes) {\n return classes.filter(Boolean).join(' ');\n}\nexport const isBrowser = typeof document !== 'undefined';\n","import { isBrowser } from './internal/helpers.js';\nimport { sonnerContext } from './internal/ctx.js';\nimport { untrack } from 'svelte';\nlet toastsCounter = 0;\nclass ToastState {\n toasts = $state([]);\n heights = $state([]);\n #findToastIdx = (id) => {\n const idx = this.toasts.findIndex((toast) => toast.id === id);\n if (idx === -1)\n return null;\n return idx;\n };\n addToast = (data) => {\n if (!isBrowser)\n return;\n this.toasts.unshift(data);\n };\n updateToast = ({ id, data, type, message }) => {\n const toastIdx = this.toasts.findIndex((toast) => toast.id === id);\n const toastToUpdate = this.toasts[toastIdx];\n this.toasts[toastIdx] = {\n ...toastToUpdate,\n ...data,\n id,\n title: message,\n type,\n updated: true\n };\n };\n create = (data) => {\n const { message, ...rest } = data;\n const id = typeof data?.id === 'number' || (data.id && data.id?.length > 0)\n ? data.id\n : toastsCounter++;\n const dismissable = data.dismissable === undefined ? true : data.dismissable;\n const type = data.type === undefined ? 'default' : data.type;\n untrack(() => {\n const alreadyExists = this.toasts.find((toast) => toast.id === id);\n if (alreadyExists) {\n this.updateToast({ id, data, type, message, dismissable });\n }\n else {\n this.addToast({ ...rest, id, title: message, dismissable, type });\n }\n });\n return id;\n };\n dismiss = (id) => {\n untrack(() => {\n if (id === undefined) {\n // we're dismissing all the toasts\n this.toasts = this.toasts.map((toast) => ({ ...toast, dismiss: true }));\n return;\n }\n // we're dismissing a specific toast\n const toastIdx = this.toasts.findIndex((toast) => toast.id === id);\n if (this.toasts[toastIdx]) {\n this.toasts[toastIdx] = { ...this.toasts[toastIdx], dismiss: true };\n }\n });\n return id;\n };\n remove = (id) => {\n if (id === undefined) {\n // remove all toasts\n this.toasts = [];\n return;\n }\n // remove a specific toast\n const toastIdx = this.#findToastIdx(id);\n if (toastIdx === null)\n return;\n this.toasts.splice(toastIdx, 1);\n return id;\n };\n message = (message, data) => {\n return this.create({ ...data, type: 'default', message });\n };\n error = (message, data) => {\n return this.create({ ...data, type: 'error', message });\n };\n success = (message, data) => {\n return this.create({ ...data, type: 'success', message });\n };\n info = (message, data) => {\n return this.create({ ...data, type: 'info', message });\n };\n warning = (message, data) => {\n return this.create({ ...data, type: 'warning', message });\n };\n loading = (message, data) => {\n return this.create({ ...data, type: 'loading', message });\n };\n promise = (promise, data) => {\n if (!data) {\n // Nothing to show\n return;\n }\n let id = undefined;\n if (data.loading !== undefined) {\n id = this.create({\n ...data,\n promise,\n type: 'loading',\n message: typeof data.loading === 'string' ? data.loading : data.loading()\n });\n }\n const p = promise instanceof Promise ? promise : promise();\n let shouldDismiss = id !== undefined;\n p.then((response) => {\n if (typeof response === 'object' &&\n response &&\n 'ok' in response &&\n typeof response.ok === 'boolean' &&\n !response.ok) {\n shouldDismiss = false;\n const message = constructPromiseErrorMessage(response);\n this.create({ id, type: 'error', message });\n }\n else if (data.success !== undefined) {\n shouldDismiss = false;\n const message = typeof data.success === 'function' ? data.success(response) : data.success;\n this.create({ id, type: 'success', message });\n }\n })\n .catch((error) => {\n if (data.error !== undefined) {\n shouldDismiss = false;\n const message = typeof data.error === 'function' ? data.error(error) : data.error;\n this.create({ id, type: 'error', message });\n }\n })\n .finally(() => {\n if (shouldDismiss) {\n // Toast is still in load state (and will be indefinitely — dismiss it)\n this.dismiss(id);\n id = undefined;\n }\n data.finally?.();\n });\n return id;\n };\n custom = (component, data) => {\n const id = data?.id || toastsCounter++;\n this.create({ component, id, ...data });\n return id;\n };\n removeHeight = (id) => {\n this.heights = this.heights.filter((height) => height.toastId !== id);\n };\n setHeight = (data) => {\n const toastIdx = this.#findToastIdx(data.toastId);\n if (toastIdx === null) {\n this.heights.push(data);\n return;\n }\n this.heights[toastIdx] = data;\n };\n reset = () => {\n this.toasts = [];\n this.heights = [];\n };\n}\nfunction constructPromiseErrorMessage(response) {\n if (response && typeof response === 'object' && 'status' in response) {\n return `HTTP error! Status: ${response.status}`;\n }\n return `Error! ${response}`;\n}\nexport const toastState = new ToastState();\nfunction toastFunction(message, data) {\n return toastState.create({\n message,\n ...data\n });\n}\nexport class SonnerState {\n /**\n * A derived state of the toasts that are not dismissed.\n */\n #activeToasts = $derived(toastState.toasts.filter((toast) => !toast.dismiss));\n get toasts() {\n return this.#activeToasts;\n }\n}\n/**\n * A hook to get a reference to the sonner toast state.\n *\n * Returns a class instance a getter for the `toasts` array.\n *\n * @example\n * ```svelte\n * <script lang=\"ts\">\n * import { useSonner } from 'svelte-sonner';\n *\n * const sonner = useSonner();\n *\n * // Reactive access to the toasts\n * $effect(() => console.log(sonner.toasts))\n * </script>\n * ```\n */\nexport function useSonner() {\n return sonnerContext.get();\n}\nconst basicToast = toastFunction;\nexport const toast = Object.assign(basicToast, {\n success: toastState.success,\n info: toastState.info,\n warning: toastState.warning,\n error: toastState.error,\n custom: toastState.custom,\n message: toastState.message,\n promise: toastState.promise,\n dismiss: toastState.dismiss,\n loading: toastState.loading,\n getActiveToasts: () => {\n return toastState.toasts.filter((toast) => !toast.dismiss);\n }\n});\n","import { authState } from './state/auth.svelte';\nimport { toast } from 'svelte-sonner';\n\nconst BASE_URL = '/api';\n\ninterface RequestOptions {\n projectId?: string;\n skipProjectId?: boolean;\n}\n\nasync function request(method: string, endpoint: string, data?: unknown, options?: RequestOptions) {\n const currentToken = authState.token;\n const headers: Record<string, string> = {\n 'Content-Type': 'application/json'\n };\n\n if (currentToken) {\n headers['Authorization'] = `Bearer ${currentToken}`;\n }\n\n const config: RequestInit = {\n method,\n headers,\n };\n\n if (data) {\n config.body = JSON.stringify(data);\n }\n\n // Add projectId as query parameter if provided\n let url = `${BASE_URL}${endpoint}`;\n if (options?.projectId && !options?.skipProjectId) {\n const separator = endpoint.includes('?') ? '&' : '?';\n url = `${url}${separator}projectId=${options.projectId}`;\n }\n\n const response = await fetch(url, config);\n\n if (response.status === 401) {\n authState.logout();\n window.location.href = '/login';\n throw new Error('Unauthorized');\n }\n\n if (response.status === 403) {\n const currentPath = window.location.pathname;\n if (currentPath === '/' || currentPath === '') {\n authState.logout();\n window.location.href = '/login';\n } else {\n toast.warning(\"You don't have permission to access that feature\", { position: 'top-center' });\n window.location.href = '/';\n }\n throw new Error('Forbidden');\n }\n\n if (response.status === 422) {\n const body = await response.json().catch(() => ({}));\n const error = new Error(body.error || 'Validation failed') as Error & { status: number };\n error.status = 422;\n throw error;\n }\n\n if (!response.ok) {\n const error = new Error(`API Error: ${response.statusText}`) as Error & { status: number };\n error.status = response.status;\n throw error;\n }\n\n return response.json();\n}\n\nexport const api = {\n get: (endpoint: string, options?: RequestOptions) => request('GET', endpoint, undefined, options),\n post: (endpoint: string, data: unknown, options?: RequestOptions) => request('POST', endpoint, data, options),\n put: (endpoint: string, data: unknown, options?: RequestOptions) => request('PUT', endpoint, data, options),\n delete: (endpoint: string, options?: RequestOptions) => request('DELETE', endpoint, undefined, options)\n};\n","import { api } from '$lib/api';\nimport { authState } from './auth.svelte';\n\nexport type Framework = 'gin' | 'fiber' | 'chi' | 'fasthttp' | 'stdlib' | 'custom' | 'react' | 'svelte' | 'vuejs' | 'nextjs' | 'nestjs' | 'express' | 'remix' | 'jquery' | 'react-native' | 'hono' | 'cloudflare' | 'opentelemetry' | 'symfony' | 'flutter' | 'android';\n\nexport const FRONTEND_FRAMEWORKS: Framework[] = ['react', 'svelte', 'vuejs', 'jquery', 'react-native', 'flutter', 'android'];\nexport const JS_FRAMEWORKS: Framework[] = ['react', 'svelte', 'vuejs', 'nextjs', 'nestjs', 'express', 'remix', 'jquery', 'react-native'];\n\nexport const FRAMEWORK_LABELS: Record<Framework, string> = {\n\tgin: 'Gin',\n\tfiber: 'Fiber',\n\tchi: 'Chi',\n\tfasthttp: 'FastHTTP',\n\tstdlib: 'Standard Library',\n\tcustom: 'Custom',\n\treact: 'React',\n\tsvelte: 'Svelte',\n\tvuejs: 'Vue.js',\n\tnextjs: 'Next.js',\n\tnestjs: 'NestJS',\n\texpress: 'Express',\n\tremix: 'Remix',\n\tjquery: 'jQuery',\n\t'react-native': 'React Native',\n\thono: 'Hono',\n\tcloudflare: 'Cloudflare',\n\topentelemetry: 'OpenTelemetry',\n\tsymfony: 'Symfony',\n\tflutter: 'Flutter',\n\tandroid: 'Android',\n};\n\nexport const MOBILE_FRAMEWORKS: Framework[] = ['flutter', 'android'];\n\nexport function getFrameworkLabel(fw: Framework): string {\n\treturn FRAMEWORK_LABELS[fw] ?? fw;\n}\n\nexport function isMobileFramework(fw: Framework): boolean {\n\treturn MOBILE_FRAMEWORKS.includes(fw);\n}\n\nexport function isFrontendFramework(fw: Framework): boolean {\n\treturn FRONTEND_FRAMEWORKS.includes(fw);\n}\n\nexport function isJsFramework(fw: Framework): boolean {\n\treturn JS_FRAMEWORKS.includes(fw);\n}\n\nexport function isOtelFramework(fw: Framework): boolean {\n\treturn fw === 'opentelemetry' || fw === 'hono';\n}\n\nexport function isCloudflareFramework(fw: Framework): boolean {\n\treturn fw === 'cloudflare';\n}\n\nexport interface Project {\n id: string;\n name: string;\n token: string;\n framework: Framework;\n organizationId: number | null;\n createdAt: string;\n sourceMapToken: string | null;\n backendUrl: string;\n}\n\nexport interface ProjectWithToken extends Project {\n token: string;\n}\n\nclass ProjectsState {\n projects = $state<Project[]>(\n JSON.parse(localStorage.getItem('PROJECTS_CACHE') || '[]')\n );\n currentProjectId = $state<string | null>(localStorage.getItem('CURRENT_PROJECT_ID'));\n loading = $state(false);\n error = $state<string | null>(null);\n\n currentProject = $derived(\n this.projects.find(p => p.id === this.currentProjectId) || this.projects[0] || null\n );\n\n canManageCurrentProject = $derived.by(() => {\n const organizationId = this.currentProject?.organizationId;\n if (!organizationId) return false;\n return authState.canManageOrganization(organizationId);\n });\n\n constructor() {\n $effect.root(() => {\n $effect(() => {\n if (this.currentProjectId) {\n localStorage.setItem('CURRENT_PROJECT_ID', this.currentProjectId);\n } else {\n localStorage.removeItem('CURRENT_PROJECT_ID');\n }\n });\n });\n }\n\n setProjects(projects: Project[]) {\n this.projects = projects;\n\n // If no current project selected or current project not in list, select first one\n if (!this.currentProjectId || !this.projects.find(p => p.id === this.currentProjectId)) {\n if (this.projects.length > 0) {\n this.currentProjectId = this.projects[0].id;\n }\n }\n\n // Cache in localStorage\n localStorage.setItem('PROJECTS_CACHE', JSON.stringify(this.projects));\n }\n\n async loadProjects() {\n this.loading = true;\n this.error = null;\n\n try {\n const response = await api.get('/projects');\n this.setProjects(response)\n } catch (e: unknown) {\n const errorMessage = e instanceof Error ? e.message : 'Failed to load projects';\n this.error = errorMessage;\n\n // Try to load from cache\n const cached = localStorage.getItem('PROJECTS_CACHE');\n if (cached) {\n this.projects = JSON.parse(cached);\n }\n } finally {\n this.loading = false;\n }\n }\n\n async createProject(name: string, framework: Framework = 'gin'): Promise<ProjectWithToken> {\n const response = await api.post('/projects', { name, framework }, {\n projectId: this.currentProjectId ?? undefined\n });\n\n // Reload projects to refresh cache\n await this.loadProjects();\n\n return response;\n }\n\n async generateSourceMapToken(): Promise<string> {\n const resp = await api.post('/projects/source-map-token', {}, {\n projectId: this.currentProjectId ?? undefined\n });\n await this.loadProjects();\n return resp.sourceMapToken;\n }\n\n selectProject(projectId: string) {\n this.currentProjectId = projectId;\n }\n\n initFromCache() {\n const cached = localStorage.getItem('PROJECTS_CACHE');\n if (cached) {\n this.projects = JSON.parse(cached);\n }\n }\n}\n\nexport const projectsState = new ProjectsState();\n"],"names":["NAV_DEPTH_KEY","getNavDepth","setNavDepth","depth","incrementNavDepth","decrementNavDepth","clearNavDepth","hasInternalHistory","createSmartBackHandler","options","fallbackPath","event","goto","AuthState","#token","$.state","$.proxy","value","#isAuthenticated","$.derived","$.user_effect","token","organizations","organizationId","o","role","timezone","organization","authState","cn","classes","isBrowser","toastsCounter","ToastState","id","idx","toast","data","type","message","toastIdx","toastToUpdate","rest","dismissable","untrack","#findToastIdx","promise","p","shouldDismiss","response","constructPromiseErrorMessage","error","component","height","toastState","toastFunction","SonnerState","$.get","basicToast","BASE_URL","request","method","endpoint","currentToken","headers","config","url","separator","currentPath","body","api","FRONTEND_FRAMEWORKS","JS_FRAMEWORKS","FRAMEWORK_LABELS","getFrameworkLabel","fw","isFrontendFramework","isJsFramework","isOtelFramework","isCloudflareFramework","ProjectsState","#currentProjectId","#loading","#error","projects","e","errorMessage","cached","name","framework","resp","projectId","projectsState"],"mappings":"sHAEA,MAAMA,EAAgB,qBAStB,SAASC,GAAsB,CAC9B,GAAI,CACH,OAAO,SAAS,eAAe,QAAQD,CAAa,GAAK,IAAK,EAAE,CACjE,MAAQ,CACP,MAAO,EACR,CACD,CAKA,SAASE,EAAYC,EAAqB,CACzC,GAAI,CACH,eAAe,QAAQH,EAAe,OAAOG,CAAK,CAAC,CACpD,MAAQ,CAER,CACD,CAKO,SAASC,GAA0B,CACzCF,EAAYD,EAAA,EAAgB,CAAC,CAC9B,CAKO,SAASI,GAA0B,CACzCH,EAAY,KAAK,IAAI,EAAGD,EAAA,EAAgB,CAAC,CAAC,CAC3C,CAKO,SAASK,GAAsB,CACrC,GAAI,CACH,eAAe,WAAWN,CAAa,CACxC,MAAQ,CAER,CACD,C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K,wBAAoB,CAAA,EAElC,aAAA,KAAK,aAAA,EACJoB,EAAK,cAChB,CAEA,cAAcC,EAAmB,CAC7B,KAAK,iBAAmBA,CAC5B,CAEA,eAAgB,CACN,MAAAJ,EAAS,aAAa,QAAQ,gBAAgB,EAChDA,IACA,KAAK,SAAW,KAAK,MAAMA,CAAM,EAEzC,CACJ,CAEa,MAAAK,OAAoBZ","x_google_ignoreList":[2,3]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/C8IsQj6C.js b/backend/static/frontend/_app/immutable/chunks/DByR3-93.js
similarity index 98%
rename from backend/static/frontend/_app/immutable/chunks/C8IsQj6C.js
rename to backend/static/frontend/_app/immutable/chunks/DByR3-93.js
index 7b5873a9..d3bfe58b 100644
--- a/backend/static/frontend/_app/immutable/chunks/C8IsQj6C.js
+++ b/backend/static/frontend/_app/immutable/chunks/DByR3-93.js
@@ -1 +1 @@
-import{l as Oe,s as Be,p as Z,i as ue}from"./DMODTt3n.js";import{d as k,c as d,b as r,p as Re,f as w,k as g,a as Ve,s as l,g as s,u as c,e as i,r as o,n as O,t as m,l as u}from"./B2WdN-7r.js";import{e as fe,i as ge}from"./CMyj8Fzw.js";import{c as _}from"./BAcG0-U_.js";import{B}from"./C1aqwstW.js";import{S as me,a as _e,b as xe,c as he}from"./CzIIBX62.js";import{I as qe,s as Ae}from"./CQWqWi6p.js";import{C as Pe}from"./CXTzohMM.js";function Se(R,e){const b=Oe(e,["children","$$slots","$$events","$$legacy"]);const V=[["path",{d:"m15 18-6-6 6-6"}]];qe(R,Be({name:"chevron-left"},()=>b,{get iconNode(){return V},children:(y,G)=>{var z=k(),L=d(z);Ae(L,e,"default",{},null),r(y,z)},$$slots:{default:!0}}))}var De=w("<!> <!>",1),Ee=w('<span class="sr-only">Go to previous page</span> <!>',1),Fe=w('<span class="sr-only">Go to next page</span> <!>',1),He=w("<!> <!>",1),Je=w('<span class="sr-only">Go to previous page</span> <!>',1),Ke=w('<span class="sr-only">Go to next page</span> <!>',1),Me=w('<div class="flex flex-col items-center justify-between gap-1.5 px-2 sm:hidden"><div class="flex w-[100%] justify-between"><div class="flex flex-1 items-center text-sm text-muted-foreground"><!></div> <div class="flex items-center space-x-2"><p class="text-sm font-medium">Rows per page</p> <!></div></div> <div class="flex w-[100%] justify-between"><div class="flex w-[100px] items-center justify-start text-sm font-medium"> </div> <div class="flex items-center space-x-2"><!> <!></div></div></div> <div class="hidden items-center justify-between px-2 sm:flex"><div class="flex-1 text-sm text-muted-foreground"><!></div> <div class="flex items-center space-x-6 lg:space-x-8"><div class="flex items-center space-x-2"><p class="text-sm font-medium">Rows per page</p> <!></div> <div class="flex w-[100px] items-center justify-center text-sm font-medium"> </div> <div class="flex items-center space-x-2"><!> <!></div></div></div>',1);function tt(R,e){Re(e,!0);let b=Z(e,"loading",3,!1),V=Z(e,"pageSizeOptions",19,()=>[10,20,50,100]),y=Z(e,"itemLabel",3,"item");const G=c(()=>V().map(t=>({value:t.toString(),label:t.toString()}))),z=c(()=>s(G).find(t=>t.value===e.pageSize.toString())?.label??e.pageSize.toString());function L(){e.currentPage>1&&e.onPageChange(e.currentPage-1)}function ee(){e.currentPage<e.totalPages&&e.onPageChange(e.currentPage+1)}function te(t){t&&e.onPageSizeChange(parseInt(t))}const ae=c(()=>e.totalPages||1),N=c(()=>e.totalItems===1?"":"s");var se=Me(),q=d(se),A=i(q),D=i(A),pe=i(D);{var we=t=>{var a=m();g(()=>u(a,`Showing ${e.itemsShown??""} of ${e.totalItems??""} ${y()??""}${s(N)??""}`)),r(t,a)},be=t=>{var a=m();g(()=>u(a,`${e.totalItems??""} ${y()??""}${s(N)??""} total`)),r(t,a)};ue(pe,t=>{e.itemsShown!==void 0?t(we):t(be,!1)})}o(D);var re=l(D,2),ye=l(i(re),2);{let t=c(()=>e.pageSize.toString());_(ye,()=>xe,(a,x)=>{x(a,{type:"single",get value(){return s(t)},onValueChange:te,children:(n,f)=>{var $=De(),C=d($);_(C,()=>me,(h,P)=>{P(h,{class:"h-8 w-[70px]",children:(S,M)=>{O();var v=m();g(()=>u(v,s(z))),r(S,v)},$$slots:{default:!0}})});var K=l(C,2);_(K,()=>_e,(h,P)=>{P(h,{side:"top",children:(S,M)=>{var v=k(),Q=d(v);fe(Q,17,()=>s(G),ge,(T,p)=>{var I=k(),U=d(I);_(U,()=>he,(W,X)=>{X(W,{get value(){return s(p).value},get label(){return s(p).label},children:(Y,Ne)=>{O();var j=m();g(()=>u(j,s(p).label)),r(Y,j)},$$slots:{default:!0}})}),r(T,I)}),r(S,v)},$$slots:{default:!0}})}),r(n,$)},$$slots:{default:!0}})})}o(re),o(A);var le=l(A,2),E=i(le),ze=i(E);o(E);var ne=l(E,2),ie=i(ne);{let t=c(()=>e.currentPage<=1||b());B(ie,{variant:"outline",size:"sm",class:"h-8 w-8 p-0",onclick:L,get disabled(){return s(t)},children:(a,x)=>{var n=Ee(),f=l(d(n),2);Se(f,{class:"h-4 w-4"}),r(a,n)},$$slots:{default:!0}})}var $e=l(ie,2);{let t=c(()=>e.currentPage>=e.totalPages||b());B($e,{variant:"outline",size:"sm",class:"h-8 w-8 p-0",onclick:ee,get disabled(){return s(t)},children:(a,x)=>{var n=Fe(),f=l(d(n),2);Pe(f,{class:"h-4 w-4"}),r(a,n)},$$slots:{default:!0}})}o(ne),o(le),o(q);var oe=l(q,2),F=i(oe),Ce=i(F);{var Ie=t=>{var a=m();g(()=>u(a,`Showing ${e.itemsShown??""} of ${e.totalItems??""} ${y()??""}${s(N)??""}`)),r(t,a)},je=t=>{var a=m();g(()=>u(a,`${e.totalItems??""} ${y()??""}${s(N)??""} total`)),r(t,a)};ue(Ce,t=>{e.itemsShown!==void 0?t(Ie):t(je,!1)})}o(F);var de=l(F,2),H=i(de),ke=l(i(H),2);{let t=c(()=>e.pageSize.toString());_(ke,()=>xe,(a,x)=>{x(a,{type:"single",get value(){return s(t)},onValueChange:te,children:(n,f)=>{var $=He(),C=d($);_(C,()=>me,(h,P)=>{P(h,{class:"h-8 w-[70px]",children:(S,M)=>{O();var v=m();g(()=>u(v,s(z))),r(S,v)},$$slots:{default:!0}})});var K=l(C,2);_(K,()=>_e,(h,P)=>{P(h,{side:"top",children:(S,M)=>{var v=k(),Q=d(v);fe(Q,17,()=>s(G),ge,(T,p)=>{var I=k(),U=d(I);_(U,()=>he,(W,X)=>{X(W,{get value(){return s(p).value},get label(){return s(p).label},children:(Y,Ne)=>{O();var j=m();g(()=>u(j,s(p).label)),r(Y,j)},$$slots:{default:!0}})}),r(T,I)}),r(S,v)},$$slots:{default:!0}})}),r(n,$)},$$slots:{default:!0}})})}o(H);var J=l(H,2),Ge=i(J);o(J);var ve=l(J,2),ce=i(ve);{let t=c(()=>e.currentPage<=1||b());B(ce,{variant:"outline",size:"sm",class:"h-8 w-8 p-0",onclick:L,get disabled(){return s(t)},children:(a,x)=>{var n=Je(),f=l(d(n),2);Se(f,{class:"h-4 w-4"}),r(a,n)},$$slots:{default:!0}})}var Le=l(ce,2);{let t=c(()=>e.currentPage>=e.totalPages||b());B(Le,{variant:"outline",size:"sm",class:"h-8 w-8 p-0",onclick:ee,get disabled(){return s(t)},children:(a,x)=>{var n=Ke(),f=l(d(n),2);Pe(f,{class:"h-4 w-4"}),r(a,n)},$$slots:{default:!0}})}o(ve),o(de),o(oe),g(()=>{u(ze,`Page ${e.currentPage??""} of ${s(ae)??""}`),u(Ge,`Page ${e.currentPage??""} of ${s(ae)??""}`)}),r(R,se),Ve()}export{tt as P};
+import{l as Oe,s as Be,p as Z,i as ue}from"./DMODTt3n.js";import{d as k,c as d,b as r,p as Re,f as w,k as g,a as Ve,s as l,g as s,u as c,e as i,r as o,n as O,t as m,l as u}from"./B2WdN-7r.js";import{e as fe,i as ge}from"./CMyj8Fzw.js";import{c as _}from"./BAcG0-U_.js";import{B}from"./C1aqwstW.js";import{S as me,a as _e,b as xe,c as he}from"./BgAHJuQl.js";import{I as qe,s as Ae}from"./CQWqWi6p.js";import{C as Pe}from"./CXTzohMM.js";function Se(R,e){const b=Oe(e,["children","$$slots","$$events","$$legacy"]);const V=[["path",{d:"m15 18-6-6 6-6"}]];qe(R,Be({name:"chevron-left"},()=>b,{get iconNode(){return V},children:(y,G)=>{var z=k(),L=d(z);Ae(L,e,"default",{},null),r(y,z)},$$slots:{default:!0}}))}var De=w("<!> <!>",1),Ee=w('<span class="sr-only">Go to previous page</span> <!>',1),Fe=w('<span class="sr-only">Go to next page</span> <!>',1),He=w("<!> <!>",1),Je=w('<span class="sr-only">Go to previous page</span> <!>',1),Ke=w('<span class="sr-only">Go to next page</span> <!>',1),Me=w('<div class="flex flex-col items-center justify-between gap-1.5 px-2 sm:hidden"><div class="flex w-[100%] justify-between"><div class="flex flex-1 items-center text-sm text-muted-foreground"><!></div> <div class="flex items-center space-x-2"><p class="text-sm font-medium">Rows per page</p> <!></div></div> <div class="flex w-[100%] justify-between"><div class="flex w-[100px] items-center justify-start text-sm font-medium"> </div> <div class="flex items-center space-x-2"><!> <!></div></div></div> <div class="hidden items-center justify-between px-2 sm:flex"><div class="flex-1 text-sm text-muted-foreground"><!></div> <div class="flex items-center space-x-6 lg:space-x-8"><div class="flex items-center space-x-2"><p class="text-sm font-medium">Rows per page</p> <!></div> <div class="flex w-[100px] items-center justify-center text-sm font-medium"> </div> <div class="flex items-center space-x-2"><!> <!></div></div></div>',1);function tt(R,e){Re(e,!0);let b=Z(e,"loading",3,!1),V=Z(e,"pageSizeOptions",19,()=>[10,20,50,100]),y=Z(e,"itemLabel",3,"item");const G=c(()=>V().map(t=>({value:t.toString(),label:t.toString()}))),z=c(()=>s(G).find(t=>t.value===e.pageSize.toString())?.label??e.pageSize.toString());function L(){e.currentPage>1&&e.onPageChange(e.currentPage-1)}function ee(){e.currentPage<e.totalPages&&e.onPageChange(e.currentPage+1)}function te(t){t&&e.onPageSizeChange(parseInt(t))}const ae=c(()=>e.totalPages||1),N=c(()=>e.totalItems===1?"":"s");var se=Me(),q=d(se),A=i(q),D=i(A),pe=i(D);{var we=t=>{var a=m();g(()=>u(a,`Showing ${e.itemsShown??""} of ${e.totalItems??""} ${y()??""}${s(N)??""}`)),r(t,a)},be=t=>{var a=m();g(()=>u(a,`${e.totalItems??""} ${y()??""}${s(N)??""} total`)),r(t,a)};ue(pe,t=>{e.itemsShown!==void 0?t(we):t(be,!1)})}o(D);var re=l(D,2),ye=l(i(re),2);{let t=c(()=>e.pageSize.toString());_(ye,()=>xe,(a,x)=>{x(a,{type:"single",get value(){return s(t)},onValueChange:te,children:(n,f)=>{var $=De(),C=d($);_(C,()=>me,(h,P)=>{P(h,{class:"h-8 w-[70px]",children:(S,M)=>{O();var v=m();g(()=>u(v,s(z))),r(S,v)},$$slots:{default:!0}})});var K=l(C,2);_(K,()=>_e,(h,P)=>{P(h,{side:"top",children:(S,M)=>{var v=k(),Q=d(v);fe(Q,17,()=>s(G),ge,(T,p)=>{var I=k(),U=d(I);_(U,()=>he,(W,X)=>{X(W,{get value(){return s(p).value},get label(){return s(p).label},children:(Y,Ne)=>{O();var j=m();g(()=>u(j,s(p).label)),r(Y,j)},$$slots:{default:!0}})}),r(T,I)}),r(S,v)},$$slots:{default:!0}})}),r(n,$)},$$slots:{default:!0}})})}o(re),o(A);var le=l(A,2),E=i(le),ze=i(E);o(E);var ne=l(E,2),ie=i(ne);{let t=c(()=>e.currentPage<=1||b());B(ie,{variant:"outline",size:"sm",class:"h-8 w-8 p-0",onclick:L,get disabled(){return s(t)},children:(a,x)=>{var n=Ee(),f=l(d(n),2);Se(f,{class:"h-4 w-4"}),r(a,n)},$$slots:{default:!0}})}var $e=l(ie,2);{let t=c(()=>e.currentPage>=e.totalPages||b());B($e,{variant:"outline",size:"sm",class:"h-8 w-8 p-0",onclick:ee,get disabled(){return s(t)},children:(a,x)=>{var n=Fe(),f=l(d(n),2);Pe(f,{class:"h-4 w-4"}),r(a,n)},$$slots:{default:!0}})}o(ne),o(le),o(q);var oe=l(q,2),F=i(oe),Ce=i(F);{var Ie=t=>{var a=m();g(()=>u(a,`Showing ${e.itemsShown??""} of ${e.totalItems??""} ${y()??""}${s(N)??""}`)),r(t,a)},je=t=>{var a=m();g(()=>u(a,`${e.totalItems??""} ${y()??""}${s(N)??""} total`)),r(t,a)};ue(Ce,t=>{e.itemsShown!==void 0?t(Ie):t(je,!1)})}o(F);var de=l(F,2),H=i(de),ke=l(i(H),2);{let t=c(()=>e.pageSize.toString());_(ke,()=>xe,(a,x)=>{x(a,{type:"single",get value(){return s(t)},onValueChange:te,children:(n,f)=>{var $=He(),C=d($);_(C,()=>me,(h,P)=>{P(h,{class:"h-8 w-[70px]",children:(S,M)=>{O();var v=m();g(()=>u(v,s(z))),r(S,v)},$$slots:{default:!0}})});var K=l(C,2);_(K,()=>_e,(h,P)=>{P(h,{side:"top",children:(S,M)=>{var v=k(),Q=d(v);fe(Q,17,()=>s(G),ge,(T,p)=>{var I=k(),U=d(I);_(U,()=>he,(W,X)=>{X(W,{get value(){return s(p).value},get label(){return s(p).label},children:(Y,Ne)=>{O();var j=m();g(()=>u(j,s(p).label)),r(Y,j)},$$slots:{default:!0}})}),r(T,I)}),r(S,v)},$$slots:{default:!0}})}),r(n,$)},$$slots:{default:!0}})})}o(H);var J=l(H,2),Ge=i(J);o(J);var ve=l(J,2),ce=i(ve);{let t=c(()=>e.currentPage<=1||b());B(ce,{variant:"outline",size:"sm",class:"h-8 w-8 p-0",onclick:L,get disabled(){return s(t)},children:(a,x)=>{var n=Je(),f=l(d(n),2);Se(f,{class:"h-4 w-4"}),r(a,n)},$$slots:{default:!0}})}var Le=l(ce,2);{let t=c(()=>e.currentPage>=e.totalPages||b());B(Le,{variant:"outline",size:"sm",class:"h-8 w-8 p-0",onclick:ee,get disabled(){return s(t)},children:(a,x)=>{var n=Ke(),f=l(d(n),2);Pe(f,{class:"h-4 w-4"}),r(a,n)},$$slots:{default:!0}})}o(ve),o(de),o(oe),g(()=>{u(ze,`Page ${e.currentPage??""} of ${s(ae)??""}`),u(Ge,`Page ${e.currentPage??""} of ${s(ae)??""}`)}),r(R,se),Ve()}export{tt as P};
diff --git a/backend/static/frontend/_app/immutable/chunks/C8IsQj6C.js.map b/backend/static/frontend/_app/immutable/chunks/DByR3-93.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/C8IsQj6C.js.map
rename to backend/static/frontend/_app/immutable/chunks/DByR3-93.js.map
index eaa7ad36..1f564315 100644
--- a/backend/static/frontend/_app/immutable/chunks/C8IsQj6C.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/DByR3-93.js.map
@@ -1 +1 @@
-{"version":3,"file":"C8IsQj6C.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/chevron-left.svelte","../../../../../../src/lib/components/ui/pagination-footer/pagination-footer.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"m15 18-6-6 6-6\" }]];\n/**\n * @component @name ChevronLeft\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTUgMTgtNi02IDYtNiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/chevron-left\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chevron-left\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Select from '$lib/components/ui/select';\n\timport { ChevronLeft, ChevronRight } from 'lucide-svelte';\n\n\tlet {\n\t\tcurrentPage,\n\t\ttotalPages,\n\t\tpageSize,\n\t\ttotalItems,\n\t\titemsShown,\n\t\tonPageChange,\n\t\tonPageSizeChange,\n\t\tloading = false,\n\t\tpageSizeOptions = [10, 20, 50, 100],\n\t\titemLabel = 'item'\n\t}: {\n\t\tcurrentPage: number;\n\t\ttotalPages: number;\n\t\tpageSize: number;\n\t\ttotalItems: number;\n\t\titemsShown?: number;\n\t\tonPageChange: (page: number) => void;\n\t\tonPageSizeChange: (size: number) => void;\n\t\tloading?: boolean;\n\t\tpageSizeOptions?: number[];\n\t\titemLabel?: string;\n\t} = $props();\n\n\tconst selectOptions = $derived(\n\t\tpageSizeOptions.map((size) => ({ value: size.toString(), label: size.toString() }))\n\t);\n\n\tconst pageSizeLabel = $derived(\n\t\tselectOptions.find((o) => o.value === pageSize.toString())?.label ?? pageSize.toString()\n\t);\n\n\tfunction handlePrevPage() {\n\t\tif (currentPage > 1) {\n\t\t\tonPageChange(currentPage - 1);\n\t\t}\n\t}\n\n\tfunction handleNextPage() {\n\t\tif (currentPage < totalPages) {\n\t\t\tonPageChange(currentPage + 1);\n\t\t}\n\t}\n\n\tfunction handlePageSizeSelect(value: string | undefined) {\n\t\tif (value) {\n\t\t\tonPageSizeChange(parseInt(value));\n\t\t}\n\t}\n\n\tconst displayedPages = $derived(totalPages || 1);\n\tconst plural = $derived(totalItems === 1 ? '' : 's');\n</script>\n\n<div class=\"flex flex-col items-center justify-between gap-1.5 px-2 sm:hidden\">\n\t<div class=\"flex w-[100%] justify-between\">\n\t\t<div class=\"flex flex-1 items-center text-sm text-muted-foreground\">\n\t\t\t{#if itemsShown !== undefined}\n\t\t\t\tShowing {itemsShown} of {totalItems} {itemLabel}{plural}\n\t\t\t{:else}\n\t\t\t\t{totalItems} {itemLabel}{plural} total\n\t\t\t{/if}\n\t\t</div>\n\n\t\t<div class=\"flex items-center space-x-2\">\n\t\t\t<p class=\"text-sm font-medium\">Rows per page</p>\n\t\t\t<Select.Root type=\"single\" value={pageSize.toString()} onValueChange={handlePageSizeSelect}>\n\t\t\t\t<Select.Trigger class=\"h-8 w-[70px]\">\n\t\t\t\t\t{pageSizeLabel}\n\t\t\t\t</Select.Trigger>\n\t\t\t\t<Select.Content side=\"top\">\n\t\t\t\t\t{#each selectOptions as option}\n\t\t\t\t\t\t<Select.Item value={option.value} label={option.label}>{option.label}</Select.Item>\n\t\t\t\t\t{/each}\n\t\t\t\t</Select.Content>\n\t\t\t</Select.Root>\n\t\t</div>\n\t</div>\n\n\t<div class=\"flex w-[100%] justify-between\">\n\t\t<div class=\"flex w-[100px] items-center justify-start text-sm font-medium\">\n\t\t\tPage {currentPage} of {displayedPages}\n\t\t</div>\n\t\t<div class=\"flex items-center space-x-2\">\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tclass=\"h-8 w-8 p-0\"\n\t\t\t\tonclick={handlePrevPage}\n\t\t\t\tdisabled={currentPage <= 1 || loading}\n\t\t\t>\n\t\t\t\t<span class=\"sr-only\">Go to previous page</span>\n\t\t\t\t<ChevronLeft class=\"h-4 w-4\" />\n\t\t\t</Button>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tclass=\"h-8 w-8 p-0\"\n\t\t\t\tonclick={handleNextPage}\n\t\t\t\tdisabled={currentPage >= totalPages || loading}\n\t\t\t>\n\t\t\t\t<span class=\"sr-only\">Go to next page</span>\n\t\t\t\t<ChevronRight class=\"h-4 w-4\" />\n\t\t\t</Button>\n\t\t</div>\n\t</div>\n</div>\n\n<div class=\"hidden items-center justify-between px-2 sm:flex\">\n\t<div class=\"flex-1 text-sm text-muted-foreground\">\n\t\t{#if itemsShown !== undefined}\n\t\t\tShowing {itemsShown} of {totalItems} {itemLabel}{plural}\n\t\t{:else}\n\t\t\t{totalItems} {itemLabel}{plural} total\n\t\t{/if}\n\t</div>\n\t<div class=\"flex items-center space-x-6 lg:space-x-8\">\n\t\t<div class=\"flex items-center space-x-2\">\n\t\t\t<p class=\"text-sm font-medium\">Rows per page</p>\n\t\t\t<Select.Root type=\"single\" value={pageSize.toString()} onValueChange={handlePageSizeSelect}>\n\t\t\t\t<Select.Trigger class=\"h-8 w-[70px]\">\n\t\t\t\t\t{pageSizeLabel}\n\t\t\t\t</Select.Trigger>\n\t\t\t\t<Select.Content side=\"top\">\n\t\t\t\t\t{#each selectOptions as option}\n\t\t\t\t\t\t<Select.Item value={option.value} label={option.label}>{option.label}</Select.Item>\n\t\t\t\t\t{/each}\n\t\t\t\t</Select.Content>\n\t\t\t</Select.Root>\n\t\t</div>\n\t\t<div class=\"flex w-[100px] items-center justify-center text-sm font-medium\">\n\t\t\tPage {currentPage} of {displayedPages}\n\t\t</div>\n\t\t<div class=\"flex items-center space-x-2\">\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tclass=\"h-8 w-8 p-0\"\n\t\t\t\tonclick={handlePrevPage}\n\t\t\t\tdisabled={currentPage <= 1 || loading}\n\t\t\t>\n\t\t\t\t<span class=\"sr-only\">Go to previous page</span>\n\t\t\t\t<ChevronLeft class=\"h-4 w-4\" />\n\t\t\t</Button>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tclass=\"h-8 w-8 p-0\"\n\t\t\t\tonclick={handleNextPage}\n\t\t\t\tdisabled={currentPage >= totalPages || loading}\n\t\t\t>\n\t\t\t\t<span class=\"sr-only\">Go to next page</span>\n\t\t\t\t<ChevronRight class=\"h-4 w-4\" />\n\t\t\t</Button>\n\t\t</div>\n\t</div>\n</div>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","loading","pageSizeOptions","itemLabel","selectOptions","size","pageSizeLabel","$.derived","$.get","o","$$props","handlePrevPage","handleNextPage","handlePageSizeSelect","value","displayedPages","plural","div","$.first_child","fragment","div_1","div_2","$.template_effect","$.set_text","text","text_1","$$render","consequent","alternate","div_3","Select_Root","Select_Trigger","Select_Content","$.each","node_4","option","Select_Item","text_3","div_4","div_5","div_6","$0","Button","node_6","ChevronLeft","node_7","node_8","ChevronRight","node_9","div_7","div_8","text_5","text_6","consequent_1","alternate_1","div_9","div_10","Select_Root_1","Select_Trigger_1","Select_Content_1","node_14","Select_Item_1","text_8","div_11","div_12","node_16","node_17","node_18","node_19"],"mappings":"mcAAA,4DA6CM,MAAAA,EAAQ,CAAA,CAAK,OAAM,CAAI,EAAK,gBAAgB,CAAA,CAAA,EAcjDC,GAAIC,EAAAC,GAAA,CAAA,KAAA,cAAA,EAAA,IAAAC,EAAA,uBAA4CJ,8FAFjD,qtCCzDA,UAaE,IAAAK,kBAAU,EAAK,EACfC,gCAAmB,GAAI,GAAI,GAAI,GAAG,CAAA,EAClCC,oBAAY,MAAK,EAcZ,MAAAC,QACLF,EAAe,EAAC,IAAKG,IAAI,CAAQ,MAAOA,EAAK,SAAQ,EAAI,MAAOA,EAAK,SAAQ,CAAA,EAAA,CAAA,EAGxEC,EAAaC,EAAA,IAAAC,EAClBJ,CAAa,EAAC,KAAMK,GAAMA,EAAE,QAAKC,EAAA,SAAc,UAAQ,GAAK,kBAAkB,UAAQ,EAG9E,SAAAC,GAAiB,CACPD,EAAA,YAAA,gCACU,CAAC,CAE9B,CAES,SAAAE,IAAiB,CACKF,EAAA,YAAAA,EAAA,yCACF,CAAC,CAE9B,UAESG,GAAqBC,EAA2B,CACpDA,GACcJ,EAAA,iBAAA,SAASI,CAAK,CAAA,CAEjC,CAEM,MAAAC,uBAAwC,C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mC,GAAYqB,EAAA,CAAA,MAAA,SAAA,CAAA,mCAnBdJ,EAAG,IAjBJT,EAAG,IARJN,EAAG,gDA3BsBlC,EAAc,GAAA,EAAA,EAAA,yCAkDdA,EAAc,GAAA,EAAA,EAAA,gBA/ExC","x_google_ignoreList":[0]}
\ No newline at end of file
+{"version":3,"file":"DByR3-93.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/chevron-left.svelte","../../../../../../src/lib/components/ui/pagination-footer/pagination-footer.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"m15 18-6-6 6-6\" }]];\n/**\n * @component @name ChevronLeft\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTUgMTgtNi02IDYtNiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/chevron-left\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chevron-left\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Select from '$lib/components/ui/select';\n\timport { ChevronLeft, ChevronRight } from 'lucide-svelte';\n\n\tlet {\n\t\tcurrentPage,\n\t\ttotalPages,\n\t\tpageSize,\n\t\ttotalItems,\n\t\titemsShown,\n\t\tonPageChange,\n\t\tonPageSizeChange,\n\t\tloading = false,\n\t\tpageSizeOptions = [10, 20, 50, 100],\n\t\titemLabel = 'item'\n\t}: {\n\t\tcurrentPage: number;\n\t\ttotalPages: number;\n\t\tpageSize: number;\n\t\ttotalItems: number;\n\t\titemsShown?: number;\n\t\tonPageChange: (page: number) => void;\n\t\tonPageSizeChange: (size: number) => void;\n\t\tloading?: boolean;\n\t\tpageSizeOptions?: number[];\n\t\titemLabel?: string;\n\t} = $props();\n\n\tconst selectOptions = $derived(\n\t\tpageSizeOptions.map((size) => ({ value: size.toString(), label: size.toString() }))\n\t);\n\n\tconst pageSizeLabel = $derived(\n\t\tselectOptions.find((o) => o.value === pageSize.toString())?.label ?? pageSize.toString()\n\t);\n\n\tfunction handlePrevPage() {\n\t\tif (currentPage > 1) {\n\t\t\tonPageChange(currentPage - 1);\n\t\t}\n\t}\n\n\tfunction handleNextPage() {\n\t\tif (currentPage < totalPages) {\n\t\t\tonPageChange(currentPage + 1);\n\t\t}\n\t}\n\n\tfunction handlePageSizeSelect(value: string | undefined) {\n\t\tif (value) {\n\t\t\tonPageSizeChange(parseInt(value));\n\t\t}\n\t}\n\n\tconst displayedPages = $derived(totalPages || 1);\n\tconst plural = $derived(totalItems === 1 ? '' : 's');\n</script>\n\n<div class=\"flex flex-col items-center justify-between gap-1.5 px-2 sm:hidden\">\n\t<div class=\"flex w-[100%] justify-between\">\n\t\t<div class=\"flex flex-1 items-center text-sm text-muted-foreground\">\n\t\t\t{#if itemsShown !== undefined}\n\t\t\t\tShowing {itemsShown} of {totalItems} {itemLabel}{plural}\n\t\t\t{:else}\n\t\t\t\t{totalItems} {itemLabel}{plural} total\n\t\t\t{/if}\n\t\t</div>\n\n\t\t<div class=\"flex items-center space-x-2\">\n\t\t\t<p class=\"text-sm font-medium\">Rows per page</p>\n\t\t\t<Select.Root type=\"single\" value={pageSize.toString()} onValueChange={handlePageSizeSelect}>\n\t\t\t\t<Select.Trigger class=\"h-8 w-[70px]\">\n\t\t\t\t\t{pageSizeLabel}\n\t\t\t\t</Select.Trigger>\n\t\t\t\t<Select.Content side=\"top\">\n\t\t\t\t\t{#each selectOptions as option}\n\t\t\t\t\t\t<Select.Item value={option.value} label={option.label}>{option.label}</Select.Item>\n\t\t\t\t\t{/each}\n\t\t\t\t</Select.Content>\n\t\t\t</Select.Root>\n\t\t</div>\n\t</div>\n\n\t<div class=\"flex w-[100%] justify-between\">\n\t\t<div class=\"flex w-[100px] items-center justify-start text-sm font-medium\">\n\t\t\tPage {currentPage} of {displayedPages}\n\t\t</div>\n\t\t<div class=\"flex items-center space-x-2\">\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tclass=\"h-8 w-8 p-0\"\n\t\t\t\tonclick={handlePrevPage}\n\t\t\t\tdisabled={currentPage <= 1 || loading}\n\t\t\t>\n\t\t\t\t<span class=\"sr-only\">Go to previous page</span>\n\t\t\t\t<ChevronLeft class=\"h-4 w-4\" />\n\t\t\t</Button>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tclass=\"h-8 w-8 p-0\"\n\t\t\t\tonclick={handleNextPage}\n\t\t\t\tdisabled={currentPage >= totalPages || loading}\n\t\t\t>\n\t\t\t\t<span class=\"sr-only\">Go to next page</span>\n\t\t\t\t<ChevronRight class=\"h-4 w-4\" />\n\t\t\t</Button>\n\t\t</div>\n\t</div>\n</div>\n\n<div class=\"hidden items-center justify-between px-2 sm:flex\">\n\t<div class=\"flex-1 text-sm text-muted-foreground\">\n\t\t{#if itemsShown !== undefined}\n\t\t\tShowing {itemsShown} of {totalItems} {itemLabel}{plural}\n\t\t{:else}\n\t\t\t{totalItems} {itemLabel}{plural} total\n\t\t{/if}\n\t</div>\n\t<div class=\"flex items-center space-x-6 lg:space-x-8\">\n\t\t<div class=\"flex items-center space-x-2\">\n\t\t\t<p class=\"text-sm font-medium\">Rows per page</p>\n\t\t\t<Select.Root type=\"single\" value={pageSize.toString()} onValueChange={handlePageSizeSelect}>\n\t\t\t\t<Select.Trigger class=\"h-8 w-[70px]\">\n\t\t\t\t\t{pageSizeLabel}\n\t\t\t\t</Select.Trigger>\n\t\t\t\t<Select.Content side=\"top\">\n\t\t\t\t\t{#each selectOptions as option}\n\t\t\t\t\t\t<Select.Item value={option.value} label={option.label}>{option.label}</Select.Item>\n\t\t\t\t\t{/each}\n\t\t\t\t</Select.Content>\n\t\t\t</Select.Root>\n\t\t</div>\n\t\t<div class=\"flex w-[100px] items-center justify-center text-sm font-medium\">\n\t\t\tPage {currentPage} of {displayedPages}\n\t\t</div>\n\t\t<div class=\"flex items-center space-x-2\">\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tclass=\"h-8 w-8 p-0\"\n\t\t\t\tonclick={handlePrevPage}\n\t\t\t\tdisabled={currentPage <= 1 || loading}\n\t\t\t>\n\t\t\t\t<span class=\"sr-only\">Go to previous page</span>\n\t\t\t\t<ChevronLeft class=\"h-4 w-4\" />\n\t\t\t</Button>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tclass=\"h-8 w-8 p-0\"\n\t\t\t\tonclick={handleNextPage}\n\t\t\t\tdisabled={currentPage >= totalPages || loading}\n\t\t\t>\n\t\t\t\t<span class=\"sr-only\">Go to next page</span>\n\t\t\t\t<ChevronRight class=\"h-4 w-4\" />\n\t\t\t</Button>\n\t\t</div>\n\t</div>\n</div>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","loading","pageSizeOptions","itemLabel","selectOptions","size","pageSizeLabel","$.derived","$.get","o","$$props","handlePrevPage","handleNextPage","handlePageSizeSelect","value","displayedPages","plural","div","$.first_child","fragment","div_1","div_2","$.template_effect","$.set_text","text","text_1","$$render","consequent","alternate","div_3","Select_Root","Select_Trigger","Select_Content","$.each","node_4","option","Select_Item","text_3","div_4","div_5","div_6","$0","Button","node_6","ChevronLeft","node_7","node_8","ChevronRight","node_9","div_7","div_8","text_5","text_6","consequent_1","alternate_1","div_9","div_10","Select_Root_1","Select_Trigger_1","Select_Content_1","node_14","Select_Item_1","text_8","div_11","div_12","node_16","node_17","node_18","node_19"],"mappings":"mcAAA,4DA6CM,MAAAA,EAAQ,CAAA,CAAK,OAAM,CAAI,EAAK,gBAAgB,CAAA,CAAA,EAcjDC,GAAIC,EAAAC,GAAA,CAAA,KAAA,cAAA,EAAA,IAAAC,EAAA,uBAA4CJ,8FAFjD,qtCCzDA,UAaE,IAAAK,kBAAU,EAAK,EACfC,gCAAmB,GAAI,GAAI,GAAI,GAAG,CAAA,EAClCC,oBAAY,MAAK,EAcZ,MAAAC,QACLF,EAAe,EAAC,IAAKG,IAAI,CAAQ,MAAOA,EAAK,SAAQ,EAAI,MAAOA,EAAK,SAAQ,CAAA,EAAA,CAAA,EAGxEC,EAAaC,EAAA,IAAAC,EAClBJ,CAAa,EAAC,KAAMK,GAAMA,EAAE,QAAKC,EAAA,SAAc,UAAQ,GAAK,kBAAkB,UAAQ,EAG9E,SAAAC,GAAiB,CACPD,EAAA,YAAA,gCACU,CAAC,CAE9B,CAES,SAAAE,IAAiB,CACKF,EAAA,YAAAA,EAAA,yCACF,CAAC,CAE9B,UAESG,GAAqBC,EAA2B,CACpDA,GACcJ,EAAA,iBAAA,SAASI,CAAK,CAAA,CAEjC,CAEM,MAAAC,uBAAwC,CAAC,EACzCC,EAAMT,EAAA,IAAAG,EAAA,aAA2B,EAAI,GAAK,GAAG,cAGnDO,EAAGC,EAAAC,EAAA,EACFC,IADDH,CAAG,EAEDI,IADDD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CAkDdA,EAAc,GAAA,EAAA,EAAA,gBA/ExC","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/DGGSyx8c.js b/backend/static/frontend/_app/immutable/chunks/DGGSyx8c.js
deleted file mode 100644
index 8fae8bac..00000000
--- a/backend/static/frontend/_app/immutable/chunks/DGGSyx8c.js
+++ /dev/null
@@ -1 +0,0 @@
-import{p as u,i as D,r as x,s as k}from"./DMODTt3n.js";import{K as I,p as P,d as v,c as _,b as i,a as y,m as h,g,u as M,f as K,e as W,o as j,r as q}from"./B2WdN-7r.js";import{c as z}from"./BAcG0-U_.js";import{b as A,d as B}from"./DH0tcjsQ.js";import{M as C}from"./CAQEdoSh.js";import{c as E,b,m as F}from"./DWAABZDo.js";var G=K("<div><!></div>");function H(f,e){const s=I();P(e,!0);let t=u(e,"ref",15,null),o=u(e,"id",19,()=>E(s)),m=x(e,["$$slots","$$events","$$legacy","ref","id","child","children"]);const c=C.create({id:b(()=>o()),ref:b(()=>t(),r=>t(r))}),n=M(()=>F(m,c.props));var d=v(),l=_(d);{var S=r=>{var a=v(),p=_(a);h(p,()=>e.child,()=>({props:g(n)})),i(r,a)},w=r=>{var a=G();A(a,()=>({...g(n)}));var p=W(a);h(p,()=>e.children??j),q(a),i(r,a)};D(l,r=>{e.child?r(S):r(w,!1)})}i(f,d),y()}function T(f,e){P(e,!0);let s=u(e,"ref",15,null),t=x(e,["$$slots","$$events","$$legacy","ref","class"]);var o=v(),m=_(o);{let c=M(()=>B("bg-border -mx-1 my-1 h-px",e.class));z(m,()=>H,(n,d)=>{d(n,k({"data-slot":"dropdown-menu-separator",get class(){return g(c)}},()=>t,{get ref(){return s()},set ref(l){s(l)}}))})}i(f,o),y()}export{T as D};
diff --git a/backend/static/frontend/_app/immutable/chunks/DGGSyx8c.js.map b/backend/static/frontend/_app/immutable/chunks/DGGSyx8c.js.map
deleted file mode 100644
index df93bf8c..00000000
--- a/backend/static/frontend/_app/immutable/chunks/DGGSyx8c.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"DGGSyx8c.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-separator.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuSeparatorProps } from \"../types.js\";\n\timport { MenuSeparatorState } from \"../menu.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tchild,\n\t\tchildren,\n\t\t...restProps\n\t}: MenuSeparatorProps = $props();\n\n\tconst separatorState = MenuSeparatorState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, separatorState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: DropdownMenuPrimitive.SeparatorProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Separator\n\tbind:ref\n\tdata-slot=\"dropdown-menu-separator\"\n\tclass={cn(\"bg-border -mx-1 my-1 h-px\", className)}\n\t{...restProps}\n/>\n"],"names":["uid","$.props_id","ref","id","$.prop","$$props","createId","restProps","$.rest_props","separatorState","MenuSeparatorState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","$0","$.derived","cn","DropdownMenuPrimitive_Separator","$$anchor","$.spread_props","$$value"],"mappings":"yWAAA,OAMOA,EAAGC,EAAA,UAGR,IAAAC,eAAgB,IAAI,EACpBC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,EAASN,CAAG,CAAA,EAGdO,EAAAC,EAAAH,EAAA,uEAGEI,EAAiBC,EAAmB,OAAM,CAC/C,GAAIC,EAAO,IAAOR,GAAE,EACpB,IAAKQ,EAAO,IACLT,EAAG,EACRU,GAAOV,EAAMU,CAAC,CAAA,IAIXC,QAAuBC,EAAWP,EAAWE,EAAe,KAAK,CAAA,+CAItDM,EAAAC,EAAA,IAAAX,EAAA,MAAA,KAAA,CAAA,QAAOQ,CAAW,CAAA,EAAA,oBAElCI,EAAGC,EAAA,EAAHC,EAAAF,aAAQJ,CAAW,CAAA,EAAA,UAAnBI,CAAG,2BAAHA,CAAG,MAAHA,CAAG,4CALL,gBCzBA,SAKE,IAAAf,eAAgB,IAAI,EAEjBK,EAAAC,EAAAH,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAOG,IAAAe,EAAAC,EAAA,IAAAC,EAAG,4BAA2BjB,EAAA,KAAA,CAAA,oBAHrCkB,EAAsBC,EAAAC,uEAIlBlB,OAHJ,KAAK,iBAAL,IAAKmB,EAAA,sBAHN","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/DJPlLp0I.js b/backend/static/frontend/_app/immutable/chunks/DJPlLp0I.js
new file mode 100644
index 00000000..835df2f0
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/DJPlLp0I.js
@@ -0,0 +1 @@
+import{p as c,i as C,r as Xe,s as Ct,b as ut}from"./DMODTt3n.js";import{p as Ge,f as w,c as s,d as v,m as Ae,o as Ye,b as a,s as l,a as Je,g as e,u as P,e as n,r as d,k as he,l as M,h as Ce,i as ge,n as ze,t as Fe}from"./B2WdN-7r.js";import{e as be,i as Oe}from"./CMyj8Fzw.js";import{c as u}from"./BAcG0-U_.js";import{b as ct,r as zt,d as pe}from"./DH0tcjsQ.js";import{a as Ft}from"./BuKxAPQs.js";import{g as Ot}from"./qCQ2nSvO.js";import{F as xe}from"./FmJ3F5-k.js";import{b as Lt,c as vt,d as Vt,e as Tt,C as Ht,f as At,g as Gt,h as Jt,i as Dt,j as Le}from"./BT31m2vG.js";import{n as Ke,w as jt,F as It,u as ft,a as Rt,P as qt}from"./CjLH05gQ.js";import{b as $,m as gt}from"./BDd6-VcB.js";import{I as Mt}from"./Bv_PbELb.js";import{S as Ve,a as Te}from"./sjIDPxFh.js";import{C as He}from"./DUJ_Z9AF.js";var Nt=w("<!> <!>",1);function Bt(K,t){Ge(t,!0);let f=c(t,"value",15),D=c(t,"onValueChange",3,Ke),R=c(t,"name",3,""),q=c(t,"disabled",3,!1),S=c(t,"open",15,!1),z=c(t,"onOpenChange",3,Ke),j=c(t,"onOpenChangeComplete",3,Ke),de=c(t,"loop",3,!1),N=c(t,"scrollAlignment",3,"nearest"),B=c(t,"required",3,!1),g=c(t,"items",19,()=>[]),J=c(t,"allowDeselect",3,!0),I=c(t,"inputValue",7,"");if(f()===void 0){const r=t.type==="single"?"":[];f(r)}jt.pre(()=>f(),()=>{f()===void 0&&f(t.type==="single"?"":[])});const W=Lt.create({type:t.type,value:$(()=>f(),r=>{f(r),D()(r)}),disabled:$(()=>q()),required:$(()=>B()),open:$(()=>S(),r=>{S(r),z()(r)}),loop:$(()=>de()),scrollAlignment:$(()=>N()),name:$(()=>R()),isCombobox:!0,items:$(()=>g()),allowDeselect:$(()=>J()),inputValue:$(()=>I(),r=>I(r)),onOpenChangeComplete:$(()=>j())});var ie=Nt(),ue=s(ie);It(ue,{children:(r,ve)=>{var U=v(),De=s(U);Ae(De,()=>t.children??Ye),a(r,U)},$$slots:{default:!0}});var E=l(ue,2);{var Q=r=>{var ve=v(),U=s(ve);{var De=me=>{var ce=v(),je=s(ce);be(je,16,()=>W.opts.value.current,ke=>ke,(ke,Be)=>{vt(ke,{get value(){return Be}})}),a(me,ce)};C(U,me=>{W.opts.value.current.length&&me(De)})}a(r,ve)},ye=r=>{vt(r,{get value(){return W.opts.value.current},set value(ve){W.opts.value.current=ve}})};C(E,r=>{Array.isArray(W.opts.value.current)?r(Q):r(ye,!1)})}a(K,ie),Je()}var Wt=w("<input/>");function Et(K,t){Ge(t,!0);let f=c(t,"id",19,ft),D=c(t,"ref",15,null),R=c(t,"clearOnDeselect",3,!1),q=Xe(t,["$$slots","$$events","$$legacy","id","ref","child","defaultValue","clearOnDeselect"]);const S=Vt.create({id:$(()=>f()),ref:$(()=>D(),N=>D(N)),clearOnDeselect:$(()=>R())});t.defaultValue&&(S.root.opts.inputValue.current=t.defaultValue);const z=P(()=>gt(q,S.props,{value:S.root.opts.inputValue.current}));var j=v(),de=s(j);u(de,()=>Rt,(N,B)=>{B(N,{get id(){return f()},get ref(){return S.opts.ref},children:(g,J)=>{var I=v(),W=s(I);{var ie=E=>{var Q=v(),ye=s(Q);Ae(ye,()=>t.child,()=>({props:e(z)})),a(E,Q)},ue=E=>{var Q=Wt();ct(Q,()=>({...e(z)}),void 0,void 0,void 0,void 0,!0),a(E,Q)};C(W,E=>{t.child?E(ie):E(ue,!1)})}a(g,I)},$$slots:{default:!0}})}),a(K,j),Je()}var Qt=w("<button><!></button>");function Ut(K,t){Ge(t,!0);let f=c(t,"id",19,ft),D=c(t,"ref",15,null),R=c(t,"type",3,"button"),q=Xe(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const S=Tt.create({id:$(()=>f()),ref:$(()=>D(),g=>D(g))}),z=P(()=>gt(q,S.props,{type:R()}));var j=v(),de=s(j);{var N=g=>{var J=v(),I=s(J);Ae(I,()=>t.child,()=>({props:e(z)})),a(g,J)},B=g=>{var J=Qt();ct(J,()=>({...e(z)}));var I=n(J);Ae(I,()=>t.children??Ye),d(J),a(g,J)};C(de,g=>{t.child?g(N):g(B,!1)})}a(K,j),Je()}function Kt(K,t){Ge(t,!0);let f=Xe(t,["$$slots","$$events","$$legacy"]);const D=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];Mt(K,Ct({name:"search"},()=>f,{get iconNode(){return D},children:(R,q)=>{var S=v(),z=s(S);Ae(z,()=>t.children??Ye),a(R,S)},$$slots:{default:!0}})),Je()}var Xt=w('<div class="flex items-center gap-2"><!> <span> </span></div> <!>',1),Yt=w('<div class="py-4 text-center text-sm text-muted-foreground">No frameworks found</div>'),Zt=w('<div class="flex items-center gap-2"><!> <div class="flex flex-col"><span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span></div></div> <!>',1),ea=w("<!> <!>",1),ta=w('<div class="flex items-center gap-2"><!> <div class="flex flex-col"><span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span></div></div> <!>',1),aa=w("<!> <!>",1),ra=w('<div class="flex items-center gap-2"><!> <div class="flex flex-col"><span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span></div></div> <!>',1),sa=w("<!> <!>",1),oa=w('<div class="flex items-center gap-2"><!> <div class="flex flex-col"><span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span></div></div> <!>',1),la=w("<!> <!>",1),na=w('<div class="flex items-center gap-2"><!> <div class="flex flex-col"><span class="font-medium"> </span> <span class="text-xs text-muted-foreground"> </span></div></div> <!>',1),da=w("<!> <!>",1),ia=w("<!> <!> <!> <!> <!>",1),ua=w('<div class="flex items-center border-b px-3 py-2"><!> <input placeholder="Search frameworks..." class="flex h-7 w-full rounded-md bg-transparent text-sm outline-none placeholder:text-muted-foreground"/></div> <!> <!> <!>',1),va=w('<div class="relative w-full"><!> <!></div> <!>',1);function Ca(K,t){Ge(t,!0);let f=c(t,"value",15),D=c(t,"disabled",3,!1),R=Ce(!1),q=Ce(""),S=Ce(null),z=Ce(null),j=Ce(null);const de=[{value:"gin",label:"Gin",description:"Fast HTTP web framework",group:"Go"},{value:"fiber",label:"Fiber",description:"Express-inspired framework",group:"Go"},{value:"chi",label:"Chi",description:"Lightweight router",group:"Go"},{value:"fasthttp",label:"FastHTTP",description:"High-performance HTTP",group:"Go"},{value:"stdlib",label:"Standard Library",description:"net/http package",group:"Go"},{value:"custom",label:"Custom",description:"Other / manual setup",group:"Go"},{value:"react",label:"React",description:"Frontend UI library",group:"JavaScript"},{value:"react-native",label:"React Native",description:"React Native and Expo apps",group:"JavaScript"},{value:"svelte",label:"Svelte",description:"Frontend compiler framework",group:"JavaScript"},{value:"vuejs",label:"Vue.js",description:"Progressive frontend framework",group:"JavaScript"},{value:"jquery",label:"jQuery",description:"Legacy-friendly AJAX and DOM library",group:"JavaScript"},{value:"symfony",label:"Symfony",description:"PHP full-stack framework (OTLP)",group:"PHP"},{value:"laravel",label:"Laravel",description:"PHP full-stack framework (OTLP)",group:"PHP"},{value:"hono",label:"Hono",description:"Lightweight multi-runtime framework (OTLP)",group:"Backend"},{value:"cloudflare",label:"Cloudflare",description:"Cloudflare Workers (OTLP Traces)",group:"Backend"},{value:"opentelemetry",label:"OpenTelemetry",description:"Vendor-neutral observability",group:"Backend"},{value:"flutter",label:"Flutter",description:"Mobile UI framework",group:"Mobile"},{value:"android",label:"Android",description:"Native Android (Kotlin/Java)",group:"Mobile"}],N=P(()=>Ot(f())),B=P(()=>e(q).toLowerCase().trim()),g=P(()=>e(B)===""?de:de.filter(r=>r.label.toLowerCase().includes(e(B))||r.description.toLowerCase().includes(e(B))||r.group.toLowerCase().includes(e(B)))),J=P(()=>e(g).filter(r=>r.group==="Go")),I=P(()=>e(g).filter(r=>r.group==="JavaScript")),W=P(()=>e(g).filter(r=>r.group==="PHP")),ie=P(()=>e(g).filter(r=>r.group==="Backend")),ue=P(()=>e(g).filter(r=>r.group==="Mobile"));function E(r){ge(R,r,!0),r?requestAnimationFrame(()=>{e(S)?.focus(),e(j)&&e(z)&&(e(j).style.width=`${e(z).offsetWidth}px`)}):ge(q,"")}var Q=v(),ye=s(Q);u(ye,()=>Bt,(r,ve)=>{ve(r,{type:"single",onOpenChange:E,get value(){return f()},set value(U){f(U)},get open(){return e(R)},set open(U){ge(R,U,!0)},children:(U,De)=>{var me=va(),ce=s(me),je=n(ce);u(je,()=>Et,(fe,we)=>{we(fe,{get disabled(){return D()},readonly:!0,get defaultValue(){return e(N)},class:"absolute inset-0 w-full h-full opacity-0 pointer-events-none",tabindex:-1})});var ke=l(je,2);{let fe=P(()=>pe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(ke,()=>Ut,(we,We)=>{We(we,{get disabled(){return D()},"data-slot":"select-trigger","data-size":"default",get class(){return e(fe)},children:(Ze,Ee)=>{var Ie=Xt(),Pe=s(Ie),Re=n(Pe);xe(Re,{get framework(){return f()}});var qe=l(Re,2),Se=n(qe,!0);d(qe),d(Pe);var et=l(Pe,2);Ht(et,{class:"size-4 opacity-50"}),he(()=>M(Se,e(N))),a(Ze,Ie)},$$slots:{default:!0}})})}d(ce),ut(ce,fe=>ge(z,fe),()=>e(z));var Be=l(ce,2);u(Be,()=>qt,(fe,we)=>{we(fe,{children:(We,Ze)=>{var Ee=v(),Ie=s(Ee);{let Pe=P(()=>pe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 min-w-[8rem] rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1"));u(Ie,()=>At,(Re,qe)=>{qe(Re,{sideOffset:4,preventScroll:!0,get class(){return e(Pe)},get ref(){return e(j)},set ref(Se){ge(j,Se,!0)},children:(Se,et)=>{var tt=ua(),Qe=s(tt),at=n(Qe);Kt(at,{class:"mr-2 size-4 shrink-0 opacity-50"});var Ue=l(at,2);zt(Ue),ut(Ue,$e=>ge(S,$e),()=>e(S)),d(Qe);var rt=l(Qe,2);Gt(rt,{});var st=l(rt,2);u(st,()=>Jt,($e,mt)=>{mt($e,{class:"w-full max-h-72 overflow-y-auto scroll-my-1 p-1",children:(_t,ca)=>{var ot=v(),ht=s(ot);{var xt=_e=>{var Me=Yt();a(_e,Me)},bt=_e=>{var Me=ia(),lt=s(Me);{var yt=p=>{var F=v(),X=s(F);u(X,()=>Ve,(Y,Z)=>{Z(Y,{children:(ee,Ne)=>{var O=ea(),L=s(O);u(L,()=>Te,(m,o)=>{o(m,{class:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:(i,V)=>{ze();var _=Fe("Go");a(i,_)},$$slots:{default:!0}})});var te=l(L,2);be(te,17,()=>e(J),Oe,(m,o)=>{var i=v(),V=s(i);{const _=(h,x)=>{let re=()=>x?.().selected;var T=Zt(),b=s(T),H=n(b);xe(H,{get framework(){return e(o).value}});var A=l(H,2),y=n(A),se=n(y,!0);d(y);var G=l(y,2),oe=n(G,!0);d(G),d(A),d(b);var le=l(b,2);{var ne=k=>{He(k,{class:"absolute end-2 size-4"})};C(le,k=>{re()&&k(ne)})}he(()=>{M(se,e(o).label),M(oe,e(o).description)}),a(h,T)};let ae=P(()=>pe("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(V,()=>Le,(h,x)=>{x(h,{get value(){return e(o).value},get class(){return e(ae)},children:_,$$slots:{default:!0}})})}a(m,i)}),a(ee,O)},$$slots:{default:!0}})}),a(p,F)};C(lt,p=>{e(J).length>0&&p(yt)})}var nt=l(lt,2);{var kt=p=>{var F=v(),X=s(F);u(X,()=>Ve,(Y,Z)=>{Z(Y,{children:(ee,Ne)=>{var O=aa(),L=s(O);u(L,()=>Te,(m,o)=>{o(m,{class:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:(i,V)=>{ze();var _=Fe("JavaScript");a(i,_)},$$slots:{default:!0}})});var te=l(L,2);be(te,17,()=>e(I),Oe,(m,o)=>{var i=v(),V=s(i);{const _=(h,x)=>{let re=()=>x?.().selected;var T=ta(),b=s(T),H=n(b);xe(H,{get framework(){return e(o).value}});var A=l(H,2),y=n(A),se=n(y,!0);d(y);var G=l(y,2),oe=n(G,!0);d(G),d(A),d(b);var le=l(b,2);{var ne=k=>{He(k,{class:"absolute end-2 size-4"})};C(le,k=>{re()&&k(ne)})}he(()=>{M(se,e(o).label),M(oe,e(o).description)}),a(h,T)};let ae=P(()=>pe("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(V,()=>Le,(h,x)=>{x(h,{get value(){return e(o).value},get class(){return e(ae)},children:_,$$slots:{default:!0}})})}a(m,i)}),a(ee,O)},$$slots:{default:!0}})}),a(p,F)};C(nt,p=>{e(I).length>0&&p(kt)})}var dt=l(nt,2);{var wt=p=>{var F=v(),X=s(F);u(X,()=>Ve,(Y,Z)=>{Z(Y,{children:(ee,Ne)=>{var O=sa(),L=s(O);u(L,()=>Te,(m,o)=>{o(m,{class:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:(i,V)=>{ze();var _=Fe("PHP");a(i,_)},$$slots:{default:!0}})});var te=l(L,2);be(te,17,()=>e(W),Oe,(m,o)=>{var i=v(),V=s(i);{const _=(h,x)=>{let re=()=>x?.().selected;var T=ra(),b=s(T),H=n(b);xe(H,{get framework(){return e(o).value}});var A=l(H,2),y=n(A),se=n(y,!0);d(y);var G=l(y,2),oe=n(G,!0);d(G),d(A),d(b);var le=l(b,2);{var ne=k=>{He(k,{class:"absolute end-2 size-4"})};C(le,k=>{re()&&k(ne)})}he(()=>{M(se,e(o).label),M(oe,e(o).description)}),a(h,T)};let ae=P(()=>pe("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(V,()=>Le,(h,x)=>{x(h,{get value(){return e(o).value},get class(){return e(ae)},children:_,$$slots:{default:!0}})})}a(m,i)}),a(ee,O)},$$slots:{default:!0}})}),a(p,F)};C(dt,p=>{e(W).length>0&&p(wt)})}var it=l(dt,2);{var Pt=p=>{var F=v(),X=s(F);u(X,()=>Ve,(Y,Z)=>{Z(Y,{children:(ee,Ne)=>{var O=la(),L=s(O);u(L,()=>Te,(m,o)=>{o(m,{class:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:(i,V)=>{ze();var _=Fe("Backend");a(i,_)},$$slots:{default:!0}})});var te=l(L,2);be(te,17,()=>e(ie),Oe,(m,o)=>{var i=v(),V=s(i);{const _=(h,x)=>{let re=()=>x?.().selected;var T=oa(),b=s(T),H=n(b);xe(H,{get framework(){return e(o).value}});var A=l(H,2),y=n(A),se=n(y,!0);d(y);var G=l(y,2),oe=n(G,!0);d(G),d(A),d(b);var le=l(b,2);{var ne=k=>{He(k,{class:"absolute end-2 size-4"})};C(le,k=>{re()&&k(ne)})}he(()=>{M(se,e(o).label),M(oe,e(o).description)}),a(h,T)};let ae=P(()=>pe("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(V,()=>Le,(h,x)=>{x(h,{get value(){return e(o).value},get class(){return e(ae)},children:_,$$slots:{default:!0}})})}a(m,i)}),a(ee,O)},$$slots:{default:!0}})}),a(p,F)};C(it,p=>{e(ie).length>0&&p(Pt)})}var St=l(it,2);{var $t=p=>{var F=v(),X=s(F);u(X,()=>Ve,(Y,Z)=>{Z(Y,{children:(ee,Ne)=>{var O=da(),L=s(O);u(L,()=>Te,(m,o)=>{o(m,{class:"px-2 py-1.5 text-xs font-semibold text-muted-foreground",children:(i,V)=>{ze();var _=Fe("Mobile");a(i,_)},$$slots:{default:!0}})});var te=l(L,2);be(te,17,()=>e(ue),Oe,(m,o)=>{var i=v(),V=s(i);{const _=(h,x)=>{let re=()=>x?.().selected;var T=na(),b=s(T),H=n(b);xe(H,{get framework(){return e(o).value}});var A=l(H,2),y=n(A),se=n(y,!0);d(y);var G=l(y,2),oe=n(G,!0);d(G),d(A),d(b);var le=l(b,2);{var ne=k=>{He(k,{class:"absolute end-2 size-4"})};C(le,k=>{re()&&k(ne)})}he(()=>{M(se,e(o).label),M(oe,e(o).description)}),a(h,T)};let ae=P(()=>pe("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"));u(V,()=>Le,(h,x)=>{x(h,{get value(){return e(o).value},get class(){return e(ae)},children:_,$$slots:{default:!0}})})}a(m,i)}),a(ee,O)},$$slots:{default:!0}})}),a(p,F)};C(St,p=>{e(ue).length>0&&p($t)})}a(_e,Me)};C(ht,_e=>{e(g).length===0?_e(xt):_e(bt,!1)})}a(_t,ot)},$$slots:{default:!0}})});var pt=l(st,2);Dt(pt,{}),Ft(Ue,()=>e(q),$e=>ge(q,$e)),a(Se,tt)},$$slots:{default:!0}})})}a(We,Ee)},$$slots:{default:!0}})}),a(U,me)},$$slots:{default:!0}})}),a(K,Q),Je()}export{Ca as F};
diff --git a/backend/static/frontend/_app/immutable/chunks/DJPlLp0I.js.map b/backend/static/frontend/_app/immutable/chunks/DJPlLp0I.js.map
new file mode 100644
index 00000000..05fa0d15
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/DJPlLp0I.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"DJPlLp0I.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/combobox/components/combobox.svelte","../../../../../../node_modules/bits-ui/dist/bits/combobox/components/combobox-input.svelte","../../../../../../node_modules/bits-ui/dist/bits/combobox/components/combobox-trigger.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/search.svelte","../../../../../../src/lib/components/framework-combobox.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { type WritableBox, boxWith } from \"svelte-toolbelt\";\n\timport type { ComboboxRootProps } from \"../types.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\timport { SelectRootState } from \"../../select/select.svelte.js\";\n\timport ListboxHiddenInput from \"../../select/components/select-hidden-input.svelte\";\n\timport { watch } from \"runed\";\n\n\tlet {\n\t\tvalue = $bindable(),\n\t\tonValueChange = noop,\n\t\tname = \"\",\n\t\tdisabled = false,\n\t\ttype,\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tloop = false,\n\t\tscrollAlignment = \"nearest\",\n\t\trequired = false,\n\t\titems = [],\n\t\tallowDeselect = true,\n\t\tinputValue = \"\",\n\t\tchildren,\n\t}: ComboboxRootProps = $props();\n\n\tif (value === undefined) {\n\t\tconst defaultValue = type === \"single\" ? \"\" : [];\n\t\tvalue = defaultValue;\n\t}\n\n\twatch.pre(\n\t\t() => value,\n\t\t() => {\n\t\t\tif (value !== undefined) return;\n\t\t\tvalue = type === \"single\" ? \"\" : [];\n\t\t}\n\t);\n\n\tconst rootState = SelectRootState.create({\n\t\ttype,\n\t\tvalue: boxWith(\n\t\t\t() => value!,\n\t\t\t(v) => {\n\t\t\t\tvalue = v;\n\t\t\t\t// @ts-expect-error - we know\n\t\t\t\tonValueChange(v);\n\t\t\t}\n\t\t) as WritableBox<string> | WritableBox<string[]>,\n\t\tdisabled: boxWith(() => disabled),\n\t\trequired: boxWith(() => required),\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tloop: boxWith(() => loop),\n\t\tscrollAlignment: boxWith(() => scrollAlignment),\n\t\tname: boxWith(() => name),\n\t\tisCombobox: true,\n\t\titems: boxWith(() => items),\n\t\tallowDeselect: boxWith(() => allowDeselect),\n\t\tinputValue: boxWith(\n\t\t\t() => inputValue,\n\t\t\t(v) => (inputValue = v)\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n<FloatingLayer>\n\t{@render children?.()}\n</FloatingLayer>\n\n{#if Array.isArray(rootState.opts.value.current)}\n\t{#if rootState.opts.value.current.length}\n\t\t{#each rootState.opts.value.current as item (item)}\n\t\t\t<ListboxHiddenInput value={item} />\n\t\t{/each}\n\t{/if}\n{:else}\n\t<ListboxHiddenInput bind:value={rootState.opts.value.current as string} />\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { ComboboxInputProps } from \"../types.js\";\n\timport { useId } from \"../../../internal/use-id.js\";\n\timport { FloatingLayer } from \"../../utilities/floating-layer/index.js\";\n\timport { SelectInputState } from \"../../select/select.svelte.js\";\n\n\tlet {\n\t\tid = useId(),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tdefaultValue,\n\t\tclearOnDeselect = false,\n\t\t...restProps\n\t}: ComboboxInputProps = $props();\n\n\tconst inputState = SelectInputState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tclearOnDeselect: boxWith(() => clearOnDeselect),\n\t});\n\n\tif (defaultValue) {\n\t\tinputState.root.opts.inputValue.current = defaultValue;\n\t}\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, inputState.props, { value: inputState.root.opts.inputValue.current })\n\t);\n</script>\n\n<FloatingLayer.Anchor {id} ref={inputState.opts.ref}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<input {...mergedProps} />\n\t{/if}\n</FloatingLayer.Anchor>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { ComboboxTriggerProps } from \"../types.js\";\n\timport { useId } from \"../../../internal/use-id.js\";\n\timport { SelectComboTriggerState } from \"../../select/select.svelte.js\";\n\n\tlet {\n\t\tid = useId(),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tchildren,\n\t\ttype = \"button\",\n\t\t...restProps\n\t}: ComboboxTriggerProps = $props();\n\n\tconst triggerState = SelectComboTriggerState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, triggerState.props, { type }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m21 21-4.34-4.34\" }], [\"circle\", { \"cx\": \"11\", \"cy\": \"11\", \"r\": \"8\" }]];\n/**\n * @component @name Search\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMjEgMjEtNC4zNC00LjM0IiAvPgogIDxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/search\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"search\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n import { Combobox } from \"bits-ui\";\n import { cn } from \"$lib/utils\";\n import { Check, ChevronDown, Search } from \"@lucide/svelte\";\n import { getFrameworkLabel, type Framework } from '$lib/state/projects.svelte';\n import FrameworkIcon from './framework-icon.svelte';\n import SelectScrollUpButton from '$lib/components/ui/select/select-scroll-up-button.svelte';\n import SelectScrollDownButton from '$lib/components/ui/select/select-scroll-down-button.svelte';\n\n interface Props {\n value: Framework;\n disabled?: boolean;\n }\n\n let { value = $bindable(), disabled = false }: Props = $props();\n\n let open = $state(false);\n let searchQuery = $state('');\n let searchInputRef = $state<HTMLInputElement | null>(null);\n let triggerWrapperRef = $state<HTMLDivElement | null>(null);\n let contentRef = $state<HTMLElement | null>(null);\n\n const frameworks = [\n { value: 'gin', label: 'Gin', description: 'Fast HTTP web framework', group: 'Go' },\n { value: 'fiber', label: 'Fiber', description: 'Express-inspired framework', group: 'Go' },\n { value: 'chi', label: 'Chi', description: 'Lightweight router', group: 'Go' },\n { value: 'fasthttp', label: 'FastHTTP', description: 'High-performance HTTP', group: 'Go' },\n { value: 'stdlib', label: 'Standard Library', description: 'net/http package', group: 'Go' },\n { value: 'custom', label: 'Custom', description: 'Other / manual setup', group: 'Go' },\n { value: 'react', label: 'React', description: 'Frontend UI library', group: 'JavaScript' },\n { value: 'react-native', label: 'React Native', description: 'React Native and Expo apps', group: 'JavaScript' },\n { value: 'svelte', label: 'Svelte', description: 'Frontend compiler framework', group: 'JavaScript' },\n { value: 'vuejs', label: 'Vue.js', description: 'Progressive frontend framework', group: 'JavaScript' },\n { value: 'jquery', label: 'jQuery', description: 'Legacy-friendly AJAX and DOM library', group: 'JavaScript' },\n { value: 'symfony', label: 'Symfony', description: 'PHP full-stack framework (OTLP)', group: 'PHP' },\n { value: 'laravel', label: 'Laravel', description: 'PHP full-stack framework (OTLP)', group: 'PHP' },\n { value: 'hono', label: 'Hono', description: 'Lightweight multi-runtime framework (OTLP)', group: 'Backend' },\n { value: 'cloudflare', label: 'Cloudflare', description: 'Cloudflare Workers (OTLP Traces)', group: 'Backend' },\n { value: 'opentelemetry', label: 'OpenTelemetry', description: 'Vendor-neutral observability', group: 'Backend' },\n { value: 'flutter', label: 'Flutter', description: 'Mobile UI framework', group: 'Mobile' },\n { value: 'android', label: 'Android', description: 'Native Android (Kotlin/Java)', group: 'Mobile' },\n ] as const;\n\n const selectedFrameworkLabel = $derived(getFrameworkLabel(value));\n\n const query = $derived(searchQuery.toLowerCase().trim());\n\n const filteredFrameworks = $derived(\n query === ''\n ? frameworks\n : frameworks.filter(f =>\n f.label.toLowerCase().includes(query) ||\n f.description.toLowerCase().includes(query) ||\n f.group.toLowerCase().includes(query)\n )\n );\n\n const goFrameworks = $derived(filteredFrameworks.filter(f => f.group === 'Go'));\n const jsFrameworks = $derived(filteredFrameworks.filter(f => f.group === 'JavaScript'));\n const phpFrameworks = $derived(filteredFrameworks.filter(f => f.group === 'PHP'));\n const backendFrameworks = $derived(filteredFrameworks.filter(f => f.group === 'Backend'));\n const mobileFrameworks = $derived(filteredFrameworks.filter(f => f.group === 'Mobile'));\n\n function handleOpenChange(isOpen: boolean) {\n open = isOpen;\n if (!isOpen) {\n searchQuery = '';\n } else {\n requestAnimationFrame(() => {\n searchInputRef?.focus();\n if (contentRef && triggerWrapperRef) {\n contentRef.style.width = `${triggerWrapperRef.offsetWidth}px`;\n }\n });\n }\n }\n</script>\n\n<Combobox.Root type=\"single\" bind:value bind:open onOpenChange={handleOpenChange}>\n <div class=\"relative w-full\" bind:this={triggerWrapperRef}>\n <Combobox.Input\n {disabled}\n readonly\n defaultValue={selectedFrameworkLabel}\n class=\"absolute inset-0 w-full h-full opacity-0 pointer-events-none\"\n tabindex={-1}\n />\n <Combobox.Trigger\n {disabled}\n data-slot=\"select-trigger\"\n data-size=\"default\"\n class={cn(\n \"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={value} />\n <span>{selectedFrameworkLabel}</span>\n </div>\n <ChevronDown class=\"size-4 opacity-50\" />\n </Combobox.Trigger>\n </div>\n\n <Combobox.Portal>\n <Combobox.Content\n bind:ref={contentRef}\n sideOffset={4}\n preventScroll={true}\n class={cn(\n \"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 min-w-[8rem] rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\"\n )}\n >\n <div class=\"flex items-center border-b px-3 py-2\">\n <Search class=\"mr-2 size-4 shrink-0 opacity-50\" />\n <input\n bind:this={searchInputRef}\n bind:value={searchQuery}\n placeholder=\"Search frameworks...\"\n class=\"flex h-7 w-full rounded-md bg-transparent text-sm outline-none placeholder:text-muted-foreground\"\n />\n </div>\n\n <SelectScrollUpButton />\n <Combobox.Viewport class=\"w-full max-h-72 overflow-y-auto scroll-my-1 p-1\">\n {#if filteredFrameworks.length === 0}\n <div class=\"py-4 text-center text-sm text-muted-foreground\">No frameworks found</div>\n {:else}\n {#if goFrameworks.length > 0}\n <Combobox.Group>\n <Combobox.GroupHeading class=\"px-2 py-1.5 text-xs font-semibold text-muted-foreground\">Go</Combobox.GroupHeading>\n {#each goFrameworks as fw}\n <Combobox.Item\n value={fw.value}\n class={cn(\n \"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n {#snippet children({ selected })}\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={fw.value} />\n <div class=\"flex flex-col\">\n <span class=\"font-medium\">{fw.label}</span>\n <span class=\"text-xs text-muted-foreground\">{fw.description}</span>\n </div>\n </div>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Combobox.Item>\n {/each}\n </Combobox.Group>\n {/if}\n {#if jsFrameworks.length > 0}\n <Combobox.Group>\n <Combobox.GroupHeading class=\"px-2 py-1.5 text-xs font-semibold text-muted-foreground\">JavaScript</Combobox.GroupHeading>\n {#each jsFrameworks as fw}\n <Combobox.Item\n value={fw.value}\n class={cn(\n \"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n {#snippet children({ selected })}\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={fw.value} />\n <div class=\"flex flex-col\">\n <span class=\"font-medium\">{fw.label}</span>\n <span class=\"text-xs text-muted-foreground\">{fw.description}</span>\n </div>\n </div>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Combobox.Item>\n {/each}\n </Combobox.Group>\n {/if}\n {#if phpFrameworks.length > 0}\n <Combobox.Group>\n <Combobox.GroupHeading class=\"px-2 py-1.5 text-xs font-semibold text-muted-foreground\">PHP</Combobox.GroupHeading>\n {#each phpFrameworks as fw}\n <Combobox.Item\n value={fw.value}\n class={cn(\n \"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n {#snippet children({ selected })}\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={fw.value} />\n <div class=\"flex flex-col\">\n <span class=\"font-medium\">{fw.label}</span>\n <span class=\"text-xs text-muted-foreground\">{fw.description}</span>\n </div>\n </div>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Combobox.Item>\n {/each}\n </Combobox.Group>\n {/if}\n {#if backendFrameworks.length > 0}\n <Combobox.Group>\n <Combobox.GroupHeading class=\"px-2 py-1.5 text-xs font-semibold text-muted-foreground\">Backend</Combobox.GroupHeading>\n {#each backendFrameworks as fw}\n <Combobox.Item\n value={fw.value}\n class={cn(\n \"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n {#snippet children({ selected })}\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={fw.value} />\n <div class=\"flex flex-col\">\n <span class=\"font-medium\">{fw.label}</span>\n <span class=\"text-xs text-muted-foreground\">{fw.description}</span>\n </div>\n </div>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Combobox.Item>\n {/each}\n </Combobox.Group>\n {/if}\n {#if mobileFrameworks.length > 0}\n <Combobox.Group>\n <Combobox.GroupHeading class=\"px-2 py-1.5 text-xs font-semibold text-muted-foreground\">Mobile</Combobox.GroupHeading>\n {#each mobileFrameworks as fw}\n <Combobox.Item\n value={fw.value}\n class={cn(\n \"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\"\n )}\n >\n {#snippet children({ selected })}\n <div class=\"flex items-center gap-2\">\n <FrameworkIcon framework={fw.value} />\n <div class=\"flex flex-col\">\n <span class=\"font-medium\">{fw.label}</span>\n <span class=\"text-xs text-muted-foreground\">{fw.description}</span>\n </div>\n </div>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Combobox.Item>\n {/each}\n </Combobox.Group>\n {/if}\n {/if}\n </Combobox.Viewport>\n <SelectScrollDownButton />\n </Combobox.Content>\n </Combobox.Portal>\n</Combobox.Root>\n"],"names":["value","$.prop","$$props","onValueChange","noop","name","disabled","open","onOpenChange","onOpenChangeComplete","loop","scrollAlignment","required","items","allowDeselect","inputValue","defaultValue","watch","rootState","SelectRootState","boxWith","v","FloatingLayer","node","item","$$anchor","ListboxHiddenInput","$$render","consequent","$$value","consequent_1","alternate","id","useId","ref","clearOnDeselect","restProps","$.rest_props","inputState","SelectInputState","mergedProps","mergeProps","FloatingLayer_Anchor","$.snippet","node_2","input","root_3","$.attribute_effect","type","triggerState","SelectComboTriggerState","$.derived","node_1","button","root_2","props","iconNode","Icon","$.noop","$.state","searchQuery","searchInputRef","triggerWrapperRef","contentRef","frameworks","selectedFrameworkLabel","getFrameworkLabel","query","$.get","filteredFrameworks","f","goFrameworks","jsFrameworks","phpFrameworks","backendFrameworks","mobileFrameworks","handleOpenChange","isOpen","$.set","Combobox_Root","div","$.first_child","fragment_1","Combobox_Input","$0","cn","Combobox_Trigger","div_1","fragment_2","FrameworkIcon","node_3","span","$.sibling","ChevronDown","node_4","Combobox_Portal","Combobox_Content","div_2","fragment_4","Search","node_7","$.remove_input_defaults","SelectScrollUpButton","node_8","Combobox_Viewport","div_3","root_6","Combobox_Group","Combobox_GroupHeading","$.each","node_14","fw","children","$$arg0","selected","div_4","fragment_10","node_16","div_5","span_1","span_2","Check","$.set_text","text_2","text_3","Combobox_Item","consequent_2","Combobox_Group_1","Combobox_GroupHeading_1","node_21","div_6","fragment_15","node_23","div_7","span_3","span_4","consequent_3","text_5","text_6","Combobox_Item_1","consequent_4","Combobox_Group_2","Combobox_GroupHeading_2","node_28","div_8","fragment_20","node_30","div_9","span_5","span_6","consequent_5","text_8","text_9","Combobox_Item_2","consequent_6","Combobox_Group_3","Combobox_GroupHeading_3","node_35","div_10","fragment_25","node_37","div_11","span_7","span_8","consequent_7","text_11","text_12","Combobox_Item_3","consequent_8","Combobox_Group_4","Combobox_GroupHeading_4","node_42","div_12","fragment_30","node_44","div_13","span_9","span_10","consequent_9","text_14","text_15","Combobox_Item_4","consequent_10","SelectScrollDownButton","node_46"],"mappings":"00BAAA,cAUEA,EAAKC,EAAAC,EAAA,QAAA,EAAA,EACLC,wBAAgBC,EAAI,EACpBC,eAAO,EAAE,EACTC,mBAAW,EAAK,EAEhBC,gBAAiB,EAAK,EACtBC,uBAAeJ,EAAI,EACnBK,+BAAuBL,EAAI,EAC3BM,gBAAO,EAAK,EACZC,0BAAkB,SAAS,EAC3BC,mBAAW,EAAK,EAChBC,EAAKZ,EAAAC,EAAA,QAAA,GAAA,IAAA,CAAA,CAAA,EACLY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J,IAAAC,IADAD,EAAI,CAAA,OACJC,EAAI,EAAA,IAAJA,CAAI,IAFRF,CAAG,IAFPH,CAAG,WAAHA,EAAG,CAAA,cAQCnD,GAAKhG,EAAA,CAAA,MAAA,uBAAA,CAAA,YADLyF,GAAQ,GAAAvF,EAAAuJ,EAAA,YAJsBxD,EAAAyD,GAAA/G,EAAA2C,CAAE,EAAC,KAAK,EACUW,EAAA0D,GAAAhH,EAAA2C,CAAE,EAAC,WAAW,YAThE,IAAA3B,GAAAjC,EAAA,IAAAkC,GACH,mYAAkY,CAAA,qBAHzYgG,EAAS5J,EAAA,aACC,OAAA2C,EAAA2C,CAAE,EAAC,iCAKA,SAAAC,yFAVrBrC,EAAgB,EAAC,OAAS,GAAChD,EAAA2J,EAAA,0BA3G/BjH,CAAkB,EAAC,SAAW,EAAC1C,GAAAC,EAAA,EAAAD,GAAAI,GAAA,EAAA,sDAuIvCwJ,GAAsBC,GAAA,EAAA,KAjJlB3I,GAAA,IAAAuB,EAEeR,CAAW,SAAXA,EAAW/B,EAAA,CAAA,qHAxC3C","x_google_ignoreList":[0,1,2,3]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/DNre5-OF.js b/backend/static/frontend/_app/immutable/chunks/DWCgVx1V.js
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/DNre5-OF.js
rename to backend/static/frontend/_app/immutable/chunks/DWCgVx1V.js
index 2b29feb9..2c371c90 100644
--- a/backend/static/frontend/_app/immutable/chunks/DNre5-OF.js
+++ b/backend/static/frontend/_app/immutable/chunks/DWCgVx1V.js
@@ -1,4 +1,4 @@
-import{i as H,p as x,r as W,s as O,l as ee,b as _t}from"./DMODTt3n.js";import{I as re,s as oe}from"./CQWqWi6p.js";import{g as r,h as g,i as c,u as d,F as I,C as mt,v as fe,b9 as J,p as E,d as C,c as y,b as v,a as A,m as F,o as $,aG as be,K as pt,f as L,e as S,r as w,s as R,q as ve,k as st,l as nt,j as xt,n as ge}from"./B2WdN-7r.js";import{e as Se,i as we}from"./CMyj8Fzw.js";import{b as it,d as Pt,e as ut,c as Zt,a as Vt}from"./DH0tcjsQ.js";import{c as Z}from"./BAcG0-U_.js";import{am as xe,w as Ct,C as ft,x as _e,u as ye,an as Pe}from"./CAQEdoSh.js";import{s as Lt,l as se,b as D,a as tt,d as Ne,m as B,c as bt}from"./DWAABZDo.js";import{P as Te}from"./DQwRaN-E.js";import{b as Ce,j as yt}from"./DJdWGDax.js";import{b as Me,P as Ee,a as Ae}from"./DKXzXP9M.js";import{C as ze}from"./BISlaXSK.js";import{C as De}from"./lk4DWutj.js";import{H as Oe,g as Re}from"./D9j1Uorr.js";import{t as He}from"./BnbBSyGl.js";function We(s,t){if(xe(s)){const o=s();return o===void 0?t:o}return s===void 0?t:s}function Mt(s,t){let e=g(null);const o=d(()=>We(t,250));function n(...i){if(r(e))r(e).timeout&&clearTimeout(r(e).timeout);else{let a,l;const h=new Promise((f,u)=>{a=f,l=u});c(e,{timeout:null,runner:null,promise:h,resolve:a,reject:l},!0)}return r(e).runner=async()=>{if(!r(e))return;const a=r(e);c(e,null);try{a.resolve(await s.apply(this,i))}catch(l){a.reject(l)}},r(e).timeout=setTimeout(r(e).runner,r(o)),r(e).promise}return n.cancel=async()=>{(!r(e)||r(e).timeout===null)&&(await new Promise(i=>setTimeout(i,0)),!r(e)||r(e).timeout===null)||(clearTimeout(r(e).timeout),r(e).reject("Cancelled"),c(e,null))},n.runScheduledNow=async()=>{(!r(e)||!r(e).timeout)&&(await new Promise(i=>setTimeout(i,0)),!r(e)||!r(e).timeout)||(clearTimeout(r(e).timeout),r(e).timeout=null,await r(e).runner?.())},Object.defineProperty(n,"pending",{enumerable:!0,get(){return!!r(e)?.timeout}}),n}class kt{#t=g(!1);constructor(){I(()=>(mt(()=>c(this.#t,!0)),()=>{c(this.#t,!1)}))}get current(){return r(this.#t)}}class at{#t;#e;constructor(t,e){this.#t=t,this.#e=e,this.handler=this.handler.bind(this),I(this.handler)}handler(){let t=0;const e=this.#t();if(!e)return;const o=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(this.#e)});return o.observe(e),()=>{window.cancelAnimationFrame(t),o.unobserve(e)}}}class ne{state;#t;constructor(t,e){this.state=Lt(t),this.#t=e,this.dispatch=this.dispatch.bind(this)}#e(t){return this.#t[this.state.current][t]??this.state.current}dispatch(t){this.state.current=this.#e(t)}}const Ve={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}};class Le{opts;#t=g("none");get prevAnimationNameState(){return r(this.#t)}set prevAnimationNameState(t){c(this.#t,t,!0)}#e=g(fe({}));get styles(){return r(this.#e)}set styles(t){c(this.#e,t,!0)}initialStatus;previousPresent;machine;present;constructor(t){this.opts=t,this.present=this.opts.open,this.initialStatus=t.open.current?"mounted":"unmounted",this.previousPresent=new Te(()=>this.present.current),this.machine=new ne(this.initialStatus,Ve),this.handleAnimationEnd=this.handleAnimationEnd.bind(this),this.handleAnimationStart=this.handleAnimationStart.bind(this),ke(this),Ue(this),Ie(this)}handleAnimationEnd(t){if(!this.opts.ref.current)return;const e=Nt(this.opts.ref.current),o=e.includes(t.animationName)||e==="none";t.target===this.opts.ref.current&&o&&this.machine.dispatch("ANIMATION_END")}handleAnimationStart(t){this.opts.ref.current&&t.target===this.opts.ref.current&&(this.prevAnimationNameState=Nt(this.opts.ref.current))}#r=d(()=>["mounted","unmountSuspended"].includes(this.machine.state.current));get isPresent(){return r(this.#r)}set isPresent(t){c(this.#r,t)}}function ke(s){Ct(()=>s.present.current,()=>{if(!s.opts.ref.current||!(s.present.current!==s.previousPresent.current))return;const e=s.prevAnimationNameState,o=Nt(s.opts.ref.current);if(s.present.current)s.machine.dispatch("MOUNT");else if(o==="none"||s.styles.display==="none")s.machine.dispatch("UNMOUNT");else{const n=e!==o;s.previousPresent.current&&n?s.machine.dispatch("ANIMATION_OUT"):s.machine.dispatch("UNMOUNT")}})}function Ue(s){Ct(()=>s.machine.state.current,()=>{if(!s.opts.ref.current)return;const t=Nt(s.opts.ref.current);s.prevAnimationNameState=s.machine.state.current==="mounted"?t:"none"})}function Ie(s){Ct(()=>s.opts.ref.current,()=>{if(s.opts.ref.current)return s.styles=getComputedStyle(s.opts.ref.current),se(J(s.opts.ref.current,"animationstart",s.handleAnimationStart),J(s.opts.ref.current,"animationcancel",s.handleAnimationEnd),J(s.opts.ref.current,"animationend",s.handleAnimationEnd))})}function Nt(s){return s&&getComputedStyle(s).animationName||"none"}function Et(s,t){E(t,!0);const e=new Le({open:D(()=>t.open),ref:t.ref});var o=C(),n=y(o);{var i=a=>{var l=C(),h=y(l);F(h,()=>t.presence??$,()=>({present:e.isPresent})),v(a,l)};H(n,a=>{(t.forceMount||t.open||e.isPresent)&&a(i)})}v(s,o),A()}function Xe(s,t,e){return Math.min(e,Math.max(t,s))}const vt=Ne({component:"scroll-area",parts:["root","viewport","corner","thumb","scrollbar"]}),gt=new ft("ScrollArea.Root"),St=new ft("ScrollArea.Scrollbar"),At=new ft("ScrollArea.ScrollbarVisible"),Ut=new ft("ScrollArea.ScrollbarAxis"),ie=new ft("ScrollArea.ScrollbarShared");class It{static create(t){return gt.set(new It(t))}opts;attachment;#t=g(null);get scrollAreaNode(){return r(this.#t)}set scrollAreaNode(t){c(this.#t,t,!0)}#e=g(null);get viewportNode(){return r(this.#e)}set viewportNode(t){c(this.#e,t,!0)}#r=g(null);get contentNode(){return r(this.#r)}set contentNode(t){c(this.#r,t,!0)}#o=g(null);get scrollbarXNode(){return r(this.#o)}set scrollbarXNode(t){c(this.#o,t,!0)}#s=g(null);get scrollbarYNode(){return r(this.#s)}set scrollbarYNode(t){c(this.#s,t,!0)}#n=g(0);get cornerWidth(){return r(this.#n)}set cornerWidth(t){c(this.#n,t,!0)}#i=g(0);get cornerHeight(){return r(this.#i)}set cornerHeight(t){c(this.#i,t,!0)}#a=g(!1);get scrollbarXEnabled(){return r(this.#a)}set scrollbarXEnabled(t){c(this.#a,t,!0)}#l=g(!1);get scrollbarYEnabled(){return r(this.#l)}set scrollbarYEnabled(t){c(this.#l,t,!0)}domContext;constructor(t){this.opts=t,this.attachment=tt(t.ref,e=>this.scrollAreaNode=e),this.domContext=new _e(t.ref)}#c=d(()=>({id:this.opts.id.current,dir:this.opts.dir.current,style:{position:"relative","--bits-scroll-area-corner-height":`${this.cornerHeight}px`,"--bits-scroll-area-corner-width":`${this.cornerWidth}px`},[vt.root]:"",...this.attachment}));get props(){return r(this.#c)}set props(t){c(this.#c,t)}}class Xt{static create(t){return new Xt(t,gt.get())}opts;root;attachment;#t=Lt(ye());#e=Lt(null);contentAttachment=tt(this.#e,t=>this.root.contentNode=t);constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(t.ref,o=>this.root.viewportNode=o)}#r=d(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?"scroll":"hidden",overflowY:this.root.scrollbarYEnabled?"scroll":"hidden"},[vt.viewport]:"",...this.attachment}));get props(){return r(this.#r)}set props(t){c(this.#r,t)}#o=d(()=>({id:this.#t.current,"data-scroll-area-content":"",style:{minWidth:this.root.scrollbarXEnabled?"fit-content":void 0},...this.contentAttachment}));get contentProps(){return r(this.#o)}set contentProps(t){c(this.#o,t)}}class Yt{static create(t){return St.set(new Yt(t,gt.get()))}opts;root;#t=d(()=>this.opts.orientation.current==="horizontal");get isHorizontal(){return r(this.#t)}set isHorizontal(t){c(this.#t,t)}#e=g(!1);get hasThumb(){return r(this.#e)}set hasThumb(t){c(this.#e,t,!0)}constructor(t,e){this.opts=t,this.root=e,Ct(()=>this.isHorizontal,o=>o?(this.root.scrollbarXEnabled=!0,()=>{this.root.scrollbarXEnabled=!1}):(this.root.scrollbarYEnabled=!0,()=>{this.root.scrollbarYEnabled=!1}))}}class Ft{static create(){return new Ft(St.get())}scrollbar;root;#t=g(!1);get isVisible(){return r(this.#t)}set isVisible(t){c(this.#t,t,!0)}constructor(t){this.scrollbar=t,this.root=t.root,I(()=>{const e=this.root.scrollAreaNode,o=this.root.opts.scrollHideDelay.current;let n=0;if(!e)return;const i=()=>{this.root.domContext.clearTimeout(n),mt(()=>this.isVisible=!0)},a=()=>{n&&this.root.domContext.clearTimeout(n),n=this.root.domContext.setTimeout(()=>{mt(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},o)},l=se(J(e,"pointerenter",i),J(e,"pointerleave",a));return()=>{this.root.domContext.getWindow().clearTimeout(n),l()}})}#e=d(()=>({"data-state":this.isVisible?"visible":"hidden"}));get props(){return r(this.#e)}set props(t){c(this.#e,t)}}class Bt{static create(){return new Bt(St.get())}scrollbar;root;machine=new ne("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});#t=d(()=>this.machine.state.current==="hidden");get isHidden(){return r(this.#t)}set isHidden(t){c(this.#t,t)}constructor(t){this.scrollbar=t,this.root=t.root;const e=Mt(()=>this.machine.dispatch("SCROLL_END"),100);I(()=>{const o=this.machine.state.current,n=this.root.opts.scrollHideDelay.current;if(o==="idle"){const i=this.root.domContext.setTimeout(()=>this.machine.dispatch("HIDE"),n);return()=>this.root.domContext.clearTimeout(i)}}),I(()=>{const o=this.root.viewportNode;if(!o)return;const n=this.scrollbar.isHorizontal?"scrollLeft":"scrollTop";let i=o[n];return J(o,"scroll",()=>{const h=o[n];i!==h&&(this.machine.dispatch("SCROLL"),e()),i=h})}),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}onpointerenter(t){this.machine.dispatch("POINTER_ENTER")}onpointerleave(t){this.machine.dispatch("POINTER_LEAVE")}#e=d(()=>({"data-state":this.machine.state.current==="hidden"?"hidden":"visible",onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave}));get props(){return r(this.#e)}set props(t){c(this.#e,t)}}class zt{static create(){return new zt(St.get())}scrollbar;root;#t=g(!1);get isVisible(){return r(this.#t)}set isVisible(t){c(this.#t,t,!0)}constructor(t){this.scrollbar=t,this.root=t.root;const e=Mt(()=>{const o=this.root.viewportNode;if(!o)return;const n=o.offsetWidth<o.scrollWidth,i=o.offsetHeight<o.scrollHeight;this.isVisible=this.scrollbar.isHorizontal?n:i},10);new at(()=>this.root.viewportNode,e),new at(()=>this.root.contentNode,e)}#e=d(()=>({"data-state":this.isVisible?"visible":"hidden"}));get props(){return r(this.#e)}set props(t){c(this.#e,t)}}class jt{static create(){return At.set(new jt(St.get()))}scrollbar;root;#t=g(null);get thumbNode(){return r(this.#t)}set thumbNode(t){c(this.#t,t,!0)}#e=g(0);get pointerOffset(){return r(this.#e)}set pointerOffset(t){c(this.#e,t,!0)}#r=g({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}});get sizes(){return r(this.#r)}set sizes(t){c(this.#r,t)}#o=d(()=>ae(this.sizes.viewport,this.sizes.content));get thumbRatio(){return r(this.#o)}set thumbRatio(t){c(this.#o,t)}#s=d(()=>this.thumbRatio>0&&this.thumbRatio<1);get hasThumb(){return r(this.#s)}set hasThumb(t){c(this.#s,t)}#n=g("");get prevTransformStyle(){return r(this.#n)}set prevTransformStyle(t){c(this.#n,t,!0)}constructor(t){this.scrollbar=t,this.root=t.root,I(()=>{this.scrollbar.hasThumb=this.hasThumb}),I(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}setSizes(t){this.sizes=t}getScrollPosition(t,e){return Ye({pointerPos:t,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:e})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(t){this.pointerOffset=t}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollLeft,o=`translate3d(${$t({scrollPos:t,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=o,this.prevTransformStyle=o}xOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=t)}xOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(t,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollTop,o=`translate3d(0, ${$t({scrollPos:t,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=o,this.prevTransformStyle=o}yOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=t)}yOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(t,this.root.opts.dir.current))}}class qt{static create(t){return Ut.set(new qt(t,At.get()))}opts;scrollbarVis;root;scrollbar;attachment;#t=g();get computedStyle(){return r(this.#t)}set computedStyle(t){c(this.#t,t,!0)}constructor(t,e){this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=tt(this.scrollbar.opts.ref,o=>this.root.scrollbarXNode=o),I(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),I(()=>{this.onResize()})}onThumbPointerDown=t=>{this.scrollbarVis.onThumbPointerDown(t.x)};onDragScroll=t=>{this.scrollbarVis.xOnDragScroll(t.x)};onThumbPointerUp=()=>{this.scrollbarVis.onThumbPointerUp()};onThumbPositionChange=()=>{this.scrollbarVis.xOnThumbPositionChange()};onWheelScroll=(t,e)=>{if(!this.root.viewportNode)return;const o=this.root.viewportNode.scrollLeft+t.deltaX;this.scrollbarVis.xOnWheelScroll(o),ce(o,e)&&t.preventDefault()};onResize=()=>{this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollWidth,viewport:this.root.viewportNode.offsetWidth,scrollbar:{size:this.scrollbar.opts.ref.current.clientWidth,paddingStart:Tt(this.computedStyle.paddingLeft),paddingEnd:Tt(this.computedStyle.paddingRight)}})};#e=d(()=>Dt(this.scrollbarVis.sizes));get thumbSize(){return r(this.#e)}set thumbSize(t){c(this.#e,t)}#r=d(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"horizontal",style:{bottom:0,left:this.root.opts.dir.current==="rtl"?"var(--bits-scroll-area-corner-width)":0,right:this.root.opts.dir.current==="ltr"?"var(--bits-scroll-area-corner-width)":0,"--bits-scroll-area-thumb-width":`${this.thumbSize}px`},...this.attachment}));get props(){return r(this.#r)}set props(t){c(this.#r,t)}}class Gt{static create(t){return Ut.set(new Gt(t,At.get()))}opts;scrollbarVis;root;scrollbar;attachment;#t=g();get computedStyle(){return r(this.#t)}set computedStyle(t){c(this.#t,t,!0)}constructor(t,e){this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=tt(this.scrollbar.opts.ref,o=>this.root.scrollbarYNode=o),I(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),I(()=>{this.onResize()}),this.onThumbPointerDown=this.onThumbPointerDown.bind(this),this.onDragScroll=this.onDragScroll.bind(this),this.onThumbPointerUp=this.onThumbPointerUp.bind(this),this.onThumbPositionChange=this.onThumbPositionChange.bind(this),this.onWheelScroll=this.onWheelScroll.bind(this),this.onResize=this.onResize.bind(this)}onThumbPointerDown(t){this.scrollbarVis.onThumbPointerDown(t.y)}onDragScroll(t){this.scrollbarVis.yOnDragScroll(t.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(t,e){if(!this.root.viewportNode)return;const o=this.root.viewportNode.scrollTop+t.deltaY;this.scrollbarVis.yOnWheelScroll(o),ce(o,e)&&t.preventDefault()}onResize(){this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollHeight,viewport:this.root.viewportNode.offsetHeight,scrollbar:{size:this.scrollbar.opts.ref.current.clientHeight,paddingStart:Tt(this.computedStyle.paddingTop),paddingEnd:Tt(this.computedStyle.paddingBottom)}})}#e=d(()=>Dt(this.scrollbarVis.sizes));get thumbSize(){return r(this.#e)}set thumbSize(t){c(this.#e,t)}#r=d(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"vertical",style:{top:0,right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:"var(--bits-scroll-area-corner-height)","--bits-scroll-area-thumb-height":`${this.thumbSize}px`},...this.attachment}));get props(){return r(this.#r)}set props(t){c(this.#r,t)}}class Kt{static create(){return ie.set(new Kt(Ut.get()))}scrollbarState;root;scrollbarVis;scrollbar;#t=g(null);get rect(){return r(this.#t)}set rect(t){c(this.#t,t)}#e=g("");get prevWebkitUserSelect(){return r(this.#e)}set prevWebkitUserSelect(t){c(this.#e,t,!0)}handleResize;handleThumbPositionChange;handleWheelScroll;handleThumbPointerDown;handleThumbPointerUp;#r=d(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport);get maxScrollPos(){return r(this.#r)}set maxScrollPos(t){c(this.#r,t)}constructor(t){this.scrollbarState=t,this.root=t.root,this.scrollbarVis=t.scrollbarVis,this.scrollbar=t.scrollbarVis.scrollbar,this.handleResize=Mt(()=>this.scrollbarState.onResize(),10),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,I(()=>{const e=this.maxScrollPos,o=this.scrollbar.opts.ref.current;this.root.viewportNode;const n=a=>{const l=a.target;o?.contains(l)&&this.handleWheelScroll(a,e)};return J(this.root.domContext.getDocument(),"wheel",n,{passive:!1})}),be(()=>{this.scrollbarVis.sizes,mt(()=>this.handleThumbPositionChange())}),new at(()=>this.scrollbar.opts.ref.current,this.handleResize),new at(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this)}handleDragScroll(t){if(!this.rect)return;const e=t.clientX-this.rect.left,o=t.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:e,y:o})}onpointerdown(t){if(t.button!==0)return;t.target.setPointerCapture(t.pointerId),this.rect=this.scrollbar.opts.ref.current?.getBoundingClientRect()??null,this.prevWebkitUserSelect=this.root.domContext.getDocument().body.style.webkitUserSelect,this.root.domContext.getDocument().body.style.webkitUserSelect="none",this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior="auto"),this.handleDragScroll(t)}onpointermove(t){this.handleDragScroll(t)}onpointerup(t){const e=t.target;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),this.root.domContext.getDocument().body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=""),this.rect=null}#o=d(()=>B({...this.scrollbarState.props,style:{position:"absolute",...this.scrollbarState.props.style},[vt.scrollbar]:"",onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup}));get props(){return r(this.#o)}set props(t){c(this.#o,t)}}class Qt{static create(t){return new Qt(t,ie.get())}opts;scrollbarState;attachment;#t;#e=g();#r=Mt(()=>{r(this.#e)&&(r(this.#e)(),c(this.#e,void 0))},100);constructor(t,e){this.opts=t,this.scrollbarState=e,this.#t=e.root,this.attachment=tt(this.opts.ref,o=>this.scrollbarState.scrollbarVis.thumbNode=o),I(()=>{const o=this.#t.viewportNode;if(!o)return;const n=()=>{if(this.#r(),!r(this.#e)){const a=Fe(o,this.scrollbarState.handleThumbPositionChange);c(this.#e,a,!0),this.scrollbarState.handleThumbPositionChange()}};return mt(()=>this.scrollbarState.handleThumbPositionChange()),J(o,"scroll",n)}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}onpointerdowncapture(t){const e=t.target;if(!e)return;const o=e.getBoundingClientRect(),n=t.clientX-o.left,i=t.clientY-o.top;this.scrollbarState.handleThumbPointerDown({x:n,y:i})}onpointerup(t){this.scrollbarState.handleThumbPointerUp()}#o=d(()=>({id:this.opts.id.current,"data-state":this.scrollbarState.scrollbarVis.hasThumb?"visible":"hidden",style:{width:"var(--bits-scroll-area-thumb-width)",height:"var(--bits-scroll-area-thumb-height)",transform:this.scrollbarState.scrollbarVis.prevTransformStyle},onpointerdowncapture:this.onpointerdowncapture,onpointerup:this.onpointerup,[vt.thumb]:"",...this.attachment}));get props(){return r(this.#o)}set props(t){c(this.#o,t)}}class Jt{static create(t){return new Jt(t,gt.get())}opts;root;attachment;#t=g(0);#e=g(0);#r=d(()=>!!(r(this.#t)&&r(this.#e)));get hasSize(){return r(this.#r)}set hasSize(t){c(this.#r,t)}constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(this.opts.ref),new at(()=>this.root.scrollbarXNode,()=>{const o=this.root.scrollbarXNode?.offsetHeight||0;this.root.cornerHeight=o,c(this.#e,o,!0)}),new at(()=>this.root.scrollbarYNode,()=>{const o=this.root.scrollbarYNode?.offsetWidth||0;this.root.cornerWidth=o,c(this.#t,o,!0)})}#o=d(()=>({id:this.opts.id.current,style:{width:r(this.#t),height:r(this.#e),position:"absolute",right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:0},[vt.corner]:"",...this.attachment}));get props(){return r(this.#o)}set props(t){c(this.#o,t)}}function Tt(s){return s?Number.parseInt(s,10):0}function ae(s,t){const e=s/t;return Number.isNaN(e)?0:e}function Dt(s){const t=ae(s.viewport,s.content),e=s.scrollbar.paddingStart+s.scrollbar.paddingEnd,o=(s.scrollbar.size-e)*t;return Math.max(o,18)}function Ye({pointerPos:s,pointerOffset:t,sizes:e,dir:o="ltr"}){const n=Dt(e),i=n/2,a=t||i,l=n-a,h=e.scrollbar.paddingStart+a,f=e.scrollbar.size-e.scrollbar.paddingEnd-l,u=e.content-e.viewport,m=o==="ltr"?[0,u]:[u*-1,0];return le([h,f],m)(s)}function $t({scrollPos:s,sizes:t,dir:e="ltr"}){const o=Dt(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-n,a=t.content-t.viewport,l=i-o,h=e==="ltr"?[0,a]:[a*-1,0],f=Xe(s,h[0],h[1]);return le([0,a],[0,l])(f)}function le(s,t){return e=>{if(s[0]===s[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(s[1]-s[0]);return t[0]+o*(e-s[0])}}function ce(s,t){return s>0&&s<t}function Fe(s,t){let e={left:s.scrollLeft,top:s.scrollTop},o=0;const n=Pe(s);return(function i(){const a={left:s.scrollLeft,top:s.scrollTop},l=e.left!==a.left,h=e.top!==a.top;(l||h)&&t(),e=a,o=n.requestAnimationFrame(i)})(),()=>n.cancelAnimationFrame(o)}var Be=L("<div><!></div>");function je(s,t){const e=pt();E(t,!0);let o=x(t,"ref",15,null),n=x(t,"id",19,()=>bt(e)),i=x(t,"type",3,"hover"),a=x(t,"dir",3,"ltr"),l=x(t,"scrollHideDelay",3,600),h=W(t,["$$slots","$$events","$$legacy","ref","id","type","dir","scrollHideDelay","children","child"]);const f=It.create({type:D(()=>i()),dir:D(()=>a()),scrollHideDelay:D(()=>l()),id:D(()=>n()),ref:D(()=>o(),P=>o(P))}),u=d(()=>B(h,f.props));var m=C(),p=y(m);{var b=P=>{var T=C(),M=y(T);F(M,()=>t.child,()=>({props:r(u)})),v(P,T)},V=P=>{var T=Be();it(T,()=>({...r(u)}));var M=S(T);F(M,()=>t.children??$),w(T),v(P,T)};H(p,P=>{t.child?P(b):P(V,!1)})}v(s,m),A()}var qe=L("<div><div><!></div></div>");function Ge(s,t){const e=pt();E(t,!0);let o=x(t,"ref",15,null),n=x(t,"id",19,()=>bt(e)),i=W(t,["$$slots","$$events","$$legacy","ref","id","children"]);const a=Xt.create({id:D(()=>n()),ref:D(()=>o(),p=>o(p))}),l=d(()=>B(i,a.props)),h=d(()=>B({},a.contentProps));var f=qe();it(f,()=>({...r(l)}));var u=S(f);it(u,()=>({...r(h)}));var m=S(u);F(m,()=>t.children??$),w(u),w(f),v(s,f),A()}var Ke=L("<div><!></div>");function he(s,t){E(t,!0);let e=W(t,["$$slots","$$events","$$legacy","child","children"]);const o=Kt.create(),n=d(()=>B(e,o.props));var i=C(),a=y(i);{var l=f=>{var u=C(),m=y(u);F(m,()=>t.child,()=>({props:r(n)})),v(f,u)},h=f=>{var u=Ke();it(u,()=>({...r(n)}));var m=S(u);F(m,()=>t.children??$),w(u),v(f,u)};H(a,f=>{t.child?f(l):f(h,!1)})}v(s,i),A()}function Qe(s,t){E(t,!0);let e=W(t,["$$slots","$$events","$$legacy"]);const o=new kt,n=qt.create({mounted:D(()=>o.current)}),i=d(()=>B(e,n.props));he(s,O(()=>r(i))),A()}function Je(s,t){E(t,!0);let e=W(t,["$$slots","$$events","$$legacy"]);const o=new kt,n=Gt.create({mounted:D(()=>o.current)}),i=d(()=>B(e,n.props));he(s,O(()=>r(i))),A()}function Ot(s,t){E(t,!0);let e=W(t,["$$slots","$$events","$$legacy"]);const o=jt.create();var n=C(),i=y(n);{var a=h=>{Qe(h,O(()=>e))},l=h=>{Je(h,O(()=>e))};H(i,h=>{o.scrollbar.opts.orientation.current==="horizontal"?h(a):h(l,!1)})}v(s,n),A()}function Ze(s,t){E(t,!0);let e=x(t,"forceMount",3,!1),o=W(t,["$$slots","$$events","$$legacy","forceMount"]);const n=zt.create(),i=d(()=>B(o,n.props));{const a=h=>{Ot(h,O(()=>r(i)))};let l=d(()=>e()||n.isVisible);Et(s,{get open(){return r(l)},get ref(){return n.scrollbar.opts.ref},presence:a,$$slots:{presence:!0}})}A()}function $e(s,t){E(t,!0);let e=x(t,"forceMount",3,!1),o=W(t,["$$slots","$$events","$$legacy","forceMount"]);const n=Bt.create(),i=d(()=>B(o,n.props));{const a=h=>{Ot(h,O(()=>r(i)))};let l=d(()=>e()||!n.isHidden);Et(s,O(()=>r(i),{get open(){return r(l)},get ref(){return n.scrollbar.opts.ref},presence:a,$$slots:{presence:!0}}))}A()}function tr(s,t){E(t,!0);let e=x(t,"forceMount",3,!1),o=W(t,["$$slots","$$events","$$legacy","forceMount"]);const n=Ft.create(),i=zt.create(),a=d(()=>B(o,n.props,i.props,{"data-state":n.isVisible?"visible":"hidden"})),l=d(()=>e()||n.isVisible&&i.isVisible);Et(s,{get open(){return r(l)},get ref(){return i.scrollbar.opts.ref},presence:f=>{Ot(f,O(()=>r(a)))},$$slots:{presence:!0}}),A()}function er(s,t){const e=pt();E(t,!0);let o=x(t,"ref",15,null),n=x(t,"id",19,()=>bt(e)),i=W(t,["$$slots","$$events","$$legacy","ref","id","orientation"]);const a=Yt.create({orientation:D(()=>t.orientation),id:D(()=>n()),ref:D(()=>o(),p=>o(p))}),l=d(()=>a.root.opts.type.current);var h=C(),f=y(h);{var u=p=>{tr(p,O(()=>i,{get id(){return n()}}))},m=p=>{var b=C(),V=y(b);{var P=M=>{$e(M,O(()=>i,{get id(){return n()}}))},T=M=>{var q=C(),Y=y(q);{var G=N=>{Ze(N,O(()=>i,{get id(){return n()}}))},X=N=>{var k=C(),j=y(k);{var et=_=>{Ot(_,O(()=>i,{get id(){return n()}}))};H(j,_=>{r(l)==="always"&&_(et)},!0)}v(N,k)};H(Y,N=>{r(l)==="auto"?N(G):N(X,!1)},!0)}v(M,q)};H(V,M=>{r(l)==="scroll"?M(P):M(T,!1)},!0)}v(p,b)};H(f,p=>{r(l)==="hover"?p(u):p(m,!1)})}v(s,h),A()}var rr=L("<div><!></div>");function or(s,t){E(t,!0);let e=x(t,"ref",15,null),o=W(t,["$$slots","$$events","$$legacy","ref","id","child","children","present"]);const n=new kt,i=Qt.create({id:D(()=>t.id),ref:D(()=>e(),m=>e(m)),mounted:D(()=>n.current)}),a=d(()=>B(o,i.props,{style:{hidden:!t.present}}));var l=C(),h=y(l);{var f=m=>{var p=C(),b=y(p);F(b,()=>t.child,()=>({props:r(a)})),v(m,p)},u=m=>{var p=rr();it(p,()=>({...r(a)}));var b=S(p);F(b,()=>t.children??$),w(p),v(m,p)};H(h,m=>{t.child?m(f):m(u,!1)})}v(s,l),A()}function sr(s,t){const e=pt();E(t,!0);let o=x(t,"id",19,()=>bt(e)),n=x(t,"ref",15,null),i=x(t,"forceMount",3,!1),a=W(t,["$$slots","$$events","$$legacy","id","ref","forceMount"]);const l=At.get();{const h=(u,m)=>{let p=()=>m?.().present;or(u,O(()=>a,{get id(){return o()},get present(){return p()},get ref(){return n()},set ref(b){n(b)}}))};let f=d(()=>i()||l.hasThumb);Et(s,{get open(){return r(f)},get ref(){return l.scrollbar.opts.ref},presence:h,$$slots:{presence:!0}})}A()}var nr=L("<div><!></div>");function ir(s,t){E(t,!0);let e=x(t,"ref",15,null),o=W(t,["$$slots","$$events","$$legacy","ref","id","children","child"]);const n=Jt.create({id:D(()=>t.id),ref:D(()=>e(),u=>e(u))}),i=d(()=>B(o,n.props));var a=C(),l=y(a);{var h=u=>{var m=C(),p=y(m);F(p,()=>t.child,()=>({props:r(i)})),v(u,m)},f=u=>{var m=nr();it(m,()=>({...r(i)}));var p=S(m);F(p,()=>t.children??$),w(m),v(u,m)};H(l,u=>{t.child?u(h):u(f,!1)})}v(s,a),A()}function ar(s,t){const e=pt();E(t,!0);let o=x(t,"ref",15,null),n=x(t,"id",19,()=>bt(e)),i=W(t,["$$slots","$$events","$$legacy","ref","id"]);const a=gt.get(),l=d(()=>!!(a.scrollbarXNode&&a.scrollbarYNode)),h=d(()=>a.opts.type.current!=="scroll"&&r(l));var f=C(),u=y(f);{var m=p=>{ir(p,O(()=>i,{get id(){return n()},get ref(){return o()},set ref(b){o(b)}}))};H(u,p=>{r(h)&&p(m)})}v(s,f),A()}function Wr(s,t){const e=ee(t,["children","$$slots","$$events","$$legacy"]);const o=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}],["path",{d:"M12 11h4"}],["path",{d:"M12 16h4"}],["path",{d:"M8 11h.01"}],["path",{d:"M8 16h.01"}]];re(s,O({name:"clipboard-list"},()=>e,{get iconNode(){return o},children:(n,i)=>{var a=C(),l=y(a);oe(l,t,"default",{},null),v(n,a)},$$slots:{default:!0}}))}function lr(s,t){const e=ee(t,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"m16 18 6-6-6-6"}],["path",{d:"m8 6-6 6 6 6"}]];re(s,O({name:"code"},()=>e,{get iconNode(){return o},children:(n,i)=>{var a=C(),l=y(a);oe(l,t,"default",{},null),v(n,a)},$$slots:{default:!0}}))}var cr=L("<!> <!>",1);function te(s,t){E(t,!0);let e=x(t,"ref",15,null),o=x(t,"orientation",3,"vertical"),n=W(t,["$$slots","$$events","$$legacy","ref","class","orientation","children"]);var i=C(),a=y(i);{let l=d(()=>Pt("flex touch-none p-px transition-colors select-none",o()==="vertical"&&"h-full w-2.5 border-s border-s-transparent",o()==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",t.class));Z(a,()=>er,(h,f)=>{f(h,O({"data-slot":"scroll-area-scrollbar",get orientation(){return o()},get class(){return r(l)}},()=>n,{get ref(){return e()},set ref(u){e(u)},children:(u,m)=>{var p=cr(),b=y(p);F(b,()=>t.children??$);var V=R(b,2);Z(V,()=>sr,(P,T)=>{T(P,{"data-slot":"scroll-area-thumb",class:"bg-border relative flex-1 rounded-full"})}),v(u,p)},$$slots:{default:!0}}))})}v(s,i),A()}var hr=L("<!> <!> <!> <!>",1);function dr(s,t){E(t,!0);let e=x(t,"ref",15,null),o=x(t,"viewportRef",15,null),n=x(t,"orientation",3,"vertical"),i=x(t,"scrollbarXClasses",3,""),a=x(t,"scrollbarYClasses",3,""),l=W(t,["$$slots","$$events","$$legacy","ref","viewportRef","class","orientation","scrollbarXClasses","scrollbarYClasses","children"]);var h=C(),f=y(h);{let u=d(()=>Pt("relative",t.class));Z(f,()=>je,(m,p)=>{p(m,O({"data-slot":"scroll-area",get class(){return r(u)}},()=>l,{get ref(){return e()},set ref(b){e(b)},children:(b,V)=>{var P=hr(),T=y(P);Z(T,()=>Ge,(N,k)=>{k(N,{"data-slot":"scroll-area-viewport",class:"ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1",get ref(){return o()},set ref(j){o(j)},children:(j,et)=>{var _=C(),z=y(_);F(z,()=>t.children??$),v(j,_)},$$slots:{default:!0}})});var M=R(T,2);{var q=N=>{te(N,{orientation:"vertical",get class(){return a()}})};H(M,N=>{(n()==="vertical"||n()==="both")&&N(q)})}var Y=R(M,2);{var G=N=>{te(N,{orientation:"horizontal",get class(){return i()}})};H(Y,N=>{(n()==="horizontal"||n()==="both")&&N(G)})}var X=R(Y,2);Z(X,()=>ar,(N,k)=>{k(N,{})}),v(b,P)},$$slots:{default:!0}}))})}v(s,h),A()}var ur=L('<div class="flex-shrink-0 truncate border-r border-border px-3 py-1.5 font-mono text-xs"> </div>'),mr=L('<div class="flex items-start gap-2"><span class="font-mono text-xs break-all select-text"> </span> <button class="shrink-0 p-1 rounded hover:bg-muted"><!></button></div>'),pr=L("<!> <!>",1),fr=L('<div><!> <div class="relative flex min-w-[200px] flex-1 items-center self-stretch"><div class="relative h-4 w-full"><div role="presentation"></div></div></div> <div class="w-[100px] flex-shrink-0 border-l border-border px-3 py-1.5 text-right font-mono text-xs text-muted-foreground"> </div></div>');function br(s,t){E(t,!0);const e=d(()=>yt(t.span.startTime)-t.traceStart),o=d(()=>t.span.duration/1e6),n=d(()=>t.traceDuration/1e6),i=d(()=>Math.max(0,r(e)/r(n)*100)),a=d(()=>Math.min(100-r(i),r(o)/r(n)*100)),l=[{bg:"bg-blue-400",ring:"ring-blue-500"},{bg:"bg-green-400",ring:"ring-green-500"},{bg:"bg-purple-400",ring:"ring-purple-500"},{bg:"bg-orange-400",ring:"ring-orange-500"},{bg:"bg-red-400",ring:"ring-red-500"},{bg:"bg-amber-400",ring:"ring-amber-500"},{bg:"bg-cyan-400",ring:"ring-cyan-500"},{bg:"bg-pink-400",ring:"ring-pink-500"},{bg:"bg-indigo-400",ring:"ring-indigo-500"},{bg:"bg-teal-400",ring:"ring-teal-500"},{bg:"bg-lime-400",ring:"ring-lime-500"},{bg:"bg-rose-400",ring:"ring-rose-500"},{bg:"bg-sky-400",ring:"ring-sky-500"},{bg:"bg-slate-400",ring:"ring-slate-500"}],h=d(()=>l[t.row%l.length]);let f=g(!1),u;function m(_){c(f,!0)}function p(){c(f,!1)}let b;function V(_){const z=b.getBoundingClientRect(),U=_.clientX-z.left;t.spanCellHandleMouseEnter(U)}function P(_){const z=b.getBoundingClientRect(),U=_.clientX-z.left;t.spanCellHandleMouseMove(U)}let T,M=g(!1);async function q(){await navigator.clipboard.writeText(t.span.name),c(M,!0),setTimeout(()=>c(M,!1),2e3)}I(()=>{if(T){const _=T.scrollWidth;t.updateNameWidth?.(_)}});var Y=fr(),G=S(Y);Z(G,()=>Me,(_,z)=>{z(_,{children:(U,Q)=>{var rt=pr(),lt=y(rt);Z(lt,()=>Ee,(ct,ht)=>{ht(ct,{class:"text-left cursor-pointer",children:(Rt,de)=>{var K=ur(),dt=S(K,!0);w(K),_t(K,Ht=>T=Ht,()=>T),st(()=>{ut(K,`min-width: ${t.nameColumnWidth??""}px; max-width: ${t.nameColumnWidth??""}px`),nt(dt,t.span.name)}),v(Rt,K)},$$slots:{default:!0}})});var wt=R(lt,2);Z(wt,()=>Ae,(ct,ht)=>{ht(ct,{class:"w-auto max-w-sm",align:"start",children:(Rt,de)=>{var K=mr(),dt=S(K),Ht=S(dt,!0);w(dt);var Wt=R(dt,2);Wt.__click=q;var ue=S(Wt);{var me=ot=>{ze(ot,{class:"h-3.5 w-3.5 text-green-500"})},pe=ot=>{De(ot,{class:"h-3.5 w-3.5 text-muted-foreground"})};H(ue,ot=>{r(M)?ot(me):ot(pe,!1)})}w(Wt),w(K),st(()=>nt(Ht,t.span.name)),v(Rt,K)},$$slots:{default:!0}})}),v(U,rt)},$$slots:{default:!0}})});var X=R(G,2);X.__mousemove=P;var N=S(X),k=S(N);_t(k,_=>u=_,()=>u),w(N),w(X),_t(X,_=>b=_,()=>b);var j=R(X,2),et=S(j,!0);w(j),w(Y),st((_,z,U,Q)=>{Vt(Y,1,_),Vt(k,1,z),ut(k,`left: ${r(i)??""}%; width: ${U??""}%; min-width: 2px`),nt(et,Q)},[()=>Zt(Pt("flex items-center border-b border-border last:border-b-0",t.isOdd?"bg-muted/40":"")),()=>Zt(Pt("absolute h-full rounded-[2px] transition-all",r(h).bg,r(f)&&`ring-2 ${r(h).ring}`)),()=>Math.max(r(a),.3),()=>Ce(t.span.duration)]),xt("mouseenter",X,V),xt("mouseleave",X,function(..._){t.spanCellHandleMouseLeave?.apply(this,_)}),xt("mouseenter",k,m),xt("mouseleave",k,p),v(s,Y),A()}ve(["click","mousemove"]);var vr=L('<div class="pointer-events-none absolute top-[28px] bottom-0 border-l border-gray-300"></div> <div class="absolute top-[1px] -translate-x-1/2"><div class="rounded-md border bg-popover px-2 py-1 text-xs whitespace-nowrap text-popover-foreground shadow-md"><div class="font-medium"> </div></div></div>',1),gr=L('<div class="relative overflow-hidden"><div class="flex border-b border-border bg-muted/30"><div class="flex-shrink-0 border-r border-border px-3 py-1.5 text-xs font-medium">Span Name</div> <div class="min-w-[200px] flex-1 px-3 py-1.5"><div class="flex justify-between text-xs text-muted-foreground"><span>0ms</span> <span> </span> <span> </span></div></div> <div class="w-[100px] flex-shrink-0 border-l border-border px-3 py-1.5 text-right text-xs font-medium">Duration</div></div> <!> <!></div>');function Vr(s,t){E(t,!0);const e=d(()=>[...t.spans].sort((b,V)=>new Date(b.startTime).getTime()-new Date(V.startTime).getTime())),o=d(()=>r(e).length===0?yt(t.traceStartTime):r(e).reduce((b,V)=>{const P=yt(V.startTime);return P<b?P:b},yt(r(e)[0].startTime))),n=d(()=>t.traceDuration/1e6);let i=g(180);function a(b){b>400&&(b=400),b>r(i)&&c(i,b,!0)}let l=g(!1),h=g(0);function f(b){c(l,!0),c(h,b,!0)}function u(b){r(l)&&c(h,b,!0)}function m(){c(l,!1)}let p;dr(s,{orientation:"horizontal",class:"p-relative rounded-lg border border-border",children:(b,V)=>{var P=gr(),T=S(P),M=S(T),q=R(M,2),Y=S(q),G=R(S(Y),2),X=S(G);w(G);var N=R(G,2),k=S(N);w(N),w(Y),w(q),_t(q,z=>p=z,()=>p),ge(2),w(T);var j=R(T,2);Se(j,17,()=>r(e),we,(z,U,Q)=>{br(z,{row:Q,get span(){return r(U)},get traceStart(){return r(o)},get traceDuration(){return t.traceDuration},isOdd:Q%2===1,get nameColumnWidth(){return r(i)},updateNameWidth:a,spanCellHandleMouseEnter:f,spanCellHandleMouseMove:u,spanCellHandleMouseLeave:m})});var et=R(j,2);{var _=z=>{var U=vr(),Q=y(U),rt=R(Q,2),lt=S(rt),wt=S(lt),ct=S(wt);w(wt),w(lt),w(rt),st(ht=>{ut(Q,`left: ${r(h)+r(i)}px`),ut(rt,`left: ${r(h)+r(i)}px`),nt(ct,`${ht??""}ms`)},[()=>Math.round(r(n)*((r(h)+1)/(p?.clientWidth||1)))]),v(z,U)};H(et,z=>{r(l)&&z(_)})}w(P),st((z,U)=>{ut(M,`min-width: ${r(i)??""}px`),nt(X,`${z??""}ms`),nt(k,`${U??""}ms`)},[()=>(r(n)/2).toFixed(0),()=>r(n).toFixed(0)]),v(b,P)},$$slots:{default:!0}}),A()}var Sr=L('<div class="mb-4 w-full max-w-xl text-left"><p class="mb-2 text-xs text-muted-foreground">Example usage:</p> <div><!></div></div>'),wr=L(`<div class="flex flex-col items-center justify-center py-8 text-center"><div class="mb-4 rounded-full bg-muted p-3"><!></div> <h3 class="mb-2 text-lg font-semibold">No Spans Recorded</h3> <p class="mb-4 max-w-md text-sm text-muted-foreground">Spans allow you to track the timing of individual operations within a transaction, such as
+import{i as H,p as x,r as W,s as O,l as ee,b as _t}from"./DMODTt3n.js";import{I as re,s as oe}from"./CQWqWi6p.js";import{g as r,h as g,i as c,u as d,F as I,C as mt,v as fe,b9 as J,p as E,d as C,c as y,b as v,a as A,m as F,o as $,aG as be,K as pt,f as L,e as S,r as w,s as R,q as ve,k as st,l as nt,j as xt,n as ge}from"./B2WdN-7r.js";import{e as Se,i as we}from"./CMyj8Fzw.js";import{b as it,d as Pt,e as ut,c as Zt,a as Vt}from"./DH0tcjsQ.js";import{c as Z}from"./BAcG0-U_.js";import{am as xe,w as Ct,C as ft,q as _e,u as ye,an as Pe}from"./CjLH05gQ.js";import{s as Lt,l as se,b as D,a as tt,d as Ne,m as B,c as bt}from"./BDd6-VcB.js";import{P as Te}from"./DQwRaN-E.js";import{b as Ce,j as yt}from"./Dq-0lVru.js";import{b as Me,P as Ee,a as Ae}from"./Bzt1ocTi.js";import{C as ze}from"./BISlaXSK.js";import{C as De}from"./lk4DWutj.js";import{H as Oe,g as Re}from"./D9j1Uorr.js";import{t as He}from"./BnbBSyGl.js";function We(s,t){if(xe(s)){const o=s();return o===void 0?t:o}return s===void 0?t:s}function Mt(s,t){let e=g(null);const o=d(()=>We(t,250));function n(...i){if(r(e))r(e).timeout&&clearTimeout(r(e).timeout);else{let a,l;const h=new Promise((f,u)=>{a=f,l=u});c(e,{timeout:null,runner:null,promise:h,resolve:a,reject:l},!0)}return r(e).runner=async()=>{if(!r(e))return;const a=r(e);c(e,null);try{a.resolve(await s.apply(this,i))}catch(l){a.reject(l)}},r(e).timeout=setTimeout(r(e).runner,r(o)),r(e).promise}return n.cancel=async()=>{(!r(e)||r(e).timeout===null)&&(await new Promise(i=>setTimeout(i,0)),!r(e)||r(e).timeout===null)||(clearTimeout(r(e).timeout),r(e).reject("Cancelled"),c(e,null))},n.runScheduledNow=async()=>{(!r(e)||!r(e).timeout)&&(await new Promise(i=>setTimeout(i,0)),!r(e)||!r(e).timeout)||(clearTimeout(r(e).timeout),r(e).timeout=null,await r(e).runner?.())},Object.defineProperty(n,"pending",{enumerable:!0,get(){return!!r(e)?.timeout}}),n}class kt{#t=g(!1);constructor(){I(()=>(mt(()=>c(this.#t,!0)),()=>{c(this.#t,!1)}))}get current(){return r(this.#t)}}class at{#t;#e;constructor(t,e){this.#t=t,this.#e=e,this.handler=this.handler.bind(this),I(this.handler)}handler(){let t=0;const e=this.#t();if(!e)return;const o=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(this.#e)});return o.observe(e),()=>{window.cancelAnimationFrame(t),o.unobserve(e)}}}class ne{state;#t;constructor(t,e){this.state=Lt(t),this.#t=e,this.dispatch=this.dispatch.bind(this)}#e(t){return this.#t[this.state.current][t]??this.state.current}dispatch(t){this.state.current=this.#e(t)}}const Ve={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}};class Le{opts;#t=g("none");get prevAnimationNameState(){return r(this.#t)}set prevAnimationNameState(t){c(this.#t,t,!0)}#e=g(fe({}));get styles(){return r(this.#e)}set styles(t){c(this.#e,t,!0)}initialStatus;previousPresent;machine;present;constructor(t){this.opts=t,this.present=this.opts.open,this.initialStatus=t.open.current?"mounted":"unmounted",this.previousPresent=new Te(()=>this.present.current),this.machine=new ne(this.initialStatus,Ve),this.handleAnimationEnd=this.handleAnimationEnd.bind(this),this.handleAnimationStart=this.handleAnimationStart.bind(this),ke(this),Ue(this),Ie(this)}handleAnimationEnd(t){if(!this.opts.ref.current)return;const e=Nt(this.opts.ref.current),o=e.includes(t.animationName)||e==="none";t.target===this.opts.ref.current&&o&&this.machine.dispatch("ANIMATION_END")}handleAnimationStart(t){this.opts.ref.current&&t.target===this.opts.ref.current&&(this.prevAnimationNameState=Nt(this.opts.ref.current))}#r=d(()=>["mounted","unmountSuspended"].includes(this.machine.state.current));get isPresent(){return r(this.#r)}set isPresent(t){c(this.#r,t)}}function ke(s){Ct(()=>s.present.current,()=>{if(!s.opts.ref.current||!(s.present.current!==s.previousPresent.current))return;const e=s.prevAnimationNameState,o=Nt(s.opts.ref.current);if(s.present.current)s.machine.dispatch("MOUNT");else if(o==="none"||s.styles.display==="none")s.machine.dispatch("UNMOUNT");else{const n=e!==o;s.previousPresent.current&&n?s.machine.dispatch("ANIMATION_OUT"):s.machine.dispatch("UNMOUNT")}})}function Ue(s){Ct(()=>s.machine.state.current,()=>{if(!s.opts.ref.current)return;const t=Nt(s.opts.ref.current);s.prevAnimationNameState=s.machine.state.current==="mounted"?t:"none"})}function Ie(s){Ct(()=>s.opts.ref.current,()=>{if(s.opts.ref.current)return s.styles=getComputedStyle(s.opts.ref.current),se(J(s.opts.ref.current,"animationstart",s.handleAnimationStart),J(s.opts.ref.current,"animationcancel",s.handleAnimationEnd),J(s.opts.ref.current,"animationend",s.handleAnimationEnd))})}function Nt(s){return s&&getComputedStyle(s).animationName||"none"}function Et(s,t){E(t,!0);const e=new Le({open:D(()=>t.open),ref:t.ref});var o=C(),n=y(o);{var i=a=>{var l=C(),h=y(l);F(h,()=>t.presence??$,()=>({present:e.isPresent})),v(a,l)};H(n,a=>{(t.forceMount||t.open||e.isPresent)&&a(i)})}v(s,o),A()}function Xe(s,t,e){return Math.min(e,Math.max(t,s))}const vt=Ne({component:"scroll-area",parts:["root","viewport","corner","thumb","scrollbar"]}),gt=new ft("ScrollArea.Root"),St=new ft("ScrollArea.Scrollbar"),At=new ft("ScrollArea.ScrollbarVisible"),Ut=new ft("ScrollArea.ScrollbarAxis"),ie=new ft("ScrollArea.ScrollbarShared");class It{static create(t){return gt.set(new It(t))}opts;attachment;#t=g(null);get scrollAreaNode(){return r(this.#t)}set scrollAreaNode(t){c(this.#t,t,!0)}#e=g(null);get viewportNode(){return r(this.#e)}set viewportNode(t){c(this.#e,t,!0)}#r=g(null);get contentNode(){return r(this.#r)}set contentNode(t){c(this.#r,t,!0)}#o=g(null);get scrollbarXNode(){return r(this.#o)}set scrollbarXNode(t){c(this.#o,t,!0)}#s=g(null);get scrollbarYNode(){return r(this.#s)}set scrollbarYNode(t){c(this.#s,t,!0)}#n=g(0);get cornerWidth(){return r(this.#n)}set cornerWidth(t){c(this.#n,t,!0)}#i=g(0);get cornerHeight(){return r(this.#i)}set cornerHeight(t){c(this.#i,t,!0)}#a=g(!1);get scrollbarXEnabled(){return r(this.#a)}set scrollbarXEnabled(t){c(this.#a,t,!0)}#l=g(!1);get scrollbarYEnabled(){return r(this.#l)}set scrollbarYEnabled(t){c(this.#l,t,!0)}domContext;constructor(t){this.opts=t,this.attachment=tt(t.ref,e=>this.scrollAreaNode=e),this.domContext=new _e(t.ref)}#c=d(()=>({id:this.opts.id.current,dir:this.opts.dir.current,style:{position:"relative","--bits-scroll-area-corner-height":`${this.cornerHeight}px`,"--bits-scroll-area-corner-width":`${this.cornerWidth}px`},[vt.root]:"",...this.attachment}));get props(){return r(this.#c)}set props(t){c(this.#c,t)}}class Xt{static create(t){return new Xt(t,gt.get())}opts;root;attachment;#t=Lt(ye());#e=Lt(null);contentAttachment=tt(this.#e,t=>this.root.contentNode=t);constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(t.ref,o=>this.root.viewportNode=o)}#r=d(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?"scroll":"hidden",overflowY:this.root.scrollbarYEnabled?"scroll":"hidden"},[vt.viewport]:"",...this.attachment}));get props(){return r(this.#r)}set props(t){c(this.#r,t)}#o=d(()=>({id:this.#t.current,"data-scroll-area-content":"",style:{minWidth:this.root.scrollbarXEnabled?"fit-content":void 0},...this.contentAttachment}));get contentProps(){return r(this.#o)}set contentProps(t){c(this.#o,t)}}class Yt{static create(t){return St.set(new Yt(t,gt.get()))}opts;root;#t=d(()=>this.opts.orientation.current==="horizontal");get isHorizontal(){return r(this.#t)}set isHorizontal(t){c(this.#t,t)}#e=g(!1);get hasThumb(){return r(this.#e)}set hasThumb(t){c(this.#e,t,!0)}constructor(t,e){this.opts=t,this.root=e,Ct(()=>this.isHorizontal,o=>o?(this.root.scrollbarXEnabled=!0,()=>{this.root.scrollbarXEnabled=!1}):(this.root.scrollbarYEnabled=!0,()=>{this.root.scrollbarYEnabled=!1}))}}class Ft{static create(){return new Ft(St.get())}scrollbar;root;#t=g(!1);get isVisible(){return r(this.#t)}set isVisible(t){c(this.#t,t,!0)}constructor(t){this.scrollbar=t,this.root=t.root,I(()=>{const e=this.root.scrollAreaNode,o=this.root.opts.scrollHideDelay.current;let n=0;if(!e)return;const i=()=>{this.root.domContext.clearTimeout(n),mt(()=>this.isVisible=!0)},a=()=>{n&&this.root.domContext.clearTimeout(n),n=this.root.domContext.setTimeout(()=>{mt(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},o)},l=se(J(e,"pointerenter",i),J(e,"pointerleave",a));return()=>{this.root.domContext.getWindow().clearTimeout(n),l()}})}#e=d(()=>({"data-state":this.isVisible?"visible":"hidden"}));get props(){return r(this.#e)}set props(t){c(this.#e,t)}}class Bt{static create(){return new Bt(St.get())}scrollbar;root;machine=new ne("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});#t=d(()=>this.machine.state.current==="hidden");get isHidden(){return r(this.#t)}set isHidden(t){c(this.#t,t)}constructor(t){this.scrollbar=t,this.root=t.root;const e=Mt(()=>this.machine.dispatch("SCROLL_END"),100);I(()=>{const o=this.machine.state.current,n=this.root.opts.scrollHideDelay.current;if(o==="idle"){const i=this.root.domContext.setTimeout(()=>this.machine.dispatch("HIDE"),n);return()=>this.root.domContext.clearTimeout(i)}}),I(()=>{const o=this.root.viewportNode;if(!o)return;const n=this.scrollbar.isHorizontal?"scrollLeft":"scrollTop";let i=o[n];return J(o,"scroll",()=>{const h=o[n];i!==h&&(this.machine.dispatch("SCROLL"),e()),i=h})}),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}onpointerenter(t){this.machine.dispatch("POINTER_ENTER")}onpointerleave(t){this.machine.dispatch("POINTER_LEAVE")}#e=d(()=>({"data-state":this.machine.state.current==="hidden"?"hidden":"visible",onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave}));get props(){return r(this.#e)}set props(t){c(this.#e,t)}}class zt{static create(){return new zt(St.get())}scrollbar;root;#t=g(!1);get isVisible(){return r(this.#t)}set isVisible(t){c(this.#t,t,!0)}constructor(t){this.scrollbar=t,this.root=t.root;const e=Mt(()=>{const o=this.root.viewportNode;if(!o)return;const n=o.offsetWidth<o.scrollWidth,i=o.offsetHeight<o.scrollHeight;this.isVisible=this.scrollbar.isHorizontal?n:i},10);new at(()=>this.root.viewportNode,e),new at(()=>this.root.contentNode,e)}#e=d(()=>({"data-state":this.isVisible?"visible":"hidden"}));get props(){return r(this.#e)}set props(t){c(this.#e,t)}}class jt{static create(){return At.set(new jt(St.get()))}scrollbar;root;#t=g(null);get thumbNode(){return r(this.#t)}set thumbNode(t){c(this.#t,t,!0)}#e=g(0);get pointerOffset(){return r(this.#e)}set pointerOffset(t){c(this.#e,t,!0)}#r=g({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}});get sizes(){return r(this.#r)}set sizes(t){c(this.#r,t)}#o=d(()=>ae(this.sizes.viewport,this.sizes.content));get thumbRatio(){return r(this.#o)}set thumbRatio(t){c(this.#o,t)}#s=d(()=>this.thumbRatio>0&&this.thumbRatio<1);get hasThumb(){return r(this.#s)}set hasThumb(t){c(this.#s,t)}#n=g("");get prevTransformStyle(){return r(this.#n)}set prevTransformStyle(t){c(this.#n,t,!0)}constructor(t){this.scrollbar=t,this.root=t.root,I(()=>{this.scrollbar.hasThumb=this.hasThumb}),I(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}setSizes(t){this.sizes=t}getScrollPosition(t,e){return Ye({pointerPos:t,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:e})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(t){this.pointerOffset=t}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollLeft,o=`translate3d(${$t({scrollPos:t,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=o,this.prevTransformStyle=o}xOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=t)}xOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(t,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollTop,o=`translate3d(0, ${$t({scrollPos:t,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=o,this.prevTransformStyle=o}yOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=t)}yOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(t,this.root.opts.dir.current))}}class qt{static create(t){return Ut.set(new qt(t,At.get()))}opts;scrollbarVis;root;scrollbar;attachment;#t=g();get computedStyle(){return r(this.#t)}set computedStyle(t){c(this.#t,t,!0)}constructor(t,e){this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=tt(this.scrollbar.opts.ref,o=>this.root.scrollbarXNode=o),I(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),I(()=>{this.onResize()})}onThumbPointerDown=t=>{this.scrollbarVis.onThumbPointerDown(t.x)};onDragScroll=t=>{this.scrollbarVis.xOnDragScroll(t.x)};onThumbPointerUp=()=>{this.scrollbarVis.onThumbPointerUp()};onThumbPositionChange=()=>{this.scrollbarVis.xOnThumbPositionChange()};onWheelScroll=(t,e)=>{if(!this.root.viewportNode)return;const o=this.root.viewportNode.scrollLeft+t.deltaX;this.scrollbarVis.xOnWheelScroll(o),ce(o,e)&&t.preventDefault()};onResize=()=>{this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollWidth,viewport:this.root.viewportNode.offsetWidth,scrollbar:{size:this.scrollbar.opts.ref.current.clientWidth,paddingStart:Tt(this.computedStyle.paddingLeft),paddingEnd:Tt(this.computedStyle.paddingRight)}})};#e=d(()=>Dt(this.scrollbarVis.sizes));get thumbSize(){return r(this.#e)}set thumbSize(t){c(this.#e,t)}#r=d(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"horizontal",style:{bottom:0,left:this.root.opts.dir.current==="rtl"?"var(--bits-scroll-area-corner-width)":0,right:this.root.opts.dir.current==="ltr"?"var(--bits-scroll-area-corner-width)":0,"--bits-scroll-area-thumb-width":`${this.thumbSize}px`},...this.attachment}));get props(){return r(this.#r)}set props(t){c(this.#r,t)}}class Gt{static create(t){return Ut.set(new Gt(t,At.get()))}opts;scrollbarVis;root;scrollbar;attachment;#t=g();get computedStyle(){return r(this.#t)}set computedStyle(t){c(this.#t,t,!0)}constructor(t,e){this.opts=t,this.scrollbarVis=e,this.root=e.root,this.scrollbar=e.scrollbar,this.attachment=tt(this.scrollbar.opts.ref,o=>this.root.scrollbarYNode=o),I(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),I(()=>{this.onResize()}),this.onThumbPointerDown=this.onThumbPointerDown.bind(this),this.onDragScroll=this.onDragScroll.bind(this),this.onThumbPointerUp=this.onThumbPointerUp.bind(this),this.onThumbPositionChange=this.onThumbPositionChange.bind(this),this.onWheelScroll=this.onWheelScroll.bind(this),this.onResize=this.onResize.bind(this)}onThumbPointerDown(t){this.scrollbarVis.onThumbPointerDown(t.y)}onDragScroll(t){this.scrollbarVis.yOnDragScroll(t.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(t,e){if(!this.root.viewportNode)return;const o=this.root.viewportNode.scrollTop+t.deltaY;this.scrollbarVis.yOnWheelScroll(o),ce(o,e)&&t.preventDefault()}onResize(){this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollHeight,viewport:this.root.viewportNode.offsetHeight,scrollbar:{size:this.scrollbar.opts.ref.current.clientHeight,paddingStart:Tt(this.computedStyle.paddingTop),paddingEnd:Tt(this.computedStyle.paddingBottom)}})}#e=d(()=>Dt(this.scrollbarVis.sizes));get thumbSize(){return r(this.#e)}set thumbSize(t){c(this.#e,t)}#r=d(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"vertical",style:{top:0,right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:"var(--bits-scroll-area-corner-height)","--bits-scroll-area-thumb-height":`${this.thumbSize}px`},...this.attachment}));get props(){return r(this.#r)}set props(t){c(this.#r,t)}}class Kt{static create(){return ie.set(new Kt(Ut.get()))}scrollbarState;root;scrollbarVis;scrollbar;#t=g(null);get rect(){return r(this.#t)}set rect(t){c(this.#t,t)}#e=g("");get prevWebkitUserSelect(){return r(this.#e)}set prevWebkitUserSelect(t){c(this.#e,t,!0)}handleResize;handleThumbPositionChange;handleWheelScroll;handleThumbPointerDown;handleThumbPointerUp;#r=d(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport);get maxScrollPos(){return r(this.#r)}set maxScrollPos(t){c(this.#r,t)}constructor(t){this.scrollbarState=t,this.root=t.root,this.scrollbarVis=t.scrollbarVis,this.scrollbar=t.scrollbarVis.scrollbar,this.handleResize=Mt(()=>this.scrollbarState.onResize(),10),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,I(()=>{const e=this.maxScrollPos,o=this.scrollbar.opts.ref.current;this.root.viewportNode;const n=a=>{const l=a.target;o?.contains(l)&&this.handleWheelScroll(a,e)};return J(this.root.domContext.getDocument(),"wheel",n,{passive:!1})}),be(()=>{this.scrollbarVis.sizes,mt(()=>this.handleThumbPositionChange())}),new at(()=>this.scrollbar.opts.ref.current,this.handleResize),new at(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this)}handleDragScroll(t){if(!this.rect)return;const e=t.clientX-this.rect.left,o=t.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:e,y:o})}onpointerdown(t){if(t.button!==0)return;t.target.setPointerCapture(t.pointerId),this.rect=this.scrollbar.opts.ref.current?.getBoundingClientRect()??null,this.prevWebkitUserSelect=this.root.domContext.getDocument().body.style.webkitUserSelect,this.root.domContext.getDocument().body.style.webkitUserSelect="none",this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior="auto"),this.handleDragScroll(t)}onpointermove(t){this.handleDragScroll(t)}onpointerup(t){const e=t.target;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),this.root.domContext.getDocument().body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=""),this.rect=null}#o=d(()=>B({...this.scrollbarState.props,style:{position:"absolute",...this.scrollbarState.props.style},[vt.scrollbar]:"",onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup}));get props(){return r(this.#o)}set props(t){c(this.#o,t)}}class Qt{static create(t){return new Qt(t,ie.get())}opts;scrollbarState;attachment;#t;#e=g();#r=Mt(()=>{r(this.#e)&&(r(this.#e)(),c(this.#e,void 0))},100);constructor(t,e){this.opts=t,this.scrollbarState=e,this.#t=e.root,this.attachment=tt(this.opts.ref,o=>this.scrollbarState.scrollbarVis.thumbNode=o),I(()=>{const o=this.#t.viewportNode;if(!o)return;const n=()=>{if(this.#r(),!r(this.#e)){const a=Fe(o,this.scrollbarState.handleThumbPositionChange);c(this.#e,a,!0),this.scrollbarState.handleThumbPositionChange()}};return mt(()=>this.scrollbarState.handleThumbPositionChange()),J(o,"scroll",n)}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}onpointerdowncapture(t){const e=t.target;if(!e)return;const o=e.getBoundingClientRect(),n=t.clientX-o.left,i=t.clientY-o.top;this.scrollbarState.handleThumbPointerDown({x:n,y:i})}onpointerup(t){this.scrollbarState.handleThumbPointerUp()}#o=d(()=>({id:this.opts.id.current,"data-state":this.scrollbarState.scrollbarVis.hasThumb?"visible":"hidden",style:{width:"var(--bits-scroll-area-thumb-width)",height:"var(--bits-scroll-area-thumb-height)",transform:this.scrollbarState.scrollbarVis.prevTransformStyle},onpointerdowncapture:this.onpointerdowncapture,onpointerup:this.onpointerup,[vt.thumb]:"",...this.attachment}));get props(){return r(this.#o)}set props(t){c(this.#o,t)}}class Jt{static create(t){return new Jt(t,gt.get())}opts;root;attachment;#t=g(0);#e=g(0);#r=d(()=>!!(r(this.#t)&&r(this.#e)));get hasSize(){return r(this.#r)}set hasSize(t){c(this.#r,t)}constructor(t,e){this.opts=t,this.root=e,this.attachment=tt(this.opts.ref),new at(()=>this.root.scrollbarXNode,()=>{const o=this.root.scrollbarXNode?.offsetHeight||0;this.root.cornerHeight=o,c(this.#e,o,!0)}),new at(()=>this.root.scrollbarYNode,()=>{const o=this.root.scrollbarYNode?.offsetWidth||0;this.root.cornerWidth=o,c(this.#t,o,!0)})}#o=d(()=>({id:this.opts.id.current,style:{width:r(this.#t),height:r(this.#e),position:"absolute",right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:0},[vt.corner]:"",...this.attachment}));get props(){return r(this.#o)}set props(t){c(this.#o,t)}}function Tt(s){return s?Number.parseInt(s,10):0}function ae(s,t){const e=s/t;return Number.isNaN(e)?0:e}function Dt(s){const t=ae(s.viewport,s.content),e=s.scrollbar.paddingStart+s.scrollbar.paddingEnd,o=(s.scrollbar.size-e)*t;return Math.max(o,18)}function Ye({pointerPos:s,pointerOffset:t,sizes:e,dir:o="ltr"}){const n=Dt(e),i=n/2,a=t||i,l=n-a,h=e.scrollbar.paddingStart+a,f=e.scrollbar.size-e.scrollbar.paddingEnd-l,u=e.content-e.viewport,m=o==="ltr"?[0,u]:[u*-1,0];return le([h,f],m)(s)}function $t({scrollPos:s,sizes:t,dir:e="ltr"}){const o=Dt(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-n,a=t.content-t.viewport,l=i-o,h=e==="ltr"?[0,a]:[a*-1,0],f=Xe(s,h[0],h[1]);return le([0,a],[0,l])(f)}function le(s,t){return e=>{if(s[0]===s[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(s[1]-s[0]);return t[0]+o*(e-s[0])}}function ce(s,t){return s>0&&s<t}function Fe(s,t){let e={left:s.scrollLeft,top:s.scrollTop},o=0;const n=Pe(s);return(function i(){const a={left:s.scrollLeft,top:s.scrollTop},l=e.left!==a.left,h=e.top!==a.top;(l||h)&&t(),e=a,o=n.requestAnimationFrame(i)})(),()=>n.cancelAnimationFrame(o)}var Be=L("<div><!></div>");function je(s,t){const e=pt();E(t,!0);let o=x(t,"ref",15,null),n=x(t,"id",19,()=>bt(e)),i=x(t,"type",3,"hover"),a=x(t,"dir",3,"ltr"),l=x(t,"scrollHideDelay",3,600),h=W(t,["$$slots","$$events","$$legacy","ref","id","type","dir","scrollHideDelay","children","child"]);const f=It.create({type:D(()=>i()),dir:D(()=>a()),scrollHideDelay:D(()=>l()),id:D(()=>n()),ref:D(()=>o(),P=>o(P))}),u=d(()=>B(h,f.props));var m=C(),p=y(m);{var b=P=>{var T=C(),M=y(T);F(M,()=>t.child,()=>({props:r(u)})),v(P,T)},V=P=>{var T=Be();it(T,()=>({...r(u)}));var M=S(T);F(M,()=>t.children??$),w(T),v(P,T)};H(p,P=>{t.child?P(b):P(V,!1)})}v(s,m),A()}var qe=L("<div><div><!></div></div>");function Ge(s,t){const e=pt();E(t,!0);let o=x(t,"ref",15,null),n=x(t,"id",19,()=>bt(e)),i=W(t,["$$slots","$$events","$$legacy","ref","id","children"]);const a=Xt.create({id:D(()=>n()),ref:D(()=>o(),p=>o(p))}),l=d(()=>B(i,a.props)),h=d(()=>B({},a.contentProps));var f=qe();it(f,()=>({...r(l)}));var u=S(f);it(u,()=>({...r(h)}));var m=S(u);F(m,()=>t.children??$),w(u),w(f),v(s,f),A()}var Ke=L("<div><!></div>");function he(s,t){E(t,!0);let e=W(t,["$$slots","$$events","$$legacy","child","children"]);const o=Kt.create(),n=d(()=>B(e,o.props));var i=C(),a=y(i);{var l=f=>{var u=C(),m=y(u);F(m,()=>t.child,()=>({props:r(n)})),v(f,u)},h=f=>{var u=Ke();it(u,()=>({...r(n)}));var m=S(u);F(m,()=>t.children??$),w(u),v(f,u)};H(a,f=>{t.child?f(l):f(h,!1)})}v(s,i),A()}function Qe(s,t){E(t,!0);let e=W(t,["$$slots","$$events","$$legacy"]);const o=new kt,n=qt.create({mounted:D(()=>o.current)}),i=d(()=>B(e,n.props));he(s,O(()=>r(i))),A()}function Je(s,t){E(t,!0);let e=W(t,["$$slots","$$events","$$legacy"]);const o=new kt,n=Gt.create({mounted:D(()=>o.current)}),i=d(()=>B(e,n.props));he(s,O(()=>r(i))),A()}function Ot(s,t){E(t,!0);let e=W(t,["$$slots","$$events","$$legacy"]);const o=jt.create();var n=C(),i=y(n);{var a=h=>{Qe(h,O(()=>e))},l=h=>{Je(h,O(()=>e))};H(i,h=>{o.scrollbar.opts.orientation.current==="horizontal"?h(a):h(l,!1)})}v(s,n),A()}function Ze(s,t){E(t,!0);let e=x(t,"forceMount",3,!1),o=W(t,["$$slots","$$events","$$legacy","forceMount"]);const n=zt.create(),i=d(()=>B(o,n.props));{const a=h=>{Ot(h,O(()=>r(i)))};let l=d(()=>e()||n.isVisible);Et(s,{get open(){return r(l)},get ref(){return n.scrollbar.opts.ref},presence:a,$$slots:{presence:!0}})}A()}function $e(s,t){E(t,!0);let e=x(t,"forceMount",3,!1),o=W(t,["$$slots","$$events","$$legacy","forceMount"]);const n=Bt.create(),i=d(()=>B(o,n.props));{const a=h=>{Ot(h,O(()=>r(i)))};let l=d(()=>e()||!n.isHidden);Et(s,O(()=>r(i),{get open(){return r(l)},get ref(){return n.scrollbar.opts.ref},presence:a,$$slots:{presence:!0}}))}A()}function tr(s,t){E(t,!0);let e=x(t,"forceMount",3,!1),o=W(t,["$$slots","$$events","$$legacy","forceMount"]);const n=Ft.create(),i=zt.create(),a=d(()=>B(o,n.props,i.props,{"data-state":n.isVisible?"visible":"hidden"})),l=d(()=>e()||n.isVisible&&i.isVisible);Et(s,{get open(){return r(l)},get ref(){return i.scrollbar.opts.ref},presence:f=>{Ot(f,O(()=>r(a)))},$$slots:{presence:!0}}),A()}function er(s,t){const e=pt();E(t,!0);let o=x(t,"ref",15,null),n=x(t,"id",19,()=>bt(e)),i=W(t,["$$slots","$$events","$$legacy","ref","id","orientation"]);const a=Yt.create({orientation:D(()=>t.orientation),id:D(()=>n()),ref:D(()=>o(),p=>o(p))}),l=d(()=>a.root.opts.type.current);var h=C(),f=y(h);{var u=p=>{tr(p,O(()=>i,{get id(){return n()}}))},m=p=>{var b=C(),V=y(b);{var P=M=>{$e(M,O(()=>i,{get id(){return n()}}))},T=M=>{var q=C(),Y=y(q);{var G=N=>{Ze(N,O(()=>i,{get id(){return n()}}))},X=N=>{var k=C(),j=y(k);{var et=_=>{Ot(_,O(()=>i,{get id(){return n()}}))};H(j,_=>{r(l)==="always"&&_(et)},!0)}v(N,k)};H(Y,N=>{r(l)==="auto"?N(G):N(X,!1)},!0)}v(M,q)};H(V,M=>{r(l)==="scroll"?M(P):M(T,!1)},!0)}v(p,b)};H(f,p=>{r(l)==="hover"?p(u):p(m,!1)})}v(s,h),A()}var rr=L("<div><!></div>");function or(s,t){E(t,!0);let e=x(t,"ref",15,null),o=W(t,["$$slots","$$events","$$legacy","ref","id","child","children","present"]);const n=new kt,i=Qt.create({id:D(()=>t.id),ref:D(()=>e(),m=>e(m)),mounted:D(()=>n.current)}),a=d(()=>B(o,i.props,{style:{hidden:!t.present}}));var l=C(),h=y(l);{var f=m=>{var p=C(),b=y(p);F(b,()=>t.child,()=>({props:r(a)})),v(m,p)},u=m=>{var p=rr();it(p,()=>({...r(a)}));var b=S(p);F(b,()=>t.children??$),w(p),v(m,p)};H(h,m=>{t.child?m(f):m(u,!1)})}v(s,l),A()}function sr(s,t){const e=pt();E(t,!0);let o=x(t,"id",19,()=>bt(e)),n=x(t,"ref",15,null),i=x(t,"forceMount",3,!1),a=W(t,["$$slots","$$events","$$legacy","id","ref","forceMount"]);const l=At.get();{const h=(u,m)=>{let p=()=>m?.().present;or(u,O(()=>a,{get id(){return o()},get present(){return p()},get ref(){return n()},set ref(b){n(b)}}))};let f=d(()=>i()||l.hasThumb);Et(s,{get open(){return r(f)},get ref(){return l.scrollbar.opts.ref},presence:h,$$slots:{presence:!0}})}A()}var nr=L("<div><!></div>");function ir(s,t){E(t,!0);let e=x(t,"ref",15,null),o=W(t,["$$slots","$$events","$$legacy","ref","id","children","child"]);const n=Jt.create({id:D(()=>t.id),ref:D(()=>e(),u=>e(u))}),i=d(()=>B(o,n.props));var a=C(),l=y(a);{var h=u=>{var m=C(),p=y(m);F(p,()=>t.child,()=>({props:r(i)})),v(u,m)},f=u=>{var m=nr();it(m,()=>({...r(i)}));var p=S(m);F(p,()=>t.children??$),w(m),v(u,m)};H(l,u=>{t.child?u(h):u(f,!1)})}v(s,a),A()}function ar(s,t){const e=pt();E(t,!0);let o=x(t,"ref",15,null),n=x(t,"id",19,()=>bt(e)),i=W(t,["$$slots","$$events","$$legacy","ref","id"]);const a=gt.get(),l=d(()=>!!(a.scrollbarXNode&&a.scrollbarYNode)),h=d(()=>a.opts.type.current!=="scroll"&&r(l));var f=C(),u=y(f);{var m=p=>{ir(p,O(()=>i,{get id(){return n()},get ref(){return o()},set ref(b){o(b)}}))};H(u,p=>{r(h)&&p(m)})}v(s,f),A()}function Wr(s,t){const e=ee(t,["children","$$slots","$$events","$$legacy"]);const o=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}],["path",{d:"M12 11h4"}],["path",{d:"M12 16h4"}],["path",{d:"M8 11h.01"}],["path",{d:"M8 16h.01"}]];re(s,O({name:"clipboard-list"},()=>e,{get iconNode(){return o},children:(n,i)=>{var a=C(),l=y(a);oe(l,t,"default",{},null),v(n,a)},$$slots:{default:!0}}))}function lr(s,t){const e=ee(t,["children","$$slots","$$events","$$legacy"]);const o=[["path",{d:"m16 18 6-6-6-6"}],["path",{d:"m8 6-6 6 6 6"}]];re(s,O({name:"code"},()=>e,{get iconNode(){return o},children:(n,i)=>{var a=C(),l=y(a);oe(l,t,"default",{},null),v(n,a)},$$slots:{default:!0}}))}var cr=L("<!> <!>",1);function te(s,t){E(t,!0);let e=x(t,"ref",15,null),o=x(t,"orientation",3,"vertical"),n=W(t,["$$slots","$$events","$$legacy","ref","class","orientation","children"]);var i=C(),a=y(i);{let l=d(()=>Pt("flex touch-none p-px transition-colors select-none",o()==="vertical"&&"h-full w-2.5 border-s border-s-transparent",o()==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",t.class));Z(a,()=>er,(h,f)=>{f(h,O({"data-slot":"scroll-area-scrollbar",get orientation(){return o()},get class(){return r(l)}},()=>n,{get ref(){return e()},set ref(u){e(u)},children:(u,m)=>{var p=cr(),b=y(p);F(b,()=>t.children??$);var V=R(b,2);Z(V,()=>sr,(P,T)=>{T(P,{"data-slot":"scroll-area-thumb",class:"bg-border relative flex-1 rounded-full"})}),v(u,p)},$$slots:{default:!0}}))})}v(s,i),A()}var hr=L("<!> <!> <!> <!>",1);function dr(s,t){E(t,!0);let e=x(t,"ref",15,null),o=x(t,"viewportRef",15,null),n=x(t,"orientation",3,"vertical"),i=x(t,"scrollbarXClasses",3,""),a=x(t,"scrollbarYClasses",3,""),l=W(t,["$$slots","$$events","$$legacy","ref","viewportRef","class","orientation","scrollbarXClasses","scrollbarYClasses","children"]);var h=C(),f=y(h);{let u=d(()=>Pt("relative",t.class));Z(f,()=>je,(m,p)=>{p(m,O({"data-slot":"scroll-area",get class(){return r(u)}},()=>l,{get ref(){return e()},set ref(b){e(b)},children:(b,V)=>{var P=hr(),T=y(P);Z(T,()=>Ge,(N,k)=>{k(N,{"data-slot":"scroll-area-viewport",class:"ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1",get ref(){return o()},set ref(j){o(j)},children:(j,et)=>{var _=C(),z=y(_);F(z,()=>t.children??$),v(j,_)},$$slots:{default:!0}})});var M=R(T,2);{var q=N=>{te(N,{orientation:"vertical",get class(){return a()}})};H(M,N=>{(n()==="vertical"||n()==="both")&&N(q)})}var Y=R(M,2);{var G=N=>{te(N,{orientation:"horizontal",get class(){return i()}})};H(Y,N=>{(n()==="horizontal"||n()==="both")&&N(G)})}var X=R(Y,2);Z(X,()=>ar,(N,k)=>{k(N,{})}),v(b,P)},$$slots:{default:!0}}))})}v(s,h),A()}var ur=L('<div class="flex-shrink-0 truncate border-r border-border px-3 py-1.5 font-mono text-xs"> </div>'),mr=L('<div class="flex items-start gap-2"><span class="font-mono text-xs break-all select-text"> </span> <button class="shrink-0 p-1 rounded hover:bg-muted"><!></button></div>'),pr=L("<!> <!>",1),fr=L('<div><!> <div class="relative flex min-w-[200px] flex-1 items-center self-stretch"><div class="relative h-4 w-full"><div role="presentation"></div></div></div> <div class="w-[100px] flex-shrink-0 border-l border-border px-3 py-1.5 text-right font-mono text-xs text-muted-foreground"> </div></div>');function br(s,t){E(t,!0);const e=d(()=>yt(t.span.startTime)-t.traceStart),o=d(()=>t.span.duration/1e6),n=d(()=>t.traceDuration/1e6),i=d(()=>Math.max(0,r(e)/r(n)*100)),a=d(()=>Math.min(100-r(i),r(o)/r(n)*100)),l=[{bg:"bg-blue-400",ring:"ring-blue-500"},{bg:"bg-green-400",ring:"ring-green-500"},{bg:"bg-purple-400",ring:"ring-purple-500"},{bg:"bg-orange-400",ring:"ring-orange-500"},{bg:"bg-red-400",ring:"ring-red-500"},{bg:"bg-amber-400",ring:"ring-amber-500"},{bg:"bg-cyan-400",ring:"ring-cyan-500"},{bg:"bg-pink-400",ring:"ring-pink-500"},{bg:"bg-indigo-400",ring:"ring-indigo-500"},{bg:"bg-teal-400",ring:"ring-teal-500"},{bg:"bg-lime-400",ring:"ring-lime-500"},{bg:"bg-rose-400",ring:"ring-rose-500"},{bg:"bg-sky-400",ring:"ring-sky-500"},{bg:"bg-slate-400",ring:"ring-slate-500"}],h=d(()=>l[t.row%l.length]);let f=g(!1),u;function m(_){c(f,!0)}function p(){c(f,!1)}let b;function V(_){const z=b.getBoundingClientRect(),U=_.clientX-z.left;t.spanCellHandleMouseEnter(U)}function P(_){const z=b.getBoundingClientRect(),U=_.clientX-z.left;t.spanCellHandleMouseMove(U)}let T,M=g(!1);async function q(){await navigator.clipboard.writeText(t.span.name),c(M,!0),setTimeout(()=>c(M,!1),2e3)}I(()=>{if(T){const _=T.scrollWidth;t.updateNameWidth?.(_)}});var Y=fr(),G=S(Y);Z(G,()=>Me,(_,z)=>{z(_,{children:(U,Q)=>{var rt=pr(),lt=y(rt);Z(lt,()=>Ee,(ct,ht)=>{ht(ct,{class:"text-left cursor-pointer",children:(Rt,de)=>{var K=ur(),dt=S(K,!0);w(K),_t(K,Ht=>T=Ht,()=>T),st(()=>{ut(K,`min-width: ${t.nameColumnWidth??""}px; max-width: ${t.nameColumnWidth??""}px`),nt(dt,t.span.name)}),v(Rt,K)},$$slots:{default:!0}})});var wt=R(lt,2);Z(wt,()=>Ae,(ct,ht)=>{ht(ct,{class:"w-auto max-w-sm",align:"start",children:(Rt,de)=>{var K=mr(),dt=S(K),Ht=S(dt,!0);w(dt);var Wt=R(dt,2);Wt.__click=q;var ue=S(Wt);{var me=ot=>{ze(ot,{class:"h-3.5 w-3.5 text-green-500"})},pe=ot=>{De(ot,{class:"h-3.5 w-3.5 text-muted-foreground"})};H(ue,ot=>{r(M)?ot(me):ot(pe,!1)})}w(Wt),w(K),st(()=>nt(Ht,t.span.name)),v(Rt,K)},$$slots:{default:!0}})}),v(U,rt)},$$slots:{default:!0}})});var X=R(G,2);X.__mousemove=P;var N=S(X),k=S(N);_t(k,_=>u=_,()=>u),w(N),w(X),_t(X,_=>b=_,()=>b);var j=R(X,2),et=S(j,!0);w(j),w(Y),st((_,z,U,Q)=>{Vt(Y,1,_),Vt(k,1,z),ut(k,`left: ${r(i)??""}%; width: ${U??""}%; min-width: 2px`),nt(et,Q)},[()=>Zt(Pt("flex items-center border-b border-border last:border-b-0",t.isOdd?"bg-muted/40":"")),()=>Zt(Pt("absolute h-full rounded-[2px] transition-all",r(h).bg,r(f)&&`ring-2 ${r(h).ring}`)),()=>Math.max(r(a),.3),()=>Ce(t.span.duration)]),xt("mouseenter",X,V),xt("mouseleave",X,function(..._){t.spanCellHandleMouseLeave?.apply(this,_)}),xt("mouseenter",k,m),xt("mouseleave",k,p),v(s,Y),A()}ve(["click","mousemove"]);var vr=L('<div class="pointer-events-none absolute top-[28px] bottom-0 border-l border-gray-300"></div> <div class="absolute top-[1px] -translate-x-1/2"><div class="rounded-md border bg-popover px-2 py-1 text-xs whitespace-nowrap text-popover-foreground shadow-md"><div class="font-medium"> </div></div></div>',1),gr=L('<div class="relative overflow-hidden"><div class="flex border-b border-border bg-muted/30"><div class="flex-shrink-0 border-r border-border px-3 py-1.5 text-xs font-medium">Span Name</div> <div class="min-w-[200px] flex-1 px-3 py-1.5"><div class="flex justify-between text-xs text-muted-foreground"><span>0ms</span> <span> </span> <span> </span></div></div> <div class="w-[100px] flex-shrink-0 border-l border-border px-3 py-1.5 text-right text-xs font-medium">Duration</div></div> <!> <!></div>');function Vr(s,t){E(t,!0);const e=d(()=>[...t.spans].sort((b,V)=>new Date(b.startTime).getTime()-new Date(V.startTime).getTime())),o=d(()=>r(e).length===0?yt(t.traceStartTime):r(e).reduce((b,V)=>{const P=yt(V.startTime);return P<b?P:b},yt(r(e)[0].startTime))),n=d(()=>t.traceDuration/1e6);let i=g(180);function a(b){b>400&&(b=400),b>r(i)&&c(i,b,!0)}let l=g(!1),h=g(0);function f(b){c(l,!0),c(h,b,!0)}function u(b){r(l)&&c(h,b,!0)}function m(){c(l,!1)}let p;dr(s,{orientation:"horizontal",class:"p-relative rounded-lg border border-border",children:(b,V)=>{var P=gr(),T=S(P),M=S(T),q=R(M,2),Y=S(q),G=R(S(Y),2),X=S(G);w(G);var N=R(G,2),k=S(N);w(N),w(Y),w(q),_t(q,z=>p=z,()=>p),ge(2),w(T);var j=R(T,2);Se(j,17,()=>r(e),we,(z,U,Q)=>{br(z,{row:Q,get span(){return r(U)},get traceStart(){return r(o)},get traceDuration(){return t.traceDuration},isOdd:Q%2===1,get nameColumnWidth(){return r(i)},updateNameWidth:a,spanCellHandleMouseEnter:f,spanCellHandleMouseMove:u,spanCellHandleMouseLeave:m})});var et=R(j,2);{var _=z=>{var U=vr(),Q=y(U),rt=R(Q,2),lt=S(rt),wt=S(lt),ct=S(wt);w(wt),w(lt),w(rt),st(ht=>{ut(Q,`left: ${r(h)+r(i)}px`),ut(rt,`left: ${r(h)+r(i)}px`),nt(ct,`${ht??""}ms`)},[()=>Math.round(r(n)*((r(h)+1)/(p?.clientWidth||1)))]),v(z,U)};H(et,z=>{r(l)&&z(_)})}w(P),st((z,U)=>{ut(M,`min-width: ${r(i)??""}px`),nt(X,`${z??""}ms`),nt(k,`${U??""}ms`)},[()=>(r(n)/2).toFixed(0),()=>r(n).toFixed(0)]),v(b,P)},$$slots:{default:!0}}),A()}var Sr=L('<div class="mb-4 w-full max-w-xl text-left"><p class="mb-2 text-xs text-muted-foreground">Example usage:</p> <div><!></div></div>'),wr=L(`<div class="flex flex-col items-center justify-center py-8 text-center"><div class="mb-4 rounded-full bg-muted p-3"><!></div> <h3 class="mb-2 text-lg font-semibold">No Spans Recorded</h3> <p class="mb-4 max-w-md text-sm text-muted-foreground">Spans allow you to track the timing of individual operations within a transaction, such as
database queries, HTTP calls, or cache operations.</p> <!></div>`);function Lr(s,t){E(t,!0);function e(m){switch(m){case"gin":return`// In your Gin handler
func MyHandler(c *gin.Context) {
// Start a span for database operation
diff --git a/backend/static/frontend/_app/immutable/chunks/DNre5-OF.js.map b/backend/static/frontend/_app/immutable/chunks/DWCgVx1V.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/DNre5-OF.js.map
rename to backend/static/frontend/_app/immutable/chunks/DWCgVx1V.js.map
index b5f28f85..8c38a8c9 100644
--- a/backend/static/frontend/_app/immutable/chunks/DNre5-OF.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/DWCgVx1V.js.map
@@ -1 +1 @@
-{"version":3,"file":"DNre5-OF.js","sources":["../../../../../../node_modules/runed/dist/utilities/extract/extract.svelte.js","../../../../../../node_modules/runed/dist/utilities/use-debounce/use-debounce.svelte.js","../../../../../../node_modules/runed/dist/utilities/is-mounted/is-mounted.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/svelte-resize-observer.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/state-machine.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/presence-layer/presence.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/presence-layer/presence-layer.svelte","../../../../../../node_modules/bits-ui/dist/internal/clamp.js","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/scroll-area.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-viewport.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-shared.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-x.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-y.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-visible.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-auto.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-scroll.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-hover.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-thumb-impl.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-thumb.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-corner-impl.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-corner.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/clipboard-list.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/code.svelte","../../../../../../src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte","../../../../../../src/lib/components/ui/scroll-area/scroll-area.svelte","../../../../../../src/lib/components/spans/span-row.svelte","../../../../../../src/lib/components/spans/span-waterfall.svelte","../../../../../../src/lib/components/spans/span-empty-state.svelte"],"sourcesContent":["import { isFunction } from \"../../internal/utils/is.js\";\nexport function extract(value, defaultValue) {\n if (isFunction(value)) {\n const getter = value;\n const gotten = getter();\n if (gotten === undefined)\n return defaultValue;\n return gotten;\n }\n if (value === undefined)\n return defaultValue;\n return value;\n}\n","import { extract } from \"../extract/extract.svelte.js\";\n/**\n * Function that takes a callback, and returns a debounced version of it.\n * When calling the debounced function, it will wait for the specified time\n * before calling the original callback. If the debounced function is called\n * again before the time has passed, the timer will be reset.\n *\n * You can await the debounced function to get the value when it is eventually\n * called.\n *\n * The second parameter is the time to wait before calling the original callback.\n * Alternatively, it can also be a getter function that returns the time to wait.\n *\n * @see {@link https://runed.dev/docs/utilities/use-debounce}\n *\n * @param callback The callback to call when the time has passed.\n * @param wait The length of time to wait in ms, defaults to 250.\n */\nexport function useDebounce(callback, wait) {\n let context = $state(null);\n const wait$ = $derived(extract(wait, 250));\n function debounced(...args) {\n if (context) {\n // Old context will be reused so callers awaiting the promise will get the\n // new value\n if (context.timeout) {\n clearTimeout(context.timeout);\n }\n }\n else {\n // No old context, create a new one\n let resolve;\n let reject;\n const promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n context = {\n timeout: null,\n runner: null,\n promise,\n resolve: resolve,\n reject: reject,\n };\n }\n context.runner = async () => {\n // Grab the context and reset it\n // -> new debounced calls will create a new context\n if (!context)\n return;\n const ctx = context;\n context = null;\n try {\n ctx.resolve(await callback.apply(this, args));\n }\n catch (error) {\n ctx.reject(error);\n }\n };\n context.timeout = setTimeout(context.runner, wait$);\n return context.promise;\n }\n debounced.cancel = async () => {\n if (!context || context.timeout === null) {\n // Wait one event loop to see if something triggered the debounced function\n await new Promise((resolve) => setTimeout(resolve, 0));\n if (!context || context.timeout === null)\n return;\n }\n clearTimeout(context.timeout);\n context.reject(\"Cancelled\");\n context = null;\n };\n debounced.runScheduledNow = async () => {\n if (!context || !context.timeout) {\n // Wait one event loop to see if something triggered the debounced function\n await new Promise((resolve) => setTimeout(resolve, 0));\n if (!context || !context.timeout)\n return;\n }\n clearTimeout(context.timeout);\n context.timeout = null;\n await context.runner?.();\n };\n Object.defineProperty(debounced, \"pending\", {\n enumerable: true,\n get() {\n return !!context?.timeout;\n },\n });\n return debounced;\n}\n","import { untrack } from \"svelte\";\n/**\n * Returns an object with the mounted state of the component\n * that invokes this function.\n *\n * @see {@link https://runed.dev/docs/utilities/is-mounted}\n */\nexport class IsMounted {\n #isMounted = $state(false);\n constructor() {\n $effect(() => {\n untrack(() => (this.#isMounted = true));\n return () => {\n this.#isMounted = false;\n };\n });\n }\n get current() {\n return this.#isMounted;\n }\n}\n","export class SvelteResizeObserver {\n #node;\n #onResize;\n constructor(node, onResize) {\n this.#node = node;\n this.#onResize = onResize;\n this.handler = this.handler.bind(this);\n $effect(this.handler);\n }\n handler() {\n let rAF = 0;\n const _node = this.#node();\n if (!_node)\n return;\n const resizeObserver = new ResizeObserver(() => {\n cancelAnimationFrame(rAF);\n rAF = window.requestAnimationFrame(this.#onResize);\n });\n resizeObserver.observe(_node);\n return () => {\n window.cancelAnimationFrame(rAF);\n resizeObserver.unobserve(_node);\n };\n }\n}\n","import { simpleBox } from \"svelte-toolbelt\";\nexport class StateMachine {\n state;\n #machine;\n constructor(initialState, machine) {\n this.state = simpleBox(initialState);\n this.#machine = machine;\n this.dispatch = this.dispatch.bind(this);\n }\n #reducer(event) {\n // @ts-expect-error state.current is keyof M\n const nextState = this.#machine[this.state.current][event];\n return nextState ?? this.state.current;\n }\n dispatch(event) {\n this.state.current = this.#reducer(event);\n }\n}\n","import { executeCallbacks } from \"svelte-toolbelt\";\nimport { Previous, watch } from \"runed\";\nimport { on } from \"svelte/events\";\nimport { StateMachine } from \"../../../internal/state-machine.js\";\nconst presenceMachine = {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\",\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\",\n },\n unmounted: {\n MOUNT: \"mounted\",\n },\n};\nexport class Presence {\n opts;\n prevAnimationNameState = $state(\"none\");\n styles = $state({});\n initialStatus;\n previousPresent;\n machine;\n present;\n constructor(opts) {\n this.opts = opts;\n this.present = this.opts.open;\n this.initialStatus = opts.open.current ? \"mounted\" : \"unmounted\";\n this.previousPresent = new Previous(() => this.present.current);\n this.machine = new StateMachine(this.initialStatus, presenceMachine);\n this.handleAnimationEnd = this.handleAnimationEnd.bind(this);\n this.handleAnimationStart = this.handleAnimationStart.bind(this);\n watchPresenceChange(this);\n watchStatusChange(this);\n watchRefChange(this);\n }\n /**\n * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`\n * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we\n * make sure we only trigger ANIMATION_END for the currently active animation.\n */\n handleAnimationEnd(event) {\n if (!this.opts.ref.current)\n return;\n const currAnimationName = getAnimationName(this.opts.ref.current);\n const isCurrentAnimation = currAnimationName.includes(event.animationName) || currAnimationName === \"none\";\n if (event.target === this.opts.ref.current && isCurrentAnimation) {\n this.machine.dispatch(\"ANIMATION_END\");\n }\n }\n handleAnimationStart(event) {\n if (!this.opts.ref.current)\n return;\n if (event.target === this.opts.ref.current) {\n this.prevAnimationNameState = getAnimationName(this.opts.ref.current);\n }\n }\n isPresent = $derived.by(() => {\n return [\"mounted\", \"unmountSuspended\"].includes(this.machine.state.current);\n });\n}\nfunction watchPresenceChange(state) {\n watch(() => state.present.current, () => {\n if (!state.opts.ref.current)\n return;\n const hasPresentChanged = state.present.current !== state.previousPresent.current;\n if (!hasPresentChanged)\n return;\n const prevAnimationName = state.prevAnimationNameState;\n const currAnimationName = getAnimationName(state.opts.ref.current);\n if (state.present.current) {\n state.machine.dispatch(\"MOUNT\");\n }\n else if (currAnimationName === \"none\" || state.styles.display === \"none\") {\n // If there is no exit animation or the element is hidden, animations won't run\n // so we unmount instantly\n state.machine.dispatch(\"UNMOUNT\");\n }\n else {\n /**\n * When `present` changes to `false`, we check changes to animation-name to\n * determine whether an animation has started. We chose this approach (reading\n * computed styles) because there is no `animationrun` event and `animationstart`\n * fires after `animation-delay` has expired which would be too late.\n */\n const isAnimating = prevAnimationName !== currAnimationName;\n if (state.previousPresent.current && isAnimating) {\n state.machine.dispatch(\"ANIMATION_OUT\");\n }\n else {\n state.machine.dispatch(\"UNMOUNT\");\n }\n }\n });\n}\nfunction watchStatusChange(state) {\n watch(() => state.machine.state.current, () => {\n if (!state.opts.ref.current)\n return;\n const currAnimationName = getAnimationName(state.opts.ref.current);\n state.prevAnimationNameState =\n state.machine.state.current === \"mounted\" ? currAnimationName : \"none\";\n });\n}\nfunction watchRefChange(state) {\n watch(() => state.opts.ref.current, () => {\n if (!state.opts.ref.current)\n return;\n state.styles = getComputedStyle(state.opts.ref.current);\n return executeCallbacks(on(state.opts.ref.current, \"animationstart\", state.handleAnimationStart), on(state.opts.ref.current, \"animationcancel\", state.handleAnimationEnd), on(state.opts.ref.current, \"animationend\", state.handleAnimationEnd));\n });\n}\nfunction getAnimationName(node) {\n return node ? getComputedStyle(node).animationName || \"none\" : \"none\";\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { PresenceLayerImplProps } from \"./types.js\";\n\timport { Presence } from \"./presence.svelte.js\";\n\n\tlet { open, forceMount, presence, ref }: PresenceLayerImplProps = $props();\n\n\tconst presenceState = new Presence({\n\t\topen: boxWith(() => open),\n\t\tref,\n\t});\n</script>\n\n{#if forceMount || open || presenceState.isPresent}\n\t{@render presence?.({ present: presenceState.isPresent })}\n{/if}\n","/**\n * Clamps a number between a minimum and maximum value.\n */\nexport function clamp(n, min, max) {\n return Math.min(max, Math.max(min, n));\n}\n","/**\n * This logic is adapted from Radix UI ScrollArea component.\n * https://github.com/radix-ui/primitives/blob/main/packages/react/scroll-area/src/ScrollArea.tsx\n * Credit to Jenna Smith (@jjenzz) for the original implementation.\n * Incredible thought must have went into solving all the intricacies of this component.\n */\nimport { Context, useDebounce, watch } from \"runed\";\nimport { untrack } from \"svelte\";\nimport { simpleBox, executeCallbacks, attachRef, DOMContext, getWindow, } from \"svelte-toolbelt\";\nimport { mergeProps, useId } from \"../../shared/index.js\";\nimport { clamp } from \"../../internal/clamp.js\";\nimport { on } from \"svelte/events\";\nimport { createBitsAttrs } from \"../../internal/attrs.js\";\nimport { StateMachine } from \"../../internal/state-machine.js\";\nimport { SvelteResizeObserver } from \"../../internal/svelte-resize-observer.svelte.js\";\nconst scrollAreaAttrs = createBitsAttrs({\n component: \"scroll-area\",\n parts: [\"root\", \"viewport\", \"corner\", \"thumb\", \"scrollbar\"],\n});\nexport const ScrollAreaRootContext = new Context(\"ScrollArea.Root\");\nexport const ScrollAreaScrollbarContext = new Context(\"ScrollArea.Scrollbar\");\nexport const ScrollAreaScrollbarVisibleContext = new Context(\"ScrollArea.ScrollbarVisible\");\nexport const ScrollAreaScrollbarAxisContext = new Context(\"ScrollArea.ScrollbarAxis\");\nexport const ScrollAreaScrollbarSharedContext = new Context(\"ScrollArea.ScrollbarShared\");\nexport class ScrollAreaRootState {\n static create(opts) {\n return ScrollAreaRootContext.set(new ScrollAreaRootState(opts));\n }\n opts;\n attachment;\n scrollAreaNode = $state(null);\n viewportNode = $state(null);\n contentNode = $state(null);\n scrollbarXNode = $state(null);\n scrollbarYNode = $state(null);\n cornerWidth = $state(0);\n cornerHeight = $state(0);\n scrollbarXEnabled = $state(false);\n scrollbarYEnabled = $state(false);\n domContext;\n constructor(opts) {\n this.opts = opts;\n this.attachment = attachRef(opts.ref, (v) => (this.scrollAreaNode = v));\n this.domContext = new DOMContext(opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n dir: this.opts.dir.current,\n style: {\n position: \"relative\",\n \"--bits-scroll-area-corner-height\": `${this.cornerHeight}px`,\n \"--bits-scroll-area-corner-width\": `${this.cornerWidth}px`,\n },\n [scrollAreaAttrs.root]: \"\",\n ...this.attachment,\n }));\n}\nexport class ScrollAreaViewportState {\n static create(opts) {\n return new ScrollAreaViewportState(opts, ScrollAreaRootContext.get());\n }\n opts;\n root;\n attachment;\n #contentId = simpleBox(useId());\n #contentRef = simpleBox(null);\n contentAttachment = attachRef(this.#contentRef, (v) => (this.root.contentNode = v));\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref, (v) => (this.root.viewportNode = v));\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n style: {\n overflowX: this.root.scrollbarXEnabled ? \"scroll\" : \"hidden\",\n overflowY: this.root.scrollbarYEnabled ? \"scroll\" : \"hidden\",\n },\n [scrollAreaAttrs.viewport]: \"\",\n ...this.attachment,\n }));\n contentProps = $derived.by(() => ({\n id: this.#contentId.current,\n \"data-scroll-area-content\": \"\",\n /**\n * When horizontal scrollbar is visible: this element should be at least\n * as wide as its children for size calculations to work correctly.\n *\n * When horizontal scrollbar is NOT visible: this element's width should\n * be constrained by the parent container to enable `text-overflow: ellipsis`\n */\n style: { minWidth: this.root.scrollbarXEnabled ? \"fit-content\" : undefined },\n ...this.contentAttachment,\n }));\n}\nexport class ScrollAreaScrollbarState {\n static create(opts) {\n return ScrollAreaScrollbarContext.set(new ScrollAreaScrollbarState(opts, ScrollAreaRootContext.get()));\n }\n opts;\n root;\n isHorizontal = $derived.by(() => this.opts.orientation.current === \"horizontal\");\n hasThumb = $state(false);\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n watch(() => this.isHorizontal, (isHorizontal) => {\n if (isHorizontal) {\n this.root.scrollbarXEnabled = true;\n return () => {\n this.root.scrollbarXEnabled = false;\n };\n }\n else {\n this.root.scrollbarYEnabled = true;\n return () => {\n this.root.scrollbarYEnabled = false;\n };\n }\n });\n }\n}\nexport class ScrollAreaScrollbarHoverState {\n static create() {\n return new ScrollAreaScrollbarHoverState(ScrollAreaScrollbarContext.get());\n }\n scrollbar;\n root;\n isVisible = $state(false);\n constructor(scrollbar) {\n this.scrollbar = scrollbar;\n this.root = scrollbar.root;\n $effect(() => {\n const scrollAreaNode = this.root.scrollAreaNode;\n const hideDelay = this.root.opts.scrollHideDelay.current;\n let hideTimer = 0;\n if (!scrollAreaNode)\n return;\n const handlePointerEnter = () => {\n this.root.domContext.clearTimeout(hideTimer);\n untrack(() => (this.isVisible = true));\n };\n const handlePointerLeave = () => {\n if (hideTimer)\n this.root.domContext.clearTimeout(hideTimer);\n hideTimer = this.root.domContext.setTimeout(() => {\n untrack(() => {\n this.scrollbar.hasThumb = false;\n this.isVisible = false;\n });\n }, hideDelay);\n };\n const unsubListeners = executeCallbacks(on(scrollAreaNode, \"pointerenter\", handlePointerEnter), on(scrollAreaNode, \"pointerleave\", handlePointerLeave));\n return () => {\n this.root.domContext.getWindow().clearTimeout(hideTimer);\n unsubListeners();\n };\n });\n }\n props = $derived.by(() => ({\n \"data-state\": this.isVisible ? \"visible\" : \"hidden\",\n }));\n}\nexport class ScrollAreaScrollbarScrollState {\n static create() {\n return new ScrollAreaScrollbarScrollState(ScrollAreaScrollbarContext.get());\n }\n scrollbar;\n root;\n machine = new StateMachine(\"hidden\", {\n hidden: {\n SCROLL: \"scrolling\",\n },\n scrolling: {\n SCROLL_END: \"idle\",\n POINTER_ENTER: \"interacting\",\n },\n interacting: {\n SCROLL: \"interacting\",\n POINTER_LEAVE: \"idle\",\n },\n idle: {\n HIDE: \"hidden\",\n SCROLL: \"scrolling\",\n POINTER_ENTER: \"interacting\",\n },\n });\n isHidden = $derived.by(() => this.machine.state.current === \"hidden\");\n constructor(scrollbar) {\n this.scrollbar = scrollbar;\n this.root = scrollbar.root;\n const debounceScrollend = useDebounce(() => this.machine.dispatch(\"SCROLL_END\"), 100);\n $effect(() => {\n const _state = this.machine.state.current;\n const scrollHideDelay = this.root.opts.scrollHideDelay.current;\n if (_state === \"idle\") {\n const hideTimer = this.root.domContext.setTimeout(() => this.machine.dispatch(\"HIDE\"), scrollHideDelay);\n return () => this.root.domContext.clearTimeout(hideTimer);\n }\n });\n $effect(() => {\n const viewportNode = this.root.viewportNode;\n if (!viewportNode)\n return;\n const scrollDirection = this.scrollbar.isHorizontal ? \"scrollLeft\" : \"scrollTop\";\n let prevScrollPos = viewportNode[scrollDirection];\n const handleScroll = () => {\n const scrollPos = viewportNode[scrollDirection];\n const hasScrollInDirectionChanged = prevScrollPos !== scrollPos;\n if (hasScrollInDirectionChanged) {\n this.machine.dispatch(\"SCROLL\");\n debounceScrollend();\n }\n prevScrollPos = scrollPos;\n };\n const unsubListener = on(viewportNode, \"scroll\", handleScroll);\n return unsubListener;\n });\n this.onpointerenter = this.onpointerenter.bind(this);\n this.onpointerleave = this.onpointerleave.bind(this);\n }\n onpointerenter(_) {\n this.machine.dispatch(\"POINTER_ENTER\");\n }\n onpointerleave(_) {\n this.machine.dispatch(\"POINTER_LEAVE\");\n }\n props = $derived.by(() => ({\n \"data-state\": this.machine.state.current === \"hidden\" ? \"hidden\" : \"visible\",\n onpointerenter: this.onpointerenter,\n onpointerleave: this.onpointerleave,\n }));\n}\nexport class ScrollAreaScrollbarAutoState {\n static create() {\n return new ScrollAreaScrollbarAutoState(ScrollAreaScrollbarContext.get());\n }\n scrollbar;\n root;\n isVisible = $state(false);\n constructor(scrollbar) {\n this.scrollbar = scrollbar;\n this.root = scrollbar.root;\n const handleResize = useDebounce(() => {\n const viewportNode = this.root.viewportNode;\n if (!viewportNode)\n return;\n const isOverflowX = viewportNode.offsetWidth < viewportNode.scrollWidth;\n const isOverflowY = viewportNode.offsetHeight < viewportNode.scrollHeight;\n this.isVisible = this.scrollbar.isHorizontal ? isOverflowX : isOverflowY;\n }, 10);\n new SvelteResizeObserver(() => this.root.viewportNode, handleResize);\n new SvelteResizeObserver(() => this.root.contentNode, handleResize);\n }\n props = $derived.by(() => ({\n \"data-state\": this.isVisible ? \"visible\" : \"hidden\",\n }));\n}\nexport class ScrollAreaScrollbarVisibleState {\n static create() {\n return ScrollAreaScrollbarVisibleContext.set(new ScrollAreaScrollbarVisibleState(ScrollAreaScrollbarContext.get()));\n }\n scrollbar;\n root;\n thumbNode = $state(null);\n pointerOffset = $state(0);\n sizes = $state.raw({\n content: 0,\n viewport: 0,\n scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 },\n });\n thumbRatio = $derived.by(() => getThumbRatio(this.sizes.viewport, this.sizes.content));\n hasThumb = $derived.by(() => Boolean(this.thumbRatio > 0 && this.thumbRatio < 1));\n // this needs to be a $state to properly restore the transform style when the scrollbar\n // goes from a hidden to visible state, otherwise it will start at the beginning of the\n // scrollbar and flicker to the correct position after\n prevTransformStyle = $state(\"\");\n constructor(scrollbar) {\n this.scrollbar = scrollbar;\n this.root = scrollbar.root;\n $effect(() => {\n this.scrollbar.hasThumb = this.hasThumb;\n });\n $effect(() => {\n if (!this.scrollbar.hasThumb && this.thumbNode) {\n this.prevTransformStyle = this.thumbNode.style.transform;\n }\n });\n }\n setSizes(sizes) {\n this.sizes = sizes;\n }\n getScrollPosition(pointerPos, dir) {\n return getScrollPositionFromPointer({\n pointerPos,\n pointerOffset: this.pointerOffset,\n sizes: this.sizes,\n dir,\n });\n }\n onThumbPointerUp() {\n this.pointerOffset = 0;\n }\n onThumbPointerDown(pointerPos) {\n this.pointerOffset = pointerPos;\n }\n xOnThumbPositionChange() {\n if (!(this.root.viewportNode && this.thumbNode))\n return;\n const scrollPos = this.root.viewportNode.scrollLeft;\n const offset = getThumbOffsetFromScroll({\n scrollPos,\n sizes: this.sizes,\n dir: this.root.opts.dir.current,\n });\n const transformStyle = `translate3d(${offset}px, 0, 0)`;\n this.thumbNode.style.transform = transformStyle;\n this.prevTransformStyle = transformStyle;\n }\n xOnWheelScroll(scrollPos) {\n if (!this.root.viewportNode)\n return;\n this.root.viewportNode.scrollLeft = scrollPos;\n }\n xOnDragScroll(pointerPos) {\n if (!this.root.viewportNode)\n return;\n this.root.viewportNode.scrollLeft = this.getScrollPosition(pointerPos, this.root.opts.dir.current);\n }\n yOnThumbPositionChange() {\n if (!(this.root.viewportNode && this.thumbNode))\n return;\n const scrollPos = this.root.viewportNode.scrollTop;\n const offset = getThumbOffsetFromScroll({ scrollPos, sizes: this.sizes });\n const transformStyle = `translate3d(0, ${offset}px, 0)`;\n this.thumbNode.style.transform = transformStyle;\n this.prevTransformStyle = transformStyle;\n }\n yOnWheelScroll(scrollPos) {\n if (!this.root.viewportNode)\n return;\n this.root.viewportNode.scrollTop = scrollPos;\n }\n yOnDragScroll(pointerPos) {\n if (!this.root.viewportNode)\n return;\n this.root.viewportNode.scrollTop = this.getScrollPosition(pointerPos, this.root.opts.dir.current);\n }\n}\nexport class ScrollAreaScrollbarXState {\n static create(opts) {\n return ScrollAreaScrollbarAxisContext.set(new ScrollAreaScrollbarXState(opts, ScrollAreaScrollbarVisibleContext.get()));\n }\n opts;\n scrollbarVis;\n root;\n scrollbar;\n attachment;\n computedStyle = $state();\n constructor(opts, scrollbarVis) {\n this.opts = opts;\n this.scrollbarVis = scrollbarVis;\n this.root = scrollbarVis.root;\n this.scrollbar = scrollbarVis.scrollbar;\n this.attachment = attachRef(this.scrollbar.opts.ref, (v) => (this.root.scrollbarXNode = v));\n $effect(() => {\n if (!this.scrollbar.opts.ref.current)\n return;\n if (this.opts.mounted.current) {\n this.computedStyle = getComputedStyle(this.scrollbar.opts.ref.current);\n }\n });\n $effect(() => {\n // Ensure when a user scrolls down and then the scrollbar is hidden\n // that when it shows again it will be positioned correctly.\n this.onResize();\n });\n }\n onThumbPointerDown = (pointerPos) => {\n this.scrollbarVis.onThumbPointerDown(pointerPos.x);\n };\n onDragScroll = (pointerPos) => {\n this.scrollbarVis.xOnDragScroll(pointerPos.x);\n };\n onThumbPointerUp = () => {\n this.scrollbarVis.onThumbPointerUp();\n };\n onThumbPositionChange = () => {\n this.scrollbarVis.xOnThumbPositionChange();\n };\n onWheelScroll = (e, maxScrollPos) => {\n if (!this.root.viewportNode)\n return;\n const scrollPos = this.root.viewportNode.scrollLeft + e.deltaX;\n this.scrollbarVis.xOnWheelScroll(scrollPos);\n // prevent window scroll when wheeling scrollbar\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n e.preventDefault();\n }\n };\n onResize = () => {\n if (!(this.scrollbar.opts.ref.current && this.root.viewportNode && this.computedStyle))\n return;\n this.scrollbarVis.setSizes({\n content: this.root.viewportNode.scrollWidth,\n viewport: this.root.viewportNode.offsetWidth,\n scrollbar: {\n size: this.scrollbar.opts.ref.current.clientWidth,\n paddingStart: toInt(this.computedStyle.paddingLeft),\n paddingEnd: toInt(this.computedStyle.paddingRight),\n },\n });\n };\n thumbSize = $derived.by(() => {\n return getThumbSize(this.scrollbarVis.sizes);\n });\n props = $derived.by(() => ({\n id: this.scrollbar.opts.id.current,\n \"data-orientation\": \"horizontal\",\n style: {\n bottom: 0,\n left: this.root.opts.dir.current === \"rtl\"\n ? \"var(--bits-scroll-area-corner-width)\"\n : 0,\n right: this.root.opts.dir.current === \"ltr\"\n ? \"var(--bits-scroll-area-corner-width)\"\n : 0,\n \"--bits-scroll-area-thumb-width\": `${this.thumbSize}px`,\n },\n ...this.attachment,\n }));\n}\nexport class ScrollAreaScrollbarYState {\n static create(opts) {\n return ScrollAreaScrollbarAxisContext.set(new ScrollAreaScrollbarYState(opts, ScrollAreaScrollbarVisibleContext.get()));\n }\n opts;\n scrollbarVis;\n root;\n scrollbar;\n attachment;\n computedStyle = $state();\n constructor(opts, scrollbarVis) {\n this.opts = opts;\n this.scrollbarVis = scrollbarVis;\n this.root = scrollbarVis.root;\n this.scrollbar = scrollbarVis.scrollbar;\n this.attachment = attachRef(this.scrollbar.opts.ref, (v) => (this.root.scrollbarYNode = v));\n $effect(() => {\n if (!this.scrollbar.opts.ref.current)\n return;\n if (this.opts.mounted.current) {\n this.computedStyle = getComputedStyle(this.scrollbar.opts.ref.current);\n }\n });\n $effect(() => {\n // Ensure when a user scrolls down and then the scrollbar is hidden\n // that when it shows again it will be positioned correctly.\n this.onResize();\n });\n this.onThumbPointerDown = this.onThumbPointerDown.bind(this);\n this.onDragScroll = this.onDragScroll.bind(this);\n this.onThumbPointerUp = this.onThumbPointerUp.bind(this);\n this.onThumbPositionChange = this.onThumbPositionChange.bind(this);\n this.onWheelScroll = this.onWheelScroll.bind(this);\n this.onResize = this.onResize.bind(this);\n }\n onThumbPointerDown(pointerPos) {\n this.scrollbarVis.onThumbPointerDown(pointerPos.y);\n }\n onDragScroll(pointerPos) {\n this.scrollbarVis.yOnDragScroll(pointerPos.y);\n }\n onThumbPointerUp() {\n this.scrollbarVis.onThumbPointerUp();\n }\n onThumbPositionChange() {\n this.scrollbarVis.yOnThumbPositionChange();\n }\n onWheelScroll(e, maxScrollPos) {\n if (!this.root.viewportNode)\n return;\n const scrollPos = this.root.viewportNode.scrollTop + e.deltaY;\n this.scrollbarVis.yOnWheelScroll(scrollPos);\n // prevent window scroll when wheeling scrollbar\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n e.preventDefault();\n }\n }\n onResize() {\n if (!(this.scrollbar.opts.ref.current && this.root.viewportNode && this.computedStyle))\n return;\n this.scrollbarVis.setSizes({\n content: this.root.viewportNode.scrollHeight,\n viewport: this.root.viewportNode.offsetHeight,\n scrollbar: {\n size: this.scrollbar.opts.ref.current.clientHeight,\n paddingStart: toInt(this.computedStyle.paddingTop),\n paddingEnd: toInt(this.computedStyle.paddingBottom),\n },\n });\n }\n thumbSize = $derived.by(() => {\n return getThumbSize(this.scrollbarVis.sizes);\n });\n props = $derived.by(() => ({\n id: this.scrollbar.opts.id.current,\n \"data-orientation\": \"vertical\",\n style: {\n top: 0,\n right: this.root.opts.dir.current === \"ltr\" ? 0 : undefined,\n left: this.root.opts.dir.current === \"rtl\" ? 0 : undefined,\n bottom: \"var(--bits-scroll-area-corner-height)\",\n \"--bits-scroll-area-thumb-height\": `${this.thumbSize}px`,\n },\n ...this.attachment,\n }));\n}\nexport class ScrollAreaScrollbarSharedState {\n static create() {\n return ScrollAreaScrollbarSharedContext.set(new ScrollAreaScrollbarSharedState(ScrollAreaScrollbarAxisContext.get()));\n }\n scrollbarState;\n root;\n scrollbarVis;\n scrollbar;\n rect = $state.raw(null);\n prevWebkitUserSelect = $state(\"\");\n handleResize;\n handleThumbPositionChange;\n handleWheelScroll;\n handleThumbPointerDown;\n handleThumbPointerUp;\n maxScrollPos = $derived.by(() => this.scrollbarVis.sizes.content - this.scrollbarVis.sizes.viewport);\n constructor(scrollbarState) {\n this.scrollbarState = scrollbarState;\n this.root = scrollbarState.root;\n this.scrollbarVis = scrollbarState.scrollbarVis;\n this.scrollbar = scrollbarState.scrollbarVis.scrollbar;\n this.handleResize = useDebounce(() => this.scrollbarState.onResize(), 10);\n this.handleThumbPositionChange = this.scrollbarState.onThumbPositionChange;\n this.handleWheelScroll = this.scrollbarState.onWheelScroll;\n this.handleThumbPointerDown = this.scrollbarState.onThumbPointerDown;\n this.handleThumbPointerUp = this.scrollbarState.onThumbPointerUp;\n $effect(() => {\n const maxScrollPos = this.maxScrollPos;\n const scrollbarNode = this.scrollbar.opts.ref.current;\n // we want to react to the viewport node changing so we leave this here\n this.root.viewportNode;\n const handleWheel = (e) => {\n const node = e.target;\n const isScrollbarWheel = scrollbarNode?.contains(node);\n if (isScrollbarWheel)\n this.handleWheelScroll(e, maxScrollPos);\n };\n const unsubListener = on(this.root.domContext.getDocument(), \"wheel\", handleWheel, {\n passive: false,\n });\n return unsubListener;\n });\n $effect.pre(() => {\n // react to changes to this:\n this.scrollbarVis.sizes;\n untrack(() => this.handleThumbPositionChange());\n });\n // $effect.pre(() => {\n // \tthis.handleThumbPositionChange();\n // });\n new SvelteResizeObserver(() => this.scrollbar.opts.ref.current, this.handleResize);\n new SvelteResizeObserver(() => this.root.contentNode, this.handleResize);\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointermove = this.onpointermove.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n }\n handleDragScroll(e) {\n if (!this.rect)\n return;\n const x = e.clientX - this.rect.left;\n const y = e.clientY - this.rect.top;\n this.scrollbarState.onDragScroll({ x, y });\n }\n onpointerdown(e) {\n if (e.button !== 0)\n return;\n const target = e.target;\n target.setPointerCapture(e.pointerId);\n this.rect = this.scrollbar.opts.ref.current?.getBoundingClientRect() ?? null;\n // pointer capture doesn't prevent text selection in Safari\n // so we remove text selection manually when scrolling\n this.prevWebkitUserSelect = this.root.domContext.getDocument().body.style.webkitUserSelect;\n this.root.domContext.getDocument().body.style.webkitUserSelect = \"none\";\n if (this.root.viewportNode)\n this.root.viewportNode.style.scrollBehavior = \"auto\";\n this.handleDragScroll(e);\n }\n onpointermove(e) {\n this.handleDragScroll(e);\n }\n onpointerup(e) {\n const target = e.target;\n if (target.hasPointerCapture(e.pointerId)) {\n target.releasePointerCapture(e.pointerId);\n }\n this.root.domContext.getDocument().body.style.webkitUserSelect = this.prevWebkitUserSelect;\n if (this.root.viewportNode)\n this.root.viewportNode.style.scrollBehavior = \"\";\n this.rect = null;\n }\n props = $derived.by(() => mergeProps({\n ...this.scrollbarState.props,\n style: {\n position: \"absolute\",\n ...this.scrollbarState.props.style,\n },\n [scrollAreaAttrs.scrollbar]: \"\",\n onpointerdown: this.onpointerdown,\n onpointermove: this.onpointermove,\n onpointerup: this.onpointerup,\n }));\n}\nexport class ScrollAreaThumbImplState {\n static create(opts) {\n return new ScrollAreaThumbImplState(opts, ScrollAreaScrollbarSharedContext.get());\n }\n opts;\n scrollbarState;\n attachment;\n #root;\n #removeUnlinkedScrollListener = $state();\n #debounceScrollEnd = useDebounce(() => {\n if (this.#removeUnlinkedScrollListener) {\n this.#removeUnlinkedScrollListener();\n this.#removeUnlinkedScrollListener = undefined;\n }\n }, 100);\n constructor(opts, scrollbarState) {\n this.opts = opts;\n this.scrollbarState = scrollbarState;\n this.#root = scrollbarState.root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.scrollbarState.scrollbarVis.thumbNode = v));\n $effect(() => {\n const viewportNode = this.#root.viewportNode;\n if (!viewportNode)\n return;\n const handleScroll = () => {\n this.#debounceScrollEnd();\n if (!this.#removeUnlinkedScrollListener) {\n const listener = addUnlinkedScrollListener(viewportNode, this.scrollbarState.handleThumbPositionChange);\n this.#removeUnlinkedScrollListener = listener;\n this.scrollbarState.handleThumbPositionChange();\n }\n };\n untrack(() => this.scrollbarState.handleThumbPositionChange());\n const unsubListener = on(viewportNode, \"scroll\", handleScroll);\n return unsubListener;\n });\n this.onpointerdowncapture = this.onpointerdowncapture.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n }\n onpointerdowncapture(e) {\n const thumb = e.target;\n if (!thumb)\n return;\n const thumbRect = thumb.getBoundingClientRect();\n const x = e.clientX - thumbRect.left;\n const y = e.clientY - thumbRect.top;\n this.scrollbarState.handleThumbPointerDown({ x, y });\n }\n onpointerup(_) {\n this.scrollbarState.handleThumbPointerUp();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-state\": this.scrollbarState.scrollbarVis.hasThumb ? \"visible\" : \"hidden\",\n style: {\n width: \"var(--bits-scroll-area-thumb-width)\",\n height: \"var(--bits-scroll-area-thumb-height)\",\n transform: this.scrollbarState.scrollbarVis.prevTransformStyle,\n },\n onpointerdowncapture: this.onpointerdowncapture,\n onpointerup: this.onpointerup,\n [scrollAreaAttrs.thumb]: \"\",\n ...this.attachment,\n }));\n}\nexport class ScrollAreaCornerImplState {\n static create(opts) {\n return new ScrollAreaCornerImplState(opts, ScrollAreaRootContext.get());\n }\n opts;\n root;\n attachment;\n #width = $state(0);\n #height = $state(0);\n hasSize = $derived(Boolean(this.#width && this.#height));\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n new SvelteResizeObserver(() => this.root.scrollbarXNode, () => {\n const height = this.root.scrollbarXNode?.offsetHeight || 0;\n this.root.cornerHeight = height;\n this.#height = height;\n });\n new SvelteResizeObserver(() => this.root.scrollbarYNode, () => {\n const width = this.root.scrollbarYNode?.offsetWidth || 0;\n this.root.cornerWidth = width;\n this.#width = width;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n style: {\n width: this.#width,\n height: this.#height,\n position: \"absolute\",\n right: this.root.opts.dir.current === \"ltr\" ? 0 : undefined,\n left: this.root.opts.dir.current === \"rtl\" ? 0 : undefined,\n bottom: 0,\n },\n [scrollAreaAttrs.corner]: \"\",\n ...this.attachment,\n }));\n}\nfunction toInt(value) {\n return value ? Number.parseInt(value, 10) : 0;\n}\nfunction getThumbRatio(viewportSize, contentSize) {\n const ratio = viewportSize / contentSize;\n return Number.isNaN(ratio) ? 0 : ratio;\n}\nfunction getThumbSize(sizes) {\n const ratio = getThumbRatio(sizes.viewport, sizes.content);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const thumbSize = (sizes.scrollbar.size - scrollbarPadding) * ratio;\n return Math.max(thumbSize, 18);\n}\nfunction getScrollPositionFromPointer({ pointerPos, pointerOffset, sizes, dir = \"ltr\", }) {\n const thumbSizePx = getThumbSize(sizes);\n const thumbCenter = thumbSizePx / 2;\n const offset = pointerOffset || thumbCenter;\n const thumbOffsetFromEnd = thumbSizePx - offset;\n const minPointerPos = sizes.scrollbar.paddingStart + offset;\n const maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd;\n const maxScrollPos = sizes.content - sizes.viewport;\n const scrollRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const interpolate = linearScale([minPointerPos, maxPointerPos], scrollRange);\n return interpolate(pointerPos);\n}\nfunction getThumbOffsetFromScroll({ scrollPos, sizes, dir = \"ltr\", }) {\n const thumbSizePx = getThumbSize(sizes);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const scrollbar = sizes.scrollbar.size - scrollbarPadding;\n const maxScrollPos = sizes.content - sizes.viewport;\n const maxThumbPos = scrollbar - thumbSizePx;\n const scrollClampRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const scrollWithoutMomentum = clamp(scrollPos, scrollClampRange[0], scrollClampRange[1]);\n const interpolate = linearScale([0, maxScrollPos], [0, maxThumbPos]);\n return interpolate(scrollWithoutMomentum);\n}\n// https://github.com/tmcw-up-for-adoption/simple-linear-scale/blob/master/index.js\nfunction linearScale(input, output) {\n return (value) => {\n if (input[0] === input[1] || output[0] === output[1])\n return output[0];\n const ratio = (output[1] - output[0]) / (input[1] - input[0]);\n return output[0] + ratio * (value - input[0]);\n };\n}\nfunction isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {\n return scrollPos > 0 && scrollPos < maxScrollPos;\n}\nfunction addUnlinkedScrollListener(node, handler) {\n let prevPosition = { left: node.scrollLeft, top: node.scrollTop };\n let rAF = 0;\n const win = getWindow(node);\n (function loop() {\n const position = { left: node.scrollLeft, top: node.scrollTop };\n const isHorizontalScroll = prevPosition.left !== position.left;\n const isVerticalScroll = prevPosition.top !== position.top;\n if (isHorizontalScroll || isVerticalScroll)\n handler();\n prevPosition = position;\n rAF = win.requestAnimationFrame(loop);\n })();\n return () => win.cancelAnimationFrame(rAF);\n}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { ScrollAreaRootProps } from \"../types.js\";\n\timport { ScrollAreaRootState } from \"../scroll-area.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\ttype = \"hover\",\n\t\tdir = \"ltr\",\n\t\tscrollHideDelay = 600,\n\t\tchildren,\n\t\tchild,\n\t\t...restProps\n\t}: ScrollAreaRootProps = $props();\n\n\tconst rootState = ScrollAreaRootState.create({\n\t\ttype: boxWith(() => type),\n\t\tdir: boxWith(() => dir),\n\t\tscrollHideDelay: boxWith(() => scrollHideDelay),\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, rootState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { ScrollAreaViewportProps } from \"../types.js\";\n\timport { ScrollAreaViewportState } from \"../scroll-area.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tchildren,\n\t\t...restProps\n\t}: ScrollAreaViewportProps = $props();\n\n\tconst viewportState = ScrollAreaViewportState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, viewportState.props));\n\tconst mergedContentProps = $derived(mergeProps({}, viewportState.contentProps));\n</script>\n\n<div {...mergedProps}>\n\t<div {...mergedContentProps}>\n\t\t{@render children?.()}\n\t</div>\n</div>\n\n<style>\n\t/* Hide scrollbars cross browser and enable momentum scroll for touch devices */\n\t:global([data-scroll-area-viewport]) {\n\t\tscrollbar-width: none !important;\n\t\t-ms-overflow-style: none !important;\n\t\t-webkit-overflow-scrolling: touch !important;\n\t}\n\t:global([data-scroll-area-viewport])::-webkit-scrollbar {\n\t\tdisplay: none !important;\n\t}\n\n\t:global(:where([data-scroll-area-viewport])) {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: stretch;\n\t}\n\t:global(:where([data-scroll-area-content])) {\n\t\tflex-grow: 1;\n\t}\n</style>\n","<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport { ScrollAreaScrollbarSharedState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\n\tlet { child, children, ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst scrollbarSharedState = ScrollAreaScrollbarSharedState.create();\n\n\tconst mergedProps = $derived(mergeProps(restProps, scrollbarSharedState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { IsMounted } from \"runed\";\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { ScrollAreaScrollbarXState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarShared from \"./scroll-area-scrollbar-shared.svelte\";\n\n\tlet { ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst isMounted = new IsMounted();\n\n\tconst scrollbarXState = ScrollAreaScrollbarXState.create({\n\t\tmounted: boxWith(() => isMounted.current),\n\t});\n\t// oxlint-disable-next-line no-explicit-any\n\tconst mergedProps = $derived(mergeProps(restProps, scrollbarXState.props)) as any;\n</script>\n\n<ScrollAreaScrollbarShared {...mergedProps} />\n","<script lang=\"ts\">\n\timport { IsMounted } from \"runed\";\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { ScrollAreaScrollbarYState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarShared from \"./scroll-area-scrollbar-shared.svelte\";\n\n\tlet { ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst isMounted = new IsMounted();\n\n\tconst scrollbarYState = ScrollAreaScrollbarYState.create({\n\t\tmounted: boxWith(() => isMounted.current),\n\t});\n\n\t// oxlint-disable-next-line no-explicit-any\n\tconst mergedProps = $derived(mergeProps(restProps, scrollbarYState.props)) as any;\n</script>\n\n<ScrollAreaScrollbarShared {...mergedProps} />\n","<script lang=\"ts\">\n\timport { ScrollAreaScrollbarVisibleState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarX from \"./scroll-area-scrollbar-x.svelte\";\n\timport ScrollAreaScrollbarY from \"./scroll-area-scrollbar-y.svelte\";\n\n\tlet { ...restProps }: Omit<_ScrollbarStubProps, \"forceMount\"> = $props();\n\n\tconst scrollbarVisibleState = ScrollAreaScrollbarVisibleState.create();\n</script>\n\n{#if scrollbarVisibleState.scrollbar.opts.orientation.current === \"horizontal\"}\n\t<ScrollAreaScrollbarX {...restProps} />\n{:else}\n\t<ScrollAreaScrollbarY {...restProps} />\n{/if}\n","<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport { ScrollAreaScrollbarAutoState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarVisible from \"./scroll-area-scrollbar-visible.svelte\";\n\timport PresenceLayer from \"../../utilities/presence-layer/presence-layer.svelte\";\n\n\tlet { forceMount = false, ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst scrollbarAutoState = ScrollAreaScrollbarAutoState.create();\n\tconst mergedProps = $derived(mergeProps(restProps, scrollbarAutoState.props));\n</script>\n\n<PresenceLayer\n\topen={forceMount || scrollbarAutoState.isVisible}\n\tref={scrollbarAutoState.scrollbar.opts.ref}\n>\n\t{#snippet presence()}\n\t\t<ScrollAreaScrollbarVisible {...mergedProps} />\n\t{/snippet}\n</PresenceLayer>\n","<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport { ScrollAreaScrollbarScrollState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarVisible from \"./scroll-area-scrollbar-visible.svelte\";\n\timport PresenceLayer from \"../../utilities/presence-layer/presence-layer.svelte\";\n\n\tlet { forceMount = false, ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst scrollbarScrollState = ScrollAreaScrollbarScrollState.create();\n\n\tconst mergedProps = $derived(mergeProps(restProps, scrollbarScrollState.props));\n</script>\n\n<PresenceLayer\n\t{...mergedProps}\n\topen={forceMount || !scrollbarScrollState.isHidden}\n\tref={scrollbarScrollState.scrollbar.opts.ref}\n>\n\t{#snippet presence()}\n\t\t<ScrollAreaScrollbarVisible {...mergedProps} />\n\t{/snippet}\n</PresenceLayer>\n","<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport {\n\t\tScrollAreaScrollbarAutoState,\n\t\tScrollAreaScrollbarHoverState,\n\t} from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarVisible from \"./scroll-area-scrollbar-visible.svelte\";\n\timport PresenceLayer from \"../../utilities/presence-layer/presence-layer.svelte\";\n\n\tlet { forceMount = false, ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst scrollbarHoverState = ScrollAreaScrollbarHoverState.create();\n\tconst scrollbarAutoState = ScrollAreaScrollbarAutoState.create();\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, scrollbarHoverState.props, scrollbarAutoState.props, {\n\t\t\t\"data-state\": scrollbarHoverState.isVisible ? \"visible\" : \"hidden\",\n\t\t})\n\t);\n\n\tconst open = $derived(\n\t\tforceMount || (scrollbarHoverState.isVisible && scrollbarAutoState.isVisible)\n\t);\n</script>\n\n<PresenceLayer {open} ref={scrollbarAutoState.scrollbar.opts.ref}>\n\t{#snippet presence()}\n\t\t<ScrollAreaScrollbarVisible {...mergedProps} />\n\t{/snippet}\n</PresenceLayer>\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { ScrollAreaScrollbarProps } from \"../types.js\";\n\timport { ScrollAreaScrollbarState } from \"../scroll-area.svelte.js\";\n\timport ScrollAreaScrollbarAuto from \"./scroll-area-scrollbar-auto.svelte\";\n\timport ScrollAreaScrollbarScroll from \"./scroll-area-scrollbar-scroll.svelte\";\n\timport ScrollAreaScrollbarHover from \"./scroll-area-scrollbar-hover.svelte\";\n\timport ScrollAreaScrollbarVisible from \"./scroll-area-scrollbar-visible.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\torientation,\n\t\t...restProps\n\t}: ScrollAreaScrollbarProps = $props();\n\n\tconst scrollbarState = ScrollAreaScrollbarState.create({\n\t\torientation: boxWith(() => orientation),\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst type = $derived(scrollbarState.root.opts.type.current);\n</script>\n\n{#if type === \"hover\"}\n\t<ScrollAreaScrollbarHover {...restProps} {id} />\n{:else if type === \"scroll\"}\n\t<ScrollAreaScrollbarScroll {...restProps} {id} />\n{:else if type === \"auto\"}\n\t<ScrollAreaScrollbarAuto {...restProps} {id} />\n{:else if type === \"always\"}\n\t<ScrollAreaScrollbarVisible {...restProps} {id} />\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { IsMounted } from \"runed\";\n\timport type { ScrollAreaThumbProps } from \"../types.js\";\n\timport { ScrollAreaThumbImplState } from \"../scroll-area.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid,\n\t\tchild,\n\t\tchildren,\n\t\tpresent,\n\t\t...restProps\n\t}: Omit<ScrollAreaThumbProps, \"forceMount\" | \"id\"> & {\n\t\tid: string;\n\t\tpresent: boolean;\n\t} = $props();\n\n\tconst isMounted = new IsMounted();\n\n\tconst thumbState = ScrollAreaThumbImplState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tmounted: boxWith(() => isMounted.current),\n\t});\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, thumbState.props, {\n\t\t\tstyle: {\n\t\t\t\thidden: !present,\n\t\t\t},\n\t\t})\n\t);\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport type { ScrollAreaThumbProps } from \"../types.js\";\n\timport { ScrollAreaScrollbarVisibleContext } from \"../scroll-area.svelte.js\";\n\timport ScrollAreaThumbImpl from \"./scroll-area-thumb-impl.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport PresenceLayer from \"../../utilities/presence-layer/presence-layer.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tforceMount = false,\n\t\t...restProps\n\t}: ScrollAreaThumbProps = $props();\n\n\tconst scrollbarState = ScrollAreaScrollbarVisibleContext.get();\n</script>\n\n<PresenceLayer open={forceMount || scrollbarState.hasThumb} ref={scrollbarState.scrollbar.opts.ref}>\n\t{#snippet presence({ present })}\n\t\t<ScrollAreaThumbImpl {...restProps} {id} bind:ref {present} />\n\t{/snippet}\n</PresenceLayer>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { ScrollAreaCornerProps } from \"../types.js\";\n\timport { ScrollAreaCornerImplState } from \"../scroll-area.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid,\n\t\tchildren,\n\t\tchild,\n\t\t...restProps\n\t}: Omit<ScrollAreaCornerProps, \"id\"> & {\n\t\tid: string;\n\t} = $props();\n\n\tconst cornerState = ScrollAreaCornerImplState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, cornerState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport type { ScrollAreaCornerProps } from \"../types.js\";\n\timport { ScrollAreaRootContext } from \"../scroll-area.svelte.js\";\n\timport ScrollAreaCornerImpl from \"./scroll-area-corner-impl.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: ScrollAreaCornerProps = $props();\n\n\tconst scrollAreaState = ScrollAreaRootContext.get();\n\n\tconst hasBothScrollbarsVisible = $derived(\n\t\tBoolean(scrollAreaState.scrollbarXNode && scrollAreaState.scrollbarYNode)\n\t);\n\tconst hasCorner = $derived(\n\t\tscrollAreaState.opts.type.current !== \"scroll\" && hasBothScrollbarsVisible\n\t);\n</script>\n\n{#if hasCorner}\n\t<ScrollAreaCornerImpl {...restProps} {id} bind:ref />\n{/if}\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"rect\", { \"width\": \"8\", \"height\": \"4\", \"x\": \"8\", \"y\": \"2\", \"rx\": \"1\", \"ry\": \"1\" }], [\"path\", { \"d\": \"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\" }], [\"path\", { \"d\": \"M12 11h4\" }], [\"path\", { \"d\": \"M12 16h4\" }], [\"path\", { \"d\": \"M8 11h.01\" }], [\"path\", { \"d\": \"M8 16h.01\" }]];\n/**\n * @component @name ClipboardList\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI0IiB4PSI4IiB5PSIyIiByeD0iMSIgcnk9IjEiIC8+CiAgPHBhdGggZD0iTTE2IDRoMmEyIDIgMCAwIDEgMiAydjE0YTIgMiAwIDAgMS0yIDJINmEyIDIgMCAwIDEtMi0yVjZhMiAyIDAgMCAxIDItMmgyIiAvPgogIDxwYXRoIGQ9Ik0xMiAxMWg0IiAvPgogIDxwYXRoIGQ9Ik0xMiAxNmg0IiAvPgogIDxwYXRoIGQ9Ik04IDExaC4wMSIgLz4KICA8cGF0aCBkPSJNOCAxNmguMDEiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/clipboard-list\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"clipboard-list\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"m16 18 6-6-6-6\" }], [\"path\", { \"d\": \"m8 6-6 6 6 6\" }]];\n/**\n * @component @name Code\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTYgMTggNi02LTYtNiIgLz4KICA8cGF0aCBkPSJtOCA2LTYgNiA2IDYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/code\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"code\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { ScrollArea as ScrollAreaPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\torientation = \"vertical\",\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChild<ScrollAreaPrimitive.ScrollbarProps> = $props();\n</script>\n\n<ScrollAreaPrimitive.Scrollbar\n\tbind:ref\n\tdata-slot=\"scroll-area-scrollbar\"\n\t{orientation}\n\tclass={cn(\n\t\t\"flex touch-none p-px transition-colors select-none\",\n\t\torientation === \"vertical\" && \"h-full w-2.5 border-s border-s-transparent\",\n\t\torientation === \"horizontal\" && \"h-2.5 flex-col border-t border-t-transparent\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n\t<ScrollAreaPrimitive.Thumb\n\t\tdata-slot=\"scroll-area-thumb\"\n\t\tclass=\"bg-border relative flex-1 rounded-full\"\n\t/>\n</ScrollAreaPrimitive.Scrollbar>\n","<script lang=\"ts\">\n\timport { ScrollArea as ScrollAreaPrimitive } from \"bits-ui\";\n\timport { Scrollbar } from \"./index.js\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tviewportRef = $bindable(null),\n\t\tclass: className,\n\t\torientation = \"vertical\",\n\t\tscrollbarXClasses = \"\",\n\t\tscrollbarYClasses = \"\",\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChild<ScrollAreaPrimitive.RootProps> & {\n\t\torientation?: \"vertical\" | \"horizontal\" | \"both\" | undefined;\n\t\tscrollbarXClasses?: string | undefined;\n\t\tscrollbarYClasses?: string | undefined;\n\t\tviewportRef?: HTMLElement | null;\n\t} = $props();\n</script>\n\n<ScrollAreaPrimitive.Root\n\tbind:ref\n\tdata-slot=\"scroll-area\"\n\tclass={cn(\"relative\", className)}\n\t{...restProps}\n>\n\t<ScrollAreaPrimitive.Viewport\n\t\tbind:ref={viewportRef}\n\t\tdata-slot=\"scroll-area-viewport\"\n\t\tclass=\"ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1\"\n\t>\n\t\t{@render children?.()}\n\t</ScrollAreaPrimitive.Viewport>\n\t{#if orientation === \"vertical\" || orientation === \"both\"}\n\t\t<Scrollbar orientation=\"vertical\" class={scrollbarYClasses} />\n\t{/if}\n\t{#if orientation === \"horizontal\" || orientation === \"both\"}\n\t\t<Scrollbar orientation=\"horizontal\" class={scrollbarXClasses} />\n\t{/if}\n\t<ScrollAreaPrimitive.Corner />\n</ScrollAreaPrimitive.Root>\n","<script lang=\"ts\">\n\timport type { Span } from '$lib/types/spans';\n\timport { cn } from '$lib/utils';\n\timport { formatDuration, preciseTimeMs } from '$lib/utils/formatters';\n\timport * as Popover from '$lib/components/ui/popover';\n\timport Copy from 'lucide-svelte/icons/copy';\n\timport Check from 'lucide-svelte/icons/check';\n\n\ttype Props = {\n\t\trow: number;\n\t\tspan: Span;\n\t\ttraceStart: number;\n\t\ttraceDuration: number;\n\t\tisOdd: boolean;\n\t\tnameColumnWidth: number;\n\t\tupdateNameWidth: (width: number) => void;\n\n\t\tspanCellHandleMouseEnter: (x: number) => void;\n\t\tspanCellHandleMouseMove: (x: number) => void;\n\t\tspanCellHandleMouseLeave: () => void;\n\t};\n\n\tlet {\n\t\trow,\n\t\tspan,\n\t\ttraceStart,\n\t\ttraceDuration,\n\t\tisOdd,\n\t\tnameColumnWidth,\n\t\tupdateNameWidth,\n\t\tspanCellHandleMouseEnter,\n\t\tspanCellHandleMouseMove,\n\t\tspanCellHandleMouseLeave\n\t}: Props = $props();\n\n\tconst spanStartMs = $derived(preciseTimeMs(span.startTime) - traceStart);\n\tconst spanDurationMs = $derived(span.duration / 1_000_000);\n\tconst traceDurationMs = $derived(traceDuration / 1_000_000);\n\n\t// Calculate position and width as percentages\n\tconst leftPercent = $derived(Math.max(0, (spanStartMs / traceDurationMs) * 100));\n\tconst widthPercent = $derived(\n\t\tMath.min(100 - leftPercent, (spanDurationMs / traceDurationMs) * 100)\n\t);\n\n\tconst spanColors = [\n\t\t{ bg: 'bg-blue-400', ring: 'ring-blue-500' },\n\t\t{ bg: 'bg-green-400', ring: 'ring-green-500' },\n\t\t{ bg: 'bg-purple-400', ring: 'ring-purple-500' },\n\t\t{ bg: 'bg-orange-400', ring: 'ring-orange-500' },\n\t\t{ bg: 'bg-red-400', ring: 'ring-red-500' },\n\t\t{ bg: 'bg-amber-400', ring: 'ring-amber-500' },\n\t\t{ bg: 'bg-cyan-400', ring: 'ring-cyan-500' },\n\t\t{ bg: 'bg-pink-400', ring: 'ring-pink-500' },\n\t\t{ bg: 'bg-indigo-400', ring: 'ring-indigo-500' },\n\t\t{ bg: 'bg-teal-400', ring: 'ring-teal-500' },\n\t\t{ bg: 'bg-lime-400', ring: 'ring-lime-500' },\n\t\t{ bg: 'bg-rose-400', ring: 'ring-rose-500' },\n\t\t{ bg: 'bg-sky-400', ring: 'ring-sky-500' },\n\t\t{ bg: 'bg-slate-400', ring: 'ring-slate-500' }\n\t];\n\n\tconst spanColor = $derived(spanColors[row % spanColors.length]);\n\n\t// Tooltip state (this is the tooltip on top of the line)\n\tlet isHovered = $state(false);\n\tlet barElement: HTMLDivElement;\n\n\tfunction handleMouseEnter(e: MouseEvent) {\n\t\tisHovered = true;\n\t}\n\n\tfunction handleMouseLeave() {\n\t\tisHovered = false;\n\t}\n\n\tlet containerElement: HTMLDivElement;\n\tfunction containerSpanCellHandleMouseEnter(e: MouseEvent) {\n\t\tconst rect = containerElement.getBoundingClientRect();\n\t\tconst x = e.clientX - rect.left;\n\t\tspanCellHandleMouseEnter(x);\n\t}\n\tfunction containerSpanCellHandleMouseMove(e: MouseEvent) {\n\t\tconst rect = containerElement.getBoundingClientRect();\n\t\tconst x = e.clientX - rect.left;\n\t\tspanCellHandleMouseMove(x);\n\t}\n\n\tlet nameElement: HTMLDivElement;\n\tlet copied = $state(false);\n\n\tasync function copySpanName() {\n\t\tawait navigator.clipboard.writeText(span.name);\n\t\tcopied = true;\n\t\tsetTimeout(() => (copied = false), 2000);\n\t}\n\n\t$effect(() => {\n\t\tif (nameElement) {\n\t\t\t// Measure the natural width needed\n\t\t\tconst naturalWidth = nameElement.scrollWidth;\n\t\t\tupdateNameWidth?.(naturalWidth);\n\t\t}\n\t});\n</script>\n\n<div\n\tclass={cn('flex items-center border-b border-border last:border-b-0', isOdd ? 'bg-muted/40' : '')}\n>\n\t<!-- Span name -->\n\t<Popover.Root>\n\t\t<Popover.Trigger class=\"text-left cursor-pointer\">\n\t\t\t<div\n\t\t\t\tbind:this={nameElement}\n\t\t\t\tclass=\"flex-shrink-0 truncate border-r border-border px-3 py-1.5 font-mono text-xs\"\n\t\t\t\tstyle=\"min-width: {nameColumnWidth}px; max-width: {nameColumnWidth}px\"\n\t\t\t>\n\t\t\t\t{span.name}\n\t\t\t</div>\n\t\t</Popover.Trigger>\n\t\t<Popover.Content class=\"w-auto max-w-sm\" align=\"start\">\n\t\t\t<div class=\"flex items-start gap-2\">\n\t\t\t\t<span class=\"font-mono text-xs break-all select-text\">{span.name}</span>\n\t\t\t\t<button onclick={copySpanName} class=\"shrink-0 p-1 rounded hover:bg-muted\">\n\t\t\t\t\t{#if copied}\n\t\t\t\t\t\t<Check class=\"h-3.5 w-3.5 text-green-500\" />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<Copy class=\"h-3.5 w-3.5 text-muted-foreground\" />\n\t\t\t\t\t{/if}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</Popover.Content>\n\t</Popover.Root>\n\n\t<!-- Timeline bar -->\n\t<div\n\t\tclass=\"relative flex min-w-[200px] flex-1 items-center self-stretch\"\n\t\tbind:this={containerElement}\n\t\tonmouseenter={containerSpanCellHandleMouseEnter}\n\t\tonmousemove={containerSpanCellHandleMouseMove}\n\t\tonmouseleave={spanCellHandleMouseLeave}\n\t>\n\t\t<div class=\"relative h-4 w-full\">\n\t\t\t<div\n\t\t\t\tbind:this={barElement}\n\t\t\t\tclass={cn(\n\t\t\t\t\t'absolute h-full rounded-[2px] transition-all',\n\t\t\t\t\tspanColor.bg,\n\t\t\t\t\tisHovered && `ring-2 ${spanColor.ring}`\n\t\t\t\t)}\n\t\t\t\tstyle=\"left: {leftPercent}%; width: {Math.max(widthPercent, 0.3)}%; min-width: 2px\"\n\t\t\t\tonmouseenter={handleMouseEnter}\n\t\t\t\tonmouseleave={handleMouseLeave}\n\t\t\t\trole=\"presentation\"\n\t\t\t></div>\n\t\t</div>\n\t</div>\n\n\t<!-- Duration -->\n\t<div\n\t\tclass=\"w-[100px] flex-shrink-0 border-l border-border px-3 py-1.5 text-right font-mono text-xs text-muted-foreground\"\n\t>\n\t\t{formatDuration(span.duration)}\n\t</div>\n</div>\n","<script lang=\"ts\">\n\timport type { Span } from '$lib/types/spans';\n\timport ScrollArea from '../ui/scroll-area/scroll-area.svelte';\n\timport SpanRow from './span-row.svelte';\n\timport { preciseTimeMs } from '$lib/utils/formatters';\n\n\ttype Props = {\n\t\tspans: Span[];\n\t\ttraceDuration: number;\n\t\ttraceStartTime: string;\n\t};\n\n\tlet { spans: rawSpans, traceDuration, traceStartTime }: Props = $props();\n\n\tconst spans = $derived(\n\t\t[...rawSpans].sort((a, b) => new Date(a.startTime).getTime() - new Date(b.startTime).getTime())\n\t);\n\n\tconst traceStart = $derived(\n\t\tspans.length === 0\n\t\t\t? preciseTimeMs(traceStartTime)\n\t\t\t: spans.reduce((earliest, s) => {\n\t\t\t\t\tconst sTime = preciseTimeMs(s.startTime);\n\t\t\t\t\treturn sTime < earliest ? sTime : earliest;\n\t\t\t\t}, preciseTimeMs(spans[0].startTime))\n\t);\n\tconst durationMs = $derived(traceDuration / 1_000_000);\n\n\tlet nameColumnWidth = $state(180); // default minimum\n\n\tfunction updateNameWidth(width: number) {\n\t\tif (width > 400) {\n\t\t\twidth = 400;\n\t\t}\n\t\tif (width > nameColumnWidth) {\n\t\t\tnameColumnWidth = width;\n\t\t}\n\t}\n\n\tlet isHovered = $state(false);\n\tlet tooltipX = $state(0);\n\n\tfunction handleMouseEnter(x: number) {\n\t\tisHovered = true;\n\t\ttooltipX = x;\n\t}\n\n\tfunction handleMouseMove(x: number) {\n\t\tif (isHovered) {\n\t\t\ttooltipX = x;\n\t\t}\n\t}\n\n\tfunction handleMouseLeave() {\n\t\tisHovered = false;\n\t}\n\n\tlet timelineElement: HTMLDivElement;\n</script>\n\n<ScrollArea orientation=\"horizontal\" class=\"p-relative rounded-lg border border-border\">\n\t<div class=\"relative overflow-hidden\">\n\t\t<!-- Header -->\n\t\t<div class=\"flex border-b border-border bg-muted/30\">\n\t\t\t<div\n\t\t\t\tclass=\"flex-shrink-0 border-r border-border px-3 py-1.5 text-xs font-medium\"\n\t\t\t\tstyle=\"min-width: {nameColumnWidth}px\"\n\t\t\t>\n\t\t\t\tSpan Name\n\t\t\t</div>\n\t\t\t<div bind:this={timelineElement} class=\"min-w-[200px] flex-1 px-3 py-1.5\">\n\t\t\t\t<div class=\"flex justify-between text-xs text-muted-foreground\">\n\t\t\t\t\t<span>0ms</span>\n\t\t\t\t\t<span>{(durationMs / 2).toFixed(0)}ms</span>\n\t\t\t\t\t<span>{durationMs.toFixed(0)}ms</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclass=\"w-[100px] flex-shrink-0 border-l border-border px-3 py-1.5 text-right text-xs font-medium\"\n\t\t\t>\n\t\t\t\tDuration\n\t\t\t</div>\n\t\t</div>\n\n\t\t<!-- Spans -->\n\t\t{#each spans as span, i}\n\t\t\t<SpanRow\n\t\t\t\trow={i}\n\t\t\t\t{span}\n\t\t\t\t{traceStart}\n\t\t\t\t{traceDuration}\n\t\t\t\tisOdd={i % 2 === 1}\n\t\t\t\t{nameColumnWidth}\n\t\t\t\t{updateNameWidth}\n\t\t\t\tspanCellHandleMouseEnter={handleMouseEnter}\n\t\t\t\tspanCellHandleMouseMove={handleMouseMove}\n\t\t\t\tspanCellHandleMouseLeave={handleMouseLeave}\n\t\t\t/>\n\t\t{/each}\n\n\t\t{#if isHovered}\n\t\t\t<div\n\t\t\t\tclass=\"pointer-events-none absolute top-[28px] bottom-0 border-l border-gray-300\"\n\t\t\t\tstyle=\"left: {tooltipX + nameColumnWidth}px\"\n\t\t\t></div>\n\t\t\t<div class=\"absolute top-[1px] -translate-x-1/2\" style=\"left: {tooltipX + nameColumnWidth}px\">\n\t\t\t\t<div\n\t\t\t\t\tclass=\"rounded-md border bg-popover px-2 py-1 text-xs whitespace-nowrap text-popover-foreground shadow-md\"\n\t\t\t\t>\n\t\t\t\t\t<div class=\"font-medium\">\n\t\t\t\t\t\t{Math.round(durationMs * ((tooltipX + 1) / (timelineElement?.clientWidth || 1)))}ms\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{/if}\n\t</div>\n</ScrollArea>\n","<script lang=\"ts\">\n\timport { ExternalLink, Code } from 'lucide-svelte';\n\timport type { Framework } from '$lib/state/projects.svelte';\n\timport Highlight from 'svelte-highlight';\n\timport go from 'svelte-highlight/languages/go';\n\timport { themeState } from '$lib/state/theme.svelte';\n\timport 'svelte-highlight/styles/github-dark.css';\n\n\ttype Props = {\n\t\tframework: Framework;\n\t};\n\n\tlet { framework }: Props = $props();\n\n\t// TODO: Replace with actual documentation URLs when docs are built\n\tfunction getDocsUrl(fw: Framework): string {\n\t\tswitch (fw) {\n\t\t\tcase 'gin':\n\t\t\t\treturn 'https://docs.traceway.io/go/gin/spans';\n\t\t\tcase 'fiber':\n\t\t\t\treturn 'https://docs.traceway.io/go/fiber/spans';\n\t\t\tcase 'chi':\n\t\t\t\treturn 'https://docs.traceway.io/go/chi/spans';\n\t\t\tcase 'fasthttp':\n\t\t\t\treturn 'https://docs.traceway.io/go/fasthttp/spans';\n\t\t\tcase 'stdlib':\n\t\t\t\treturn 'https://docs.traceway.io/go/stdlib/spans';\n\t\t\tdefault:\n\t\t\t\treturn 'https://docs.traceway.io/go/spans';\n\t\t}\n\t}\n\n\tfunction getCodeExample(fw: Framework): string {\n\t\tswitch (fw) {\n\t\t\tcase 'gin':\n\t\t\t\treturn `// In your Gin handler\nfunc MyHandler(c *gin.Context) {\n // Start a span for database operation\n span := traceway.StartSpan(c, \"db.query\")\n defer span.End()\n\n // Your database operation here\n result, err := db.Query(\"SELECT * FROM users\")\n\n // Another span for cache\n cacheSpan := traceway.StartSpan(c, \"cache.set\")\n cache.Set(\"users\", result)\n cacheSpan.End()\n}`;\n\t\t\tcase 'fiber':\n\t\t\t\treturn `// In your Fiber handler\nfunc MyHandler(c *fiber.Ctx) error {\n // Start a span for database operation\n span := traceway.StartSpan(c.UserContext(), \"db.query\")\n defer span.End()\n\n // Your database operation here\n result, err := db.Query(\"SELECT * FROM users\")\n\n // Another span for cache\n cacheSpan := traceway.StartSpan(c.UserContext(), \"cache.set\")\n cache.Set(\"users\", result)\n cacheSpan.End()\n\n return c.JSON(result)\n}`;\n\t\t\tdefault:\n\t\t\t\treturn `span := traceway.StartSpan(ctx, \"db.load\")\n// perform your operations here\nspan.End()`;\n\t\t}\n\t}\n\n\tconst GO_FRAMEWORKS: Framework[] = ['gin', 'fiber', 'chi', 'fasthttp', 'stdlib', 'custom'];\n\tconst isGoFramework = $derived(GO_FRAMEWORKS.includes(framework));\n\tconst docsUrl = $derived(getDocsUrl(framework));\n\tconst codeExample = $derived(getCodeExample(framework));\n</script>\n\n<div class=\"flex flex-col items-center justify-center py-8 text-center\">\n\t<div class=\"mb-4 rounded-full bg-muted p-3\">\n\t\t<Code class=\"h-6 w-6 text-muted-foreground\" />\n\t</div>\n\t<h3 class=\"mb-2 text-lg font-semibold\">No Spans Recorded</h3>\n\t<p class=\"mb-4 max-w-md text-sm text-muted-foreground\">\n\t\tSpans allow you to track the timing of individual operations within a transaction, such as\n\t\tdatabase queries, HTTP calls, or cache operations.\n\t</p>\n\n\t{#if isGoFramework}\n\t\t<div class=\"mb-4 w-full max-w-xl text-left\">\n\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">Example usage:</p>\n\t\t\t<div\n\t\t\t\tclass=\"overflow-hidden rounded-lg text-sm {themeState.isDark ? 'dark-code' : 'light-code'}\"\n\t\t\t>\n\t\t\t\t<Highlight language={go} code={codeExample} />\n\t\t\t</div>\n\t\t</div>\n\t{/if}\n\n\t<!-- TODO: After we add the docs we should update this :/ -->\n\t<!-- <a\n\t\thref={docsUrl}\n\t\ttarget=\"_blank\"\n\t\trel=\"noopener noreferrer\"\n\t\tclass=\"text-primary inline-flex items-center gap-2 text-sm hover:underline\"\n\t>\n\t\tView Documentation\n\t\t<ExternalLink class=\"h-4 w-4\" />\n\t</a> -->\n</div>\n\n<style>\n\t/* Light theme - override dark theme defaults */\n\t:global(.light-code .hljs) {\n\t\tbackground: #f6f8fa;\n\t\tcolor: #24292e;\n\t}\n\t:global(.light-code .hljs-keyword),\n\t:global(.light-code .hljs-selector-tag) {\n\t\tcolor: #d73a49;\n\t}\n\t:global(.light-code .hljs-string),\n\t:global(.light-code .hljs-attr) {\n\t\tcolor: #032f62;\n\t}\n\t:global(.light-code .hljs-function),\n\t:global(.light-code .hljs-title) {\n\t\tcolor: #6f42c1;\n\t}\n\t:global(.light-code .hljs-comment) {\n\t\tcolor: #6a737d;\n\t}\n\t:global(.light-code .hljs-built_in) {\n\t\tcolor: #005cc5;\n\t}\n\n\t/* Dark theme - ensure dark styles apply */\n\t:global(.dark-code .hljs) {\n\t\tbackground: #0d1117;\n\t\tcolor: #c9d1d9;\n\t}\n\t:global(.dark-code .hljs-keyword),\n\t:global(.dark-code .hljs-selector-tag) {\n\t\tcolor: #ff7b72;\n\t}\n\t:global(.dark-code .hljs-string),\n\t:global(.dark-code .hljs-attr) {\n\t\tcolor: #a5d6ff;\n\t}\n\t:global(.dark-code .hljs-function),\n\t:global(.dark-code .hljs-title) {\n\t\tcolor: #d2a8ff;\n\t}\n\t:global(.dark-code .hljs-comment) {\n\t\tcolor: #8b949e;\n\t}\n\t:global(.dark-code .hljs-built_in) {\n\t\tcolor: #79c0ff;\n\t}\n</style>\n"],"names":["extract","value","defaultValue","isFunction","gotten","useDebounce","callback","wait","context","$.state","wait$","$.derived","debounced","args","$.get","resolve","reject","promise","res","rej","$.set","ctx","error","IsMounted","$.user_effect","untrack","#isMounted","SvelteResizeObserver","node","onResize","#node","#onResize","rAF","_node","resizeObserver","StateMachine","#machine","initialState","machine","simpleBox","#reducer","event","presenceMachine","Presence","#prevAnimationNameState","$.proxy","opts","Previous","watchPresenceChange","watchStatusChange","watchRefChange","currAnimationName","getAnimationName","isCurrentAnimation","state","watch","prevAnimationName","isAnimating","executeCallbacks","on","presenceState","boxWith","$$props","$$render","consequent","clamp","n","min","max","scrollAreaAttrs","createBitsAttrs","ScrollAreaRootContext","Context","ScrollAreaScrollbarContext","ScrollAreaScrollbarVisibleContext","ScrollAreaScrollbarAxisContext","ScrollAreaScrollbarSharedContext","ScrollAreaRootState","#scrollAreaNode","#viewportNode","#contentNode","#scrollbarXNode","#scrollbarYNode","#cornerWidth","#cornerHeight","#scrollbarXEnabled","#scrollbarYEnabled","attachRef","v","DOMContext","ScrollAreaViewportState","useId","root","#contentId","ScrollAreaScrollbarState","#isHorizontal","#hasThumb","isHorizontal","ScrollAreaScrollbarHoverState","#isVisible","scrollbar","scrollAreaNode","hideDelay","hideTimer","handlePointerEnter","handlePointerLeave","unsubListeners","#props","ScrollAreaScrollbarScrollState","#isHidden","debounceScrollend","_state","scrollHideDelay","viewportNode","scrollDirection","prevScrollPos","scrollPos","_","ScrollAreaScrollbarAutoState","handleResize","isOverflowX","isOverflowY","ScrollAreaScrollbarVisibleState","#thumbNode","#pointerOffset","getThumbRatio","#prevTransformStyle","sizes","pointerPos","dir","getScrollPositionFromPointer","transformStyle","getThumbOffsetFromScroll","ScrollAreaScrollbarXState","scrollbarVis","e","maxScrollPos","isScrollingWithinScrollbarBounds","toInt","getThumbSize","ScrollAreaScrollbarYState","ScrollAreaScrollbarSharedState","#rect","#prevWebkitUserSelect","#maxScrollPos","scrollbarState","scrollbarNode","handleWheel","$.user_pre_effect","x","y","target","mergeProps","ScrollAreaThumbImplState","#removeUnlinkedScrollListener","#debounceScrollEnd","#root","handleScroll","listener","addUnlinkedScrollListener","thumb","thumbRect","ScrollAreaCornerImplState","#hasSize","#width","height","#height","width","viewportSize","contentSize","ratio","scrollbarPadding","thumbSize","pointerOffset","thumbSizePx","thumbCenter","offset","thumbOffsetFromEnd","minPointerPos","maxPointerPos","scrollRange","linearScale","maxThumbPos","scrollClampRange","scrollWithoutMomentum","input","output","handler","prevPosition","win","getWindow","loop","position","isHorizontalScroll","isVerticalScroll","uid","$.props_id","ref","id","$.prop","createId","type","restProps","$.rest_props","rootState","mergedProps","$.snippet","node_1","div","root_2","$.attribute_effect","viewportState","mergedContentProps","div_1","scrollbarSharedState","isMounted","scrollbarXState","ScrollAreaScrollbarShared","scrollbarYState","scrollbarVisibleState","ScrollAreaScrollbarX","ScrollAreaScrollbarY","alternate","forceMount","scrollbarAutoState","presence","$$anchor","ScrollAreaScrollbarVisible","PresenceLayer","scrollbarScrollState","$.spread_props","scrollbarHoverState","open","ScrollAreaScrollbarHover","ScrollAreaScrollbarScroll","ScrollAreaScrollbarAuto","consequent_3","consequent_2","consequent_1","alternate_1","alternate_2","thumbState","$$arg0","present","ScrollAreaThumbImpl","$$value","cornerState","scrollAreaState","hasBothScrollbarsVisible","hasCorner","ScrollAreaCornerImpl","iconNode","Icon","$$sanitized_props","orientation","$0","cn","ScrollAreaPrimitive_Scrollbar","ScrollAreaPrimitive_Thumb","viewportRef","scrollbarXClasses","scrollbarYClasses","ScrollAreaPrimitive_Root","ScrollAreaPrimitive_Viewport","Scrollbar","ScrollAreaPrimitive_Corner","spanStartMs","preciseTimeMs","spanDurationMs","traceDurationMs","leftPercent","widthPercent","spanColors","spanColor","isHovered","barElement","handleMouseEnter","handleMouseLeave","containerElement","containerSpanCellHandleMouseEnter","rect","containerSpanCellHandleMouseMove","nameElement","copied","copySpanName","naturalWidth","$.child","Popover_Root","Popover_Trigger","text","$.reset","$.set_style","$.append","Popover_Content","div_2","root_3","span_1","button","Check","Copy","div_3","$.sibling","div_4","div_5","div_6","text_2","$.set_class","$1","$2","$.clsx","formatDuration","$.event","$$args","spans","a","b","traceStart","earliest","s","sTime","durationMs","nameColumnWidth","updateNameWidth","tooltipX","handleMouseMove","timelineElement","ScrollArea","root_1","span_2","$.each","span","i","SpanRow","$.first_child","fragment_2","div_7","div_8","getCodeExample","fw","GO_FRAMEWORKS","isGoFramework","codeExample","Code","node_2","Highlight","go","$.template_effect","themeState"],"mappings":"i5BACgB,SAAAA,GAAQC,EAAOC,EAAc,IACrCC,GAAWF,CAAK,EAAG,CAEb,MAAAG,EADSH,EACM,SACjBG,IAAW,OACJF,EACJE,CACX,QACIH,IAAU,OACHC,EACJD,CACX,CCMgB,SAAAI,GAAYC,EAAUC,EAAM,KACpCC,EAAUC,EAAO,IAAI,EACnB,MAAAC,EAAKC,EAAA,IAAYX,GAAQO,EAAM,GAAG,CAAA,WAC/BK,KAAaC,EAAM,CACpB,GAAAC,EAAAN,CAAO,IAGHA,CAAO,EAAC,SACR,aAAYM,EAACN,CAAO,EAAC,OAAO,MAG/B,KAEGO,EACAC,EACE,MAAAC,MAAc,QAAO,CAAEC,EAAKC,IAAQ,CACtCJ,EAAUG,EACVF,EAASG,CACb,CAAC,EACDC,EAAAZ,EAAO,CACH,QAAS,KACT,OAAQ,KACR,QAAAS,EACS,QAAAF,EACD,OAAAC,CAAM,EAAA,EAAA,CAEtB,UACAR,CAAO,EAAC,OAAM,SAAe,OAGpBA,CAAO,EAAA,OAEN,MAAAa,IAAMb,CAAO,EAC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GiC,GAAA,EAEF3B,EAAAC,EAAAf,EAFDQ,CAAG,EAAA,CAAA,EAEFiD,EAAAzD,EAAAc,CAAA,EAGC4C,GAASD,EAAA,uBAAWE,wBAAUJ,CAAW,KAH1CnD,EAAAU,CAAA,IAFDN,CAAG,EAEFoD,GAAA,IAAAxC,GAAAN,EAAA,EAAA,sCAC2C+C,GAAW,OAAS,YAAc,YAAY,EAAA,CAAA,MAH1FrD,CAAG,aADA8C,CAAa,GAAArR,EAAAC,CAAA,MAVlBgJ,CAAG,MAAHA,CAAG,KAFJ","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]}
\ No newline at end of file
+{"version":3,"file":"DWCgVx1V.js","sources":["../../../../../../node_modules/runed/dist/utilities/extract/extract.svelte.js","../../../../../../node_modules/runed/dist/utilities/use-debounce/use-debounce.svelte.js","../../../../../../node_modules/runed/dist/utilities/is-mounted/is-mounted.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/svelte-resize-observer.svelte.js","../../../../../../node_modules/bits-ui/dist/internal/state-machine.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/presence-layer/presence.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/utilities/presence-layer/presence-layer.svelte","../../../../../../node_modules/bits-ui/dist/internal/clamp.js","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/scroll-area.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-viewport.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-shared.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-x.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-y.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-visible.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-auto.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-scroll.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar-hover.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-scrollbar.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-thumb-impl.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-thumb.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-corner-impl.svelte","../../../../../../node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area-corner.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/clipboard-list.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/code.svelte","../../../../../../src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte","../../../../../../src/lib/components/ui/scroll-area/scroll-area.svelte","../../../../../../src/lib/components/spans/span-row.svelte","../../../../../../src/lib/components/spans/span-waterfall.svelte","../../../../../../src/lib/components/spans/span-empty-state.svelte"],"sourcesContent":["import { isFunction } from \"../../internal/utils/is.js\";\nexport function extract(value, defaultValue) {\n if (isFunction(value)) {\n const getter = value;\n const gotten = getter();\n if (gotten === undefined)\n return defaultValue;\n return gotten;\n }\n if (value === undefined)\n return defaultValue;\n return value;\n}\n","import { extract } from \"../extract/extract.svelte.js\";\n/**\n * Function that takes a callback, and returns a debounced version of it.\n * When calling the debounced function, it will wait for the specified time\n * before calling the original callback. If the debounced function is called\n * again before the time has passed, the timer will be reset.\n *\n * You can await the debounced function to get the value when it is eventually\n * called.\n *\n * The second parameter is the time to wait before calling the original callback.\n * Alternatively, it can also be a getter function that returns the time to wait.\n *\n * @see {@link https://runed.dev/docs/utilities/use-debounce}\n *\n * @param callback The callback to call when the time has passed.\n * @param wait The length of time to wait in ms, defaults to 250.\n */\nexport function useDebounce(callback, wait) {\n let context = $state(null);\n const wait$ = $derived(extract(wait, 250));\n function debounced(...args) {\n if (context) {\n // Old context will be reused so callers awaiting the promise will get the\n // new value\n if (context.timeout) {\n clearTimeout(context.timeout);\n }\n }\n else {\n // No old context, create a new one\n let resolve;\n let reject;\n const promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n context = {\n timeout: null,\n runner: null,\n promise,\n resolve: resolve,\n reject: reject,\n };\n }\n context.runner = async () => {\n // Grab the context and reset it\n // -> new debounced calls will create a new context\n if (!context)\n return;\n const ctx = context;\n context = null;\n try {\n ctx.resolve(await callback.apply(this, args));\n }\n catch (error) {\n ctx.reject(error);\n }\n };\n context.timeout = setTimeout(context.runner, wait$);\n return context.promise;\n }\n debounced.cancel = async () => {\n if (!context || context.timeout === null) {\n // Wait one event loop to see if something triggered the debounced function\n await new Promise((resolve) => setTimeout(resolve, 0));\n if (!context || context.timeout === null)\n return;\n }\n clearTimeout(context.timeout);\n context.reject(\"Cancelled\");\n context = null;\n };\n debounced.runScheduledNow = async () => {\n if (!context || !context.timeout) {\n // Wait one event loop to see if something triggered the debounced function\n await new Promise((resolve) => setTimeout(resolve, 0));\n if (!context || !context.timeout)\n return;\n }\n clearTimeout(context.timeout);\n context.timeout = null;\n await context.runner?.();\n };\n Object.defineProperty(debounced, \"pending\", {\n enumerable: true,\n get() {\n return !!context?.timeout;\n },\n });\n return debounced;\n}\n","import { untrack } from \"svelte\";\n/**\n * Returns an object with the mounted state of the component\n * that invokes this function.\n *\n * @see {@link https://runed.dev/docs/utilities/is-mounted}\n */\nexport class IsMounted {\n #isMounted = $state(false);\n constructor() {\n $effect(() => {\n untrack(() => (this.#isMounted = true));\n return () => {\n this.#isMounted = false;\n };\n });\n }\n get current() {\n return this.#isMounted;\n }\n}\n","export class SvelteResizeObserver {\n #node;\n #onResize;\n constructor(node, onResize) {\n this.#node = node;\n this.#onResize = onResize;\n this.handler = this.handler.bind(this);\n $effect(this.handler);\n }\n handler() {\n let rAF = 0;\n const _node = this.#node();\n if (!_node)\n return;\n const resizeObserver = new ResizeObserver(() => {\n cancelAnimationFrame(rAF);\n rAF = window.requestAnimationFrame(this.#onResize);\n });\n resizeObserver.observe(_node);\n return () => {\n window.cancelAnimationFrame(rAF);\n resizeObserver.unobserve(_node);\n };\n }\n}\n","import { simpleBox } from \"svelte-toolbelt\";\nexport class StateMachine {\n state;\n #machine;\n constructor(initialState, machine) {\n this.state = simpleBox(initialState);\n this.#machine = machine;\n this.dispatch = this.dispatch.bind(this);\n }\n #reducer(event) {\n // @ts-expect-error state.current is keyof M\n const nextState = this.#machine[this.state.current][event];\n return nextState ?? this.state.current;\n }\n dispatch(event) {\n this.state.current = this.#reducer(event);\n }\n}\n","import { executeCallbacks } from \"svelte-toolbelt\";\nimport { Previous, watch } from \"runed\";\nimport { on } from \"svelte/events\";\nimport { StateMachine } from \"../../../internal/state-machine.js\";\nconst presenceMachine = {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\",\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\",\n },\n unmounted: {\n MOUNT: \"mounted\",\n },\n};\nexport class Presence {\n opts;\n prevAnimationNameState = $state(\"none\");\n styles = $state({});\n initialStatus;\n previousPresent;\n machine;\n present;\n constructor(opts) {\n this.opts = opts;\n this.present = this.opts.open;\n this.initialStatus = opts.open.current ? \"mounted\" : \"unmounted\";\n this.previousPresent = new Previous(() => this.present.current);\n this.machine = new StateMachine(this.initialStatus, presenceMachine);\n this.handleAnimationEnd = this.handleAnimationEnd.bind(this);\n this.handleAnimationStart = this.handleAnimationStart.bind(this);\n watchPresenceChange(this);\n watchStatusChange(this);\n watchRefChange(this);\n }\n /**\n * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel`\n * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we\n * make sure we only trigger ANIMATION_END for the currently active animation.\n */\n handleAnimationEnd(event) {\n if (!this.opts.ref.current)\n return;\n const currAnimationName = getAnimationName(this.opts.ref.current);\n const isCurrentAnimation = currAnimationName.includes(event.animationName) || currAnimationName === \"none\";\n if (event.target === this.opts.ref.current && isCurrentAnimation) {\n this.machine.dispatch(\"ANIMATION_END\");\n }\n }\n handleAnimationStart(event) {\n if (!this.opts.ref.current)\n return;\n if (event.target === this.opts.ref.current) {\n this.prevAnimationNameState = getAnimationName(this.opts.ref.current);\n }\n }\n isPresent = $derived.by(() => {\n return [\"mounted\", \"unmountSuspended\"].includes(this.machine.state.current);\n });\n}\nfunction watchPresenceChange(state) {\n watch(() => state.present.current, () => {\n if (!state.opts.ref.current)\n return;\n const hasPresentChanged = state.present.current !== state.previousPresent.current;\n if (!hasPresentChanged)\n return;\n const prevAnimationName = state.prevAnimationNameState;\n const currAnimationName = getAnimationName(state.opts.ref.current);\n if (state.present.current) {\n state.machine.dispatch(\"MOUNT\");\n }\n else if (currAnimationName === \"none\" || state.styles.display === \"none\") {\n // If there is no exit animation or the element is hidden, animations won't run\n // so we unmount instantly\n state.machine.dispatch(\"UNMOUNT\");\n }\n else {\n /**\n * When `present` changes to `false`, we check changes to animation-name to\n * determine whether an animation has started. We chose this approach (reading\n * computed styles) because there is no `animationrun` event and `animationstart`\n * fires after `animation-delay` has expired which would be too late.\n */\n const isAnimating = prevAnimationName !== currAnimationName;\n if (state.previousPresent.current && isAnimating) {\n state.machine.dispatch(\"ANIMATION_OUT\");\n }\n else {\n state.machine.dispatch(\"UNMOUNT\");\n }\n }\n });\n}\nfunction watchStatusChange(state) {\n watch(() => state.machine.state.current, () => {\n if (!state.opts.ref.current)\n return;\n const currAnimationName = getAnimationName(state.opts.ref.current);\n state.prevAnimationNameState =\n state.machine.state.current === \"mounted\" ? currAnimationName : \"none\";\n });\n}\nfunction watchRefChange(state) {\n watch(() => state.opts.ref.current, () => {\n if (!state.opts.ref.current)\n return;\n state.styles = getComputedStyle(state.opts.ref.current);\n return executeCallbacks(on(state.opts.ref.current, \"animationstart\", state.handleAnimationStart), on(state.opts.ref.current, \"animationcancel\", state.handleAnimationEnd), on(state.opts.ref.current, \"animationend\", state.handleAnimationEnd));\n });\n}\nfunction getAnimationName(node) {\n return node ? getComputedStyle(node).animationName || \"none\" : \"none\";\n}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { PresenceLayerImplProps } from \"./types.js\";\n\timport { Presence } from \"./presence.svelte.js\";\n\n\tlet { open, forceMount, presence, ref }: PresenceLayerImplProps = $props();\n\n\tconst presenceState = new Presence({\n\t\topen: boxWith(() => open),\n\t\tref,\n\t});\n</script>\n\n{#if forceMount || open || presenceState.isPresent}\n\t{@render presence?.({ present: presenceState.isPresent })}\n{/if}\n","/**\n * Clamps a number between a minimum and maximum value.\n */\nexport function clamp(n, min, max) {\n return Math.min(max, Math.max(min, n));\n}\n","/**\n * This logic is adapted from Radix UI ScrollArea component.\n * https://github.com/radix-ui/primitives/blob/main/packages/react/scroll-area/src/ScrollArea.tsx\n * Credit to Jenna Smith (@jjenzz) for the original implementation.\n * Incredible thought must have went into solving all the intricacies of this component.\n */\nimport { Context, useDebounce, watch } from \"runed\";\nimport { untrack } from \"svelte\";\nimport { simpleBox, executeCallbacks, attachRef, DOMContext, getWindow, } from \"svelte-toolbelt\";\nimport { mergeProps, useId } from \"../../shared/index.js\";\nimport { clamp } from \"../../internal/clamp.js\";\nimport { on } from \"svelte/events\";\nimport { createBitsAttrs } from \"../../internal/attrs.js\";\nimport { StateMachine } from \"../../internal/state-machine.js\";\nimport { SvelteResizeObserver } from \"../../internal/svelte-resize-observer.svelte.js\";\nconst scrollAreaAttrs = createBitsAttrs({\n component: \"scroll-area\",\n parts: [\"root\", \"viewport\", \"corner\", \"thumb\", \"scrollbar\"],\n});\nexport const ScrollAreaRootContext = new Context(\"ScrollArea.Root\");\nexport const ScrollAreaScrollbarContext = new Context(\"ScrollArea.Scrollbar\");\nexport const ScrollAreaScrollbarVisibleContext = new Context(\"ScrollArea.ScrollbarVisible\");\nexport const ScrollAreaScrollbarAxisContext = new Context(\"ScrollArea.ScrollbarAxis\");\nexport const ScrollAreaScrollbarSharedContext = new Context(\"ScrollArea.ScrollbarShared\");\nexport class ScrollAreaRootState {\n static create(opts) {\n return ScrollAreaRootContext.set(new ScrollAreaRootState(opts));\n }\n opts;\n attachment;\n scrollAreaNode = $state(null);\n viewportNode = $state(null);\n contentNode = $state(null);\n scrollbarXNode = $state(null);\n scrollbarYNode = $state(null);\n cornerWidth = $state(0);\n cornerHeight = $state(0);\n scrollbarXEnabled = $state(false);\n scrollbarYEnabled = $state(false);\n domContext;\n constructor(opts) {\n this.opts = opts;\n this.attachment = attachRef(opts.ref, (v) => (this.scrollAreaNode = v));\n this.domContext = new DOMContext(opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n dir: this.opts.dir.current,\n style: {\n position: \"relative\",\n \"--bits-scroll-area-corner-height\": `${this.cornerHeight}px`,\n \"--bits-scroll-area-corner-width\": `${this.cornerWidth}px`,\n },\n [scrollAreaAttrs.root]: \"\",\n ...this.attachment,\n }));\n}\nexport class ScrollAreaViewportState {\n static create(opts) {\n return new ScrollAreaViewportState(opts, ScrollAreaRootContext.get());\n }\n opts;\n root;\n attachment;\n #contentId = simpleBox(useId());\n #contentRef = simpleBox(null);\n contentAttachment = attachRef(this.#contentRef, (v) => (this.root.contentNode = v));\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(opts.ref, (v) => (this.root.viewportNode = v));\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n style: {\n overflowX: this.root.scrollbarXEnabled ? \"scroll\" : \"hidden\",\n overflowY: this.root.scrollbarYEnabled ? \"scroll\" : \"hidden\",\n },\n [scrollAreaAttrs.viewport]: \"\",\n ...this.attachment,\n }));\n contentProps = $derived.by(() => ({\n id: this.#contentId.current,\n \"data-scroll-area-content\": \"\",\n /**\n * When horizontal scrollbar is visible: this element should be at least\n * as wide as its children for size calculations to work correctly.\n *\n * When horizontal scrollbar is NOT visible: this element's width should\n * be constrained by the parent container to enable `text-overflow: ellipsis`\n */\n style: { minWidth: this.root.scrollbarXEnabled ? \"fit-content\" : undefined },\n ...this.contentAttachment,\n }));\n}\nexport class ScrollAreaScrollbarState {\n static create(opts) {\n return ScrollAreaScrollbarContext.set(new ScrollAreaScrollbarState(opts, ScrollAreaRootContext.get()));\n }\n opts;\n root;\n isHorizontal = $derived.by(() => this.opts.orientation.current === \"horizontal\");\n hasThumb = $state(false);\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n watch(() => this.isHorizontal, (isHorizontal) => {\n if (isHorizontal) {\n this.root.scrollbarXEnabled = true;\n return () => {\n this.root.scrollbarXEnabled = false;\n };\n }\n else {\n this.root.scrollbarYEnabled = true;\n return () => {\n this.root.scrollbarYEnabled = false;\n };\n }\n });\n }\n}\nexport class ScrollAreaScrollbarHoverState {\n static create() {\n return new ScrollAreaScrollbarHoverState(ScrollAreaScrollbarContext.get());\n }\n scrollbar;\n root;\n isVisible = $state(false);\n constructor(scrollbar) {\n this.scrollbar = scrollbar;\n this.root = scrollbar.root;\n $effect(() => {\n const scrollAreaNode = this.root.scrollAreaNode;\n const hideDelay = this.root.opts.scrollHideDelay.current;\n let hideTimer = 0;\n if (!scrollAreaNode)\n return;\n const handlePointerEnter = () => {\n this.root.domContext.clearTimeout(hideTimer);\n untrack(() => (this.isVisible = true));\n };\n const handlePointerLeave = () => {\n if (hideTimer)\n this.root.domContext.clearTimeout(hideTimer);\n hideTimer = this.root.domContext.setTimeout(() => {\n untrack(() => {\n this.scrollbar.hasThumb = false;\n this.isVisible = false;\n });\n }, hideDelay);\n };\n const unsubListeners = executeCallbacks(on(scrollAreaNode, \"pointerenter\", handlePointerEnter), on(scrollAreaNode, \"pointerleave\", handlePointerLeave));\n return () => {\n this.root.domContext.getWindow().clearTimeout(hideTimer);\n unsubListeners();\n };\n });\n }\n props = $derived.by(() => ({\n \"data-state\": this.isVisible ? \"visible\" : \"hidden\",\n }));\n}\nexport class ScrollAreaScrollbarScrollState {\n static create() {\n return new ScrollAreaScrollbarScrollState(ScrollAreaScrollbarContext.get());\n }\n scrollbar;\n root;\n machine = new StateMachine(\"hidden\", {\n hidden: {\n SCROLL: \"scrolling\",\n },\n scrolling: {\n SCROLL_END: \"idle\",\n POINTER_ENTER: \"interacting\",\n },\n interacting: {\n SCROLL: \"interacting\",\n POINTER_LEAVE: \"idle\",\n },\n idle: {\n HIDE: \"hidden\",\n SCROLL: \"scrolling\",\n POINTER_ENTER: \"interacting\",\n },\n });\n isHidden = $derived.by(() => this.machine.state.current === \"hidden\");\n constructor(scrollbar) {\n this.scrollbar = scrollbar;\n this.root = scrollbar.root;\n const debounceScrollend = useDebounce(() => this.machine.dispatch(\"SCROLL_END\"), 100);\n $effect(() => {\n const _state = this.machine.state.current;\n const scrollHideDelay = this.root.opts.scrollHideDelay.current;\n if (_state === \"idle\") {\n const hideTimer = this.root.domContext.setTimeout(() => this.machine.dispatch(\"HIDE\"), scrollHideDelay);\n return () => this.root.domContext.clearTimeout(hideTimer);\n }\n });\n $effect(() => {\n const viewportNode = this.root.viewportNode;\n if (!viewportNode)\n return;\n const scrollDirection = this.scrollbar.isHorizontal ? \"scrollLeft\" : \"scrollTop\";\n let prevScrollPos = viewportNode[scrollDirection];\n const handleScroll = () => {\n const scrollPos = viewportNode[scrollDirection];\n const hasScrollInDirectionChanged = prevScrollPos !== scrollPos;\n if (hasScrollInDirectionChanged) {\n this.machine.dispatch(\"SCROLL\");\n debounceScrollend();\n }\n prevScrollPos = scrollPos;\n };\n const unsubListener = on(viewportNode, \"scroll\", handleScroll);\n return unsubListener;\n });\n this.onpointerenter = this.onpointerenter.bind(this);\n this.onpointerleave = this.onpointerleave.bind(this);\n }\n onpointerenter(_) {\n this.machine.dispatch(\"POINTER_ENTER\");\n }\n onpointerleave(_) {\n this.machine.dispatch(\"POINTER_LEAVE\");\n }\n props = $derived.by(() => ({\n \"data-state\": this.machine.state.current === \"hidden\" ? \"hidden\" : \"visible\",\n onpointerenter: this.onpointerenter,\n onpointerleave: this.onpointerleave,\n }));\n}\nexport class ScrollAreaScrollbarAutoState {\n static create() {\n return new ScrollAreaScrollbarAutoState(ScrollAreaScrollbarContext.get());\n }\n scrollbar;\n root;\n isVisible = $state(false);\n constructor(scrollbar) {\n this.scrollbar = scrollbar;\n this.root = scrollbar.root;\n const handleResize = useDebounce(() => {\n const viewportNode = this.root.viewportNode;\n if (!viewportNode)\n return;\n const isOverflowX = viewportNode.offsetWidth < viewportNode.scrollWidth;\n const isOverflowY = viewportNode.offsetHeight < viewportNode.scrollHeight;\n this.isVisible = this.scrollbar.isHorizontal ? isOverflowX : isOverflowY;\n }, 10);\n new SvelteResizeObserver(() => this.root.viewportNode, handleResize);\n new SvelteResizeObserver(() => this.root.contentNode, handleResize);\n }\n props = $derived.by(() => ({\n \"data-state\": this.isVisible ? \"visible\" : \"hidden\",\n }));\n}\nexport class ScrollAreaScrollbarVisibleState {\n static create() {\n return ScrollAreaScrollbarVisibleContext.set(new ScrollAreaScrollbarVisibleState(ScrollAreaScrollbarContext.get()));\n }\n scrollbar;\n root;\n thumbNode = $state(null);\n pointerOffset = $state(0);\n sizes = $state.raw({\n content: 0,\n viewport: 0,\n scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 },\n });\n thumbRatio = $derived.by(() => getThumbRatio(this.sizes.viewport, this.sizes.content));\n hasThumb = $derived.by(() => Boolean(this.thumbRatio > 0 && this.thumbRatio < 1));\n // this needs to be a $state to properly restore the transform style when the scrollbar\n // goes from a hidden to visible state, otherwise it will start at the beginning of the\n // scrollbar and flicker to the correct position after\n prevTransformStyle = $state(\"\");\n constructor(scrollbar) {\n this.scrollbar = scrollbar;\n this.root = scrollbar.root;\n $effect(() => {\n this.scrollbar.hasThumb = this.hasThumb;\n });\n $effect(() => {\n if (!this.scrollbar.hasThumb && this.thumbNode) {\n this.prevTransformStyle = this.thumbNode.style.transform;\n }\n });\n }\n setSizes(sizes) {\n this.sizes = sizes;\n }\n getScrollPosition(pointerPos, dir) {\n return getScrollPositionFromPointer({\n pointerPos,\n pointerOffset: this.pointerOffset,\n sizes: this.sizes,\n dir,\n });\n }\n onThumbPointerUp() {\n this.pointerOffset = 0;\n }\n onThumbPointerDown(pointerPos) {\n this.pointerOffset = pointerPos;\n }\n xOnThumbPositionChange() {\n if (!(this.root.viewportNode && this.thumbNode))\n return;\n const scrollPos = this.root.viewportNode.scrollLeft;\n const offset = getThumbOffsetFromScroll({\n scrollPos,\n sizes: this.sizes,\n dir: this.root.opts.dir.current,\n });\n const transformStyle = `translate3d(${offset}px, 0, 0)`;\n this.thumbNode.style.transform = transformStyle;\n this.prevTransformStyle = transformStyle;\n }\n xOnWheelScroll(scrollPos) {\n if (!this.root.viewportNode)\n return;\n this.root.viewportNode.scrollLeft = scrollPos;\n }\n xOnDragScroll(pointerPos) {\n if (!this.root.viewportNode)\n return;\n this.root.viewportNode.scrollLeft = this.getScrollPosition(pointerPos, this.root.opts.dir.current);\n }\n yOnThumbPositionChange() {\n if (!(this.root.viewportNode && this.thumbNode))\n return;\n const scrollPos = this.root.viewportNode.scrollTop;\n const offset = getThumbOffsetFromScroll({ scrollPos, sizes: this.sizes });\n const transformStyle = `translate3d(0, ${offset}px, 0)`;\n this.thumbNode.style.transform = transformStyle;\n this.prevTransformStyle = transformStyle;\n }\n yOnWheelScroll(scrollPos) {\n if (!this.root.viewportNode)\n return;\n this.root.viewportNode.scrollTop = scrollPos;\n }\n yOnDragScroll(pointerPos) {\n if (!this.root.viewportNode)\n return;\n this.root.viewportNode.scrollTop = this.getScrollPosition(pointerPos, this.root.opts.dir.current);\n }\n}\nexport class ScrollAreaScrollbarXState {\n static create(opts) {\n return ScrollAreaScrollbarAxisContext.set(new ScrollAreaScrollbarXState(opts, ScrollAreaScrollbarVisibleContext.get()));\n }\n opts;\n scrollbarVis;\n root;\n scrollbar;\n attachment;\n computedStyle = $state();\n constructor(opts, scrollbarVis) {\n this.opts = opts;\n this.scrollbarVis = scrollbarVis;\n this.root = scrollbarVis.root;\n this.scrollbar = scrollbarVis.scrollbar;\n this.attachment = attachRef(this.scrollbar.opts.ref, (v) => (this.root.scrollbarXNode = v));\n $effect(() => {\n if (!this.scrollbar.opts.ref.current)\n return;\n if (this.opts.mounted.current) {\n this.computedStyle = getComputedStyle(this.scrollbar.opts.ref.current);\n }\n });\n $effect(() => {\n // Ensure when a user scrolls down and then the scrollbar is hidden\n // that when it shows again it will be positioned correctly.\n this.onResize();\n });\n }\n onThumbPointerDown = (pointerPos) => {\n this.scrollbarVis.onThumbPointerDown(pointerPos.x);\n };\n onDragScroll = (pointerPos) => {\n this.scrollbarVis.xOnDragScroll(pointerPos.x);\n };\n onThumbPointerUp = () => {\n this.scrollbarVis.onThumbPointerUp();\n };\n onThumbPositionChange = () => {\n this.scrollbarVis.xOnThumbPositionChange();\n };\n onWheelScroll = (e, maxScrollPos) => {\n if (!this.root.viewportNode)\n return;\n const scrollPos = this.root.viewportNode.scrollLeft + e.deltaX;\n this.scrollbarVis.xOnWheelScroll(scrollPos);\n // prevent window scroll when wheeling scrollbar\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n e.preventDefault();\n }\n };\n onResize = () => {\n if (!(this.scrollbar.opts.ref.current && this.root.viewportNode && this.computedStyle))\n return;\n this.scrollbarVis.setSizes({\n content: this.root.viewportNode.scrollWidth,\n viewport: this.root.viewportNode.offsetWidth,\n scrollbar: {\n size: this.scrollbar.opts.ref.current.clientWidth,\n paddingStart: toInt(this.computedStyle.paddingLeft),\n paddingEnd: toInt(this.computedStyle.paddingRight),\n },\n });\n };\n thumbSize = $derived.by(() => {\n return getThumbSize(this.scrollbarVis.sizes);\n });\n props = $derived.by(() => ({\n id: this.scrollbar.opts.id.current,\n \"data-orientation\": \"horizontal\",\n style: {\n bottom: 0,\n left: this.root.opts.dir.current === \"rtl\"\n ? \"var(--bits-scroll-area-corner-width)\"\n : 0,\n right: this.root.opts.dir.current === \"ltr\"\n ? \"var(--bits-scroll-area-corner-width)\"\n : 0,\n \"--bits-scroll-area-thumb-width\": `${this.thumbSize}px`,\n },\n ...this.attachment,\n }));\n}\nexport class ScrollAreaScrollbarYState {\n static create(opts) {\n return ScrollAreaScrollbarAxisContext.set(new ScrollAreaScrollbarYState(opts, ScrollAreaScrollbarVisibleContext.get()));\n }\n opts;\n scrollbarVis;\n root;\n scrollbar;\n attachment;\n computedStyle = $state();\n constructor(opts, scrollbarVis) {\n this.opts = opts;\n this.scrollbarVis = scrollbarVis;\n this.root = scrollbarVis.root;\n this.scrollbar = scrollbarVis.scrollbar;\n this.attachment = attachRef(this.scrollbar.opts.ref, (v) => (this.root.scrollbarYNode = v));\n $effect(() => {\n if (!this.scrollbar.opts.ref.current)\n return;\n if (this.opts.mounted.current) {\n this.computedStyle = getComputedStyle(this.scrollbar.opts.ref.current);\n }\n });\n $effect(() => {\n // Ensure when a user scrolls down and then the scrollbar is hidden\n // that when it shows again it will be positioned correctly.\n this.onResize();\n });\n this.onThumbPointerDown = this.onThumbPointerDown.bind(this);\n this.onDragScroll = this.onDragScroll.bind(this);\n this.onThumbPointerUp = this.onThumbPointerUp.bind(this);\n this.onThumbPositionChange = this.onThumbPositionChange.bind(this);\n this.onWheelScroll = this.onWheelScroll.bind(this);\n this.onResize = this.onResize.bind(this);\n }\n onThumbPointerDown(pointerPos) {\n this.scrollbarVis.onThumbPointerDown(pointerPos.y);\n }\n onDragScroll(pointerPos) {\n this.scrollbarVis.yOnDragScroll(pointerPos.y);\n }\n onThumbPointerUp() {\n this.scrollbarVis.onThumbPointerUp();\n }\n onThumbPositionChange() {\n this.scrollbarVis.yOnThumbPositionChange();\n }\n onWheelScroll(e, maxScrollPos) {\n if (!this.root.viewportNode)\n return;\n const scrollPos = this.root.viewportNode.scrollTop + e.deltaY;\n this.scrollbarVis.yOnWheelScroll(scrollPos);\n // prevent window scroll when wheeling scrollbar\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n e.preventDefault();\n }\n }\n onResize() {\n if (!(this.scrollbar.opts.ref.current && this.root.viewportNode && this.computedStyle))\n return;\n this.scrollbarVis.setSizes({\n content: this.root.viewportNode.scrollHeight,\n viewport: this.root.viewportNode.offsetHeight,\n scrollbar: {\n size: this.scrollbar.opts.ref.current.clientHeight,\n paddingStart: toInt(this.computedStyle.paddingTop),\n paddingEnd: toInt(this.computedStyle.paddingBottom),\n },\n });\n }\n thumbSize = $derived.by(() => {\n return getThumbSize(this.scrollbarVis.sizes);\n });\n props = $derived.by(() => ({\n id: this.scrollbar.opts.id.current,\n \"data-orientation\": \"vertical\",\n style: {\n top: 0,\n right: this.root.opts.dir.current === \"ltr\" ? 0 : undefined,\n left: this.root.opts.dir.current === \"rtl\" ? 0 : undefined,\n bottom: \"var(--bits-scroll-area-corner-height)\",\n \"--bits-scroll-area-thumb-height\": `${this.thumbSize}px`,\n },\n ...this.attachment,\n }));\n}\nexport class ScrollAreaScrollbarSharedState {\n static create() {\n return ScrollAreaScrollbarSharedContext.set(new ScrollAreaScrollbarSharedState(ScrollAreaScrollbarAxisContext.get()));\n }\n scrollbarState;\n root;\n scrollbarVis;\n scrollbar;\n rect = $state.raw(null);\n prevWebkitUserSelect = $state(\"\");\n handleResize;\n handleThumbPositionChange;\n handleWheelScroll;\n handleThumbPointerDown;\n handleThumbPointerUp;\n maxScrollPos = $derived.by(() => this.scrollbarVis.sizes.content - this.scrollbarVis.sizes.viewport);\n constructor(scrollbarState) {\n this.scrollbarState = scrollbarState;\n this.root = scrollbarState.root;\n this.scrollbarVis = scrollbarState.scrollbarVis;\n this.scrollbar = scrollbarState.scrollbarVis.scrollbar;\n this.handleResize = useDebounce(() => this.scrollbarState.onResize(), 10);\n this.handleThumbPositionChange = this.scrollbarState.onThumbPositionChange;\n this.handleWheelScroll = this.scrollbarState.onWheelScroll;\n this.handleThumbPointerDown = this.scrollbarState.onThumbPointerDown;\n this.handleThumbPointerUp = this.scrollbarState.onThumbPointerUp;\n $effect(() => {\n const maxScrollPos = this.maxScrollPos;\n const scrollbarNode = this.scrollbar.opts.ref.current;\n // we want to react to the viewport node changing so we leave this here\n this.root.viewportNode;\n const handleWheel = (e) => {\n const node = e.target;\n const isScrollbarWheel = scrollbarNode?.contains(node);\n if (isScrollbarWheel)\n this.handleWheelScroll(e, maxScrollPos);\n };\n const unsubListener = on(this.root.domContext.getDocument(), \"wheel\", handleWheel, {\n passive: false,\n });\n return unsubListener;\n });\n $effect.pre(() => {\n // react to changes to this:\n this.scrollbarVis.sizes;\n untrack(() => this.handleThumbPositionChange());\n });\n // $effect.pre(() => {\n // \tthis.handleThumbPositionChange();\n // });\n new SvelteResizeObserver(() => this.scrollbar.opts.ref.current, this.handleResize);\n new SvelteResizeObserver(() => this.root.contentNode, this.handleResize);\n this.onpointerdown = this.onpointerdown.bind(this);\n this.onpointermove = this.onpointermove.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n }\n handleDragScroll(e) {\n if (!this.rect)\n return;\n const x = e.clientX - this.rect.left;\n const y = e.clientY - this.rect.top;\n this.scrollbarState.onDragScroll({ x, y });\n }\n onpointerdown(e) {\n if (e.button !== 0)\n return;\n const target = e.target;\n target.setPointerCapture(e.pointerId);\n this.rect = this.scrollbar.opts.ref.current?.getBoundingClientRect() ?? null;\n // pointer capture doesn't prevent text selection in Safari\n // so we remove text selection manually when scrolling\n this.prevWebkitUserSelect = this.root.domContext.getDocument().body.style.webkitUserSelect;\n this.root.domContext.getDocument().body.style.webkitUserSelect = \"none\";\n if (this.root.viewportNode)\n this.root.viewportNode.style.scrollBehavior = \"auto\";\n this.handleDragScroll(e);\n }\n onpointermove(e) {\n this.handleDragScroll(e);\n }\n onpointerup(e) {\n const target = e.target;\n if (target.hasPointerCapture(e.pointerId)) {\n target.releasePointerCapture(e.pointerId);\n }\n this.root.domContext.getDocument().body.style.webkitUserSelect = this.prevWebkitUserSelect;\n if (this.root.viewportNode)\n this.root.viewportNode.style.scrollBehavior = \"\";\n this.rect = null;\n }\n props = $derived.by(() => mergeProps({\n ...this.scrollbarState.props,\n style: {\n position: \"absolute\",\n ...this.scrollbarState.props.style,\n },\n [scrollAreaAttrs.scrollbar]: \"\",\n onpointerdown: this.onpointerdown,\n onpointermove: this.onpointermove,\n onpointerup: this.onpointerup,\n }));\n}\nexport class ScrollAreaThumbImplState {\n static create(opts) {\n return new ScrollAreaThumbImplState(opts, ScrollAreaScrollbarSharedContext.get());\n }\n opts;\n scrollbarState;\n attachment;\n #root;\n #removeUnlinkedScrollListener = $state();\n #debounceScrollEnd = useDebounce(() => {\n if (this.#removeUnlinkedScrollListener) {\n this.#removeUnlinkedScrollListener();\n this.#removeUnlinkedScrollListener = undefined;\n }\n }, 100);\n constructor(opts, scrollbarState) {\n this.opts = opts;\n this.scrollbarState = scrollbarState;\n this.#root = scrollbarState.root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.scrollbarState.scrollbarVis.thumbNode = v));\n $effect(() => {\n const viewportNode = this.#root.viewportNode;\n if (!viewportNode)\n return;\n const handleScroll = () => {\n this.#debounceScrollEnd();\n if (!this.#removeUnlinkedScrollListener) {\n const listener = addUnlinkedScrollListener(viewportNode, this.scrollbarState.handleThumbPositionChange);\n this.#removeUnlinkedScrollListener = listener;\n this.scrollbarState.handleThumbPositionChange();\n }\n };\n untrack(() => this.scrollbarState.handleThumbPositionChange());\n const unsubListener = on(viewportNode, \"scroll\", handleScroll);\n return unsubListener;\n });\n this.onpointerdowncapture = this.onpointerdowncapture.bind(this);\n this.onpointerup = this.onpointerup.bind(this);\n }\n onpointerdowncapture(e) {\n const thumb = e.target;\n if (!thumb)\n return;\n const thumbRect = thumb.getBoundingClientRect();\n const x = e.clientX - thumbRect.left;\n const y = e.clientY - thumbRect.top;\n this.scrollbarState.handleThumbPointerDown({ x, y });\n }\n onpointerup(_) {\n this.scrollbarState.handleThumbPointerUp();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-state\": this.scrollbarState.scrollbarVis.hasThumb ? \"visible\" : \"hidden\",\n style: {\n width: \"var(--bits-scroll-area-thumb-width)\",\n height: \"var(--bits-scroll-area-thumb-height)\",\n transform: this.scrollbarState.scrollbarVis.prevTransformStyle,\n },\n onpointerdowncapture: this.onpointerdowncapture,\n onpointerup: this.onpointerup,\n [scrollAreaAttrs.thumb]: \"\",\n ...this.attachment,\n }));\n}\nexport class ScrollAreaCornerImplState {\n static create(opts) {\n return new ScrollAreaCornerImplState(opts, ScrollAreaRootContext.get());\n }\n opts;\n root;\n attachment;\n #width = $state(0);\n #height = $state(0);\n hasSize = $derived(Boolean(this.#width && this.#height));\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n new SvelteResizeObserver(() => this.root.scrollbarXNode, () => {\n const height = this.root.scrollbarXNode?.offsetHeight || 0;\n this.root.cornerHeight = height;\n this.#height = height;\n });\n new SvelteResizeObserver(() => this.root.scrollbarYNode, () => {\n const width = this.root.scrollbarYNode?.offsetWidth || 0;\n this.root.cornerWidth = width;\n this.#width = width;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n style: {\n width: this.#width,\n height: this.#height,\n position: \"absolute\",\n right: this.root.opts.dir.current === \"ltr\" ? 0 : undefined,\n left: this.root.opts.dir.current === \"rtl\" ? 0 : undefined,\n bottom: 0,\n },\n [scrollAreaAttrs.corner]: \"\",\n ...this.attachment,\n }));\n}\nfunction toInt(value) {\n return value ? Number.parseInt(value, 10) : 0;\n}\nfunction getThumbRatio(viewportSize, contentSize) {\n const ratio = viewportSize / contentSize;\n return Number.isNaN(ratio) ? 0 : ratio;\n}\nfunction getThumbSize(sizes) {\n const ratio = getThumbRatio(sizes.viewport, sizes.content);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const thumbSize = (sizes.scrollbar.size - scrollbarPadding) * ratio;\n return Math.max(thumbSize, 18);\n}\nfunction getScrollPositionFromPointer({ pointerPos, pointerOffset, sizes, dir = \"ltr\", }) {\n const thumbSizePx = getThumbSize(sizes);\n const thumbCenter = thumbSizePx / 2;\n const offset = pointerOffset || thumbCenter;\n const thumbOffsetFromEnd = thumbSizePx - offset;\n const minPointerPos = sizes.scrollbar.paddingStart + offset;\n const maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd;\n const maxScrollPos = sizes.content - sizes.viewport;\n const scrollRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const interpolate = linearScale([minPointerPos, maxPointerPos], scrollRange);\n return interpolate(pointerPos);\n}\nfunction getThumbOffsetFromScroll({ scrollPos, sizes, dir = \"ltr\", }) {\n const thumbSizePx = getThumbSize(sizes);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const scrollbar = sizes.scrollbar.size - scrollbarPadding;\n const maxScrollPos = sizes.content - sizes.viewport;\n const maxThumbPos = scrollbar - thumbSizePx;\n const scrollClampRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const scrollWithoutMomentum = clamp(scrollPos, scrollClampRange[0], scrollClampRange[1]);\n const interpolate = linearScale([0, maxScrollPos], [0, maxThumbPos]);\n return interpolate(scrollWithoutMomentum);\n}\n// https://github.com/tmcw-up-for-adoption/simple-linear-scale/blob/master/index.js\nfunction linearScale(input, output) {\n return (value) => {\n if (input[0] === input[1] || output[0] === output[1])\n return output[0];\n const ratio = (output[1] - output[0]) / (input[1] - input[0]);\n return output[0] + ratio * (value - input[0]);\n };\n}\nfunction isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {\n return scrollPos > 0 && scrollPos < maxScrollPos;\n}\nfunction addUnlinkedScrollListener(node, handler) {\n let prevPosition = { left: node.scrollLeft, top: node.scrollTop };\n let rAF = 0;\n const win = getWindow(node);\n (function loop() {\n const position = { left: node.scrollLeft, top: node.scrollTop };\n const isHorizontalScroll = prevPosition.left !== position.left;\n const isVerticalScroll = prevPosition.top !== position.top;\n if (isHorizontalScroll || isVerticalScroll)\n handler();\n prevPosition = position;\n rAF = win.requestAnimationFrame(loop);\n })();\n return () => win.cancelAnimationFrame(rAF);\n}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { ScrollAreaRootProps } from \"../types.js\";\n\timport { ScrollAreaRootState } from \"../scroll-area.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\ttype = \"hover\",\n\t\tdir = \"ltr\",\n\t\tscrollHideDelay = 600,\n\t\tchildren,\n\t\tchild,\n\t\t...restProps\n\t}: ScrollAreaRootProps = $props();\n\n\tconst rootState = ScrollAreaRootState.create({\n\t\ttype: boxWith(() => type),\n\t\tdir: boxWith(() => dir),\n\t\tscrollHideDelay: boxWith(() => scrollHideDelay),\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, rootState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { ScrollAreaViewportProps } from \"../types.js\";\n\timport { ScrollAreaViewportState } from \"../scroll-area.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tchildren,\n\t\t...restProps\n\t}: ScrollAreaViewportProps = $props();\n\n\tconst viewportState = ScrollAreaViewportState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, viewportState.props));\n\tconst mergedContentProps = $derived(mergeProps({}, viewportState.contentProps));\n</script>\n\n<div {...mergedProps}>\n\t<div {...mergedContentProps}>\n\t\t{@render children?.()}\n\t</div>\n</div>\n\n<style>\n\t/* Hide scrollbars cross browser and enable momentum scroll for touch devices */\n\t:global([data-scroll-area-viewport]) {\n\t\tscrollbar-width: none !important;\n\t\t-ms-overflow-style: none !important;\n\t\t-webkit-overflow-scrolling: touch !important;\n\t}\n\t:global([data-scroll-area-viewport])::-webkit-scrollbar {\n\t\tdisplay: none !important;\n\t}\n\n\t:global(:where([data-scroll-area-viewport])) {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: stretch;\n\t}\n\t:global(:where([data-scroll-area-content])) {\n\t\tflex-grow: 1;\n\t}\n</style>\n","<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport { ScrollAreaScrollbarSharedState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\n\tlet { child, children, ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst scrollbarSharedState = ScrollAreaScrollbarSharedState.create();\n\n\tconst mergedProps = $derived(mergeProps(restProps, scrollbarSharedState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { IsMounted } from \"runed\";\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { ScrollAreaScrollbarXState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarShared from \"./scroll-area-scrollbar-shared.svelte\";\n\n\tlet { ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst isMounted = new IsMounted();\n\n\tconst scrollbarXState = ScrollAreaScrollbarXState.create({\n\t\tmounted: boxWith(() => isMounted.current),\n\t});\n\t// oxlint-disable-next-line no-explicit-any\n\tconst mergedProps = $derived(mergeProps(restProps, scrollbarXState.props)) as any;\n</script>\n\n<ScrollAreaScrollbarShared {...mergedProps} />\n","<script lang=\"ts\">\n\timport { IsMounted } from \"runed\";\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { ScrollAreaScrollbarYState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarShared from \"./scroll-area-scrollbar-shared.svelte\";\n\n\tlet { ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst isMounted = new IsMounted();\n\n\tconst scrollbarYState = ScrollAreaScrollbarYState.create({\n\t\tmounted: boxWith(() => isMounted.current),\n\t});\n\n\t// oxlint-disable-next-line no-explicit-any\n\tconst mergedProps = $derived(mergeProps(restProps, scrollbarYState.props)) as any;\n</script>\n\n<ScrollAreaScrollbarShared {...mergedProps} />\n","<script lang=\"ts\">\n\timport { ScrollAreaScrollbarVisibleState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarX from \"./scroll-area-scrollbar-x.svelte\";\n\timport ScrollAreaScrollbarY from \"./scroll-area-scrollbar-y.svelte\";\n\n\tlet { ...restProps }: Omit<_ScrollbarStubProps, \"forceMount\"> = $props();\n\n\tconst scrollbarVisibleState = ScrollAreaScrollbarVisibleState.create();\n</script>\n\n{#if scrollbarVisibleState.scrollbar.opts.orientation.current === \"horizontal\"}\n\t<ScrollAreaScrollbarX {...restProps} />\n{:else}\n\t<ScrollAreaScrollbarY {...restProps} />\n{/if}\n","<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport { ScrollAreaScrollbarAutoState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarVisible from \"./scroll-area-scrollbar-visible.svelte\";\n\timport PresenceLayer from \"../../utilities/presence-layer/presence-layer.svelte\";\n\n\tlet { forceMount = false, ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst scrollbarAutoState = ScrollAreaScrollbarAutoState.create();\n\tconst mergedProps = $derived(mergeProps(restProps, scrollbarAutoState.props));\n</script>\n\n<PresenceLayer\n\topen={forceMount || scrollbarAutoState.isVisible}\n\tref={scrollbarAutoState.scrollbar.opts.ref}\n>\n\t{#snippet presence()}\n\t\t<ScrollAreaScrollbarVisible {...mergedProps} />\n\t{/snippet}\n</PresenceLayer>\n","<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport { ScrollAreaScrollbarScrollState } from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarVisible from \"./scroll-area-scrollbar-visible.svelte\";\n\timport PresenceLayer from \"../../utilities/presence-layer/presence-layer.svelte\";\n\n\tlet { forceMount = false, ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst scrollbarScrollState = ScrollAreaScrollbarScrollState.create();\n\n\tconst mergedProps = $derived(mergeProps(restProps, scrollbarScrollState.props));\n</script>\n\n<PresenceLayer\n\t{...mergedProps}\n\topen={forceMount || !scrollbarScrollState.isHidden}\n\tref={scrollbarScrollState.scrollbar.opts.ref}\n>\n\t{#snippet presence()}\n\t\t<ScrollAreaScrollbarVisible {...mergedProps} />\n\t{/snippet}\n</PresenceLayer>\n","<script lang=\"ts\">\n\timport { mergeProps } from \"svelte-toolbelt\";\n\timport {\n\t\tScrollAreaScrollbarAutoState,\n\t\tScrollAreaScrollbarHoverState,\n\t} from \"../scroll-area.svelte.js\";\n\timport type { _ScrollbarStubProps } from \"../types.js\";\n\timport ScrollAreaScrollbarVisible from \"./scroll-area-scrollbar-visible.svelte\";\n\timport PresenceLayer from \"../../utilities/presence-layer/presence-layer.svelte\";\n\n\tlet { forceMount = false, ...restProps }: _ScrollbarStubProps = $props();\n\n\tconst scrollbarHoverState = ScrollAreaScrollbarHoverState.create();\n\tconst scrollbarAutoState = ScrollAreaScrollbarAutoState.create();\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, scrollbarHoverState.props, scrollbarAutoState.props, {\n\t\t\t\"data-state\": scrollbarHoverState.isVisible ? \"visible\" : \"hidden\",\n\t\t})\n\t);\n\n\tconst open = $derived(\n\t\tforceMount || (scrollbarHoverState.isVisible && scrollbarAutoState.isVisible)\n\t);\n</script>\n\n<PresenceLayer {open} ref={scrollbarAutoState.scrollbar.opts.ref}>\n\t{#snippet presence()}\n\t\t<ScrollAreaScrollbarVisible {...mergedProps} />\n\t{/snippet}\n</PresenceLayer>\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { ScrollAreaScrollbarProps } from \"../types.js\";\n\timport { ScrollAreaScrollbarState } from \"../scroll-area.svelte.js\";\n\timport ScrollAreaScrollbarAuto from \"./scroll-area-scrollbar-auto.svelte\";\n\timport ScrollAreaScrollbarScroll from \"./scroll-area-scrollbar-scroll.svelte\";\n\timport ScrollAreaScrollbarHover from \"./scroll-area-scrollbar-hover.svelte\";\n\timport ScrollAreaScrollbarVisible from \"./scroll-area-scrollbar-visible.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\torientation,\n\t\t...restProps\n\t}: ScrollAreaScrollbarProps = $props();\n\n\tconst scrollbarState = ScrollAreaScrollbarState.create({\n\t\torientation: boxWith(() => orientation),\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst type = $derived(scrollbarState.root.opts.type.current);\n</script>\n\n{#if type === \"hover\"}\n\t<ScrollAreaScrollbarHover {...restProps} {id} />\n{:else if type === \"scroll\"}\n\t<ScrollAreaScrollbarScroll {...restProps} {id} />\n{:else if type === \"auto\"}\n\t<ScrollAreaScrollbarAuto {...restProps} {id} />\n{:else if type === \"always\"}\n\t<ScrollAreaScrollbarVisible {...restProps} {id} />\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { IsMounted } from \"runed\";\n\timport type { ScrollAreaThumbProps } from \"../types.js\";\n\timport { ScrollAreaThumbImplState } from \"../scroll-area.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid,\n\t\tchild,\n\t\tchildren,\n\t\tpresent,\n\t\t...restProps\n\t}: Omit<ScrollAreaThumbProps, \"forceMount\" | \"id\"> & {\n\t\tid: string;\n\t\tpresent: boolean;\n\t} = $props();\n\n\tconst isMounted = new IsMounted();\n\n\tconst thumbState = ScrollAreaThumbImplState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tmounted: boxWith(() => isMounted.current),\n\t});\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, thumbState.props, {\n\t\t\tstyle: {\n\t\t\t\thidden: !present,\n\t\t\t},\n\t\t})\n\t);\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport type { ScrollAreaThumbProps } from \"../types.js\";\n\timport { ScrollAreaScrollbarVisibleContext } from \"../scroll-area.svelte.js\";\n\timport ScrollAreaThumbImpl from \"./scroll-area-thumb-impl.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport PresenceLayer from \"../../utilities/presence-layer/presence-layer.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tforceMount = false,\n\t\t...restProps\n\t}: ScrollAreaThumbProps = $props();\n\n\tconst scrollbarState = ScrollAreaScrollbarVisibleContext.get();\n</script>\n\n<PresenceLayer open={forceMount || scrollbarState.hasThumb} ref={scrollbarState.scrollbar.opts.ref}>\n\t{#snippet presence({ present })}\n\t\t<ScrollAreaThumbImpl {...restProps} {id} bind:ref {present} />\n\t{/snippet}\n</PresenceLayer>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { ScrollAreaCornerProps } from \"../types.js\";\n\timport { ScrollAreaCornerImplState } from \"../scroll-area.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid,\n\t\tchildren,\n\t\tchild,\n\t\t...restProps\n\t}: Omit<ScrollAreaCornerProps, \"id\"> & {\n\t\tid: string;\n\t} = $props();\n\n\tconst cornerState = ScrollAreaCornerImplState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, cornerState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport type { ScrollAreaCornerProps } from \"../types.js\";\n\timport { ScrollAreaRootContext } from \"../scroll-area.svelte.js\";\n\timport ScrollAreaCornerImpl from \"./scroll-area-corner-impl.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: ScrollAreaCornerProps = $props();\n\n\tconst scrollAreaState = ScrollAreaRootContext.get();\n\n\tconst hasBothScrollbarsVisible = $derived(\n\t\tBoolean(scrollAreaState.scrollbarXNode && scrollAreaState.scrollbarYNode)\n\t);\n\tconst hasCorner = $derived(\n\t\tscrollAreaState.opts.type.current !== \"scroll\" && hasBothScrollbarsVisible\n\t);\n</script>\n\n{#if hasCorner}\n\t<ScrollAreaCornerImpl {...restProps} {id} bind:ref />\n{/if}\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"rect\", { \"width\": \"8\", \"height\": \"4\", \"x\": \"8\", \"y\": \"2\", \"rx\": \"1\", \"ry\": \"1\" }], [\"path\", { \"d\": \"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\" }], [\"path\", { \"d\": \"M12 11h4\" }], [\"path\", { \"d\": \"M12 16h4\" }], [\"path\", { \"d\": \"M8 11h.01\" }], [\"path\", { \"d\": \"M8 16h.01\" }]];\n/**\n * @component @name ClipboardList\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI0IiB4PSI4IiB5PSIyIiByeD0iMSIgcnk9IjEiIC8+CiAgPHBhdGggZD0iTTE2IDRoMmEyIDIgMCAwIDEgMiAydjE0YTIgMiAwIDAgMS0yIDJINmEyIDIgMCAwIDEtMi0yVjZhMiAyIDAgMCAxIDItMmgyIiAvPgogIDxwYXRoIGQ9Ik0xMiAxMWg0IiAvPgogIDxwYXRoIGQ9Ik0xMiAxNmg0IiAvPgogIDxwYXRoIGQ9Ik04IDExaC4wMSIgLz4KICA8cGF0aCBkPSJNOCAxNmguMDEiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/clipboard-list\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"clipboard-list\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"m16 18 6-6-6-6\" }], [\"path\", { \"d\": \"m8 6-6 6 6 6\" }]];\n/**\n * @component @name Code\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTYgMTggNi02LTYtNiIgLz4KICA8cGF0aCBkPSJtOCA2LTYgNiA2IDYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/code\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"code\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { ScrollArea as ScrollAreaPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\torientation = \"vertical\",\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChild<ScrollAreaPrimitive.ScrollbarProps> = $props();\n</script>\n\n<ScrollAreaPrimitive.Scrollbar\n\tbind:ref\n\tdata-slot=\"scroll-area-scrollbar\"\n\t{orientation}\n\tclass={cn(\n\t\t\"flex touch-none p-px transition-colors select-none\",\n\t\torientation === \"vertical\" && \"h-full w-2.5 border-s border-s-transparent\",\n\t\torientation === \"horizontal\" && \"h-2.5 flex-col border-t border-t-transparent\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n\t<ScrollAreaPrimitive.Thumb\n\t\tdata-slot=\"scroll-area-thumb\"\n\t\tclass=\"bg-border relative flex-1 rounded-full\"\n\t/>\n</ScrollAreaPrimitive.Scrollbar>\n","<script lang=\"ts\">\n\timport { ScrollArea as ScrollAreaPrimitive } from \"bits-ui\";\n\timport { Scrollbar } from \"./index.js\";\n\timport { cn, type WithoutChild } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tviewportRef = $bindable(null),\n\t\tclass: className,\n\t\torientation = \"vertical\",\n\t\tscrollbarXClasses = \"\",\n\t\tscrollbarYClasses = \"\",\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChild<ScrollAreaPrimitive.RootProps> & {\n\t\torientation?: \"vertical\" | \"horizontal\" | \"both\" | undefined;\n\t\tscrollbarXClasses?: string | undefined;\n\t\tscrollbarYClasses?: string | undefined;\n\t\tviewportRef?: HTMLElement | null;\n\t} = $props();\n</script>\n\n<ScrollAreaPrimitive.Root\n\tbind:ref\n\tdata-slot=\"scroll-area\"\n\tclass={cn(\"relative\", className)}\n\t{...restProps}\n>\n\t<ScrollAreaPrimitive.Viewport\n\t\tbind:ref={viewportRef}\n\t\tdata-slot=\"scroll-area-viewport\"\n\t\tclass=\"ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1\"\n\t>\n\t\t{@render children?.()}\n\t</ScrollAreaPrimitive.Viewport>\n\t{#if orientation === \"vertical\" || orientation === \"both\"}\n\t\t<Scrollbar orientation=\"vertical\" class={scrollbarYClasses} />\n\t{/if}\n\t{#if orientation === \"horizontal\" || orientation === \"both\"}\n\t\t<Scrollbar orientation=\"horizontal\" class={scrollbarXClasses} />\n\t{/if}\n\t<ScrollAreaPrimitive.Corner />\n</ScrollAreaPrimitive.Root>\n","<script lang=\"ts\">\n\timport type { Span } from '$lib/types/spans';\n\timport { cn } from '$lib/utils';\n\timport { formatDuration, preciseTimeMs } from '$lib/utils/formatters';\n\timport * as Popover from '$lib/components/ui/popover';\n\timport Copy from 'lucide-svelte/icons/copy';\n\timport Check from 'lucide-svelte/icons/check';\n\n\ttype Props = {\n\t\trow: number;\n\t\tspan: Span;\n\t\ttraceStart: number;\n\t\ttraceDuration: number;\n\t\tisOdd: boolean;\n\t\tnameColumnWidth: number;\n\t\tupdateNameWidth: (width: number) => void;\n\n\t\tspanCellHandleMouseEnter: (x: number) => void;\n\t\tspanCellHandleMouseMove: (x: number) => void;\n\t\tspanCellHandleMouseLeave: () => void;\n\t};\n\n\tlet {\n\t\trow,\n\t\tspan,\n\t\ttraceStart,\n\t\ttraceDuration,\n\t\tisOdd,\n\t\tnameColumnWidth,\n\t\tupdateNameWidth,\n\t\tspanCellHandleMouseEnter,\n\t\tspanCellHandleMouseMove,\n\t\tspanCellHandleMouseLeave\n\t}: Props = $props();\n\n\tconst spanStartMs = $derived(preciseTimeMs(span.startTime) - traceStart);\n\tconst spanDurationMs = $derived(span.duration / 1_000_000);\n\tconst traceDurationMs = $derived(traceDuration / 1_000_000);\n\n\t// Calculate position and width as percentages\n\tconst leftPercent = $derived(Math.max(0, (spanStartMs / traceDurationMs) * 100));\n\tconst widthPercent = $derived(\n\t\tMath.min(100 - leftPercent, (spanDurationMs / traceDurationMs) * 100)\n\t);\n\n\tconst spanColors = [\n\t\t{ bg: 'bg-blue-400', ring: 'ring-blue-500' },\n\t\t{ bg: 'bg-green-400', ring: 'ring-green-500' },\n\t\t{ bg: 'bg-purple-400', ring: 'ring-purple-500' },\n\t\t{ bg: 'bg-orange-400', ring: 'ring-orange-500' },\n\t\t{ bg: 'bg-red-400', ring: 'ring-red-500' },\n\t\t{ bg: 'bg-amber-400', ring: 'ring-amber-500' },\n\t\t{ bg: 'bg-cyan-400', ring: 'ring-cyan-500' },\n\t\t{ bg: 'bg-pink-400', ring: 'ring-pink-500' },\n\t\t{ bg: 'bg-indigo-400', ring: 'ring-indigo-500' },\n\t\t{ bg: 'bg-teal-400', ring: 'ring-teal-500' },\n\t\t{ bg: 'bg-lime-400', ring: 'ring-lime-500' },\n\t\t{ bg: 'bg-rose-400', ring: 'ring-rose-500' },\n\t\t{ bg: 'bg-sky-400', ring: 'ring-sky-500' },\n\t\t{ bg: 'bg-slate-400', ring: 'ring-slate-500' }\n\t];\n\n\tconst spanColor = $derived(spanColors[row % spanColors.length]);\n\n\t// Tooltip state (this is the tooltip on top of the line)\n\tlet isHovered = $state(false);\n\tlet barElement: HTMLDivElement;\n\n\tfunction handleMouseEnter(e: MouseEvent) {\n\t\tisHovered = true;\n\t}\n\n\tfunction handleMouseLeave() {\n\t\tisHovered = false;\n\t}\n\n\tlet containerElement: HTMLDivElement;\n\tfunction containerSpanCellHandleMouseEnter(e: MouseEvent) {\n\t\tconst rect = containerElement.getBoundingClientRect();\n\t\tconst x = e.clientX - rect.left;\n\t\tspanCellHandleMouseEnter(x);\n\t}\n\tfunction containerSpanCellHandleMouseMove(e: MouseEvent) {\n\t\tconst rect = containerElement.getBoundingClientRect();\n\t\tconst x = e.clientX - rect.left;\n\t\tspanCellHandleMouseMove(x);\n\t}\n\n\tlet nameElement: HTMLDivElement;\n\tlet copied = $state(false);\n\n\tasync function copySpanName() {\n\t\tawait navigator.clipboard.writeText(span.name);\n\t\tcopied = true;\n\t\tsetTimeout(() => (copied = false), 2000);\n\t}\n\n\t$effect(() => {\n\t\tif (nameElement) {\n\t\t\t// Measure the natural width needed\n\t\t\tconst naturalWidth = nameElement.scrollWidth;\n\t\t\tupdateNameWidth?.(naturalWidth);\n\t\t}\n\t});\n</script>\n\n<div\n\tclass={cn('flex items-center border-b border-border last:border-b-0', isOdd ? 'bg-muted/40' : '')}\n>\n\t<!-- Span name -->\n\t<Popover.Root>\n\t\t<Popover.Trigger class=\"text-left cursor-pointer\">\n\t\t\t<div\n\t\t\t\tbind:this={nameElement}\n\t\t\t\tclass=\"flex-shrink-0 truncate border-r border-border px-3 py-1.5 font-mono text-xs\"\n\t\t\t\tstyle=\"min-width: {nameColumnWidth}px; max-width: {nameColumnWidth}px\"\n\t\t\t>\n\t\t\t\t{span.name}\n\t\t\t</div>\n\t\t</Popover.Trigger>\n\t\t<Popover.Content class=\"w-auto max-w-sm\" align=\"start\">\n\t\t\t<div class=\"flex items-start gap-2\">\n\t\t\t\t<span class=\"font-mono text-xs break-all select-text\">{span.name}</span>\n\t\t\t\t<button onclick={copySpanName} class=\"shrink-0 p-1 rounded hover:bg-muted\">\n\t\t\t\t\t{#if copied}\n\t\t\t\t\t\t<Check class=\"h-3.5 w-3.5 text-green-500\" />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<Copy class=\"h-3.5 w-3.5 text-muted-foreground\" />\n\t\t\t\t\t{/if}\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</Popover.Content>\n\t</Popover.Root>\n\n\t<!-- Timeline bar -->\n\t<div\n\t\tclass=\"relative flex min-w-[200px] flex-1 items-center self-stretch\"\n\t\tbind:this={containerElement}\n\t\tonmouseenter={containerSpanCellHandleMouseEnter}\n\t\tonmousemove={containerSpanCellHandleMouseMove}\n\t\tonmouseleave={spanCellHandleMouseLeave}\n\t>\n\t\t<div class=\"relative h-4 w-full\">\n\t\t\t<div\n\t\t\t\tbind:this={barElement}\n\t\t\t\tclass={cn(\n\t\t\t\t\t'absolute h-full rounded-[2px] transition-all',\n\t\t\t\t\tspanColor.bg,\n\t\t\t\t\tisHovered && `ring-2 ${spanColor.ring}`\n\t\t\t\t)}\n\t\t\t\tstyle=\"left: {leftPercent}%; width: {Math.max(widthPercent, 0.3)}%; min-width: 2px\"\n\t\t\t\tonmouseenter={handleMouseEnter}\n\t\t\t\tonmouseleave={handleMouseLeave}\n\t\t\t\trole=\"presentation\"\n\t\t\t></div>\n\t\t</div>\n\t</div>\n\n\t<!-- Duration -->\n\t<div\n\t\tclass=\"w-[100px] flex-shrink-0 border-l border-border px-3 py-1.5 text-right font-mono text-xs text-muted-foreground\"\n\t>\n\t\t{formatDuration(span.duration)}\n\t</div>\n</div>\n","<script lang=\"ts\">\n\timport type { Span } from '$lib/types/spans';\n\timport ScrollArea from '../ui/scroll-area/scroll-area.svelte';\n\timport SpanRow from './span-row.svelte';\n\timport { preciseTimeMs } from '$lib/utils/formatters';\n\n\ttype Props = {\n\t\tspans: Span[];\n\t\ttraceDuration: number;\n\t\ttraceStartTime: string;\n\t};\n\n\tlet { spans: rawSpans, traceDuration, traceStartTime }: Props = $props();\n\n\tconst spans = $derived(\n\t\t[...rawSpans].sort((a, b) => new Date(a.startTime).getTime() - new Date(b.startTime).getTime())\n\t);\n\n\tconst traceStart = $derived(\n\t\tspans.length === 0\n\t\t\t? preciseTimeMs(traceStartTime)\n\t\t\t: spans.reduce((earliest, s) => {\n\t\t\t\t\tconst sTime = preciseTimeMs(s.startTime);\n\t\t\t\t\treturn sTime < earliest ? sTime : earliest;\n\t\t\t\t}, preciseTimeMs(spans[0].startTime))\n\t);\n\tconst durationMs = $derived(traceDuration / 1_000_000);\n\n\tlet nameColumnWidth = $state(180); // default minimum\n\n\tfunction updateNameWidth(width: number) {\n\t\tif (width > 400) {\n\t\t\twidth = 400;\n\t\t}\n\t\tif (width > nameColumnWidth) {\n\t\t\tnameColumnWidth = width;\n\t\t}\n\t}\n\n\tlet isHovered = $state(false);\n\tlet tooltipX = $state(0);\n\n\tfunction handleMouseEnter(x: number) {\n\t\tisHovered = true;\n\t\ttooltipX = x;\n\t}\n\n\tfunction handleMouseMove(x: number) {\n\t\tif (isHovered) {\n\t\t\ttooltipX = x;\n\t\t}\n\t}\n\n\tfunction handleMouseLeave() {\n\t\tisHovered = false;\n\t}\n\n\tlet timelineElement: HTMLDivElement;\n</script>\n\n<ScrollArea orientation=\"horizontal\" class=\"p-relative rounded-lg border border-border\">\n\t<div class=\"relative overflow-hidden\">\n\t\t<!-- Header -->\n\t\t<div class=\"flex border-b border-border bg-muted/30\">\n\t\t\t<div\n\t\t\t\tclass=\"flex-shrink-0 border-r border-border px-3 py-1.5 text-xs font-medium\"\n\t\t\t\tstyle=\"min-width: {nameColumnWidth}px\"\n\t\t\t>\n\t\t\t\tSpan Name\n\t\t\t</div>\n\t\t\t<div bind:this={timelineElement} class=\"min-w-[200px] flex-1 px-3 py-1.5\">\n\t\t\t\t<div class=\"flex justify-between text-xs text-muted-foreground\">\n\t\t\t\t\t<span>0ms</span>\n\t\t\t\t\t<span>{(durationMs / 2).toFixed(0)}ms</span>\n\t\t\t\t\t<span>{durationMs.toFixed(0)}ms</span>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tclass=\"w-[100px] flex-shrink-0 border-l border-border px-3 py-1.5 text-right text-xs font-medium\"\n\t\t\t>\n\t\t\t\tDuration\n\t\t\t</div>\n\t\t</div>\n\n\t\t<!-- Spans -->\n\t\t{#each spans as span, i}\n\t\t\t<SpanRow\n\t\t\t\trow={i}\n\t\t\t\t{span}\n\t\t\t\t{traceStart}\n\t\t\t\t{traceDuration}\n\t\t\t\tisOdd={i % 2 === 1}\n\t\t\t\t{nameColumnWidth}\n\t\t\t\t{updateNameWidth}\n\t\t\t\tspanCellHandleMouseEnter={handleMouseEnter}\n\t\t\t\tspanCellHandleMouseMove={handleMouseMove}\n\t\t\t\tspanCellHandleMouseLeave={handleMouseLeave}\n\t\t\t/>\n\t\t{/each}\n\n\t\t{#if isHovered}\n\t\t\t<div\n\t\t\t\tclass=\"pointer-events-none absolute top-[28px] bottom-0 border-l border-gray-300\"\n\t\t\t\tstyle=\"left: {tooltipX + nameColumnWidth}px\"\n\t\t\t></div>\n\t\t\t<div class=\"absolute top-[1px] -translate-x-1/2\" style=\"left: {tooltipX + nameColumnWidth}px\">\n\t\t\t\t<div\n\t\t\t\t\tclass=\"rounded-md border bg-popover px-2 py-1 text-xs whitespace-nowrap text-popover-foreground shadow-md\"\n\t\t\t\t>\n\t\t\t\t\t<div class=\"font-medium\">\n\t\t\t\t\t\t{Math.round(durationMs * ((tooltipX + 1) / (timelineElement?.clientWidth || 1)))}ms\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{/if}\n\t</div>\n</ScrollArea>\n","<script lang=\"ts\">\n\timport { ExternalLink, Code } from 'lucide-svelte';\n\timport type { Framework } from '$lib/state/projects.svelte';\n\timport Highlight from 'svelte-highlight';\n\timport go from 'svelte-highlight/languages/go';\n\timport { themeState } from '$lib/state/theme.svelte';\n\timport 'svelte-highlight/styles/github-dark.css';\n\n\ttype Props = {\n\t\tframework: Framework;\n\t};\n\n\tlet { framework }: Props = $props();\n\n\t// TODO: Replace with actual documentation URLs when docs are built\n\tfunction getDocsUrl(fw: Framework): string {\n\t\tswitch (fw) {\n\t\t\tcase 'gin':\n\t\t\t\treturn 'https://docs.traceway.io/go/gin/spans';\n\t\t\tcase 'fiber':\n\t\t\t\treturn 'https://docs.traceway.io/go/fiber/spans';\n\t\t\tcase 'chi':\n\t\t\t\treturn 'https://docs.traceway.io/go/chi/spans';\n\t\t\tcase 'fasthttp':\n\t\t\t\treturn 'https://docs.traceway.io/go/fasthttp/spans';\n\t\t\tcase 'stdlib':\n\t\t\t\treturn 'https://docs.traceway.io/go/stdlib/spans';\n\t\t\tdefault:\n\t\t\t\treturn 'https://docs.traceway.io/go/spans';\n\t\t}\n\t}\n\n\tfunction getCodeExample(fw: Framework): string {\n\t\tswitch (fw) {\n\t\t\tcase 'gin':\n\t\t\t\treturn `// In your Gin handler\nfunc MyHandler(c *gin.Context) {\n // Start a span for database operation\n span := traceway.StartSpan(c, \"db.query\")\n defer span.End()\n\n // Your database operation here\n result, err := db.Query(\"SELECT * FROM users\")\n\n // Another span for cache\n cacheSpan := traceway.StartSpan(c, \"cache.set\")\n cache.Set(\"users\", result)\n cacheSpan.End()\n}`;\n\t\t\tcase 'fiber':\n\t\t\t\treturn `// In your Fiber handler\nfunc MyHandler(c *fiber.Ctx) error {\n // Start a span for database operation\n span := traceway.StartSpan(c.UserContext(), \"db.query\")\n defer span.End()\n\n // Your database operation here\n result, err := db.Query(\"SELECT * FROM users\")\n\n // Another span for cache\n cacheSpan := traceway.StartSpan(c.UserContext(), \"cache.set\")\n cache.Set(\"users\", result)\n cacheSpan.End()\n\n return c.JSON(result)\n}`;\n\t\t\tdefault:\n\t\t\t\treturn `span := traceway.StartSpan(ctx, \"db.load\")\n// perform your operations here\nspan.End()`;\n\t\t}\n\t}\n\n\tconst GO_FRAMEWORKS: Framework[] = ['gin', 'fiber', 'chi', 'fasthttp', 'stdlib', 'custom'];\n\tconst isGoFramework = $derived(GO_FRAMEWORKS.includes(framework));\n\tconst docsUrl = $derived(getDocsUrl(framework));\n\tconst codeExample = $derived(getCodeExample(framework));\n</script>\n\n<div class=\"flex flex-col items-center justify-center py-8 text-center\">\n\t<div class=\"mb-4 rounded-full bg-muted p-3\">\n\t\t<Code class=\"h-6 w-6 text-muted-foreground\" />\n\t</div>\n\t<h3 class=\"mb-2 text-lg font-semibold\">No Spans Recorded</h3>\n\t<p class=\"mb-4 max-w-md text-sm text-muted-foreground\">\n\t\tSpans allow you to track the timing of individual operations within a transaction, such as\n\t\tdatabase queries, HTTP calls, or cache operations.\n\t</p>\n\n\t{#if isGoFramework}\n\t\t<div class=\"mb-4 w-full max-w-xl text-left\">\n\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">Example usage:</p>\n\t\t\t<div\n\t\t\t\tclass=\"overflow-hidden rounded-lg text-sm {themeState.isDark ? 'dark-code' : 'light-code'}\"\n\t\t\t>\n\t\t\t\t<Highlight language={go} code={codeExample} />\n\t\t\t</div>\n\t\t</div>\n\t{/if}\n\n\t<!-- TODO: After we add the docs we should update this :/ -->\n\t<!-- <a\n\t\thref={docsUrl}\n\t\ttarget=\"_blank\"\n\t\trel=\"noopener noreferrer\"\n\t\tclass=\"text-primary inline-flex items-center gap-2 text-sm hover:underline\"\n\t>\n\t\tView Documentation\n\t\t<ExternalLink class=\"h-4 w-4\" />\n\t</a> -->\n</div>\n\n<style>\n\t/* Light theme - override dark theme defaults */\n\t:global(.light-code .hljs) {\n\t\tbackground: #f6f8fa;\n\t\tcolor: #24292e;\n\t}\n\t:global(.light-code .hljs-keyword),\n\t:global(.light-code .hljs-selector-tag) {\n\t\tcolor: #d73a49;\n\t}\n\t:global(.light-code .hljs-string),\n\t:global(.light-code .hljs-attr) {\n\t\tcolor: #032f62;\n\t}\n\t:global(.light-code .hljs-function),\n\t:global(.light-code .hljs-title) {\n\t\tcolor: #6f42c1;\n\t}\n\t:global(.light-code .hljs-comment) {\n\t\tcolor: #6a737d;\n\t}\n\t:global(.light-code .hljs-built_in) {\n\t\tcolor: #005cc5;\n\t}\n\n\t/* Dark theme - ensure dark styles apply */\n\t:global(.dark-code .hljs) {\n\t\tbackground: #0d1117;\n\t\tcolor: #c9d1d9;\n\t}\n\t:global(.dark-code .hljs-keyword),\n\t:global(.dark-code .hljs-selector-tag) {\n\t\tcolor: #ff7b72;\n\t}\n\t:global(.dark-code .hljs-string),\n\t:global(.dark-code .hljs-attr) {\n\t\tcolor: #a5d6ff;\n\t}\n\t:global(.dark-code .hljs-function),\n\t:global(.dark-code .hljs-title) {\n\t\tcolor: #d2a8ff;\n\t}\n\t:global(.dark-code .hljs-comment) {\n\t\tcolor: #8b949e;\n\t}\n\t:global(.dark-code .hljs-built_in) {\n\t\tcolor: #79c0ff;\n\t}\n</style>\n"],"names":["extract","value","defaultValue","isFunction","gotten","useDebounce","callback","wait","context","$.state","wait$","$.derived","debounced","args","$.get","resolve","reject","promise","res","rej","$.set","ctx","error","IsMounted","$.user_effect","untrack","#isMounted","SvelteResizeObserver","node","onResize","#node","#onResize","rAF","_node","resizeObserver","StateMachine","#machine","initialState","machine","simpleBox","#reducer","event","presenceMachine","Presence","#prevAnimationNameState","$.proxy","opts","Previous","watchPresenceChange","watchStatusChange","watchRefChange","currAnimationName","getAnimationName","isCurrentAnimation","state","watch","prevAnimationName","isAnimating","executeCallbacks","on","presenceState","boxWith","$$props","$$render","consequent","clamp","n","min","max","scrollAreaAttrs","createBitsAttrs","ScrollAreaRootContext","Context","ScrollAreaScrollbarContext","ScrollAreaScrollbarVisibleContext","ScrollAreaScrollbarAxisContext","ScrollAreaScrollbarSharedContext","ScrollAreaRootState","#scrollAreaNode","#viewportNode","#contentNode","#scrollbarXNode","#scrollbarYNode","#cornerWidth","#cornerHeight","#scrollbarXEnabled","#scrollbarYEnabled","attachRef","v","DOMContext","ScrollAreaViewportState","useId","root","#contentId","ScrollAreaScrollbarState","#isHorizontal","#hasThumb","isHorizontal","ScrollAreaScrollbarHoverState","#isVisible","scrollbar","scrollAreaNode","hideDelay","hideTimer","handlePointerEnter","handlePointerLeave","unsubListeners","#props","ScrollAreaScrollbarScrollState","#isHidden","debounceScrollend","_state","scrollHideDelay","viewportNode","scrollDirection","prevScrollPos","scrollPos","_","ScrollAreaScrollbarAutoState","handleResize","isOverflowX","isOverflowY","ScrollAreaScrollbarVisibleState","#thumbNode","#pointerOffset","getThumbRatio","#prevTransformStyle","sizes","pointerPos","dir","getScrollPositionFromPointer","transformStyle","getThumbOffsetFromScroll","ScrollAreaScrollbarXState","scrollbarVis","e","maxScrollPos","isScrollingWithinScrollbarBounds","toInt","getThumbSize","ScrollAreaScrollbarYState","ScrollAreaScrollbarSharedState","#rect","#prevWebkitUserSelect","#maxScrollPos","scrollbarState","scrollbarNode","handleWheel","$.user_pre_effect","x","y","target","mergeProps","ScrollAreaThumbImplState","#removeUnlinkedScrollListener","#debounceScrollEnd","#root","handleScroll","listener","addUnlinkedScrollListener","thumb","thumbRect","ScrollAreaCornerImplState","#hasSize","#width","height","#height","width","viewportSize","contentSize","ratio","scrollbarPadding","thumbSize","pointerOffset","thumbSizePx","thumbCenter","offset","thumbOffsetFromEnd","minPointerPos","maxPointerPos","scrollRange","linearScale","maxThumbPos","scrollClampRange","scrollWithoutMomentum","input","output","handler","prevPosition","win","getWindow","loop","position","isHorizontalScroll","isVerticalScroll","uid","$.props_id","ref","id","$.prop","createId","type","restProps","$.rest_props","rootState","mergedProps","$.snippet","node_1","div","root_2","$.attribute_effect","viewportState","mergedContentProps","div_1","scrollbarSharedState","isMounted","scrollbarXState","ScrollAreaScrollbarShared","scrollbarYState","scrollbarVisibleState","ScrollAreaScrollbarX","ScrollAreaScrollbarY","alternate","forceMount","scrollbarAutoState","presence","$$anchor","ScrollAreaScrollbarVisible","PresenceLayer","scrollbarScrollState","$.spread_props","scrollbarHoverState","open","ScrollAreaScrollbarHover","ScrollAreaScrollbarScroll","ScrollAreaScrollbarAuto","consequent_3","consequent_2","consequent_1","alternate_1","alternate_2","thumbState","$$arg0","present","ScrollAreaThumbImpl","$$value","cornerState","scrollAreaState","hasBothScrollbarsVisible","hasCorner","ScrollAreaCornerImpl","iconNode","Icon","$$sanitized_props","orientation","$0","cn","ScrollAreaPrimitive_Scrollbar","ScrollAreaPrimitive_Thumb","viewportRef","scrollbarXClasses","scrollbarYClasses","ScrollAreaPrimitive_Root","ScrollAreaPrimitive_Viewport","Scrollbar","ScrollAreaPrimitive_Corner","spanStartMs","preciseTimeMs","spanDurationMs","traceDurationMs","leftPercent","widthPercent","spanColors","spanColor","isHovered","barElement","handleMouseEnter","handleMouseLeave","containerElement","containerSpanCellHandleMouseEnter","rect","containerSpanCellHandleMouseMove","nameElement","copied","copySpanName","naturalWidth","$.child","Popover_Root","Popover_Trigger","text","$.reset","$.set_style","$.append","Popover_Content","div_2","root_3","span_1","button","Check","Copy","div_3","$.sibling","div_4","div_5","div_6","text_2","$.set_class","$1","$2","$.clsx","formatDuration","$.event","$$args","spans","a","b","traceStart","earliest","s","sTime","durationMs","nameColumnWidth","updateNameWidth","tooltipX","handleMouseMove","timelineElement","ScrollArea","root_1","span_2","$.each","span","i","SpanRow","$.first_child","fragment_2","div_7","div_8","getCodeExample","fw","GO_FRAMEWORKS","isGoFramework","codeExample","Code","node_2","Highlight","go","$.template_effect","themeState"],"mappings":"i5BACgB,SAAAA,GAAQC,EAAOC,EAAc,IACrCC,GAAWF,CAAK,EAAG,CAEb,MAAAG,EADSH,EACM,SACjBG,IAAW,OACJF,EACJE,CACX,QACIH,IAAU,OACHC,EACJD,CACX,CCMgB,SAAAI,GAAYC,EAAUC,EAAM,KACpCC,EAAUC,EAAO,IAAI,EACnB,MAAAC,EAAKC,EAAA,IAAYX,GAAQO,EAAM,GAAG,CAAA,WAC/BK,KAAaC,EAAM,CACpB,GAAAC,EAAAN,CAAO,IAGHA,CAAO,EAAC,SACR,aAAYM,EAACN,CAAO,EAAC,OAAO,MAG/B,KAEGO,EACAC,EACE,MAAAC,MAAc,QAAO,CAAEC,EAAKC,IAAQ,CACtCJ,EAAUG,EACVF,EAASG,CACb,CAAC,EACDC,EAAAZ,EAAO,CACH,QAAS,KACT,OAAQ,KACR,QAAAS,EACS,QAAAF,EACD,OAAAC,CAAM,EAAA,EAAA,CAEtB,UACAR,CAAO,EAAC,OAAM,SAAe,OAGpBA,CAAO,EAAA,OAEN,MAAAa,IAAMb,CAAO,EACnBY,EAAAZ,EAAU,IAAI,KACV,CACAa,EAAI,QAAO,MAAOf,EAAS,MAAM,KAAMO,CAAI,CAAA,CAC/C,OACOS,EAAO,CACVD,EAAI,OAAOC,CAAK,CACpB,CACJ,IACAd,CAAO,EAAC,QAAU,aAAWA,CAAO,EAAC,OAAMM,EAAEJ,CAAK,CAAA,EAC3CI,EAAAN,CAAO,EAAC,OACnB,CACA,OAAAI,EAAU,OAAM,SAAe,EACtB,CAAAE,EAAAN,CAAO,KAAIA,CAAO,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,CAAG,MAAHA,CAAG,KAFJ","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/uoQG1kt6.js b/backend/static/frontend/_app/immutable/chunks/DXxXPnVP.js
similarity index 58%
rename from backend/static/frontend/_app/immutable/chunks/uoQG1kt6.js
rename to backend/static/frontend/_app/immutable/chunks/DXxXPnVP.js
index 1422155a..fa1897fb 100644
--- a/backend/static/frontend/_app/immutable/chunks/uoQG1kt6.js
+++ b/backend/static/frontend/_app/immutable/chunks/DXxXPnVP.js
@@ -1 +1 @@
-import{p as u,i as T,r as A,s as y}from"./DMODTt3n.js";import{K as k,p as M,d as v,c as h,b as d,a as P,m as g,g as b,u as I,f as B,e as C,o as V,r as D}from"./B2WdN-7r.js";import{I as H}from"./Bv_PbELb.js";import{c as K}from"./BAcG0-U_.js";import{b as W}from"./C1aqwstW.js";import{b as j,d as q}from"./DH0tcjsQ.js";import{A as w}from"./m9wcLEvn.js";import{c as z,b as _,m as E}from"./DWAABZDo.js";var F=B("<button><!></button>");function G(n,e){const s=k();M(e,!0);let l=u(e,"id",19,()=>z(s)),t=u(e,"ref",15,null),c=u(e,"disabled",3,!1),o=A(e,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const i=w.create({id:_(()=>l()),ref:_(()=>t(),a=>t(a)),disabled:_(()=>!!c())}),f=I(()=>E(o,i.props));var m=v(),x=h(m);{var N=a=>{var r=v(),p=h(r);g(p,()=>e.child,()=>({props:b(f)})),d(a,r)},S=a=>{var r=F();j(r,()=>({...b(f)}));var p=C(r);g(p,()=>e.children??V),D(r),d(a,r)};T(x,a=>{e.child?a(N):a(S,!1)})}d(n,m),P()}function Z(n,e){M(e,!0);let s=A(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];H(n,y({name:"trash-2"},()=>s,{get iconNode(){return l},children:(t,c)=>{var o=v(),i=h(o);g(i,()=>e.children??V),d(t,o)},$$slots:{default:!0}})),P()}function $(n,e){M(e,!0);let s=u(e,"ref",15,null),l=A(e,["$$slots","$$events","$$legacy","ref","class"]);var t=v(),c=h(t);{let o=I(()=>q(W({variant:"outline"}),e.class));K(c,()=>G,(i,f)=>{f(i,y({get class(){return b(o)}},()=>l,{get ref(){return s()},set ref(m){s(m)}}))})}d(n,t),P()}export{$ as A,Z as T};
+import{p as u,i as T,r as M,s as y}from"./DMODTt3n.js";import{K as k,p as P,d as v,c as h,b as d,a as A,m as g,g as b,u as I,f as B,e as C,o as V,r as D}from"./B2WdN-7r.js";import{I as H}from"./Bv_PbELb.js";import{c as K}from"./BAcG0-U_.js";import{b as W}from"./C1aqwstW.js";import{b as j,d as q}from"./DH0tcjsQ.js";import{f as w}from"./CmY6xZEr.js";import{c as z,b as _,m as E}from"./BDd6-VcB.js";var F=B("<button><!></button>");function G(n,e){const s=k();P(e,!0);let l=u(e,"id",19,()=>z(s)),t=u(e,"ref",15,null),c=u(e,"disabled",3,!1),o=M(e,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const i=w.create({id:_(()=>l()),ref:_(()=>t(),a=>t(a)),disabled:_(()=>!!c())}),f=I(()=>E(o,i.props));var m=v(),x=h(m);{var N=a=>{var r=v(),p=h(r);g(p,()=>e.child,()=>({props:b(f)})),d(a,r)},S=a=>{var r=F();j(r,()=>({...b(f)}));var p=C(r);g(p,()=>e.children??V),D(r),d(a,r)};T(x,a=>{e.child?a(N):a(S,!1)})}d(n,m),A()}function Z(n,e){P(e,!0);let s=M(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];H(n,y({name:"trash-2"},()=>s,{get iconNode(){return l},children:(t,c)=>{var o=v(),i=h(o);g(i,()=>e.children??V),d(t,o)},$$slots:{default:!0}})),A()}function $(n,e){P(e,!0);let s=u(e,"ref",15,null),l=M(e,["$$slots","$$events","$$legacy","ref","class"]);var t=v(),c=h(t);{let o=I(()=>q(W({variant:"outline"}),e.class));K(c,()=>G,(i,f)=>{f(i,y({get class(){return b(o)}},()=>l,{get ref(){return s()},set ref(m){s(m)}}))})}d(n,t),A()}export{$ as A,Z as T};
diff --git a/backend/static/frontend/_app/immutable/chunks/uoQG1kt6.js.map b/backend/static/frontend/_app/immutable/chunks/DXxXPnVP.js.map
similarity index 98%
rename from backend/static/frontend/_app/immutable/chunks/uoQG1kt6.js.map
rename to backend/static/frontend/_app/immutable/chunks/DXxXPnVP.js.map
index a250f08c..f62db0e3 100644
--- a/backend/static/frontend/_app/immutable/chunks/uoQG1kt6.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/DXxXPnVP.js.map
@@ -1 +1 @@
-{"version":3,"file":"uoQG1kt6.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/trash-2.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { AlertDialogCancelProps } from \"../types.js\";\n\timport { AlertDialogCancelState } from \"../../dialog/dialog.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchildren,\n\t\tchild,\n\t\tdisabled = false,\n\t\t...restProps\n\t}: AlertDialogCancelProps = $props();\n\n\tconst cancelState = AlertDialogCancelState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdisabled: boxWith(() => Boolean(disabled)),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, cancelState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M10 11v6\" }], [\"path\", { \"d\": \"M14 11v6\" }], [\"path\", { \"d\": \"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\" }], [\"path\", { \"d\": \"M3 6h18\" }], [\"path\", { \"d\": \"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\" }]];\n/**\n * @component @name Trash2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTAgMTF2NiIgLz4KICA8cGF0aCBkPSJNMTQgMTF2NiIgLz4KICA8cGF0aCBkPSJNMTkgNnYxNGEyIDIgMCAwIDEtMiAySDdhMiAyIDAgMCAxLTItMlY2IiAvPgogIDxwYXRoIGQ9Ik0zIDZoMTgiIC8+CiAgPHBhdGggZD0iTTggNlY0YTIgMiAwIDAgMSAyLTJoNGEyIDIgMCAwIDEgMiAydjIiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/trash-2\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"trash-2\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport { buttonVariants } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: AlertDialogPrimitive.CancelProps = $props();\n</script>\n\n<AlertDialogPrimitive.Cancel\n\tbind:ref\n\tclass={cn(buttonVariants({ variant: \"outline\" }), className)}\n\t{...restProps}\n/>\n"],"names":["uid","$.props_id","id","$.prop","$$props","createId","ref","disabled","restProps","$.rest_props","cancelState","AlertDialogCancelState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","button","root_2","$.attribute_effect","props","iconNode","Icon","$.noop","$0","$.derived","cn","buttonVariants","AlertDialogPrimitive_Cancel","$$anchor","$.spread_props","$$value"],"mappings":"6bAAA,OAMOA,EAAGC,EAAA,cAGRC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,EAASL,CAAG,CAAA,EACjBM,eAAgB,IAAI,EAGpBC,mBAAW,EAAK,EACbC,EAAAC,EAAAL,EAAA,kFAGEM,EAAcC,EAAuB,OAAM,CAChD,GAAIC,EAAO,IAAOV,GAAE,EACpB,IAAKU,EAAO,IACLN,EAAG,EACRO,GAAOP,EAAMO,CAAC,CAAA,EAEhB,SAAUD,EAAO,IAAO,EAAQL,EAAQ,CAAA,IAGnCO,QAAuBC,EAAWP,EAAWE,EAAY,KAAK,CAAA,+CAInDM,EAAAC,EAAA,IAAAb,EAAA,MAAA,KAAA,CAAA,QAAOU,CAAW,CAAA,EAAA,oBAElCI,EAAMC,EAAA,EAANC,EAAAF,aAAWJ,CAAW,CAAA,EAAA,UAAtBI,CAAM,2BAANA,CAAM,MAANA,CAAM,4CALR,gBC3BA,aA6CIG,EAAKZ,EAAAL,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHkB,EAAQ,EAAK,OAAM,CAAI,EAAK,WAAU,GAAM,OAAM,CAAI,EAAK,WAAU,GAAM,OAAM,CAAI,EAAK,2CAA0C,GAAM,OAAM,CAAI,EAAK,UAAS,GAAM,OAAM,CAAI,EAAK,wCAAwC,CAAA,GAcpOC,2BAAwBF,EAAK,uBAAYC,+CACzB,UAAQE,CAAA,qCAHzB,gBC1DA,SAME,IAAAlB,eAAgB,IAAI,EAEjBE,EAAAC,EAAAL,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAMG,IAAAqB,EAAAC,EAAA,IAAAC,EAAGC,EAAc,CAAG,QAAS,SAAS,CAAA,EAAAxB,EAAA,KAAA,CAAA,oBAF7CyB,EAAqBC,EAAAC,iCAGjBvB,OAFJ,KAAK,iBAAL,IAAKwB,EAAA,sBAHN","x_google_ignoreList":[0,1]}
\ No newline at end of file
+{"version":3,"file":"DXxXPnVP.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/trash-2.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { AlertDialogCancelProps } from \"../types.js\";\n\timport { AlertDialogCancelState } from \"../../dialog/dialog.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchildren,\n\t\tchild,\n\t\tdisabled = false,\n\t\t...restProps\n\t}: AlertDialogCancelProps = $props();\n\n\tconst cancelState = AlertDialogCancelState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdisabled: boxWith(() => Boolean(disabled)),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, cancelState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M10 11v6\" }], [\"path\", { \"d\": \"M14 11v6\" }], [\"path\", { \"d\": \"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\" }], [\"path\", { \"d\": \"M3 6h18\" }], [\"path\", { \"d\": \"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\" }]];\n/**\n * @component @name Trash2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTAgMTF2NiIgLz4KICA8cGF0aCBkPSJNMTQgMTF2NiIgLz4KICA8cGF0aCBkPSJNMTkgNnYxNGEyIDIgMCAwIDEtMiAySDdhMiAyIDAgMCAxLTItMlY2IiAvPgogIDxwYXRoIGQ9Ik0zIDZoMTgiIC8+CiAgPHBhdGggZD0iTTggNlY0YTIgMiAwIDAgMSAyLTJoNGEyIDIgMCAwIDEgMiAydjIiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/trash-2\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"trash-2\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport { buttonVariants } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: AlertDialogPrimitive.CancelProps = $props();\n</script>\n\n<AlertDialogPrimitive.Cancel\n\tbind:ref\n\tclass={cn(buttonVariants({ variant: \"outline\" }), className)}\n\t{...restProps}\n/>\n"],"names":["uid","$.props_id","id","$.prop","$$props","createId","ref","disabled","restProps","$.rest_props","cancelState","AlertDialogCancelState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","button","root_2","$.attribute_effect","props","iconNode","Icon","$.noop","$0","$.derived","cn","buttonVariants","AlertDialogPrimitive_Cancel","$$anchor","$.spread_props","$$value"],"mappings":"6bAAA,OAMOA,EAAGC,EAAA,cAGRC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,EAASL,CAAG,CAAA,EACjBM,eAAgB,IAAI,EAGpBC,mBAAW,EAAK,EACbC,EAAAC,EAAAL,EAAA,kFAGEM,EAAcC,EAAuB,OAAM,CAChD,GAAIC,EAAO,IAAOV,GAAE,EACpB,IAAKU,EAAO,IACLN,EAAG,EACRO,GAAOP,EAAMO,CAAC,CAAA,EAEhB,SAAUD,EAAO,IAAO,EAAQL,EAAQ,CAAA,IAGnCO,QAAuBC,EAAWP,EAAWE,EAAY,KAAK,CAAA,+CAInDM,EAAAC,EAAA,IAAAb,EAAA,MAAA,KAAA,CAAA,QAAOU,CAAW,CAAA,EAAA,oBAElCI,EAAMC,EAAA,EAANC,EAAAF,aAAWJ,CAAW,CAAA,EAAA,UAAtBI,CAAM,2BAANA,CAAM,MAANA,CAAM,4CALR,gBC3BA,aA6CIG,EAAKZ,EAAAL,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHkB,EAAQ,EAAK,OAAM,CAAI,EAAK,WAAU,GAAM,OAAM,CAAI,EAAK,WAAU,GAAM,OAAM,CAAI,EAAK,2CAA0C,GAAM,OAAM,CAAI,EAAK,UAAS,GAAM,OAAM,CAAI,EAAK,wCAAwC,CAAA,GAcpOC,2BAAwBF,EAAK,uBAAYC,+CACzB,UAAQE,CAAA,qCAHzB,gBC1DA,SAME,IAAAlB,eAAgB,IAAI,EAEjBE,EAAAC,EAAAL,EAAA,CAAA,UAAA,WAAA,WAAA,MAAA,OAAA,CAAA,oBAMG,IAAAqB,EAAAC,EAAA,IAAAC,EAAGC,EAAc,CAAG,QAAS,SAAS,CAAA,EAAAxB,EAAA,KAAA,CAAA,oBAF7CyB,EAAqBC,EAAAC,iCAGjBvB,OAFJ,KAAK,iBAAL,IAAKwB,EAAA,sBAHN","x_google_ignoreList":[0,1]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/D_mqy6BL.js b/backend/static/frontend/_app/immutable/chunks/D_mqy6BL.js
deleted file mode 100644
index 7d71de0c..00000000
--- a/backend/static/frontend/_app/immutable/chunks/D_mqy6BL.js
+++ /dev/null
@@ -1 +0,0 @@
-import{b as r,r as o}from"./xR3pK9Ey.js";const t="";function a(...e){return r+t+o(e[0],e[1])}export{a as r};
diff --git a/backend/static/frontend/_app/immutable/chunks/xqPrLpfy.js b/backend/static/frontend/_app/immutable/chunks/DjEjtFrE.js
similarity index 93%
rename from backend/static/frontend/_app/immutable/chunks/xqPrLpfy.js
rename to backend/static/frontend/_app/immutable/chunks/DjEjtFrE.js
index d7bcd6d3..ef1b50bf 100644
--- a/backend/static/frontend/_app/immutable/chunks/xqPrLpfy.js
+++ b/backend/static/frontend/_app/immutable/chunks/DjEjtFrE.js
@@ -1 +1 @@
-import{p as g,i as G,r as H,s as he,b as mr}from"./DMODTt3n.js";import{F as Dt,C as Lt,u as b,g as o,i as v,h as oe,v as ze,aG as Bn,p as L,d as _,c as p,b as h,a as R,m as N,f as T,e as k,o as ie,r as C,K as Oe,t as lt,k as se,l as le,s as U,n as kt,q as an,a$ as Et}from"./B2WdN-7r.js";import{e as qe,i as Ur}from"./CMyj8Fzw.js";import{c as Y}from"./BAcG0-U_.js";import{b as ce,g as Ht,d as ue,c as vr,a as xt,r as Kt,s as Lr,h as Gt}from"./DH0tcjsQ.js";import{b as gr,B as Rr}from"./C1aqwstW.js";import{o as Un}from"./Dwk6gGSK.js";import{ao as yr,f as It,w as Ft,ap as Ln,aq as Qt,af as Nr,I as sn,H as on,J as ln,K as cn,E as Rn,S as Nn,ar as Wn,C as un,u as dn,x as Hn,n as Wr,as as Zn}from"./CAQEdoSh.js";import{d as jn,j as zn,e as ee,a as $e,h as _t,b as $,m as Pe,c as Ae}from"./DWAABZDo.js";import{s as Jn,C as br}from"./CYYjDwkn.js";import{I as pr}from"./Bv_PbELb.js";import{b as qn,S as Kn,a as Gn,c as Hr}from"./CzIIBX62.js";import{P as Xt,a as er,b as tr}from"./DKXzXP9M.js";import{i as Bt,l as St,g as Qn,D as hn,p as Zr}from"./DJdWGDax.js";import{C as Xn}from"./DUJ_Z9AF.js";import{g as ea}from"./xR3pK9Ey.js";function rr(t,e){return t-e*Math.floor(t/e)}const fn=1721426;function Yt(t,e,r,n){e=xr(t,e);let a=e-1,s=-2;return r<=2?s=0:Ut(e)&&(s=-1),fn-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*r-362)/12+s+n)}function Ut(t){return t%4===0&&(t%100!==0||t%400===0)}function xr(t,e){return t==="BC"?1-e:e}function ta(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const ra={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Pt{fromJulianDay(e){let r=e,n=r-fn,a=Math.floor(n/146097),s=rr(n,146097),i=Math.floor(s/36524),c=rr(s,36524),d=Math.floor(c/1461),f=rr(c,1461),y=Math.floor(f/365),x=a*400+i*100+d*4+y+(i!==4&&y!==4?1:0),[u,l]=ta(x),m=r-Yt(u,l,1,1),w=2;r<Yt(u,l,3,1)?w=0:Ut(l)&&(w=1);let E=Math.floor(((m+w)*12+373)/367),D=r-Yt(u,l,E,1)+1;return new Me(u,l,E,D)}toJulianDay(e){return Yt(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return ra[Ut(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Ut(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const na={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function mt(t,e){return e=we(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Zt(t,e){return e=we(e,t.calendar),t=ur(t),e=ur(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function aa(t,e){return mn(t.calendar,e.calendar)&&Zt(t,e)}function mn(t,e){var r,n,a,s;return(s=(a=(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&a!==void 0?a:(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&s!==void 0?s:t.identifier===e.identifier}function sa(t,e){return mt(t,Rt(e))}function vn(t,e,r){let n=t.calendar.toJulianDay(t),a=ua(e),s=Math.ceil(n+1-a)%7;return s<0&&(s+=7),s}function oa(t){return Ke(Date.now(),t)}function Rt(t){return fa(oa(t))}function gn(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function ia(t,e){return jr(t)-jr(e)}function jr(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let nr=null;function ye(){return nr==null&&(nr=new Intl.DateTimeFormat().resolvedOptions().timeZone),nr}function ur(t){return t.subtract({days:t.day-1})}function la(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}const zr=new Map,ar=new Map;function ca(t){if(Intl.Locale){let r=zr.get(t);return r||(r=new Intl.Locale(t).maximize().region,r&&zr.set(t,r)),r}let e=t.split("-")[1];return e==="u"?void 0:e}function ua(t){let e=ar.get(t);if(!e){if(Intl.Locale){let n=new Intl.Locale(t);if("getWeekInfo"in n&&(e=n.getWeekInfo(),e))return ar.set(t,e),e.firstDay}let r=ca(t);if(t.includes("-fw-")){let n=t.split("-fw-")[1].split("-")[0];n==="mon"?e={firstDay:1}:n==="tue"?e={firstDay:2}:n==="wed"?e={firstDay:3}:n==="thu"?e={firstDay:4}:n==="fri"?e={firstDay:5}:n==="sat"?e={firstDay:6}:e={firstDay:0}}else t.includes("-ca-iso8601")?e={firstDay:1}:e={firstDay:r&&na[r]||0};ar.set(t,e)}return e.firstDay}function vt(t){t=we(t,new Pt);let e=xr(t.era,t.year);return yn(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function yn(t,e,r,n,a,s,i){let c=new Date;return c.setUTCHours(n,a,s,i),c.setUTCFullYear(t,e-1,r),c.getTime()}function Ot(t,e){if(e==="UTC")return 0;if(t>0&&e===ye())return new Date(t).getTimezoneOffset()*-6e4;let{year:r,month:n,day:a,hour:s,minute:i,second:c}=bn(t,e);return yn(r,n,a,s,i,c,0)-Math.floor(t/1e3)*1e3}const Jr=new Map;function bn(t,e){let r=Jr.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Jr.set(e,r));let n=r.formatToParts(new Date(t)),a={};for(let s of n)s.type!=="literal"&&(a[s.type]=s.value);return{year:a.era==="BC"||a.era==="B"?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:a.hour==="24"?0:+a.hour,minute:+a.minute,second:+a.second}}const Nt=864e5;function da(t,e){let r=vt(t),n=r-Ot(r-Nt,e),a=r-Ot(r+Nt,e);return pn(t,e,n,a)}function pn(t,e,r,n){return(r===n?[r]:[r,n]).filter(s=>ha(t,e,s))}function ha(t,e,r){let n=bn(r,e);return t.year===n.year&&t.month===n.month&&t.day===n.day&&t.hour===n.hour&&t.minute===n.minute&&t.second===n.second}function Je(t,e,r="compatible"){let n=gt(t);if(e==="UTC")return vt(n);if(e===ye()&&r==="compatible"){n=we(n,new Pt);let d=new Date,f=xr(n.era,n.year);return d.setFullYear(f,n.month-1,n.day),d.setHours(n.hour,n.minute,n.second,n.millisecond),d.getTime()}let a=vt(n),s=Ot(a-Nt,e),i=Ot(a+Nt,e),c=pn(n,e,a-s,a-i);if(c.length===1)return c[0];if(c.length>1)switch(r){case"compatible":case"earlier":return c[0];case"later":return c[c.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(a-s,a-i);case"compatible":case"later":return Math.max(a-s,a-i);case"reject":throw new RangeError("No such absolute time found")}}function xn(t,e,r="compatible"){return new Date(Je(t,e,r))}function Ke(t,e){let r=Ot(t,e),n=new Date(t+r),a=n.getUTCFullYear(),s=n.getUTCMonth()+1,i=n.getUTCDate(),c=n.getUTCHours(),d=n.getUTCMinutes(),f=n.getUTCSeconds(),y=n.getUTCMilliseconds();return new Ge(a<1?"BC":"AD",a<1?-a+1:a,s,i,e,r,c,d,f,y)}function fa(t){return new Me(t.calendar,t.era,t.year,t.month,t.day)}function gt(t,e){let r=0,n=0,a=0,s=0;if("timeZone"in t)({hour:r,minute:n,second:a,millisecond:s}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:n,second:a,millisecond:s}=e),new X(t.calendar,t.era,t.year,t.month,t.day,r,n,a,s)}function we(t,e){if(mn(t.calendar,e))return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),n=t.copy();return n.calendar=e,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,wt(n),n}function ma(t,e,r){if(t instanceof Ge)return t.timeZone===e?t:ga(t,e);let n=Je(t,e,r);return Ke(n,e)}function va(t){let e=vt(t)-t.offset;return new Date(e)}function ga(t,e){let r=vt(t)-t.offset;return we(Ke(r,e),t.calendar)}const Ct=36e5;function jt(t,e){let r=t.copy(),n="hour"in r?xa(r,e):0;dr(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,hr(r),Dn(r),r.day+=(e.weeks||0)*7,r.day+=e.days||0,r.day+=n,ya(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let a=r.calendar.getYearsInEra(r);if(r.year>a){var s,i;let d=(s=(i=r.calendar).isInverseEra)===null||s===void 0?void 0:s.call(i,r);r.year=a,r.month=d?1:r.calendar.getMonthsInYear(r),r.day=d?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let c=r.calendar.getMonthsInYear(r);return r.month>c&&(r.month=c,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function dr(t,e){var r,n;!((r=(n=t.calendar).isInverseEra)===null||r===void 0)&&r.call(n,t)&&(e=-e),t.year+=e}function hr(t){for(;t.month<1;)dr(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,dr(t,1)}function ya(t){for(;t.day<1;)t.month--,hr(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,hr(t)}function Dn(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function wt(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),Dn(t)}function _n(t){let e={};for(let r in t)typeof t[r]=="number"&&(e[r]=-t[r]);return e}function wn(t,e){return jt(t,_n(e))}function Dr(t,e){let r=t.copy();return e.era!=null&&(r.era=e.era),e.year!=null&&(r.year=e.year),e.month!=null&&(r.month=e.month),e.day!=null&&(r.day=e.day),wt(r),r}function Wt(t,e){let r=t.copy();return e.hour!=null&&(r.hour=e.hour),e.minute!=null&&(r.minute=e.minute),e.second!=null&&(r.second=e.second),e.millisecond!=null&&(r.millisecond=e.millisecond),pa(r),r}function ba(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=Vt(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=Vt(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=Vt(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=Vt(t.hour,24),e}function pa(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function Vt(t,e){let r=t%e;return r<0&&(r+=e),r}function xa(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,ba(t)}function _r(t,e,r,n){let a=t.copy();switch(e){case"era":{let c=t.calendar.getEras(),d=c.indexOf(t.era);if(d<0)throw new Error("Invalid era: "+t.era);d=it(d,r,0,c.length-1,n?.round),a.era=c[d],wt(a);break}case"year":var s,i;!((s=(i=a.calendar).isInverseEra)===null||s===void 0)&&s.call(i,a)&&(r=-r),a.year=it(t.year,r,-1/0,9999,n?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t);break;case"month":a.month=it(t.month,r,1,t.calendar.getMonthsInYear(t),n?.round);break;case"day":a.day=it(t.day,r,1,t.calendar.getDaysInMonth(t),n?.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(a),wt(a),a}function Mn(t,e,r,n){let a=t.copy();switch(e){case"hour":{let s=t.hour,i=0,c=23;if(n?.hourCycle===12){let d=s>=12;i=d?12:0,c=d?23:11}a.hour=it(s,r,i,c,n?.round);break}case"minute":a.minute=it(t.minute,r,0,59,n?.round);break;case"second":a.second=it(t.second,r,0,59,n?.round);break;case"millisecond":a.millisecond=it(t.millisecond,r,0,999,n?.round);break;default:throw new Error("Unsupported field "+e)}return a}function it(t,e,r,n,a=!1){if(a){t+=Math.sign(e),t<r&&(t=n);let s=Math.abs(e);e>0?t=Math.ceil(t/s)*s:t=Math.floor(t/s)*s,t>n&&(t=r)}else t+=e,t<r?t=n-(r-t-1):t>n&&(t=r+(t-n-1));return t}function $n(t,e){let r;if(e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0){let a=jt(gt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});r=Je(a,t.timeZone)}else r=vt(t)-t.offset;r+=e.milliseconds||0,r+=(e.seconds||0)*1e3,r+=(e.minutes||0)*6e4,r+=(e.hours||0)*36e5;let n=Ke(r,t.timeZone);return we(n,t.calendar)}function Da(t,e){return $n(t,_n(e))}function _a(t,e,r,n){switch(e){case"hour":{let a=0,s=23;if(n?.hourCycle===12){let m=t.hour>=12;a=m?12:0,s=m?23:11}let i=gt(t),c=we(Wt(i,{hour:a}),new Pt),d=[Je(c,t.timeZone,"earlier"),Je(c,t.timeZone,"later")].filter(m=>Ke(m,t.timeZone).day===c.day)[0],f=we(Wt(i,{hour:s}),new Pt),y=[Je(f,t.timeZone,"earlier"),Je(f,t.timeZone,"later")].filter(m=>Ke(m,t.timeZone).day===f.day).pop(),x=vt(t)-t.offset,u=Math.floor(x/Ct),l=x%Ct;return x=it(u,r,Math.floor(d/Ct),Math.floor(y/Ct),n?.round)*Ct+l,we(Ke(x,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return Mn(t,e,r,n);case"era":case"year":case"month":case"day":{let a=_r(gt(t),e,r,n),s=Je(a,t.timeZone);return we(Ke(s,t.timeZone),t.calendar)}default:throw new Error("Unsupported field "+e)}}function wa(t,e,r){let n=gt(t),a=Wt(Dr(n,e),e);if(a.compare(n)===0)return t;let s=Je(a,t.timeZone,r);return we(Ke(s,t.timeZone),t.calendar)}const Ma=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,$a=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Pa=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::?(\d{2}))?(?::?(\d{2}))?)?\[(.*?)\]$/,Pn=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function Sn(t){let e=t.match(Ma);if(!e)throw Pn.test(t)?new Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+t);let r=new Me(ae(e[1],0,9999),ae(e[2],1,12),1);return r.day=ae(e[3],1,r.calendar.getDaysInMonth(r)),r}function Cn(t){let e=t.match($a);if(!e)throw Pn.test(t)?new Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+t);let r=ae(e[1],-9999,9999),n=r<1?"BC":"AD",a=new X(n,r<1?-r+1:r,ae(e[2],1,12),1,e[4]?ae(e[4],0,23):0,e[5]?ae(e[5],0,59):0,e[6]?ae(e[6],0,59):0,e[7]?ae(e[7],0,1/0)*1e3:0);return a.day=ae(e[3],0,a.calendar.getDaysInMonth(a)),a}function kn(t,e){let r=t.match(Pa);if(!r)throw new Error("Invalid ISO 8601 date time string: "+t);let n=ae(r[1],-9999,9999),a=n<1?"BC":"AD",s=new Ge(a,n<1?-n+1:n,ae(r[2],1,12),1,r[11],0,r[4]?ae(r[4],0,23):0,r[5]?ae(r[5],0,59):0,r[6]?ae(r[6],0,59):0,r[7]?ae(r[7],0,1/0)*1e3:0);s.day=ae(r[3],0,s.calendar.getDaysInMonth(s));let i=gt(s),c;if(r[8]){let y=ae(r[8],-23,23);var d,f;if(s.offset=Math.sign(y)*(Math.abs(y)*36e5+ae((d=r[9])!==null&&d!==void 0?d:"0",0,59)*6e4+ae((f=r[10])!==null&&f!==void 0?f:"0",0,59)*1e3),c=vt(s)-s.offset,!da(i,s.timeZone).includes(c))throw new Error(`Offset ${Fn(s.offset)} is invalid for ${wr(s)} in ${s.timeZone}`)}else c=Je(gt(i),s.timeZone,e);return Ke(c,s.timeZone)}function ae(t,e,r){let n=Number(t);if(n<e||n>r)throw new RangeError(`Value out of range: ${e} <= ${n} <= ${r}`);return n}function Sa(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function In(t){let e=we(t,new Pt),r;return e.era==="BC"?r=e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):r=String(e.year).padStart(4,"0"),`${r}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function wr(t){return`${In(t)}T${Sa(t)}`}function Fn(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let r=Math.floor(t/36e5),n=Math.floor(t%36e5/6e4),a=Math.floor(t%36e5%6e4/1e3),s=`${e}${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`;return a!==0&&(s+=`:${String(a).padStart(2,"0")}`),s}function Ca(t){return`${wr(t)}${Fn(t.offset)}[${t.timeZone}]`}function ka(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Mr(t,e,r){ka(t,e),e.set(t,r)}function $r(t){let e=typeof t[0]=="object"?t.shift():new Pt,r;if(typeof t[0]=="string")r=t.shift();else{let i=e.getEras();r=i[i.length-1]}let n=t.shift(),a=t.shift(),s=t.shift();return[e,r,n,a,s]}var Ia=new WeakMap;class Me{copy(){return this.era?new Me(this.calendar,this.era,this.year,this.month,this.day):new Me(this.calendar,this.year,this.month,this.day)}add(e){return jt(this,e)}subtract(e){return wn(this,e)}set(e){return Dr(this,e)}cycle(e,r,n){return _r(this,e,r,n)}toDate(e){return xn(this,e)}toString(){return In(this)}compare(e){return gn(this,e)}constructor(...e){Mr(this,Ia,{writable:!0,value:void 0});let[r,n,a,s,i]=$r(e);this.calendar=r,this.era=n,this.year=a,this.month=s,this.day=i,wt(this)}}var Fa=new WeakMap;class X{copy(){return this.era?new X(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new X(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return jt(this,e)}subtract(e){return wn(this,e)}set(e){return Dr(Wt(this,e),e)}cycle(e,r,n){switch(e){case"era":case"year":case"month":case"day":return _r(this,e,r,n);default:return Mn(this,e,r,n)}}toDate(e,r){return xn(this,e,r)}toString(){return wr(this)}compare(e){let r=gn(this,e);return r===0?ia(this,gt(e)):r}constructor(...e){Mr(this,Fa,{writable:!0,value:void 0});let[r,n,a,s,i]=$r(e);this.calendar=r,this.era=n,this.year=a,this.month=s,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,wt(this)}}var Oa=new WeakMap;class Ge{copy(){return this.era?new Ge(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Ge(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return $n(this,e)}subtract(e){return Da(this,e)}set(e,r){return wa(this,e,r)}cycle(e,r,n){return _a(this,e,r,n)}toDate(){return va(this)}toString(){return Ca(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-ma(e,this.timeZone).toDate().getTime()}constructor(...e){Mr(this,Oa,{writable:!0,value:void 0});let[r,n,a,s,i]=$r(e),c=e.shift(),d=e.shift();this.calendar=r,this.era=n,this.year=a,this.month=s,this.day=i,this.timeZone=c,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,wt(this)}}let sr=new Map;class Fe{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(r)}`}formatRangeToParts(e,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),a=this.formatter.formatToParts(r);return[...n.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return Ea()&&(this.resolvedHourCycle||(this.resolvedHourCycle=Ya(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),e.calendar==="ethiopic-amete-alem"&&(e.calendar="ethioaa"),e}constructor(e,r={}){this.formatter=On(e,r),this.options=r}}const Aa={true:{ja:"h11"},false:{}};function On(t,e={}){if(typeof e.hour12=="boolean"&&Ta()){e={...e};let a=Aa[String(e.hour12)][t.split("-")[0]],s=e.hour12?"h12":"h23";e.hourCycle=a??s,delete e.hour12}let r=t+(e?Object.entries(e).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(sr.has(r))return sr.get(r);let n=new Intl.DateTimeFormat(t,e);return sr.set(r,n),n}let or=null;function Ta(){return or==null&&(or=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),or}let ir=null;function Ea(){return ir==null&&(ir=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ir}function Ya(t,e){if(!e.timeStyle&&!e.hour)return;t=t.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),t+=(t.includes("-u-")?"":"-u")+"-nu-latn";let r=On(t,{...e,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),a=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(s=>s.type==="hour").value,10);if(n===0&&a===23)return"h23";if(n===24&&a===23)return"h24";if(n===0&&a===11)return"h11";if(n===12&&a===11)return"h12";throw new Error("Unexpected hour cycle result")}function Va(t){if(!yr||!t)return null;let e=t.querySelector("[data-bits-announcer]");const r=a=>{const s=t.createElement("div");return s.role="log",s.ariaLive=a,s.setAttribute("aria-relevant","additions"),s};if(!It(e)){const a=t.createElement("div");a.style.cssText=Jn,a.setAttribute("data-bits-announcer",""),a.appendChild(r("assertive")),a.appendChild(r("polite")),e=a,t.body.insertBefore(e,t.body.firstChild)}return{getLog:a=>{if(!It(e))return null;const s=e.querySelector(`[aria-live="${a}"]`);return It(s)?s:null}}}function qr(t){const e=Va(t);function r(n,a="assertive",s=7500){if(!e||!yr||!t)return;const i=e.getLog(a),c=t.createElement("div");return typeof n=="number"?n=n.toString():n===null?n="Empty":n=n.trim(),c.innerText=n,a==="assertive"?i?.replaceChildren(c):i?.appendChild(c),setTimeout(()=>{c.remove()},s)}return{announce:r}}const Ba={defaultValue:void 0,granularity:"day"};function Ua(t){const e={...Ba,...t},{defaultValue:r,granularity:n,minValue:a,maxValue:s}=e;if(Array.isArray(r)&&r.length)return r[r.length-1];if(r&&!Array.isArray(r))return r;{let i=new Date;a&&i<a.toDate(ye())?i=a.toDate(ye()):s&&i>s.toDate(ye())&&(i=s.toDate(ye()));const c=i.getFullYear(),d=i.getMonth()+1,f=i.getDate();return["hour","minute","second"].includes(n??"day")?new X(c,d,f,0,0,0):new Me(c,d,f)}}function An(t,e){let r;return e instanceof Ge?r=kn(t):e instanceof X?r=Cn(t):r=Sn(t),r.calendar!==e.calendar?we(r,e.calendar):r}function Le(t,e=ye()){return t instanceof Ge?t.toDate():t.toDate(e)}function La(t){if(t instanceof Me)return"date";if(t instanceof X)return"datetime";if(t instanceof Ge)return"zoneddatetime";throw new Error("Unknown date type")}function Ra(t,e){switch(e){case"date":return Sn(t);case"datetime":return Cn(t);case"zoneddatetime":return kn(t);default:throw new Error(`Unknown date type: ${e}`)}}function Na(t){return t instanceof X}function Tn(t){return t instanceof Ge}function fr(t){return Na(t)||Tn(t)}function Wa(t){if(t instanceof Date){const e=t.getFullYear(),r=t.getMonth()+1;return new Date(e,r,0).getDate()}else return t.set({day:100}).day}function At(t,e){return t.compare(e)<0}function Ha(t,e){return t.compare(e)>0}function Kr(t,e,r){const n=vn(t,r);return e>n?t.subtract({days:n+7-e}):e===n?t:t.subtract({days:n-e})}function Gr(t,e,r){const n=vn(t,r),a=e===0?6:e-1;return n===a?t:n>a?t.add({days:7-n+a}):t.add({days:a-n})}const Za={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function ja(t){let e=t.initialLocale;function r(l){e=l}function n(){return e}function a(l,m){return new Fe(e,m).format(l)}function s(l,m=!0){return fr(l)&&m?a(Le(l),{dateStyle:"long",timeStyle:"long"}):a(Le(l),{dateStyle:"long"})}function i(l){if(typeof t.monthFormat.current!="function"&&typeof t.yearFormat.current!="function")return new Fe(e,{month:t.monthFormat.current,year:t.yearFormat.current}).format(l);const m=typeof t.monthFormat.current=="function"?t.monthFormat.current(l.getMonth()+1):new Fe(e,{month:t.monthFormat.current}).format(l),w=typeof t.yearFormat.current=="function"?t.yearFormat.current(l.getFullYear()):new Fe(e,{year:t.yearFormat.current}).format(l);return`${m} ${w}`}function c(l){return new Fe(e,{month:"long"}).format(l)}function d(l){return new Fe(e,{year:"numeric"}).format(l)}function f(l,m){return Tn(l)?new Fe(e,{...m,timeZone:l.timeZone}).formatToParts(Le(l)):new Fe(e,m).formatToParts(Le(l))}function y(l,m="narrow"){return new Fe(e,{weekday:m}).format(l)}function x(l,m=void 0){return new Fe(e,{hour:"numeric",minute:"numeric",hourCycle:m===24?"h23":void 0}).formatToParts(l).find(D=>D.type==="dayPeriod")?.value==="PM"?"PM":"AM"}function u(l,m,w={}){const E={...Za,...w},P=f(l,E).find(O=>O.type===m);return P?P.value:""}return{setLocale:r,getLocale:n,fullMonth:c,fullYear:d,fullMonthAndYear:i,toParts:f,custom:a,part:u,dayPeriod:x,selectedDate:s,dayOfWeek:y}}function za(t){return!(!It(t)||!t.hasAttribute("data-bits-day"))}function Qr(t,e){const r=[];let n=t.add({days:1});const a=e;for(;n.compare(a)<0;)r.push(n),n=n.add({days:1});return r}function lr(t){const{dateObj:e,weekStartsOn:r,fixedWeeks:n,locale:a}=t,s=Wa(e),i=Array.from({length:s},(E,D)=>e.set({day:D+1})),c=ur(e),d=la(e),f=r!==void 0?Kr(c,r,"en-US"):Kr(c,0,a),y=r!==void 0?Gr(d,r,"en-US"):Gr(d,0,a),x=Qr(f.subtract({days:1}),c),u=Qr(d,y.add({days:1})),l=x.length+i.length+u.length;if(n&&l<42){const E=42-l;let D=u[u.length-1];D||(D=e.add({months:1}).set({day:1}));let P=E;u.length===0&&(P=E-1,u.push(D));const O=Array.from({length:P},(J,B)=>{const S=B+1;return D.add({days:S})});u.push(...O)}const m=x.concat(i,u),w=Wn(m,7);return{value:e,dates:m,weeks:w}}function Tt(t){const{numberOfMonths:e,dateObj:r,...n}=t,a=[];if(!e||e===1)return a.push(lr({...n,dateObj:r})),a;a.push(lr({...n,dateObj:r}));for(let s=1;s<e;s++){const i=r.add({months:s});a.push(lr({...n,dateObj:i}))}return a}function cr(t){return t?Array.from(t.querySelectorAll("[data-bits-day]:not([data-disabled]):not([data-outside-visible-months])")).filter(r=>It(r)):[]}function Xr(t,e){const r=t.getAttribute("data-value");r&&(e.current=An(r,e.current))}function Ja({node:t,add:e,placeholder:r,calendarNode:n,isPrevButtonDisabled:a,isNextButtonDisabled:s,months:i,numberOfMonths:c}){const d=cr(n);if(!d.length)return;const y=d.indexOf(t)+e;if(Qt(y,d)){const x=d[y];return Xr(x,r),x.focus()}if(y<0){if(a)return;const x=i[0]?.value;if(!x)return;r.current=x.subtract({months:c}),Nr(()=>{const u=cr(n);if(!u.length)return;const l=u.length-Math.abs(y);if(Qt(l,u)){const m=u[l];return Xr(m,r),m.focus()}})}if(y>=d.length){if(s)return;const x=i[0]?.value;if(!x)return;r.current=x.add({months:c}),Nr(()=>{const u=cr(n);if(!u.length)return;const l=y-d.length;if(Qt(l,u))return u[l].focus()})}}const en=[sn,on,ln,cn],tn=[Rn,Nn];function qa({event:t,handleCellClick:e,shiftFocus:r,placeholderValue:n}){const a=t.target;if(!za(a)||!en.includes(t.key)&&!tn.includes(t.key))return;t.preventDefault();const s={[sn]:7,[on]:-7,[ln]:-1,[cn]:1};if(en.includes(t.key)){const i=s[t.key];i!==void 0&&r(a,i)}if(tn.includes(t.key)){const i=a.getAttribute("data-value");if(!i)return;e(t,An(i,n))}}function Ka({months:t,setMonths:e,numberOfMonths:r,pagedNavigation:n,weekStartsOn:a,locale:s,fixedWeeks:i,setPlaceholder:c}){const d=t[0]?.value;if(d)if(n)c(d.add({months:r}));else{const f=d.add({months:1}),y=Tt({dateObj:f,weekStartsOn:a,locale:s,fixedWeeks:i,numberOfMonths:r});c(f),e(y)}}function Ga({months:t,setMonths:e,numberOfMonths:r,pagedNavigation:n,weekStartsOn:a,locale:s,fixedWeeks:i,setPlaceholder:c}){const d=t[0]?.value;if(d)if(n)c(d.subtract({months:r}));else{const f=d.subtract({months:1}),y=Tt({dateObj:f,weekStartsOn:a,locale:s,fixedWeeks:i,numberOfMonths:r});c(f),e(y)}}function Qa({months:t,formatter:e,weekdayFormat:r}){if(!t.length)return[];const a=t[0].weeks[0];return a?a.map(s=>e.dayOfWeek(Le(s),r)):[]}function Xa(t){Dt(()=>{const e=t.weekStartsOn.current,r=t.locale.current,n=t.fixedWeeks.current,a=t.numberOfMonths.current;Lt(()=>{const s=t.placeholder.current;if(!s)return;const i={weekStartsOn:e,locale:r,fixedWeeks:n,numberOfMonths:a};t.setMonths(Tt({...i,dateObj:s}))})})}function es({calendarNode:t,label:e,accessibleHeadingId:r}){const n=Ln(t),a=n.createElement("div");a.style.cssText=zn({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"});const s=n.createElement("div");return s.textContent=e,s.id=r,s.role="heading",s.ariaLevel="2",t.insertBefore(a,t.firstChild),a.appendChild(s),()=>{const i=n.getElementById(r);i&&(a.parentElement?.removeChild(a),i.remove())}}function ts({placeholder:t,getVisibleMonths:e,weekStartsOn:r,locale:n,fixedWeeks:a,numberOfMonths:s,setMonths:i}){Dt(()=>{t.current,Lt(()=>{if(e().some(d=>Zt(d,t.current)))return;const c={weekStartsOn:r.current,locale:n.current,fixedWeeks:a.current,numberOfMonths:s.current};i(Tt({...c,dateObj:t.current}))})})}function rs({maxValue:t,months:e,disabled:r}){if(!t||!e.length)return!1;if(r)return!0;const n=e[e.length-1]?.value;if(!n)return!1;const a=n.add({months:1}).set({day:1});return Ha(a,t)}function ns({minValue:t,months:e,disabled:r}){if(!t||!e.length)return!1;if(r)return!0;const n=e[0]?.value;if(!n)return!1;const a=n.subtract({months:1}).set({day:35});return At(a,t)}function as({months:t,locale:e,formatter:r}){if(!t.length)return"";if(e!==r.getLocale()&&r.setLocale(e),t.length===1){const y=Le(t[0].value);return`${r.fullMonthAndYear(y)}`}const n=Le(t[0].value),a=Le(t[t.length-1].value),s=r.fullMonth(n),i=r.fullMonth(a),c=r.fullYear(n),d=r.fullYear(a);return c===d?`${s} - ${i} ${d}`:`${s} ${c} - ${i} ${d}`}function ss({fullCalendarLabel:t,id:e,isInvalid:r,disabled:n,readonly:a}){return{id:e,role:"application","aria-label":t,"data-invalid":ee(r),"data-disabled":ee(n),"data-readonly":ee(a)}}function os(t){if(!yr)return;const e=Array.from(t.querySelectorAll("[data-bits-day]:not([aria-disabled=true])"));if(e.length===0)return;const r=e[0],n=r?.getAttribute("data-value"),a=r?.getAttribute("data-type");if(!(!n||!a))return Ra(n,a)}function is({ref:t,placeholder:e,defaultPlaceholder:r,minValue:n,maxValue:a,isDateDisabled:s}){function i(c){return!!(s.current(c)||n.current&&At(c,n.current)||a.current&&At(a.current,c))}Ft(()=>t.current,()=>{t.current&&e.current&&mt(e.current,r)&&i(r)&&(e.current=os(t.current)??r)})}function ls(t,e){return!t||!e?t:fr(t)&&fr(e)?t.set({hour:e.hour,minute:e.minute,millisecond:e.millisecond,second:e.second}):t}const cs=jn({component:"calendar",parts:["root","grid","cell","next-button","prev-button","day","grid-body","grid-head","grid-row","head-cell","header","heading","month-select","year-select"]});function us(t){const e=new Date().getFullYear(),r=Math.max(t.placeholderYear,e);let n,a;if(t.minValue)n=t.minValue.year;else{const i=r-100;n=t.placeholderYear<i?t.placeholderYear-10:i}t.maxValue?a=t.maxValue.year:a=r+10,n>a&&(n=a);const s=a-n+1;return Array.from({length:s},(i,c)=>n+c)}const Te=new un("Calendar.Root | RangeCalender.Root");class Pr{static create(e){return Te.set(new Pr(e))}opts;#e=b(()=>this.months.map(e=>e.value));get visibleMonths(){return o(this.#e)}set visibleMonths(e){v(this.#e,e)}formatter;accessibleHeadingId=dn();domContext;attachment;#t=oe(ze([]));get months(){return o(this.#t)}set months(e){v(this.#t,e,!0)}announcer;constructor(e){this.opts=e,this.attachment=$e(this.opts.ref),this.domContext=new Hn(e.ref),this.announcer=qr(null),this.formatter=ja({initialLocale:this.opts.locale.current,monthFormat:this.opts.monthFormat,yearFormat:this.opts.yearFormat}),this.setMonths=this.setMonths.bind(this),this.nextPage=this.nextPage.bind(this),this.prevPage=this.prevPage.bind(this),this.prevYear=this.prevYear.bind(this),this.nextYear=this.nextYear.bind(this),this.setYear=this.setYear.bind(this),this.setMonth=this.setMonth.bind(this),this.isOutsideVisibleMonths=this.isOutsideVisibleMonths.bind(this),this.isDateDisabled=this.isDateDisabled.bind(this),this.isDateSelected=this.isDateSelected.bind(this),this.shiftFocus=this.shiftFocus.bind(this),this.handleCellClick=this.handleCellClick.bind(this),this.handleMultipleUpdate=this.handleMultipleUpdate.bind(this),this.handleSingleUpdate=this.handleSingleUpdate.bind(this),this.onkeydown=this.onkeydown.bind(this),this.getBitsAttr=this.getBitsAttr.bind(this),Un(()=>{this.announcer=qr(this.domContext.getDocument())}),this.months=Tt({dateObj:this.opts.placeholder.current,weekStartsOn:this.opts.weekStartsOn.current,locale:this.opts.locale.current,fixedWeeks:this.opts.fixedWeeks.current,numberOfMonths:this.opts.numberOfMonths.current}),this.#s(),this.#d(),this.#h(),ts({placeholder:this.opts.placeholder,getVisibleMonths:()=>this.visibleMonths,weekStartsOn:this.opts.weekStartsOn,locale:this.opts.locale,fixedWeeks:this.opts.fixedWeeks,numberOfMonths:this.opts.numberOfMonths,setMonths:r=>this.months=r}),Xa({fixedWeeks:this.opts.fixedWeeks,locale:this.opts.locale,numberOfMonths:this.opts.numberOfMonths,placeholder:this.opts.placeholder,setMonths:this.setMonths,weekStartsOn:this.opts.weekStartsOn}),Ft(()=>this.fullCalendarLabel,r=>{const n=this.domContext.getElementById(this.accessibleHeadingId);n&&(n.textContent=r)}),Ft(()=>this.opts.value.current,()=>{const r=this.opts.value.current;if(Array.isArray(r)&&r.length){const n=r[r.length-1];n&&this.opts.placeholder.current!==n&&(this.opts.placeholder.current=n)}else!Array.isArray(r)&&r&&this.opts.placeholder.current!==r&&(this.opts.placeholder.current=r)}),is({placeholder:e.placeholder,defaultPlaceholder:e.defaultPlaceholder,isDateDisabled:e.isDateDisabled,maxValue:e.maxValue,minValue:e.minValue,ref:e.ref})}setMonths(e){this.months=e}#r=b(()=>Qa({months:this.months,formatter:this.formatter,weekdayFormat:this.opts.weekdayFormat.current}));get weekdays(){return o(this.#r)}set weekdays(e){v(this.#r,e)}#n=b(()=>Lt(()=>this.opts.placeholder.current.year));get initialPlaceholderYear(){return o(this.#n)}set initialPlaceholderYear(e){v(this.#n,e)}#a=b(()=>us({minValue:this.opts.minValue.current,maxValue:this.opts.maxValue.current,placeholderYear:this.initialPlaceholderYear}));get defaultYears(){return o(this.#a)}set defaultYears(e){v(this.#a,e)}#s(){Dt(()=>{if(Lt(()=>this.opts.initialFocus.current)){const r=this.opts.ref.current?.querySelector("[data-focused]");r&&r.focus()}})}#d(){Dt(()=>this.opts.ref.current?es({calendarNode:this.opts.ref.current,label:this.fullCalendarLabel,accessibleHeadingId:this.accessibleHeadingId}):void 0)}#h(){Bn(()=>{this.formatter.getLocale()!==this.opts.locale.current&&this.formatter.setLocale(this.opts.locale.current)})}nextPage(){Ka({fixedWeeks:this.opts.fixedWeeks.current,locale:this.opts.locale.current,numberOfMonths:this.opts.numberOfMonths.current,pagedNavigation:this.opts.pagedNavigation.current,setMonths:this.setMonths,setPlaceholder:e=>this.opts.placeholder.current=e,weekStartsOn:this.opts.weekStartsOn.current,months:this.months})}prevPage(){Ga({fixedWeeks:this.opts.fixedWeeks.current,locale:this.opts.locale.current,numberOfMonths:this.opts.numberOfMonths.current,pagedNavigation:this.opts.pagedNavigation.current,setMonths:this.setMonths,setPlaceholder:e=>this.opts.placeholder.current=e,weekStartsOn:this.opts.weekStartsOn.current,months:this.months})}nextYear(){this.opts.placeholder.current=this.opts.placeholder.current.add({years:1})}prevYear(){this.opts.placeholder.current=this.opts.placeholder.current.subtract({years:1})}setYear(e){this.opts.placeholder.current=this.opts.placeholder.current.set({year:e})}setMonth(e){this.opts.placeholder.current=this.opts.placeholder.current.set({month:e})}#o=b(()=>rs({maxValue:this.opts.maxValue.current,months:this.months,disabled:this.opts.disabled.current}));get isNextButtonDisabled(){return o(this.#o)}set isNextButtonDisabled(e){v(this.#o,e)}#i=b(()=>ns({minValue:this.opts.minValue.current,months:this.months,disabled:this.opts.disabled.current}));get isPrevButtonDisabled(){return o(this.#i)}set isPrevButtonDisabled(e){v(this.#i,e)}#l=b(()=>{const e=this.opts.value.current,r=this.opts.isDateDisabled.current,n=this.opts.isDateUnavailable.current;if(Array.isArray(e)){if(!e.length)return!1;for(const a of e)if(r(a)||n(a))return!0}else{if(!e)return!1;if(r(e)||n(e))return!0}return!1});get isInvalid(){return o(this.#l)}set isInvalid(e){v(this.#l,e)}#c=b(()=>(this.opts.monthFormat.current,this.opts.yearFormat.current,as({months:this.months,formatter:this.formatter,locale:this.opts.locale.current})));get headingValue(){return o(this.#c)}set headingValue(e){v(this.#c,e)}#u=b(()=>`${this.opts.calendarLabel.current} ${this.headingValue}`);get fullCalendarLabel(){return o(this.#u)}set fullCalendarLabel(e){v(this.#u,e)}isOutsideVisibleMonths(e){return!this.visibleMonths.some(r=>Zt(e,r))}isDateDisabled(e){if(this.opts.isDateDisabled.current(e)||this.opts.disabled.current)return!0;const r=this.opts.minValue.current,n=this.opts.maxValue.current;return!!(r&&At(e,r)||n&&At(n,e))}isDateSelected(e){const r=this.opts.value.current;return Array.isArray(r)?r.some(n=>mt(n,e)):r?mt(r,e):!1}shiftFocus(e,r){return Ja({node:e,add:r,placeholder:this.opts.placeholder,calendarNode:this.opts.ref.current,isPrevButtonDisabled:this.isPrevButtonDisabled,isNextButtonDisabled:this.isNextButtonDisabled,months:this.months,numberOfMonths:this.opts.numberOfMonths.current})}#f(e){if(this.opts.type.current!=="multiple"||!this.opts.maxDays.current)return!0;const r=e.length;return!(this.opts.maxDays.current&&r>this.opts.maxDays.current)}handleCellClick(e,r){if(this.opts.readonly.current||this.opts.isDateDisabled.current?.(r)||this.opts.isDateUnavailable.current?.(r))return;const n=this.opts.value.current;if(this.opts.type.current==="multiple")(Array.isArray(n)||n===void 0)&&(this.opts.value.current=this.handleMultipleUpdate(n,r));else if(!Array.isArray(n)){const s=this.handleSingleUpdate(n,r);s?this.announcer.announce(`Selected Date: ${this.formatter.selectedDate(s,!1)}`,"polite"):this.announcer.announce("Selected date is now empty.","polite",5e3),this.opts.value.current=ls(s,n),s!==void 0&&this.opts.onDateSelect?.current?.()}}handleMultipleUpdate(e,r){if(!e){const s=[r];return this.#f(s)?s:[r]}if(!Array.isArray(e))return;const n=e.findIndex(s=>mt(s,r)),a=this.opts.preventDeselect.current;if(n===-1){const s=[...e,r];return this.#f(s)?s:[r]}else{if(a)return e;{const s=e.filter(i=>!mt(i,r));if(!s.length){this.opts.placeholder.current=r;return}return s}}}handleSingleUpdate(e,r){if(!e)return r;if(!this.opts.preventDeselect.current&&mt(e,r)){this.opts.placeholder.current=r;return}return r}onkeydown(e){qa({event:e,handleCellClick:this.handleCellClick,shiftFocus:this.shiftFocus,placeholderValue:this.opts.placeholder.current})}#m=b(()=>({months:this.months,weekdays:this.weekdays}));get snippetProps(){return o(this.#m)}set snippetProps(e){v(this.#m,e)}getBitsAttr=e=>cs.getAttr(e);#v=b(()=>({...ss({fullCalendarLabel:this.fullCalendarLabel,id:this.opts.id.current,isInvalid:this.isInvalid,disabled:this.opts.disabled.current,readonly:this.opts.readonly.current}),[this.getBitsAttr("root")]:"",onkeydown:this.onkeydown,...this.attachment}));get props(){return o(this.#v)}set props(e){v(this.#v,e)}}const En=new un("Calendar.Cell | RangeCalendar.Cell");class Sr{static create(e){return En.set(new Sr(e,Te.get()))}opts;root;#e=b(()=>Le(this.opts.date.current));get cellDate(){return o(this.#e)}set cellDate(e){v(this.#e,e)}#t=b(()=>this.root.opts.isDateUnavailable.current(this.opts.date.current));get isUnavailable(){return o(this.#t)}set isUnavailable(e){v(this.#t,e)}#r=b(()=>sa(this.opts.date.current,ye()));get isDateToday(){return o(this.#r)}set isDateToday(e){v(this.#r,e)}#n=b(()=>!Zt(this.opts.date.current,this.opts.month.current));get isOutsideMonth(){return o(this.#n)}set isOutsideMonth(e){v(this.#n,e)}#a=b(()=>this.root.isOutsideVisibleMonths(this.opts.date.current));get isOutsideVisibleMonths(){return o(this.#a)}set isOutsideVisibleMonths(e){v(this.#a,e)}#s=b(()=>this.root.isDateDisabled(this.opts.date.current)||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current);get isDisabled(){return o(this.#s)}set isDisabled(e){v(this.#s,e)}#d=b(()=>mt(this.opts.date.current,this.root.opts.placeholder.current));get isFocusedDate(){return o(this.#d)}set isFocusedDate(e){v(this.#d,e)}#h=b(()=>this.root.isDateSelected(this.opts.date.current));get isSelectedDate(){return o(this.#h)}set isSelectedDate(e){v(this.#h,e)}#o=b(()=>this.root.formatter.custom(this.cellDate,{weekday:"long",month:"long",day:"numeric",year:"numeric"}));get labelText(){return o(this.#o)}set labelText(e){v(this.#o,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#i=b(()=>({disabled:this.isDisabled,unavailable:this.isUnavailable,selected:this.isSelectedDate,day:`${this.opts.date.current.day}`}));get snippetProps(){return o(this.#i)}set snippetProps(e){v(this.#i,e)}#l=b(()=>this.isDisabled||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current||this.isUnavailable);get ariaDisabled(){return o(this.#l)}set ariaDisabled(e){v(this.#l,e)}#c=b(()=>({"data-unavailable":ee(this.isUnavailable),"data-today":this.isDateToday?"":void 0,"data-outside-month":this.isOutsideMonth?"":void 0,"data-outside-visible-months":this.isOutsideVisibleMonths?"":void 0,"data-focused":this.isFocusedDate?"":void 0,"data-selected":ee(this.isSelectedDate),"data-value":this.opts.date.current.toString(),"data-type":La(this.opts.date.current),"data-disabled":ee(this.isDisabled||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current)}));get sharedDataAttrs(){return o(this.#c)}set sharedDataAttrs(e){v(this.#c,e)}#u=b(()=>({id:this.opts.id.current,role:"gridcell","aria-selected":_t(this.isSelectedDate),"aria-disabled":_t(this.ariaDisabled),...this.sharedDataAttrs,[this.root.getBitsAttr("cell")]:"",...this.attachment}));get props(){return o(this.#u)}set props(e){v(this.#u,e)}}class Cr{static create(e){return new Cr(e,En.get())}opts;cell;attachment;constructor(e,r){this.opts=e,this.cell=r,this.onclick=this.onclick.bind(this),this.attachment=$e(this.opts.ref)}#e=b(()=>this.cell.isOutsideMonth&&this.cell.root.opts.disableDaysOutsideMonth.current||this.cell.isDisabled?void 0:this.cell.isFocusedDate?0:-1);onclick(e){this.cell.isDisabled||this.cell.root.handleCellClick(e,this.cell.opts.date.current)}#t=b(()=>({disabled:this.cell.isDisabled,unavailable:this.cell.isUnavailable,selected:this.cell.isSelectedDate,day:`${this.cell.opts.date.current.day}`}));get snippetProps(){return o(this.#t)}set snippetProps(e){v(this.#t,e)}#r=b(()=>({id:this.opts.id.current,role:"button","aria-label":this.cell.labelText,"aria-disabled":_t(this.cell.ariaDisabled),...this.cell.sharedDataAttrs,tabindex:o(this.#e),[this.cell.root.getBitsAttr("day")]:"","data-bits-day":"",onclick:this.onclick,...this.attachment}));get props(){return o(this.#r)}set props(e){v(this.#r,e)}}class kr{static create(e){return new kr(e,Te.get())}opts;root;#e=b(()=>this.root.isNextButtonDisabled);get isDisabled(){return o(this.#e)}set isDisabled(e){v(this.#e,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.onclick=this.onclick.bind(this),this.attachment=$e(this.opts.ref)}onclick(e){this.isDisabled||this.root.nextPage()}#t=b(()=>({id:this.opts.id.current,role:"button",type:"button","aria-label":"Next","aria-disabled":_t(this.isDisabled),"data-disabled":ee(this.isDisabled),disabled:this.isDisabled,[this.root.getBitsAttr("next-button")]:"",onclick:this.onclick,...this.attachment}));get props(){return o(this.#t)}set props(e){v(this.#t,e)}}class Ir{static create(e){return new Ir(e,Te.get())}opts;root;#e=b(()=>this.root.isPrevButtonDisabled);get isDisabled(){return o(this.#e)}set isDisabled(e){v(this.#e,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.onclick=this.onclick.bind(this),this.attachment=$e(this.opts.ref)}onclick(e){this.isDisabled||this.root.prevPage()}#t=b(()=>({id:this.opts.id.current,role:"button",type:"button","aria-label":"Previous","aria-disabled":_t(this.isDisabled),"data-disabled":ee(this.isDisabled),disabled:this.isDisabled,[this.root.getBitsAttr("prev-button")]:"",onclick:this.onclick,...this.attachment}));get props(){return o(this.#t)}set props(e){v(this.#t,e)}}class Fr{static create(e){return new Fr(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,tabindex:-1,role:"grid","aria-readonly":_t(this.root.opts.readonly.current),"aria-disabled":_t(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),"data-disabled":ee(this.root.opts.disabled.current),[this.root.getBitsAttr("grid")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Or{static create(e){return new Or(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,"data-disabled":ee(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-body")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Ar{static create(e){return new Ar(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,"data-disabled":ee(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-head")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Tr{static create(e){return new Tr(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,"data-disabled":ee(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-row")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Er{static create(e){return new Er(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,"data-disabled":ee(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),[this.root.getBitsAttr("head-cell")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Yr{static create(e){return new Yr(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,"data-disabled":ee(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),[this.root.getBitsAttr("header")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Vr{static create(e){return new Vr(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.onchange=this.onchange.bind(this),this.attachment=$e(this.opts.ref)}#e=b(()=>{this.root.opts.locale.current;const e=this.opts.months.current,r=this.opts.monthFormat.current,n=[];for(const a of e){const s=this.root.opts.placeholder.current.set({month:a});let i;typeof r=="function"?i=r(a):i=this.root.formatter.custom(Le(s),{month:r}),n.push({value:a,label:i})}return n});get monthItems(){return o(this.#e)}set monthItems(e){v(this.#e,e)}#t=b(()=>this.root.opts.placeholder.current.month);get currentMonth(){return o(this.#t)}set currentMonth(e){v(this.#t,e)}#r=b(()=>this.root.opts.disabled.current||this.opts.disabled.current);get isDisabled(){return o(this.#r)}set isDisabled(e){v(this.#r,e)}#n=b(()=>({monthItems:this.monthItems,selectedMonthItem:this.monthItems.find(e=>e.value===this.currentMonth)}));get snippetProps(){return o(this.#n)}set snippetProps(e){v(this.#n,e)}onchange(e){if(this.isDisabled)return;const r=e.target,n=parseInt(r.value,10);isNaN(n)||(this.root.opts.placeholder.current=this.root.opts.placeholder.current.set({month:n}))}#a=b(()=>({id:this.opts.id.current,value:this.currentMonth,disabled:this.isDisabled,"data-disabled":ee(this.isDisabled),[this.root.getBitsAttr("month-select")]:"",onchange:this.onchange,...this.attachment}));get props(){return o(this.#a)}set props(e){v(this.#a,e)}}class Br{static create(e){return new Br(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.onchange=this.onchange.bind(this),this.attachment=$e(this.opts.ref)}#e=b(()=>this.opts.years.current&&this.opts.years.current.length?this.opts.years.current:this.root.defaultYears);get years(){return o(this.#e)}set years(e){v(this.#e,e)}#t=b(()=>{this.root.opts.locale.current;const e=this.opts.yearFormat.current,r=[];for(const n of this.years){const a=this.root.opts.placeholder.current.set({year:n});let s;typeof e=="function"?s=e(n):s=this.root.formatter.custom(Le(a),{year:e}),r.push({value:n,label:s})}return r});get yearItems(){return o(this.#t)}set yearItems(e){v(this.#t,e)}#r=b(()=>this.root.opts.placeholder.current.year);get currentYear(){return o(this.#r)}set currentYear(e){v(this.#r,e)}#n=b(()=>this.root.opts.disabled.current||this.opts.disabled.current);get isDisabled(){return o(this.#n)}set isDisabled(e){v(this.#n,e)}#a=b(()=>({yearItems:this.yearItems,selectedYearItem:this.yearItems.find(e=>e.value===this.currentYear)}));get snippetProps(){return o(this.#a)}set snippetProps(e){v(this.#a,e)}onchange(e){if(this.isDisabled)return;const r=e.target,n=parseInt(r.value,10);isNaN(n)||(this.root.opts.placeholder.current=this.root.opts.placeholder.current.set({year:n}))}#s=b(()=>({id:this.opts.id.current,value:this.currentYear,disabled:this.isDisabled,"data-disabled":ee(this.isDisabled),[this.root.getBitsAttr("year-select")]:"",onchange:this.onchange,...this.attachment}));get props(){return o(this.#s)}set props(e){v(this.#s,e)}}var ds=T("<div><!></div>");function hs(t,e){L(e,!0);let r=g(e,"id",19,dn),n=g(e,"ref",15,null),a=g(e,"value",15),s=g(e,"onValueChange",3,Wr),i=g(e,"placeholder",15),c=g(e,"onPlaceholderChange",3,Wr),d=g(e,"weekdayFormat",3,"narrow"),f=g(e,"pagedNavigation",3,!1),y=g(e,"isDateDisabled",3,()=>!1),x=g(e,"isDateUnavailable",3,()=>!1),u=g(e,"fixedWeeks",3,!1),l=g(e,"numberOfMonths",3,1),m=g(e,"calendarLabel",3,"Event"),w=g(e,"disabled",3,!1),E=g(e,"readonly",3,!1),D=g(e,"minValue",3,void 0),P=g(e,"maxValue",3,void 0),O=g(e,"preventDeselect",3,!1),J=g(e,"disableDaysOutsideMonth",3,!0),B=g(e,"initialFocus",3,!1),S=g(e,"monthFormat",3,"long"),I=g(e,"yearFormat",3,"numeric"),q=H(e,["$$slots","$$events","$$legacy","child","children","id","ref","value","onValueChange","placeholder","onPlaceholderChange","weekdayFormat","weekStartsOn","pagedNavigation","isDateDisabled","isDateUnavailable","fixedWeeks","numberOfMonths","locale","calendarLabel","disabled","readonly","minValue","maxValue","preventDeselect","type","disableDaysOutsideMonth","initialFocus","maxDays","monthFormat","yearFormat"]);const z=Ua({defaultValue:a(),minValue:D(),maxValue:P()});function Q(){i()===void 0&&i(z)}Q(),Ft.pre(()=>i(),()=>{Q()});function re(){a()===void 0&&a(e.type==="single"?void 0:[])}re(),Ft.pre(()=>a(),()=>{re()});const te=Pr.create({id:$(()=>r()),ref:$(()=>n(),V=>n(V)),weekdayFormat:$(()=>d()),weekStartsOn:$(()=>e.weekStartsOn),pagedNavigation:$(()=>f()),isDateDisabled:$(()=>y()),isDateUnavailable:$(()=>x()),fixedWeeks:$(()=>u()),numberOfMonths:$(()=>l()),locale:Zn(()=>e.locale),calendarLabel:$(()=>m()),readonly:$(()=>E()),disabled:$(()=>w()),minValue:$(()=>D()),maxValue:$(()=>P()),disableDaysOutsideMonth:$(()=>J()),initialFocus:$(()=>B()),maxDays:$(()=>e.maxDays),placeholder:$(()=>i(),V=>{i(V),c()(V)}),preventDeselect:$(()=>O()),value:$(()=>a(),V=>{a(V),s()(V)}),type:$(()=>e.type),monthFormat:$(()=>S()),yearFormat:$(()=>I()),defaultPlaceholder:z}),be=b(()=>Pe(q,te.props));var de=_(),pe=p(de);{var Qe=V=>{var W=_(),Se=p(W);{let Ce=b(()=>({props:o(be),...te.snippetProps}));N(Se,()=>e.child,()=>o(Ce))}h(V,W)},A=V=>{var W=ds();ce(W,()=>({...o(be)}));var Se=k(W);N(Se,()=>e.children??ie,()=>te.snippetProps),C(W),h(V,W)};G(pe,V=>{e.child?V(Qe):V(A,!1)})}h(t,de),R()}var fs=T("<div><!></div>");function ms(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Cr.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);{let w=b(()=>({props:o(c),...i.snippetProps}));N(m,()=>e.child,()=>o(w))}h(u,l)},x=u=>{var l=fs();ce(l,()=>({...o(c)}));var m=k(l);{var w=D=>{var P=_(),O=p(P);N(O,()=>e.children??ie,()=>i.snippetProps),h(D,P)},E=D=>{var P=lt();se(()=>le(P,i.cell.opts.date.current.day)),h(D,P)};G(m,D=>{e.children?D(w):D(E,!1)})}C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var vs=T("<table><!></table>");function gs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Fr.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=vs();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var ys=T("<tbody><!></tbody>");function bs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Or.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=ys();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var ps=T("<td><!></td>");function xs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id","date","month"]);const i=Sr.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u)),date:$(()=>e.date),month:$(()=>e.month)}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);{let w=b(()=>({props:o(c),...i.snippetProps}));N(m,()=>e.child,()=>o(w))}h(u,l)},x=u=>{var l=ps();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie,()=>i.snippetProps),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var Ds=T("<thead><!></thead>");function _s(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Ar.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=Ds();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var ws=T("<th><!></th>");function Ms(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Er.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=ws();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var $s=T("<tr><!></tr>");function Ps(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Tr.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=$s();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var Ss=T("<header><!></header>");function Cs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Yr.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=Ss();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var ks=T("<option> </option>"),Is=T("<select><!></select>");function Fs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=g(e,"months",19,()=>[1,2,3,4,5,6,7,8,9,10,11,12]),i=g(e,"monthFormat",3,"long"),c=g(e,"disabled",3,!1),d=g(e,"aria-label",3,"Select a month"),f=H(e,["$$slots","$$events","$$legacy","children","child","ref","id","months","monthFormat","disabled","aria-label"]);const y=Vr.create({id:$(()=>a()),ref:$(()=>n(),E=>n(E)),months:$(()=>s()),monthFormat:$(()=>i()),disabled:$(()=>!!c())}),x=b(()=>Pe(f,y.props,{"aria-label":d()}));var u=_(),l=p(u);{var m=E=>{var D=_(),P=p(D);{let O=b(()=>({props:o(x),...y.snippetProps}));N(P,()=>e.child,()=>o(O))}h(E,D)},w=E=>{var D=Is();ce(D,()=>({...o(x)}));var P=k(D);{var O=B=>{var S=_(),I=p(S);N(I,()=>e.children??ie,()=>y.snippetProps),h(B,S)},J=B=>{var S=_(),I=p(S);qe(I,17,()=>y.monthItems,q=>q.value,(q,z)=>{var Q=ks(),re=k(Q,!0);C(Q);var te={};se(()=>{Ht(Q,o(z).value===y.currentMonth),le(re,o(z).label),te!==(te=o(z).value)&&(Q.value=(Q.__value=o(z).value)??"")}),h(q,Q)}),h(B,S)};G(P,B=>{e.children?B(O):B(J,!1)})}C(D),h(E,D)};G(l,E=>{e.child?E(m):E(w,!1)})}h(t,u),R()}var Os=T("<button><!></button>");function As(t,e){const r=Oe();L(e,!0);let n=g(e,"id",19,()=>Ae(r)),a=g(e,"ref",15,null),s=g(e,"tabindex",3,0),i=H(e,["$$slots","$$events","$$legacy","children","child","id","ref","tabindex"]);const c=kr.create({id:$(()=>n()),ref:$(()=>a(),l=>a(l))}),d=b(()=>Pe(i,c.props,{tabindex:s()}));var f=_(),y=p(f);{var x=l=>{var m=_(),w=p(m);N(w,()=>e.child,()=>({props:o(d)})),h(l,m)},u=l=>{var m=Os();ce(m,()=>({...o(d)}));var w=k(m);N(w,()=>e.children??ie),C(m),h(l,m)};G(y,l=>{e.child?l(x):l(u,!1)})}h(t,f),R()}var Ts=T("<button><!></button>");function Es(t,e){const r=Oe();L(e,!0);let n=g(e,"id",19,()=>Ae(r)),a=g(e,"ref",15,null),s=g(e,"tabindex",3,0),i=H(e,["$$slots","$$events","$$legacy","children","child","id","ref","tabindex"]);const c=Ir.create({id:$(()=>n()),ref:$(()=>a(),l=>a(l))}),d=b(()=>Pe(i,c.props,{tabindex:s()}));var f=_(),y=p(f);{var x=l=>{var m=_(),w=p(m);N(w,()=>e.child,()=>({props:o(d)})),h(l,m)},u=l=>{var m=Ts();ce(m,()=>({...o(d)}));var w=k(m);N(w,()=>e.children??ie),C(m),h(l,m)};G(y,l=>{e.child?l(x):l(u,!1)})}h(t,f),R()}var Ys=T("<option> </option>"),Vs=T("<select><!></select>");function Bs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=g(e,"yearFormat",3,"numeric"),i=g(e,"disabled",3,!1),c=g(e,"aria-label",3,"Select a year"),d=H(e,["$$slots","$$events","$$legacy","children","child","ref","id","years","yearFormat","disabled","aria-label"]);const f=Br.create({id:$(()=>a()),ref:$(()=>n(),w=>n(w)),years:$(()=>e.years),yearFormat:$(()=>s()),disabled:$(()=>!!i())}),y=b(()=>Pe(d,f.props,{"aria-label":c()}));var x=_(),u=p(x);{var l=w=>{var E=_(),D=p(E);{let P=b(()=>({props:o(y),...f.snippetProps}));N(D,()=>e.child,()=>o(P))}h(w,E)},m=w=>{var E=Vs();ce(E,()=>({...o(y)}));var D=k(E);{var P=J=>{var B=_(),S=p(B);N(S,()=>e.children??ie,()=>f.snippetProps),h(J,B)},O=J=>{var B=_(),S=p(B);qe(S,17,()=>f.yearItems,I=>I.value,(I,q)=>{var z=Ys(),Q=k(z,!0);C(z);var re={};se(()=>{Ht(z,o(q).value===f.currentYear),le(Q,o(q).label),re!==(re=o(q).value)&&(z.value=(z.__value=o(q).value)??"")}),h(I,z)}),h(J,B)};G(D,J=>{e.children?J(P):J(O,!1)})}C(E),h(w,E)};G(u,w=>{e.child?w(l):w(m,!1)})}h(t,x),R()}function Us(t,e){L(e,!0);let r=H(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m15 18-6-6 6-6"}]];pr(t,he({name:"chevron-left"},()=>r,{get iconNode(){return n},children:(a,s)=>{var i=_(),c=p(i);N(c,()=>e.children??ie),h(a,i)},$$slots:{default:!0}})),R()}function Yn(t,e){L(e,!0);let r=H(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m9 18 6-6-6-6"}]];pr(t,he({name:"chevron-right"},()=>r,{get iconNode(){return n},children:(a,s)=>{var i=_(),c=p(i);N(c,()=>e.children??ie),h(a,i)},$$slots:{default:!0}})),R()}function Ls(t,e){L(e,!0);let r=H(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 6v6l4 2"}],["circle",{cx:"12",cy:"12",r:"10"}]];pr(t,he({name:"clock"},()=>r,{get iconNode(){return n},children:(a,s)=>{var i=_(),c=p(i);N(c,()=>e.children??ie),h(a,i)},$$slots:{default:!0}})),R()}var Rs=T("<!> <!>",1),Ns=T("<!> <!>",1),Ws=T("<!> <!>",1),Hs=T("<!> <!>",1);function Zs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=g(e,"value",15),a=g(e,"placeholder",15),s=g(e,"weekdayFormat",3,"short"),i=g(e,"buttonVariant",3,"ghost"),c=g(e,"captionLayout",3,"label"),d=g(e,"locale",3,"en-US"),f=g(e,"yearFormat",3,"numeric"),y=g(e,"disableDaysOutsideMonth",3,!1),x=H(e,["$$slots","$$events","$$legacy","ref","value","placeholder","class","weekdayFormat","buttonVariant","captionLayout","locale","months","years","monthFormat","yearFormat","day","disableDaysOutsideMonth"]);const u=b(()=>e.monthFormat?e.monthFormat:c().startsWith("dropdown")?"short":"long");var l=_(),m=p(l);{const w=(D,P)=>{let O=()=>P?.().months,J=()=>P?.().weekdays;var B=_(),S=p(B);Y(S,()=>Gs,(I,q)=>{q(I,{children:(z,Q)=>{var re=Hs(),te=p(re);Y(te,()=>yo,(de,pe)=>{pe(de,{children:(Qe,A)=>{var V=Rs(),W=p(V);Y(W,()=>ao,(Ce,Re)=>{Re(Ce,{get variant(){return i()}})});var Se=U(W,2);Y(Se,()=>ro,(Ce,Re)=>{Re(Ce,{get variant(){return i()}})}),h(Qe,V)},$$slots:{default:!0}})});var be=U(te,2);qe(be,18,O,de=>de,(de,pe,Qe)=>{var A=_(),V=p(A);Y(V,()=>vo,(W,Se)=>{Se(W,{children:(Ce,Re)=>{var Mt=Ws(),M=p(Mt);Y(M,()=>qs,(K,j)=>{j(K,{children:(Z,Xe)=>{var Ee=_(),me=p(Ee);Y(me,()=>Do,(Ye,xe)=>{xe(Ye,{get captionLayout(){return c()},get months(){return e.months},get monthFormat(){return o(u)},get years(){return e.years},get yearFormat(){return f()},get month(){return pe.value},get locale(){return d()},get monthIndex(){return o(Qe)},get placeholder(){return a()},set placeholder(et){a(et)}})}),h(Z,Ee)},$$slots:{default:!0}})});var F=U(M,2);Y(F,()=>Js,(K,j)=>{j(K,{children:(Z,Xe)=>{var Ee=Ns(),me=p(Ee);Y(me,()=>Xs,(xe,et)=>{et(xe,{children:(De,$t)=>{var Ve=_(),ke=p(Ve);Y(ke,()=>rn,(Ne,ct)=>{ct(Ne,{class:"select-none",children:(ut,We)=>{var Ie=_(),tt=p(Ie);qe(tt,16,J,He=>He,(He,rt)=>{var Ze=_(),yt=p(Ze);Y(yt,()=>eo,(ve,ge)=>{ge(ve,{children:(Be,dt)=>{kt();var ne=lt();se(nt=>le(ne,nt),[()=>rt.slice(0,2)]),h(Be,ne)},$$slots:{default:!0}})}),h(He,Ze)}),h(ut,Ie)},$$slots:{default:!0}})}),h(De,Ve)},$$slots:{default:!0}})});var Ye=U(me,2);Y(Ye,()=>Qs,(xe,et)=>{et(xe,{children:(De,$t)=>{var Ve=_(),ke=p(Ve);qe(ke,16,()=>pe.weeks,Ne=>Ne,(Ne,ct)=>{var ut=_(),We=p(ut);Y(We,()=>rn,(Ie,tt)=>{tt(Ie,{class:"mt-2 w-full",children:(He,rt)=>{var Ze=_(),yt=p(Ze);qe(yt,16,()=>ct,ve=>ve,(ve,ge)=>{var Be=_(),dt=p(Be);Y(dt,()=>js,(ne,nt)=>{nt(ne,{get date(){return ge},get month(){return pe.value},children:(at,ht)=>{var ft=_(),_e=p(ft);{var st=je=>{var fe=_(),Ue=p(fe);{let bt=b(()=>({day:ge,outsideMonth:!aa(ge,pe.value)}));N(Ue,()=>e.day,()=>o(bt))}h(je,fe)},ot=je=>{var fe=_(),Ue=p(fe);Y(Ue,()=>zs,(bt,pt)=>{pt(bt,{})}),h(je,fe)};G(_e,je=>{e.day?je(st):je(ot,!1)})}h(at,ft)},$$slots:{default:!0}})}),h(ve,Be)}),h(He,Ze)},$$slots:{default:!0}})}),h(Ne,ut)}),h(De,Ve)},$$slots:{default:!0}})}),h(Z,Ee)},$$slots:{default:!0}})}),h(Ce,Mt)},$$slots:{default:!0}})}),h(de,A)}),h(z,re)},$$slots:{default:!0}})}),h(D,B)};let E=b(()=>ue("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",e.class));Y(m,()=>hs,(D,P)=>{P(D,he({get weekdayFormat(){return s()},get disableDaysOutsideMonth(){return y()},get class(){return o(E)},get locale(){return d()},get monthFormat(){return o(u)},get yearFormat(){return f()}},()=>x,{get value(){return n()},set value(O){n(O)},get ref(){return r()},set ref(O){r(O)},get placeholder(){return a()},set placeholder(O){a(O)},children:w,$$slots:{default:!0}}))})}h(t,l),R()}function js(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue("relative size-(--cell-size) p-0 text-center text-sm focus-within:z-20 [&:first-child[data-selected]_[data-bits-day]]:rounded-s-md [&:last-child[data-selected]_[data-bits-day]]:rounded-e-md",e.class));Y(s,()=>xs,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function zs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue(gr({variant:"ghost"}),"flex size-(--cell-size) flex-col items-center justify-center gap-1 p-0 leading-none font-normal whitespace-nowrap select-none","[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground [&[data-today][data-disabled]]:text-muted-foreground","data-[selected]:bg-primary dark:data-[selected]:hover:bg-accent/50 data-[selected]:text-primary-foreground","[&[data-outside-month]:not([data-selected])]:text-muted-foreground [&[data-outside-month]:not([data-selected])]:hover:text-accent-foreground","data-[disabled]:text-muted-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[unavailable]:text-muted-foreground data-[unavailable]:line-through","dark:hover:text-accent-foreground","focus:border-ring focus:ring-ring/50 focus:relative","[&>span]:text-xs [&>span]:opacity-70",e.class));Y(s,()=>ms,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function Js(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue("mt-4 flex w-full border-collapse flex-col gap-1",e.class));Y(s,()=>gs,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function qs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",e.class));Y(s,()=>Cs,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}var Ks=T("<div><!></div>");function Gs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class","children"]);var a=Ks();ce(a,i=>({class:i,...n}),[()=>ue("relative flex flex-col gap-4 md:flex-row",e.class)]);var s=k(a);N(s,()=>e.children??ie),C(a),mr(a,i=>r(i),()=>r()),h(t,a),R()}function rn(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue("flex",e.class));Y(s,()=>Ps,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function Qs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue(e.class));Y(s,()=>bs,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function Xs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue(e.class));Y(s,()=>_s,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function eo(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue("text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal",e.class));Y(s,()=>Ms,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}const to=t=>{Yn(t,{class:"size-4"})};function ro(t,e){L(e,!0);let r=g(e,"ref",15,null),n=g(e,"variant",3,"ghost"),a=H(e,["$$slots","$$events","$$legacy","ref","class","children","variant"]);var s=_(),i=p(s);{let c=b(()=>ue(gr({variant:n()}),"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180",e.class)),d=b(()=>e.children||to);Y(i,()=>As,(f,y)=>{y(f,he({get class(){return o(c)},get children(){return o(d)}},()=>a,{get ref(){return r()},set ref(x){r(x)}}))})}h(t,s),R()}const no=t=>{Us(t,{class:"size-4"})};function ao(t,e){L(e,!0);let r=g(e,"ref",15,null),n=g(e,"variant",3,"ghost"),a=H(e,["$$slots","$$events","$$legacy","ref","class","children","variant"]);var s=_(),i=p(s);{let c=b(()=>ue(gr({variant:n()}),"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180",e.class)),d=b(()=>e.children||no);Y(i,()=>Es,(f,y)=>{y(f,he({get class(){return o(c)},get children(){return o(d)}},()=>a,{get ref(){return r()},set ref(x){r(x)}}))})}h(t,s),R()}var so=T("<option> </option>"),oo=T('<select></select> <span class="[&amp;>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>svg]:size-3.5" aria-hidden="true"> <!></span>',1),io=T("<span><!></span>");function lo(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class","value","onchange"]);var a=io(),s=k(a);{const i=(c,d)=>{let f=()=>d?.().props,y=()=>d?.().monthItems,x=()=>d?.().selectedMonthItem;var u=oo(),l=p(u);ce(l,()=>({...f(),value:e.value,onchange:e.onchange})),qe(l,21,y,D=>D.value,(D,P)=>{var O=so(),J=k(O,!0);C(O);var B={};se(()=>{Ht(O,e.value!==void 0?o(P).value===e.value:o(P).value===x().value),le(J,o(P).label),B!==(B=o(P).value)&&(O.value=(O.__value=o(P).value)??"")}),h(D,O)}),C(l);var m=U(l,2),w=k(m),E=U(w);br(E,{class:"size-4"}),C(m),se(D=>le(w,`${D??""} `),[()=>y().find(D=>D.value===e.value)?.label||x().label]),h(c,u)};Y(s,()=>Fs,(c,d)=>{d(c,he({class:"absolute inset-0 opacity-0"},()=>n,{get ref(){return r()},set ref(f){r(f)},child:i,$$slots:{child:!0}}))})}C(a),se(i=>xt(a,1,i),[()=>vr(ue("has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]",e.class))]),h(t,a),R()}var co=T("<option> </option>"),uo=T('<select></select> <span class="[&amp;>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>svg]:size-3.5" aria-hidden="true"> <!></span>',1),ho=T("<span><!></span>");function fo(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class","value"]);var a=ho(),s=k(a);{const i=(c,d)=>{let f=()=>d?.().props,y=()=>d?.().yearItems,x=()=>d?.().selectedYearItem;var u=uo(),l=p(u);ce(l,()=>({...f(),value:e.value})),qe(l,21,y,D=>D.value,(D,P)=>{var O=co(),J=k(O,!0);C(O);var B={};se(()=>{Ht(O,e.value!==void 0?o(P).value===e.value:o(P).value===x().value),le(J,o(P).label),B!==(B=o(P).value)&&(O.value=(O.__value=o(P).value)??"")}),h(D,O)}),C(l);var m=U(l,2),w=k(m),E=U(w);br(E,{class:"size-4"}),C(m),se(D=>le(w,`${D??""} `),[()=>y().find(D=>D.value===e.value)?.label||x().label]),h(c,u)};Y(s,()=>Bs,(c,d)=>{d(c,he({class:"absolute inset-0 opacity-0"},()=>n,{get ref(){return r()},set ref(f){r(f)},child:i,$$slots:{child:!0}}))})}C(a),se(i=>xt(a,1,i),[()=>vr(ue("has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]",e.class))]),h(t,a),R()}var mo=T("<div><!></div>");function vo(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class","children"]);var a=mo();ce(a,i=>({...n,class:i}),[()=>ue("flex flex-col",e.class)]);var s=k(a);N(s,()=>e.children??ie),C(a),mr(a,i=>r(i),()=>r()),h(t,a),R()}var go=T("<nav><!></nav>");function yo(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class","children"]);var a=go();ce(a,i=>({...n,class:i}),[()=>ue("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",e.class)]);var s=k(a);N(s,()=>e.children??ie),C(a),mr(a,i=>r(i),()=>r()),h(t,a),R()}var bo=T("<!> <!>",1),po=T("<!> <!>",1),xo=T("<!> <!>",1);function Do(t,e){L(e,!0);const r=u=>{lo(u,{get months(){return e.months},get monthFormat(){return e.monthFormat},get value(){return e.month.month},onchange:l=>{if(!a())return;const m=Number.parseInt(l.currentTarget.value),w=a().set({month:m});a(w.subtract({months:s()}))}})},n=u=>{fo(u,{get years(){return e.years},get yearFormat(){return e.yearFormat},get value(){return e.month.year}})};let a=g(e,"placeholder",15),s=g(e,"monthIndex",3,0);function i(u){const l=u.toDate(ye());return typeof e.yearFormat=="function"?e.yearFormat(l.getFullYear()):new Fe(e.locale,{year:e.yearFormat}).format(l)}function c(u){const l=u.toDate(ye());return typeof e.monthFormat=="function"?e.monthFormat(l.getMonth()+1):new Fe(e.locale,{month:e.monthFormat}).format(l)}var d=_(),f=p(d);{var y=u=>{var l=bo(),m=p(l);r(m);var w=U(m,2);n(w),h(u,l)},x=u=>{var l=_(),m=p(l);{var w=D=>{var P=po(),O=p(P);r(O);var J=U(O,2);{var B=S=>{var I=lt();se(q=>le(I,q),[()=>i(a())]),h(S,I)};G(J,S=>{a()&&S(B)})}h(D,P)},E=D=>{var P=_(),O=p(P);{var J=S=>{var I=xo(),q=p(I);{var z=re=>{var te=lt();se(be=>le(te,be),[()=>c(a())]),h(re,te)};G(q,re=>{a()&&re(z)})}var Q=U(q,2);n(Q),h(S,I)},B=S=>{var I=lt();se((q,z)=>le(I,`${q??""} ${z??""}`),[()=>c(e.month),()=>i(e.month)]),h(S,I)};G(O,S=>{e.captionLayout==="dropdown-years"?S(J):S(B,!1)},!0)}h(D,P)};G(m,D=>{e.captionLayout==="dropdown-months"?D(w):D(E,!1)},!0)}h(u,l)};G(f,u=>{e.captionLayout==="dropdown"?u(y):u(x,!1)})}h(t,d),R()}var _o=T("<!> <!>",1),wo=T("<!> <!>",1),Mo=T('<div><!> <div class="border-t px-3 py-3"><div class="flex items-end gap-2"><div class="flex flex-col items-center gap-1"><span class="text-xs text-muted-foreground">Hours</span> <input type="text" inputmode="numeric" class="w-10 h-9 text-center text-sm border rounded-md bg-background focus:outline-none focus:ring-2 focus:ring-ring tabular-nums"/></div> <span class="text-sm font-medium text-muted-foreground pb-1">:</span> <div class="flex flex-col items-center gap-1"><span class="text-xs text-muted-foreground">Minutes</span> <input type="text" inputmode="numeric" class="w-10 h-9 text-center text-sm border rounded-md bg-background focus:outline-none focus:ring-2 focus:ring-ring tabular-nums"/></div> <span class="text-sm font-medium text-muted-foreground pb-1">:</span> <div class="flex flex-col items-center gap-1"><span class="text-xs text-muted-foreground">Seconds</span> <input type="text" inputmode="numeric" class="w-10 h-9 text-center text-sm border rounded-md bg-muted text-muted-foreground tabular-nums cursor-not-allowed" disabled/></div> <div class="flex flex-col items-center gap-1"><span class="text-xs text-muted-foreground">Period</span> <!></div></div></div></div>');function nn(t,e){L(e,!0);let r=g(e,"value",15),n=oe(12),a=oe(0),s=oe(0),i=oe("AM");Dt(()=>{if(r()&&"hour"in r()){const A=r().hour;v(i,A>=12?"PM":"AM",!0),v(n,A%12||12,!0),v(a,r().minute,!0),v(s,r().second,!0)}});const c=b(()=>()=>o(i)==="AM"?o(n)===12?0:o(n):o(n)===12?12:o(n)+12);function d(A){if(!A)return;const V=new X(A.year,A.month,A.day,o(c)(),o(a),o(s));r(V),e.onValueChange?.(V)}function f(){if(r()){const A=new X(r().year,r().month,r().day,o(c)(),o(a),o(s));r(A),e.onValueChange?.(A)}else{const A=Rt(ye());r(new X(A.year,A.month,A.day,o(c)(),o(a),o(s)))}}function y(A){const V=A.target;let W=parseInt(V.value)||0;W<1&&(W=1),W>12&&(W=12),v(n,W,!0),V.value=String(W).padStart(2,"0"),f()}function x(A){const V=A.target;let W=parseInt(V.value)||0;W<0&&(W=0),W>59&&(W=59),v(a,W,!0),V.value=String(W).padStart(2,"0"),f()}function u(A){(A==="AM"||A==="PM")&&(v(i,A,!0),f())}function l(){v(n,o(n)>=12?1:o(n)+1,!0),f()}function m(){v(n,o(n)<=1?12:o(n)-1,!0),f()}function w(){o(a)>=59?(v(a,0),l()):Et(a),f()}function E(){o(a)<=0?(v(a,59),m()):Et(a,-1),f()}function D(){o(s)>=59?(v(s,0),w()):Et(s),f()}function P(){o(s)<=0?(v(s,59),E()):Et(s,-1),f()}function O(A,V){A.key==="ArrowUp"?(A.preventDefault(),V==="hours"?l():V==="minutes"?w():D()):A.key==="ArrowDown"&&(A.preventDefault(),V==="hours"?m():V==="minutes"?E():P())}const J=b(()=>()=>{if(r())return new Me(r().year,r().month,r().day)});var B=Mo(),S=k(B);{let A=b(()=>o(J)());Zs(S,{type:"single",get value(){return o(A)},onValueChange:d})}var I=U(S,2),q=k(I),z=k(q),Q=U(k(z),2);Kt(Q),Q.__change=y,Q.__keydown=A=>O(A,"hours"),Lr(Q,"maxlength",2),C(z);var re=U(z,4),te=U(k(re),2);Kt(te),te.__change=x,te.__keydown=A=>O(A,"minutes"),Lr(te,"maxlength",2),C(re);var be=U(re,4),de=U(k(be),2);Kt(de),C(be);var pe=U(be,2),Qe=U(k(pe),2);Y(Qe,()=>qn,(A,V)=>{V(A,{type:"single",get value(){return o(i)},onValueChange:u,children:(W,Se)=>{var Ce=wo(),Re=p(Ce);Y(Re,()=>Kn,(M,F)=>{F(M,{class:"w-[60px] h-9 text-sm",children:(K,j)=>{kt();var Z=lt();se(()=>le(Z,o(i))),h(K,Z)},$$slots:{default:!0}})});var Mt=U(Re,2);Y(Mt,()=>Gn,(M,F)=>{F(M,{children:(K,j)=>{var Z=_o(),Xe=p(Z);Y(Xe,()=>Hr,(me,Ye)=>{Ye(me,{value:"AM",label:"AM",children:(xe,et)=>{kt();var De=lt("AM");h(xe,De)},$$slots:{default:!0}})});var Ee=U(Xe,2);Y(Ee,()=>Hr,(me,Ye)=>{Ye(me,{value:"PM",label:"PM",children:(xe,et)=>{kt();var De=lt("PM");h(xe,De)},$$slots:{default:!0}})}),h(K,Z)},$$slots:{default:!0}})}),h(W,Ce)},$$slots:{default:!0}})}),C(pe),C(q),C(I),C(B),se((A,V,W,Se)=>{xt(B,1,A),Gt(Q,V),Gt(te,W),Gt(de,Se)},[()=>vr(ue("flex flex-col",e.class)),()=>String(o(n)).padStart(2,"0"),()=>String(o(a)).padStart(2,"0"),()=>String(o(s)).padStart(2,"0")]),h(t,B),R()}an(["change","keydown"]);var $o=T('<span class="flex items-center gap-2"><!> <span class="truncate"> </span></span> <!>',1),Po=T('<div class="my-1 border-t mx-2"></div>'),So=T("<button><span> </span> <!></button>"),Co=T("<!> <!>",1),ko=T('<button><span class="tabular-nums"> </span> <span class="text-muted-foreground tabular-nums"> </span></button>'),Io=T("<!> <!>",1),Fo=T('<button><span class="tabular-nums"> </span> <span class="text-muted-foreground tabular-nums"> </span></button>'),Oo=T("<!> <!>",1),Ao=T('<div class="p-5 min-w-[380px]"><div class="flex items-center justify-between mb-3"><span class="text-xs font-medium text-muted-foreground uppercase tracking-wide">Custom</span> <button class="text-xs text-primary hover:underline">Reset to now</button></div> <div class="flex items-center gap-2 mb-4"><!> <span class="text-muted-foreground text-xs">–</span> <!></div> <div class="flex justify-end pt-2"><!></div></div>'),To=T('<div class="flex"><div class="w-[140px] border-r py-2"><!> <div class="my-1 border-t mx-2"></div> <button><span>Set custom</span> <!></button></div> <!></div>'),Eo=T("<!> <!>",1);function Xo(t,e){L(e,!0);let r=g(e,"fromDate",31,()=>ze(Rt(ye()).subtract({days:7}))),n=g(e,"toDate",31,()=>ze(Rt(ye()))),a=g(e,"fromTime",15,"00:00"),s=g(e,"toTime",15,"23:59"),i=g(e,"preset",15,"24h");const c=b(()=>e.timezone??Qn()),d=[{presets:[{value:"5m",label:"5 minutes",minutes:5},{value:"30m",label:"30 minutes",minutes:30},{value:"60m",label:"60 minutes",minutes:60}]},{presets:[{value:"3h",label:"3 hours",minutes:180},{value:"6h",label:"6 hours",minutes:360},{value:"12h",label:"12 hours",minutes:720},{value:"24h",label:"24 hours",minutes:1440}]},{presets:[{value:"3d",label:"3 days",minutes:4320},{value:"7d",label:"7 days",minutes:10080}]},{presets:[{value:"1M",label:"1 month",minutes:43200},{value:"3M",label:"3 months",minutes:129600}]}];let f=oe(!1),y=oe(i()===null),x=oe(ze(i())),u=oe(!1);Dt(()=>{if(i()!==o(x)&&(v(x,i(),!0),v(y,i()===null),i())){const M=d.flatMap(F=>F.presets).find(F=>F.value===i());if(M){const F=Bt(o(c)),K=F.minus({minutes:M.minutes}),j=St(K),Z=St(F);v(S,new X(j.year,j.month,j.day,j.hour,j.minute,j.second),!0),v(I,new X(Z.year,Z.month,Z.day,Z.hour,Z.minute,Z.second),!0)}}});let l=oe(ze(r())),m=oe(ze(n())),w=oe(ze(a())),E=oe(ze(s()));Dt(()=>{const M=r().year!==o(l).year||r().month!==o(l).month||r().day!==o(l).day,F=n().year!==o(m).year||n().month!==o(m).month||n().day!==o(m).day,K=a()!==o(w),j=s()!==o(E);if((M||F||K||j)&&(v(l,r(),!0),v(m,n(),!0),v(w,a(),!0),v(E,s(),!0),!o(f)&&!o(u))){v(y,!0),v(x,null);const[Z,Xe]=a().split(":").map(Number),[Ee,me]=s().split(":").map(Number);v(S,new X(r().year,r().month,r().day,Z||0,Xe||0,0),!0),v(I,new X(n().year,n().month,n().day,Ee||23,me||59,0),!0)}});let D=oe(!1),P=oe(!1);function O(M,F,K){if(!M)return{hour:F,minute:K};const[j,Z]=M.split(":").map(Number);return{hour:j??F,minute:Z??K}}const J=O(a(),0,0),B=O(s(),23,59);let S=oe(ze(new X(r().year,r().month,r().day,J.hour,J.minute,0))),I=oe(ze(new X(n().year,n().month,n().day,B.hour,B.minute,59))),q=oe(null),z=oe(null);function Q(M,F){return M.year===F.year&&M.month===F.month&&M.day===F.day&&M.hour===F.hour&&M.minute===F.minute}const re=b(()=>()=>{if(o(x)&&!o(y)){const M=d.flatMap(F=>F.presets).find(F=>F.value===o(x));return M?`Last ${M.label}`:"Select time range"}if(o(S)&&o(I)){const M=te(o(S)),F=de(o(S)),K=te(o(I)),j=de(o(I));return`${M} ${F} – ${K} ${j}`}return"Select time range"});function te(M){return new Me(M.year,M.month,M.day).toDate(ye()).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function be(M){const F=String(M.year).slice(-2),K=String(M.month).padStart(2,"0"),j=String(M.day).padStart(2,"0");return`${F}/${K}/${j}`}function de(M){const F=M.hour,K=M.minute,j=F>=12?"PM":"AM";return`${F%12||12}:${String(K).padStart(2,"0")} ${j}`}function pe(M){v(x,M.value,!0),i(M.value),v(y,!1);const F=Bt(o(c)),K=F.minus({minutes:M.minutes}),j=St(K),Z=St(F);v(S,new X(j.year,j.month,j.day,j.hour,j.minute,j.second),!0),v(I,new X(Z.year,Z.month,Z.day,Z.hour,Z.minute,Z.second),!0),V()}function Qe(){v(y,!o(y)),o(y)&&(v(x,null),i(null))}function A(){const M=Bt(o(c)),F=St(M);v(I,new X(F.year,F.month,F.day,F.hour,F.minute,F.second),!0)}function V(){v(u,!0),r(new Me(o(S).year,o(S).month,o(S).day)),n(new Me(o(I).year,o(I).month,o(I).day)),a(`${String(o(S).hour).padStart(2,"0")}:${String(o(S).minute).padStart(2,"0")}`),s(`${String(o(I).hour).padStart(2,"0")}:${String(o(I).minute).padStart(2,"0")}`);const M=o(y)?null:o(x);i(M),e.onApply?.({date:r(),time:a()},{date:n(),time:s()},M),setTimeout(()=>{v(u,!1)},0),v(D,!1),v(P,!1),v(f,!1)}function W(M){if(M)v(q,new X(o(S).year,o(S).month,o(S).day,o(S).hour,o(S).minute,o(S).second),!0),v(z,new X(o(I).year,o(I).month,o(I).day,o(I).hour,o(I).minute,o(I).second),!0);else{if(o(u)){v(f,M,!0);return}if(!o(q)||!o(z)||!Q(o(S),o(q))||!Q(o(I),o(z))){V();return}v(D,!1),v(P,!1)}v(f,M,!0)}function Se(M){v(S,M,!0)}function Ce(M){v(I,M,!0)}var Re=_(),Mt=p(Re);Y(Mt,()=>tr,(M,F)=>{F(M,{onOpenChange:W,get open(){return o(f)},set open(K){v(f,K,!0)},children:(K,j)=>{var Z=Eo(),Xe=p(Z);Y(Xe,()=>Xt,(me,Ye)=>{Ye(me,{class:"w-full",children:(xe,et)=>{Rr(xe,{variant:"outline",class:"h-9 justify-between gap-2 font-normal w-full",children:(De,$t)=>{var Ve=$o(),ke=p(Ve),Ne=k(ke);Ls(Ne,{class:"h-4 w-4 text-muted-foreground"});var ct=U(Ne,2),ut=k(ct,!0);C(ct),C(ke);var We=U(ke,2);br(We,{class:"h-4 w-4 text-muted-foreground"}),se(Ie=>le(ut,Ie),[()=>o(re)()]),h(De,Ve)},$$slots:{default:!0}})},$$slots:{default:!0}})});var Ee=U(Xe,2);Y(Ee,()=>er,(me,Ye)=>{Ye(me,{class:"w-auto p-0",align:"start",children:(xe,et)=>{var De=To(),$t=k(De),Ve=k($t);qe(Ve,17,()=>d,Ur,(We,Ie,tt)=>{var He=Co(),rt=p(He);{var Ze=ve=>{var ge=Po();h(ve,ge)};G(rt,ve=>{tt>0&&ve(Ze)})}var yt=U(rt,2);qe(yt,17,()=>o(Ie).presets,Ur,(ve,ge,Be,dt)=>{var ne=So();ne.__click=()=>pe(o(ge));var nt=k(ne),at=k(nt,!0);C(nt);var ht=U(nt,2);{var ft=_e=>{Xn(_e,{class:"h-4 w-4 text-primary"})};G(ht,_e=>{o(x)===o(ge).value&&!o(y)&&_e(ft)})}C(ne),se(()=>{xt(ne,1,`w-full px-3 py-1.5 text-left text-sm hover:bg-muted/50 flex items-center justify-between transition-colors ${o(x)===o(ge).value&&!o(y)?"bg-muted":""}`),le(at,o(ge).label)}),h(ve,ne)}),h(We,He)});var ke=U(Ve,4);ke.__click=Qe;var Ne=U(k(ke),2);Yn(Ne,{class:"h-4 w-4 text-muted-foreground"}),C(ke),C($t);var ct=U($t,2);{var ut=We=>{var Ie=Ao(),tt=k(Ie),He=U(k(tt),2);He.__click=A,C(tt);var rt=U(tt,2),Ze=k(rt);Y(Ze,()=>tr,(Be,dt)=>{dt(Be,{get open(){return o(D)},set open(ne){v(D,ne,!0)},children:(ne,nt)=>{var at=Io(),ht=p(at);Y(ht,()=>Xt,(_e,st)=>{st(_e,{children:(ot,je)=>{var fe=ko(),Ue=k(fe),bt=k(Ue,!0);C(Ue);var pt=U(Ue,2),zt=k(pt,!0);C(pt),C(fe),se((Jt,qt)=>{xt(fe,1,`h-9 px-3 text-sm border rounded-md text-left hover:bg-muted/50 transition-colors flex items-center gap-2 ${o(D)?"ring-2 ring-ring":""}`),le(bt,Jt),le(zt,qt)},[()=>be(o(S)),()=>de(o(S))]),h(ot,fe)},$$slots:{default:!0}})});var ft=U(ht,2);Y(ft,()=>er,(_e,st)=>{st(_e,{class:"w-auto p-0",align:"start",children:(ot,je)=>{nn(ot,{get value(){return o(S)},onValueChange:Se})},$$slots:{default:!0}})}),h(ne,at)},$$slots:{default:!0}})});var yt=U(Ze,4);Y(yt,()=>tr,(Be,dt)=>{dt(Be,{get open(){return o(P)},set open(ne){v(P,ne,!0)},children:(ne,nt)=>{var at=Oo(),ht=p(at);Y(ht,()=>Xt,(_e,st)=>{st(_e,{children:(ot,je)=>{var fe=Fo(),Ue=k(fe),bt=k(Ue,!0);C(Ue);var pt=U(Ue,2),zt=k(pt,!0);C(pt),C(fe),se((Jt,qt)=>{xt(fe,1,`h-9 px-3 text-sm border rounded-md text-left hover:bg-muted/50 transition-colors flex items-center gap-2 ${o(P)?"ring-2 ring-ring":""}`),le(bt,Jt),le(zt,qt)},[()=>be(o(I)),()=>de(o(I))]),h(ot,fe)},$$slots:{default:!0}})});var ft=U(ht,2);Y(ft,()=>er,(_e,st)=>{st(_e,{class:"w-auto p-0",align:"start",children:(ot,je)=>{nn(ot,{get value(){return o(I)},onValueChange:Ce})},$$slots:{default:!0}})}),h(ne,at)},$$slots:{default:!0}})}),C(rt);var ve=U(rt,2),ge=k(ve);Rr(ge,{size:"sm",onclick:V,children:(Be,dt)=>{kt();var ne=lt("Apply");h(Be,ne)},$$slots:{default:!0}}),C(ve),C(Ie),h(We,Ie)};G(ct,We=>{o(y)&&We(ut)})}C(De),se(()=>xt(ke,1,`w-full px-3 py-1.5 text-left text-sm hover:bg-muted/50 flex items-center justify-between transition-colors ${o(y)?"bg-muted":""}`)),h(xe,De)},$$slots:{default:!0}})}),h(K,Z)},$$slots:{default:!0}})}),h(t,Re),R()}an(["click"]);const Vn={"5m":5,"30m":30,"60m":60,"3h":180,"6h":360,"12h":720,"24h":1440,"3d":4320,"7d":10080,"1M":43200,"3M":129600};function Yo(t,e){const r=Vn[t]||360,n=Bt(e);return{from:n.minus({minutes:r}).toJSDate(),to:n.toJSDate()}}function ei(t,e){const r=hn.fromJSDate(t).setZone(e);return new Me(r.year,r.month,r.day)}function ti(t,e){const r=hn.fromJSDate(t).setZone(e);return`${String(r.hour).padStart(2,"0")}:${String(r.minute).padStart(2,"0")}`}function ri(t,e="24h"){const r=new URLSearchParams(window.location.search),n=r.get("preset"),a=r.get("from"),s=r.get("to");if(n&&Vn[n])return{preset:n,from:null,to:null};if(a&&s){const i=Zr(a,t),c=Zr(s,t);if(i.isValid&&c.isValid)return{preset:null,from:i.toJSDate(),to:c.toJSDate()}}return{preset:e,from:null,to:null}}function ni(t,e){return t.preset?Yo(t.preset,e):{from:t.from,to:t.to}}function ai(t,e={}){const{pushToHistory:r=!1}=e,n=new URLSearchParams;for(const[s,i]of Object.entries(t))i!=null&&i!==""&&n.set(s,i);const a=`${window.location.pathname}?${n.toString()}`;ea(a,{replaceState:!r,noScroll:!0,keepFocus:!0})}export{Me as $,Ls as C,Xo as T,ti as a,Yo as b,Vn as c,ei as d,Yn as e,ni as g,ri as p,ai as u};
+import{p as g,i as G,r as H,s as he,b as mr}from"./DMODTt3n.js";import{F as Dt,C as Lt,u as b,g as o,i as v,h as oe,v as ze,aG as Bn,p as L,d as _,c as p,b as h,a as R,m as N,f as T,e as k,o as ie,r as C,K as Oe,t as lt,k as se,l as le,s as U,n as kt,q as an,a$ as Et}from"./B2WdN-7r.js";import{e as Je,i as Ur}from"./CMyj8Fzw.js";import{c as Y}from"./BAcG0-U_.js";import{b as ce,g as Ht,d as ue,c as vr,a as xt,r as Kt,s as Lr,h as Gt}from"./DH0tcjsQ.js";import{b as gr,B as Rr}from"./C1aqwstW.js";import{o as Un}from"./Dwk6gGSK.js";import{ao as yr,f as It,w as Ft,ap as Ln,aq as Qt,af as Nr,I as sn,H as on,J as ln,K as cn,E as Rn,S as Nn,ar as Wn,C as un,u as dn,q as Hn,n as Wr,as as Zn}from"./CjLH05gQ.js";import{d as jn,j as zn,e as ee,a as $e,g as _t,b as $,m as Pe,c as Ae}from"./BDd6-VcB.js";import{s as qn,C as br}from"./BT31m2vG.js";import{I as pr}from"./Bv_PbELb.js";import{b as Jn,S as Kn,a as Gn,c as Hr}from"./BgAHJuQl.js";import{P as Xt,a as er,b as tr}from"./Bzt1ocTi.js";import{i as Bt,l as St,g as Qn,D as hn,p as Zr}from"./Dq-0lVru.js";import{C as Xn}from"./DUJ_Z9AF.js";import{g as ea}from"./BIF4_51j.js";function rr(t,e){return t-e*Math.floor(t/e)}const fn=1721426;function Yt(t,e,r,n){e=xr(t,e);let a=e-1,s=-2;return r<=2?s=0:Ut(e)&&(s=-1),fn-1+365*a+Math.floor(a/4)-Math.floor(a/100)+Math.floor(a/400)+Math.floor((367*r-362)/12+s+n)}function Ut(t){return t%4===0&&(t%100!==0||t%400===0)}function xr(t,e){return t==="BC"?1-e:e}function ta(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}const ra={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Pt{fromJulianDay(e){let r=e,n=r-fn,a=Math.floor(n/146097),s=rr(n,146097),i=Math.floor(s/36524),c=rr(s,36524),d=Math.floor(c/1461),f=rr(c,1461),y=Math.floor(f/365),x=a*400+i*100+d*4+y+(i!==4&&y!==4?1:0),[u,l]=ta(x),m=r-Yt(u,l,1,1),w=2;r<Yt(u,l,3,1)?w=0:Ut(l)&&(w=1);let E=Math.floor(((m+w)*12+373)/367),D=r-Yt(u,l,E,1)+1;return new Me(u,l,E,D)}toJulianDay(e){return Yt(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return ra[Ut(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Ut(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return e.era==="BC"}balanceDate(e){e.year<=0&&(e.era=e.era==="BC"?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const na={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function mt(t,e){return e=we(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Zt(t,e){return e=we(e,t.calendar),t=ur(t),e=ur(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function aa(t,e){return mn(t.calendar,e.calendar)&&Zt(t,e)}function mn(t,e){var r,n,a,s;return(s=(a=(r=t.isEqual)===null||r===void 0?void 0:r.call(t,e))!==null&&a!==void 0?a:(n=e.isEqual)===null||n===void 0?void 0:n.call(e,t))!==null&&s!==void 0?s:t.identifier===e.identifier}function sa(t,e){return mt(t,Rt(e))}function vn(t,e,r){let n=t.calendar.toJulianDay(t),a=ua(e),s=Math.ceil(n+1-a)%7;return s<0&&(s+=7),s}function oa(t){return Ke(Date.now(),t)}function Rt(t){return fa(oa(t))}function gn(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function ia(t,e){return jr(t)-jr(e)}function jr(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}let nr=null;function ye(){return nr==null&&(nr=new Intl.DateTimeFormat().resolvedOptions().timeZone),nr}function ur(t){return t.subtract({days:t.day-1})}function la(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}const zr=new Map,ar=new Map;function ca(t){if(Intl.Locale){let r=zr.get(t);return r||(r=new Intl.Locale(t).maximize().region,r&&zr.set(t,r)),r}let e=t.split("-")[1];return e==="u"?void 0:e}function ua(t){let e=ar.get(t);if(!e){if(Intl.Locale){let n=new Intl.Locale(t);if("getWeekInfo"in n&&(e=n.getWeekInfo(),e))return ar.set(t,e),e.firstDay}let r=ca(t);if(t.includes("-fw-")){let n=t.split("-fw-")[1].split("-")[0];n==="mon"?e={firstDay:1}:n==="tue"?e={firstDay:2}:n==="wed"?e={firstDay:3}:n==="thu"?e={firstDay:4}:n==="fri"?e={firstDay:5}:n==="sat"?e={firstDay:6}:e={firstDay:0}}else t.includes("-ca-iso8601")?e={firstDay:1}:e={firstDay:r&&na[r]||0};ar.set(t,e)}return e.firstDay}function vt(t){t=we(t,new Pt);let e=xr(t.era,t.year);return yn(e,t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function yn(t,e,r,n,a,s,i){let c=new Date;return c.setUTCHours(n,a,s,i),c.setUTCFullYear(t,e-1,r),c.getTime()}function Ot(t,e){if(e==="UTC")return 0;if(t>0&&e===ye())return new Date(t).getTimezoneOffset()*-6e4;let{year:r,month:n,day:a,hour:s,minute:i,second:c}=bn(t,e);return yn(r,n,a,s,i,c,0)-Math.floor(t/1e3)*1e3}const qr=new Map;function bn(t,e){let r=qr.get(e);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),qr.set(e,r));let n=r.formatToParts(new Date(t)),a={};for(let s of n)s.type!=="literal"&&(a[s.type]=s.value);return{year:a.era==="BC"||a.era==="B"?-a.year+1:+a.year,month:+a.month,day:+a.day,hour:a.hour==="24"?0:+a.hour,minute:+a.minute,second:+a.second}}const Nt=864e5;function da(t,e){let r=vt(t),n=r-Ot(r-Nt,e),a=r-Ot(r+Nt,e);return pn(t,e,n,a)}function pn(t,e,r,n){return(r===n?[r]:[r,n]).filter(s=>ha(t,e,s))}function ha(t,e,r){let n=bn(r,e);return t.year===n.year&&t.month===n.month&&t.day===n.day&&t.hour===n.hour&&t.minute===n.minute&&t.second===n.second}function qe(t,e,r="compatible"){let n=gt(t);if(e==="UTC")return vt(n);if(e===ye()&&r==="compatible"){n=we(n,new Pt);let d=new Date,f=xr(n.era,n.year);return d.setFullYear(f,n.month-1,n.day),d.setHours(n.hour,n.minute,n.second,n.millisecond),d.getTime()}let a=vt(n),s=Ot(a-Nt,e),i=Ot(a+Nt,e),c=pn(n,e,a-s,a-i);if(c.length===1)return c[0];if(c.length>1)switch(r){case"compatible":case"earlier":return c[0];case"later":return c[c.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(a-s,a-i);case"compatible":case"later":return Math.max(a-s,a-i);case"reject":throw new RangeError("No such absolute time found")}}function xn(t,e,r="compatible"){return new Date(qe(t,e,r))}function Ke(t,e){let r=Ot(t,e),n=new Date(t+r),a=n.getUTCFullYear(),s=n.getUTCMonth()+1,i=n.getUTCDate(),c=n.getUTCHours(),d=n.getUTCMinutes(),f=n.getUTCSeconds(),y=n.getUTCMilliseconds();return new Ge(a<1?"BC":"AD",a<1?-a+1:a,s,i,e,r,c,d,f,y)}function fa(t){return new Me(t.calendar,t.era,t.year,t.month,t.day)}function gt(t,e){let r=0,n=0,a=0,s=0;if("timeZone"in t)({hour:r,minute:n,second:a,millisecond:s}=t);else if("hour"in t&&!e)return t;return e&&({hour:r,minute:n,second:a,millisecond:s}=e),new X(t.calendar,t.era,t.year,t.month,t.day,r,n,a,s)}function we(t,e){if(mn(t.calendar,e))return t;let r=e.fromJulianDay(t.calendar.toJulianDay(t)),n=t.copy();return n.calendar=e,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,wt(n),n}function ma(t,e,r){if(t instanceof Ge)return t.timeZone===e?t:ga(t,e);let n=qe(t,e,r);return Ke(n,e)}function va(t){let e=vt(t)-t.offset;return new Date(e)}function ga(t,e){let r=vt(t)-t.offset;return we(Ke(r,e),t.calendar)}const Ct=36e5;function jt(t,e){let r=t.copy(),n="hour"in r?xa(r,e):0;dr(r,e.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,t),r.month+=e.months||0,hr(r),Dn(r),r.day+=(e.weeks||0)*7,r.day+=e.days||0,r.day+=n,ya(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let a=r.calendar.getYearsInEra(r);if(r.year>a){var s,i;let d=(s=(i=r.calendar).isInverseEra)===null||s===void 0?void 0:s.call(i,r);r.year=a,r.month=d?1:r.calendar.getMonthsInYear(r),r.day=d?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let c=r.calendar.getMonthsInYear(r);return r.month>c&&(r.month=c,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function dr(t,e){var r,n;!((r=(n=t.calendar).isInverseEra)===null||r===void 0)&&r.call(n,t)&&(e=-e),t.year+=e}function hr(t){for(;t.month<1;)dr(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,dr(t,1)}function ya(t){for(;t.day<1;)t.month--,hr(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,hr(t)}function Dn(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function wt(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),Dn(t)}function _n(t){let e={};for(let r in t)typeof t[r]=="number"&&(e[r]=-t[r]);return e}function wn(t,e){return jt(t,_n(e))}function Dr(t,e){let r=t.copy();return e.era!=null&&(r.era=e.era),e.year!=null&&(r.year=e.year),e.month!=null&&(r.month=e.month),e.day!=null&&(r.day=e.day),wt(r),r}function Wt(t,e){let r=t.copy();return e.hour!=null&&(r.hour=e.hour),e.minute!=null&&(r.minute=e.minute),e.second!=null&&(r.second=e.second),e.millisecond!=null&&(r.millisecond=e.millisecond),pa(r),r}function ba(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=Vt(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=Vt(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=Vt(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=Vt(t.hour,24),e}function pa(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function Vt(t,e){let r=t%e;return r<0&&(r+=e),r}function xa(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,ba(t)}function _r(t,e,r,n){let a=t.copy();switch(e){case"era":{let c=t.calendar.getEras(),d=c.indexOf(t.era);if(d<0)throw new Error("Invalid era: "+t.era);d=it(d,r,0,c.length-1,n?.round),a.era=c[d],wt(a);break}case"year":var s,i;!((s=(i=a.calendar).isInverseEra)===null||s===void 0)&&s.call(i,a)&&(r=-r),a.year=it(t.year,r,-1/0,9999,n?.round),a.year===-1/0&&(a.year=1),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t);break;case"month":a.month=it(t.month,r,1,t.calendar.getMonthsInYear(t),n?.round);break;case"day":a.day=it(t.day,r,1,t.calendar.getDaysInMonth(t),n?.round);break;default:throw new Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(a),wt(a),a}function Mn(t,e,r,n){let a=t.copy();switch(e){case"hour":{let s=t.hour,i=0,c=23;if(n?.hourCycle===12){let d=s>=12;i=d?12:0,c=d?23:11}a.hour=it(s,r,i,c,n?.round);break}case"minute":a.minute=it(t.minute,r,0,59,n?.round);break;case"second":a.second=it(t.second,r,0,59,n?.round);break;case"millisecond":a.millisecond=it(t.millisecond,r,0,999,n?.round);break;default:throw new Error("Unsupported field "+e)}return a}function it(t,e,r,n,a=!1){if(a){t+=Math.sign(e),t<r&&(t=n);let s=Math.abs(e);e>0?t=Math.ceil(t/s)*s:t=Math.floor(t/s)*s,t>n&&(t=r)}else t+=e,t<r?t=n-(r-t-1):t>n&&(t=r+(t-n-1));return t}function $n(t,e){let r;if(e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0){let a=jt(gt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days});r=qe(a,t.timeZone)}else r=vt(t)-t.offset;r+=e.milliseconds||0,r+=(e.seconds||0)*1e3,r+=(e.minutes||0)*6e4,r+=(e.hours||0)*36e5;let n=Ke(r,t.timeZone);return we(n,t.calendar)}function Da(t,e){return $n(t,_n(e))}function _a(t,e,r,n){switch(e){case"hour":{let a=0,s=23;if(n?.hourCycle===12){let m=t.hour>=12;a=m?12:0,s=m?23:11}let i=gt(t),c=we(Wt(i,{hour:a}),new Pt),d=[qe(c,t.timeZone,"earlier"),qe(c,t.timeZone,"later")].filter(m=>Ke(m,t.timeZone).day===c.day)[0],f=we(Wt(i,{hour:s}),new Pt),y=[qe(f,t.timeZone,"earlier"),qe(f,t.timeZone,"later")].filter(m=>Ke(m,t.timeZone).day===f.day).pop(),x=vt(t)-t.offset,u=Math.floor(x/Ct),l=x%Ct;return x=it(u,r,Math.floor(d/Ct),Math.floor(y/Ct),n?.round)*Ct+l,we(Ke(x,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return Mn(t,e,r,n);case"era":case"year":case"month":case"day":{let a=_r(gt(t),e,r,n),s=qe(a,t.timeZone);return we(Ke(s,t.timeZone),t.calendar)}default:throw new Error("Unsupported field "+e)}}function wa(t,e,r){let n=gt(t),a=Wt(Dr(n,e),e);if(a.compare(n)===0)return t;let s=qe(a,t.timeZone,r);return we(Ke(s,t.timeZone),t.calendar)}const Ma=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,$a=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Pa=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::?(\d{2}))?(?::?(\d{2}))?)?\[(.*?)\]$/,Pn=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function Sn(t){let e=t.match(Ma);if(!e)throw Pn.test(t)?new Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+t);let r=new Me(ae(e[1],0,9999),ae(e[2],1,12),1);return r.day=ae(e[3],1,r.calendar.getDaysInMonth(r)),r}function Cn(t){let e=t.match($a);if(!e)throw Pn.test(t)?new Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+t);let r=ae(e[1],-9999,9999),n=r<1?"BC":"AD",a=new X(n,r<1?-r+1:r,ae(e[2],1,12),1,e[4]?ae(e[4],0,23):0,e[5]?ae(e[5],0,59):0,e[6]?ae(e[6],0,59):0,e[7]?ae(e[7],0,1/0)*1e3:0);return a.day=ae(e[3],0,a.calendar.getDaysInMonth(a)),a}function kn(t,e){let r=t.match(Pa);if(!r)throw new Error("Invalid ISO 8601 date time string: "+t);let n=ae(r[1],-9999,9999),a=n<1?"BC":"AD",s=new Ge(a,n<1?-n+1:n,ae(r[2],1,12),1,r[11],0,r[4]?ae(r[4],0,23):0,r[5]?ae(r[5],0,59):0,r[6]?ae(r[6],0,59):0,r[7]?ae(r[7],0,1/0)*1e3:0);s.day=ae(r[3],0,s.calendar.getDaysInMonth(s));let i=gt(s),c;if(r[8]){let y=ae(r[8],-23,23);var d,f;if(s.offset=Math.sign(y)*(Math.abs(y)*36e5+ae((d=r[9])!==null&&d!==void 0?d:"0",0,59)*6e4+ae((f=r[10])!==null&&f!==void 0?f:"0",0,59)*1e3),c=vt(s)-s.offset,!da(i,s.timeZone).includes(c))throw new Error(`Offset ${Fn(s.offset)} is invalid for ${wr(s)} in ${s.timeZone}`)}else c=qe(gt(i),s.timeZone,e);return Ke(c,s.timeZone)}function ae(t,e,r){let n=Number(t);if(n<e||n>r)throw new RangeError(`Value out of range: ${e} <= ${n} <= ${r}`);return n}function Sa(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function In(t){let e=we(t,new Pt),r;return e.era==="BC"?r=e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):r=String(e.year).padStart(4,"0"),`${r}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function wr(t){return`${In(t)}T${Sa(t)}`}function Fn(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let r=Math.floor(t/36e5),n=Math.floor(t%36e5/6e4),a=Math.floor(t%36e5%6e4/1e3),s=`${e}${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`;return a!==0&&(s+=`:${String(a).padStart(2,"0")}`),s}function Ca(t){return`${wr(t)}${Fn(t.offset)}[${t.timeZone}]`}function ka(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Mr(t,e,r){ka(t,e),e.set(t,r)}function $r(t){let e=typeof t[0]=="object"?t.shift():new Pt,r;if(typeof t[0]=="string")r=t.shift();else{let i=e.getEras();r=i[i.length-1]}let n=t.shift(),a=t.shift(),s=t.shift();return[e,r,n,a,s]}var Ia=new WeakMap;class Me{copy(){return this.era?new Me(this.calendar,this.era,this.year,this.month,this.day):new Me(this.calendar,this.year,this.month,this.day)}add(e){return jt(this,e)}subtract(e){return wn(this,e)}set(e){return Dr(this,e)}cycle(e,r,n){return _r(this,e,r,n)}toDate(e){return xn(this,e)}toString(){return In(this)}compare(e){return gn(this,e)}constructor(...e){Mr(this,Ia,{writable:!0,value:void 0});let[r,n,a,s,i]=$r(e);this.calendar=r,this.era=n,this.year=a,this.month=s,this.day=i,wt(this)}}var Fa=new WeakMap;class X{copy(){return this.era?new X(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new X(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return jt(this,e)}subtract(e){return wn(this,e)}set(e){return Dr(Wt(this,e),e)}cycle(e,r,n){switch(e){case"era":case"year":case"month":case"day":return _r(this,e,r,n);default:return Mn(this,e,r,n)}}toDate(e,r){return xn(this,e,r)}toString(){return wr(this)}compare(e){let r=gn(this,e);return r===0?ia(this,gt(e)):r}constructor(...e){Mr(this,Fa,{writable:!0,value:void 0});let[r,n,a,s,i]=$r(e);this.calendar=r,this.era=n,this.year=a,this.month=s,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,wt(this)}}var Oa=new WeakMap;class Ge{copy(){return this.era?new Ge(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Ge(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return $n(this,e)}subtract(e){return Da(this,e)}set(e,r){return wa(this,e,r)}cycle(e,r,n){return _a(this,e,r,n)}toDate(){return va(this)}toString(){return Ca(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-ma(e,this.timeZone).toDate().getTime()}constructor(...e){Mr(this,Oa,{writable:!0,value:void 0});let[r,n,a,s,i]=$r(e),c=e.shift(),d=e.shift();this.calendar=r,this.era=n,this.year=a,this.month=s,this.day=i,this.timeZone=c,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,wt(this)}}let sr=new Map;class Fe{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(e,r);if(r<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(r)}`}formatRangeToParts(e,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(e,r);if(r<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),a=this.formatter.formatToParts(r);return[...n.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return Ea()&&(this.resolvedHourCycle||(this.resolvedHourCycle=Ya(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),e.calendar==="ethiopic-amete-alem"&&(e.calendar="ethioaa"),e}constructor(e,r={}){this.formatter=On(e,r),this.options=r}}const Aa={true:{ja:"h11"},false:{}};function On(t,e={}){if(typeof e.hour12=="boolean"&&Ta()){e={...e};let a=Aa[String(e.hour12)][t.split("-")[0]],s=e.hour12?"h12":"h23";e.hourCycle=a??s,delete e.hour12}let r=t+(e?Object.entries(e).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(sr.has(r))return sr.get(r);let n=new Intl.DateTimeFormat(t,e);return sr.set(r,n),n}let or=null;function Ta(){return or==null&&(or=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),or}let ir=null;function Ea(){return ir==null&&(ir=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ir}function Ya(t,e){if(!e.timeStyle&&!e.hour)return;t=t.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),t+=(t.includes("-u-")?"":"-u")+"-nu-latn";let r=On(t,{...e,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(s=>s.type==="hour").value,10),a=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(s=>s.type==="hour").value,10);if(n===0&&a===23)return"h23";if(n===24&&a===23)return"h24";if(n===0&&a===11)return"h11";if(n===12&&a===11)return"h12";throw new Error("Unexpected hour cycle result")}function Va(t){if(!yr||!t)return null;let e=t.querySelector("[data-bits-announcer]");const r=a=>{const s=t.createElement("div");return s.role="log",s.ariaLive=a,s.setAttribute("aria-relevant","additions"),s};if(!It(e)){const a=t.createElement("div");a.style.cssText=qn,a.setAttribute("data-bits-announcer",""),a.appendChild(r("assertive")),a.appendChild(r("polite")),e=a,t.body.insertBefore(e,t.body.firstChild)}return{getLog:a=>{if(!It(e))return null;const s=e.querySelector(`[aria-live="${a}"]`);return It(s)?s:null}}}function Jr(t){const e=Va(t);function r(n,a="assertive",s=7500){if(!e||!yr||!t)return;const i=e.getLog(a),c=t.createElement("div");return typeof n=="number"?n=n.toString():n===null?n="Empty":n=n.trim(),c.innerText=n,a==="assertive"?i?.replaceChildren(c):i?.appendChild(c),setTimeout(()=>{c.remove()},s)}return{announce:r}}const Ba={defaultValue:void 0,granularity:"day"};function Ua(t){const e={...Ba,...t},{defaultValue:r,granularity:n,minValue:a,maxValue:s}=e;if(Array.isArray(r)&&r.length)return r[r.length-1];if(r&&!Array.isArray(r))return r;{let i=new Date;a&&i<a.toDate(ye())?i=a.toDate(ye()):s&&i>s.toDate(ye())&&(i=s.toDate(ye()));const c=i.getFullYear(),d=i.getMonth()+1,f=i.getDate();return["hour","minute","second"].includes(n??"day")?new X(c,d,f,0,0,0):new Me(c,d,f)}}function An(t,e){let r;return e instanceof Ge?r=kn(t):e instanceof X?r=Cn(t):r=Sn(t),r.calendar!==e.calendar?we(r,e.calendar):r}function Le(t,e=ye()){return t instanceof Ge?t.toDate():t.toDate(e)}function La(t){if(t instanceof Me)return"date";if(t instanceof X)return"datetime";if(t instanceof Ge)return"zoneddatetime";throw new Error("Unknown date type")}function Ra(t,e){switch(e){case"date":return Sn(t);case"datetime":return Cn(t);case"zoneddatetime":return kn(t);default:throw new Error(`Unknown date type: ${e}`)}}function Na(t){return t instanceof X}function Tn(t){return t instanceof Ge}function fr(t){return Na(t)||Tn(t)}function Wa(t){if(t instanceof Date){const e=t.getFullYear(),r=t.getMonth()+1;return new Date(e,r,0).getDate()}else return t.set({day:100}).day}function At(t,e){return t.compare(e)<0}function Ha(t,e){return t.compare(e)>0}function Kr(t,e,r){const n=vn(t,r);return e>n?t.subtract({days:n+7-e}):e===n?t:t.subtract({days:n-e})}function Gr(t,e,r){const n=vn(t,r),a=e===0?6:e-1;return n===a?t:n>a?t.add({days:7-n+a}):t.add({days:a-n})}const Za={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function ja(t){let e=t.initialLocale;function r(l){e=l}function n(){return e}function a(l,m){return new Fe(e,m).format(l)}function s(l,m=!0){return fr(l)&&m?a(Le(l),{dateStyle:"long",timeStyle:"long"}):a(Le(l),{dateStyle:"long"})}function i(l){if(typeof t.monthFormat.current!="function"&&typeof t.yearFormat.current!="function")return new Fe(e,{month:t.monthFormat.current,year:t.yearFormat.current}).format(l);const m=typeof t.monthFormat.current=="function"?t.monthFormat.current(l.getMonth()+1):new Fe(e,{month:t.monthFormat.current}).format(l),w=typeof t.yearFormat.current=="function"?t.yearFormat.current(l.getFullYear()):new Fe(e,{year:t.yearFormat.current}).format(l);return`${m} ${w}`}function c(l){return new Fe(e,{month:"long"}).format(l)}function d(l){return new Fe(e,{year:"numeric"}).format(l)}function f(l,m){return Tn(l)?new Fe(e,{...m,timeZone:l.timeZone}).formatToParts(Le(l)):new Fe(e,m).formatToParts(Le(l))}function y(l,m="narrow"){return new Fe(e,{weekday:m}).format(l)}function x(l,m=void 0){return new Fe(e,{hour:"numeric",minute:"numeric",hourCycle:m===24?"h23":void 0}).formatToParts(l).find(D=>D.type==="dayPeriod")?.value==="PM"?"PM":"AM"}function u(l,m,w={}){const E={...Za,...w},P=f(l,E).find(O=>O.type===m);return P?P.value:""}return{setLocale:r,getLocale:n,fullMonth:c,fullYear:d,fullMonthAndYear:i,toParts:f,custom:a,part:u,dayPeriod:x,selectedDate:s,dayOfWeek:y}}function za(t){return!(!It(t)||!t.hasAttribute("data-bits-day"))}function Qr(t,e){const r=[];let n=t.add({days:1});const a=e;for(;n.compare(a)<0;)r.push(n),n=n.add({days:1});return r}function lr(t){const{dateObj:e,weekStartsOn:r,fixedWeeks:n,locale:a}=t,s=Wa(e),i=Array.from({length:s},(E,D)=>e.set({day:D+1})),c=ur(e),d=la(e),f=r!==void 0?Kr(c,r,"en-US"):Kr(c,0,a),y=r!==void 0?Gr(d,r,"en-US"):Gr(d,0,a),x=Qr(f.subtract({days:1}),c),u=Qr(d,y.add({days:1})),l=x.length+i.length+u.length;if(n&&l<42){const E=42-l;let D=u[u.length-1];D||(D=e.add({months:1}).set({day:1}));let P=E;u.length===0&&(P=E-1,u.push(D));const O=Array.from({length:P},(q,B)=>{const S=B+1;return D.add({days:S})});u.push(...O)}const m=x.concat(i,u),w=Wn(m,7);return{value:e,dates:m,weeks:w}}function Tt(t){const{numberOfMonths:e,dateObj:r,...n}=t,a=[];if(!e||e===1)return a.push(lr({...n,dateObj:r})),a;a.push(lr({...n,dateObj:r}));for(let s=1;s<e;s++){const i=r.add({months:s});a.push(lr({...n,dateObj:i}))}return a}function cr(t){return t?Array.from(t.querySelectorAll("[data-bits-day]:not([data-disabled]):not([data-outside-visible-months])")).filter(r=>It(r)):[]}function Xr(t,e){const r=t.getAttribute("data-value");r&&(e.current=An(r,e.current))}function qa({node:t,add:e,placeholder:r,calendarNode:n,isPrevButtonDisabled:a,isNextButtonDisabled:s,months:i,numberOfMonths:c}){const d=cr(n);if(!d.length)return;const y=d.indexOf(t)+e;if(Qt(y,d)){const x=d[y];return Xr(x,r),x.focus()}if(y<0){if(a)return;const x=i[0]?.value;if(!x)return;r.current=x.subtract({months:c}),Nr(()=>{const u=cr(n);if(!u.length)return;const l=u.length-Math.abs(y);if(Qt(l,u)){const m=u[l];return Xr(m,r),m.focus()}})}if(y>=d.length){if(s)return;const x=i[0]?.value;if(!x)return;r.current=x.add({months:c}),Nr(()=>{const u=cr(n);if(!u.length)return;const l=y-d.length;if(Qt(l,u))return u[l].focus()})}}const en=[sn,on,ln,cn],tn=[Rn,Nn];function Ja({event:t,handleCellClick:e,shiftFocus:r,placeholderValue:n}){const a=t.target;if(!za(a)||!en.includes(t.key)&&!tn.includes(t.key))return;t.preventDefault();const s={[sn]:7,[on]:-7,[ln]:-1,[cn]:1};if(en.includes(t.key)){const i=s[t.key];i!==void 0&&r(a,i)}if(tn.includes(t.key)){const i=a.getAttribute("data-value");if(!i)return;e(t,An(i,n))}}function Ka({months:t,setMonths:e,numberOfMonths:r,pagedNavigation:n,weekStartsOn:a,locale:s,fixedWeeks:i,setPlaceholder:c}){const d=t[0]?.value;if(d)if(n)c(d.add({months:r}));else{const f=d.add({months:1}),y=Tt({dateObj:f,weekStartsOn:a,locale:s,fixedWeeks:i,numberOfMonths:r});c(f),e(y)}}function Ga({months:t,setMonths:e,numberOfMonths:r,pagedNavigation:n,weekStartsOn:a,locale:s,fixedWeeks:i,setPlaceholder:c}){const d=t[0]?.value;if(d)if(n)c(d.subtract({months:r}));else{const f=d.subtract({months:1}),y=Tt({dateObj:f,weekStartsOn:a,locale:s,fixedWeeks:i,numberOfMonths:r});c(f),e(y)}}function Qa({months:t,formatter:e,weekdayFormat:r}){if(!t.length)return[];const a=t[0].weeks[0];return a?a.map(s=>e.dayOfWeek(Le(s),r)):[]}function Xa(t){Dt(()=>{const e=t.weekStartsOn.current,r=t.locale.current,n=t.fixedWeeks.current,a=t.numberOfMonths.current;Lt(()=>{const s=t.placeholder.current;if(!s)return;const i={weekStartsOn:e,locale:r,fixedWeeks:n,numberOfMonths:a};t.setMonths(Tt({...i,dateObj:s}))})})}function es({calendarNode:t,label:e,accessibleHeadingId:r}){const n=Ln(t),a=n.createElement("div");a.style.cssText=zn({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"});const s=n.createElement("div");return s.textContent=e,s.id=r,s.role="heading",s.ariaLevel="2",t.insertBefore(a,t.firstChild),a.appendChild(s),()=>{const i=n.getElementById(r);i&&(a.parentElement?.removeChild(a),i.remove())}}function ts({placeholder:t,getVisibleMonths:e,weekStartsOn:r,locale:n,fixedWeeks:a,numberOfMonths:s,setMonths:i}){Dt(()=>{t.current,Lt(()=>{if(e().some(d=>Zt(d,t.current)))return;const c={weekStartsOn:r.current,locale:n.current,fixedWeeks:a.current,numberOfMonths:s.current};i(Tt({...c,dateObj:t.current}))})})}function rs({maxValue:t,months:e,disabled:r}){if(!t||!e.length)return!1;if(r)return!0;const n=e[e.length-1]?.value;if(!n)return!1;const a=n.add({months:1}).set({day:1});return Ha(a,t)}function ns({minValue:t,months:e,disabled:r}){if(!t||!e.length)return!1;if(r)return!0;const n=e[0]?.value;if(!n)return!1;const a=n.subtract({months:1}).set({day:35});return At(a,t)}function as({months:t,locale:e,formatter:r}){if(!t.length)return"";if(e!==r.getLocale()&&r.setLocale(e),t.length===1){const y=Le(t[0].value);return`${r.fullMonthAndYear(y)}`}const n=Le(t[0].value),a=Le(t[t.length-1].value),s=r.fullMonth(n),i=r.fullMonth(a),c=r.fullYear(n),d=r.fullYear(a);return c===d?`${s} - ${i} ${d}`:`${s} ${c} - ${i} ${d}`}function ss({fullCalendarLabel:t,id:e,isInvalid:r,disabled:n,readonly:a}){return{id:e,role:"application","aria-label":t,"data-invalid":ee(r),"data-disabled":ee(n),"data-readonly":ee(a)}}function os(t){if(!yr)return;const e=Array.from(t.querySelectorAll("[data-bits-day]:not([aria-disabled=true])"));if(e.length===0)return;const r=e[0],n=r?.getAttribute("data-value"),a=r?.getAttribute("data-type");if(!(!n||!a))return Ra(n,a)}function is({ref:t,placeholder:e,defaultPlaceholder:r,minValue:n,maxValue:a,isDateDisabled:s}){function i(c){return!!(s.current(c)||n.current&&At(c,n.current)||a.current&&At(a.current,c))}Ft(()=>t.current,()=>{t.current&&e.current&&mt(e.current,r)&&i(r)&&(e.current=os(t.current)??r)})}function ls(t,e){return!t||!e?t:fr(t)&&fr(e)?t.set({hour:e.hour,minute:e.minute,millisecond:e.millisecond,second:e.second}):t}const cs=jn({component:"calendar",parts:["root","grid","cell","next-button","prev-button","day","grid-body","grid-head","grid-row","head-cell","header","heading","month-select","year-select"]});function us(t){const e=new Date().getFullYear(),r=Math.max(t.placeholderYear,e);let n,a;if(t.minValue)n=t.minValue.year;else{const i=r-100;n=t.placeholderYear<i?t.placeholderYear-10:i}t.maxValue?a=t.maxValue.year:a=r+10,n>a&&(n=a);const s=a-n+1;return Array.from({length:s},(i,c)=>n+c)}const Te=new un("Calendar.Root | RangeCalender.Root");class Pr{static create(e){return Te.set(new Pr(e))}opts;#e=b(()=>this.months.map(e=>e.value));get visibleMonths(){return o(this.#e)}set visibleMonths(e){v(this.#e,e)}formatter;accessibleHeadingId=dn();domContext;attachment;#t=oe(ze([]));get months(){return o(this.#t)}set months(e){v(this.#t,e,!0)}announcer;constructor(e){this.opts=e,this.attachment=$e(this.opts.ref),this.domContext=new Hn(e.ref),this.announcer=Jr(null),this.formatter=ja({initialLocale:this.opts.locale.current,monthFormat:this.opts.monthFormat,yearFormat:this.opts.yearFormat}),this.setMonths=this.setMonths.bind(this),this.nextPage=this.nextPage.bind(this),this.prevPage=this.prevPage.bind(this),this.prevYear=this.prevYear.bind(this),this.nextYear=this.nextYear.bind(this),this.setYear=this.setYear.bind(this),this.setMonth=this.setMonth.bind(this),this.isOutsideVisibleMonths=this.isOutsideVisibleMonths.bind(this),this.isDateDisabled=this.isDateDisabled.bind(this),this.isDateSelected=this.isDateSelected.bind(this),this.shiftFocus=this.shiftFocus.bind(this),this.handleCellClick=this.handleCellClick.bind(this),this.handleMultipleUpdate=this.handleMultipleUpdate.bind(this),this.handleSingleUpdate=this.handleSingleUpdate.bind(this),this.onkeydown=this.onkeydown.bind(this),this.getBitsAttr=this.getBitsAttr.bind(this),Un(()=>{this.announcer=Jr(this.domContext.getDocument())}),this.months=Tt({dateObj:this.opts.placeholder.current,weekStartsOn:this.opts.weekStartsOn.current,locale:this.opts.locale.current,fixedWeeks:this.opts.fixedWeeks.current,numberOfMonths:this.opts.numberOfMonths.current}),this.#s(),this.#d(),this.#h(),ts({placeholder:this.opts.placeholder,getVisibleMonths:()=>this.visibleMonths,weekStartsOn:this.opts.weekStartsOn,locale:this.opts.locale,fixedWeeks:this.opts.fixedWeeks,numberOfMonths:this.opts.numberOfMonths,setMonths:r=>this.months=r}),Xa({fixedWeeks:this.opts.fixedWeeks,locale:this.opts.locale,numberOfMonths:this.opts.numberOfMonths,placeholder:this.opts.placeholder,setMonths:this.setMonths,weekStartsOn:this.opts.weekStartsOn}),Ft(()=>this.fullCalendarLabel,r=>{const n=this.domContext.getElementById(this.accessibleHeadingId);n&&(n.textContent=r)}),Ft(()=>this.opts.value.current,()=>{const r=this.opts.value.current;if(Array.isArray(r)&&r.length){const n=r[r.length-1];n&&this.opts.placeholder.current!==n&&(this.opts.placeholder.current=n)}else!Array.isArray(r)&&r&&this.opts.placeholder.current!==r&&(this.opts.placeholder.current=r)}),is({placeholder:e.placeholder,defaultPlaceholder:e.defaultPlaceholder,isDateDisabled:e.isDateDisabled,maxValue:e.maxValue,minValue:e.minValue,ref:e.ref})}setMonths(e){this.months=e}#r=b(()=>Qa({months:this.months,formatter:this.formatter,weekdayFormat:this.opts.weekdayFormat.current}));get weekdays(){return o(this.#r)}set weekdays(e){v(this.#r,e)}#n=b(()=>Lt(()=>this.opts.placeholder.current.year));get initialPlaceholderYear(){return o(this.#n)}set initialPlaceholderYear(e){v(this.#n,e)}#a=b(()=>us({minValue:this.opts.minValue.current,maxValue:this.opts.maxValue.current,placeholderYear:this.initialPlaceholderYear}));get defaultYears(){return o(this.#a)}set defaultYears(e){v(this.#a,e)}#s(){Dt(()=>{if(Lt(()=>this.opts.initialFocus.current)){const r=this.opts.ref.current?.querySelector("[data-focused]");r&&r.focus()}})}#d(){Dt(()=>this.opts.ref.current?es({calendarNode:this.opts.ref.current,label:this.fullCalendarLabel,accessibleHeadingId:this.accessibleHeadingId}):void 0)}#h(){Bn(()=>{this.formatter.getLocale()!==this.opts.locale.current&&this.formatter.setLocale(this.opts.locale.current)})}nextPage(){Ka({fixedWeeks:this.opts.fixedWeeks.current,locale:this.opts.locale.current,numberOfMonths:this.opts.numberOfMonths.current,pagedNavigation:this.opts.pagedNavigation.current,setMonths:this.setMonths,setPlaceholder:e=>this.opts.placeholder.current=e,weekStartsOn:this.opts.weekStartsOn.current,months:this.months})}prevPage(){Ga({fixedWeeks:this.opts.fixedWeeks.current,locale:this.opts.locale.current,numberOfMonths:this.opts.numberOfMonths.current,pagedNavigation:this.opts.pagedNavigation.current,setMonths:this.setMonths,setPlaceholder:e=>this.opts.placeholder.current=e,weekStartsOn:this.opts.weekStartsOn.current,months:this.months})}nextYear(){this.opts.placeholder.current=this.opts.placeholder.current.add({years:1})}prevYear(){this.opts.placeholder.current=this.opts.placeholder.current.subtract({years:1})}setYear(e){this.opts.placeholder.current=this.opts.placeholder.current.set({year:e})}setMonth(e){this.opts.placeholder.current=this.opts.placeholder.current.set({month:e})}#o=b(()=>rs({maxValue:this.opts.maxValue.current,months:this.months,disabled:this.opts.disabled.current}));get isNextButtonDisabled(){return o(this.#o)}set isNextButtonDisabled(e){v(this.#o,e)}#i=b(()=>ns({minValue:this.opts.minValue.current,months:this.months,disabled:this.opts.disabled.current}));get isPrevButtonDisabled(){return o(this.#i)}set isPrevButtonDisabled(e){v(this.#i,e)}#l=b(()=>{const e=this.opts.value.current,r=this.opts.isDateDisabled.current,n=this.opts.isDateUnavailable.current;if(Array.isArray(e)){if(!e.length)return!1;for(const a of e)if(r(a)||n(a))return!0}else{if(!e)return!1;if(r(e)||n(e))return!0}return!1});get isInvalid(){return o(this.#l)}set isInvalid(e){v(this.#l,e)}#c=b(()=>(this.opts.monthFormat.current,this.opts.yearFormat.current,as({months:this.months,formatter:this.formatter,locale:this.opts.locale.current})));get headingValue(){return o(this.#c)}set headingValue(e){v(this.#c,e)}#u=b(()=>`${this.opts.calendarLabel.current} ${this.headingValue}`);get fullCalendarLabel(){return o(this.#u)}set fullCalendarLabel(e){v(this.#u,e)}isOutsideVisibleMonths(e){return!this.visibleMonths.some(r=>Zt(e,r))}isDateDisabled(e){if(this.opts.isDateDisabled.current(e)||this.opts.disabled.current)return!0;const r=this.opts.minValue.current,n=this.opts.maxValue.current;return!!(r&&At(e,r)||n&&At(n,e))}isDateSelected(e){const r=this.opts.value.current;return Array.isArray(r)?r.some(n=>mt(n,e)):r?mt(r,e):!1}shiftFocus(e,r){return qa({node:e,add:r,placeholder:this.opts.placeholder,calendarNode:this.opts.ref.current,isPrevButtonDisabled:this.isPrevButtonDisabled,isNextButtonDisabled:this.isNextButtonDisabled,months:this.months,numberOfMonths:this.opts.numberOfMonths.current})}#f(e){if(this.opts.type.current!=="multiple"||!this.opts.maxDays.current)return!0;const r=e.length;return!(this.opts.maxDays.current&&r>this.opts.maxDays.current)}handleCellClick(e,r){if(this.opts.readonly.current||this.opts.isDateDisabled.current?.(r)||this.opts.isDateUnavailable.current?.(r))return;const n=this.opts.value.current;if(this.opts.type.current==="multiple")(Array.isArray(n)||n===void 0)&&(this.opts.value.current=this.handleMultipleUpdate(n,r));else if(!Array.isArray(n)){const s=this.handleSingleUpdate(n,r);s?this.announcer.announce(`Selected Date: ${this.formatter.selectedDate(s,!1)}`,"polite"):this.announcer.announce("Selected date is now empty.","polite",5e3),this.opts.value.current=ls(s,n),s!==void 0&&this.opts.onDateSelect?.current?.()}}handleMultipleUpdate(e,r){if(!e){const s=[r];return this.#f(s)?s:[r]}if(!Array.isArray(e))return;const n=e.findIndex(s=>mt(s,r)),a=this.opts.preventDeselect.current;if(n===-1){const s=[...e,r];return this.#f(s)?s:[r]}else{if(a)return e;{const s=e.filter(i=>!mt(i,r));if(!s.length){this.opts.placeholder.current=r;return}return s}}}handleSingleUpdate(e,r){if(!e)return r;if(!this.opts.preventDeselect.current&&mt(e,r)){this.opts.placeholder.current=r;return}return r}onkeydown(e){Ja({event:e,handleCellClick:this.handleCellClick,shiftFocus:this.shiftFocus,placeholderValue:this.opts.placeholder.current})}#m=b(()=>({months:this.months,weekdays:this.weekdays}));get snippetProps(){return o(this.#m)}set snippetProps(e){v(this.#m,e)}getBitsAttr=e=>cs.getAttr(e);#v=b(()=>({...ss({fullCalendarLabel:this.fullCalendarLabel,id:this.opts.id.current,isInvalid:this.isInvalid,disabled:this.opts.disabled.current,readonly:this.opts.readonly.current}),[this.getBitsAttr("root")]:"",onkeydown:this.onkeydown,...this.attachment}));get props(){return o(this.#v)}set props(e){v(this.#v,e)}}const En=new un("Calendar.Cell | RangeCalendar.Cell");class Sr{static create(e){return En.set(new Sr(e,Te.get()))}opts;root;#e=b(()=>Le(this.opts.date.current));get cellDate(){return o(this.#e)}set cellDate(e){v(this.#e,e)}#t=b(()=>this.root.opts.isDateUnavailable.current(this.opts.date.current));get isUnavailable(){return o(this.#t)}set isUnavailable(e){v(this.#t,e)}#r=b(()=>sa(this.opts.date.current,ye()));get isDateToday(){return o(this.#r)}set isDateToday(e){v(this.#r,e)}#n=b(()=>!Zt(this.opts.date.current,this.opts.month.current));get isOutsideMonth(){return o(this.#n)}set isOutsideMonth(e){v(this.#n,e)}#a=b(()=>this.root.isOutsideVisibleMonths(this.opts.date.current));get isOutsideVisibleMonths(){return o(this.#a)}set isOutsideVisibleMonths(e){v(this.#a,e)}#s=b(()=>this.root.isDateDisabled(this.opts.date.current)||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current);get isDisabled(){return o(this.#s)}set isDisabled(e){v(this.#s,e)}#d=b(()=>mt(this.opts.date.current,this.root.opts.placeholder.current));get isFocusedDate(){return o(this.#d)}set isFocusedDate(e){v(this.#d,e)}#h=b(()=>this.root.isDateSelected(this.opts.date.current));get isSelectedDate(){return o(this.#h)}set isSelectedDate(e){v(this.#h,e)}#o=b(()=>this.root.formatter.custom(this.cellDate,{weekday:"long",month:"long",day:"numeric",year:"numeric"}));get labelText(){return o(this.#o)}set labelText(e){v(this.#o,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#i=b(()=>({disabled:this.isDisabled,unavailable:this.isUnavailable,selected:this.isSelectedDate,day:`${this.opts.date.current.day}`}));get snippetProps(){return o(this.#i)}set snippetProps(e){v(this.#i,e)}#l=b(()=>this.isDisabled||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current||this.isUnavailable);get ariaDisabled(){return o(this.#l)}set ariaDisabled(e){v(this.#l,e)}#c=b(()=>({"data-unavailable":ee(this.isUnavailable),"data-today":this.isDateToday?"":void 0,"data-outside-month":this.isOutsideMonth?"":void 0,"data-outside-visible-months":this.isOutsideVisibleMonths?"":void 0,"data-focused":this.isFocusedDate?"":void 0,"data-selected":ee(this.isSelectedDate),"data-value":this.opts.date.current.toString(),"data-type":La(this.opts.date.current),"data-disabled":ee(this.isDisabled||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current)}));get sharedDataAttrs(){return o(this.#c)}set sharedDataAttrs(e){v(this.#c,e)}#u=b(()=>({id:this.opts.id.current,role:"gridcell","aria-selected":_t(this.isSelectedDate),"aria-disabled":_t(this.ariaDisabled),...this.sharedDataAttrs,[this.root.getBitsAttr("cell")]:"",...this.attachment}));get props(){return o(this.#u)}set props(e){v(this.#u,e)}}class Cr{static create(e){return new Cr(e,En.get())}opts;cell;attachment;constructor(e,r){this.opts=e,this.cell=r,this.onclick=this.onclick.bind(this),this.attachment=$e(this.opts.ref)}#e=b(()=>this.cell.isOutsideMonth&&this.cell.root.opts.disableDaysOutsideMonth.current||this.cell.isDisabled?void 0:this.cell.isFocusedDate?0:-1);onclick(e){this.cell.isDisabled||this.cell.root.handleCellClick(e,this.cell.opts.date.current)}#t=b(()=>({disabled:this.cell.isDisabled,unavailable:this.cell.isUnavailable,selected:this.cell.isSelectedDate,day:`${this.cell.opts.date.current.day}`}));get snippetProps(){return o(this.#t)}set snippetProps(e){v(this.#t,e)}#r=b(()=>({id:this.opts.id.current,role:"button","aria-label":this.cell.labelText,"aria-disabled":_t(this.cell.ariaDisabled),...this.cell.sharedDataAttrs,tabindex:o(this.#e),[this.cell.root.getBitsAttr("day")]:"","data-bits-day":"",onclick:this.onclick,...this.attachment}));get props(){return o(this.#r)}set props(e){v(this.#r,e)}}class kr{static create(e){return new kr(e,Te.get())}opts;root;#e=b(()=>this.root.isNextButtonDisabled);get isDisabled(){return o(this.#e)}set isDisabled(e){v(this.#e,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.onclick=this.onclick.bind(this),this.attachment=$e(this.opts.ref)}onclick(e){this.isDisabled||this.root.nextPage()}#t=b(()=>({id:this.opts.id.current,role:"button",type:"button","aria-label":"Next","aria-disabled":_t(this.isDisabled),"data-disabled":ee(this.isDisabled),disabled:this.isDisabled,[this.root.getBitsAttr("next-button")]:"",onclick:this.onclick,...this.attachment}));get props(){return o(this.#t)}set props(e){v(this.#t,e)}}class Ir{static create(e){return new Ir(e,Te.get())}opts;root;#e=b(()=>this.root.isPrevButtonDisabled);get isDisabled(){return o(this.#e)}set isDisabled(e){v(this.#e,e)}attachment;constructor(e,r){this.opts=e,this.root=r,this.onclick=this.onclick.bind(this),this.attachment=$e(this.opts.ref)}onclick(e){this.isDisabled||this.root.prevPage()}#t=b(()=>({id:this.opts.id.current,role:"button",type:"button","aria-label":"Previous","aria-disabled":_t(this.isDisabled),"data-disabled":ee(this.isDisabled),disabled:this.isDisabled,[this.root.getBitsAttr("prev-button")]:"",onclick:this.onclick,...this.attachment}));get props(){return o(this.#t)}set props(e){v(this.#t,e)}}class Fr{static create(e){return new Fr(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,tabindex:-1,role:"grid","aria-readonly":_t(this.root.opts.readonly.current),"aria-disabled":_t(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),"data-disabled":ee(this.root.opts.disabled.current),[this.root.getBitsAttr("grid")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Or{static create(e){return new Or(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,"data-disabled":ee(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-body")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Ar{static create(e){return new Ar(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,"data-disabled":ee(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-head")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Tr{static create(e){return new Tr(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,"data-disabled":ee(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-row")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Er{static create(e){return new Er(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,"data-disabled":ee(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),[this.root.getBitsAttr("head-cell")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Yr{static create(e){return new Yr(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=$e(this.opts.ref)}#e=b(()=>({id:this.opts.id.current,"data-disabled":ee(this.root.opts.disabled.current),"data-readonly":ee(this.root.opts.readonly.current),[this.root.getBitsAttr("header")]:"",...this.attachment}));get props(){return o(this.#e)}set props(e){v(this.#e,e)}}class Vr{static create(e){return new Vr(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.onchange=this.onchange.bind(this),this.attachment=$e(this.opts.ref)}#e=b(()=>{this.root.opts.locale.current;const e=this.opts.months.current,r=this.opts.monthFormat.current,n=[];for(const a of e){const s=this.root.opts.placeholder.current.set({month:a});let i;typeof r=="function"?i=r(a):i=this.root.formatter.custom(Le(s),{month:r}),n.push({value:a,label:i})}return n});get monthItems(){return o(this.#e)}set monthItems(e){v(this.#e,e)}#t=b(()=>this.root.opts.placeholder.current.month);get currentMonth(){return o(this.#t)}set currentMonth(e){v(this.#t,e)}#r=b(()=>this.root.opts.disabled.current||this.opts.disabled.current);get isDisabled(){return o(this.#r)}set isDisabled(e){v(this.#r,e)}#n=b(()=>({monthItems:this.monthItems,selectedMonthItem:this.monthItems.find(e=>e.value===this.currentMonth)}));get snippetProps(){return o(this.#n)}set snippetProps(e){v(this.#n,e)}onchange(e){if(this.isDisabled)return;const r=e.target,n=parseInt(r.value,10);isNaN(n)||(this.root.opts.placeholder.current=this.root.opts.placeholder.current.set({month:n}))}#a=b(()=>({id:this.opts.id.current,value:this.currentMonth,disabled:this.isDisabled,"data-disabled":ee(this.isDisabled),[this.root.getBitsAttr("month-select")]:"",onchange:this.onchange,...this.attachment}));get props(){return o(this.#a)}set props(e){v(this.#a,e)}}class Br{static create(e){return new Br(e,Te.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.onchange=this.onchange.bind(this),this.attachment=$e(this.opts.ref)}#e=b(()=>this.opts.years.current&&this.opts.years.current.length?this.opts.years.current:this.root.defaultYears);get years(){return o(this.#e)}set years(e){v(this.#e,e)}#t=b(()=>{this.root.opts.locale.current;const e=this.opts.yearFormat.current,r=[];for(const n of this.years){const a=this.root.opts.placeholder.current.set({year:n});let s;typeof e=="function"?s=e(n):s=this.root.formatter.custom(Le(a),{year:e}),r.push({value:n,label:s})}return r});get yearItems(){return o(this.#t)}set yearItems(e){v(this.#t,e)}#r=b(()=>this.root.opts.placeholder.current.year);get currentYear(){return o(this.#r)}set currentYear(e){v(this.#r,e)}#n=b(()=>this.root.opts.disabled.current||this.opts.disabled.current);get isDisabled(){return o(this.#n)}set isDisabled(e){v(this.#n,e)}#a=b(()=>({yearItems:this.yearItems,selectedYearItem:this.yearItems.find(e=>e.value===this.currentYear)}));get snippetProps(){return o(this.#a)}set snippetProps(e){v(this.#a,e)}onchange(e){if(this.isDisabled)return;const r=e.target,n=parseInt(r.value,10);isNaN(n)||(this.root.opts.placeholder.current=this.root.opts.placeholder.current.set({year:n}))}#s=b(()=>({id:this.opts.id.current,value:this.currentYear,disabled:this.isDisabled,"data-disabled":ee(this.isDisabled),[this.root.getBitsAttr("year-select")]:"",onchange:this.onchange,...this.attachment}));get props(){return o(this.#s)}set props(e){v(this.#s,e)}}var ds=T("<div><!></div>");function hs(t,e){L(e,!0);let r=g(e,"id",19,dn),n=g(e,"ref",15,null),a=g(e,"value",15),s=g(e,"onValueChange",3,Wr),i=g(e,"placeholder",15),c=g(e,"onPlaceholderChange",3,Wr),d=g(e,"weekdayFormat",3,"narrow"),f=g(e,"pagedNavigation",3,!1),y=g(e,"isDateDisabled",3,()=>!1),x=g(e,"isDateUnavailable",3,()=>!1),u=g(e,"fixedWeeks",3,!1),l=g(e,"numberOfMonths",3,1),m=g(e,"calendarLabel",3,"Event"),w=g(e,"disabled",3,!1),E=g(e,"readonly",3,!1),D=g(e,"minValue",3,void 0),P=g(e,"maxValue",3,void 0),O=g(e,"preventDeselect",3,!1),q=g(e,"disableDaysOutsideMonth",3,!0),B=g(e,"initialFocus",3,!1),S=g(e,"monthFormat",3,"long"),I=g(e,"yearFormat",3,"numeric"),J=H(e,["$$slots","$$events","$$legacy","child","children","id","ref","value","onValueChange","placeholder","onPlaceholderChange","weekdayFormat","weekStartsOn","pagedNavigation","isDateDisabled","isDateUnavailable","fixedWeeks","numberOfMonths","locale","calendarLabel","disabled","readonly","minValue","maxValue","preventDeselect","type","disableDaysOutsideMonth","initialFocus","maxDays","monthFormat","yearFormat"]);const z=Ua({defaultValue:a(),minValue:D(),maxValue:P()});function Q(){i()===void 0&&i(z)}Q(),Ft.pre(()=>i(),()=>{Q()});function re(){a()===void 0&&a(e.type==="single"?void 0:[])}re(),Ft.pre(()=>a(),()=>{re()});const te=Pr.create({id:$(()=>r()),ref:$(()=>n(),V=>n(V)),weekdayFormat:$(()=>d()),weekStartsOn:$(()=>e.weekStartsOn),pagedNavigation:$(()=>f()),isDateDisabled:$(()=>y()),isDateUnavailable:$(()=>x()),fixedWeeks:$(()=>u()),numberOfMonths:$(()=>l()),locale:Zn(()=>e.locale),calendarLabel:$(()=>m()),readonly:$(()=>E()),disabled:$(()=>w()),minValue:$(()=>D()),maxValue:$(()=>P()),disableDaysOutsideMonth:$(()=>q()),initialFocus:$(()=>B()),maxDays:$(()=>e.maxDays),placeholder:$(()=>i(),V=>{i(V),c()(V)}),preventDeselect:$(()=>O()),value:$(()=>a(),V=>{a(V),s()(V)}),type:$(()=>e.type),monthFormat:$(()=>S()),yearFormat:$(()=>I()),defaultPlaceholder:z}),be=b(()=>Pe(J,te.props));var de=_(),pe=p(de);{var Qe=V=>{var W=_(),Se=p(W);{let Ce=b(()=>({props:o(be),...te.snippetProps}));N(Se,()=>e.child,()=>o(Ce))}h(V,W)},A=V=>{var W=ds();ce(W,()=>({...o(be)}));var Se=k(W);N(Se,()=>e.children??ie,()=>te.snippetProps),C(W),h(V,W)};G(pe,V=>{e.child?V(Qe):V(A,!1)})}h(t,de),R()}var fs=T("<div><!></div>");function ms(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Cr.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);{let w=b(()=>({props:o(c),...i.snippetProps}));N(m,()=>e.child,()=>o(w))}h(u,l)},x=u=>{var l=fs();ce(l,()=>({...o(c)}));var m=k(l);{var w=D=>{var P=_(),O=p(P);N(O,()=>e.children??ie,()=>i.snippetProps),h(D,P)},E=D=>{var P=lt();se(()=>le(P,i.cell.opts.date.current.day)),h(D,P)};G(m,D=>{e.children?D(w):D(E,!1)})}C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var vs=T("<table><!></table>");function gs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Fr.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=vs();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var ys=T("<tbody><!></tbody>");function bs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Or.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=ys();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var ps=T("<td><!></td>");function xs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id","date","month"]);const i=Sr.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u)),date:$(()=>e.date),month:$(()=>e.month)}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);{let w=b(()=>({props:o(c),...i.snippetProps}));N(m,()=>e.child,()=>o(w))}h(u,l)},x=u=>{var l=ps();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie,()=>i.snippetProps),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var Ds=T("<thead><!></thead>");function _s(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Ar.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=Ds();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var ws=T("<th><!></th>");function Ms(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Er.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=ws();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var $s=T("<tr><!></tr>");function Ps(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Tr.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=$s();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var Ss=T("<header><!></header>");function Cs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=H(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const i=Yr.create({id:$(()=>a()),ref:$(()=>n(),u=>n(u))}),c=b(()=>Pe(s,i.props));var d=_(),f=p(d);{var y=u=>{var l=_(),m=p(l);N(m,()=>e.child,()=>({props:o(c)})),h(u,l)},x=u=>{var l=Ss();ce(l,()=>({...o(c)}));var m=k(l);N(m,()=>e.children??ie),C(l),h(u,l)};G(f,u=>{e.child?u(y):u(x,!1)})}h(t,d),R()}var ks=T("<option> </option>"),Is=T("<select><!></select>");function Fs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=g(e,"months",19,()=>[1,2,3,4,5,6,7,8,9,10,11,12]),i=g(e,"monthFormat",3,"long"),c=g(e,"disabled",3,!1),d=g(e,"aria-label",3,"Select a month"),f=H(e,["$$slots","$$events","$$legacy","children","child","ref","id","months","monthFormat","disabled","aria-label"]);const y=Vr.create({id:$(()=>a()),ref:$(()=>n(),E=>n(E)),months:$(()=>s()),monthFormat:$(()=>i()),disabled:$(()=>!!c())}),x=b(()=>Pe(f,y.props,{"aria-label":d()}));var u=_(),l=p(u);{var m=E=>{var D=_(),P=p(D);{let O=b(()=>({props:o(x),...y.snippetProps}));N(P,()=>e.child,()=>o(O))}h(E,D)},w=E=>{var D=Is();ce(D,()=>({...o(x)}));var P=k(D);{var O=B=>{var S=_(),I=p(S);N(I,()=>e.children??ie,()=>y.snippetProps),h(B,S)},q=B=>{var S=_(),I=p(S);Je(I,17,()=>y.monthItems,J=>J.value,(J,z)=>{var Q=ks(),re=k(Q,!0);C(Q);var te={};se(()=>{Ht(Q,o(z).value===y.currentMonth),le(re,o(z).label),te!==(te=o(z).value)&&(Q.value=(Q.__value=o(z).value)??"")}),h(J,Q)}),h(B,S)};G(P,B=>{e.children?B(O):B(q,!1)})}C(D),h(E,D)};G(l,E=>{e.child?E(m):E(w,!1)})}h(t,u),R()}var Os=T("<button><!></button>");function As(t,e){const r=Oe();L(e,!0);let n=g(e,"id",19,()=>Ae(r)),a=g(e,"ref",15,null),s=g(e,"tabindex",3,0),i=H(e,["$$slots","$$events","$$legacy","children","child","id","ref","tabindex"]);const c=kr.create({id:$(()=>n()),ref:$(()=>a(),l=>a(l))}),d=b(()=>Pe(i,c.props,{tabindex:s()}));var f=_(),y=p(f);{var x=l=>{var m=_(),w=p(m);N(w,()=>e.child,()=>({props:o(d)})),h(l,m)},u=l=>{var m=Os();ce(m,()=>({...o(d)}));var w=k(m);N(w,()=>e.children??ie),C(m),h(l,m)};G(y,l=>{e.child?l(x):l(u,!1)})}h(t,f),R()}var Ts=T("<button><!></button>");function Es(t,e){const r=Oe();L(e,!0);let n=g(e,"id",19,()=>Ae(r)),a=g(e,"ref",15,null),s=g(e,"tabindex",3,0),i=H(e,["$$slots","$$events","$$legacy","children","child","id","ref","tabindex"]);const c=Ir.create({id:$(()=>n()),ref:$(()=>a(),l=>a(l))}),d=b(()=>Pe(i,c.props,{tabindex:s()}));var f=_(),y=p(f);{var x=l=>{var m=_(),w=p(m);N(w,()=>e.child,()=>({props:o(d)})),h(l,m)},u=l=>{var m=Ts();ce(m,()=>({...o(d)}));var w=k(m);N(w,()=>e.children??ie),C(m),h(l,m)};G(y,l=>{e.child?l(x):l(u,!1)})}h(t,f),R()}var Ys=T("<option> </option>"),Vs=T("<select><!></select>");function Bs(t,e){const r=Oe();L(e,!0);let n=g(e,"ref",15,null),a=g(e,"id",19,()=>Ae(r)),s=g(e,"yearFormat",3,"numeric"),i=g(e,"disabled",3,!1),c=g(e,"aria-label",3,"Select a year"),d=H(e,["$$slots","$$events","$$legacy","children","child","ref","id","years","yearFormat","disabled","aria-label"]);const f=Br.create({id:$(()=>a()),ref:$(()=>n(),w=>n(w)),years:$(()=>e.years),yearFormat:$(()=>s()),disabled:$(()=>!!i())}),y=b(()=>Pe(d,f.props,{"aria-label":c()}));var x=_(),u=p(x);{var l=w=>{var E=_(),D=p(E);{let P=b(()=>({props:o(y),...f.snippetProps}));N(D,()=>e.child,()=>o(P))}h(w,E)},m=w=>{var E=Vs();ce(E,()=>({...o(y)}));var D=k(E);{var P=q=>{var B=_(),S=p(B);N(S,()=>e.children??ie,()=>f.snippetProps),h(q,B)},O=q=>{var B=_(),S=p(B);Je(S,17,()=>f.yearItems,I=>I.value,(I,J)=>{var z=Ys(),Q=k(z,!0);C(z);var re={};se(()=>{Ht(z,o(J).value===f.currentYear),le(Q,o(J).label),re!==(re=o(J).value)&&(z.value=(z.__value=o(J).value)??"")}),h(I,z)}),h(q,B)};G(D,q=>{e.children?q(P):q(O,!1)})}C(E),h(w,E)};G(u,w=>{e.child?w(l):w(m,!1)})}h(t,x),R()}function Us(t,e){L(e,!0);let r=H(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m15 18-6-6 6-6"}]];pr(t,he({name:"chevron-left"},()=>r,{get iconNode(){return n},children:(a,s)=>{var i=_(),c=p(i);N(c,()=>e.children??ie),h(a,i)},$$slots:{default:!0}})),R()}function Yn(t,e){L(e,!0);let r=H(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"m9 18 6-6-6-6"}]];pr(t,he({name:"chevron-right"},()=>r,{get iconNode(){return n},children:(a,s)=>{var i=_(),c=p(i);N(c,()=>e.children??ie),h(a,i)},$$slots:{default:!0}})),R()}function Ls(t,e){L(e,!0);let r=H(e,["$$slots","$$events","$$legacy"]);const n=[["path",{d:"M12 6v6l4 2"}],["circle",{cx:"12",cy:"12",r:"10"}]];pr(t,he({name:"clock"},()=>r,{get iconNode(){return n},children:(a,s)=>{var i=_(),c=p(i);N(c,()=>e.children??ie),h(a,i)},$$slots:{default:!0}})),R()}var Rs=T("<!> <!>",1),Ns=T("<!> <!>",1),Ws=T("<!> <!>",1),Hs=T("<!> <!>",1);function Zs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=g(e,"value",15),a=g(e,"placeholder",15),s=g(e,"weekdayFormat",3,"short"),i=g(e,"buttonVariant",3,"ghost"),c=g(e,"captionLayout",3,"label"),d=g(e,"locale",3,"en-US"),f=g(e,"yearFormat",3,"numeric"),y=g(e,"disableDaysOutsideMonth",3,!1),x=H(e,["$$slots","$$events","$$legacy","ref","value","placeholder","class","weekdayFormat","buttonVariant","captionLayout","locale","months","years","monthFormat","yearFormat","day","disableDaysOutsideMonth"]);const u=b(()=>e.monthFormat?e.monthFormat:c().startsWith("dropdown")?"short":"long");var l=_(),m=p(l);{const w=(D,P)=>{let O=()=>P?.().months,q=()=>P?.().weekdays;var B=_(),S=p(B);Y(S,()=>Gs,(I,J)=>{J(I,{children:(z,Q)=>{var re=Hs(),te=p(re);Y(te,()=>yo,(de,pe)=>{pe(de,{children:(Qe,A)=>{var V=Rs(),W=p(V);Y(W,()=>ao,(Ce,Re)=>{Re(Ce,{get variant(){return i()}})});var Se=U(W,2);Y(Se,()=>ro,(Ce,Re)=>{Re(Ce,{get variant(){return i()}})}),h(Qe,V)},$$slots:{default:!0}})});var be=U(te,2);Je(be,18,O,de=>de,(de,pe,Qe)=>{var A=_(),V=p(A);Y(V,()=>vo,(W,Se)=>{Se(W,{children:(Ce,Re)=>{var Mt=Ws(),M=p(Mt);Y(M,()=>Js,(K,j)=>{j(K,{children:(Z,Xe)=>{var Ee=_(),me=p(Ee);Y(me,()=>Do,(Ye,xe)=>{xe(Ye,{get captionLayout(){return c()},get months(){return e.months},get monthFormat(){return o(u)},get years(){return e.years},get yearFormat(){return f()},get month(){return pe.value},get locale(){return d()},get monthIndex(){return o(Qe)},get placeholder(){return a()},set placeholder(et){a(et)}})}),h(Z,Ee)},$$slots:{default:!0}})});var F=U(M,2);Y(F,()=>qs,(K,j)=>{j(K,{children:(Z,Xe)=>{var Ee=Ns(),me=p(Ee);Y(me,()=>Xs,(xe,et)=>{et(xe,{children:(De,$t)=>{var Ve=_(),ke=p(Ve);Y(ke,()=>rn,(Ne,ct)=>{ct(Ne,{class:"select-none",children:(ut,We)=>{var Ie=_(),tt=p(Ie);Je(tt,16,q,He=>He,(He,rt)=>{var Ze=_(),yt=p(Ze);Y(yt,()=>eo,(ve,ge)=>{ge(ve,{children:(Be,dt)=>{kt();var ne=lt();se(nt=>le(ne,nt),[()=>rt.slice(0,2)]),h(Be,ne)},$$slots:{default:!0}})}),h(He,Ze)}),h(ut,Ie)},$$slots:{default:!0}})}),h(De,Ve)},$$slots:{default:!0}})});var Ye=U(me,2);Y(Ye,()=>Qs,(xe,et)=>{et(xe,{children:(De,$t)=>{var Ve=_(),ke=p(Ve);Je(ke,16,()=>pe.weeks,Ne=>Ne,(Ne,ct)=>{var ut=_(),We=p(ut);Y(We,()=>rn,(Ie,tt)=>{tt(Ie,{class:"mt-2 w-full",children:(He,rt)=>{var Ze=_(),yt=p(Ze);Je(yt,16,()=>ct,ve=>ve,(ve,ge)=>{var Be=_(),dt=p(Be);Y(dt,()=>js,(ne,nt)=>{nt(ne,{get date(){return ge},get month(){return pe.value},children:(at,ht)=>{var ft=_(),_e=p(ft);{var st=je=>{var fe=_(),Ue=p(fe);{let bt=b(()=>({day:ge,outsideMonth:!aa(ge,pe.value)}));N(Ue,()=>e.day,()=>o(bt))}h(je,fe)},ot=je=>{var fe=_(),Ue=p(fe);Y(Ue,()=>zs,(bt,pt)=>{pt(bt,{})}),h(je,fe)};G(_e,je=>{e.day?je(st):je(ot,!1)})}h(at,ft)},$$slots:{default:!0}})}),h(ve,Be)}),h(He,Ze)},$$slots:{default:!0}})}),h(Ne,ut)}),h(De,Ve)},$$slots:{default:!0}})}),h(Z,Ee)},$$slots:{default:!0}})}),h(Ce,Mt)},$$slots:{default:!0}})}),h(de,A)}),h(z,re)},$$slots:{default:!0}})}),h(D,B)};let E=b(()=>ue("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",e.class));Y(m,()=>hs,(D,P)=>{P(D,he({get weekdayFormat(){return s()},get disableDaysOutsideMonth(){return y()},get class(){return o(E)},get locale(){return d()},get monthFormat(){return o(u)},get yearFormat(){return f()}},()=>x,{get value(){return n()},set value(O){n(O)},get ref(){return r()},set ref(O){r(O)},get placeholder(){return a()},set placeholder(O){a(O)},children:w,$$slots:{default:!0}}))})}h(t,l),R()}function js(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue("relative size-(--cell-size) p-0 text-center text-sm focus-within:z-20 [&:first-child[data-selected]_[data-bits-day]]:rounded-s-md [&:last-child[data-selected]_[data-bits-day]]:rounded-e-md",e.class));Y(s,()=>xs,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function zs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue(gr({variant:"ghost"}),"flex size-(--cell-size) flex-col items-center justify-center gap-1 p-0 leading-none font-normal whitespace-nowrap select-none","[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground [&[data-today][data-disabled]]:text-muted-foreground","data-[selected]:bg-primary dark:data-[selected]:hover:bg-accent/50 data-[selected]:text-primary-foreground","[&[data-outside-month]:not([data-selected])]:text-muted-foreground [&[data-outside-month]:not([data-selected])]:hover:text-accent-foreground","data-[disabled]:text-muted-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50","data-[unavailable]:text-muted-foreground data-[unavailable]:line-through","dark:hover:text-accent-foreground","focus:border-ring focus:ring-ring/50 focus:relative","[&>span]:text-xs [&>span]:opacity-70",e.class));Y(s,()=>ms,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function qs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue("mt-4 flex w-full border-collapse flex-col gap-1",e.class));Y(s,()=>gs,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function Js(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",e.class));Y(s,()=>Cs,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}var Ks=T("<div><!></div>");function Gs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class","children"]);var a=Ks();ce(a,i=>({class:i,...n}),[()=>ue("relative flex flex-col gap-4 md:flex-row",e.class)]);var s=k(a);N(s,()=>e.children??ie),C(a),mr(a,i=>r(i),()=>r()),h(t,a),R()}function rn(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue("flex",e.class));Y(s,()=>Ps,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function Qs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue(e.class));Y(s,()=>bs,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function Xs(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue(e.class));Y(s,()=>_s,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}function eo(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class"]);var a=_(),s=p(a);{let i=b(()=>ue("text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal",e.class));Y(s,()=>Ms,(c,d)=>{d(c,he({get class(){return o(i)}},()=>n,{get ref(){return r()},set ref(f){r(f)}}))})}h(t,a),R()}const to=t=>{Yn(t,{class:"size-4"})};function ro(t,e){L(e,!0);let r=g(e,"ref",15,null),n=g(e,"variant",3,"ghost"),a=H(e,["$$slots","$$events","$$legacy","ref","class","children","variant"]);var s=_(),i=p(s);{let c=b(()=>ue(gr({variant:n()}),"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180",e.class)),d=b(()=>e.children||to);Y(i,()=>As,(f,y)=>{y(f,he({get class(){return o(c)},get children(){return o(d)}},()=>a,{get ref(){return r()},set ref(x){r(x)}}))})}h(t,s),R()}const no=t=>{Us(t,{class:"size-4"})};function ao(t,e){L(e,!0);let r=g(e,"ref",15,null),n=g(e,"variant",3,"ghost"),a=H(e,["$$slots","$$events","$$legacy","ref","class","children","variant"]);var s=_(),i=p(s);{let c=b(()=>ue(gr({variant:n()}),"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180",e.class)),d=b(()=>e.children||no);Y(i,()=>Es,(f,y)=>{y(f,he({get class(){return o(c)},get children(){return o(d)}},()=>a,{get ref(){return r()},set ref(x){r(x)}}))})}h(t,s),R()}var so=T("<option> </option>"),oo=T('<select></select> <span class="[&amp;>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>svg]:size-3.5" aria-hidden="true"> <!></span>',1),io=T("<span><!></span>");function lo(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class","value","onchange"]);var a=io(),s=k(a);{const i=(c,d)=>{let f=()=>d?.().props,y=()=>d?.().monthItems,x=()=>d?.().selectedMonthItem;var u=oo(),l=p(u);ce(l,()=>({...f(),value:e.value,onchange:e.onchange})),Je(l,21,y,D=>D.value,(D,P)=>{var O=so(),q=k(O,!0);C(O);var B={};se(()=>{Ht(O,e.value!==void 0?o(P).value===e.value:o(P).value===x().value),le(q,o(P).label),B!==(B=o(P).value)&&(O.value=(O.__value=o(P).value)??"")}),h(D,O)}),C(l);var m=U(l,2),w=k(m),E=U(w);br(E,{class:"size-4"}),C(m),se(D=>le(w,`${D??""} `),[()=>y().find(D=>D.value===e.value)?.label||x().label]),h(c,u)};Y(s,()=>Fs,(c,d)=>{d(c,he({class:"absolute inset-0 opacity-0"},()=>n,{get ref(){return r()},set ref(f){r(f)},child:i,$$slots:{child:!0}}))})}C(a),se(i=>xt(a,1,i),[()=>vr(ue("has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]",e.class))]),h(t,a),R()}var co=T("<option> </option>"),uo=T('<select></select> <span class="[&amp;>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>svg]:size-3.5" aria-hidden="true"> <!></span>',1),ho=T("<span><!></span>");function fo(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class","value"]);var a=ho(),s=k(a);{const i=(c,d)=>{let f=()=>d?.().props,y=()=>d?.().yearItems,x=()=>d?.().selectedYearItem;var u=uo(),l=p(u);ce(l,()=>({...f(),value:e.value})),Je(l,21,y,D=>D.value,(D,P)=>{var O=co(),q=k(O,!0);C(O);var B={};se(()=>{Ht(O,e.value!==void 0?o(P).value===e.value:o(P).value===x().value),le(q,o(P).label),B!==(B=o(P).value)&&(O.value=(O.__value=o(P).value)??"")}),h(D,O)}),C(l);var m=U(l,2),w=k(m),E=U(w);br(E,{class:"size-4"}),C(m),se(D=>le(w,`${D??""} `),[()=>y().find(D=>D.value===e.value)?.label||x().label]),h(c,u)};Y(s,()=>Bs,(c,d)=>{d(c,he({class:"absolute inset-0 opacity-0"},()=>n,{get ref(){return r()},set ref(f){r(f)},child:i,$$slots:{child:!0}}))})}C(a),se(i=>xt(a,1,i),[()=>vr(ue("has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]",e.class))]),h(t,a),R()}var mo=T("<div><!></div>");function vo(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class","children"]);var a=mo();ce(a,i=>({...n,class:i}),[()=>ue("flex flex-col",e.class)]);var s=k(a);N(s,()=>e.children??ie),C(a),mr(a,i=>r(i),()=>r()),h(t,a),R()}var go=T("<nav><!></nav>");function yo(t,e){L(e,!0);let r=g(e,"ref",15,null),n=H(e,["$$slots","$$events","$$legacy","ref","class","children"]);var a=go();ce(a,i=>({...n,class:i}),[()=>ue("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",e.class)]);var s=k(a);N(s,()=>e.children??ie),C(a),mr(a,i=>r(i),()=>r()),h(t,a),R()}var bo=T("<!> <!>",1),po=T("<!> <!>",1),xo=T("<!> <!>",1);function Do(t,e){L(e,!0);const r=u=>{lo(u,{get months(){return e.months},get monthFormat(){return e.monthFormat},get value(){return e.month.month},onchange:l=>{if(!a())return;const m=Number.parseInt(l.currentTarget.value),w=a().set({month:m});a(w.subtract({months:s()}))}})},n=u=>{fo(u,{get years(){return e.years},get yearFormat(){return e.yearFormat},get value(){return e.month.year}})};let a=g(e,"placeholder",15),s=g(e,"monthIndex",3,0);function i(u){const l=u.toDate(ye());return typeof e.yearFormat=="function"?e.yearFormat(l.getFullYear()):new Fe(e.locale,{year:e.yearFormat}).format(l)}function c(u){const l=u.toDate(ye());return typeof e.monthFormat=="function"?e.monthFormat(l.getMonth()+1):new Fe(e.locale,{month:e.monthFormat}).format(l)}var d=_(),f=p(d);{var y=u=>{var l=bo(),m=p(l);r(m);var w=U(m,2);n(w),h(u,l)},x=u=>{var l=_(),m=p(l);{var w=D=>{var P=po(),O=p(P);r(O);var q=U(O,2);{var B=S=>{var I=lt();se(J=>le(I,J),[()=>i(a())]),h(S,I)};G(q,S=>{a()&&S(B)})}h(D,P)},E=D=>{var P=_(),O=p(P);{var q=S=>{var I=xo(),J=p(I);{var z=re=>{var te=lt();se(be=>le(te,be),[()=>c(a())]),h(re,te)};G(J,re=>{a()&&re(z)})}var Q=U(J,2);n(Q),h(S,I)},B=S=>{var I=lt();se((J,z)=>le(I,`${J??""} ${z??""}`),[()=>c(e.month),()=>i(e.month)]),h(S,I)};G(O,S=>{e.captionLayout==="dropdown-years"?S(q):S(B,!1)},!0)}h(D,P)};G(m,D=>{e.captionLayout==="dropdown-months"?D(w):D(E,!1)},!0)}h(u,l)};G(f,u=>{e.captionLayout==="dropdown"?u(y):u(x,!1)})}h(t,d),R()}var _o=T("<!> <!>",1),wo=T("<!> <!>",1),Mo=T('<div><!> <div class="border-t px-3 py-3"><div class="flex items-end gap-2"><div class="flex flex-col items-center gap-1"><span class="text-xs text-muted-foreground">Hours</span> <input type="text" inputmode="numeric" class="w-10 h-9 text-center text-sm border rounded-md bg-background focus:outline-none focus:ring-2 focus:ring-ring tabular-nums"/></div> <span class="text-sm font-medium text-muted-foreground pb-1">:</span> <div class="flex flex-col items-center gap-1"><span class="text-xs text-muted-foreground">Minutes</span> <input type="text" inputmode="numeric" class="w-10 h-9 text-center text-sm border rounded-md bg-background focus:outline-none focus:ring-2 focus:ring-ring tabular-nums"/></div> <span class="text-sm font-medium text-muted-foreground pb-1">:</span> <div class="flex flex-col items-center gap-1"><span class="text-xs text-muted-foreground">Seconds</span> <input type="text" inputmode="numeric" class="w-10 h-9 text-center text-sm border rounded-md bg-muted text-muted-foreground tabular-nums cursor-not-allowed" disabled/></div> <div class="flex flex-col items-center gap-1"><span class="text-xs text-muted-foreground">Period</span> <!></div></div></div></div>');function nn(t,e){L(e,!0);let r=g(e,"value",15),n=oe(12),a=oe(0),s=oe(0),i=oe("AM");Dt(()=>{if(r()&&"hour"in r()){const A=r().hour;v(i,A>=12?"PM":"AM",!0),v(n,A%12||12,!0),v(a,r().minute,!0),v(s,r().second,!0)}});const c=b(()=>()=>o(i)==="AM"?o(n)===12?0:o(n):o(n)===12?12:o(n)+12);function d(A){if(!A)return;const V=new X(A.year,A.month,A.day,o(c)(),o(a),o(s));r(V),e.onValueChange?.(V)}function f(){if(r()){const A=new X(r().year,r().month,r().day,o(c)(),o(a),o(s));r(A),e.onValueChange?.(A)}else{const A=Rt(ye());r(new X(A.year,A.month,A.day,o(c)(),o(a),o(s)))}}function y(A){const V=A.target;let W=parseInt(V.value)||0;W<1&&(W=1),W>12&&(W=12),v(n,W,!0),V.value=String(W).padStart(2,"0"),f()}function x(A){const V=A.target;let W=parseInt(V.value)||0;W<0&&(W=0),W>59&&(W=59),v(a,W,!0),V.value=String(W).padStart(2,"0"),f()}function u(A){(A==="AM"||A==="PM")&&(v(i,A,!0),f())}function l(){v(n,o(n)>=12?1:o(n)+1,!0),f()}function m(){v(n,o(n)<=1?12:o(n)-1,!0),f()}function w(){o(a)>=59?(v(a,0),l()):Et(a),f()}function E(){o(a)<=0?(v(a,59),m()):Et(a,-1),f()}function D(){o(s)>=59?(v(s,0),w()):Et(s),f()}function P(){o(s)<=0?(v(s,59),E()):Et(s,-1),f()}function O(A,V){A.key==="ArrowUp"?(A.preventDefault(),V==="hours"?l():V==="minutes"?w():D()):A.key==="ArrowDown"&&(A.preventDefault(),V==="hours"?m():V==="minutes"?E():P())}const q=b(()=>()=>{if(r())return new Me(r().year,r().month,r().day)});var B=Mo(),S=k(B);{let A=b(()=>o(q)());Zs(S,{type:"single",get value(){return o(A)},onValueChange:d})}var I=U(S,2),J=k(I),z=k(J),Q=U(k(z),2);Kt(Q),Q.__change=y,Q.__keydown=A=>O(A,"hours"),Lr(Q,"maxlength",2),C(z);var re=U(z,4),te=U(k(re),2);Kt(te),te.__change=x,te.__keydown=A=>O(A,"minutes"),Lr(te,"maxlength",2),C(re);var be=U(re,4),de=U(k(be),2);Kt(de),C(be);var pe=U(be,2),Qe=U(k(pe),2);Y(Qe,()=>Jn,(A,V)=>{V(A,{type:"single",get value(){return o(i)},onValueChange:u,children:(W,Se)=>{var Ce=wo(),Re=p(Ce);Y(Re,()=>Kn,(M,F)=>{F(M,{class:"w-[60px] h-9 text-sm",children:(K,j)=>{kt();var Z=lt();se(()=>le(Z,o(i))),h(K,Z)},$$slots:{default:!0}})});var Mt=U(Re,2);Y(Mt,()=>Gn,(M,F)=>{F(M,{children:(K,j)=>{var Z=_o(),Xe=p(Z);Y(Xe,()=>Hr,(me,Ye)=>{Ye(me,{value:"AM",label:"AM",children:(xe,et)=>{kt();var De=lt("AM");h(xe,De)},$$slots:{default:!0}})});var Ee=U(Xe,2);Y(Ee,()=>Hr,(me,Ye)=>{Ye(me,{value:"PM",label:"PM",children:(xe,et)=>{kt();var De=lt("PM");h(xe,De)},$$slots:{default:!0}})}),h(K,Z)},$$slots:{default:!0}})}),h(W,Ce)},$$slots:{default:!0}})}),C(pe),C(J),C(I),C(B),se((A,V,W,Se)=>{xt(B,1,A),Gt(Q,V),Gt(te,W),Gt(de,Se)},[()=>vr(ue("flex flex-col",e.class)),()=>String(o(n)).padStart(2,"0"),()=>String(o(a)).padStart(2,"0"),()=>String(o(s)).padStart(2,"0")]),h(t,B),R()}an(["change","keydown"]);var $o=T('<span class="flex items-center gap-2"><!> <span class="truncate"> </span></span> <!>',1),Po=T('<div class="my-1 border-t mx-2"></div>'),So=T("<button><span> </span> <!></button>"),Co=T("<!> <!>",1),ko=T('<button><span class="tabular-nums"> </span> <span class="text-muted-foreground tabular-nums"> </span></button>'),Io=T("<!> <!>",1),Fo=T('<button><span class="tabular-nums"> </span> <span class="text-muted-foreground tabular-nums"> </span></button>'),Oo=T("<!> <!>",1),Ao=T('<div class="p-5 min-w-[380px]"><div class="flex items-center justify-between mb-3"><span class="text-xs font-medium text-muted-foreground uppercase tracking-wide">Custom</span> <button class="text-xs text-primary hover:underline">Reset to now</button></div> <div class="flex items-center gap-2 mb-4"><!> <span class="text-muted-foreground text-xs">–</span> <!></div> <div class="flex justify-end pt-2"><!></div></div>'),To=T('<div class="flex"><div class="w-[140px] border-r py-2"><!> <div class="my-1 border-t mx-2"></div> <button><span>Set custom</span> <!></button></div> <!></div>'),Eo=T("<!> <!>",1);function Xo(t,e){L(e,!0);let r=g(e,"fromDate",31,()=>ze(Rt(ye()).subtract({days:7}))),n=g(e,"toDate",31,()=>ze(Rt(ye()))),a=g(e,"fromTime",15,"00:00"),s=g(e,"toTime",15,"23:59"),i=g(e,"preset",15,"24h");const c=b(()=>e.timezone??Qn()),d=[{presets:[{value:"5m",label:"5 minutes",minutes:5},{value:"30m",label:"30 minutes",minutes:30},{value:"60m",label:"60 minutes",minutes:60}]},{presets:[{value:"3h",label:"3 hours",minutes:180},{value:"6h",label:"6 hours",minutes:360},{value:"12h",label:"12 hours",minutes:720},{value:"24h",label:"24 hours",minutes:1440}]},{presets:[{value:"3d",label:"3 days",minutes:4320},{value:"7d",label:"7 days",minutes:10080}]},{presets:[{value:"1M",label:"1 month",minutes:43200},{value:"3M",label:"3 months",minutes:129600}]}];let f=oe(!1),y=oe(i()===null),x=oe(ze(i())),u=oe(!1);Dt(()=>{if(i()!==o(x)&&(v(x,i(),!0),v(y,i()===null),i())){const M=d.flatMap(F=>F.presets).find(F=>F.value===i());if(M){const F=Bt(o(c)),K=F.minus({minutes:M.minutes}),j=St(K),Z=St(F);v(S,new X(j.year,j.month,j.day,j.hour,j.minute,j.second),!0),v(I,new X(Z.year,Z.month,Z.day,Z.hour,Z.minute,Z.second),!0)}}});let l=oe(ze(r())),m=oe(ze(n())),w=oe(ze(a())),E=oe(ze(s()));Dt(()=>{const M=r().year!==o(l).year||r().month!==o(l).month||r().day!==o(l).day,F=n().year!==o(m).year||n().month!==o(m).month||n().day!==o(m).day,K=a()!==o(w),j=s()!==o(E);if((M||F||K||j)&&(v(l,r(),!0),v(m,n(),!0),v(w,a(),!0),v(E,s(),!0),!o(f)&&!o(u))){v(y,!0),v(x,null);const[Z,Xe]=a().split(":").map(Number),[Ee,me]=s().split(":").map(Number);v(S,new X(r().year,r().month,r().day,Z||0,Xe||0,0),!0),v(I,new X(n().year,n().month,n().day,Ee||23,me||59,0),!0)}});let D=oe(!1),P=oe(!1);function O(M,F,K){if(!M)return{hour:F,minute:K};const[j,Z]=M.split(":").map(Number);return{hour:j??F,minute:Z??K}}const q=O(a(),0,0),B=O(s(),23,59);let S=oe(ze(new X(r().year,r().month,r().day,q.hour,q.minute,0))),I=oe(ze(new X(n().year,n().month,n().day,B.hour,B.minute,59))),J=oe(null),z=oe(null);function Q(M,F){return M.year===F.year&&M.month===F.month&&M.day===F.day&&M.hour===F.hour&&M.minute===F.minute}const re=b(()=>()=>{if(o(x)&&!o(y)){const M=d.flatMap(F=>F.presets).find(F=>F.value===o(x));return M?`Last ${M.label}`:"Select time range"}if(o(S)&&o(I)){const M=te(o(S)),F=de(o(S)),K=te(o(I)),j=de(o(I));return`${M} ${F} – ${K} ${j}`}return"Select time range"});function te(M){return new Me(M.year,M.month,M.day).toDate(ye()).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function be(M){const F=String(M.year).slice(-2),K=String(M.month).padStart(2,"0"),j=String(M.day).padStart(2,"0");return`${F}/${K}/${j}`}function de(M){const F=M.hour,K=M.minute,j=F>=12?"PM":"AM";return`${F%12||12}:${String(K).padStart(2,"0")} ${j}`}function pe(M){v(x,M.value,!0),i(M.value),v(y,!1);const F=Bt(o(c)),K=F.minus({minutes:M.minutes}),j=St(K),Z=St(F);v(S,new X(j.year,j.month,j.day,j.hour,j.minute,j.second),!0),v(I,new X(Z.year,Z.month,Z.day,Z.hour,Z.minute,Z.second),!0),V()}function Qe(){v(y,!o(y)),o(y)&&(v(x,null),i(null))}function A(){const M=Bt(o(c)),F=St(M);v(I,new X(F.year,F.month,F.day,F.hour,F.minute,F.second),!0)}function V(){v(u,!0),r(new Me(o(S).year,o(S).month,o(S).day)),n(new Me(o(I).year,o(I).month,o(I).day)),a(`${String(o(S).hour).padStart(2,"0")}:${String(o(S).minute).padStart(2,"0")}`),s(`${String(o(I).hour).padStart(2,"0")}:${String(o(I).minute).padStart(2,"0")}`);const M=o(y)?null:o(x);i(M),e.onApply?.({date:r(),time:a()},{date:n(),time:s()},M),setTimeout(()=>{v(u,!1)},0),v(D,!1),v(P,!1),v(f,!1)}function W(M){if(M)v(J,new X(o(S).year,o(S).month,o(S).day,o(S).hour,o(S).minute,o(S).second),!0),v(z,new X(o(I).year,o(I).month,o(I).day,o(I).hour,o(I).minute,o(I).second),!0);else{if(o(u)){v(f,M,!0);return}if(!o(J)||!o(z)||!Q(o(S),o(J))||!Q(o(I),o(z))){V();return}v(D,!1),v(P,!1)}v(f,M,!0)}function Se(M){v(S,M,!0)}function Ce(M){v(I,M,!0)}var Re=_(),Mt=p(Re);Y(Mt,()=>tr,(M,F)=>{F(M,{onOpenChange:W,get open(){return o(f)},set open(K){v(f,K,!0)},children:(K,j)=>{var Z=Eo(),Xe=p(Z);Y(Xe,()=>Xt,(me,Ye)=>{Ye(me,{class:"w-full",children:(xe,et)=>{Rr(xe,{variant:"outline",class:"h-9 justify-between gap-2 font-normal w-full",children:(De,$t)=>{var Ve=$o(),ke=p(Ve),Ne=k(ke);Ls(Ne,{class:"h-4 w-4 text-muted-foreground"});var ct=U(Ne,2),ut=k(ct,!0);C(ct),C(ke);var We=U(ke,2);br(We,{class:"h-4 w-4 text-muted-foreground"}),se(Ie=>le(ut,Ie),[()=>o(re)()]),h(De,Ve)},$$slots:{default:!0}})},$$slots:{default:!0}})});var Ee=U(Xe,2);Y(Ee,()=>er,(me,Ye)=>{Ye(me,{class:"w-auto p-0",align:"start",children:(xe,et)=>{var De=To(),$t=k(De),Ve=k($t);Je(Ve,17,()=>d,Ur,(We,Ie,tt)=>{var He=Co(),rt=p(He);{var Ze=ve=>{var ge=Po();h(ve,ge)};G(rt,ve=>{tt>0&&ve(Ze)})}var yt=U(rt,2);Je(yt,17,()=>o(Ie).presets,Ur,(ve,ge,Be,dt)=>{var ne=So();ne.__click=()=>pe(o(ge));var nt=k(ne),at=k(nt,!0);C(nt);var ht=U(nt,2);{var ft=_e=>{Xn(_e,{class:"h-4 w-4 text-primary"})};G(ht,_e=>{o(x)===o(ge).value&&!o(y)&&_e(ft)})}C(ne),se(()=>{xt(ne,1,`w-full px-3 py-1.5 text-left text-sm hover:bg-muted/50 flex items-center justify-between transition-colors ${o(x)===o(ge).value&&!o(y)?"bg-muted":""}`),le(at,o(ge).label)}),h(ve,ne)}),h(We,He)});var ke=U(Ve,4);ke.__click=Qe;var Ne=U(k(ke),2);Yn(Ne,{class:"h-4 w-4 text-muted-foreground"}),C(ke),C($t);var ct=U($t,2);{var ut=We=>{var Ie=Ao(),tt=k(Ie),He=U(k(tt),2);He.__click=A,C(tt);var rt=U(tt,2),Ze=k(rt);Y(Ze,()=>tr,(Be,dt)=>{dt(Be,{get open(){return o(D)},set open(ne){v(D,ne,!0)},children:(ne,nt)=>{var at=Io(),ht=p(at);Y(ht,()=>Xt,(_e,st)=>{st(_e,{children:(ot,je)=>{var fe=ko(),Ue=k(fe),bt=k(Ue,!0);C(Ue);var pt=U(Ue,2),zt=k(pt,!0);C(pt),C(fe),se((qt,Jt)=>{xt(fe,1,`h-9 px-3 text-sm border rounded-md text-left hover:bg-muted/50 transition-colors flex items-center gap-2 ${o(D)?"ring-2 ring-ring":""}`),le(bt,qt),le(zt,Jt)},[()=>be(o(S)),()=>de(o(S))]),h(ot,fe)},$$slots:{default:!0}})});var ft=U(ht,2);Y(ft,()=>er,(_e,st)=>{st(_e,{class:"w-auto p-0",align:"start",children:(ot,je)=>{nn(ot,{get value(){return o(S)},onValueChange:Se})},$$slots:{default:!0}})}),h(ne,at)},$$slots:{default:!0}})});var yt=U(Ze,4);Y(yt,()=>tr,(Be,dt)=>{dt(Be,{get open(){return o(P)},set open(ne){v(P,ne,!0)},children:(ne,nt)=>{var at=Oo(),ht=p(at);Y(ht,()=>Xt,(_e,st)=>{st(_e,{children:(ot,je)=>{var fe=Fo(),Ue=k(fe),bt=k(Ue,!0);C(Ue);var pt=U(Ue,2),zt=k(pt,!0);C(pt),C(fe),se((qt,Jt)=>{xt(fe,1,`h-9 px-3 text-sm border rounded-md text-left hover:bg-muted/50 transition-colors flex items-center gap-2 ${o(P)?"ring-2 ring-ring":""}`),le(bt,qt),le(zt,Jt)},[()=>be(o(I)),()=>de(o(I))]),h(ot,fe)},$$slots:{default:!0}})});var ft=U(ht,2);Y(ft,()=>er,(_e,st)=>{st(_e,{class:"w-auto p-0",align:"start",children:(ot,je)=>{nn(ot,{get value(){return o(I)},onValueChange:Ce})},$$slots:{default:!0}})}),h(ne,at)},$$slots:{default:!0}})}),C(rt);var ve=U(rt,2),ge=k(ve);Rr(ge,{size:"sm",onclick:V,children:(Be,dt)=>{kt();var ne=lt("Apply");h(Be,ne)},$$slots:{default:!0}}),C(ve),C(Ie),h(We,Ie)};G(ct,We=>{o(y)&&We(ut)})}C(De),se(()=>xt(ke,1,`w-full px-3 py-1.5 text-left text-sm hover:bg-muted/50 flex items-center justify-between transition-colors ${o(y)?"bg-muted":""}`)),h(xe,De)},$$slots:{default:!0}})}),h(K,Z)},$$slots:{default:!0}})}),h(t,Re),R()}an(["click"]);const Vn={"5m":5,"30m":30,"60m":60,"3h":180,"6h":360,"12h":720,"24h":1440,"3d":4320,"7d":10080,"1M":43200,"3M":129600};function Yo(t,e){const r=Vn[t]||360,n=Bt(e);return{from:n.minus({minutes:r}).toJSDate(),to:n.toJSDate()}}function ei(t,e){const r=hn.fromJSDate(t).setZone(e);return new Me(r.year,r.month,r.day)}function ti(t,e){const r=hn.fromJSDate(t).setZone(e);return`${String(r.hour).padStart(2,"0")}:${String(r.minute).padStart(2,"0")}`}function ri(t,e="24h"){const r=new URLSearchParams(window.location.search),n=r.get("preset"),a=r.get("from"),s=r.get("to");if(n&&Vn[n])return{preset:n,from:null,to:null};if(a&&s){const i=Zr(a,t),c=Zr(s,t);if(i.isValid&&c.isValid)return{preset:null,from:i.toJSDate(),to:c.toJSDate()}}return{preset:e,from:null,to:null}}function ni(t,e){return t.preset?Yo(t.preset,e):{from:t.from,to:t.to}}function ai(t,e={}){const{pushToHistory:r=!1}=e,n=new URLSearchParams;for(const[s,i]of Object.entries(t))i!=null&&i!==""&&n.set(s,i);const a=`${window.location.pathname}?${n.toString()}`;ea(a,{replaceState:!r,noScroll:!0,keepFocus:!0})}export{Me as $,Ls as C,Xo as T,ti as a,Yo as b,Vn as c,ei as d,Yn as e,ni as g,ri as p,ai as u};
diff --git a/backend/static/frontend/_app/immutable/chunks/xqPrLpfy.js.map b/backend/static/frontend/_app/immutable/chunks/DjEjtFrE.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/xqPrLpfy.js.map
rename to backend/static/frontend/_app/immutable/chunks/DjEjtFrE.js.map
index 73869dfa..5740ca75 100644
--- a/backend/static/frontend/_app/immutable/chunks/xqPrLpfy.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/DjEjtFrE.js.map
@@ -1 +1 @@
-{"version":3,"file":"xqPrLpfy.js","sources":["../../../../../../node_modules/@internationalized/date/dist/utils.mjs","../../../../../../node_modules/@internationalized/date/dist/GregorianCalendar.mjs","../../../../../../node_modules/@internationalized/date/dist/weekStartData.mjs","../../../../../../node_modules/@internationalized/date/dist/queries.mjs","../../../../../../node_modules/@internationalized/date/dist/conversion.mjs","../../../../../../node_modules/@internationalized/date/dist/manipulation.mjs","../../../../../../node_modules/@internationalized/date/dist/string.mjs","../../../../../../node_modules/@swc/helpers/esm/_check_private_redeclaration.js","../../../../../../node_modules/@swc/helpers/esm/_class_private_field_init.js","../../../../../../node_modules/@internationalized/date/dist/CalendarDate.mjs","../../../../../../node_modules/@internationalized/date/dist/DateFormatter.mjs","../../../../../../node_modules/bits-ui/dist/internal/date-time/announcer.js","../../../../../../node_modules/bits-ui/dist/internal/date-time/utils.js","../../../../../../node_modules/bits-ui/dist/internal/date-time/formatter.js","../../../../../../node_modules/bits-ui/dist/internal/date-time/calendar-helpers.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/calendar/calendar.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-day.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-grid.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-grid-body.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-cell.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-grid-head.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-head-cell.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-grid-row.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-header.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-month-select.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-next-button.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-prev-button.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-year-select.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/chevron-left.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/chevron-right.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/clock.svelte","../../../../../../src/lib/components/ui/calendar/calendar.svelte","../../../../../../src/lib/components/ui/calendar/calendar-cell.svelte","../../../../../../src/lib/components/ui/calendar/calendar-day.svelte","../../../../../../src/lib/components/ui/calendar/calendar-grid.svelte","../../../../../../src/lib/components/ui/calendar/calendar-header.svelte","../../../../../../src/lib/components/ui/calendar/calendar-months.svelte","../../../../../../src/lib/components/ui/calendar/calendar-grid-row.svelte","../../../../../../src/lib/components/ui/calendar/calendar-grid-body.svelte","../../../../../../src/lib/components/ui/calendar/calendar-grid-head.svelte","../../../../../../src/lib/components/ui/calendar/calendar-head-cell.svelte","../../../../../../src/lib/components/ui/calendar/calendar-next-button.svelte","../../../../../../src/lib/components/ui/calendar/calendar-prev-button.svelte","../../../../../../src/lib/components/ui/calendar/calendar-month-select.svelte","../../../../../../src/lib/components/ui/calendar/calendar-year-select.svelte","../../../../../../src/lib/components/ui/calendar/calendar-month.svelte","../../../../../../src/lib/components/ui/calendar/calendar-nav.svelte","../../../../../../src/lib/components/ui/calendar/calendar-caption.svelte","../../../../../../src/lib/components/ui/datetime-picker/datetime-picker.svelte","../../../../../../src/lib/components/ui/time-range-picker/time-range-picker.svelte","../../../../../../src/lib/utils/url-params.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {\n return amount - numerator * Math.floor(amount / numerator);\n}\n\n\nexport {$2b4dce13dd5a17fa$export$842a2cf37af977e1 as mod};\n//# sourceMappingURL=utils.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from \"./CalendarDate.mjs\";\nimport {mod as $2b4dce13dd5a17fa$export$842a2cf37af977e1} from \"./utils.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\nconst $3b62074eb05584b2$var$EPOCH = 1721426; // 001/01/03 Julian C.E.\nfunction $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {\n year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);\n let y1 = year - 1;\n let monthOffset = -2;\n if (month <= 2) monthOffset = 0;\n else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;\n return $3b62074eb05584b2$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);\n}\nfunction $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\nfunction $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year) {\n return era === 'BC' ? 1 - year : year;\n}\nfunction $3b62074eb05584b2$export$4475b7e617eb123c(year) {\n let era = 'AD';\n if (year <= 0) {\n era = 'BC';\n year = 1 - year;\n }\n return [\n era,\n year\n ];\n}\nconst $3b62074eb05584b2$var$daysInMonth = {\n standard: [\n 31,\n 28,\n 31,\n 30,\n 31,\n 30,\n 31,\n 31,\n 30,\n 31,\n 30,\n 31\n ],\n leapyear: [\n 31,\n 29,\n 31,\n 30,\n 31,\n 30,\n 31,\n 31,\n 30,\n 31,\n 30,\n 31\n ]\n};\nclass $3b62074eb05584b2$export$80ee6245ec4f29ec {\n fromJulianDay(jd) {\n let jd0 = jd;\n let depoch = jd0 - $3b62074eb05584b2$var$EPOCH;\n let quadricent = Math.floor(depoch / 146097);\n let dqc = (0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(depoch, 146097);\n let cent = Math.floor(dqc / 36524);\n let dcent = (0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(dqc, 36524);\n let quad = Math.floor(dcent / 1461);\n let dquad = (0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(dcent, 1461);\n let yindex = Math.floor(dquad / 365);\n let extendedYear = quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0);\n let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);\n let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);\n let leapAdj = 2;\n if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;\n else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;\n let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);\n let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;\n return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(era, year, month, day);\n }\n toJulianDay(date) {\n return $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, date.month, date.day);\n }\n getDaysInMonth(date) {\n return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 'leapyear' : 'standard'][date.month - 1];\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n getMonthsInYear(date) {\n return 12;\n }\n getDaysInYear(date) {\n return $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 366 : 365;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n getYearsInEra(date) {\n return 9999;\n }\n getEras() {\n return [\n 'BC',\n 'AD'\n ];\n }\n isInverseEra(date) {\n return date.era === 'BC';\n }\n balanceDate(date) {\n if (date.year <= 0) {\n date.era = date.era === 'BC' ? 'AD' : 'BC';\n date.year = 1 - date.year;\n }\n }\n constructor(){\n this.identifier = 'gregory';\n }\n}\n\n\nexport {$3b62074eb05584b2$export$f297eb839006d339 as gregorianToJulianDay, $3b62074eb05584b2$export$c36e0ecb2d4fa69d as getExtendedYear, $3b62074eb05584b2$export$553d7fa8e3805fc0 as isLeapYear, $3b62074eb05584b2$export$4475b7e617eb123c as fromExtendedYear, $3b62074eb05584b2$export$80ee6245ec4f29ec as GregorianCalendar};\n//# sourceMappingURL=GregorianCalendar.module.js.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Data from https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/weekData.json\n// Locales starting on Sunday have been removed for compression.\nconst $2fe286d2fb449abb$export$7a5acbd77d414bd9 = {\n '001': 1,\n AD: 1,\n AE: 6,\n AF: 6,\n AI: 1,\n AL: 1,\n AM: 1,\n AN: 1,\n AR: 1,\n AT: 1,\n AU: 1,\n AX: 1,\n AZ: 1,\n BA: 1,\n BE: 1,\n BG: 1,\n BH: 6,\n BM: 1,\n BN: 1,\n BY: 1,\n CH: 1,\n CL: 1,\n CM: 1,\n CN: 1,\n CR: 1,\n CY: 1,\n CZ: 1,\n DE: 1,\n DJ: 6,\n DK: 1,\n DZ: 6,\n EC: 1,\n EE: 1,\n EG: 6,\n ES: 1,\n FI: 1,\n FJ: 1,\n FO: 1,\n FR: 1,\n GB: 1,\n GE: 1,\n GF: 1,\n GP: 1,\n GR: 1,\n HR: 1,\n HU: 1,\n IE: 1,\n IQ: 6,\n IR: 6,\n IS: 1,\n IT: 1,\n JO: 6,\n KG: 1,\n KW: 6,\n KZ: 1,\n LB: 1,\n LI: 1,\n LK: 1,\n LT: 1,\n LU: 1,\n LV: 1,\n LY: 6,\n MC: 1,\n MD: 1,\n ME: 1,\n MK: 1,\n MN: 1,\n MQ: 1,\n MV: 5,\n MY: 1,\n NL: 1,\n NO: 1,\n NZ: 1,\n OM: 6,\n PL: 1,\n QA: 6,\n RE: 1,\n RO: 1,\n RS: 1,\n RU: 1,\n SD: 6,\n SE: 1,\n SI: 1,\n SK: 1,\n SM: 1,\n SY: 6,\n TJ: 1,\n TM: 1,\n TR: 1,\n UA: 1,\n UY: 1,\n UZ: 1,\n VA: 1,\n VN: 1,\n XK: 1\n};\n\n\nexport {$2fe286d2fb449abb$export$7a5acbd77d414bd9 as weekStartData};\n//# sourceMappingURL=weekStartData.module.js.map\n","import {fromAbsolute as $11d87f3f76e88657$export$1b96692a1ba042ac, toAbsolute as $11d87f3f76e88657$export$5107c82f94518f5c, toCalendar as $11d87f3f76e88657$export$b4a036af3fc0b032, toCalendarDate as $11d87f3f76e88657$export$93522d1a439f3617} from \"./conversion.mjs\";\nimport {weekStartData as $2fe286d2fb449abb$export$7a5acbd77d414bd9} from \"./weekStartData.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b) {\n b = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(b, a.calendar);\n return a.era === b.era && a.year === b.year && a.month === b.month && a.day === b.day;\n}\nfunction $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b) {\n b = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(b, a.calendar);\n // In the Japanese calendar, months can span multiple eras/years, so only compare the first of the month.\n a = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(a);\n b = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(b);\n return a.era === b.era && a.year === b.year && a.month === b.month;\n}\nfunction $14e0f24ef4ac5c92$export$5841f9eb9773f25f(a, b) {\n b = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(b, a.calendar);\n a = $14e0f24ef4ac5c92$export$f91e89d3d0406102(a);\n b = $14e0f24ef4ac5c92$export$f91e89d3d0406102(b);\n return a.era === b.era && a.year === b.year;\n}\nfunction $14e0f24ef4ac5c92$export$91b62ebf2ba703ee(a, b) {\n return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b);\n}\nfunction $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2(a, b) {\n return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b);\n}\nfunction $14e0f24ef4ac5c92$export$ea840f5a6dda8147(a, b) {\n return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$5841f9eb9773f25f(a, b);\n}\nfunction $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a, b) {\n var _a_isEqual, _b_isEqual;\n var _a_isEqual1, _ref;\n return (_ref = (_a_isEqual1 = (_a_isEqual = a.isEqual) === null || _a_isEqual === void 0 ? void 0 : _a_isEqual.call(a, b)) !== null && _a_isEqual1 !== void 0 ? _a_isEqual1 : (_b_isEqual = b.isEqual) === null || _b_isEqual === void 0 ? void 0 : _b_isEqual.call(b, a)) !== null && _ref !== void 0 ? _ref : a.identifier === b.identifier;\n}\nfunction $14e0f24ef4ac5c92$export$629b0a497aa65267(date, timeZone) {\n return $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone));\n}\nconst $14e0f24ef4ac5c92$var$DAY_MAP = {\n sun: 0,\n mon: 1,\n tue: 2,\n wed: 3,\n thu: 4,\n fri: 5,\n sat: 6\n};\nfunction $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, firstDayOfWeek) {\n let julian = date.calendar.toJulianDay(date);\n // If julian is negative, then julian % 7 will be negative, so we adjust\n // accordingly. Julian day 0 is Monday.\n let weekStart = firstDayOfWeek ? $14e0f24ef4ac5c92$var$DAY_MAP[firstDayOfWeek] : $14e0f24ef4ac5c92$var$getWeekStart(locale);\n let dayOfWeek = Math.ceil(julian + 1 - weekStart) % 7;\n if (dayOfWeek < 0) dayOfWeek += 7;\n return dayOfWeek;\n}\nfunction $14e0f24ef4ac5c92$export$461939dd4422153(timeZone) {\n return (0, $11d87f3f76e88657$export$1b96692a1ba042ac)(Date.now(), timeZone);\n}\nfunction $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone) {\n return (0, $11d87f3f76e88657$export$93522d1a439f3617)($14e0f24ef4ac5c92$export$461939dd4422153(timeZone));\n}\nfunction $14e0f24ef4ac5c92$export$68781ddf31c0090f(a, b) {\n return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);\n}\nfunction $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a, b) {\n return $14e0f24ef4ac5c92$var$timeToMs(a) - $14e0f24ef4ac5c92$var$timeToMs(b);\n}\nfunction $14e0f24ef4ac5c92$var$timeToMs(a) {\n return a.hour * 3600000 + a.minute * 60000 + a.second * 1000 + a.millisecond;\n}\nfunction $14e0f24ef4ac5c92$export$126c91c941de7e(a, timeZone) {\n let ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(a, timeZone);\n let tomorrow = a.add({\n days: 1\n });\n let tomorrowMs = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(tomorrow, timeZone);\n return (tomorrowMs - ms) / 3600000;\n}\nlet $14e0f24ef4ac5c92$var$localTimeZone = null;\nfunction $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {\n if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;\n return $14e0f24ef4ac5c92$var$localTimeZone;\n}\nfunction $14e0f24ef4ac5c92$export$61a9d83ceb59a3dd(timeZone) {\n $14e0f24ef4ac5c92$var$localTimeZone = timeZone;\n}\nfunction $14e0f24ef4ac5c92$export$55753838ffe79333() {\n $14e0f24ef4ac5c92$var$localTimeZone = null;\n}\nfunction $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date) {\n // Use `subtract` instead of `set` so we don't get constrained in an era.\n return date.subtract({\n days: date.day - 1\n });\n}\nfunction $14e0f24ef4ac5c92$export$a2258d9c4118825c(date) {\n return date.add({\n days: date.calendar.getDaysInMonth(date) - date.day\n });\n}\nfunction $14e0f24ef4ac5c92$export$f91e89d3d0406102(date) {\n return $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date.subtract({\n months: date.month - 1\n }));\n}\nfunction $14e0f24ef4ac5c92$export$8b7aa55c66d5569e(date) {\n return $14e0f24ef4ac5c92$export$a2258d9c4118825c(date.add({\n months: date.calendar.getMonthsInYear(date) - date.month\n }));\n}\nfunction $14e0f24ef4ac5c92$export$5412ac11713b72ad(date) {\n if (date.calendar.getMinimumMonthInYear) return date.calendar.getMinimumMonthInYear(date);\n return 1;\n}\nfunction $14e0f24ef4ac5c92$export$b2f4953d301981d5(date) {\n if (date.calendar.getMinimumDayInMonth) return date.calendar.getMinimumDayInMonth(date);\n return 1;\n}\nfunction $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(date, locale, firstDayOfWeek) {\n let dayOfWeek = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, firstDayOfWeek);\n return date.subtract({\n days: dayOfWeek\n });\n}\nfunction $14e0f24ef4ac5c92$export$ef8b6d9133084f4e(date, locale, firstDayOfWeek) {\n return $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(date, locale, firstDayOfWeek).add({\n days: 6\n });\n}\nconst $14e0f24ef4ac5c92$var$cachedRegions = new Map();\nconst $14e0f24ef4ac5c92$var$cachedWeekInfo = new Map();\nfunction $14e0f24ef4ac5c92$var$getRegion(locale) {\n // If the Intl.Locale API is available, use it to get the region for the locale.\n // @ts-ignore\n if (Intl.Locale) {\n // Constructing an Intl.Locale is expensive, so cache the result.\n let region = $14e0f24ef4ac5c92$var$cachedRegions.get(locale);\n if (!region) {\n // @ts-ignore\n region = new Intl.Locale(locale).maximize().region;\n if (region) $14e0f24ef4ac5c92$var$cachedRegions.set(locale, region);\n }\n return region;\n }\n // If not, just try splitting the string.\n // If the second part of the locale string is 'u',\n // then this is a unicode extension, so ignore it.\n // Otherwise, it should be the region.\n let part = locale.split('-')[1];\n return part === 'u' ? undefined : part;\n}\nfunction $14e0f24ef4ac5c92$var$getWeekStart(locale) {\n // TODO: use Intl.Locale for this once browsers support the weekInfo property\n // https://github.com/tc39/proposal-intl-locale-info\n let weekInfo = $14e0f24ef4ac5c92$var$cachedWeekInfo.get(locale);\n if (!weekInfo) {\n if (Intl.Locale) {\n // @ts-ignore\n let localeInst = new Intl.Locale(locale);\n if ('getWeekInfo' in localeInst) {\n // @ts-expect-error\n weekInfo = localeInst.getWeekInfo();\n if (weekInfo) {\n $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);\n return weekInfo.firstDay;\n }\n }\n }\n let region = $14e0f24ef4ac5c92$var$getRegion(locale);\n if (locale.includes('-fw-')) {\n // pull the value for the attribute fw from strings such as en-US-u-ca-iso8601-fw-tue or en-US-u-ca-iso8601-fw-mon-nu-thai\n // where the fw attribute could be followed by another unicode locale extension or not\n let day = locale.split('-fw-')[1].split('-')[0];\n if (day === 'mon') weekInfo = {\n firstDay: 1\n };\n else if (day === 'tue') weekInfo = {\n firstDay: 2\n };\n else if (day === 'wed') weekInfo = {\n firstDay: 3\n };\n else if (day === 'thu') weekInfo = {\n firstDay: 4\n };\n else if (day === 'fri') weekInfo = {\n firstDay: 5\n };\n else if (day === 'sat') weekInfo = {\n firstDay: 6\n };\n else weekInfo = {\n firstDay: 0\n };\n } else if (locale.includes('-ca-iso8601')) weekInfo = {\n firstDay: 1\n };\n else weekInfo = {\n firstDay: region ? (0, $2fe286d2fb449abb$export$7a5acbd77d414bd9)[region] || 0 : 0\n };\n $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);\n }\n return weekInfo.firstDay;\n}\nfunction $14e0f24ef4ac5c92$export$ccc1b2479e7dd654(date, locale, firstDayOfWeek) {\n let days = date.calendar.getDaysInMonth(date);\n return Math.ceil(($14e0f24ef4ac5c92$export$2061056d06d7cdf7($14e0f24ef4ac5c92$export$a5a3b454ada2268e(date), locale, firstDayOfWeek) + days) / 7);\n}\nfunction $14e0f24ef4ac5c92$export$5c333a116e949cdd(a, b) {\n if (a && b) return a.compare(b) <= 0 ? a : b;\n return a || b;\n}\nfunction $14e0f24ef4ac5c92$export$a75f2bff57811055(a, b) {\n if (a && b) return a.compare(b) >= 0 ? a : b;\n return a || b;\n}\nconst $14e0f24ef4ac5c92$var$WEEKEND_DATA = {\n AF: [\n 4,\n 5\n ],\n AE: [\n 5,\n 6\n ],\n BH: [\n 5,\n 6\n ],\n DZ: [\n 5,\n 6\n ],\n EG: [\n 5,\n 6\n ],\n IL: [\n 5,\n 6\n ],\n IQ: [\n 5,\n 6\n ],\n IR: [\n 5,\n 5\n ],\n JO: [\n 5,\n 6\n ],\n KW: [\n 5,\n 6\n ],\n LY: [\n 5,\n 6\n ],\n OM: [\n 5,\n 6\n ],\n QA: [\n 5,\n 6\n ],\n SA: [\n 5,\n 6\n ],\n SD: [\n 5,\n 6\n ],\n SY: [\n 5,\n 6\n ],\n YE: [\n 5,\n 6\n ]\n};\nfunction $14e0f24ef4ac5c92$export$618d60ea299da42(date, locale) {\n let julian = date.calendar.toJulianDay(date);\n // If julian is negative, then julian % 7 will be negative, so we adjust\n // accordingly. Julian day 0 is Monday.\n let dayOfWeek = Math.ceil(julian + 1) % 7;\n if (dayOfWeek < 0) dayOfWeek += 7;\n let region = $14e0f24ef4ac5c92$var$getRegion(locale);\n // Use Intl.Locale for this once weekInfo is supported.\n // https://github.com/tc39/proposal-intl-locale-info\n let [start, end] = $14e0f24ef4ac5c92$var$WEEKEND_DATA[region] || [\n 6,\n 0\n ];\n return dayOfWeek === start || dayOfWeek === end;\n}\nfunction $14e0f24ef4ac5c92$export$ee9d87258e1d19ed(date, locale) {\n return !$14e0f24ef4ac5c92$export$618d60ea299da42(date, locale);\n}\n\n\nexport {$14e0f24ef4ac5c92$export$ea39ec197993aef0 as isSameDay, $14e0f24ef4ac5c92$export$a18c89cbd24170ff as isSameMonth, $14e0f24ef4ac5c92$export$a5a3b454ada2268e as startOfMonth, $14e0f24ef4ac5c92$export$5841f9eb9773f25f as isSameYear, $14e0f24ef4ac5c92$export$f91e89d3d0406102 as startOfYear, $14e0f24ef4ac5c92$export$91b62ebf2ba703ee as isEqualDay, $14e0f24ef4ac5c92$export$dbc69fd56b53d5e as isEqualCalendar, $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2 as isEqualMonth, $14e0f24ef4ac5c92$export$ea840f5a6dda8147 as isEqualYear, $14e0f24ef4ac5c92$export$629b0a497aa65267 as isToday, $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3 as today, $14e0f24ef4ac5c92$export$2061056d06d7cdf7 as getDayOfWeek, $14e0f24ef4ac5c92$export$461939dd4422153 as now, $14e0f24ef4ac5c92$export$68781ddf31c0090f as compareDate, $14e0f24ef4ac5c92$export$c19a80a9721b80f6 as compareTime, $14e0f24ef4ac5c92$export$126c91c941de7e as getHoursInDay, $14e0f24ef4ac5c92$export$aa8b41735afcabd2 as getLocalTimeZone, $14e0f24ef4ac5c92$export$61a9d83ceb59a3dd as setLocalTimeZone, $14e0f24ef4ac5c92$export$55753838ffe79333 as resetLocalTimeZone, $14e0f24ef4ac5c92$export$a2258d9c4118825c as endOfMonth, $14e0f24ef4ac5c92$export$8b7aa55c66d5569e as endOfYear, $14e0f24ef4ac5c92$export$5412ac11713b72ad as getMinimumMonthInYear, $14e0f24ef4ac5c92$export$b2f4953d301981d5 as getMinimumDayInMonth, $14e0f24ef4ac5c92$export$42c81a444fbfb5d4 as startOfWeek, $14e0f24ef4ac5c92$export$ef8b6d9133084f4e as endOfWeek, $14e0f24ef4ac5c92$export$ccc1b2479e7dd654 as getWeeksInMonth, $14e0f24ef4ac5c92$export$5c333a116e949cdd as minDate, $14e0f24ef4ac5c92$export$a75f2bff57811055 as maxDate, $14e0f24ef4ac5c92$export$618d60ea299da42 as isWeekend, $14e0f24ef4ac5c92$export$ee9d87258e1d19ed as isWeekday};\n//# sourceMappingURL=queries.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f, CalendarDateTime as $35ea8db9cb2ccb90$export$ca871e8dbb80966f, Time as $35ea8db9cb2ccb90$export$680ea196effce5f, ZonedDateTime as $35ea8db9cb2ccb90$export$d3b7288e7994edea} from \"./CalendarDate.mjs\";\nimport {constrain as $735220c2d4774dd3$export$c4e2ecac49351ef2} from \"./manipulation.mjs\";\nimport {getExtendedYear as $3b62074eb05584b2$export$c36e0ecb2d4fa69d, GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\nimport {getLocalTimeZone as $14e0f24ef4ac5c92$export$aa8b41735afcabd2, isEqualCalendar as $14e0f24ef4ac5c92$export$dbc69fd56b53d5e} from \"./queries.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from the TC39 Temporal proposal.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\n\n\nfunction $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {\n date = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n let year = (0, $3b62074eb05584b2$export$c36e0ecb2d4fa69d)(date.era, date.year);\n return $11d87f3f76e88657$var$epochFromParts(year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);\n}\nfunction $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {\n // Note: Date.UTC() interprets one and two-digit years as being in the\n // 20th century, so don't use it\n let date = new Date();\n date.setUTCHours(hour, minute, second, millisecond);\n date.setUTCFullYear(year, month - 1, day);\n return date.getTime();\n}\nfunction $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {\n // Fast path for UTC.\n if (timeZone === 'UTC') return 0;\n // Fast path: for local timezone after 1970, use native Date.\n if (ms > 0 && timeZone === (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)()) return new Date(ms).getTimezoneOffset() * -60000;\n let { year: year, month: month, day: day, hour: hour, minute: minute, second: second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);\n let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);\n return utc - Math.floor(ms / 1000) * 1000;\n}\nconst $11d87f3f76e88657$var$formattersByTimeZone = new Map();\nfunction $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {\n let formatter = $11d87f3f76e88657$var$formattersByTimeZone.get(timeZone);\n if (!formatter) {\n formatter = new Intl.DateTimeFormat('en-US', {\n timeZone: timeZone,\n hour12: false,\n era: 'short',\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n second: 'numeric'\n });\n $11d87f3f76e88657$var$formattersByTimeZone.set(timeZone, formatter);\n }\n let parts = formatter.formatToParts(new Date(ms));\n let namedParts = {};\n for (let part of parts)if (part.type !== 'literal') namedParts[part.type] = part.value;\n return {\n // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253\n year: namedParts.era === 'BC' || namedParts.era === 'B' ? -namedParts.year + 1 : +namedParts.year,\n month: +namedParts.month,\n day: +namedParts.day,\n hour: namedParts.hour === '24' ? 0 : +namedParts.hour,\n minute: +namedParts.minute,\n second: +namedParts.second\n };\n}\nconst $11d87f3f76e88657$var$DAYMILLIS = 86400000;\nfunction $11d87f3f76e88657$export$136f38efe7caf549(date, timeZone) {\n let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date);\n let earlier = ms - $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n let later = ms - $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n return $11d87f3f76e88657$var$getValidWallTimes(date, timeZone, earlier, later);\n}\nfunction $11d87f3f76e88657$var$getValidWallTimes(date, timeZone, earlier, later) {\n let found = earlier === later ? [\n earlier\n ] : [\n earlier,\n later\n ];\n return found.filter((absolute)=>$11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute));\n}\nfunction $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {\n let parts = $11d87f3f76e88657$var$getTimeZoneParts(absolute, timeZone);\n return date.year === parts.year && date.month === parts.month && date.day === parts.day && date.hour === parts.hour && date.minute === parts.minute && date.second === parts.second;\n}\nfunction $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = 'compatible') {\n let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);\n // Fast path: if the time zone is UTC, use native Date.\n if (timeZone === 'UTC') return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);\n // Fast path: if the time zone is the local timezone and disambiguation is compatible, use native Date.\n if (timeZone === (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)() && disambiguation === 'compatible') {\n dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n // Don't use Date constructor here because two-digit years are interpreted in the 20th century.\n let date = new Date();\n let year = (0, $3b62074eb05584b2$export$c36e0ecb2d4fa69d)(dateTime.era, dateTime.year);\n date.setFullYear(year, dateTime.month - 1, dateTime.day);\n date.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);\n return date.getTime();\n }\n let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);\n let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);\n if (valid.length === 1) return valid[0];\n if (valid.length > 1) switch(disambiguation){\n // 'compatible' means 'earlier' for \"fall back\" transitions\n case 'compatible':\n case 'earlier':\n return valid[0];\n case 'later':\n return valid[valid.length - 1];\n case 'reject':\n throw new RangeError('Multiple possible absolute times found');\n }\n switch(disambiguation){\n case 'earlier':\n return Math.min(ms - offsetBefore, ms - offsetAfter);\n // 'compatible' means 'later' for \"spring forward\" transitions\n case 'compatible':\n case 'later':\n return Math.max(ms - offsetBefore, ms - offsetAfter);\n case 'reject':\n throw new RangeError('No such absolute time found');\n }\n}\nfunction $11d87f3f76e88657$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = 'compatible') {\n return new Date($11d87f3f76e88657$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));\n}\nfunction $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone) {\n let offset = $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone);\n let date = new Date(ms + offset);\n let year = date.getUTCFullYear();\n let month = date.getUTCMonth() + 1;\n let day = date.getUTCDate();\n let hour = date.getUTCHours();\n let minute = date.getUTCMinutes();\n let second = date.getUTCSeconds();\n let millisecond = date.getUTCMilliseconds();\n return new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(year < 1 ? 'BC' : 'AD', year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);\n}\nfunction $11d87f3f76e88657$export$e57ff100d91bd4b9(date, timeZone) {\n return $11d87f3f76e88657$export$1b96692a1ba042ac(date.getTime(), timeZone);\n}\nfunction $11d87f3f76e88657$export$d7f92bcd3596b086(date) {\n return $11d87f3f76e88657$export$e57ff100d91bd4b9(date, (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)());\n}\nfunction $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {\n return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);\n}\nfunction $11d87f3f76e88657$export$6f4d78149f3f53ac(date) {\n return {\n era: date.era,\n year: date.year,\n month: date.month,\n day: date.day\n };\n}\nfunction $11d87f3f76e88657$export$4d0393e732857be5(date) {\n return {\n hour: date.hour,\n minute: date.minute,\n second: date.second,\n millisecond: date.millisecond\n };\n}\nfunction $11d87f3f76e88657$export$b21e0b124e224484(date, time) {\n let hour = 0, minute = 0, second = 0, millisecond = 0;\n if ('timeZone' in date) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = date);\n else if ('hour' in date && !time) return date;\n if (time) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = time);\n return new (0, $35ea8db9cb2ccb90$export$ca871e8dbb80966f)(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);\n}\nfunction $11d87f3f76e88657$export$d33f79e3ffc3dc83(dateTime) {\n return new (0, $35ea8db9cb2ccb90$export$680ea196effce5f)(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);\n}\nfunction $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {\n if ((0, $14e0f24ef4ac5c92$export$dbc69fd56b53d5e)(date.calendar, calendar)) return date;\n let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));\n let copy = date.copy();\n copy.calendar = calendar;\n copy.era = calendarDate.era;\n copy.year = calendarDate.year;\n copy.month = calendarDate.month;\n copy.day = calendarDate.day;\n (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(copy);\n return copy;\n}\nfunction $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {\n if (date instanceof (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)) {\n if (date.timeZone === timeZone) return date;\n return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);\n }\n let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);\n return $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone);\n}\nfunction $11d87f3f76e88657$export$83aac07b4c37b25(date) {\n let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;\n return new Date(ms);\n}\nfunction $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone) {\n let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;\n return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone), date.calendar);\n}\nfunction $11d87f3f76e88657$export$d9b67bc93c097491(date) {\n return $11d87f3f76e88657$export$538b00033cc11c75(date, (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)());\n}\n\n\nexport {$11d87f3f76e88657$export$bd4fb2bc8bb06fb as epochFromDate, $11d87f3f76e88657$export$b4a036af3fc0b032 as toCalendar, $11d87f3f76e88657$export$59c99f3515d3493f as getTimeZoneOffset, $11d87f3f76e88657$export$136f38efe7caf549 as possibleAbsolutes, $11d87f3f76e88657$export$5107c82f94518f5c as toAbsolute, $11d87f3f76e88657$export$b21e0b124e224484 as toCalendarDateTime, $11d87f3f76e88657$export$e67a095c620b86fe as toDate, $11d87f3f76e88657$export$1b96692a1ba042ac as fromAbsolute, $11d87f3f76e88657$export$e57ff100d91bd4b9 as fromDate, $11d87f3f76e88657$export$d7f92bcd3596b086 as fromDateToLocal, $11d87f3f76e88657$export$93522d1a439f3617 as toCalendarDate, $11d87f3f76e88657$export$6f4d78149f3f53ac as toDateFields, $11d87f3f76e88657$export$4d0393e732857be5 as toTimeFields, $11d87f3f76e88657$export$d33f79e3ffc3dc83 as toTime, $11d87f3f76e88657$export$84c95a83c799e074 as toZoned, $11d87f3f76e88657$export$538b00033cc11c75 as toTimeZone, $11d87f3f76e88657$export$83aac07b4c37b25 as zonedToDate, $11d87f3f76e88657$export$d9b67bc93c097491 as toLocalTimeZone};\n//# sourceMappingURL=conversion.module.js.map\n","import {epochFromDate as $11d87f3f76e88657$export$bd4fb2bc8bb06fb, fromAbsolute as $11d87f3f76e88657$export$1b96692a1ba042ac, toAbsolute as $11d87f3f76e88657$export$5107c82f94518f5c, toCalendar as $11d87f3f76e88657$export$b4a036af3fc0b032, toCalendarDateTime as $11d87f3f76e88657$export$b21e0b124e224484} from \"./conversion.mjs\";\nimport {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nconst $735220c2d4774dd3$var$ONE_HOUR = 3600000;\nfunction $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {\n let mutableDate = date.copy();\n let days = 'hour' in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;\n $735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);\n if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);\n mutableDate.month += duration.months || 0;\n $735220c2d4774dd3$var$balanceYearMonth(mutableDate);\n $735220c2d4774dd3$var$constrainMonthDay(mutableDate);\n mutableDate.day += (duration.weeks || 0) * 7;\n mutableDate.day += duration.days || 0;\n mutableDate.day += days;\n $735220c2d4774dd3$var$balanceDay(mutableDate);\n if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);\n // Constrain in case adding ended up with a date outside the valid range for the calendar system.\n // The behavior here is slightly different than when constraining in the `set` function in that\n // we adjust smaller fields to their minimum/maximum values rather than constraining each field\n // individually. This matches the general behavior of `add` vs `set` regarding how fields are balanced.\n if (mutableDate.year < 1) {\n mutableDate.year = 1;\n mutableDate.month = 1;\n mutableDate.day = 1;\n }\n let maxYear = mutableDate.calendar.getYearsInEra(mutableDate);\n if (mutableDate.year > maxYear) {\n var _mutableDate_calendar_isInverseEra, _mutableDate_calendar;\n let isInverseEra = (_mutableDate_calendar_isInverseEra = (_mutableDate_calendar = mutableDate.calendar).isInverseEra) === null || _mutableDate_calendar_isInverseEra === void 0 ? void 0 : _mutableDate_calendar_isInverseEra.call(_mutableDate_calendar, mutableDate);\n mutableDate.year = maxYear;\n mutableDate.month = isInverseEra ? 1 : mutableDate.calendar.getMonthsInYear(mutableDate);\n mutableDate.day = isInverseEra ? 1 : mutableDate.calendar.getDaysInMonth(mutableDate);\n }\n if (mutableDate.month < 1) {\n mutableDate.month = 1;\n mutableDate.day = 1;\n }\n let maxMonth = mutableDate.calendar.getMonthsInYear(mutableDate);\n if (mutableDate.month > maxMonth) {\n mutableDate.month = maxMonth;\n mutableDate.day = mutableDate.calendar.getDaysInMonth(mutableDate);\n }\n mutableDate.day = Math.max(1, Math.min(mutableDate.calendar.getDaysInMonth(mutableDate), mutableDate.day));\n return mutableDate;\n}\nfunction $735220c2d4774dd3$var$addYears(date, years) {\n var _date_calendar_isInverseEra, _date_calendar;\n if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date)) years = -years;\n date.year += years;\n}\nfunction $735220c2d4774dd3$var$balanceYearMonth(date) {\n while(date.month < 1){\n $735220c2d4774dd3$var$addYears(date, -1);\n date.month += date.calendar.getMonthsInYear(date);\n }\n let monthsInYear = 0;\n while(date.month > (monthsInYear = date.calendar.getMonthsInYear(date))){\n date.month -= monthsInYear;\n $735220c2d4774dd3$var$addYears(date, 1);\n }\n}\nfunction $735220c2d4774dd3$var$balanceDay(date) {\n while(date.day < 1){\n date.month--;\n $735220c2d4774dd3$var$balanceYearMonth(date);\n date.day += date.calendar.getDaysInMonth(date);\n }\n while(date.day > date.calendar.getDaysInMonth(date)){\n date.day -= date.calendar.getDaysInMonth(date);\n date.month++;\n $735220c2d4774dd3$var$balanceYearMonth(date);\n }\n}\nfunction $735220c2d4774dd3$var$constrainMonthDay(date) {\n date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));\n date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));\n}\nfunction $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {\n if (date.calendar.constrainDate) date.calendar.constrainDate(date);\n date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));\n $735220c2d4774dd3$var$constrainMonthDay(date);\n}\nfunction $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {\n let inverseDuration = {};\n for(let key in duration)if (typeof duration[key] === 'number') inverseDuration[key] = -duration[key];\n return inverseDuration;\n}\nfunction $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {\n return $735220c2d4774dd3$export$e16d8520af44a096(date, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));\n}\nfunction $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {\n let mutableDate = date.copy();\n if (fields.era != null) mutableDate.era = fields.era;\n if (fields.year != null) mutableDate.year = fields.year;\n if (fields.month != null) mutableDate.month = fields.month;\n if (fields.day != null) mutableDate.day = fields.day;\n $735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);\n return mutableDate;\n}\nfunction $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {\n let mutableValue = value.copy();\n if (fields.hour != null) mutableValue.hour = fields.hour;\n if (fields.minute != null) mutableValue.minute = fields.minute;\n if (fields.second != null) mutableValue.second = fields.second;\n if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;\n $735220c2d4774dd3$export$7555de1e070510cb(mutableValue);\n return mutableValue;\n}\nfunction $735220c2d4774dd3$var$balanceTime(time) {\n time.second += Math.floor(time.millisecond / 1000);\n time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1000);\n time.minute += Math.floor(time.second / 60);\n time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);\n time.hour += Math.floor(time.minute / 60);\n time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);\n let days = Math.floor(time.hour / 24);\n time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);\n return days;\n}\nfunction $735220c2d4774dd3$export$7555de1e070510cb(time) {\n time.millisecond = Math.max(0, Math.min(time.millisecond, 1000));\n time.second = Math.max(0, Math.min(time.second, 59));\n time.minute = Math.max(0, Math.min(time.minute, 59));\n time.hour = Math.max(0, Math.min(time.hour, 23));\n}\nfunction $735220c2d4774dd3$var$nonNegativeMod(a, b) {\n let result = a % b;\n if (result < 0) result += b;\n return result;\n}\nfunction $735220c2d4774dd3$var$addTimeFields(time, duration) {\n time.hour += duration.hours || 0;\n time.minute += duration.minutes || 0;\n time.second += duration.seconds || 0;\n time.millisecond += duration.milliseconds || 0;\n return $735220c2d4774dd3$var$balanceTime(time);\n}\nfunction $735220c2d4774dd3$export$7ed87b6bc2506470(time, duration) {\n let res = time.copy();\n $735220c2d4774dd3$var$addTimeFields(res, duration);\n return res;\n}\nfunction $735220c2d4774dd3$export$fe34d3a381cd7501(time, duration) {\n return $735220c2d4774dd3$export$7ed87b6bc2506470(time, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));\n}\nfunction $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options) {\n let mutable = value.copy();\n switch(field){\n case 'era':\n {\n let eras = value.calendar.getEras();\n let eraIndex = eras.indexOf(value.era);\n if (eraIndex < 0) throw new Error('Invalid era: ' + value.era);\n eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);\n mutable.era = eras[eraIndex];\n // Constrain the year and other fields within the era, so the era doesn't change when we balance below.\n $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);\n break;\n }\n case 'year':\n var _mutable_calendar_isInverseEra, _mutable_calendar;\n if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable)) amount = -amount;\n // The year field should not cycle within the era as that can cause weird behavior affecting other fields.\n // We need to also allow values < 1 so that decrementing goes to the previous era. If we get -Infinity back\n // we know we wrapped around after reaching 9999 (the maximum), so set the year back to 1.\n mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);\n if (mutable.year === -Infinity) mutable.year = 1;\n if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);\n break;\n case 'month':\n mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);\n break;\n case 'day':\n mutable.day = $735220c2d4774dd3$var$cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options === null || options === void 0 ? void 0 : options.round);\n break;\n default:\n throw new Error('Unsupported field ' + field);\n }\n if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);\n $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);\n return mutable;\n}\nfunction $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {\n let mutable = value.copy();\n switch(field){\n case 'hour':\n {\n let hours = value.hour;\n let min = 0;\n let max = 23;\n if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {\n let isPM = hours >= 12;\n min = isPM ? 12 : 0;\n max = isPM ? 23 : 11;\n }\n mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);\n break;\n }\n case 'minute':\n mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);\n break;\n case 'second':\n mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);\n break;\n case 'millisecond':\n mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);\n break;\n default:\n throw new Error('Unsupported field ' + field);\n }\n return mutable;\n}\nfunction $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {\n if (round) {\n value += Math.sign(amount);\n if (value < min) value = max;\n let div = Math.abs(amount);\n if (amount > 0) value = Math.ceil(value / div) * div;\n else value = Math.floor(value / div) * div;\n if (value > max) value = min;\n } else {\n value += amount;\n if (value < min) value = max - (min - value - 1);\n else if (value > max) value = min + (value - max - 1);\n }\n return value;\n}\nfunction $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {\n let ms;\n if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.weeks != null && duration.weeks !== 0 || duration.days != null && duration.days !== 0) {\n let res = $735220c2d4774dd3$export$e16d8520af44a096((0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime), {\n years: duration.years,\n months: duration.months,\n weeks: duration.weeks,\n days: duration.days\n });\n // Changing the date may change the timezone offset, so we need to recompute\n // using the 'compatible' disambiguation.\n ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone);\n } else // Otherwise, preserve the offset of the original date.\n ms = (0, $11d87f3f76e88657$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;\n // Perform time manipulation in milliseconds rather than on the original time fields to account for DST.\n // For example, adding one hour during a DST transition may result in the hour field staying the same or\n // skipping an hour. This results in the offset field changing value instead of the specified field.\n ms += duration.milliseconds || 0;\n ms += (duration.seconds || 0) * 1000;\n ms += (duration.minutes || 0) * 60000;\n ms += (duration.hours || 0) * 3600000;\n let res = (0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone);\n return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(res, dateTime.calendar);\n}\nfunction $735220c2d4774dd3$export$6814caac34ca03c7(dateTime, duration) {\n return $735220c2d4774dd3$export$96b1d28349274637(dateTime, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));\n}\nfunction $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, options) {\n // For date fields, we want the time to remain consistent and the UTC offset to potentially change to account for DST changes.\n // For time fields, we want the time to change by the amount given. This may result in the hour field staying the same, but the UTC\n // offset changing in the case of a backward DST transition, or skipping an hour in the case of a forward DST transition.\n switch(field){\n case 'hour':\n {\n let min = 0;\n let max = 23;\n if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {\n let isPM = dateTime.hour >= 12;\n min = isPM ? 12 : 0;\n max = isPM ? 23 : 11;\n }\n // The minimum and maximum hour may be affected by daylight saving time.\n // For example, it might jump forward at midnight, and skip 1am.\n // Or it might end at midnight and repeat the 11pm hour. To handle this, we get\n // the possible absolute times for the min and max, and find the maximum range\n // that is within the current day.\n let plainDateTime = (0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime);\n let minDate = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {\n hour: min\n }), new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n let minAbsolute = [\n (0, $11d87f3f76e88657$export$5107c82f94518f5c)(minDate, dateTime.timeZone, 'earlier'),\n (0, $11d87f3f76e88657$export$5107c82f94518f5c)(minDate, dateTime.timeZone, 'later')\n ].filter((ms)=>(0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone).day === minDate.day)[0];\n let maxDate = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {\n hour: max\n }), new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n let maxAbsolute = [\n (0, $11d87f3f76e88657$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, 'earlier'),\n (0, $11d87f3f76e88657$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, 'later')\n ].filter((ms)=>(0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone).day === maxDate.day).pop();\n // Since hours may repeat, we need to operate on the absolute time in milliseconds.\n // This is done in hours from the Unix epoch so that cycleValue works correctly,\n // and then converted back to milliseconds.\n let ms = (0, $11d87f3f76e88657$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;\n let hours = Math.floor(ms / $735220c2d4774dd3$var$ONE_HOUR);\n let remainder = ms % $735220c2d4774dd3$var$ONE_HOUR;\n ms = $735220c2d4774dd3$var$cycleValue(hours, amount, Math.floor(minAbsolute / $735220c2d4774dd3$var$ONE_HOUR), Math.floor(maxAbsolute / $735220c2d4774dd3$var$ONE_HOUR), options === null || options === void 0 ? void 0 : options.round) * $735220c2d4774dd3$var$ONE_HOUR + remainder;\n // Now compute the new timezone offset, and convert the absolute time back to local time.\n return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)((0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);\n }\n case 'minute':\n case 'second':\n case 'millisecond':\n // @ts-ignore\n return $735220c2d4774dd3$export$dd02b3e0007dfe28(dateTime, field, amount, options);\n case 'era':\n case 'year':\n case 'month':\n case 'day':\n {\n let res = $735220c2d4774dd3$export$d52ced6badfb9a4c((0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime), field, amount, options);\n let ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone);\n return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)((0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);\n }\n default:\n throw new Error('Unsupported field ' + field);\n }\n}\nfunction $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {\n // Set the date/time fields, and recompute the UTC offset to account for DST changes.\n // We also need to validate by converting back to a local time in case hours are skipped during forward DST transitions.\n let plainDateTime = (0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime);\n let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);\n // If the resulting plain date time values are equal, return the original time.\n // We don't want to change the offset when setting the time to the same value.\n if (res.compare(plainDateTime) === 0) return dateTime;\n let ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone, disambiguation);\n return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)((0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);\n}\n\n\nexport {$735220c2d4774dd3$export$e16d8520af44a096 as add, $735220c2d4774dd3$export$c4e2ecac49351ef2 as constrain, $735220c2d4774dd3$export$3e2544e88a25bff8 as invertDuration, $735220c2d4774dd3$export$4e2d2ead65e5f7e3 as subtract, $735220c2d4774dd3$export$adaa4cf7ef1b65be as set, $735220c2d4774dd3$export$e5d5e1c1822b6e56 as setTime, $735220c2d4774dd3$export$7555de1e070510cb as constrainTime, $735220c2d4774dd3$export$7ed87b6bc2506470 as addTime, $735220c2d4774dd3$export$fe34d3a381cd7501 as subtractTime, $735220c2d4774dd3$export$d52ced6badfb9a4c as cycleDate, $735220c2d4774dd3$export$dd02b3e0007dfe28 as cycleTime, $735220c2d4774dd3$export$96b1d28349274637 as addZoned, $735220c2d4774dd3$export$6814caac34ca03c7 as subtractZoned, $735220c2d4774dd3$export$9a297d111fc86b79 as cycleZoned, $735220c2d4774dd3$export$31b5430eb18be4f8 as setZoned};\n//# sourceMappingURL=manipulation.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f, CalendarDateTime as $35ea8db9cb2ccb90$export$ca871e8dbb80966f, Time as $35ea8db9cb2ccb90$export$680ea196effce5f, ZonedDateTime as $35ea8db9cb2ccb90$export$d3b7288e7994edea} from \"./CalendarDate.mjs\";\nimport {epochFromDate as $11d87f3f76e88657$export$bd4fb2bc8bb06fb, fromAbsolute as $11d87f3f76e88657$export$1b96692a1ba042ac, possibleAbsolutes as $11d87f3f76e88657$export$136f38efe7caf549, toAbsolute as $11d87f3f76e88657$export$5107c82f94518f5c, toCalendar as $11d87f3f76e88657$export$b4a036af3fc0b032, toCalendarDateTime as $11d87f3f76e88657$export$b21e0b124e224484, toTimeZone as $11d87f3f76e88657$export$538b00033cc11c75} from \"./conversion.mjs\";\nimport {getLocalTimeZone as $14e0f24ef4ac5c92$export$aa8b41735afcabd2} from \"./queries.mjs\";\nimport {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nconst $fae977aafc393c5c$var$TIME_RE = /^(\\d{2})(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?$/;\nconst $fae977aafc393c5c$var$DATE_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})$/;\nconst $fae977aafc393c5c$var$DATE_TIME_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})(?:T(\\d{2}))?(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?$/;\nconst $fae977aafc393c5c$var$ZONED_DATE_TIME_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})(?:T(\\d{2}))?(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?(?:([+-]\\d{2})(?::?(\\d{2}))?(?::?(\\d{2}))?)?\\[(.*?)\\]$/;\nconst $fae977aafc393c5c$var$ABSOLUTE_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})(?:T(\\d{2}))?(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?(?:(?:([+-]\\d{2})(?::?(\\d{2}))?)|Z)$/;\nconst $fae977aafc393c5c$var$DATE_TIME_DURATION_RE = /^((?<negative>-)|\\+)?P((?<years>\\d*)Y)?((?<months>\\d*)M)?((?<weeks>\\d*)W)?((?<days>\\d*)D)?((?<time>T)((?<hours>\\d*[.,]?\\d{1,9})H)?((?<minutes>\\d*[.,]?\\d{1,9})M)?((?<seconds>\\d*[.,]?\\d{1,9})S)?)?$/;\nconst $fae977aafc393c5c$var$requiredDurationTimeGroups = [\n 'hours',\n 'minutes',\n 'seconds'\n];\nconst $fae977aafc393c5c$var$requiredDurationGroups = [\n 'years',\n 'months',\n 'weeks',\n 'days',\n ...$fae977aafc393c5c$var$requiredDurationTimeGroups\n];\nfunction $fae977aafc393c5c$export$c9698ec7f05a07e1(value) {\n let m = value.match($fae977aafc393c5c$var$TIME_RE);\n if (!m) throw new Error('Invalid ISO 8601 time string: ' + value);\n return new (0, $35ea8db9cb2ccb90$export$680ea196effce5f)($fae977aafc393c5c$var$parseNumber(m[1], 0, 23), m[2] ? $fae977aafc393c5c$var$parseNumber(m[2], 0, 59) : 0, m[3] ? $fae977aafc393c5c$var$parseNumber(m[3], 0, 59) : 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, Infinity) * 1000 : 0);\n}\nfunction $fae977aafc393c5c$export$6b862160d295c8e(value) {\n let m = value.match($fae977aafc393c5c$var$DATE_RE);\n if (!m) {\n if ($fae977aafc393c5c$var$ABSOLUTE_RE.test(value)) throw new Error(`Invalid ISO 8601 date string: ${value}. Use parseAbsolute() instead.`);\n throw new Error('Invalid ISO 8601 date string: ' + value);\n }\n let date = new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)($fae977aafc393c5c$var$parseNumber(m[1], 0, 9999), $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1);\n date.day = $fae977aafc393c5c$var$parseNumber(m[3], 1, date.calendar.getDaysInMonth(date));\n return date;\n}\nfunction $fae977aafc393c5c$export$588937bcd60ade55(value) {\n let m = value.match($fae977aafc393c5c$var$DATE_TIME_RE);\n if (!m) {\n if ($fae977aafc393c5c$var$ABSOLUTE_RE.test(value)) throw new Error(`Invalid ISO 8601 date time string: ${value}. Use parseAbsolute() instead.`);\n throw new Error('Invalid ISO 8601 date time string: ' + value);\n }\n let year = $fae977aafc393c5c$var$parseNumber(m[1], -9999, 9999);\n let era = year < 1 ? 'BC' : 'AD';\n let date = new (0, $35ea8db9cb2ccb90$export$ca871e8dbb80966f)(era, year < 1 ? -year + 1 : year, $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);\n date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));\n return date;\n}\nfunction $fae977aafc393c5c$export$fd7893f06e92a6a4(value, disambiguation) {\n let m = value.match($fae977aafc393c5c$var$ZONED_DATE_TIME_RE);\n if (!m) throw new Error('Invalid ISO 8601 date time string: ' + value);\n let year = $fae977aafc393c5c$var$parseNumber(m[1], -9999, 9999);\n let era = year < 1 ? 'BC' : 'AD';\n let date = new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(era, year < 1 ? -year + 1 : year, $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, m[11], 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);\n date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));\n let plainDateTime = (0, $11d87f3f76e88657$export$b21e0b124e224484)(date);\n let ms;\n if (m[8]) {\n let hourOffset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23);\n var _m_, _m_1;\n date.offset = Math.sign(hourOffset) * (Math.abs(hourOffset) * 3600000 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : '0', 0, 59) * 60000 + $fae977aafc393c5c$var$parseNumber((_m_1 = m[10]) !== null && _m_1 !== void 0 ? _m_1 : '0', 0, 59) * 1000);\n ms = (0, $11d87f3f76e88657$export$bd4fb2bc8bb06fb)(date) - date.offset;\n // Validate offset against parsed date.\n let absolutes = (0, $11d87f3f76e88657$export$136f38efe7caf549)(plainDateTime, date.timeZone);\n if (!absolutes.includes(ms)) throw new Error(`Offset ${$fae977aafc393c5c$var$offsetToString(date.offset)} is invalid for ${$fae977aafc393c5c$export$4223de14708adc63(date)} in ${date.timeZone}`);\n } else // Convert to absolute and back to fix invalid times due to DST.\n ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)((0, $11d87f3f76e88657$export$b21e0b124e224484)(plainDateTime), date.timeZone, disambiguation);\n return (0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, date.timeZone);\n}\nfunction $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {\n let m = value.match($fae977aafc393c5c$var$ABSOLUTE_RE);\n if (!m) throw new Error('Invalid ISO 8601 date time string: ' + value);\n let year = $fae977aafc393c5c$var$parseNumber(m[1], -9999, 9999);\n let era = year < 1 ? 'BC' : 'AD';\n let date = new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(era, year < 1 ? -year + 1 : year, $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, timeZone, 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);\n date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));\n var _m_;\n if (m[8]) date.offset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23) * 3600000 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : '0', 0, 59) * 60000;\n return (0, $11d87f3f76e88657$export$538b00033cc11c75)(date, timeZone);\n}\nfunction $fae977aafc393c5c$export$8e384432362ed0f0(value) {\n return $fae977aafc393c5c$export$5adfdab05168c219(value, (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)());\n}\nfunction $fae977aafc393c5c$var$parseNumber(value, min, max) {\n let val = Number(value);\n if (val < min || val > max) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);\n return val;\n}\nfunction $fae977aafc393c5c$export$f59dee82248f5ad4(time) {\n return `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}:${String(time.second).padStart(2, '0')}${time.millisecond ? String(time.millisecond / 1000).slice(1) : ''}`;\n}\nfunction $fae977aafc393c5c$export$60dfd74aa96791bd(date) {\n let gregorianDate = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(date, new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n let year;\n if (gregorianDate.era === 'BC') year = gregorianDate.year === 1 ? '0000' : '-' + String(Math.abs(1 - gregorianDate.year)).padStart(6, '00');\n else year = String(gregorianDate.year).padStart(4, '0');\n return `${year}-${String(gregorianDate.month).padStart(2, '0')}-${String(gregorianDate.day).padStart(2, '0')}`;\n}\nfunction $fae977aafc393c5c$export$4223de14708adc63(date) {\n // @ts-ignore\n return `${$fae977aafc393c5c$export$60dfd74aa96791bd(date)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(date)}`;\n}\nfunction $fae977aafc393c5c$var$offsetToString(offset) {\n let sign = Math.sign(offset) < 0 ? '-' : '+';\n offset = Math.abs(offset);\n let offsetHours = Math.floor(offset / 3600000);\n let offsetMinutes = Math.floor(offset % 3600000 / 60000);\n let offsetSeconds = Math.floor(offset % 3600000 % 60000 / 1000);\n let stringOffset = `${sign}${String(offsetHours).padStart(2, '0')}:${String(offsetMinutes).padStart(2, '0')}`;\n if (offsetSeconds !== 0) stringOffset += `:${String(offsetSeconds).padStart(2, '0')}`;\n return stringOffset;\n}\nfunction $fae977aafc393c5c$export$bf79f1ebf4b18792(date) {\n return `${$fae977aafc393c5c$export$4223de14708adc63(date)}${$fae977aafc393c5c$var$offsetToString(date.offset)}[${date.timeZone}]`;\n}\nfunction $fae977aafc393c5c$export$ecae829bb3747ea6(value) {\n var _match_groups, _match_groups1, _match_groups2, _match_groups3, _match_groups4, _match_groups5, _match_groups6, _match_groups7, _match_groups8;\n const match = value.match($fae977aafc393c5c$var$DATE_TIME_DURATION_RE);\n if (!match) throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n const parseDurationGroup = (group, isNegative)=>{\n if (!group) return 0;\n try {\n const sign = isNegative ? -1 : 1;\n return sign * Number(group.replace(',', '.'));\n } catch {\n throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n }\n };\n const isNegative = !!((_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups.negative);\n const hasRequiredGroups = $fae977aafc393c5c$var$requiredDurationGroups.some((group)=>{\n var _match_groups;\n return (_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups[group];\n });\n if (!hasRequiredGroups) throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n const durationStringIncludesTime = (_match_groups1 = match.groups) === null || _match_groups1 === void 0 ? void 0 : _match_groups1.time;\n if (durationStringIncludesTime) {\n const hasRequiredDurationTimeGroups = $fae977aafc393c5c$var$requiredDurationTimeGroups.some((group)=>{\n var _match_groups;\n return (_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups[group];\n });\n if (!hasRequiredDurationTimeGroups) throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n }\n const duration = {\n years: parseDurationGroup((_match_groups2 = match.groups) === null || _match_groups2 === void 0 ? void 0 : _match_groups2.years, isNegative),\n months: parseDurationGroup((_match_groups3 = match.groups) === null || _match_groups3 === void 0 ? void 0 : _match_groups3.months, isNegative),\n weeks: parseDurationGroup((_match_groups4 = match.groups) === null || _match_groups4 === void 0 ? void 0 : _match_groups4.weeks, isNegative),\n days: parseDurationGroup((_match_groups5 = match.groups) === null || _match_groups5 === void 0 ? void 0 : _match_groups5.days, isNegative),\n hours: parseDurationGroup((_match_groups6 = match.groups) === null || _match_groups6 === void 0 ? void 0 : _match_groups6.hours, isNegative),\n minutes: parseDurationGroup((_match_groups7 = match.groups) === null || _match_groups7 === void 0 ? void 0 : _match_groups7.minutes, isNegative),\n seconds: parseDurationGroup((_match_groups8 = match.groups) === null || _match_groups8 === void 0 ? void 0 : _match_groups8.seconds, isNegative)\n };\n if (duration.hours !== undefined && duration.hours % 1 !== 0 && (duration.minutes || duration.seconds)) throw new Error(`Invalid ISO 8601 Duration string: ${value} - only the smallest unit can be fractional`);\n if (duration.minutes !== undefined && duration.minutes % 1 !== 0 && duration.seconds) throw new Error(`Invalid ISO 8601 Duration string: ${value} - only the smallest unit can be fractional`);\n return duration;\n}\n\n\nexport {$fae977aafc393c5c$export$c9698ec7f05a07e1 as parseTime, $fae977aafc393c5c$export$6b862160d295c8e as parseDate, $fae977aafc393c5c$export$588937bcd60ade55 as parseDateTime, $fae977aafc393c5c$export$fd7893f06e92a6a4 as parseZonedDateTime, $fae977aafc393c5c$export$4223de14708adc63 as dateTimeToString, $fae977aafc393c5c$export$5adfdab05168c219 as parseAbsolute, $fae977aafc393c5c$export$8e384432362ed0f0 as parseAbsoluteToLocal, $fae977aafc393c5c$export$f59dee82248f5ad4 as timeToString, $fae977aafc393c5c$export$60dfd74aa96791bd as dateToString, $fae977aafc393c5c$export$bf79f1ebf4b18792 as zonedDateTimeToString, $fae977aafc393c5c$export$ecae829bb3747ea6 as parseDuration};\n//# sourceMappingURL=string.module.js.map\n","function _check_private_redeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}\nexport { _check_private_redeclaration as _ };\n","import { _ as _check_private_redeclaration } from \"./_check_private_redeclaration.js\";\n\nfunction _class_private_field_init(obj, privateMap, value) {\n _check_private_redeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}\nexport { _class_private_field_init as _ };\n","import {add as $735220c2d4774dd3$export$e16d8520af44a096, addTime as $735220c2d4774dd3$export$7ed87b6bc2506470, addZoned as $735220c2d4774dd3$export$96b1d28349274637, constrain as $735220c2d4774dd3$export$c4e2ecac49351ef2, constrainTime as $735220c2d4774dd3$export$7555de1e070510cb, cycleDate as $735220c2d4774dd3$export$d52ced6badfb9a4c, cycleTime as $735220c2d4774dd3$export$dd02b3e0007dfe28, cycleZoned as $735220c2d4774dd3$export$9a297d111fc86b79, set as $735220c2d4774dd3$export$adaa4cf7ef1b65be, setTime as $735220c2d4774dd3$export$e5d5e1c1822b6e56, setZoned as $735220c2d4774dd3$export$31b5430eb18be4f8, subtract as $735220c2d4774dd3$export$4e2d2ead65e5f7e3, subtractTime as $735220c2d4774dd3$export$fe34d3a381cd7501, subtractZoned as $735220c2d4774dd3$export$6814caac34ca03c7} from \"./manipulation.mjs\";\nimport {compareDate as $14e0f24ef4ac5c92$export$68781ddf31c0090f, compareTime as $14e0f24ef4ac5c92$export$c19a80a9721b80f6} from \"./queries.mjs\";\nimport {dateTimeToString as $fae977aafc393c5c$export$4223de14708adc63, dateToString as $fae977aafc393c5c$export$60dfd74aa96791bd, timeToString as $fae977aafc393c5c$export$f59dee82248f5ad4, zonedDateTimeToString as $fae977aafc393c5c$export$bf79f1ebf4b18792} from \"./string.mjs\";\nimport {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\nimport {toCalendarDateTime as $11d87f3f76e88657$export$b21e0b124e224484, toDate as $11d87f3f76e88657$export$e67a095c620b86fe, toZoned as $11d87f3f76e88657$export$84c95a83c799e074, zonedToDate as $11d87f3f76e88657$export$83aac07b4c37b25} from \"./conversion.mjs\";\nimport {_ as $aksy1$_} from \"@swc/helpers/_/_class_private_field_init\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $35ea8db9cb2ccb90$var$shiftArgs(args) {\n let calendar = typeof args[0] === 'object' ? args.shift() : new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)();\n let era;\n if (typeof args[0] === 'string') era = args.shift();\n else {\n let eras = calendar.getEras();\n era = eras[eras.length - 1];\n }\n let year = args.shift();\n let month = args.shift();\n let day = args.shift();\n return [\n calendar,\n era,\n year,\n month,\n day\n ];\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// i.e. a ZonedDateTime should not be be passable to a parameter that expects CalendarDate.\n// If that behavior is desired, use the AnyCalendarDate interface instead.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$99faa760c7908e4f {\n /** Returns a copy of this date. */ copy() {\n if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);\n else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);\n }\n /** Returns a new `CalendarDate` with the given duration added to it. */ add(duration) {\n return (0, $735220c2d4774dd3$export$e16d8520af44a096)(this, duration);\n }\n /** Returns a new `CalendarDate` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $735220c2d4774dd3$export$4e2d2ead65e5f7e3)(this, duration);\n }\n /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n return (0, $735220c2d4774dd3$export$adaa4cf7ef1b65be)(this, fields);\n }\n /**\n * Returns a new `CalendarDate` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n return (0, $735220c2d4774dd3$export$d52ced6badfb9a4c)(this, field, amount, options);\n }\n /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */ toDate(timeZone) {\n return (0, $11d87f3f76e88657$export$e67a095c620b86fe)(this, timeZone);\n }\n /** Converts the date to an ISO 8601 formatted string. */ toString() {\n return (0, $fae977aafc393c5c$export$60dfd74aa96791bd)(this);\n }\n /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n return (0, $14e0f24ef4ac5c92$export$68781ddf31c0090f)(this, b);\n }\n constructor(...args){\n (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type, {\n writable: true,\n value: void 0\n });\n let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);\n this.calendar = calendar;\n this.era = era;\n this.year = year;\n this.month = month;\n this.day = day;\n (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(this);\n }\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type1 = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$680ea196effce5f {\n /** Returns a copy of this time. */ copy() {\n return new $35ea8db9cb2ccb90$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);\n }\n /** Returns a new `Time` with the given duration added to it. */ add(duration) {\n return (0, $735220c2d4774dd3$export$7ed87b6bc2506470)(this, duration);\n }\n /** Returns a new `Time` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $735220c2d4774dd3$export$fe34d3a381cd7501)(this, duration);\n }\n /** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n return (0, $735220c2d4774dd3$export$e5d5e1c1822b6e56)(this, fields);\n }\n /**\n * Returns a new `Time` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n return (0, $735220c2d4774dd3$export$dd02b3e0007dfe28)(this, field, amount, options);\n }\n /** Converts the time to an ISO 8601 formatted string. */ toString() {\n return (0, $fae977aafc393c5c$export$f59dee82248f5ad4)(this);\n }\n /** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */ compare(b) {\n return (0, $14e0f24ef4ac5c92$export$c19a80a9721b80f6)(this, b);\n }\n constructor(hour = 0, minute = 0, second = 0, millisecond = 0){\n (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type1, {\n writable: true,\n value: void 0\n });\n this.hour = hour;\n this.minute = minute;\n this.second = second;\n this.millisecond = millisecond;\n (0, $735220c2d4774dd3$export$7555de1e070510cb)(this);\n }\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type2 = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$ca871e8dbb80966f {\n /** Returns a copy of this date. */ copy() {\n if (this.era) return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);\n else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);\n }\n /** Returns a new `CalendarDateTime` with the given duration added to it. */ add(duration) {\n return (0, $735220c2d4774dd3$export$e16d8520af44a096)(this, duration);\n }\n /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $735220c2d4774dd3$export$4e2d2ead65e5f7e3)(this, duration);\n }\n /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n return (0, $735220c2d4774dd3$export$adaa4cf7ef1b65be)((0, $735220c2d4774dd3$export$e5d5e1c1822b6e56)(this, fields), fields);\n }\n /**\n * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n switch(field){\n case 'era':\n case 'year':\n case 'month':\n case 'day':\n return (0, $735220c2d4774dd3$export$d52ced6badfb9a4c)(this, field, amount, options);\n default:\n return (0, $735220c2d4774dd3$export$dd02b3e0007dfe28)(this, field, amount, options);\n }\n }\n /** Converts the date to a native JavaScript Date object in the given time zone. */ toDate(timeZone, disambiguation) {\n return (0, $11d87f3f76e88657$export$e67a095c620b86fe)(this, timeZone, disambiguation);\n }\n /** Converts the date to an ISO 8601 formatted string. */ toString() {\n return (0, $fae977aafc393c5c$export$4223de14708adc63)(this);\n }\n /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n let res = (0, $14e0f24ef4ac5c92$export$68781ddf31c0090f)(this, b);\n if (res === 0) return (0, $14e0f24ef4ac5c92$export$c19a80a9721b80f6)(this, (0, $11d87f3f76e88657$export$b21e0b124e224484)(b));\n return res;\n }\n constructor(...args){\n (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type2, {\n writable: true,\n value: void 0\n });\n let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);\n this.calendar = calendar;\n this.era = era;\n this.year = year;\n this.month = month;\n this.day = day;\n this.hour = args.shift() || 0;\n this.minute = args.shift() || 0;\n this.second = args.shift() || 0;\n this.millisecond = args.shift() || 0;\n (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(this);\n }\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type3 = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$d3b7288e7994edea {\n /** Returns a copy of this date. */ copy() {\n if (this.era) return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);\n else return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);\n }\n /** Returns a new `ZonedDateTime` with the given duration added to it. */ add(duration) {\n return (0, $735220c2d4774dd3$export$96b1d28349274637)(this, duration);\n }\n /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $735220c2d4774dd3$export$6814caac34ca03c7)(this, duration);\n }\n /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields, disambiguation) {\n return (0, $735220c2d4774dd3$export$31b5430eb18be4f8)(this, fields, disambiguation);\n }\n /**\n * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n return (0, $735220c2d4774dd3$export$9a297d111fc86b79)(this, field, amount, options);\n }\n /** Converts the date to a native JavaScript Date object. */ toDate() {\n return (0, $11d87f3f76e88657$export$83aac07b4c37b25)(this);\n }\n /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */ toString() {\n return (0, $fae977aafc393c5c$export$bf79f1ebf4b18792)(this);\n }\n /** Converts the date to an ISO 8601 formatted string in UTC. */ toAbsoluteString() {\n return this.toDate().toISOString();\n }\n /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n // TODO: Is this a bad idea??\n return this.toDate().getTime() - (0, $11d87f3f76e88657$export$84c95a83c799e074)(b, this.timeZone).toDate().getTime();\n }\n constructor(...args){\n (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type3, {\n writable: true,\n value: void 0\n });\n let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);\n let timeZone = args.shift();\n let offset = args.shift();\n this.calendar = calendar;\n this.era = era;\n this.year = year;\n this.month = month;\n this.day = day;\n this.timeZone = timeZone;\n this.offset = offset;\n this.hour = args.shift() || 0;\n this.minute = args.shift() || 0;\n this.second = args.shift() || 0;\n this.millisecond = args.shift() || 0;\n (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(this);\n }\n}\n\n\nexport {$35ea8db9cb2ccb90$export$99faa760c7908e4f as CalendarDate, $35ea8db9cb2ccb90$export$680ea196effce5f as Time, $35ea8db9cb2ccb90$export$ca871e8dbb80966f as CalendarDateTime, $35ea8db9cb2ccb90$export$d3b7288e7994edea as ZonedDateTime};\n//# sourceMappingURL=CalendarDate.module.js.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ let $fb18d541ea1ad717$var$formatterCache = new Map();\nclass $fb18d541ea1ad717$export$ad991b66133851cf {\n /** Formats a date as a string according to the locale and format options passed to the constructor. */ format(value) {\n return this.formatter.format(value);\n }\n /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */ formatToParts(value) {\n return this.formatter.formatToParts(value);\n }\n /** Formats a date range as a string. */ formatRange(start, end) {\n // @ts-ignore\n if (typeof this.formatter.formatRange === 'function') // @ts-ignore\n return this.formatter.formatRange(start, end);\n if (end < start) throw new RangeError('End date must be >= start date');\n // Very basic fallback for old browsers.\n return `${this.formatter.format(start)} \\u{2013} ${this.formatter.format(end)}`;\n }\n /** Formats a date range as an array of parts. */ formatRangeToParts(start, end) {\n // @ts-ignore\n if (typeof this.formatter.formatRangeToParts === 'function') // @ts-ignore\n return this.formatter.formatRangeToParts(start, end);\n if (end < start) throw new RangeError('End date must be >= start date');\n let startParts = this.formatter.formatToParts(start);\n let endParts = this.formatter.formatToParts(end);\n return [\n ...startParts.map((p)=>({\n ...p,\n source: 'startRange'\n })),\n {\n type: 'literal',\n value: \" \\u2013 \",\n source: 'shared'\n },\n ...endParts.map((p)=>({\n ...p,\n source: 'endRange'\n }))\n ];\n }\n /** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {\n let resolvedOptions = this.formatter.resolvedOptions();\n if ($fb18d541ea1ad717$var$hasBuggyResolvedHourCycle()) {\n if (!this.resolvedHourCycle) this.resolvedHourCycle = $fb18d541ea1ad717$var$getResolvedHourCycle(resolvedOptions.locale, this.options);\n resolvedOptions.hourCycle = this.resolvedHourCycle;\n resolvedOptions.hour12 = this.resolvedHourCycle === 'h11' || this.resolvedHourCycle === 'h12';\n }\n // Safari uses a different name for the Ethiopic (Amete Alem) calendar.\n // https://bugs.webkit.org/show_bug.cgi?id=241564\n if (resolvedOptions.calendar === 'ethiopic-amete-alem') resolvedOptions.calendar = 'ethioaa';\n return resolvedOptions;\n }\n constructor(locale, options = {}){\n this.formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options);\n this.options = options;\n }\n}\n// There are multiple bugs involving the hour12 and hourCycle options in various browser engines.\n// - Chrome [1] (and the ECMA 402 spec [2]) resolve hour12: false in English and other locales to h24 (24:00 - 23:59)\n// rather than h23 (00:00 - 23:59). Same can happen with hour12: true in French, which Chrome resolves to h11 (00:00 - 11:59)\n// rather than h12 (12:00 - 11:59).\n// - WebKit returns an incorrect hourCycle resolved option in the French locale due to incorrect parsing of 'h' literal\n// in the resolved pattern. It also formats incorrectly when specifying the hourCycle option for the same reason. [3]\n// [1] https://bugs.chromium.org/p/chromium/issues/detail?id=1045791\n// [2] https://github.com/tc39/ecma402/issues/402\n// [3] https://bugs.webkit.org/show_bug.cgi?id=229313\n// https://github.com/unicode-org/cldr/blob/018b55eff7ceb389c7e3fc44e2f657eae3b10b38/common/supplemental/supplementalData.xml#L4774-L4802\nconst $fb18d541ea1ad717$var$hour12Preferences = {\n true: {\n // Only Japanese uses the h11 style for 12 hour time. All others use h12.\n ja: 'h11'\n },\n false: {\n }\n};\nfunction $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options = {}) {\n // Work around buggy hour12 behavior in Chrome / ECMA 402 spec by using hourCycle instead.\n // Only apply the workaround if the issue is detected, because the hourCycle option is buggy in Safari.\n if (typeof options.hour12 === 'boolean' && $fb18d541ea1ad717$var$hasBuggyHour12Behavior()) {\n options = {\n ...options\n };\n let pref = $fb18d541ea1ad717$var$hour12Preferences[String(options.hour12)][locale.split('-')[0]];\n let defaultHourCycle = options.hour12 ? 'h12' : 'h23';\n options.hourCycle = pref !== null && pref !== void 0 ? pref : defaultHourCycle;\n delete options.hour12;\n }\n let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : '');\n if ($fb18d541ea1ad717$var$formatterCache.has(cacheKey)) return $fb18d541ea1ad717$var$formatterCache.get(cacheKey);\n let numberFormatter = new Intl.DateTimeFormat(locale, options);\n $fb18d541ea1ad717$var$formatterCache.set(cacheKey, numberFormatter);\n return numberFormatter;\n}\nlet $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = null;\nfunction $fb18d541ea1ad717$var$hasBuggyHour12Behavior() {\n if ($fb18d541ea1ad717$var$_hasBuggyHour12Behavior == null) $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat('en-US', {\n hour: 'numeric',\n hour12: false\n }).format(new Date(2020, 2, 3, 0)) === '24';\n return $fb18d541ea1ad717$var$_hasBuggyHour12Behavior;\n}\nlet $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = null;\nfunction $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle() {\n if ($fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle == null) $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat('fr', {\n hour: 'numeric',\n hour12: false\n }).resolvedOptions().hourCycle === 'h12';\n return $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle;\n}\nfunction $fb18d541ea1ad717$var$getResolvedHourCycle(locale, options) {\n if (!options.timeStyle && !options.hour) return undefined;\n // Work around buggy results in resolved hourCycle and hour12 options in WebKit.\n // Format the minimum possible hour and maximum possible hour in a day and parse the results.\n locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, '');\n locale += (locale.includes('-u-') ? '' : '-u') + '-nu-latn';\n let formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, {\n ...options,\n timeZone: undefined // use local timezone\n });\n let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p)=>p.type === 'hour').value, 10);\n let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p)=>p.type === 'hour').value, 10);\n if (min === 0 && max === 23) return 'h23';\n if (min === 24 && max === 23) return 'h24';\n if (min === 0 && max === 11) return 'h11';\n if (min === 12 && max === 11) return 'h12';\n throw new Error('Unexpected hour cycle result');\n}\n\n\nexport {$fb18d541ea1ad717$export$ad991b66133851cf as DateFormatter};\n//# sourceMappingURL=DateFormatter.module.js.map\n","import { srOnlyStylesString } from \"svelte-toolbelt\";\nimport { isBrowser, isHTMLElement } from \"../is.js\";\n/**\n * Creates or gets an announcer element which is used to announce messages to screen readers.\n * Within the date components, we use this to announce when the values of the individual segments\n * change, as without it we get inconsistent behavior across screen readers.\n */\nfunction initAnnouncer(doc) {\n if (!isBrowser || !doc)\n return null;\n let el = doc.querySelector(\"[data-bits-announcer]\");\n /**\n * Creates a log element for assertive or polite announcements.\n */\n const createLog = (kind) => {\n const log = doc.createElement(\"div\");\n log.role = \"log\";\n log.ariaLive = kind;\n log.setAttribute(\"aria-relevant\", \"additions\");\n return log;\n };\n if (!isHTMLElement(el)) {\n const div = doc.createElement(\"div\");\n div.style.cssText = srOnlyStylesString;\n div.setAttribute(\"data-bits-announcer\", \"\");\n div.appendChild(createLog(\"assertive\"));\n div.appendChild(createLog(\"polite\"));\n el = div;\n doc.body.insertBefore(el, doc.body.firstChild);\n }\n /**\n * Retrieves the log element for assertive or polite announcements.\n */\n const getLog = (kind) => {\n if (!isHTMLElement(el))\n return null;\n const log = el.querySelector(`[aria-live=\"${kind}\"]`);\n if (!isHTMLElement(log))\n return null;\n return log;\n };\n return {\n getLog,\n };\n}\n/**\n * Creates an announcer object that can be used to make `aria-live` announcements to screen readers.\n */\nexport function getAnnouncer(doc) {\n const announcer = initAnnouncer(doc);\n /**\n * Announces a message to screen readers using the specified kind of announcement.\n */\n function announce(value, kind = \"assertive\", timeout = 7500) {\n if (!announcer || !isBrowser || !doc)\n return;\n const log = announcer.getLog(kind);\n const content = doc.createElement(\"div\");\n if (typeof value === \"number\") {\n value = value.toString();\n }\n else if (value === null) {\n value = \"Empty\";\n }\n else {\n value = value.trim();\n }\n content.innerText = value;\n if (kind === \"assertive\") {\n log?.replaceChildren(content);\n }\n else {\n log?.appendChild(content);\n }\n return setTimeout(() => {\n content.remove();\n }, timeout);\n }\n return {\n announce,\n };\n}\n","import { CalendarDate, CalendarDateTime, Time, ZonedDateTime, getDayOfWeek, getLocalTimeZone, parseDate, parseDateTime, parseZonedDateTime, toCalendar, } from \"@internationalized/date\";\nconst defaultDateDefaults = {\n defaultValue: undefined,\n granularity: \"day\",\n};\nconst defaultTimeDefaults = {\n defaultValue: undefined,\n granularity: \"minute\",\n};\n/**\n * A helper function used throughout the various date builders\n * to generate a default `DateValue` using the `defaultValue`,\n * `defaultPlaceholder`, `minValue`, `maxValue`, and `granularity` props.\n *\n * It's important to match the `DateValue` type being used\n * elsewhere in the builder, so they behave according to the\n * behavior the user expects based on the props they've provided.\n *\n */\nexport function getDefaultDate(opts) {\n const withDefaults = { ...defaultDateDefaults, ...opts };\n const { defaultValue, granularity, minValue, maxValue } = withDefaults;\n if (Array.isArray(defaultValue) && defaultValue.length) {\n return defaultValue[defaultValue.length - 1];\n }\n if (defaultValue && !Array.isArray(defaultValue)) {\n return defaultValue;\n }\n else {\n let date = new Date();\n if (minValue && date < minValue.toDate(getLocalTimeZone())) {\n date = minValue.toDate(getLocalTimeZone());\n }\n else if (maxValue && date > maxValue.toDate(getLocalTimeZone())) {\n date = maxValue.toDate(getLocalTimeZone());\n }\n const year = date.getFullYear();\n const month = date.getMonth() + 1;\n const day = date.getDate();\n const calendarDateTimeGranularities = [\"hour\", \"minute\", \"second\"];\n if (calendarDateTimeGranularities.includes(granularity ?? \"day\")) {\n return new CalendarDateTime(year, month, day, 0, 0, 0);\n }\n return new CalendarDate(year, month, day);\n }\n}\nexport function getDefaultTime(opts) {\n const withDefaults = { ...defaultTimeDefaults, ...opts };\n const { defaultValue } = withDefaults;\n if (defaultValue) {\n return defaultValue;\n }\n else {\n return new Time(0, 0, 0);\n }\n}\n/**\n * Given a date string and a reference `DateValue` object, parse the\n * string to the same type as the reference object.\n *\n * Useful for parsing strings from data attributes, which are always\n * strings, to the same type being used by the date component.\n */\nexport function parseStringToDateValue(dateStr, referenceVal) {\n let dateValue;\n if (referenceVal instanceof ZonedDateTime) {\n dateValue = parseZonedDateTime(dateStr);\n }\n else if (referenceVal instanceof CalendarDateTime) {\n dateValue = parseDateTime(dateStr);\n }\n else {\n dateValue = parseDate(dateStr);\n }\n // ensure the parsed date is in the same calendar as the reference date set by the user.\n return dateValue.calendar !== referenceVal.calendar\n ? toCalendar(dateValue, referenceVal.calendar)\n : dateValue;\n}\n/**\n * Given a `DateValue` object, convert it to a native `Date` object.\n * If a timezone is provided, the date will be converted to that timezone.\n * If no timezone is provided, the date will be converted to the local timezone.\n */\nexport function toDate(dateValue, tz = getLocalTimeZone()) {\n if (dateValue instanceof ZonedDateTime) {\n return dateValue.toDate();\n }\n else {\n return dateValue.toDate(tz);\n }\n}\nexport function getDateValueType(date) {\n if (date instanceof CalendarDate)\n return \"date\";\n if (date instanceof CalendarDateTime)\n return \"datetime\";\n if (date instanceof ZonedDateTime)\n return \"zoneddatetime\";\n throw new Error(\"Unknown date type\");\n}\nexport function parseAnyDateValue(value, type) {\n switch (type) {\n case \"date\":\n return parseDate(value);\n case \"datetime\":\n return parseDateTime(value);\n case \"zoneddatetime\":\n return parseZonedDateTime(value);\n default:\n throw new Error(`Unknown date type: ${type}`);\n }\n}\nfunction isCalendarDateTime(dateValue) {\n return dateValue instanceof CalendarDateTime;\n}\nexport function isZonedDateTime(dateValue) {\n return dateValue instanceof ZonedDateTime;\n}\nexport function hasTime(dateValue) {\n return isCalendarDateTime(dateValue) || isZonedDateTime(dateValue);\n}\n/**\n * Given a date, return the number of days in the month.\n */\nexport function getDaysInMonth(date) {\n if (date instanceof Date) {\n const year = date.getFullYear();\n const month = date.getMonth() + 1;\n /**\n * By using zero as the day, we get the\n * last day of the previous month, which\n * is the month we originally passed in.\n */\n return new Date(year, month, 0).getDate();\n }\n else {\n return date.set({ day: 100 }).day;\n }\n}\n/**\n * Determine if a date is before the reference date.\n * @param dateToCompare - is this date before the `referenceDate`\n * @param referenceDate - is the `dateToCompare` before this date\n *\n * @see {@link isBeforeOrSame} for inclusive\n */\nexport function isBefore(dateToCompare, referenceDate) {\n return dateToCompare.compare(referenceDate) < 0;\n}\n/**\n * Determine if a date is after the reference date.\n * @param dateToCompare - is this date after the `referenceDate`\n * @param referenceDate - is the `dateToCompare` after this date\n *\n * @see {@link isAfterOrSame} for inclusive\n */\nexport function isAfter(dateToCompare, referenceDate) {\n return dateToCompare.compare(referenceDate) > 0;\n}\n/**\n * Determine if a date is before or the same as the reference date.\n *\n * @param dateToCompare - the date to compare\n * @param referenceDate - the reference date to make the comparison against\n *\n * @see {@link isBefore} for non-inclusive\n */\nfunction isBeforeOrSame(dateToCompare, referenceDate) {\n return dateToCompare.compare(referenceDate) <= 0;\n}\n/**\n * Determine if a date is after or the same as the reference date.\n *\n * @param dateToCompare - is this date after or the same as the `referenceDate`\n * @param referenceDate - is the `dateToCompare` after or the same as this date\n *\n * @see {@link isAfter} for non-inclusive\n */\nfunction isAfterOrSame(dateToCompare, referenceDate) {\n return dateToCompare.compare(referenceDate) >= 0;\n}\n/**\n * Determine if a date is inclusively between a start and end reference date.\n *\n * @param date - is this date inclusively between the `start` and `end` dates\n * @param start - the start reference date to make the comparison against\n * @param end - the end reference date to make the comparison against\n *\n * @see {@link isBetween} for non-inclusive\n */\nexport function isBetweenInclusive(date, start, end) {\n return isAfterOrSame(date, start) && isBeforeOrSame(date, end);\n}\nexport function getLastFirstDayOfWeek(date, firstDayOfWeek, locale) {\n const day = getDayOfWeek(date, locale);\n if (firstDayOfWeek > day) {\n return date.subtract({ days: day + 7 - firstDayOfWeek });\n }\n if (firstDayOfWeek === day) {\n return date;\n }\n return date.subtract({ days: day - firstDayOfWeek });\n}\nexport function getNextLastDayOfWeek(date, firstDayOfWeek, locale) {\n const day = getDayOfWeek(date, locale);\n const lastDayOfWeek = firstDayOfWeek === 0 ? 6 : firstDayOfWeek - 1;\n if (day === lastDayOfWeek) {\n return date;\n }\n if (day > lastDayOfWeek) {\n return date.add({ days: 7 - day + lastDayOfWeek });\n }\n return date.add({ days: lastDayOfWeek - day });\n}\nexport function areAllDaysBetweenValid(start, end, isUnavailable, isDisabled) {\n if (isUnavailable === undefined && isDisabled === undefined) {\n return true;\n }\n let dCurrent = start.add({ days: 1 });\n if (isDisabled?.(dCurrent) || isUnavailable?.(dCurrent)) {\n return false;\n }\n const dEnd = end;\n while (dCurrent.compare(dEnd) < 0) {\n dCurrent = dCurrent.add({ days: 1 });\n if (isDisabled?.(dCurrent) || isUnavailable?.(dCurrent)) {\n return false;\n }\n }\n return true;\n}\n","import { DateFormatter } from \"@internationalized/date\";\nimport { hasTime, isZonedDateTime, toDate } from \"./utils.js\";\nimport { convertTimeValueToDateValue } from \"./field/time-helpers.js\";\nconst defaultPartOptions = {\n year: \"numeric\",\n month: \"numeric\",\n day: \"numeric\",\n hour: \"numeric\",\n minute: \"numeric\",\n second: \"numeric\",\n};\n/**\n * Creates a wrapper around the `DateFormatter`, which is\n * an improved version of the {@link Intl.DateTimeFormat} API,\n * that is used internally by the various date builders to\n * easily format dates in a consistent way.\n *\n * @see [DateFormatter](https://react-spectrum.adobe.com/internationalized/date/DateFormatter.html)\n */\nexport function createFormatter(opts) {\n let locale = opts.initialLocale;\n function setLocale(newLocale) {\n locale = newLocale;\n }\n function getLocale() {\n return locale;\n }\n function custom(date, options) {\n return new DateFormatter(locale, options).format(date);\n }\n function selectedDate(date, includeTime = true) {\n if (hasTime(date) && includeTime) {\n return custom(toDate(date), {\n dateStyle: \"long\",\n timeStyle: \"long\",\n });\n }\n else {\n return custom(toDate(date), {\n dateStyle: \"long\",\n });\n }\n }\n function fullMonthAndYear(date) {\n if (typeof opts.monthFormat.current !== \"function\" &&\n typeof opts.yearFormat.current !== \"function\") {\n return new DateFormatter(locale, {\n month: opts.monthFormat.current,\n year: opts.yearFormat.current,\n }).format(date);\n }\n const formattedMonth = typeof opts.monthFormat.current === \"function\"\n ? opts.monthFormat.current(date.getMonth() + 1)\n : new DateFormatter(locale, { month: opts.monthFormat.current }).format(date);\n const formattedYear = typeof opts.yearFormat.current === \"function\"\n ? opts.yearFormat.current(date.getFullYear())\n : new DateFormatter(locale, { year: opts.yearFormat.current }).format(date);\n return `${formattedMonth} ${formattedYear}`;\n }\n function fullMonth(date) {\n return new DateFormatter(locale, { month: \"long\" }).format(date);\n }\n function fullYear(date) {\n return new DateFormatter(locale, { year: \"numeric\" }).format(date);\n }\n function toParts(date, options) {\n if (isZonedDateTime(date)) {\n return new DateFormatter(locale, {\n ...options,\n timeZone: date.timeZone,\n }).formatToParts(toDate(date));\n }\n else {\n return new DateFormatter(locale, options).formatToParts(toDate(date));\n }\n }\n function dayOfWeek(date, length = \"narrow\") {\n return new DateFormatter(locale, { weekday: length }).format(date);\n }\n function dayPeriod(date, hourCycle = undefined) {\n const parts = new DateFormatter(locale, {\n hour: \"numeric\",\n minute: \"numeric\",\n hourCycle: hourCycle === 24 ? \"h23\" : undefined,\n }).formatToParts(date);\n const value = parts.find((p) => p.type === \"dayPeriod\")?.value;\n if (value === \"PM\") {\n return \"PM\";\n }\n return \"AM\";\n }\n function part(dateObj, type, options = {}) {\n const opts = { ...defaultPartOptions, ...options };\n const parts = toParts(dateObj, opts);\n const part = parts.find((p) => p.type === type);\n return part ? part.value : \"\";\n }\n return {\n setLocale,\n getLocale,\n fullMonth,\n fullYear,\n fullMonthAndYear,\n toParts,\n custom,\n part,\n dayPeriod,\n selectedDate,\n dayOfWeek,\n };\n}\nexport function createTimeFormatter(initialLocale) {\n let locale = initialLocale;\n function setLocale(newLocale) {\n locale = newLocale;\n }\n function getLocale() {\n return locale;\n }\n function custom(date, options) {\n return new DateFormatter(locale, options).format(date);\n }\n function selectedTime(date) {\n return custom(toDate(convertTimeValueToDateValue(date)), {\n timeStyle: \"long\",\n });\n }\n function toParts(timeValue, options) {\n const dateValue = convertTimeValueToDateValue(timeValue);\n if (isZonedDateTime(dateValue)) {\n return new DateFormatter(locale, {\n ...options,\n timeZone: dateValue.timeZone,\n }).formatToParts(toDate(dateValue));\n }\n else {\n return new DateFormatter(locale, options).formatToParts(toDate(dateValue));\n }\n }\n function dayPeriod(date, hourCycle = undefined) {\n const parts = new DateFormatter(locale, {\n hour: \"numeric\",\n minute: \"numeric\",\n hourCycle: hourCycle === 24 ? \"h23\" : undefined,\n }).formatToParts(date);\n const value = parts.find((p) => p.type === \"dayPeriod\")?.value;\n if (value === \"PM\")\n return \"PM\";\n return \"AM\";\n }\n function part(dateObj, type, options = {}) {\n const opts = { ...defaultPartOptions, ...options };\n const parts = toParts(dateObj, opts);\n const part = parts.find((p) => p.type === type);\n return part ? part.value : \"\";\n }\n return {\n setLocale,\n getLocale,\n toParts,\n custom,\n part,\n dayPeriod,\n selectedTime,\n };\n}\n","import { endOfMonth, isSameDay, isSameMonth, startOfMonth, } from \"@internationalized/date\";\nimport { afterTick, getDocument, styleToString, } from \"svelte-toolbelt\";\nimport { untrack } from \"svelte\";\nimport { getDaysInMonth, getLastFirstDayOfWeek, getNextLastDayOfWeek, hasTime, isAfter, isBefore, parseAnyDateValue, parseStringToDateValue, toDate, } from \"./utils.js\";\nimport { createBitsAttrs, boolToEmptyStrOrUndef } from \"../attrs.js\";\nimport { chunk, isValidIndex } from \"../arrays.js\";\nimport { isBrowser, isHTMLElement } from \"../is.js\";\nimport { kbd } from \"../kbd.js\";\nimport { watch } from \"runed\";\n/**\n * Checks if a given node is a calendar cell element.\n *\n * @param node - The node to check.\n */\nexport function isCalendarDayNode(node) {\n if (!isHTMLElement(node))\n return false;\n if (!node.hasAttribute(\"data-bits-day\"))\n return false;\n return true;\n}\n/**\n * Retrieves an array of date values representing the days between\n * the provided start and end dates.\n */\nexport function getDaysBetween(start, end) {\n const days = [];\n let dCurrent = start.add({ days: 1 });\n const dEnd = end;\n while (dCurrent.compare(dEnd) < 0) {\n days.push(dCurrent);\n dCurrent = dCurrent.add({ days: 1 });\n }\n return days;\n}\n/**\n * Creates a calendar month object.\n *\n * @remarks\n * Given a date, this function returns an object containing\n * the necessary values to render a calendar month, including\n * the month's date (the first day of that month), which can be\n * used to render the name of the month, an array of all dates\n * in that month, and an array of weeks. Each week is an array\n * of dates, useful for rendering an accessible calendar grid\n * using a loop and table elements.\n *\n */\nfunction createMonth(props) {\n const { dateObj, weekStartsOn, fixedWeeks, locale } = props;\n const daysInMonth = getDaysInMonth(dateObj);\n const datesArray = Array.from({ length: daysInMonth }, (_, i) => dateObj.set({ day: i + 1 }));\n const firstDayOfMonth = startOfMonth(dateObj);\n const lastDayOfMonth = endOfMonth(dateObj);\n const lastSunday = weekStartsOn !== undefined\n ? getLastFirstDayOfWeek(firstDayOfMonth, weekStartsOn, \"en-US\")\n : getLastFirstDayOfWeek(firstDayOfMonth, 0, locale);\n const nextSaturday = weekStartsOn !== undefined\n ? getNextLastDayOfWeek(lastDayOfMonth, weekStartsOn, \"en-US\")\n : getNextLastDayOfWeek(lastDayOfMonth, 0, locale);\n const lastMonthDays = getDaysBetween(lastSunday.subtract({ days: 1 }), firstDayOfMonth);\n const nextMonthDays = getDaysBetween(lastDayOfMonth, nextSaturday.add({ days: 1 }));\n const totalDays = lastMonthDays.length + datesArray.length + nextMonthDays.length;\n if (fixedWeeks && totalDays < 42) {\n const extraDays = 42 - totalDays;\n let startFrom = nextMonthDays[nextMonthDays.length - 1];\n if (!startFrom) {\n startFrom = dateObj.add({ months: 1 }).set({ day: 1 });\n }\n let length = extraDays;\n if (nextMonthDays.length === 0) {\n length = extraDays - 1;\n nextMonthDays.push(startFrom);\n }\n const extraDaysArray = Array.from({ length }, (_, i) => {\n const incr = i + 1;\n return startFrom.add({ days: incr });\n });\n nextMonthDays.push(...extraDaysArray);\n }\n const allDays = lastMonthDays.concat(datesArray, nextMonthDays);\n const weeks = chunk(allDays, 7);\n return {\n value: dateObj,\n dates: allDays,\n weeks,\n };\n}\nexport function createMonths(props) {\n const { numberOfMonths, dateObj, ...monthProps } = props;\n const months = [];\n if (!numberOfMonths || numberOfMonths === 1) {\n months.push(createMonth({\n ...monthProps,\n dateObj,\n }));\n return months;\n }\n months.push(createMonth({\n ...monthProps,\n dateObj,\n }));\n // Create all the months, starting with the current month\n for (let i = 1; i < numberOfMonths; i++) {\n const nextMonth = dateObj.add({ months: i });\n months.push(createMonth({\n ...monthProps,\n dateObj: nextMonth,\n }));\n }\n return months;\n}\nexport function getSelectableCells(calendarNode) {\n if (!calendarNode)\n return [];\n const selectableSelector = `[data-bits-day]:not([data-disabled]):not([data-outside-visible-months])`;\n return Array.from(calendarNode.querySelectorAll(selectableSelector)).filter((el) => isHTMLElement(el));\n}\n/**\n * A helper function to extract the date from the `data-value`\n * attribute of a date cell and set it as the placeholder value.\n *\n * Shared between the calendar and range calendar builders.\n *\n * @param node - The node to extract the date from.\n * @param placeholder - The placeholder value store which will be set to the extracted date.\n */\nexport function setPlaceholderToNodeValue(node, placeholder) {\n const cellValue = node.getAttribute(\"data-value\");\n if (!cellValue)\n return;\n placeholder.current = parseStringToDateValue(cellValue, placeholder.current);\n}\n/**\n * Shared logic for shifting focus between cells in the\n * calendar and range calendar.\n */\nexport function shiftCalendarFocus({ node, add, placeholder, calendarNode, isPrevButtonDisabled, isNextButtonDisabled, months, numberOfMonths, }) {\n const candidateCells = getSelectableCells(calendarNode);\n if (!candidateCells.length)\n return;\n const index = candidateCells.indexOf(node);\n const nextIndex = index + add;\n /**\n * If the next cell is within the bounds of the displayed cells,\n * easy day, we just focus it.\n */\n if (isValidIndex(nextIndex, candidateCells)) {\n const nextCell = candidateCells[nextIndex];\n setPlaceholderToNodeValue(nextCell, placeholder);\n return nextCell.focus();\n }\n /**\n * When the next cell falls outside the displayed cells range,\n * we update the focus to the previous or next month based on the\n * direction, and then focus on the relevant cell.\n */\n if (nextIndex < 0) {\n /**\n * To handle negative indices, we rewind by one month,\n * retrieve candidate cells for that month, and shift focus\n * by the difference between the nextIndex starting from the end\n * of the array.\n */\n // shift the calendar back a month unless prev month is disabled\n if (isPrevButtonDisabled)\n return;\n const firstMonth = months[0]?.value;\n if (!firstMonth)\n return;\n placeholder.current = firstMonth.subtract({ months: numberOfMonths });\n // Without a tick here, it seems to be too quick for the DOM to update\n afterTick(() => {\n const newCandidateCells = getSelectableCells(calendarNode);\n if (!newCandidateCells.length)\n return;\n /**\n * Starting at the end of the array, shift focus by the diff\n * between the nextIndex and the length of the array, since the\n * nextIndex is negative.\n */\n const newIndex = newCandidateCells.length - Math.abs(nextIndex);\n if (isValidIndex(newIndex, newCandidateCells)) {\n const newCell = newCandidateCells[newIndex];\n setPlaceholderToNodeValue(newCell, placeholder);\n return newCell.focus();\n }\n });\n }\n if (nextIndex >= candidateCells.length) {\n /**\n * Since we're in the positive index range, we need to go forward\n * a month, refetch the candidate cells within that month, and then\n * starting at the beginning of the array, shift focus by the nextIndex\n * amount.\n */\n // shift the calendar forward a month unless next month is disabled\n if (isNextButtonDisabled)\n return;\n const firstMonth = months[0]?.value;\n if (!firstMonth)\n return;\n placeholder.current = firstMonth.add({ months: numberOfMonths });\n afterTick(() => {\n const newCandidateCells = getSelectableCells(calendarNode);\n if (!newCandidateCells.length)\n return;\n /**\n * We need to determine how far into the next month we need to go\n * to get the next index. So if we only went over the previous month\n * by one, we need to go into the next month by 1 to get the right index.\n */\n const newIndex = nextIndex - candidateCells.length;\n if (isValidIndex(newIndex, newCandidateCells)) {\n const nextCell = newCandidateCells[newIndex];\n return nextCell.focus();\n }\n });\n }\n}\nconst ARROW_KEYS = [kbd.ARROW_DOWN, kbd.ARROW_UP, kbd.ARROW_LEFT, kbd.ARROW_RIGHT];\nconst SELECT_KEYS = [kbd.ENTER, kbd.SPACE];\n/**\n * Shared keyboard event handler for the calendar and range calendar.\n */\nexport function handleCalendarKeydown({ event, handleCellClick, shiftFocus, placeholderValue, }) {\n const currentCell = event.target;\n if (!isCalendarDayNode(currentCell))\n return;\n // oxlint-disable-next-line no-explicit-any\n if (!ARROW_KEYS.includes(event.key) && !SELECT_KEYS.includes(event.key))\n return;\n event.preventDefault();\n const kbdFocusMap = {\n [kbd.ARROW_DOWN]: 7,\n [kbd.ARROW_UP]: -7,\n [kbd.ARROW_LEFT]: -1,\n [kbd.ARROW_RIGHT]: 1,\n };\n // oxlint-disable-next-line no-explicit-any\n if (ARROW_KEYS.includes(event.key)) {\n const add = kbdFocusMap[event.key];\n if (add !== undefined) {\n shiftFocus(currentCell, add);\n }\n }\n if (SELECT_KEYS.includes(event.key)) {\n const cellValue = currentCell.getAttribute(\"data-value\");\n if (!cellValue)\n return;\n handleCellClick(event, parseStringToDateValue(cellValue, placeholderValue));\n }\n}\nexport function handleCalendarNextPage({ months, setMonths, numberOfMonths, pagedNavigation, weekStartsOn, locale, fixedWeeks, setPlaceholder, }) {\n const firstMonth = months[0]?.value;\n if (!firstMonth)\n return;\n if (pagedNavigation) {\n setPlaceholder(firstMonth.add({ months: numberOfMonths }));\n }\n else {\n // Calculate the target date first, then update both months and placeholder\n // to ensure they're synchronized and prevent useMonthViewPlaceholderSync from\n // double-triggering\n const targetDate = firstMonth.add({ months: 1 });\n const newMonths = createMonths({\n dateObj: targetDate,\n weekStartsOn,\n locale,\n fixedWeeks,\n numberOfMonths,\n });\n setPlaceholder(targetDate);\n setMonths(newMonths);\n }\n}\nexport function handleCalendarPrevPage({ months, setMonths, numberOfMonths, pagedNavigation, weekStartsOn, locale, fixedWeeks, setPlaceholder, }) {\n const firstMonth = months[0]?.value;\n if (!firstMonth)\n return;\n if (pagedNavigation) {\n setPlaceholder(firstMonth.subtract({ months: numberOfMonths }));\n }\n else {\n // Calculate the target date first, then update both months and placeholder\n // to ensure they're synchronized and prevent useMonthViewPlaceholderSync from\n // double-triggering\n const targetDate = firstMonth.subtract({ months: 1 });\n const newMonths = createMonths({\n dateObj: targetDate,\n weekStartsOn,\n locale,\n fixedWeeks,\n numberOfMonths,\n });\n setPlaceholder(targetDate);\n setMonths(newMonths);\n }\n}\nexport function getWeekdays({ months, formatter, weekdayFormat }) {\n if (!months.length)\n return [];\n const firstMonth = months[0];\n const firstWeek = firstMonth.weeks[0];\n if (!firstWeek)\n return [];\n return firstWeek.map((date) => formatter.dayOfWeek(toDate(date), weekdayFormat));\n}\n/**\n * Updates the displayed months based on changes in the options values,\n * which determines the month to show in the calendar.\n */\nexport function useMonthViewOptionsSync(props) {\n $effect(() => {\n const weekStartsOn = props.weekStartsOn.current;\n const locale = props.locale.current;\n const fixedWeeks = props.fixedWeeks.current;\n const numberOfMonths = props.numberOfMonths.current;\n untrack(() => {\n const placeholder = props.placeholder.current;\n if (!placeholder)\n return;\n const defaultMonthProps = {\n weekStartsOn,\n locale,\n fixedWeeks,\n numberOfMonths,\n };\n props.setMonths(createMonths({ ...defaultMonthProps, dateObj: placeholder }));\n });\n });\n}\n/**\n * Creates an accessible heading element for the calendar.\n * Returns a function that removes the heading element.\n */\nexport function createAccessibleHeading({ calendarNode, label, accessibleHeadingId, }) {\n const doc = getDocument(calendarNode);\n const div = doc.createElement(\"div\");\n div.style.cssText = styleToString({\n border: \"0px\",\n clip: \"rect(0px, 0px, 0px, 0px)\",\n clipPath: \"inset(50%)\",\n height: \"1px\",\n margin: \"-1px\",\n overflow: \"hidden\",\n padding: \"0px\",\n position: \"absolute\",\n whiteSpace: \"nowrap\",\n width: \"1px\",\n });\n const h2 = doc.createElement(\"div\");\n h2.textContent = label;\n h2.id = accessibleHeadingId;\n h2.role = \"heading\";\n h2.ariaLevel = \"2\";\n calendarNode.insertBefore(div, calendarNode.firstChild);\n div.appendChild(h2);\n return () => {\n const h2 = doc.getElementById(accessibleHeadingId);\n if (!h2)\n return;\n div.parentElement?.removeChild(div);\n h2.remove();\n };\n}\nexport function useMonthViewPlaceholderSync({ placeholder, getVisibleMonths, weekStartsOn, locale, fixedWeeks, numberOfMonths, setMonths, }) {\n $effect(() => {\n placeholder.current;\n untrack(() => {\n /**\n * If the placeholder's month is already in this visible months,\n * we don't need to do anything.\n */\n if (getVisibleMonths().some((month) => isSameMonth(month, placeholder.current))) {\n return;\n }\n const defaultMonthProps = {\n weekStartsOn: weekStartsOn.current,\n locale: locale.current,\n fixedWeeks: fixedWeeks.current,\n numberOfMonths: numberOfMonths.current,\n };\n setMonths(createMonths({ ...defaultMonthProps, dateObj: placeholder.current }));\n });\n });\n}\nexport function getIsNextButtonDisabled({ maxValue, months, disabled, }) {\n if (!maxValue || !months.length)\n return false;\n if (disabled)\n return true;\n const lastMonthInView = months[months.length - 1]?.value;\n if (!lastMonthInView)\n return false;\n const firstMonthOfNextPage = lastMonthInView\n .add({\n months: 1,\n })\n .set({ day: 1 });\n return isAfter(firstMonthOfNextPage, maxValue);\n}\nexport function getIsPrevButtonDisabled({ minValue, months, disabled, }) {\n if (!minValue || !months.length)\n return false;\n if (disabled)\n return true;\n const firstMonthInView = months[0]?.value;\n if (!firstMonthInView)\n return false;\n const lastMonthOfPrevPage = firstMonthInView\n .subtract({\n months: 1,\n })\n .set({ day: 35 });\n return isBefore(lastMonthOfPrevPage, minValue);\n}\nexport function getCalendarHeadingValue({ months, locale, formatter, }) {\n if (!months.length)\n return \"\";\n if (locale !== formatter.getLocale()) {\n formatter.setLocale(locale);\n }\n if (months.length === 1) {\n const month = toDate(months[0].value);\n return `${formatter.fullMonthAndYear(month)}`;\n }\n const startMonth = toDate(months[0].value);\n const endMonth = toDate(months[months.length - 1].value);\n const startMonthName = formatter.fullMonth(startMonth);\n const endMonthName = formatter.fullMonth(endMonth);\n const startMonthYear = formatter.fullYear(startMonth);\n const endMonthYear = formatter.fullYear(endMonth);\n const content = startMonthYear === endMonthYear\n ? `${startMonthName} - ${endMonthName} ${endMonthYear}`\n : `${startMonthName} ${startMonthYear} - ${endMonthName} ${endMonthYear}`;\n return content;\n}\nexport function getCalendarElementProps({ fullCalendarLabel, id, isInvalid, disabled, readonly, }) {\n return {\n id,\n role: \"application\",\n \"aria-label\": fullCalendarLabel,\n \"data-invalid\": boolToEmptyStrOrUndef(isInvalid),\n \"data-disabled\": boolToEmptyStrOrUndef(disabled),\n \"data-readonly\": boolToEmptyStrOrUndef(readonly),\n };\n}\nexport function pickerOpenFocus(e) {\n const doc = getDocument(e.target);\n const nodeToFocus = doc.querySelector(\"[data-bits-day][data-focused]\");\n if (nodeToFocus) {\n e.preventDefault();\n nodeToFocus?.focus();\n }\n}\nexport function getFirstNonDisabledDateInView(calendarRef) {\n if (!isBrowser)\n return;\n const daysInView = Array.from(calendarRef.querySelectorAll(\"[data-bits-day]:not([aria-disabled=true])\"));\n if (daysInView.length === 0)\n return;\n const element = daysInView[0];\n const value = element?.getAttribute(\"data-value\");\n const type = element?.getAttribute(\"data-type\");\n if (!value || !type)\n return;\n return parseAnyDateValue(value, type);\n}\n/**\n * Ensures the placeholder is not set to a disabled date,\n * which would prevent the user from entering the Calendar\n * via the keyboard.\n */\nexport function useEnsureNonDisabledPlaceholder({ ref, placeholder, defaultPlaceholder, minValue, maxValue, isDateDisabled, }) {\n function isDisabled(date) {\n if (isDateDisabled.current(date))\n return true;\n if (minValue.current && isBefore(date, minValue.current))\n return true;\n if (maxValue.current && isBefore(maxValue.current, date))\n return true;\n return false;\n }\n watch(() => ref.current, () => {\n if (!ref.current)\n return;\n /**\n * If the placeholder is still the default placeholder and it's a disabled date, find\n * the first available date in the calendar view and set it as the placeholder.\n *\n * This prevents the placeholder from being a disabled date and no date being tabbable\n * preventing the user from entering the Calendar. If all dates in the view are\n * disabled, currently that is considered an error on the developer's part and should\n * be handled by them.\n *\n * Perhaps in the future we can introduce a dev-only log message to prevent this from\n * being a silent error.\n */\n if (placeholder.current &&\n isSameDay(placeholder.current, defaultPlaceholder) &&\n isDisabled(defaultPlaceholder)) {\n placeholder.current =\n getFirstNonDisabledDateInView(ref.current) ?? defaultPlaceholder;\n }\n });\n}\nexport function getDateWithPreviousTime(date, prev) {\n if (!date || !prev)\n return date;\n if (hasTime(date) && hasTime(prev)) {\n return date.set({\n hour: prev.hour,\n minute: prev.minute,\n millisecond: prev.millisecond,\n second: prev.second,\n });\n }\n return date;\n}\nexport const calendarAttrs = createBitsAttrs({\n component: \"calendar\",\n parts: [\n \"root\",\n \"grid\",\n \"cell\",\n \"next-button\",\n \"prev-button\",\n \"day\",\n \"grid-body\",\n \"grid-head\",\n \"grid-row\",\n \"head-cell\",\n \"header\",\n \"heading\",\n \"month-select\",\n \"year-select\",\n ],\n});\nexport function getDefaultYears(opts) {\n const currentYear = new Date().getFullYear();\n const latestYear = Math.max(opts.placeholderYear, currentYear);\n // use minValue/maxValue as boundaries if provided, otherwise calculate default range\n let minYear;\n let maxYear;\n if (opts.minValue) {\n minYear = opts.minValue.year;\n }\n else {\n // (111 years: latestYear - 100 to latestYear + 10)\n const initialMinYear = latestYear - 100;\n minYear =\n opts.placeholderYear < initialMinYear ? opts.placeholderYear - 10 : initialMinYear;\n }\n if (opts.maxValue) {\n maxYear = opts.maxValue.year;\n }\n else {\n maxYear = latestYear + 10;\n }\n // ensure we have at least one year and minYear <= maxYear\n if (minYear > maxYear) {\n minYear = maxYear;\n }\n const totalYears = maxYear - minYear + 1;\n return Array.from({ length: totalYears }, (_, i) => minYear + i);\n}\n","import { getLocalTimeZone, isSameDay, isSameMonth, isToday, } from \"@internationalized/date\";\nimport { DEV } from \"esm-env\";\nimport { onMount, untrack } from \"svelte\";\nimport { attachRef, DOMContext, } from \"svelte-toolbelt\";\nimport { Context, watch } from \"runed\";\nimport { boolToStr, boolToStrTrueOrUndef, boolToEmptyStrOrUndef } from \"../../internal/attrs.js\";\nimport { useId } from \"../../internal/use-id.js\";\nimport { getAnnouncer } from \"../../internal/date-time/announcer.js\";\nimport { createFormatter } from \"../../internal/date-time/formatter.js\";\nimport { calendarAttrs, createAccessibleHeading, createMonths, getCalendarElementProps, getCalendarHeadingValue, getDateWithPreviousTime, getDefaultYears, getIsNextButtonDisabled, getIsPrevButtonDisabled, getWeekdays, handleCalendarKeydown, handleCalendarNextPage, handleCalendarPrevPage, shiftCalendarFocus, useEnsureNonDisabledPlaceholder, useMonthViewOptionsSync, useMonthViewPlaceholderSync, } from \"../../internal/date-time/calendar-helpers.svelte.js\";\nimport { getDateValueType, isBefore, toDate } from \"../../internal/date-time/utils.js\";\nexport const CalendarRootContext = new Context(\"Calendar.Root | RangeCalender.Root\");\nexport class CalendarRootState {\n static create(opts) {\n return CalendarRootContext.set(new CalendarRootState(opts));\n }\n opts;\n visibleMonths = $derived.by(() => this.months.map((month) => month.value));\n formatter;\n accessibleHeadingId = useId();\n domContext;\n attachment;\n months = $state([]);\n announcer;\n constructor(opts) {\n this.opts = opts;\n this.attachment = attachRef(this.opts.ref);\n this.domContext = new DOMContext(opts.ref);\n this.announcer = getAnnouncer(null);\n this.formatter = createFormatter({\n initialLocale: this.opts.locale.current,\n monthFormat: this.opts.monthFormat,\n yearFormat: this.opts.yearFormat,\n });\n this.setMonths = this.setMonths.bind(this);\n this.nextPage = this.nextPage.bind(this);\n this.prevPage = this.prevPage.bind(this);\n this.prevYear = this.prevYear.bind(this);\n this.nextYear = this.nextYear.bind(this);\n this.setYear = this.setYear.bind(this);\n this.setMonth = this.setMonth.bind(this);\n this.isOutsideVisibleMonths = this.isOutsideVisibleMonths.bind(this);\n this.isDateDisabled = this.isDateDisabled.bind(this);\n this.isDateSelected = this.isDateSelected.bind(this);\n this.shiftFocus = this.shiftFocus.bind(this);\n this.handleCellClick = this.handleCellClick.bind(this);\n this.handleMultipleUpdate = this.handleMultipleUpdate.bind(this);\n this.handleSingleUpdate = this.handleSingleUpdate.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n this.getBitsAttr = this.getBitsAttr.bind(this);\n onMount(() => {\n this.announcer = getAnnouncer(this.domContext.getDocument());\n });\n this.months = createMonths({\n dateObj: this.opts.placeholder.current,\n weekStartsOn: this.opts.weekStartsOn.current,\n locale: this.opts.locale.current,\n fixedWeeks: this.opts.fixedWeeks.current,\n numberOfMonths: this.opts.numberOfMonths.current,\n });\n this.#setupInitialFocusEffect();\n this.#setupAccessibleHeadingEffect();\n this.#setupFormatterEffect();\n /**\n * Updates the displayed months based on changes in the placeholder value.\n */\n useMonthViewPlaceholderSync({\n placeholder: this.opts.placeholder,\n getVisibleMonths: () => this.visibleMonths,\n weekStartsOn: this.opts.weekStartsOn,\n locale: this.opts.locale,\n fixedWeeks: this.opts.fixedWeeks,\n numberOfMonths: this.opts.numberOfMonths,\n setMonths: (months) => (this.months = months),\n });\n /**\n * Updates the displayed months based on changes in the options values,\n * which determines the month to show in the calendar.\n */\n useMonthViewOptionsSync({\n fixedWeeks: this.opts.fixedWeeks,\n locale: this.opts.locale,\n numberOfMonths: this.opts.numberOfMonths,\n placeholder: this.opts.placeholder,\n setMonths: this.setMonths,\n weekStartsOn: this.opts.weekStartsOn,\n });\n /**\n * Update the accessible heading's text content when the `fullCalendarLabel`\n * changes.\n */\n watch(() => this.fullCalendarLabel, (label) => {\n const node = this.domContext.getElementById(this.accessibleHeadingId);\n if (!node)\n return;\n node.textContent = label;\n });\n /**\n * Synchronize the placeholder value with the current value.\n */\n watch(() => this.opts.value.current, () => {\n const value = this.opts.value.current;\n if (Array.isArray(value) && value.length) {\n const lastValue = value[value.length - 1];\n if (lastValue && this.opts.placeholder.current !== lastValue) {\n this.opts.placeholder.current = lastValue;\n }\n }\n else if (!Array.isArray(value) &&\n value &&\n this.opts.placeholder.current !== value) {\n this.opts.placeholder.current = value;\n }\n });\n useEnsureNonDisabledPlaceholder({\n placeholder: opts.placeholder,\n defaultPlaceholder: opts.defaultPlaceholder,\n isDateDisabled: opts.isDateDisabled,\n maxValue: opts.maxValue,\n minValue: opts.minValue,\n ref: opts.ref,\n });\n }\n setMonths(months) {\n this.months = months;\n }\n /**\n * This derived state holds an array of localized day names for the current\n * locale and calendar view. It dynamically syncs with the 'weekStartsOn' option,\n * updating its content when the option changes. Using this state to render the\n * calendar's days of the week is strongly recommended, as it guarantees that\n * the days are correctly formatted for the current locale and calendar view.\n */\n weekdays = $derived.by(() => {\n return getWeekdays({\n months: this.months,\n formatter: this.formatter,\n weekdayFormat: this.opts.weekdayFormat.current,\n });\n });\n initialPlaceholderYear = $derived.by(() => untrack(() => this.opts.placeholder.current.year));\n defaultYears = $derived.by(() => {\n return getDefaultYears({\n minValue: this.opts.minValue.current,\n maxValue: this.opts.maxValue.current,\n placeholderYear: this.initialPlaceholderYear,\n });\n });\n #setupInitialFocusEffect() {\n $effect(() => {\n const initialFocus = untrack(() => this.opts.initialFocus.current);\n if (initialFocus) {\n // focus the first `data-focused` day node\n const firstFocusedDay = this.opts.ref.current?.querySelector(`[data-focused]`);\n if (firstFocusedDay) {\n firstFocusedDay.focus();\n }\n }\n });\n }\n #setupAccessibleHeadingEffect() {\n $effect(() => {\n if (!this.opts.ref.current)\n return;\n const removeHeading = createAccessibleHeading({\n calendarNode: this.opts.ref.current,\n label: this.fullCalendarLabel,\n accessibleHeadingId: this.accessibleHeadingId,\n });\n return removeHeading;\n });\n }\n #setupFormatterEffect() {\n $effect.pre(() => {\n if (this.formatter.getLocale() === this.opts.locale.current)\n return;\n this.formatter.setLocale(this.opts.locale.current);\n });\n }\n /**\n * Navigates to the next page of the calendar.\n */\n nextPage() {\n handleCalendarNextPage({\n fixedWeeks: this.opts.fixedWeeks.current,\n locale: this.opts.locale.current,\n numberOfMonths: this.opts.numberOfMonths.current,\n pagedNavigation: this.opts.pagedNavigation.current,\n setMonths: this.setMonths,\n setPlaceholder: (date) => (this.opts.placeholder.current = date),\n weekStartsOn: this.opts.weekStartsOn.current,\n months: this.months,\n });\n }\n /**\n * Navigates to the previous page of the calendar.\n */\n prevPage() {\n handleCalendarPrevPage({\n fixedWeeks: this.opts.fixedWeeks.current,\n locale: this.opts.locale.current,\n numberOfMonths: this.opts.numberOfMonths.current,\n pagedNavigation: this.opts.pagedNavigation.current,\n setMonths: this.setMonths,\n setPlaceholder: (date) => (this.opts.placeholder.current = date),\n weekStartsOn: this.opts.weekStartsOn.current,\n months: this.months,\n });\n }\n nextYear() {\n this.opts.placeholder.current = this.opts.placeholder.current.add({ years: 1 });\n }\n prevYear() {\n this.opts.placeholder.current = this.opts.placeholder.current.subtract({ years: 1 });\n }\n setYear(year) {\n this.opts.placeholder.current = this.opts.placeholder.current.set({ year });\n }\n setMonth(month) {\n this.opts.placeholder.current = this.opts.placeholder.current.set({ month });\n }\n isNextButtonDisabled = $derived.by(() => {\n return getIsNextButtonDisabled({\n maxValue: this.opts.maxValue.current,\n months: this.months,\n disabled: this.opts.disabled.current,\n });\n });\n isPrevButtonDisabled = $derived.by(() => {\n return getIsPrevButtonDisabled({\n minValue: this.opts.minValue.current,\n months: this.months,\n disabled: this.opts.disabled.current,\n });\n });\n isInvalid = $derived.by(() => {\n const value = this.opts.value.current;\n const isDateDisabled = this.opts.isDateDisabled.current;\n const isDateUnavailable = this.opts.isDateUnavailable.current;\n if (Array.isArray(value)) {\n if (!value.length)\n return false;\n for (const date of value) {\n if (isDateDisabled(date))\n return true;\n if (isDateUnavailable(date))\n return true;\n }\n }\n else {\n if (!value)\n return false;\n if (isDateDisabled(value))\n return true;\n if (isDateUnavailable(value))\n return true;\n }\n return false;\n });\n headingValue = $derived.by(() => {\n this.opts.monthFormat.current;\n this.opts.yearFormat.current;\n return getCalendarHeadingValue({\n months: this.months,\n formatter: this.formatter,\n locale: this.opts.locale.current,\n });\n });\n fullCalendarLabel = $derived.by(() => {\n return `${this.opts.calendarLabel.current} ${this.headingValue}`;\n });\n isOutsideVisibleMonths(date) {\n return !this.visibleMonths.some((month) => isSameMonth(date, month));\n }\n isDateDisabled(date) {\n if (this.opts.isDateDisabled.current(date) || this.opts.disabled.current)\n return true;\n const minValue = this.opts.minValue.current;\n const maxValue = this.opts.maxValue.current;\n if (minValue && isBefore(date, minValue))\n return true;\n if (maxValue && isBefore(maxValue, date))\n return true;\n return false;\n }\n isDateSelected(date) {\n const value = this.opts.value.current;\n if (Array.isArray(value)) {\n return value.some((d) => isSameDay(d, date));\n }\n else if (!value) {\n return false;\n }\n return isSameDay(value, date);\n }\n shiftFocus(node, add) {\n return shiftCalendarFocus({\n node,\n add,\n placeholder: this.opts.placeholder,\n calendarNode: this.opts.ref.current,\n isPrevButtonDisabled: this.isPrevButtonDisabled,\n isNextButtonDisabled: this.isNextButtonDisabled,\n months: this.months,\n numberOfMonths: this.opts.numberOfMonths.current,\n });\n }\n #isMultipleSelectionValid(selectedDates) {\n // only validate for multiple type and when maxDays is set\n if (this.opts.type.current !== \"multiple\")\n return true;\n if (!this.opts.maxDays.current)\n return true;\n const selectedCount = selectedDates.length;\n if (this.opts.maxDays.current && selectedCount > this.opts.maxDays.current)\n return false;\n return true;\n }\n handleCellClick(_, date) {\n if (this.opts.readonly.current ||\n this.opts.isDateDisabled.current?.(date) ||\n this.opts.isDateUnavailable.current?.(date)) {\n return;\n }\n const prev = this.opts.value.current;\n const multiple = this.opts.type.current === \"multiple\";\n if (multiple) {\n if (Array.isArray(prev) || prev === undefined) {\n this.opts.value.current = this.handleMultipleUpdate(prev, date);\n }\n }\n else if (!Array.isArray(prev)) {\n const next = this.handleSingleUpdate(prev, date);\n if (!next) {\n this.announcer.announce(\"Selected date is now empty.\", \"polite\", 5000);\n }\n else {\n this.announcer.announce(`Selected Date: ${this.formatter.selectedDate(next, false)}`, \"polite\");\n }\n this.opts.value.current = getDateWithPreviousTime(next, prev);\n if (next !== undefined) {\n this.opts.onDateSelect?.current?.();\n }\n }\n }\n handleMultipleUpdate(prev, date) {\n if (!prev) {\n const newSelection = [date];\n return this.#isMultipleSelectionValid(newSelection) ? newSelection : [date];\n }\n if (!Array.isArray(prev)) {\n if (DEV)\n throw new Error(\"Invalid value for multiple prop.\");\n return;\n }\n const index = prev.findIndex((d) => isSameDay(d, date));\n const preventDeselect = this.opts.preventDeselect.current;\n if (index === -1) {\n // adding a new date - check if it would be valid\n const newSelection = [...prev, date];\n if (this.#isMultipleSelectionValid(newSelection)) {\n return newSelection;\n }\n else {\n // reset to just the newly selected date when constraints are violated\n return [date];\n }\n }\n else if (preventDeselect) {\n return prev;\n }\n else {\n const next = prev.filter((d) => !isSameDay(d, date));\n if (!next.length) {\n this.opts.placeholder.current = date;\n return undefined;\n }\n return next;\n }\n }\n handleSingleUpdate(prev, date) {\n if (Array.isArray(prev)) {\n if (DEV)\n throw new Error(\"Invalid value for single prop.\");\n }\n if (!prev)\n return date;\n const preventDeselect = this.opts.preventDeselect.current;\n if (!preventDeselect && isSameDay(prev, date)) {\n this.opts.placeholder.current = date;\n return undefined;\n }\n return date;\n }\n onkeydown(event) {\n handleCalendarKeydown({\n event,\n handleCellClick: this.handleCellClick,\n shiftFocus: this.shiftFocus,\n placeholderValue: this.opts.placeholder.current,\n });\n }\n snippetProps = $derived.by(() => ({\n months: this.months,\n weekdays: this.weekdays,\n }));\n getBitsAttr = (part) => {\n return calendarAttrs.getAttr(part);\n };\n props = $derived.by(() => ({\n ...getCalendarElementProps({\n fullCalendarLabel: this.fullCalendarLabel,\n id: this.opts.id.current,\n isInvalid: this.isInvalid,\n disabled: this.opts.disabled.current,\n readonly: this.opts.readonly.current,\n }),\n [this.getBitsAttr(\"root\")]: \"\",\n //\n onkeydown: this.onkeydown,\n ...this.attachment,\n }));\n}\nexport class CalendarHeadingState {\n static create(opts) {\n return new CalendarHeadingState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"aria-hidden\": boolToStrTrueOrUndef(true),\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"heading\")]: \"\",\n ...this.attachment,\n }));\n}\nconst CalendarCellContext = new Context(\"Calendar.Cell | RangeCalendar.Cell\");\nexport class CalendarCellState {\n static create(opts) {\n return CalendarCellContext.set(new CalendarCellState(opts, CalendarRootContext.get()));\n }\n opts;\n root;\n cellDate = $derived.by(() => toDate(this.opts.date.current));\n isUnavailable = $derived.by(() => this.root.opts.isDateUnavailable.current(this.opts.date.current));\n isDateToday = $derived.by(() => isToday(this.opts.date.current, getLocalTimeZone()));\n isOutsideMonth = $derived.by(() => !isSameMonth(this.opts.date.current, this.opts.month.current));\n isOutsideVisibleMonths = $derived.by(() => this.root.isOutsideVisibleMonths(this.opts.date.current));\n isDisabled = $derived.by(() => this.root.isDateDisabled(this.opts.date.current) ||\n (this.isOutsideMonth && this.root.opts.disableDaysOutsideMonth.current));\n isFocusedDate = $derived.by(() => isSameDay(this.opts.date.current, this.root.opts.placeholder.current));\n isSelectedDate = $derived.by(() => this.root.isDateSelected(this.opts.date.current));\n labelText = $derived.by(() => this.root.formatter.custom(this.cellDate, {\n weekday: \"long\",\n month: \"long\",\n day: \"numeric\",\n year: \"numeric\",\n }));\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n snippetProps = $derived.by(() => ({\n disabled: this.isDisabled,\n unavailable: this.isUnavailable,\n selected: this.isSelectedDate,\n day: `${this.opts.date.current.day}`,\n }));\n ariaDisabled = $derived.by(() => {\n return (this.isDisabled ||\n (this.isOutsideMonth && this.root.opts.disableDaysOutsideMonth.current) ||\n this.isUnavailable);\n });\n sharedDataAttrs = $derived.by(() => ({\n \"data-unavailable\": boolToEmptyStrOrUndef(this.isUnavailable),\n \"data-today\": this.isDateToday ? \"\" : undefined,\n \"data-outside-month\": this.isOutsideMonth ? \"\" : undefined,\n \"data-outside-visible-months\": this.isOutsideVisibleMonths ? \"\" : undefined,\n \"data-focused\": this.isFocusedDate ? \"\" : undefined,\n \"data-selected\": boolToEmptyStrOrUndef(this.isSelectedDate),\n \"data-value\": this.opts.date.current.toString(),\n \"data-type\": getDateValueType(this.opts.date.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.isDisabled ||\n (this.isOutsideMonth && this.root.opts.disableDaysOutsideMonth.current)),\n }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"gridcell\",\n \"aria-selected\": boolToStr(this.isSelectedDate),\n \"aria-disabled\": boolToStr(this.ariaDisabled),\n ...this.sharedDataAttrs,\n [this.root.getBitsAttr(\"cell\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarDayState {\n static create(opts) {\n return new CalendarDayState(opts, CalendarCellContext.get());\n }\n opts;\n cell;\n attachment;\n constructor(opts, cell) {\n this.opts = opts;\n this.cell = cell;\n this.onclick = this.onclick.bind(this);\n this.attachment = attachRef(this.opts.ref);\n }\n #tabindex = $derived.by(() => (this.cell.isOutsideMonth && this.cell.root.opts.disableDaysOutsideMonth.current) ||\n this.cell.isDisabled\n ? undefined\n : this.cell.isFocusedDate\n ? 0\n : -1);\n onclick(e) {\n if (this.cell.isDisabled)\n return;\n this.cell.root.handleCellClick(e, this.cell.opts.date.current);\n }\n snippetProps = $derived.by(() => ({\n disabled: this.cell.isDisabled,\n unavailable: this.cell.isUnavailable,\n selected: this.cell.isSelectedDate,\n day: `${this.cell.opts.date.current.day}`,\n }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"button\",\n \"aria-label\": this.cell.labelText,\n \"aria-disabled\": boolToStr(this.cell.ariaDisabled),\n ...this.cell.sharedDataAttrs,\n tabindex: this.#tabindex,\n [this.cell.root.getBitsAttr(\"day\")]: \"\",\n // Shared logic for range calendar and calendar\n \"data-bits-day\": \"\",\n //\n onclick: this.onclick,\n ...this.attachment,\n }));\n}\nexport class CalendarNextButtonState {\n static create(opts) {\n return new CalendarNextButtonState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n isDisabled = $derived.by(() => this.root.isNextButtonDisabled);\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.onclick = this.onclick.bind(this);\n this.attachment = attachRef(this.opts.ref);\n }\n onclick(_) {\n if (this.isDisabled)\n return;\n this.root.nextPage();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"button\",\n type: \"button\",\n \"aria-label\": \"Next\",\n \"aria-disabled\": boolToStr(this.isDisabled),\n \"data-disabled\": boolToEmptyStrOrUndef(this.isDisabled),\n disabled: this.isDisabled,\n [this.root.getBitsAttr(\"next-button\")]: \"\",\n //\n onclick: this.onclick,\n ...this.attachment,\n }));\n}\nexport class CalendarPrevButtonState {\n static create(opts) {\n return new CalendarPrevButtonState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n isDisabled = $derived.by(() => this.root.isPrevButtonDisabled);\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.onclick = this.onclick.bind(this);\n this.attachment = attachRef(this.opts.ref);\n }\n onclick(_) {\n if (this.isDisabled)\n return;\n this.root.prevPage();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"button\",\n type: \"button\",\n \"aria-label\": \"Previous\",\n \"aria-disabled\": boolToStr(this.isDisabled),\n \"data-disabled\": boolToEmptyStrOrUndef(this.isDisabled),\n disabled: this.isDisabled,\n [this.root.getBitsAttr(\"prev-button\")]: \"\",\n //\n onclick: this.onclick,\n ...this.attachment,\n }));\n}\nexport class CalendarGridState {\n static create(opts) {\n return new CalendarGridState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n tabindex: -1,\n role: \"grid\",\n \"aria-readonly\": boolToStr(this.root.opts.readonly.current),\n \"aria-disabled\": boolToStr(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n [this.root.getBitsAttr(\"grid\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarGridBodyState {\n static create(opts) {\n return new CalendarGridBodyState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"grid-body\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarGridHeadState {\n static create(opts) {\n return new CalendarGridHeadState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"grid-head\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarGridRowState {\n static create(opts) {\n return new CalendarGridRowState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"grid-row\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarHeadCellState {\n static create(opts) {\n return new CalendarHeadCellState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"head-cell\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarHeaderState {\n static create(opts) {\n return new CalendarHeaderState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"header\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarMonthSelectState {\n static create(opts) {\n return new CalendarMonthSelectState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.onchange = this.onchange.bind(this);\n this.attachment = attachRef(this.opts.ref);\n }\n monthItems = $derived.by(() => {\n this.root.opts.locale.current;\n const monthNumbers = this.opts.months.current;\n const monthFormat = this.opts.monthFormat.current;\n const months = [];\n for (const month of monthNumbers) {\n // create a date with the current year and the month to get localized name\n const date = this.root.opts.placeholder.current.set({ month });\n let label;\n if (typeof monthFormat === \"function\") {\n label = monthFormat(month);\n }\n else {\n label = this.root.formatter.custom(toDate(date), { month: monthFormat });\n }\n months.push({\n value: month,\n label,\n });\n }\n return months;\n });\n currentMonth = $derived.by(() => this.root.opts.placeholder.current.month);\n isDisabled = $derived.by(() => this.root.opts.disabled.current || this.opts.disabled.current);\n snippetProps = $derived.by(() => {\n return {\n monthItems: this.monthItems,\n selectedMonthItem: this.monthItems.find((month) => month.value === this.currentMonth),\n };\n });\n onchange(event) {\n if (this.isDisabled)\n return;\n const target = event.target;\n const month = parseInt(target.value, 10);\n if (!isNaN(month)) {\n this.root.opts.placeholder.current = this.root.opts.placeholder.current.set({ month });\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n value: this.currentMonth,\n disabled: this.isDisabled,\n \"data-disabled\": boolToEmptyStrOrUndef(this.isDisabled),\n [this.root.getBitsAttr(\"month-select\")]: \"\",\n //\n onchange: this.onchange,\n ...this.attachment,\n }));\n}\nexport class CalendarYearSelectState {\n static create(opts) {\n return new CalendarYearSelectState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.onchange = this.onchange.bind(this);\n this.attachment = attachRef(this.opts.ref);\n }\n years = $derived.by(() => {\n if (this.opts.years.current && this.opts.years.current.length)\n return this.opts.years.current;\n return this.root.defaultYears;\n });\n yearItems = $derived.by(() => {\n this.root.opts.locale.current;\n const yearFormat = this.opts.yearFormat.current;\n const localYears = [];\n for (const year of this.years) {\n // create a date with the year to get localized formatting\n const date = this.root.opts.placeholder.current.set({ year });\n let label;\n if (typeof yearFormat === \"function\") {\n label = yearFormat(year);\n }\n else {\n label = this.root.formatter.custom(toDate(date), { year: yearFormat });\n }\n localYears.push({\n value: year,\n label,\n });\n }\n return localYears;\n });\n currentYear = $derived.by(() => this.root.opts.placeholder.current.year);\n isDisabled = $derived.by(() => this.root.opts.disabled.current || this.opts.disabled.current);\n snippetProps = $derived.by(() => {\n return {\n yearItems: this.yearItems,\n selectedYearItem: this.yearItems.find((year) => year.value === this.currentYear),\n };\n });\n onchange(event) {\n if (this.isDisabled)\n return;\n const target = event.target;\n const year = parseInt(target.value, 10);\n if (!isNaN(year)) {\n this.root.opts.placeholder.current = this.root.opts.placeholder.current.set({ year });\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n value: this.currentYear,\n disabled: this.isDisabled,\n \"data-disabled\": boolToEmptyStrOrUndef(this.isDisabled),\n [this.root.getBitsAttr(\"year-select\")]: \"\",\n //\n onchange: this.onchange,\n ...this.attachment,\n }));\n}\n","<script lang=\"ts\">\n\timport { watch } from \"runed\";\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { type DateValue } from \"@internationalized/date\";\n\timport { CalendarRootState } from \"../calendar.svelte.js\";\n\timport type { CalendarRootProps } from \"../types.js\";\n\timport { useId } from \"../../../internal/use-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { getDefaultDate } from \"../../../internal/date-time/utils.js\";\n\timport { resolveLocaleProp } from \"../../utilities/config/prop-resolvers.js\";\n\n\tlet {\n\t\tchild,\n\t\tchildren,\n\t\tid = useId(),\n\t\tref = $bindable(null),\n\t\tvalue = $bindable(),\n\t\tonValueChange = noop,\n\t\tplaceholder = $bindable(),\n\t\tonPlaceholderChange = noop,\n\t\tweekdayFormat = \"narrow\",\n\t\tweekStartsOn,\n\t\tpagedNavigation = false,\n\t\tisDateDisabled = () => false,\n\t\tisDateUnavailable = () => false,\n\t\tfixedWeeks = false,\n\t\tnumberOfMonths = 1,\n\t\tlocale,\n\t\tcalendarLabel = \"Event\",\n\t\tdisabled = false,\n\t\treadonly = false,\n\t\tminValue = undefined,\n\t\tmaxValue = undefined,\n\t\tpreventDeselect = false,\n\t\ttype,\n\t\tdisableDaysOutsideMonth = true,\n\t\tinitialFocus = false,\n\t\tmaxDays,\n\t\tmonthFormat = \"long\",\n\t\tyearFormat = \"numeric\",\n\t\t...restProps\n\t}: CalendarRootProps = $props();\n\n\tconst defaultPlaceholder = getDefaultDate({\n\t\tdefaultValue: value,\n\t\tminValue,\n\t\tmaxValue,\n\t});\n\n\tfunction handleDefaultPlaceholder() {\n\t\tif (placeholder !== undefined) return;\n\t\tplaceholder = defaultPlaceholder;\n\t}\n\n\t// SSR\n\thandleDefaultPlaceholder();\n\n\twatch.pre(\n\t\t() => placeholder,\n\t\t() => {\n\t\t\thandleDefaultPlaceholder();\n\t\t}\n\t);\n\n\tfunction handleDefaultValue() {\n\t\tif (value !== undefined) return;\n\t\tvalue = type === \"single\" ? undefined : [];\n\t}\n\n\t// SSR\n\thandleDefaultValue();\n\n\twatch.pre(\n\t\t() => value,\n\t\t() => {\n\t\t\thandleDefaultValue();\n\t\t}\n\t);\n\n\tconst rootState = CalendarRootState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tweekdayFormat: boxWith(() => weekdayFormat),\n\t\tweekStartsOn: boxWith(() => weekStartsOn),\n\t\tpagedNavigation: boxWith(() => pagedNavigation),\n\t\tisDateDisabled: boxWith(() => isDateDisabled),\n\t\tisDateUnavailable: boxWith(() => isDateUnavailable),\n\t\tfixedWeeks: boxWith(() => fixedWeeks),\n\t\tnumberOfMonths: boxWith(() => numberOfMonths),\n\t\tlocale: resolveLocaleProp(() => locale),\n\t\tcalendarLabel: boxWith(() => calendarLabel),\n\t\treadonly: boxWith(() => readonly),\n\t\tdisabled: boxWith(() => disabled),\n\t\tminValue: boxWith(() => minValue),\n\t\tmaxValue: boxWith(() => maxValue),\n\t\tdisableDaysOutsideMonth: boxWith(() => disableDaysOutsideMonth),\n\t\tinitialFocus: boxWith(() => initialFocus),\n\t\tmaxDays: boxWith(() => maxDays),\n\t\tplaceholder: boxWith(\n\t\t\t() => placeholder as DateValue,\n\t\t\t(v) => {\n\t\t\t\tplaceholder = v;\n\t\t\t\tonPlaceholderChange(v as DateValue);\n\t\t\t}\n\t\t),\n\t\tpreventDeselect: boxWith(() => preventDeselect),\n\t\tvalue: boxWith(\n\t\t\t() => value,\n\t\t\t(v) => {\n\t\t\t\tvalue = v;\n\t\t\t\t// oxlint-disable-next-line no-explicit-any\n\t\t\t\tonValueChange(v as any);\n\t\t\t}\n\t\t),\n\t\ttype: boxWith(() => type),\n\t\tmonthFormat: boxWith(() => monthFormat),\n\t\tyearFormat: boxWith(() => yearFormat),\n\t\tdefaultPlaceholder,\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, rootState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps, ...rootState.snippetProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.(rootState.snippetProps)}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarDayState } from \"../calendar.svelte.js\";\n\timport type { CalendarDayProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarDayProps = $props();\n\n\tconst dayState = CalendarDayState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, dayState.props));\n</script>\n\n{#if child}\n\t{@render child({\n\t\tprops: mergedProps,\n\t\t...dayState.snippetProps,\n\t})}\n{:else}\n\t<div {...mergedProps}>\n\t\t{#if children}\n\t\t\t{@render children?.(dayState.snippetProps)}\n\t\t{:else}\n\t\t\t{dayState.cell.opts.date.current.day}\n\t\t{/if}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarGridState } from \"../calendar.svelte.js\";\n\timport type { CalendarGridProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarGridProps = $props();\n\n\tconst gridState = CalendarGridState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, gridState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<table {...mergedProps}>\n\t\t{@render children?.()}\n\t</table>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { CalendarGridBodyProps } from \"../types.js\";\n\timport { CalendarGridBodyState } from \"../calendar.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarGridBodyProps = $props();\n\n\tconst gridBodyState = CalendarGridBodyState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, gridBodyState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<tbody {...mergedProps}>\n\t\t{@render children?.()}\n\t</tbody>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarCellState } from \"../calendar.svelte.js\";\n\timport type { CalendarCellProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tdate,\n\t\tmonth,\n\t\t...restProps\n\t}: CalendarCellProps = $props();\n\n\tconst cellState = CalendarCellState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdate: boxWith(() => date),\n\t\tmonth: boxWith(() => month),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, cellState.props));\n</script>\n\n{#if child}\n\t{@render child({\n\t\tprops: mergedProps,\n\t\t...cellState.snippetProps,\n\t})}\n{:else}\n\t<td {...mergedProps}>\n\t\t{@render children?.(cellState.snippetProps)}\n\t</td>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarGridHeadState } from \"../calendar.svelte.js\";\n\timport type { CalendarGridHeadProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarGridHeadProps = $props();\n\n\tconst gridHeadState = CalendarGridHeadState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, gridHeadState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<thead {...mergedProps}>\n\t\t{@render children?.()}\n\t</thead>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarHeadCellState } from \"../calendar.svelte.js\";\n\timport type { CalendarHeadCellProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarHeadCellProps = $props();\n\n\tconst headCellState = CalendarHeadCellState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, headCellState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<th {...mergedProps}>\n\t\t{@render children?.()}\n\t</th>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarGridRowState } from \"../calendar.svelte.js\";\n\timport type { CalendarGridRowProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarGridRowProps = $props();\n\n\tconst gridRowState = CalendarGridRowState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, gridRowState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<tr {...mergedProps}>\n\t\t{@render children?.()}\n\t</tr>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarHeaderState } from \"../calendar.svelte.js\";\n\timport type { CalendarHeaderProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarHeaderProps = $props();\n\n\tconst headerState = CalendarHeaderState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, headerState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<header {...mergedProps}>\n\t\t{@render children?.()}\n\t</header>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { CalendarMonthSelectProps } from \"../types.js\";\n\timport { CalendarMonthSelectState } from \"../calendar.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tmonths = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],\n\t\tmonthFormat = \"long\",\n\t\tdisabled = false,\n\t\t\"aria-label\": ariaLabel = \"Select a month\",\n\t\t...restProps\n\t}: CalendarMonthSelectProps = $props();\n\n\tconst monthSelectState = CalendarMonthSelectState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tmonths: boxWith(() => months),\n\t\tmonthFormat: boxWith(() => monthFormat),\n\t\tdisabled: boxWith(() => Boolean(disabled)),\n\t});\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, monthSelectState.props, { \"aria-label\": ariaLabel })\n\t);\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps, ...monthSelectState.snippetProps })}\n{:else}\n\t<select {...mergedProps}>\n\t\t{#if children}\n\t\t\t{@render children?.(monthSelectState.snippetProps)}\n\t\t{:else}\n\t\t\t{#each monthSelectState.monthItems as month (month.value)}\n\t\t\t\t<option\n\t\t\t\t\tvalue={month.value}\n\t\t\t\t\tselected={month.value === monthSelectState.currentMonth}\n\t\t\t\t>\n\t\t\t\t\t{month.label}\n\t\t\t\t</option>\n\t\t\t{/each}\n\t\t{/if}\n\t</select>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarNextButtonState } from \"../calendar.svelte.js\";\n\timport type { CalendarNextButtonProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\t// for safari\n\t\ttabindex = 0,\n\t\t...restProps\n\t}: CalendarNextButtonProps = $props();\n\n\tconst nextButtonState = CalendarNextButtonState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, nextButtonState.props, { tabindex }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { CalendarPrevButtonProps } from \"../types.js\";\n\timport { CalendarPrevButtonState } from \"../calendar.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\t// for safari\n\t\ttabindex = 0,\n\t\t...restProps\n\t}: CalendarPrevButtonProps = $props();\n\n\tconst prevButtonState = CalendarPrevButtonState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, prevButtonState.props, { tabindex }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { CalendarYearSelectProps } from \"../types.js\";\n\timport { CalendarYearSelectState } from \"../calendar.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tyears,\n\t\tyearFormat = \"numeric\",\n\t\tdisabled = false,\n\t\t\"aria-label\": ariaLabel = \"Select a year\",\n\t\t...restProps\n\t}: CalendarYearSelectProps = $props();\n\n\tconst yearSelectState = CalendarYearSelectState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tyears: boxWith(() => years),\n\t\tyearFormat: boxWith(() => yearFormat),\n\t\tdisabled: boxWith(() => Boolean(disabled)),\n\t});\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, yearSelectState.props, { \"aria-label\": ariaLabel })\n\t);\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps, ...yearSelectState.snippetProps })}\n{:else}\n\t<select {...mergedProps}>\n\t\t{#if children}\n\t\t\t{@render children?.(yearSelectState.snippetProps)}\n\t\t{:else}\n\t\t\t{#each yearSelectState.yearItems as year (year.value)}\n\t\t\t\t<option value={year.value} selected={year.value === yearSelectState.currentYear}>\n\t\t\t\t\t{year.label}\n\t\t\t\t</option>\n\t\t\t{/each}\n\t\t{/if}\n\t</select>\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m15 18-6-6 6-6\" }]];\n/**\n * @component @name ChevronLeft\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTUgMTgtNi02IDYtNiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/chevron-left\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chevron-left\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m9 18 6-6-6-6\" }]];\n/**\n * @component @name ChevronRight\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtOSAxOCA2LTYtNi02IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/chevron-right\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chevron-right\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M12 6v6l4 2\" }], [\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"10\" }]];\n/**\n * @component @name Clock\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgNnY2bDQgMiIgLz4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/clock\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"clock\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport * as Calendar from \"./index.js\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport type { ButtonVariant } from \"../button/button.svelte\";\n\timport { isEqualMonth, type DateValue } from \"@internationalized/date\";\n\timport type { Snippet } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tvalue = $bindable(),\n\t\tplaceholder = $bindable(),\n\t\tclass: className,\n\t\tweekdayFormat = \"short\",\n\t\tbuttonVariant = \"ghost\",\n\t\tcaptionLayout = \"label\",\n\t\tlocale = \"en-US\",\n\t\tmonths: monthsProp,\n\t\tyears,\n\t\tmonthFormat: monthFormatProp,\n\t\tyearFormat = \"numeric\",\n\t\tday,\n\t\tdisableDaysOutsideMonth = false,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<CalendarPrimitive.RootProps> & {\n\t\tbuttonVariant?: ButtonVariant;\n\t\tcaptionLayout?: \"dropdown\" | \"dropdown-months\" | \"dropdown-years\" | \"label\";\n\t\tmonths?: CalendarPrimitive.MonthSelectProps[\"months\"];\n\t\tyears?: CalendarPrimitive.YearSelectProps[\"years\"];\n\t\tmonthFormat?: CalendarPrimitive.MonthSelectProps[\"monthFormat\"];\n\t\tyearFormat?: CalendarPrimitive.YearSelectProps[\"yearFormat\"];\n\t\tday?: Snippet<[{ day: DateValue; outsideMonth: boolean }]>;\n\t} = $props();\n\n\tconst monthFormat = $derived.by(() => {\n\t\tif (monthFormatProp) return monthFormatProp;\n\t\tif (captionLayout.startsWith(\"dropdown\")) return \"short\";\n\t\treturn \"long\";\n\t});\n</script>\n\n<!--\nDiscriminated Unions + Destructing (required for bindable) do not\nget along, so we shut typescript up by casting `value` to `never`.\n-->\n<CalendarPrimitive.Root\n\tbind:value={value as never}\n\tbind:ref\n\tbind:placeholder\n\t{weekdayFormat}\n\t{disableDaysOutsideMonth}\n\tclass={cn(\n\t\t\"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent\",\n\t\tclassName\n\t)}\n\t{locale}\n\t{monthFormat}\n\t{yearFormat}\n\t{...restProps}\n>\n\t{#snippet children({ months, weekdays })}\n\t\t<Calendar.Months>\n\t\t\t<Calendar.Nav>\n\t\t\t\t<Calendar.PrevButton variant={buttonVariant} />\n\t\t\t\t<Calendar.NextButton variant={buttonVariant} />\n\t\t\t</Calendar.Nav>\n\t\t\t{#each months as month, monthIndex (month)}\n\t\t\t\t<Calendar.Month>\n\t\t\t\t\t<Calendar.Header>\n\t\t\t\t\t\t<Calendar.Caption\n\t\t\t\t\t\t\t{captionLayout}\n\t\t\t\t\t\t\tmonths={monthsProp}\n\t\t\t\t\t\t\t{monthFormat}\n\t\t\t\t\t\t\t{years}\n\t\t\t\t\t\t\t{yearFormat}\n\t\t\t\t\t\t\tmonth={month.value}\n\t\t\t\t\t\t\tbind:placeholder\n\t\t\t\t\t\t\t{locale}\n\t\t\t\t\t\t\t{monthIndex}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Calendar.Header>\n\t\t\t\t\t<Calendar.Grid>\n\t\t\t\t\t\t<Calendar.GridHead>\n\t\t\t\t\t\t\t<Calendar.GridRow class=\"select-none\">\n\t\t\t\t\t\t\t\t{#each weekdays as weekday (weekday)}\n\t\t\t\t\t\t\t\t\t<Calendar.HeadCell>\n\t\t\t\t\t\t\t\t\t\t{weekday.slice(0, 2)}\n\t\t\t\t\t\t\t\t\t</Calendar.HeadCell>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Calendar.GridRow>\n\t\t\t\t\t\t</Calendar.GridHead>\n\t\t\t\t\t\t<Calendar.GridBody>\n\t\t\t\t\t\t\t{#each month.weeks as weekDates (weekDates)}\n\t\t\t\t\t\t\t\t<Calendar.GridRow class=\"mt-2 w-full\">\n\t\t\t\t\t\t\t\t\t{#each weekDates as date (date)}\n\t\t\t\t\t\t\t\t\t\t<Calendar.Cell {date} month={month.value}>\n\t\t\t\t\t\t\t\t\t\t\t{#if day}\n\t\t\t\t\t\t\t\t\t\t\t\t{@render day({\n\t\t\t\t\t\t\t\t\t\t\t\t\tday: date,\n\t\t\t\t\t\t\t\t\t\t\t\t\toutsideMonth: !isEqualMonth(date, month.value),\n\t\t\t\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t<Calendar.Day />\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t</Calendar.Cell>\n\t\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t</Calendar.GridRow>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</Calendar.GridBody>\n\t\t\t\t\t</Calendar.Grid>\n\t\t\t\t</Calendar.Month>\n\t\t\t{/each}\n\t\t</Calendar.Months>\n\t{/snippet}\n</CalendarPrimitive.Root>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.CellProps = $props();\n</script>\n\n<CalendarPrimitive.Cell\n\tbind:ref\n\tclass={cn(\n\t\t\"relative size-(--cell-size) p-0 text-center text-sm focus-within:z-20 [&:first-child[data-selected]_[data-bits-day]]:rounded-s-md [&:last-child[data-selected]_[data-bits-day]]:rounded-e-md\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { buttonVariants } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.DayProps = $props();\n</script>\n\n<CalendarPrimitive.Day\n\tbind:ref\n\tclass={cn(\n\t\tbuttonVariants({ variant: \"ghost\" }),\n\t\t\"flex size-(--cell-size) flex-col items-center justify-center gap-1 p-0 leading-none font-normal whitespace-nowrap select-none\",\n\t\t\"[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground [&[data-today][data-disabled]]:text-muted-foreground\",\n\t\t\"data-[selected]:bg-primary dark:data-[selected]:hover:bg-accent/50 data-[selected]:text-primary-foreground\",\n\t\t// Outside months\n\t\t\"[&[data-outside-month]:not([data-selected])]:text-muted-foreground [&[data-outside-month]:not([data-selected])]:hover:text-accent-foreground\",\n\t\t// Disabled\n\t\t\"data-[disabled]:text-muted-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n\t\t// Unavailable\n\t\t\"data-[unavailable]:text-muted-foreground data-[unavailable]:line-through\",\n\t\t// hover\n\t\t\"dark:hover:text-accent-foreground\",\n\t\t// focus\n\t\t\"focus:border-ring focus:ring-ring/50 focus:relative\",\n\t\t// inner spans\n\t\t\"[&>span]:text-xs [&>span]:opacity-70\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.GridProps = $props();\n</script>\n\n<CalendarPrimitive.Grid\n\tbind:ref\n\tclass={cn(\"mt-4 flex w-full border-collapse flex-col gap-1\", className)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.HeaderProps = $props();\n</script>\n\n<CalendarPrimitive.Header\n\tbind:ref\n\tclass={cn(\n\t\t\"flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tclass={cn(\"relative flex flex-col gap-4 md:flex-row\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.GridRowProps = $props();\n</script>\n\n<CalendarPrimitive.GridRow bind:ref class={cn(\"flex\", className)} {...restProps} />\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.GridBodyProps = $props();\n</script>\n\n<CalendarPrimitive.GridBody bind:ref class={cn(className)} {...restProps} />\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.GridHeadProps = $props();\n</script>\n\n<CalendarPrimitive.GridHead bind:ref class={cn(className)} {...restProps} />\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.HeadCellProps = $props();\n</script>\n\n<CalendarPrimitive.HeadCell\n\tbind:ref\n\tclass={cn(\n\t\t\"text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport ChevronRightIcon from \"@lucide/svelte/icons/chevron-right\";\n\timport { buttonVariants, type ButtonVariant } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\tvariant = \"ghost\",\n\t\t...restProps\n\t}: CalendarPrimitive.NextButtonProps & {\n\t\tvariant?: ButtonVariant;\n\t} = $props();\n</script>\n\n{#snippet Fallback()}\n\t<ChevronRightIcon class=\"size-4\" />\n{/snippet}\n\n<CalendarPrimitive.NextButton\n\tbind:ref\n\tclass={cn(\n\t\tbuttonVariants({ variant }),\n\t\t\"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180\",\n\t\tclassName\n\t)}\n\tchildren={children || Fallback}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport ChevronLeftIcon from \"@lucide/svelte/icons/chevron-left\";\n\timport { buttonVariants, type ButtonVariant } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\tvariant = \"ghost\",\n\t\t...restProps\n\t}: CalendarPrimitive.PrevButtonProps & {\n\t\tvariant?: ButtonVariant;\n\t} = $props();\n</script>\n\n{#snippet Fallback()}\n\t<ChevronLeftIcon class=\"size-4\" />\n{/snippet}\n\n<CalendarPrimitive.PrevButton\n\tbind:ref\n\tclass={cn(\n\t\tbuttonVariants({ variant }),\n\t\t\"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180\",\n\t\tclassName\n\t)}\n\tchildren={children || Fallback}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport ChevronDownIcon from \"@lucide/svelte/icons/chevron-down\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tvalue,\n\t\tonchange,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<CalendarPrimitive.MonthSelectProps> = $props();\n</script>\n\n<span\n\tclass={cn(\n\t\t\"has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]\",\n\t\tclassName\n\t)}\n>\n\t<CalendarPrimitive.MonthSelect bind:ref class=\"absolute inset-0 opacity-0\" {...restProps}>\n\t\t{#snippet child({ props, monthItems, selectedMonthItem })}\n\t\t\t<select {...props} {value} {onchange}>\n\t\t\t\t{#each monthItems as monthItem (monthItem.value)}\n\t\t\t\t\t<option\n\t\t\t\t\t\tvalue={monthItem.value}\n\t\t\t\t\t\tselected={value !== undefined\n\t\t\t\t\t\t\t? monthItem.value === value\n\t\t\t\t\t\t\t: monthItem.value === selectedMonthItem.value}\n\t\t\t\t\t>\n\t\t\t\t\t\t{monthItem.label}\n\t\t\t\t\t</option>\n\t\t\t\t{/each}\n\t\t\t</select>\n\t\t\t<span\n\t\t\t\tclass=\"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t>\n\t\t\t\t{monthItems.find((item) => item.value === value)?.label || selectedMonthItem.label}\n\t\t\t\t<ChevronDownIcon class=\"size-4\" />\n\t\t\t</span>\n\t\t{/snippet}\n\t</CalendarPrimitive.MonthSelect>\n</span>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport ChevronDownIcon from \"@lucide/svelte/icons/chevron-down\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tvalue,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<CalendarPrimitive.YearSelectProps> = $props();\n</script>\n\n<span\n\tclass={cn(\n\t\t\"has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]\",\n\t\tclassName\n\t)}\n>\n\t<CalendarPrimitive.YearSelect bind:ref class=\"absolute inset-0 opacity-0\" {...restProps}>\n\t\t{#snippet child({ props, yearItems, selectedYearItem })}\n\t\t\t<select {...props} {value}>\n\t\t\t\t{#each yearItems as yearItem (yearItem.value)}\n\t\t\t\t\t<option\n\t\t\t\t\t\tvalue={yearItem.value}\n\t\t\t\t\t\tselected={value !== undefined\n\t\t\t\t\t\t\t? yearItem.value === value\n\t\t\t\t\t\t\t: yearItem.value === selectedYearItem.value}\n\t\t\t\t\t>\n\t\t\t\t\t\t{yearItem.label}\n\t\t\t\t\t</option>\n\t\t\t\t{/each}\n\t\t\t</select>\n\t\t\t<span\n\t\t\t\tclass=\"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t>\n\t\t\t\t{yearItems.find((item) => item.value === value)?.label || selectedYearItem.label}\n\t\t\t\t<ChevronDownIcon class=\"size-4\" />\n\t\t\t</span>\n\t\t{/snippet}\n\t</CalendarPrimitive.YearSelect>\n</span>\n","<script lang=\"ts\">\n\timport { type WithElementRef, cn } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<div {...restProps} bind:this={ref} class={cn(\"flex flex-col\", className)}>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<nav\n\t{...restProps}\n\tbind:this={ref}\n\tclass={cn(\"absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1\", className)}\n>\n\t{@render children?.()}\n</nav>\n","<script lang=\"ts\">\n\timport type { ComponentProps } from \"svelte\";\n\timport type Calendar from \"./calendar.svelte\";\n\timport CalendarMonthSelect from \"./calendar-month-select.svelte\";\n\timport CalendarYearSelect from \"./calendar-year-select.svelte\";\n\timport { DateFormatter, getLocalTimeZone, type DateValue } from \"@internationalized/date\";\n\n\tlet {\n\t\tcaptionLayout,\n\t\tmonths,\n\t\tmonthFormat,\n\t\tyears,\n\t\tyearFormat,\n\t\tmonth,\n\t\tlocale,\n\t\tplaceholder = $bindable(),\n\t\tmonthIndex = 0,\n\t}: {\n\t\tcaptionLayout: ComponentProps<typeof Calendar>[\"captionLayout\"];\n\t\tmonths: ComponentProps<typeof CalendarMonthSelect>[\"months\"];\n\t\tmonthFormat: ComponentProps<typeof CalendarMonthSelect>[\"monthFormat\"];\n\t\tyears: ComponentProps<typeof CalendarYearSelect>[\"years\"];\n\t\tyearFormat: ComponentProps<typeof CalendarYearSelect>[\"yearFormat\"];\n\t\tmonth: DateValue;\n\t\tplaceholder: DateValue | undefined;\n\t\tlocale: string;\n\t\tmonthIndex: number;\n\t} = $props();\n\n\tfunction formatYear(date: DateValue) {\n\t\tconst dateObj = date.toDate(getLocalTimeZone());\n\t\tif (typeof yearFormat === \"function\") return yearFormat(dateObj.getFullYear());\n\t\treturn new DateFormatter(locale, { year: yearFormat }).format(dateObj);\n\t}\n\n\tfunction formatMonth(date: DateValue) {\n\t\tconst dateObj = date.toDate(getLocalTimeZone());\n\t\tif (typeof monthFormat === \"function\") return monthFormat(dateObj.getMonth() + 1);\n\t\treturn new DateFormatter(locale, { month: monthFormat }).format(dateObj);\n\t}\n</script>\n\n{#snippet MonthSelect()}\n\t<CalendarMonthSelect\n\t\t{months}\n\t\t{monthFormat}\n\t\tvalue={month.month}\n\t\tonchange={(e) => {\n\t\t\tif (!placeholder) return;\n\t\t\tconst v = Number.parseInt(e.currentTarget.value);\n\t\t\tconst newPlaceholder = placeholder.set({ month: v });\n\t\t\tplaceholder = newPlaceholder.subtract({ months: monthIndex });\n\t\t}}\n\t/>\n{/snippet}\n\n{#snippet YearSelect()}\n\t<CalendarYearSelect {years} {yearFormat} value={month.year} />\n{/snippet}\n\n{#if captionLayout === \"dropdown\"}\n\t{@render MonthSelect()}\n\t{@render YearSelect()}\n{:else if captionLayout === \"dropdown-months\"}\n\t{@render MonthSelect()}\n\t{#if placeholder}\n\t\t{formatYear(placeholder)}\n\t{/if}\n{:else if captionLayout === \"dropdown-years\"}\n\t{#if placeholder}\n\t\t{formatMonth(placeholder)}\n\t{/if}\n\t{@render YearSelect()}\n{:else}\n\t{formatMonth(month)} {formatYear(month)}\n{/if}\n","<script lang=\"ts\">\n import { Calendar } from \"$lib/components/ui/calendar\";\n import * as Select from \"$lib/components/ui/select\";\n import { cn } from \"$lib/utils\";\n import { CalendarDate, CalendarDateTime, getLocalTimeZone, today, type DateValue } from \"@internationalized/date\";\n\n type Period = 'AM' | 'PM';\n\n interface Props {\n value?: CalendarDateTime | CalendarDate;\n onValueChange?: (value: CalendarDateTime) => void;\n class?: string;\n }\n\n let {\n value = $bindable(),\n onValueChange,\n class: className\n }: Props = $props();\n\n // Time state (12-hour format for display)\n let hours = $state(12);\n let minutes = $state(0);\n let seconds = $state(0);\n let period = $state<Period>('AM');\n\n // Initialize from value\n $effect(() => {\n if (value && 'hour' in value) {\n const hour24 = value.hour;\n period = hour24 >= 12 ? 'PM' : 'AM';\n hours = hour24 % 12 || 12;\n minutes = value.minute;\n seconds = value.second;\n }\n });\n\n // Derived 24-hour value\n const hour24 = $derived(() => {\n if (period === 'AM') {\n return hours === 12 ? 0 : hours;\n } else {\n return hours === 12 ? 12 : hours + 12;\n }\n });\n\n // Handle calendar date change\n function handleDateChange(newDate: DateValue | undefined) {\n if (!newDate) return;\n\n const dateTime = new CalendarDateTime(\n newDate.year,\n newDate.month,\n newDate.day,\n hour24(),\n minutes,\n seconds\n );\n\n value = dateTime;\n onValueChange?.(dateTime);\n }\n\n // Handle time changes\n function updateDateTime() {\n if (!value) {\n const now = today(getLocalTimeZone());\n value = new CalendarDateTime(now.year, now.month, now.day, hour24(), minutes, seconds);\n } else {\n const dateTime = new CalendarDateTime(\n value.year,\n value.month,\n value.day,\n hour24(),\n minutes,\n seconds\n );\n value = dateTime;\n onValueChange?.(dateTime);\n }\n }\n\n // Input handlers with validation\n function handleHoursInput(e: Event) {\n const input = e.target as HTMLInputElement;\n let val = parseInt(input.value) || 0;\n if (val < 1) val = 1;\n if (val > 12) val = 12;\n hours = val;\n input.value = String(val).padStart(2, '0');\n updateDateTime();\n }\n\n function handleMinutesInput(e: Event) {\n const input = e.target as HTMLInputElement;\n let val = parseInt(input.value) || 0;\n if (val < 0) val = 0;\n if (val > 59) val = 59;\n minutes = val;\n input.value = String(val).padStart(2, '0');\n updateDateTime();\n }\n\n function handleSecondsInput(e: Event) {\n const input = e.target as HTMLInputElement;\n let val = parseInt(input.value) || 0;\n if (val < 0) val = 0;\n if (val > 59) val = 59;\n seconds = val;\n input.value = String(val).padStart(2, '0');\n updateDateTime();\n }\n\n function handlePeriodChange(newPeriod: string | undefined) {\n if (newPeriod === 'AM' || newPeriod === 'PM') {\n period = newPeriod;\n updateDateTime();\n }\n }\n\n // Increment/decrement helpers\n function incrementHours() {\n hours = hours >= 12 ? 1 : hours + 1;\n updateDateTime();\n }\n\n function decrementHours() {\n hours = hours <= 1 ? 12 : hours - 1;\n updateDateTime();\n }\n\n function incrementMinutes() {\n if (minutes >= 59) {\n minutes = 0;\n incrementHours();\n } else {\n minutes++;\n }\n updateDateTime();\n }\n\n function decrementMinutes() {\n if (minutes <= 0) {\n minutes = 59;\n decrementHours();\n } else {\n minutes--;\n }\n updateDateTime();\n }\n\n function incrementSeconds() {\n if (seconds >= 59) {\n seconds = 0;\n incrementMinutes();\n } else {\n seconds++;\n }\n updateDateTime();\n }\n\n function decrementSeconds() {\n if (seconds <= 0) {\n seconds = 59;\n decrementMinutes();\n } else {\n seconds--;\n }\n updateDateTime();\n }\n\n // Handle keyboard navigation\n function handleKeyDown(e: KeyboardEvent, field: 'hours' | 'minutes' | 'seconds') {\n if (e.key === 'ArrowUp') {\n e.preventDefault();\n if (field === 'hours') incrementHours();\n else if (field === 'minutes') incrementMinutes();\n else incrementSeconds();\n } else if (e.key === 'ArrowDown') {\n e.preventDefault();\n if (field === 'hours') decrementHours();\n else if (field === 'minutes') decrementMinutes();\n else decrementSeconds();\n }\n }\n\n // Get calendar-compatible date value\n const calendarValue = $derived(() => {\n if (!value) return undefined;\n return new CalendarDate(value.year, value.month, value.day);\n });\n</script>\n\n<div class={cn(\"flex flex-col\", className)}>\n <!-- Calendar -->\n <Calendar\n type=\"single\"\n value={calendarValue()}\n onValueChange={handleDateChange}\n />\n\n <!-- Time Picker -->\n <div class=\"border-t px-3 py-3\">\n <div class=\"flex items-end gap-2\">\n <!-- Hours -->\n <div class=\"flex flex-col items-center gap-1\">\n <span class=\"text-xs text-muted-foreground\">Hours</span>\n <input\n type=\"text\"\n inputmode=\"numeric\"\n class=\"w-10 h-9 text-center text-sm border rounded-md bg-background focus:outline-none focus:ring-2 focus:ring-ring tabular-nums\"\n value={String(hours).padStart(2, '0')}\n onchange={handleHoursInput}\n onkeydown={(e) => handleKeyDown(e, 'hours')}\n maxlength={2}\n />\n </div>\n\n <span class=\"text-sm font-medium text-muted-foreground pb-1\">:</span>\n\n <!-- Minutes -->\n <div class=\"flex flex-col items-center gap-1\">\n <span class=\"text-xs text-muted-foreground\">Minutes</span>\n <input\n type=\"text\"\n inputmode=\"numeric\"\n class=\"w-10 h-9 text-center text-sm border rounded-md bg-background focus:outline-none focus:ring-2 focus:ring-ring tabular-nums\"\n value={String(minutes).padStart(2, '0')}\n onchange={handleMinutesInput}\n onkeydown={(e) => handleKeyDown(e, 'minutes')}\n maxlength={2}\n />\n </div>\n\n <span class=\"text-sm font-medium text-muted-foreground pb-1\">:</span>\n\n <!-- Seconds (disabled - not passed between pages) -->\n <div class=\"flex flex-col items-center gap-1\">\n <span class=\"text-xs text-muted-foreground\">Seconds</span>\n <input\n type=\"text\"\n inputmode=\"numeric\"\n class=\"w-10 h-9 text-center text-sm border rounded-md bg-muted text-muted-foreground tabular-nums cursor-not-allowed\"\n value={String(seconds).padStart(2, '0')}\n disabled\n />\n </div>\n\n <!-- Period (AM/PM) -->\n <div class=\"flex flex-col items-center gap-1\">\n <span class=\"text-xs text-muted-foreground\">Period</span>\n <Select.Root\n type=\"single\"\n value={period}\n onValueChange={handlePeriodChange}\n >\n <Select.Trigger class=\"w-[60px] h-9 text-sm\">\n {period}\n </Select.Trigger>\n <Select.Content>\n <Select.Item value=\"AM\" label=\"AM\">AM</Select.Item>\n <Select.Item value=\"PM\" label=\"PM\">PM</Select.Item>\n </Select.Content>\n </Select.Root>\n </div>\n </div>\n </div>\n</div>\n","<script lang=\"ts\">\n import { Button } from \"$lib/components/ui/button\";\n import { DateTimePicker } from \"$lib/components/ui/datetime-picker\";\n import * as Popover from \"$lib/components/ui/popover\";\n import { Clock, ChevronDown, ChevronRight, Check } from \"@lucide/svelte\";\n import { CalendarDate, CalendarDateTime, getLocalTimeZone, today } from \"@internationalized/date\";\n import { getNow, luxonToCalendarDateTime } from \"$lib/utils/formatters\";\n import { getTimezone } from \"$lib/state/timezone.svelte\";\n\n type TimeRangePreset = {\n value: string;\n label: string;\n minutes: number;\n };\n\n type PresetGroup = {\n presets: TimeRangePreset[];\n };\n\n interface Props {\n fromDate?: CalendarDate;\n toDate?: CalendarDate;\n fromTime?: string;\n toTime?: string;\n preset?: string | null;\n timezone?: string;\n onApply?: (from: { date: CalendarDate; time: string }, to: { date: CalendarDate; time: string }, preset: string | null) => void;\n }\n\n let {\n fromDate = $bindable(today(getLocalTimeZone()).subtract({ days: 7 })),\n toDate = $bindable(today(getLocalTimeZone())),\n fromTime = $bindable('00:00'),\n toTime = $bindable('23:59'),\n preset = $bindable<string | null>('24h'),\n timezone,\n onApply\n }: Props = $props();\n\n const tz = $derived(timezone ?? getTimezone());\n\n // Preset groups\n const presetGroups: PresetGroup[] = [\n {\n presets: [\n { value: '5m', label: '5 minutes', minutes: 5 },\n { value: '30m', label: '30 minutes', minutes: 30 },\n { value: '60m', label: '60 minutes', minutes: 60 },\n ]\n },\n {\n presets: [\n { value: '3h', label: '3 hours', minutes: 180 },\n { value: '6h', label: '6 hours', minutes: 360 },\n { value: '12h', label: '12 hours', minutes: 720 },\n { value: '24h', label: '24 hours', minutes: 1440 },\n ]\n },\n {\n presets: [\n { value: '3d', label: '3 days', minutes: 4320 },\n { value: '7d', label: '7 days', minutes: 10080 },\n ]\n },\n {\n presets: [\n { value: '1M', label: '1 month', minutes: 43200 },\n { value: '3M', label: '3 months', minutes: 129600 },\n ]\n }\n ];\n\n let isOpen = $state(false);\n let showCustom = $state(preset === null);\n let selectedPreset = $state<string | null>(preset);\n\n // Flag to ignore external change detection when we're applying our own changes\n let isApplyingInternally = $state(false);\n\n // Sync internal selectedPreset with external preset prop\n $effect(() => {\n if (preset !== selectedPreset) {\n selectedPreset = preset;\n showCustom = preset === null;\n\n // If preset is set, calculate the time range\n if (preset) {\n const presetDef = presetGroups.flatMap(g => g.presets).find(p => p.value === preset);\n if (presetDef) {\n const now = getNow(tz);\n const fromDt = now.minus({ minutes: presetDef.minutes });\n const fromParts = luxonToCalendarDateTime(fromDt);\n const toParts = luxonToCalendarDateTime(now);\n\n tempFromDateTime = new CalendarDateTime(\n fromParts.year,\n fromParts.month,\n fromParts.day,\n fromParts.hour,\n fromParts.minute,\n fromParts.second\n );\n tempToDateTime = new CalendarDateTime(\n toParts.year,\n toParts.month,\n toParts.day,\n toParts.hour,\n toParts.minute,\n toParts.second\n );\n }\n }\n }\n });\n\n // Track last known bound values to detect external changes\n let lastFromDate = $state(fromDate);\n let lastToDate = $state(toDate);\n let lastFromTime = $state(fromTime);\n let lastToTime = $state(toTime);\n\n // Detect external value changes and switch to custom mode\n $effect(() => {\n const fromDateChanged = fromDate.year !== lastFromDate.year ||\n fromDate.month !== lastFromDate.month ||\n fromDate.day !== lastFromDate.day;\n const toDateChanged = toDate.year !== lastToDate.year ||\n toDate.month !== lastToDate.month ||\n toDate.day !== lastToDate.day;\n const fromTimeChanged = fromTime !== lastFromTime;\n const toTimeChanged = toTime !== lastToTime;\n\n if (fromDateChanged || toDateChanged || fromTimeChanged || toTimeChanged) {\n // Update last known values\n lastFromDate = fromDate;\n lastToDate = toDate;\n lastFromTime = fromTime;\n lastToTime = toTime;\n\n // If picker is not open AND we're not applying internally, this was an external change\n if (!isOpen && !isApplyingInternally) {\n showCustom = true;\n selectedPreset = null;\n\n // Sync temp values with the new bound values\n const [fromHour, fromMinute] = fromTime.split(':').map(Number);\n const [toHour, toMinute] = toTime.split(':').map(Number);\n tempFromDateTime = new CalendarDateTime(\n fromDate.year, fromDate.month, fromDate.day,\n fromHour || 0, fromMinute || 0, 0\n );\n tempToDateTime = new CalendarDateTime(\n toDate.year, toDate.month, toDate.day,\n toHour || 23, toMinute || 59, 0\n );\n }\n }\n });\n\n // DateTime picker popover states\n let fromPickerOpen = $state(false);\n let toPickerOpen = $state(false);\n\n // Temporary CalendarDateTime values for custom selection\n // Parse initial time from props instead of using hardcoded values\n function parseInitialTime(timeStr: string, fallbackHour: number, fallbackMinute: number): { hour: number; minute: number } {\n if (!timeStr) return { hour: fallbackHour, minute: fallbackMinute };\n const [hour, minute] = timeStr.split(':').map(Number);\n return { hour: hour ?? fallbackHour, minute: minute ?? fallbackMinute };\n }\n\n const initialFromTimeParts = parseInitialTime(fromTime, 0, 0);\n const initialToTimeParts = parseInitialTime(toTime, 23, 59);\n\n let tempFromDateTime = $state<CalendarDateTime>(\n new CalendarDateTime(fromDate.year, fromDate.month, fromDate.day, initialFromTimeParts.hour, initialFromTimeParts.minute, 0)\n );\n let tempToDateTime = $state<CalendarDateTime>(\n new CalendarDateTime(toDate.year, toDate.month, toDate.day, initialToTimeParts.hour, initialToTimeParts.minute, 59)\n );\n\n // Track initial values when popover opens to detect changes\n let initialFromDateTime = $state<CalendarDateTime | null>(null);\n let initialToDateTime = $state<CalendarDateTime | null>(null);\n\n // Helper to compare two CalendarDateTime values\n function dateTimesEqual(a: CalendarDateTime, b: CalendarDateTime): boolean {\n return a.year === b.year &&\n a.month === b.month &&\n a.day === b.day &&\n a.hour === b.hour &&\n a.minute === b.minute;\n }\n\n // Get display label for trigger button\n const displayLabel = $derived(() => {\n if (selectedPreset && !showCustom) {\n const preset = presetGroups.flatMap(g => g.presets).find(p => p.value === selectedPreset);\n return preset ? `Last ${preset.label}` : 'Select time range';\n }\n // For custom selection, show date and time range (no prefix)\n if (tempFromDateTime && tempToDateTime) {\n const fromDateStr = formatDateShort(tempFromDateTime);\n const fromTimeStr = formatTime12h(tempFromDateTime);\n const toDateStr = formatDateShort(tempToDateTime);\n const toTimeStr = formatTime12h(tempToDateTime);\n return `${fromDateStr} ${fromTimeStr} – ${toDateStr} ${toTimeStr}`;\n }\n return 'Select time range';\n });\n\n function formatDateShort(dt: CalendarDateTime): string {\n return new CalendarDate(dt.year, dt.month, dt.day)\n .toDate(getLocalTimeZone())\n .toLocaleDateString('en-US', { month: 'short', day: 'numeric' });\n }\n\n // YY/MM/DD format for compact display\n function formatDateCompact(dt: CalendarDateTime): string {\n const year = String(dt.year).slice(-2);\n const month = String(dt.month).padStart(2, '0');\n const day = String(dt.day).padStart(2, '0');\n return `${year}/${month}/${day}`;\n }\n\n // Format time as 12h with AM/PM\n function formatTime12h(dt: CalendarDateTime): string {\n const hours = dt.hour;\n const minutes = dt.minute;\n const period = hours >= 12 ? 'PM' : 'AM';\n const hours12 = hours % 12 || 12;\n return `${hours12}:${String(minutes).padStart(2, '0')} ${period}`;\n }\n\n function selectPreset(presetDef: TimeRangePreset) {\n selectedPreset = presetDef.value;\n preset = presetDef.value; // Sync with external prop\n showCustom = false;\n\n // Calculate the date range for this preset using Luxon\n const now = getNow(tz);\n const fromDt = now.minus({ minutes: presetDef.minutes });\n const fromParts = luxonToCalendarDateTime(fromDt);\n const toParts = luxonToCalendarDateTime(now);\n\n tempFromDateTime = new CalendarDateTime(\n fromParts.year,\n fromParts.month,\n fromParts.day,\n fromParts.hour,\n fromParts.minute,\n fromParts.second\n );\n tempToDateTime = new CalendarDateTime(\n toParts.year,\n toParts.month,\n toParts.day,\n toParts.hour,\n toParts.minute,\n toParts.second\n );\n\n applyAndClose();\n }\n\n function toggleCustom() {\n showCustom = !showCustom;\n if (showCustom) {\n selectedPreset = null;\n preset = null; // Sync with external prop\n }\n }\n\n function resetToNow() {\n const now = getNow(tz);\n const nowParts = luxonToCalendarDateTime(now);\n tempToDateTime = new CalendarDateTime(\n nowParts.year, nowParts.month, nowParts.day,\n nowParts.hour, nowParts.minute, nowParts.second\n );\n }\n\n function applyAndClose() {\n isApplyingInternally = true;\n\n fromDate = new CalendarDate(tempFromDateTime.year, tempFromDateTime.month, tempFromDateTime.day);\n toDate = new CalendarDate(tempToDateTime.year, tempToDateTime.month, tempToDateTime.day);\n fromTime = `${String(tempFromDateTime.hour).padStart(2, '0')}:${String(tempFromDateTime.minute).padStart(2, '0')}`;\n toTime = `${String(tempToDateTime.hour).padStart(2, '0')}:${String(tempToDateTime.minute).padStart(2, '0')}`;\n\n const currentPreset = showCustom ? null : selectedPreset;\n preset = currentPreset;\n onApply?.({ date: fromDate, time: fromTime }, { date: toDate, time: toTime }, currentPreset);\n\n setTimeout(() => { isApplyingInternally = false; }, 0);\n\n fromPickerOpen = false;\n toPickerOpen = false;\n isOpen = false;\n }\n\n function handleOpenChange(open: boolean) {\n if (open) {\n // Capture initial values when opening\n initialFromDateTime = new CalendarDateTime(\n tempFromDateTime.year, tempFromDateTime.month, tempFromDateTime.day,\n tempFromDateTime.hour, tempFromDateTime.minute, tempFromDateTime.second\n );\n initialToDateTime = new CalendarDateTime(\n tempToDateTime.year, tempToDateTime.month, tempToDateTime.day,\n tempToDateTime.hour, tempToDateTime.minute, tempToDateTime.second\n );\n } else {\n // Skip if already applied by applyAndClose (Apply button was clicked)\n if (isApplyingInternally) {\n isOpen = open;\n return;\n }\n\n // Apply if closed by clicking outside and values have changed\n const hasChanged = !initialFromDateTime || !initialToDateTime ||\n !dateTimesEqual(tempFromDateTime, initialFromDateTime) ||\n !dateTimesEqual(tempToDateTime, initialToDateTime);\n\n if (hasChanged) {\n applyAndClose();\n return; // applyAndClose handles setting isOpen\n }\n\n // No changes - just close\n fromPickerOpen = false;\n toPickerOpen = false;\n }\n isOpen = open;\n }\n\n function handleFromDateTimeChange(dt: CalendarDateTime) {\n tempFromDateTime = dt;\n }\n\n function handleToDateTimeChange(dt: CalendarDateTime) {\n tempToDateTime = dt;\n }\n</script>\n\n<Popover.Root bind:open={isOpen} onOpenChange={handleOpenChange}>\n <Popover.Trigger class=\"w-full\">\n <Button variant=\"outline\" class=\"h-9 justify-between gap-2 font-normal w-full\">\n <span class=\"flex items-center gap-2\">\n <Clock class=\"h-4 w-4 text-muted-foreground\" />\n <span class=\"truncate\">{displayLabel()}</span>\n </span>\n <ChevronDown class=\"h-4 w-4 text-muted-foreground\" />\n </Button>\n </Popover.Trigger>\n <Popover.Content class=\"w-auto p-0\" align=\"start\">\n <div class=\"flex\">\n <!-- Presets Column -->\n <div class=\"w-[140px] border-r py-2\">\n {#each presetGroups as group, groupIndex}\n {#if groupIndex > 0}\n <div class=\"my-1 border-t mx-2\"></div>\n {/if}\n {#each group.presets as preset}\n <button\n class=\"w-full px-3 py-1.5 text-left text-sm hover:bg-muted/50 flex items-center justify-between transition-colors {selectedPreset === preset.value && !showCustom ? 'bg-muted' : ''}\"\n onclick={() => selectPreset(preset)}\n >\n <span>{preset.label}</span>\n {#if selectedPreset === preset.value && !showCustom}\n <Check class=\"h-4 w-4 text-primary\" />\n {/if}\n </button>\n {/each}\n {/each}\n <div class=\"my-1 border-t mx-2\"></div>\n <button\n class=\"w-full px-3 py-1.5 text-left text-sm hover:bg-muted/50 flex items-center justify-between transition-colors {showCustom ? 'bg-muted' : ''}\"\n onclick={toggleCustom}\n >\n <span>Set custom</span>\n <ChevronRight class=\"h-4 w-4 text-muted-foreground\" />\n </button>\n </div>\n\n <!-- Custom Section -->\n {#if showCustom}\n <div class=\"p-5 min-w-[380px]\">\n <div class=\"flex items-center justify-between mb-3\">\n <span class=\"text-xs font-medium text-muted-foreground uppercase tracking-wide\">Custom</span>\n <button\n class=\"text-xs text-primary hover:underline\"\n onclick={resetToNow}\n >\n Reset to now\n </button>\n </div>\n\n <!-- Compact Date/Time Inputs Row -->\n <div class=\"flex items-center gap-2 mb-4\">\n <!-- From DateTime -->\n <Popover.Root bind:open={fromPickerOpen}>\n <Popover.Trigger>\n <button\n class=\"h-9 px-3 text-sm border rounded-md text-left hover:bg-muted/50 transition-colors flex items-center gap-2 {fromPickerOpen ? 'ring-2 ring-ring' : ''}\"\n >\n <span class=\"tabular-nums\">{formatDateCompact(tempFromDateTime)}</span>\n <span class=\"text-muted-foreground tabular-nums\">{formatTime12h(tempFromDateTime)}</span>\n </button>\n </Popover.Trigger>\n <Popover.Content class=\"w-auto p-0\" align=\"start\">\n <DateTimePicker\n value={tempFromDateTime}\n onValueChange={handleFromDateTimeChange}\n />\n </Popover.Content>\n </Popover.Root>\n\n <span class=\"text-muted-foreground text-xs\">–</span>\n\n <!-- To DateTime -->\n <Popover.Root bind:open={toPickerOpen}>\n <Popover.Trigger>\n <button\n class=\"h-9 px-3 text-sm border rounded-md text-left hover:bg-muted/50 transition-colors flex items-center gap-2 {toPickerOpen ? 'ring-2 ring-ring' : ''}\"\n >\n <span class=\"tabular-nums\">{formatDateCompact(tempToDateTime)}</span>\n <span class=\"text-muted-foreground tabular-nums\">{formatTime12h(tempToDateTime)}</span>\n </button>\n </Popover.Trigger>\n <Popover.Content class=\"w-auto p-0\" align=\"start\">\n <DateTimePicker\n value={tempToDateTime}\n onValueChange={handleToDateTimeChange}\n />\n </Popover.Content>\n </Popover.Root>\n </div>\n\n <!-- Apply button -->\n <div class=\"flex justify-end pt-2\">\n <Button size=\"sm\" onclick={applyAndClose}>\n Apply\n </Button>\n </div>\n </div>\n {/if}\n </div>\n </Popover.Content>\n</Popover.Root>\n","import { browser } from '$app/environment';\nimport { goto } from '$app/navigation';\nimport { CalendarDate } from '@internationalized/date';\nimport { DateTime } from 'luxon';\nimport { getNow, parseISO } from './formatters';\n\nexport const presetMinutes: Record<string, number> = {\n\t'5m': 5,\n\t'30m': 30,\n\t'60m': 60,\n\t'3h': 180,\n\t'6h': 360,\n\t'12h': 720,\n\t'24h': 1440,\n\t'3d': 4320,\n\t'7d': 10080,\n\t'1M': 43200,\n\t'3M': 129600\n};\n\nexport function getTimeRangeFromPreset(presetValue: string, timezone: string): { from: Date; to: Date } {\n\tconst minutes = presetMinutes[presetValue] || 360;\n\tconst now = getNow(timezone);\n\tconst from = now.minus({ minutes });\n\treturn { from: from.toJSDate(), to: now.toJSDate() };\n}\n\nexport function dateToCalendarDate(date: Date, timezone: string): CalendarDate {\n\tconst dt = DateTime.fromJSDate(date).setZone(timezone);\n\treturn new CalendarDate(dt.year, dt.month, dt.day);\n}\n\nexport function dateToTimeString(date: Date, timezone: string): string {\n\tconst dt = DateTime.fromJSDate(date).setZone(timezone);\n\treturn `${String(dt.hour).padStart(2, '0')}:${String(dt.minute).padStart(2, '0')}`;\n}\n\nexport type TimeRangeParams = {\n\tpreset: string | null;\n\tfrom: Date | null;\n\tto: Date | null;\n};\n\nexport function parseTimeRangeFromUrl(timezone: string, defaultPreset = '24h'): TimeRangeParams {\n\tif (!browser) return { preset: defaultPreset, from: null, to: null };\n\n\tconst params = new URLSearchParams(window.location.search);\n\tconst presetParam = params.get('preset');\n\tconst fromParam = params.get('from');\n\tconst toParam = params.get('to');\n\n\t// If preset is specified, use it\n\tif (presetParam && presetMinutes[presetParam]) {\n\t\treturn { preset: presetParam, from: null, to: null };\n\t}\n\n\t// If custom from/to specified\n\tif (fromParam && toParam) {\n\t\tconst fromDt = parseISO(fromParam, timezone);\n\t\tconst toDt = parseISO(toParam, timezone);\n\t\tif (fromDt.isValid && toDt.isValid) {\n\t\t\treturn { preset: null, from: fromDt.toJSDate(), to: toDt.toJSDate() };\n\t\t}\n\t}\n\n\t// Default to preset\n\treturn { preset: defaultPreset, from: null, to: null };\n}\n\nexport function getResolvedTimeRange(\n\tparams: TimeRangeParams,\n\ttimezone: string\n): { from: Date; to: Date } {\n\tif (params.preset) {\n\t\treturn getTimeRangeFromPreset(params.preset, timezone);\n\t}\n\treturn { from: params.from!, to: params.to! };\n}\n\nexport type UpdateUrlOptions = {\n\tpushToHistory?: boolean;\n};\n\nexport function updateUrl(\n\tparams: Record<string, string | null | undefined>,\n\toptions: UpdateUrlOptions = {}\n): void {\n\tif (!browser) return;\n\n\tconst { pushToHistory = false } = options;\n\tconst urlParams = new URLSearchParams();\n\n\tfor (const [key, value] of Object.entries(params)) {\n\t\tif (value != null && value !== '') {\n\t\t\turlParams.set(key, value);\n\t\t}\n\t}\n\n\tconst newUrl = `${window.location.pathname}?${urlParams.toString()}`;\n\n\t// eslint-disable-next-line svelte/no-navigation-without-resolve\n\tgoto(newUrl, {\n\t\treplaceState: !pushToHistory,\n\t\tnoScroll: true,\n\t\tkeepFocus: true\n\t});\n}\n"],"names":["$2b4dce13dd5a17fa$export$842a2cf37af977e1","amount","numerator","$3b62074eb05584b2$var$EPOCH","$3b62074eb05584b2$export$f297eb839006d339","era","year","month","day","$3b62074eb05584b2$export$c36e0ecb2d4fa69d","y1","monthOffset","$3b62074eb05584b2$export$553d7fa8e3805fc0","$3b62074eb05584b2$export$4475b7e617eb123c","$3b62074eb05584b2$var$daysInMonth","$3b62074eb05584b2$export$80ee6245ec4f29ec","jd","jd0","depoch","quadricent","dqc","cent","dcent","quad","dquad","yindex","extendedYear","yearDay","leapAdj","$35ea8db9cb2ccb90$export$99faa760c7908e4f","date","$2fe286d2fb449abb$export$7a5acbd77d414bd9","$14e0f24ef4ac5c92$export$ea39ec197993aef0","a","b","$11d87f3f76e88657$export$b4a036af3fc0b032","$14e0f24ef4ac5c92$export$a18c89cbd24170ff","$14e0f24ef4ac5c92$export$a5a3b454ada2268e","$14e0f24ef4ac5c92$export$5a8da0c44a3afdf2","$14e0f24ef4ac5c92$export$dbc69fd56b53d5e","_a_isEqual","_b_isEqual","_a_isEqual1","_ref","$14e0f24ef4ac5c92$export$629b0a497aa65267","timeZone","$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3","$14e0f24ef4ac5c92$export$2061056d06d7cdf7","locale","firstDayOfWeek","julian","weekStart","$14e0f24ef4ac5c92$var$getWeekStart","dayOfWeek","$14e0f24ef4ac5c92$export$461939dd4422153","$11d87f3f76e88657$export$1b96692a1ba042ac","$11d87f3f76e88657$export$93522d1a439f3617","$14e0f24ef4ac5c92$export$68781ddf31c0090f","$14e0f24ef4ac5c92$export$c19a80a9721b80f6","$14e0f24ef4ac5c92$var$timeToMs","$14e0f24ef4ac5c92$var$localTimeZone","$14e0f24ef4ac5c92$export$aa8b41735afcabd2","$14e0f24ef4ac5c92$export$a2258d9c4118825c","$14e0f24ef4ac5c92$var$cachedRegions","$14e0f24ef4ac5c92$var$cachedWeekInfo","$14e0f24ef4ac5c92$var$getRegion","region","part","weekInfo","localeInst","$11d87f3f76e88657$export$bd4fb2bc8bb06fb","$11d87f3f76e88657$var$epochFromParts","hour","minute","second","millisecond","$11d87f3f76e88657$export$59c99f3515d3493f","ms","$11d87f3f76e88657$var$getTimeZoneParts","$11d87f3f76e88657$var$formattersByTimeZone","formatter","parts","namedParts","$11d87f3f76e88657$var$DAYMILLIS","$11d87f3f76e88657$export$136f38efe7caf549","earlier","later","$11d87f3f76e88657$var$getValidWallTimes","absolute","$11d87f3f76e88657$var$isValidWallTime","$11d87f3f76e88657$export$5107c82f94518f5c","disambiguation","dateTime","$11d87f3f76e88657$export$b21e0b124e224484","offsetBefore","offsetAfter","valid","$11d87f3f76e88657$export$e67a095c620b86fe","offset","$35ea8db9cb2ccb90$export$d3b7288e7994edea","time","$35ea8db9cb2ccb90$export$ca871e8dbb80966f","calendar","calendarDate","copy","$735220c2d4774dd3$export$c4e2ecac49351ef2","$11d87f3f76e88657$export$84c95a83c799e074","$11d87f3f76e88657$export$538b00033cc11c75","$11d87f3f76e88657$export$83aac07b4c37b25","$735220c2d4774dd3$var$ONE_HOUR","$735220c2d4774dd3$export$e16d8520af44a096","duration","mutableDate","days","$735220c2d4774dd3$var$addTimeFields","$735220c2d4774dd3$var$addYears","$735220c2d4774dd3$var$balanceYearMonth","$735220c2d4774dd3$var$constrainMonthDay","$735220c2d4774dd3$var$balanceDay","maxYear","_mutableDate_calendar_isInverseEra","_mutableDate_calendar","isInverseEra","maxMonth","years","_date_calendar_isInverseEra","_date_calendar","monthsInYear","$735220c2d4774dd3$export$3e2544e88a25bff8","inverseDuration","key","$735220c2d4774dd3$export$4e2d2ead65e5f7e3","$735220c2d4774dd3$export$adaa4cf7ef1b65be","fields","$735220c2d4774dd3$export$e5d5e1c1822b6e56","value","mutableValue","$735220c2d4774dd3$export$7555de1e070510cb","$735220c2d4774dd3$var$balanceTime","$735220c2d4774dd3$var$nonNegativeMod","result","$735220c2d4774dd3$export$d52ced6badfb9a4c","field","options","mutable","eras","eraIndex","$735220c2d4774dd3$var$cycleValue","_mutable_calendar_isInverseEra","_mutable_calendar","$735220c2d4774dd3$export$dd02b3e0007dfe28","hours","min","max","isPM","round","div","$735220c2d4774dd3$export$96b1d28349274637","res","$735220c2d4774dd3$export$6814caac34ca03c7","$735220c2d4774dd3$export$9a297d111fc86b79","plainDateTime","minDate","minAbsolute","maxDate","maxAbsolute","remainder","$735220c2d4774dd3$export$31b5430eb18be4f8","$fae977aafc393c5c$var$DATE_RE","$fae977aafc393c5c$var$DATE_TIME_RE","$fae977aafc393c5c$var$ZONED_DATE_TIME_RE","$fae977aafc393c5c$var$ABSOLUTE_RE","$fae977aafc393c5c$export$6b862160d295c8e","m","$fae977aafc393c5c$var$parseNumber","$fae977aafc393c5c$export$588937bcd60ade55","$fae977aafc393c5c$export$fd7893f06e92a6a4","hourOffset","_m_","_m_1","$fae977aafc393c5c$var$offsetToString","$fae977aafc393c5c$export$4223de14708adc63","val","$fae977aafc393c5c$export$f59dee82248f5ad4","$fae977aafc393c5c$export$60dfd74aa96791bd","gregorianDate","sign","offsetHours","offsetMinutes","offsetSeconds","stringOffset","$fae977aafc393c5c$export$bf79f1ebf4b18792","_check_private_redeclaration","obj","privateCollection","_class_private_field_init","privateMap","$35ea8db9cb2ccb90$var$shiftArgs","args","$35ea8db9cb2ccb90$var$_type","$aksy1$_","$35ea8db9cb2ccb90$var$_type2","$35ea8db9cb2ccb90$var$_type3","$fb18d541ea1ad717$var$formatterCache","$fb18d541ea1ad717$export$ad991b66133851cf","start","end","startParts","endParts","p","resolvedOptions","$fb18d541ea1ad717$var$hasBuggyResolvedHourCycle","$fb18d541ea1ad717$var$getResolvedHourCycle","$fb18d541ea1ad717$var$getCachedDateFormatter","$fb18d541ea1ad717$var$hour12Preferences","$fb18d541ea1ad717$var$hasBuggyHour12Behavior","pref","defaultHourCycle","cacheKey","numberFormatter","$fb18d541ea1ad717$var$_hasBuggyHour12Behavior","$fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle","initAnnouncer","doc","isBrowser","el","createLog","kind","log","isHTMLElement","srOnlyStylesString","getAnnouncer","announcer","announce","timeout","content","defaultDateDefaults","getDefaultDate","opts","withDefaults","defaultValue","granularity","minValue","maxValue","getLocalTimeZone","CalendarDateTime","CalendarDate","parseStringToDateValue","dateStr","referenceVal","dateValue","ZonedDateTime","parseZonedDateTime","parseDateTime","parseDate","toCalendar","toDate","tz","getDateValueType","parseAnyDateValue","type","isCalendarDateTime","isZonedDateTime","hasTime","getDaysInMonth","isBefore","dateToCompare","referenceDate","isAfter","getLastFirstDayOfWeek","getDayOfWeek","getNextLastDayOfWeek","lastDayOfWeek","defaultPartOptions","createFormatter","setLocale","newLocale","getLocale","custom","DateFormatter","selectedDate","includeTime","fullMonthAndYear","formattedMonth","formattedYear","fullMonth","fullYear","toParts","length","dayPeriod","hourCycle","dateObj","isCalendarDayNode","node","getDaysBetween","dCurrent","dEnd","createMonth","props","weekStartsOn","fixedWeeks","daysInMonth","datesArray","_","i","firstDayOfMonth","startOfMonth","lastDayOfMonth","endOfMonth","lastSunday","nextSaturday","lastMonthDays","nextMonthDays","totalDays","extraDays","startFrom","extraDaysArray","incr","allDays","weeks","chunk","createMonths","numberOfMonths","monthProps","months","nextMonth","getSelectableCells","calendarNode","setPlaceholderToNodeValue","placeholder","cellValue","shiftCalendarFocus","add","isPrevButtonDisabled","isNextButtonDisabled","candidateCells","nextIndex","isValidIndex","nextCell","firstMonth","afterTick","newCandidateCells","newIndex","newCell","ARROW_KEYS","kbd.ARROW_DOWN","kbd.ARROW_UP","kbd.ARROW_LEFT","kbd.ARROW_RIGHT","SELECT_KEYS","kbd.ENTER","kbd.SPACE","handleCalendarKeydown","event","handleCellClick","shiftFocus","placeholderValue","currentCell","kbdFocusMap","handleCalendarNextPage","setMonths","pagedNavigation","setPlaceholder","targetDate","newMonths","handleCalendarPrevPage","getWeekdays","weekdayFormat","firstWeek","useMonthViewOptionsSync","$.user_effect","untrack","defaultMonthProps","createAccessibleHeading","label","accessibleHeadingId","getDocument","styleToString","h2","useMonthViewPlaceholderSync","getVisibleMonths","isSameMonth","getIsNextButtonDisabled","disabled","lastMonthInView","firstMonthOfNextPage","getIsPrevButtonDisabled","firstMonthInView","lastMonthOfPrevPage","getCalendarHeadingValue","startMonth","endMonth","startMonthName","endMonthName","startMonthYear","endMonthYear","getCalendarElementProps","fullCalendarLabel","id","isInvalid","readonly","boolToEmptyStrOrUndef","getFirstNonDisabledDateInView","calendarRef","daysInView","element","useEnsureNonDisabledPlaceholder","ref","defaultPlaceholder","isDateDisabled","isDisabled","watch","isSameDay","getDateWithPreviousTime","prev","calendarAttrs","createBitsAttrs","getDefaultYears","currentYear","latestYear","minYear","initialMinYear","totalYears","CalendarRootContext","Context","CalendarRootState","useId","$.state","$.proxy","attachRef","DOMContext","onMount","lastValue","#setupInitialFocusEffect","firstFocusedDay","#setupAccessibleHeadingEffect","#setupFormatterEffect","$.user_pre_effect","isDateUnavailable","d","selectedDates","selectedCount","next","newSelection","index","preventDeselect","#isMultipleSelectionValid","CalendarCellContext","CalendarCellState","#cellDate","$.derived","#isUnavailable","isToday","#isOutsideMonth","#isFocusedDate","root","boolToStr","CalendarDayState","cell","#tabindex","$.get","CalendarNextButtonState","CalendarPrevButtonState","CalendarGridState","CalendarGridBodyState","CalendarGridHeadState","CalendarGridRowState","CalendarHeadCellState","CalendarHeaderState","CalendarMonthSelectState","monthNumbers","monthFormat","#isDisabled","target","CalendarYearSelectState","yearFormat","localYears","$.prop","$$props","onValueChange","noop","onPlaceholderChange","calendarLabel","disableDaysOutsideMonth","initialFocus","restProps","$.rest_props","handleDefaultPlaceholder","handleDefaultValue","rootState","boxWith","v","resolveLocaleProp","mergedProps","mergeProps","$0","root_2","$.attribute_effect","$.snippet","node_2","$.noop","uid","$.props_id","createId","dayState","node_3","gridState","node_1","table","gridBodyState","tbody","cellState","td","gridHeadState","thead","headCellState","th","gridRowState","tr","headerState","header","ariaLabel","monthSelectState","select","$$anchor","option","root_5","text","$.child","$.reset","$.set_selected","$.set_text","option_value","$.append","tabindex","nextButtonState","button","prevButtonState","yearSelectState","iconNode","Icon","buttonVariant","captionLayout","children","$$arg0","weekdays","Calendar_Months","Calendar_Nav","Calendar_PrevButton","Calendar_NextButton","$.each","node_5","monthIndex","Calendar_Month","Calendar_Header","Calendar_Caption","$$value","Calendar_Grid","Calendar_GridHead","Calendar_GridRow","node_12","weekday","Calendar_HeadCell","$.template_effect","Calendar_GridBody","node_15","weekDates","Calendar_GridRow_1","node_17","Calendar_Cell","isEqualMonth","Calendar_Day","cn","CalendarPrimitive_Root","$.spread_props","CalendarPrimitive_Cell","buttonVariants","CalendarPrimitive_Day","CalendarPrimitive_Grid","CalendarPrimitive_Header","CalendarPrimitive_GridRow","CalendarPrimitive_GridBody","CalendarPrimitive_GridHead","CalendarPrimitive_HeadCell","Fallback","ChevronRightIcon","variant","CalendarPrimitive_NextButton","ChevronLeftIcon","CalendarPrimitive_PrevButton","span","child","monthItems","selectedMonthItem","$.first_child","fragment","monthItem","span_1","$.sibling","text_1","ChevronDownIcon","item","CalendarPrimitive_MonthSelect","$.set_class","$.clsx","yearItems","selectedYearItem","yearItem","CalendarPrimitive_YearSelect","nav","MonthSelect","CalendarMonthSelect","e","newPlaceholder","YearSelect","CalendarYearSelect","formatYear","formatMonth","node_4","$$render","consequent_1","consequent_3","node_8","consequent_4","alternate","consequent_2","alternate_1","consequent","alternate_2","minutes","seconds","period","hour24","$.set","handleDateChange","newDate","updateDateTime","now","today","handleHoursInput","input","handleMinutesInput","handlePeriodChange","newPeriod","incrementHours","decrementHours","incrementMinutes","decrementMinutes","incrementSeconds","decrementSeconds","handleKeyDown","calendarValue","Calendar","div_1","div_2","div_3","input_1","$.remove_input_defaults","$.set_attribute","div_4","input_2","div_5","input_3","div_6","Select_Root","Select_Trigger","Select_Content","Select_Item","Select_Item_1","$.set_value","$1","$2","$3","fromDate","fromTime","toTime","preset","getTimezone","presetGroups","isOpen","showCustom","selectedPreset","isApplyingInternally","presetDef","g","getNow","fromDt","fromParts","luxonToCalendarDateTime","tempFromDateTime","tempToDateTime","lastFromDate","lastToDate","lastFromTime","lastToTime","fromDateChanged","toDateChanged","fromTimeChanged","toTimeChanged","fromHour","fromMinute","toHour","toMinute","fromPickerOpen","toPickerOpen","parseInitialTime","timeStr","fallbackHour","fallbackMinute","initialFromTimeParts","initialToTimeParts","initialFromDateTime","initialToDateTime","dateTimesEqual","displayLabel","fromDateStr","formatDateShort","fromTimeStr","formatTime12h","toDateStr","toTimeStr","dt","formatDateCompact","selectPreset","applyAndClose","toggleCustom","resetToNow","nowParts","currentPreset","handleOpenChange","open","handleFromDateTimeChange","handleToDateTimeChange","Popover_Root","Popover_Trigger","Button","fragment_3","Clock","ChevronDown","Popover_Content","root_4","group","groupIndex","root_6","$.index","$$index","$$array","root_7","span_2","Check","button_1","node_9","ChevronRight","root_9","button_2","Popover_Root_1","Popover_Trigger_1","button_3","root_11","span_3","span_4","Popover_Content_1","DateTimePicker","Popover_Root_2","Popover_Trigger_2","button_4","root_14","span_5","span_6","Popover_Content_2","presetMinutes","getTimeRangeFromPreset","presetValue","timezone","dateToCalendarDate","DateTime","dateToTimeString","parseTimeRangeFromUrl","defaultPreset","params","presetParam","fromParam","toParam","parseISO","toDt","getResolvedTimeRange","updateUrl","pushToHistory","urlParams","newUrl","goto"],"mappings":"smCAUI,SAASA,GAA0CC,EAAQC,EAAW,CACtE,OAAOD,EAASC,EAAY,KAAK,MAAMD,EAASC,CAAS,CAC7D,CCKA,MAAMC,GAA8B,QACpC,SAASC,GAA0CC,EAAKC,EAAMC,EAAOC,EAAK,CACtEF,EAAOG,GAA0CJ,EAAKC,CAAI,EAC1D,IAAII,EAAKJ,EAAO,EACZK,EAAc,GAClB,OAAIJ,GAAS,EAAGI,EAAc,EACrBC,GAA0CN,CAAI,IAAGK,EAAc,IACjER,GAA8B,EAAI,IAAMO,EAAK,KAAK,MAAMA,EAAK,CAAC,EAAI,KAAK,MAAMA,EAAK,GAAG,EAAI,KAAK,MAAMA,EAAK,GAAG,EAAI,KAAK,OAAO,IAAMH,EAAQ,KAAO,GAAKI,EAAcH,CAAG,CAClL,CACA,SAASI,GAA0CN,EAAM,CACrD,OAAOA,EAAO,IAAM,IAAMA,EAAO,MAAQ,GAAKA,EAAO,MAAQ,EACjE,CACA,SAASG,GAA0CJ,EAAKC,EAAM,CAC1D,OAAOD,IAAQ,KAAO,EAAIC,EAAOA,CACrC,CACA,SAASO,GAA0CP,EAAM,CACrD,IAAID,EAAM,KACV,OAAIC,GAAQ,IACRD,EAAM,KACNC,EAAO,EAAIA,GAER,CACHD,EACAC,CACR,CACA,CACA,MAAMQ,GAAoC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G,EAASiG,GAASF,EAAWR,CAAQ,EACrCW,EAAOD,GAASD,EAAST,CAAQ,EACvC,GAAIvF,EAAO,SAAWkG,EAAK,QAC1B,MAAO,CAAE,OAAQ,KAAM,KAAMlG,EAAO,WAAY,GAAIkG,EAAK,UAAS,CAEpE,CAGA,MAAO,CAAE,OAAQN,EAAe,KAAM,KAAM,GAAI,IAAA,CACjD,CAEO,SAASO,GACfN,EACAN,EAC2B,CAC3B,OAAIM,EAAO,OACHR,GAAuBQ,EAAO,OAAQN,CAAQ,EAE/C,CAAE,KAAMM,EAAO,KAAO,GAAIA,EAAO,EAAA,CACzC,CAMO,SAASO,GACfP,EACA5nB,EAA4B,GACrB,CAGP,KAAM,CAAE,cAAAooB,EAAgB,EAAA,EAAUpoB,EAC5BqoB,EAAY,IAAI,gBAEtB,SAAW,CAAClpB,EAAKK,CAAK,IAAK,OAAO,QAAQooB,CAAM,EAC3CpoB,GAAS,MAAQA,IAAU,IAC9B6oB,EAAU,IAAIlpB,EAAKK,CAAK,EAI1B,MAAM8oB,EAAS,GAAG,OAAO,SAAS,QAAQ,IAAID,EAAU,UAAU,GAGlEE,GAAKD,EAAQ,CACZ,aAAc,CAACF,EACf,SAAU,GACV,UAAW,EAAA,CACX,CACF","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]}
\ No newline at end of file
+{"version":3,"file":"DjEjtFrE.js","sources":["../../../../../../node_modules/@internationalized/date/dist/utils.mjs","../../../../../../node_modules/@internationalized/date/dist/GregorianCalendar.mjs","../../../../../../node_modules/@internationalized/date/dist/weekStartData.mjs","../../../../../../node_modules/@internationalized/date/dist/queries.mjs","../../../../../../node_modules/@internationalized/date/dist/conversion.mjs","../../../../../../node_modules/@internationalized/date/dist/manipulation.mjs","../../../../../../node_modules/@internationalized/date/dist/string.mjs","../../../../../../node_modules/@swc/helpers/esm/_check_private_redeclaration.js","../../../../../../node_modules/@swc/helpers/esm/_class_private_field_init.js","../../../../../../node_modules/@internationalized/date/dist/CalendarDate.mjs","../../../../../../node_modules/@internationalized/date/dist/DateFormatter.mjs","../../../../../../node_modules/bits-ui/dist/internal/date-time/announcer.js","../../../../../../node_modules/bits-ui/dist/internal/date-time/utils.js","../../../../../../node_modules/bits-ui/dist/internal/date-time/formatter.js","../../../../../../node_modules/bits-ui/dist/internal/date-time/calendar-helpers.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/calendar/calendar.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-day.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-grid.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-grid-body.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-cell.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-grid-head.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-head-cell.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-grid-row.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-header.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-month-select.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-next-button.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-prev-button.svelte","../../../../../../node_modules/bits-ui/dist/bits/calendar/components/calendar-year-select.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/chevron-left.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/chevron-right.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/clock.svelte","../../../../../../src/lib/components/ui/calendar/calendar.svelte","../../../../../../src/lib/components/ui/calendar/calendar-cell.svelte","../../../../../../src/lib/components/ui/calendar/calendar-day.svelte","../../../../../../src/lib/components/ui/calendar/calendar-grid.svelte","../../../../../../src/lib/components/ui/calendar/calendar-header.svelte","../../../../../../src/lib/components/ui/calendar/calendar-months.svelte","../../../../../../src/lib/components/ui/calendar/calendar-grid-row.svelte","../../../../../../src/lib/components/ui/calendar/calendar-grid-body.svelte","../../../../../../src/lib/components/ui/calendar/calendar-grid-head.svelte","../../../../../../src/lib/components/ui/calendar/calendar-head-cell.svelte","../../../../../../src/lib/components/ui/calendar/calendar-next-button.svelte","../../../../../../src/lib/components/ui/calendar/calendar-prev-button.svelte","../../../../../../src/lib/components/ui/calendar/calendar-month-select.svelte","../../../../../../src/lib/components/ui/calendar/calendar-year-select.svelte","../../../../../../src/lib/components/ui/calendar/calendar-month.svelte","../../../../../../src/lib/components/ui/calendar/calendar-nav.svelte","../../../../../../src/lib/components/ui/calendar/calendar-caption.svelte","../../../../../../src/lib/components/ui/datetime-picker/datetime-picker.svelte","../../../../../../src/lib/components/ui/time-range-picker/time-range-picker.svelte","../../../../../../src/lib/utils/url-params.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ function $2b4dce13dd5a17fa$export$842a2cf37af977e1(amount, numerator) {\n return amount - numerator * Math.floor(amount / numerator);\n}\n\n\nexport {$2b4dce13dd5a17fa$export$842a2cf37af977e1 as mod};\n//# sourceMappingURL=utils.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f} from \"./CalendarDate.mjs\";\nimport {mod as $2b4dce13dd5a17fa$export$842a2cf37af977e1} from \"./utils.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from ICU.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\nconst $3b62074eb05584b2$var$EPOCH = 1721426; // 001/01/03 Julian C.E.\nfunction $3b62074eb05584b2$export$f297eb839006d339(era, year, month, day) {\n year = $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year);\n let y1 = year - 1;\n let monthOffset = -2;\n if (month <= 2) monthOffset = 0;\n else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) monthOffset = -1;\n return $3b62074eb05584b2$var$EPOCH - 1 + 365 * y1 + Math.floor(y1 / 4) - Math.floor(y1 / 100) + Math.floor(y1 / 400) + Math.floor((367 * month - 362) / 12 + monthOffset + day);\n}\nfunction $3b62074eb05584b2$export$553d7fa8e3805fc0(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\nfunction $3b62074eb05584b2$export$c36e0ecb2d4fa69d(era, year) {\n return era === 'BC' ? 1 - year : year;\n}\nfunction $3b62074eb05584b2$export$4475b7e617eb123c(year) {\n let era = 'AD';\n if (year <= 0) {\n era = 'BC';\n year = 1 - year;\n }\n return [\n era,\n year\n ];\n}\nconst $3b62074eb05584b2$var$daysInMonth = {\n standard: [\n 31,\n 28,\n 31,\n 30,\n 31,\n 30,\n 31,\n 31,\n 30,\n 31,\n 30,\n 31\n ],\n leapyear: [\n 31,\n 29,\n 31,\n 30,\n 31,\n 30,\n 31,\n 31,\n 30,\n 31,\n 30,\n 31\n ]\n};\nclass $3b62074eb05584b2$export$80ee6245ec4f29ec {\n fromJulianDay(jd) {\n let jd0 = jd;\n let depoch = jd0 - $3b62074eb05584b2$var$EPOCH;\n let quadricent = Math.floor(depoch / 146097);\n let dqc = (0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(depoch, 146097);\n let cent = Math.floor(dqc / 36524);\n let dcent = (0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(dqc, 36524);\n let quad = Math.floor(dcent / 1461);\n let dquad = (0, $2b4dce13dd5a17fa$export$842a2cf37af977e1)(dcent, 1461);\n let yindex = Math.floor(dquad / 365);\n let extendedYear = quadricent * 400 + cent * 100 + quad * 4 + yindex + (cent !== 4 && yindex !== 4 ? 1 : 0);\n let [era, year] = $3b62074eb05584b2$export$4475b7e617eb123c(extendedYear);\n let yearDay = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, 1, 1);\n let leapAdj = 2;\n if (jd0 < $3b62074eb05584b2$export$f297eb839006d339(era, year, 3, 1)) leapAdj = 0;\n else if ($3b62074eb05584b2$export$553d7fa8e3805fc0(year)) leapAdj = 1;\n let month = Math.floor(((yearDay + leapAdj) * 12 + 373) / 367);\n let day = jd0 - $3b62074eb05584b2$export$f297eb839006d339(era, year, month, 1) + 1;\n return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(era, year, month, day);\n }\n toJulianDay(date) {\n return $3b62074eb05584b2$export$f297eb839006d339(date.era, date.year, date.month, date.day);\n }\n getDaysInMonth(date) {\n return $3b62074eb05584b2$var$daysInMonth[$3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 'leapyear' : 'standard'][date.month - 1];\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n getMonthsInYear(date) {\n return 12;\n }\n getDaysInYear(date) {\n return $3b62074eb05584b2$export$553d7fa8e3805fc0(date.year) ? 366 : 365;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n getYearsInEra(date) {\n return 9999;\n }\n getEras() {\n return [\n 'BC',\n 'AD'\n ];\n }\n isInverseEra(date) {\n return date.era === 'BC';\n }\n balanceDate(date) {\n if (date.year <= 0) {\n date.era = date.era === 'BC' ? 'AD' : 'BC';\n date.year = 1 - date.year;\n }\n }\n constructor(){\n this.identifier = 'gregory';\n }\n}\n\n\nexport {$3b62074eb05584b2$export$f297eb839006d339 as gregorianToJulianDay, $3b62074eb05584b2$export$c36e0ecb2d4fa69d as getExtendedYear, $3b62074eb05584b2$export$553d7fa8e3805fc0 as isLeapYear, $3b62074eb05584b2$export$4475b7e617eb123c as fromExtendedYear, $3b62074eb05584b2$export$80ee6245ec4f29ec as GregorianCalendar};\n//# sourceMappingURL=GregorianCalendar.module.js.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Data from https://github.com/unicode-cldr/cldr-core/blob/master/supplemental/weekData.json\n// Locales starting on Sunday have been removed for compression.\nconst $2fe286d2fb449abb$export$7a5acbd77d414bd9 = {\n '001': 1,\n AD: 1,\n AE: 6,\n AF: 6,\n AI: 1,\n AL: 1,\n AM: 1,\n AN: 1,\n AR: 1,\n AT: 1,\n AU: 1,\n AX: 1,\n AZ: 1,\n BA: 1,\n BE: 1,\n BG: 1,\n BH: 6,\n BM: 1,\n BN: 1,\n BY: 1,\n CH: 1,\n CL: 1,\n CM: 1,\n CN: 1,\n CR: 1,\n CY: 1,\n CZ: 1,\n DE: 1,\n DJ: 6,\n DK: 1,\n DZ: 6,\n EC: 1,\n EE: 1,\n EG: 6,\n ES: 1,\n FI: 1,\n FJ: 1,\n FO: 1,\n FR: 1,\n GB: 1,\n GE: 1,\n GF: 1,\n GP: 1,\n GR: 1,\n HR: 1,\n HU: 1,\n IE: 1,\n IQ: 6,\n IR: 6,\n IS: 1,\n IT: 1,\n JO: 6,\n KG: 1,\n KW: 6,\n KZ: 1,\n LB: 1,\n LI: 1,\n LK: 1,\n LT: 1,\n LU: 1,\n LV: 1,\n LY: 6,\n MC: 1,\n MD: 1,\n ME: 1,\n MK: 1,\n MN: 1,\n MQ: 1,\n MV: 5,\n MY: 1,\n NL: 1,\n NO: 1,\n NZ: 1,\n OM: 6,\n PL: 1,\n QA: 6,\n RE: 1,\n RO: 1,\n RS: 1,\n RU: 1,\n SD: 6,\n SE: 1,\n SI: 1,\n SK: 1,\n SM: 1,\n SY: 6,\n TJ: 1,\n TM: 1,\n TR: 1,\n UA: 1,\n UY: 1,\n UZ: 1,\n VA: 1,\n VN: 1,\n XK: 1\n};\n\n\nexport {$2fe286d2fb449abb$export$7a5acbd77d414bd9 as weekStartData};\n//# sourceMappingURL=weekStartData.module.js.map\n","import {fromAbsolute as $11d87f3f76e88657$export$1b96692a1ba042ac, toAbsolute as $11d87f3f76e88657$export$5107c82f94518f5c, toCalendar as $11d87f3f76e88657$export$b4a036af3fc0b032, toCalendarDate as $11d87f3f76e88657$export$93522d1a439f3617} from \"./conversion.mjs\";\nimport {weekStartData as $2fe286d2fb449abb$export$7a5acbd77d414bd9} from \"./weekStartData.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b) {\n b = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(b, a.calendar);\n return a.era === b.era && a.year === b.year && a.month === b.month && a.day === b.day;\n}\nfunction $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b) {\n b = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(b, a.calendar);\n // In the Japanese calendar, months can span multiple eras/years, so only compare the first of the month.\n a = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(a);\n b = $14e0f24ef4ac5c92$export$a5a3b454ada2268e(b);\n return a.era === b.era && a.year === b.year && a.month === b.month;\n}\nfunction $14e0f24ef4ac5c92$export$5841f9eb9773f25f(a, b) {\n b = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(b, a.calendar);\n a = $14e0f24ef4ac5c92$export$f91e89d3d0406102(a);\n b = $14e0f24ef4ac5c92$export$f91e89d3d0406102(b);\n return a.era === b.era && a.year === b.year;\n}\nfunction $14e0f24ef4ac5c92$export$91b62ebf2ba703ee(a, b) {\n return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$ea39ec197993aef0(a, b);\n}\nfunction $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2(a, b) {\n return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$a18c89cbd24170ff(a, b);\n}\nfunction $14e0f24ef4ac5c92$export$ea840f5a6dda8147(a, b) {\n return $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a.calendar, b.calendar) && $14e0f24ef4ac5c92$export$5841f9eb9773f25f(a, b);\n}\nfunction $14e0f24ef4ac5c92$export$dbc69fd56b53d5e(a, b) {\n var _a_isEqual, _b_isEqual;\n var _a_isEqual1, _ref;\n return (_ref = (_a_isEqual1 = (_a_isEqual = a.isEqual) === null || _a_isEqual === void 0 ? void 0 : _a_isEqual.call(a, b)) !== null && _a_isEqual1 !== void 0 ? _a_isEqual1 : (_b_isEqual = b.isEqual) === null || _b_isEqual === void 0 ? void 0 : _b_isEqual.call(b, a)) !== null && _ref !== void 0 ? _ref : a.identifier === b.identifier;\n}\nfunction $14e0f24ef4ac5c92$export$629b0a497aa65267(date, timeZone) {\n return $14e0f24ef4ac5c92$export$ea39ec197993aef0(date, $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone));\n}\nconst $14e0f24ef4ac5c92$var$DAY_MAP = {\n sun: 0,\n mon: 1,\n tue: 2,\n wed: 3,\n thu: 4,\n fri: 5,\n sat: 6\n};\nfunction $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, firstDayOfWeek) {\n let julian = date.calendar.toJulianDay(date);\n // If julian is negative, then julian % 7 will be negative, so we adjust\n // accordingly. Julian day 0 is Monday.\n let weekStart = firstDayOfWeek ? $14e0f24ef4ac5c92$var$DAY_MAP[firstDayOfWeek] : $14e0f24ef4ac5c92$var$getWeekStart(locale);\n let dayOfWeek = Math.ceil(julian + 1 - weekStart) % 7;\n if (dayOfWeek < 0) dayOfWeek += 7;\n return dayOfWeek;\n}\nfunction $14e0f24ef4ac5c92$export$461939dd4422153(timeZone) {\n return (0, $11d87f3f76e88657$export$1b96692a1ba042ac)(Date.now(), timeZone);\n}\nfunction $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(timeZone) {\n return (0, $11d87f3f76e88657$export$93522d1a439f3617)($14e0f24ef4ac5c92$export$461939dd4422153(timeZone));\n}\nfunction $14e0f24ef4ac5c92$export$68781ddf31c0090f(a, b) {\n return a.calendar.toJulianDay(a) - b.calendar.toJulianDay(b);\n}\nfunction $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a, b) {\n return $14e0f24ef4ac5c92$var$timeToMs(a) - $14e0f24ef4ac5c92$var$timeToMs(b);\n}\nfunction $14e0f24ef4ac5c92$var$timeToMs(a) {\n return a.hour * 3600000 + a.minute * 60000 + a.second * 1000 + a.millisecond;\n}\nfunction $14e0f24ef4ac5c92$export$126c91c941de7e(a, timeZone) {\n let ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(a, timeZone);\n let tomorrow = a.add({\n days: 1\n });\n let tomorrowMs = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(tomorrow, timeZone);\n return (tomorrowMs - ms) / 3600000;\n}\nlet $14e0f24ef4ac5c92$var$localTimeZone = null;\nfunction $14e0f24ef4ac5c92$export$aa8b41735afcabd2() {\n if ($14e0f24ef4ac5c92$var$localTimeZone == null) $14e0f24ef4ac5c92$var$localTimeZone = new Intl.DateTimeFormat().resolvedOptions().timeZone;\n return $14e0f24ef4ac5c92$var$localTimeZone;\n}\nfunction $14e0f24ef4ac5c92$export$61a9d83ceb59a3dd(timeZone) {\n $14e0f24ef4ac5c92$var$localTimeZone = timeZone;\n}\nfunction $14e0f24ef4ac5c92$export$55753838ffe79333() {\n $14e0f24ef4ac5c92$var$localTimeZone = null;\n}\nfunction $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date) {\n // Use `subtract` instead of `set` so we don't get constrained in an era.\n return date.subtract({\n days: date.day - 1\n });\n}\nfunction $14e0f24ef4ac5c92$export$a2258d9c4118825c(date) {\n return date.add({\n days: date.calendar.getDaysInMonth(date) - date.day\n });\n}\nfunction $14e0f24ef4ac5c92$export$f91e89d3d0406102(date) {\n return $14e0f24ef4ac5c92$export$a5a3b454ada2268e(date.subtract({\n months: date.month - 1\n }));\n}\nfunction $14e0f24ef4ac5c92$export$8b7aa55c66d5569e(date) {\n return $14e0f24ef4ac5c92$export$a2258d9c4118825c(date.add({\n months: date.calendar.getMonthsInYear(date) - date.month\n }));\n}\nfunction $14e0f24ef4ac5c92$export$5412ac11713b72ad(date) {\n if (date.calendar.getMinimumMonthInYear) return date.calendar.getMinimumMonthInYear(date);\n return 1;\n}\nfunction $14e0f24ef4ac5c92$export$b2f4953d301981d5(date) {\n if (date.calendar.getMinimumDayInMonth) return date.calendar.getMinimumDayInMonth(date);\n return 1;\n}\nfunction $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(date, locale, firstDayOfWeek) {\n let dayOfWeek = $14e0f24ef4ac5c92$export$2061056d06d7cdf7(date, locale, firstDayOfWeek);\n return date.subtract({\n days: dayOfWeek\n });\n}\nfunction $14e0f24ef4ac5c92$export$ef8b6d9133084f4e(date, locale, firstDayOfWeek) {\n return $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(date, locale, firstDayOfWeek).add({\n days: 6\n });\n}\nconst $14e0f24ef4ac5c92$var$cachedRegions = new Map();\nconst $14e0f24ef4ac5c92$var$cachedWeekInfo = new Map();\nfunction $14e0f24ef4ac5c92$var$getRegion(locale) {\n // If the Intl.Locale API is available, use it to get the region for the locale.\n // @ts-ignore\n if (Intl.Locale) {\n // Constructing an Intl.Locale is expensive, so cache the result.\n let region = $14e0f24ef4ac5c92$var$cachedRegions.get(locale);\n if (!region) {\n // @ts-ignore\n region = new Intl.Locale(locale).maximize().region;\n if (region) $14e0f24ef4ac5c92$var$cachedRegions.set(locale, region);\n }\n return region;\n }\n // If not, just try splitting the string.\n // If the second part of the locale string is 'u',\n // then this is a unicode extension, so ignore it.\n // Otherwise, it should be the region.\n let part = locale.split('-')[1];\n return part === 'u' ? undefined : part;\n}\nfunction $14e0f24ef4ac5c92$var$getWeekStart(locale) {\n // TODO: use Intl.Locale for this once browsers support the weekInfo property\n // https://github.com/tc39/proposal-intl-locale-info\n let weekInfo = $14e0f24ef4ac5c92$var$cachedWeekInfo.get(locale);\n if (!weekInfo) {\n if (Intl.Locale) {\n // @ts-ignore\n let localeInst = new Intl.Locale(locale);\n if ('getWeekInfo' in localeInst) {\n // @ts-expect-error\n weekInfo = localeInst.getWeekInfo();\n if (weekInfo) {\n $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);\n return weekInfo.firstDay;\n }\n }\n }\n let region = $14e0f24ef4ac5c92$var$getRegion(locale);\n if (locale.includes('-fw-')) {\n // pull the value for the attribute fw from strings such as en-US-u-ca-iso8601-fw-tue or en-US-u-ca-iso8601-fw-mon-nu-thai\n // where the fw attribute could be followed by another unicode locale extension or not\n let day = locale.split('-fw-')[1].split('-')[0];\n if (day === 'mon') weekInfo = {\n firstDay: 1\n };\n else if (day === 'tue') weekInfo = {\n firstDay: 2\n };\n else if (day === 'wed') weekInfo = {\n firstDay: 3\n };\n else if (day === 'thu') weekInfo = {\n firstDay: 4\n };\n else if (day === 'fri') weekInfo = {\n firstDay: 5\n };\n else if (day === 'sat') weekInfo = {\n firstDay: 6\n };\n else weekInfo = {\n firstDay: 0\n };\n } else if (locale.includes('-ca-iso8601')) weekInfo = {\n firstDay: 1\n };\n else weekInfo = {\n firstDay: region ? (0, $2fe286d2fb449abb$export$7a5acbd77d414bd9)[region] || 0 : 0\n };\n $14e0f24ef4ac5c92$var$cachedWeekInfo.set(locale, weekInfo);\n }\n return weekInfo.firstDay;\n}\nfunction $14e0f24ef4ac5c92$export$ccc1b2479e7dd654(date, locale, firstDayOfWeek) {\n let days = date.calendar.getDaysInMonth(date);\n return Math.ceil(($14e0f24ef4ac5c92$export$2061056d06d7cdf7($14e0f24ef4ac5c92$export$a5a3b454ada2268e(date), locale, firstDayOfWeek) + days) / 7);\n}\nfunction $14e0f24ef4ac5c92$export$5c333a116e949cdd(a, b) {\n if (a && b) return a.compare(b) <= 0 ? a : b;\n return a || b;\n}\nfunction $14e0f24ef4ac5c92$export$a75f2bff57811055(a, b) {\n if (a && b) return a.compare(b) >= 0 ? a : b;\n return a || b;\n}\nconst $14e0f24ef4ac5c92$var$WEEKEND_DATA = {\n AF: [\n 4,\n 5\n ],\n AE: [\n 5,\n 6\n ],\n BH: [\n 5,\n 6\n ],\n DZ: [\n 5,\n 6\n ],\n EG: [\n 5,\n 6\n ],\n IL: [\n 5,\n 6\n ],\n IQ: [\n 5,\n 6\n ],\n IR: [\n 5,\n 5\n ],\n JO: [\n 5,\n 6\n ],\n KW: [\n 5,\n 6\n ],\n LY: [\n 5,\n 6\n ],\n OM: [\n 5,\n 6\n ],\n QA: [\n 5,\n 6\n ],\n SA: [\n 5,\n 6\n ],\n SD: [\n 5,\n 6\n ],\n SY: [\n 5,\n 6\n ],\n YE: [\n 5,\n 6\n ]\n};\nfunction $14e0f24ef4ac5c92$export$618d60ea299da42(date, locale) {\n let julian = date.calendar.toJulianDay(date);\n // If julian is negative, then julian % 7 will be negative, so we adjust\n // accordingly. Julian day 0 is Monday.\n let dayOfWeek = Math.ceil(julian + 1) % 7;\n if (dayOfWeek < 0) dayOfWeek += 7;\n let region = $14e0f24ef4ac5c92$var$getRegion(locale);\n // Use Intl.Locale for this once weekInfo is supported.\n // https://github.com/tc39/proposal-intl-locale-info\n let [start, end] = $14e0f24ef4ac5c92$var$WEEKEND_DATA[region] || [\n 6,\n 0\n ];\n return dayOfWeek === start || dayOfWeek === end;\n}\nfunction $14e0f24ef4ac5c92$export$ee9d87258e1d19ed(date, locale) {\n return !$14e0f24ef4ac5c92$export$618d60ea299da42(date, locale);\n}\n\n\nexport {$14e0f24ef4ac5c92$export$ea39ec197993aef0 as isSameDay, $14e0f24ef4ac5c92$export$a18c89cbd24170ff as isSameMonth, $14e0f24ef4ac5c92$export$a5a3b454ada2268e as startOfMonth, $14e0f24ef4ac5c92$export$5841f9eb9773f25f as isSameYear, $14e0f24ef4ac5c92$export$f91e89d3d0406102 as startOfYear, $14e0f24ef4ac5c92$export$91b62ebf2ba703ee as isEqualDay, $14e0f24ef4ac5c92$export$dbc69fd56b53d5e as isEqualCalendar, $14e0f24ef4ac5c92$export$5a8da0c44a3afdf2 as isEqualMonth, $14e0f24ef4ac5c92$export$ea840f5a6dda8147 as isEqualYear, $14e0f24ef4ac5c92$export$629b0a497aa65267 as isToday, $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3 as today, $14e0f24ef4ac5c92$export$2061056d06d7cdf7 as getDayOfWeek, $14e0f24ef4ac5c92$export$461939dd4422153 as now, $14e0f24ef4ac5c92$export$68781ddf31c0090f as compareDate, $14e0f24ef4ac5c92$export$c19a80a9721b80f6 as compareTime, $14e0f24ef4ac5c92$export$126c91c941de7e as getHoursInDay, $14e0f24ef4ac5c92$export$aa8b41735afcabd2 as getLocalTimeZone, $14e0f24ef4ac5c92$export$61a9d83ceb59a3dd as setLocalTimeZone, $14e0f24ef4ac5c92$export$55753838ffe79333 as resetLocalTimeZone, $14e0f24ef4ac5c92$export$a2258d9c4118825c as endOfMonth, $14e0f24ef4ac5c92$export$8b7aa55c66d5569e as endOfYear, $14e0f24ef4ac5c92$export$5412ac11713b72ad as getMinimumMonthInYear, $14e0f24ef4ac5c92$export$b2f4953d301981d5 as getMinimumDayInMonth, $14e0f24ef4ac5c92$export$42c81a444fbfb5d4 as startOfWeek, $14e0f24ef4ac5c92$export$ef8b6d9133084f4e as endOfWeek, $14e0f24ef4ac5c92$export$ccc1b2479e7dd654 as getWeeksInMonth, $14e0f24ef4ac5c92$export$5c333a116e949cdd as minDate, $14e0f24ef4ac5c92$export$a75f2bff57811055 as maxDate, $14e0f24ef4ac5c92$export$618d60ea299da42 as isWeekend, $14e0f24ef4ac5c92$export$ee9d87258e1d19ed as isWeekday};\n//# sourceMappingURL=queries.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f, CalendarDateTime as $35ea8db9cb2ccb90$export$ca871e8dbb80966f, Time as $35ea8db9cb2ccb90$export$680ea196effce5f, ZonedDateTime as $35ea8db9cb2ccb90$export$d3b7288e7994edea} from \"./CalendarDate.mjs\";\nimport {constrain as $735220c2d4774dd3$export$c4e2ecac49351ef2} from \"./manipulation.mjs\";\nimport {getExtendedYear as $3b62074eb05584b2$export$c36e0ecb2d4fa69d, GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\nimport {getLocalTimeZone as $14e0f24ef4ac5c92$export$aa8b41735afcabd2, isEqualCalendar as $14e0f24ef4ac5c92$export$dbc69fd56b53d5e} from \"./queries.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ // Portions of the code in this file are based on code from the TC39 Temporal proposal.\n// Original licensing can be found in the NOTICE file in the root directory of this source tree.\n\n\n\n\nfunction $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) {\n date = $11d87f3f76e88657$export$b4a036af3fc0b032(date, new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n let year = (0, $3b62074eb05584b2$export$c36e0ecb2d4fa69d)(date.era, date.year);\n return $11d87f3f76e88657$var$epochFromParts(year, date.month, date.day, date.hour, date.minute, date.second, date.millisecond);\n}\nfunction $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, millisecond) {\n // Note: Date.UTC() interprets one and two-digit years as being in the\n // 20th century, so don't use it\n let date = new Date();\n date.setUTCHours(hour, minute, second, millisecond);\n date.setUTCFullYear(year, month - 1, day);\n return date.getTime();\n}\nfunction $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {\n // Fast path for UTC.\n if (timeZone === 'UTC') return 0;\n // Fast path: for local timezone after 1970, use native Date.\n if (ms > 0 && timeZone === (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)()) return new Date(ms).getTimezoneOffset() * -60000;\n let { year: year, month: month, day: day, hour: hour, minute: minute, second: second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);\n let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);\n return utc - Math.floor(ms / 1000) * 1000;\n}\nconst $11d87f3f76e88657$var$formattersByTimeZone = new Map();\nfunction $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone) {\n let formatter = $11d87f3f76e88657$var$formattersByTimeZone.get(timeZone);\n if (!formatter) {\n formatter = new Intl.DateTimeFormat('en-US', {\n timeZone: timeZone,\n hour12: false,\n era: 'short',\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n second: 'numeric'\n });\n $11d87f3f76e88657$var$formattersByTimeZone.set(timeZone, formatter);\n }\n let parts = formatter.formatToParts(new Date(ms));\n let namedParts = {};\n for (let part of parts)if (part.type !== 'literal') namedParts[part.type] = part.value;\n return {\n // Firefox returns B instead of BC... https://bugzilla.mozilla.org/show_bug.cgi?id=1752253\n year: namedParts.era === 'BC' || namedParts.era === 'B' ? -namedParts.year + 1 : +namedParts.year,\n month: +namedParts.month,\n day: +namedParts.day,\n hour: namedParts.hour === '24' ? 0 : +namedParts.hour,\n minute: +namedParts.minute,\n second: +namedParts.second\n };\n}\nconst $11d87f3f76e88657$var$DAYMILLIS = 86400000;\nfunction $11d87f3f76e88657$export$136f38efe7caf549(date, timeZone) {\n let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date);\n let earlier = ms - $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n let later = ms - $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n return $11d87f3f76e88657$var$getValidWallTimes(date, timeZone, earlier, later);\n}\nfunction $11d87f3f76e88657$var$getValidWallTimes(date, timeZone, earlier, later) {\n let found = earlier === later ? [\n earlier\n ] : [\n earlier,\n later\n ];\n return found.filter((absolute)=>$11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute));\n}\nfunction $11d87f3f76e88657$var$isValidWallTime(date, timeZone, absolute) {\n let parts = $11d87f3f76e88657$var$getTimeZoneParts(absolute, timeZone);\n return date.year === parts.year && date.month === parts.month && date.day === parts.day && date.hour === parts.hour && date.minute === parts.minute && date.second === parts.second;\n}\nfunction $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation = 'compatible') {\n let dateTime = $11d87f3f76e88657$export$b21e0b124e224484(date);\n // Fast path: if the time zone is UTC, use native Date.\n if (timeZone === 'UTC') return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);\n // Fast path: if the time zone is the local timezone and disambiguation is compatible, use native Date.\n if (timeZone === (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)() && disambiguation === 'compatible') {\n dateTime = $11d87f3f76e88657$export$b4a036af3fc0b032(dateTime, new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n // Don't use Date constructor here because two-digit years are interpreted in the 20th century.\n let date = new Date();\n let year = (0, $3b62074eb05584b2$export$c36e0ecb2d4fa69d)(dateTime.era, dateTime.year);\n date.setFullYear(year, dateTime.month - 1, dateTime.day);\n date.setHours(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);\n return date.getTime();\n }\n let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(dateTime);\n let offsetBefore = $11d87f3f76e88657$export$59c99f3515d3493f(ms - $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n let offsetAfter = $11d87f3f76e88657$export$59c99f3515d3493f(ms + $11d87f3f76e88657$var$DAYMILLIS, timeZone);\n let valid = $11d87f3f76e88657$var$getValidWallTimes(dateTime, timeZone, ms - offsetBefore, ms - offsetAfter);\n if (valid.length === 1) return valid[0];\n if (valid.length > 1) switch(disambiguation){\n // 'compatible' means 'earlier' for \"fall back\" transitions\n case 'compatible':\n case 'earlier':\n return valid[0];\n case 'later':\n return valid[valid.length - 1];\n case 'reject':\n throw new RangeError('Multiple possible absolute times found');\n }\n switch(disambiguation){\n case 'earlier':\n return Math.min(ms - offsetBefore, ms - offsetAfter);\n // 'compatible' means 'later' for \"spring forward\" transitions\n case 'compatible':\n case 'later':\n return Math.max(ms - offsetBefore, ms - offsetAfter);\n case 'reject':\n throw new RangeError('No such absolute time found');\n }\n}\nfunction $11d87f3f76e88657$export$e67a095c620b86fe(dateTime, timeZone, disambiguation = 'compatible') {\n return new Date($11d87f3f76e88657$export$5107c82f94518f5c(dateTime, timeZone, disambiguation));\n}\nfunction $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone) {\n let offset = $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone);\n let date = new Date(ms + offset);\n let year = date.getUTCFullYear();\n let month = date.getUTCMonth() + 1;\n let day = date.getUTCDate();\n let hour = date.getUTCHours();\n let minute = date.getUTCMinutes();\n let second = date.getUTCSeconds();\n let millisecond = date.getUTCMilliseconds();\n return new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(year < 1 ? 'BC' : 'AD', year < 1 ? -year + 1 : year, month, day, timeZone, offset, hour, minute, second, millisecond);\n}\nfunction $11d87f3f76e88657$export$e57ff100d91bd4b9(date, timeZone) {\n return $11d87f3f76e88657$export$1b96692a1ba042ac(date.getTime(), timeZone);\n}\nfunction $11d87f3f76e88657$export$d7f92bcd3596b086(date) {\n return $11d87f3f76e88657$export$e57ff100d91bd4b9(date, (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)());\n}\nfunction $11d87f3f76e88657$export$93522d1a439f3617(dateTime) {\n return new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)(dateTime.calendar, dateTime.era, dateTime.year, dateTime.month, dateTime.day);\n}\nfunction $11d87f3f76e88657$export$6f4d78149f3f53ac(date) {\n return {\n era: date.era,\n year: date.year,\n month: date.month,\n day: date.day\n };\n}\nfunction $11d87f3f76e88657$export$4d0393e732857be5(date) {\n return {\n hour: date.hour,\n minute: date.minute,\n second: date.second,\n millisecond: date.millisecond\n };\n}\nfunction $11d87f3f76e88657$export$b21e0b124e224484(date, time) {\n let hour = 0, minute = 0, second = 0, millisecond = 0;\n if ('timeZone' in date) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = date);\n else if ('hour' in date && !time) return date;\n if (time) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = time);\n return new (0, $35ea8db9cb2ccb90$export$ca871e8dbb80966f)(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);\n}\nfunction $11d87f3f76e88657$export$d33f79e3ffc3dc83(dateTime) {\n return new (0, $35ea8db9cb2ccb90$export$680ea196effce5f)(dateTime.hour, dateTime.minute, dateTime.second, dateTime.millisecond);\n}\nfunction $11d87f3f76e88657$export$b4a036af3fc0b032(date, calendar) {\n if ((0, $14e0f24ef4ac5c92$export$dbc69fd56b53d5e)(date.calendar, calendar)) return date;\n let calendarDate = calendar.fromJulianDay(date.calendar.toJulianDay(date));\n let copy = date.copy();\n copy.calendar = calendar;\n copy.era = calendarDate.era;\n copy.year = calendarDate.year;\n copy.month = calendarDate.month;\n copy.day = calendarDate.day;\n (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(copy);\n return copy;\n}\nfunction $11d87f3f76e88657$export$84c95a83c799e074(date, timeZone, disambiguation) {\n if (date instanceof (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)) {\n if (date.timeZone === timeZone) return date;\n return $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone);\n }\n let ms = $11d87f3f76e88657$export$5107c82f94518f5c(date, timeZone, disambiguation);\n return $11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone);\n}\nfunction $11d87f3f76e88657$export$83aac07b4c37b25(date) {\n let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;\n return new Date(ms);\n}\nfunction $11d87f3f76e88657$export$538b00033cc11c75(date, timeZone) {\n let ms = $11d87f3f76e88657$export$bd4fb2bc8bb06fb(date) - date.offset;\n return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(ms, timeZone), date.calendar);\n}\nfunction $11d87f3f76e88657$export$d9b67bc93c097491(date) {\n return $11d87f3f76e88657$export$538b00033cc11c75(date, (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)());\n}\n\n\nexport {$11d87f3f76e88657$export$bd4fb2bc8bb06fb as epochFromDate, $11d87f3f76e88657$export$b4a036af3fc0b032 as toCalendar, $11d87f3f76e88657$export$59c99f3515d3493f as getTimeZoneOffset, $11d87f3f76e88657$export$136f38efe7caf549 as possibleAbsolutes, $11d87f3f76e88657$export$5107c82f94518f5c as toAbsolute, $11d87f3f76e88657$export$b21e0b124e224484 as toCalendarDateTime, $11d87f3f76e88657$export$e67a095c620b86fe as toDate, $11d87f3f76e88657$export$1b96692a1ba042ac as fromAbsolute, $11d87f3f76e88657$export$e57ff100d91bd4b9 as fromDate, $11d87f3f76e88657$export$d7f92bcd3596b086 as fromDateToLocal, $11d87f3f76e88657$export$93522d1a439f3617 as toCalendarDate, $11d87f3f76e88657$export$6f4d78149f3f53ac as toDateFields, $11d87f3f76e88657$export$4d0393e732857be5 as toTimeFields, $11d87f3f76e88657$export$d33f79e3ffc3dc83 as toTime, $11d87f3f76e88657$export$84c95a83c799e074 as toZoned, $11d87f3f76e88657$export$538b00033cc11c75 as toTimeZone, $11d87f3f76e88657$export$83aac07b4c37b25 as zonedToDate, $11d87f3f76e88657$export$d9b67bc93c097491 as toLocalTimeZone};\n//# sourceMappingURL=conversion.module.js.map\n","import {epochFromDate as $11d87f3f76e88657$export$bd4fb2bc8bb06fb, fromAbsolute as $11d87f3f76e88657$export$1b96692a1ba042ac, toAbsolute as $11d87f3f76e88657$export$5107c82f94518f5c, toCalendar as $11d87f3f76e88657$export$b4a036af3fc0b032, toCalendarDateTime as $11d87f3f76e88657$export$b21e0b124e224484} from \"./conversion.mjs\";\nimport {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nconst $735220c2d4774dd3$var$ONE_HOUR = 3600000;\nfunction $735220c2d4774dd3$export$e16d8520af44a096(date, duration) {\n let mutableDate = date.copy();\n let days = 'hour' in mutableDate ? $735220c2d4774dd3$var$addTimeFields(mutableDate, duration) : 0;\n $735220c2d4774dd3$var$addYears(mutableDate, duration.years || 0);\n if (mutableDate.calendar.balanceYearMonth) mutableDate.calendar.balanceYearMonth(mutableDate, date);\n mutableDate.month += duration.months || 0;\n $735220c2d4774dd3$var$balanceYearMonth(mutableDate);\n $735220c2d4774dd3$var$constrainMonthDay(mutableDate);\n mutableDate.day += (duration.weeks || 0) * 7;\n mutableDate.day += duration.days || 0;\n mutableDate.day += days;\n $735220c2d4774dd3$var$balanceDay(mutableDate);\n if (mutableDate.calendar.balanceDate) mutableDate.calendar.balanceDate(mutableDate);\n // Constrain in case adding ended up with a date outside the valid range for the calendar system.\n // The behavior here is slightly different than when constraining in the `set` function in that\n // we adjust smaller fields to their minimum/maximum values rather than constraining each field\n // individually. This matches the general behavior of `add` vs `set` regarding how fields are balanced.\n if (mutableDate.year < 1) {\n mutableDate.year = 1;\n mutableDate.month = 1;\n mutableDate.day = 1;\n }\n let maxYear = mutableDate.calendar.getYearsInEra(mutableDate);\n if (mutableDate.year > maxYear) {\n var _mutableDate_calendar_isInverseEra, _mutableDate_calendar;\n let isInverseEra = (_mutableDate_calendar_isInverseEra = (_mutableDate_calendar = mutableDate.calendar).isInverseEra) === null || _mutableDate_calendar_isInverseEra === void 0 ? void 0 : _mutableDate_calendar_isInverseEra.call(_mutableDate_calendar, mutableDate);\n mutableDate.year = maxYear;\n mutableDate.month = isInverseEra ? 1 : mutableDate.calendar.getMonthsInYear(mutableDate);\n mutableDate.day = isInverseEra ? 1 : mutableDate.calendar.getDaysInMonth(mutableDate);\n }\n if (mutableDate.month < 1) {\n mutableDate.month = 1;\n mutableDate.day = 1;\n }\n let maxMonth = mutableDate.calendar.getMonthsInYear(mutableDate);\n if (mutableDate.month > maxMonth) {\n mutableDate.month = maxMonth;\n mutableDate.day = mutableDate.calendar.getDaysInMonth(mutableDate);\n }\n mutableDate.day = Math.max(1, Math.min(mutableDate.calendar.getDaysInMonth(mutableDate), mutableDate.day));\n return mutableDate;\n}\nfunction $735220c2d4774dd3$var$addYears(date, years) {\n var _date_calendar_isInverseEra, _date_calendar;\n if ((_date_calendar_isInverseEra = (_date_calendar = date.calendar).isInverseEra) === null || _date_calendar_isInverseEra === void 0 ? void 0 : _date_calendar_isInverseEra.call(_date_calendar, date)) years = -years;\n date.year += years;\n}\nfunction $735220c2d4774dd3$var$balanceYearMonth(date) {\n while(date.month < 1){\n $735220c2d4774dd3$var$addYears(date, -1);\n date.month += date.calendar.getMonthsInYear(date);\n }\n let monthsInYear = 0;\n while(date.month > (monthsInYear = date.calendar.getMonthsInYear(date))){\n date.month -= monthsInYear;\n $735220c2d4774dd3$var$addYears(date, 1);\n }\n}\nfunction $735220c2d4774dd3$var$balanceDay(date) {\n while(date.day < 1){\n date.month--;\n $735220c2d4774dd3$var$balanceYearMonth(date);\n date.day += date.calendar.getDaysInMonth(date);\n }\n while(date.day > date.calendar.getDaysInMonth(date)){\n date.day -= date.calendar.getDaysInMonth(date);\n date.month++;\n $735220c2d4774dd3$var$balanceYearMonth(date);\n }\n}\nfunction $735220c2d4774dd3$var$constrainMonthDay(date) {\n date.month = Math.max(1, Math.min(date.calendar.getMonthsInYear(date), date.month));\n date.day = Math.max(1, Math.min(date.calendar.getDaysInMonth(date), date.day));\n}\nfunction $735220c2d4774dd3$export$c4e2ecac49351ef2(date) {\n if (date.calendar.constrainDate) date.calendar.constrainDate(date);\n date.year = Math.max(1, Math.min(date.calendar.getYearsInEra(date), date.year));\n $735220c2d4774dd3$var$constrainMonthDay(date);\n}\nfunction $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {\n let inverseDuration = {};\n for(let key in duration)if (typeof duration[key] === 'number') inverseDuration[key] = -duration[key];\n return inverseDuration;\n}\nfunction $735220c2d4774dd3$export$4e2d2ead65e5f7e3(date, duration) {\n return $735220c2d4774dd3$export$e16d8520af44a096(date, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));\n}\nfunction $735220c2d4774dd3$export$adaa4cf7ef1b65be(date, fields) {\n let mutableDate = date.copy();\n if (fields.era != null) mutableDate.era = fields.era;\n if (fields.year != null) mutableDate.year = fields.year;\n if (fields.month != null) mutableDate.month = fields.month;\n if (fields.day != null) mutableDate.day = fields.day;\n $735220c2d4774dd3$export$c4e2ecac49351ef2(mutableDate);\n return mutableDate;\n}\nfunction $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {\n let mutableValue = value.copy();\n if (fields.hour != null) mutableValue.hour = fields.hour;\n if (fields.minute != null) mutableValue.minute = fields.minute;\n if (fields.second != null) mutableValue.second = fields.second;\n if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;\n $735220c2d4774dd3$export$7555de1e070510cb(mutableValue);\n return mutableValue;\n}\nfunction $735220c2d4774dd3$var$balanceTime(time) {\n time.second += Math.floor(time.millisecond / 1000);\n time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1000);\n time.minute += Math.floor(time.second / 60);\n time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);\n time.hour += Math.floor(time.minute / 60);\n time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);\n let days = Math.floor(time.hour / 24);\n time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);\n return days;\n}\nfunction $735220c2d4774dd3$export$7555de1e070510cb(time) {\n time.millisecond = Math.max(0, Math.min(time.millisecond, 1000));\n time.second = Math.max(0, Math.min(time.second, 59));\n time.minute = Math.max(0, Math.min(time.minute, 59));\n time.hour = Math.max(0, Math.min(time.hour, 23));\n}\nfunction $735220c2d4774dd3$var$nonNegativeMod(a, b) {\n let result = a % b;\n if (result < 0) result += b;\n return result;\n}\nfunction $735220c2d4774dd3$var$addTimeFields(time, duration) {\n time.hour += duration.hours || 0;\n time.minute += duration.minutes || 0;\n time.second += duration.seconds || 0;\n time.millisecond += duration.milliseconds || 0;\n return $735220c2d4774dd3$var$balanceTime(time);\n}\nfunction $735220c2d4774dd3$export$7ed87b6bc2506470(time, duration) {\n let res = time.copy();\n $735220c2d4774dd3$var$addTimeFields(res, duration);\n return res;\n}\nfunction $735220c2d4774dd3$export$fe34d3a381cd7501(time, duration) {\n return $735220c2d4774dd3$export$7ed87b6bc2506470(time, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));\n}\nfunction $735220c2d4774dd3$export$d52ced6badfb9a4c(value, field, amount, options) {\n let mutable = value.copy();\n switch(field){\n case 'era':\n {\n let eras = value.calendar.getEras();\n let eraIndex = eras.indexOf(value.era);\n if (eraIndex < 0) throw new Error('Invalid era: ' + value.era);\n eraIndex = $735220c2d4774dd3$var$cycleValue(eraIndex, amount, 0, eras.length - 1, options === null || options === void 0 ? void 0 : options.round);\n mutable.era = eras[eraIndex];\n // Constrain the year and other fields within the era, so the era doesn't change when we balance below.\n $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);\n break;\n }\n case 'year':\n var _mutable_calendar_isInverseEra, _mutable_calendar;\n if ((_mutable_calendar_isInverseEra = (_mutable_calendar = mutable.calendar).isInverseEra) === null || _mutable_calendar_isInverseEra === void 0 ? void 0 : _mutable_calendar_isInverseEra.call(_mutable_calendar, mutable)) amount = -amount;\n // The year field should not cycle within the era as that can cause weird behavior affecting other fields.\n // We need to also allow values < 1 so that decrementing goes to the previous era. If we get -Infinity back\n // we know we wrapped around after reaching 9999 (the maximum), so set the year back to 1.\n mutable.year = $735220c2d4774dd3$var$cycleValue(value.year, amount, -Infinity, 9999, options === null || options === void 0 ? void 0 : options.round);\n if (mutable.year === -Infinity) mutable.year = 1;\n if (mutable.calendar.balanceYearMonth) mutable.calendar.balanceYearMonth(mutable, value);\n break;\n case 'month':\n mutable.month = $735220c2d4774dd3$var$cycleValue(value.month, amount, 1, value.calendar.getMonthsInYear(value), options === null || options === void 0 ? void 0 : options.round);\n break;\n case 'day':\n mutable.day = $735220c2d4774dd3$var$cycleValue(value.day, amount, 1, value.calendar.getDaysInMonth(value), options === null || options === void 0 ? void 0 : options.round);\n break;\n default:\n throw new Error('Unsupported field ' + field);\n }\n if (value.calendar.balanceDate) value.calendar.balanceDate(mutable);\n $735220c2d4774dd3$export$c4e2ecac49351ef2(mutable);\n return mutable;\n}\nfunction $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {\n let mutable = value.copy();\n switch(field){\n case 'hour':\n {\n let hours = value.hour;\n let min = 0;\n let max = 23;\n if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {\n let isPM = hours >= 12;\n min = isPM ? 12 : 0;\n max = isPM ? 23 : 11;\n }\n mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);\n break;\n }\n case 'minute':\n mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);\n break;\n case 'second':\n mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);\n break;\n case 'millisecond':\n mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);\n break;\n default:\n throw new Error('Unsupported field ' + field);\n }\n return mutable;\n}\nfunction $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {\n if (round) {\n value += Math.sign(amount);\n if (value < min) value = max;\n let div = Math.abs(amount);\n if (amount > 0) value = Math.ceil(value / div) * div;\n else value = Math.floor(value / div) * div;\n if (value > max) value = min;\n } else {\n value += amount;\n if (value < min) value = max - (min - value - 1);\n else if (value > max) value = min + (value - max - 1);\n }\n return value;\n}\nfunction $735220c2d4774dd3$export$96b1d28349274637(dateTime, duration) {\n let ms;\n if (duration.years != null && duration.years !== 0 || duration.months != null && duration.months !== 0 || duration.weeks != null && duration.weeks !== 0 || duration.days != null && duration.days !== 0) {\n let res = $735220c2d4774dd3$export$e16d8520af44a096((0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime), {\n years: duration.years,\n months: duration.months,\n weeks: duration.weeks,\n days: duration.days\n });\n // Changing the date may change the timezone offset, so we need to recompute\n // using the 'compatible' disambiguation.\n ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone);\n } else // Otherwise, preserve the offset of the original date.\n ms = (0, $11d87f3f76e88657$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;\n // Perform time manipulation in milliseconds rather than on the original time fields to account for DST.\n // For example, adding one hour during a DST transition may result in the hour field staying the same or\n // skipping an hour. This results in the offset field changing value instead of the specified field.\n ms += duration.milliseconds || 0;\n ms += (duration.seconds || 0) * 1000;\n ms += (duration.minutes || 0) * 60000;\n ms += (duration.hours || 0) * 3600000;\n let res = (0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone);\n return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(res, dateTime.calendar);\n}\nfunction $735220c2d4774dd3$export$6814caac34ca03c7(dateTime, duration) {\n return $735220c2d4774dd3$export$96b1d28349274637(dateTime, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));\n}\nfunction $735220c2d4774dd3$export$9a297d111fc86b79(dateTime, field, amount, options) {\n // For date fields, we want the time to remain consistent and the UTC offset to potentially change to account for DST changes.\n // For time fields, we want the time to change by the amount given. This may result in the hour field staying the same, but the UTC\n // offset changing in the case of a backward DST transition, or skipping an hour in the case of a forward DST transition.\n switch(field){\n case 'hour':\n {\n let min = 0;\n let max = 23;\n if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {\n let isPM = dateTime.hour >= 12;\n min = isPM ? 12 : 0;\n max = isPM ? 23 : 11;\n }\n // The minimum and maximum hour may be affected by daylight saving time.\n // For example, it might jump forward at midnight, and skip 1am.\n // Or it might end at midnight and repeat the 11pm hour. To handle this, we get\n // the possible absolute times for the min and max, and find the maximum range\n // that is within the current day.\n let plainDateTime = (0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime);\n let minDate = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {\n hour: min\n }), new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n let minAbsolute = [\n (0, $11d87f3f76e88657$export$5107c82f94518f5c)(minDate, dateTime.timeZone, 'earlier'),\n (0, $11d87f3f76e88657$export$5107c82f94518f5c)(minDate, dateTime.timeZone, 'later')\n ].filter((ms)=>(0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone).day === minDate.day)[0];\n let maxDate = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)($735220c2d4774dd3$export$e5d5e1c1822b6e56(plainDateTime, {\n hour: max\n }), new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n let maxAbsolute = [\n (0, $11d87f3f76e88657$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, 'earlier'),\n (0, $11d87f3f76e88657$export$5107c82f94518f5c)(maxDate, dateTime.timeZone, 'later')\n ].filter((ms)=>(0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone).day === maxDate.day).pop();\n // Since hours may repeat, we need to operate on the absolute time in milliseconds.\n // This is done in hours from the Unix epoch so that cycleValue works correctly,\n // and then converted back to milliseconds.\n let ms = (0, $11d87f3f76e88657$export$bd4fb2bc8bb06fb)(dateTime) - dateTime.offset;\n let hours = Math.floor(ms / $735220c2d4774dd3$var$ONE_HOUR);\n let remainder = ms % $735220c2d4774dd3$var$ONE_HOUR;\n ms = $735220c2d4774dd3$var$cycleValue(hours, amount, Math.floor(minAbsolute / $735220c2d4774dd3$var$ONE_HOUR), Math.floor(maxAbsolute / $735220c2d4774dd3$var$ONE_HOUR), options === null || options === void 0 ? void 0 : options.round) * $735220c2d4774dd3$var$ONE_HOUR + remainder;\n // Now compute the new timezone offset, and convert the absolute time back to local time.\n return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)((0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);\n }\n case 'minute':\n case 'second':\n case 'millisecond':\n // @ts-ignore\n return $735220c2d4774dd3$export$dd02b3e0007dfe28(dateTime, field, amount, options);\n case 'era':\n case 'year':\n case 'month':\n case 'day':\n {\n let res = $735220c2d4774dd3$export$d52ced6badfb9a4c((0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime), field, amount, options);\n let ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone);\n return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)((0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);\n }\n default:\n throw new Error('Unsupported field ' + field);\n }\n}\nfunction $735220c2d4774dd3$export$31b5430eb18be4f8(dateTime, fields, disambiguation) {\n // Set the date/time fields, and recompute the UTC offset to account for DST changes.\n // We also need to validate by converting back to a local time in case hours are skipped during forward DST transitions.\n let plainDateTime = (0, $11d87f3f76e88657$export$b21e0b124e224484)(dateTime);\n let res = $735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(plainDateTime, fields), fields);\n // If the resulting plain date time values are equal, return the original time.\n // We don't want to change the offset when setting the time to the same value.\n if (res.compare(plainDateTime) === 0) return dateTime;\n let ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)(res, dateTime.timeZone, disambiguation);\n return (0, $11d87f3f76e88657$export$b4a036af3fc0b032)((0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, dateTime.timeZone), dateTime.calendar);\n}\n\n\nexport {$735220c2d4774dd3$export$e16d8520af44a096 as add, $735220c2d4774dd3$export$c4e2ecac49351ef2 as constrain, $735220c2d4774dd3$export$3e2544e88a25bff8 as invertDuration, $735220c2d4774dd3$export$4e2d2ead65e5f7e3 as subtract, $735220c2d4774dd3$export$adaa4cf7ef1b65be as set, $735220c2d4774dd3$export$e5d5e1c1822b6e56 as setTime, $735220c2d4774dd3$export$7555de1e070510cb as constrainTime, $735220c2d4774dd3$export$7ed87b6bc2506470 as addTime, $735220c2d4774dd3$export$fe34d3a381cd7501 as subtractTime, $735220c2d4774dd3$export$d52ced6badfb9a4c as cycleDate, $735220c2d4774dd3$export$dd02b3e0007dfe28 as cycleTime, $735220c2d4774dd3$export$96b1d28349274637 as addZoned, $735220c2d4774dd3$export$6814caac34ca03c7 as subtractZoned, $735220c2d4774dd3$export$9a297d111fc86b79 as cycleZoned, $735220c2d4774dd3$export$31b5430eb18be4f8 as setZoned};\n//# sourceMappingURL=manipulation.module.js.map\n","import {CalendarDate as $35ea8db9cb2ccb90$export$99faa760c7908e4f, CalendarDateTime as $35ea8db9cb2ccb90$export$ca871e8dbb80966f, Time as $35ea8db9cb2ccb90$export$680ea196effce5f, ZonedDateTime as $35ea8db9cb2ccb90$export$d3b7288e7994edea} from \"./CalendarDate.mjs\";\nimport {epochFromDate as $11d87f3f76e88657$export$bd4fb2bc8bb06fb, fromAbsolute as $11d87f3f76e88657$export$1b96692a1ba042ac, possibleAbsolutes as $11d87f3f76e88657$export$136f38efe7caf549, toAbsolute as $11d87f3f76e88657$export$5107c82f94518f5c, toCalendar as $11d87f3f76e88657$export$b4a036af3fc0b032, toCalendarDateTime as $11d87f3f76e88657$export$b21e0b124e224484, toTimeZone as $11d87f3f76e88657$export$538b00033cc11c75} from \"./conversion.mjs\";\nimport {getLocalTimeZone as $14e0f24ef4ac5c92$export$aa8b41735afcabd2} from \"./queries.mjs\";\nimport {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\nconst $fae977aafc393c5c$var$TIME_RE = /^(\\d{2})(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?$/;\nconst $fae977aafc393c5c$var$DATE_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})$/;\nconst $fae977aafc393c5c$var$DATE_TIME_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})(?:T(\\d{2}))?(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?$/;\nconst $fae977aafc393c5c$var$ZONED_DATE_TIME_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})(?:T(\\d{2}))?(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?(?:([+-]\\d{2})(?::?(\\d{2}))?(?::?(\\d{2}))?)?\\[(.*?)\\]$/;\nconst $fae977aafc393c5c$var$ABSOLUTE_RE = /^([+-]\\d{6}|\\d{4})-(\\d{2})-(\\d{2})(?:T(\\d{2}))?(?::(\\d{2}))?(?::(\\d{2}))?(\\.\\d+)?(?:(?:([+-]\\d{2})(?::?(\\d{2}))?)|Z)$/;\nconst $fae977aafc393c5c$var$DATE_TIME_DURATION_RE = /^((?<negative>-)|\\+)?P((?<years>\\d*)Y)?((?<months>\\d*)M)?((?<weeks>\\d*)W)?((?<days>\\d*)D)?((?<time>T)((?<hours>\\d*[.,]?\\d{1,9})H)?((?<minutes>\\d*[.,]?\\d{1,9})M)?((?<seconds>\\d*[.,]?\\d{1,9})S)?)?$/;\nconst $fae977aafc393c5c$var$requiredDurationTimeGroups = [\n 'hours',\n 'minutes',\n 'seconds'\n];\nconst $fae977aafc393c5c$var$requiredDurationGroups = [\n 'years',\n 'months',\n 'weeks',\n 'days',\n ...$fae977aafc393c5c$var$requiredDurationTimeGroups\n];\nfunction $fae977aafc393c5c$export$c9698ec7f05a07e1(value) {\n let m = value.match($fae977aafc393c5c$var$TIME_RE);\n if (!m) throw new Error('Invalid ISO 8601 time string: ' + value);\n return new (0, $35ea8db9cb2ccb90$export$680ea196effce5f)($fae977aafc393c5c$var$parseNumber(m[1], 0, 23), m[2] ? $fae977aafc393c5c$var$parseNumber(m[2], 0, 59) : 0, m[3] ? $fae977aafc393c5c$var$parseNumber(m[3], 0, 59) : 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, Infinity) * 1000 : 0);\n}\nfunction $fae977aafc393c5c$export$6b862160d295c8e(value) {\n let m = value.match($fae977aafc393c5c$var$DATE_RE);\n if (!m) {\n if ($fae977aafc393c5c$var$ABSOLUTE_RE.test(value)) throw new Error(`Invalid ISO 8601 date string: ${value}. Use parseAbsolute() instead.`);\n throw new Error('Invalid ISO 8601 date string: ' + value);\n }\n let date = new (0, $35ea8db9cb2ccb90$export$99faa760c7908e4f)($fae977aafc393c5c$var$parseNumber(m[1], 0, 9999), $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1);\n date.day = $fae977aafc393c5c$var$parseNumber(m[3], 1, date.calendar.getDaysInMonth(date));\n return date;\n}\nfunction $fae977aafc393c5c$export$588937bcd60ade55(value) {\n let m = value.match($fae977aafc393c5c$var$DATE_TIME_RE);\n if (!m) {\n if ($fae977aafc393c5c$var$ABSOLUTE_RE.test(value)) throw new Error(`Invalid ISO 8601 date time string: ${value}. Use parseAbsolute() instead.`);\n throw new Error('Invalid ISO 8601 date time string: ' + value);\n }\n let year = $fae977aafc393c5c$var$parseNumber(m[1], -9999, 9999);\n let era = year < 1 ? 'BC' : 'AD';\n let date = new (0, $35ea8db9cb2ccb90$export$ca871e8dbb80966f)(era, year < 1 ? -year + 1 : year, $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);\n date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));\n return date;\n}\nfunction $fae977aafc393c5c$export$fd7893f06e92a6a4(value, disambiguation) {\n let m = value.match($fae977aafc393c5c$var$ZONED_DATE_TIME_RE);\n if (!m) throw new Error('Invalid ISO 8601 date time string: ' + value);\n let year = $fae977aafc393c5c$var$parseNumber(m[1], -9999, 9999);\n let era = year < 1 ? 'BC' : 'AD';\n let date = new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(era, year < 1 ? -year + 1 : year, $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, m[11], 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);\n date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));\n let plainDateTime = (0, $11d87f3f76e88657$export$b21e0b124e224484)(date);\n let ms;\n if (m[8]) {\n let hourOffset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23);\n var _m_, _m_1;\n date.offset = Math.sign(hourOffset) * (Math.abs(hourOffset) * 3600000 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : '0', 0, 59) * 60000 + $fae977aafc393c5c$var$parseNumber((_m_1 = m[10]) !== null && _m_1 !== void 0 ? _m_1 : '0', 0, 59) * 1000);\n ms = (0, $11d87f3f76e88657$export$bd4fb2bc8bb06fb)(date) - date.offset;\n // Validate offset against parsed date.\n let absolutes = (0, $11d87f3f76e88657$export$136f38efe7caf549)(plainDateTime, date.timeZone);\n if (!absolutes.includes(ms)) throw new Error(`Offset ${$fae977aafc393c5c$var$offsetToString(date.offset)} is invalid for ${$fae977aafc393c5c$export$4223de14708adc63(date)} in ${date.timeZone}`);\n } else // Convert to absolute and back to fix invalid times due to DST.\n ms = (0, $11d87f3f76e88657$export$5107c82f94518f5c)((0, $11d87f3f76e88657$export$b21e0b124e224484)(plainDateTime), date.timeZone, disambiguation);\n return (0, $11d87f3f76e88657$export$1b96692a1ba042ac)(ms, date.timeZone);\n}\nfunction $fae977aafc393c5c$export$5adfdab05168c219(value, timeZone) {\n let m = value.match($fae977aafc393c5c$var$ABSOLUTE_RE);\n if (!m) throw new Error('Invalid ISO 8601 date time string: ' + value);\n let year = $fae977aafc393c5c$var$parseNumber(m[1], -9999, 9999);\n let era = year < 1 ? 'BC' : 'AD';\n let date = new (0, $35ea8db9cb2ccb90$export$d3b7288e7994edea)(era, year < 1 ? -year + 1 : year, $fae977aafc393c5c$var$parseNumber(m[2], 1, 12), 1, timeZone, 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, 23) : 0, m[5] ? $fae977aafc393c5c$var$parseNumber(m[5], 0, 59) : 0, m[6] ? $fae977aafc393c5c$var$parseNumber(m[6], 0, 59) : 0, m[7] ? $fae977aafc393c5c$var$parseNumber(m[7], 0, Infinity) * 1000 : 0);\n date.day = $fae977aafc393c5c$var$parseNumber(m[3], 0, date.calendar.getDaysInMonth(date));\n var _m_;\n if (m[8]) date.offset = $fae977aafc393c5c$var$parseNumber(m[8], -23, 23) * 3600000 + $fae977aafc393c5c$var$parseNumber((_m_ = m[9]) !== null && _m_ !== void 0 ? _m_ : '0', 0, 59) * 60000;\n return (0, $11d87f3f76e88657$export$538b00033cc11c75)(date, timeZone);\n}\nfunction $fae977aafc393c5c$export$8e384432362ed0f0(value) {\n return $fae977aafc393c5c$export$5adfdab05168c219(value, (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)());\n}\nfunction $fae977aafc393c5c$var$parseNumber(value, min, max) {\n let val = Number(value);\n if (val < min || val > max) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);\n return val;\n}\nfunction $fae977aafc393c5c$export$f59dee82248f5ad4(time) {\n return `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}:${String(time.second).padStart(2, '0')}${time.millisecond ? String(time.millisecond / 1000).slice(1) : ''}`;\n}\nfunction $fae977aafc393c5c$export$60dfd74aa96791bd(date) {\n let gregorianDate = (0, $11d87f3f76e88657$export$b4a036af3fc0b032)(date, new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)());\n let year;\n if (gregorianDate.era === 'BC') year = gregorianDate.year === 1 ? '0000' : '-' + String(Math.abs(1 - gregorianDate.year)).padStart(6, '00');\n else year = String(gregorianDate.year).padStart(4, '0');\n return `${year}-${String(gregorianDate.month).padStart(2, '0')}-${String(gregorianDate.day).padStart(2, '0')}`;\n}\nfunction $fae977aafc393c5c$export$4223de14708adc63(date) {\n // @ts-ignore\n return `${$fae977aafc393c5c$export$60dfd74aa96791bd(date)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(date)}`;\n}\nfunction $fae977aafc393c5c$var$offsetToString(offset) {\n let sign = Math.sign(offset) < 0 ? '-' : '+';\n offset = Math.abs(offset);\n let offsetHours = Math.floor(offset / 3600000);\n let offsetMinutes = Math.floor(offset % 3600000 / 60000);\n let offsetSeconds = Math.floor(offset % 3600000 % 60000 / 1000);\n let stringOffset = `${sign}${String(offsetHours).padStart(2, '0')}:${String(offsetMinutes).padStart(2, '0')}`;\n if (offsetSeconds !== 0) stringOffset += `:${String(offsetSeconds).padStart(2, '0')}`;\n return stringOffset;\n}\nfunction $fae977aafc393c5c$export$bf79f1ebf4b18792(date) {\n return `${$fae977aafc393c5c$export$4223de14708adc63(date)}${$fae977aafc393c5c$var$offsetToString(date.offset)}[${date.timeZone}]`;\n}\nfunction $fae977aafc393c5c$export$ecae829bb3747ea6(value) {\n var _match_groups, _match_groups1, _match_groups2, _match_groups3, _match_groups4, _match_groups5, _match_groups6, _match_groups7, _match_groups8;\n const match = value.match($fae977aafc393c5c$var$DATE_TIME_DURATION_RE);\n if (!match) throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n const parseDurationGroup = (group, isNegative)=>{\n if (!group) return 0;\n try {\n const sign = isNegative ? -1 : 1;\n return sign * Number(group.replace(',', '.'));\n } catch {\n throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n }\n };\n const isNegative = !!((_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups.negative);\n const hasRequiredGroups = $fae977aafc393c5c$var$requiredDurationGroups.some((group)=>{\n var _match_groups;\n return (_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups[group];\n });\n if (!hasRequiredGroups) throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n const durationStringIncludesTime = (_match_groups1 = match.groups) === null || _match_groups1 === void 0 ? void 0 : _match_groups1.time;\n if (durationStringIncludesTime) {\n const hasRequiredDurationTimeGroups = $fae977aafc393c5c$var$requiredDurationTimeGroups.some((group)=>{\n var _match_groups;\n return (_match_groups = match.groups) === null || _match_groups === void 0 ? void 0 : _match_groups[group];\n });\n if (!hasRequiredDurationTimeGroups) throw new Error(`Invalid ISO 8601 Duration string: ${value}`);\n }\n const duration = {\n years: parseDurationGroup((_match_groups2 = match.groups) === null || _match_groups2 === void 0 ? void 0 : _match_groups2.years, isNegative),\n months: parseDurationGroup((_match_groups3 = match.groups) === null || _match_groups3 === void 0 ? void 0 : _match_groups3.months, isNegative),\n weeks: parseDurationGroup((_match_groups4 = match.groups) === null || _match_groups4 === void 0 ? void 0 : _match_groups4.weeks, isNegative),\n days: parseDurationGroup((_match_groups5 = match.groups) === null || _match_groups5 === void 0 ? void 0 : _match_groups5.days, isNegative),\n hours: parseDurationGroup((_match_groups6 = match.groups) === null || _match_groups6 === void 0 ? void 0 : _match_groups6.hours, isNegative),\n minutes: parseDurationGroup((_match_groups7 = match.groups) === null || _match_groups7 === void 0 ? void 0 : _match_groups7.minutes, isNegative),\n seconds: parseDurationGroup((_match_groups8 = match.groups) === null || _match_groups8 === void 0 ? void 0 : _match_groups8.seconds, isNegative)\n };\n if (duration.hours !== undefined && duration.hours % 1 !== 0 && (duration.minutes || duration.seconds)) throw new Error(`Invalid ISO 8601 Duration string: ${value} - only the smallest unit can be fractional`);\n if (duration.minutes !== undefined && duration.minutes % 1 !== 0 && duration.seconds) throw new Error(`Invalid ISO 8601 Duration string: ${value} - only the smallest unit can be fractional`);\n return duration;\n}\n\n\nexport {$fae977aafc393c5c$export$c9698ec7f05a07e1 as parseTime, $fae977aafc393c5c$export$6b862160d295c8e as parseDate, $fae977aafc393c5c$export$588937bcd60ade55 as parseDateTime, $fae977aafc393c5c$export$fd7893f06e92a6a4 as parseZonedDateTime, $fae977aafc393c5c$export$4223de14708adc63 as dateTimeToString, $fae977aafc393c5c$export$5adfdab05168c219 as parseAbsolute, $fae977aafc393c5c$export$8e384432362ed0f0 as parseAbsoluteToLocal, $fae977aafc393c5c$export$f59dee82248f5ad4 as timeToString, $fae977aafc393c5c$export$60dfd74aa96791bd as dateToString, $fae977aafc393c5c$export$bf79f1ebf4b18792 as zonedDateTimeToString, $fae977aafc393c5c$export$ecae829bb3747ea6 as parseDuration};\n//# sourceMappingURL=string.module.js.map\n","function _check_private_redeclaration(obj, privateCollection) {\n if (privateCollection.has(obj)) {\n throw new TypeError(\"Cannot initialize the same private elements twice on an object\");\n }\n}\nexport { _check_private_redeclaration as _ };\n","import { _ as _check_private_redeclaration } from \"./_check_private_redeclaration.js\";\n\nfunction _class_private_field_init(obj, privateMap, value) {\n _check_private_redeclaration(obj, privateMap);\n privateMap.set(obj, value);\n}\nexport { _class_private_field_init as _ };\n","import {add as $735220c2d4774dd3$export$e16d8520af44a096, addTime as $735220c2d4774dd3$export$7ed87b6bc2506470, addZoned as $735220c2d4774dd3$export$96b1d28349274637, constrain as $735220c2d4774dd3$export$c4e2ecac49351ef2, constrainTime as $735220c2d4774dd3$export$7555de1e070510cb, cycleDate as $735220c2d4774dd3$export$d52ced6badfb9a4c, cycleTime as $735220c2d4774dd3$export$dd02b3e0007dfe28, cycleZoned as $735220c2d4774dd3$export$9a297d111fc86b79, set as $735220c2d4774dd3$export$adaa4cf7ef1b65be, setTime as $735220c2d4774dd3$export$e5d5e1c1822b6e56, setZoned as $735220c2d4774dd3$export$31b5430eb18be4f8, subtract as $735220c2d4774dd3$export$4e2d2ead65e5f7e3, subtractTime as $735220c2d4774dd3$export$fe34d3a381cd7501, subtractZoned as $735220c2d4774dd3$export$6814caac34ca03c7} from \"./manipulation.mjs\";\nimport {compareDate as $14e0f24ef4ac5c92$export$68781ddf31c0090f, compareTime as $14e0f24ef4ac5c92$export$c19a80a9721b80f6} from \"./queries.mjs\";\nimport {dateTimeToString as $fae977aafc393c5c$export$4223de14708adc63, dateToString as $fae977aafc393c5c$export$60dfd74aa96791bd, timeToString as $fae977aafc393c5c$export$f59dee82248f5ad4, zonedDateTimeToString as $fae977aafc393c5c$export$bf79f1ebf4b18792} from \"./string.mjs\";\nimport {GregorianCalendar as $3b62074eb05584b2$export$80ee6245ec4f29ec} from \"./GregorianCalendar.mjs\";\nimport {toCalendarDateTime as $11d87f3f76e88657$export$b21e0b124e224484, toDate as $11d87f3f76e88657$export$e67a095c620b86fe, toZoned as $11d87f3f76e88657$export$84c95a83c799e074, zonedToDate as $11d87f3f76e88657$export$83aac07b4c37b25} from \"./conversion.mjs\";\nimport {_ as $aksy1$_} from \"@swc/helpers/_/_class_private_field_init\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\n\n\n\n\nfunction $35ea8db9cb2ccb90$var$shiftArgs(args) {\n let calendar = typeof args[0] === 'object' ? args.shift() : new (0, $3b62074eb05584b2$export$80ee6245ec4f29ec)();\n let era;\n if (typeof args[0] === 'string') era = args.shift();\n else {\n let eras = calendar.getEras();\n era = eras[eras.length - 1];\n }\n let year = args.shift();\n let month = args.shift();\n let day = args.shift();\n return [\n calendar,\n era,\n year,\n month,\n day\n ];\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// i.e. a ZonedDateTime should not be be passable to a parameter that expects CalendarDate.\n// If that behavior is desired, use the AnyCalendarDate interface instead.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$99faa760c7908e4f {\n /** Returns a copy of this date. */ copy() {\n if (this.era) return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.era, this.year, this.month, this.day);\n else return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar, this.year, this.month, this.day);\n }\n /** Returns a new `CalendarDate` with the given duration added to it. */ add(duration) {\n return (0, $735220c2d4774dd3$export$e16d8520af44a096)(this, duration);\n }\n /** Returns a new `CalendarDate` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $735220c2d4774dd3$export$4e2d2ead65e5f7e3)(this, duration);\n }\n /** Returns a new `CalendarDate` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n return (0, $735220c2d4774dd3$export$adaa4cf7ef1b65be)(this, fields);\n }\n /**\n * Returns a new `CalendarDate` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n return (0, $735220c2d4774dd3$export$d52ced6badfb9a4c)(this, field, amount, options);\n }\n /** Converts the date to a native JavaScript Date object, with the time set to midnight in the given time zone. */ toDate(timeZone) {\n return (0, $11d87f3f76e88657$export$e67a095c620b86fe)(this, timeZone);\n }\n /** Converts the date to an ISO 8601 formatted string. */ toString() {\n return (0, $fae977aafc393c5c$export$60dfd74aa96791bd)(this);\n }\n /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n return (0, $14e0f24ef4ac5c92$export$68781ddf31c0090f)(this, b);\n }\n constructor(...args){\n (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type, {\n writable: true,\n value: void 0\n });\n let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);\n this.calendar = calendar;\n this.era = era;\n this.year = year;\n this.month = month;\n this.day = day;\n (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(this);\n }\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type1 = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$680ea196effce5f {\n /** Returns a copy of this time. */ copy() {\n return new $35ea8db9cb2ccb90$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);\n }\n /** Returns a new `Time` with the given duration added to it. */ add(duration) {\n return (0, $735220c2d4774dd3$export$7ed87b6bc2506470)(this, duration);\n }\n /** Returns a new `Time` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $735220c2d4774dd3$export$fe34d3a381cd7501)(this, duration);\n }\n /** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n return (0, $735220c2d4774dd3$export$e5d5e1c1822b6e56)(this, fields);\n }\n /**\n * Returns a new `Time` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n return (0, $735220c2d4774dd3$export$dd02b3e0007dfe28)(this, field, amount, options);\n }\n /** Converts the time to an ISO 8601 formatted string. */ toString() {\n return (0, $fae977aafc393c5c$export$f59dee82248f5ad4)(this);\n }\n /** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */ compare(b) {\n return (0, $14e0f24ef4ac5c92$export$c19a80a9721b80f6)(this, b);\n }\n constructor(hour = 0, minute = 0, second = 0, millisecond = 0){\n (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type1, {\n writable: true,\n value: void 0\n });\n this.hour = hour;\n this.minute = minute;\n this.second = second;\n this.millisecond = millisecond;\n (0, $735220c2d4774dd3$export$7555de1e070510cb)(this);\n }\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type2 = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$ca871e8dbb80966f {\n /** Returns a copy of this date. */ copy() {\n if (this.era) return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.era, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);\n else return new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar, this.year, this.month, this.day, this.hour, this.minute, this.second, this.millisecond);\n }\n /** Returns a new `CalendarDateTime` with the given duration added to it. */ add(duration) {\n return (0, $735220c2d4774dd3$export$e16d8520af44a096)(this, duration);\n }\n /** Returns a new `CalendarDateTime` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $735220c2d4774dd3$export$4e2d2ead65e5f7e3)(this, duration);\n }\n /** Returns a new `CalendarDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {\n return (0, $735220c2d4774dd3$export$adaa4cf7ef1b65be)((0, $735220c2d4774dd3$export$e5d5e1c1822b6e56)(this, fields), fields);\n }\n /**\n * Returns a new `CalendarDateTime` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n switch(field){\n case 'era':\n case 'year':\n case 'month':\n case 'day':\n return (0, $735220c2d4774dd3$export$d52ced6badfb9a4c)(this, field, amount, options);\n default:\n return (0, $735220c2d4774dd3$export$dd02b3e0007dfe28)(this, field, amount, options);\n }\n }\n /** Converts the date to a native JavaScript Date object in the given time zone. */ toDate(timeZone, disambiguation) {\n return (0, $11d87f3f76e88657$export$e67a095c620b86fe)(this, timeZone, disambiguation);\n }\n /** Converts the date to an ISO 8601 formatted string. */ toString() {\n return (0, $fae977aafc393c5c$export$4223de14708adc63)(this);\n }\n /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n let res = (0, $14e0f24ef4ac5c92$export$68781ddf31c0090f)(this, b);\n if (res === 0) return (0, $14e0f24ef4ac5c92$export$c19a80a9721b80f6)(this, (0, $11d87f3f76e88657$export$b21e0b124e224484)(b));\n return res;\n }\n constructor(...args){\n (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type2, {\n writable: true,\n value: void 0\n });\n let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);\n this.calendar = calendar;\n this.era = era;\n this.year = year;\n this.month = month;\n this.day = day;\n this.hour = args.shift() || 0;\n this.minute = args.shift() || 0;\n this.second = args.shift() || 0;\n this.millisecond = args.shift() || 0;\n (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(this);\n }\n}\nvar // This prevents TypeScript from allowing other types with the same fields to match.\n// @ts-ignore\n$35ea8db9cb2ccb90$var$_type3 = /*#__PURE__*/ new WeakMap();\nclass $35ea8db9cb2ccb90$export$d3b7288e7994edea {\n /** Returns a copy of this date. */ copy() {\n if (this.era) return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.era, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);\n else return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar, this.year, this.month, this.day, this.timeZone, this.offset, this.hour, this.minute, this.second, this.millisecond);\n }\n /** Returns a new `ZonedDateTime` with the given duration added to it. */ add(duration) {\n return (0, $735220c2d4774dd3$export$96b1d28349274637)(this, duration);\n }\n /** Returns a new `ZonedDateTime` with the given duration subtracted from it. */ subtract(duration) {\n return (0, $735220c2d4774dd3$export$6814caac34ca03c7)(this, duration);\n }\n /** Returns a new `ZonedDateTime` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields, disambiguation) {\n return (0, $735220c2d4774dd3$export$31b5430eb18be4f8)(this, fields, disambiguation);\n }\n /**\n * Returns a new `ZonedDateTime` with the given field adjusted by a specified amount.\n * When the resulting value reaches the limits of the field, it wraps around.\n */ cycle(field, amount, options) {\n return (0, $735220c2d4774dd3$export$9a297d111fc86b79)(this, field, amount, options);\n }\n /** Converts the date to a native JavaScript Date object. */ toDate() {\n return (0, $11d87f3f76e88657$export$83aac07b4c37b25)(this);\n }\n /** Converts the date to an ISO 8601 formatted string, including the UTC offset and time zone identifier. */ toString() {\n return (0, $fae977aafc393c5c$export$bf79f1ebf4b18792)(this);\n }\n /** Converts the date to an ISO 8601 formatted string in UTC. */ toAbsoluteString() {\n return this.toDate().toISOString();\n }\n /** Compares this date with another. A negative result indicates that this date is before the given one, and a positive date indicates that it is after. */ compare(b) {\n // TODO: Is this a bad idea??\n return this.toDate().getTime() - (0, $11d87f3f76e88657$export$84c95a83c799e074)(b, this.timeZone).toDate().getTime();\n }\n constructor(...args){\n (0, $aksy1$_)(this, $35ea8db9cb2ccb90$var$_type3, {\n writable: true,\n value: void 0\n });\n let [calendar, era, year, month, day] = $35ea8db9cb2ccb90$var$shiftArgs(args);\n let timeZone = args.shift();\n let offset = args.shift();\n this.calendar = calendar;\n this.era = era;\n this.year = year;\n this.month = month;\n this.day = day;\n this.timeZone = timeZone;\n this.offset = offset;\n this.hour = args.shift() || 0;\n this.minute = args.shift() || 0;\n this.second = args.shift() || 0;\n this.millisecond = args.shift() || 0;\n (0, $735220c2d4774dd3$export$c4e2ecac49351ef2)(this);\n }\n}\n\n\nexport {$35ea8db9cb2ccb90$export$99faa760c7908e4f as CalendarDate, $35ea8db9cb2ccb90$export$680ea196effce5f as Time, $35ea8db9cb2ccb90$export$ca871e8dbb80966f as CalendarDateTime, $35ea8db9cb2ccb90$export$d3b7288e7994edea as ZonedDateTime};\n//# sourceMappingURL=CalendarDate.module.js.map\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ let $fb18d541ea1ad717$var$formatterCache = new Map();\nclass $fb18d541ea1ad717$export$ad991b66133851cf {\n /** Formats a date as a string according to the locale and format options passed to the constructor. */ format(value) {\n return this.formatter.format(value);\n }\n /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */ formatToParts(value) {\n return this.formatter.formatToParts(value);\n }\n /** Formats a date range as a string. */ formatRange(start, end) {\n // @ts-ignore\n if (typeof this.formatter.formatRange === 'function') // @ts-ignore\n return this.formatter.formatRange(start, end);\n if (end < start) throw new RangeError('End date must be >= start date');\n // Very basic fallback for old browsers.\n return `${this.formatter.format(start)} \\u{2013} ${this.formatter.format(end)}`;\n }\n /** Formats a date range as an array of parts. */ formatRangeToParts(start, end) {\n // @ts-ignore\n if (typeof this.formatter.formatRangeToParts === 'function') // @ts-ignore\n return this.formatter.formatRangeToParts(start, end);\n if (end < start) throw new RangeError('End date must be >= start date');\n let startParts = this.formatter.formatToParts(start);\n let endParts = this.formatter.formatToParts(end);\n return [\n ...startParts.map((p)=>({\n ...p,\n source: 'startRange'\n })),\n {\n type: 'literal',\n value: \" \\u2013 \",\n source: 'shared'\n },\n ...endParts.map((p)=>({\n ...p,\n source: 'endRange'\n }))\n ];\n }\n /** Returns the resolved formatting options based on the values passed to the constructor. */ resolvedOptions() {\n let resolvedOptions = this.formatter.resolvedOptions();\n if ($fb18d541ea1ad717$var$hasBuggyResolvedHourCycle()) {\n if (!this.resolvedHourCycle) this.resolvedHourCycle = $fb18d541ea1ad717$var$getResolvedHourCycle(resolvedOptions.locale, this.options);\n resolvedOptions.hourCycle = this.resolvedHourCycle;\n resolvedOptions.hour12 = this.resolvedHourCycle === 'h11' || this.resolvedHourCycle === 'h12';\n }\n // Safari uses a different name for the Ethiopic (Amete Alem) calendar.\n // https://bugs.webkit.org/show_bug.cgi?id=241564\n if (resolvedOptions.calendar === 'ethiopic-amete-alem') resolvedOptions.calendar = 'ethioaa';\n return resolvedOptions;\n }\n constructor(locale, options = {}){\n this.formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options);\n this.options = options;\n }\n}\n// There are multiple bugs involving the hour12 and hourCycle options in various browser engines.\n// - Chrome [1] (and the ECMA 402 spec [2]) resolve hour12: false in English and other locales to h24 (24:00 - 23:59)\n// rather than h23 (00:00 - 23:59). Same can happen with hour12: true in French, which Chrome resolves to h11 (00:00 - 11:59)\n// rather than h12 (12:00 - 11:59).\n// - WebKit returns an incorrect hourCycle resolved option in the French locale due to incorrect parsing of 'h' literal\n// in the resolved pattern. It also formats incorrectly when specifying the hourCycle option for the same reason. [3]\n// [1] https://bugs.chromium.org/p/chromium/issues/detail?id=1045791\n// [2] https://github.com/tc39/ecma402/issues/402\n// [3] https://bugs.webkit.org/show_bug.cgi?id=229313\n// https://github.com/unicode-org/cldr/blob/018b55eff7ceb389c7e3fc44e2f657eae3b10b38/common/supplemental/supplementalData.xml#L4774-L4802\nconst $fb18d541ea1ad717$var$hour12Preferences = {\n true: {\n // Only Japanese uses the h11 style for 12 hour time. All others use h12.\n ja: 'h11'\n },\n false: {\n }\n};\nfunction $fb18d541ea1ad717$var$getCachedDateFormatter(locale, options = {}) {\n // Work around buggy hour12 behavior in Chrome / ECMA 402 spec by using hourCycle instead.\n // Only apply the workaround if the issue is detected, because the hourCycle option is buggy in Safari.\n if (typeof options.hour12 === 'boolean' && $fb18d541ea1ad717$var$hasBuggyHour12Behavior()) {\n options = {\n ...options\n };\n let pref = $fb18d541ea1ad717$var$hour12Preferences[String(options.hour12)][locale.split('-')[0]];\n let defaultHourCycle = options.hour12 ? 'h12' : 'h23';\n options.hourCycle = pref !== null && pref !== void 0 ? pref : defaultHourCycle;\n delete options.hour12;\n }\n let cacheKey = locale + (options ? Object.entries(options).sort((a, b)=>a[0] < b[0] ? -1 : 1).join() : '');\n if ($fb18d541ea1ad717$var$formatterCache.has(cacheKey)) return $fb18d541ea1ad717$var$formatterCache.get(cacheKey);\n let numberFormatter = new Intl.DateTimeFormat(locale, options);\n $fb18d541ea1ad717$var$formatterCache.set(cacheKey, numberFormatter);\n return numberFormatter;\n}\nlet $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = null;\nfunction $fb18d541ea1ad717$var$hasBuggyHour12Behavior() {\n if ($fb18d541ea1ad717$var$_hasBuggyHour12Behavior == null) $fb18d541ea1ad717$var$_hasBuggyHour12Behavior = new Intl.DateTimeFormat('en-US', {\n hour: 'numeric',\n hour12: false\n }).format(new Date(2020, 2, 3, 0)) === '24';\n return $fb18d541ea1ad717$var$_hasBuggyHour12Behavior;\n}\nlet $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = null;\nfunction $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle() {\n if ($fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle == null) $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle = new Intl.DateTimeFormat('fr', {\n hour: 'numeric',\n hour12: false\n }).resolvedOptions().hourCycle === 'h12';\n return $fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle;\n}\nfunction $fb18d541ea1ad717$var$getResolvedHourCycle(locale, options) {\n if (!options.timeStyle && !options.hour) return undefined;\n // Work around buggy results in resolved hourCycle and hour12 options in WebKit.\n // Format the minimum possible hour and maximum possible hour in a day and parse the results.\n locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, '');\n locale += (locale.includes('-u-') ? '' : '-u') + '-nu-latn';\n let formatter = $fb18d541ea1ad717$var$getCachedDateFormatter(locale, {\n ...options,\n timeZone: undefined // use local timezone\n });\n let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p)=>p.type === 'hour').value, 10);\n let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p)=>p.type === 'hour').value, 10);\n if (min === 0 && max === 23) return 'h23';\n if (min === 24 && max === 23) return 'h24';\n if (min === 0 && max === 11) return 'h11';\n if (min === 12 && max === 11) return 'h12';\n throw new Error('Unexpected hour cycle result');\n}\n\n\nexport {$fb18d541ea1ad717$export$ad991b66133851cf as DateFormatter};\n//# sourceMappingURL=DateFormatter.module.js.map\n","import { srOnlyStylesString } from \"svelte-toolbelt\";\nimport { isBrowser, isHTMLElement } from \"../is.js\";\n/**\n * Creates or gets an announcer element which is used to announce messages to screen readers.\n * Within the date components, we use this to announce when the values of the individual segments\n * change, as without it we get inconsistent behavior across screen readers.\n */\nfunction initAnnouncer(doc) {\n if (!isBrowser || !doc)\n return null;\n let el = doc.querySelector(\"[data-bits-announcer]\");\n /**\n * Creates a log element for assertive or polite announcements.\n */\n const createLog = (kind) => {\n const log = doc.createElement(\"div\");\n log.role = \"log\";\n log.ariaLive = kind;\n log.setAttribute(\"aria-relevant\", \"additions\");\n return log;\n };\n if (!isHTMLElement(el)) {\n const div = doc.createElement(\"div\");\n div.style.cssText = srOnlyStylesString;\n div.setAttribute(\"data-bits-announcer\", \"\");\n div.appendChild(createLog(\"assertive\"));\n div.appendChild(createLog(\"polite\"));\n el = div;\n doc.body.insertBefore(el, doc.body.firstChild);\n }\n /**\n * Retrieves the log element for assertive or polite announcements.\n */\n const getLog = (kind) => {\n if (!isHTMLElement(el))\n return null;\n const log = el.querySelector(`[aria-live=\"${kind}\"]`);\n if (!isHTMLElement(log))\n return null;\n return log;\n };\n return {\n getLog,\n };\n}\n/**\n * Creates an announcer object that can be used to make `aria-live` announcements to screen readers.\n */\nexport function getAnnouncer(doc) {\n const announcer = initAnnouncer(doc);\n /**\n * Announces a message to screen readers using the specified kind of announcement.\n */\n function announce(value, kind = \"assertive\", timeout = 7500) {\n if (!announcer || !isBrowser || !doc)\n return;\n const log = announcer.getLog(kind);\n const content = doc.createElement(\"div\");\n if (typeof value === \"number\") {\n value = value.toString();\n }\n else if (value === null) {\n value = \"Empty\";\n }\n else {\n value = value.trim();\n }\n content.innerText = value;\n if (kind === \"assertive\") {\n log?.replaceChildren(content);\n }\n else {\n log?.appendChild(content);\n }\n return setTimeout(() => {\n content.remove();\n }, timeout);\n }\n return {\n announce,\n };\n}\n","import { CalendarDate, CalendarDateTime, Time, ZonedDateTime, getDayOfWeek, getLocalTimeZone, parseDate, parseDateTime, parseZonedDateTime, toCalendar, } from \"@internationalized/date\";\nconst defaultDateDefaults = {\n defaultValue: undefined,\n granularity: \"day\",\n};\nconst defaultTimeDefaults = {\n defaultValue: undefined,\n granularity: \"minute\",\n};\n/**\n * A helper function used throughout the various date builders\n * to generate a default `DateValue` using the `defaultValue`,\n * `defaultPlaceholder`, `minValue`, `maxValue`, and `granularity` props.\n *\n * It's important to match the `DateValue` type being used\n * elsewhere in the builder, so they behave according to the\n * behavior the user expects based on the props they've provided.\n *\n */\nexport function getDefaultDate(opts) {\n const withDefaults = { ...defaultDateDefaults, ...opts };\n const { defaultValue, granularity, minValue, maxValue } = withDefaults;\n if (Array.isArray(defaultValue) && defaultValue.length) {\n return defaultValue[defaultValue.length - 1];\n }\n if (defaultValue && !Array.isArray(defaultValue)) {\n return defaultValue;\n }\n else {\n let date = new Date();\n if (minValue && date < minValue.toDate(getLocalTimeZone())) {\n date = minValue.toDate(getLocalTimeZone());\n }\n else if (maxValue && date > maxValue.toDate(getLocalTimeZone())) {\n date = maxValue.toDate(getLocalTimeZone());\n }\n const year = date.getFullYear();\n const month = date.getMonth() + 1;\n const day = date.getDate();\n const calendarDateTimeGranularities = [\"hour\", \"minute\", \"second\"];\n if (calendarDateTimeGranularities.includes(granularity ?? \"day\")) {\n return new CalendarDateTime(year, month, day, 0, 0, 0);\n }\n return new CalendarDate(year, month, day);\n }\n}\nexport function getDefaultTime(opts) {\n const withDefaults = { ...defaultTimeDefaults, ...opts };\n const { defaultValue } = withDefaults;\n if (defaultValue) {\n return defaultValue;\n }\n else {\n return new Time(0, 0, 0);\n }\n}\n/**\n * Given a date string and a reference `DateValue` object, parse the\n * string to the same type as the reference object.\n *\n * Useful for parsing strings from data attributes, which are always\n * strings, to the same type being used by the date component.\n */\nexport function parseStringToDateValue(dateStr, referenceVal) {\n let dateValue;\n if (referenceVal instanceof ZonedDateTime) {\n dateValue = parseZonedDateTime(dateStr);\n }\n else if (referenceVal instanceof CalendarDateTime) {\n dateValue = parseDateTime(dateStr);\n }\n else {\n dateValue = parseDate(dateStr);\n }\n // ensure the parsed date is in the same calendar as the reference date set by the user.\n return dateValue.calendar !== referenceVal.calendar\n ? toCalendar(dateValue, referenceVal.calendar)\n : dateValue;\n}\n/**\n * Given a `DateValue` object, convert it to a native `Date` object.\n * If a timezone is provided, the date will be converted to that timezone.\n * If no timezone is provided, the date will be converted to the local timezone.\n */\nexport function toDate(dateValue, tz = getLocalTimeZone()) {\n if (dateValue instanceof ZonedDateTime) {\n return dateValue.toDate();\n }\n else {\n return dateValue.toDate(tz);\n }\n}\nexport function getDateValueType(date) {\n if (date instanceof CalendarDate)\n return \"date\";\n if (date instanceof CalendarDateTime)\n return \"datetime\";\n if (date instanceof ZonedDateTime)\n return \"zoneddatetime\";\n throw new Error(\"Unknown date type\");\n}\nexport function parseAnyDateValue(value, type) {\n switch (type) {\n case \"date\":\n return parseDate(value);\n case \"datetime\":\n return parseDateTime(value);\n case \"zoneddatetime\":\n return parseZonedDateTime(value);\n default:\n throw new Error(`Unknown date type: ${type}`);\n }\n}\nfunction isCalendarDateTime(dateValue) {\n return dateValue instanceof CalendarDateTime;\n}\nexport function isZonedDateTime(dateValue) {\n return dateValue instanceof ZonedDateTime;\n}\nexport function hasTime(dateValue) {\n return isCalendarDateTime(dateValue) || isZonedDateTime(dateValue);\n}\n/**\n * Given a date, return the number of days in the month.\n */\nexport function getDaysInMonth(date) {\n if (date instanceof Date) {\n const year = date.getFullYear();\n const month = date.getMonth() + 1;\n /**\n * By using zero as the day, we get the\n * last day of the previous month, which\n * is the month we originally passed in.\n */\n return new Date(year, month, 0).getDate();\n }\n else {\n return date.set({ day: 100 }).day;\n }\n}\n/**\n * Determine if a date is before the reference date.\n * @param dateToCompare - is this date before the `referenceDate`\n * @param referenceDate - is the `dateToCompare` before this date\n *\n * @see {@link isBeforeOrSame} for inclusive\n */\nexport function isBefore(dateToCompare, referenceDate) {\n return dateToCompare.compare(referenceDate) < 0;\n}\n/**\n * Determine if a date is after the reference date.\n * @param dateToCompare - is this date after the `referenceDate`\n * @param referenceDate - is the `dateToCompare` after this date\n *\n * @see {@link isAfterOrSame} for inclusive\n */\nexport function isAfter(dateToCompare, referenceDate) {\n return dateToCompare.compare(referenceDate) > 0;\n}\n/**\n * Determine if a date is before or the same as the reference date.\n *\n * @param dateToCompare - the date to compare\n * @param referenceDate - the reference date to make the comparison against\n *\n * @see {@link isBefore} for non-inclusive\n */\nfunction isBeforeOrSame(dateToCompare, referenceDate) {\n return dateToCompare.compare(referenceDate) <= 0;\n}\n/**\n * Determine if a date is after or the same as the reference date.\n *\n * @param dateToCompare - is this date after or the same as the `referenceDate`\n * @param referenceDate - is the `dateToCompare` after or the same as this date\n *\n * @see {@link isAfter} for non-inclusive\n */\nfunction isAfterOrSame(dateToCompare, referenceDate) {\n return dateToCompare.compare(referenceDate) >= 0;\n}\n/**\n * Determine if a date is inclusively between a start and end reference date.\n *\n * @param date - is this date inclusively between the `start` and `end` dates\n * @param start - the start reference date to make the comparison against\n * @param end - the end reference date to make the comparison against\n *\n * @see {@link isBetween} for non-inclusive\n */\nexport function isBetweenInclusive(date, start, end) {\n return isAfterOrSame(date, start) && isBeforeOrSame(date, end);\n}\nexport function getLastFirstDayOfWeek(date, firstDayOfWeek, locale) {\n const day = getDayOfWeek(date, locale);\n if (firstDayOfWeek > day) {\n return date.subtract({ days: day + 7 - firstDayOfWeek });\n }\n if (firstDayOfWeek === day) {\n return date;\n }\n return date.subtract({ days: day - firstDayOfWeek });\n}\nexport function getNextLastDayOfWeek(date, firstDayOfWeek, locale) {\n const day = getDayOfWeek(date, locale);\n const lastDayOfWeek = firstDayOfWeek === 0 ? 6 : firstDayOfWeek - 1;\n if (day === lastDayOfWeek) {\n return date;\n }\n if (day > lastDayOfWeek) {\n return date.add({ days: 7 - day + lastDayOfWeek });\n }\n return date.add({ days: lastDayOfWeek - day });\n}\nexport function areAllDaysBetweenValid(start, end, isUnavailable, isDisabled) {\n if (isUnavailable === undefined && isDisabled === undefined) {\n return true;\n }\n let dCurrent = start.add({ days: 1 });\n if (isDisabled?.(dCurrent) || isUnavailable?.(dCurrent)) {\n return false;\n }\n const dEnd = end;\n while (dCurrent.compare(dEnd) < 0) {\n dCurrent = dCurrent.add({ days: 1 });\n if (isDisabled?.(dCurrent) || isUnavailable?.(dCurrent)) {\n return false;\n }\n }\n return true;\n}\n","import { DateFormatter } from \"@internationalized/date\";\nimport { hasTime, isZonedDateTime, toDate } from \"./utils.js\";\nimport { convertTimeValueToDateValue } from \"./field/time-helpers.js\";\nconst defaultPartOptions = {\n year: \"numeric\",\n month: \"numeric\",\n day: \"numeric\",\n hour: \"numeric\",\n minute: \"numeric\",\n second: \"numeric\",\n};\n/**\n * Creates a wrapper around the `DateFormatter`, which is\n * an improved version of the {@link Intl.DateTimeFormat} API,\n * that is used internally by the various date builders to\n * easily format dates in a consistent way.\n *\n * @see [DateFormatter](https://react-spectrum.adobe.com/internationalized/date/DateFormatter.html)\n */\nexport function createFormatter(opts) {\n let locale = opts.initialLocale;\n function setLocale(newLocale) {\n locale = newLocale;\n }\n function getLocale() {\n return locale;\n }\n function custom(date, options) {\n return new DateFormatter(locale, options).format(date);\n }\n function selectedDate(date, includeTime = true) {\n if (hasTime(date) && includeTime) {\n return custom(toDate(date), {\n dateStyle: \"long\",\n timeStyle: \"long\",\n });\n }\n else {\n return custom(toDate(date), {\n dateStyle: \"long\",\n });\n }\n }\n function fullMonthAndYear(date) {\n if (typeof opts.monthFormat.current !== \"function\" &&\n typeof opts.yearFormat.current !== \"function\") {\n return new DateFormatter(locale, {\n month: opts.monthFormat.current,\n year: opts.yearFormat.current,\n }).format(date);\n }\n const formattedMonth = typeof opts.monthFormat.current === \"function\"\n ? opts.monthFormat.current(date.getMonth() + 1)\n : new DateFormatter(locale, { month: opts.monthFormat.current }).format(date);\n const formattedYear = typeof opts.yearFormat.current === \"function\"\n ? opts.yearFormat.current(date.getFullYear())\n : new DateFormatter(locale, { year: opts.yearFormat.current }).format(date);\n return `${formattedMonth} ${formattedYear}`;\n }\n function fullMonth(date) {\n return new DateFormatter(locale, { month: \"long\" }).format(date);\n }\n function fullYear(date) {\n return new DateFormatter(locale, { year: \"numeric\" }).format(date);\n }\n function toParts(date, options) {\n if (isZonedDateTime(date)) {\n return new DateFormatter(locale, {\n ...options,\n timeZone: date.timeZone,\n }).formatToParts(toDate(date));\n }\n else {\n return new DateFormatter(locale, options).formatToParts(toDate(date));\n }\n }\n function dayOfWeek(date, length = \"narrow\") {\n return new DateFormatter(locale, { weekday: length }).format(date);\n }\n function dayPeriod(date, hourCycle = undefined) {\n const parts = new DateFormatter(locale, {\n hour: \"numeric\",\n minute: \"numeric\",\n hourCycle: hourCycle === 24 ? \"h23\" : undefined,\n }).formatToParts(date);\n const value = parts.find((p) => p.type === \"dayPeriod\")?.value;\n if (value === \"PM\") {\n return \"PM\";\n }\n return \"AM\";\n }\n function part(dateObj, type, options = {}) {\n const opts = { ...defaultPartOptions, ...options };\n const parts = toParts(dateObj, opts);\n const part = parts.find((p) => p.type === type);\n return part ? part.value : \"\";\n }\n return {\n setLocale,\n getLocale,\n fullMonth,\n fullYear,\n fullMonthAndYear,\n toParts,\n custom,\n part,\n dayPeriod,\n selectedDate,\n dayOfWeek,\n };\n}\nexport function createTimeFormatter(initialLocale) {\n let locale = initialLocale;\n function setLocale(newLocale) {\n locale = newLocale;\n }\n function getLocale() {\n return locale;\n }\n function custom(date, options) {\n return new DateFormatter(locale, options).format(date);\n }\n function selectedTime(date) {\n return custom(toDate(convertTimeValueToDateValue(date)), {\n timeStyle: \"long\",\n });\n }\n function toParts(timeValue, options) {\n const dateValue = convertTimeValueToDateValue(timeValue);\n if (isZonedDateTime(dateValue)) {\n return new DateFormatter(locale, {\n ...options,\n timeZone: dateValue.timeZone,\n }).formatToParts(toDate(dateValue));\n }\n else {\n return new DateFormatter(locale, options).formatToParts(toDate(dateValue));\n }\n }\n function dayPeriod(date, hourCycle = undefined) {\n const parts = new DateFormatter(locale, {\n hour: \"numeric\",\n minute: \"numeric\",\n hourCycle: hourCycle === 24 ? \"h23\" : undefined,\n }).formatToParts(date);\n const value = parts.find((p) => p.type === \"dayPeriod\")?.value;\n if (value === \"PM\")\n return \"PM\";\n return \"AM\";\n }\n function part(dateObj, type, options = {}) {\n const opts = { ...defaultPartOptions, ...options };\n const parts = toParts(dateObj, opts);\n const part = parts.find((p) => p.type === type);\n return part ? part.value : \"\";\n }\n return {\n setLocale,\n getLocale,\n toParts,\n custom,\n part,\n dayPeriod,\n selectedTime,\n };\n}\n","import { endOfMonth, isSameDay, isSameMonth, startOfMonth, } from \"@internationalized/date\";\nimport { afterTick, getDocument, styleToString, } from \"svelte-toolbelt\";\nimport { untrack } from \"svelte\";\nimport { getDaysInMonth, getLastFirstDayOfWeek, getNextLastDayOfWeek, hasTime, isAfter, isBefore, parseAnyDateValue, parseStringToDateValue, toDate, } from \"./utils.js\";\nimport { createBitsAttrs, boolToEmptyStrOrUndef } from \"../attrs.js\";\nimport { chunk, isValidIndex } from \"../arrays.js\";\nimport { isBrowser, isHTMLElement } from \"../is.js\";\nimport { kbd } from \"../kbd.js\";\nimport { watch } from \"runed\";\n/**\n * Checks if a given node is a calendar cell element.\n *\n * @param node - The node to check.\n */\nexport function isCalendarDayNode(node) {\n if (!isHTMLElement(node))\n return false;\n if (!node.hasAttribute(\"data-bits-day\"))\n return false;\n return true;\n}\n/**\n * Retrieves an array of date values representing the days between\n * the provided start and end dates.\n */\nexport function getDaysBetween(start, end) {\n const days = [];\n let dCurrent = start.add({ days: 1 });\n const dEnd = end;\n while (dCurrent.compare(dEnd) < 0) {\n days.push(dCurrent);\n dCurrent = dCurrent.add({ days: 1 });\n }\n return days;\n}\n/**\n * Creates a calendar month object.\n *\n * @remarks\n * Given a date, this function returns an object containing\n * the necessary values to render a calendar month, including\n * the month's date (the first day of that month), which can be\n * used to render the name of the month, an array of all dates\n * in that month, and an array of weeks. Each week is an array\n * of dates, useful for rendering an accessible calendar grid\n * using a loop and table elements.\n *\n */\nfunction createMonth(props) {\n const { dateObj, weekStartsOn, fixedWeeks, locale } = props;\n const daysInMonth = getDaysInMonth(dateObj);\n const datesArray = Array.from({ length: daysInMonth }, (_, i) => dateObj.set({ day: i + 1 }));\n const firstDayOfMonth = startOfMonth(dateObj);\n const lastDayOfMonth = endOfMonth(dateObj);\n const lastSunday = weekStartsOn !== undefined\n ? getLastFirstDayOfWeek(firstDayOfMonth, weekStartsOn, \"en-US\")\n : getLastFirstDayOfWeek(firstDayOfMonth, 0, locale);\n const nextSaturday = weekStartsOn !== undefined\n ? getNextLastDayOfWeek(lastDayOfMonth, weekStartsOn, \"en-US\")\n : getNextLastDayOfWeek(lastDayOfMonth, 0, locale);\n const lastMonthDays = getDaysBetween(lastSunday.subtract({ days: 1 }), firstDayOfMonth);\n const nextMonthDays = getDaysBetween(lastDayOfMonth, nextSaturday.add({ days: 1 }));\n const totalDays = lastMonthDays.length + datesArray.length + nextMonthDays.length;\n if (fixedWeeks && totalDays < 42) {\n const extraDays = 42 - totalDays;\n let startFrom = nextMonthDays[nextMonthDays.length - 1];\n if (!startFrom) {\n startFrom = dateObj.add({ months: 1 }).set({ day: 1 });\n }\n let length = extraDays;\n if (nextMonthDays.length === 0) {\n length = extraDays - 1;\n nextMonthDays.push(startFrom);\n }\n const extraDaysArray = Array.from({ length }, (_, i) => {\n const incr = i + 1;\n return startFrom.add({ days: incr });\n });\n nextMonthDays.push(...extraDaysArray);\n }\n const allDays = lastMonthDays.concat(datesArray, nextMonthDays);\n const weeks = chunk(allDays, 7);\n return {\n value: dateObj,\n dates: allDays,\n weeks,\n };\n}\nexport function createMonths(props) {\n const { numberOfMonths, dateObj, ...monthProps } = props;\n const months = [];\n if (!numberOfMonths || numberOfMonths === 1) {\n months.push(createMonth({\n ...monthProps,\n dateObj,\n }));\n return months;\n }\n months.push(createMonth({\n ...monthProps,\n dateObj,\n }));\n // Create all the months, starting with the current month\n for (let i = 1; i < numberOfMonths; i++) {\n const nextMonth = dateObj.add({ months: i });\n months.push(createMonth({\n ...monthProps,\n dateObj: nextMonth,\n }));\n }\n return months;\n}\nexport function getSelectableCells(calendarNode) {\n if (!calendarNode)\n return [];\n const selectableSelector = `[data-bits-day]:not([data-disabled]):not([data-outside-visible-months])`;\n return Array.from(calendarNode.querySelectorAll(selectableSelector)).filter((el) => isHTMLElement(el));\n}\n/**\n * A helper function to extract the date from the `data-value`\n * attribute of a date cell and set it as the placeholder value.\n *\n * Shared between the calendar and range calendar builders.\n *\n * @param node - The node to extract the date from.\n * @param placeholder - The placeholder value store which will be set to the extracted date.\n */\nexport function setPlaceholderToNodeValue(node, placeholder) {\n const cellValue = node.getAttribute(\"data-value\");\n if (!cellValue)\n return;\n placeholder.current = parseStringToDateValue(cellValue, placeholder.current);\n}\n/**\n * Shared logic for shifting focus between cells in the\n * calendar and range calendar.\n */\nexport function shiftCalendarFocus({ node, add, placeholder, calendarNode, isPrevButtonDisabled, isNextButtonDisabled, months, numberOfMonths, }) {\n const candidateCells = getSelectableCells(calendarNode);\n if (!candidateCells.length)\n return;\n const index = candidateCells.indexOf(node);\n const nextIndex = index + add;\n /**\n * If the next cell is within the bounds of the displayed cells,\n * easy day, we just focus it.\n */\n if (isValidIndex(nextIndex, candidateCells)) {\n const nextCell = candidateCells[nextIndex];\n setPlaceholderToNodeValue(nextCell, placeholder);\n return nextCell.focus();\n }\n /**\n * When the next cell falls outside the displayed cells range,\n * we update the focus to the previous or next month based on the\n * direction, and then focus on the relevant cell.\n */\n if (nextIndex < 0) {\n /**\n * To handle negative indices, we rewind by one month,\n * retrieve candidate cells for that month, and shift focus\n * by the difference between the nextIndex starting from the end\n * of the array.\n */\n // shift the calendar back a month unless prev month is disabled\n if (isPrevButtonDisabled)\n return;\n const firstMonth = months[0]?.value;\n if (!firstMonth)\n return;\n placeholder.current = firstMonth.subtract({ months: numberOfMonths });\n // Without a tick here, it seems to be too quick for the DOM to update\n afterTick(() => {\n const newCandidateCells = getSelectableCells(calendarNode);\n if (!newCandidateCells.length)\n return;\n /**\n * Starting at the end of the array, shift focus by the diff\n * between the nextIndex and the length of the array, since the\n * nextIndex is negative.\n */\n const newIndex = newCandidateCells.length - Math.abs(nextIndex);\n if (isValidIndex(newIndex, newCandidateCells)) {\n const newCell = newCandidateCells[newIndex];\n setPlaceholderToNodeValue(newCell, placeholder);\n return newCell.focus();\n }\n });\n }\n if (nextIndex >= candidateCells.length) {\n /**\n * Since we're in the positive index range, we need to go forward\n * a month, refetch the candidate cells within that month, and then\n * starting at the beginning of the array, shift focus by the nextIndex\n * amount.\n */\n // shift the calendar forward a month unless next month is disabled\n if (isNextButtonDisabled)\n return;\n const firstMonth = months[0]?.value;\n if (!firstMonth)\n return;\n placeholder.current = firstMonth.add({ months: numberOfMonths });\n afterTick(() => {\n const newCandidateCells = getSelectableCells(calendarNode);\n if (!newCandidateCells.length)\n return;\n /**\n * We need to determine how far into the next month we need to go\n * to get the next index. So if we only went over the previous month\n * by one, we need to go into the next month by 1 to get the right index.\n */\n const newIndex = nextIndex - candidateCells.length;\n if (isValidIndex(newIndex, newCandidateCells)) {\n const nextCell = newCandidateCells[newIndex];\n return nextCell.focus();\n }\n });\n }\n}\nconst ARROW_KEYS = [kbd.ARROW_DOWN, kbd.ARROW_UP, kbd.ARROW_LEFT, kbd.ARROW_RIGHT];\nconst SELECT_KEYS = [kbd.ENTER, kbd.SPACE];\n/**\n * Shared keyboard event handler for the calendar and range calendar.\n */\nexport function handleCalendarKeydown({ event, handleCellClick, shiftFocus, placeholderValue, }) {\n const currentCell = event.target;\n if (!isCalendarDayNode(currentCell))\n return;\n // oxlint-disable-next-line no-explicit-any\n if (!ARROW_KEYS.includes(event.key) && !SELECT_KEYS.includes(event.key))\n return;\n event.preventDefault();\n const kbdFocusMap = {\n [kbd.ARROW_DOWN]: 7,\n [kbd.ARROW_UP]: -7,\n [kbd.ARROW_LEFT]: -1,\n [kbd.ARROW_RIGHT]: 1,\n };\n // oxlint-disable-next-line no-explicit-any\n if (ARROW_KEYS.includes(event.key)) {\n const add = kbdFocusMap[event.key];\n if (add !== undefined) {\n shiftFocus(currentCell, add);\n }\n }\n if (SELECT_KEYS.includes(event.key)) {\n const cellValue = currentCell.getAttribute(\"data-value\");\n if (!cellValue)\n return;\n handleCellClick(event, parseStringToDateValue(cellValue, placeholderValue));\n }\n}\nexport function handleCalendarNextPage({ months, setMonths, numberOfMonths, pagedNavigation, weekStartsOn, locale, fixedWeeks, setPlaceholder, }) {\n const firstMonth = months[0]?.value;\n if (!firstMonth)\n return;\n if (pagedNavigation) {\n setPlaceholder(firstMonth.add({ months: numberOfMonths }));\n }\n else {\n // Calculate the target date first, then update both months and placeholder\n // to ensure they're synchronized and prevent useMonthViewPlaceholderSync from\n // double-triggering\n const targetDate = firstMonth.add({ months: 1 });\n const newMonths = createMonths({\n dateObj: targetDate,\n weekStartsOn,\n locale,\n fixedWeeks,\n numberOfMonths,\n });\n setPlaceholder(targetDate);\n setMonths(newMonths);\n }\n}\nexport function handleCalendarPrevPage({ months, setMonths, numberOfMonths, pagedNavigation, weekStartsOn, locale, fixedWeeks, setPlaceholder, }) {\n const firstMonth = months[0]?.value;\n if (!firstMonth)\n return;\n if (pagedNavigation) {\n setPlaceholder(firstMonth.subtract({ months: numberOfMonths }));\n }\n else {\n // Calculate the target date first, then update both months and placeholder\n // to ensure they're synchronized and prevent useMonthViewPlaceholderSync from\n // double-triggering\n const targetDate = firstMonth.subtract({ months: 1 });\n const newMonths = createMonths({\n dateObj: targetDate,\n weekStartsOn,\n locale,\n fixedWeeks,\n numberOfMonths,\n });\n setPlaceholder(targetDate);\n setMonths(newMonths);\n }\n}\nexport function getWeekdays({ months, formatter, weekdayFormat }) {\n if (!months.length)\n return [];\n const firstMonth = months[0];\n const firstWeek = firstMonth.weeks[0];\n if (!firstWeek)\n return [];\n return firstWeek.map((date) => formatter.dayOfWeek(toDate(date), weekdayFormat));\n}\n/**\n * Updates the displayed months based on changes in the options values,\n * which determines the month to show in the calendar.\n */\nexport function useMonthViewOptionsSync(props) {\n $effect(() => {\n const weekStartsOn = props.weekStartsOn.current;\n const locale = props.locale.current;\n const fixedWeeks = props.fixedWeeks.current;\n const numberOfMonths = props.numberOfMonths.current;\n untrack(() => {\n const placeholder = props.placeholder.current;\n if (!placeholder)\n return;\n const defaultMonthProps = {\n weekStartsOn,\n locale,\n fixedWeeks,\n numberOfMonths,\n };\n props.setMonths(createMonths({ ...defaultMonthProps, dateObj: placeholder }));\n });\n });\n}\n/**\n * Creates an accessible heading element for the calendar.\n * Returns a function that removes the heading element.\n */\nexport function createAccessibleHeading({ calendarNode, label, accessibleHeadingId, }) {\n const doc = getDocument(calendarNode);\n const div = doc.createElement(\"div\");\n div.style.cssText = styleToString({\n border: \"0px\",\n clip: \"rect(0px, 0px, 0px, 0px)\",\n clipPath: \"inset(50%)\",\n height: \"1px\",\n margin: \"-1px\",\n overflow: \"hidden\",\n padding: \"0px\",\n position: \"absolute\",\n whiteSpace: \"nowrap\",\n width: \"1px\",\n });\n const h2 = doc.createElement(\"div\");\n h2.textContent = label;\n h2.id = accessibleHeadingId;\n h2.role = \"heading\";\n h2.ariaLevel = \"2\";\n calendarNode.insertBefore(div, calendarNode.firstChild);\n div.appendChild(h2);\n return () => {\n const h2 = doc.getElementById(accessibleHeadingId);\n if (!h2)\n return;\n div.parentElement?.removeChild(div);\n h2.remove();\n };\n}\nexport function useMonthViewPlaceholderSync({ placeholder, getVisibleMonths, weekStartsOn, locale, fixedWeeks, numberOfMonths, setMonths, }) {\n $effect(() => {\n placeholder.current;\n untrack(() => {\n /**\n * If the placeholder's month is already in this visible months,\n * we don't need to do anything.\n */\n if (getVisibleMonths().some((month) => isSameMonth(month, placeholder.current))) {\n return;\n }\n const defaultMonthProps = {\n weekStartsOn: weekStartsOn.current,\n locale: locale.current,\n fixedWeeks: fixedWeeks.current,\n numberOfMonths: numberOfMonths.current,\n };\n setMonths(createMonths({ ...defaultMonthProps, dateObj: placeholder.current }));\n });\n });\n}\nexport function getIsNextButtonDisabled({ maxValue, months, disabled, }) {\n if (!maxValue || !months.length)\n return false;\n if (disabled)\n return true;\n const lastMonthInView = months[months.length - 1]?.value;\n if (!lastMonthInView)\n return false;\n const firstMonthOfNextPage = lastMonthInView\n .add({\n months: 1,\n })\n .set({ day: 1 });\n return isAfter(firstMonthOfNextPage, maxValue);\n}\nexport function getIsPrevButtonDisabled({ minValue, months, disabled, }) {\n if (!minValue || !months.length)\n return false;\n if (disabled)\n return true;\n const firstMonthInView = months[0]?.value;\n if (!firstMonthInView)\n return false;\n const lastMonthOfPrevPage = firstMonthInView\n .subtract({\n months: 1,\n })\n .set({ day: 35 });\n return isBefore(lastMonthOfPrevPage, minValue);\n}\nexport function getCalendarHeadingValue({ months, locale, formatter, }) {\n if (!months.length)\n return \"\";\n if (locale !== formatter.getLocale()) {\n formatter.setLocale(locale);\n }\n if (months.length === 1) {\n const month = toDate(months[0].value);\n return `${formatter.fullMonthAndYear(month)}`;\n }\n const startMonth = toDate(months[0].value);\n const endMonth = toDate(months[months.length - 1].value);\n const startMonthName = formatter.fullMonth(startMonth);\n const endMonthName = formatter.fullMonth(endMonth);\n const startMonthYear = formatter.fullYear(startMonth);\n const endMonthYear = formatter.fullYear(endMonth);\n const content = startMonthYear === endMonthYear\n ? `${startMonthName} - ${endMonthName} ${endMonthYear}`\n : `${startMonthName} ${startMonthYear} - ${endMonthName} ${endMonthYear}`;\n return content;\n}\nexport function getCalendarElementProps({ fullCalendarLabel, id, isInvalid, disabled, readonly, }) {\n return {\n id,\n role: \"application\",\n \"aria-label\": fullCalendarLabel,\n \"data-invalid\": boolToEmptyStrOrUndef(isInvalid),\n \"data-disabled\": boolToEmptyStrOrUndef(disabled),\n \"data-readonly\": boolToEmptyStrOrUndef(readonly),\n };\n}\nexport function pickerOpenFocus(e) {\n const doc = getDocument(e.target);\n const nodeToFocus = doc.querySelector(\"[data-bits-day][data-focused]\");\n if (nodeToFocus) {\n e.preventDefault();\n nodeToFocus?.focus();\n }\n}\nexport function getFirstNonDisabledDateInView(calendarRef) {\n if (!isBrowser)\n return;\n const daysInView = Array.from(calendarRef.querySelectorAll(\"[data-bits-day]:not([aria-disabled=true])\"));\n if (daysInView.length === 0)\n return;\n const element = daysInView[0];\n const value = element?.getAttribute(\"data-value\");\n const type = element?.getAttribute(\"data-type\");\n if (!value || !type)\n return;\n return parseAnyDateValue(value, type);\n}\n/**\n * Ensures the placeholder is not set to a disabled date,\n * which would prevent the user from entering the Calendar\n * via the keyboard.\n */\nexport function useEnsureNonDisabledPlaceholder({ ref, placeholder, defaultPlaceholder, minValue, maxValue, isDateDisabled, }) {\n function isDisabled(date) {\n if (isDateDisabled.current(date))\n return true;\n if (minValue.current && isBefore(date, minValue.current))\n return true;\n if (maxValue.current && isBefore(maxValue.current, date))\n return true;\n return false;\n }\n watch(() => ref.current, () => {\n if (!ref.current)\n return;\n /**\n * If the placeholder is still the default placeholder and it's a disabled date, find\n * the first available date in the calendar view and set it as the placeholder.\n *\n * This prevents the placeholder from being a disabled date and no date being tabbable\n * preventing the user from entering the Calendar. If all dates in the view are\n * disabled, currently that is considered an error on the developer's part and should\n * be handled by them.\n *\n * Perhaps in the future we can introduce a dev-only log message to prevent this from\n * being a silent error.\n */\n if (placeholder.current &&\n isSameDay(placeholder.current, defaultPlaceholder) &&\n isDisabled(defaultPlaceholder)) {\n placeholder.current =\n getFirstNonDisabledDateInView(ref.current) ?? defaultPlaceholder;\n }\n });\n}\nexport function getDateWithPreviousTime(date, prev) {\n if (!date || !prev)\n return date;\n if (hasTime(date) && hasTime(prev)) {\n return date.set({\n hour: prev.hour,\n minute: prev.minute,\n millisecond: prev.millisecond,\n second: prev.second,\n });\n }\n return date;\n}\nexport const calendarAttrs = createBitsAttrs({\n component: \"calendar\",\n parts: [\n \"root\",\n \"grid\",\n \"cell\",\n \"next-button\",\n \"prev-button\",\n \"day\",\n \"grid-body\",\n \"grid-head\",\n \"grid-row\",\n \"head-cell\",\n \"header\",\n \"heading\",\n \"month-select\",\n \"year-select\",\n ],\n});\nexport function getDefaultYears(opts) {\n const currentYear = new Date().getFullYear();\n const latestYear = Math.max(opts.placeholderYear, currentYear);\n // use minValue/maxValue as boundaries if provided, otherwise calculate default range\n let minYear;\n let maxYear;\n if (opts.minValue) {\n minYear = opts.minValue.year;\n }\n else {\n // (111 years: latestYear - 100 to latestYear + 10)\n const initialMinYear = latestYear - 100;\n minYear =\n opts.placeholderYear < initialMinYear ? opts.placeholderYear - 10 : initialMinYear;\n }\n if (opts.maxValue) {\n maxYear = opts.maxValue.year;\n }\n else {\n maxYear = latestYear + 10;\n }\n // ensure we have at least one year and minYear <= maxYear\n if (minYear > maxYear) {\n minYear = maxYear;\n }\n const totalYears = maxYear - minYear + 1;\n return Array.from({ length: totalYears }, (_, i) => minYear + i);\n}\n","import { getLocalTimeZone, isSameDay, isSameMonth, isToday, } from \"@internationalized/date\";\nimport { DEV } from \"esm-env\";\nimport { onMount, untrack } from \"svelte\";\nimport { attachRef, DOMContext, } from \"svelte-toolbelt\";\nimport { Context, watch } from \"runed\";\nimport { boolToStr, boolToStrTrueOrUndef, boolToEmptyStrOrUndef } from \"../../internal/attrs.js\";\nimport { useId } from \"../../internal/use-id.js\";\nimport { getAnnouncer } from \"../../internal/date-time/announcer.js\";\nimport { createFormatter } from \"../../internal/date-time/formatter.js\";\nimport { calendarAttrs, createAccessibleHeading, createMonths, getCalendarElementProps, getCalendarHeadingValue, getDateWithPreviousTime, getDefaultYears, getIsNextButtonDisabled, getIsPrevButtonDisabled, getWeekdays, handleCalendarKeydown, handleCalendarNextPage, handleCalendarPrevPage, shiftCalendarFocus, useEnsureNonDisabledPlaceholder, useMonthViewOptionsSync, useMonthViewPlaceholderSync, } from \"../../internal/date-time/calendar-helpers.svelte.js\";\nimport { getDateValueType, isBefore, toDate } from \"../../internal/date-time/utils.js\";\nexport const CalendarRootContext = new Context(\"Calendar.Root | RangeCalender.Root\");\nexport class CalendarRootState {\n static create(opts) {\n return CalendarRootContext.set(new CalendarRootState(opts));\n }\n opts;\n visibleMonths = $derived.by(() => this.months.map((month) => month.value));\n formatter;\n accessibleHeadingId = useId();\n domContext;\n attachment;\n months = $state([]);\n announcer;\n constructor(opts) {\n this.opts = opts;\n this.attachment = attachRef(this.opts.ref);\n this.domContext = new DOMContext(opts.ref);\n this.announcer = getAnnouncer(null);\n this.formatter = createFormatter({\n initialLocale: this.opts.locale.current,\n monthFormat: this.opts.monthFormat,\n yearFormat: this.opts.yearFormat,\n });\n this.setMonths = this.setMonths.bind(this);\n this.nextPage = this.nextPage.bind(this);\n this.prevPage = this.prevPage.bind(this);\n this.prevYear = this.prevYear.bind(this);\n this.nextYear = this.nextYear.bind(this);\n this.setYear = this.setYear.bind(this);\n this.setMonth = this.setMonth.bind(this);\n this.isOutsideVisibleMonths = this.isOutsideVisibleMonths.bind(this);\n this.isDateDisabled = this.isDateDisabled.bind(this);\n this.isDateSelected = this.isDateSelected.bind(this);\n this.shiftFocus = this.shiftFocus.bind(this);\n this.handleCellClick = this.handleCellClick.bind(this);\n this.handleMultipleUpdate = this.handleMultipleUpdate.bind(this);\n this.handleSingleUpdate = this.handleSingleUpdate.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n this.getBitsAttr = this.getBitsAttr.bind(this);\n onMount(() => {\n this.announcer = getAnnouncer(this.domContext.getDocument());\n });\n this.months = createMonths({\n dateObj: this.opts.placeholder.current,\n weekStartsOn: this.opts.weekStartsOn.current,\n locale: this.opts.locale.current,\n fixedWeeks: this.opts.fixedWeeks.current,\n numberOfMonths: this.opts.numberOfMonths.current,\n });\n this.#setupInitialFocusEffect();\n this.#setupAccessibleHeadingEffect();\n this.#setupFormatterEffect();\n /**\n * Updates the displayed months based on changes in the placeholder value.\n */\n useMonthViewPlaceholderSync({\n placeholder: this.opts.placeholder,\n getVisibleMonths: () => this.visibleMonths,\n weekStartsOn: this.opts.weekStartsOn,\n locale: this.opts.locale,\n fixedWeeks: this.opts.fixedWeeks,\n numberOfMonths: this.opts.numberOfMonths,\n setMonths: (months) => (this.months = months),\n });\n /**\n * Updates the displayed months based on changes in the options values,\n * which determines the month to show in the calendar.\n */\n useMonthViewOptionsSync({\n fixedWeeks: this.opts.fixedWeeks,\n locale: this.opts.locale,\n numberOfMonths: this.opts.numberOfMonths,\n placeholder: this.opts.placeholder,\n setMonths: this.setMonths,\n weekStartsOn: this.opts.weekStartsOn,\n });\n /**\n * Update the accessible heading's text content when the `fullCalendarLabel`\n * changes.\n */\n watch(() => this.fullCalendarLabel, (label) => {\n const node = this.domContext.getElementById(this.accessibleHeadingId);\n if (!node)\n return;\n node.textContent = label;\n });\n /**\n * Synchronize the placeholder value with the current value.\n */\n watch(() => this.opts.value.current, () => {\n const value = this.opts.value.current;\n if (Array.isArray(value) && value.length) {\n const lastValue = value[value.length - 1];\n if (lastValue && this.opts.placeholder.current !== lastValue) {\n this.opts.placeholder.current = lastValue;\n }\n }\n else if (!Array.isArray(value) &&\n value &&\n this.opts.placeholder.current !== value) {\n this.opts.placeholder.current = value;\n }\n });\n useEnsureNonDisabledPlaceholder({\n placeholder: opts.placeholder,\n defaultPlaceholder: opts.defaultPlaceholder,\n isDateDisabled: opts.isDateDisabled,\n maxValue: opts.maxValue,\n minValue: opts.minValue,\n ref: opts.ref,\n });\n }\n setMonths(months) {\n this.months = months;\n }\n /**\n * This derived state holds an array of localized day names for the current\n * locale and calendar view. It dynamically syncs with the 'weekStartsOn' option,\n * updating its content when the option changes. Using this state to render the\n * calendar's days of the week is strongly recommended, as it guarantees that\n * the days are correctly formatted for the current locale and calendar view.\n */\n weekdays = $derived.by(() => {\n return getWeekdays({\n months: this.months,\n formatter: this.formatter,\n weekdayFormat: this.opts.weekdayFormat.current,\n });\n });\n initialPlaceholderYear = $derived.by(() => untrack(() => this.opts.placeholder.current.year));\n defaultYears = $derived.by(() => {\n return getDefaultYears({\n minValue: this.opts.minValue.current,\n maxValue: this.opts.maxValue.current,\n placeholderYear: this.initialPlaceholderYear,\n });\n });\n #setupInitialFocusEffect() {\n $effect(() => {\n const initialFocus = untrack(() => this.opts.initialFocus.current);\n if (initialFocus) {\n // focus the first `data-focused` day node\n const firstFocusedDay = this.opts.ref.current?.querySelector(`[data-focused]`);\n if (firstFocusedDay) {\n firstFocusedDay.focus();\n }\n }\n });\n }\n #setupAccessibleHeadingEffect() {\n $effect(() => {\n if (!this.opts.ref.current)\n return;\n const removeHeading = createAccessibleHeading({\n calendarNode: this.opts.ref.current,\n label: this.fullCalendarLabel,\n accessibleHeadingId: this.accessibleHeadingId,\n });\n return removeHeading;\n });\n }\n #setupFormatterEffect() {\n $effect.pre(() => {\n if (this.formatter.getLocale() === this.opts.locale.current)\n return;\n this.formatter.setLocale(this.opts.locale.current);\n });\n }\n /**\n * Navigates to the next page of the calendar.\n */\n nextPage() {\n handleCalendarNextPage({\n fixedWeeks: this.opts.fixedWeeks.current,\n locale: this.opts.locale.current,\n numberOfMonths: this.opts.numberOfMonths.current,\n pagedNavigation: this.opts.pagedNavigation.current,\n setMonths: this.setMonths,\n setPlaceholder: (date) => (this.opts.placeholder.current = date),\n weekStartsOn: this.opts.weekStartsOn.current,\n months: this.months,\n });\n }\n /**\n * Navigates to the previous page of the calendar.\n */\n prevPage() {\n handleCalendarPrevPage({\n fixedWeeks: this.opts.fixedWeeks.current,\n locale: this.opts.locale.current,\n numberOfMonths: this.opts.numberOfMonths.current,\n pagedNavigation: this.opts.pagedNavigation.current,\n setMonths: this.setMonths,\n setPlaceholder: (date) => (this.opts.placeholder.current = date),\n weekStartsOn: this.opts.weekStartsOn.current,\n months: this.months,\n });\n }\n nextYear() {\n this.opts.placeholder.current = this.opts.placeholder.current.add({ years: 1 });\n }\n prevYear() {\n this.opts.placeholder.current = this.opts.placeholder.current.subtract({ years: 1 });\n }\n setYear(year) {\n this.opts.placeholder.current = this.opts.placeholder.current.set({ year });\n }\n setMonth(month) {\n this.opts.placeholder.current = this.opts.placeholder.current.set({ month });\n }\n isNextButtonDisabled = $derived.by(() => {\n return getIsNextButtonDisabled({\n maxValue: this.opts.maxValue.current,\n months: this.months,\n disabled: this.opts.disabled.current,\n });\n });\n isPrevButtonDisabled = $derived.by(() => {\n return getIsPrevButtonDisabled({\n minValue: this.opts.minValue.current,\n months: this.months,\n disabled: this.opts.disabled.current,\n });\n });\n isInvalid = $derived.by(() => {\n const value = this.opts.value.current;\n const isDateDisabled = this.opts.isDateDisabled.current;\n const isDateUnavailable = this.opts.isDateUnavailable.current;\n if (Array.isArray(value)) {\n if (!value.length)\n return false;\n for (const date of value) {\n if (isDateDisabled(date))\n return true;\n if (isDateUnavailable(date))\n return true;\n }\n }\n else {\n if (!value)\n return false;\n if (isDateDisabled(value))\n return true;\n if (isDateUnavailable(value))\n return true;\n }\n return false;\n });\n headingValue = $derived.by(() => {\n this.opts.monthFormat.current;\n this.opts.yearFormat.current;\n return getCalendarHeadingValue({\n months: this.months,\n formatter: this.formatter,\n locale: this.opts.locale.current,\n });\n });\n fullCalendarLabel = $derived.by(() => {\n return `${this.opts.calendarLabel.current} ${this.headingValue}`;\n });\n isOutsideVisibleMonths(date) {\n return !this.visibleMonths.some((month) => isSameMonth(date, month));\n }\n isDateDisabled(date) {\n if (this.opts.isDateDisabled.current(date) || this.opts.disabled.current)\n return true;\n const minValue = this.opts.minValue.current;\n const maxValue = this.opts.maxValue.current;\n if (minValue && isBefore(date, minValue))\n return true;\n if (maxValue && isBefore(maxValue, date))\n return true;\n return false;\n }\n isDateSelected(date) {\n const value = this.opts.value.current;\n if (Array.isArray(value)) {\n return value.some((d) => isSameDay(d, date));\n }\n else if (!value) {\n return false;\n }\n return isSameDay(value, date);\n }\n shiftFocus(node, add) {\n return shiftCalendarFocus({\n node,\n add,\n placeholder: this.opts.placeholder,\n calendarNode: this.opts.ref.current,\n isPrevButtonDisabled: this.isPrevButtonDisabled,\n isNextButtonDisabled: this.isNextButtonDisabled,\n months: this.months,\n numberOfMonths: this.opts.numberOfMonths.current,\n });\n }\n #isMultipleSelectionValid(selectedDates) {\n // only validate for multiple type and when maxDays is set\n if (this.opts.type.current !== \"multiple\")\n return true;\n if (!this.opts.maxDays.current)\n return true;\n const selectedCount = selectedDates.length;\n if (this.opts.maxDays.current && selectedCount > this.opts.maxDays.current)\n return false;\n return true;\n }\n handleCellClick(_, date) {\n if (this.opts.readonly.current ||\n this.opts.isDateDisabled.current?.(date) ||\n this.opts.isDateUnavailable.current?.(date)) {\n return;\n }\n const prev = this.opts.value.current;\n const multiple = this.opts.type.current === \"multiple\";\n if (multiple) {\n if (Array.isArray(prev) || prev === undefined) {\n this.opts.value.current = this.handleMultipleUpdate(prev, date);\n }\n }\n else if (!Array.isArray(prev)) {\n const next = this.handleSingleUpdate(prev, date);\n if (!next) {\n this.announcer.announce(\"Selected date is now empty.\", \"polite\", 5000);\n }\n else {\n this.announcer.announce(`Selected Date: ${this.formatter.selectedDate(next, false)}`, \"polite\");\n }\n this.opts.value.current = getDateWithPreviousTime(next, prev);\n if (next !== undefined) {\n this.opts.onDateSelect?.current?.();\n }\n }\n }\n handleMultipleUpdate(prev, date) {\n if (!prev) {\n const newSelection = [date];\n return this.#isMultipleSelectionValid(newSelection) ? newSelection : [date];\n }\n if (!Array.isArray(prev)) {\n if (DEV)\n throw new Error(\"Invalid value for multiple prop.\");\n return;\n }\n const index = prev.findIndex((d) => isSameDay(d, date));\n const preventDeselect = this.opts.preventDeselect.current;\n if (index === -1) {\n // adding a new date - check if it would be valid\n const newSelection = [...prev, date];\n if (this.#isMultipleSelectionValid(newSelection)) {\n return newSelection;\n }\n else {\n // reset to just the newly selected date when constraints are violated\n return [date];\n }\n }\n else if (preventDeselect) {\n return prev;\n }\n else {\n const next = prev.filter((d) => !isSameDay(d, date));\n if (!next.length) {\n this.opts.placeholder.current = date;\n return undefined;\n }\n return next;\n }\n }\n handleSingleUpdate(prev, date) {\n if (Array.isArray(prev)) {\n if (DEV)\n throw new Error(\"Invalid value for single prop.\");\n }\n if (!prev)\n return date;\n const preventDeselect = this.opts.preventDeselect.current;\n if (!preventDeselect && isSameDay(prev, date)) {\n this.opts.placeholder.current = date;\n return undefined;\n }\n return date;\n }\n onkeydown(event) {\n handleCalendarKeydown({\n event,\n handleCellClick: this.handleCellClick,\n shiftFocus: this.shiftFocus,\n placeholderValue: this.opts.placeholder.current,\n });\n }\n snippetProps = $derived.by(() => ({\n months: this.months,\n weekdays: this.weekdays,\n }));\n getBitsAttr = (part) => {\n return calendarAttrs.getAttr(part);\n };\n props = $derived.by(() => ({\n ...getCalendarElementProps({\n fullCalendarLabel: this.fullCalendarLabel,\n id: this.opts.id.current,\n isInvalid: this.isInvalid,\n disabled: this.opts.disabled.current,\n readonly: this.opts.readonly.current,\n }),\n [this.getBitsAttr(\"root\")]: \"\",\n //\n onkeydown: this.onkeydown,\n ...this.attachment,\n }));\n}\nexport class CalendarHeadingState {\n static create(opts) {\n return new CalendarHeadingState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"aria-hidden\": boolToStrTrueOrUndef(true),\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"heading\")]: \"\",\n ...this.attachment,\n }));\n}\nconst CalendarCellContext = new Context(\"Calendar.Cell | RangeCalendar.Cell\");\nexport class CalendarCellState {\n static create(opts) {\n return CalendarCellContext.set(new CalendarCellState(opts, CalendarRootContext.get()));\n }\n opts;\n root;\n cellDate = $derived.by(() => toDate(this.opts.date.current));\n isUnavailable = $derived.by(() => this.root.opts.isDateUnavailable.current(this.opts.date.current));\n isDateToday = $derived.by(() => isToday(this.opts.date.current, getLocalTimeZone()));\n isOutsideMonth = $derived.by(() => !isSameMonth(this.opts.date.current, this.opts.month.current));\n isOutsideVisibleMonths = $derived.by(() => this.root.isOutsideVisibleMonths(this.opts.date.current));\n isDisabled = $derived.by(() => this.root.isDateDisabled(this.opts.date.current) ||\n (this.isOutsideMonth && this.root.opts.disableDaysOutsideMonth.current));\n isFocusedDate = $derived.by(() => isSameDay(this.opts.date.current, this.root.opts.placeholder.current));\n isSelectedDate = $derived.by(() => this.root.isDateSelected(this.opts.date.current));\n labelText = $derived.by(() => this.root.formatter.custom(this.cellDate, {\n weekday: \"long\",\n month: \"long\",\n day: \"numeric\",\n year: \"numeric\",\n }));\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n snippetProps = $derived.by(() => ({\n disabled: this.isDisabled,\n unavailable: this.isUnavailable,\n selected: this.isSelectedDate,\n day: `${this.opts.date.current.day}`,\n }));\n ariaDisabled = $derived.by(() => {\n return (this.isDisabled ||\n (this.isOutsideMonth && this.root.opts.disableDaysOutsideMonth.current) ||\n this.isUnavailable);\n });\n sharedDataAttrs = $derived.by(() => ({\n \"data-unavailable\": boolToEmptyStrOrUndef(this.isUnavailable),\n \"data-today\": this.isDateToday ? \"\" : undefined,\n \"data-outside-month\": this.isOutsideMonth ? \"\" : undefined,\n \"data-outside-visible-months\": this.isOutsideVisibleMonths ? \"\" : undefined,\n \"data-focused\": this.isFocusedDate ? \"\" : undefined,\n \"data-selected\": boolToEmptyStrOrUndef(this.isSelectedDate),\n \"data-value\": this.opts.date.current.toString(),\n \"data-type\": getDateValueType(this.opts.date.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.isDisabled ||\n (this.isOutsideMonth && this.root.opts.disableDaysOutsideMonth.current)),\n }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"gridcell\",\n \"aria-selected\": boolToStr(this.isSelectedDate),\n \"aria-disabled\": boolToStr(this.ariaDisabled),\n ...this.sharedDataAttrs,\n [this.root.getBitsAttr(\"cell\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarDayState {\n static create(opts) {\n return new CalendarDayState(opts, CalendarCellContext.get());\n }\n opts;\n cell;\n attachment;\n constructor(opts, cell) {\n this.opts = opts;\n this.cell = cell;\n this.onclick = this.onclick.bind(this);\n this.attachment = attachRef(this.opts.ref);\n }\n #tabindex = $derived.by(() => (this.cell.isOutsideMonth && this.cell.root.opts.disableDaysOutsideMonth.current) ||\n this.cell.isDisabled\n ? undefined\n : this.cell.isFocusedDate\n ? 0\n : -1);\n onclick(e) {\n if (this.cell.isDisabled)\n return;\n this.cell.root.handleCellClick(e, this.cell.opts.date.current);\n }\n snippetProps = $derived.by(() => ({\n disabled: this.cell.isDisabled,\n unavailable: this.cell.isUnavailable,\n selected: this.cell.isSelectedDate,\n day: `${this.cell.opts.date.current.day}`,\n }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"button\",\n \"aria-label\": this.cell.labelText,\n \"aria-disabled\": boolToStr(this.cell.ariaDisabled),\n ...this.cell.sharedDataAttrs,\n tabindex: this.#tabindex,\n [this.cell.root.getBitsAttr(\"day\")]: \"\",\n // Shared logic for range calendar and calendar\n \"data-bits-day\": \"\",\n //\n onclick: this.onclick,\n ...this.attachment,\n }));\n}\nexport class CalendarNextButtonState {\n static create(opts) {\n return new CalendarNextButtonState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n isDisabled = $derived.by(() => this.root.isNextButtonDisabled);\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.onclick = this.onclick.bind(this);\n this.attachment = attachRef(this.opts.ref);\n }\n onclick(_) {\n if (this.isDisabled)\n return;\n this.root.nextPage();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"button\",\n type: \"button\",\n \"aria-label\": \"Next\",\n \"aria-disabled\": boolToStr(this.isDisabled),\n \"data-disabled\": boolToEmptyStrOrUndef(this.isDisabled),\n disabled: this.isDisabled,\n [this.root.getBitsAttr(\"next-button\")]: \"\",\n //\n onclick: this.onclick,\n ...this.attachment,\n }));\n}\nexport class CalendarPrevButtonState {\n static create(opts) {\n return new CalendarPrevButtonState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n isDisabled = $derived.by(() => this.root.isPrevButtonDisabled);\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.onclick = this.onclick.bind(this);\n this.attachment = attachRef(this.opts.ref);\n }\n onclick(_) {\n if (this.isDisabled)\n return;\n this.root.prevPage();\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"button\",\n type: \"button\",\n \"aria-label\": \"Previous\",\n \"aria-disabled\": boolToStr(this.isDisabled),\n \"data-disabled\": boolToEmptyStrOrUndef(this.isDisabled),\n disabled: this.isDisabled,\n [this.root.getBitsAttr(\"prev-button\")]: \"\",\n //\n onclick: this.onclick,\n ...this.attachment,\n }));\n}\nexport class CalendarGridState {\n static create(opts) {\n return new CalendarGridState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n tabindex: -1,\n role: \"grid\",\n \"aria-readonly\": boolToStr(this.root.opts.readonly.current),\n \"aria-disabled\": boolToStr(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n [this.root.getBitsAttr(\"grid\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarGridBodyState {\n static create(opts) {\n return new CalendarGridBodyState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"grid-body\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarGridHeadState {\n static create(opts) {\n return new CalendarGridHeadState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"grid-head\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarGridRowState {\n static create(opts) {\n return new CalendarGridRowState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"grid-row\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarHeadCellState {\n static create(opts) {\n return new CalendarHeadCellState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"head-cell\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarHeaderState {\n static create(opts) {\n return new CalendarHeaderState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.root.opts.disabled.current),\n \"data-readonly\": boolToEmptyStrOrUndef(this.root.opts.readonly.current),\n [this.root.getBitsAttr(\"header\")]: \"\",\n ...this.attachment,\n }));\n}\nexport class CalendarMonthSelectState {\n static create(opts) {\n return new CalendarMonthSelectState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.onchange = this.onchange.bind(this);\n this.attachment = attachRef(this.opts.ref);\n }\n monthItems = $derived.by(() => {\n this.root.opts.locale.current;\n const monthNumbers = this.opts.months.current;\n const monthFormat = this.opts.monthFormat.current;\n const months = [];\n for (const month of monthNumbers) {\n // create a date with the current year and the month to get localized name\n const date = this.root.opts.placeholder.current.set({ month });\n let label;\n if (typeof monthFormat === \"function\") {\n label = monthFormat(month);\n }\n else {\n label = this.root.formatter.custom(toDate(date), { month: monthFormat });\n }\n months.push({\n value: month,\n label,\n });\n }\n return months;\n });\n currentMonth = $derived.by(() => this.root.opts.placeholder.current.month);\n isDisabled = $derived.by(() => this.root.opts.disabled.current || this.opts.disabled.current);\n snippetProps = $derived.by(() => {\n return {\n monthItems: this.monthItems,\n selectedMonthItem: this.monthItems.find((month) => month.value === this.currentMonth),\n };\n });\n onchange(event) {\n if (this.isDisabled)\n return;\n const target = event.target;\n const month = parseInt(target.value, 10);\n if (!isNaN(month)) {\n this.root.opts.placeholder.current = this.root.opts.placeholder.current.set({ month });\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n value: this.currentMonth,\n disabled: this.isDisabled,\n \"data-disabled\": boolToEmptyStrOrUndef(this.isDisabled),\n [this.root.getBitsAttr(\"month-select\")]: \"\",\n //\n onchange: this.onchange,\n ...this.attachment,\n }));\n}\nexport class CalendarYearSelectState {\n static create(opts) {\n return new CalendarYearSelectState(opts, CalendarRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.onchange = this.onchange.bind(this);\n this.attachment = attachRef(this.opts.ref);\n }\n years = $derived.by(() => {\n if (this.opts.years.current && this.opts.years.current.length)\n return this.opts.years.current;\n return this.root.defaultYears;\n });\n yearItems = $derived.by(() => {\n this.root.opts.locale.current;\n const yearFormat = this.opts.yearFormat.current;\n const localYears = [];\n for (const year of this.years) {\n // create a date with the year to get localized formatting\n const date = this.root.opts.placeholder.current.set({ year });\n let label;\n if (typeof yearFormat === \"function\") {\n label = yearFormat(year);\n }\n else {\n label = this.root.formatter.custom(toDate(date), { year: yearFormat });\n }\n localYears.push({\n value: year,\n label,\n });\n }\n return localYears;\n });\n currentYear = $derived.by(() => this.root.opts.placeholder.current.year);\n isDisabled = $derived.by(() => this.root.opts.disabled.current || this.opts.disabled.current);\n snippetProps = $derived.by(() => {\n return {\n yearItems: this.yearItems,\n selectedYearItem: this.yearItems.find((year) => year.value === this.currentYear),\n };\n });\n onchange(event) {\n if (this.isDisabled)\n return;\n const target = event.target;\n const year = parseInt(target.value, 10);\n if (!isNaN(year)) {\n this.root.opts.placeholder.current = this.root.opts.placeholder.current.set({ year });\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n value: this.currentYear,\n disabled: this.isDisabled,\n \"data-disabled\": boolToEmptyStrOrUndef(this.isDisabled),\n [this.root.getBitsAttr(\"year-select\")]: \"\",\n //\n onchange: this.onchange,\n ...this.attachment,\n }));\n}\n","<script lang=\"ts\">\n\timport { watch } from \"runed\";\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { type DateValue } from \"@internationalized/date\";\n\timport { CalendarRootState } from \"../calendar.svelte.js\";\n\timport type { CalendarRootProps } from \"../types.js\";\n\timport { useId } from \"../../../internal/use-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { getDefaultDate } from \"../../../internal/date-time/utils.js\";\n\timport { resolveLocaleProp } from \"../../utilities/config/prop-resolvers.js\";\n\n\tlet {\n\t\tchild,\n\t\tchildren,\n\t\tid = useId(),\n\t\tref = $bindable(null),\n\t\tvalue = $bindable(),\n\t\tonValueChange = noop,\n\t\tplaceholder = $bindable(),\n\t\tonPlaceholderChange = noop,\n\t\tweekdayFormat = \"narrow\",\n\t\tweekStartsOn,\n\t\tpagedNavigation = false,\n\t\tisDateDisabled = () => false,\n\t\tisDateUnavailable = () => false,\n\t\tfixedWeeks = false,\n\t\tnumberOfMonths = 1,\n\t\tlocale,\n\t\tcalendarLabel = \"Event\",\n\t\tdisabled = false,\n\t\treadonly = false,\n\t\tminValue = undefined,\n\t\tmaxValue = undefined,\n\t\tpreventDeselect = false,\n\t\ttype,\n\t\tdisableDaysOutsideMonth = true,\n\t\tinitialFocus = false,\n\t\tmaxDays,\n\t\tmonthFormat = \"long\",\n\t\tyearFormat = \"numeric\",\n\t\t...restProps\n\t}: CalendarRootProps = $props();\n\n\tconst defaultPlaceholder = getDefaultDate({\n\t\tdefaultValue: value,\n\t\tminValue,\n\t\tmaxValue,\n\t});\n\n\tfunction handleDefaultPlaceholder() {\n\t\tif (placeholder !== undefined) return;\n\t\tplaceholder = defaultPlaceholder;\n\t}\n\n\t// SSR\n\thandleDefaultPlaceholder();\n\n\twatch.pre(\n\t\t() => placeholder,\n\t\t() => {\n\t\t\thandleDefaultPlaceholder();\n\t\t}\n\t);\n\n\tfunction handleDefaultValue() {\n\t\tif (value !== undefined) return;\n\t\tvalue = type === \"single\" ? undefined : [];\n\t}\n\n\t// SSR\n\thandleDefaultValue();\n\n\twatch.pre(\n\t\t() => value,\n\t\t() => {\n\t\t\thandleDefaultValue();\n\t\t}\n\t);\n\n\tconst rootState = CalendarRootState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tweekdayFormat: boxWith(() => weekdayFormat),\n\t\tweekStartsOn: boxWith(() => weekStartsOn),\n\t\tpagedNavigation: boxWith(() => pagedNavigation),\n\t\tisDateDisabled: boxWith(() => isDateDisabled),\n\t\tisDateUnavailable: boxWith(() => isDateUnavailable),\n\t\tfixedWeeks: boxWith(() => fixedWeeks),\n\t\tnumberOfMonths: boxWith(() => numberOfMonths),\n\t\tlocale: resolveLocaleProp(() => locale),\n\t\tcalendarLabel: boxWith(() => calendarLabel),\n\t\treadonly: boxWith(() => readonly),\n\t\tdisabled: boxWith(() => disabled),\n\t\tminValue: boxWith(() => minValue),\n\t\tmaxValue: boxWith(() => maxValue),\n\t\tdisableDaysOutsideMonth: boxWith(() => disableDaysOutsideMonth),\n\t\tinitialFocus: boxWith(() => initialFocus),\n\t\tmaxDays: boxWith(() => maxDays),\n\t\tplaceholder: boxWith(\n\t\t\t() => placeholder as DateValue,\n\t\t\t(v) => {\n\t\t\t\tplaceholder = v;\n\t\t\t\tonPlaceholderChange(v as DateValue);\n\t\t\t}\n\t\t),\n\t\tpreventDeselect: boxWith(() => preventDeselect),\n\t\tvalue: boxWith(\n\t\t\t() => value,\n\t\t\t(v) => {\n\t\t\t\tvalue = v;\n\t\t\t\t// oxlint-disable-next-line no-explicit-any\n\t\t\t\tonValueChange(v as any);\n\t\t\t}\n\t\t),\n\t\ttype: boxWith(() => type),\n\t\tmonthFormat: boxWith(() => monthFormat),\n\t\tyearFormat: boxWith(() => yearFormat),\n\t\tdefaultPlaceholder,\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, rootState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps, ...rootState.snippetProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.(rootState.snippetProps)}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarDayState } from \"../calendar.svelte.js\";\n\timport type { CalendarDayProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarDayProps = $props();\n\n\tconst dayState = CalendarDayState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, dayState.props));\n</script>\n\n{#if child}\n\t{@render child({\n\t\tprops: mergedProps,\n\t\t...dayState.snippetProps,\n\t})}\n{:else}\n\t<div {...mergedProps}>\n\t\t{#if children}\n\t\t\t{@render children?.(dayState.snippetProps)}\n\t\t{:else}\n\t\t\t{dayState.cell.opts.date.current.day}\n\t\t{/if}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarGridState } from \"../calendar.svelte.js\";\n\timport type { CalendarGridProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarGridProps = $props();\n\n\tconst gridState = CalendarGridState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, gridState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<table {...mergedProps}>\n\t\t{@render children?.()}\n\t</table>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { CalendarGridBodyProps } from \"../types.js\";\n\timport { CalendarGridBodyState } from \"../calendar.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarGridBodyProps = $props();\n\n\tconst gridBodyState = CalendarGridBodyState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, gridBodyState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<tbody {...mergedProps}>\n\t\t{@render children?.()}\n\t</tbody>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarCellState } from \"../calendar.svelte.js\";\n\timport type { CalendarCellProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tdate,\n\t\tmonth,\n\t\t...restProps\n\t}: CalendarCellProps = $props();\n\n\tconst cellState = CalendarCellState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdate: boxWith(() => date),\n\t\tmonth: boxWith(() => month),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, cellState.props));\n</script>\n\n{#if child}\n\t{@render child({\n\t\tprops: mergedProps,\n\t\t...cellState.snippetProps,\n\t})}\n{:else}\n\t<td {...mergedProps}>\n\t\t{@render children?.(cellState.snippetProps)}\n\t</td>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarGridHeadState } from \"../calendar.svelte.js\";\n\timport type { CalendarGridHeadProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarGridHeadProps = $props();\n\n\tconst gridHeadState = CalendarGridHeadState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, gridHeadState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<thead {...mergedProps}>\n\t\t{@render children?.()}\n\t</thead>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarHeadCellState } from \"../calendar.svelte.js\";\n\timport type { CalendarHeadCellProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarHeadCellProps = $props();\n\n\tconst headCellState = CalendarHeadCellState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, headCellState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<th {...mergedProps}>\n\t\t{@render children?.()}\n\t</th>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarGridRowState } from \"../calendar.svelte.js\";\n\timport type { CalendarGridRowProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarGridRowProps = $props();\n\n\tconst gridRowState = CalendarGridRowState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, gridRowState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<tr {...mergedProps}>\n\t\t{@render children?.()}\n\t</tr>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarHeaderState } from \"../calendar.svelte.js\";\n\timport type { CalendarHeaderProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: CalendarHeaderProps = $props();\n\n\tconst headerState = CalendarHeaderState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, headerState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<header {...mergedProps}>\n\t\t{@render children?.()}\n\t</header>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { CalendarMonthSelectProps } from \"../types.js\";\n\timport { CalendarMonthSelectState } from \"../calendar.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tmonths = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],\n\t\tmonthFormat = \"long\",\n\t\tdisabled = false,\n\t\t\"aria-label\": ariaLabel = \"Select a month\",\n\t\t...restProps\n\t}: CalendarMonthSelectProps = $props();\n\n\tconst monthSelectState = CalendarMonthSelectState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tmonths: boxWith(() => months),\n\t\tmonthFormat: boxWith(() => monthFormat),\n\t\tdisabled: boxWith(() => Boolean(disabled)),\n\t});\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, monthSelectState.props, { \"aria-label\": ariaLabel })\n\t);\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps, ...monthSelectState.snippetProps })}\n{:else}\n\t<select {...mergedProps}>\n\t\t{#if children}\n\t\t\t{@render children?.(monthSelectState.snippetProps)}\n\t\t{:else}\n\t\t\t{#each monthSelectState.monthItems as month (month.value)}\n\t\t\t\t<option\n\t\t\t\t\tvalue={month.value}\n\t\t\t\t\tselected={month.value === monthSelectState.currentMonth}\n\t\t\t\t>\n\t\t\t\t\t{month.label}\n\t\t\t\t</option>\n\t\t\t{/each}\n\t\t{/if}\n\t</select>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { CalendarNextButtonState } from \"../calendar.svelte.js\";\n\timport type { CalendarNextButtonProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\t// for safari\n\t\ttabindex = 0,\n\t\t...restProps\n\t}: CalendarNextButtonProps = $props();\n\n\tconst nextButtonState = CalendarNextButtonState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, nextButtonState.props, { tabindex }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { CalendarPrevButtonProps } from \"../types.js\";\n\timport { CalendarPrevButtonState } from \"../calendar.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\t// for safari\n\t\ttabindex = 0,\n\t\t...restProps\n\t}: CalendarPrevButtonProps = $props();\n\n\tconst prevButtonState = CalendarPrevButtonState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, prevButtonState.props, { tabindex }));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { CalendarYearSelectProps } from \"../types.js\";\n\timport { CalendarYearSelectState } from \"../calendar.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\tyears,\n\t\tyearFormat = \"numeric\",\n\t\tdisabled = false,\n\t\t\"aria-label\": ariaLabel = \"Select a year\",\n\t\t...restProps\n\t}: CalendarYearSelectProps = $props();\n\n\tconst yearSelectState = CalendarYearSelectState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tyears: boxWith(() => years),\n\t\tyearFormat: boxWith(() => yearFormat),\n\t\tdisabled: boxWith(() => Boolean(disabled)),\n\t});\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, yearSelectState.props, { \"aria-label\": ariaLabel })\n\t);\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps, ...yearSelectState.snippetProps })}\n{:else}\n\t<select {...mergedProps}>\n\t\t{#if children}\n\t\t\t{@render children?.(yearSelectState.snippetProps)}\n\t\t{:else}\n\t\t\t{#each yearSelectState.yearItems as year (year.value)}\n\t\t\t\t<option value={year.value} selected={year.value === yearSelectState.currentYear}>\n\t\t\t\t\t{year.label}\n\t\t\t\t</option>\n\t\t\t{/each}\n\t\t{/if}\n\t</select>\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m15 18-6-6 6-6\" }]];\n/**\n * @component @name ChevronLeft\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTUgMTgtNi02IDYtNiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/chevron-left\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chevron-left\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m9 18 6-6-6-6\" }]];\n/**\n * @component @name ChevronRight\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtOSAxOCA2LTYtNi02IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/chevron-right\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chevron-right\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M12 6v6l4 2\" }], [\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"10\" }]];\n/**\n * @component @name Clock\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgNnY2bDQgMiIgLz4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/clock\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"clock\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport * as Calendar from \"./index.js\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport type { ButtonVariant } from \"../button/button.svelte\";\n\timport { isEqualMonth, type DateValue } from \"@internationalized/date\";\n\timport type { Snippet } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tvalue = $bindable(),\n\t\tplaceholder = $bindable(),\n\t\tclass: className,\n\t\tweekdayFormat = \"short\",\n\t\tbuttonVariant = \"ghost\",\n\t\tcaptionLayout = \"label\",\n\t\tlocale = \"en-US\",\n\t\tmonths: monthsProp,\n\t\tyears,\n\t\tmonthFormat: monthFormatProp,\n\t\tyearFormat = \"numeric\",\n\t\tday,\n\t\tdisableDaysOutsideMonth = false,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<CalendarPrimitive.RootProps> & {\n\t\tbuttonVariant?: ButtonVariant;\n\t\tcaptionLayout?: \"dropdown\" | \"dropdown-months\" | \"dropdown-years\" | \"label\";\n\t\tmonths?: CalendarPrimitive.MonthSelectProps[\"months\"];\n\t\tyears?: CalendarPrimitive.YearSelectProps[\"years\"];\n\t\tmonthFormat?: CalendarPrimitive.MonthSelectProps[\"monthFormat\"];\n\t\tyearFormat?: CalendarPrimitive.YearSelectProps[\"yearFormat\"];\n\t\tday?: Snippet<[{ day: DateValue; outsideMonth: boolean }]>;\n\t} = $props();\n\n\tconst monthFormat = $derived.by(() => {\n\t\tif (monthFormatProp) return monthFormatProp;\n\t\tif (captionLayout.startsWith(\"dropdown\")) return \"short\";\n\t\treturn \"long\";\n\t});\n</script>\n\n<!--\nDiscriminated Unions + Destructing (required for bindable) do not\nget along, so we shut typescript up by casting `value` to `never`.\n-->\n<CalendarPrimitive.Root\n\tbind:value={value as never}\n\tbind:ref\n\tbind:placeholder\n\t{weekdayFormat}\n\t{disableDaysOutsideMonth}\n\tclass={cn(\n\t\t\"bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent\",\n\t\tclassName\n\t)}\n\t{locale}\n\t{monthFormat}\n\t{yearFormat}\n\t{...restProps}\n>\n\t{#snippet children({ months, weekdays })}\n\t\t<Calendar.Months>\n\t\t\t<Calendar.Nav>\n\t\t\t\t<Calendar.PrevButton variant={buttonVariant} />\n\t\t\t\t<Calendar.NextButton variant={buttonVariant} />\n\t\t\t</Calendar.Nav>\n\t\t\t{#each months as month, monthIndex (month)}\n\t\t\t\t<Calendar.Month>\n\t\t\t\t\t<Calendar.Header>\n\t\t\t\t\t\t<Calendar.Caption\n\t\t\t\t\t\t\t{captionLayout}\n\t\t\t\t\t\t\tmonths={monthsProp}\n\t\t\t\t\t\t\t{monthFormat}\n\t\t\t\t\t\t\t{years}\n\t\t\t\t\t\t\t{yearFormat}\n\t\t\t\t\t\t\tmonth={month.value}\n\t\t\t\t\t\t\tbind:placeholder\n\t\t\t\t\t\t\t{locale}\n\t\t\t\t\t\t\t{monthIndex}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Calendar.Header>\n\t\t\t\t\t<Calendar.Grid>\n\t\t\t\t\t\t<Calendar.GridHead>\n\t\t\t\t\t\t\t<Calendar.GridRow class=\"select-none\">\n\t\t\t\t\t\t\t\t{#each weekdays as weekday (weekday)}\n\t\t\t\t\t\t\t\t\t<Calendar.HeadCell>\n\t\t\t\t\t\t\t\t\t\t{weekday.slice(0, 2)}\n\t\t\t\t\t\t\t\t\t</Calendar.HeadCell>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Calendar.GridRow>\n\t\t\t\t\t\t</Calendar.GridHead>\n\t\t\t\t\t\t<Calendar.GridBody>\n\t\t\t\t\t\t\t{#each month.weeks as weekDates (weekDates)}\n\t\t\t\t\t\t\t\t<Calendar.GridRow class=\"mt-2 w-full\">\n\t\t\t\t\t\t\t\t\t{#each weekDates as date (date)}\n\t\t\t\t\t\t\t\t\t\t<Calendar.Cell {date} month={month.value}>\n\t\t\t\t\t\t\t\t\t\t\t{#if day}\n\t\t\t\t\t\t\t\t\t\t\t\t{@render day({\n\t\t\t\t\t\t\t\t\t\t\t\t\tday: date,\n\t\t\t\t\t\t\t\t\t\t\t\t\toutsideMonth: !isEqualMonth(date, month.value),\n\t\t\t\t\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t<Calendar.Day />\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t</Calendar.Cell>\n\t\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t</Calendar.GridRow>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</Calendar.GridBody>\n\t\t\t\t\t</Calendar.Grid>\n\t\t\t\t</Calendar.Month>\n\t\t\t{/each}\n\t\t</Calendar.Months>\n\t{/snippet}\n</CalendarPrimitive.Root>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.CellProps = $props();\n</script>\n\n<CalendarPrimitive.Cell\n\tbind:ref\n\tclass={cn(\n\t\t\"relative size-(--cell-size) p-0 text-center text-sm focus-within:z-20 [&:first-child[data-selected]_[data-bits-day]]:rounded-s-md [&:last-child[data-selected]_[data-bits-day]]:rounded-e-md\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { buttonVariants } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.DayProps = $props();\n</script>\n\n<CalendarPrimitive.Day\n\tbind:ref\n\tclass={cn(\n\t\tbuttonVariants({ variant: \"ghost\" }),\n\t\t\"flex size-(--cell-size) flex-col items-center justify-center gap-1 p-0 leading-none font-normal whitespace-nowrap select-none\",\n\t\t\"[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground [&[data-today][data-disabled]]:text-muted-foreground\",\n\t\t\"data-[selected]:bg-primary dark:data-[selected]:hover:bg-accent/50 data-[selected]:text-primary-foreground\",\n\t\t// Outside months\n\t\t\"[&[data-outside-month]:not([data-selected])]:text-muted-foreground [&[data-outside-month]:not([data-selected])]:hover:text-accent-foreground\",\n\t\t// Disabled\n\t\t\"data-[disabled]:text-muted-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n\t\t// Unavailable\n\t\t\"data-[unavailable]:text-muted-foreground data-[unavailable]:line-through\",\n\t\t// hover\n\t\t\"dark:hover:text-accent-foreground\",\n\t\t// focus\n\t\t\"focus:border-ring focus:ring-ring/50 focus:relative\",\n\t\t// inner spans\n\t\t\"[&>span]:text-xs [&>span]:opacity-70\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.GridProps = $props();\n</script>\n\n<CalendarPrimitive.Grid\n\tbind:ref\n\tclass={cn(\"mt-4 flex w-full border-collapse flex-col gap-1\", className)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.HeaderProps = $props();\n</script>\n\n<CalendarPrimitive.Header\n\tbind:ref\n\tclass={cn(\n\t\t\"flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tclass={cn(\"relative flex flex-col gap-4 md:flex-row\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.GridRowProps = $props();\n</script>\n\n<CalendarPrimitive.GridRow bind:ref class={cn(\"flex\", className)} {...restProps} />\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.GridBodyProps = $props();\n</script>\n\n<CalendarPrimitive.GridBody bind:ref class={cn(className)} {...restProps} />\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.GridHeadProps = $props();\n</script>\n\n<CalendarPrimitive.GridHead bind:ref class={cn(className)} {...restProps} />\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: CalendarPrimitive.HeadCellProps = $props();\n</script>\n\n<CalendarPrimitive.HeadCell\n\tbind:ref\n\tclass={cn(\n\t\t\"text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport ChevronRightIcon from \"@lucide/svelte/icons/chevron-right\";\n\timport { buttonVariants, type ButtonVariant } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\tvariant = \"ghost\",\n\t\t...restProps\n\t}: CalendarPrimitive.NextButtonProps & {\n\t\tvariant?: ButtonVariant;\n\t} = $props();\n</script>\n\n{#snippet Fallback()}\n\t<ChevronRightIcon class=\"size-4\" />\n{/snippet}\n\n<CalendarPrimitive.NextButton\n\tbind:ref\n\tclass={cn(\n\t\tbuttonVariants({ variant }),\n\t\t\"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180\",\n\t\tclassName\n\t)}\n\tchildren={children || Fallback}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport ChevronLeftIcon from \"@lucide/svelte/icons/chevron-left\";\n\timport { buttonVariants, type ButtonVariant } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\tvariant = \"ghost\",\n\t\t...restProps\n\t}: CalendarPrimitive.PrevButtonProps & {\n\t\tvariant?: ButtonVariant;\n\t} = $props();\n</script>\n\n{#snippet Fallback()}\n\t<ChevronLeftIcon class=\"size-4\" />\n{/snippet}\n\n<CalendarPrimitive.PrevButton\n\tbind:ref\n\tclass={cn(\n\t\tbuttonVariants({ variant }),\n\t\t\"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180\",\n\t\tclassName\n\t)}\n\tchildren={children || Fallback}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport ChevronDownIcon from \"@lucide/svelte/icons/chevron-down\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tvalue,\n\t\tonchange,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<CalendarPrimitive.MonthSelectProps> = $props();\n</script>\n\n<span\n\tclass={cn(\n\t\t\"has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]\",\n\t\tclassName\n\t)}\n>\n\t<CalendarPrimitive.MonthSelect bind:ref class=\"absolute inset-0 opacity-0\" {...restProps}>\n\t\t{#snippet child({ props, monthItems, selectedMonthItem })}\n\t\t\t<select {...props} {value} {onchange}>\n\t\t\t\t{#each monthItems as monthItem (monthItem.value)}\n\t\t\t\t\t<option\n\t\t\t\t\t\tvalue={monthItem.value}\n\t\t\t\t\t\tselected={value !== undefined\n\t\t\t\t\t\t\t? monthItem.value === value\n\t\t\t\t\t\t\t: monthItem.value === selectedMonthItem.value}\n\t\t\t\t\t>\n\t\t\t\t\t\t{monthItem.label}\n\t\t\t\t\t</option>\n\t\t\t\t{/each}\n\t\t\t</select>\n\t\t\t<span\n\t\t\t\tclass=\"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t>\n\t\t\t\t{monthItems.find((item) => item.value === value)?.label || selectedMonthItem.label}\n\t\t\t\t<ChevronDownIcon class=\"size-4\" />\n\t\t\t</span>\n\t\t{/snippet}\n\t</CalendarPrimitive.MonthSelect>\n</span>\n","<script lang=\"ts\">\n\timport { Calendar as CalendarPrimitive } from \"bits-ui\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport ChevronDownIcon from \"@lucide/svelte/icons/chevron-down\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tvalue,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<CalendarPrimitive.YearSelectProps> = $props();\n</script>\n\n<span\n\tclass={cn(\n\t\t\"has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]\",\n\t\tclassName\n\t)}\n>\n\t<CalendarPrimitive.YearSelect bind:ref class=\"absolute inset-0 opacity-0\" {...restProps}>\n\t\t{#snippet child({ props, yearItems, selectedYearItem })}\n\t\t\t<select {...props} {value}>\n\t\t\t\t{#each yearItems as yearItem (yearItem.value)}\n\t\t\t\t\t<option\n\t\t\t\t\t\tvalue={yearItem.value}\n\t\t\t\t\t\tselected={value !== undefined\n\t\t\t\t\t\t\t? yearItem.value === value\n\t\t\t\t\t\t\t: yearItem.value === selectedYearItem.value}\n\t\t\t\t\t>\n\t\t\t\t\t\t{yearItem.label}\n\t\t\t\t\t</option>\n\t\t\t\t{/each}\n\t\t\t</select>\n\t\t\t<span\n\t\t\t\tclass=\"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5\"\n\t\t\t\taria-hidden=\"true\"\n\t\t\t>\n\t\t\t\t{yearItems.find((item) => item.value === value)?.label || selectedYearItem.label}\n\t\t\t\t<ChevronDownIcon class=\"size-4\" />\n\t\t\t</span>\n\t\t{/snippet}\n\t</CalendarPrimitive.YearSelect>\n</span>\n","<script lang=\"ts\">\n\timport { type WithElementRef, cn } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<div {...restProps} bind:this={ref} class={cn(\"flex flex-col\", className)}>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<nav\n\t{...restProps}\n\tbind:this={ref}\n\tclass={cn(\"absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1\", className)}\n>\n\t{@render children?.()}\n</nav>\n","<script lang=\"ts\">\n\timport type { ComponentProps } from \"svelte\";\n\timport type Calendar from \"./calendar.svelte\";\n\timport CalendarMonthSelect from \"./calendar-month-select.svelte\";\n\timport CalendarYearSelect from \"./calendar-year-select.svelte\";\n\timport { DateFormatter, getLocalTimeZone, type DateValue } from \"@internationalized/date\";\n\n\tlet {\n\t\tcaptionLayout,\n\t\tmonths,\n\t\tmonthFormat,\n\t\tyears,\n\t\tyearFormat,\n\t\tmonth,\n\t\tlocale,\n\t\tplaceholder = $bindable(),\n\t\tmonthIndex = 0,\n\t}: {\n\t\tcaptionLayout: ComponentProps<typeof Calendar>[\"captionLayout\"];\n\t\tmonths: ComponentProps<typeof CalendarMonthSelect>[\"months\"];\n\t\tmonthFormat: ComponentProps<typeof CalendarMonthSelect>[\"monthFormat\"];\n\t\tyears: ComponentProps<typeof CalendarYearSelect>[\"years\"];\n\t\tyearFormat: ComponentProps<typeof CalendarYearSelect>[\"yearFormat\"];\n\t\tmonth: DateValue;\n\t\tplaceholder: DateValue | undefined;\n\t\tlocale: string;\n\t\tmonthIndex: number;\n\t} = $props();\n\n\tfunction formatYear(date: DateValue) {\n\t\tconst dateObj = date.toDate(getLocalTimeZone());\n\t\tif (typeof yearFormat === \"function\") return yearFormat(dateObj.getFullYear());\n\t\treturn new DateFormatter(locale, { year: yearFormat }).format(dateObj);\n\t}\n\n\tfunction formatMonth(date: DateValue) {\n\t\tconst dateObj = date.toDate(getLocalTimeZone());\n\t\tif (typeof monthFormat === \"function\") return monthFormat(dateObj.getMonth() + 1);\n\t\treturn new DateFormatter(locale, { month: monthFormat }).format(dateObj);\n\t}\n</script>\n\n{#snippet MonthSelect()}\n\t<CalendarMonthSelect\n\t\t{months}\n\t\t{monthFormat}\n\t\tvalue={month.month}\n\t\tonchange={(e) => {\n\t\t\tif (!placeholder) return;\n\t\t\tconst v = Number.parseInt(e.currentTarget.value);\n\t\t\tconst newPlaceholder = placeholder.set({ month: v });\n\t\t\tplaceholder = newPlaceholder.subtract({ months: monthIndex });\n\t\t}}\n\t/>\n{/snippet}\n\n{#snippet YearSelect()}\n\t<CalendarYearSelect {years} {yearFormat} value={month.year} />\n{/snippet}\n\n{#if captionLayout === \"dropdown\"}\n\t{@render MonthSelect()}\n\t{@render YearSelect()}\n{:else if captionLayout === \"dropdown-months\"}\n\t{@render MonthSelect()}\n\t{#if placeholder}\n\t\t{formatYear(placeholder)}\n\t{/if}\n{:else if captionLayout === \"dropdown-years\"}\n\t{#if placeholder}\n\t\t{formatMonth(placeholder)}\n\t{/if}\n\t{@render YearSelect()}\n{:else}\n\t{formatMonth(month)} {formatYear(month)}\n{/if}\n","<script lang=\"ts\">\n import { Calendar } from \"$lib/components/ui/calendar\";\n import * as Select from \"$lib/components/ui/select\";\n import { cn } from \"$lib/utils\";\n import { CalendarDate, CalendarDateTime, getLocalTimeZone, today, type DateValue } from \"@internationalized/date\";\n\n type Period = 'AM' | 'PM';\n\n interface Props {\n value?: CalendarDateTime | CalendarDate;\n onValueChange?: (value: CalendarDateTime) => void;\n class?: string;\n }\n\n let {\n value = $bindable(),\n onValueChange,\n class: className\n }: Props = $props();\n\n // Time state (12-hour format for display)\n let hours = $state(12);\n let minutes = $state(0);\n let seconds = $state(0);\n let period = $state<Period>('AM');\n\n // Initialize from value\n $effect(() => {\n if (value && 'hour' in value) {\n const hour24 = value.hour;\n period = hour24 >= 12 ? 'PM' : 'AM';\n hours = hour24 % 12 || 12;\n minutes = value.minute;\n seconds = value.second;\n }\n });\n\n // Derived 24-hour value\n const hour24 = $derived(() => {\n if (period === 'AM') {\n return hours === 12 ? 0 : hours;\n } else {\n return hours === 12 ? 12 : hours + 12;\n }\n });\n\n // Handle calendar date change\n function handleDateChange(newDate: DateValue | undefined) {\n if (!newDate) return;\n\n const dateTime = new CalendarDateTime(\n newDate.year,\n newDate.month,\n newDate.day,\n hour24(),\n minutes,\n seconds\n );\n\n value = dateTime;\n onValueChange?.(dateTime);\n }\n\n // Handle time changes\n function updateDateTime() {\n if (!value) {\n const now = today(getLocalTimeZone());\n value = new CalendarDateTime(now.year, now.month, now.day, hour24(), minutes, seconds);\n } else {\n const dateTime = new CalendarDateTime(\n value.year,\n value.month,\n value.day,\n hour24(),\n minutes,\n seconds\n );\n value = dateTime;\n onValueChange?.(dateTime);\n }\n }\n\n // Input handlers with validation\n function handleHoursInput(e: Event) {\n const input = e.target as HTMLInputElement;\n let val = parseInt(input.value) || 0;\n if (val < 1) val = 1;\n if (val > 12) val = 12;\n hours = val;\n input.value = String(val).padStart(2, '0');\n updateDateTime();\n }\n\n function handleMinutesInput(e: Event) {\n const input = e.target as HTMLInputElement;\n let val = parseInt(input.value) || 0;\n if (val < 0) val = 0;\n if (val > 59) val = 59;\n minutes = val;\n input.value = String(val).padStart(2, '0');\n updateDateTime();\n }\n\n function handleSecondsInput(e: Event) {\n const input = e.target as HTMLInputElement;\n let val = parseInt(input.value) || 0;\n if (val < 0) val = 0;\n if (val > 59) val = 59;\n seconds = val;\n input.value = String(val).padStart(2, '0');\n updateDateTime();\n }\n\n function handlePeriodChange(newPeriod: string | undefined) {\n if (newPeriod === 'AM' || newPeriod === 'PM') {\n period = newPeriod;\n updateDateTime();\n }\n }\n\n // Increment/decrement helpers\n function incrementHours() {\n hours = hours >= 12 ? 1 : hours + 1;\n updateDateTime();\n }\n\n function decrementHours() {\n hours = hours <= 1 ? 12 : hours - 1;\n updateDateTime();\n }\n\n function incrementMinutes() {\n if (minutes >= 59) {\n minutes = 0;\n incrementHours();\n } else {\n minutes++;\n }\n updateDateTime();\n }\n\n function decrementMinutes() {\n if (minutes <= 0) {\n minutes = 59;\n decrementHours();\n } else {\n minutes--;\n }\n updateDateTime();\n }\n\n function incrementSeconds() {\n if (seconds >= 59) {\n seconds = 0;\n incrementMinutes();\n } else {\n seconds++;\n }\n updateDateTime();\n }\n\n function decrementSeconds() {\n if (seconds <= 0) {\n seconds = 59;\n decrementMinutes();\n } else {\n seconds--;\n }\n updateDateTime();\n }\n\n // Handle keyboard navigation\n function handleKeyDown(e: KeyboardEvent, field: 'hours' | 'minutes' | 'seconds') {\n if (e.key === 'ArrowUp') {\n e.preventDefault();\n if (field === 'hours') incrementHours();\n else if (field === 'minutes') incrementMinutes();\n else incrementSeconds();\n } else if (e.key === 'ArrowDown') {\n e.preventDefault();\n if (field === 'hours') decrementHours();\n else if (field === 'minutes') decrementMinutes();\n else decrementSeconds();\n }\n }\n\n // Get calendar-compatible date value\n const calendarValue = $derived(() => {\n if (!value) return undefined;\n return new CalendarDate(value.year, value.month, value.day);\n });\n</script>\n\n<div class={cn(\"flex flex-col\", className)}>\n <!-- Calendar -->\n <Calendar\n type=\"single\"\n value={calendarValue()}\n onValueChange={handleDateChange}\n />\n\n <!-- Time Picker -->\n <div class=\"border-t px-3 py-3\">\n <div class=\"flex items-end gap-2\">\n <!-- Hours -->\n <div class=\"flex flex-col items-center gap-1\">\n <span class=\"text-xs text-muted-foreground\">Hours</span>\n <input\n type=\"text\"\n inputmode=\"numeric\"\n class=\"w-10 h-9 text-center text-sm border rounded-md bg-background focus:outline-none focus:ring-2 focus:ring-ring tabular-nums\"\n value={String(hours).padStart(2, '0')}\n onchange={handleHoursInput}\n onkeydown={(e) => handleKeyDown(e, 'hours')}\n maxlength={2}\n />\n </div>\n\n <span class=\"text-sm font-medium text-muted-foreground pb-1\">:</span>\n\n <!-- Minutes -->\n <div class=\"flex flex-col items-center gap-1\">\n <span class=\"text-xs text-muted-foreground\">Minutes</span>\n <input\n type=\"text\"\n inputmode=\"numeric\"\n class=\"w-10 h-9 text-center text-sm border rounded-md bg-background focus:outline-none focus:ring-2 focus:ring-ring tabular-nums\"\n value={String(minutes).padStart(2, '0')}\n onchange={handleMinutesInput}\n onkeydown={(e) => handleKeyDown(e, 'minutes')}\n maxlength={2}\n />\n </div>\n\n <span class=\"text-sm font-medium text-muted-foreground pb-1\">:</span>\n\n <!-- Seconds (disabled - not passed between pages) -->\n <div class=\"flex flex-col items-center gap-1\">\n <span class=\"text-xs text-muted-foreground\">Seconds</span>\n <input\n type=\"text\"\n inputmode=\"numeric\"\n class=\"w-10 h-9 text-center text-sm border rounded-md bg-muted text-muted-foreground tabular-nums cursor-not-allowed\"\n value={String(seconds).padStart(2, '0')}\n disabled\n />\n </div>\n\n <!-- Period (AM/PM) -->\n <div class=\"flex flex-col items-center gap-1\">\n <span class=\"text-xs text-muted-foreground\">Period</span>\n <Select.Root\n type=\"single\"\n value={period}\n onValueChange={handlePeriodChange}\n >\n <Select.Trigger class=\"w-[60px] h-9 text-sm\">\n {period}\n </Select.Trigger>\n <Select.Content>\n <Select.Item value=\"AM\" label=\"AM\">AM</Select.Item>\n <Select.Item value=\"PM\" label=\"PM\">PM</Select.Item>\n </Select.Content>\n </Select.Root>\n </div>\n </div>\n </div>\n</div>\n","<script lang=\"ts\">\n import { Button } from \"$lib/components/ui/button\";\n import { DateTimePicker } from \"$lib/components/ui/datetime-picker\";\n import * as Popover from \"$lib/components/ui/popover\";\n import { Clock, ChevronDown, ChevronRight, Check } from \"@lucide/svelte\";\n import { CalendarDate, CalendarDateTime, getLocalTimeZone, today } from \"@internationalized/date\";\n import { getNow, luxonToCalendarDateTime } from \"$lib/utils/formatters\";\n import { getTimezone } from \"$lib/state/timezone.svelte\";\n\n type TimeRangePreset = {\n value: string;\n label: string;\n minutes: number;\n };\n\n type PresetGroup = {\n presets: TimeRangePreset[];\n };\n\n interface Props {\n fromDate?: CalendarDate;\n toDate?: CalendarDate;\n fromTime?: string;\n toTime?: string;\n preset?: string | null;\n timezone?: string;\n onApply?: (from: { date: CalendarDate; time: string }, to: { date: CalendarDate; time: string }, preset: string | null) => void;\n }\n\n let {\n fromDate = $bindable(today(getLocalTimeZone()).subtract({ days: 7 })),\n toDate = $bindable(today(getLocalTimeZone())),\n fromTime = $bindable('00:00'),\n toTime = $bindable('23:59'),\n preset = $bindable<string | null>('24h'),\n timezone,\n onApply\n }: Props = $props();\n\n const tz = $derived(timezone ?? getTimezone());\n\n // Preset groups\n const presetGroups: PresetGroup[] = [\n {\n presets: [\n { value: '5m', label: '5 minutes', minutes: 5 },\n { value: '30m', label: '30 minutes', minutes: 30 },\n { value: '60m', label: '60 minutes', minutes: 60 },\n ]\n },\n {\n presets: [\n { value: '3h', label: '3 hours', minutes: 180 },\n { value: '6h', label: '6 hours', minutes: 360 },\n { value: '12h', label: '12 hours', minutes: 720 },\n { value: '24h', label: '24 hours', minutes: 1440 },\n ]\n },\n {\n presets: [\n { value: '3d', label: '3 days', minutes: 4320 },\n { value: '7d', label: '7 days', minutes: 10080 },\n ]\n },\n {\n presets: [\n { value: '1M', label: '1 month', minutes: 43200 },\n { value: '3M', label: '3 months', minutes: 129600 },\n ]\n }\n ];\n\n let isOpen = $state(false);\n let showCustom = $state(preset === null);\n let selectedPreset = $state<string | null>(preset);\n\n // Flag to ignore external change detection when we're applying our own changes\n let isApplyingInternally = $state(false);\n\n // Sync internal selectedPreset with external preset prop\n $effect(() => {\n if (preset !== selectedPreset) {\n selectedPreset = preset;\n showCustom = preset === null;\n\n // If preset is set, calculate the time range\n if (preset) {\n const presetDef = presetGroups.flatMap(g => g.presets).find(p => p.value === preset);\n if (presetDef) {\n const now = getNow(tz);\n const fromDt = now.minus({ minutes: presetDef.minutes });\n const fromParts = luxonToCalendarDateTime(fromDt);\n const toParts = luxonToCalendarDateTime(now);\n\n tempFromDateTime = new CalendarDateTime(\n fromParts.year,\n fromParts.month,\n fromParts.day,\n fromParts.hour,\n fromParts.minute,\n fromParts.second\n );\n tempToDateTime = new CalendarDateTime(\n toParts.year,\n toParts.month,\n toParts.day,\n toParts.hour,\n toParts.minute,\n toParts.second\n );\n }\n }\n }\n });\n\n // Track last known bound values to detect external changes\n let lastFromDate = $state(fromDate);\n let lastToDate = $state(toDate);\n let lastFromTime = $state(fromTime);\n let lastToTime = $state(toTime);\n\n // Detect external value changes and switch to custom mode\n $effect(() => {\n const fromDateChanged = fromDate.year !== lastFromDate.year ||\n fromDate.month !== lastFromDate.month ||\n fromDate.day !== lastFromDate.day;\n const toDateChanged = toDate.year !== lastToDate.year ||\n toDate.month !== lastToDate.month ||\n toDate.day !== lastToDate.day;\n const fromTimeChanged = fromTime !== lastFromTime;\n const toTimeChanged = toTime !== lastToTime;\n\n if (fromDateChanged || toDateChanged || fromTimeChanged || toTimeChanged) {\n // Update last known values\n lastFromDate = fromDate;\n lastToDate = toDate;\n lastFromTime = fromTime;\n lastToTime = toTime;\n\n // If picker is not open AND we're not applying internally, this was an external change\n if (!isOpen && !isApplyingInternally) {\n showCustom = true;\n selectedPreset = null;\n\n // Sync temp values with the new bound values\n const [fromHour, fromMinute] = fromTime.split(':').map(Number);\n const [toHour, toMinute] = toTime.split(':').map(Number);\n tempFromDateTime = new CalendarDateTime(\n fromDate.year, fromDate.month, fromDate.day,\n fromHour || 0, fromMinute || 0, 0\n );\n tempToDateTime = new CalendarDateTime(\n toDate.year, toDate.month, toDate.day,\n toHour || 23, toMinute || 59, 0\n );\n }\n }\n });\n\n // DateTime picker popover states\n let fromPickerOpen = $state(false);\n let toPickerOpen = $state(false);\n\n // Temporary CalendarDateTime values for custom selection\n // Parse initial time from props instead of using hardcoded values\n function parseInitialTime(timeStr: string, fallbackHour: number, fallbackMinute: number): { hour: number; minute: number } {\n if (!timeStr) return { hour: fallbackHour, minute: fallbackMinute };\n const [hour, minute] = timeStr.split(':').map(Number);\n return { hour: hour ?? fallbackHour, minute: minute ?? fallbackMinute };\n }\n\n const initialFromTimeParts = parseInitialTime(fromTime, 0, 0);\n const initialToTimeParts = parseInitialTime(toTime, 23, 59);\n\n let tempFromDateTime = $state<CalendarDateTime>(\n new CalendarDateTime(fromDate.year, fromDate.month, fromDate.day, initialFromTimeParts.hour, initialFromTimeParts.minute, 0)\n );\n let tempToDateTime = $state<CalendarDateTime>(\n new CalendarDateTime(toDate.year, toDate.month, toDate.day, initialToTimeParts.hour, initialToTimeParts.minute, 59)\n );\n\n // Track initial values when popover opens to detect changes\n let initialFromDateTime = $state<CalendarDateTime | null>(null);\n let initialToDateTime = $state<CalendarDateTime | null>(null);\n\n // Helper to compare two CalendarDateTime values\n function dateTimesEqual(a: CalendarDateTime, b: CalendarDateTime): boolean {\n return a.year === b.year &&\n a.month === b.month &&\n a.day === b.day &&\n a.hour === b.hour &&\n a.minute === b.minute;\n }\n\n // Get display label for trigger button\n const displayLabel = $derived(() => {\n if (selectedPreset && !showCustom) {\n const preset = presetGroups.flatMap(g => g.presets).find(p => p.value === selectedPreset);\n return preset ? `Last ${preset.label}` : 'Select time range';\n }\n // For custom selection, show date and time range (no prefix)\n if (tempFromDateTime && tempToDateTime) {\n const fromDateStr = formatDateShort(tempFromDateTime);\n const fromTimeStr = formatTime12h(tempFromDateTime);\n const toDateStr = formatDateShort(tempToDateTime);\n const toTimeStr = formatTime12h(tempToDateTime);\n return `${fromDateStr} ${fromTimeStr} – ${toDateStr} ${toTimeStr}`;\n }\n return 'Select time range';\n });\n\n function formatDateShort(dt: CalendarDateTime): string {\n return new CalendarDate(dt.year, dt.month, dt.day)\n .toDate(getLocalTimeZone())\n .toLocaleDateString('en-US', { month: 'short', day: 'numeric' });\n }\n\n // YY/MM/DD format for compact display\n function formatDateCompact(dt: CalendarDateTime): string {\n const year = String(dt.year).slice(-2);\n const month = String(dt.month).padStart(2, '0');\n const day = String(dt.day).padStart(2, '0');\n return `${year}/${month}/${day}`;\n }\n\n // Format time as 12h with AM/PM\n function formatTime12h(dt: CalendarDateTime): string {\n const hours = dt.hour;\n const minutes = dt.minute;\n const period = hours >= 12 ? 'PM' : 'AM';\n const hours12 = hours % 12 || 12;\n return `${hours12}:${String(minutes).padStart(2, '0')} ${period}`;\n }\n\n function selectPreset(presetDef: TimeRangePreset) {\n selectedPreset = presetDef.value;\n preset = presetDef.value; // Sync with external prop\n showCustom = false;\n\n // Calculate the date range for this preset using Luxon\n const now = getNow(tz);\n const fromDt = now.minus({ minutes: presetDef.minutes });\n const fromParts = luxonToCalendarDateTime(fromDt);\n const toParts = luxonToCalendarDateTime(now);\n\n tempFromDateTime = new CalendarDateTime(\n fromParts.year,\n fromParts.month,\n fromParts.day,\n fromParts.hour,\n fromParts.minute,\n fromParts.second\n );\n tempToDateTime = new CalendarDateTime(\n toParts.year,\n toParts.month,\n toParts.day,\n toParts.hour,\n toParts.minute,\n toParts.second\n );\n\n applyAndClose();\n }\n\n function toggleCustom() {\n showCustom = !showCustom;\n if (showCustom) {\n selectedPreset = null;\n preset = null; // Sync with external prop\n }\n }\n\n function resetToNow() {\n const now = getNow(tz);\n const nowParts = luxonToCalendarDateTime(now);\n tempToDateTime = new CalendarDateTime(\n nowParts.year, nowParts.month, nowParts.day,\n nowParts.hour, nowParts.minute, nowParts.second\n );\n }\n\n function applyAndClose() {\n isApplyingInternally = true;\n\n fromDate = new CalendarDate(tempFromDateTime.year, tempFromDateTime.month, tempFromDateTime.day);\n toDate = new CalendarDate(tempToDateTime.year, tempToDateTime.month, tempToDateTime.day);\n fromTime = `${String(tempFromDateTime.hour).padStart(2, '0')}:${String(tempFromDateTime.minute).padStart(2, '0')}`;\n toTime = `${String(tempToDateTime.hour).padStart(2, '0')}:${String(tempToDateTime.minute).padStart(2, '0')}`;\n\n const currentPreset = showCustom ? null : selectedPreset;\n preset = currentPreset;\n onApply?.({ date: fromDate, time: fromTime }, { date: toDate, time: toTime }, currentPreset);\n\n setTimeout(() => { isApplyingInternally = false; }, 0);\n\n fromPickerOpen = false;\n toPickerOpen = false;\n isOpen = false;\n }\n\n function handleOpenChange(open: boolean) {\n if (open) {\n // Capture initial values when opening\n initialFromDateTime = new CalendarDateTime(\n tempFromDateTime.year, tempFromDateTime.month, tempFromDateTime.day,\n tempFromDateTime.hour, tempFromDateTime.minute, tempFromDateTime.second\n );\n initialToDateTime = new CalendarDateTime(\n tempToDateTime.year, tempToDateTime.month, tempToDateTime.day,\n tempToDateTime.hour, tempToDateTime.minute, tempToDateTime.second\n );\n } else {\n // Skip if already applied by applyAndClose (Apply button was clicked)\n if (isApplyingInternally) {\n isOpen = open;\n return;\n }\n\n // Apply if closed by clicking outside and values have changed\n const hasChanged = !initialFromDateTime || !initialToDateTime ||\n !dateTimesEqual(tempFromDateTime, initialFromDateTime) ||\n !dateTimesEqual(tempToDateTime, initialToDateTime);\n\n if (hasChanged) {\n applyAndClose();\n return; // applyAndClose handles setting isOpen\n }\n\n // No changes - just close\n fromPickerOpen = false;\n toPickerOpen = false;\n }\n isOpen = open;\n }\n\n function handleFromDateTimeChange(dt: CalendarDateTime) {\n tempFromDateTime = dt;\n }\n\n function handleToDateTimeChange(dt: CalendarDateTime) {\n tempToDateTime = dt;\n }\n</script>\n\n<Popover.Root bind:open={isOpen} onOpenChange={handleOpenChange}>\n <Popover.Trigger class=\"w-full\">\n <Button variant=\"outline\" class=\"h-9 justify-between gap-2 font-normal w-full\">\n <span class=\"flex items-center gap-2\">\n <Clock class=\"h-4 w-4 text-muted-foreground\" />\n <span class=\"truncate\">{displayLabel()}</span>\n </span>\n <ChevronDown class=\"h-4 w-4 text-muted-foreground\" />\n </Button>\n </Popover.Trigger>\n <Popover.Content class=\"w-auto p-0\" align=\"start\">\n <div class=\"flex\">\n <!-- Presets Column -->\n <div class=\"w-[140px] border-r py-2\">\n {#each presetGroups as group, groupIndex}\n {#if groupIndex > 0}\n <div class=\"my-1 border-t mx-2\"></div>\n {/if}\n {#each group.presets as preset}\n <button\n class=\"w-full px-3 py-1.5 text-left text-sm hover:bg-muted/50 flex items-center justify-between transition-colors {selectedPreset === preset.value && !showCustom ? 'bg-muted' : ''}\"\n onclick={() => selectPreset(preset)}\n >\n <span>{preset.label}</span>\n {#if selectedPreset === preset.value && !showCustom}\n <Check class=\"h-4 w-4 text-primary\" />\n {/if}\n </button>\n {/each}\n {/each}\n <div class=\"my-1 border-t mx-2\"></div>\n <button\n class=\"w-full px-3 py-1.5 text-left text-sm hover:bg-muted/50 flex items-center justify-between transition-colors {showCustom ? 'bg-muted' : ''}\"\n onclick={toggleCustom}\n >\n <span>Set custom</span>\n <ChevronRight class=\"h-4 w-4 text-muted-foreground\" />\n </button>\n </div>\n\n <!-- Custom Section -->\n {#if showCustom}\n <div class=\"p-5 min-w-[380px]\">\n <div class=\"flex items-center justify-between mb-3\">\n <span class=\"text-xs font-medium text-muted-foreground uppercase tracking-wide\">Custom</span>\n <button\n class=\"text-xs text-primary hover:underline\"\n onclick={resetToNow}\n >\n Reset to now\n </button>\n </div>\n\n <!-- Compact Date/Time Inputs Row -->\n <div class=\"flex items-center gap-2 mb-4\">\n <!-- From DateTime -->\n <Popover.Root bind:open={fromPickerOpen}>\n <Popover.Trigger>\n <button\n class=\"h-9 px-3 text-sm border rounded-md text-left hover:bg-muted/50 transition-colors flex items-center gap-2 {fromPickerOpen ? 'ring-2 ring-ring' : ''}\"\n >\n <span class=\"tabular-nums\">{formatDateCompact(tempFromDateTime)}</span>\n <span class=\"text-muted-foreground tabular-nums\">{formatTime12h(tempFromDateTime)}</span>\n </button>\n </Popover.Trigger>\n <Popover.Content class=\"w-auto p-0\" align=\"start\">\n <DateTimePicker\n value={tempFromDateTime}\n onValueChange={handleFromDateTimeChange}\n />\n </Popover.Content>\n </Popover.Root>\n\n <span class=\"text-muted-foreground text-xs\">–</span>\n\n <!-- To DateTime -->\n <Popover.Root bind:open={toPickerOpen}>\n <Popover.Trigger>\n <button\n class=\"h-9 px-3 text-sm border rounded-md text-left hover:bg-muted/50 transition-colors flex items-center gap-2 {toPickerOpen ? 'ring-2 ring-ring' : ''}\"\n >\n <span class=\"tabular-nums\">{formatDateCompact(tempToDateTime)}</span>\n <span class=\"text-muted-foreground tabular-nums\">{formatTime12h(tempToDateTime)}</span>\n </button>\n </Popover.Trigger>\n <Popover.Content class=\"w-auto p-0\" align=\"start\">\n <DateTimePicker\n value={tempToDateTime}\n onValueChange={handleToDateTimeChange}\n />\n </Popover.Content>\n </Popover.Root>\n </div>\n\n <!-- Apply button -->\n <div class=\"flex justify-end pt-2\">\n <Button size=\"sm\" onclick={applyAndClose}>\n Apply\n </Button>\n </div>\n </div>\n {/if}\n </div>\n </Popover.Content>\n</Popover.Root>\n","import { browser } from '$app/environment';\nimport { goto } from '$app/navigation';\nimport { CalendarDate } from '@internationalized/date';\nimport { DateTime } from 'luxon';\nimport { getNow, parseISO } from './formatters';\n\nexport const presetMinutes: Record<string, number> = {\n\t'5m': 5,\n\t'30m': 30,\n\t'60m': 60,\n\t'3h': 180,\n\t'6h': 360,\n\t'12h': 720,\n\t'24h': 1440,\n\t'3d': 4320,\n\t'7d': 10080,\n\t'1M': 43200,\n\t'3M': 129600\n};\n\nexport function getTimeRangeFromPreset(presetValue: string, timezone: string): { from: Date; to: Date } {\n\tconst minutes = presetMinutes[presetValue] || 360;\n\tconst now = getNow(timezone);\n\tconst from = now.minus({ minutes });\n\treturn { from: from.toJSDate(), to: now.toJSDate() };\n}\n\nexport function dateToCalendarDate(date: Date, timezone: string): CalendarDate {\n\tconst dt = DateTime.fromJSDate(date).setZone(timezone);\n\treturn new CalendarDate(dt.year, dt.month, dt.day);\n}\n\nexport function dateToTimeString(date: Date, timezone: string): string {\n\tconst dt = DateTime.fromJSDate(date).setZone(timezone);\n\treturn `${String(dt.hour).padStart(2, '0')}:${String(dt.minute).padStart(2, '0')}`;\n}\n\nexport type TimeRangeParams = {\n\tpreset: string | null;\n\tfrom: Date | null;\n\tto: Date | null;\n};\n\nexport function parseTimeRangeFromUrl(timezone: string, defaultPreset = '24h'): TimeRangeParams {\n\tif (!browser) return { preset: defaultPreset, from: null, to: null };\n\n\tconst params = new URLSearchParams(window.location.search);\n\tconst presetParam = params.get('preset');\n\tconst fromParam = params.get('from');\n\tconst toParam = params.get('to');\n\n\t// If preset is specified, use it\n\tif (presetParam && presetMinutes[presetParam]) {\n\t\treturn { preset: presetParam, from: null, to: null };\n\t}\n\n\t// If custom from/to specified\n\tif (fromParam && toParam) {\n\t\tconst fromDt = parseISO(fromParam, timezone);\n\t\tconst toDt = parseISO(toParam, timezone);\n\t\tif (fromDt.isValid && toDt.isValid) {\n\t\t\treturn { preset: null, from: fromDt.toJSDate(), to: toDt.toJSDate() };\n\t\t}\n\t}\n\n\t// Default to preset\n\treturn { preset: defaultPreset, from: null, to: null };\n}\n\nexport function getResolvedTimeRange(\n\tparams: TimeRangeParams,\n\ttimezone: string\n): { from: Date; to: Date } {\n\tif (params.preset) {\n\t\treturn getTimeRangeFromPreset(params.preset, timezone);\n\t}\n\treturn { from: params.from!, to: params.to! };\n}\n\nexport type UpdateUrlOptions = {\n\tpushToHistory?: boolean;\n};\n\nexport function updateUrl(\n\tparams: Record<string, string | null | undefined>,\n\toptions: UpdateUrlOptions = {}\n): void {\n\tif (!browser) return;\n\n\tconst { pushToHistory = false } = options;\n\tconst urlParams = new URLSearchParams();\n\n\tfor (const [key, value] of Object.entries(params)) {\n\t\tif (value != null && value !== '') {\n\t\t\turlParams.set(key, value);\n\t\t}\n\t}\n\n\tconst newUrl = `${window.location.pathname}?${urlParams.toString()}`;\n\n\t// eslint-disable-next-line svelte/no-navigation-without-resolve\n\tgoto(newUrl, {\n\t\treplaceState: !pushToHistory,\n\t\tnoScroll: true,\n\t\tkeepFocus: true\n\t});\n}\n"],"names":["$2b4dce13dd5a17fa$export$842a2cf37af977e1","amount","numerator","$3b62074eb05584b2$var$EPOCH","$3b62074eb05584b2$export$f297eb839006d339","era","year","month","day","$3b62074eb05584b2$export$c36e0ecb2d4fa69d","y1","monthOffset","$3b62074eb05584b2$export$553d7fa8e3805fc0","$3b62074eb05584b2$export$4475b7e617eb123c","$3b62074eb05584b2$var$daysInMonth","$3b62074eb05584b2$export$80ee6245ec4f29ec","jd","jd0","depoch","quadricent","dqc","cent","dcent","quad","dquad","yindex","extendedYear","yearDay","leapAdj","$35ea8db9cb2ccb90$export$99faa760c7908e4f","date","$2fe286d2fb449abb$export$7a5acbd77d414bd9","$14e0f24ef4ac5c92$export$ea39ec197993aef0","a","b","$11d87f3f76e88657$export$b4a036af3fc0b032","$14e0f24ef4ac5c92$export$a18c89cbd24170ff","$14e0f24ef4ac5c92$export$a5a3b454ada2268e","$14e0f24ef4ac5c92$export$5a8da0c44a3afdf2","$14e0f24ef4ac5c92$export$dbc69fd56b53d5e","_a_isEqual","_b_isEqual","_a_isEqual1","_ref","$14e0f24ef4ac5c92$export$629b0a497aa65267","timeZone","$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3","$14e0f24ef4ac5c92$export$2061056d06d7cdf7","locale","firstDayOfWeek","julian","weekStart","$14e0f24ef4ac5c92$var$getWeekStart","dayOfWeek","$14e0f24ef4ac5c92$export$461939dd4422153","$11d87f3f76e88657$export$1b96692a1ba042ac","$11d87f3f76e88657$export$93522d1a439f3617","$14e0f24ef4ac5c92$export$68781ddf31c0090f","$14e0f24ef4ac5c92$export$c19a80a9721b80f6","$14e0f24ef4ac5c92$var$timeToMs","$14e0f24ef4ac5c92$var$localTimeZone","$14e0f24ef4ac5c92$export$aa8b41735afcabd2","$14e0f24ef4ac5c92$export$a2258d9c4118825c","$14e0f24ef4ac5c92$var$cachedRegions","$14e0f24ef4ac5c92$var$cachedWeekInfo","$14e0f24ef4ac5c92$var$getRegion","region","part","weekInfo","localeInst","$11d87f3f76e88657$export$bd4fb2bc8bb06fb","$11d87f3f76e88657$var$epochFromParts","hour","minute","second","millisecond","$11d87f3f76e88657$export$59c99f3515d3493f","ms","$11d87f3f76e88657$var$getTimeZoneParts","$11d87f3f76e88657$var$formattersByTimeZone","formatter","parts","namedParts","$11d87f3f76e88657$var$DAYMILLIS","$11d87f3f76e88657$export$136f38efe7caf549","earlier","later","$11d87f3f76e88657$var$getValidWallTimes","absolute","$11d87f3f76e88657$var$isValidWallTime","$11d87f3f76e88657$export$5107c82f94518f5c","disambiguation","dateTime","$11d87f3f76e88657$export$b21e0b124e224484","offsetBefore","offsetAfter","valid","$11d87f3f76e88657$export$e67a095c620b86fe","offset","$35ea8db9cb2ccb90$export$d3b7288e7994edea","time","$35ea8db9cb2ccb90$export$ca871e8dbb80966f","calendar","calendarDate","copy","$735220c2d4774dd3$export$c4e2ecac49351ef2","$11d87f3f76e88657$export$84c95a83c799e074","$11d87f3f76e88657$export$538b00033cc11c75","$11d87f3f76e88657$export$83aac07b4c37b25","$735220c2d4774dd3$var$ONE_HOUR","$735220c2d4774dd3$export$e16d8520af44a096","duration","mutableDate","days","$735220c2d4774dd3$var$addTimeFields","$735220c2d4774dd3$var$addYears","$735220c2d4774dd3$var$balanceYearMonth","$735220c2d4774dd3$var$constrainMonthDay","$735220c2d4774dd3$var$balanceDay","maxYear","_mutableDate_calendar_isInverseEra","_mutableDate_calendar","isInverseEra","maxMonth","years","_date_calendar_isInverseEra","_date_calendar","monthsInYear","$735220c2d4774dd3$export$3e2544e88a25bff8","inverseDuration","key","$735220c2d4774dd3$export$4e2d2ead65e5f7e3","$735220c2d4774dd3$export$adaa4cf7ef1b65be","fields","$735220c2d4774dd3$export$e5d5e1c1822b6e56","value","mutableValue","$735220c2d4774dd3$export$7555de1e070510cb","$735220c2d4774dd3$var$balanceTime","$735220c2d4774dd3$var$nonNegativeMod","result","$735220c2d4774dd3$export$d52ced6badfb9a4c","field","options","mutable","eras","eraIndex","$735220c2d4774dd3$var$cycleValue","_mutable_calendar_isInverseEra","_mutable_calendar","$735220c2d4774dd3$export$dd02b3e0007dfe28","hours","min","max","isPM","round","div","$735220c2d4774dd3$export$96b1d28349274637","res","$735220c2d4774dd3$export$6814caac34ca03c7","$735220c2d4774dd3$export$9a297d111fc86b79","plainDateTime","minDate","minAbsolute","maxDate","maxAbsolute","remainder","$735220c2d4774dd3$export$31b5430eb18be4f8","$fae977aafc393c5c$var$DATE_RE","$fae977aafc393c5c$var$DATE_TIME_RE","$fae977aafc393c5c$var$ZONED_DATE_TIME_RE","$fae977aafc393c5c$var$ABSOLUTE_RE","$fae977aafc393c5c$export$6b862160d295c8e","m","$fae977aafc393c5c$var$parseNumber","$fae977aafc393c5c$export$588937bcd60ade55","$fae977aafc393c5c$export$fd7893f06e92a6a4","hourOffset","_m_","_m_1","$fae977aafc393c5c$var$offsetToString","$fae977aafc393c5c$export$4223de14708adc63","val","$fae977aafc393c5c$export$f59dee82248f5ad4","$fae977aafc393c5c$export$60dfd74aa96791bd","gregorianDate","sign","offsetHours","offsetMinutes","offsetSeconds","stringOffset","$fae977aafc393c5c$export$bf79f1ebf4b18792","_check_private_redeclaration","obj","privateCollection","_class_private_field_init","privateMap","$35ea8db9cb2ccb90$var$shiftArgs","args","$35ea8db9cb2ccb90$var$_type","$aksy1$_","$35ea8db9cb2ccb90$var$_type2","$35ea8db9cb2ccb90$var$_type3","$fb18d541ea1ad717$var$formatterCache","$fb18d541ea1ad717$export$ad991b66133851cf","start","end","startParts","endParts","p","resolvedOptions","$fb18d541ea1ad717$var$hasBuggyResolvedHourCycle","$fb18d541ea1ad717$var$getResolvedHourCycle","$fb18d541ea1ad717$var$getCachedDateFormatter","$fb18d541ea1ad717$var$hour12Preferences","$fb18d541ea1ad717$var$hasBuggyHour12Behavior","pref","defaultHourCycle","cacheKey","numberFormatter","$fb18d541ea1ad717$var$_hasBuggyHour12Behavior","$fb18d541ea1ad717$var$_hasBuggyResolvedHourCycle","initAnnouncer","doc","isBrowser","el","createLog","kind","log","isHTMLElement","srOnlyStylesString","getAnnouncer","announcer","announce","timeout","content","defaultDateDefaults","getDefaultDate","opts","withDefaults","defaultValue","granularity","minValue","maxValue","getLocalTimeZone","CalendarDateTime","CalendarDate","parseStringToDateValue","dateStr","referenceVal","dateValue","ZonedDateTime","parseZonedDateTime","parseDateTime","parseDate","toCalendar","toDate","tz","getDateValueType","parseAnyDateValue","type","isCalendarDateTime","isZonedDateTime","hasTime","getDaysInMonth","isBefore","dateToCompare","referenceDate","isAfter","getLastFirstDayOfWeek","getDayOfWeek","getNextLastDayOfWeek","lastDayOfWeek","defaultPartOptions","createFormatter","setLocale","newLocale","getLocale","custom","DateFormatter","selectedDate","includeTime","fullMonthAndYear","formattedMonth","formattedYear","fullMonth","fullYear","toParts","length","dayPeriod","hourCycle","dateObj","isCalendarDayNode","node","getDaysBetween","dCurrent","dEnd","createMonth","props","weekStartsOn","fixedWeeks","daysInMonth","datesArray","_","i","firstDayOfMonth","startOfMonth","lastDayOfMonth","endOfMonth","lastSunday","nextSaturday","lastMonthDays","nextMonthDays","totalDays","extraDays","startFrom","extraDaysArray","incr","allDays","weeks","chunk","createMonths","numberOfMonths","monthProps","months","nextMonth","getSelectableCells","calendarNode","setPlaceholderToNodeValue","placeholder","cellValue","shiftCalendarFocus","add","isPrevButtonDisabled","isNextButtonDisabled","candidateCells","nextIndex","isValidIndex","nextCell","firstMonth","afterTick","newCandidateCells","newIndex","newCell","ARROW_KEYS","kbd.ARROW_DOWN","kbd.ARROW_UP","kbd.ARROW_LEFT","kbd.ARROW_RIGHT","SELECT_KEYS","kbd.ENTER","kbd.SPACE","handleCalendarKeydown","event","handleCellClick","shiftFocus","placeholderValue","currentCell","kbdFocusMap","handleCalendarNextPage","setMonths","pagedNavigation","setPlaceholder","targetDate","newMonths","handleCalendarPrevPage","getWeekdays","weekdayFormat","firstWeek","useMonthViewOptionsSync","$.user_effect","untrack","defaultMonthProps","createAccessibleHeading","label","accessibleHeadingId","getDocument","styleToString","h2","useMonthViewPlaceholderSync","getVisibleMonths","isSameMonth","getIsNextButtonDisabled","disabled","lastMonthInView","firstMonthOfNextPage","getIsPrevButtonDisabled","firstMonthInView","lastMonthOfPrevPage","getCalendarHeadingValue","startMonth","endMonth","startMonthName","endMonthName","startMonthYear","endMonthYear","getCalendarElementProps","fullCalendarLabel","id","isInvalid","readonly","boolToEmptyStrOrUndef","getFirstNonDisabledDateInView","calendarRef","daysInView","element","useEnsureNonDisabledPlaceholder","ref","defaultPlaceholder","isDateDisabled","isDisabled","watch","isSameDay","getDateWithPreviousTime","prev","calendarAttrs","createBitsAttrs","getDefaultYears","currentYear","latestYear","minYear","initialMinYear","totalYears","CalendarRootContext","Context","CalendarRootState","useId","$.state","$.proxy","attachRef","DOMContext","onMount","lastValue","#setupInitialFocusEffect","firstFocusedDay","#setupAccessibleHeadingEffect","#setupFormatterEffect","$.user_pre_effect","isDateUnavailable","d","selectedDates","selectedCount","next","newSelection","index","preventDeselect","#isMultipleSelectionValid","CalendarCellContext","CalendarCellState","#cellDate","$.derived","#isUnavailable","isToday","#isOutsideMonth","#isFocusedDate","root","boolToStr","CalendarDayState","cell","#tabindex","$.get","CalendarNextButtonState","CalendarPrevButtonState","CalendarGridState","CalendarGridBodyState","CalendarGridHeadState","CalendarGridRowState","CalendarHeadCellState","CalendarHeaderState","CalendarMonthSelectState","monthNumbers","monthFormat","#isDisabled","target","CalendarYearSelectState","yearFormat","localYears","$.prop","$$props","onValueChange","noop","onPlaceholderChange","calendarLabel","disableDaysOutsideMonth","initialFocus","restProps","$.rest_props","handleDefaultPlaceholder","handleDefaultValue","rootState","boxWith","v","resolveLocaleProp","mergedProps","mergeProps","$0","root_2","$.attribute_effect","$.snippet","node_2","$.noop","uid","$.props_id","createId","dayState","node_3","gridState","node_1","table","gridBodyState","tbody","cellState","td","gridHeadState","thead","headCellState","th","gridRowState","tr","headerState","header","ariaLabel","monthSelectState","select","$$anchor","option","root_5","text","$.child","$.reset","$.set_selected","$.set_text","option_value","$.append","tabindex","nextButtonState","button","prevButtonState","yearSelectState","iconNode","Icon","buttonVariant","captionLayout","children","$$arg0","weekdays","Calendar_Months","Calendar_Nav","Calendar_PrevButton","Calendar_NextButton","$.each","node_5","monthIndex","Calendar_Month","Calendar_Header","Calendar_Caption","$$value","Calendar_Grid","Calendar_GridHead","Calendar_GridRow","node_12","weekday","Calendar_HeadCell","$.template_effect","Calendar_GridBody","node_15","weekDates","Calendar_GridRow_1","node_17","Calendar_Cell","isEqualMonth","Calendar_Day","cn","CalendarPrimitive_Root","$.spread_props","CalendarPrimitive_Cell","buttonVariants","CalendarPrimitive_Day","CalendarPrimitive_Grid","CalendarPrimitive_Header","CalendarPrimitive_GridRow","CalendarPrimitive_GridBody","CalendarPrimitive_GridHead","CalendarPrimitive_HeadCell","Fallback","ChevronRightIcon","variant","CalendarPrimitive_NextButton","ChevronLeftIcon","CalendarPrimitive_PrevButton","span","child","monthItems","selectedMonthItem","$.first_child","fragment","monthItem","span_1","$.sibling","text_1","ChevronDownIcon","item","CalendarPrimitive_MonthSelect","$.set_class","$.clsx","yearItems","selectedYearItem","yearItem","CalendarPrimitive_YearSelect","nav","MonthSelect","CalendarMonthSelect","e","newPlaceholder","YearSelect","CalendarYearSelect","formatYear","formatMonth","node_4","$$render","consequent_1","consequent_3","node_8","consequent_4","alternate","consequent_2","alternate_1","consequent","alternate_2","minutes","seconds","period","hour24","$.set","handleDateChange","newDate","updateDateTime","now","today","handleHoursInput","input","handleMinutesInput","handlePeriodChange","newPeriod","incrementHours","decrementHours","incrementMinutes","decrementMinutes","incrementSeconds","decrementSeconds","handleKeyDown","calendarValue","Calendar","div_1","div_2","div_3","input_1","$.remove_input_defaults","$.set_attribute","div_4","input_2","div_5","input_3","div_6","Select_Root","Select_Trigger","Select_Content","Select_Item","Select_Item_1","$.set_value","$1","$2","$3","fromDate","fromTime","toTime","preset","getTimezone","presetGroups","isOpen","showCustom","selectedPreset","isApplyingInternally","presetDef","g","getNow","fromDt","fromParts","luxonToCalendarDateTime","tempFromDateTime","tempToDateTime","lastFromDate","lastToDate","lastFromTime","lastToTime","fromDateChanged","toDateChanged","fromTimeChanged","toTimeChanged","fromHour","fromMinute","toHour","toMinute","fromPickerOpen","toPickerOpen","parseInitialTime","timeStr","fallbackHour","fallbackMinute","initialFromTimeParts","initialToTimeParts","initialFromDateTime","initialToDateTime","dateTimesEqual","displayLabel","fromDateStr","formatDateShort","fromTimeStr","formatTime12h","toDateStr","toTimeStr","dt","formatDateCompact","selectPreset","applyAndClose","toggleCustom","resetToNow","nowParts","currentPreset","handleOpenChange","open","handleFromDateTimeChange","handleToDateTimeChange","Popover_Root","Popover_Trigger","Button","fragment_3","Clock","ChevronDown","Popover_Content","root_4","group","groupIndex","root_6","$.index","$$index","$$array","root_7","span_2","Check","button_1","node_9","ChevronRight","root_9","button_2","Popover_Root_1","Popover_Trigger_1","button_3","root_11","span_3","span_4","Popover_Content_1","DateTimePicker","Popover_Root_2","Popover_Trigger_2","button_4","root_14","span_5","span_6","Popover_Content_2","presetMinutes","getTimeRangeFromPreset","presetValue","timezone","dateToCalendarDate","DateTime","dateToTimeString","parseTimeRangeFromUrl","defaultPreset","params","presetParam","fromParam","toParam","parseISO","toDt","getResolvedTimeRange","updateUrl","pushToHistory","urlParams","newUrl","goto"],"mappings":"smCAUI,SAASA,GAA0CC,EAAQC,EAAW,CACtE,OAAOD,EAASC,EAAY,KAAK,MAAMD,EAASC,CAAS,CAC7D,CCKA,MAAMC,GAA8B,QACpC,SAASC,GAA0CC,EAAKC,EAAMC,EAAOC,EAAK,CACtEF,EAAOG,GAA0CJ,EAAKC,CAAI,EAC1D,IAAII,EAAKJ,EAAO,EACZK,EAAc,GAClB,OAAIJ,GAAS,EAAGI,EAAc,EACrBC,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lEE,GAAKD,EAAQ,CACZ,aAAc,CAACF,EACf,SAAU,GACV,UAAW,EAAA,CACX,CACF","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/DJdWGDax.js b/backend/static/frontend/_app/immutable/chunks/Dq-0lVru.js
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/DJdWGDax.js
rename to backend/static/frontend/_app/immutable/chunks/Dq-0lVru.js
index 196ecc82..8b68a7d5 100644
--- a/backend/static/frontend/_app/immutable/chunks/DJdWGDax.js
+++ b/backend/static/frontend/_app/immutable/chunks/Dq-0lVru.js
@@ -1,2 +1,2 @@
-import{p as jn,b as Bn}from"./D6S6XYVy.js";class G extends Error{}class Qn extends G{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Kn extends G{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Xn extends G{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Q extends G{}class qt extends G{constructor(e){super(`Invalid unit ${e}`)}}class M extends G{}class A extends G{constructor(){super("Zone is an abstract class")}}const c="numeric",L="short",E="long",Ee={year:c,month:c,day:c},Ht={year:c,month:L,day:c},er={year:c,month:L,day:c,weekday:L},Yt={year:c,month:E,day:c},Pt={year:c,month:E,day:c,weekday:E},Gt={hour:c,minute:c},_t={hour:c,minute:c,second:c},Jt={hour:c,minute:c,second:c,timeZoneName:L},jt={hour:c,minute:c,second:c,timeZoneName:E},Bt={hour:c,minute:c,hourCycle:"h23"},Qt={hour:c,minute:c,second:c,hourCycle:"h23"},Kt={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:L},Xt={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:E},en={year:c,month:c,day:c,hour:c,minute:c},tn={year:c,month:c,day:c,hour:c,minute:c,second:c},nn={year:c,month:L,day:c,hour:c,minute:c},rn={year:c,month:L,day:c,hour:c,minute:c,second:c},tr={year:c,month:L,day:c,weekday:L,hour:c,minute:c},sn={year:c,month:E,day:c,hour:c,minute:c,timeZoneName:L},an={year:c,month:E,day:c,hour:c,minute:c,second:c,timeZoneName:L},on={year:c,month:E,day:c,weekday:E,hour:c,minute:c,timeZoneName:E},un={year:c,month:E,day:c,weekday:E,hour:c,minute:c,second:c,timeZoneName:E};class me{get type(){throw new A}get name(){throw new A}get ianaName(){return this.name}get isUniversal(){throw new A}offsetName(e,n){throw new A}formatOffset(e,n){throw new A}offset(e){throw new A}equals(e){throw new A}get isValid(){throw new A}}let $e=null;class be extends me{static get instance(){return $e===null&&($e=new be),$e}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return kn(e,n,r)}formatOffset(e,n){return de(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const Pe=new Map;function nr(t){let e=Pe.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Pe.set(t,e)),e}const rr={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function sr(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,a,o,u,l,d]=r;return[a,s,i,o,u,l,d]}function ir(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s<n.length;s++){const{type:i,value:a}=n[s],o=rr[i];i==="era"?r[o]=a:m(o)||(r[o]=parseInt(a,10))}return r}const Ze=new Map;class z extends me{static create(e){let n=Ze.get(e);return n===void 0&&Ze.set(e,n=new z(e)),n}static resetCache(){Ze.clear(),Pe.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=z.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return kn(e,n,r,this.name)}formatOffset(e,n){return de(this.offset(e),n)}offset(e){if(!this.valid)return NaN;const n=new Date(e);if(isNaN(n))return NaN;const r=nr(this.name);let[s,i,a,o,u,l,d]=r.formatToParts?ir(r,n):sr(r,n);o==="BC"&&(s=-Math.abs(s)+1);const k=Ce({year:s,month:i,day:a,hour:u===24?0:u,minute:l,second:d,millisecond:0});let h=+n;const p=h%1e3;return h-=p>=0?p:1e3+p,(k-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let dt={};function ar(t,e={}){const n=JSON.stringify([t,e]);let r=dt[n];return r||(r=new Intl.ListFormat(t,e),dt[n]=r),r}const Ge=new Map;function _e(t,e={}){const n=JSON.stringify([t,e]);let r=Ge.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(t,e),Ge.set(n,r)),r}const Je=new Map;function or(t,e={}){const n=JSON.stringify([t,e]);let r=Je.get(n);return r===void 0&&(r=new Intl.NumberFormat(t,e),Je.set(n,r)),r}const je=new Map;function ur(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=je.get(s);return i===void 0&&(i=new Intl.RelativeTimeFormat(t,e),je.set(s,i)),i}let le=null;function lr(){return le||(le=new Intl.DateTimeFormat().resolvedOptions().locale,le)}const Be=new Map;function ln(t){let e=Be.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Be.set(t,e)),e}const Qe=new Map;function cr(t){let e=Qe.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...cn,...e}),Qe.set(t,e)}return e}function fr(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,s;try{r=_e(t).resolvedOptions(),s=t}catch{const u=t.substring(0,n);r=_e(u).resolvedOptions(),s=u}const{numberingSystem:i,calendar:a}=r;return[s,i,a]}}function dr(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function hr(t){const e=[];for(let n=1;n<=12;n++){const r=f.utc(2009,n,1);e.push(t(r))}return e}function mr(t){const e=[];for(let n=1;n<=7;n++){const r=f.utc(2016,11,13+n);e.push(t(r))}return e}function ke(t,e,n,r){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):r(e)}function yr(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||ln(t.locale).numberingSystem==="latn"}class gr{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const o={useGrouping:!1,...r};r.padTo>0&&(o.minimumIntegerDigits=r.padTo),this.inf=or(e,o)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):at(e,3);return v(n,this.padTo)}}}class wr{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&z.create(o).valid?(s=o,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=_e(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Tr{constructor(e,n,r){this.opts={style:"long",...r},!n&&wn()&&(this.rtf=ur(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):Ur(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const cn={firstDay:1,minimalDays:4,weekend:[6,7]};class T{static fromOpts(e){return T.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,s,i=!1){const a=e||O.defaultLocale,o=a||(i?"en-US":lr()),u=n||O.defaultNumberingSystem,l=r||O.defaultOutputCalendar,d=Xe(s)||O.defaultWeekSettings;return new T(o,u,l,d,a)}static resetCache(){le=null,Ge.clear(),Je.clear(),je.clear(),Be.clear(),Qe.clear()}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:s}={}){return T.create(e,n,r,s)}constructor(e,n,r,s,i){const[a,o,u]=fr(e);this.locale=a,this.numberingSystem=n||o||null,this.outputCalendar=r||u||null,this.weekSettings=s,this.intl=dr(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=yr(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:T.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Xe(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return ke(this,e,pn,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const s=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";if(!this.monthsCache[i][e]){const a=r?o=>this.dtFormatter(o,s).format():o=>this.extract(o,s,"month");this.monthsCache[i][e]=hr(a)}return this.monthsCache[i][e]})}weekdays(e,n=!1){return ke(this,e,Nn,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=mr(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return ke(this,void 0,()=>In,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[f.utc(2016,11,13,9),f.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ke(this,e,En,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[f.utc(-40,1,1),f.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const s=this.dtFormatter(e,n),i=s.formatToParts(),a=i.find(o=>o.type.toLowerCase()===r);return a?a.value:null}numberFormatter(e={}){return new gr(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new wr(e,this.intl,n)}relFormatter(e={}){return new Tr(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ar(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||ln(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Tn()?cr(this.locale):cn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let ze=null;class I extends me{static get utcInstance(){return ze===null&&(ze=new I(0)),ze}static instance(e){return e===0?I.utcInstance:new I(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new I(We(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${de(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${de(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return de(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class kr extends me{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function R(t,e){if(m(t)||t===null)return e;if(t instanceof me)return t;if(Nr(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?be.instance:n==="utc"||n==="gmt"?I.utcInstance:I.parseSpecifier(n)||z.create(t)}else return q(t)?I.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new kr(t)}const nt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ht={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Sr=nt.hanidec.replace(/[\[|\]]/g,"").split("");function Or(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(nt.hanidec)!==-1)e+=Sr.indexOf(t[n]);else for(const s in ht){const[i,a]=ht[s];r>=i&&r<=a&&(e+=r-i)}}return parseInt(e,10)}else return e}const Ke=new Map;function pr(){Ke.clear()}function V({numberingSystem:t},e=""){const n=t||"latn";let r=Ke.get(n);r===void 0&&(r=new Map,Ke.set(n,r));let s=r.get(e);return s===void 0&&(s=new RegExp(`${nt[n]}${e}`),r.set(e,s)),s}let mt=()=>Date.now(),yt="system",gt=null,wt=null,Tt=null,kt=60,St,Ot=null;class O{static get now(){return mt}static set now(e){mt=e}static set defaultZone(e){yt=e}static get defaultZone(){return R(yt,be.instance)}static get defaultLocale(){return gt}static set defaultLocale(e){gt=e}static get defaultNumberingSystem(){return wt}static set defaultNumberingSystem(e){wt=e}static get defaultOutputCalendar(){return Tt}static set defaultOutputCalendar(e){Tt=e}static get defaultWeekSettings(){return Ot}static set defaultWeekSettings(e){Ot=Xe(e)}static get twoDigitCutoffYear(){return kt}static set twoDigitCutoffYear(e){kt=e%100}static get throwOnInvalid(){return St}static set throwOnInvalid(e){St=e}static resetCaches(){T.resetCache(),z.resetCache(),f.resetCache(),pr()}}class W{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const fn=[0,31,59,90,120,151,181,212,243,273,304,334],dn=[0,31,60,91,121,152,182,213,244,274,305,335];function x(t,e){return new W("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function rt(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function hn(t,e,n){return n+(ye(t)?dn:fn)[e-1]}function mn(t,e){const n=ye(t)?dn:fn,r=n.findIndex(i=>i<e),s=e-n[r];return{month:r+1,day:s}}function st(t,e){return(t-e+7)%7+1}function De(t,e=4,n=1){const{year:r,month:s,day:i}=t,a=hn(r,s,i),o=st(rt(r,s,i),n);let u=Math.floor((a-o+14-e)/7),l;return u<1?(l=r-1,u=he(l,e,n)):u>he(r,e,n)?(l=r+1,u=1):l=r,{weekYear:l,weekNumber:u,weekday:o,...Le(t)}}function pt(t,e=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=t,a=st(rt(r,1,e),n),o=K(r);let u=s*7+i-a-7+e,l;u<1?(l=r-1,u+=K(l)):u>o?(l=r+1,u-=K(r)):l=r;const{month:d,day:y}=mn(l,u);return{year:l,month:d,day:y,...Le(t)}}function Ae(t){const{year:e,month:n,day:r}=t,s=hn(e,n,r);return{year:e,ordinal:s,...Le(t)}}function vt(t){const{year:e,ordinal:n}=t,{month:r,day:s}=mn(e,n);return{year:e,month:r,day:s,...Le(t)}}function Mt(t,e){if(!m(t.localWeekday)||!m(t.localWeekNumber)||!m(t.localWeekYear)){if(!m(t.weekday)||!m(t.weekNumber)||!m(t.weekYear))throw new Q("Cannot mix locale-based week fields with ISO-based week fields");return m(t.localWeekday)||(t.weekday=t.localWeekday),m(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),m(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function vr(t,e=4,n=1){const r=Ve(t.weekYear),s=F(t.weekNumber,1,he(t.weekYear,e,n)),i=F(t.weekday,1,7);return r?s?i?!1:x("weekday",t.weekday):x("week",t.weekNumber):x("weekYear",t.weekYear)}function Mr(t){const e=Ve(t.year),n=F(t.ordinal,1,K(t.year));return e?n?!1:x("ordinal",t.ordinal):x("year",t.year)}function yn(t){const e=Ve(t.year),n=F(t.month,1,12),r=F(t.day,1,xe(t.year,t.month));return e?n?r?!1:x("day",t.day):x("month",t.month):x("year",t.year)}function gn(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=F(e,0,23)||e===24&&n===0&&r===0&&s===0,a=F(n,0,59),o=F(r,0,59),u=F(s,0,999);return i?a?o?u?!1:x("millisecond",s):x("second",r):x("minute",n):x("hour",e)}function m(t){return typeof t>"u"}function q(t){return typeof t=="number"}function Ve(t){return typeof t=="number"&&t%1===0}function Nr(t){return typeof t=="string"}function Ir(t){return Object.prototype.toString.call(t)==="[object Date]"}function wn(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Tn(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Er(t){return Array.isArray(t)?t:[t]}function Nt(t,e,n){if(t.length!==0)return t.reduce((r,s)=>{const i=[e(s),s];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function Dr(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function ee(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Xe(t){if(t==null)return null;if(typeof t!="object")throw new M("Week settings must be an object");if(!F(t.firstDay,1,7)||!F(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!F(e,1,7)))throw new M("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function F(t,e,n){return Ve(t)&&t>=e&&t<=n}function xr(t,e){return t-e*Math.floor(t/e)}function v(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function U(t){if(!(m(t)||t===null||t===""))return parseInt(t,10)}function H(t){if(!(m(t)||t===null||t===""))return parseFloat(t)}function it(t){if(!(m(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function at(t,e,n="round"){const r=10**e;switch(n){case"expand":return t>0?Math.ceil(t*r)/r:Math.floor(t*r)/r;case"trunc":return Math.trunc(t*r)/r;case"round":return Math.round(t*r)/r;case"floor":return Math.floor(t*r)/r;case"ceil":return Math.ceil(t*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function ye(t){return t%4===0&&(t%100!==0||t%400===0)}function K(t){return ye(t)?366:365}function xe(t,e){const n=xr(e-1,12)+1,r=t+(e-n)/12;return n===2?ye(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Ce(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function It(t,e,n){return-st(rt(t,1,e),n)+e-1}function he(t,e=4,n=1){const r=It(t,e,n),s=It(t+1,e,n);return(K(t)-r+s)/7}function et(t){return t>99?t:t>O.twoDigitCutoffYear?1900+t:2e3+t}function kn(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}function We(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function Sn(t){const e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new M(`Invalid unit value ${t}`);return e}function Fe(t,e){const n={};for(const r in t)if(ee(t,r)){const s=t[r];if(s==null)continue;n[e(r)]=Sn(s)}return n}function de(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${v(n,2)}:${v(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${v(n,2)}${v(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Le(t){return Dr(t,["hour","minute","second","millisecond"])}const Fr=["January","February","March","April","May","June","July","August","September","October","November","December"],On=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],br=["J","F","M","A","M","J","J","A","S","O","N","D"];function pn(t){switch(t){case"narrow":return[...br];case"short":return[...On];case"long":return[...Fr];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const vn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Mn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Vr=["M","T","W","T","F","S","S"];function Nn(t){switch(t){case"narrow":return[...Vr];case"short":return[...Mn];case"long":return[...vn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const In=["AM","PM"],Cr=["Before Christ","Anno Domini"],Wr=["BC","AD"],Lr=["B","A"];function En(t){switch(t){case"narrow":return[...Lr];case"short":return[...Wr];case"long":return[...Cr];default:return null}}function $r(t){return In[t.hour<12?0:1]}function Zr(t,e){return Nn(e)[t.weekday-1]}function zr(t,e){return pn(e)[t.month-1]}function Ar(t,e){return En(e)[t.year<0?0:1]}function Ur(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const y=t==="days";switch(e){case 1:return y?"tomorrow":`next ${s[t][0]}`;case-1:return y?"yesterday":`last ${s[t][0]}`;case 0:return y?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,l=s[t],d=r?u?l[1]:l[2]||l[1]:u?s[t][0]:t;return a?`${o} ${d} ago`:`in ${o} ${d}`}function Et(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const Rr={D:Ee,DD:Ht,DDD:Yt,DDDD:Pt,t:Gt,tt:_t,ttt:Jt,tttt:jt,T:Bt,TT:Qt,TTT:Kt,TTTT:Xt,f:en,ff:nn,fff:sn,ffff:on,F:tn,FF:rn,FFF:an,FFFF:un};class N{static create(e,n={}){return new N(e,n)}static parseFormat(e){let n=null,r="",s=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);o==="'"?((r.length>0||s)&&i.push({literal:s||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",s=!s):s||o===n?r+=o:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=o,n=o)}return r.length>0&&i.push({literal:s||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return Rr[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0,r=void 0){if(this.opts.forceSimple)return v(e,n);const s={...this.opts};return n>0&&(s.padTo=n),r&&(s.signDisplay=r),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,p)=>this.loc.extract(e,h,p),a=h=>e.isOffsetFixed&&e.offset===0&&h.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,h.format):"",o=()=>r?$r(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(h,p)=>r?zr(e,h):i(p?{month:h}:{month:h,day:"numeric"},"month"),l=(h,p)=>r?Zr(e,h):i(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),d=h=>{const p=N.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(e,p):h},y=h=>r?Ar(e,h):i({era:h},"era"),k=h=>{switch(h){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return y("short");case"GG":return y("long");case"GGGGG":return y("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(h)}};return Et(N.parseFormat(n),k)}formatDurationFromString(e,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,s=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(d,y)=>k=>{const h=s(k);if(h){const p=y.isNegativeDuration&&h!==y.largestUnit?r:1;let b;return this.opts.signMode==="negativeLargestOnly"&&h!==y.largestUnit?b="never":this.opts.signMode==="all"?b="always":b="auto",this.num(d.get(h)*p,k.length,b)}else return k},a=N.parseFormat(n),o=a.reduce((d,{literal:y,val:k})=>y?d:d.concat(k),[]),u=e.shiftTo(...o.map(s).filter(d=>d)),l={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return Et(a,i(u,l))}}const Dn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function te(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function ne(...t){return e=>t.reduce(([n,r,s],i)=>{const[a,o,u]=i(e,s);return[{...n,...a},o||r,u]},[{},null,1]).slice(0,2)}function re(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const s=n.exec(t);if(s)return r(s)}return[null,null]}function xn(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=U(e[n+s]);return[r,null,n+s]}}const Fn=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,qr=`(?:${Fn.source}?(?:\\[(${Dn.source})\\])?)?`,ot=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,bn=RegExp(`${ot.source}${qr}`),ut=RegExp(`(?:[Tt]${bn.source})?`),Hr=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Yr=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Pr=/(\d{4})-?(\d{3})/,Gr=xn("weekYear","weekNumber","weekDay"),_r=xn("year","ordinal"),Jr=/(\d{4})-(\d\d)-(\d\d)/,Vn=RegExp(`${ot.source} ?(?:${Fn.source}|(${Dn.source}))?`),jr=RegExp(`(?: ${Vn.source})?`);function X(t,e,n){const r=t[e];return m(r)?n:U(r)}function Br(t,e){return[{year:X(t,e),month:X(t,e+1,1),day:X(t,e+2,1)},null,e+3]}function se(t,e){return[{hours:X(t,e,0),minutes:X(t,e+1,0),seconds:X(t,e+2,0),milliseconds:it(t[e+3])},null,e+4]}function ge(t,e){const n=!t[e]&&!t[e+1],r=We(t[e+1],t[e+2]),s=n?null:I.instance(r);return[{},s,e+3]}function we(t,e){const n=t[e]?z.create(t[e]):null;return[{},n,e+1]}const Qr=RegExp(`^T?${ot.source}$`),Kr=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Xr(t){const[e,n,r,s,i,a,o,u,l]=t,d=e[0]==="-",y=u&&u[0]==="-",k=(h,p=!1)=>h!==void 0&&(p||h&&d)?-h:h;return[{years:k(H(n)),months:k(H(r)),weeks:k(H(s)),days:k(H(i)),hours:k(H(a)),minutes:k(H(o)),seconds:k(H(u),u==="-0"),milliseconds:k(it(l),y)}]}const es={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function lt(t,e,n,r,s,i,a){const o={year:e.length===2?et(U(e)):U(e),month:On.indexOf(n)+1,day:U(r),hour:U(s),minute:U(i)};return a&&(o.second=U(a)),t&&(o.weekday=t.length>3?vn.indexOf(t)+1:Mn.indexOf(t)+1),o}const ts=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ns(t){const[,e,n,r,s,i,a,o,u,l,d,y]=t,k=lt(e,s,r,n,i,a,o);let h;return u?h=es[u]:l?h=0:h=We(d,y),[k,new I(h)]}function rs(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ss=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,is=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,as=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Dt(t){const[,e,n,r,s,i,a,o]=t;return[lt(e,s,r,n,i,a,o),I.utcInstance]}function os(t){const[,e,n,r,s,i,a,o]=t;return[lt(e,o,n,r,s,i,a),I.utcInstance]}const us=te(Hr,ut),ls=te(Yr,ut),cs=te(Pr,ut),fs=te(bn),Cn=ne(Br,se,ge,we),ds=ne(Gr,se,ge,we),hs=ne(_r,se,ge,we),ms=ne(se,ge,we);function ys(t){return re(t,[us,Cn],[ls,ds],[cs,hs],[fs,ms])}function gs(t){return re(rs(t),[ts,ns])}function ws(t){return re(t,[ss,Dt],[is,Dt],[as,os])}function Ts(t){return re(t,[Kr,Xr])}const ks=ne(se);function Ss(t){return re(t,[Qr,ks])}const Os=te(Jr,jr),ps=te(Vn),vs=ne(se,ge,we);function Ms(t){return re(t,[Os,Cn],[ps,vs])}const xt="Invalid Duration",Wn={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Ns={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Wn},D=146097/400,J=146097/4800,Is={years:{quarters:4,months:12,weeks:D/7,days:D,hours:D*24,minutes:D*24*60,seconds:D*24*60*60,milliseconds:D*24*60*60*1e3},quarters:{months:3,weeks:D/28,days:D/4,hours:D*24/4,minutes:D*24*60/4,seconds:D*24*60*60/4,milliseconds:D*24*60*60*1e3/4},months:{weeks:J/7,days:J,hours:J*24,minutes:J*24*60,seconds:J*24*60*60,milliseconds:J*24*60*60*1e3},...Wn},P=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Es=P.slice(0).reverse();function Z(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new g(r)}function Ln(t,e){let n=e.milliseconds??0;for(const r of Es.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Ft(t,e){const n=Ln(t,e)<0?-1:1;P.reduceRight((r,s)=>{if(m(e[s]))return r;if(r){const i=e[r]*n,a=t[s][r],o=Math.floor(i/a);e[s]+=o*n,e[r]-=o*a*n}return s},null),P.reduce((r,s)=>{if(m(e[s]))return r;if(r){const i=e[r]%1;e[r]-=i,e[s]+=i*t[r][s]}return s},null)}function bt(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class g{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?Is:Ns;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||T.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return g.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new M(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new g({values:Fe(e,g.normalizeUnit),loc:T.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(q(e))return g.fromMillis(e);if(g.isDuration(e))return e;if(typeof e=="object")return g.fromObject(e);throw new M(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=Ts(e);return r?g.fromObject(r,n):g.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=Ss(e);return r?g.fromObject(r,n):g.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new M("need to specify a reason the Duration is invalid");const r=e instanceof W?e:new W(e,n);if(O.throwOnInvalid)throw new Xn(r);return new g({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new qt(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?N.create(this.loc,r).formatDurationFromString(this,e):xt}toHuman(e={}){if(!this.isValid)return xt;const n=e.showZeros!==!1,r=P.map(s=>{const i=this.values[s];return m(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:s.slice(0,-1)}).format(i)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=at(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},f.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Ln(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=g.fromDurationLike(e),r={};for(const s of P)(ee(n.values,s)||ee(this.values,s))&&(r[s]=n.get(s)+this.get(s));return Z(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=g.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Sn(e(this.values[r],r));return Z(this,{values:n},!0)}get(e){return this[g.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Fe(e,g.normalizeUnit)};return Z(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:r};return Z(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Ft(this.matrix,e),Z(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=bt(this.normalize().shiftToAll().toObject());return Z(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>g.normalizeUnit(a));const n={},r={},s=this.toObject();let i;for(const a of P)if(e.indexOf(a)>=0){i=a;let o=0;for(const l in r)o+=this.matrix[l][a]*r[l],r[l]=0;q(s[a])&&(o+=s[a]);const u=Math.trunc(o);n[a]=u,r[a]=(o*1e3-u*1e3)/1e3}else q(s[a])&&(r[a]=s[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return Ft(this.matrix,n),Z(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Z(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=bt(this.values);return Z(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of P)if(!n(this.values[r],e.values[r]))return!1;return!0}}const j="Invalid Interval";function Ds(t,e){return!t||!t.isValid?S.invalid("missing or invalid start"):!e||!e.isValid?S.invalid("missing or invalid end"):e<t?S.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class S{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new M("need to specify a reason the Interval is invalid");const r=e instanceof W?e:new W(e,n);if(O.throwOnInvalid)throw new Kn(r);return new S({invalid:r})}static fromDateTimes(e,n){const r=ue(e),s=ue(n),i=Ds(r,s);return i??new S({start:r,end:s})}static after(e,n){const r=g.fromDurationLike(n),s=ue(e);return S.fromDateTimes(s,s.plus(r))}static before(e,n){const r=g.fromDurationLike(n),s=ue(e);return S.fromDateTimes(s.minus(r),s)}static fromISO(e,n){const[r,s]=(e||"").split("/",2);if(r&&s){let i,a;try{i=f.fromISO(r,n),a=i.isValid}catch{a=!1}let o,u;try{o=f.fromISO(s,n),u=o.isValid}catch{u=!1}if(a&&u)return S.fromDateTimes(i,o);if(a){const l=g.fromISO(s,n);if(l.isValid)return S.after(i,l)}else if(u){const l=g.fromISO(r,n);if(l.isValid)return S.before(o,l)}}return S.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(e,n);let s;return n?.useLocaleWeeks?s=this.end.reconfigure({locale:r.locale}):s=this.end,s=s.startOf(e,n),Math.floor(s.diff(r,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?S.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(ue).filter(a=>this.contains(a)).sort((a,o)=>a.toMillis()-o.toMillis()),r=[];let{s}=this,i=0;for(;s<this.e;){const a=n[i]||this.e,o=+a>+this.e?this.e:a;r.push(S.fromDateTimes(s,o)),s=o,i+=1}return r}splitBy(e){const n=g.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,i;const a=[];for(;r<this.e;){const o=this.start.plus(n.mapUnits(u=>u*s));i=+o>+this.e?this.e:o,a.push(S.fromDateTimes(r,i)),r=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:S.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return S.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const s=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((u,l)=>u.time-l.time);for(const u of o)r+=u.type==="s"?1:-1,r===1?n=u.time:(n&&+n!=+u.time&&s.push(S.fromDateTimes(n,u.time)),n=null);return S.merge(s)}difference(...e){return S.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:j}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ee,n={}){return this.isValid?N.create(this.s.loc.clone(n),e).formatInterval(this):j}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:j}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:j}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:j}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:j}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):g.invalid(this.invalidReason)}mapEndpoints(e){return S.fromDateTimes(e(this.s),e(this.e))}}class Se{static hasDST(e=O.defaultZone){const n=f.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return z.isValidZone(e)}static normalizeZone(e){return R(e,O.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||T.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||T.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||T.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||T.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||T.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||T.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||T.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return T.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return T.create(n,null,"gregory").eras(e)}static features(){return{relative:wn(),localeWeek:Tn()}}}function Vt(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(g.fromMillis(r).as("days"))}function xs(t,e,n){const r=[["years",(u,l)=>l.year-u.year],["quarters",(u,l)=>l.quarter-u.quarter+(l.year-u.year)*4],["months",(u,l)=>l.month-u.month+(l.year-u.year)*12],["weeks",(u,l)=>{const d=Vt(u,l);return(d-d%7)/7}],["days",Vt]],s={},i=t;let a,o;for(const[u,l]of r)n.indexOf(u)>=0&&(a=u,s[u]=l(t,e),o=i.plus(s),o>e?(s[u]--,t=i.plus(s),t>e&&(o=t,s[u]--,t=i.plus(s))):t=o);return[t,s,o,a]}function Fs(t,e,n,r){let[s,i,a,o]=xs(t,e,n);const u=e-s,l=n.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);l.length===0&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+u/(a-s)));const d=g.fromObject(i,r);return l.length>0?g.fromMillis(u,r).shiftTo(...l).plus(d):d}const bs="missing Intl.DateTimeFormat.formatToParts support";function w(t,e=n=>n){return{regex:t,deser:([n])=>e(Or(n))}}const Vs=" ",$n=`[ ${Vs}]`,Zn=new RegExp($n,"g");function Cs(t){return t.replace(/\./g,"\\.?").replace(Zn,$n)}function Ct(t){return t.replace(/\./g,"").replace(Zn," ").toLowerCase()}function C(t,e){return t===null?null:{regex:RegExp(t.map(Cs).join("|")),deser:([n])=>t.findIndex(r=>Ct(n)===Ct(r))+e}}function Wt(t,e){return{regex:t,deser:([,n,r])=>We(n,r),groups:e}}function Oe(t){return{regex:t,deser:([e])=>e}}function Ws(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ls(t,e){const n=V(e),r=V(e,"{2}"),s=V(e,"{3}"),i=V(e,"{4}"),a=V(e,"{6}"),o=V(e,"{1,2}"),u=V(e,"{1,3}"),l=V(e,"{1,6}"),d=V(e,"{1,9}"),y=V(e,"{2,4}"),k=V(e,"{4,6}"),h=$=>({regex:RegExp(Ws($.val)),deser:([_])=>_,literal:!0}),b=($=>{if(t.literal)return h($);switch($.val){case"G":return C(e.eras("short"),0);case"GG":return C(e.eras("long"),0);case"y":return w(l);case"yy":return w(y,et);case"yyyy":return w(i);case"yyyyy":return w(k);case"yyyyyy":return w(a);case"M":return w(o);case"MM":return w(r);case"MMM":return C(e.months("short",!0),1);case"MMMM":return C(e.months("long",!0),1);case"L":return w(o);case"LL":return w(r);case"LLL":return C(e.months("short",!1),1);case"LLLL":return C(e.months("long",!1),1);case"d":return w(o);case"dd":return w(r);case"o":return w(u);case"ooo":return w(s);case"HH":return w(r);case"H":return w(o);case"hh":return w(r);case"h":return w(o);case"mm":return w(r);case"m":return w(o);case"q":return w(o);case"qq":return w(r);case"s":return w(o);case"ss":return w(r);case"S":return w(u);case"SSS":return w(s);case"u":return Oe(d);case"uu":return Oe(o);case"uuu":return w(n);case"a":return C(e.meridiems(),0);case"kkkk":return w(i);case"kk":return w(y,et);case"W":return w(o);case"WW":return w(r);case"E":case"c":return w(n);case"EEE":return C(e.weekdays("short",!1),1);case"EEEE":return C(e.weekdays("long",!1),1);case"ccc":return C(e.weekdays("short",!0),1);case"cccc":return C(e.weekdays("long",!0),1);case"Z":case"ZZ":return Wt(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return Wt(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return Oe(/[a-z_+-/]{1,256}?/i);case" ":return Oe(/[^\S\n\r]/);default:return h($)}})(t)||{invalidReason:bs};return b.token=t,b}const $s={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Zs(t,e,n){const{type:r,value:s}=t;if(r==="literal"){const u=/^\s+$/.test(s);return{literal:!u,val:u?" ":s}}const i=e[r];let a=r;r==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let o=$s[a];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function zs(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function As(t,e,n){const r=t.match(e);if(r){const s={};let i=1;for(const a in n)if(ee(n,a)){const o=n[a],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(i,i+u))),i+=u}return[r,s]}else return[r,{}]}function Us(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return m(t.z)||(n=z.create(t.z)),m(t.Z)||(n||(n=new I(t.Z)),r=t.Z),m(t.q)||(t.M=(t.q-1)*3+1),m(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),m(t.u)||(t.S=it(t.u)),[Object.keys(t).reduce((i,a)=>{const o=e(a);return o&&(i[o]=t[a]),i},{}),n,r]}let Ue=null;function Rs(){return Ue||(Ue=f.fromMillis(1555555555555)),Ue}function qs(t,e){if(t.literal)return t;const n=N.macroTokenToFormatOpts(t.val),r=Rn(n,e);return r==null||r.includes(void 0)?t:r}function zn(t,e){return Array.prototype.concat(...t.map(n=>qs(n,e)))}class An{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=zn(N.parseFormat(n),e),this.units=this.tokens.map(r=>Ls(r,e)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,s]=zs(this.units);this.regex=RegExp(r,"i"),this.handlers=s}}explainFromTokens(e){if(this.isValid){const[n,r]=As(e,this.regex,this.handlers),[s,i,a]=r?Us(r):[null,null,void 0];if(ee(r,"a")&&ee(r,"H"))throw new Q("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:s,zone:i,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Un(t,e,n){return new An(t,n).explainFromTokens(e)}function Hs(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=Un(t,e,n);return[r,s,i,a]}function Rn(t,e){if(!t)return null;const r=N.create(e,t).dtFormatter(Rs()),s=r.formatToParts(),i=r.resolvedOptions();return s.map(a=>Zs(a,t,i))}const Re="Invalid DateTime",Lt=864e13;function ce(t){return new W("unsupported zone",`the zone "${t.name}" is not supported`)}function qe(t){return t.weekData===null&&(t.weekData=De(t.c)),t.weekData}function He(t){return t.localWeekData===null&&(t.localWeekData=De(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Y(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new f({...n,...e,old:n})}function qn(t,e,n){let r=t-e*60*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=(s-e)*60*1e3;const i=n.offset(r);return s===i?[r,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function pe(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Me(t,e,n){return qn(Ce(t),e,n)}function $t(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:s,day:Math.min(t.c.day,xe(r,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=g.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Ce(i);let[u,l]=qn(o,n,t.zone);return a!==0&&(u+=a,l=t.zone.offset(u)),{ts:u,o:l}}function B(t,e,n,r,s,i){const{setZone:a,zone:o}=n;if(t&&Object.keys(t).length!==0||e){const u=e||o,l=f.fromObject(t,{...n,zone:u,specificOffset:i});return a?l:l.setZone(o)}else return f.invalid(new W("unparsable",`the input "${s}" can't be parsed as ${r}`))}function ve(t,e,n=!0){return t.isValid?N.create(T.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Ye(t,e,n){const r=t.c.year>9999||t.c.year<0;let s="";if(r&&t.c.year>=0&&(s+="+"),s+=v(t.c.year,r?6:4),n==="year")return s;if(e){if(s+="-",s+=v(t.c.month),n==="month")return s;s+="-"}else if(s+=v(t.c.month),n==="month")return s;return s+=v(t.c.day),s}function Zt(t,e,n,r,s,i,a){let o=!n||t.c.millisecond!==0||t.c.second!==0,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=v(t.c.hour),a==="hour")break;if(e){if(u+=":",u+=v(t.c.minute),a==="minute")break;o&&(u+=":",u+=v(t.c.second))}else{if(u+=v(t.c.minute),a==="minute")break;o&&(u+=v(t.c.second))}if(a==="second")break;o&&(!r||t.c.millisecond!==0)&&(u+=".",u+=v(t.c.millisecond,3))}return s&&(t.isOffsetFixed&&t.offset===0&&!i?u+="Z":t.o<0?(u+="-",u+=v(Math.trunc(-t.o/60)),u+=":",u+=v(Math.trunc(-t.o%60))):(u+="+",u+=v(Math.trunc(t.o/60)),u+=":",u+=v(Math.trunc(t.o%60)))),i&&(u+="["+t.zone.ianaName+"]"),u}const Hn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ys={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ps={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ne=["year","month","day","hour","minute","second","millisecond"],Gs=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],_s=["year","ordinal","hour","minute","second","millisecond"];function Ie(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new qt(t);return e}function zt(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ie(t)}}function Js(t){if(fe===void 0&&(fe=O.now()),t.type!=="iana")return t.offset(fe);const e=t.name;let n=tt.get(e);return n===void 0&&(n=t.offset(fe),tt.set(e,n)),n}function At(t,e){const n=R(e.zone,O.defaultZone);if(!n.isValid)return f.invalid(ce(n));const r=T.fromObject(e);let s,i;if(m(t.year))s=O.now();else{for(const u of Ne)m(t[u])&&(t[u]=Hn[u]);const a=yn(t)||gn(t);if(a)return f.invalid(a);const o=Js(n);[s,i]=Me(t,o,n)}return new f({ts:s,zone:n,loc:r,o:i})}function Ut(t,e,n){const r=m(n.round)?!0:n.round,s=m(n.rounding)?"trunc":n.rounding,i=(o,u)=>(o=at(o,r||n.calendary?0:2,n.calendary?"round":s),e.loc.clone(n).relFormatter(n).format(o,u)),a=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return i(a(n.unit),n.unit);for(const o of n.units){const u=a(o);if(Math.abs(u)>=1)return i(u,o)}return i(t>e?-0:0,n.units[n.units.length-1])}function Rt(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let fe;const tt=new Map;class f{constructor(e){const n=e.zone||O.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new W("invalid input"):null)||(n.isValid?null:ce(n));this.ts=m(e.ts)?O.now():e.ts;let s=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,i]=[e.old.c,e.old.o];else{const o=q(e.o)&&!e.old?e.o:n.offset(this.ts);s=pe(this.ts,o),r=Number.isNaN(s.year)?new W("invalid input"):null,s=r?null:s,i=r?null:o}this._zone=n,this.loc=e.loc||T.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new f({})}static local(){const[e,n]=Rt(arguments),[r,s,i,a,o,u,l]=n;return At({year:r,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static utc(){const[e,n]=Rt(arguments),[r,s,i,a,o,u,l]=n;return e.zone=I.utcInstance,At({year:r,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static fromJSDate(e,n={}){const r=Ir(e)?e.valueOf():NaN;if(Number.isNaN(r))return f.invalid("invalid input");const s=R(n.zone,O.defaultZone);return s.isValid?new f({ts:r,zone:s,loc:T.fromObject(n)}):f.invalid(ce(s))}static fromMillis(e,n={}){if(q(e))return e<-Lt||e>Lt?f.invalid("Timestamp out of range"):new f({ts:e,zone:R(n.zone,O.defaultZone),loc:T.fromObject(n)});throw new M(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(q(e))return new f({ts:e*1e3,zone:R(n.zone,O.defaultZone),loc:T.fromObject(n)});throw new M("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=R(n.zone,O.defaultZone);if(!r.isValid)return f.invalid(ce(r));const s=T.fromObject(n),i=Fe(e,zt),{minDaysInFirstWeek:a,startOfWeek:o}=Mt(i,s),u=O.now(),l=m(n.specificOffset)?r.offset(u):n.specificOffset,d=!m(i.ordinal),y=!m(i.year),k=!m(i.month)||!m(i.day),h=y||k,p=i.weekYear||i.weekNumber;if((h||d)&&p)throw new Q("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(k&&d)throw new Q("Can't mix ordinal dates with month/day");const b=p||i.weekday&&!h;let $,_,ie=pe(u,l);b?($=Gs,_=Ys,ie=De(ie,a,o)):d?($=_s,_=Ps,ie=Ae(ie)):($=Ne,_=Hn);let ct=!1;for(const oe of $){const Jn=i[oe];m(Jn)?ct?i[oe]=_[oe]:i[oe]=ie[oe]:ct=!0}const Yn=b?vr(i,a,o):d?Mr(i):yn(i),ft=Yn||gn(i);if(ft)return f.invalid(ft);const Pn=b?pt(i,a,o):d?vt(i):i,[Gn,_n]=Me(Pn,l,r),ae=new f({ts:Gn,zone:r,o:_n,loc:s});return i.weekday&&h&&e.weekday!==ae.weekday?f.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${ae.toISO()}`):ae.isValid?ae:f.invalid(ae.invalid)}static fromISO(e,n={}){const[r,s]=ys(e);return B(r,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,s]=gs(e);return B(r,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,s]=ws(e);return B(r,s,n,"HTTP",n)}static fromFormat(e,n,r={}){if(m(e)||m(n))throw new M("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=r,a=T.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[o,u,l,d]=Hs(a,e,n);return d?f.invalid(d):B(o,u,r,`format ${n}`,e,l)}static fromString(e,n,r={}){return f.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,s]=Ms(e);return B(r,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new M("need to specify a reason the DateTime is invalid");const r=e instanceof W?e:new W(e,n);if(O.throwOnInvalid)throw new Qn(r);return new f({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=Rn(e,T.fromObject(n));return r?r.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return zn(N.parseFormat(e),T.fromObject(n)).map(s=>s.val).join("")}static resetCache(){fe=void 0,tt.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?qe(this).weekYear:NaN}get weekNumber(){return this.isValid?qe(this).weekNumber:NaN}get weekday(){return this.isValid?qe(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?He(this).weekday:NaN}get localWeekNumber(){return this.isValid?He(this).weekNumber:NaN}get localWeekYear(){return this.isValid?He(this).weekYear:NaN}get ordinal(){return this.isValid?Ae(this.c).ordinal:NaN}get monthShort(){return this.isValid?Se.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Se.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Se.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Se.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,r=Ce(this.c),s=this.zone.offset(r-e),i=this.zone.offset(r+e),a=this.zone.offset(r-s*n),o=this.zone.offset(r-i*n);if(a===o)return[this];const u=r-a*n,l=r-o*n,d=pe(u,a),y=pe(l,o);return d.hour===y.hour&&d.minute===y.minute&&d.second===y.second&&d.millisecond===y.millisecond?[Y(this,{ts:u}),Y(this,{ts:l})]:[this]}get isInLeapYear(){return ye(this.year)}get daysInMonth(){return xe(this.year,this.month)}get daysInYear(){return this.isValid?K(this.year):NaN}get weeksInWeekYear(){return this.isValid?he(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?he(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:s}=N.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(I.instance(e),n)}toLocal(){return this.setZone(O.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=R(e,O.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||r){const i=e.offset(this.ts),a=this.toObject();[s]=Me(a,i,e)}return Y(this,{ts:s,zone:e})}else return f.invalid(ce(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return Y(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Fe(e,zt),{minDaysInFirstWeek:r,startOfWeek:s}=Mt(n,this.loc),i=!m(n.weekYear)||!m(n.weekNumber)||!m(n.weekday),a=!m(n.ordinal),o=!m(n.year),u=!m(n.month)||!m(n.day),l=o||u,d=n.weekYear||n.weekNumber;if((l||a)&&d)throw new Q("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new Q("Can't mix ordinal dates with month/day");let y;i?y=pt({...De(this.c,r,s),...n},r,s):m(n.ordinal)?(y={...this.toObject(),...n},m(n.day)&&(y.day=Math.min(xe(y.year,y.month),y.day))):y=vt({...Ae(this.c),...n});const[k,h]=Me(y,this.o,this.zone);return Y(this,{ts:k,o:h})}plus(e){if(!this.isValid)return this;const n=g.fromDurationLike(e);return Y(this,$t(this,n))}minus(e){if(!this.isValid)return this;const n=g.fromDurationLike(e).negate();return Y(this,$t(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},s=g.normalizeUnit(e);switch(s){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(s==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(s==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?N.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Re}toLocaleString(e=Ee,n={}){return this.isValid?N.create(this.loc.clone(n),e).formatDateTime(this):Re}toLocaleParts(e={}){return this.isValid?N.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:i=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=Ie(a);const o=e==="extended";let u=Ye(this,o,a);return Ne.indexOf(a)>=3&&(u+="T"),u+=Zt(this,o,n,r,s,i,a),u}toISODate({format:e="extended",precision:n="day"}={}){return this.isValid?Ye(this,e==="extended",Ie(n)):null}toISOWeekDate(){return ve(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:i=!1,format:a="extended",precision:o="milliseconds"}={}){return this.isValid?(o=Ie(o),(s&&Ne.indexOf(o)>=3?"T":"")+Zt(this,a==="extended",n,e,r,i,o)):null}toRFC2822(){return ve(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ve(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ye(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(r&&(s+=" "),n?s+="z":e&&(s+="ZZ")),ve(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Re}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return g.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=Er(n).map(g.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,u=a?e:this,l=Fs(o,u,i,s);return a?l.negate():l}diffNow(e="milliseconds",n={}){return this.diff(f.now(),e,n)}until(e){return this.isValid?S.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,r)<=s&&s<=i.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||f.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),Ut(n,this.plus(r),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?Ut(e.base||f.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(f.isDateTime))throw new M("min requires all arguments be DateTimes");return Nt(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(f.isDateTime))throw new M("max requires all arguments be DateTimes");return Nt(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:s=null,numberingSystem:i=null}=r,a=T.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return Un(a,e,n)}static fromStringExplain(e,n,r={}){return f.fromFormatExplain(e,n,r)}static buildFormatParser(e,n={}){const{locale:r=null,numberingSystem:s=null}=n,i=T.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});return new An(i,e)}static fromFormatParser(e,n,r={}){if(m(e)||m(n))throw new M("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:i=null}=r,a=T.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});if(!a.equals(n.locale))throw new M(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:o,zone:u,specificOffset:l,invalidReason:d}=n.explainFromTokens(e);return d?f.invalid(d):B(o,u,r,`format ${n.format}`,e,l)}static get DATE_SHORT(){return Ee}static get DATE_MED(){return Ht}static get DATE_MED_WITH_WEEKDAY(){return er}static get DATE_FULL(){return Yt}static get DATE_HUGE(){return Pt}static get TIME_SIMPLE(){return Gt}static get TIME_WITH_SECONDS(){return _t}static get TIME_WITH_SHORT_OFFSET(){return Jt}static get TIME_WITH_LONG_OFFSET(){return jt}static get TIME_24_SIMPLE(){return Bt}static get TIME_24_WITH_SECONDS(){return Qt}static get TIME_24_WITH_SHORT_OFFSET(){return Kt}static get TIME_24_WITH_LONG_OFFSET(){return Xt}static get DATETIME_SHORT(){return en}static get DATETIME_SHORT_WITH_SECONDS(){return tn}static get DATETIME_MED(){return nn}static get DATETIME_MED_WITH_SECONDS(){return rn}static get DATETIME_MED_WITH_WEEKDAY(){return tr}static get DATETIME_FULL(){return sn}static get DATETIME_FULL_WITH_SECONDS(){return an}static get DATETIME_HUGE(){return on}static get DATETIME_HUGE_WITH_SECONDS(){return un}}function ue(t){if(f.isDateTime(t))return t;if(t&&t.valueOf&&q(t.valueOf()))return f.fromJSDate(t);if(t&&typeof t=="object")return f.fromObject(t);throw new M(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function Te(){const t=jn.currentProject?.organizationId;if(t){const e=Bn.getTimezoneForOrganization(t);if(e)return e}return f.local().zoneName||"UTC"}function Bs(t){const e=t.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?Z$/);if(!e)return new Date(t).getTime();const[,n,r,s,i,a,o,u]=e,l=Date.UTC(+n,+r-1,+s,+i,+a,+o);return u?l+parseFloat("0."+u)*1e3:l}function Qs(t){const e=t/1e6;return e<1?`${(t/1e3).toFixed(0)}µs`:e<1e3?`${e.toFixed(0)}ms`:`${(e/1e3).toFixed(1)}s`}function Ks(t){return t<1?`${(t*1e3).toFixed(0)} µs`:t<1e3?`${t.toFixed(0)} ms`:`${(t/1e3).toFixed(2)} s`}function Xs(t){return t>=200&&t<300?"text-green-500":t>=300&&t<400?"text-blue-500":t>=400&&t<500?"text-yellow-500":"text-red-500"}function ei(t,e=70){const n=t.split(`
+import{p as jn,b as Bn}from"./qCQ2nSvO.js";class G extends Error{}class Qn extends G{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Kn extends G{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Xn extends G{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Q extends G{}class qt extends G{constructor(e){super(`Invalid unit ${e}`)}}class M extends G{}class A extends G{constructor(){super("Zone is an abstract class")}}const c="numeric",L="short",E="long",Ee={year:c,month:c,day:c},Ht={year:c,month:L,day:c},er={year:c,month:L,day:c,weekday:L},Yt={year:c,month:E,day:c},Pt={year:c,month:E,day:c,weekday:E},Gt={hour:c,minute:c},_t={hour:c,minute:c,second:c},Jt={hour:c,minute:c,second:c,timeZoneName:L},jt={hour:c,minute:c,second:c,timeZoneName:E},Bt={hour:c,minute:c,hourCycle:"h23"},Qt={hour:c,minute:c,second:c,hourCycle:"h23"},Kt={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:L},Xt={hour:c,minute:c,second:c,hourCycle:"h23",timeZoneName:E},en={year:c,month:c,day:c,hour:c,minute:c},tn={year:c,month:c,day:c,hour:c,minute:c,second:c},nn={year:c,month:L,day:c,hour:c,minute:c},rn={year:c,month:L,day:c,hour:c,minute:c,second:c},tr={year:c,month:L,day:c,weekday:L,hour:c,minute:c},sn={year:c,month:E,day:c,hour:c,minute:c,timeZoneName:L},an={year:c,month:E,day:c,hour:c,minute:c,second:c,timeZoneName:L},on={year:c,month:E,day:c,weekday:E,hour:c,minute:c,timeZoneName:E},un={year:c,month:E,day:c,weekday:E,hour:c,minute:c,second:c,timeZoneName:E};class me{get type(){throw new A}get name(){throw new A}get ianaName(){return this.name}get isUniversal(){throw new A}offsetName(e,n){throw new A}formatOffset(e,n){throw new A}offset(e){throw new A}equals(e){throw new A}get isValid(){throw new A}}let $e=null;class be extends me{static get instance(){return $e===null&&($e=new be),$e}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return kn(e,n,r)}formatOffset(e,n){return de(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}const Pe=new Map;function nr(t){let e=Pe.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Pe.set(t,e)),e}const rr={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function sr(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,a,o,u,l,d]=r;return[a,s,i,o,u,l,d]}function ir(t,e){const n=t.formatToParts(e),r=[];for(let s=0;s<n.length;s++){const{type:i,value:a}=n[s],o=rr[i];i==="era"?r[o]=a:m(o)||(r[o]=parseInt(a,10))}return r}const Ze=new Map;class z extends me{static create(e){let n=Ze.get(e);return n===void 0&&Ze.set(e,n=new z(e)),n}static resetCache(){Ze.clear(),Pe.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=z.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:r}){return kn(e,n,r,this.name)}formatOffset(e,n){return de(this.offset(e),n)}offset(e){if(!this.valid)return NaN;const n=new Date(e);if(isNaN(n))return NaN;const r=nr(this.name);let[s,i,a,o,u,l,d]=r.formatToParts?ir(r,n):sr(r,n);o==="BC"&&(s=-Math.abs(s)+1);const k=Ce({year:s,month:i,day:a,hour:u===24?0:u,minute:l,second:d,millisecond:0});let h=+n;const p=h%1e3;return h-=p>=0?p:1e3+p,(k-h)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let dt={};function ar(t,e={}){const n=JSON.stringify([t,e]);let r=dt[n];return r||(r=new Intl.ListFormat(t,e),dt[n]=r),r}const Ge=new Map;function _e(t,e={}){const n=JSON.stringify([t,e]);let r=Ge.get(n);return r===void 0&&(r=new Intl.DateTimeFormat(t,e),Ge.set(n,r)),r}const Je=new Map;function or(t,e={}){const n=JSON.stringify([t,e]);let r=Je.get(n);return r===void 0&&(r=new Intl.NumberFormat(t,e),Je.set(n,r)),r}const je=new Map;function ur(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=je.get(s);return i===void 0&&(i=new Intl.RelativeTimeFormat(t,e),je.set(s,i)),i}let le=null;function lr(){return le||(le=new Intl.DateTimeFormat().resolvedOptions().locale,le)}const Be=new Map;function ln(t){let e=Be.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Be.set(t,e)),e}const Qe=new Map;function cr(t){let e=Qe.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...cn,...e}),Qe.set(t,e)}return e}function fr(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let r,s;try{r=_e(t).resolvedOptions(),s=t}catch{const u=t.substring(0,n);r=_e(u).resolvedOptions(),s=u}const{numberingSystem:i,calendar:a}=r;return[s,i,a]}}function dr(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function hr(t){const e=[];for(let n=1;n<=12;n++){const r=f.utc(2009,n,1);e.push(t(r))}return e}function mr(t){const e=[];for(let n=1;n<=7;n++){const r=f.utc(2016,11,13+n);e.push(t(r))}return e}function ke(t,e,n,r){const s=t.listingMode();return s==="error"?null:s==="en"?n(e):r(e)}function yr(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||ln(t.locale).numberingSystem==="latn"}class gr{constructor(e,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:s,floor:i,...a}=r;if(!n||Object.keys(a).length>0){const o={useGrouping:!1,...r};r.padTo>0&&(o.minimumIntegerDigits=r.padTo),this.inf=or(e,o)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):at(e,3);return v(n,this.padTo)}}}class wr{constructor(e,n,r){this.opts=r,this.originalZone=void 0;let s;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const a=-1*(e.offset/60),o=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&z.create(o).valid?(s=o,this.dt=e):(s="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=_e(n,i)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Tr{constructor(e,n,r){this.opts={style:"long",...r},!n&&wn()&&(this.rtf=ur(e,r))}format(e,n){return this.rtf?this.rtf.format(e,n):Ur(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const cn={firstDay:1,minimalDays:4,weekend:[6,7]};class T{static fromOpts(e){return T.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,r,s,i=!1){const a=e||O.defaultLocale,o=a||(i?"en-US":lr()),u=n||O.defaultNumberingSystem,l=r||O.defaultOutputCalendar,d=Xe(s)||O.defaultWeekSettings;return new T(o,u,l,d,a)}static resetCache(){le=null,Ge.clear(),Je.clear(),je.clear(),Be.clear(),Qe.clear()}static fromObject({locale:e,numberingSystem:n,outputCalendar:r,weekSettings:s}={}){return T.create(e,n,r,s)}constructor(e,n,r,s,i){const[a,o,u]=fr(e);this.locale=a,this.numberingSystem=n||o||null,this.outputCalendar=r||u||null,this.weekSettings=s,this.intl=dr(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=yr(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:T.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Xe(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return ke(this,e,pn,()=>{const r=this.intl==="ja"||this.intl.startsWith("ja-");n&=!r;const s=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";if(!this.monthsCache[i][e]){const a=r?o=>this.dtFormatter(o,s).format():o=>this.extract(o,s,"month");this.monthsCache[i][e]=hr(a)}return this.monthsCache[i][e]})}weekdays(e,n=!1){return ke(this,e,Nn,()=>{const r=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=n?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=mr(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[s][e]})}meridiems(){return ke(this,void 0,()=>In,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[f.utc(2016,11,13,9),f.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ke(this,e,En,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[f.utc(-40,1,1),f.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[e]})}extract(e,n,r){const s=this.dtFormatter(e,n),i=s.formatToParts(),a=i.find(o=>o.type.toLowerCase()===r);return a?a.value:null}numberFormatter(e={}){return new gr(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new wr(e,this.intl,n)}relFormatter(e={}){return new Tr(this.intl,this.isEnglish(),e)}listFormatter(e={}){return ar(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||ln(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Tn()?cr(this.locale):cn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let ze=null;class I extends me{static get utcInstance(){return ze===null&&(ze=new I(0)),ze}static instance(e){return e===0?I.utcInstance:new I(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new I(We(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${de(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${de(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return de(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class kr extends me{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function R(t,e){if(m(t)||t===null)return e;if(t instanceof me)return t;if(Nr(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?be.instance:n==="utc"||n==="gmt"?I.utcInstance:I.parseSpecifier(n)||z.create(t)}else return q(t)?I.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new kr(t)}const nt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ht={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Sr=nt.hanidec.replace(/[\[|\]]/g,"").split("");function Or(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(t[n].search(nt.hanidec)!==-1)e+=Sr.indexOf(t[n]);else for(const s in ht){const[i,a]=ht[s];r>=i&&r<=a&&(e+=r-i)}}return parseInt(e,10)}else return e}const Ke=new Map;function pr(){Ke.clear()}function V({numberingSystem:t},e=""){const n=t||"latn";let r=Ke.get(n);r===void 0&&(r=new Map,Ke.set(n,r));let s=r.get(e);return s===void 0&&(s=new RegExp(`${nt[n]}${e}`),r.set(e,s)),s}let mt=()=>Date.now(),yt="system",gt=null,wt=null,Tt=null,kt=60,St,Ot=null;class O{static get now(){return mt}static set now(e){mt=e}static set defaultZone(e){yt=e}static get defaultZone(){return R(yt,be.instance)}static get defaultLocale(){return gt}static set defaultLocale(e){gt=e}static get defaultNumberingSystem(){return wt}static set defaultNumberingSystem(e){wt=e}static get defaultOutputCalendar(){return Tt}static set defaultOutputCalendar(e){Tt=e}static get defaultWeekSettings(){return Ot}static set defaultWeekSettings(e){Ot=Xe(e)}static get twoDigitCutoffYear(){return kt}static set twoDigitCutoffYear(e){kt=e%100}static get throwOnInvalid(){return St}static set throwOnInvalid(e){St=e}static resetCaches(){T.resetCache(),z.resetCache(),f.resetCache(),pr()}}class W{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const fn=[0,31,59,90,120,151,181,212,243,273,304,334],dn=[0,31,60,91,121,152,182,213,244,274,305,335];function x(t,e){return new W("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function rt(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function hn(t,e,n){return n+(ye(t)?dn:fn)[e-1]}function mn(t,e){const n=ye(t)?dn:fn,r=n.findIndex(i=>i<e),s=e-n[r];return{month:r+1,day:s}}function st(t,e){return(t-e+7)%7+1}function De(t,e=4,n=1){const{year:r,month:s,day:i}=t,a=hn(r,s,i),o=st(rt(r,s,i),n);let u=Math.floor((a-o+14-e)/7),l;return u<1?(l=r-1,u=he(l,e,n)):u>he(r,e,n)?(l=r+1,u=1):l=r,{weekYear:l,weekNumber:u,weekday:o,...Le(t)}}function pt(t,e=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=t,a=st(rt(r,1,e),n),o=K(r);let u=s*7+i-a-7+e,l;u<1?(l=r-1,u+=K(l)):u>o?(l=r+1,u-=K(r)):l=r;const{month:d,day:y}=mn(l,u);return{year:l,month:d,day:y,...Le(t)}}function Ae(t){const{year:e,month:n,day:r}=t,s=hn(e,n,r);return{year:e,ordinal:s,...Le(t)}}function vt(t){const{year:e,ordinal:n}=t,{month:r,day:s}=mn(e,n);return{year:e,month:r,day:s,...Le(t)}}function Mt(t,e){if(!m(t.localWeekday)||!m(t.localWeekNumber)||!m(t.localWeekYear)){if(!m(t.weekday)||!m(t.weekNumber)||!m(t.weekYear))throw new Q("Cannot mix locale-based week fields with ISO-based week fields");return m(t.localWeekday)||(t.weekday=t.localWeekday),m(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),m(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function vr(t,e=4,n=1){const r=Ve(t.weekYear),s=F(t.weekNumber,1,he(t.weekYear,e,n)),i=F(t.weekday,1,7);return r?s?i?!1:x("weekday",t.weekday):x("week",t.weekNumber):x("weekYear",t.weekYear)}function Mr(t){const e=Ve(t.year),n=F(t.ordinal,1,K(t.year));return e?n?!1:x("ordinal",t.ordinal):x("year",t.year)}function yn(t){const e=Ve(t.year),n=F(t.month,1,12),r=F(t.day,1,xe(t.year,t.month));return e?n?r?!1:x("day",t.day):x("month",t.month):x("year",t.year)}function gn(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=F(e,0,23)||e===24&&n===0&&r===0&&s===0,a=F(n,0,59),o=F(r,0,59),u=F(s,0,999);return i?a?o?u?!1:x("millisecond",s):x("second",r):x("minute",n):x("hour",e)}function m(t){return typeof t>"u"}function q(t){return typeof t=="number"}function Ve(t){return typeof t=="number"&&t%1===0}function Nr(t){return typeof t=="string"}function Ir(t){return Object.prototype.toString.call(t)==="[object Date]"}function wn(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Tn(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Er(t){return Array.isArray(t)?t:[t]}function Nt(t,e,n){if(t.length!==0)return t.reduce((r,s)=>{const i=[e(s),s];return r&&n(r[0],i[0])===r[0]?r:i},null)[1]}function Dr(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function ee(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Xe(t){if(t==null)return null;if(typeof t!="object")throw new M("Week settings must be an object");if(!F(t.firstDay,1,7)||!F(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!F(e,1,7)))throw new M("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function F(t,e,n){return Ve(t)&&t>=e&&t<=n}function xr(t,e){return t-e*Math.floor(t/e)}function v(t,e=2){const n=t<0;let r;return n?r="-"+(""+-t).padStart(e,"0"):r=(""+t).padStart(e,"0"),r}function U(t){if(!(m(t)||t===null||t===""))return parseInt(t,10)}function H(t){if(!(m(t)||t===null||t===""))return parseFloat(t)}function it(t){if(!(m(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function at(t,e,n="round"){const r=10**e;switch(n){case"expand":return t>0?Math.ceil(t*r)/r:Math.floor(t*r)/r;case"trunc":return Math.trunc(t*r)/r;case"round":return Math.round(t*r)/r;case"floor":return Math.floor(t*r)/r;case"ceil":return Math.ceil(t*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function ye(t){return t%4===0&&(t%100!==0||t%400===0)}function K(t){return ye(t)?366:365}function xe(t,e){const n=xr(e-1,12)+1,r=t+(e-n)/12;return n===2?ye(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Ce(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function It(t,e,n){return-st(rt(t,1,e),n)+e-1}function he(t,e=4,n=1){const r=It(t,e,n),s=It(t+1,e,n);return(K(t)-r+s)/7}function et(t){return t>99?t:t>O.twoDigitCutoffYear?1900+t:2e3+t}function kn(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find(u=>u.type.toLowerCase()==="timezonename");return o?o.value:null}function We(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function Sn(t){const e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new M(`Invalid unit value ${t}`);return e}function Fe(t,e){const n={};for(const r in t)if(ee(t,r)){const s=t[r];if(s==null)continue;n[e(r)]=Sn(s)}return n}function de(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${v(n,2)}:${v(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${v(n,2)}${v(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Le(t){return Dr(t,["hour","minute","second","millisecond"])}const Fr=["January","February","March","April","May","June","July","August","September","October","November","December"],On=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],br=["J","F","M","A","M","J","J","A","S","O","N","D"];function pn(t){switch(t){case"narrow":return[...br];case"short":return[...On];case"long":return[...Fr];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const vn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Mn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Vr=["M","T","W","T","F","S","S"];function Nn(t){switch(t){case"narrow":return[...Vr];case"short":return[...Mn];case"long":return[...vn];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const In=["AM","PM"],Cr=["Before Christ","Anno Domini"],Wr=["BC","AD"],Lr=["B","A"];function En(t){switch(t){case"narrow":return[...Lr];case"short":return[...Wr];case"long":return[...Cr];default:return null}}function $r(t){return In[t.hour<12?0:1]}function Zr(t,e){return Nn(e)[t.weekday-1]}function zr(t,e){return pn(e)[t.month-1]}function Ar(t,e){return En(e)[t.year<0?0:1]}function Ur(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&i){const y=t==="days";switch(e){case 1:return y?"tomorrow":`next ${s[t][0]}`;case-1:return y?"yesterday":`last ${s[t][0]}`;case 0:return y?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=o===1,l=s[t],d=r?u?l[1]:l[2]||l[1]:u?s[t][0]:t;return a?`${o} ${d} ago`:`in ${o} ${d}`}function Et(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const Rr={D:Ee,DD:Ht,DDD:Yt,DDDD:Pt,t:Gt,tt:_t,ttt:Jt,tttt:jt,T:Bt,TT:Qt,TTT:Kt,TTTT:Xt,f:en,ff:nn,fff:sn,ffff:on,F:tn,FF:rn,FFF:an,FFFF:un};class N{static create(e,n={}){return new N(e,n)}static parseFormat(e){let n=null,r="",s=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);o==="'"?((r.length>0||s)&&i.push({literal:s||/^\s+$/.test(r),val:r===""?"'":r}),n=null,r="",s=!s):s||o===n?r+=o:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=o,n=o)}return r.length>0&&i.push({literal:s||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return Rr[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0,r=void 0){if(this.opts.forceSimple)return v(e,n);const s={...this.opts};return n>0&&(s.padTo=n),r&&(s.signDisplay=r),this.loc.numberFormatter(s).format(e)}formatDateTimeFromString(e,n){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",i=(h,p)=>this.loc.extract(e,h,p),a=h=>e.isOffsetFixed&&e.offset===0&&h.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,h.format):"",o=()=>r?$r(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(h,p)=>r?zr(e,h):i(p?{month:h}:{month:h,day:"numeric"},"month"),l=(h,p)=>r?Zr(e,h):i(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),d=h=>{const p=N.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(e,p):h},y=h=>r?Ar(e,h):i({era:h},"era"),k=h=>{switch(h){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return y("short");case"GG":return y("long");case"GGGGG":return y("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(h)}};return Et(N.parseFormat(n),k)}formatDurationFromString(e,n){const r=this.opts.signMode==="negativeLargestOnly"?-1:1,s=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},i=(d,y)=>k=>{const h=s(k);if(h){const p=y.isNegativeDuration&&h!==y.largestUnit?r:1;let b;return this.opts.signMode==="negativeLargestOnly"&&h!==y.largestUnit?b="never":this.opts.signMode==="all"?b="always":b="auto",this.num(d.get(h)*p,k.length,b)}else return k},a=N.parseFormat(n),o=a.reduce((d,{literal:y,val:k})=>y?d:d.concat(k),[]),u=e.shiftTo(...o.map(s).filter(d=>d)),l={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return Et(a,i(u,l))}}const Dn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function te(...t){const e=t.reduce((n,r)=>n+r.source,"");return RegExp(`^${e}$`)}function ne(...t){return e=>t.reduce(([n,r,s],i)=>{const[a,o,u]=i(e,s);return[{...n,...a},o||r,u]},[{},null,1]).slice(0,2)}function re(t,...e){if(t==null)return[null,null];for(const[n,r]of e){const s=n.exec(t);if(s)return r(s)}return[null,null]}function xn(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=U(e[n+s]);return[r,null,n+s]}}const Fn=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,qr=`(?:${Fn.source}?(?:\\[(${Dn.source})\\])?)?`,ot=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,bn=RegExp(`${ot.source}${qr}`),ut=RegExp(`(?:[Tt]${bn.source})?`),Hr=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Yr=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Pr=/(\d{4})-?(\d{3})/,Gr=xn("weekYear","weekNumber","weekDay"),_r=xn("year","ordinal"),Jr=/(\d{4})-(\d\d)-(\d\d)/,Vn=RegExp(`${ot.source} ?(?:${Fn.source}|(${Dn.source}))?`),jr=RegExp(`(?: ${Vn.source})?`);function X(t,e,n){const r=t[e];return m(r)?n:U(r)}function Br(t,e){return[{year:X(t,e),month:X(t,e+1,1),day:X(t,e+2,1)},null,e+3]}function se(t,e){return[{hours:X(t,e,0),minutes:X(t,e+1,0),seconds:X(t,e+2,0),milliseconds:it(t[e+3])},null,e+4]}function ge(t,e){const n=!t[e]&&!t[e+1],r=We(t[e+1],t[e+2]),s=n?null:I.instance(r);return[{},s,e+3]}function we(t,e){const n=t[e]?z.create(t[e]):null;return[{},n,e+1]}const Qr=RegExp(`^T?${ot.source}$`),Kr=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Xr(t){const[e,n,r,s,i,a,o,u,l]=t,d=e[0]==="-",y=u&&u[0]==="-",k=(h,p=!1)=>h!==void 0&&(p||h&&d)?-h:h;return[{years:k(H(n)),months:k(H(r)),weeks:k(H(s)),days:k(H(i)),hours:k(H(a)),minutes:k(H(o)),seconds:k(H(u),u==="-0"),milliseconds:k(it(l),y)}]}const es={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function lt(t,e,n,r,s,i,a){const o={year:e.length===2?et(U(e)):U(e),month:On.indexOf(n)+1,day:U(r),hour:U(s),minute:U(i)};return a&&(o.second=U(a)),t&&(o.weekday=t.length>3?vn.indexOf(t)+1:Mn.indexOf(t)+1),o}const ts=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ns(t){const[,e,n,r,s,i,a,o,u,l,d,y]=t,k=lt(e,s,r,n,i,a,o);let h;return u?h=es[u]:l?h=0:h=We(d,y),[k,new I(h)]}function rs(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const ss=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,is=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,as=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Dt(t){const[,e,n,r,s,i,a,o]=t;return[lt(e,s,r,n,i,a,o),I.utcInstance]}function os(t){const[,e,n,r,s,i,a,o]=t;return[lt(e,o,n,r,s,i,a),I.utcInstance]}const us=te(Hr,ut),ls=te(Yr,ut),cs=te(Pr,ut),fs=te(bn),Cn=ne(Br,se,ge,we),ds=ne(Gr,se,ge,we),hs=ne(_r,se,ge,we),ms=ne(se,ge,we);function ys(t){return re(t,[us,Cn],[ls,ds],[cs,hs],[fs,ms])}function gs(t){return re(rs(t),[ts,ns])}function ws(t){return re(t,[ss,Dt],[is,Dt],[as,os])}function Ts(t){return re(t,[Kr,Xr])}const ks=ne(se);function Ss(t){return re(t,[Qr,ks])}const Os=te(Jr,jr),ps=te(Vn),vs=ne(se,ge,we);function Ms(t){return re(t,[Os,Cn],[ps,vs])}const xt="Invalid Duration",Wn={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Ns={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...Wn},D=146097/400,J=146097/4800,Is={years:{quarters:4,months:12,weeks:D/7,days:D,hours:D*24,minutes:D*24*60,seconds:D*24*60*60,milliseconds:D*24*60*60*1e3},quarters:{months:3,weeks:D/28,days:D/4,hours:D*24/4,minutes:D*24*60/4,seconds:D*24*60*60/4,milliseconds:D*24*60*60*1e3/4},months:{weeks:J/7,days:J,hours:J*24,minutes:J*24*60,seconds:J*24*60*60,milliseconds:J*24*60*60*1e3},...Wn},P=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Es=P.slice(0).reverse();function Z(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new g(r)}function Ln(t,e){let n=e.milliseconds??0;for(const r of Es.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Ft(t,e){const n=Ln(t,e)<0?-1:1;P.reduceRight((r,s)=>{if(m(e[s]))return r;if(r){const i=e[r]*n,a=t[s][r],o=Math.floor(i/a);e[s]+=o*n,e[r]-=o*a*n}return s},null),P.reduce((r,s)=>{if(m(e[s]))return r;if(r){const i=e[r]%1;e[r]-=i,e[s]+=i*t[r][s]}return s},null)}function bt(t){const e={};for(const[n,r]of Object.entries(t))r!==0&&(e[n]=r);return e}class g{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let r=n?Is:Ns;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||T.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,n){return g.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new M(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new g({values:Fe(e,g.normalizeUnit),loc:T.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(q(e))return g.fromMillis(e);if(g.isDuration(e))return e;if(typeof e=="object")return g.fromObject(e);throw new M(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[r]=Ts(e);return r?g.fromObject(r,n):g.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[r]=Ss(e);return r?g.fromObject(r,n):g.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new M("need to specify a reason the Duration is invalid");const r=e instanceof W?e:new W(e,n);if(O.throwOnInvalid)throw new Xn(r);return new g({invalid:r})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new qt(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?N.create(this.loc,r).formatDurationFromString(this,e):xt}toHuman(e={}){if(!this.isValid)return xt;const n=e.showZeros!==!1,r=P.map(s=>{const i=this.values[s];return m(i)||i===0&&!n?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:s.slice(0,-1)}).format(i)}).filter(s=>s);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=at(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},f.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Ln(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=g.fromDurationLike(e),r={};for(const s of P)(ee(n.values,s)||ee(this.values,s))&&(r[s]=n.get(s)+this.get(s));return Z(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const n=g.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=Sn(e(this.values[r],r));return Z(this,{values:n},!0)}get(e){return this[g.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Fe(e,g.normalizeUnit)};return Z(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:r,matrix:s}={}){const a={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:s,conversionAccuracy:r};return Z(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return Ft(this.matrix,e),Z(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=bt(this.normalize().shiftToAll().toObject());return Z(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>g.normalizeUnit(a));const n={},r={},s=this.toObject();let i;for(const a of P)if(e.indexOf(a)>=0){i=a;let o=0;for(const l in r)o+=this.matrix[l][a]*r[l],r[l]=0;q(s[a])&&(o+=s[a]);const u=Math.trunc(o);n[a]=u,r[a]=(o*1e3-u*1e3)/1e3}else q(s[a])&&(r[a]=s[a]);for(const a in r)r[a]!==0&&(n[i]+=a===i?r[a]:r[a]/this.matrix[i][a]);return Ft(this.matrix,n),Z(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return Z(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;const e=bt(this.values);return Z(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of P)if(!n(this.values[r],e.values[r]))return!1;return!0}}const j="Invalid Interval";function Ds(t,e){return!t||!t.isValid?S.invalid("missing or invalid start"):!e||!e.isValid?S.invalid("missing or invalid end"):e<t?S.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class S{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new M("need to specify a reason the Interval is invalid");const r=e instanceof W?e:new W(e,n);if(O.throwOnInvalid)throw new Kn(r);return new S({invalid:r})}static fromDateTimes(e,n){const r=ue(e),s=ue(n),i=Ds(r,s);return i??new S({start:r,end:s})}static after(e,n){const r=g.fromDurationLike(n),s=ue(e);return S.fromDateTimes(s,s.plus(r))}static before(e,n){const r=g.fromDurationLike(n),s=ue(e);return S.fromDateTimes(s.minus(r),s)}static fromISO(e,n){const[r,s]=(e||"").split("/",2);if(r&&s){let i,a;try{i=f.fromISO(r,n),a=i.isValid}catch{a=!1}let o,u;try{o=f.fromISO(s,n),u=o.isValid}catch{u=!1}if(a&&u)return S.fromDateTimes(i,o);if(a){const l=g.fromISO(s,n);if(l.isValid)return S.after(i,l)}else if(u){const l=g.fromISO(r,n);if(l.isValid)return S.before(o,l)}}return S.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const r=this.start.startOf(e,n);let s;return n?.useLocaleWeeks?s=this.end.reconfigure({locale:r.locale}):s=this.end,s=s.startOf(e,n),Math.floor(s.diff(r,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?S.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(ue).filter(a=>this.contains(a)).sort((a,o)=>a.toMillis()-o.toMillis()),r=[];let{s}=this,i=0;for(;s<this.e;){const a=n[i]||this.e,o=+a>+this.e?this.e:a;r.push(S.fromDateTimes(s,o)),s=o,i+=1}return r}splitBy(e){const n=g.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,i;const a=[];for(;r<this.e;){const o=this.start.plus(n.mapUnits(u=>u*s));i=+o>+this.e?this.e:o,a.push(S.fromDateTimes(r,i)),r=i,s+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return n>=r?null:S.fromDateTimes(n,r)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return S.fromDateTimes(n,r)}static merge(e){const[n,r]=e.sort((s,i)=>s.s-i.s).reduce(([s,i],a)=>i?i.overlaps(a)||i.abutsStart(a)?[s,i.union(a)]:[s.concat([i]),a]:[s,a],[[],null]);return r&&n.push(r),n}static xor(e){let n=null,r=0;const s=[],i=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...i),o=a.sort((u,l)=>u.time-l.time);for(const u of o)r+=u.type==="s"?1:-1,r===1?n=u.time:(n&&+n!=+u.time&&s.push(S.fromDateTimes(n,u.time)),n=null);return S.merge(s)}difference(...e){return S.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:j}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ee,n={}){return this.isValid?N.create(this.s.loc.clone(n),e).formatInterval(this):j}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:j}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:j}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:j}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:j}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):g.invalid(this.invalidReason)}mapEndpoints(e){return S.fromDateTimes(e(this.s),e(this.e))}}class Se{static hasDST(e=O.defaultZone){const n=f.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return z.isValidZone(e)}static normalizeZone(e){return R(e,O.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||T.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||T.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||T.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||T.create(n,r,i)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||T.create(n,r,i)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||T.create(n,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||T.create(n,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return T.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return T.create(n,null,"gregory").eras(e)}static features(){return{relative:wn(),localeWeek:Tn()}}}function Vt(t,e){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(g.fromMillis(r).as("days"))}function xs(t,e,n){const r=[["years",(u,l)=>l.year-u.year],["quarters",(u,l)=>l.quarter-u.quarter+(l.year-u.year)*4],["months",(u,l)=>l.month-u.month+(l.year-u.year)*12],["weeks",(u,l)=>{const d=Vt(u,l);return(d-d%7)/7}],["days",Vt]],s={},i=t;let a,o;for(const[u,l]of r)n.indexOf(u)>=0&&(a=u,s[u]=l(t,e),o=i.plus(s),o>e?(s[u]--,t=i.plus(s),t>e&&(o=t,s[u]--,t=i.plus(s))):t=o);return[t,s,o,a]}function Fs(t,e,n,r){let[s,i,a,o]=xs(t,e,n);const u=e-s,l=n.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);l.length===0&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+u/(a-s)));const d=g.fromObject(i,r);return l.length>0?g.fromMillis(u,r).shiftTo(...l).plus(d):d}const bs="missing Intl.DateTimeFormat.formatToParts support";function w(t,e=n=>n){return{regex:t,deser:([n])=>e(Or(n))}}const Vs=" ",$n=`[ ${Vs}]`,Zn=new RegExp($n,"g");function Cs(t){return t.replace(/\./g,"\\.?").replace(Zn,$n)}function Ct(t){return t.replace(/\./g,"").replace(Zn," ").toLowerCase()}function C(t,e){return t===null?null:{regex:RegExp(t.map(Cs).join("|")),deser:([n])=>t.findIndex(r=>Ct(n)===Ct(r))+e}}function Wt(t,e){return{regex:t,deser:([,n,r])=>We(n,r),groups:e}}function Oe(t){return{regex:t,deser:([e])=>e}}function Ws(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ls(t,e){const n=V(e),r=V(e,"{2}"),s=V(e,"{3}"),i=V(e,"{4}"),a=V(e,"{6}"),o=V(e,"{1,2}"),u=V(e,"{1,3}"),l=V(e,"{1,6}"),d=V(e,"{1,9}"),y=V(e,"{2,4}"),k=V(e,"{4,6}"),h=$=>({regex:RegExp(Ws($.val)),deser:([_])=>_,literal:!0}),b=($=>{if(t.literal)return h($);switch($.val){case"G":return C(e.eras("short"),0);case"GG":return C(e.eras("long"),0);case"y":return w(l);case"yy":return w(y,et);case"yyyy":return w(i);case"yyyyy":return w(k);case"yyyyyy":return w(a);case"M":return w(o);case"MM":return w(r);case"MMM":return C(e.months("short",!0),1);case"MMMM":return C(e.months("long",!0),1);case"L":return w(o);case"LL":return w(r);case"LLL":return C(e.months("short",!1),1);case"LLLL":return C(e.months("long",!1),1);case"d":return w(o);case"dd":return w(r);case"o":return w(u);case"ooo":return w(s);case"HH":return w(r);case"H":return w(o);case"hh":return w(r);case"h":return w(o);case"mm":return w(r);case"m":return w(o);case"q":return w(o);case"qq":return w(r);case"s":return w(o);case"ss":return w(r);case"S":return w(u);case"SSS":return w(s);case"u":return Oe(d);case"uu":return Oe(o);case"uuu":return w(n);case"a":return C(e.meridiems(),0);case"kkkk":return w(i);case"kk":return w(y,et);case"W":return w(o);case"WW":return w(r);case"E":case"c":return w(n);case"EEE":return C(e.weekdays("short",!1),1);case"EEEE":return C(e.weekdays("long",!1),1);case"ccc":return C(e.weekdays("short",!0),1);case"cccc":return C(e.weekdays("long",!0),1);case"Z":case"ZZ":return Wt(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return Wt(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return Oe(/[a-z_+-/]{1,256}?/i);case" ":return Oe(/[^\S\n\r]/);default:return h($)}})(t)||{invalidReason:bs};return b.token=t,b}const $s={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Zs(t,e,n){const{type:r,value:s}=t;if(r==="literal"){const u=/^\s+$/.test(s);return{literal:!u,val:u?" ":s}}const i=e[r];let a=r;r==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=n.hour12?"hour12":"hour24");let o=$s[a];if(typeof o=="object"&&(o=o[i]),o)return{literal:!1,val:o}}function zs(t){return[`^${t.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,t]}function As(t,e,n){const r=t.match(e);if(r){const s={};let i=1;for(const a in n)if(ee(n,a)){const o=n[a],u=o.groups?o.groups+1:1;!o.literal&&o.token&&(s[o.token.val[0]]=o.deser(r.slice(i,i+u))),i+=u}return[r,s]}else return[r,{}]}function Us(t){const e=i=>{switch(i){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return m(t.z)||(n=z.create(t.z)),m(t.Z)||(n||(n=new I(t.Z)),r=t.Z),m(t.q)||(t.M=(t.q-1)*3+1),m(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),m(t.u)||(t.S=it(t.u)),[Object.keys(t).reduce((i,a)=>{const o=e(a);return o&&(i[o]=t[a]),i},{}),n,r]}let Ue=null;function Rs(){return Ue||(Ue=f.fromMillis(1555555555555)),Ue}function qs(t,e){if(t.literal)return t;const n=N.macroTokenToFormatOpts(t.val),r=Rn(n,e);return r==null||r.includes(void 0)?t:r}function zn(t,e){return Array.prototype.concat(...t.map(n=>qs(n,e)))}class An{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=zn(N.parseFormat(n),e),this.units=this.tokens.map(r=>Ls(r,e)),this.disqualifyingUnit=this.units.find(r=>r.invalidReason),!this.disqualifyingUnit){const[r,s]=zs(this.units);this.regex=RegExp(r,"i"),this.handlers=s}}explainFromTokens(e){if(this.isValid){const[n,r]=As(e,this.regex,this.handlers),[s,i,a]=r?Us(r):[null,null,void 0];if(ee(r,"a")&&ee(r,"H"))throw new Q("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:r,result:s,zone:i,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Un(t,e,n){return new An(t,n).explainFromTokens(e)}function Hs(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=Un(t,e,n);return[r,s,i,a]}function Rn(t,e){if(!t)return null;const r=N.create(e,t).dtFormatter(Rs()),s=r.formatToParts(),i=r.resolvedOptions();return s.map(a=>Zs(a,t,i))}const Re="Invalid DateTime",Lt=864e13;function ce(t){return new W("unsupported zone",`the zone "${t.name}" is not supported`)}function qe(t){return t.weekData===null&&(t.weekData=De(t.c)),t.weekData}function He(t){return t.localWeekData===null&&(t.localWeekData=De(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Y(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new f({...n,...e,old:n})}function qn(t,e,n){let r=t-e*60*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=(s-e)*60*1e3;const i=n.offset(r);return s===i?[r,s]:[t-Math.min(s,i)*60*1e3,Math.max(s,i)]}function pe(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Me(t,e,n){return qn(Ce(t),e,n)}function $t(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,i={...t.c,year:r,month:s,day:Math.min(t.c.day,xe(r,s))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=g.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Ce(i);let[u,l]=qn(o,n,t.zone);return a!==0&&(u+=a,l=t.zone.offset(u)),{ts:u,o:l}}function B(t,e,n,r,s,i){const{setZone:a,zone:o}=n;if(t&&Object.keys(t).length!==0||e){const u=e||o,l=f.fromObject(t,{...n,zone:u,specificOffset:i});return a?l:l.setZone(o)}else return f.invalid(new W("unparsable",`the input "${s}" can't be parsed as ${r}`))}function ve(t,e,n=!0){return t.isValid?N.create(T.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Ye(t,e,n){const r=t.c.year>9999||t.c.year<0;let s="";if(r&&t.c.year>=0&&(s+="+"),s+=v(t.c.year,r?6:4),n==="year")return s;if(e){if(s+="-",s+=v(t.c.month),n==="month")return s;s+="-"}else if(s+=v(t.c.month),n==="month")return s;return s+=v(t.c.day),s}function Zt(t,e,n,r,s,i,a){let o=!n||t.c.millisecond!==0||t.c.second!==0,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=v(t.c.hour),a==="hour")break;if(e){if(u+=":",u+=v(t.c.minute),a==="minute")break;o&&(u+=":",u+=v(t.c.second))}else{if(u+=v(t.c.minute),a==="minute")break;o&&(u+=v(t.c.second))}if(a==="second")break;o&&(!r||t.c.millisecond!==0)&&(u+=".",u+=v(t.c.millisecond,3))}return s&&(t.isOffsetFixed&&t.offset===0&&!i?u+="Z":t.o<0?(u+="-",u+=v(Math.trunc(-t.o/60)),u+=":",u+=v(Math.trunc(-t.o%60))):(u+="+",u+=v(Math.trunc(t.o/60)),u+=":",u+=v(Math.trunc(t.o%60)))),i&&(u+="["+t.zone.ianaName+"]"),u}const Hn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ys={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ps={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Ne=["year","month","day","hour","minute","second","millisecond"],Gs=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],_s=["year","ordinal","hour","minute","second","millisecond"];function Ie(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new qt(t);return e}function zt(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Ie(t)}}function Js(t){if(fe===void 0&&(fe=O.now()),t.type!=="iana")return t.offset(fe);const e=t.name;let n=tt.get(e);return n===void 0&&(n=t.offset(fe),tt.set(e,n)),n}function At(t,e){const n=R(e.zone,O.defaultZone);if(!n.isValid)return f.invalid(ce(n));const r=T.fromObject(e);let s,i;if(m(t.year))s=O.now();else{for(const u of Ne)m(t[u])&&(t[u]=Hn[u]);const a=yn(t)||gn(t);if(a)return f.invalid(a);const o=Js(n);[s,i]=Me(t,o,n)}return new f({ts:s,zone:n,loc:r,o:i})}function Ut(t,e,n){const r=m(n.round)?!0:n.round,s=m(n.rounding)?"trunc":n.rounding,i=(o,u)=>(o=at(o,r||n.calendary?0:2,n.calendary?"round":s),e.loc.clone(n).relFormatter(n).format(o,u)),a=o=>n.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(n.unit)return i(a(n.unit),n.unit);for(const o of n.units){const u=a(o);if(Math.abs(u)>=1)return i(u,o)}return i(t>e?-0:0,n.units[n.units.length-1])}function Rt(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let fe;const tt=new Map;class f{constructor(e){const n=e.zone||O.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new W("invalid input"):null)||(n.isValid?null:ce(n));this.ts=m(e.ts)?O.now():e.ts;let s=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[s,i]=[e.old.c,e.old.o];else{const o=q(e.o)&&!e.old?e.o:n.offset(this.ts);s=pe(this.ts,o),r=Number.isNaN(s.year)?new W("invalid input"):null,s=r?null:s,i=r?null:o}this._zone=n,this.loc=e.loc||T.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new f({})}static local(){const[e,n]=Rt(arguments),[r,s,i,a,o,u,l]=n;return At({year:r,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static utc(){const[e,n]=Rt(arguments),[r,s,i,a,o,u,l]=n;return e.zone=I.utcInstance,At({year:r,month:s,day:i,hour:a,minute:o,second:u,millisecond:l},e)}static fromJSDate(e,n={}){const r=Ir(e)?e.valueOf():NaN;if(Number.isNaN(r))return f.invalid("invalid input");const s=R(n.zone,O.defaultZone);return s.isValid?new f({ts:r,zone:s,loc:T.fromObject(n)}):f.invalid(ce(s))}static fromMillis(e,n={}){if(q(e))return e<-Lt||e>Lt?f.invalid("Timestamp out of range"):new f({ts:e,zone:R(n.zone,O.defaultZone),loc:T.fromObject(n)});throw new M(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(q(e))return new f({ts:e*1e3,zone:R(n.zone,O.defaultZone),loc:T.fromObject(n)});throw new M("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const r=R(n.zone,O.defaultZone);if(!r.isValid)return f.invalid(ce(r));const s=T.fromObject(n),i=Fe(e,zt),{minDaysInFirstWeek:a,startOfWeek:o}=Mt(i,s),u=O.now(),l=m(n.specificOffset)?r.offset(u):n.specificOffset,d=!m(i.ordinal),y=!m(i.year),k=!m(i.month)||!m(i.day),h=y||k,p=i.weekYear||i.weekNumber;if((h||d)&&p)throw new Q("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(k&&d)throw new Q("Can't mix ordinal dates with month/day");const b=p||i.weekday&&!h;let $,_,ie=pe(u,l);b?($=Gs,_=Ys,ie=De(ie,a,o)):d?($=_s,_=Ps,ie=Ae(ie)):($=Ne,_=Hn);let ct=!1;for(const oe of $){const Jn=i[oe];m(Jn)?ct?i[oe]=_[oe]:i[oe]=ie[oe]:ct=!0}const Yn=b?vr(i,a,o):d?Mr(i):yn(i),ft=Yn||gn(i);if(ft)return f.invalid(ft);const Pn=b?pt(i,a,o):d?vt(i):i,[Gn,_n]=Me(Pn,l,r),ae=new f({ts:Gn,zone:r,o:_n,loc:s});return i.weekday&&h&&e.weekday!==ae.weekday?f.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${ae.toISO()}`):ae.isValid?ae:f.invalid(ae.invalid)}static fromISO(e,n={}){const[r,s]=ys(e);return B(r,s,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[r,s]=gs(e);return B(r,s,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[r,s]=ws(e);return B(r,s,n,"HTTP",n)}static fromFormat(e,n,r={}){if(m(e)||m(n))throw new M("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=r,a=T.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[o,u,l,d]=Hs(a,e,n);return d?f.invalid(d):B(o,u,r,`format ${n}`,e,l)}static fromString(e,n,r={}){return f.fromFormat(e,n,r)}static fromSQL(e,n={}){const[r,s]=Ms(e);return B(r,s,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new M("need to specify a reason the DateTime is invalid");const r=e instanceof W?e:new W(e,n);if(O.throwOnInvalid)throw new Qn(r);return new f({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const r=Rn(e,T.fromObject(n));return r?r.map(s=>s?s.val:null).join(""):null}static expandFormat(e,n={}){return zn(N.parseFormat(e),T.fromObject(n)).map(s=>s.val).join("")}static resetCache(){fe=void 0,tt.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?qe(this).weekYear:NaN}get weekNumber(){return this.isValid?qe(this).weekNumber:NaN}get weekday(){return this.isValid?qe(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?He(this).weekday:NaN}get localWeekNumber(){return this.isValid?He(this).weekNumber:NaN}get localWeekYear(){return this.isValid?He(this).weekYear:NaN}get ordinal(){return this.isValid?Ae(this.c).ordinal:NaN}get monthShort(){return this.isValid?Se.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Se.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Se.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Se.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,r=Ce(this.c),s=this.zone.offset(r-e),i=this.zone.offset(r+e),a=this.zone.offset(r-s*n),o=this.zone.offset(r-i*n);if(a===o)return[this];const u=r-a*n,l=r-o*n,d=pe(u,a),y=pe(l,o);return d.hour===y.hour&&d.minute===y.minute&&d.second===y.second&&d.millisecond===y.millisecond?[Y(this,{ts:u}),Y(this,{ts:l})]:[this]}get isInLeapYear(){return ye(this.year)}get daysInMonth(){return xe(this.year,this.month)}get daysInYear(){return this.isValid?K(this.year):NaN}get weeksInWeekYear(){return this.isValid?he(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?he(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:r,calendar:s}=N.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(e=0,n={}){return this.setZone(I.instance(e),n)}toLocal(){return this.setZone(O.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(e=R(e,O.defaultZone),e.equals(this.zone))return this;if(e.isValid){let s=this.ts;if(n||r){const i=e.offset(this.ts),a=this.toObject();[s]=Me(a,i,e)}return Y(this,{ts:s,zone:e})}else return f.invalid(ce(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:r});return Y(this,{loc:s})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Fe(e,zt),{minDaysInFirstWeek:r,startOfWeek:s}=Mt(n,this.loc),i=!m(n.weekYear)||!m(n.weekNumber)||!m(n.weekday),a=!m(n.ordinal),o=!m(n.year),u=!m(n.month)||!m(n.day),l=o||u,d=n.weekYear||n.weekNumber;if((l||a)&&d)throw new Q("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new Q("Can't mix ordinal dates with month/day");let y;i?y=pt({...De(this.c,r,s),...n},r,s):m(n.ordinal)?(y={...this.toObject(),...n},m(n.day)&&(y.day=Math.min(xe(y.year,y.month),y.day))):y=vt({...Ae(this.c),...n});const[k,h]=Me(y,this.o,this.zone);return Y(this,{ts:k,o:h})}plus(e){if(!this.isValid)return this;const n=g.fromDurationLike(e);return Y(this,$t(this,n))}minus(e){if(!this.isValid)return this;const n=g.fromDurationLike(e).negate();return Y(this,$t(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const r={},s=g.normalizeUnit(e);switch(s){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0;break}if(s==="weeks")if(n){const i=this.loc.getStartOfWeek(),{weekday:a}=this;a<i&&(r.weekNumber=this.weekNumber-1),r.weekday=i}else r.weekday=1;if(s==="quarters"){const i=Math.ceil(this.month/3);r.month=(i-1)*3+1}return this.set(r)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?N.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):Re}toLocaleString(e=Ee,n={}){return this.isValid?N.create(this.loc.clone(n),e).formatDateTime(this):Re}toLocaleParts(e={}){return this.isValid?N.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0,extendedZone:i=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=Ie(a);const o=e==="extended";let u=Ye(this,o,a);return Ne.indexOf(a)>=3&&(u+="T"),u+=Zt(this,o,n,r,s,i,a),u}toISODate({format:e="extended",precision:n="day"}={}){return this.isValid?Ye(this,e==="extended",Ie(n)):null}toISOWeekDate(){return ve(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,extendedZone:i=!1,format:a="extended",precision:o="milliseconds"}={}){return this.isValid?(o=Ie(o),(s&&Ne.indexOf(o)>=3?"T":"")+Zt(this,a==="extended",n,e,r,i,o)):null}toRFC2822(){return ve(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ve(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Ye(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||e)&&(r&&(s+=" "),n?s+="z":e&&(s+="ZZ")),ve(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Re}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",r={}){if(!this.isValid||!e.isValid)return g.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=Er(n).map(g.normalizeUnit),a=e.valueOf()>this.valueOf(),o=a?this:e,u=a?e:this,l=Fs(o,u,i,s);return a?l.negate():l}diffNow(e="milliseconds",n={}){return this.diff(f.now(),e,n)}until(e){return this.isValid?S.fromDateTimes(this,e):this}hasSame(e,n,r){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(n,r)<=s&&s<=i.endOf(n,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||f.fromObject({},{zone:this.zone}),r=e.padding?this<n?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),Ut(n,this.plus(r),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?Ut(e.base||f.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(f.isDateTime))throw new M("min requires all arguments be DateTimes");return Nt(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(f.isDateTime))throw new M("max requires all arguments be DateTimes");return Nt(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,r={}){const{locale:s=null,numberingSystem:i=null}=r,a=T.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});return Un(a,e,n)}static fromStringExplain(e,n,r={}){return f.fromFormatExplain(e,n,r)}static buildFormatParser(e,n={}){const{locale:r=null,numberingSystem:s=null}=n,i=T.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});return new An(i,e)}static fromFormatParser(e,n,r={}){if(m(e)||m(n))throw new M("fromFormatParser requires an input string and a format parser");const{locale:s=null,numberingSystem:i=null}=r,a=T.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0});if(!a.equals(n.locale))throw new M(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${n.locale}`);const{result:o,zone:u,specificOffset:l,invalidReason:d}=n.explainFromTokens(e);return d?f.invalid(d):B(o,u,r,`format ${n.format}`,e,l)}static get DATE_SHORT(){return Ee}static get DATE_MED(){return Ht}static get DATE_MED_WITH_WEEKDAY(){return er}static get DATE_FULL(){return Yt}static get DATE_HUGE(){return Pt}static get TIME_SIMPLE(){return Gt}static get TIME_WITH_SECONDS(){return _t}static get TIME_WITH_SHORT_OFFSET(){return Jt}static get TIME_WITH_LONG_OFFSET(){return jt}static get TIME_24_SIMPLE(){return Bt}static get TIME_24_WITH_SECONDS(){return Qt}static get TIME_24_WITH_SHORT_OFFSET(){return Kt}static get TIME_24_WITH_LONG_OFFSET(){return Xt}static get DATETIME_SHORT(){return en}static get DATETIME_SHORT_WITH_SECONDS(){return tn}static get DATETIME_MED(){return nn}static get DATETIME_MED_WITH_SECONDS(){return rn}static get DATETIME_MED_WITH_WEEKDAY(){return tr}static get DATETIME_FULL(){return sn}static get DATETIME_FULL_WITH_SECONDS(){return an}static get DATETIME_HUGE(){return on}static get DATETIME_HUGE_WITH_SECONDS(){return un}}function ue(t){if(f.isDateTime(t))return t;if(t&&t.valueOf&&q(t.valueOf()))return f.fromJSDate(t);if(t&&typeof t=="object")return f.fromObject(t);throw new M(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function Te(){const t=jn.currentProject?.organizationId;if(t){const e=Bn.getTimezoneForOrganization(t);if(e)return e}return f.local().zoneName||"UTC"}function Bs(t){const e=t.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?Z$/);if(!e)return new Date(t).getTime();const[,n,r,s,i,a,o,u]=e,l=Date.UTC(+n,+r-1,+s,+i,+a,+o);return u?l+parseFloat("0."+u)*1e3:l}function Qs(t){const e=t/1e6;return e<1?`${(t/1e3).toFixed(0)}µs`:e<1e3?`${e.toFixed(0)}ms`:`${(e/1e3).toFixed(1)}s`}function Ks(t){return t<1?`${(t*1e3).toFixed(0)} µs`:t<1e3?`${t.toFixed(0)} ms`:`${(t/1e3).toFixed(2)} s`}function Xs(t){return t>=200&&t<300?"text-green-500":t>=300&&t<400?"text-blue-500":t>=400&&t<500?"text-yellow-500":"text-red-500"}function ei(t,e=70){const n=t.split(`
`)[0];return n.length>e?n.slice(0,e)+"...":n}function ti(t,e){const n=e??Te(),r=f.fromISO(t,{zone:"utc"}).setZone(n),i=f.now().setZone(n).toMillis()-r.toMillis(),a=Math.floor(i/6e4),o=Math.floor(i/36e5),u=Math.floor(i/864e5);return a<1?"just now":a<60?`${a}m`:o<24?`${o}h`:`${u}d`}function ni(t,e={}){const n=e.timezone??Te(),r=typeof t=="string"?t:t instanceof Date?t.toISOString():new Date(t).toISOString(),s=f.fromISO(r,{zone:"utc"}).setZone(n);if(!s.isValid)return"Invalid date";switch(e.format){case"full":return s.toLocaleString(f.DATETIME_FULL);case"short":return s.toLocaleString(f.DATETIME_SHORT);case"date":return s.toLocaleString(f.DATE_MED);case"time":return s.toLocaleString(f.TIME_SIMPLE);case"iso":return s.toISO()??"";default:return s.toLocaleString(f.DATETIME_MED)}}function ri(t){const e=t??Te();return f.now().setZone(e)}function si(t){return{year:t.year,month:t.month,day:t.day,hour:t.hour,minute:t.minute,second:t.second}}function ii(t,e){const n=e??Te();return f.fromObject({year:t.year,month:t.month,day:t.day,hour:t.hour??0,minute:t.minute??0,second:t.second??0},{zone:n})}function ai(t){return t.toUTC().toISO()??""}function oi(t,e){const n=e??Te();return f.fromISO(t,{zone:"utc"}).setZone(n)}export{f as D,ti as a,Qs as b,ii as c,Ks as d,ei as e,ni as f,Te as g,Xs as h,ri as i,Bs as j,si as l,oi as p,ai as t};
diff --git a/backend/static/frontend/_app/immutable/chunks/DJdWGDax.js.map b/backend/static/frontend/_app/immutable/chunks/Dq-0lVru.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/DJdWGDax.js.map
rename to backend/static/frontend/_app/immutable/chunks/Dq-0lVru.js.map
index dd8263b1..1198463d 100644
--- a/backend/static/frontend/_app/immutable/chunks/DJdWGDax.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/Dq-0lVru.js.map
@@ -1 +1 @@
-{"version":3,"file":"DJdWGDax.js","sources":["../../../../../../node_modules/luxon/build/es6/luxon.mjs","../../../../../../src/lib/state/timezone.svelte.ts","../../../../../../src/lib/utils/formatters.ts"],"sourcesContent":["// these aren't really private, but nor are they really useful to document\n\n/**\n * @private\n */\nclass LuxonError extends Error {}\n\n/**\n * @private\n */\nclass InvalidDateTimeError extends LuxonError {\n constructor(reason) {\n super(`Invalid DateTime: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nclass InvalidIntervalError extends LuxonError {\n constructor(reason) {\n super(`Invalid Interval: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nclass InvalidDurationError extends LuxonError {\n constructor(reason) {\n super(`Invalid Duration: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nclass ConflictingSpecificationError extends LuxonError {}\n\n/**\n * @private\n */\nclass InvalidUnitError extends LuxonError {\n constructor(unit) {\n super(`Invalid unit ${unit}`);\n }\n}\n\n/**\n * @private\n */\nclass InvalidArgumentError extends LuxonError {}\n\n/**\n * @private\n */\nclass ZoneIsAbstractError extends LuxonError {\n constructor() {\n super(\"Zone is an abstract class\");\n }\n}\n\n/**\n * @private\n */\n\nconst n = \"numeric\",\n s = \"short\",\n l = \"long\";\n\nconst DATE_SHORT = {\n year: n,\n month: n,\n day: n,\n};\n\nconst DATE_MED = {\n year: n,\n month: s,\n day: n,\n};\n\nconst DATE_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n};\n\nconst DATE_FULL = {\n year: n,\n month: l,\n day: n,\n};\n\nconst DATE_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n};\n\nconst TIME_SIMPLE = {\n hour: n,\n minute: n,\n};\n\nconst TIME_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n};\n\nconst TIME_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s,\n};\n\nconst TIME_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l,\n};\n\nconst TIME_24_SIMPLE = {\n hour: n,\n minute: n,\n hourCycle: \"h23\",\n};\n\nconst TIME_24_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n};\n\nconst TIME_24_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: s,\n};\n\nconst TIME_24_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: l,\n};\n\nconst DATETIME_SHORT = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n};\n\nconst DATETIME_SHORT_WITH_SECONDS = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nconst DATETIME_MED = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n};\n\nconst DATETIME_MED_WITH_SECONDS = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nconst DATETIME_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n hour: n,\n minute: n,\n};\n\nconst DATETIME_FULL = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n timeZoneName: s,\n};\n\nconst DATETIME_FULL_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s,\n};\n\nconst DATETIME_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n timeZoneName: l,\n};\n\nconst DATETIME_HUGE_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l,\n};\n\n/**\n * @interface\n */\nclass Zone {\n /**\n * The type of zone\n * @abstract\n * @type {string}\n */\n get type() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The name of this zone.\n * @abstract\n * @type {string}\n */\n get name() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The IANA name of this zone.\n * Defaults to `name` if not overwritten by a subclass.\n * @abstract\n * @type {string}\n */\n get ianaName() {\n return this.name;\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year.\n * @abstract\n * @type {boolean}\n */\n get isUniversal() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, opts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's value as a string\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @abstract\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is valid.\n * @abstract\n * @type {boolean}\n */\n get isValid() {\n throw new ZoneIsAbstractError();\n }\n}\n\nlet singleton$1 = null;\n\n/**\n * Represents the local zone for this JavaScript environment.\n * @implements {Zone}\n */\nclass SystemZone extends Zone {\n /**\n * Get a singleton instance of the local zone\n * @return {SystemZone}\n */\n static get instance() {\n if (singleton$1 === null) {\n singleton$1 = new SystemZone();\n }\n return singleton$1;\n }\n\n /** @override **/\n get type() {\n return \"system\";\n }\n\n /** @override **/\n get name() {\n return new Intl.DateTimeFormat().resolvedOptions().timeZone;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n return -new Date(ts).getTimezoneOffset();\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"system\";\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\n\nconst dtfCache = new Map();\nfunction makeDTF(zoneName) {\n let dtf = dtfCache.get(zoneName);\n if (dtf === undefined) {\n dtf = new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone: zoneName,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n era: \"short\",\n });\n dtfCache.set(zoneName, dtf);\n }\n return dtf;\n}\n\nconst typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n era: 3,\n hour: 4,\n minute: 5,\n second: 6,\n};\n\nfunction hackyOffset(dtf, date) {\n const formatted = dtf.format(date).replace(/\\u200E/g, \"\"),\n parsed = /(\\d+)\\/(\\d+)\\/(\\d+) (AD|BC),? (\\d+):(\\d+):(\\d+)/.exec(formatted),\n [, fMonth, fDay, fYear, fadOrBc, fHour, fMinute, fSecond] = parsed;\n return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond];\n}\n\nfunction partsOffset(dtf, date) {\n const formatted = dtf.formatToParts(date);\n const filled = [];\n for (let i = 0; i < formatted.length; i++) {\n const { type, value } = formatted[i];\n const pos = typeToPos[type];\n\n if (type === \"era\") {\n filled[pos] = value;\n } else if (!isUndefined(pos)) {\n filled[pos] = parseInt(value, 10);\n }\n }\n return filled;\n}\n\nconst ianaZoneCache = new Map();\n/**\n * A zone identified by an IANA identifier, like America/New_York\n * @implements {Zone}\n */\nclass IANAZone extends Zone {\n /**\n * @param {string} name - Zone name\n * @return {IANAZone}\n */\n static create(name) {\n let zone = ianaZoneCache.get(name);\n if (zone === undefined) {\n ianaZoneCache.set(name, (zone = new IANAZone(name)));\n }\n return zone;\n }\n\n /**\n * Reset local caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCache() {\n ianaZoneCache.clear();\n dtfCache.clear();\n }\n\n /**\n * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.\n * @param {string} s - The string to check validity on\n * @example IANAZone.isValidSpecifier(\"America/New_York\") //=> true\n * @example IANAZone.isValidSpecifier(\"Sport~~blorp\") //=> false\n * @deprecated For backward compatibility, this forwards to isValidZone, better use `isValidZone()` directly instead.\n * @return {boolean}\n */\n static isValidSpecifier(s) {\n return this.isValidZone(s);\n }\n\n /**\n * Returns whether the provided string identifies a real zone\n * @param {string} zone - The string to check\n * @example IANAZone.isValidZone(\"America/New_York\") //=> true\n * @example IANAZone.isValidZone(\"Fantasia/Castle\") //=> false\n * @example IANAZone.isValidZone(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */\n static isValidZone(zone) {\n if (!zone) {\n return false;\n }\n try {\n new Intl.DateTimeFormat(\"en-US\", { timeZone: zone }).format();\n return true;\n } catch (e) {\n return false;\n }\n }\n\n constructor(name) {\n super();\n /** @private **/\n this.zoneName = name;\n /** @private **/\n this.valid = IANAZone.isValidZone(name);\n }\n\n /**\n * The type of zone. `iana` for all instances of `IANAZone`.\n * @override\n * @type {string}\n */\n get type() {\n return \"iana\";\n }\n\n /**\n * The name of this zone (i.e. the IANA zone name).\n * @override\n * @type {string}\n */\n get name() {\n return this.zoneName;\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year:\n * Always returns false for all IANA zones.\n * @override\n * @type {boolean}\n */\n get isUniversal() {\n return false;\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale, this.name);\n }\n\n /**\n * Returns the offset's value as a string\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @override\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n if (!this.valid) return NaN;\n const date = new Date(ts);\n\n if (isNaN(date)) return NaN;\n\n const dtf = makeDTF(this.name);\n let [year, month, day, adOrBc, hour, minute, second] = dtf.formatToParts\n ? partsOffset(dtf, date)\n : hackyOffset(dtf, date);\n\n if (adOrBc === \"BC\") {\n year = -Math.abs(year) + 1;\n }\n\n // because we're using hour12 and https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat\n const adjustedHour = hour === 24 ? 0 : hour;\n\n const asUTC = objToLocalTS({\n year,\n month,\n day,\n hour: adjustedHour,\n minute,\n second,\n millisecond: 0,\n });\n\n let asTS = +date;\n const over = asTS % 1000;\n asTS -= over >= 0 ? over : 1000 + over;\n return (asUTC - asTS) / (60 * 1000);\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @override\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n return otherZone.type === \"iana\" && otherZone.name === this.name;\n }\n\n /**\n * Return whether this Zone is valid.\n * @override\n * @type {boolean}\n */\n get isValid() {\n return this.valid;\n }\n}\n\n// todo - remap caching\n\nlet intlLFCache = {};\nfunction getCachedLF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlLFCache[key];\n if (!dtf) {\n dtf = new Intl.ListFormat(locString, opts);\n intlLFCache[key] = dtf;\n }\n return dtf;\n}\n\nconst intlDTCache = new Map();\nfunction getCachedDTF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlDTCache.get(key);\n if (dtf === undefined) {\n dtf = new Intl.DateTimeFormat(locString, opts);\n intlDTCache.set(key, dtf);\n }\n return dtf;\n}\n\nconst intlNumCache = new Map();\nfunction getCachedINF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let inf = intlNumCache.get(key);\n if (inf === undefined) {\n inf = new Intl.NumberFormat(locString, opts);\n intlNumCache.set(key, inf);\n }\n return inf;\n}\n\nconst intlRelCache = new Map();\nfunction getCachedRTF(locString, opts = {}) {\n const { base, ...cacheKeyOpts } = opts; // exclude `base` from the options\n const key = JSON.stringify([locString, cacheKeyOpts]);\n let inf = intlRelCache.get(key);\n if (inf === undefined) {\n inf = new Intl.RelativeTimeFormat(locString, opts);\n intlRelCache.set(key, inf);\n }\n return inf;\n}\n\nlet sysLocaleCache = null;\nfunction systemLocale() {\n if (sysLocaleCache) {\n return sysLocaleCache;\n } else {\n sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale;\n return sysLocaleCache;\n }\n}\n\nconst intlResolvedOptionsCache = new Map();\nfunction getCachedIntResolvedOptions(locString) {\n let opts = intlResolvedOptionsCache.get(locString);\n if (opts === undefined) {\n opts = new Intl.DateTimeFormat(locString).resolvedOptions();\n intlResolvedOptionsCache.set(locString, opts);\n }\n return opts;\n}\n\nconst weekInfoCache = new Map();\nfunction getCachedWeekInfo(locString) {\n let data = weekInfoCache.get(locString);\n if (!data) {\n const locale = new Intl.Locale(locString);\n // browsers currently implement this as a property, but spec says it should be a getter function\n data = \"getWeekInfo\" in locale ? locale.getWeekInfo() : locale.weekInfo;\n // minimalDays was removed from WeekInfo: https://github.com/tc39/proposal-intl-locale-info/issues/86\n if (!(\"minimalDays\" in data)) {\n data = { ...fallbackWeekSettings, ...data };\n }\n weekInfoCache.set(locString, data);\n }\n return data;\n}\n\nfunction parseLocaleString(localeStr) {\n // I really want to avoid writing a BCP 47 parser\n // see, e.g. https://github.com/wooorm/bcp-47\n // Instead, we'll do this:\n\n // a) if the string has no -u extensions, just leave it alone\n // b) if it does, use Intl to resolve everything\n // c) if Intl fails, try again without the -u\n\n // private subtags and unicode subtags have ordering requirements,\n // and we're not properly parsing this, so just strip out the\n // private ones if they exist.\n const xIndex = localeStr.indexOf(\"-x-\");\n if (xIndex !== -1) {\n localeStr = localeStr.substring(0, xIndex);\n }\n\n const uIndex = localeStr.indexOf(\"-u-\");\n if (uIndex === -1) {\n return [localeStr];\n } else {\n let options;\n let selectedStr;\n try {\n options = getCachedDTF(localeStr).resolvedOptions();\n selectedStr = localeStr;\n } catch (e) {\n const smaller = localeStr.substring(0, uIndex);\n options = getCachedDTF(smaller).resolvedOptions();\n selectedStr = smaller;\n }\n\n const { numberingSystem, calendar } = options;\n return [selectedStr, numberingSystem, calendar];\n }\n}\n\nfunction intlConfigString(localeStr, numberingSystem, outputCalendar) {\n if (outputCalendar || numberingSystem) {\n if (!localeStr.includes(\"-u-\")) {\n localeStr += \"-u\";\n }\n\n if (outputCalendar) {\n localeStr += `-ca-${outputCalendar}`;\n }\n\n if (numberingSystem) {\n localeStr += `-nu-${numberingSystem}`;\n }\n return localeStr;\n } else {\n return localeStr;\n }\n}\n\nfunction mapMonths(f) {\n const ms = [];\n for (let i = 1; i <= 12; i++) {\n const dt = DateTime.utc(2009, i, 1);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction mapWeekdays(f) {\n const ms = [];\n for (let i = 1; i <= 7; i++) {\n const dt = DateTime.utc(2016, 11, 13 + i);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction listStuff(loc, length, englishFn, intlFn) {\n const mode = loc.listingMode();\n\n if (mode === \"error\") {\n return null;\n } else if (mode === \"en\") {\n return englishFn(length);\n } else {\n return intlFn(length);\n }\n}\n\nfunction supportsFastNumbers(loc) {\n if (loc.numberingSystem && loc.numberingSystem !== \"latn\") {\n return false;\n } else {\n return (\n loc.numberingSystem === \"latn\" ||\n !loc.locale ||\n loc.locale.startsWith(\"en\") ||\n getCachedIntResolvedOptions(loc.locale).numberingSystem === \"latn\"\n );\n }\n}\n\n/**\n * @private\n */\n\nclass PolyNumberFormatter {\n constructor(intl, forceSimple, opts) {\n this.padTo = opts.padTo || 0;\n this.floor = opts.floor || false;\n\n const { padTo, floor, ...otherOpts } = opts;\n\n if (!forceSimple || Object.keys(otherOpts).length > 0) {\n const intlOpts = { useGrouping: false, ...opts };\n if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;\n this.inf = getCachedINF(intl, intlOpts);\n }\n }\n\n format(i) {\n if (this.inf) {\n const fixed = this.floor ? Math.floor(i) : i;\n return this.inf.format(fixed);\n } else {\n // to match the browser's numberformatter defaults\n const fixed = this.floor ? Math.floor(i) : roundTo(i, 3);\n return padStart(fixed, this.padTo);\n }\n }\n}\n\n/**\n * @private\n */\n\nclass PolyDateFormatter {\n constructor(dt, intl, opts) {\n this.opts = opts;\n this.originalZone = undefined;\n\n let z = undefined;\n if (this.opts.timeZone) {\n // Don't apply any workarounds if a timeZone is explicitly provided in opts\n this.dt = dt;\n } else if (dt.zone.type === \"fixed\") {\n // UTC-8 or Etc/UTC-8 are not part of tzdata, only Etc/GMT+8 and the like.\n // That is why fixed-offset TZ is set to that unless it is:\n // 1. Representing offset 0 when UTC is used to maintain previous behavior and does not become GMT.\n // 2. Unsupported by the browser:\n // - some do not support Etc/\n // - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata\n const gmtOffset = -1 * (dt.offset / 60);\n const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`;\n if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {\n z = offsetZ;\n this.dt = dt;\n } else {\n // Not all fixed-offset zones like Etc/+4:30 are present in tzdata so\n // we manually apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.offset === 0 ? dt : dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n this.originalZone = dt.zone;\n }\n } else if (dt.zone.type === \"system\") {\n this.dt = dt;\n } else if (dt.zone.type === \"iana\") {\n this.dt = dt;\n z = dt.zone.name;\n } else {\n // Custom zones can have any offset / offsetName so we just manually\n // apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n this.originalZone = dt.zone;\n }\n\n const intlOpts = { ...this.opts };\n intlOpts.timeZone = intlOpts.timeZone || z;\n this.dtf = getCachedDTF(intl, intlOpts);\n }\n\n format() {\n if (this.originalZone) {\n // If we have to substitute in the actual zone name, we have to use\n // formatToParts so that the timezone can be replaced.\n return this.formatToParts()\n .map(({ value }) => value)\n .join(\"\");\n }\n return this.dtf.format(this.dt.toJSDate());\n }\n\n formatToParts() {\n const parts = this.dtf.formatToParts(this.dt.toJSDate());\n if (this.originalZone) {\n return parts.map((part) => {\n if (part.type === \"timeZoneName\") {\n const offsetName = this.originalZone.offsetName(this.dt.ts, {\n locale: this.dt.locale,\n format: this.opts.timeZoneName,\n });\n return {\n ...part,\n value: offsetName,\n };\n } else {\n return part;\n }\n });\n }\n return parts;\n }\n\n resolvedOptions() {\n return this.dtf.resolvedOptions();\n }\n}\n\n/**\n * @private\n */\nclass PolyRelFormatter {\n constructor(intl, isEnglish, opts) {\n this.opts = { style: \"long\", ...opts };\n if (!isEnglish && hasRelative()) {\n this.rtf = getCachedRTF(intl, opts);\n }\n }\n\n format(count, unit) {\n if (this.rtf) {\n return this.rtf.format(count, unit);\n } else {\n return formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== \"long\");\n }\n }\n\n formatToParts(count, unit) {\n if (this.rtf) {\n return this.rtf.formatToParts(count, unit);\n } else {\n return [];\n }\n }\n}\n\nconst fallbackWeekSettings = {\n firstDay: 1,\n minimalDays: 4,\n weekend: [6, 7],\n};\n\n/**\n * @private\n */\nclass Locale {\n static fromOpts(opts) {\n return Locale.create(\n opts.locale,\n opts.numberingSystem,\n opts.outputCalendar,\n opts.weekSettings,\n opts.defaultToEN\n );\n }\n\n static create(locale, numberingSystem, outputCalendar, weekSettings, defaultToEN = false) {\n const specifiedLocale = locale || Settings.defaultLocale;\n // the system locale is useful for human-readable strings but annoying for parsing/formatting known formats\n const localeR = specifiedLocale || (defaultToEN ? \"en-US\" : systemLocale());\n const numberingSystemR = numberingSystem || Settings.defaultNumberingSystem;\n const outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;\n const weekSettingsR = validateWeekSettings(weekSettings) || Settings.defaultWeekSettings;\n return new Locale(localeR, numberingSystemR, outputCalendarR, weekSettingsR, specifiedLocale);\n }\n\n static resetCache() {\n sysLocaleCache = null;\n intlDTCache.clear();\n intlNumCache.clear();\n intlRelCache.clear();\n intlResolvedOptionsCache.clear();\n weekInfoCache.clear();\n }\n\n static fromObject({ locale, numberingSystem, outputCalendar, weekSettings } = {}) {\n return Locale.create(locale, numberingSystem, outputCalendar, weekSettings);\n }\n\n constructor(locale, numbering, outputCalendar, weekSettings, specifiedLocale) {\n const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString(locale);\n\n this.locale = parsedLocale;\n this.numberingSystem = numbering || parsedNumberingSystem || null;\n this.outputCalendar = outputCalendar || parsedOutputCalendar || null;\n this.weekSettings = weekSettings;\n this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);\n\n this.weekdaysCache = { format: {}, standalone: {} };\n this.monthsCache = { format: {}, standalone: {} };\n this.meridiemCache = null;\n this.eraCache = {};\n\n this.specifiedLocale = specifiedLocale;\n this.fastNumbersCached = null;\n }\n\n get fastNumbers() {\n if (this.fastNumbersCached == null) {\n this.fastNumbersCached = supportsFastNumbers(this);\n }\n\n return this.fastNumbersCached;\n }\n\n listingMode() {\n const isActuallyEn = this.isEnglish();\n const hasNoWeirdness =\n (this.numberingSystem === null || this.numberingSystem === \"latn\") &&\n (this.outputCalendar === null || this.outputCalendar === \"gregory\");\n return isActuallyEn && hasNoWeirdness ? \"en\" : \"intl\";\n }\n\n clone(alts) {\n if (!alts || Object.getOwnPropertyNames(alts).length === 0) {\n return this;\n } else {\n return Locale.create(\n alts.locale || this.specifiedLocale,\n alts.numberingSystem || this.numberingSystem,\n alts.outputCalendar || this.outputCalendar,\n validateWeekSettings(alts.weekSettings) || this.weekSettings,\n alts.defaultToEN || false\n );\n }\n }\n\n redefaultToEN(alts = {}) {\n return this.clone({ ...alts, defaultToEN: true });\n }\n\n redefaultToSystem(alts = {}) {\n return this.clone({ ...alts, defaultToEN: false });\n }\n\n months(length, format = false) {\n return listStuff(this, length, months, () => {\n // Workaround for \"ja\" locale: formatToParts does not label all parts of the month\n // as \"month\" and for this locale there is no difference between \"format\" and \"non-format\".\n // As such, just use format() instead of formatToParts() and take the whole string\n const monthSpecialCase = this.intl === \"ja\" || this.intl.startsWith(\"ja-\");\n format &= !monthSpecialCase;\n const intl = format ? { month: length, day: \"numeric\" } : { month: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.monthsCache[formatStr][length]) {\n const mapper = !monthSpecialCase\n ? (dt) => this.extract(dt, intl, \"month\")\n : (dt) => this.dtFormatter(dt, intl).format();\n this.monthsCache[formatStr][length] = mapMonths(mapper);\n }\n return this.monthsCache[formatStr][length];\n });\n }\n\n weekdays(length, format = false) {\n return listStuff(this, length, weekdays, () => {\n const intl = format\n ? { weekday: length, year: \"numeric\", month: \"long\", day: \"numeric\" }\n : { weekday: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.weekdaysCache[formatStr][length]) {\n this.weekdaysCache[formatStr][length] = mapWeekdays((dt) =>\n this.extract(dt, intl, \"weekday\")\n );\n }\n return this.weekdaysCache[formatStr][length];\n });\n }\n\n meridiems() {\n return listStuff(\n this,\n undefined,\n () => meridiems,\n () => {\n // In theory there could be aribitrary day periods. We're gonna assume there are exactly two\n // for AM and PM. This is probably wrong, but it's makes parsing way easier.\n if (!this.meridiemCache) {\n const intl = { hour: \"numeric\", hourCycle: \"h12\" };\n this.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(\n (dt) => this.extract(dt, intl, \"dayperiod\")\n );\n }\n\n return this.meridiemCache;\n }\n );\n }\n\n eras(length) {\n return listStuff(this, length, eras, () => {\n const intl = { era: length };\n\n // This is problematic. Different calendars are going to define eras totally differently. What I need is the minimum set of dates\n // to definitely enumerate them.\n if (!this.eraCache[length]) {\n this.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map((dt) =>\n this.extract(dt, intl, \"era\")\n );\n }\n\n return this.eraCache[length];\n });\n }\n\n extract(dt, intlOpts, field) {\n const df = this.dtFormatter(dt, intlOpts),\n results = df.formatToParts(),\n matching = results.find((m) => m.type.toLowerCase() === field);\n return matching ? matching.value : null;\n }\n\n numberFormatter(opts = {}) {\n // this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)\n // (in contrast, the rest of the condition is used heavily)\n return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);\n }\n\n dtFormatter(dt, intlOpts = {}) {\n return new PolyDateFormatter(dt, this.intl, intlOpts);\n }\n\n relFormatter(opts = {}) {\n return new PolyRelFormatter(this.intl, this.isEnglish(), opts);\n }\n\n listFormatter(opts = {}) {\n return getCachedLF(this.intl, opts);\n }\n\n isEnglish() {\n return (\n this.locale === \"en\" ||\n this.locale.toLowerCase() === \"en-us\" ||\n getCachedIntResolvedOptions(this.intl).locale.startsWith(\"en-us\")\n );\n }\n\n getWeekSettings() {\n if (this.weekSettings) {\n return this.weekSettings;\n } else if (!hasLocaleWeekInfo()) {\n return fallbackWeekSettings;\n } else {\n return getCachedWeekInfo(this.locale);\n }\n }\n\n getStartOfWeek() {\n return this.getWeekSettings().firstDay;\n }\n\n getMinDaysInFirstWeek() {\n return this.getWeekSettings().minimalDays;\n }\n\n getWeekendDays() {\n return this.getWeekSettings().weekend;\n }\n\n equals(other) {\n return (\n this.locale === other.locale &&\n this.numberingSystem === other.numberingSystem &&\n this.outputCalendar === other.outputCalendar\n );\n }\n\n toString() {\n return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;\n }\n}\n\nlet singleton = null;\n\n/**\n * A zone with a fixed offset (meaning no DST)\n * @implements {Zone}\n */\nclass FixedOffsetZone extends Zone {\n /**\n * Get a singleton instance of UTC\n * @return {FixedOffsetZone}\n */\n static get utcInstance() {\n if (singleton === null) {\n singleton = new FixedOffsetZone(0);\n }\n return singleton;\n }\n\n /**\n * Get an instance with a specified offset\n * @param {number} offset - The offset in minutes\n * @return {FixedOffsetZone}\n */\n static instance(offset) {\n return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);\n }\n\n /**\n * Get an instance of FixedOffsetZone from a UTC offset string, like \"UTC+6\"\n * @param {string} s - The offset string to parse\n * @example FixedOffsetZone.parseSpecifier(\"UTC+6\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC+06\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC-6:00\")\n * @return {FixedOffsetZone}\n */\n static parseSpecifier(s) {\n if (s) {\n const r = s.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);\n if (r) {\n return new FixedOffsetZone(signedOffset(r[1], r[2]));\n }\n }\n return null;\n }\n\n constructor(offset) {\n super();\n /** @private **/\n this.fixed = offset;\n }\n\n /**\n * The type of zone. `fixed` for all instances of `FixedOffsetZone`.\n * @override\n * @type {string}\n */\n get type() {\n return \"fixed\";\n }\n\n /**\n * The name of this zone.\n * All fixed zones' names always start with \"UTC\" (plus optional offset)\n * @override\n * @type {string}\n */\n get name() {\n return this.fixed === 0 ? \"UTC\" : `UTC${formatOffset(this.fixed, \"narrow\")}`;\n }\n\n /**\n * The IANA name of this zone, i.e. `Etc/UTC` or `Etc/GMT+/-nn`\n *\n * @override\n * @type {string}\n */\n get ianaName() {\n if (this.fixed === 0) {\n return \"Etc/UTC\";\n } else {\n return `Etc/GMT${formatOffset(-this.fixed, \"narrow\")}`;\n }\n }\n\n /**\n * Returns the offset's common name at the specified timestamp.\n *\n * For fixed offset zones this equals to the zone name.\n * @override\n */\n offsetName() {\n return this.name;\n }\n\n /**\n * Returns the offset's value as a string\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n return formatOffset(this.fixed, format);\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year:\n * Always returns true for all fixed offset zones.\n * @override\n * @type {boolean}\n */\n get isUniversal() {\n return true;\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n *\n * For fixed offset zones, this is constant and does not depend on a timestamp.\n * @override\n * @return {number}\n */\n offset() {\n return this.fixed;\n }\n\n /**\n * Return whether this Zone is equal to another zone (i.e. also fixed and same offset)\n * @override\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n return otherZone.type === \"fixed\" && otherZone.fixed === this.fixed;\n }\n\n /**\n * Return whether this Zone is valid:\n * All fixed offset zones are valid.\n * @override\n * @type {boolean}\n */\n get isValid() {\n return true;\n }\n}\n\n/**\n * A zone that failed to parse. You should never need to instantiate this.\n * @implements {Zone}\n */\nclass InvalidZone extends Zone {\n constructor(zoneName) {\n super();\n /** @private */\n this.zoneName = zoneName;\n }\n\n /** @override **/\n get type() {\n return \"invalid\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName() {\n return null;\n }\n\n /** @override **/\n formatOffset() {\n return \"\";\n }\n\n /** @override **/\n offset() {\n return NaN;\n }\n\n /** @override **/\n equals() {\n return false;\n }\n\n /** @override **/\n get isValid() {\n return false;\n }\n}\n\n/**\n * @private\n */\n\nfunction normalizeZone(input, defaultZone) {\n if (isUndefined(input) || input === null) {\n return defaultZone;\n } else if (input instanceof Zone) {\n return input;\n } else if (isString(input)) {\n const lowered = input.toLowerCase();\n if (lowered === \"default\") return defaultZone;\n else if (lowered === \"local\" || lowered === \"system\") return SystemZone.instance;\n else if (lowered === \"utc\" || lowered === \"gmt\") return FixedOffsetZone.utcInstance;\n else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);\n } else if (isNumber(input)) {\n return FixedOffsetZone.instance(input);\n } else if (typeof input === \"object\" && \"offset\" in input && typeof input.offset === \"function\") {\n // This is dumb, but the instanceof check above doesn't seem to really work\n // so we're duck checking it\n return input;\n } else {\n return new InvalidZone(input);\n }\n}\n\nconst numberingSystems = {\n arab: \"[\\u0660-\\u0669]\",\n arabext: \"[\\u06F0-\\u06F9]\",\n bali: \"[\\u1B50-\\u1B59]\",\n beng: \"[\\u09E6-\\u09EF]\",\n deva: \"[\\u0966-\\u096F]\",\n fullwide: \"[\\uFF10-\\uFF19]\",\n gujr: \"[\\u0AE6-\\u0AEF]\",\n hanidec: \"[〇|一|二|三|四|五|六|七|八|九]\",\n khmr: \"[\\u17E0-\\u17E9]\",\n knda: \"[\\u0CE6-\\u0CEF]\",\n laoo: \"[\\u0ED0-\\u0ED9]\",\n limb: \"[\\u1946-\\u194F]\",\n mlym: \"[\\u0D66-\\u0D6F]\",\n mong: \"[\\u1810-\\u1819]\",\n mymr: \"[\\u1040-\\u1049]\",\n orya: \"[\\u0B66-\\u0B6F]\",\n tamldec: \"[\\u0BE6-\\u0BEF]\",\n telu: \"[\\u0C66-\\u0C6F]\",\n thai: \"[\\u0E50-\\u0E59]\",\n tibt: \"[\\u0F20-\\u0F29]\",\n latn: \"\\\\d\",\n};\n\nconst numberingSystemsUTF16 = {\n arab: [1632, 1641],\n arabext: [1776, 1785],\n bali: [6992, 7001],\n beng: [2534, 2543],\n deva: [2406, 2415],\n fullwide: [65296, 65303],\n gujr: [2790, 2799],\n khmr: [6112, 6121],\n knda: [3302, 3311],\n laoo: [3792, 3801],\n limb: [6470, 6479],\n mlym: [3430, 3439],\n mong: [6160, 6169],\n mymr: [4160, 4169],\n orya: [2918, 2927],\n tamldec: [3046, 3055],\n telu: [3174, 3183],\n thai: [3664, 3673],\n tibt: [3872, 3881],\n};\n\nconst hanidecChars = numberingSystems.hanidec.replace(/[\\[|\\]]/g, \"\").split(\"\");\n\nfunction parseDigits(str) {\n let value = parseInt(str, 10);\n if (isNaN(value)) {\n value = \"\";\n for (let i = 0; i < str.length; i++) {\n const code = str.charCodeAt(i);\n\n if (str[i].search(numberingSystems.hanidec) !== -1) {\n value += hanidecChars.indexOf(str[i]);\n } else {\n for (const key in numberingSystemsUTF16) {\n const [min, max] = numberingSystemsUTF16[key];\n if (code >= min && code <= max) {\n value += code - min;\n }\n }\n }\n }\n return parseInt(value, 10);\n } else {\n return value;\n }\n}\n\n// cache of {numberingSystem: {append: regex}}\nconst digitRegexCache = new Map();\nfunction resetDigitRegexCache() {\n digitRegexCache.clear();\n}\n\nfunction digitRegex({ numberingSystem }, append = \"\") {\n const ns = numberingSystem || \"latn\";\n\n let appendCache = digitRegexCache.get(ns);\n if (appendCache === undefined) {\n appendCache = new Map();\n digitRegexCache.set(ns, appendCache);\n }\n let regex = appendCache.get(append);\n if (regex === undefined) {\n regex = new RegExp(`${numberingSystems[ns]}${append}`);\n appendCache.set(append, regex);\n }\n\n return regex;\n}\n\nlet now = () => Date.now(),\n defaultZone = \"system\",\n defaultLocale = null,\n defaultNumberingSystem = null,\n defaultOutputCalendar = null,\n twoDigitCutoffYear = 60,\n throwOnInvalid,\n defaultWeekSettings = null;\n\n/**\n * Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.\n */\nclass Settings {\n /**\n * Get the callback for returning the current timestamp.\n * @type {function}\n */\n static get now() {\n return now;\n }\n\n /**\n * Set the callback for returning the current timestamp.\n * The function should return a number, which will be interpreted as an Epoch millisecond count\n * @type {function}\n * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future\n * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time\n */\n static set now(n) {\n now = n;\n }\n\n /**\n * Set the default time zone to create DateTimes in. Does not affect existing instances.\n * Use the value \"system\" to reset this value to the system's time zone.\n * @type {string}\n */\n static set defaultZone(zone) {\n defaultZone = zone;\n }\n\n /**\n * Get the default time zone object currently used to create DateTimes. Does not affect existing instances.\n * The default value is the system's time zone (the one set on the machine that runs this code).\n * @type {Zone}\n */\n static get defaultZone() {\n return normalizeZone(defaultZone, SystemZone.instance);\n }\n\n /**\n * Get the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultLocale() {\n return defaultLocale;\n }\n\n /**\n * Set the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultLocale(locale) {\n defaultLocale = locale;\n }\n\n /**\n * Get the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultNumberingSystem() {\n return defaultNumberingSystem;\n }\n\n /**\n * Set the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultNumberingSystem(numberingSystem) {\n defaultNumberingSystem = numberingSystem;\n }\n\n /**\n * Get the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultOutputCalendar() {\n return defaultOutputCalendar;\n }\n\n /**\n * Set the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultOutputCalendar(outputCalendar) {\n defaultOutputCalendar = outputCalendar;\n }\n\n /**\n * @typedef {Object} WeekSettings\n * @property {number} firstDay\n * @property {number} minimalDays\n * @property {number[]} weekend\n */\n\n /**\n * @return {WeekSettings|null}\n */\n static get defaultWeekSettings() {\n return defaultWeekSettings;\n }\n\n /**\n * Allows overriding the default locale week settings, i.e. the start of the week, the weekend and\n * how many days are required in the first week of a year.\n * Does not affect existing instances.\n *\n * @param {WeekSettings|null} weekSettings\n */\n static set defaultWeekSettings(weekSettings) {\n defaultWeekSettings = validateWeekSettings(weekSettings);\n }\n\n /**\n * Get the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n * @type {number}\n */\n static get twoDigitCutoffYear() {\n return twoDigitCutoffYear;\n }\n\n /**\n * Set the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n * @type {number}\n * @example Settings.twoDigitCutoffYear = 0 // all 'yy' are interpreted as 20th century\n * @example Settings.twoDigitCutoffYear = 99 // all 'yy' are interpreted as 21st century\n * @example Settings.twoDigitCutoffYear = 50 // '49' -> 2049; '50' -> 1950\n * @example Settings.twoDigitCutoffYear = 1950 // interpreted as 50\n * @example Settings.twoDigitCutoffYear = 2050 // ALSO interpreted as 50\n */\n static set twoDigitCutoffYear(cutoffYear) {\n twoDigitCutoffYear = cutoffYear % 100;\n }\n\n /**\n * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static get throwOnInvalid() {\n return throwOnInvalid;\n }\n\n /**\n * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static set throwOnInvalid(t) {\n throwOnInvalid = t;\n }\n\n /**\n * Reset Luxon's global caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCaches() {\n Locale.resetCache();\n IANAZone.resetCache();\n DateTime.resetCache();\n resetDigitRegexCache();\n }\n}\n\nclass Invalid {\n constructor(reason, explanation) {\n this.reason = reason;\n this.explanation = explanation;\n }\n\n toMessage() {\n if (this.explanation) {\n return `${this.reason}: ${this.explanation}`;\n } else {\n return this.reason;\n }\n }\n}\n\nconst nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],\n leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];\n\nfunction unitOutOfRange(unit, value) {\n return new Invalid(\n \"unit out of range\",\n `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`\n );\n}\n\nfunction dayOfWeek(year, month, day) {\n const d = new Date(Date.UTC(year, month - 1, day));\n\n if (year < 100 && year >= 0) {\n d.setUTCFullYear(d.getUTCFullYear() - 1900);\n }\n\n const js = d.getUTCDay();\n\n return js === 0 ? 7 : js;\n}\n\nfunction computeOrdinal(year, month, day) {\n return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];\n}\n\nfunction uncomputeOrdinal(year, ordinal) {\n const table = isLeapYear(year) ? leapLadder : nonLeapLadder,\n month0 = table.findIndex((i) => i < ordinal),\n day = ordinal - table[month0];\n return { month: month0 + 1, day };\n}\n\nfunction isoWeekdayToLocal(isoWeekday, startOfWeek) {\n return ((isoWeekday - startOfWeek + 7) % 7) + 1;\n}\n\n/**\n * @private\n */\n\nfunction gregorianToWeek(gregObj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const { year, month, day } = gregObj,\n ordinal = computeOrdinal(year, month, day),\n weekday = isoWeekdayToLocal(dayOfWeek(year, month, day), startOfWeek);\n\n let weekNumber = Math.floor((ordinal - weekday + 14 - minDaysInFirstWeek) / 7),\n weekYear;\n\n if (weekNumber < 1) {\n weekYear = year - 1;\n weekNumber = weeksInWeekYear(weekYear, minDaysInFirstWeek, startOfWeek);\n } else if (weekNumber > weeksInWeekYear(year, minDaysInFirstWeek, startOfWeek)) {\n weekYear = year + 1;\n weekNumber = 1;\n } else {\n weekYear = year;\n }\n\n return { weekYear, weekNumber, weekday, ...timeObject(gregObj) };\n}\n\nfunction weekToGregorian(weekData, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const { weekYear, weekNumber, weekday } = weekData,\n weekdayOfJan4 = isoWeekdayToLocal(dayOfWeek(weekYear, 1, minDaysInFirstWeek), startOfWeek),\n yearInDays = daysInYear(weekYear);\n\n let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 7 + minDaysInFirstWeek,\n year;\n\n if (ordinal < 1) {\n year = weekYear - 1;\n ordinal += daysInYear(year);\n } else if (ordinal > yearInDays) {\n year = weekYear + 1;\n ordinal -= daysInYear(weekYear);\n } else {\n year = weekYear;\n }\n\n const { month, day } = uncomputeOrdinal(year, ordinal);\n return { year, month, day, ...timeObject(weekData) };\n}\n\nfunction gregorianToOrdinal(gregData) {\n const { year, month, day } = gregData;\n const ordinal = computeOrdinal(year, month, day);\n return { year, ordinal, ...timeObject(gregData) };\n}\n\nfunction ordinalToGregorian(ordinalData) {\n const { year, ordinal } = ordinalData;\n const { month, day } = uncomputeOrdinal(year, ordinal);\n return { year, month, day, ...timeObject(ordinalData) };\n}\n\n/**\n * Check if local week units like localWeekday are used in obj.\n * If so, validates that they are not mixed with ISO week units and then copies them to the normal week unit properties.\n * Modifies obj in-place!\n * @param obj the object values\n */\nfunction usesLocalWeekValues(obj, loc) {\n const hasLocaleWeekData =\n !isUndefined(obj.localWeekday) ||\n !isUndefined(obj.localWeekNumber) ||\n !isUndefined(obj.localWeekYear);\n if (hasLocaleWeekData) {\n const hasIsoWeekData =\n !isUndefined(obj.weekday) || !isUndefined(obj.weekNumber) || !isUndefined(obj.weekYear);\n\n if (hasIsoWeekData) {\n throw new ConflictingSpecificationError(\n \"Cannot mix locale-based week fields with ISO-based week fields\"\n );\n }\n if (!isUndefined(obj.localWeekday)) obj.weekday = obj.localWeekday;\n if (!isUndefined(obj.localWeekNumber)) obj.weekNumber = obj.localWeekNumber;\n if (!isUndefined(obj.localWeekYear)) obj.weekYear = obj.localWeekYear;\n delete obj.localWeekday;\n delete obj.localWeekNumber;\n delete obj.localWeekYear;\n return {\n minDaysInFirstWeek: loc.getMinDaysInFirstWeek(),\n startOfWeek: loc.getStartOfWeek(),\n };\n } else {\n return { minDaysInFirstWeek: 4, startOfWeek: 1 };\n }\n}\n\nfunction hasInvalidWeekData(obj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const validYear = isInteger(obj.weekYear),\n validWeek = integerBetween(\n obj.weekNumber,\n 1,\n weeksInWeekYear(obj.weekYear, minDaysInFirstWeek, startOfWeek)\n ),\n validWeekday = integerBetween(obj.weekday, 1, 7);\n\n if (!validYear) {\n return unitOutOfRange(\"weekYear\", obj.weekYear);\n } else if (!validWeek) {\n return unitOutOfRange(\"week\", obj.weekNumber);\n } else if (!validWeekday) {\n return unitOutOfRange(\"weekday\", obj.weekday);\n } else return false;\n}\n\nfunction hasInvalidOrdinalData(obj) {\n const validYear = isInteger(obj.year),\n validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validOrdinal) {\n return unitOutOfRange(\"ordinal\", obj.ordinal);\n } else return false;\n}\n\nfunction hasInvalidGregorianData(obj) {\n const validYear = isInteger(obj.year),\n validMonth = integerBetween(obj.month, 1, 12),\n validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validMonth) {\n return unitOutOfRange(\"month\", obj.month);\n } else if (!validDay) {\n return unitOutOfRange(\"day\", obj.day);\n } else return false;\n}\n\nfunction hasInvalidTimeData(obj) {\n const { hour, minute, second, millisecond } = obj;\n const validHour =\n integerBetween(hour, 0, 23) ||\n (hour === 24 && minute === 0 && second === 0 && millisecond === 0),\n validMinute = integerBetween(minute, 0, 59),\n validSecond = integerBetween(second, 0, 59),\n validMillisecond = integerBetween(millisecond, 0, 999);\n\n if (!validHour) {\n return unitOutOfRange(\"hour\", hour);\n } else if (!validMinute) {\n return unitOutOfRange(\"minute\", minute);\n } else if (!validSecond) {\n return unitOutOfRange(\"second\", second);\n } else if (!validMillisecond) {\n return unitOutOfRange(\"millisecond\", millisecond);\n } else return false;\n}\n\n/*\n This is just a junk drawer, containing anything used across multiple classes.\n Because Luxon is small(ish), this should stay small and we won't worry about splitting\n it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature area.\n*/\n\n/**\n * @private\n */\n\n// TYPES\n\nfunction isUndefined(o) {\n return typeof o === \"undefined\";\n}\n\nfunction isNumber(o) {\n return typeof o === \"number\";\n}\n\nfunction isInteger(o) {\n return typeof o === \"number\" && o % 1 === 0;\n}\n\nfunction isString(o) {\n return typeof o === \"string\";\n}\n\nfunction isDate(o) {\n return Object.prototype.toString.call(o) === \"[object Date]\";\n}\n\n// CAPABILITIES\n\nfunction hasRelative() {\n try {\n return typeof Intl !== \"undefined\" && !!Intl.RelativeTimeFormat;\n } catch (e) {\n return false;\n }\n}\n\nfunction hasLocaleWeekInfo() {\n try {\n return (\n typeof Intl !== \"undefined\" &&\n !!Intl.Locale &&\n (\"weekInfo\" in Intl.Locale.prototype || \"getWeekInfo\" in Intl.Locale.prototype)\n );\n } catch (e) {\n return false;\n }\n}\n\n// OBJECTS AND ARRAYS\n\nfunction maybeArray(thing) {\n return Array.isArray(thing) ? thing : [thing];\n}\n\nfunction bestBy(arr, by, compare) {\n if (arr.length === 0) {\n return undefined;\n }\n return arr.reduce((best, next) => {\n const pair = [by(next), next];\n if (!best) {\n return pair;\n } else if (compare(best[0], pair[0]) === best[0]) {\n return best;\n } else {\n return pair;\n }\n }, null)[1];\n}\n\nfunction pick(obj, keys) {\n return keys.reduce((a, k) => {\n a[k] = obj[k];\n return a;\n }, {});\n}\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nfunction validateWeekSettings(settings) {\n if (settings == null) {\n return null;\n } else if (typeof settings !== \"object\") {\n throw new InvalidArgumentError(\"Week settings must be an object\");\n } else {\n if (\n !integerBetween(settings.firstDay, 1, 7) ||\n !integerBetween(settings.minimalDays, 1, 7) ||\n !Array.isArray(settings.weekend) ||\n settings.weekend.some((v) => !integerBetween(v, 1, 7))\n ) {\n throw new InvalidArgumentError(\"Invalid week settings\");\n }\n return {\n firstDay: settings.firstDay,\n minimalDays: settings.minimalDays,\n weekend: Array.from(settings.weekend),\n };\n }\n}\n\n// NUMBERS AND STRINGS\n\nfunction integerBetween(thing, bottom, top) {\n return isInteger(thing) && thing >= bottom && thing <= top;\n}\n\n// x % n but takes the sign of n instead of x\nfunction floorMod(x, n) {\n return x - n * Math.floor(x / n);\n}\n\nfunction padStart(input, n = 2) {\n const isNeg = input < 0;\n let padded;\n if (isNeg) {\n padded = \"-\" + (\"\" + -input).padStart(n, \"0\");\n } else {\n padded = (\"\" + input).padStart(n, \"0\");\n }\n return padded;\n}\n\nfunction parseInteger(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseInt(string, 10);\n }\n}\n\nfunction parseFloating(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseFloat(string);\n }\n}\n\nfunction parseMillis(fraction) {\n // Return undefined (instead of 0) in these cases, where fraction is not set\n if (isUndefined(fraction) || fraction === null || fraction === \"\") {\n return undefined;\n } else {\n const f = parseFloat(\"0.\" + fraction) * 1000;\n return Math.floor(f);\n }\n}\n\nfunction roundTo(number, digits, rounding = \"round\") {\n const factor = 10 ** digits;\n switch (rounding) {\n case \"expand\":\n return number > 0\n ? Math.ceil(number * factor) / factor\n : Math.floor(number * factor) / factor;\n case \"trunc\":\n return Math.trunc(number * factor) / factor;\n case \"round\":\n return Math.round(number * factor) / factor;\n case \"floor\":\n return Math.floor(number * factor) / factor;\n case \"ceil\":\n return Math.ceil(number * factor) / factor;\n default:\n throw new RangeError(`Value rounding ${rounding} is out of range`);\n }\n}\n\n// DATE BASICS\n\nfunction isLeapYear(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\nfunction daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\n\nfunction daysInMonth(year, month) {\n const modMonth = floorMod(month - 1, 12) + 1,\n modYear = year + (month - modMonth) / 12;\n\n if (modMonth === 2) {\n return isLeapYear(modYear) ? 29 : 28;\n } else {\n return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];\n }\n}\n\n// convert a calendar object to a local timestamp (epoch, but with the offset baked in)\nfunction objToLocalTS(obj) {\n let d = Date.UTC(\n obj.year,\n obj.month - 1,\n obj.day,\n obj.hour,\n obj.minute,\n obj.second,\n obj.millisecond\n );\n\n // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that\n if (obj.year < 100 && obj.year >= 0) {\n d = new Date(d);\n // set the month and day again, this is necessary because year 2000 is a leap year, but year 100 is not\n // so if obj.year is in 99, but obj.day makes it roll over into year 100,\n // the calculations done by Date.UTC are using year 2000 - which is incorrect\n d.setUTCFullYear(obj.year, obj.month - 1, obj.day);\n }\n return +d;\n}\n\n// adapted from moment.js: https://github.com/moment/moment/blob/000ac1800e620f770f4eb31b5ae908f6167b0ab2/src/lib/units/week-calendar-utils.js\nfunction firstWeekOffset(year, minDaysInFirstWeek, startOfWeek) {\n const fwdlw = isoWeekdayToLocal(dayOfWeek(year, 1, minDaysInFirstWeek), startOfWeek);\n return -fwdlw + minDaysInFirstWeek - 1;\n}\n\nfunction weeksInWeekYear(weekYear, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const weekOffset = firstWeekOffset(weekYear, minDaysInFirstWeek, startOfWeek);\n const weekOffsetNext = firstWeekOffset(weekYear + 1, minDaysInFirstWeek, startOfWeek);\n return (daysInYear(weekYear) - weekOffset + weekOffsetNext) / 7;\n}\n\nfunction untruncateYear(year) {\n if (year > 99) {\n return year;\n } else return year > Settings.twoDigitCutoffYear ? 1900 + year : 2000 + year;\n}\n\n// PARSING\n\nfunction parseZoneInfo(ts, offsetFormat, locale, timeZone = null) {\n const date = new Date(ts),\n intlOpts = {\n hourCycle: \"h23\",\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n };\n\n if (timeZone) {\n intlOpts.timeZone = timeZone;\n }\n\n const modified = { timeZoneName: offsetFormat, ...intlOpts };\n\n const parsed = new Intl.DateTimeFormat(locale, modified)\n .formatToParts(date)\n .find((m) => m.type.toLowerCase() === \"timezonename\");\n return parsed ? parsed.value : null;\n}\n\n// signedOffset('-5', '30') -> -330\nfunction signedOffset(offHourStr, offMinuteStr) {\n let offHour = parseInt(offHourStr, 10);\n\n // don't || this because we want to preserve -0\n if (Number.isNaN(offHour)) {\n offHour = 0;\n }\n\n const offMin = parseInt(offMinuteStr, 10) || 0,\n offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;\n return offHour * 60 + offMinSigned;\n}\n\n// COERCION\n\nfunction asNumber(value) {\n const numericValue = Number(value);\n if (typeof value === \"boolean\" || value === \"\" || !Number.isFinite(numericValue))\n throw new InvalidArgumentError(`Invalid unit value ${value}`);\n return numericValue;\n}\n\nfunction normalizeObject(obj, normalizer) {\n const normalized = {};\n for (const u in obj) {\n if (hasOwnProperty(obj, u)) {\n const v = obj[u];\n if (v === undefined || v === null) continue;\n normalized[normalizer(u)] = asNumber(v);\n }\n }\n return normalized;\n}\n\n/**\n * Returns the offset's value as a string\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\nfunction formatOffset(offset, format) {\n const hours = Math.trunc(Math.abs(offset / 60)),\n minutes = Math.trunc(Math.abs(offset % 60)),\n sign = offset >= 0 ? \"+\" : \"-\";\n\n switch (format) {\n case \"short\":\n return `${sign}${padStart(hours, 2)}:${padStart(minutes, 2)}`;\n case \"narrow\":\n return `${sign}${hours}${minutes > 0 ? `:${minutes}` : \"\"}`;\n case \"techie\":\n return `${sign}${padStart(hours, 2)}${padStart(minutes, 2)}`;\n default:\n throw new RangeError(`Value format ${format} is out of range for property format`);\n }\n}\n\nfunction timeObject(obj) {\n return pick(obj, [\"hour\", \"minute\", \"second\", \"millisecond\"]);\n}\n\n/**\n * @private\n */\n\nconst monthsLong = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n];\n\nconst monthsShort = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n];\n\nconst monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\n\nfunction months(length) {\n switch (length) {\n case \"narrow\":\n return [...monthsNarrow];\n case \"short\":\n return [...monthsShort];\n case \"long\":\n return [...monthsLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\"];\n case \"2-digit\":\n return [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\"];\n default:\n return null;\n }\n}\n\nconst weekdaysLong = [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n \"Sunday\",\n];\n\nconst weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\nconst weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\n\nfunction weekdays(length) {\n switch (length) {\n case \"narrow\":\n return [...weekdaysNarrow];\n case \"short\":\n return [...weekdaysShort];\n case \"long\":\n return [...weekdaysLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"];\n default:\n return null;\n }\n}\n\nconst meridiems = [\"AM\", \"PM\"];\n\nconst erasLong = [\"Before Christ\", \"Anno Domini\"];\n\nconst erasShort = [\"BC\", \"AD\"];\n\nconst erasNarrow = [\"B\", \"A\"];\n\nfunction eras(length) {\n switch (length) {\n case \"narrow\":\n return [...erasNarrow];\n case \"short\":\n return [...erasShort];\n case \"long\":\n return [...erasLong];\n default:\n return null;\n }\n}\n\nfunction meridiemForDateTime(dt) {\n return meridiems[dt.hour < 12 ? 0 : 1];\n}\n\nfunction weekdayForDateTime(dt, length) {\n return weekdays(length)[dt.weekday - 1];\n}\n\nfunction monthForDateTime(dt, length) {\n return months(length)[dt.month - 1];\n}\n\nfunction eraForDateTime(dt, length) {\n return eras(length)[dt.year < 0 ? 0 : 1];\n}\n\nfunction formatRelativeTime(unit, count, numeric = \"always\", narrow = false) {\n const units = {\n years: [\"year\", \"yr.\"],\n quarters: [\"quarter\", \"qtr.\"],\n months: [\"month\", \"mo.\"],\n weeks: [\"week\", \"wk.\"],\n days: [\"day\", \"day\", \"days\"],\n hours: [\"hour\", \"hr.\"],\n minutes: [\"minute\", \"min.\"],\n seconds: [\"second\", \"sec.\"],\n };\n\n const lastable = [\"hours\", \"minutes\", \"seconds\"].indexOf(unit) === -1;\n\n if (numeric === \"auto\" && lastable) {\n const isDay = unit === \"days\";\n switch (count) {\n case 1:\n return isDay ? \"tomorrow\" : `next ${units[unit][0]}`;\n case -1:\n return isDay ? \"yesterday\" : `last ${units[unit][0]}`;\n case 0:\n return isDay ? \"today\" : `this ${units[unit][0]}`;\n }\n }\n\n const isInPast = Object.is(count, -0) || count < 0,\n fmtValue = Math.abs(count),\n singular = fmtValue === 1,\n lilUnits = units[unit],\n fmtUnit = narrow\n ? singular\n ? lilUnits[1]\n : lilUnits[2] || lilUnits[1]\n : singular\n ? units[unit][0]\n : unit;\n return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`;\n}\n\nfunction stringifyTokens(splits, tokenToString) {\n let s = \"\";\n for (const token of splits) {\n if (token.literal) {\n s += token.val;\n } else {\n s += tokenToString(token.val);\n }\n }\n return s;\n}\n\nconst macroTokenToFormatOpts = {\n D: DATE_SHORT,\n DD: DATE_MED,\n DDD: DATE_FULL,\n DDDD: DATE_HUGE,\n t: TIME_SIMPLE,\n tt: TIME_WITH_SECONDS,\n ttt: TIME_WITH_SHORT_OFFSET,\n tttt: TIME_WITH_LONG_OFFSET,\n T: TIME_24_SIMPLE,\n TT: TIME_24_WITH_SECONDS,\n TTT: TIME_24_WITH_SHORT_OFFSET,\n TTTT: TIME_24_WITH_LONG_OFFSET,\n f: DATETIME_SHORT,\n ff: DATETIME_MED,\n fff: DATETIME_FULL,\n ffff: DATETIME_HUGE,\n F: DATETIME_SHORT_WITH_SECONDS,\n FF: DATETIME_MED_WITH_SECONDS,\n FFF: DATETIME_FULL_WITH_SECONDS,\n FFFF: DATETIME_HUGE_WITH_SECONDS,\n};\n\n/**\n * @private\n */\n\nclass Formatter {\n static create(locale, opts = {}) {\n return new Formatter(locale, opts);\n }\n\n static parseFormat(fmt) {\n // white-space is always considered a literal in user-provided formats\n // the \" \" token has a special meaning (see unitForToken)\n\n let current = null,\n currentFull = \"\",\n bracketed = false;\n const splits = [];\n for (let i = 0; i < fmt.length; i++) {\n const c = fmt.charAt(i);\n if (c === \"'\") {\n // turn '' into a literal signal quote instead of just skipping the empty literal\n if (currentFull.length > 0 || bracketed) {\n splits.push({\n literal: bracketed || /^\\s+$/.test(currentFull),\n val: currentFull === \"\" ? \"'\" : currentFull,\n });\n }\n current = null;\n currentFull = \"\";\n bracketed = !bracketed;\n } else if (bracketed) {\n currentFull += c;\n } else if (c === current) {\n currentFull += c;\n } else {\n if (currentFull.length > 0) {\n splits.push({ literal: /^\\s+$/.test(currentFull), val: currentFull });\n }\n currentFull = c;\n current = c;\n }\n }\n\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed || /^\\s+$/.test(currentFull), val: currentFull });\n }\n\n return splits;\n }\n\n static macroTokenToFormatOpts(token) {\n return macroTokenToFormatOpts[token];\n }\n\n constructor(locale, formatOpts) {\n this.opts = formatOpts;\n this.loc = locale;\n this.systemLoc = null;\n }\n\n formatWithSystemDefault(dt, opts) {\n if (this.systemLoc === null) {\n this.systemLoc = this.loc.redefaultToSystem();\n }\n const df = this.systemLoc.dtFormatter(dt, { ...this.opts, ...opts });\n return df.format();\n }\n\n dtFormatter(dt, opts = {}) {\n return this.loc.dtFormatter(dt, { ...this.opts, ...opts });\n }\n\n formatDateTime(dt, opts) {\n return this.dtFormatter(dt, opts).format();\n }\n\n formatDateTimeParts(dt, opts) {\n return this.dtFormatter(dt, opts).formatToParts();\n }\n\n formatInterval(interval, opts) {\n const df = this.dtFormatter(interval.start, opts);\n return df.dtf.formatRange(interval.start.toJSDate(), interval.end.toJSDate());\n }\n\n resolvedOptions(dt, opts) {\n return this.dtFormatter(dt, opts).resolvedOptions();\n }\n\n num(n, p = 0, signDisplay = undefined) {\n // we get some perf out of doing this here, annoyingly\n if (this.opts.forceSimple) {\n return padStart(n, p);\n }\n\n const opts = { ...this.opts };\n\n if (p > 0) {\n opts.padTo = p;\n }\n if (signDisplay) {\n opts.signDisplay = signDisplay;\n }\n\n return this.loc.numberFormatter(opts).format(n);\n }\n\n formatDateTimeFromString(dt, fmt) {\n const knownEnglish = this.loc.listingMode() === \"en\",\n useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== \"gregory\",\n string = (opts, extract) => this.loc.extract(dt, opts, extract),\n formatOffset = (opts) => {\n if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {\n return \"Z\";\n }\n\n return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : \"\";\n },\n meridiem = () =>\n knownEnglish\n ? meridiemForDateTime(dt)\n : string({ hour: \"numeric\", hourCycle: \"h12\" }, \"dayperiod\"),\n month = (length, standalone) =>\n knownEnglish\n ? monthForDateTime(dt, length)\n : string(standalone ? { month: length } : { month: length, day: \"numeric\" }, \"month\"),\n weekday = (length, standalone) =>\n knownEnglish\n ? weekdayForDateTime(dt, length)\n : string(\n standalone ? { weekday: length } : { weekday: length, month: \"long\", day: \"numeric\" },\n \"weekday\"\n ),\n maybeMacro = (token) => {\n const formatOpts = Formatter.macroTokenToFormatOpts(token);\n if (formatOpts) {\n return this.formatWithSystemDefault(dt, formatOpts);\n } else {\n return token;\n }\n },\n era = (length) =>\n knownEnglish ? eraForDateTime(dt, length) : string({ era: length }, \"era\"),\n tokenToString = (token) => {\n // Where possible: https://cldr.unicode.org/translation/date-time/date-time-symbols\n switch (token) {\n // ms\n case \"S\":\n return this.num(dt.millisecond);\n case \"u\":\n // falls through\n case \"SSS\":\n return this.num(dt.millisecond, 3);\n // seconds\n case \"s\":\n return this.num(dt.second);\n case \"ss\":\n return this.num(dt.second, 2);\n // fractional seconds\n case \"uu\":\n return this.num(Math.floor(dt.millisecond / 10), 2);\n case \"uuu\":\n return this.num(Math.floor(dt.millisecond / 100));\n // minutes\n case \"m\":\n return this.num(dt.minute);\n case \"mm\":\n return this.num(dt.minute, 2);\n // hours\n case \"h\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);\n case \"hh\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);\n case \"H\":\n return this.num(dt.hour);\n case \"HH\":\n return this.num(dt.hour, 2);\n // offset\n case \"Z\":\n // like +6\n return formatOffset({ format: \"narrow\", allowZ: this.opts.allowZ });\n case \"ZZ\":\n // like +06:00\n return formatOffset({ format: \"short\", allowZ: this.opts.allowZ });\n case \"ZZZ\":\n // like +0600\n return formatOffset({ format: \"techie\", allowZ: this.opts.allowZ });\n case \"ZZZZ\":\n // like EST\n return dt.zone.offsetName(dt.ts, { format: \"short\", locale: this.loc.locale });\n case \"ZZZZZ\":\n // like Eastern Standard Time\n return dt.zone.offsetName(dt.ts, { format: \"long\", locale: this.loc.locale });\n // zone\n case \"z\":\n // like America/New_York\n return dt.zoneName;\n // meridiems\n case \"a\":\n return meridiem();\n // dates\n case \"d\":\n return useDateTimeFormatter ? string({ day: \"numeric\" }, \"day\") : this.num(dt.day);\n case \"dd\":\n return useDateTimeFormatter ? string({ day: \"2-digit\" }, \"day\") : this.num(dt.day, 2);\n // weekdays - standalone\n case \"c\":\n // like 1\n return this.num(dt.weekday);\n case \"ccc\":\n // like 'Tues'\n return weekday(\"short\", true);\n case \"cccc\":\n // like 'Tuesday'\n return weekday(\"long\", true);\n case \"ccccc\":\n // like 'T'\n return weekday(\"narrow\", true);\n // weekdays - format\n case \"E\":\n // like 1\n return this.num(dt.weekday);\n case \"EEE\":\n // like 'Tues'\n return weekday(\"short\", false);\n case \"EEEE\":\n // like 'Tuesday'\n return weekday(\"long\", false);\n case \"EEEEE\":\n // like 'T'\n return weekday(\"narrow\", false);\n // months - standalone\n case \"L\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\", day: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"LL\":\n // like 01, doesn't seem to work\n return useDateTimeFormatter\n ? string({ month: \"2-digit\", day: \"numeric\" }, \"month\")\n : this.num(dt.month, 2);\n case \"LLL\":\n // like Jan\n return month(\"short\", true);\n case \"LLLL\":\n // like January\n return month(\"long\", true);\n case \"LLLLL\":\n // like J\n return month(\"narrow\", true);\n // months - format\n case \"M\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"MM\":\n // like 01\n return useDateTimeFormatter\n ? string({ month: \"2-digit\" }, \"month\")\n : this.num(dt.month, 2);\n case \"MMM\":\n // like Jan\n return month(\"short\", false);\n case \"MMMM\":\n // like January\n return month(\"long\", false);\n case \"MMMMM\":\n // like J\n return month(\"narrow\", false);\n // years\n case \"y\":\n // like 2014\n return useDateTimeFormatter ? string({ year: \"numeric\" }, \"year\") : this.num(dt.year);\n case \"yy\":\n // like 14\n return useDateTimeFormatter\n ? string({ year: \"2-digit\" }, \"year\")\n : this.num(dt.year.toString().slice(-2), 2);\n case \"yyyy\":\n // like 0012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 4);\n case \"yyyyyy\":\n // like 000012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 6);\n // eras\n case \"G\":\n // like AD\n return era(\"short\");\n case \"GG\":\n // like Anno Domini\n return era(\"long\");\n case \"GGGGG\":\n return era(\"narrow\");\n case \"kk\":\n return this.num(dt.weekYear.toString().slice(-2), 2);\n case \"kkkk\":\n return this.num(dt.weekYear, 4);\n case \"W\":\n return this.num(dt.weekNumber);\n case \"WW\":\n return this.num(dt.weekNumber, 2);\n case \"n\":\n return this.num(dt.localWeekNumber);\n case \"nn\":\n return this.num(dt.localWeekNumber, 2);\n case \"ii\":\n return this.num(dt.localWeekYear.toString().slice(-2), 2);\n case \"iiii\":\n return this.num(dt.localWeekYear, 4);\n case \"o\":\n return this.num(dt.ordinal);\n case \"ooo\":\n return this.num(dt.ordinal, 3);\n case \"q\":\n // like 1\n return this.num(dt.quarter);\n case \"qq\":\n // like 01\n return this.num(dt.quarter, 2);\n case \"X\":\n return this.num(Math.floor(dt.ts / 1000));\n case \"x\":\n return this.num(dt.ts);\n default:\n return maybeMacro(token);\n }\n };\n\n return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);\n }\n\n formatDurationFromString(dur, fmt) {\n const invertLargest = this.opts.signMode === \"negativeLargestOnly\" ? -1 : 1;\n const tokenToField = (token) => {\n switch (token[0]) {\n case \"S\":\n return \"milliseconds\";\n case \"s\":\n return \"seconds\";\n case \"m\":\n return \"minutes\";\n case \"h\":\n return \"hours\";\n case \"d\":\n return \"days\";\n case \"w\":\n return \"weeks\";\n case \"M\":\n return \"months\";\n case \"y\":\n return \"years\";\n default:\n return null;\n }\n },\n tokenToString = (lildur, info) => (token) => {\n const mapped = tokenToField(token);\n if (mapped) {\n const inversionFactor =\n info.isNegativeDuration && mapped !== info.largestUnit ? invertLargest : 1;\n let signDisplay;\n if (this.opts.signMode === \"negativeLargestOnly\" && mapped !== info.largestUnit) {\n signDisplay = \"never\";\n } else if (this.opts.signMode === \"all\") {\n signDisplay = \"always\";\n } else {\n // \"auto\" and \"negative\" are the same, but \"auto\" has better support\n signDisplay = \"auto\";\n }\n return this.num(lildur.get(mapped) * inversionFactor, token.length, signDisplay);\n } else {\n return token;\n }\n },\n tokens = Formatter.parseFormat(fmt),\n realTokens = tokens.reduce(\n (found, { literal, val }) => (literal ? found : found.concat(val)),\n []\n ),\n collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter((t) => t)),\n durationInfo = {\n isNegativeDuration: collapsed < 0,\n // this relies on \"collapsed\" being based on \"shiftTo\", which builds up the object\n // in order\n largestUnit: Object.keys(collapsed.values)[0],\n };\n return stringifyTokens(tokens, tokenToString(collapsed, durationInfo));\n }\n}\n\n/*\n * This file handles parsing for well-specified formats. Here's how it works:\n * Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.\n * An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object\n * parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.\n * Extractors can take a \"cursor\" representing the offset in the match to look at. This makes it easy to combine extractors.\n * combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.\n * Some extractions are super dumb and simpleParse and fromStrings help DRY them.\n */\n\nconst ianaRegex = /[A-Za-z_+-]{1,256}(?::?\\/[A-Za-z0-9_+-]{1,256}(?:\\/[A-Za-z0-9_+-]{1,256})?)?/;\n\nfunction combineRegexes(...regexes) {\n const full = regexes.reduce((f, r) => f + r.source, \"\");\n return RegExp(`^${full}$`);\n}\n\nfunction combineExtractors(...extractors) {\n return (m) =>\n extractors\n .reduce(\n ([mergedVals, mergedZone, cursor], ex) => {\n const [val, zone, next] = ex(m, cursor);\n return [{ ...mergedVals, ...val }, zone || mergedZone, next];\n },\n [{}, null, 1]\n )\n .slice(0, 2);\n}\n\nfunction parse(s, ...patterns) {\n if (s == null) {\n return [null, null];\n }\n\n for (const [regex, extractor] of patterns) {\n const m = regex.exec(s);\n if (m) {\n return extractor(m);\n }\n }\n return [null, null];\n}\n\nfunction simpleParse(...keys) {\n return (match, cursor) => {\n const ret = {};\n let i;\n\n for (i = 0; i < keys.length; i++) {\n ret[keys[i]] = parseInteger(match[cursor + i]);\n }\n return [ret, null, cursor + i];\n };\n}\n\n// ISO and SQL parsing\nconst offsetRegex = /(?:([Zz])|([+-]\\d\\d)(?::?(\\d\\d))?)/;\nconst isoExtendedZone = `(?:${offsetRegex.source}?(?:\\\\[(${ianaRegex.source})\\\\])?)?`;\nconst isoTimeBaseRegex = /(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,30}))?)?)?/;\nconst isoTimeRegex = RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`);\nconst isoTimeExtensionRegex = RegExp(`(?:[Tt]${isoTimeRegex.source})?`);\nconst isoYmdRegex = /([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/;\nconst isoWeekRegex = /(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/;\nconst isoOrdinalRegex = /(\\d{4})-?(\\d{3})/;\nconst extractISOWeekData = simpleParse(\"weekYear\", \"weekNumber\", \"weekDay\");\nconst extractISOOrdinalData = simpleParse(\"year\", \"ordinal\");\nconst sqlYmdRegex = /(\\d{4})-(\\d\\d)-(\\d\\d)/; // dumbed-down version of the ISO one\nconst sqlTimeRegex = RegExp(\n `${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`\n);\nconst sqlTimeExtensionRegex = RegExp(`(?: ${sqlTimeRegex.source})?`);\n\nfunction int(match, pos, fallback) {\n const m = match[pos];\n return isUndefined(m) ? fallback : parseInteger(m);\n}\n\nfunction extractISOYmd(match, cursor) {\n const item = {\n year: int(match, cursor),\n month: int(match, cursor + 1, 1),\n day: int(match, cursor + 2, 1),\n };\n\n return [item, null, cursor + 3];\n}\n\nfunction extractISOTime(match, cursor) {\n const item = {\n hours: int(match, cursor, 0),\n minutes: int(match, cursor + 1, 0),\n seconds: int(match, cursor + 2, 0),\n milliseconds: parseMillis(match[cursor + 3]),\n };\n\n return [item, null, cursor + 4];\n}\n\nfunction extractISOOffset(match, cursor) {\n const local = !match[cursor] && !match[cursor + 1],\n fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),\n zone = local ? null : FixedOffsetZone.instance(fullOffset);\n return [{}, zone, cursor + 3];\n}\n\nfunction extractIANAZone(match, cursor) {\n const zone = match[cursor] ? IANAZone.create(match[cursor]) : null;\n return [{}, zone, cursor + 1];\n}\n\n// ISO time parsing\n\nconst isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`);\n\n// ISO duration parsing\n\nconst isoDuration =\n /^-?P(?:(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)Y)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)W)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)D)?(?:T(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)H)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20})(?:[.,](-?\\d{1,20}))?S)?)?)$/;\n\nfunction extractISODuration(match) {\n const [s, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] =\n match;\n\n const hasNegativePrefix = s[0] === \"-\";\n const negativeSeconds = secondStr && secondStr[0] === \"-\";\n\n const maybeNegate = (num, force = false) =>\n num !== undefined && (force || (num && hasNegativePrefix)) ? -num : num;\n\n return [\n {\n years: maybeNegate(parseFloating(yearStr)),\n months: maybeNegate(parseFloating(monthStr)),\n weeks: maybeNegate(parseFloating(weekStr)),\n days: maybeNegate(parseFloating(dayStr)),\n hours: maybeNegate(parseFloating(hourStr)),\n minutes: maybeNegate(parseFloating(minuteStr)),\n seconds: maybeNegate(parseFloating(secondStr), secondStr === \"-0\"),\n milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds),\n },\n ];\n}\n\n// These are a little braindead. EDT *should* tell us that we're in, say, America/New_York\n// and not just that we're in -240 *right now*. But since I don't think these are used that often\n// I'm just going to ignore that\nconst obsOffsets = {\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n};\n\nfunction fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n const result = {\n year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),\n month: monthsShort.indexOf(monthStr) + 1,\n day: parseInteger(dayStr),\n hour: parseInteger(hourStr),\n minute: parseInteger(minuteStr),\n };\n\n if (secondStr) result.second = parseInteger(secondStr);\n if (weekdayStr) {\n result.weekday =\n weekdayStr.length > 3\n ? weekdaysLong.indexOf(weekdayStr) + 1\n : weekdaysShort.indexOf(weekdayStr) + 1;\n }\n\n return result;\n}\n\n// RFC 2822/5322\nconst rfc2822 =\n /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\\d\\d)(\\d\\d)))$/;\n\nfunction extractRFC2822(match) {\n const [\n ,\n weekdayStr,\n dayStr,\n monthStr,\n yearStr,\n hourStr,\n minuteStr,\n secondStr,\n obsOffset,\n milOffset,\n offHourStr,\n offMinuteStr,\n ] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n\n let offset;\n if (obsOffset) {\n offset = obsOffsets[obsOffset];\n } else if (milOffset) {\n offset = 0;\n } else {\n offset = signedOffset(offHourStr, offMinuteStr);\n }\n\n return [result, new FixedOffsetZone(offset)];\n}\n\nfunction preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^()]*\\)|[\\n\\t]/g, \" \")\n .replace(/(\\s\\s+)/g, \" \")\n .trim();\n}\n\n// http date\n\nconst rfc1123 =\n /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n rfc850 =\n /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n ascii =\n /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;\n\nfunction extractRFC1123Or850(match) {\n const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nfunction extractASCII(match) {\n const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nconst isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);\nconst isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);\nconst isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);\nconst isoTimeCombinedRegex = combineRegexes(isoTimeRegex);\n\nconst extractISOYmdTimeAndOffset = combineExtractors(\n extractISOYmd,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOWeekTimeAndOffset = combineExtractors(\n extractISOWeekData,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOOrdinalDateAndTime = combineExtractors(\n extractISOOrdinalData,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOTimeAndOffset = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\n/*\n * @private\n */\n\nfunction parseISODate(s) {\n return parse(\n s,\n [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset],\n [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime],\n [isoTimeCombinedRegex, extractISOTimeAndOffset]\n );\n}\n\nfunction parseRFC2822Date(s) {\n return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);\n}\n\nfunction parseHTTPDate(s) {\n return parse(\n s,\n [rfc1123, extractRFC1123Or850],\n [rfc850, extractRFC1123Or850],\n [ascii, extractASCII]\n );\n}\n\nfunction parseISODuration(s) {\n return parse(s, [isoDuration, extractISODuration]);\n}\n\nconst extractISOTimeOnly = combineExtractors(extractISOTime);\n\nfunction parseISOTimeOnly(s) {\n return parse(s, [isoTimeOnly, extractISOTimeOnly]);\n}\n\nconst sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);\nconst sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);\n\nconst extractISOTimeOffsetAndIANAZone = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\nfunction parseSQL(s) {\n return parse(\n s,\n [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]\n );\n}\n\nconst INVALID$2 = \"Invalid Duration\";\n\n// unit conversion constants\nconst lowOrderMatrix = {\n weeks: {\n days: 7,\n hours: 7 * 24,\n minutes: 7 * 24 * 60,\n seconds: 7 * 24 * 60 * 60,\n milliseconds: 7 * 24 * 60 * 60 * 1000,\n },\n days: {\n hours: 24,\n minutes: 24 * 60,\n seconds: 24 * 60 * 60,\n milliseconds: 24 * 60 * 60 * 1000,\n },\n hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1000 },\n minutes: { seconds: 60, milliseconds: 60 * 1000 },\n seconds: { milliseconds: 1000 },\n },\n casualMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: 52,\n days: 365,\n hours: 365 * 24,\n minutes: 365 * 24 * 60,\n seconds: 365 * 24 * 60 * 60,\n milliseconds: 365 * 24 * 60 * 60 * 1000,\n },\n quarters: {\n months: 3,\n weeks: 13,\n days: 91,\n hours: 91 * 24,\n minutes: 91 * 24 * 60,\n seconds: 91 * 24 * 60 * 60,\n milliseconds: 91 * 24 * 60 * 60 * 1000,\n },\n months: {\n weeks: 4,\n days: 30,\n hours: 30 * 24,\n minutes: 30 * 24 * 60,\n seconds: 30 * 24 * 60 * 60,\n milliseconds: 30 * 24 * 60 * 60 * 1000,\n },\n\n ...lowOrderMatrix,\n },\n daysInYearAccurate = 146097.0 / 400,\n daysInMonthAccurate = 146097.0 / 4800,\n accurateMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: daysInYearAccurate / 7,\n days: daysInYearAccurate,\n hours: daysInYearAccurate * 24,\n minutes: daysInYearAccurate * 24 * 60,\n seconds: daysInYearAccurate * 24 * 60 * 60,\n milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000,\n },\n quarters: {\n months: 3,\n weeks: daysInYearAccurate / 28,\n days: daysInYearAccurate / 4,\n hours: (daysInYearAccurate * 24) / 4,\n minutes: (daysInYearAccurate * 24 * 60) / 4,\n seconds: (daysInYearAccurate * 24 * 60 * 60) / 4,\n milliseconds: (daysInYearAccurate * 24 * 60 * 60 * 1000) / 4,\n },\n months: {\n weeks: daysInMonthAccurate / 7,\n days: daysInMonthAccurate,\n hours: daysInMonthAccurate * 24,\n minutes: daysInMonthAccurate * 24 * 60,\n seconds: daysInMonthAccurate * 24 * 60 * 60,\n milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000,\n },\n ...lowOrderMatrix,\n };\n\n// units ordered by size\nconst orderedUnits$1 = [\n \"years\",\n \"quarters\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\",\n];\n\nconst reverseUnits = orderedUnits$1.slice(0).reverse();\n\n// clone really means \"create another instance just like this one, but with these changes\"\nfunction clone$1(dur, alts, clear = false) {\n // deep merge for vals\n const conf = {\n values: clear ? alts.values : { ...dur.values, ...(alts.values || {}) },\n loc: dur.loc.clone(alts.loc),\n conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,\n matrix: alts.matrix || dur.matrix,\n };\n return new Duration(conf);\n}\n\nfunction durationToMillis(matrix, vals) {\n let sum = vals.milliseconds ?? 0;\n for (const unit of reverseUnits.slice(1)) {\n if (vals[unit]) {\n sum += vals[unit] * matrix[unit][\"milliseconds\"];\n }\n }\n return sum;\n}\n\n// NB: mutates parameters\nfunction normalizeValues(matrix, vals) {\n // the logic below assumes the overall value of the duration is positive\n // if this is not the case, factor is used to make it so\n const factor = durationToMillis(matrix, vals) < 0 ? -1 : 1;\n\n orderedUnits$1.reduceRight((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const previousVal = vals[previous] * factor;\n const conv = matrix[current][previous];\n\n // if (previousVal < 0):\n // lower order unit is negative (e.g. { years: 2, days: -2 })\n // normalize this by reducing the higher order unit by the appropriate amount\n // and increasing the lower order unit\n // this can never make the higher order unit negative, because this function only operates\n // on positive durations, so the amount of time represented by the lower order unit cannot\n // be larger than the higher order unit\n // else:\n // lower order unit is positive (e.g. { years: 2, days: 450 } or { years: -2, days: 450 })\n // in this case we attempt to convert as much as possible from the lower order unit into\n // the higher order one\n //\n // Math.floor takes care of both of these cases, rounding away from 0\n // if previousVal < 0 it makes the absolute value larger\n // if previousVal >= it makes the absolute value smaller\n const rollUp = Math.floor(previousVal / conv);\n vals[current] += rollUp * factor;\n vals[previous] -= rollUp * conv * factor;\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n\n // try to convert any decimals into smaller units if possible\n // for example for { years: 2.5, days: 0, seconds: 0 } we want to get { years: 2, days: 182, hours: 12 }\n orderedUnits$1.reduce((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const fraction = vals[previous] % 1;\n vals[previous] -= fraction;\n vals[current] += fraction * matrix[previous][current];\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n}\n\n// Remove all properties with a value of 0 from an object\nfunction removeZeroes(vals) {\n const newVals = {};\n for (const [key, value] of Object.entries(vals)) {\n if (value !== 0) {\n newVals[key] = value;\n }\n }\n return newVals;\n}\n\n/**\n * A Duration object represents a period of time, like \"2 months\" or \"1 day, 1 hour\". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime#plus} to add a Duration object to a DateTime, producing another DateTime.\n *\n * Here is a brief overview of commonly used methods and getters in Duration:\n *\n * * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.\n * * **Unit values** See the {@link Duration#years}, {@link Duration#months}, {@link Duration#weeks}, {@link Duration#days}, {@link Duration#hours}, {@link Duration#minutes}, {@link Duration#seconds}, {@link Duration#milliseconds} accessors.\n * * **Configuration** See {@link Duration#locale} and {@link Duration#numberingSystem} accessors.\n * * **Transformation** To create new Durations out of old ones use {@link Duration#plus}, {@link Duration#minus}, {@link Duration#normalize}, {@link Duration#set}, {@link Duration#reconfigure}, {@link Duration#shiftTo}, and {@link Duration#negate}.\n * * **Output** To convert the Duration into other representations, see {@link Duration#as}, {@link Duration#toISO}, {@link Duration#toFormat}, and {@link Duration#toJSON}\n *\n * There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.\n */\nclass Duration {\n /**\n * @private\n */\n constructor(config) {\n const accurate = config.conversionAccuracy === \"longterm\" || false;\n let matrix = accurate ? accurateMatrix : casualMatrix;\n\n if (config.matrix) {\n matrix = config.matrix;\n }\n\n /**\n * @access private\n */\n this.values = config.values;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.conversionAccuracy = accurate ? \"longterm\" : \"casual\";\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.matrix = matrix;\n /**\n * @access private\n */\n this.isLuxonDuration = true;\n }\n\n /**\n * Create Duration from a number of milliseconds.\n * @param {number} count of milliseconds\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n static fromMillis(count, opts) {\n return Duration.fromObject({ milliseconds: count }, opts);\n }\n\n /**\n * Create a Duration from a JavaScript object with keys like 'years' and 'hours'.\n * If this object is empty then a zero milliseconds duration is returned.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.years\n * @param {number} obj.quarters\n * @param {number} obj.months\n * @param {number} obj.weeks\n * @param {number} obj.days\n * @param {number} obj.hours\n * @param {number} obj.minutes\n * @param {number} obj.seconds\n * @param {number} obj.milliseconds\n * @param {Object} [opts=[]] - options for creating this Duration\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the custom conversion system to use\n * @return {Duration}\n */\n static fromObject(obj, opts = {}) {\n if (obj == null || typeof obj !== \"object\") {\n throw new InvalidArgumentError(\n `Duration.fromObject: argument expected to be an object, got ${\n obj === null ? \"null\" : typeof obj\n }`\n );\n }\n\n return new Duration({\n values: normalizeObject(obj, Duration.normalizeUnit),\n loc: Locale.fromObject(opts),\n conversionAccuracy: opts.conversionAccuracy,\n matrix: opts.matrix,\n });\n }\n\n /**\n * Create a Duration from DurationLike.\n *\n * @param {Object | number | Duration} durationLike\n * One of:\n * - object with keys like 'years' and 'hours'.\n * - number representing milliseconds\n * - Duration instance\n * @return {Duration}\n */\n static fromDurationLike(durationLike) {\n if (isNumber(durationLike)) {\n return Duration.fromMillis(durationLike);\n } else if (Duration.isDuration(durationLike)) {\n return durationLike;\n } else if (typeof durationLike === \"object\") {\n return Duration.fromObject(durationLike);\n } else {\n throw new InvalidArgumentError(\n `Unknown duration argument ${durationLike} of type ${typeof durationLike}`\n );\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 duration string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the preset conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }\n * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }\n * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }\n * @return {Duration}\n */\n static fromISO(text, opts) {\n const [parsed] = parseISODuration(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 time string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }\n * @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @return {Duration}\n */\n static fromISOTime(text, opts) {\n const [parsed] = parseISOTimeOnly(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create an invalid Duration.\n * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Duration}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Duration is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDurationError(invalid);\n } else {\n return new Duration({ invalid });\n }\n }\n\n /**\n * @private\n */\n static normalizeUnit(unit) {\n const normalized = {\n year: \"years\",\n years: \"years\",\n quarter: \"quarters\",\n quarters: \"quarters\",\n month: \"months\",\n months: \"months\",\n week: \"weeks\",\n weeks: \"weeks\",\n day: \"days\",\n days: \"days\",\n hour: \"hours\",\n hours: \"hours\",\n minute: \"minutes\",\n minutes: \"minutes\",\n second: \"seconds\",\n seconds: \"seconds\",\n millisecond: \"milliseconds\",\n milliseconds: \"milliseconds\",\n }[unit ? unit.toLowerCase() : unit];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n }\n\n /**\n * Check if an object is a Duration. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDuration(o) {\n return (o && o.isLuxonDuration) || false;\n }\n\n /**\n * Get the locale of a Duration, such 'en-GB'\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:\n * * `S` for milliseconds\n * * `s` for seconds\n * * `m` for minutes\n * * `h` for hours\n * * `d` for days\n * * `w` for weeks\n * * `M` for months\n * * `y` for years\n * Notes:\n * * Add padding by repeating the token, e.g. \"yy\" pads the years to two digits, \"hhhh\" pads the hours out to four digits\n * * Tokens can be escaped by wrapping with single quotes.\n * * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting.\n * @param {string} fmt - the format string\n * @param {Object} opts - options\n * @param {boolean} [opts.floor=true] - floor numerical values\n * @param {'negative'|'all'|'negativeLargestOnly'} [opts.signMode=negative] - How to handle signs\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"y d s\") //=> \"1 6 2\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"yy dd sss\") //=> \"01 06 002\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"M S\") //=> \"12 518402000\"\n * @example Duration.fromObject({ days: 6, seconds: 2 }).toFormat(\"d s\", { signMode: \"all\" }) //=> \"+6 +2\"\n * @example Duration.fromObject({ days: -6, seconds: -2 }).toFormat(\"d s\", { signMode: \"all\" }) //=> \"-6 -2\"\n * @example Duration.fromObject({ days: -6, seconds: -2 }).toFormat(\"d s\", { signMode: \"negativeLargestOnly\" }) //=> \"-6 2\"\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n // reverse-compat since 1.2; we always round down now, never up, and we do it by default\n const fmtOpts = {\n ...opts,\n floor: opts.round !== false && opts.floor !== false,\n };\n return this.isValid\n ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt)\n : INVALID$2;\n }\n\n /**\n * Returns a string representation of a Duration with all units included.\n * To modify its behavior, use `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options\n * @param {Object} opts - Formatting options. Accepts the same keys as the options parameter of the native `Intl.NumberFormat` constructor, as well as `listStyle`.\n * @param {string} [opts.listStyle='narrow'] - How to format the merged list. Corresponds to the `style` property of the options parameter of the native `Intl.ListFormat` constructor.\n * @param {boolean} [opts.showZeros=true] - Show all units previously used by the duration even if they are zero\n * @example\n * ```js\n * var dur = Duration.fromObject({ months: 1, weeks: 0, hours: 5, minutes: 6 })\n * dur.toHuman() //=> '1 month, 0 weeks, 5 hours, 6 minutes'\n * dur.toHuman({ listStyle: \"long\" }) //=> '1 month, 0 weeks, 5 hours, and 6 minutes'\n * dur.toHuman({ unitDisplay: \"short\" }) //=> '1 mth, 0 wks, 5 hr, 6 min'\n * dur.toHuman({ showZeros: false }) //=> '1 month, 5 hours, 6 minutes'\n * ```\n */\n toHuman(opts = {}) {\n if (!this.isValid) return INVALID$2;\n\n const showZeros = opts.showZeros !== false;\n\n const l = orderedUnits$1\n .map((unit) => {\n const val = this.values[unit];\n if (isUndefined(val) || (val === 0 && !showZeros)) {\n return null;\n }\n return this.loc\n .numberFormatter({ style: \"unit\", unitDisplay: \"long\", ...opts, unit: unit.slice(0, -1) })\n .format(val);\n })\n .filter((n) => n);\n\n return this.loc\n .listFormatter({ type: \"conjunction\", style: opts.listStyle || \"narrow\", ...opts })\n .format(l);\n }\n\n /**\n * Returns a JavaScript object with this Duration's values.\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }\n * @return {Object}\n */\n toObject() {\n if (!this.isValid) return {};\n return { ...this.values };\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'\n * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'\n * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'\n * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'\n * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'\n * @return {string}\n */\n toISO() {\n // we could use the formatter, but this is an easier way to get the minimum string\n if (!this.isValid) return null;\n\n let s = \"P\";\n if (this.years !== 0) s += this.years + \"Y\";\n if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + \"M\";\n if (this.weeks !== 0) s += this.weeks + \"W\";\n if (this.days !== 0) s += this.days + \"D\";\n if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0)\n s += \"T\";\n if (this.hours !== 0) s += this.hours + \"H\";\n if (this.minutes !== 0) s += this.minutes + \"M\";\n if (this.seconds !== 0 || this.milliseconds !== 0)\n // this will handle \"floating point madness\" by removing extra decimal places\n // https://stackoverflow.com/questions/588004/is-floating-point-math-broken\n s += roundTo(this.seconds + this.milliseconds / 1000, 3) + \"S\";\n if (s === \"P\") s += \"T0S\";\n return s;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.\n * Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000'\n * @return {string}\n */\n toISOTime(opts = {}) {\n if (!this.isValid) return null;\n\n const millis = this.toMillis();\n if (millis < 0 || millis >= 86400000) return null;\n\n opts = {\n suppressMilliseconds: false,\n suppressSeconds: false,\n includePrefix: false,\n format: \"extended\",\n ...opts,\n includeOffset: false,\n };\n\n const dateTime = DateTime.fromMillis(millis, { zone: \"UTC\" });\n return dateTime.toISOTime(opts);\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in debugging.\n * @return {string}\n */\n toString() {\n return this.toISO();\n }\n\n /**\n * Returns a string representation of this Duration appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Duration { values: ${JSON.stringify(this.values)} }`;\n } else {\n return `Duration { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns an milliseconds value of this Duration.\n * @return {number}\n */\n toMillis() {\n if (!this.isValid) return NaN;\n\n return durationToMillis(this.matrix, this.values);\n }\n\n /**\n * Returns an milliseconds value of this Duration. Alias of {@link toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Make this Duration longer by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n plus(duration) {\n if (!this.isValid) return this;\n\n const dur = Duration.fromDurationLike(duration),\n result = {};\n\n for (const k of orderedUnits$1) {\n if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {\n result[k] = dur.get(k) + this.get(k);\n }\n }\n\n return clone$1(this, { values: result }, true);\n }\n\n /**\n * Make this Duration shorter by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n minus(duration) {\n if (!this.isValid) return this;\n\n const dur = Duration.fromDurationLike(duration);\n return this.plus(dur.negate());\n }\n\n /**\n * Scale this Duration by the specified amount. Return a newly-constructed Duration.\n * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === \"hours\" ? x * 2 : x) //=> { hours: 2, minutes: 30 }\n * @return {Duration}\n */\n mapUnits(fn) {\n if (!this.isValid) return this;\n const result = {};\n for (const k of Object.keys(this.values)) {\n result[k] = asNumber(fn(this.values[k], k));\n }\n return clone$1(this, { values: result }, true);\n }\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2\n * @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0\n * @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3\n * @return {number}\n */\n get(unit) {\n return this[Duration.normalizeUnit(unit)];\n }\n\n /**\n * \"Set\" the values of specified units. Return a newly-constructed Duration.\n * @param {Object} values - a mapping of units to numbers\n * @example dur.set({ years: 2017 })\n * @example dur.set({ hours: 8, minutes: 30 })\n * @return {Duration}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const mixed = { ...this.values, ...normalizeObject(values, Duration.normalizeUnit) };\n return clone$1(this, { values: mixed });\n }\n\n /**\n * \"Set\" the locale and/or numberingSystem. Returns a newly-constructed Duration.\n * @example dur.reconfigure({ locale: 'en-GB' })\n * @return {Duration}\n */\n reconfigure({ locale, numberingSystem, conversionAccuracy, matrix } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem });\n const opts = { loc, matrix, conversionAccuracy };\n return clone$1(this, opts);\n }\n\n /**\n * Return the length of the duration in the specified unit.\n * @param {string} unit - a unit such as 'minutes' or 'days'\n * @example Duration.fromObject({years: 1}).as('days') //=> 365\n * @example Duration.fromObject({years: 1}).as('months') //=> 12\n * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5\n * @return {number}\n */\n as(unit) {\n return this.isValid ? this.shiftTo(unit).get(unit) : NaN;\n }\n\n /**\n * Reduce this Duration to its canonical representation in its current units.\n * Assuming the overall value of the Duration is positive, this means:\n * - excessive values for lower-order units are converted to higher-order units (if possible, see first and second example)\n * - negative lower-order units are converted to higher order units (there must be such a higher order unit, otherwise\n * the overall value would be negative, see third example)\n * - fractional values for higher-order units are converted to lower-order units (if possible, see fourth example)\n *\n * If the overall value is negative, the result of this method is equivalent to `this.negate().normalize().negate()`.\n * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }\n * @example Duration.fromObject({ days: 5000 }).normalize().toObject() //=> { days: 5000 }\n * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }\n * @example Duration.fromObject({ years: 2.5, days: 0, hours: 0 }).normalize().toObject() //=> { years: 2, days: 182, hours: 12 }\n * @return {Duration}\n */\n normalize() {\n if (!this.isValid) return this;\n const vals = this.toObject();\n normalizeValues(this.matrix, vals);\n return clone$1(this, { values: vals }, true);\n }\n\n /**\n * Rescale units to its largest representation\n * @example Duration.fromObject({ milliseconds: 90000 }).rescale().toObject() //=> { minutes: 1, seconds: 30 }\n * @return {Duration}\n */\n rescale() {\n if (!this.isValid) return this;\n const vals = removeZeroes(this.normalize().shiftToAll().toObject());\n return clone$1(this, { values: vals }, true);\n }\n\n /**\n * Convert this Duration into its representation in a different set of units.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }\n * @return {Duration}\n */\n shiftTo(...units) {\n if (!this.isValid) return this;\n\n if (units.length === 0) {\n return this;\n }\n\n units = units.map((u) => Duration.normalizeUnit(u));\n\n const built = {},\n accumulated = {},\n vals = this.toObject();\n let lastUnit;\n\n for (const k of orderedUnits$1) {\n if (units.indexOf(k) >= 0) {\n lastUnit = k;\n\n let own = 0;\n\n // anything we haven't boiled down yet should get boiled to this unit\n for (const ak in accumulated) {\n own += this.matrix[ak][k] * accumulated[ak];\n accumulated[ak] = 0;\n }\n\n // plus anything that's already in this unit\n if (isNumber(vals[k])) {\n own += vals[k];\n }\n\n // only keep the integer part for now in the hopes of putting any decimal part\n // into a smaller unit later\n const i = Math.trunc(own);\n built[k] = i;\n accumulated[k] = (own * 1000 - i * 1000) / 1000;\n\n // otherwise, keep it in the wings to boil it later\n } else if (isNumber(vals[k])) {\n accumulated[k] = vals[k];\n }\n }\n\n // anything leftover becomes the decimal for the last unit\n // lastUnit must be defined since units is not empty\n for (const key in accumulated) {\n if (accumulated[key] !== 0) {\n built[lastUnit] +=\n key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];\n }\n }\n\n normalizeValues(this.matrix, built);\n return clone$1(this, { values: built }, true);\n }\n\n /**\n * Shift this Duration to all available units.\n * Same as shiftTo(\"years\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", \"seconds\", \"milliseconds\")\n * @return {Duration}\n */\n shiftToAll() {\n if (!this.isValid) return this;\n return this.shiftTo(\n \"years\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\"\n );\n }\n\n /**\n * Return the negative of this Duration.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }\n * @return {Duration}\n */\n negate() {\n if (!this.isValid) return this;\n const negated = {};\n for (const k of Object.keys(this.values)) {\n negated[k] = this.values[k] === 0 ? 0 : -this.values[k];\n }\n return clone$1(this, { values: negated }, true);\n }\n\n /**\n * Removes all units with values equal to 0 from this Duration.\n * @example Duration.fromObject({ years: 2, days: 0, hours: 0, minutes: 0 }).removeZeros().toObject() //=> { years: 2 }\n * @return {Duration}\n */\n removeZeros() {\n if (!this.isValid) return this;\n const vals = removeZeroes(this.values);\n return clone$1(this, { values: vals }, true);\n }\n\n /**\n * Get the years.\n * @type {number}\n */\n get years() {\n return this.isValid ? this.values.years || 0 : NaN;\n }\n\n /**\n * Get the quarters.\n * @type {number}\n */\n get quarters() {\n return this.isValid ? this.values.quarters || 0 : NaN;\n }\n\n /**\n * Get the months.\n * @type {number}\n */\n get months() {\n return this.isValid ? this.values.months || 0 : NaN;\n }\n\n /**\n * Get the weeks\n * @type {number}\n */\n get weeks() {\n return this.isValid ? this.values.weeks || 0 : NaN;\n }\n\n /**\n * Get the days.\n * @type {number}\n */\n get days() {\n return this.isValid ? this.values.days || 0 : NaN;\n }\n\n /**\n * Get the hours.\n * @type {number}\n */\n get hours() {\n return this.isValid ? this.values.hours || 0 : NaN;\n }\n\n /**\n * Get the minutes.\n * @type {number}\n */\n get minutes() {\n return this.isValid ? this.values.minutes || 0 : NaN;\n }\n\n /**\n * Get the seconds.\n * @return {number}\n */\n get seconds() {\n return this.isValid ? this.values.seconds || 0 : NaN;\n }\n\n /**\n * Get the milliseconds.\n * @return {number}\n */\n get milliseconds() {\n return this.isValid ? this.values.milliseconds || 0 : NaN;\n }\n\n /**\n * Returns whether the Duration is invalid. Invalid durations are returned by diff operations\n * on invalid DateTimes or Intervals.\n * @return {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this Duration became invalid, or null if the Duration is valid\n * @return {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Duration became invalid, or null if the Duration is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Equality check\n * Two Durations are equal iff they have the same units and the same values for each unit.\n * @param {Duration} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n if (!this.loc.equals(other.loc)) {\n return false;\n }\n\n function eq(v1, v2) {\n // Consider 0 and undefined as equal\n if (v1 === undefined || v1 === 0) return v2 === undefined || v2 === 0;\n return v1 === v2;\n }\n\n for (const u of orderedUnits$1) {\n if (!eq(this.values[u], other.values[u])) {\n return false;\n }\n }\n return true;\n }\n}\n\nconst INVALID$1 = \"Invalid Interval\";\n\n// checks if the start is equal to or before the end\nfunction validateStartEnd(start, end) {\n if (!start || !start.isValid) {\n return Interval.invalid(\"missing or invalid start\");\n } else if (!end || !end.isValid) {\n return Interval.invalid(\"missing or invalid end\");\n } else if (end < start) {\n return Interval.invalid(\n \"end before start\",\n `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`\n );\n } else {\n return null;\n }\n}\n\n/**\n * An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.\n *\n * Here is a brief overview of the most commonly used methods and getters in Interval:\n *\n * * **Creation** To create an Interval, use {@link Interval.fromDateTimes}, {@link Interval.after}, {@link Interval.before}, or {@link Interval.fromISO}.\n * * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.\n * * **Interrogation** To analyze the Interval, use {@link Interval#count}, {@link Interval#length}, {@link Interval#hasSame}, {@link Interval#contains}, {@link Interval#isAfter}, or {@link Interval#isBefore}.\n * * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval.merge}, {@link Interval.xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.\n * * **Comparison** To compare this Interval to another one, use {@link Interval#equals}, {@link Interval#overlaps}, {@link Interval#abutsStart}, {@link Interval#abutsEnd}, {@link Interval#engulfs}\n * * **Output** To convert the Interval into other representations, see {@link Interval#toString}, {@link Interval#toLocaleString}, {@link Interval#toISO}, {@link Interval#toISODate}, {@link Interval#toISOTime}, {@link Interval#toFormat}, and {@link Interval#toDuration}.\n */\nclass Interval {\n /**\n * @private\n */\n constructor(config) {\n /**\n * @access private\n */\n this.s = config.start;\n /**\n * @access private\n */\n this.e = config.end;\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.isLuxonInterval = true;\n }\n\n /**\n * Create an invalid Interval.\n * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Interval}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Interval is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidIntervalError(invalid);\n } else {\n return new Interval({ invalid });\n }\n }\n\n /**\n * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.\n * @param {DateTime|Date|Object} start\n * @param {DateTime|Date|Object} end\n * @return {Interval}\n */\n static fromDateTimes(start, end) {\n const builtStart = friendlyDateTime(start),\n builtEnd = friendlyDateTime(end);\n\n const validateError = validateStartEnd(builtStart, builtEnd);\n\n if (validateError == null) {\n return new Interval({\n start: builtStart,\n end: builtEnd,\n });\n } else {\n return validateError;\n }\n }\n\n /**\n * Create an Interval from a start DateTime and a Duration to extend to.\n * @param {DateTime|Date|Object} start\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static after(start, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(start);\n return Interval.fromDateTimes(dt, dt.plus(dur));\n }\n\n /**\n * Create an Interval from an end DateTime and a Duration to extend backwards to.\n * @param {DateTime|Date|Object} end\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static before(end, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(end);\n return Interval.fromDateTimes(dt.minus(dur), dt);\n }\n\n /**\n * Create an Interval from an ISO 8601 string.\n * Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.\n * @param {string} text - the ISO string to parse\n * @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {Interval}\n */\n static fromISO(text, opts) {\n const [s, e] = (text || \"\").split(\"/\", 2);\n if (s && e) {\n let start, startIsValid;\n try {\n start = DateTime.fromISO(s, opts);\n startIsValid = start.isValid;\n } catch (e) {\n startIsValid = false;\n }\n\n let end, endIsValid;\n try {\n end = DateTime.fromISO(e, opts);\n endIsValid = end.isValid;\n } catch (e) {\n endIsValid = false;\n }\n\n if (startIsValid && endIsValid) {\n return Interval.fromDateTimes(start, end);\n }\n\n if (startIsValid) {\n const dur = Duration.fromISO(e, opts);\n if (dur.isValid) {\n return Interval.after(start, dur);\n }\n } else if (endIsValid) {\n const dur = Duration.fromISO(s, opts);\n if (dur.isValid) {\n return Interval.before(end, dur);\n }\n }\n }\n return Interval.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n\n /**\n * Check if an object is an Interval. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isInterval(o) {\n return (o && o.isLuxonInterval) || false;\n }\n\n /**\n * Returns the start of the Interval\n * @type {DateTime}\n */\n get start() {\n return this.isValid ? this.s : null;\n }\n\n /**\n * Returns the end of the Interval. This is the first instant which is not part of the interval\n * (Interval is half-open).\n * @type {DateTime}\n */\n get end() {\n return this.isValid ? this.e : null;\n }\n\n /**\n * Returns the last DateTime included in the interval (since end is not part of the interval)\n * @type {DateTime}\n */\n get lastDateTime() {\n return this.isValid ? (this.e ? this.e.minus(1) : null) : null;\n }\n\n /**\n * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.\n * @type {boolean}\n */\n get isValid() {\n return this.invalidReason === null;\n }\n\n /**\n * Returns an error code if this Interval is invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Interval became invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Returns the length of the Interval in the specified unit.\n * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.\n * @return {number}\n */\n length(unit = \"milliseconds\") {\n return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN;\n }\n\n /**\n * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.\n * Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'\n * asks 'what dates are included in this interval?', not 'how many days long is this interval?'\n * @param {string} [unit='milliseconds'] - the unit of time to count.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime\n * @return {number}\n */\n count(unit = \"milliseconds\", opts) {\n if (!this.isValid) return NaN;\n const start = this.start.startOf(unit, opts);\n let end;\n if (opts?.useLocaleWeeks) {\n end = this.end.reconfigure({ locale: start.locale });\n } else {\n end = this.end;\n }\n end = end.startOf(unit, opts);\n return Math.floor(end.diff(start, unit).get(unit)) + (end.valueOf() !== this.end.valueOf());\n }\n\n /**\n * Returns whether this Interval's start and end are both in the same unit of time\n * @param {string} unit - the unit of time to check sameness on\n * @return {boolean}\n */\n hasSame(unit) {\n return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;\n }\n\n /**\n * Return whether this Interval has the same start and end DateTimes.\n * @return {boolean}\n */\n isEmpty() {\n return this.s.valueOf() === this.e.valueOf();\n }\n\n /**\n * Return whether this Interval's start is after the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isAfter(dateTime) {\n if (!this.isValid) return false;\n return this.s > dateTime;\n }\n\n /**\n * Return whether this Interval's end is before the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isBefore(dateTime) {\n if (!this.isValid) return false;\n return this.e <= dateTime;\n }\n\n /**\n * Return whether this Interval contains the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n contains(dateTime) {\n if (!this.isValid) return false;\n return this.s <= dateTime && this.e > dateTime;\n }\n\n /**\n * \"Sets\" the start and/or end dates. Returns a newly-constructed Interval.\n * @param {Object} values - the values to set\n * @param {DateTime} values.start - the starting DateTime\n * @param {DateTime} values.end - the ending DateTime\n * @return {Interval}\n */\n set({ start, end } = {}) {\n if (!this.isValid) return this;\n return Interval.fromDateTimes(start || this.s, end || this.e);\n }\n\n /**\n * Split this Interval at each of the specified DateTimes\n * @param {...DateTime} dateTimes - the unit of time to count.\n * @return {Array}\n */\n splitAt(...dateTimes) {\n if (!this.isValid) return [];\n const sorted = dateTimes\n .map(friendlyDateTime)\n .filter((d) => this.contains(d))\n .sort((a, b) => a.toMillis() - b.toMillis()),\n results = [];\n let { s } = this,\n i = 0;\n\n while (s < this.e) {\n const added = sorted[i] || this.e,\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n i += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into smaller Intervals, each of the specified length.\n * Left over time is grouped into a smaller interval\n * @param {Duration|Object|number} duration - The length of each resulting interval.\n * @return {Array}\n */\n splitBy(duration) {\n const dur = Duration.fromDurationLike(duration);\n\n if (!this.isValid || !dur.isValid || dur.as(\"milliseconds\") === 0) {\n return [];\n }\n\n let { s } = this,\n idx = 1,\n next;\n\n const results = [];\n while (s < this.e) {\n const added = this.start.plus(dur.mapUnits((x) => x * idx));\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n idx += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into the specified number of smaller intervals.\n * @param {number} numberOfParts - The number of Intervals to divide the Interval into.\n * @return {Array}\n */\n divideEqually(numberOfParts) {\n if (!this.isValid) return [];\n return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);\n }\n\n /**\n * Return whether this Interval overlaps with the specified Interval\n * @param {Interval} other\n * @return {boolean}\n */\n overlaps(other) {\n return this.e > other.s && this.s < other.e;\n }\n\n /**\n * Return whether this Interval's end is adjacent to the specified Interval's start.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsStart(other) {\n if (!this.isValid) return false;\n return +this.e === +other.s;\n }\n\n /**\n * Return whether this Interval's start is adjacent to the specified Interval's end.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsEnd(other) {\n if (!this.isValid) return false;\n return +other.e === +this.s;\n }\n\n /**\n * Returns true if this Interval fully contains the specified Interval, specifically if the intersect (of this Interval and the other Interval) is equal to the other Interval; false otherwise.\n * @param {Interval} other\n * @return {boolean}\n */\n engulfs(other) {\n if (!this.isValid) return false;\n return this.s <= other.s && this.e >= other.e;\n }\n\n /**\n * Return whether this Interval has the same start and end as the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n return this.s.equals(other.s) && this.e.equals(other.e);\n }\n\n /**\n * Return an Interval representing the intersection of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.\n * Returns null if the intersection is empty, meaning, the intervals don't intersect.\n * @param {Interval} other\n * @return {Interval}\n */\n intersection(other) {\n if (!this.isValid) return this;\n const s = this.s > other.s ? this.s : other.s,\n e = this.e < other.e ? this.e : other.e;\n\n if (s >= e) {\n return null;\n } else {\n return Interval.fromDateTimes(s, e);\n }\n }\n\n /**\n * Return an Interval representing the union of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.\n * @param {Interval} other\n * @return {Interval}\n */\n union(other) {\n if (!this.isValid) return this;\n const s = this.s < other.s ? this.s : other.s,\n e = this.e > other.e ? this.e : other.e;\n return Interval.fromDateTimes(s, e);\n }\n\n /**\n * Merge an array of Intervals into an equivalent minimal set of Intervals.\n * Combines overlapping and adjacent Intervals.\n * The resulting array will contain the Intervals in ascending order, that is, starting with the earliest Interval\n * and ending with the latest.\n *\n * @param {Array} intervals\n * @return {Array}\n */\n static merge(intervals) {\n const [found, final] = intervals\n .sort((a, b) => a.s - b.s)\n .reduce(\n ([sofar, current], item) => {\n if (!current) {\n return [sofar, item];\n } else if (current.overlaps(item) || current.abutsStart(item)) {\n return [sofar, current.union(item)];\n } else {\n return [sofar.concat([current]), item];\n }\n },\n [[], null]\n );\n if (final) {\n found.push(final);\n }\n return found;\n }\n\n /**\n * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.\n * @param {Array} intervals\n * @return {Array}\n */\n static xor(intervals) {\n let start = null,\n currentCount = 0;\n const results = [],\n ends = intervals.map((i) => [\n { time: i.s, type: \"s\" },\n { time: i.e, type: \"e\" },\n ]),\n flattened = Array.prototype.concat(...ends),\n arr = flattened.sort((a, b) => a.time - b.time);\n\n for (const i of arr) {\n currentCount += i.type === \"s\" ? 1 : -1;\n\n if (currentCount === 1) {\n start = i.time;\n } else {\n if (start && +start !== +i.time) {\n results.push(Interval.fromDateTimes(start, i.time));\n }\n\n start = null;\n }\n }\n\n return Interval.merge(results);\n }\n\n /**\n * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.\n * @param {...Interval} intervals\n * @return {Array}\n */\n difference(...intervals) {\n return Interval.xor([this].concat(intervals))\n .map((i) => this.intersection(i))\n .filter((i) => i && !i.isEmpty());\n }\n\n /**\n * Returns a string representation of this Interval appropriate for debugging.\n * @return {string}\n */\n toString() {\n if (!this.isValid) return INVALID$1;\n return `[${this.s.toISO()} – ${this.e.toISO()})`;\n }\n\n /**\n * Returns a string representation of this Interval appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`;\n } else {\n return `Interval { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns a localized string representing this Interval. Accepts the same options as the\n * Intl.DateTimeFormat constructor and any presets defined by Luxon, such as\n * {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method\n * is browser-specific, but in general it will return an appropriate representation of the\n * Interval in the assigned locale. Defaults to the system's locale if no locale has been\n * specified.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or\n * Intl.DateTimeFormat constructor options.\n * @param {Object} opts - Options to override the configuration of the start DateTime.\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p\n * @return {string}\n */\n toLocaleString(formatOpts = DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this)\n : INVALID$1;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Interval.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISO(opts) {\n if (!this.isValid) return INVALID$1;\n return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of date of this Interval.\n * The time components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {string}\n */\n toISODate() {\n if (!this.isValid) return INVALID$1;\n return `${this.s.toISODate()}/${this.e.toISODate()}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of time of this Interval.\n * The date components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISOTime(opts) {\n if (!this.isValid) return INVALID$1;\n return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this Interval formatted according to the specified format\n * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible\n * formatting tool.\n * @param {string} dateFormat - The format string. This string formats the start and end time.\n * See {@link DateTime#toFormat} for details.\n * @param {Object} opts - Options.\n * @param {string} [opts.separator = ' – '] - A separator to place between the start and end\n * representations.\n * @return {string}\n */\n toFormat(dateFormat, { separator = \" – \" } = {}) {\n if (!this.isValid) return INVALID$1;\n return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`;\n }\n\n /**\n * Return a Duration representing the time spanned by this interval.\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }\n * @return {Duration}\n */\n toDuration(unit, opts) {\n if (!this.isValid) {\n return Duration.invalid(this.invalidReason);\n }\n return this.e.diff(this.s, unit, opts);\n }\n\n /**\n * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes\n * @param {function} mapFn\n * @return {Interval}\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))\n */\n mapEndpoints(mapFn) {\n return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));\n }\n}\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\nclass Info {\n /**\n * Return whether the specified zone contains a DST.\n * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n * @return {boolean}\n */\n static hasDST(zone = Settings.defaultZone) {\n const proto = DateTime.now().setZone(zone).set({ month: 12 });\n\n return !zone.isUniversal && proto.offset !== proto.set({ month: 6 }).offset;\n }\n\n /**\n * Return whether the specified zone is a valid IANA specifier.\n * @param {string} zone - Zone to check\n * @return {boolean}\n */\n static isValidIANAZone(zone) {\n return IANAZone.isValidZone(zone);\n }\n\n /**\n * Converts the input into a {@link Zone} instance.\n *\n * * If `input` is already a Zone instance, it is returned unchanged.\n * * If `input` is a string containing a valid time zone name, a Zone instance\n * with that name is returned.\n * * If `input` is a string that doesn't refer to a known time zone, a Zone\n * instance with {@link Zone#isValid} == false is returned.\n * * If `input is a number, a Zone instance with the specified fixed offset\n * in minutes is returned.\n * * If `input` is `null` or `undefined`, the default zone is returned.\n * @param {string|Zone|number} [input] - the value to be converted\n * @return {Zone}\n */\n static normalizeZone(input) {\n return normalizeZone(input, Settings.defaultZone);\n }\n\n /**\n * Get the weekday on which the week starts according to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number} the start of the week, 1 for Monday through 7 for Sunday\n */\n static getStartOfWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getStartOfWeek();\n }\n\n /**\n * Get the minimum number of days necessary in a week before it is considered part of the next year according\n * to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number}\n */\n static getMinimumDaysInFirstWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getMinDaysInFirstWeek();\n }\n\n /**\n * Get the weekdays, which are considered the weekend according to the given locale\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday\n */\n static getWeekendWeekdays({ locale = null, locObj = null } = {}) {\n // copy the array, because we cache it internally\n return (locObj || Locale.create(locale)).getWeekendDays().slice();\n }\n\n /**\n * Return an array of standalone month names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @example Info.months()[0] //=> 'January'\n * @example Info.months('short')[0] //=> 'Jan'\n * @example Info.months('numeric')[0] //=> '1'\n * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'\n * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'\n * @return {Array}\n */\n static months(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);\n }\n\n /**\n * Return an array of format month names.\n * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n * changes the string.\n * See {@link Info#months}\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @return {Array}\n */\n static monthsFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);\n }\n\n /**\n * Return an array of standalone week names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the weekday representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @example Info.weekdays()[0] //=> 'Monday'\n * @example Info.weekdays('short')[0] //=> 'Mon'\n * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n * @return {Array}\n */\n static weekdays(length = \"long\", { locale = null, numberingSystem = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);\n }\n\n /**\n * Return an array of format week names.\n * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n * changes the string.\n * See {@link Info#weekdays}\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale=null] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @return {Array}\n */\n static weekdaysFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);\n }\n\n /**\n * Return an array of meridiems.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n * @return {Array}\n */\n static meridiems({ locale = null } = {}) {\n return Locale.create(locale).meridiems();\n }\n\n /**\n * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.eras() //=> [ 'BC', 'AD' ]\n * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n * @return {Array}\n */\n static eras(length = \"short\", { locale = null } = {}) {\n return Locale.create(locale, null, \"gregory\").eras(length);\n }\n\n /**\n * Return the set of available features in this environment.\n * Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.\n * Keys:\n * * `relative`: whether this environment supports relative time formatting\n * * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale\n * @example Info.features() //=> { relative: false, localeWeek: true }\n * @return {Object}\n */\n static features() {\n return { relative: hasRelative(), localeWeek: hasLocaleWeekInfo() };\n }\n}\n\nfunction dayDiff(earlier, later) {\n const utcDayStart = (dt) => dt.toUTC(0, { keepLocalTime: true }).startOf(\"day\").valueOf(),\n ms = utcDayStart(later) - utcDayStart(earlier);\n return Math.floor(Duration.fromMillis(ms).as(\"days\"));\n}\n\nfunction highOrderDiffs(cursor, later, units) {\n const differs = [\n [\"years\", (a, b) => b.year - a.year],\n [\"quarters\", (a, b) => b.quarter - a.quarter + (b.year - a.year) * 4],\n [\"months\", (a, b) => b.month - a.month + (b.year - a.year) * 12],\n [\n \"weeks\",\n (a, b) => {\n const days = dayDiff(a, b);\n return (days - (days % 7)) / 7;\n },\n ],\n [\"days\", dayDiff],\n ];\n\n const results = {};\n const earlier = cursor;\n let lowestOrder, highWater;\n\n /* This loop tries to diff using larger units first.\n If we overshoot, we backtrack and try the next smaller unit.\n \"cursor\" starts out at the earlier timestamp and moves closer and closer to \"later\"\n as we use smaller and smaller units.\n highWater keeps track of where we would be if we added one more of the smallest unit,\n this is used later to potentially convert any difference smaller than the smallest higher order unit\n into a fraction of that smallest higher order unit\n */\n for (const [unit, differ] of differs) {\n if (units.indexOf(unit) >= 0) {\n lowestOrder = unit;\n\n results[unit] = differ(cursor, later);\n highWater = earlier.plus(results);\n\n if (highWater > later) {\n // we overshot the end point, backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n\n // if we are still overshooting now, we need to backtrack again\n // this happens in certain situations when diffing times in different zones,\n // because this calculation ignores time zones\n if (cursor > later) {\n // keep the \"overshot by 1\" around as highWater\n highWater = cursor;\n // backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n }\n } else {\n cursor = highWater;\n }\n }\n }\n\n return [cursor, results, highWater, lowestOrder];\n}\n\nfunction diff (earlier, later, units, opts) {\n let [cursor, results, highWater, lowestOrder] = highOrderDiffs(earlier, later, units);\n\n const remainingMillis = later - cursor;\n\n const lowerOrderUnits = units.filter(\n (u) => [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"].indexOf(u) >= 0\n );\n\n if (lowerOrderUnits.length === 0) {\n if (highWater < later) {\n highWater = cursor.plus({ [lowestOrder]: 1 });\n }\n\n if (highWater !== cursor) {\n results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);\n }\n }\n\n const duration = Duration.fromObject(results, opts);\n\n if (lowerOrderUnits.length > 0) {\n return Duration.fromMillis(remainingMillis, opts)\n .shiftTo(...lowerOrderUnits)\n .plus(duration);\n } else {\n return duration;\n }\n}\n\nconst MISSING_FTP = \"missing Intl.DateTimeFormat.formatToParts support\";\n\nfunction intUnit(regex, post = (i) => i) {\n return { regex, deser: ([s]) => post(parseDigits(s)) };\n}\n\nconst NBSP = String.fromCharCode(160);\nconst spaceOrNBSP = `[ ${NBSP}]`;\nconst spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, \"g\");\n\nfunction fixListRegex(s) {\n // make dots optional and also make them literal\n // make space and non breakable space characters interchangeable\n return s.replace(/\\./g, \"\\\\.?\").replace(spaceOrNBSPRegExp, spaceOrNBSP);\n}\n\nfunction stripInsensitivities(s) {\n return s\n .replace(/\\./g, \"\") // ignore dots that were made optional\n .replace(spaceOrNBSPRegExp, \" \") // interchange space and nbsp\n .toLowerCase();\n}\n\nfunction oneOf(strings, startIndex) {\n if (strings === null) {\n return null;\n } else {\n return {\n regex: RegExp(strings.map(fixListRegex).join(\"|\")),\n deser: ([s]) =>\n strings.findIndex((i) => stripInsensitivities(s) === stripInsensitivities(i)) + startIndex,\n };\n }\n}\n\nfunction offset(regex, groups) {\n return { regex, deser: ([, h, m]) => signedOffset(h, m), groups };\n}\n\nfunction simple(regex) {\n return { regex, deser: ([s]) => s };\n}\n\nfunction escapeToken(value) {\n return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g, \"\\\\$&\");\n}\n\n/**\n * @param token\n * @param {Locale} loc\n */\nfunction unitForToken(token, loc) {\n const one = digitRegex(loc),\n two = digitRegex(loc, \"{2}\"),\n three = digitRegex(loc, \"{3}\"),\n four = digitRegex(loc, \"{4}\"),\n six = digitRegex(loc, \"{6}\"),\n oneOrTwo = digitRegex(loc, \"{1,2}\"),\n oneToThree = digitRegex(loc, \"{1,3}\"),\n oneToSix = digitRegex(loc, \"{1,6}\"),\n oneToNine = digitRegex(loc, \"{1,9}\"),\n twoToFour = digitRegex(loc, \"{2,4}\"),\n fourToSix = digitRegex(loc, \"{4,6}\"),\n literal = (t) => ({ regex: RegExp(escapeToken(t.val)), deser: ([s]) => s, literal: true }),\n unitate = (t) => {\n if (token.literal) {\n return literal(t);\n }\n switch (t.val) {\n // era\n case \"G\":\n return oneOf(loc.eras(\"short\"), 0);\n case \"GG\":\n return oneOf(loc.eras(\"long\"), 0);\n // years\n case \"y\":\n return intUnit(oneToSix);\n case \"yy\":\n return intUnit(twoToFour, untruncateYear);\n case \"yyyy\":\n return intUnit(four);\n case \"yyyyy\":\n return intUnit(fourToSix);\n case \"yyyyyy\":\n return intUnit(six);\n // months\n case \"M\":\n return intUnit(oneOrTwo);\n case \"MM\":\n return intUnit(two);\n case \"MMM\":\n return oneOf(loc.months(\"short\", true), 1);\n case \"MMMM\":\n return oneOf(loc.months(\"long\", true), 1);\n case \"L\":\n return intUnit(oneOrTwo);\n case \"LL\":\n return intUnit(two);\n case \"LLL\":\n return oneOf(loc.months(\"short\", false), 1);\n case \"LLLL\":\n return oneOf(loc.months(\"long\", false), 1);\n // dates\n case \"d\":\n return intUnit(oneOrTwo);\n case \"dd\":\n return intUnit(two);\n // ordinals\n case \"o\":\n return intUnit(oneToThree);\n case \"ooo\":\n return intUnit(three);\n // time\n case \"HH\":\n return intUnit(two);\n case \"H\":\n return intUnit(oneOrTwo);\n case \"hh\":\n return intUnit(two);\n case \"h\":\n return intUnit(oneOrTwo);\n case \"mm\":\n return intUnit(two);\n case \"m\":\n return intUnit(oneOrTwo);\n case \"q\":\n return intUnit(oneOrTwo);\n case \"qq\":\n return intUnit(two);\n case \"s\":\n return intUnit(oneOrTwo);\n case \"ss\":\n return intUnit(two);\n case \"S\":\n return intUnit(oneToThree);\n case \"SSS\":\n return intUnit(three);\n case \"u\":\n return simple(oneToNine);\n case \"uu\":\n return simple(oneOrTwo);\n case \"uuu\":\n return intUnit(one);\n // meridiem\n case \"a\":\n return oneOf(loc.meridiems(), 0);\n // weekYear (k)\n case \"kkkk\":\n return intUnit(four);\n case \"kk\":\n return intUnit(twoToFour, untruncateYear);\n // weekNumber (W)\n case \"W\":\n return intUnit(oneOrTwo);\n case \"WW\":\n return intUnit(two);\n // weekdays\n case \"E\":\n case \"c\":\n return intUnit(one);\n case \"EEE\":\n return oneOf(loc.weekdays(\"short\", false), 1);\n case \"EEEE\":\n return oneOf(loc.weekdays(\"long\", false), 1);\n case \"ccc\":\n return oneOf(loc.weekdays(\"short\", true), 1);\n case \"cccc\":\n return oneOf(loc.weekdays(\"long\", true), 1);\n // offset/zone\n case \"Z\":\n case \"ZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2);\n case \"ZZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2);\n // we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing\n // because we don't have any way to figure out what they are\n case \"z\":\n return simple(/[a-z_+-/]{1,256}?/i);\n // this special-case \"token\" represents a place where a macro-token expanded into a white-space literal\n // in this case we accept any non-newline white-space\n case \" \":\n return simple(/[^\\S\\n\\r]/);\n default:\n return literal(t);\n }\n };\n\n const unit = unitate(token) || {\n invalidReason: MISSING_FTP,\n };\n\n unit.token = token;\n\n return unit;\n}\n\nconst partTypeStyleToTokenVal = {\n year: {\n \"2-digit\": \"yy\",\n numeric: \"yyyyy\",\n },\n month: {\n numeric: \"M\",\n \"2-digit\": \"MM\",\n short: \"MMM\",\n long: \"MMMM\",\n },\n day: {\n numeric: \"d\",\n \"2-digit\": \"dd\",\n },\n weekday: {\n short: \"EEE\",\n long: \"EEEE\",\n },\n dayperiod: \"a\",\n dayPeriod: \"a\",\n hour12: {\n numeric: \"h\",\n \"2-digit\": \"hh\",\n },\n hour24: {\n numeric: \"H\",\n \"2-digit\": \"HH\",\n },\n minute: {\n numeric: \"m\",\n \"2-digit\": \"mm\",\n },\n second: {\n numeric: \"s\",\n \"2-digit\": \"ss\",\n },\n timeZoneName: {\n long: \"ZZZZZ\",\n short: \"ZZZ\",\n },\n};\n\nfunction tokenForPart(part, formatOpts, resolvedOpts) {\n const { type, value } = part;\n\n if (type === \"literal\") {\n const isSpace = /^\\s+$/.test(value);\n return {\n literal: !isSpace,\n val: isSpace ? \" \" : value,\n };\n }\n\n const style = formatOpts[type];\n\n // The user might have explicitly specified hour12 or hourCycle\n // if so, respect their decision\n // if not, refer back to the resolvedOpts, which are based on the locale\n let actualType = type;\n if (type === \"hour\") {\n if (formatOpts.hour12 != null) {\n actualType = formatOpts.hour12 ? \"hour12\" : \"hour24\";\n } else if (formatOpts.hourCycle != null) {\n if (formatOpts.hourCycle === \"h11\" || formatOpts.hourCycle === \"h12\") {\n actualType = \"hour12\";\n } else {\n actualType = \"hour24\";\n }\n } else {\n // tokens only differentiate between 24 hours or not,\n // so we do not need to check hourCycle here, which is less supported anyways\n actualType = resolvedOpts.hour12 ? \"hour12\" : \"hour24\";\n }\n }\n let val = partTypeStyleToTokenVal[actualType];\n if (typeof val === \"object\") {\n val = val[style];\n }\n\n if (val) {\n return {\n literal: false,\n val,\n };\n }\n\n return undefined;\n}\n\nfunction buildRegex(units) {\n const re = units.map((u) => u.regex).reduce((f, r) => `${f}(${r.source})`, \"\");\n return [`^${re}$`, units];\n}\n\nfunction match(input, regex, handlers) {\n const matches = input.match(regex);\n\n if (matches) {\n const all = {};\n let matchIndex = 1;\n for (const i in handlers) {\n if (hasOwnProperty(handlers, i)) {\n const h = handlers[i],\n groups = h.groups ? h.groups + 1 : 1;\n if (!h.literal && h.token) {\n all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));\n }\n matchIndex += groups;\n }\n }\n return [matches, all];\n } else {\n return [matches, {}];\n }\n}\n\nfunction dateTimeFromMatches(matches) {\n const toField = (token) => {\n switch (token) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n case \"H\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"o\":\n return \"ordinal\";\n case \"L\":\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n case \"E\":\n case \"c\":\n return \"weekday\";\n case \"W\":\n return \"weekNumber\";\n case \"k\":\n return \"weekYear\";\n case \"q\":\n return \"quarter\";\n default:\n return null;\n }\n };\n\n let zone = null;\n let specificOffset;\n if (!isUndefined(matches.z)) {\n zone = IANAZone.create(matches.z);\n }\n\n if (!isUndefined(matches.Z)) {\n if (!zone) {\n zone = new FixedOffsetZone(matches.Z);\n }\n specificOffset = matches.Z;\n }\n\n if (!isUndefined(matches.q)) {\n matches.M = (matches.q - 1) * 3 + 1;\n }\n\n if (!isUndefined(matches.h)) {\n if (matches.h < 12 && matches.a === 1) {\n matches.h += 12;\n } else if (matches.h === 12 && matches.a === 0) {\n matches.h = 0;\n }\n }\n\n if (matches.G === 0 && matches.y) {\n matches.y = -matches.y;\n }\n\n if (!isUndefined(matches.u)) {\n matches.S = parseMillis(matches.u);\n }\n\n const vals = Object.keys(matches).reduce((r, k) => {\n const f = toField(k);\n if (f) {\n r[f] = matches[k];\n }\n\n return r;\n }, {});\n\n return [vals, zone, specificOffset];\n}\n\nlet dummyDateTimeCache = null;\n\nfunction getDummyDateTime() {\n if (!dummyDateTimeCache) {\n dummyDateTimeCache = DateTime.fromMillis(1555555555555);\n }\n\n return dummyDateTimeCache;\n}\n\nfunction maybeExpandMacroToken(token, locale) {\n if (token.literal) {\n return token;\n }\n\n const formatOpts = Formatter.macroTokenToFormatOpts(token.val);\n const tokens = formatOptsToTokens(formatOpts, locale);\n\n if (tokens == null || tokens.includes(undefined)) {\n return token;\n }\n\n return tokens;\n}\n\nfunction expandMacroTokens(tokens, locale) {\n return Array.prototype.concat(...tokens.map((t) => maybeExpandMacroToken(t, locale)));\n}\n\n/**\n * @private\n */\n\nclass TokenParser {\n constructor(locale, format) {\n this.locale = locale;\n this.format = format;\n this.tokens = expandMacroTokens(Formatter.parseFormat(format), locale);\n this.units = this.tokens.map((t) => unitForToken(t, locale));\n this.disqualifyingUnit = this.units.find((t) => t.invalidReason);\n\n if (!this.disqualifyingUnit) {\n const [regexString, handlers] = buildRegex(this.units);\n this.regex = RegExp(regexString, \"i\");\n this.handlers = handlers;\n }\n }\n\n explainFromTokens(input) {\n if (!this.isValid) {\n return { input, tokens: this.tokens, invalidReason: this.invalidReason };\n } else {\n const [rawMatches, matches] = match(input, this.regex, this.handlers),\n [result, zone, specificOffset] = matches\n ? dateTimeFromMatches(matches)\n : [null, null, undefined];\n if (hasOwnProperty(matches, \"a\") && hasOwnProperty(matches, \"H\")) {\n throw new ConflictingSpecificationError(\n \"Can't include meridiem when specifying 24-hour format\"\n );\n }\n return {\n input,\n tokens: this.tokens,\n regex: this.regex,\n rawMatches,\n matches,\n result,\n zone,\n specificOffset,\n };\n }\n }\n\n get isValid() {\n return !this.disqualifyingUnit;\n }\n\n get invalidReason() {\n return this.disqualifyingUnit ? this.disqualifyingUnit.invalidReason : null;\n }\n}\n\nfunction explainFromTokens(locale, input, format) {\n const parser = new TokenParser(locale, format);\n return parser.explainFromTokens(input);\n}\n\nfunction parseFromTokens(locale, input, format) {\n const { result, zone, specificOffset, invalidReason } = explainFromTokens(locale, input, format);\n return [result, zone, specificOffset, invalidReason];\n}\n\nfunction formatOptsToTokens(formatOpts, locale) {\n if (!formatOpts) {\n return null;\n }\n\n const formatter = Formatter.create(locale, formatOpts);\n const df = formatter.dtFormatter(getDummyDateTime());\n const parts = df.formatToParts();\n const resolvedOpts = df.resolvedOptions();\n return parts.map((p) => tokenForPart(p, formatOpts, resolvedOpts));\n}\n\nconst INVALID = \"Invalid DateTime\";\nconst MAX_DATE = 8.64e15;\n\nfunction unsupportedZone(zone) {\n return new Invalid(\"unsupported zone\", `the zone \"${zone.name}\" is not supported`);\n}\n\n// we cache week data on the DT object and this intermediates the cache\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedWeekData(dt) {\n if (dt.weekData === null) {\n dt.weekData = gregorianToWeek(dt.c);\n }\n return dt.weekData;\n}\n\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedLocalWeekData(dt) {\n if (dt.localWeekData === null) {\n dt.localWeekData = gregorianToWeek(\n dt.c,\n dt.loc.getMinDaysInFirstWeek(),\n dt.loc.getStartOfWeek()\n );\n }\n return dt.localWeekData;\n}\n\n// clone really means, \"make a new object with these modifications\". all \"setters\" really use this\n// to create a new object while only changing some of the properties\nfunction clone(inst, alts) {\n const current = {\n ts: inst.ts,\n zone: inst.zone,\n c: inst.c,\n o: inst.o,\n loc: inst.loc,\n invalid: inst.invalid,\n };\n return new DateTime({ ...current, ...alts, old: current });\n}\n\n// find the right offset a given local time. The o input is our guess, which determines which\n// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)\nfunction fixOffset(localTS, o, tz) {\n // Our UTC time is just a guess because our offset is just a guess\n let utcGuess = localTS - o * 60 * 1000;\n\n // Test whether the zone matches the offset for this ts\n const o2 = tz.offset(utcGuess);\n\n // If so, offset didn't change and we're done\n if (o === o2) {\n return [utcGuess, o];\n }\n\n // If not, change the ts by the difference in the offset\n utcGuess -= (o2 - o) * 60 * 1000;\n\n // If that gives us the local time we want, we're done\n const o3 = tz.offset(utcGuess);\n if (o2 === o3) {\n return [utcGuess, o2];\n }\n\n // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time\n return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];\n}\n\n// convert an epoch timestamp into a calendar object with the given offset\nfunction tsToObj(ts, offset) {\n ts += offset * 60 * 1000;\n\n const d = new Date(ts);\n\n return {\n year: d.getUTCFullYear(),\n month: d.getUTCMonth() + 1,\n day: d.getUTCDate(),\n hour: d.getUTCHours(),\n minute: d.getUTCMinutes(),\n second: d.getUTCSeconds(),\n millisecond: d.getUTCMilliseconds(),\n };\n}\n\n// convert a calendar object to a epoch timestamp\nfunction objToTS(obj, offset, zone) {\n return fixOffset(objToLocalTS(obj), offset, zone);\n}\n\n// create a new DT instance by adding a duration, adjusting for DSTs\nfunction adjustTime(inst, dur) {\n const oPre = inst.o,\n year = inst.c.year + Math.trunc(dur.years),\n month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3,\n c = {\n ...inst.c,\n year,\n month,\n day:\n Math.min(inst.c.day, daysInMonth(year, month)) +\n Math.trunc(dur.days) +\n Math.trunc(dur.weeks) * 7,\n },\n millisToAdd = Duration.fromObject({\n years: dur.years - Math.trunc(dur.years),\n quarters: dur.quarters - Math.trunc(dur.quarters),\n months: dur.months - Math.trunc(dur.months),\n weeks: dur.weeks - Math.trunc(dur.weeks),\n days: dur.days - Math.trunc(dur.days),\n hours: dur.hours,\n minutes: dur.minutes,\n seconds: dur.seconds,\n milliseconds: dur.milliseconds,\n }).as(\"milliseconds\"),\n localTS = objToLocalTS(c);\n\n let [ts, o] = fixOffset(localTS, oPre, inst.zone);\n\n if (millisToAdd !== 0) {\n ts += millisToAdd;\n // that could have changed the offset by going over a DST, but we want to keep the ts the same\n o = inst.zone.offset(ts);\n }\n\n return { ts, o };\n}\n\n// helper useful in turning the results of parsing into real dates\n// by handling the zone options\nfunction parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {\n const { setZone, zone } = opts;\n if ((parsed && Object.keys(parsed).length !== 0) || parsedZone) {\n const interpretationZone = parsedZone || zone,\n inst = DateTime.fromObject(parsed, {\n ...opts,\n zone: interpretationZone,\n specificOffset,\n });\n return setZone ? inst : inst.setZone(zone);\n } else {\n return DateTime.invalid(\n new Invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ${format}`)\n );\n }\n}\n\n// if you want to output a technical format (e.g. RFC 2822), this helper\n// helps handle the details\nfunction toTechFormat(dt, format, allowZ = true) {\n return dt.isValid\n ? Formatter.create(Locale.create(\"en-US\"), {\n allowZ,\n forceSimple: true,\n }).formatDateTimeFromString(dt, format)\n : null;\n}\n\nfunction toISODate(o, extended, precision) {\n const longFormat = o.c.year > 9999 || o.c.year < 0;\n let c = \"\";\n if (longFormat && o.c.year >= 0) c += \"+\";\n c += padStart(o.c.year, longFormat ? 6 : 4);\n if (precision === \"year\") return c;\n if (extended) {\n c += \"-\";\n c += padStart(o.c.month);\n if (precision === \"month\") return c;\n c += \"-\";\n } else {\n c += padStart(o.c.month);\n if (precision === \"month\") return c;\n }\n c += padStart(o.c.day);\n return c;\n}\n\nfunction toISOTime(\n o,\n extended,\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone,\n precision\n) {\n let showSeconds = !suppressSeconds || o.c.millisecond !== 0 || o.c.second !== 0,\n c = \"\";\n switch (precision) {\n case \"day\":\n case \"month\":\n case \"year\":\n break;\n default:\n c += padStart(o.c.hour);\n if (precision === \"hour\") break;\n if (extended) {\n c += \":\";\n c += padStart(o.c.minute);\n if (precision === \"minute\") break;\n if (showSeconds) {\n c += \":\";\n c += padStart(o.c.second);\n }\n } else {\n c += padStart(o.c.minute);\n if (precision === \"minute\") break;\n if (showSeconds) {\n c += padStart(o.c.second);\n }\n }\n if (precision === \"second\") break;\n if (showSeconds && (!suppressMilliseconds || o.c.millisecond !== 0)) {\n c += \".\";\n c += padStart(o.c.millisecond, 3);\n }\n }\n\n if (includeOffset) {\n if (o.isOffsetFixed && o.offset === 0 && !extendedZone) {\n c += \"Z\";\n } else if (o.o < 0) {\n c += \"-\";\n c += padStart(Math.trunc(-o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(-o.o % 60));\n } else {\n c += \"+\";\n c += padStart(Math.trunc(o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(o.o % 60));\n }\n }\n\n if (extendedZone) {\n c += \"[\" + o.zone.ianaName + \"]\";\n }\n return c;\n}\n\n// defaults for unspecified units in the supported calendars\nconst defaultUnitValues = {\n month: 1,\n day: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n },\n defaultWeekUnitValues = {\n weekNumber: 1,\n weekday: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n },\n defaultOrdinalUnitValues = {\n ordinal: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n };\n\n// Units in the supported calendars, sorted by bigness\nconst orderedUnits = [\"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n orderedWeekUnits = [\n \"weekYear\",\n \"weekNumber\",\n \"weekday\",\n \"hour\",\n \"minute\",\n \"second\",\n \"millisecond\",\n ],\n orderedOrdinalUnits = [\"year\", \"ordinal\", \"hour\", \"minute\", \"second\", \"millisecond\"];\n\n// standardize case and plurality in units\nfunction normalizeUnit(unit) {\n const normalized = {\n year: \"year\",\n years: \"year\",\n month: \"month\",\n months: \"month\",\n day: \"day\",\n days: \"day\",\n hour: \"hour\",\n hours: \"hour\",\n minute: \"minute\",\n minutes: \"minute\",\n quarter: \"quarter\",\n quarters: \"quarter\",\n second: \"second\",\n seconds: \"second\",\n millisecond: \"millisecond\",\n milliseconds: \"millisecond\",\n weekday: \"weekday\",\n weekdays: \"weekday\",\n weeknumber: \"weekNumber\",\n weeksnumber: \"weekNumber\",\n weeknumbers: \"weekNumber\",\n weekyear: \"weekYear\",\n weekyears: \"weekYear\",\n ordinal: \"ordinal\",\n }[unit.toLowerCase()];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n}\n\nfunction normalizeUnitWithLocalWeeks(unit) {\n switch (unit.toLowerCase()) {\n case \"localweekday\":\n case \"localweekdays\":\n return \"localWeekday\";\n case \"localweeknumber\":\n case \"localweeknumbers\":\n return \"localWeekNumber\";\n case \"localweekyear\":\n case \"localweekyears\":\n return \"localWeekYear\";\n default:\n return normalizeUnit(unit);\n }\n}\n\n// cache offsets for zones based on the current timestamp when this function is\n// first called. When we are handling a datetime from components like (year,\n// month, day, hour) in a time zone, we need a guess about what the timezone\n// offset is so that we can convert into a UTC timestamp. One way is to find the\n// offset of now in the zone. The actual date may have a different offset (for\n// example, if we handle a date in June while we're in December in a zone that\n// observes DST), but we can check and adjust that.\n//\n// When handling many dates, calculating the offset for now every time is\n// expensive. It's just a guess, so we can cache the offset to use even if we\n// are right on a time change boundary (we'll just correct in the other\n// direction). Using a timestamp from first read is a slight optimization for\n// handling dates close to the current date, since those dates will usually be\n// in the same offset (we could set the timestamp statically, instead). We use a\n// single timestamp for all zones to make things a bit more predictable.\n//\n// This is safe for quickDT (used by local() and utc()) because we don't fill in\n// higher-order units from tsNow (as we do in fromObject, this requires that\n// offset is calculated from tsNow).\n/**\n * @param {Zone} zone\n * @return {number}\n */\nfunction guessOffsetForZone(zone) {\n if (zoneOffsetTs === undefined) {\n zoneOffsetTs = Settings.now();\n }\n\n // Do not cache anything but IANA zones, because it is not safe to do so.\n // Guessing an offset which is not present in the zone can cause wrong results from fixOffset\n if (zone.type !== \"iana\") {\n return zone.offset(zoneOffsetTs);\n }\n const zoneName = zone.name;\n let offsetGuess = zoneOffsetGuessCache.get(zoneName);\n if (offsetGuess === undefined) {\n offsetGuess = zone.offset(zoneOffsetTs);\n zoneOffsetGuessCache.set(zoneName, offsetGuess);\n }\n return offsetGuess;\n}\n\n// this is a dumbed down version of fromObject() that runs about 60% faster\n// but doesn't do any validation, makes a bunch of assumptions about what units\n// are present, and so on.\nfunction quickDT(obj, opts) {\n const zone = normalizeZone(opts.zone, Settings.defaultZone);\n if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n }\n\n const loc = Locale.fromObject(opts);\n\n let ts, o;\n\n // assume we have the higher-order units\n if (!isUndefined(obj.year)) {\n for (const u of orderedUnits) {\n if (isUndefined(obj[u])) {\n obj[u] = defaultUnitValues[u];\n }\n }\n\n const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n const offsetProvis = guessOffsetForZone(zone);\n [ts, o] = objToTS(obj, offsetProvis, zone);\n } else {\n ts = Settings.now();\n }\n\n return new DateTime({ ts, zone, loc, o });\n}\n\nfunction diffRelative(start, end, opts) {\n const round = isUndefined(opts.round) ? true : opts.round,\n rounding = isUndefined(opts.rounding) ? \"trunc\" : opts.rounding,\n format = (c, unit) => {\n c = roundTo(c, round || opts.calendary ? 0 : 2, opts.calendary ? \"round\" : rounding);\n const formatter = end.loc.clone(opts).relFormatter(opts);\n return formatter.format(c, unit);\n },\n differ = (unit) => {\n if (opts.calendary) {\n if (!end.hasSame(start, unit)) {\n return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);\n } else return 0;\n } else {\n return end.diff(start, unit).get(unit);\n }\n };\n\n if (opts.unit) {\n return format(differ(opts.unit), opts.unit);\n }\n\n for (const unit of opts.units) {\n const count = differ(unit);\n if (Math.abs(count) >= 1) {\n return format(count, unit);\n }\n }\n return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]);\n}\n\nfunction lastOpts(argList) {\n let opts = {},\n args;\n if (argList.length > 0 && typeof argList[argList.length - 1] === \"object\") {\n opts = argList[argList.length - 1];\n args = Array.from(argList).slice(0, argList.length - 1);\n } else {\n args = Array.from(argList);\n }\n return [opts, args];\n}\n\n/**\n * Timestamp to use for cached zone offset guesses (exposed for test)\n */\nlet zoneOffsetTs;\n/**\n * Cache for zone offset guesses (exposed for test).\n *\n * This optimizes quickDT via guessOffsetForZone to avoid repeated calls of\n * zone.offset().\n */\nconst zoneOffsetGuessCache = new Map();\n\n/**\n * A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.\n *\n * A DateTime comprises of:\n * * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.\n * * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).\n * * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.\n *\n * Here is a brief overview of the most commonly used functionality it provides:\n *\n * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime.local}, {@link DateTime.utc}, and (most flexibly) {@link DateTime.fromObject}. To create one from a standard string format, use {@link DateTime.fromISO}, {@link DateTime.fromHTTP}, and {@link DateTime.fromRFC2822}. To create one from a custom string format, use {@link DateTime.fromFormat}. To create one from a native JS date, use {@link DateTime.fromJSDate}.\n * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link DateTime#toObject}), use the {@link DateTime#year}, {@link DateTime#month},\n * {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.\n * * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.\n * * **Configuration** See the {@link DateTime#locale} and {@link DateTime#numberingSystem} accessors.\n * * **Transformation**: To transform the DateTime into other DateTimes, use {@link DateTime#set}, {@link DateTime#reconfigure}, {@link DateTime#setZone}, {@link DateTime#setLocale}, {@link DateTime.plus}, {@link DateTime#minus}, {@link DateTime#endOf}, {@link DateTime#startOf}, {@link DateTime#toUTC}, and {@link DateTime#toLocal}.\n * * **Output**: To convert the DateTime to other representations, use the {@link DateTime#toRelative}, {@link DateTime#toRelativeCalendar}, {@link DateTime#toJSON}, {@link DateTime#toISO}, {@link DateTime#toHTTP}, {@link DateTime#toObject}, {@link DateTime#toRFC2822}, {@link DateTime#toString}, {@link DateTime#toLocaleString}, {@link DateTime#toFormat}, {@link DateTime#toMillis} and {@link DateTime#toJSDate}.\n *\n * There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.\n */\nclass DateTime {\n /**\n * @access private\n */\n constructor(config) {\n const zone = config.zone || Settings.defaultZone;\n\n let invalid =\n config.invalid ||\n (Number.isNaN(config.ts) ? new Invalid(\"invalid input\") : null) ||\n (!zone.isValid ? unsupportedZone(zone) : null);\n /**\n * @access private\n */\n this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;\n\n let c = null,\n o = null;\n if (!invalid) {\n const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);\n\n if (unchanged) {\n [c, o] = [config.old.c, config.old.o];\n } else {\n // If an offset has been passed and we have not been called from\n // clone(), we can trust it and avoid the offset calculation.\n const ot = isNumber(config.o) && !config.old ? config.o : zone.offset(this.ts);\n c = tsToObj(this.ts, ot);\n invalid = Number.isNaN(c.year) ? new Invalid(\"invalid input\") : null;\n c = invalid ? null : c;\n o = invalid ? null : ot;\n }\n }\n\n /**\n * @access private\n */\n this._zone = zone;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.invalid = invalid;\n /**\n * @access private\n */\n this.weekData = null;\n /**\n * @access private\n */\n this.localWeekData = null;\n /**\n * @access private\n */\n this.c = c;\n /**\n * @access private\n */\n this.o = o;\n /**\n * @access private\n */\n this.isLuxonDateTime = true;\n }\n\n // CONSTRUCT\n\n /**\n * Create a DateTime for the current instant, in the system's time zone.\n *\n * Use Settings to override these default values if needed.\n * @example DateTime.now().toISO() //~> now in the ISO format\n * @return {DateTime}\n */\n static now() {\n return new DateTime({});\n }\n\n /**\n * Create a local DateTime\n * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month, 1-indexed\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.local() //~> now\n * @example DateTime.local({ zone: \"America/New_York\" }) //~> now, in US east coast time\n * @example DateTime.local(2017) //~> 2017-01-01T00:00:00\n * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00\n * @example DateTime.local(2017, 3, 12, { locale: \"fr\" }) //~> 2017-03-12T00:00:00, with a French locale\n * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00\n * @example DateTime.local(2017, 3, 12, 5, { zone: \"utc\" }) //~> 2017-03-12T05:00:00, in UTC\n * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00\n * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10\n * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765\n * @return {DateTime}\n */\n static local() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n }\n\n /**\n * Create a DateTime in UTC\n * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @param {Object} options - configuration options for the DateTime\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @param {string} [options.weekSettings] - the week settings to set on the resulting DateTime instance\n * @example DateTime.utc() //~> now\n * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z\n * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z\n * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, { locale: \"fr\" }) //~> 2017-03-12T05:45:00Z with a French locale\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: \"fr\" }) //~> 2017-03-12T05:45:10.765Z with a French locale\n * @return {DateTime}\n */\n static utc() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n\n opts.zone = FixedOffsetZone.utcInstance;\n return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n }\n\n /**\n * Create a DateTime from a JavaScript Date object. Uses the default zone.\n * @param {Date} date - a JavaScript Date object\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @return {DateTime}\n */\n static fromJSDate(date, options = {}) {\n const ts = isDate(date) ? date.valueOf() : NaN;\n if (Number.isNaN(ts)) {\n return DateTime.invalid(\"invalid input\");\n }\n\n const zoneToUse = normalizeZone(options.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n return new DateTime({\n ts: ts,\n zone: zoneToUse,\n loc: Locale.fromObject(options),\n });\n }\n\n /**\n * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} milliseconds - a number of milliseconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromMillis(milliseconds, options = {}) {\n if (!isNumber(milliseconds)) {\n throw new InvalidArgumentError(\n `fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`\n );\n } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {\n // this isn't perfect because we can still end up out of range because of additional shifting, but it's a start\n return DateTime.invalid(\"Timestamp out of range\");\n } else {\n return new DateTime({\n ts: milliseconds,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options),\n });\n }\n }\n\n /**\n * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} seconds - a number of seconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromSeconds(seconds, options = {}) {\n if (!isNumber(seconds)) {\n throw new InvalidArgumentError(\"fromSeconds requires a numerical input\");\n } else {\n return new DateTime({\n ts: seconds * 1000,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options),\n });\n }\n }\n\n /**\n * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.year - a year, such as 1987\n * @param {number} obj.month - a month, 1-12\n * @param {number} obj.day - a day of the month, 1-31, depending on the month\n * @param {number} obj.ordinal - day of the year, 1-365 or 366\n * @param {number} obj.weekYear - an ISO week year\n * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year\n * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday\n * @param {number} obj.localWeekYear - a week year, according to the locale\n * @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale\n * @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale\n * @param {number} obj.hour - hour of the day, 0-23\n * @param {number} obj.minute - minute of the hour, 0-59\n * @param {number} obj.second - second of the minute, 0-59\n * @param {number} obj.millisecond - millisecond of the second, 0-999\n * @param {Object} opts - options for creating this DateTime\n * @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()\n * @param {string} [opts.locale='system\\'s locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'\n * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })\n * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'\n * @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: \"en-US\" }).toISODate() //=> '2021-12-26'\n * @return {DateTime}\n */\n static fromObject(obj, opts = {}) {\n obj = obj || {};\n const zoneToUse = normalizeZone(opts.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n const loc = Locale.fromObject(opts);\n const normalized = normalizeObject(obj, normalizeUnitWithLocalWeeks);\n const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, loc);\n\n const tsNow = Settings.now(),\n offsetProvis = !isUndefined(opts.specificOffset)\n ? opts.specificOffset\n : zoneToUse.offset(tsNow),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n // cases:\n // just a weekday -> this week's instance of that weekday, no worries\n // (gregorian data or ordinal) + (weekYear or weekNumber) -> error\n // (gregorian month or day) + ordinal -> error\n // otherwise just use weeks or ordinals or gregorian, depending on what's specified\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n const useWeekData = definiteWeekDef || (normalized.weekday && !containsGregor);\n\n // configure ourselves to deal with gregorian dates or week stuff\n let units,\n defaultValues,\n objNow = tsToObj(tsNow, offsetProvis);\n if (useWeekData) {\n units = orderedWeekUnits;\n defaultValues = defaultWeekUnitValues;\n objNow = gregorianToWeek(objNow, minDaysInFirstWeek, startOfWeek);\n } else if (containsOrdinal) {\n units = orderedOrdinalUnits;\n defaultValues = defaultOrdinalUnitValues;\n objNow = gregorianToOrdinal(objNow);\n } else {\n units = orderedUnits;\n defaultValues = defaultUnitValues;\n }\n\n // set default values for missing stuff\n let foundFirst = false;\n for (const u of units) {\n const v = normalized[u];\n if (!isUndefined(v)) {\n foundFirst = true;\n } else if (foundFirst) {\n normalized[u] = defaultValues[u];\n } else {\n normalized[u] = objNow[u];\n }\n }\n\n // make sure the values we have are in range\n const higherOrderInvalid = useWeekData\n ? hasInvalidWeekData(normalized, minDaysInFirstWeek, startOfWeek)\n : containsOrdinal\n ? hasInvalidOrdinalData(normalized)\n : hasInvalidGregorianData(normalized),\n invalid = higherOrderInvalid || hasInvalidTimeData(normalized);\n\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n // compute the actual time\n const gregorian = useWeekData\n ? weekToGregorian(normalized, minDaysInFirstWeek, startOfWeek)\n : containsOrdinal\n ? ordinalToGregorian(normalized)\n : normalized,\n [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse),\n inst = new DateTime({\n ts: tsFinal,\n zone: zoneToUse,\n o: offsetFinal,\n loc,\n });\n\n // gregorian data + weekday serves only to validate\n if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {\n return DateTime.invalid(\n \"mismatched weekday\",\n `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`\n );\n }\n\n if (!inst.isValid) {\n return DateTime.invalid(inst.invalid);\n }\n\n return inst;\n }\n\n /**\n * Create a DateTime from an ISO 8601 string\n * @param {string} text - the ISO string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @param {string} [opts.weekSettings] - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromISO('2016-05-25T09:08:34.123')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})\n * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})\n * @example DateTime.fromISO('2016-W05-4')\n * @return {DateTime}\n */\n static fromISO(text, opts = {}) {\n const [vals, parsedZone] = parseISODate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"ISO 8601\", text);\n }\n\n /**\n * Create a DateTime from an RFC 2822 string\n * @param {string} text - the RFC 2822 string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')\n * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')\n * @return {DateTime}\n */\n static fromRFC2822(text, opts = {}) {\n const [vals, parsedZone] = parseRFC2822Date(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"RFC 2822\", text);\n }\n\n /**\n * Create a DateTime from an HTTP header date\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @param {string} text - the HTTP header date\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')\n * @return {DateTime}\n */\n static fromHTTP(text, opts = {}) {\n const [vals, parsedZone] = parseHTTPDate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"HTTP\", opts);\n }\n\n /**\n * Create a DateTime from an input string and format string.\n * Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromFormat(text, fmt, opts = {}) {\n if (isUndefined(text) || isUndefined(fmt)) {\n throw new InvalidArgumentError(\"fromFormat requires an input string and a format\");\n }\n\n const { locale = null, numberingSystem = null } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n }),\n [vals, parsedZone, specificOffset, invalid] = parseFromTokens(localeToUse, text, fmt);\n if (invalid) {\n return DateTime.invalid(invalid);\n } else {\n return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text, specificOffset);\n }\n }\n\n /**\n * @deprecated use fromFormat instead\n */\n static fromString(text, fmt, opts = {}) {\n return DateTime.fromFormat(text, fmt, opts);\n }\n\n /**\n * Create a DateTime from a SQL date, time, or datetime\n * Defaults to en-US if no locale has been specified, regardless of the system's locale\n * @param {string} text - the string to parse\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @example DateTime.fromSQL('2017-05-15')\n * @example DateTime.fromSQL('2017-05-15 09:12:34')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })\n * @example DateTime.fromSQL('09:12:34.342')\n * @return {DateTime}\n */\n static fromSQL(text, opts = {}) {\n const [vals, parsedZone] = parseSQL(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"SQL\", text);\n }\n\n /**\n * Create an invalid DateTime.\n * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent.\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {DateTime}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the DateTime is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDateTimeError(invalid);\n } else {\n return new DateTime({ invalid });\n }\n }\n\n /**\n * Check if an object is an instance of DateTime. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDateTime(o) {\n return (o && o.isLuxonDateTime) || false;\n }\n\n /**\n * Produce the format string for a set of options\n * @param formatOpts\n * @param localeOpts\n * @returns {string}\n */\n static parseFormatForOpts(formatOpts, localeOpts = {}) {\n const tokenList = formatOptsToTokens(formatOpts, Locale.fromObject(localeOpts));\n return !tokenList ? null : tokenList.map((t) => (t ? t.val : null)).join(\"\");\n }\n\n /**\n * Produce the the fully expanded format token for the locale\n * Does NOT quote characters, so quoted tokens will not round trip correctly\n * @param fmt\n * @param localeOpts\n * @returns {string}\n */\n static expandFormat(fmt, localeOpts = {}) {\n const expanded = expandMacroTokens(Formatter.parseFormat(fmt), Locale.fromObject(localeOpts));\n return expanded.map((t) => t.val).join(\"\");\n }\n\n static resetCache() {\n zoneOffsetTs = undefined;\n zoneOffsetGuessCache.clear();\n }\n\n // INFO\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example DateTime.local(2017, 7, 4).get('month'); //=> 7\n * @example DateTime.local(2017, 7, 4).get('day'); //=> 4\n * @return {number}\n */\n get(unit) {\n return this[unit];\n }\n\n /**\n * Returns whether the DateTime is valid. Invalid DateTimes occur when:\n * * The DateTime was created from invalid calendar information, such as the 13th month or February 30\n * * The DateTime was created by an operation on another invalid date\n * @type {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this DateTime is invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime\n *\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime\n *\n * @type {string}\n */\n get outputCalendar() {\n return this.isValid ? this.loc.outputCalendar : null;\n }\n\n /**\n * Get the time zone associated with this DateTime.\n * @type {Zone}\n */\n get zone() {\n return this._zone;\n }\n\n /**\n * Get the name of the time zone.\n * @type {string}\n */\n get zoneName() {\n return this.isValid ? this.zone.name : null;\n }\n\n /**\n * Get the year\n * @example DateTime.local(2017, 5, 25).year //=> 2017\n * @type {number}\n */\n get year() {\n return this.isValid ? this.c.year : NaN;\n }\n\n /**\n * Get the quarter\n * @example DateTime.local(2017, 5, 25).quarter //=> 2\n * @type {number}\n */\n get quarter() {\n return this.isValid ? Math.ceil(this.c.month / 3) : NaN;\n }\n\n /**\n * Get the month (1-12).\n * @example DateTime.local(2017, 5, 25).month //=> 5\n * @type {number}\n */\n get month() {\n return this.isValid ? this.c.month : NaN;\n }\n\n /**\n * Get the day of the month (1-30ish).\n * @example DateTime.local(2017, 5, 25).day //=> 25\n * @type {number}\n */\n get day() {\n return this.isValid ? this.c.day : NaN;\n }\n\n /**\n * Get the hour of the day (0-23).\n * @example DateTime.local(2017, 5, 25, 9).hour //=> 9\n * @type {number}\n */\n get hour() {\n return this.isValid ? this.c.hour : NaN;\n }\n\n /**\n * Get the minute of the hour (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30\n * @type {number}\n */\n get minute() {\n return this.isValid ? this.c.minute : NaN;\n }\n\n /**\n * Get the second of the minute (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52\n * @type {number}\n */\n get second() {\n return this.isValid ? this.c.second : NaN;\n }\n\n /**\n * Get the millisecond of the second (0-999).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654\n * @type {number}\n */\n get millisecond() {\n return this.isValid ? this.c.millisecond : NaN;\n }\n\n /**\n * Get the week year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 12, 31).weekYear //=> 2015\n * @type {number}\n */\n get weekYear() {\n return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the week number of the week year (1-52ish).\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2017, 5, 25).weekNumber //=> 21\n * @type {number}\n */\n get weekNumber() {\n return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the day of the week.\n * 1 is Monday and 7 is Sunday\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 11, 31).weekday //=> 4\n * @type {number}\n */\n get weekday() {\n return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;\n }\n\n /**\n * Returns true if this date is on a weekend according to the locale, false otherwise\n * @returns {boolean}\n */\n get isWeekend() {\n return this.isValid && this.loc.getWeekendDays().includes(this.weekday);\n }\n\n /**\n * Get the day of the week according to the locale.\n * 1 is the first day of the week and 7 is the last day of the week.\n * If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1,\n * @returns {number}\n */\n get localWeekday() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekday : NaN;\n }\n\n /**\n * Get the week number of the week year according to the locale. Different locales assign week numbers differently,\n * because the week can start on different days of the week (see localWeekday) and because a different number of days\n * is required for a week to count as the first week of a year.\n * @returns {number}\n */\n get localWeekNumber() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the week year according to the locale. Different locales assign week numbers (and therefor week years)\n * differently, see localWeekNumber.\n * @returns {number}\n */\n get localWeekYear() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the ordinal (meaning the day of the year)\n * @example DateTime.local(2017, 5, 25).ordinal //=> 145\n * @type {number|DateTime}\n */\n get ordinal() {\n return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;\n }\n\n /**\n * Get the human readable short month name, such as 'Oct'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthShort //=> Oct\n * @type {string}\n */\n get monthShort() {\n return this.isValid ? Info.months(\"short\", { locObj: this.loc })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable long month name, such as 'October'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthLong //=> October\n * @type {string}\n */\n get monthLong() {\n return this.isValid ? Info.months(\"long\", { locObj: this.loc })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable short weekday, such as 'Mon'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon\n * @type {string}\n */\n get weekdayShort() {\n return this.isValid ? Info.weekdays(\"short\", { locObj: this.loc })[this.weekday - 1] : null;\n }\n\n /**\n * Get the human readable long weekday, such as 'Monday'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday\n * @type {string}\n */\n get weekdayLong() {\n return this.isValid ? Info.weekdays(\"long\", { locObj: this.loc })[this.weekday - 1] : null;\n }\n\n /**\n * Get the UTC offset of this DateTime in minutes\n * @example DateTime.now().offset //=> -240\n * @example DateTime.utc().offset //=> 0\n * @type {number}\n */\n get offset() {\n return this.isValid ? +this.o : NaN;\n }\n\n /**\n * Get the short human name for the zone's current offset, for example \"EST\" or \"EDT\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameShort() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"short\",\n locale: this.locale,\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get the long human name for the zone's current offset, for example \"Eastern Standard Time\" or \"Eastern Daylight Time\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameLong() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"long\",\n locale: this.locale,\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get whether this zone's offset ever changes, as in a DST.\n * @type {boolean}\n */\n get isOffsetFixed() {\n return this.isValid ? this.zone.isUniversal : null;\n }\n\n /**\n * Get whether the DateTime is in a DST.\n * @type {boolean}\n */\n get isInDST() {\n if (this.isOffsetFixed) {\n return false;\n } else {\n return (\n this.offset > this.set({ month: 1, day: 1 }).offset ||\n this.offset > this.set({ month: 5 }).offset\n );\n }\n }\n\n /**\n * Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC\n * in this DateTime's zone. During DST changes local time can be ambiguous, for example\n * `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`.\n * This method will return both possible DateTimes if this DateTime's local time is ambiguous.\n * @returns {DateTime[]}\n */\n getPossibleOffsets() {\n if (!this.isValid || this.isOffsetFixed) {\n return [this];\n }\n const dayMs = 86400000;\n const minuteMs = 60000;\n const localTS = objToLocalTS(this.c);\n const oEarlier = this.zone.offset(localTS - dayMs);\n const oLater = this.zone.offset(localTS + dayMs);\n\n const o1 = this.zone.offset(localTS - oEarlier * minuteMs);\n const o2 = this.zone.offset(localTS - oLater * minuteMs);\n if (o1 === o2) {\n return [this];\n }\n const ts1 = localTS - o1 * minuteMs;\n const ts2 = localTS - o2 * minuteMs;\n const c1 = tsToObj(ts1, o1);\n const c2 = tsToObj(ts2, o2);\n if (\n c1.hour === c2.hour &&\n c1.minute === c2.minute &&\n c1.second === c2.second &&\n c1.millisecond === c2.millisecond\n ) {\n return [clone(this, { ts: ts1 }), clone(this, { ts: ts2 })];\n }\n return [this];\n }\n\n /**\n * Returns true if this DateTime is in a leap year, false otherwise\n * @example DateTime.local(2016).isInLeapYear //=> true\n * @example DateTime.local(2013).isInLeapYear //=> false\n * @type {boolean}\n */\n get isInLeapYear() {\n return isLeapYear(this.year);\n }\n\n /**\n * Returns the number of days in this DateTime's month\n * @example DateTime.local(2016, 2).daysInMonth //=> 29\n * @example DateTime.local(2016, 3).daysInMonth //=> 31\n * @type {number}\n */\n get daysInMonth() {\n return daysInMonth(this.year, this.month);\n }\n\n /**\n * Returns the number of days in this DateTime's year\n * @example DateTime.local(2016).daysInYear //=> 366\n * @example DateTime.local(2013).daysInYear //=> 365\n * @type {number}\n */\n get daysInYear() {\n return this.isValid ? daysInYear(this.year) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2004).weeksInWeekYear //=> 53\n * @example DateTime.local(2013).weeksInWeekYear //=> 52\n * @type {number}\n */\n get weeksInWeekYear() {\n return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's local week year\n * @example DateTime.local(2020, 6, {locale: 'en-US'}).weeksInLocalWeekYear //=> 52\n * @example DateTime.local(2020, 6, {locale: 'de-DE'}).weeksInLocalWeekYear //=> 53\n * @type {number}\n */\n get weeksInLocalWeekYear() {\n return this.isValid\n ? weeksInWeekYear(\n this.localWeekYear,\n this.loc.getMinDaysInFirstWeek(),\n this.loc.getStartOfWeek()\n )\n : NaN;\n }\n\n /**\n * Returns the resolved Intl options for this DateTime.\n * This is useful in understanding the behavior of formatting methods\n * @param {Object} opts - the same options as toLocaleString\n * @return {Object}\n */\n resolvedLocaleOptions(opts = {}) {\n const { locale, numberingSystem, calendar } = Formatter.create(\n this.loc.clone(opts),\n opts\n ).resolvedOptions(this);\n return { locale, numberingSystem, outputCalendar: calendar };\n }\n\n // TRANSFORM\n\n /**\n * \"Set\" the DateTime's zone to UTC. Returns a newly-constructed DateTime.\n *\n * Equivalent to {@link DateTime#setZone}('utc')\n * @param {number} [offset=0] - optionally, an offset from UTC in minutes\n * @param {Object} [opts={}] - options to pass to `setZone()`\n * @return {DateTime}\n */\n toUTC(offset = 0, opts = {}) {\n return this.setZone(FixedOffsetZone.instance(offset), opts);\n }\n\n /**\n * \"Set\" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.\n *\n * Equivalent to `setZone('local')`\n * @return {DateTime}\n */\n toLocal() {\n return this.setZone(Settings.defaultZone);\n }\n\n /**\n * \"Set\" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.\n *\n * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones.\n * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.\n * @param {Object} opts - options\n * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.\n * @return {DateTime}\n */\n setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) {\n zone = normalizeZone(zone, Settings.defaultZone);\n if (zone.equals(this.zone)) {\n return this;\n } else if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n } else {\n let newTS = this.ts;\n if (keepLocalTime || keepCalendarTime) {\n const offsetGuess = zone.offset(this.ts);\n const asObj = this.toObject();\n [newTS] = objToTS(asObj, offsetGuess, zone);\n }\n return clone(this, { ts: newTS, zone });\n }\n }\n\n /**\n * \"Set\" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.\n * @param {Object} properties - the properties to set\n * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })\n * @return {DateTime}\n */\n reconfigure({ locale, numberingSystem, outputCalendar } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem, outputCalendar });\n return clone(this, { loc });\n }\n\n /**\n * \"Set\" the locale. Returns a newly-constructed DateTime.\n * Just a convenient alias for reconfigure({ locale })\n * @example DateTime.local(2017, 5, 25).setLocale('en-GB')\n * @return {DateTime}\n */\n setLocale(locale) {\n return this.reconfigure({ locale });\n }\n\n /**\n * \"Set\" the values of specified units. Returns a newly-constructed DateTime.\n * You can only set units with this method; for \"setting\" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.\n *\n * This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`.\n * They cannot be mixed with ISO-week units like `weekday`.\n * @param {Object} values - a mapping of units to numbers\n * @example dt.set({ year: 2017 })\n * @example dt.set({ hour: 8, minute: 30 })\n * @example dt.set({ weekday: 5 })\n * @example dt.set({ year: 2005, ordinal: 234 })\n * @return {DateTime}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const normalized = normalizeObject(values, normalizeUnitWithLocalWeeks);\n const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, this.loc);\n\n const settingWeekStuff =\n !isUndefined(normalized.weekYear) ||\n !isUndefined(normalized.weekNumber) ||\n !isUndefined(normalized.weekday),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n let mixed;\n if (settingWeekStuff) {\n mixed = weekToGregorian(\n { ...gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), ...normalized },\n minDaysInFirstWeek,\n startOfWeek\n );\n } else if (!isUndefined(normalized.ordinal)) {\n mixed = ordinalToGregorian({ ...gregorianToOrdinal(this.c), ...normalized });\n } else {\n mixed = { ...this.toObject(), ...normalized };\n\n // if we didn't set the day but we ended up on an overflow date,\n // use the last day of the right month\n if (isUndefined(normalized.day)) {\n mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);\n }\n }\n\n const [ts, o] = objToTS(mixed, this.o, this.zone);\n return clone(this, { ts, o });\n }\n\n /**\n * Add a period of time to this DateTime and return the resulting DateTime\n *\n * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @example DateTime.now().plus(123) //~> in 123 milliseconds\n * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes\n * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow\n * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday\n * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min\n * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min\n * @return {DateTime}\n */\n plus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration);\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * Subtract a period of time to this DateTime and return the resulting DateTime\n * See {@link DateTime#plus}\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n @return {DateTime}\n */\n minus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration).negate();\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * \"Set\" this DateTime to the beginning of a unit of time.\n * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'\n * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'\n * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'\n * @return {DateTime}\n */\n startOf(unit, { useLocaleWeeks = false } = {}) {\n if (!this.isValid) return this;\n\n const o = {},\n normalizedUnit = Duration.normalizeUnit(unit);\n switch (normalizedUnit) {\n case \"years\":\n o.month = 1;\n // falls through\n case \"quarters\":\n case \"months\":\n o.day = 1;\n // falls through\n case \"weeks\":\n case \"days\":\n o.hour = 0;\n // falls through\n case \"hours\":\n o.minute = 0;\n // falls through\n case \"minutes\":\n o.second = 0;\n // falls through\n case \"seconds\":\n o.millisecond = 0;\n break;\n // no default, invalid units throw in normalizeUnit()\n }\n\n if (normalizedUnit === \"weeks\") {\n if (useLocaleWeeks) {\n const startOfWeek = this.loc.getStartOfWeek();\n const { weekday } = this;\n if (weekday < startOfWeek) {\n o.weekNumber = this.weekNumber - 1;\n }\n o.weekday = startOfWeek;\n } else {\n o.weekday = 1;\n }\n }\n\n if (normalizedUnit === \"quarters\") {\n const q = Math.ceil(this.month / 3);\n o.month = (q - 1) * 3 + 1;\n }\n\n return this.set(o);\n }\n\n /**\n * \"Set\" this DateTime to the end (meaning the last millisecond) of a unit of time\n * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'\n * @return {DateTime}\n */\n endOf(unit, opts) {\n return this.isValid\n ? this.plus({ [unit]: 1 })\n .startOf(unit, opts)\n .minus(1)\n : this;\n }\n\n // OUTPUT\n\n /**\n * Returns a string representation of this DateTime formatted according to the specified format string.\n * **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @param {string} fmt - the format string\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'\n * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'\n * @example DateTime.now().toFormat('yyyy LLL dd', { locale: \"fr\" }) //=> '2017 avr. 22'\n * @example DateTime.now().toFormat(\"HH 'hours and' mm 'minutes'\") //=> '20 hours and 55 minutes'\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.\n * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation\n * of the DateTime in the assigned locale.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toLocaleString(); //=> 4/20/2017\n * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'\n * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'\n * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'\n * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'\n * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'\n * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'\n * @return {string}\n */\n toLocaleString(formatOpts = DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this)\n : INVALID;\n }\n\n /**\n * Returns an array of format \"parts\", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts\n * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.\n * @example DateTime.now().toLocaleParts(); //=> [\n * //=> { type: 'day', value: '25' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'month', value: '05' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'year', value: '1982' }\n * //=> ]\n */\n toLocaleParts(opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this)\n : [];\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=false] - add the time zone format extension\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @param {string} [opts.precision='milliseconds'] - truncate output to desired presicion: 'years', 'months', 'days', 'hours', 'minutes', 'seconds' or 'milliseconds'. When precision and suppressSeconds or suppressMilliseconds are used together, precision sets the maximum unit shown in the output, however seconds or milliseconds will still be suppressed if they are 0.\n * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'\n * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'\n * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'\n * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'\n * @example DateTime.now().toISO({ precision: 'day' }) //=> '2017-04-22Z'\n * @example DateTime.now().toISO({ precision: 'minute' }) //=> '2017-04-22T20:47Z'\n * @return {string|null}\n */\n toISO({\n format = \"extended\",\n suppressSeconds = false,\n suppressMilliseconds = false,\n includeOffset = true,\n extendedZone = false,\n precision = \"milliseconds\",\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n precision = normalizeUnit(precision);\n const ext = format === \"extended\";\n\n let c = toISODate(this, ext, precision);\n if (orderedUnits.indexOf(precision) >= 3) c += \"T\";\n c += toISOTime(\n this,\n ext,\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone,\n precision\n );\n return c;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's date component\n * @param {Object} opts - options\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @param {string} [opts.precision='day'] - truncate output to desired precision: 'years', 'months', or 'days'.\n * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'\n * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'\n * @example DateTime.utc(1982, 5, 25).toISODate({ precision: 'month' }) //=> '1982-05'\n * @return {string|null}\n */\n toISODate({ format = \"extended\", precision = \"day\" } = {}) {\n if (!this.isValid) {\n return null;\n }\n return toISODate(this, format === \"extended\", normalizeUnit(precision));\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's week date\n * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'\n * @return {string}\n */\n toISOWeekDate() {\n return toTechFormat(this, \"kkkk-'W'WW-c\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's time component\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=true] - add the time zone format extension\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @param {string} [opts.precision='milliseconds'] - truncate output to desired presicion: 'hours', 'minutes', 'seconds' or 'milliseconds'. When precision and suppressSeconds or suppressMilliseconds are used together, precision sets the maximum unit shown in the output, however seconds or milliseconds will still be suppressed if they are 0.\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34, second: 56 }).toISOTime({ precision: 'minute' }) //=> '07:34Z'\n * @return {string}\n */\n toISOTime({\n suppressMilliseconds = false,\n suppressSeconds = false,\n includeOffset = true,\n includePrefix = false,\n extendedZone = false,\n format = \"extended\",\n precision = \"milliseconds\",\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n precision = normalizeUnit(precision);\n let c = includePrefix && orderedUnits.indexOf(precision) >= 3 ? \"T\" : \"\";\n return (\n c +\n toISOTime(\n this,\n format === \"extended\",\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone,\n precision\n )\n );\n }\n\n /**\n * Returns an RFC 2822-compatible string representation of this DateTime\n * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'\n * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'\n * @return {string}\n */\n toRFC2822() {\n return toTechFormat(this, \"EEE, dd LLL yyyy HH:mm:ss ZZZ\", false);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.\n * Specifically, the string conforms to RFC 1123.\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'\n * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'\n * @return {string}\n */\n toHTTP() {\n return toTechFormat(this.toUTC(), \"EEE, dd LLL yyyy HH:mm:ss 'GMT'\");\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Date\n * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'\n * @return {string|null}\n */\n toSQLDate() {\n if (!this.isValid) {\n return null;\n }\n return toISODate(this, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Time\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc().toSQL() //=> '05:15:16.345'\n * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'\n * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'\n * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'\n * @return {string}\n */\n toSQLTime({ includeOffset = true, includeZone = false, includeOffsetSpace = true } = {}) {\n let fmt = \"HH:mm:ss.SSS\";\n\n if (includeZone || includeOffset) {\n if (includeOffsetSpace) {\n fmt += \" \";\n }\n if (includeZone) {\n fmt += \"z\";\n } else if (includeOffset) {\n fmt += \"ZZ\";\n }\n }\n\n return toTechFormat(this, fmt, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'\n * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'\n * @return {string}\n */\n toSQL(opts = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return `${this.toSQLDate()} ${this.toSQLTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for debugging\n * @return {string}\n */\n toString() {\n return this.isValid ? this.toISO() : INVALID;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`;\n } else {\n return `DateTime { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime.\n * @return {number}\n */\n toMillis() {\n return this.isValid ? this.ts : NaN;\n }\n\n /**\n * Returns the epoch seconds (including milliseconds in the fractional part) of this DateTime.\n * @return {number}\n */\n toSeconds() {\n return this.isValid ? this.ts / 1000 : NaN;\n }\n\n /**\n * Returns the epoch seconds (as a whole number) of this DateTime.\n * @return {number}\n */\n toUnixInteger() {\n return this.isValid ? Math.floor(this.ts / 1000) : NaN;\n }\n\n /**\n * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns a BSON serializable equivalent to this DateTime.\n * @return {Date}\n */\n toBSON() {\n return this.toJSDate();\n }\n\n /**\n * Returns a JavaScript object with this DateTime's year, month, day, and so on.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }\n * @return {Object}\n */\n toObject(opts = {}) {\n if (!this.isValid) return {};\n\n const base = { ...this.c };\n\n if (opts.includeConfig) {\n base.outputCalendar = this.outputCalendar;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n\n /**\n * Returns a JavaScript Date equivalent to this DateTime.\n * @return {Date}\n */\n toJSDate() {\n return new Date(this.isValid ? this.ts : NaN);\n }\n\n // COMPARE\n\n /**\n * Return the difference between two DateTimes as a Duration.\n * @param {DateTime} otherDateTime - the DateTime to compare this one to\n * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example\n * var i1 = DateTime.fromISO('1982-05-25T09:45'),\n * i2 = DateTime.fromISO('1983-10-14T10:30');\n * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }\n * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }\n * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }\n * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }\n * @return {Duration}\n */\n diff(otherDateTime, unit = \"milliseconds\", opts = {}) {\n if (!this.isValid || !otherDateTime.isValid) {\n return Duration.invalid(\"created by diffing an invalid DateTime\");\n }\n\n const durOpts = { locale: this.locale, numberingSystem: this.numberingSystem, ...opts };\n\n const units = maybeArray(unit).map(Duration.normalizeUnit),\n otherIsLater = otherDateTime.valueOf() > this.valueOf(),\n earlier = otherIsLater ? this : otherDateTime,\n later = otherIsLater ? otherDateTime : this,\n diffed = diff(earlier, later, units, durOpts);\n\n return otherIsLater ? diffed.negate() : diffed;\n }\n\n /**\n * Return the difference between this DateTime and right now.\n * See {@link DateTime#diff}\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n diffNow(unit = \"milliseconds\", opts = {}) {\n return this.diff(DateTime.now(), unit, opts);\n }\n\n /**\n * Return an Interval spanning between this DateTime and another DateTime\n * @param {DateTime} otherDateTime - the other end point of the Interval\n * @return {Interval|DateTime}\n */\n until(otherDateTime) {\n return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;\n }\n\n /**\n * Return whether this DateTime is in the same unit of time as another DateTime.\n * Higher-order units must also be identical for this function to return `true`.\n * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.\n * @param {DateTime} otherDateTime - the other DateTime\n * @param {string} unit - the unit of time to check sameness on\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used\n * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day\n * @return {boolean}\n */\n hasSame(otherDateTime, unit, opts) {\n if (!this.isValid) return false;\n\n const inputMs = otherDateTime.valueOf();\n const adjustedToZone = this.setZone(otherDateTime.zone, { keepLocalTime: true });\n return (\n adjustedToZone.startOf(unit, opts) <= inputMs && inputMs <= adjustedToZone.endOf(unit, opts)\n );\n }\n\n /**\n * Equality check\n * Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid.\n * To compare just the millisecond values, use `+dt1 === +dt2`.\n * @param {DateTime} other - the other DateTime\n * @return {boolean}\n */\n equals(other) {\n return (\n this.isValid &&\n other.isValid &&\n this.valueOf() === other.valueOf() &&\n this.zone.equals(other.zone) &&\n this.loc.equals(other.loc)\n );\n }\n\n /**\n * Returns a string representation of a this time relative to now, such as \"in two days\". Can only internationalize if your\n * platform supports Intl.RelativeTimeFormat. Rounds towards zero by default.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} [options.style=\"long\"] - the style of units, must be \"long\", \"short\", or \"narrow\"\n * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of \"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", or \"seconds\"\n * @param {boolean} [options.round=true] - whether to round the numbers in the output.\n * @param {string} [options.rounding=\"trunc\"] - rounding method to use when rounding the numbers in the output. Can be \"trunc\" (toward zero), \"expand\" (away from zero), \"round\", \"floor\", or \"ceil\".\n * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelative() //=> \"in 1 day\"\n * @example DateTime.now().setLocale(\"es\").toRelative({ days: 1 }) //=> \"dentro de 1 día\"\n * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: \"fr\" }) //=> \"dans 23 heures\"\n * @example DateTime.now().minus({ days: 2 }).toRelative() //=> \"2 days ago\"\n * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: \"hours\" }) //=> \"48 hours ago\"\n * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> \"1.5 days ago\"\n */\n toRelative(options = {}) {\n if (!this.isValid) return null;\n const base = options.base || DateTime.fromObject({}, { zone: this.zone }),\n padding = options.padding ? (this < base ? -options.padding : options.padding) : 0;\n let units = [\"years\", \"months\", \"days\", \"hours\", \"minutes\", \"seconds\"];\n let unit = options.unit;\n if (Array.isArray(options.unit)) {\n units = options.unit;\n unit = undefined;\n }\n return diffRelative(base, this.plus(padding), {\n ...options,\n numeric: \"always\",\n units,\n unit,\n });\n }\n\n /**\n * Returns a string representation of this date relative to today, such as \"yesterday\" or \"next month\".\n * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", or \"days\"\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> \"tomorrow\"\n * @example DateTime.now().setLocale(\"es\").plus({ days: 1 }).toRelative() //=> \"\"mañana\"\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: \"fr\" }) //=> \"demain\"\n * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> \"2 days ago\"\n */\n toRelativeCalendar(options = {}) {\n if (!this.isValid) return null;\n\n return diffRelative(options.base || DateTime.fromObject({}, { zone: this.zone }), this, {\n ...options,\n numeric: \"auto\",\n units: [\"years\", \"months\", \"days\"],\n calendary: true,\n });\n }\n\n /**\n * Return the min of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum\n * @return {DateTime} the min DateTime, or undefined if called with no argument\n */\n static min(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"min requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, (i) => i.valueOf(), Math.min);\n }\n\n /**\n * Return the max of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum\n * @return {DateTime} the max DateTime, or undefined if called with no argument\n */\n static max(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"max requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, (i) => i.valueOf(), Math.max);\n }\n\n // MISC\n\n /**\n * Explain how a string would be parsed by fromFormat()\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see description)\n * @param {Object} options - options taken by fromFormat()\n * @return {Object}\n */\n static fromFormatExplain(text, fmt, options = {}) {\n const { locale = null, numberingSystem = null } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n return explainFromTokens(localeToUse, text, fmt);\n }\n\n /**\n * @deprecated use fromFormatExplain instead\n */\n static fromStringExplain(text, fmt, options = {}) {\n return DateTime.fromFormatExplain(text, fmt, options);\n }\n\n /**\n * Build a parser for `fmt` using the given locale. This parser can be passed\n * to {@link DateTime.fromFormatParser} to a parse a date in this format. This\n * can be used to optimize cases where many dates need to be parsed in a\n * specific format.\n *\n * @param {String} fmt - the format the string is expected to be in (see\n * description)\n * @param {Object} options - options used to set locale and numberingSystem\n * for parser\n * @returns {TokenParser} - opaque object to be used\n */\n static buildFormatParser(fmt, options = {}) {\n const { locale = null, numberingSystem = null } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n return new TokenParser(localeToUse, fmt);\n }\n\n /**\n * Create a DateTime from an input string and format parser.\n *\n * The format parser must have been created with the same locale as this call.\n *\n * @param {String} text - the string to parse\n * @param {TokenParser} formatParser - parser from {@link DateTime.buildFormatParser}\n * @param {Object} opts - options taken by fromFormat()\n * @returns {DateTime}\n */\n static fromFormatParser(text, formatParser, opts = {}) {\n if (isUndefined(text) || isUndefined(formatParser)) {\n throw new InvalidArgumentError(\n \"fromFormatParser requires an input string and a format parser\"\n );\n }\n const { locale = null, numberingSystem = null } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n\n if (!localeToUse.equals(formatParser.locale)) {\n throw new InvalidArgumentError(\n `fromFormatParser called with a locale of ${localeToUse}, ` +\n `but the format parser was created for ${formatParser.locale}`\n );\n }\n\n const { result, zone, specificOffset, invalidReason } = formatParser.explainFromTokens(text);\n\n if (invalidReason) {\n return DateTime.invalid(invalidReason);\n } else {\n return parseDataToDateTime(\n result,\n zone,\n opts,\n `format ${formatParser.format}`,\n text,\n specificOffset\n );\n }\n }\n\n // FORMAT PRESETS\n\n /**\n * {@link DateTime#toLocaleString} format like 10/14/1983\n * @type {Object}\n */\n static get DATE_SHORT() {\n return DATE_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED() {\n return DATE_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED_WITH_WEEKDAY() {\n return DATE_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983'\n * @type {Object}\n */\n static get DATE_FULL() {\n return DATE_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'\n * @type {Object}\n */\n static get DATE_HUGE() {\n return DATE_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_SIMPLE() {\n return TIME_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SECONDS() {\n return TIME_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SHORT_OFFSET() {\n return TIME_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_LONG_OFFSET() {\n return TIME_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_SIMPLE() {\n return TIME_24_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SECONDS() {\n return TIME_24_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SHORT_OFFSET() {\n return TIME_24_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_LONG_OFFSET() {\n return TIME_24_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT() {\n return DATETIME_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT_WITH_SECONDS() {\n return DATETIME_SHORT_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED() {\n return DATETIME_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_SECONDS() {\n return DATETIME_MED_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_WEEKDAY() {\n return DATETIME_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL() {\n return DATETIME_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL_WITH_SECONDS() {\n return DATETIME_FULL_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE() {\n return DATETIME_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE_WITH_SECONDS() {\n return DATETIME_HUGE_WITH_SECONDS;\n }\n}\n\n/**\n * @private\n */\nfunction friendlyDateTime(dateTimeish) {\n if (DateTime.isDateTime(dateTimeish)) {\n return dateTimeish;\n } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {\n return DateTime.fromJSDate(dateTimeish);\n } else if (dateTimeish && typeof dateTimeish === \"object\") {\n return DateTime.fromObject(dateTimeish);\n } else {\n throw new InvalidArgumentError(\n `Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`\n );\n }\n}\n\nconst VERSION = \"3.7.2\";\n\nexport { DateTime, Duration, FixedOffsetZone, IANAZone, Info, Interval, InvalidZone, Settings, SystemZone, VERSION, Zone };\n//# sourceMappingURL=luxon.mjs.map\n","import { DateTime } from 'luxon';\nimport { projectsState } from './projects.svelte';\nimport { authState } from './auth.svelte';\n\nexport function getTimezone(): string {\n\tconst organizationId = projectsState.currentProject?.organizationId;\n\tif (organizationId) {\n\t\tconst timezone = authState.getTimezoneForOrganization(organizationId);\n\t\tif (timezone) return timezone;\n\t}\n\treturn DateTime.local().zoneName || 'UTC';\n}\n","import { DateTime } from 'luxon';\nimport { getTimezone } from '$lib/state/timezone.svelte';\n\nexport function preciseTimeMs(isoString: string): number {\n\tconst match = isoString.match(\n\t\t/^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d+))?Z$/\n\t);\n\tif (!match) return new Date(isoString).getTime();\n\n\tconst [, year, month, day, hour, minute, second, frac] = match;\n\tconst baseMs = Date.UTC(+year, +month - 1, +day, +hour, +minute, +second);\n\tif (!frac) return baseMs;\n\n\treturn baseMs + parseFloat('0.' + frac) * 1000;\n}\n\nexport function formatDuration(nanoseconds: number): string {\n\tconst ms = nanoseconds / 1_000_000;\n\tif (ms < 1) {\n\t\treturn `${(nanoseconds / 1000).toFixed(0)}µs`;\n\t} else if (ms < 1000) {\n\t\treturn `${ms.toFixed(0)}ms`;\n\t} else {\n\t\treturn `${(ms / 1000).toFixed(1)}s`;\n\t}\n}\n\nexport function formatDurationMs(ms: number): string {\n\tif (ms < 1) {\n\t\treturn `${(ms * 1000).toFixed(0)} µs`;\n\t} else if (ms < 1000) {\n\t\treturn `${ms.toFixed(0)} ms`;\n\t} else {\n\t\treturn `${(ms / 1000).toFixed(2)} s`;\n\t}\n}\n\nexport function getStatusColor(statusCode: number): string {\n\tif (statusCode >= 200 && statusCode < 300) return 'text-green-500';\n\tif (statusCode >= 300 && statusCode < 400) return 'text-blue-500';\n\tif (statusCode >= 400 && statusCode < 500) return 'text-yellow-500';\n\treturn 'text-red-500';\n}\n\nexport function truncateStackTrace(stackTrace: string, maxLength = 70): string {\n\tconst firstLine = stackTrace.split('\\n')[0];\n\tif (firstLine.length > maxLength) {\n\t\treturn firstLine.slice(0, maxLength) + '...';\n\t}\n\treturn firstLine;\n}\n\nexport function formatRelativeTime(dateStr: string, timezone?: string): string {\n\tconst tz = timezone ?? getTimezone();\n\tconst dt = DateTime.fromISO(dateStr, { zone: 'utc' }).setZone(tz);\n\tconst now = DateTime.now().setZone(tz);\n\tconst diffMs = now.toMillis() - dt.toMillis();\n\tconst diffMins = Math.floor(diffMs / 60000);\n\tconst diffHours = Math.floor(diffMs / 3600000);\n\tconst diffDays = Math.floor(diffMs / 86400000);\n\n\tif (diffMins < 1) return 'just now';\n\tif (diffMins < 60) return `${diffMins}m`;\n\tif (diffHours < 24) return `${diffHours}h`;\n\treturn `${diffDays}d`;\n}\n\nexport type DateTimeFormat = 'full' | 'short' | 'date' | 'time' | 'datetime' | 'iso';\n\nexport function formatDateTime(\n\tdateInput: string | Date | number,\n\toptions: {\n\t\ttimezone?: string;\n\t\tformat?: DateTimeFormat;\n\t} = {}\n): string {\n\tconst tz = options.timezone ?? getTimezone();\n\tconst isoStr =\n\t\ttypeof dateInput === 'string'\n\t\t\t? dateInput\n\t\t\t: dateInput instanceof Date\n\t\t\t\t? dateInput.toISOString()\n\t\t\t\t: new Date(dateInput).toISOString();\n\n\tconst dt = DateTime.fromISO(isoStr, { zone: 'utc' }).setZone(tz);\n\n\tif (!dt.isValid) {\n\t\treturn 'Invalid date';\n\t}\n\n\tswitch (options.format) {\n\t\tcase 'full':\n\t\t\treturn dt.toLocaleString(DateTime.DATETIME_FULL);\n\t\tcase 'short':\n\t\t\treturn dt.toLocaleString(DateTime.DATETIME_SHORT);\n\t\tcase 'date':\n\t\t\treturn dt.toLocaleString(DateTime.DATE_MED);\n\t\tcase 'time':\n\t\t\treturn dt.toLocaleString(DateTime.TIME_SIMPLE);\n\t\tcase 'iso':\n\t\t\treturn dt.toISO() ?? '';\n\t\tcase 'datetime':\n\t\tdefault:\n\t\t\treturn dt.toLocaleString(DateTime.DATETIME_MED);\n\t}\n}\n\nexport function getNow(timezone?: string): DateTime {\n\tconst tz = timezone ?? getTimezone();\n\treturn DateTime.now().setZone(tz);\n}\n\n\n\nexport function luxonToCalendarDateTime(dt: DateTime): {\n\tyear: number;\n\tmonth: number;\n\tday: number;\n\thour: number;\n\tminute: number;\n\tsecond: number;\n} {\n\treturn {\n\t\tyear: dt.year,\n\t\tmonth: dt.month,\n\t\tday: dt.day,\n\t\thour: dt.hour,\n\t\tminute: dt.minute,\n\t\tsecond: dt.second\n\t};\n}\n\nexport function calendarDateTimeToLuxon(\n\tcalDt: {\n\t\tyear: number;\n\t\tmonth: number;\n\t\tday: number;\n\t\thour?: number;\n\t\tminute?: number;\n\t\tsecond?: number;\n\t},\n\ttimezone?: string\n): DateTime {\n\tconst tz = timezone ?? getTimezone();\n\treturn DateTime.fromObject(\n\t\t{\n\t\t\tyear: calDt.year,\n\t\t\tmonth: calDt.month,\n\t\t\tday: calDt.day,\n\t\t\thour: calDt.hour ?? 0,\n\t\t\tminute: calDt.minute ?? 0,\n\t\t\tsecond: calDt.second ?? 0\n\t\t},\n\t\t{ zone: tz }\n\t);\n}\n\nexport function toUTCISO(dt: DateTime): string {\n\treturn dt.toUTC().toISO() ?? '';\n}\n\nexport function parseISO(dateStr: string, timezone?: string): DateTime {\n\tconst tz = timezone ?? getTimezone();\n\treturn DateTime.fromISO(dateStr, { zone: 'utc' }).setZone(tz);\n}\n"],"names":["LuxonError","InvalidDateTimeError","reason","InvalidIntervalError","InvalidDurationError","ConflictingSpecificationError","InvalidUnitError","unit","InvalidArgumentError","ZoneIsAbstractError","n","s","l","DATE_SHORT","DATE_MED","DATE_MED_WITH_WEEKDAY","DATE_FULL","DATE_HUGE","TIME_SIMPLE","TIME_WITH_SECONDS","TIME_WITH_SHORT_OFFSET","TIME_WITH_LONG_OFFSET","TIME_24_SIMPLE","TIME_24_WITH_SECONDS","TIME_24_WITH_SHORT_OFFSET","TIME_24_WITH_LONG_OFFSET","DATETIME_SHORT","DATETIME_SHORT_WITH_SECONDS","DATETIME_MED","DATETIME_MED_WITH_SECONDS","DATETIME_MED_WITH_WEEKDAY","DATETIME_FULL","DATETIME_FULL_WITH_SECONDS","DATETIME_HUGE","DATETIME_HUGE_WITH_SECONDS","Zone","ts","opts","format","otherZone","singleton$1","SystemZone","locale","parseZoneInfo","formatOffset","dtfCache","makeDTF","zoneName","dtf","typeToPos","hackyOffset","date","formatted","parsed","fMonth","fDay","fYear","fadOrBc","fHour","fMinute","fSecond","partsOffset","filled","i","type","value","pos","isUndefined","ianaZoneCache","IANAZone","name","zone","year","month","day","adOrBc","hour","minute","second","asUTC","objToLocalTS","asTS","over","intlLFCache","getCachedLF","locString","key","intlDTCache","getCachedDTF","intlNumCache","getCachedINF","inf","intlRelCache","getCachedRTF","base","cacheKeyOpts","sysLocaleCache","systemLocale","intlResolvedOptionsCache","getCachedIntResolvedOptions","weekInfoCache","getCachedWeekInfo","data","fallbackWeekSettings","parseLocaleString","localeStr","xIndex","uIndex","options","selectedStr","smaller","numberingSystem","calendar","intlConfigString","outputCalendar","mapMonths","f","ms","dt","DateTime","mapWeekdays","listStuff","loc","length","englishFn","intlFn","mode","supportsFastNumbers","PolyNumberFormatter","intl","forceSimple","padTo","floor","otherOpts","intlOpts","fixed","roundTo","padStart","PolyDateFormatter","z","gmtOffset","offsetZ","parts","part","offsetName","PolyRelFormatter","isEnglish","hasRelative","count","formatRelativeTime","Locale","weekSettings","defaultToEN","specifiedLocale","Settings","localeR","numberingSystemR","outputCalendarR","weekSettingsR","validateWeekSettings","numbering","parsedLocale","parsedNumberingSystem","parsedOutputCalendar","isActuallyEn","hasNoWeirdness","alts","months","monthSpecialCase","formatStr","mapper","weekdays","meridiems","eras","field","df","results","matching","m","hasLocaleWeekInfo","other","singleton","FixedOffsetZone","offset","r","signedOffset","InvalidZone","normalizeZone","input","defaultZone","isString","lowered","isNumber","numberingSystems","numberingSystemsUTF16","hanidecChars","parseDigits","str","code","min","max","digitRegexCache","resetDigitRegexCache","digitRegex","append","ns","appendCache","regex","now","defaultLocale","defaultNumberingSystem","defaultOutputCalendar","twoDigitCutoffYear","throwOnInvalid","defaultWeekSettings","cutoffYear","t","Invalid","explanation","nonLeapLadder","leapLadder","unitOutOfRange","dayOfWeek","d","js","computeOrdinal","isLeapYear","uncomputeOrdinal","ordinal","table","month0","isoWeekdayToLocal","isoWeekday","startOfWeek","gregorianToWeek","gregObj","minDaysInFirstWeek","weekday","weekNumber","weekYear","weeksInWeekYear","timeObject","weekToGregorian","weekData","weekdayOfJan4","yearInDays","daysInYear","gregorianToOrdinal","gregData","ordinalToGregorian","ordinalData","usesLocalWeekValues","obj","hasInvalidWeekData","validYear","isInteger","validWeek","integerBetween","validWeekday","hasInvalidOrdinalData","validOrdinal","hasInvalidGregorianData","validMonth","validDay","daysInMonth","hasInvalidTimeData","millisecond","validHour","validMinute","validSecond","validMillisecond","o","isDate","maybeArray","thing","bestBy","arr","by","compare","best","next","pair","pick","keys","a","k","hasOwnProperty","prop","settings","v","bottom","top","floorMod","x","isNeg","padded","parseInteger","string","parseFloating","parseMillis","fraction","number","digits","rounding","factor","modMonth","modYear","firstWeekOffset","weekOffset","weekOffsetNext","untruncateYear","offsetFormat","timeZone","modified","offHourStr","offMinuteStr","offHour","offMin","offMinSigned","asNumber","numericValue","normalizeObject","normalizer","normalized","u","hours","minutes","sign","monthsLong","monthsShort","monthsNarrow","weekdaysLong","weekdaysShort","weekdaysNarrow","erasLong","erasShort","erasNarrow","meridiemForDateTime","weekdayForDateTime","monthForDateTime","eraForDateTime","numeric","narrow","units","lastable","isDay","isInPast","fmtValue","singular","lilUnits","fmtUnit","stringifyTokens","splits","tokenToString","token","macroTokenToFormatOpts","Formatter","fmt","current","currentFull","bracketed","c","formatOpts","interval","p","signDisplay","knownEnglish","useDateTimeFormatter","extract","meridiem","standalone","maybeMacro","era","dur","invertLargest","tokenToField","lildur","info","mapped","inversionFactor","tokens","realTokens","found","literal","val","collapsed","durationInfo","ianaRegex","combineRegexes","regexes","full","combineExtractors","extractors","mergedVals","mergedZone","cursor","ex","parse","patterns","extractor","simpleParse","match","ret","offsetRegex","isoExtendedZone","isoTimeBaseRegex","isoTimeRegex","isoTimeExtensionRegex","isoYmdRegex","isoWeekRegex","isoOrdinalRegex","extractISOWeekData","extractISOOrdinalData","sqlYmdRegex","sqlTimeRegex","sqlTimeExtensionRegex","int","fallback","extractISOYmd","extractISOTime","extractISOOffset","local","fullOffset","extractIANAZone","isoTimeOnly","isoDuration","extractISODuration","yearStr","monthStr","weekStr","dayStr","hourStr","minuteStr","secondStr","millisecondsStr","hasNegativePrefix","negativeSeconds","maybeNegate","num","force","obsOffsets","fromStrings","weekdayStr","result","rfc2822","extractRFC2822","obsOffset","milOffset","preprocessRFC2822","rfc1123","rfc850","ascii","extractRFC1123Or850","extractASCII","isoYmdWithTimeExtensionRegex","isoWeekWithTimeExtensionRegex","isoOrdinalWithTimeExtensionRegex","isoTimeCombinedRegex","extractISOYmdTimeAndOffset","extractISOWeekTimeAndOffset","extractISOOrdinalDateAndTime","extractISOTimeAndOffset","parseISODate","parseRFC2822Date","parseHTTPDate","parseISODuration","extractISOTimeOnly","parseISOTimeOnly","sqlYmdWithTimeExtensionRegex","sqlTimeCombinedRegex","extractISOTimeOffsetAndIANAZone","parseSQL","INVALID$2","lowOrderMatrix","casualMatrix","daysInYearAccurate","daysInMonthAccurate","accurateMatrix","orderedUnits$1","reverseUnits","clone$1","clear","conf","Duration","durationToMillis","matrix","vals","sum","normalizeValues","previous","previousVal","conv","rollUp","removeZeroes","newVals","config","accurate","durationLike","text","invalid","fmtOpts","showZeros","millis","duration","fn","values","mixed","conversionAccuracy","built","accumulated","lastUnit","own","ak","negated","eq","v1","v2","INVALID$1","validateStartEnd","start","end","Interval","builtStart","friendlyDateTime","builtEnd","validateError","e","startIsValid","endIsValid","dateTime","dateTimes","sorted","b","added","idx","numberOfParts","intervals","final","sofar","item","currentCount","ends","flattened","dateFormat","separator","mapFn","Info","proto","locObj","dayDiff","earlier","later","utcDayStart","highOrderDiffs","differs","days","lowestOrder","highWater","differ","diff","remainingMillis","lowerOrderUnits","MISSING_FTP","intUnit","post","NBSP","spaceOrNBSP","spaceOrNBSPRegExp","fixListRegex","stripInsensitivities","oneOf","strings","startIndex","groups","h","simple","escapeToken","unitForToken","one","two","three","four","six","oneOrTwo","oneToThree","oneToSix","oneToNine","twoToFour","fourToSix","partTypeStyleToTokenVal","tokenForPart","resolvedOpts","isSpace","style","actualType","buildRegex","handlers","matches","all","matchIndex","dateTimeFromMatches","toField","specificOffset","dummyDateTimeCache","getDummyDateTime","maybeExpandMacroToken","formatOptsToTokens","expandMacroTokens","TokenParser","regexString","rawMatches","explainFromTokens","parseFromTokens","invalidReason","INVALID","MAX_DATE","unsupportedZone","possiblyCachedWeekData","possiblyCachedLocalWeekData","clone","inst","fixOffset","localTS","tz","utcGuess","o2","o3","tsToObj","objToTS","adjustTime","oPre","millisToAdd","parseDataToDateTime","parsedZone","setZone","interpretationZone","toTechFormat","allowZ","toISODate","extended","precision","longFormat","toISOTime","suppressSeconds","suppressMilliseconds","includeOffset","extendedZone","showSeconds","defaultUnitValues","defaultWeekUnitValues","defaultOrdinalUnitValues","orderedUnits","orderedWeekUnits","orderedOrdinalUnits","normalizeUnit","normalizeUnitWithLocalWeeks","guessOffsetForZone","zoneOffsetTs","offsetGuess","zoneOffsetGuessCache","quickDT","offsetProvis","diffRelative","round","lastOpts","argList","args","ot","zoneToUse","milliseconds","seconds","tsNow","containsOrdinal","containsGregorYear","containsGregorMD","containsGregor","definiteWeekDef","useWeekData","defaultValues","objNow","foundFirst","higherOrderInvalid","gregorian","tsFinal","offsetFinal","localeToUse","localeOpts","tokenList","dayMs","minuteMs","oEarlier","oLater","o1","ts1","ts2","c1","c2","keepLocalTime","keepCalendarTime","newTS","asObj","settingWeekStuff","useLocaleWeeks","normalizedUnit","q","ext","includePrefix","includeZone","includeOffsetSpace","otherDateTime","durOpts","otherIsLater","diffed","inputMs","adjustedToZone","padding","formatParser","dateTimeish","getTimezone","organizationId","projectsState","timezone","authState","preciseTimeMs","isoString","frac","baseMs","formatDuration","nanoseconds","formatDurationMs","getStatusColor","statusCode","truncateStackTrace","stackTrace","maxLength","firstLine","dateStr","diffMs","diffMins","diffHours","diffDays","formatDateTime","dateInput","isoStr","getNow","luxonToCalendarDateTime","calendarDateTimeToLuxon","calDt","toUTCISO","parseISO"],"mappings":"2CAKA,MAAMA,UAAmB,KAAM,CAAA,CAK/B,MAAMC,WAA6BD,CAAW,CAC5C,YAAYE,EAAQ,CAClB,MAAM,qBAAqBA,EAAO,UAAS,CAAE,EAAE,CACjD,CACF,CAKA,MAAMC,WAA6BH,CAAW,CAC5C,YAAYE,EA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AC9B,CAEO,SAASunB,GAASb,EAAiBf,EAA6B,CACtE,MAAMlG,EAAKkG,GAAYH,GAAA,EACvB,OAAOvlB,EAAS,QAAQymB,EAAS,CAAE,KAAM,KAAA,CAAO,EAAE,QAAQjH,CAAE,CAC7D","x_google_ignoreList":[0]}
\ No newline at end of file
+{"version":3,"file":"Dq-0lVru.js","sources":["../../../../../../node_modules/luxon/build/es6/luxon.mjs","../../../../../../src/lib/state/timezone.svelte.ts","../../../../../../src/lib/utils/formatters.ts"],"sourcesContent":["// these aren't really private, but nor are they really useful to document\n\n/**\n * @private\n */\nclass LuxonError extends Error {}\n\n/**\n * @private\n */\nclass InvalidDateTimeError extends LuxonError {\n constructor(reason) {\n super(`Invalid DateTime: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nclass InvalidIntervalError extends LuxonError {\n constructor(reason) {\n super(`Invalid Interval: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nclass InvalidDurationError extends LuxonError {\n constructor(reason) {\n super(`Invalid Duration: ${reason.toMessage()}`);\n }\n}\n\n/**\n * @private\n */\nclass ConflictingSpecificationError extends LuxonError {}\n\n/**\n * @private\n */\nclass InvalidUnitError extends LuxonError {\n constructor(unit) {\n super(`Invalid unit ${unit}`);\n }\n}\n\n/**\n * @private\n */\nclass InvalidArgumentError extends LuxonError {}\n\n/**\n * @private\n */\nclass ZoneIsAbstractError extends LuxonError {\n constructor() {\n super(\"Zone is an abstract class\");\n }\n}\n\n/**\n * @private\n */\n\nconst n = \"numeric\",\n s = \"short\",\n l = \"long\";\n\nconst DATE_SHORT = {\n year: n,\n month: n,\n day: n,\n};\n\nconst DATE_MED = {\n year: n,\n month: s,\n day: n,\n};\n\nconst DATE_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n};\n\nconst DATE_FULL = {\n year: n,\n month: l,\n day: n,\n};\n\nconst DATE_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n};\n\nconst TIME_SIMPLE = {\n hour: n,\n minute: n,\n};\n\nconst TIME_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n};\n\nconst TIME_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s,\n};\n\nconst TIME_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l,\n};\n\nconst TIME_24_SIMPLE = {\n hour: n,\n minute: n,\n hourCycle: \"h23\",\n};\n\nconst TIME_24_WITH_SECONDS = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n};\n\nconst TIME_24_WITH_SHORT_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: s,\n};\n\nconst TIME_24_WITH_LONG_OFFSET = {\n hour: n,\n minute: n,\n second: n,\n hourCycle: \"h23\",\n timeZoneName: l,\n};\n\nconst DATETIME_SHORT = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n};\n\nconst DATETIME_SHORT_WITH_SECONDS = {\n year: n,\n month: n,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nconst DATETIME_MED = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n};\n\nconst DATETIME_MED_WITH_SECONDS = {\n year: n,\n month: s,\n day: n,\n hour: n,\n minute: n,\n second: n,\n};\n\nconst DATETIME_MED_WITH_WEEKDAY = {\n year: n,\n month: s,\n day: n,\n weekday: s,\n hour: n,\n minute: n,\n};\n\nconst DATETIME_FULL = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n timeZoneName: s,\n};\n\nconst DATETIME_FULL_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: s,\n};\n\nconst DATETIME_HUGE = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n timeZoneName: l,\n};\n\nconst DATETIME_HUGE_WITH_SECONDS = {\n year: n,\n month: l,\n day: n,\n weekday: l,\n hour: n,\n minute: n,\n second: n,\n timeZoneName: l,\n};\n\n/**\n * @interface\n */\nclass Zone {\n /**\n * The type of zone\n * @abstract\n * @type {string}\n */\n get type() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The name of this zone.\n * @abstract\n * @type {string}\n */\n get name() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * The IANA name of this zone.\n * Defaults to `name` if not overwritten by a subclass.\n * @abstract\n * @type {string}\n */\n get ianaName() {\n return this.name;\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year.\n * @abstract\n * @type {boolean}\n */\n get isUniversal() {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, opts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Returns the offset's value as a string\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @abstract\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @abstract\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n throw new ZoneIsAbstractError();\n }\n\n /**\n * Return whether this Zone is valid.\n * @abstract\n * @type {boolean}\n */\n get isValid() {\n throw new ZoneIsAbstractError();\n }\n}\n\nlet singleton$1 = null;\n\n/**\n * Represents the local zone for this JavaScript environment.\n * @implements {Zone}\n */\nclass SystemZone extends Zone {\n /**\n * Get a singleton instance of the local zone\n * @return {SystemZone}\n */\n static get instance() {\n if (singleton$1 === null) {\n singleton$1 = new SystemZone();\n }\n return singleton$1;\n }\n\n /** @override **/\n get type() {\n return \"system\";\n }\n\n /** @override **/\n get name() {\n return new Intl.DateTimeFormat().resolvedOptions().timeZone;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale);\n }\n\n /** @override **/\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /** @override **/\n offset(ts) {\n return -new Date(ts).getTimezoneOffset();\n }\n\n /** @override **/\n equals(otherZone) {\n return otherZone.type === \"system\";\n }\n\n /** @override **/\n get isValid() {\n return true;\n }\n}\n\nconst dtfCache = new Map();\nfunction makeDTF(zoneName) {\n let dtf = dtfCache.get(zoneName);\n if (dtf === undefined) {\n dtf = new Intl.DateTimeFormat(\"en-US\", {\n hour12: false,\n timeZone: zoneName,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n era: \"short\",\n });\n dtfCache.set(zoneName, dtf);\n }\n return dtf;\n}\n\nconst typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n era: 3,\n hour: 4,\n minute: 5,\n second: 6,\n};\n\nfunction hackyOffset(dtf, date) {\n const formatted = dtf.format(date).replace(/\\u200E/g, \"\"),\n parsed = /(\\d+)\\/(\\d+)\\/(\\d+) (AD|BC),? (\\d+):(\\d+):(\\d+)/.exec(formatted),\n [, fMonth, fDay, fYear, fadOrBc, fHour, fMinute, fSecond] = parsed;\n return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond];\n}\n\nfunction partsOffset(dtf, date) {\n const formatted = dtf.formatToParts(date);\n const filled = [];\n for (let i = 0; i < formatted.length; i++) {\n const { type, value } = formatted[i];\n const pos = typeToPos[type];\n\n if (type === \"era\") {\n filled[pos] = value;\n } else if (!isUndefined(pos)) {\n filled[pos] = parseInt(value, 10);\n }\n }\n return filled;\n}\n\nconst ianaZoneCache = new Map();\n/**\n * A zone identified by an IANA identifier, like America/New_York\n * @implements {Zone}\n */\nclass IANAZone extends Zone {\n /**\n * @param {string} name - Zone name\n * @return {IANAZone}\n */\n static create(name) {\n let zone = ianaZoneCache.get(name);\n if (zone === undefined) {\n ianaZoneCache.set(name, (zone = new IANAZone(name)));\n }\n return zone;\n }\n\n /**\n * Reset local caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCache() {\n ianaZoneCache.clear();\n dtfCache.clear();\n }\n\n /**\n * Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.\n * @param {string} s - The string to check validity on\n * @example IANAZone.isValidSpecifier(\"America/New_York\") //=> true\n * @example IANAZone.isValidSpecifier(\"Sport~~blorp\") //=> false\n * @deprecated For backward compatibility, this forwards to isValidZone, better use `isValidZone()` directly instead.\n * @return {boolean}\n */\n static isValidSpecifier(s) {\n return this.isValidZone(s);\n }\n\n /**\n * Returns whether the provided string identifies a real zone\n * @param {string} zone - The string to check\n * @example IANAZone.isValidZone(\"America/New_York\") //=> true\n * @example IANAZone.isValidZone(\"Fantasia/Castle\") //=> false\n * @example IANAZone.isValidZone(\"Sport~~blorp\") //=> false\n * @return {boolean}\n */\n static isValidZone(zone) {\n if (!zone) {\n return false;\n }\n try {\n new Intl.DateTimeFormat(\"en-US\", { timeZone: zone }).format();\n return true;\n } catch (e) {\n return false;\n }\n }\n\n constructor(name) {\n super();\n /** @private **/\n this.zoneName = name;\n /** @private **/\n this.valid = IANAZone.isValidZone(name);\n }\n\n /**\n * The type of zone. `iana` for all instances of `IANAZone`.\n * @override\n * @type {string}\n */\n get type() {\n return \"iana\";\n }\n\n /**\n * The name of this zone (i.e. the IANA zone name).\n * @override\n * @type {string}\n */\n get name() {\n return this.zoneName;\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year:\n * Always returns false for all IANA zones.\n * @override\n * @type {boolean}\n */\n get isUniversal() {\n return false;\n }\n\n /**\n * Returns the offset's common name (such as EST) at the specified timestamp\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the name\n * @param {Object} opts - Options to affect the format\n * @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.\n * @param {string} opts.locale - What locale to return the offset name in.\n * @return {string}\n */\n offsetName(ts, { format, locale }) {\n return parseZoneInfo(ts, format, locale, this.name);\n }\n\n /**\n * Returns the offset's value as a string\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n return formatOffset(this.offset(ts), format);\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n * @override\n * @param {number} ts - Epoch milliseconds for which to compute the offset\n * @return {number}\n */\n offset(ts) {\n if (!this.valid) return NaN;\n const date = new Date(ts);\n\n if (isNaN(date)) return NaN;\n\n const dtf = makeDTF(this.name);\n let [year, month, day, adOrBc, hour, minute, second] = dtf.formatToParts\n ? partsOffset(dtf, date)\n : hackyOffset(dtf, date);\n\n if (adOrBc === \"BC\") {\n year = -Math.abs(year) + 1;\n }\n\n // because we're using hour12 and https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat\n const adjustedHour = hour === 24 ? 0 : hour;\n\n const asUTC = objToLocalTS({\n year,\n month,\n day,\n hour: adjustedHour,\n minute,\n second,\n millisecond: 0,\n });\n\n let asTS = +date;\n const over = asTS % 1000;\n asTS -= over >= 0 ? over : 1000 + over;\n return (asUTC - asTS) / (60 * 1000);\n }\n\n /**\n * Return whether this Zone is equal to another zone\n * @override\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n return otherZone.type === \"iana\" && otherZone.name === this.name;\n }\n\n /**\n * Return whether this Zone is valid.\n * @override\n * @type {boolean}\n */\n get isValid() {\n return this.valid;\n }\n}\n\n// todo - remap caching\n\nlet intlLFCache = {};\nfunction getCachedLF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlLFCache[key];\n if (!dtf) {\n dtf = new Intl.ListFormat(locString, opts);\n intlLFCache[key] = dtf;\n }\n return dtf;\n}\n\nconst intlDTCache = new Map();\nfunction getCachedDTF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let dtf = intlDTCache.get(key);\n if (dtf === undefined) {\n dtf = new Intl.DateTimeFormat(locString, opts);\n intlDTCache.set(key, dtf);\n }\n return dtf;\n}\n\nconst intlNumCache = new Map();\nfunction getCachedINF(locString, opts = {}) {\n const key = JSON.stringify([locString, opts]);\n let inf = intlNumCache.get(key);\n if (inf === undefined) {\n inf = new Intl.NumberFormat(locString, opts);\n intlNumCache.set(key, inf);\n }\n return inf;\n}\n\nconst intlRelCache = new Map();\nfunction getCachedRTF(locString, opts = {}) {\n const { base, ...cacheKeyOpts } = opts; // exclude `base` from the options\n const key = JSON.stringify([locString, cacheKeyOpts]);\n let inf = intlRelCache.get(key);\n if (inf === undefined) {\n inf = new Intl.RelativeTimeFormat(locString, opts);\n intlRelCache.set(key, inf);\n }\n return inf;\n}\n\nlet sysLocaleCache = null;\nfunction systemLocale() {\n if (sysLocaleCache) {\n return sysLocaleCache;\n } else {\n sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale;\n return sysLocaleCache;\n }\n}\n\nconst intlResolvedOptionsCache = new Map();\nfunction getCachedIntResolvedOptions(locString) {\n let opts = intlResolvedOptionsCache.get(locString);\n if (opts === undefined) {\n opts = new Intl.DateTimeFormat(locString).resolvedOptions();\n intlResolvedOptionsCache.set(locString, opts);\n }\n return opts;\n}\n\nconst weekInfoCache = new Map();\nfunction getCachedWeekInfo(locString) {\n let data = weekInfoCache.get(locString);\n if (!data) {\n const locale = new Intl.Locale(locString);\n // browsers currently implement this as a property, but spec says it should be a getter function\n data = \"getWeekInfo\" in locale ? locale.getWeekInfo() : locale.weekInfo;\n // minimalDays was removed from WeekInfo: https://github.com/tc39/proposal-intl-locale-info/issues/86\n if (!(\"minimalDays\" in data)) {\n data = { ...fallbackWeekSettings, ...data };\n }\n weekInfoCache.set(locString, data);\n }\n return data;\n}\n\nfunction parseLocaleString(localeStr) {\n // I really want to avoid writing a BCP 47 parser\n // see, e.g. https://github.com/wooorm/bcp-47\n // Instead, we'll do this:\n\n // a) if the string has no -u extensions, just leave it alone\n // b) if it does, use Intl to resolve everything\n // c) if Intl fails, try again without the -u\n\n // private subtags and unicode subtags have ordering requirements,\n // and we're not properly parsing this, so just strip out the\n // private ones if they exist.\n const xIndex = localeStr.indexOf(\"-x-\");\n if (xIndex !== -1) {\n localeStr = localeStr.substring(0, xIndex);\n }\n\n const uIndex = localeStr.indexOf(\"-u-\");\n if (uIndex === -1) {\n return [localeStr];\n } else {\n let options;\n let selectedStr;\n try {\n options = getCachedDTF(localeStr).resolvedOptions();\n selectedStr = localeStr;\n } catch (e) {\n const smaller = localeStr.substring(0, uIndex);\n options = getCachedDTF(smaller).resolvedOptions();\n selectedStr = smaller;\n }\n\n const { numberingSystem, calendar } = options;\n return [selectedStr, numberingSystem, calendar];\n }\n}\n\nfunction intlConfigString(localeStr, numberingSystem, outputCalendar) {\n if (outputCalendar || numberingSystem) {\n if (!localeStr.includes(\"-u-\")) {\n localeStr += \"-u\";\n }\n\n if (outputCalendar) {\n localeStr += `-ca-${outputCalendar}`;\n }\n\n if (numberingSystem) {\n localeStr += `-nu-${numberingSystem}`;\n }\n return localeStr;\n } else {\n return localeStr;\n }\n}\n\nfunction mapMonths(f) {\n const ms = [];\n for (let i = 1; i <= 12; i++) {\n const dt = DateTime.utc(2009, i, 1);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction mapWeekdays(f) {\n const ms = [];\n for (let i = 1; i <= 7; i++) {\n const dt = DateTime.utc(2016, 11, 13 + i);\n ms.push(f(dt));\n }\n return ms;\n}\n\nfunction listStuff(loc, length, englishFn, intlFn) {\n const mode = loc.listingMode();\n\n if (mode === \"error\") {\n return null;\n } else if (mode === \"en\") {\n return englishFn(length);\n } else {\n return intlFn(length);\n }\n}\n\nfunction supportsFastNumbers(loc) {\n if (loc.numberingSystem && loc.numberingSystem !== \"latn\") {\n return false;\n } else {\n return (\n loc.numberingSystem === \"latn\" ||\n !loc.locale ||\n loc.locale.startsWith(\"en\") ||\n getCachedIntResolvedOptions(loc.locale).numberingSystem === \"latn\"\n );\n }\n}\n\n/**\n * @private\n */\n\nclass PolyNumberFormatter {\n constructor(intl, forceSimple, opts) {\n this.padTo = opts.padTo || 0;\n this.floor = opts.floor || false;\n\n const { padTo, floor, ...otherOpts } = opts;\n\n if (!forceSimple || Object.keys(otherOpts).length > 0) {\n const intlOpts = { useGrouping: false, ...opts };\n if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;\n this.inf = getCachedINF(intl, intlOpts);\n }\n }\n\n format(i) {\n if (this.inf) {\n const fixed = this.floor ? Math.floor(i) : i;\n return this.inf.format(fixed);\n } else {\n // to match the browser's numberformatter defaults\n const fixed = this.floor ? Math.floor(i) : roundTo(i, 3);\n return padStart(fixed, this.padTo);\n }\n }\n}\n\n/**\n * @private\n */\n\nclass PolyDateFormatter {\n constructor(dt, intl, opts) {\n this.opts = opts;\n this.originalZone = undefined;\n\n let z = undefined;\n if (this.opts.timeZone) {\n // Don't apply any workarounds if a timeZone is explicitly provided in opts\n this.dt = dt;\n } else if (dt.zone.type === \"fixed\") {\n // UTC-8 or Etc/UTC-8 are not part of tzdata, only Etc/GMT+8 and the like.\n // That is why fixed-offset TZ is set to that unless it is:\n // 1. Representing offset 0 when UTC is used to maintain previous behavior and does not become GMT.\n // 2. Unsupported by the browser:\n // - some do not support Etc/\n // - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata\n const gmtOffset = -1 * (dt.offset / 60);\n const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`;\n if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {\n z = offsetZ;\n this.dt = dt;\n } else {\n // Not all fixed-offset zones like Etc/+4:30 are present in tzdata so\n // we manually apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.offset === 0 ? dt : dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n this.originalZone = dt.zone;\n }\n } else if (dt.zone.type === \"system\") {\n this.dt = dt;\n } else if (dt.zone.type === \"iana\") {\n this.dt = dt;\n z = dt.zone.name;\n } else {\n // Custom zones can have any offset / offsetName so we just manually\n // apply the offset and substitute the zone as needed.\n z = \"UTC\";\n this.dt = dt.setZone(\"UTC\").plus({ minutes: dt.offset });\n this.originalZone = dt.zone;\n }\n\n const intlOpts = { ...this.opts };\n intlOpts.timeZone = intlOpts.timeZone || z;\n this.dtf = getCachedDTF(intl, intlOpts);\n }\n\n format() {\n if (this.originalZone) {\n // If we have to substitute in the actual zone name, we have to use\n // formatToParts so that the timezone can be replaced.\n return this.formatToParts()\n .map(({ value }) => value)\n .join(\"\");\n }\n return this.dtf.format(this.dt.toJSDate());\n }\n\n formatToParts() {\n const parts = this.dtf.formatToParts(this.dt.toJSDate());\n if (this.originalZone) {\n return parts.map((part) => {\n if (part.type === \"timeZoneName\") {\n const offsetName = this.originalZone.offsetName(this.dt.ts, {\n locale: this.dt.locale,\n format: this.opts.timeZoneName,\n });\n return {\n ...part,\n value: offsetName,\n };\n } else {\n return part;\n }\n });\n }\n return parts;\n }\n\n resolvedOptions() {\n return this.dtf.resolvedOptions();\n }\n}\n\n/**\n * @private\n */\nclass PolyRelFormatter {\n constructor(intl, isEnglish, opts) {\n this.opts = { style: \"long\", ...opts };\n if (!isEnglish && hasRelative()) {\n this.rtf = getCachedRTF(intl, opts);\n }\n }\n\n format(count, unit) {\n if (this.rtf) {\n return this.rtf.format(count, unit);\n } else {\n return formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== \"long\");\n }\n }\n\n formatToParts(count, unit) {\n if (this.rtf) {\n return this.rtf.formatToParts(count, unit);\n } else {\n return [];\n }\n }\n}\n\nconst fallbackWeekSettings = {\n firstDay: 1,\n minimalDays: 4,\n weekend: [6, 7],\n};\n\n/**\n * @private\n */\nclass Locale {\n static fromOpts(opts) {\n return Locale.create(\n opts.locale,\n opts.numberingSystem,\n opts.outputCalendar,\n opts.weekSettings,\n opts.defaultToEN\n );\n }\n\n static create(locale, numberingSystem, outputCalendar, weekSettings, defaultToEN = false) {\n const specifiedLocale = locale || Settings.defaultLocale;\n // the system locale is useful for human-readable strings but annoying for parsing/formatting known formats\n const localeR = specifiedLocale || (defaultToEN ? \"en-US\" : systemLocale());\n const numberingSystemR = numberingSystem || Settings.defaultNumberingSystem;\n const outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;\n const weekSettingsR = validateWeekSettings(weekSettings) || Settings.defaultWeekSettings;\n return new Locale(localeR, numberingSystemR, outputCalendarR, weekSettingsR, specifiedLocale);\n }\n\n static resetCache() {\n sysLocaleCache = null;\n intlDTCache.clear();\n intlNumCache.clear();\n intlRelCache.clear();\n intlResolvedOptionsCache.clear();\n weekInfoCache.clear();\n }\n\n static fromObject({ locale, numberingSystem, outputCalendar, weekSettings } = {}) {\n return Locale.create(locale, numberingSystem, outputCalendar, weekSettings);\n }\n\n constructor(locale, numbering, outputCalendar, weekSettings, specifiedLocale) {\n const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString(locale);\n\n this.locale = parsedLocale;\n this.numberingSystem = numbering || parsedNumberingSystem || null;\n this.outputCalendar = outputCalendar || parsedOutputCalendar || null;\n this.weekSettings = weekSettings;\n this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);\n\n this.weekdaysCache = { format: {}, standalone: {} };\n this.monthsCache = { format: {}, standalone: {} };\n this.meridiemCache = null;\n this.eraCache = {};\n\n this.specifiedLocale = specifiedLocale;\n this.fastNumbersCached = null;\n }\n\n get fastNumbers() {\n if (this.fastNumbersCached == null) {\n this.fastNumbersCached = supportsFastNumbers(this);\n }\n\n return this.fastNumbersCached;\n }\n\n listingMode() {\n const isActuallyEn = this.isEnglish();\n const hasNoWeirdness =\n (this.numberingSystem === null || this.numberingSystem === \"latn\") &&\n (this.outputCalendar === null || this.outputCalendar === \"gregory\");\n return isActuallyEn && hasNoWeirdness ? \"en\" : \"intl\";\n }\n\n clone(alts) {\n if (!alts || Object.getOwnPropertyNames(alts).length === 0) {\n return this;\n } else {\n return Locale.create(\n alts.locale || this.specifiedLocale,\n alts.numberingSystem || this.numberingSystem,\n alts.outputCalendar || this.outputCalendar,\n validateWeekSettings(alts.weekSettings) || this.weekSettings,\n alts.defaultToEN || false\n );\n }\n }\n\n redefaultToEN(alts = {}) {\n return this.clone({ ...alts, defaultToEN: true });\n }\n\n redefaultToSystem(alts = {}) {\n return this.clone({ ...alts, defaultToEN: false });\n }\n\n months(length, format = false) {\n return listStuff(this, length, months, () => {\n // Workaround for \"ja\" locale: formatToParts does not label all parts of the month\n // as \"month\" and for this locale there is no difference between \"format\" and \"non-format\".\n // As such, just use format() instead of formatToParts() and take the whole string\n const monthSpecialCase = this.intl === \"ja\" || this.intl.startsWith(\"ja-\");\n format &= !monthSpecialCase;\n const intl = format ? { month: length, day: \"numeric\" } : { month: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.monthsCache[formatStr][length]) {\n const mapper = !monthSpecialCase\n ? (dt) => this.extract(dt, intl, \"month\")\n : (dt) => this.dtFormatter(dt, intl).format();\n this.monthsCache[formatStr][length] = mapMonths(mapper);\n }\n return this.monthsCache[formatStr][length];\n });\n }\n\n weekdays(length, format = false) {\n return listStuff(this, length, weekdays, () => {\n const intl = format\n ? { weekday: length, year: \"numeric\", month: \"long\", day: \"numeric\" }\n : { weekday: length },\n formatStr = format ? \"format\" : \"standalone\";\n if (!this.weekdaysCache[formatStr][length]) {\n this.weekdaysCache[formatStr][length] = mapWeekdays((dt) =>\n this.extract(dt, intl, \"weekday\")\n );\n }\n return this.weekdaysCache[formatStr][length];\n });\n }\n\n meridiems() {\n return listStuff(\n this,\n undefined,\n () => meridiems,\n () => {\n // In theory there could be aribitrary day periods. We're gonna assume there are exactly two\n // for AM and PM. This is probably wrong, but it's makes parsing way easier.\n if (!this.meridiemCache) {\n const intl = { hour: \"numeric\", hourCycle: \"h12\" };\n this.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(\n (dt) => this.extract(dt, intl, \"dayperiod\")\n );\n }\n\n return this.meridiemCache;\n }\n );\n }\n\n eras(length) {\n return listStuff(this, length, eras, () => {\n const intl = { era: length };\n\n // This is problematic. Different calendars are going to define eras totally differently. What I need is the minimum set of dates\n // to definitely enumerate them.\n if (!this.eraCache[length]) {\n this.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map((dt) =>\n this.extract(dt, intl, \"era\")\n );\n }\n\n return this.eraCache[length];\n });\n }\n\n extract(dt, intlOpts, field) {\n const df = this.dtFormatter(dt, intlOpts),\n results = df.formatToParts(),\n matching = results.find((m) => m.type.toLowerCase() === field);\n return matching ? matching.value : null;\n }\n\n numberFormatter(opts = {}) {\n // this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)\n // (in contrast, the rest of the condition is used heavily)\n return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);\n }\n\n dtFormatter(dt, intlOpts = {}) {\n return new PolyDateFormatter(dt, this.intl, intlOpts);\n }\n\n relFormatter(opts = {}) {\n return new PolyRelFormatter(this.intl, this.isEnglish(), opts);\n }\n\n listFormatter(opts = {}) {\n return getCachedLF(this.intl, opts);\n }\n\n isEnglish() {\n return (\n this.locale === \"en\" ||\n this.locale.toLowerCase() === \"en-us\" ||\n getCachedIntResolvedOptions(this.intl).locale.startsWith(\"en-us\")\n );\n }\n\n getWeekSettings() {\n if (this.weekSettings) {\n return this.weekSettings;\n } else if (!hasLocaleWeekInfo()) {\n return fallbackWeekSettings;\n } else {\n return getCachedWeekInfo(this.locale);\n }\n }\n\n getStartOfWeek() {\n return this.getWeekSettings().firstDay;\n }\n\n getMinDaysInFirstWeek() {\n return this.getWeekSettings().minimalDays;\n }\n\n getWeekendDays() {\n return this.getWeekSettings().weekend;\n }\n\n equals(other) {\n return (\n this.locale === other.locale &&\n this.numberingSystem === other.numberingSystem &&\n this.outputCalendar === other.outputCalendar\n );\n }\n\n toString() {\n return `Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`;\n }\n}\n\nlet singleton = null;\n\n/**\n * A zone with a fixed offset (meaning no DST)\n * @implements {Zone}\n */\nclass FixedOffsetZone extends Zone {\n /**\n * Get a singleton instance of UTC\n * @return {FixedOffsetZone}\n */\n static get utcInstance() {\n if (singleton === null) {\n singleton = new FixedOffsetZone(0);\n }\n return singleton;\n }\n\n /**\n * Get an instance with a specified offset\n * @param {number} offset - The offset in minutes\n * @return {FixedOffsetZone}\n */\n static instance(offset) {\n return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);\n }\n\n /**\n * Get an instance of FixedOffsetZone from a UTC offset string, like \"UTC+6\"\n * @param {string} s - The offset string to parse\n * @example FixedOffsetZone.parseSpecifier(\"UTC+6\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC+06\")\n * @example FixedOffsetZone.parseSpecifier(\"UTC-6:00\")\n * @return {FixedOffsetZone}\n */\n static parseSpecifier(s) {\n if (s) {\n const r = s.match(/^utc(?:([+-]\\d{1,2})(?::(\\d{2}))?)?$/i);\n if (r) {\n return new FixedOffsetZone(signedOffset(r[1], r[2]));\n }\n }\n return null;\n }\n\n constructor(offset) {\n super();\n /** @private **/\n this.fixed = offset;\n }\n\n /**\n * The type of zone. `fixed` for all instances of `FixedOffsetZone`.\n * @override\n * @type {string}\n */\n get type() {\n return \"fixed\";\n }\n\n /**\n * The name of this zone.\n * All fixed zones' names always start with \"UTC\" (plus optional offset)\n * @override\n * @type {string}\n */\n get name() {\n return this.fixed === 0 ? \"UTC\" : `UTC${formatOffset(this.fixed, \"narrow\")}`;\n }\n\n /**\n * The IANA name of this zone, i.e. `Etc/UTC` or `Etc/GMT+/-nn`\n *\n * @override\n * @type {string}\n */\n get ianaName() {\n if (this.fixed === 0) {\n return \"Etc/UTC\";\n } else {\n return `Etc/GMT${formatOffset(-this.fixed, \"narrow\")}`;\n }\n }\n\n /**\n * Returns the offset's common name at the specified timestamp.\n *\n * For fixed offset zones this equals to the zone name.\n * @override\n */\n offsetName() {\n return this.name;\n }\n\n /**\n * Returns the offset's value as a string\n * @override\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\n formatOffset(ts, format) {\n return formatOffset(this.fixed, format);\n }\n\n /**\n * Returns whether the offset is known to be fixed for the whole year:\n * Always returns true for all fixed offset zones.\n * @override\n * @type {boolean}\n */\n get isUniversal() {\n return true;\n }\n\n /**\n * Return the offset in minutes for this zone at the specified timestamp.\n *\n * For fixed offset zones, this is constant and does not depend on a timestamp.\n * @override\n * @return {number}\n */\n offset() {\n return this.fixed;\n }\n\n /**\n * Return whether this Zone is equal to another zone (i.e. also fixed and same offset)\n * @override\n * @param {Zone} otherZone - the zone to compare\n * @return {boolean}\n */\n equals(otherZone) {\n return otherZone.type === \"fixed\" && otherZone.fixed === this.fixed;\n }\n\n /**\n * Return whether this Zone is valid:\n * All fixed offset zones are valid.\n * @override\n * @type {boolean}\n */\n get isValid() {\n return true;\n }\n}\n\n/**\n * A zone that failed to parse. You should never need to instantiate this.\n * @implements {Zone}\n */\nclass InvalidZone extends Zone {\n constructor(zoneName) {\n super();\n /** @private */\n this.zoneName = zoneName;\n }\n\n /** @override **/\n get type() {\n return \"invalid\";\n }\n\n /** @override **/\n get name() {\n return this.zoneName;\n }\n\n /** @override **/\n get isUniversal() {\n return false;\n }\n\n /** @override **/\n offsetName() {\n return null;\n }\n\n /** @override **/\n formatOffset() {\n return \"\";\n }\n\n /** @override **/\n offset() {\n return NaN;\n }\n\n /** @override **/\n equals() {\n return false;\n }\n\n /** @override **/\n get isValid() {\n return false;\n }\n}\n\n/**\n * @private\n */\n\nfunction normalizeZone(input, defaultZone) {\n if (isUndefined(input) || input === null) {\n return defaultZone;\n } else if (input instanceof Zone) {\n return input;\n } else if (isString(input)) {\n const lowered = input.toLowerCase();\n if (lowered === \"default\") return defaultZone;\n else if (lowered === \"local\" || lowered === \"system\") return SystemZone.instance;\n else if (lowered === \"utc\" || lowered === \"gmt\") return FixedOffsetZone.utcInstance;\n else return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input);\n } else if (isNumber(input)) {\n return FixedOffsetZone.instance(input);\n } else if (typeof input === \"object\" && \"offset\" in input && typeof input.offset === \"function\") {\n // This is dumb, but the instanceof check above doesn't seem to really work\n // so we're duck checking it\n return input;\n } else {\n return new InvalidZone(input);\n }\n}\n\nconst numberingSystems = {\n arab: \"[\\u0660-\\u0669]\",\n arabext: \"[\\u06F0-\\u06F9]\",\n bali: \"[\\u1B50-\\u1B59]\",\n beng: \"[\\u09E6-\\u09EF]\",\n deva: \"[\\u0966-\\u096F]\",\n fullwide: \"[\\uFF10-\\uFF19]\",\n gujr: \"[\\u0AE6-\\u0AEF]\",\n hanidec: \"[〇|一|二|三|四|五|六|七|八|九]\",\n khmr: \"[\\u17E0-\\u17E9]\",\n knda: \"[\\u0CE6-\\u0CEF]\",\n laoo: \"[\\u0ED0-\\u0ED9]\",\n limb: \"[\\u1946-\\u194F]\",\n mlym: \"[\\u0D66-\\u0D6F]\",\n mong: \"[\\u1810-\\u1819]\",\n mymr: \"[\\u1040-\\u1049]\",\n orya: \"[\\u0B66-\\u0B6F]\",\n tamldec: \"[\\u0BE6-\\u0BEF]\",\n telu: \"[\\u0C66-\\u0C6F]\",\n thai: \"[\\u0E50-\\u0E59]\",\n tibt: \"[\\u0F20-\\u0F29]\",\n latn: \"\\\\d\",\n};\n\nconst numberingSystemsUTF16 = {\n arab: [1632, 1641],\n arabext: [1776, 1785],\n bali: [6992, 7001],\n beng: [2534, 2543],\n deva: [2406, 2415],\n fullwide: [65296, 65303],\n gujr: [2790, 2799],\n khmr: [6112, 6121],\n knda: [3302, 3311],\n laoo: [3792, 3801],\n limb: [6470, 6479],\n mlym: [3430, 3439],\n mong: [6160, 6169],\n mymr: [4160, 4169],\n orya: [2918, 2927],\n tamldec: [3046, 3055],\n telu: [3174, 3183],\n thai: [3664, 3673],\n tibt: [3872, 3881],\n};\n\nconst hanidecChars = numberingSystems.hanidec.replace(/[\\[|\\]]/g, \"\").split(\"\");\n\nfunction parseDigits(str) {\n let value = parseInt(str, 10);\n if (isNaN(value)) {\n value = \"\";\n for (let i = 0; i < str.length; i++) {\n const code = str.charCodeAt(i);\n\n if (str[i].search(numberingSystems.hanidec) !== -1) {\n value += hanidecChars.indexOf(str[i]);\n } else {\n for (const key in numberingSystemsUTF16) {\n const [min, max] = numberingSystemsUTF16[key];\n if (code >= min && code <= max) {\n value += code - min;\n }\n }\n }\n }\n return parseInt(value, 10);\n } else {\n return value;\n }\n}\n\n// cache of {numberingSystem: {append: regex}}\nconst digitRegexCache = new Map();\nfunction resetDigitRegexCache() {\n digitRegexCache.clear();\n}\n\nfunction digitRegex({ numberingSystem }, append = \"\") {\n const ns = numberingSystem || \"latn\";\n\n let appendCache = digitRegexCache.get(ns);\n if (appendCache === undefined) {\n appendCache = new Map();\n digitRegexCache.set(ns, appendCache);\n }\n let regex = appendCache.get(append);\n if (regex === undefined) {\n regex = new RegExp(`${numberingSystems[ns]}${append}`);\n appendCache.set(append, regex);\n }\n\n return regex;\n}\n\nlet now = () => Date.now(),\n defaultZone = \"system\",\n defaultLocale = null,\n defaultNumberingSystem = null,\n defaultOutputCalendar = null,\n twoDigitCutoffYear = 60,\n throwOnInvalid,\n defaultWeekSettings = null;\n\n/**\n * Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.\n */\nclass Settings {\n /**\n * Get the callback for returning the current timestamp.\n * @type {function}\n */\n static get now() {\n return now;\n }\n\n /**\n * Set the callback for returning the current timestamp.\n * The function should return a number, which will be interpreted as an Epoch millisecond count\n * @type {function}\n * @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future\n * @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time\n */\n static set now(n) {\n now = n;\n }\n\n /**\n * Set the default time zone to create DateTimes in. Does not affect existing instances.\n * Use the value \"system\" to reset this value to the system's time zone.\n * @type {string}\n */\n static set defaultZone(zone) {\n defaultZone = zone;\n }\n\n /**\n * Get the default time zone object currently used to create DateTimes. Does not affect existing instances.\n * The default value is the system's time zone (the one set on the machine that runs this code).\n * @type {Zone}\n */\n static get defaultZone() {\n return normalizeZone(defaultZone, SystemZone.instance);\n }\n\n /**\n * Get the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultLocale() {\n return defaultLocale;\n }\n\n /**\n * Set the default locale to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultLocale(locale) {\n defaultLocale = locale;\n }\n\n /**\n * Get the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultNumberingSystem() {\n return defaultNumberingSystem;\n }\n\n /**\n * Set the default numbering system to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultNumberingSystem(numberingSystem) {\n defaultNumberingSystem = numberingSystem;\n }\n\n /**\n * Get the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static get defaultOutputCalendar() {\n return defaultOutputCalendar;\n }\n\n /**\n * Set the default output calendar to create DateTimes with. Does not affect existing instances.\n * @type {string}\n */\n static set defaultOutputCalendar(outputCalendar) {\n defaultOutputCalendar = outputCalendar;\n }\n\n /**\n * @typedef {Object} WeekSettings\n * @property {number} firstDay\n * @property {number} minimalDays\n * @property {number[]} weekend\n */\n\n /**\n * @return {WeekSettings|null}\n */\n static get defaultWeekSettings() {\n return defaultWeekSettings;\n }\n\n /**\n * Allows overriding the default locale week settings, i.e. the start of the week, the weekend and\n * how many days are required in the first week of a year.\n * Does not affect existing instances.\n *\n * @param {WeekSettings|null} weekSettings\n */\n static set defaultWeekSettings(weekSettings) {\n defaultWeekSettings = validateWeekSettings(weekSettings);\n }\n\n /**\n * Get the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n * @type {number}\n */\n static get twoDigitCutoffYear() {\n return twoDigitCutoffYear;\n }\n\n /**\n * Set the cutoff year for whether a 2-digit year string is interpreted in the current or previous century. Numbers higher than the cutoff will be considered to mean 19xx and numbers lower or equal to the cutoff will be considered 20xx.\n * @type {number}\n * @example Settings.twoDigitCutoffYear = 0 // all 'yy' are interpreted as 20th century\n * @example Settings.twoDigitCutoffYear = 99 // all 'yy' are interpreted as 21st century\n * @example Settings.twoDigitCutoffYear = 50 // '49' -> 2049; '50' -> 1950\n * @example Settings.twoDigitCutoffYear = 1950 // interpreted as 50\n * @example Settings.twoDigitCutoffYear = 2050 // ALSO interpreted as 50\n */\n static set twoDigitCutoffYear(cutoffYear) {\n twoDigitCutoffYear = cutoffYear % 100;\n }\n\n /**\n * Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static get throwOnInvalid() {\n return throwOnInvalid;\n }\n\n /**\n * Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals\n * @type {boolean}\n */\n static set throwOnInvalid(t) {\n throwOnInvalid = t;\n }\n\n /**\n * Reset Luxon's global caches. Should only be necessary in testing scenarios.\n * @return {void}\n */\n static resetCaches() {\n Locale.resetCache();\n IANAZone.resetCache();\n DateTime.resetCache();\n resetDigitRegexCache();\n }\n}\n\nclass Invalid {\n constructor(reason, explanation) {\n this.reason = reason;\n this.explanation = explanation;\n }\n\n toMessage() {\n if (this.explanation) {\n return `${this.reason}: ${this.explanation}`;\n } else {\n return this.reason;\n }\n }\n}\n\nconst nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],\n leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];\n\nfunction unitOutOfRange(unit, value) {\n return new Invalid(\n \"unit out of range\",\n `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`\n );\n}\n\nfunction dayOfWeek(year, month, day) {\n const d = new Date(Date.UTC(year, month - 1, day));\n\n if (year < 100 && year >= 0) {\n d.setUTCFullYear(d.getUTCFullYear() - 1900);\n }\n\n const js = d.getUTCDay();\n\n return js === 0 ? 7 : js;\n}\n\nfunction computeOrdinal(year, month, day) {\n return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];\n}\n\nfunction uncomputeOrdinal(year, ordinal) {\n const table = isLeapYear(year) ? leapLadder : nonLeapLadder,\n month0 = table.findIndex((i) => i < ordinal),\n day = ordinal - table[month0];\n return { month: month0 + 1, day };\n}\n\nfunction isoWeekdayToLocal(isoWeekday, startOfWeek) {\n return ((isoWeekday - startOfWeek + 7) % 7) + 1;\n}\n\n/**\n * @private\n */\n\nfunction gregorianToWeek(gregObj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const { year, month, day } = gregObj,\n ordinal = computeOrdinal(year, month, day),\n weekday = isoWeekdayToLocal(dayOfWeek(year, month, day), startOfWeek);\n\n let weekNumber = Math.floor((ordinal - weekday + 14 - minDaysInFirstWeek) / 7),\n weekYear;\n\n if (weekNumber < 1) {\n weekYear = year - 1;\n weekNumber = weeksInWeekYear(weekYear, minDaysInFirstWeek, startOfWeek);\n } else if (weekNumber > weeksInWeekYear(year, minDaysInFirstWeek, startOfWeek)) {\n weekYear = year + 1;\n weekNumber = 1;\n } else {\n weekYear = year;\n }\n\n return { weekYear, weekNumber, weekday, ...timeObject(gregObj) };\n}\n\nfunction weekToGregorian(weekData, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const { weekYear, weekNumber, weekday } = weekData,\n weekdayOfJan4 = isoWeekdayToLocal(dayOfWeek(weekYear, 1, minDaysInFirstWeek), startOfWeek),\n yearInDays = daysInYear(weekYear);\n\n let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 7 + minDaysInFirstWeek,\n year;\n\n if (ordinal < 1) {\n year = weekYear - 1;\n ordinal += daysInYear(year);\n } else if (ordinal > yearInDays) {\n year = weekYear + 1;\n ordinal -= daysInYear(weekYear);\n } else {\n year = weekYear;\n }\n\n const { month, day } = uncomputeOrdinal(year, ordinal);\n return { year, month, day, ...timeObject(weekData) };\n}\n\nfunction gregorianToOrdinal(gregData) {\n const { year, month, day } = gregData;\n const ordinal = computeOrdinal(year, month, day);\n return { year, ordinal, ...timeObject(gregData) };\n}\n\nfunction ordinalToGregorian(ordinalData) {\n const { year, ordinal } = ordinalData;\n const { month, day } = uncomputeOrdinal(year, ordinal);\n return { year, month, day, ...timeObject(ordinalData) };\n}\n\n/**\n * Check if local week units like localWeekday are used in obj.\n * If so, validates that they are not mixed with ISO week units and then copies them to the normal week unit properties.\n * Modifies obj in-place!\n * @param obj the object values\n */\nfunction usesLocalWeekValues(obj, loc) {\n const hasLocaleWeekData =\n !isUndefined(obj.localWeekday) ||\n !isUndefined(obj.localWeekNumber) ||\n !isUndefined(obj.localWeekYear);\n if (hasLocaleWeekData) {\n const hasIsoWeekData =\n !isUndefined(obj.weekday) || !isUndefined(obj.weekNumber) || !isUndefined(obj.weekYear);\n\n if (hasIsoWeekData) {\n throw new ConflictingSpecificationError(\n \"Cannot mix locale-based week fields with ISO-based week fields\"\n );\n }\n if (!isUndefined(obj.localWeekday)) obj.weekday = obj.localWeekday;\n if (!isUndefined(obj.localWeekNumber)) obj.weekNumber = obj.localWeekNumber;\n if (!isUndefined(obj.localWeekYear)) obj.weekYear = obj.localWeekYear;\n delete obj.localWeekday;\n delete obj.localWeekNumber;\n delete obj.localWeekYear;\n return {\n minDaysInFirstWeek: loc.getMinDaysInFirstWeek(),\n startOfWeek: loc.getStartOfWeek(),\n };\n } else {\n return { minDaysInFirstWeek: 4, startOfWeek: 1 };\n }\n}\n\nfunction hasInvalidWeekData(obj, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const validYear = isInteger(obj.weekYear),\n validWeek = integerBetween(\n obj.weekNumber,\n 1,\n weeksInWeekYear(obj.weekYear, minDaysInFirstWeek, startOfWeek)\n ),\n validWeekday = integerBetween(obj.weekday, 1, 7);\n\n if (!validYear) {\n return unitOutOfRange(\"weekYear\", obj.weekYear);\n } else if (!validWeek) {\n return unitOutOfRange(\"week\", obj.weekNumber);\n } else if (!validWeekday) {\n return unitOutOfRange(\"weekday\", obj.weekday);\n } else return false;\n}\n\nfunction hasInvalidOrdinalData(obj) {\n const validYear = isInteger(obj.year),\n validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validOrdinal) {\n return unitOutOfRange(\"ordinal\", obj.ordinal);\n } else return false;\n}\n\nfunction hasInvalidGregorianData(obj) {\n const validYear = isInteger(obj.year),\n validMonth = integerBetween(obj.month, 1, 12),\n validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));\n\n if (!validYear) {\n return unitOutOfRange(\"year\", obj.year);\n } else if (!validMonth) {\n return unitOutOfRange(\"month\", obj.month);\n } else if (!validDay) {\n return unitOutOfRange(\"day\", obj.day);\n } else return false;\n}\n\nfunction hasInvalidTimeData(obj) {\n const { hour, minute, second, millisecond } = obj;\n const validHour =\n integerBetween(hour, 0, 23) ||\n (hour === 24 && minute === 0 && second === 0 && millisecond === 0),\n validMinute = integerBetween(minute, 0, 59),\n validSecond = integerBetween(second, 0, 59),\n validMillisecond = integerBetween(millisecond, 0, 999);\n\n if (!validHour) {\n return unitOutOfRange(\"hour\", hour);\n } else if (!validMinute) {\n return unitOutOfRange(\"minute\", minute);\n } else if (!validSecond) {\n return unitOutOfRange(\"second\", second);\n } else if (!validMillisecond) {\n return unitOutOfRange(\"millisecond\", millisecond);\n } else return false;\n}\n\n/*\n This is just a junk drawer, containing anything used across multiple classes.\n Because Luxon is small(ish), this should stay small and we won't worry about splitting\n it up into, say, parsingUtil.js and basicUtil.js and so on. But they are divided up by feature area.\n*/\n\n/**\n * @private\n */\n\n// TYPES\n\nfunction isUndefined(o) {\n return typeof o === \"undefined\";\n}\n\nfunction isNumber(o) {\n return typeof o === \"number\";\n}\n\nfunction isInteger(o) {\n return typeof o === \"number\" && o % 1 === 0;\n}\n\nfunction isString(o) {\n return typeof o === \"string\";\n}\n\nfunction isDate(o) {\n return Object.prototype.toString.call(o) === \"[object Date]\";\n}\n\n// CAPABILITIES\n\nfunction hasRelative() {\n try {\n return typeof Intl !== \"undefined\" && !!Intl.RelativeTimeFormat;\n } catch (e) {\n return false;\n }\n}\n\nfunction hasLocaleWeekInfo() {\n try {\n return (\n typeof Intl !== \"undefined\" &&\n !!Intl.Locale &&\n (\"weekInfo\" in Intl.Locale.prototype || \"getWeekInfo\" in Intl.Locale.prototype)\n );\n } catch (e) {\n return false;\n }\n}\n\n// OBJECTS AND ARRAYS\n\nfunction maybeArray(thing) {\n return Array.isArray(thing) ? thing : [thing];\n}\n\nfunction bestBy(arr, by, compare) {\n if (arr.length === 0) {\n return undefined;\n }\n return arr.reduce((best, next) => {\n const pair = [by(next), next];\n if (!best) {\n return pair;\n } else if (compare(best[0], pair[0]) === best[0]) {\n return best;\n } else {\n return pair;\n }\n }, null)[1];\n}\n\nfunction pick(obj, keys) {\n return keys.reduce((a, k) => {\n a[k] = obj[k];\n return a;\n }, {});\n}\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nfunction validateWeekSettings(settings) {\n if (settings == null) {\n return null;\n } else if (typeof settings !== \"object\") {\n throw new InvalidArgumentError(\"Week settings must be an object\");\n } else {\n if (\n !integerBetween(settings.firstDay, 1, 7) ||\n !integerBetween(settings.minimalDays, 1, 7) ||\n !Array.isArray(settings.weekend) ||\n settings.weekend.some((v) => !integerBetween(v, 1, 7))\n ) {\n throw new InvalidArgumentError(\"Invalid week settings\");\n }\n return {\n firstDay: settings.firstDay,\n minimalDays: settings.minimalDays,\n weekend: Array.from(settings.weekend),\n };\n }\n}\n\n// NUMBERS AND STRINGS\n\nfunction integerBetween(thing, bottom, top) {\n return isInteger(thing) && thing >= bottom && thing <= top;\n}\n\n// x % n but takes the sign of n instead of x\nfunction floorMod(x, n) {\n return x - n * Math.floor(x / n);\n}\n\nfunction padStart(input, n = 2) {\n const isNeg = input < 0;\n let padded;\n if (isNeg) {\n padded = \"-\" + (\"\" + -input).padStart(n, \"0\");\n } else {\n padded = (\"\" + input).padStart(n, \"0\");\n }\n return padded;\n}\n\nfunction parseInteger(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseInt(string, 10);\n }\n}\n\nfunction parseFloating(string) {\n if (isUndefined(string) || string === null || string === \"\") {\n return undefined;\n } else {\n return parseFloat(string);\n }\n}\n\nfunction parseMillis(fraction) {\n // Return undefined (instead of 0) in these cases, where fraction is not set\n if (isUndefined(fraction) || fraction === null || fraction === \"\") {\n return undefined;\n } else {\n const f = parseFloat(\"0.\" + fraction) * 1000;\n return Math.floor(f);\n }\n}\n\nfunction roundTo(number, digits, rounding = \"round\") {\n const factor = 10 ** digits;\n switch (rounding) {\n case \"expand\":\n return number > 0\n ? Math.ceil(number * factor) / factor\n : Math.floor(number * factor) / factor;\n case \"trunc\":\n return Math.trunc(number * factor) / factor;\n case \"round\":\n return Math.round(number * factor) / factor;\n case \"floor\":\n return Math.floor(number * factor) / factor;\n case \"ceil\":\n return Math.ceil(number * factor) / factor;\n default:\n throw new RangeError(`Value rounding ${rounding} is out of range`);\n }\n}\n\n// DATE BASICS\n\nfunction isLeapYear(year) {\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\nfunction daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\n\nfunction daysInMonth(year, month) {\n const modMonth = floorMod(month - 1, 12) + 1,\n modYear = year + (month - modMonth) / 12;\n\n if (modMonth === 2) {\n return isLeapYear(modYear) ? 29 : 28;\n } else {\n return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];\n }\n}\n\n// convert a calendar object to a local timestamp (epoch, but with the offset baked in)\nfunction objToLocalTS(obj) {\n let d = Date.UTC(\n obj.year,\n obj.month - 1,\n obj.day,\n obj.hour,\n obj.minute,\n obj.second,\n obj.millisecond\n );\n\n // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that\n if (obj.year < 100 && obj.year >= 0) {\n d = new Date(d);\n // set the month and day again, this is necessary because year 2000 is a leap year, but year 100 is not\n // so if obj.year is in 99, but obj.day makes it roll over into year 100,\n // the calculations done by Date.UTC are using year 2000 - which is incorrect\n d.setUTCFullYear(obj.year, obj.month - 1, obj.day);\n }\n return +d;\n}\n\n// adapted from moment.js: https://github.com/moment/moment/blob/000ac1800e620f770f4eb31b5ae908f6167b0ab2/src/lib/units/week-calendar-utils.js\nfunction firstWeekOffset(year, minDaysInFirstWeek, startOfWeek) {\n const fwdlw = isoWeekdayToLocal(dayOfWeek(year, 1, minDaysInFirstWeek), startOfWeek);\n return -fwdlw + minDaysInFirstWeek - 1;\n}\n\nfunction weeksInWeekYear(weekYear, minDaysInFirstWeek = 4, startOfWeek = 1) {\n const weekOffset = firstWeekOffset(weekYear, minDaysInFirstWeek, startOfWeek);\n const weekOffsetNext = firstWeekOffset(weekYear + 1, minDaysInFirstWeek, startOfWeek);\n return (daysInYear(weekYear) - weekOffset + weekOffsetNext) / 7;\n}\n\nfunction untruncateYear(year) {\n if (year > 99) {\n return year;\n } else return year > Settings.twoDigitCutoffYear ? 1900 + year : 2000 + year;\n}\n\n// PARSING\n\nfunction parseZoneInfo(ts, offsetFormat, locale, timeZone = null) {\n const date = new Date(ts),\n intlOpts = {\n hourCycle: \"h23\",\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n };\n\n if (timeZone) {\n intlOpts.timeZone = timeZone;\n }\n\n const modified = { timeZoneName: offsetFormat, ...intlOpts };\n\n const parsed = new Intl.DateTimeFormat(locale, modified)\n .formatToParts(date)\n .find((m) => m.type.toLowerCase() === \"timezonename\");\n return parsed ? parsed.value : null;\n}\n\n// signedOffset('-5', '30') -> -330\nfunction signedOffset(offHourStr, offMinuteStr) {\n let offHour = parseInt(offHourStr, 10);\n\n // don't || this because we want to preserve -0\n if (Number.isNaN(offHour)) {\n offHour = 0;\n }\n\n const offMin = parseInt(offMinuteStr, 10) || 0,\n offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;\n return offHour * 60 + offMinSigned;\n}\n\n// COERCION\n\nfunction asNumber(value) {\n const numericValue = Number(value);\n if (typeof value === \"boolean\" || value === \"\" || !Number.isFinite(numericValue))\n throw new InvalidArgumentError(`Invalid unit value ${value}`);\n return numericValue;\n}\n\nfunction normalizeObject(obj, normalizer) {\n const normalized = {};\n for (const u in obj) {\n if (hasOwnProperty(obj, u)) {\n const v = obj[u];\n if (v === undefined || v === null) continue;\n normalized[normalizer(u)] = asNumber(v);\n }\n }\n return normalized;\n}\n\n/**\n * Returns the offset's value as a string\n * @param {number} ts - Epoch milliseconds for which to get the offset\n * @param {string} format - What style of offset to return.\n * Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively\n * @return {string}\n */\nfunction formatOffset(offset, format) {\n const hours = Math.trunc(Math.abs(offset / 60)),\n minutes = Math.trunc(Math.abs(offset % 60)),\n sign = offset >= 0 ? \"+\" : \"-\";\n\n switch (format) {\n case \"short\":\n return `${sign}${padStart(hours, 2)}:${padStart(minutes, 2)}`;\n case \"narrow\":\n return `${sign}${hours}${minutes > 0 ? `:${minutes}` : \"\"}`;\n case \"techie\":\n return `${sign}${padStart(hours, 2)}${padStart(minutes, 2)}`;\n default:\n throw new RangeError(`Value format ${format} is out of range for property format`);\n }\n}\n\nfunction timeObject(obj) {\n return pick(obj, [\"hour\", \"minute\", \"second\", \"millisecond\"]);\n}\n\n/**\n * @private\n */\n\nconst monthsLong = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n];\n\nconst monthsShort = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n];\n\nconst monthsNarrow = [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"];\n\nfunction months(length) {\n switch (length) {\n case \"narrow\":\n return [...monthsNarrow];\n case \"short\":\n return [...monthsShort];\n case \"long\":\n return [...monthsLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\"];\n case \"2-digit\":\n return [\"01\", \"02\", \"03\", \"04\", \"05\", \"06\", \"07\", \"08\", \"09\", \"10\", \"11\", \"12\"];\n default:\n return null;\n }\n}\n\nconst weekdaysLong = [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n \"Sunday\",\n];\n\nconst weekdaysShort = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"];\n\nconst weekdaysNarrow = [\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"];\n\nfunction weekdays(length) {\n switch (length) {\n case \"narrow\":\n return [...weekdaysNarrow];\n case \"short\":\n return [...weekdaysShort];\n case \"long\":\n return [...weekdaysLong];\n case \"numeric\":\n return [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"];\n default:\n return null;\n }\n}\n\nconst meridiems = [\"AM\", \"PM\"];\n\nconst erasLong = [\"Before Christ\", \"Anno Domini\"];\n\nconst erasShort = [\"BC\", \"AD\"];\n\nconst erasNarrow = [\"B\", \"A\"];\n\nfunction eras(length) {\n switch (length) {\n case \"narrow\":\n return [...erasNarrow];\n case \"short\":\n return [...erasShort];\n case \"long\":\n return [...erasLong];\n default:\n return null;\n }\n}\n\nfunction meridiemForDateTime(dt) {\n return meridiems[dt.hour < 12 ? 0 : 1];\n}\n\nfunction weekdayForDateTime(dt, length) {\n return weekdays(length)[dt.weekday - 1];\n}\n\nfunction monthForDateTime(dt, length) {\n return months(length)[dt.month - 1];\n}\n\nfunction eraForDateTime(dt, length) {\n return eras(length)[dt.year < 0 ? 0 : 1];\n}\n\nfunction formatRelativeTime(unit, count, numeric = \"always\", narrow = false) {\n const units = {\n years: [\"year\", \"yr.\"],\n quarters: [\"quarter\", \"qtr.\"],\n months: [\"month\", \"mo.\"],\n weeks: [\"week\", \"wk.\"],\n days: [\"day\", \"day\", \"days\"],\n hours: [\"hour\", \"hr.\"],\n minutes: [\"minute\", \"min.\"],\n seconds: [\"second\", \"sec.\"],\n };\n\n const lastable = [\"hours\", \"minutes\", \"seconds\"].indexOf(unit) === -1;\n\n if (numeric === \"auto\" && lastable) {\n const isDay = unit === \"days\";\n switch (count) {\n case 1:\n return isDay ? \"tomorrow\" : `next ${units[unit][0]}`;\n case -1:\n return isDay ? \"yesterday\" : `last ${units[unit][0]}`;\n case 0:\n return isDay ? \"today\" : `this ${units[unit][0]}`;\n }\n }\n\n const isInPast = Object.is(count, -0) || count < 0,\n fmtValue = Math.abs(count),\n singular = fmtValue === 1,\n lilUnits = units[unit],\n fmtUnit = narrow\n ? singular\n ? lilUnits[1]\n : lilUnits[2] || lilUnits[1]\n : singular\n ? units[unit][0]\n : unit;\n return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`;\n}\n\nfunction stringifyTokens(splits, tokenToString) {\n let s = \"\";\n for (const token of splits) {\n if (token.literal) {\n s += token.val;\n } else {\n s += tokenToString(token.val);\n }\n }\n return s;\n}\n\nconst macroTokenToFormatOpts = {\n D: DATE_SHORT,\n DD: DATE_MED,\n DDD: DATE_FULL,\n DDDD: DATE_HUGE,\n t: TIME_SIMPLE,\n tt: TIME_WITH_SECONDS,\n ttt: TIME_WITH_SHORT_OFFSET,\n tttt: TIME_WITH_LONG_OFFSET,\n T: TIME_24_SIMPLE,\n TT: TIME_24_WITH_SECONDS,\n TTT: TIME_24_WITH_SHORT_OFFSET,\n TTTT: TIME_24_WITH_LONG_OFFSET,\n f: DATETIME_SHORT,\n ff: DATETIME_MED,\n fff: DATETIME_FULL,\n ffff: DATETIME_HUGE,\n F: DATETIME_SHORT_WITH_SECONDS,\n FF: DATETIME_MED_WITH_SECONDS,\n FFF: DATETIME_FULL_WITH_SECONDS,\n FFFF: DATETIME_HUGE_WITH_SECONDS,\n};\n\n/**\n * @private\n */\n\nclass Formatter {\n static create(locale, opts = {}) {\n return new Formatter(locale, opts);\n }\n\n static parseFormat(fmt) {\n // white-space is always considered a literal in user-provided formats\n // the \" \" token has a special meaning (see unitForToken)\n\n let current = null,\n currentFull = \"\",\n bracketed = false;\n const splits = [];\n for (let i = 0; i < fmt.length; i++) {\n const c = fmt.charAt(i);\n if (c === \"'\") {\n // turn '' into a literal signal quote instead of just skipping the empty literal\n if (currentFull.length > 0 || bracketed) {\n splits.push({\n literal: bracketed || /^\\s+$/.test(currentFull),\n val: currentFull === \"\" ? \"'\" : currentFull,\n });\n }\n current = null;\n currentFull = \"\";\n bracketed = !bracketed;\n } else if (bracketed) {\n currentFull += c;\n } else if (c === current) {\n currentFull += c;\n } else {\n if (currentFull.length > 0) {\n splits.push({ literal: /^\\s+$/.test(currentFull), val: currentFull });\n }\n currentFull = c;\n current = c;\n }\n }\n\n if (currentFull.length > 0) {\n splits.push({ literal: bracketed || /^\\s+$/.test(currentFull), val: currentFull });\n }\n\n return splits;\n }\n\n static macroTokenToFormatOpts(token) {\n return macroTokenToFormatOpts[token];\n }\n\n constructor(locale, formatOpts) {\n this.opts = formatOpts;\n this.loc = locale;\n this.systemLoc = null;\n }\n\n formatWithSystemDefault(dt, opts) {\n if (this.systemLoc === null) {\n this.systemLoc = this.loc.redefaultToSystem();\n }\n const df = this.systemLoc.dtFormatter(dt, { ...this.opts, ...opts });\n return df.format();\n }\n\n dtFormatter(dt, opts = {}) {\n return this.loc.dtFormatter(dt, { ...this.opts, ...opts });\n }\n\n formatDateTime(dt, opts) {\n return this.dtFormatter(dt, opts).format();\n }\n\n formatDateTimeParts(dt, opts) {\n return this.dtFormatter(dt, opts).formatToParts();\n }\n\n formatInterval(interval, opts) {\n const df = this.dtFormatter(interval.start, opts);\n return df.dtf.formatRange(interval.start.toJSDate(), interval.end.toJSDate());\n }\n\n resolvedOptions(dt, opts) {\n return this.dtFormatter(dt, opts).resolvedOptions();\n }\n\n num(n, p = 0, signDisplay = undefined) {\n // we get some perf out of doing this here, annoyingly\n if (this.opts.forceSimple) {\n return padStart(n, p);\n }\n\n const opts = { ...this.opts };\n\n if (p > 0) {\n opts.padTo = p;\n }\n if (signDisplay) {\n opts.signDisplay = signDisplay;\n }\n\n return this.loc.numberFormatter(opts).format(n);\n }\n\n formatDateTimeFromString(dt, fmt) {\n const knownEnglish = this.loc.listingMode() === \"en\",\n useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== \"gregory\",\n string = (opts, extract) => this.loc.extract(dt, opts, extract),\n formatOffset = (opts) => {\n if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {\n return \"Z\";\n }\n\n return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : \"\";\n },\n meridiem = () =>\n knownEnglish\n ? meridiemForDateTime(dt)\n : string({ hour: \"numeric\", hourCycle: \"h12\" }, \"dayperiod\"),\n month = (length, standalone) =>\n knownEnglish\n ? monthForDateTime(dt, length)\n : string(standalone ? { month: length } : { month: length, day: \"numeric\" }, \"month\"),\n weekday = (length, standalone) =>\n knownEnglish\n ? weekdayForDateTime(dt, length)\n : string(\n standalone ? { weekday: length } : { weekday: length, month: \"long\", day: \"numeric\" },\n \"weekday\"\n ),\n maybeMacro = (token) => {\n const formatOpts = Formatter.macroTokenToFormatOpts(token);\n if (formatOpts) {\n return this.formatWithSystemDefault(dt, formatOpts);\n } else {\n return token;\n }\n },\n era = (length) =>\n knownEnglish ? eraForDateTime(dt, length) : string({ era: length }, \"era\"),\n tokenToString = (token) => {\n // Where possible: https://cldr.unicode.org/translation/date-time/date-time-symbols\n switch (token) {\n // ms\n case \"S\":\n return this.num(dt.millisecond);\n case \"u\":\n // falls through\n case \"SSS\":\n return this.num(dt.millisecond, 3);\n // seconds\n case \"s\":\n return this.num(dt.second);\n case \"ss\":\n return this.num(dt.second, 2);\n // fractional seconds\n case \"uu\":\n return this.num(Math.floor(dt.millisecond / 10), 2);\n case \"uuu\":\n return this.num(Math.floor(dt.millisecond / 100));\n // minutes\n case \"m\":\n return this.num(dt.minute);\n case \"mm\":\n return this.num(dt.minute, 2);\n // hours\n case \"h\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);\n case \"hh\":\n return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);\n case \"H\":\n return this.num(dt.hour);\n case \"HH\":\n return this.num(dt.hour, 2);\n // offset\n case \"Z\":\n // like +6\n return formatOffset({ format: \"narrow\", allowZ: this.opts.allowZ });\n case \"ZZ\":\n // like +06:00\n return formatOffset({ format: \"short\", allowZ: this.opts.allowZ });\n case \"ZZZ\":\n // like +0600\n return formatOffset({ format: \"techie\", allowZ: this.opts.allowZ });\n case \"ZZZZ\":\n // like EST\n return dt.zone.offsetName(dt.ts, { format: \"short\", locale: this.loc.locale });\n case \"ZZZZZ\":\n // like Eastern Standard Time\n return dt.zone.offsetName(dt.ts, { format: \"long\", locale: this.loc.locale });\n // zone\n case \"z\":\n // like America/New_York\n return dt.zoneName;\n // meridiems\n case \"a\":\n return meridiem();\n // dates\n case \"d\":\n return useDateTimeFormatter ? string({ day: \"numeric\" }, \"day\") : this.num(dt.day);\n case \"dd\":\n return useDateTimeFormatter ? string({ day: \"2-digit\" }, \"day\") : this.num(dt.day, 2);\n // weekdays - standalone\n case \"c\":\n // like 1\n return this.num(dt.weekday);\n case \"ccc\":\n // like 'Tues'\n return weekday(\"short\", true);\n case \"cccc\":\n // like 'Tuesday'\n return weekday(\"long\", true);\n case \"ccccc\":\n // like 'T'\n return weekday(\"narrow\", true);\n // weekdays - format\n case \"E\":\n // like 1\n return this.num(dt.weekday);\n case \"EEE\":\n // like 'Tues'\n return weekday(\"short\", false);\n case \"EEEE\":\n // like 'Tuesday'\n return weekday(\"long\", false);\n case \"EEEEE\":\n // like 'T'\n return weekday(\"narrow\", false);\n // months - standalone\n case \"L\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\", day: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"LL\":\n // like 01, doesn't seem to work\n return useDateTimeFormatter\n ? string({ month: \"2-digit\", day: \"numeric\" }, \"month\")\n : this.num(dt.month, 2);\n case \"LLL\":\n // like Jan\n return month(\"short\", true);\n case \"LLLL\":\n // like January\n return month(\"long\", true);\n case \"LLLLL\":\n // like J\n return month(\"narrow\", true);\n // months - format\n case \"M\":\n // like 1\n return useDateTimeFormatter\n ? string({ month: \"numeric\" }, \"month\")\n : this.num(dt.month);\n case \"MM\":\n // like 01\n return useDateTimeFormatter\n ? string({ month: \"2-digit\" }, \"month\")\n : this.num(dt.month, 2);\n case \"MMM\":\n // like Jan\n return month(\"short\", false);\n case \"MMMM\":\n // like January\n return month(\"long\", false);\n case \"MMMMM\":\n // like J\n return month(\"narrow\", false);\n // years\n case \"y\":\n // like 2014\n return useDateTimeFormatter ? string({ year: \"numeric\" }, \"year\") : this.num(dt.year);\n case \"yy\":\n // like 14\n return useDateTimeFormatter\n ? string({ year: \"2-digit\" }, \"year\")\n : this.num(dt.year.toString().slice(-2), 2);\n case \"yyyy\":\n // like 0012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 4);\n case \"yyyyyy\":\n // like 000012\n return useDateTimeFormatter\n ? string({ year: \"numeric\" }, \"year\")\n : this.num(dt.year, 6);\n // eras\n case \"G\":\n // like AD\n return era(\"short\");\n case \"GG\":\n // like Anno Domini\n return era(\"long\");\n case \"GGGGG\":\n return era(\"narrow\");\n case \"kk\":\n return this.num(dt.weekYear.toString().slice(-2), 2);\n case \"kkkk\":\n return this.num(dt.weekYear, 4);\n case \"W\":\n return this.num(dt.weekNumber);\n case \"WW\":\n return this.num(dt.weekNumber, 2);\n case \"n\":\n return this.num(dt.localWeekNumber);\n case \"nn\":\n return this.num(dt.localWeekNumber, 2);\n case \"ii\":\n return this.num(dt.localWeekYear.toString().slice(-2), 2);\n case \"iiii\":\n return this.num(dt.localWeekYear, 4);\n case \"o\":\n return this.num(dt.ordinal);\n case \"ooo\":\n return this.num(dt.ordinal, 3);\n case \"q\":\n // like 1\n return this.num(dt.quarter);\n case \"qq\":\n // like 01\n return this.num(dt.quarter, 2);\n case \"X\":\n return this.num(Math.floor(dt.ts / 1000));\n case \"x\":\n return this.num(dt.ts);\n default:\n return maybeMacro(token);\n }\n };\n\n return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);\n }\n\n formatDurationFromString(dur, fmt) {\n const invertLargest = this.opts.signMode === \"negativeLargestOnly\" ? -1 : 1;\n const tokenToField = (token) => {\n switch (token[0]) {\n case \"S\":\n return \"milliseconds\";\n case \"s\":\n return \"seconds\";\n case \"m\":\n return \"minutes\";\n case \"h\":\n return \"hours\";\n case \"d\":\n return \"days\";\n case \"w\":\n return \"weeks\";\n case \"M\":\n return \"months\";\n case \"y\":\n return \"years\";\n default:\n return null;\n }\n },\n tokenToString = (lildur, info) => (token) => {\n const mapped = tokenToField(token);\n if (mapped) {\n const inversionFactor =\n info.isNegativeDuration && mapped !== info.largestUnit ? invertLargest : 1;\n let signDisplay;\n if (this.opts.signMode === \"negativeLargestOnly\" && mapped !== info.largestUnit) {\n signDisplay = \"never\";\n } else if (this.opts.signMode === \"all\") {\n signDisplay = \"always\";\n } else {\n // \"auto\" and \"negative\" are the same, but \"auto\" has better support\n signDisplay = \"auto\";\n }\n return this.num(lildur.get(mapped) * inversionFactor, token.length, signDisplay);\n } else {\n return token;\n }\n },\n tokens = Formatter.parseFormat(fmt),\n realTokens = tokens.reduce(\n (found, { literal, val }) => (literal ? found : found.concat(val)),\n []\n ),\n collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter((t) => t)),\n durationInfo = {\n isNegativeDuration: collapsed < 0,\n // this relies on \"collapsed\" being based on \"shiftTo\", which builds up the object\n // in order\n largestUnit: Object.keys(collapsed.values)[0],\n };\n return stringifyTokens(tokens, tokenToString(collapsed, durationInfo));\n }\n}\n\n/*\n * This file handles parsing for well-specified formats. Here's how it works:\n * Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.\n * An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object\n * parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.\n * Extractors can take a \"cursor\" representing the offset in the match to look at. This makes it easy to combine extractors.\n * combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.\n * Some extractions are super dumb and simpleParse and fromStrings help DRY them.\n */\n\nconst ianaRegex = /[A-Za-z_+-]{1,256}(?::?\\/[A-Za-z0-9_+-]{1,256}(?:\\/[A-Za-z0-9_+-]{1,256})?)?/;\n\nfunction combineRegexes(...regexes) {\n const full = regexes.reduce((f, r) => f + r.source, \"\");\n return RegExp(`^${full}$`);\n}\n\nfunction combineExtractors(...extractors) {\n return (m) =>\n extractors\n .reduce(\n ([mergedVals, mergedZone, cursor], ex) => {\n const [val, zone, next] = ex(m, cursor);\n return [{ ...mergedVals, ...val }, zone || mergedZone, next];\n },\n [{}, null, 1]\n )\n .slice(0, 2);\n}\n\nfunction parse(s, ...patterns) {\n if (s == null) {\n return [null, null];\n }\n\n for (const [regex, extractor] of patterns) {\n const m = regex.exec(s);\n if (m) {\n return extractor(m);\n }\n }\n return [null, null];\n}\n\nfunction simpleParse(...keys) {\n return (match, cursor) => {\n const ret = {};\n let i;\n\n for (i = 0; i < keys.length; i++) {\n ret[keys[i]] = parseInteger(match[cursor + i]);\n }\n return [ret, null, cursor + i];\n };\n}\n\n// ISO and SQL parsing\nconst offsetRegex = /(?:([Zz])|([+-]\\d\\d)(?::?(\\d\\d))?)/;\nconst isoExtendedZone = `(?:${offsetRegex.source}?(?:\\\\[(${ianaRegex.source})\\\\])?)?`;\nconst isoTimeBaseRegex = /(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d{1,30}))?)?)?/;\nconst isoTimeRegex = RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`);\nconst isoTimeExtensionRegex = RegExp(`(?:[Tt]${isoTimeRegex.source})?`);\nconst isoYmdRegex = /([+-]\\d{6}|\\d{4})(?:-?(\\d\\d)(?:-?(\\d\\d))?)?/;\nconst isoWeekRegex = /(\\d{4})-?W(\\d\\d)(?:-?(\\d))?/;\nconst isoOrdinalRegex = /(\\d{4})-?(\\d{3})/;\nconst extractISOWeekData = simpleParse(\"weekYear\", \"weekNumber\", \"weekDay\");\nconst extractISOOrdinalData = simpleParse(\"year\", \"ordinal\");\nconst sqlYmdRegex = /(\\d{4})-(\\d\\d)-(\\d\\d)/; // dumbed-down version of the ISO one\nconst sqlTimeRegex = RegExp(\n `${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`\n);\nconst sqlTimeExtensionRegex = RegExp(`(?: ${sqlTimeRegex.source})?`);\n\nfunction int(match, pos, fallback) {\n const m = match[pos];\n return isUndefined(m) ? fallback : parseInteger(m);\n}\n\nfunction extractISOYmd(match, cursor) {\n const item = {\n year: int(match, cursor),\n month: int(match, cursor + 1, 1),\n day: int(match, cursor + 2, 1),\n };\n\n return [item, null, cursor + 3];\n}\n\nfunction extractISOTime(match, cursor) {\n const item = {\n hours: int(match, cursor, 0),\n minutes: int(match, cursor + 1, 0),\n seconds: int(match, cursor + 2, 0),\n milliseconds: parseMillis(match[cursor + 3]),\n };\n\n return [item, null, cursor + 4];\n}\n\nfunction extractISOOffset(match, cursor) {\n const local = !match[cursor] && !match[cursor + 1],\n fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),\n zone = local ? null : FixedOffsetZone.instance(fullOffset);\n return [{}, zone, cursor + 3];\n}\n\nfunction extractIANAZone(match, cursor) {\n const zone = match[cursor] ? IANAZone.create(match[cursor]) : null;\n return [{}, zone, cursor + 1];\n}\n\n// ISO time parsing\n\nconst isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`);\n\n// ISO duration parsing\n\nconst isoDuration =\n /^-?P(?:(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)Y)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)W)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)D)?(?:T(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)H)?(?:(-?\\d{1,20}(?:\\.\\d{1,20})?)M)?(?:(-?\\d{1,20})(?:[.,](-?\\d{1,20}))?S)?)?)$/;\n\nfunction extractISODuration(match) {\n const [s, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] =\n match;\n\n const hasNegativePrefix = s[0] === \"-\";\n const negativeSeconds = secondStr && secondStr[0] === \"-\";\n\n const maybeNegate = (num, force = false) =>\n num !== undefined && (force || (num && hasNegativePrefix)) ? -num : num;\n\n return [\n {\n years: maybeNegate(parseFloating(yearStr)),\n months: maybeNegate(parseFloating(monthStr)),\n weeks: maybeNegate(parseFloating(weekStr)),\n days: maybeNegate(parseFloating(dayStr)),\n hours: maybeNegate(parseFloating(hourStr)),\n minutes: maybeNegate(parseFloating(minuteStr)),\n seconds: maybeNegate(parseFloating(secondStr), secondStr === \"-0\"),\n milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds),\n },\n ];\n}\n\n// These are a little braindead. EDT *should* tell us that we're in, say, America/New_York\n// and not just that we're in -240 *right now*. But since I don't think these are used that often\n// I'm just going to ignore that\nconst obsOffsets = {\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n};\n\nfunction fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n const result = {\n year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),\n month: monthsShort.indexOf(monthStr) + 1,\n day: parseInteger(dayStr),\n hour: parseInteger(hourStr),\n minute: parseInteger(minuteStr),\n };\n\n if (secondStr) result.second = parseInteger(secondStr);\n if (weekdayStr) {\n result.weekday =\n weekdayStr.length > 3\n ? weekdaysLong.indexOf(weekdayStr) + 1\n : weekdaysShort.indexOf(weekdayStr) + 1;\n }\n\n return result;\n}\n\n// RFC 2822/5322\nconst rfc2822 =\n /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\\d\\d)(\\d\\d)))$/;\n\nfunction extractRFC2822(match) {\n const [\n ,\n weekdayStr,\n dayStr,\n monthStr,\n yearStr,\n hourStr,\n minuteStr,\n secondStr,\n obsOffset,\n milOffset,\n offHourStr,\n offMinuteStr,\n ] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n\n let offset;\n if (obsOffset) {\n offset = obsOffsets[obsOffset];\n } else if (milOffset) {\n offset = 0;\n } else {\n offset = signedOffset(offHourStr, offMinuteStr);\n }\n\n return [result, new FixedOffsetZone(offset)];\n}\n\nfunction preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^()]*\\)|[\\n\\t]/g, \" \")\n .replace(/(\\s\\s+)/g, \" \")\n .trim();\n}\n\n// http date\n\nconst rfc1123 =\n /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\\d\\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n rfc850 =\n /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\\d\\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) GMT$/,\n ascii =\n /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \\d|\\d\\d) (\\d\\d):(\\d\\d):(\\d\\d) (\\d{4})$/;\n\nfunction extractRFC1123Or850(match) {\n const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nfunction extractASCII(match) {\n const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match,\n result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);\n return [result, FixedOffsetZone.utcInstance];\n}\n\nconst isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);\nconst isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);\nconst isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);\nconst isoTimeCombinedRegex = combineRegexes(isoTimeRegex);\n\nconst extractISOYmdTimeAndOffset = combineExtractors(\n extractISOYmd,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOWeekTimeAndOffset = combineExtractors(\n extractISOWeekData,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOOrdinalDateAndTime = combineExtractors(\n extractISOOrdinalData,\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\nconst extractISOTimeAndOffset = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\n/*\n * @private\n */\n\nfunction parseISODate(s) {\n return parse(\n s,\n [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset],\n [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime],\n [isoTimeCombinedRegex, extractISOTimeAndOffset]\n );\n}\n\nfunction parseRFC2822Date(s) {\n return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);\n}\n\nfunction parseHTTPDate(s) {\n return parse(\n s,\n [rfc1123, extractRFC1123Or850],\n [rfc850, extractRFC1123Or850],\n [ascii, extractASCII]\n );\n}\n\nfunction parseISODuration(s) {\n return parse(s, [isoDuration, extractISODuration]);\n}\n\nconst extractISOTimeOnly = combineExtractors(extractISOTime);\n\nfunction parseISOTimeOnly(s) {\n return parse(s, [isoTimeOnly, extractISOTimeOnly]);\n}\n\nconst sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);\nconst sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);\n\nconst extractISOTimeOffsetAndIANAZone = combineExtractors(\n extractISOTime,\n extractISOOffset,\n extractIANAZone\n);\n\nfunction parseSQL(s) {\n return parse(\n s,\n [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset],\n [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]\n );\n}\n\nconst INVALID$2 = \"Invalid Duration\";\n\n// unit conversion constants\nconst lowOrderMatrix = {\n weeks: {\n days: 7,\n hours: 7 * 24,\n minutes: 7 * 24 * 60,\n seconds: 7 * 24 * 60 * 60,\n milliseconds: 7 * 24 * 60 * 60 * 1000,\n },\n days: {\n hours: 24,\n minutes: 24 * 60,\n seconds: 24 * 60 * 60,\n milliseconds: 24 * 60 * 60 * 1000,\n },\n hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1000 },\n minutes: { seconds: 60, milliseconds: 60 * 1000 },\n seconds: { milliseconds: 1000 },\n },\n casualMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: 52,\n days: 365,\n hours: 365 * 24,\n minutes: 365 * 24 * 60,\n seconds: 365 * 24 * 60 * 60,\n milliseconds: 365 * 24 * 60 * 60 * 1000,\n },\n quarters: {\n months: 3,\n weeks: 13,\n days: 91,\n hours: 91 * 24,\n minutes: 91 * 24 * 60,\n seconds: 91 * 24 * 60 * 60,\n milliseconds: 91 * 24 * 60 * 60 * 1000,\n },\n months: {\n weeks: 4,\n days: 30,\n hours: 30 * 24,\n minutes: 30 * 24 * 60,\n seconds: 30 * 24 * 60 * 60,\n milliseconds: 30 * 24 * 60 * 60 * 1000,\n },\n\n ...lowOrderMatrix,\n },\n daysInYearAccurate = 146097.0 / 400,\n daysInMonthAccurate = 146097.0 / 4800,\n accurateMatrix = {\n years: {\n quarters: 4,\n months: 12,\n weeks: daysInYearAccurate / 7,\n days: daysInYearAccurate,\n hours: daysInYearAccurate * 24,\n minutes: daysInYearAccurate * 24 * 60,\n seconds: daysInYearAccurate * 24 * 60 * 60,\n milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000,\n },\n quarters: {\n months: 3,\n weeks: daysInYearAccurate / 28,\n days: daysInYearAccurate / 4,\n hours: (daysInYearAccurate * 24) / 4,\n minutes: (daysInYearAccurate * 24 * 60) / 4,\n seconds: (daysInYearAccurate * 24 * 60 * 60) / 4,\n milliseconds: (daysInYearAccurate * 24 * 60 * 60 * 1000) / 4,\n },\n months: {\n weeks: daysInMonthAccurate / 7,\n days: daysInMonthAccurate,\n hours: daysInMonthAccurate * 24,\n minutes: daysInMonthAccurate * 24 * 60,\n seconds: daysInMonthAccurate * 24 * 60 * 60,\n milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000,\n },\n ...lowOrderMatrix,\n };\n\n// units ordered by size\nconst orderedUnits$1 = [\n \"years\",\n \"quarters\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\",\n];\n\nconst reverseUnits = orderedUnits$1.slice(0).reverse();\n\n// clone really means \"create another instance just like this one, but with these changes\"\nfunction clone$1(dur, alts, clear = false) {\n // deep merge for vals\n const conf = {\n values: clear ? alts.values : { ...dur.values, ...(alts.values || {}) },\n loc: dur.loc.clone(alts.loc),\n conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy,\n matrix: alts.matrix || dur.matrix,\n };\n return new Duration(conf);\n}\n\nfunction durationToMillis(matrix, vals) {\n let sum = vals.milliseconds ?? 0;\n for (const unit of reverseUnits.slice(1)) {\n if (vals[unit]) {\n sum += vals[unit] * matrix[unit][\"milliseconds\"];\n }\n }\n return sum;\n}\n\n// NB: mutates parameters\nfunction normalizeValues(matrix, vals) {\n // the logic below assumes the overall value of the duration is positive\n // if this is not the case, factor is used to make it so\n const factor = durationToMillis(matrix, vals) < 0 ? -1 : 1;\n\n orderedUnits$1.reduceRight((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const previousVal = vals[previous] * factor;\n const conv = matrix[current][previous];\n\n // if (previousVal < 0):\n // lower order unit is negative (e.g. { years: 2, days: -2 })\n // normalize this by reducing the higher order unit by the appropriate amount\n // and increasing the lower order unit\n // this can never make the higher order unit negative, because this function only operates\n // on positive durations, so the amount of time represented by the lower order unit cannot\n // be larger than the higher order unit\n // else:\n // lower order unit is positive (e.g. { years: 2, days: 450 } or { years: -2, days: 450 })\n // in this case we attempt to convert as much as possible from the lower order unit into\n // the higher order one\n //\n // Math.floor takes care of both of these cases, rounding away from 0\n // if previousVal < 0 it makes the absolute value larger\n // if previousVal >= it makes the absolute value smaller\n const rollUp = Math.floor(previousVal / conv);\n vals[current] += rollUp * factor;\n vals[previous] -= rollUp * conv * factor;\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n\n // try to convert any decimals into smaller units if possible\n // for example for { years: 2.5, days: 0, seconds: 0 } we want to get { years: 2, days: 182, hours: 12 }\n orderedUnits$1.reduce((previous, current) => {\n if (!isUndefined(vals[current])) {\n if (previous) {\n const fraction = vals[previous] % 1;\n vals[previous] -= fraction;\n vals[current] += fraction * matrix[previous][current];\n }\n return current;\n } else {\n return previous;\n }\n }, null);\n}\n\n// Remove all properties with a value of 0 from an object\nfunction removeZeroes(vals) {\n const newVals = {};\n for (const [key, value] of Object.entries(vals)) {\n if (value !== 0) {\n newVals[key] = value;\n }\n }\n return newVals;\n}\n\n/**\n * A Duration object represents a period of time, like \"2 months\" or \"1 day, 1 hour\". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime#plus} to add a Duration object to a DateTime, producing another DateTime.\n *\n * Here is a brief overview of commonly used methods and getters in Duration:\n *\n * * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.\n * * **Unit values** See the {@link Duration#years}, {@link Duration#months}, {@link Duration#weeks}, {@link Duration#days}, {@link Duration#hours}, {@link Duration#minutes}, {@link Duration#seconds}, {@link Duration#milliseconds} accessors.\n * * **Configuration** See {@link Duration#locale} and {@link Duration#numberingSystem} accessors.\n * * **Transformation** To create new Durations out of old ones use {@link Duration#plus}, {@link Duration#minus}, {@link Duration#normalize}, {@link Duration#set}, {@link Duration#reconfigure}, {@link Duration#shiftTo}, and {@link Duration#negate}.\n * * **Output** To convert the Duration into other representations, see {@link Duration#as}, {@link Duration#toISO}, {@link Duration#toFormat}, and {@link Duration#toJSON}\n *\n * There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.\n */\nclass Duration {\n /**\n * @private\n */\n constructor(config) {\n const accurate = config.conversionAccuracy === \"longterm\" || false;\n let matrix = accurate ? accurateMatrix : casualMatrix;\n\n if (config.matrix) {\n matrix = config.matrix;\n }\n\n /**\n * @access private\n */\n this.values = config.values;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.conversionAccuracy = accurate ? \"longterm\" : \"casual\";\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.matrix = matrix;\n /**\n * @access private\n */\n this.isLuxonDuration = true;\n }\n\n /**\n * Create Duration from a number of milliseconds.\n * @param {number} count of milliseconds\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n static fromMillis(count, opts) {\n return Duration.fromObject({ milliseconds: count }, opts);\n }\n\n /**\n * Create a Duration from a JavaScript object with keys like 'years' and 'hours'.\n * If this object is empty then a zero milliseconds duration is returned.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.years\n * @param {number} obj.quarters\n * @param {number} obj.months\n * @param {number} obj.weeks\n * @param {number} obj.days\n * @param {number} obj.hours\n * @param {number} obj.minutes\n * @param {number} obj.seconds\n * @param {number} obj.milliseconds\n * @param {Object} [opts=[]] - options for creating this Duration\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the custom conversion system to use\n * @return {Duration}\n */\n static fromObject(obj, opts = {}) {\n if (obj == null || typeof obj !== \"object\") {\n throw new InvalidArgumentError(\n `Duration.fromObject: argument expected to be an object, got ${\n obj === null ? \"null\" : typeof obj\n }`\n );\n }\n\n return new Duration({\n values: normalizeObject(obj, Duration.normalizeUnit),\n loc: Locale.fromObject(opts),\n conversionAccuracy: opts.conversionAccuracy,\n matrix: opts.matrix,\n });\n }\n\n /**\n * Create a Duration from DurationLike.\n *\n * @param {Object | number | Duration} durationLike\n * One of:\n * - object with keys like 'years' and 'hours'.\n * - number representing milliseconds\n * - Duration instance\n * @return {Duration}\n */\n static fromDurationLike(durationLike) {\n if (isNumber(durationLike)) {\n return Duration.fromMillis(durationLike);\n } else if (Duration.isDuration(durationLike)) {\n return durationLike;\n } else if (typeof durationLike === \"object\") {\n return Duration.fromObject(durationLike);\n } else {\n throw new InvalidArgumentError(\n `Unknown duration argument ${durationLike} of type ${typeof durationLike}`\n );\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 duration string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the preset conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }\n * @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }\n * @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }\n * @return {Duration}\n */\n static fromISO(text, opts) {\n const [parsed] = parseISODuration(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create a Duration from an ISO 8601 time string.\n * @param {string} text - text to parse\n * @param {Object} opts - options for parsing\n * @param {string} [opts.locale='en-US'] - the locale to use\n * @param {string} opts.numberingSystem - the numbering system to use\n * @param {string} [opts.conversionAccuracy='casual'] - the preset conversion system to use\n * @param {string} [opts.matrix=Object] - the conversion system to use\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }\n * @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }\n * @return {Duration}\n */\n static fromISOTime(text, opts) {\n const [parsed] = parseISOTimeOnly(text);\n if (parsed) {\n return Duration.fromObject(parsed, opts);\n } else {\n return Duration.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n }\n\n /**\n * Create an invalid Duration.\n * @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Duration}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Duration is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDurationError(invalid);\n } else {\n return new Duration({ invalid });\n }\n }\n\n /**\n * @private\n */\n static normalizeUnit(unit) {\n const normalized = {\n year: \"years\",\n years: \"years\",\n quarter: \"quarters\",\n quarters: \"quarters\",\n month: \"months\",\n months: \"months\",\n week: \"weeks\",\n weeks: \"weeks\",\n day: \"days\",\n days: \"days\",\n hour: \"hours\",\n hours: \"hours\",\n minute: \"minutes\",\n minutes: \"minutes\",\n second: \"seconds\",\n seconds: \"seconds\",\n millisecond: \"milliseconds\",\n milliseconds: \"milliseconds\",\n }[unit ? unit.toLowerCase() : unit];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n }\n\n /**\n * Check if an object is a Duration. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDuration(o) {\n return (o && o.isLuxonDuration) || false;\n }\n\n /**\n * Get the locale of a Duration, such 'en-GB'\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:\n * * `S` for milliseconds\n * * `s` for seconds\n * * `m` for minutes\n * * `h` for hours\n * * `d` for days\n * * `w` for weeks\n * * `M` for months\n * * `y` for years\n * Notes:\n * * Add padding by repeating the token, e.g. \"yy\" pads the years to two digits, \"hhhh\" pads the hours out to four digits\n * * Tokens can be escaped by wrapping with single quotes.\n * * The duration will be converted to the set of units in the format string using {@link Duration#shiftTo} and the Durations's conversion accuracy setting.\n * @param {string} fmt - the format string\n * @param {Object} opts - options\n * @param {boolean} [opts.floor=true] - floor numerical values\n * @param {'negative'|'all'|'negativeLargestOnly'} [opts.signMode=negative] - How to handle signs\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"y d s\") //=> \"1 6 2\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"yy dd sss\") //=> \"01 06 002\"\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat(\"M S\") //=> \"12 518402000\"\n * @example Duration.fromObject({ days: 6, seconds: 2 }).toFormat(\"d s\", { signMode: \"all\" }) //=> \"+6 +2\"\n * @example Duration.fromObject({ days: -6, seconds: -2 }).toFormat(\"d s\", { signMode: \"all\" }) //=> \"-6 -2\"\n * @example Duration.fromObject({ days: -6, seconds: -2 }).toFormat(\"d s\", { signMode: \"negativeLargestOnly\" }) //=> \"-6 2\"\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n // reverse-compat since 1.2; we always round down now, never up, and we do it by default\n const fmtOpts = {\n ...opts,\n floor: opts.round !== false && opts.floor !== false,\n };\n return this.isValid\n ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt)\n : INVALID$2;\n }\n\n /**\n * Returns a string representation of a Duration with all units included.\n * To modify its behavior, use `listStyle` and any Intl.NumberFormat option, though `unitDisplay` is especially relevant.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#options\n * @param {Object} opts - Formatting options. Accepts the same keys as the options parameter of the native `Intl.NumberFormat` constructor, as well as `listStyle`.\n * @param {string} [opts.listStyle='narrow'] - How to format the merged list. Corresponds to the `style` property of the options parameter of the native `Intl.ListFormat` constructor.\n * @param {boolean} [opts.showZeros=true] - Show all units previously used by the duration even if they are zero\n * @example\n * ```js\n * var dur = Duration.fromObject({ months: 1, weeks: 0, hours: 5, minutes: 6 })\n * dur.toHuman() //=> '1 month, 0 weeks, 5 hours, 6 minutes'\n * dur.toHuman({ listStyle: \"long\" }) //=> '1 month, 0 weeks, 5 hours, and 6 minutes'\n * dur.toHuman({ unitDisplay: \"short\" }) //=> '1 mth, 0 wks, 5 hr, 6 min'\n * dur.toHuman({ showZeros: false }) //=> '1 month, 5 hours, 6 minutes'\n * ```\n */\n toHuman(opts = {}) {\n if (!this.isValid) return INVALID$2;\n\n const showZeros = opts.showZeros !== false;\n\n const l = orderedUnits$1\n .map((unit) => {\n const val = this.values[unit];\n if (isUndefined(val) || (val === 0 && !showZeros)) {\n return null;\n }\n return this.loc\n .numberFormatter({ style: \"unit\", unitDisplay: \"long\", ...opts, unit: unit.slice(0, -1) })\n .format(val);\n })\n .filter((n) => n);\n\n return this.loc\n .listFormatter({ type: \"conjunction\", style: opts.listStyle || \"narrow\", ...opts })\n .format(l);\n }\n\n /**\n * Returns a JavaScript object with this Duration's values.\n * @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }\n * @return {Object}\n */\n toObject() {\n if (!this.isValid) return {};\n return { ...this.values };\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Durations\n * @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'\n * @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'\n * @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'\n * @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'\n * @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'\n * @return {string}\n */\n toISO() {\n // we could use the formatter, but this is an easier way to get the minimum string\n if (!this.isValid) return null;\n\n let s = \"P\";\n if (this.years !== 0) s += this.years + \"Y\";\n if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + \"M\";\n if (this.weeks !== 0) s += this.weeks + \"W\";\n if (this.days !== 0) s += this.days + \"D\";\n if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0)\n s += \"T\";\n if (this.hours !== 0) s += this.hours + \"H\";\n if (this.minutes !== 0) s += this.minutes + \"M\";\n if (this.seconds !== 0 || this.milliseconds !== 0)\n // this will handle \"floating point madness\" by removing extra decimal places\n // https://stackoverflow.com/questions/588004/is-floating-point-math-broken\n s += roundTo(this.seconds + this.milliseconds / 1000, 3) + \"S\";\n if (s === \"P\") s += \"T0S\";\n return s;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.\n * Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Times\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000'\n * @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000'\n * @return {string}\n */\n toISOTime(opts = {}) {\n if (!this.isValid) return null;\n\n const millis = this.toMillis();\n if (millis < 0 || millis >= 86400000) return null;\n\n opts = {\n suppressMilliseconds: false,\n suppressSeconds: false,\n includePrefix: false,\n format: \"extended\",\n ...opts,\n includeOffset: false,\n };\n\n const dateTime = DateTime.fromMillis(millis, { zone: \"UTC\" });\n return dateTime.toISOTime(opts);\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns an ISO 8601 representation of this Duration appropriate for use in debugging.\n * @return {string}\n */\n toString() {\n return this.toISO();\n }\n\n /**\n * Returns a string representation of this Duration appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Duration { values: ${JSON.stringify(this.values)} }`;\n } else {\n return `Duration { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns an milliseconds value of this Duration.\n * @return {number}\n */\n toMillis() {\n if (!this.isValid) return NaN;\n\n return durationToMillis(this.matrix, this.values);\n }\n\n /**\n * Returns an milliseconds value of this Duration. Alias of {@link toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Make this Duration longer by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n plus(duration) {\n if (!this.isValid) return this;\n\n const dur = Duration.fromDurationLike(duration),\n result = {};\n\n for (const k of orderedUnits$1) {\n if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {\n result[k] = dur.get(k) + this.get(k);\n }\n }\n\n return clone$1(this, { values: result }, true);\n }\n\n /**\n * Make this Duration shorter by the specified amount. Return a newly-constructed Duration.\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @return {Duration}\n */\n minus(duration) {\n if (!this.isValid) return this;\n\n const dur = Duration.fromDurationLike(duration);\n return this.plus(dur.negate());\n }\n\n /**\n * Scale this Duration by the specified amount. Return a newly-constructed Duration.\n * @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }\n * @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === \"hours\" ? x * 2 : x) //=> { hours: 2, minutes: 30 }\n * @return {Duration}\n */\n mapUnits(fn) {\n if (!this.isValid) return this;\n const result = {};\n for (const k of Object.keys(this.values)) {\n result[k] = asNumber(fn(this.values[k], k));\n }\n return clone$1(this, { values: result }, true);\n }\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2\n * @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0\n * @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3\n * @return {number}\n */\n get(unit) {\n return this[Duration.normalizeUnit(unit)];\n }\n\n /**\n * \"Set\" the values of specified units. Return a newly-constructed Duration.\n * @param {Object} values - a mapping of units to numbers\n * @example dur.set({ years: 2017 })\n * @example dur.set({ hours: 8, minutes: 30 })\n * @return {Duration}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const mixed = { ...this.values, ...normalizeObject(values, Duration.normalizeUnit) };\n return clone$1(this, { values: mixed });\n }\n\n /**\n * \"Set\" the locale and/or numberingSystem. Returns a newly-constructed Duration.\n * @example dur.reconfigure({ locale: 'en-GB' })\n * @return {Duration}\n */\n reconfigure({ locale, numberingSystem, conversionAccuracy, matrix } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem });\n const opts = { loc, matrix, conversionAccuracy };\n return clone$1(this, opts);\n }\n\n /**\n * Return the length of the duration in the specified unit.\n * @param {string} unit - a unit such as 'minutes' or 'days'\n * @example Duration.fromObject({years: 1}).as('days') //=> 365\n * @example Duration.fromObject({years: 1}).as('months') //=> 12\n * @example Duration.fromObject({hours: 60}).as('days') //=> 2.5\n * @return {number}\n */\n as(unit) {\n return this.isValid ? this.shiftTo(unit).get(unit) : NaN;\n }\n\n /**\n * Reduce this Duration to its canonical representation in its current units.\n * Assuming the overall value of the Duration is positive, this means:\n * - excessive values for lower-order units are converted to higher-order units (if possible, see first and second example)\n * - negative lower-order units are converted to higher order units (there must be such a higher order unit, otherwise\n * the overall value would be negative, see third example)\n * - fractional values for higher-order units are converted to lower-order units (if possible, see fourth example)\n *\n * If the overall value is negative, the result of this method is equivalent to `this.negate().normalize().negate()`.\n * @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }\n * @example Duration.fromObject({ days: 5000 }).normalize().toObject() //=> { days: 5000 }\n * @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }\n * @example Duration.fromObject({ years: 2.5, days: 0, hours: 0 }).normalize().toObject() //=> { years: 2, days: 182, hours: 12 }\n * @return {Duration}\n */\n normalize() {\n if (!this.isValid) return this;\n const vals = this.toObject();\n normalizeValues(this.matrix, vals);\n return clone$1(this, { values: vals }, true);\n }\n\n /**\n * Rescale units to its largest representation\n * @example Duration.fromObject({ milliseconds: 90000 }).rescale().toObject() //=> { minutes: 1, seconds: 30 }\n * @return {Duration}\n */\n rescale() {\n if (!this.isValid) return this;\n const vals = removeZeroes(this.normalize().shiftToAll().toObject());\n return clone$1(this, { values: vals }, true);\n }\n\n /**\n * Convert this Duration into its representation in a different set of units.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }\n * @return {Duration}\n */\n shiftTo(...units) {\n if (!this.isValid) return this;\n\n if (units.length === 0) {\n return this;\n }\n\n units = units.map((u) => Duration.normalizeUnit(u));\n\n const built = {},\n accumulated = {},\n vals = this.toObject();\n let lastUnit;\n\n for (const k of orderedUnits$1) {\n if (units.indexOf(k) >= 0) {\n lastUnit = k;\n\n let own = 0;\n\n // anything we haven't boiled down yet should get boiled to this unit\n for (const ak in accumulated) {\n own += this.matrix[ak][k] * accumulated[ak];\n accumulated[ak] = 0;\n }\n\n // plus anything that's already in this unit\n if (isNumber(vals[k])) {\n own += vals[k];\n }\n\n // only keep the integer part for now in the hopes of putting any decimal part\n // into a smaller unit later\n const i = Math.trunc(own);\n built[k] = i;\n accumulated[k] = (own * 1000 - i * 1000) / 1000;\n\n // otherwise, keep it in the wings to boil it later\n } else if (isNumber(vals[k])) {\n accumulated[k] = vals[k];\n }\n }\n\n // anything leftover becomes the decimal for the last unit\n // lastUnit must be defined since units is not empty\n for (const key in accumulated) {\n if (accumulated[key] !== 0) {\n built[lastUnit] +=\n key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];\n }\n }\n\n normalizeValues(this.matrix, built);\n return clone$1(this, { values: built }, true);\n }\n\n /**\n * Shift this Duration to all available units.\n * Same as shiftTo(\"years\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", \"seconds\", \"milliseconds\")\n * @return {Duration}\n */\n shiftToAll() {\n if (!this.isValid) return this;\n return this.shiftTo(\n \"years\",\n \"months\",\n \"weeks\",\n \"days\",\n \"hours\",\n \"minutes\",\n \"seconds\",\n \"milliseconds\"\n );\n }\n\n /**\n * Return the negative of this Duration.\n * @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }\n * @return {Duration}\n */\n negate() {\n if (!this.isValid) return this;\n const negated = {};\n for (const k of Object.keys(this.values)) {\n negated[k] = this.values[k] === 0 ? 0 : -this.values[k];\n }\n return clone$1(this, { values: negated }, true);\n }\n\n /**\n * Removes all units with values equal to 0 from this Duration.\n * @example Duration.fromObject({ years: 2, days: 0, hours: 0, minutes: 0 }).removeZeros().toObject() //=> { years: 2 }\n * @return {Duration}\n */\n removeZeros() {\n if (!this.isValid) return this;\n const vals = removeZeroes(this.values);\n return clone$1(this, { values: vals }, true);\n }\n\n /**\n * Get the years.\n * @type {number}\n */\n get years() {\n return this.isValid ? this.values.years || 0 : NaN;\n }\n\n /**\n * Get the quarters.\n * @type {number}\n */\n get quarters() {\n return this.isValid ? this.values.quarters || 0 : NaN;\n }\n\n /**\n * Get the months.\n * @type {number}\n */\n get months() {\n return this.isValid ? this.values.months || 0 : NaN;\n }\n\n /**\n * Get the weeks\n * @type {number}\n */\n get weeks() {\n return this.isValid ? this.values.weeks || 0 : NaN;\n }\n\n /**\n * Get the days.\n * @type {number}\n */\n get days() {\n return this.isValid ? this.values.days || 0 : NaN;\n }\n\n /**\n * Get the hours.\n * @type {number}\n */\n get hours() {\n return this.isValid ? this.values.hours || 0 : NaN;\n }\n\n /**\n * Get the minutes.\n * @type {number}\n */\n get minutes() {\n return this.isValid ? this.values.minutes || 0 : NaN;\n }\n\n /**\n * Get the seconds.\n * @return {number}\n */\n get seconds() {\n return this.isValid ? this.values.seconds || 0 : NaN;\n }\n\n /**\n * Get the milliseconds.\n * @return {number}\n */\n get milliseconds() {\n return this.isValid ? this.values.milliseconds || 0 : NaN;\n }\n\n /**\n * Returns whether the Duration is invalid. Invalid durations are returned by diff operations\n * on invalid DateTimes or Intervals.\n * @return {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this Duration became invalid, or null if the Duration is valid\n * @return {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Duration became invalid, or null if the Duration is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Equality check\n * Two Durations are equal iff they have the same units and the same values for each unit.\n * @param {Duration} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n if (!this.loc.equals(other.loc)) {\n return false;\n }\n\n function eq(v1, v2) {\n // Consider 0 and undefined as equal\n if (v1 === undefined || v1 === 0) return v2 === undefined || v2 === 0;\n return v1 === v2;\n }\n\n for (const u of orderedUnits$1) {\n if (!eq(this.values[u], other.values[u])) {\n return false;\n }\n }\n return true;\n }\n}\n\nconst INVALID$1 = \"Invalid Interval\";\n\n// checks if the start is equal to or before the end\nfunction validateStartEnd(start, end) {\n if (!start || !start.isValid) {\n return Interval.invalid(\"missing or invalid start\");\n } else if (!end || !end.isValid) {\n return Interval.invalid(\"missing or invalid end\");\n } else if (end < start) {\n return Interval.invalid(\n \"end before start\",\n `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`\n );\n } else {\n return null;\n }\n}\n\n/**\n * An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.\n *\n * Here is a brief overview of the most commonly used methods and getters in Interval:\n *\n * * **Creation** To create an Interval, use {@link Interval.fromDateTimes}, {@link Interval.after}, {@link Interval.before}, or {@link Interval.fromISO}.\n * * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.\n * * **Interrogation** To analyze the Interval, use {@link Interval#count}, {@link Interval#length}, {@link Interval#hasSame}, {@link Interval#contains}, {@link Interval#isAfter}, or {@link Interval#isBefore}.\n * * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval.merge}, {@link Interval.xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.\n * * **Comparison** To compare this Interval to another one, use {@link Interval#equals}, {@link Interval#overlaps}, {@link Interval#abutsStart}, {@link Interval#abutsEnd}, {@link Interval#engulfs}\n * * **Output** To convert the Interval into other representations, see {@link Interval#toString}, {@link Interval#toLocaleString}, {@link Interval#toISO}, {@link Interval#toISODate}, {@link Interval#toISOTime}, {@link Interval#toFormat}, and {@link Interval#toDuration}.\n */\nclass Interval {\n /**\n * @private\n */\n constructor(config) {\n /**\n * @access private\n */\n this.s = config.start;\n /**\n * @access private\n */\n this.e = config.end;\n /**\n * @access private\n */\n this.invalid = config.invalid || null;\n /**\n * @access private\n */\n this.isLuxonInterval = true;\n }\n\n /**\n * Create an invalid Interval.\n * @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {Interval}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the Interval is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidIntervalError(invalid);\n } else {\n return new Interval({ invalid });\n }\n }\n\n /**\n * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.\n * @param {DateTime|Date|Object} start\n * @param {DateTime|Date|Object} end\n * @return {Interval}\n */\n static fromDateTimes(start, end) {\n const builtStart = friendlyDateTime(start),\n builtEnd = friendlyDateTime(end);\n\n const validateError = validateStartEnd(builtStart, builtEnd);\n\n if (validateError == null) {\n return new Interval({\n start: builtStart,\n end: builtEnd,\n });\n } else {\n return validateError;\n }\n }\n\n /**\n * Create an Interval from a start DateTime and a Duration to extend to.\n * @param {DateTime|Date|Object} start\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static after(start, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(start);\n return Interval.fromDateTimes(dt, dt.plus(dur));\n }\n\n /**\n * Create an Interval from an end DateTime and a Duration to extend backwards to.\n * @param {DateTime|Date|Object} end\n * @param {Duration|Object|number} duration - the length of the Interval.\n * @return {Interval}\n */\n static before(end, duration) {\n const dur = Duration.fromDurationLike(duration),\n dt = friendlyDateTime(end);\n return Interval.fromDateTimes(dt.minus(dur), dt);\n }\n\n /**\n * Create an Interval from an ISO 8601 string.\n * Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.\n * @param {string} text - the ISO string to parse\n * @param {Object} [opts] - options to pass {@link DateTime#fromISO} and optionally {@link Duration#fromISO}\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {Interval}\n */\n static fromISO(text, opts) {\n const [s, e] = (text || \"\").split(\"/\", 2);\n if (s && e) {\n let start, startIsValid;\n try {\n start = DateTime.fromISO(s, opts);\n startIsValid = start.isValid;\n } catch (e) {\n startIsValid = false;\n }\n\n let end, endIsValid;\n try {\n end = DateTime.fromISO(e, opts);\n endIsValid = end.isValid;\n } catch (e) {\n endIsValid = false;\n }\n\n if (startIsValid && endIsValid) {\n return Interval.fromDateTimes(start, end);\n }\n\n if (startIsValid) {\n const dur = Duration.fromISO(e, opts);\n if (dur.isValid) {\n return Interval.after(start, dur);\n }\n } else if (endIsValid) {\n const dur = Duration.fromISO(s, opts);\n if (dur.isValid) {\n return Interval.before(end, dur);\n }\n }\n }\n return Interval.invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ISO 8601`);\n }\n\n /**\n * Check if an object is an Interval. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isInterval(o) {\n return (o && o.isLuxonInterval) || false;\n }\n\n /**\n * Returns the start of the Interval\n * @type {DateTime}\n */\n get start() {\n return this.isValid ? this.s : null;\n }\n\n /**\n * Returns the end of the Interval. This is the first instant which is not part of the interval\n * (Interval is half-open).\n * @type {DateTime}\n */\n get end() {\n return this.isValid ? this.e : null;\n }\n\n /**\n * Returns the last DateTime included in the interval (since end is not part of the interval)\n * @type {DateTime}\n */\n get lastDateTime() {\n return this.isValid ? (this.e ? this.e.minus(1) : null) : null;\n }\n\n /**\n * Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.\n * @type {boolean}\n */\n get isValid() {\n return this.invalidReason === null;\n }\n\n /**\n * Returns an error code if this Interval is invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this Interval became invalid, or null if the Interval is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Returns the length of the Interval in the specified unit.\n * @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.\n * @return {number}\n */\n length(unit = \"milliseconds\") {\n return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN;\n }\n\n /**\n * Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.\n * Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'\n * asks 'what dates are included in this interval?', not 'how many days long is this interval?'\n * @param {string} [unit='milliseconds'] - the unit of time to count.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; this operation will always use the locale of the start DateTime\n * @return {number}\n */\n count(unit = \"milliseconds\", opts) {\n if (!this.isValid) return NaN;\n const start = this.start.startOf(unit, opts);\n let end;\n if (opts?.useLocaleWeeks) {\n end = this.end.reconfigure({ locale: start.locale });\n } else {\n end = this.end;\n }\n end = end.startOf(unit, opts);\n return Math.floor(end.diff(start, unit).get(unit)) + (end.valueOf() !== this.end.valueOf());\n }\n\n /**\n * Returns whether this Interval's start and end are both in the same unit of time\n * @param {string} unit - the unit of time to check sameness on\n * @return {boolean}\n */\n hasSame(unit) {\n return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;\n }\n\n /**\n * Return whether this Interval has the same start and end DateTimes.\n * @return {boolean}\n */\n isEmpty() {\n return this.s.valueOf() === this.e.valueOf();\n }\n\n /**\n * Return whether this Interval's start is after the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isAfter(dateTime) {\n if (!this.isValid) return false;\n return this.s > dateTime;\n }\n\n /**\n * Return whether this Interval's end is before the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n isBefore(dateTime) {\n if (!this.isValid) return false;\n return this.e <= dateTime;\n }\n\n /**\n * Return whether this Interval contains the specified DateTime.\n * @param {DateTime} dateTime\n * @return {boolean}\n */\n contains(dateTime) {\n if (!this.isValid) return false;\n return this.s <= dateTime && this.e > dateTime;\n }\n\n /**\n * \"Sets\" the start and/or end dates. Returns a newly-constructed Interval.\n * @param {Object} values - the values to set\n * @param {DateTime} values.start - the starting DateTime\n * @param {DateTime} values.end - the ending DateTime\n * @return {Interval}\n */\n set({ start, end } = {}) {\n if (!this.isValid) return this;\n return Interval.fromDateTimes(start || this.s, end || this.e);\n }\n\n /**\n * Split this Interval at each of the specified DateTimes\n * @param {...DateTime} dateTimes - the unit of time to count.\n * @return {Array}\n */\n splitAt(...dateTimes) {\n if (!this.isValid) return [];\n const sorted = dateTimes\n .map(friendlyDateTime)\n .filter((d) => this.contains(d))\n .sort((a, b) => a.toMillis() - b.toMillis()),\n results = [];\n let { s } = this,\n i = 0;\n\n while (s < this.e) {\n const added = sorted[i] || this.e,\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n i += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into smaller Intervals, each of the specified length.\n * Left over time is grouped into a smaller interval\n * @param {Duration|Object|number} duration - The length of each resulting interval.\n * @return {Array}\n */\n splitBy(duration) {\n const dur = Duration.fromDurationLike(duration);\n\n if (!this.isValid || !dur.isValid || dur.as(\"milliseconds\") === 0) {\n return [];\n }\n\n let { s } = this,\n idx = 1,\n next;\n\n const results = [];\n while (s < this.e) {\n const added = this.start.plus(dur.mapUnits((x) => x * idx));\n next = +added > +this.e ? this.e : added;\n results.push(Interval.fromDateTimes(s, next));\n s = next;\n idx += 1;\n }\n\n return results;\n }\n\n /**\n * Split this Interval into the specified number of smaller intervals.\n * @param {number} numberOfParts - The number of Intervals to divide the Interval into.\n * @return {Array}\n */\n divideEqually(numberOfParts) {\n if (!this.isValid) return [];\n return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);\n }\n\n /**\n * Return whether this Interval overlaps with the specified Interval\n * @param {Interval} other\n * @return {boolean}\n */\n overlaps(other) {\n return this.e > other.s && this.s < other.e;\n }\n\n /**\n * Return whether this Interval's end is adjacent to the specified Interval's start.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsStart(other) {\n if (!this.isValid) return false;\n return +this.e === +other.s;\n }\n\n /**\n * Return whether this Interval's start is adjacent to the specified Interval's end.\n * @param {Interval} other\n * @return {boolean}\n */\n abutsEnd(other) {\n if (!this.isValid) return false;\n return +other.e === +this.s;\n }\n\n /**\n * Returns true if this Interval fully contains the specified Interval, specifically if the intersect (of this Interval and the other Interval) is equal to the other Interval; false otherwise.\n * @param {Interval} other\n * @return {boolean}\n */\n engulfs(other) {\n if (!this.isValid) return false;\n return this.s <= other.s && this.e >= other.e;\n }\n\n /**\n * Return whether this Interval has the same start and end as the specified Interval.\n * @param {Interval} other\n * @return {boolean}\n */\n equals(other) {\n if (!this.isValid || !other.isValid) {\n return false;\n }\n\n return this.s.equals(other.s) && this.e.equals(other.e);\n }\n\n /**\n * Return an Interval representing the intersection of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.\n * Returns null if the intersection is empty, meaning, the intervals don't intersect.\n * @param {Interval} other\n * @return {Interval}\n */\n intersection(other) {\n if (!this.isValid) return this;\n const s = this.s > other.s ? this.s : other.s,\n e = this.e < other.e ? this.e : other.e;\n\n if (s >= e) {\n return null;\n } else {\n return Interval.fromDateTimes(s, e);\n }\n }\n\n /**\n * Return an Interval representing the union of this Interval and the specified Interval.\n * Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.\n * @param {Interval} other\n * @return {Interval}\n */\n union(other) {\n if (!this.isValid) return this;\n const s = this.s < other.s ? this.s : other.s,\n e = this.e > other.e ? this.e : other.e;\n return Interval.fromDateTimes(s, e);\n }\n\n /**\n * Merge an array of Intervals into an equivalent minimal set of Intervals.\n * Combines overlapping and adjacent Intervals.\n * The resulting array will contain the Intervals in ascending order, that is, starting with the earliest Interval\n * and ending with the latest.\n *\n * @param {Array} intervals\n * @return {Array}\n */\n static merge(intervals) {\n const [found, final] = intervals\n .sort((a, b) => a.s - b.s)\n .reduce(\n ([sofar, current], item) => {\n if (!current) {\n return [sofar, item];\n } else if (current.overlaps(item) || current.abutsStart(item)) {\n return [sofar, current.union(item)];\n } else {\n return [sofar.concat([current]), item];\n }\n },\n [[], null]\n );\n if (final) {\n found.push(final);\n }\n return found;\n }\n\n /**\n * Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.\n * @param {Array} intervals\n * @return {Array}\n */\n static xor(intervals) {\n let start = null,\n currentCount = 0;\n const results = [],\n ends = intervals.map((i) => [\n { time: i.s, type: \"s\" },\n { time: i.e, type: \"e\" },\n ]),\n flattened = Array.prototype.concat(...ends),\n arr = flattened.sort((a, b) => a.time - b.time);\n\n for (const i of arr) {\n currentCount += i.type === \"s\" ? 1 : -1;\n\n if (currentCount === 1) {\n start = i.time;\n } else {\n if (start && +start !== +i.time) {\n results.push(Interval.fromDateTimes(start, i.time));\n }\n\n start = null;\n }\n }\n\n return Interval.merge(results);\n }\n\n /**\n * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.\n * @param {...Interval} intervals\n * @return {Array}\n */\n difference(...intervals) {\n return Interval.xor([this].concat(intervals))\n .map((i) => this.intersection(i))\n .filter((i) => i && !i.isEmpty());\n }\n\n /**\n * Returns a string representation of this Interval appropriate for debugging.\n * @return {string}\n */\n toString() {\n if (!this.isValid) return INVALID$1;\n return `[${this.s.toISO()} – ${this.e.toISO()})`;\n }\n\n /**\n * Returns a string representation of this Interval appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`;\n } else {\n return `Interval { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns a localized string representing this Interval. Accepts the same options as the\n * Intl.DateTimeFormat constructor and any presets defined by Luxon, such as\n * {@link DateTime.DATE_FULL} or {@link DateTime.TIME_SIMPLE}. The exact behavior of this method\n * is browser-specific, but in general it will return an appropriate representation of the\n * Interval in the assigned locale. Defaults to the system's locale if no locale has been\n * specified.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {Object} [formatOpts=DateTime.DATE_SHORT] - Either a DateTime preset or\n * Intl.DateTimeFormat constructor options.\n * @param {Object} opts - Options to override the configuration of the start DateTime.\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(); //=> 11/7/2022 – 11/8/2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL); //=> November 7 – 8, 2022\n * @example Interval.fromISO('2022-11-07T09:00Z/2022-11-08T09:00Z').toLocaleString(DateTime.DATE_FULL, { locale: 'fr-FR' }); //=> 7–8 novembre 2022\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString(DateTime.TIME_SIMPLE); //=> 6:00 – 8:00 PM\n * @example Interval.fromISO('2022-11-07T17:00Z/2022-11-07T19:00Z').toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> Mon, Nov 07, 6:00 – 8:00 p\n * @return {string}\n */\n toLocaleString(formatOpts = DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.s.loc.clone(opts), formatOpts).formatInterval(this)\n : INVALID$1;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this Interval.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISO(opts) {\n if (!this.isValid) return INVALID$1;\n return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of date of this Interval.\n * The time components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @return {string}\n */\n toISODate() {\n if (!this.isValid) return INVALID$1;\n return `${this.s.toISODate()}/${this.e.toISODate()}`;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of time of this Interval.\n * The date components are ignored.\n * @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n * @param {Object} opts - The same options as {@link DateTime#toISO}\n * @return {string}\n */\n toISOTime(opts) {\n if (!this.isValid) return INVALID$1;\n return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this Interval formatted according to the specified format\n * string. **You may not want this.** See {@link Interval#toLocaleString} for a more flexible\n * formatting tool.\n * @param {string} dateFormat - The format string. This string formats the start and end time.\n * See {@link DateTime#toFormat} for details.\n * @param {Object} opts - Options.\n * @param {string} [opts.separator = ' – '] - A separator to place between the start and end\n * representations.\n * @return {string}\n */\n toFormat(dateFormat, { separator = \" – \" } = {}) {\n if (!this.isValid) return INVALID$1;\n return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`;\n }\n\n /**\n * Return a Duration representing the time spanned by this interval.\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }\n * @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }\n * @return {Duration}\n */\n toDuration(unit, opts) {\n if (!this.isValid) {\n return Duration.invalid(this.invalidReason);\n }\n return this.e.diff(this.s, unit, opts);\n }\n\n /**\n * Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes\n * @param {function} mapFn\n * @return {Interval}\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())\n * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))\n */\n mapEndpoints(mapFn) {\n return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));\n }\n}\n\n/**\n * The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.\n */\nclass Info {\n /**\n * Return whether the specified zone contains a DST.\n * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.\n * @return {boolean}\n */\n static hasDST(zone = Settings.defaultZone) {\n const proto = DateTime.now().setZone(zone).set({ month: 12 });\n\n return !zone.isUniversal && proto.offset !== proto.set({ month: 6 }).offset;\n }\n\n /**\n * Return whether the specified zone is a valid IANA specifier.\n * @param {string} zone - Zone to check\n * @return {boolean}\n */\n static isValidIANAZone(zone) {\n return IANAZone.isValidZone(zone);\n }\n\n /**\n * Converts the input into a {@link Zone} instance.\n *\n * * If `input` is already a Zone instance, it is returned unchanged.\n * * If `input` is a string containing a valid time zone name, a Zone instance\n * with that name is returned.\n * * If `input` is a string that doesn't refer to a known time zone, a Zone\n * instance with {@link Zone#isValid} == false is returned.\n * * If `input is a number, a Zone instance with the specified fixed offset\n * in minutes is returned.\n * * If `input` is `null` or `undefined`, the default zone is returned.\n * @param {string|Zone|number} [input] - the value to be converted\n * @return {Zone}\n */\n static normalizeZone(input) {\n return normalizeZone(input, Settings.defaultZone);\n }\n\n /**\n * Get the weekday on which the week starts according to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number} the start of the week, 1 for Monday through 7 for Sunday\n */\n static getStartOfWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getStartOfWeek();\n }\n\n /**\n * Get the minimum number of days necessary in a week before it is considered part of the next year according\n * to the given locale.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number}\n */\n static getMinimumDaysInFirstWeek({ locale = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale)).getMinDaysInFirstWeek();\n }\n\n /**\n * Get the weekdays, which are considered the weekend according to the given locale\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @returns {number[]} an array of weekdays, 1 for Monday through 7 for Sunday\n */\n static getWeekendWeekdays({ locale = null, locObj = null } = {}) {\n // copy the array, because we cache it internally\n return (locObj || Locale.create(locale)).getWeekendDays().slice();\n }\n\n /**\n * Return an array of standalone month names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @example Info.months()[0] //=> 'January'\n * @example Info.months('short')[0] //=> 'Jan'\n * @example Info.months('numeric')[0] //=> '1'\n * @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'\n * @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'\n * @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'\n * @return {Array}\n */\n static months(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);\n }\n\n /**\n * Return an array of format month names.\n * Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that\n * changes the string.\n * See {@link Info#months}\n * @param {string} [length='long'] - the length of the month representation, such as \"numeric\", \"2-digit\", \"narrow\", \"short\", \"long\"\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @param {string} [opts.outputCalendar='gregory'] - the calendar\n * @return {Array}\n */\n static monthsFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null, outputCalendar = \"gregory\" } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);\n }\n\n /**\n * Return an array of standalone week names.\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param {string} [length='long'] - the length of the weekday representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @example Info.weekdays()[0] //=> 'Monday'\n * @example Info.weekdays('short')[0] //=> 'Mon'\n * @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'\n * @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'\n * @return {Array}\n */\n static weekdays(length = \"long\", { locale = null, numberingSystem = null, locObj = null } = {}) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);\n }\n\n /**\n * Return an array of format week names.\n * Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that\n * changes the string.\n * See {@link Info#weekdays}\n * @param {string} [length='long'] - the length of the month representation, such as \"narrow\", \"short\", \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale=null] - the locale code\n * @param {string} [opts.numberingSystem=null] - the numbering system\n * @param {string} [opts.locObj=null] - an existing locale object to use\n * @return {Array}\n */\n static weekdaysFormat(\n length = \"long\",\n { locale = null, numberingSystem = null, locObj = null } = {}\n ) {\n return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);\n }\n\n /**\n * Return an array of meridiems.\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.meridiems() //=> [ 'AM', 'PM' ]\n * @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]\n * @return {Array}\n */\n static meridiems({ locale = null } = {}) {\n return Locale.create(locale).meridiems();\n }\n\n /**\n * Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.\n * @param {string} [length='short'] - the length of the era representation, such as \"short\" or \"long\".\n * @param {Object} opts - options\n * @param {string} [opts.locale] - the locale code\n * @example Info.eras() //=> [ 'BC', 'AD' ]\n * @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]\n * @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]\n * @return {Array}\n */\n static eras(length = \"short\", { locale = null } = {}) {\n return Locale.create(locale, null, \"gregory\").eras(length);\n }\n\n /**\n * Return the set of available features in this environment.\n * Some features of Luxon are not available in all environments. For example, on older browsers, relative time formatting support is not available. Use this function to figure out if that's the case.\n * Keys:\n * * `relative`: whether this environment supports relative time formatting\n * * `localeWeek`: whether this environment supports different weekdays for the start of the week based on the locale\n * @example Info.features() //=> { relative: false, localeWeek: true }\n * @return {Object}\n */\n static features() {\n return { relative: hasRelative(), localeWeek: hasLocaleWeekInfo() };\n }\n}\n\nfunction dayDiff(earlier, later) {\n const utcDayStart = (dt) => dt.toUTC(0, { keepLocalTime: true }).startOf(\"day\").valueOf(),\n ms = utcDayStart(later) - utcDayStart(earlier);\n return Math.floor(Duration.fromMillis(ms).as(\"days\"));\n}\n\nfunction highOrderDiffs(cursor, later, units) {\n const differs = [\n [\"years\", (a, b) => b.year - a.year],\n [\"quarters\", (a, b) => b.quarter - a.quarter + (b.year - a.year) * 4],\n [\"months\", (a, b) => b.month - a.month + (b.year - a.year) * 12],\n [\n \"weeks\",\n (a, b) => {\n const days = dayDiff(a, b);\n return (days - (days % 7)) / 7;\n },\n ],\n [\"days\", dayDiff],\n ];\n\n const results = {};\n const earlier = cursor;\n let lowestOrder, highWater;\n\n /* This loop tries to diff using larger units first.\n If we overshoot, we backtrack and try the next smaller unit.\n \"cursor\" starts out at the earlier timestamp and moves closer and closer to \"later\"\n as we use smaller and smaller units.\n highWater keeps track of where we would be if we added one more of the smallest unit,\n this is used later to potentially convert any difference smaller than the smallest higher order unit\n into a fraction of that smallest higher order unit\n */\n for (const [unit, differ] of differs) {\n if (units.indexOf(unit) >= 0) {\n lowestOrder = unit;\n\n results[unit] = differ(cursor, later);\n highWater = earlier.plus(results);\n\n if (highWater > later) {\n // we overshot the end point, backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n\n // if we are still overshooting now, we need to backtrack again\n // this happens in certain situations when diffing times in different zones,\n // because this calculation ignores time zones\n if (cursor > later) {\n // keep the \"overshot by 1\" around as highWater\n highWater = cursor;\n // backtrack cursor by 1\n results[unit]--;\n cursor = earlier.plus(results);\n }\n } else {\n cursor = highWater;\n }\n }\n }\n\n return [cursor, results, highWater, lowestOrder];\n}\n\nfunction diff (earlier, later, units, opts) {\n let [cursor, results, highWater, lowestOrder] = highOrderDiffs(earlier, later, units);\n\n const remainingMillis = later - cursor;\n\n const lowerOrderUnits = units.filter(\n (u) => [\"hours\", \"minutes\", \"seconds\", \"milliseconds\"].indexOf(u) >= 0\n );\n\n if (lowerOrderUnits.length === 0) {\n if (highWater < later) {\n highWater = cursor.plus({ [lowestOrder]: 1 });\n }\n\n if (highWater !== cursor) {\n results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);\n }\n }\n\n const duration = Duration.fromObject(results, opts);\n\n if (lowerOrderUnits.length > 0) {\n return Duration.fromMillis(remainingMillis, opts)\n .shiftTo(...lowerOrderUnits)\n .plus(duration);\n } else {\n return duration;\n }\n}\n\nconst MISSING_FTP = \"missing Intl.DateTimeFormat.formatToParts support\";\n\nfunction intUnit(regex, post = (i) => i) {\n return { regex, deser: ([s]) => post(parseDigits(s)) };\n}\n\nconst NBSP = String.fromCharCode(160);\nconst spaceOrNBSP = `[ ${NBSP}]`;\nconst spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, \"g\");\n\nfunction fixListRegex(s) {\n // make dots optional and also make them literal\n // make space and non breakable space characters interchangeable\n return s.replace(/\\./g, \"\\\\.?\").replace(spaceOrNBSPRegExp, spaceOrNBSP);\n}\n\nfunction stripInsensitivities(s) {\n return s\n .replace(/\\./g, \"\") // ignore dots that were made optional\n .replace(spaceOrNBSPRegExp, \" \") // interchange space and nbsp\n .toLowerCase();\n}\n\nfunction oneOf(strings, startIndex) {\n if (strings === null) {\n return null;\n } else {\n return {\n regex: RegExp(strings.map(fixListRegex).join(\"|\")),\n deser: ([s]) =>\n strings.findIndex((i) => stripInsensitivities(s) === stripInsensitivities(i)) + startIndex,\n };\n }\n}\n\nfunction offset(regex, groups) {\n return { regex, deser: ([, h, m]) => signedOffset(h, m), groups };\n}\n\nfunction simple(regex) {\n return { regex, deser: ([s]) => s };\n}\n\nfunction escapeToken(value) {\n return value.replace(/[\\-\\[\\]{}()*+?.,\\\\\\^$|#\\s]/g, \"\\\\$&\");\n}\n\n/**\n * @param token\n * @param {Locale} loc\n */\nfunction unitForToken(token, loc) {\n const one = digitRegex(loc),\n two = digitRegex(loc, \"{2}\"),\n three = digitRegex(loc, \"{3}\"),\n four = digitRegex(loc, \"{4}\"),\n six = digitRegex(loc, \"{6}\"),\n oneOrTwo = digitRegex(loc, \"{1,2}\"),\n oneToThree = digitRegex(loc, \"{1,3}\"),\n oneToSix = digitRegex(loc, \"{1,6}\"),\n oneToNine = digitRegex(loc, \"{1,9}\"),\n twoToFour = digitRegex(loc, \"{2,4}\"),\n fourToSix = digitRegex(loc, \"{4,6}\"),\n literal = (t) => ({ regex: RegExp(escapeToken(t.val)), deser: ([s]) => s, literal: true }),\n unitate = (t) => {\n if (token.literal) {\n return literal(t);\n }\n switch (t.val) {\n // era\n case \"G\":\n return oneOf(loc.eras(\"short\"), 0);\n case \"GG\":\n return oneOf(loc.eras(\"long\"), 0);\n // years\n case \"y\":\n return intUnit(oneToSix);\n case \"yy\":\n return intUnit(twoToFour, untruncateYear);\n case \"yyyy\":\n return intUnit(four);\n case \"yyyyy\":\n return intUnit(fourToSix);\n case \"yyyyyy\":\n return intUnit(six);\n // months\n case \"M\":\n return intUnit(oneOrTwo);\n case \"MM\":\n return intUnit(two);\n case \"MMM\":\n return oneOf(loc.months(\"short\", true), 1);\n case \"MMMM\":\n return oneOf(loc.months(\"long\", true), 1);\n case \"L\":\n return intUnit(oneOrTwo);\n case \"LL\":\n return intUnit(two);\n case \"LLL\":\n return oneOf(loc.months(\"short\", false), 1);\n case \"LLLL\":\n return oneOf(loc.months(\"long\", false), 1);\n // dates\n case \"d\":\n return intUnit(oneOrTwo);\n case \"dd\":\n return intUnit(two);\n // ordinals\n case \"o\":\n return intUnit(oneToThree);\n case \"ooo\":\n return intUnit(three);\n // time\n case \"HH\":\n return intUnit(two);\n case \"H\":\n return intUnit(oneOrTwo);\n case \"hh\":\n return intUnit(two);\n case \"h\":\n return intUnit(oneOrTwo);\n case \"mm\":\n return intUnit(two);\n case \"m\":\n return intUnit(oneOrTwo);\n case \"q\":\n return intUnit(oneOrTwo);\n case \"qq\":\n return intUnit(two);\n case \"s\":\n return intUnit(oneOrTwo);\n case \"ss\":\n return intUnit(two);\n case \"S\":\n return intUnit(oneToThree);\n case \"SSS\":\n return intUnit(three);\n case \"u\":\n return simple(oneToNine);\n case \"uu\":\n return simple(oneOrTwo);\n case \"uuu\":\n return intUnit(one);\n // meridiem\n case \"a\":\n return oneOf(loc.meridiems(), 0);\n // weekYear (k)\n case \"kkkk\":\n return intUnit(four);\n case \"kk\":\n return intUnit(twoToFour, untruncateYear);\n // weekNumber (W)\n case \"W\":\n return intUnit(oneOrTwo);\n case \"WW\":\n return intUnit(two);\n // weekdays\n case \"E\":\n case \"c\":\n return intUnit(one);\n case \"EEE\":\n return oneOf(loc.weekdays(\"short\", false), 1);\n case \"EEEE\":\n return oneOf(loc.weekdays(\"long\", false), 1);\n case \"ccc\":\n return oneOf(loc.weekdays(\"short\", true), 1);\n case \"cccc\":\n return oneOf(loc.weekdays(\"long\", true), 1);\n // offset/zone\n case \"Z\":\n case \"ZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2);\n case \"ZZZ\":\n return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2);\n // we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing\n // because we don't have any way to figure out what they are\n case \"z\":\n return simple(/[a-z_+-/]{1,256}?/i);\n // this special-case \"token\" represents a place where a macro-token expanded into a white-space literal\n // in this case we accept any non-newline white-space\n case \" \":\n return simple(/[^\\S\\n\\r]/);\n default:\n return literal(t);\n }\n };\n\n const unit = unitate(token) || {\n invalidReason: MISSING_FTP,\n };\n\n unit.token = token;\n\n return unit;\n}\n\nconst partTypeStyleToTokenVal = {\n year: {\n \"2-digit\": \"yy\",\n numeric: \"yyyyy\",\n },\n month: {\n numeric: \"M\",\n \"2-digit\": \"MM\",\n short: \"MMM\",\n long: \"MMMM\",\n },\n day: {\n numeric: \"d\",\n \"2-digit\": \"dd\",\n },\n weekday: {\n short: \"EEE\",\n long: \"EEEE\",\n },\n dayperiod: \"a\",\n dayPeriod: \"a\",\n hour12: {\n numeric: \"h\",\n \"2-digit\": \"hh\",\n },\n hour24: {\n numeric: \"H\",\n \"2-digit\": \"HH\",\n },\n minute: {\n numeric: \"m\",\n \"2-digit\": \"mm\",\n },\n second: {\n numeric: \"s\",\n \"2-digit\": \"ss\",\n },\n timeZoneName: {\n long: \"ZZZZZ\",\n short: \"ZZZ\",\n },\n};\n\nfunction tokenForPart(part, formatOpts, resolvedOpts) {\n const { type, value } = part;\n\n if (type === \"literal\") {\n const isSpace = /^\\s+$/.test(value);\n return {\n literal: !isSpace,\n val: isSpace ? \" \" : value,\n };\n }\n\n const style = formatOpts[type];\n\n // The user might have explicitly specified hour12 or hourCycle\n // if so, respect their decision\n // if not, refer back to the resolvedOpts, which are based on the locale\n let actualType = type;\n if (type === \"hour\") {\n if (formatOpts.hour12 != null) {\n actualType = formatOpts.hour12 ? \"hour12\" : \"hour24\";\n } else if (formatOpts.hourCycle != null) {\n if (formatOpts.hourCycle === \"h11\" || formatOpts.hourCycle === \"h12\") {\n actualType = \"hour12\";\n } else {\n actualType = \"hour24\";\n }\n } else {\n // tokens only differentiate between 24 hours or not,\n // so we do not need to check hourCycle here, which is less supported anyways\n actualType = resolvedOpts.hour12 ? \"hour12\" : \"hour24\";\n }\n }\n let val = partTypeStyleToTokenVal[actualType];\n if (typeof val === \"object\") {\n val = val[style];\n }\n\n if (val) {\n return {\n literal: false,\n val,\n };\n }\n\n return undefined;\n}\n\nfunction buildRegex(units) {\n const re = units.map((u) => u.regex).reduce((f, r) => `${f}(${r.source})`, \"\");\n return [`^${re}$`, units];\n}\n\nfunction match(input, regex, handlers) {\n const matches = input.match(regex);\n\n if (matches) {\n const all = {};\n let matchIndex = 1;\n for (const i in handlers) {\n if (hasOwnProperty(handlers, i)) {\n const h = handlers[i],\n groups = h.groups ? h.groups + 1 : 1;\n if (!h.literal && h.token) {\n all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));\n }\n matchIndex += groups;\n }\n }\n return [matches, all];\n } else {\n return [matches, {}];\n }\n}\n\nfunction dateTimeFromMatches(matches) {\n const toField = (token) => {\n switch (token) {\n case \"S\":\n return \"millisecond\";\n case \"s\":\n return \"second\";\n case \"m\":\n return \"minute\";\n case \"h\":\n case \"H\":\n return \"hour\";\n case \"d\":\n return \"day\";\n case \"o\":\n return \"ordinal\";\n case \"L\":\n case \"M\":\n return \"month\";\n case \"y\":\n return \"year\";\n case \"E\":\n case \"c\":\n return \"weekday\";\n case \"W\":\n return \"weekNumber\";\n case \"k\":\n return \"weekYear\";\n case \"q\":\n return \"quarter\";\n default:\n return null;\n }\n };\n\n let zone = null;\n let specificOffset;\n if (!isUndefined(matches.z)) {\n zone = IANAZone.create(matches.z);\n }\n\n if (!isUndefined(matches.Z)) {\n if (!zone) {\n zone = new FixedOffsetZone(matches.Z);\n }\n specificOffset = matches.Z;\n }\n\n if (!isUndefined(matches.q)) {\n matches.M = (matches.q - 1) * 3 + 1;\n }\n\n if (!isUndefined(matches.h)) {\n if (matches.h < 12 && matches.a === 1) {\n matches.h += 12;\n } else if (matches.h === 12 && matches.a === 0) {\n matches.h = 0;\n }\n }\n\n if (matches.G === 0 && matches.y) {\n matches.y = -matches.y;\n }\n\n if (!isUndefined(matches.u)) {\n matches.S = parseMillis(matches.u);\n }\n\n const vals = Object.keys(matches).reduce((r, k) => {\n const f = toField(k);\n if (f) {\n r[f] = matches[k];\n }\n\n return r;\n }, {});\n\n return [vals, zone, specificOffset];\n}\n\nlet dummyDateTimeCache = null;\n\nfunction getDummyDateTime() {\n if (!dummyDateTimeCache) {\n dummyDateTimeCache = DateTime.fromMillis(1555555555555);\n }\n\n return dummyDateTimeCache;\n}\n\nfunction maybeExpandMacroToken(token, locale) {\n if (token.literal) {\n return token;\n }\n\n const formatOpts = Formatter.macroTokenToFormatOpts(token.val);\n const tokens = formatOptsToTokens(formatOpts, locale);\n\n if (tokens == null || tokens.includes(undefined)) {\n return token;\n }\n\n return tokens;\n}\n\nfunction expandMacroTokens(tokens, locale) {\n return Array.prototype.concat(...tokens.map((t) => maybeExpandMacroToken(t, locale)));\n}\n\n/**\n * @private\n */\n\nclass TokenParser {\n constructor(locale, format) {\n this.locale = locale;\n this.format = format;\n this.tokens = expandMacroTokens(Formatter.parseFormat(format), locale);\n this.units = this.tokens.map((t) => unitForToken(t, locale));\n this.disqualifyingUnit = this.units.find((t) => t.invalidReason);\n\n if (!this.disqualifyingUnit) {\n const [regexString, handlers] = buildRegex(this.units);\n this.regex = RegExp(regexString, \"i\");\n this.handlers = handlers;\n }\n }\n\n explainFromTokens(input) {\n if (!this.isValid) {\n return { input, tokens: this.tokens, invalidReason: this.invalidReason };\n } else {\n const [rawMatches, matches] = match(input, this.regex, this.handlers),\n [result, zone, specificOffset] = matches\n ? dateTimeFromMatches(matches)\n : [null, null, undefined];\n if (hasOwnProperty(matches, \"a\") && hasOwnProperty(matches, \"H\")) {\n throw new ConflictingSpecificationError(\n \"Can't include meridiem when specifying 24-hour format\"\n );\n }\n return {\n input,\n tokens: this.tokens,\n regex: this.regex,\n rawMatches,\n matches,\n result,\n zone,\n specificOffset,\n };\n }\n }\n\n get isValid() {\n return !this.disqualifyingUnit;\n }\n\n get invalidReason() {\n return this.disqualifyingUnit ? this.disqualifyingUnit.invalidReason : null;\n }\n}\n\nfunction explainFromTokens(locale, input, format) {\n const parser = new TokenParser(locale, format);\n return parser.explainFromTokens(input);\n}\n\nfunction parseFromTokens(locale, input, format) {\n const { result, zone, specificOffset, invalidReason } = explainFromTokens(locale, input, format);\n return [result, zone, specificOffset, invalidReason];\n}\n\nfunction formatOptsToTokens(formatOpts, locale) {\n if (!formatOpts) {\n return null;\n }\n\n const formatter = Formatter.create(locale, formatOpts);\n const df = formatter.dtFormatter(getDummyDateTime());\n const parts = df.formatToParts();\n const resolvedOpts = df.resolvedOptions();\n return parts.map((p) => tokenForPart(p, formatOpts, resolvedOpts));\n}\n\nconst INVALID = \"Invalid DateTime\";\nconst MAX_DATE = 8.64e15;\n\nfunction unsupportedZone(zone) {\n return new Invalid(\"unsupported zone\", `the zone \"${zone.name}\" is not supported`);\n}\n\n// we cache week data on the DT object and this intermediates the cache\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedWeekData(dt) {\n if (dt.weekData === null) {\n dt.weekData = gregorianToWeek(dt.c);\n }\n return dt.weekData;\n}\n\n/**\n * @param {DateTime} dt\n */\nfunction possiblyCachedLocalWeekData(dt) {\n if (dt.localWeekData === null) {\n dt.localWeekData = gregorianToWeek(\n dt.c,\n dt.loc.getMinDaysInFirstWeek(),\n dt.loc.getStartOfWeek()\n );\n }\n return dt.localWeekData;\n}\n\n// clone really means, \"make a new object with these modifications\". all \"setters\" really use this\n// to create a new object while only changing some of the properties\nfunction clone(inst, alts) {\n const current = {\n ts: inst.ts,\n zone: inst.zone,\n c: inst.c,\n o: inst.o,\n loc: inst.loc,\n invalid: inst.invalid,\n };\n return new DateTime({ ...current, ...alts, old: current });\n}\n\n// find the right offset a given local time. The o input is our guess, which determines which\n// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)\nfunction fixOffset(localTS, o, tz) {\n // Our UTC time is just a guess because our offset is just a guess\n let utcGuess = localTS - o * 60 * 1000;\n\n // Test whether the zone matches the offset for this ts\n const o2 = tz.offset(utcGuess);\n\n // If so, offset didn't change and we're done\n if (o === o2) {\n return [utcGuess, o];\n }\n\n // If not, change the ts by the difference in the offset\n utcGuess -= (o2 - o) * 60 * 1000;\n\n // If that gives us the local time we want, we're done\n const o3 = tz.offset(utcGuess);\n if (o2 === o3) {\n return [utcGuess, o2];\n }\n\n // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time\n return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];\n}\n\n// convert an epoch timestamp into a calendar object with the given offset\nfunction tsToObj(ts, offset) {\n ts += offset * 60 * 1000;\n\n const d = new Date(ts);\n\n return {\n year: d.getUTCFullYear(),\n month: d.getUTCMonth() + 1,\n day: d.getUTCDate(),\n hour: d.getUTCHours(),\n minute: d.getUTCMinutes(),\n second: d.getUTCSeconds(),\n millisecond: d.getUTCMilliseconds(),\n };\n}\n\n// convert a calendar object to a epoch timestamp\nfunction objToTS(obj, offset, zone) {\n return fixOffset(objToLocalTS(obj), offset, zone);\n}\n\n// create a new DT instance by adding a duration, adjusting for DSTs\nfunction adjustTime(inst, dur) {\n const oPre = inst.o,\n year = inst.c.year + Math.trunc(dur.years),\n month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3,\n c = {\n ...inst.c,\n year,\n month,\n day:\n Math.min(inst.c.day, daysInMonth(year, month)) +\n Math.trunc(dur.days) +\n Math.trunc(dur.weeks) * 7,\n },\n millisToAdd = Duration.fromObject({\n years: dur.years - Math.trunc(dur.years),\n quarters: dur.quarters - Math.trunc(dur.quarters),\n months: dur.months - Math.trunc(dur.months),\n weeks: dur.weeks - Math.trunc(dur.weeks),\n days: dur.days - Math.trunc(dur.days),\n hours: dur.hours,\n minutes: dur.minutes,\n seconds: dur.seconds,\n milliseconds: dur.milliseconds,\n }).as(\"milliseconds\"),\n localTS = objToLocalTS(c);\n\n let [ts, o] = fixOffset(localTS, oPre, inst.zone);\n\n if (millisToAdd !== 0) {\n ts += millisToAdd;\n // that could have changed the offset by going over a DST, but we want to keep the ts the same\n o = inst.zone.offset(ts);\n }\n\n return { ts, o };\n}\n\n// helper useful in turning the results of parsing into real dates\n// by handling the zone options\nfunction parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {\n const { setZone, zone } = opts;\n if ((parsed && Object.keys(parsed).length !== 0) || parsedZone) {\n const interpretationZone = parsedZone || zone,\n inst = DateTime.fromObject(parsed, {\n ...opts,\n zone: interpretationZone,\n specificOffset,\n });\n return setZone ? inst : inst.setZone(zone);\n } else {\n return DateTime.invalid(\n new Invalid(\"unparsable\", `the input \"${text}\" can't be parsed as ${format}`)\n );\n }\n}\n\n// if you want to output a technical format (e.g. RFC 2822), this helper\n// helps handle the details\nfunction toTechFormat(dt, format, allowZ = true) {\n return dt.isValid\n ? Formatter.create(Locale.create(\"en-US\"), {\n allowZ,\n forceSimple: true,\n }).formatDateTimeFromString(dt, format)\n : null;\n}\n\nfunction toISODate(o, extended, precision) {\n const longFormat = o.c.year > 9999 || o.c.year < 0;\n let c = \"\";\n if (longFormat && o.c.year >= 0) c += \"+\";\n c += padStart(o.c.year, longFormat ? 6 : 4);\n if (precision === \"year\") return c;\n if (extended) {\n c += \"-\";\n c += padStart(o.c.month);\n if (precision === \"month\") return c;\n c += \"-\";\n } else {\n c += padStart(o.c.month);\n if (precision === \"month\") return c;\n }\n c += padStart(o.c.day);\n return c;\n}\n\nfunction toISOTime(\n o,\n extended,\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone,\n precision\n) {\n let showSeconds = !suppressSeconds || o.c.millisecond !== 0 || o.c.second !== 0,\n c = \"\";\n switch (precision) {\n case \"day\":\n case \"month\":\n case \"year\":\n break;\n default:\n c += padStart(o.c.hour);\n if (precision === \"hour\") break;\n if (extended) {\n c += \":\";\n c += padStart(o.c.minute);\n if (precision === \"minute\") break;\n if (showSeconds) {\n c += \":\";\n c += padStart(o.c.second);\n }\n } else {\n c += padStart(o.c.minute);\n if (precision === \"minute\") break;\n if (showSeconds) {\n c += padStart(o.c.second);\n }\n }\n if (precision === \"second\") break;\n if (showSeconds && (!suppressMilliseconds || o.c.millisecond !== 0)) {\n c += \".\";\n c += padStart(o.c.millisecond, 3);\n }\n }\n\n if (includeOffset) {\n if (o.isOffsetFixed && o.offset === 0 && !extendedZone) {\n c += \"Z\";\n } else if (o.o < 0) {\n c += \"-\";\n c += padStart(Math.trunc(-o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(-o.o % 60));\n } else {\n c += \"+\";\n c += padStart(Math.trunc(o.o / 60));\n c += \":\";\n c += padStart(Math.trunc(o.o % 60));\n }\n }\n\n if (extendedZone) {\n c += \"[\" + o.zone.ianaName + \"]\";\n }\n return c;\n}\n\n// defaults for unspecified units in the supported calendars\nconst defaultUnitValues = {\n month: 1,\n day: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n },\n defaultWeekUnitValues = {\n weekNumber: 1,\n weekday: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n },\n defaultOrdinalUnitValues = {\n ordinal: 1,\n hour: 0,\n minute: 0,\n second: 0,\n millisecond: 0,\n };\n\n// Units in the supported calendars, sorted by bigness\nconst orderedUnits = [\"year\", \"month\", \"day\", \"hour\", \"minute\", \"second\", \"millisecond\"],\n orderedWeekUnits = [\n \"weekYear\",\n \"weekNumber\",\n \"weekday\",\n \"hour\",\n \"minute\",\n \"second\",\n \"millisecond\",\n ],\n orderedOrdinalUnits = [\"year\", \"ordinal\", \"hour\", \"minute\", \"second\", \"millisecond\"];\n\n// standardize case and plurality in units\nfunction normalizeUnit(unit) {\n const normalized = {\n year: \"year\",\n years: \"year\",\n month: \"month\",\n months: \"month\",\n day: \"day\",\n days: \"day\",\n hour: \"hour\",\n hours: \"hour\",\n minute: \"minute\",\n minutes: \"minute\",\n quarter: \"quarter\",\n quarters: \"quarter\",\n second: \"second\",\n seconds: \"second\",\n millisecond: \"millisecond\",\n milliseconds: \"millisecond\",\n weekday: \"weekday\",\n weekdays: \"weekday\",\n weeknumber: \"weekNumber\",\n weeksnumber: \"weekNumber\",\n weeknumbers: \"weekNumber\",\n weekyear: \"weekYear\",\n weekyears: \"weekYear\",\n ordinal: \"ordinal\",\n }[unit.toLowerCase()];\n\n if (!normalized) throw new InvalidUnitError(unit);\n\n return normalized;\n}\n\nfunction normalizeUnitWithLocalWeeks(unit) {\n switch (unit.toLowerCase()) {\n case \"localweekday\":\n case \"localweekdays\":\n return \"localWeekday\";\n case \"localweeknumber\":\n case \"localweeknumbers\":\n return \"localWeekNumber\";\n case \"localweekyear\":\n case \"localweekyears\":\n return \"localWeekYear\";\n default:\n return normalizeUnit(unit);\n }\n}\n\n// cache offsets for zones based on the current timestamp when this function is\n// first called. When we are handling a datetime from components like (year,\n// month, day, hour) in a time zone, we need a guess about what the timezone\n// offset is so that we can convert into a UTC timestamp. One way is to find the\n// offset of now in the zone. The actual date may have a different offset (for\n// example, if we handle a date in June while we're in December in a zone that\n// observes DST), but we can check and adjust that.\n//\n// When handling many dates, calculating the offset for now every time is\n// expensive. It's just a guess, so we can cache the offset to use even if we\n// are right on a time change boundary (we'll just correct in the other\n// direction). Using a timestamp from first read is a slight optimization for\n// handling dates close to the current date, since those dates will usually be\n// in the same offset (we could set the timestamp statically, instead). We use a\n// single timestamp for all zones to make things a bit more predictable.\n//\n// This is safe for quickDT (used by local() and utc()) because we don't fill in\n// higher-order units from tsNow (as we do in fromObject, this requires that\n// offset is calculated from tsNow).\n/**\n * @param {Zone} zone\n * @return {number}\n */\nfunction guessOffsetForZone(zone) {\n if (zoneOffsetTs === undefined) {\n zoneOffsetTs = Settings.now();\n }\n\n // Do not cache anything but IANA zones, because it is not safe to do so.\n // Guessing an offset which is not present in the zone can cause wrong results from fixOffset\n if (zone.type !== \"iana\") {\n return zone.offset(zoneOffsetTs);\n }\n const zoneName = zone.name;\n let offsetGuess = zoneOffsetGuessCache.get(zoneName);\n if (offsetGuess === undefined) {\n offsetGuess = zone.offset(zoneOffsetTs);\n zoneOffsetGuessCache.set(zoneName, offsetGuess);\n }\n return offsetGuess;\n}\n\n// this is a dumbed down version of fromObject() that runs about 60% faster\n// but doesn't do any validation, makes a bunch of assumptions about what units\n// are present, and so on.\nfunction quickDT(obj, opts) {\n const zone = normalizeZone(opts.zone, Settings.defaultZone);\n if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n }\n\n const loc = Locale.fromObject(opts);\n\n let ts, o;\n\n // assume we have the higher-order units\n if (!isUndefined(obj.year)) {\n for (const u of orderedUnits) {\n if (isUndefined(obj[u])) {\n obj[u] = defaultUnitValues[u];\n }\n }\n\n const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n const offsetProvis = guessOffsetForZone(zone);\n [ts, o] = objToTS(obj, offsetProvis, zone);\n } else {\n ts = Settings.now();\n }\n\n return new DateTime({ ts, zone, loc, o });\n}\n\nfunction diffRelative(start, end, opts) {\n const round = isUndefined(opts.round) ? true : opts.round,\n rounding = isUndefined(opts.rounding) ? \"trunc\" : opts.rounding,\n format = (c, unit) => {\n c = roundTo(c, round || opts.calendary ? 0 : 2, opts.calendary ? \"round\" : rounding);\n const formatter = end.loc.clone(opts).relFormatter(opts);\n return formatter.format(c, unit);\n },\n differ = (unit) => {\n if (opts.calendary) {\n if (!end.hasSame(start, unit)) {\n return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);\n } else return 0;\n } else {\n return end.diff(start, unit).get(unit);\n }\n };\n\n if (opts.unit) {\n return format(differ(opts.unit), opts.unit);\n }\n\n for (const unit of opts.units) {\n const count = differ(unit);\n if (Math.abs(count) >= 1) {\n return format(count, unit);\n }\n }\n return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]);\n}\n\nfunction lastOpts(argList) {\n let opts = {},\n args;\n if (argList.length > 0 && typeof argList[argList.length - 1] === \"object\") {\n opts = argList[argList.length - 1];\n args = Array.from(argList).slice(0, argList.length - 1);\n } else {\n args = Array.from(argList);\n }\n return [opts, args];\n}\n\n/**\n * Timestamp to use for cached zone offset guesses (exposed for test)\n */\nlet zoneOffsetTs;\n/**\n * Cache for zone offset guesses (exposed for test).\n *\n * This optimizes quickDT via guessOffsetForZone to avoid repeated calls of\n * zone.offset().\n */\nconst zoneOffsetGuessCache = new Map();\n\n/**\n * A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.\n *\n * A DateTime comprises of:\n * * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.\n * * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).\n * * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.\n *\n * Here is a brief overview of the most commonly used functionality it provides:\n *\n * * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime.local}, {@link DateTime.utc}, and (most flexibly) {@link DateTime.fromObject}. To create one from a standard string format, use {@link DateTime.fromISO}, {@link DateTime.fromHTTP}, and {@link DateTime.fromRFC2822}. To create one from a custom string format, use {@link DateTime.fromFormat}. To create one from a native JS date, use {@link DateTime.fromJSDate}.\n * * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link DateTime#toObject}), use the {@link DateTime#year}, {@link DateTime#month},\n * {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.\n * * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.\n * * **Configuration** See the {@link DateTime#locale} and {@link DateTime#numberingSystem} accessors.\n * * **Transformation**: To transform the DateTime into other DateTimes, use {@link DateTime#set}, {@link DateTime#reconfigure}, {@link DateTime#setZone}, {@link DateTime#setLocale}, {@link DateTime.plus}, {@link DateTime#minus}, {@link DateTime#endOf}, {@link DateTime#startOf}, {@link DateTime#toUTC}, and {@link DateTime#toLocal}.\n * * **Output**: To convert the DateTime to other representations, use the {@link DateTime#toRelative}, {@link DateTime#toRelativeCalendar}, {@link DateTime#toJSON}, {@link DateTime#toISO}, {@link DateTime#toHTTP}, {@link DateTime#toObject}, {@link DateTime#toRFC2822}, {@link DateTime#toString}, {@link DateTime#toLocaleString}, {@link DateTime#toFormat}, {@link DateTime#toMillis} and {@link DateTime#toJSDate}.\n *\n * There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.\n */\nclass DateTime {\n /**\n * @access private\n */\n constructor(config) {\n const zone = config.zone || Settings.defaultZone;\n\n let invalid =\n config.invalid ||\n (Number.isNaN(config.ts) ? new Invalid(\"invalid input\") : null) ||\n (!zone.isValid ? unsupportedZone(zone) : null);\n /**\n * @access private\n */\n this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;\n\n let c = null,\n o = null;\n if (!invalid) {\n const unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);\n\n if (unchanged) {\n [c, o] = [config.old.c, config.old.o];\n } else {\n // If an offset has been passed and we have not been called from\n // clone(), we can trust it and avoid the offset calculation.\n const ot = isNumber(config.o) && !config.old ? config.o : zone.offset(this.ts);\n c = tsToObj(this.ts, ot);\n invalid = Number.isNaN(c.year) ? new Invalid(\"invalid input\") : null;\n c = invalid ? null : c;\n o = invalid ? null : ot;\n }\n }\n\n /**\n * @access private\n */\n this._zone = zone;\n /**\n * @access private\n */\n this.loc = config.loc || Locale.create();\n /**\n * @access private\n */\n this.invalid = invalid;\n /**\n * @access private\n */\n this.weekData = null;\n /**\n * @access private\n */\n this.localWeekData = null;\n /**\n * @access private\n */\n this.c = c;\n /**\n * @access private\n */\n this.o = o;\n /**\n * @access private\n */\n this.isLuxonDateTime = true;\n }\n\n // CONSTRUCT\n\n /**\n * Create a DateTime for the current instant, in the system's time zone.\n *\n * Use Settings to override these default values if needed.\n * @example DateTime.now().toISO() //~> now in the ISO format\n * @return {DateTime}\n */\n static now() {\n return new DateTime({});\n }\n\n /**\n * Create a local DateTime\n * @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month, 1-indexed\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @example DateTime.local() //~> now\n * @example DateTime.local({ zone: \"America/New_York\" }) //~> now, in US east coast time\n * @example DateTime.local(2017) //~> 2017-01-01T00:00:00\n * @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00\n * @example DateTime.local(2017, 3, 12, { locale: \"fr\" }) //~> 2017-03-12T00:00:00, with a French locale\n * @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00\n * @example DateTime.local(2017, 3, 12, 5, { zone: \"utc\" }) //~> 2017-03-12T05:00:00, in UTC\n * @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00\n * @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10\n * @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765\n * @return {DateTime}\n */\n static local() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n }\n\n /**\n * Create a DateTime in UTC\n * @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used\n * @param {number} [month=1] - The month, 1-indexed\n * @param {number} [day=1] - The day of the month\n * @param {number} [hour=0] - The hour of the day, in 24-hour time\n * @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59\n * @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59\n * @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999\n * @param {Object} options - configuration options for the DateTime\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @param {string} [options.weekSettings] - the week settings to set on the resulting DateTime instance\n * @example DateTime.utc() //~> now\n * @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z\n * @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z\n * @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, { locale: \"fr\" }) //~> 2017-03-12T05:45:00Z with a French locale\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z\n * @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: \"fr\" }) //~> 2017-03-12T05:45:10.765Z with a French locale\n * @return {DateTime}\n */\n static utc() {\n const [opts, args] = lastOpts(arguments),\n [year, month, day, hour, minute, second, millisecond] = args;\n\n opts.zone = FixedOffsetZone.utcInstance;\n return quickDT({ year, month, day, hour, minute, second, millisecond }, opts);\n }\n\n /**\n * Create a DateTime from a JavaScript Date object. Uses the default zone.\n * @param {Date} date - a JavaScript Date object\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @return {DateTime}\n */\n static fromJSDate(date, options = {}) {\n const ts = isDate(date) ? date.valueOf() : NaN;\n if (Number.isNaN(ts)) {\n return DateTime.invalid(\"invalid input\");\n }\n\n const zoneToUse = normalizeZone(options.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n return new DateTime({\n ts: ts,\n zone: zoneToUse,\n loc: Locale.fromObject(options),\n });\n }\n\n /**\n * Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} milliseconds - a number of milliseconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromMillis(milliseconds, options = {}) {\n if (!isNumber(milliseconds)) {\n throw new InvalidArgumentError(\n `fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`\n );\n } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {\n // this isn't perfect because we can still end up out of range because of additional shifting, but it's a start\n return DateTime.invalid(\"Timestamp out of range\");\n } else {\n return new DateTime({\n ts: milliseconds,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options),\n });\n }\n }\n\n /**\n * Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.\n * @param {number} seconds - a number of seconds since 1970 UTC\n * @param {Object} options - configuration options for the DateTime\n * @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into\n * @param {string} [options.locale] - a locale to set on the resulting DateTime instance\n * @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} options.weekSettings - the week settings to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromSeconds(seconds, options = {}) {\n if (!isNumber(seconds)) {\n throw new InvalidArgumentError(\"fromSeconds requires a numerical input\");\n } else {\n return new DateTime({\n ts: seconds * 1000,\n zone: normalizeZone(options.zone, Settings.defaultZone),\n loc: Locale.fromObject(options),\n });\n }\n }\n\n /**\n * Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.\n * @param {Object} obj - the object to create the DateTime from\n * @param {number} obj.year - a year, such as 1987\n * @param {number} obj.month - a month, 1-12\n * @param {number} obj.day - a day of the month, 1-31, depending on the month\n * @param {number} obj.ordinal - day of the year, 1-365 or 366\n * @param {number} obj.weekYear - an ISO week year\n * @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year\n * @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday\n * @param {number} obj.localWeekYear - a week year, according to the locale\n * @param {number} obj.localWeekNumber - a week number, between 1 and 52 or 53, depending on the year, according to the locale\n * @param {number} obj.localWeekday - a weekday, 1-7, where 1 is the first and 7 is the last day of the week, according to the locale\n * @param {number} obj.hour - hour of the day, 0-23\n * @param {number} obj.minute - minute of the hour, 0-59\n * @param {number} obj.second - second of the minute, 0-59\n * @param {number} obj.millisecond - millisecond of the second, 0-999\n * @param {Object} opts - options for creating this DateTime\n * @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()\n * @param {string} [opts.locale='system\\'s locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'\n * @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })\n * @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })\n * @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'\n * @example DateTime.fromObject({ localWeekYear: 2022, localWeekNumber: 1, localWeekday: 1 }, { locale: \"en-US\" }).toISODate() //=> '2021-12-26'\n * @return {DateTime}\n */\n static fromObject(obj, opts = {}) {\n obj = obj || {};\n const zoneToUse = normalizeZone(opts.zone, Settings.defaultZone);\n if (!zoneToUse.isValid) {\n return DateTime.invalid(unsupportedZone(zoneToUse));\n }\n\n const loc = Locale.fromObject(opts);\n const normalized = normalizeObject(obj, normalizeUnitWithLocalWeeks);\n const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, loc);\n\n const tsNow = Settings.now(),\n offsetProvis = !isUndefined(opts.specificOffset)\n ? opts.specificOffset\n : zoneToUse.offset(tsNow),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n // cases:\n // just a weekday -> this week's instance of that weekday, no worries\n // (gregorian data or ordinal) + (weekYear or weekNumber) -> error\n // (gregorian month or day) + ordinal -> error\n // otherwise just use weeks or ordinals or gregorian, depending on what's specified\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n const useWeekData = definiteWeekDef || (normalized.weekday && !containsGregor);\n\n // configure ourselves to deal with gregorian dates or week stuff\n let units,\n defaultValues,\n objNow = tsToObj(tsNow, offsetProvis);\n if (useWeekData) {\n units = orderedWeekUnits;\n defaultValues = defaultWeekUnitValues;\n objNow = gregorianToWeek(objNow, minDaysInFirstWeek, startOfWeek);\n } else if (containsOrdinal) {\n units = orderedOrdinalUnits;\n defaultValues = defaultOrdinalUnitValues;\n objNow = gregorianToOrdinal(objNow);\n } else {\n units = orderedUnits;\n defaultValues = defaultUnitValues;\n }\n\n // set default values for missing stuff\n let foundFirst = false;\n for (const u of units) {\n const v = normalized[u];\n if (!isUndefined(v)) {\n foundFirst = true;\n } else if (foundFirst) {\n normalized[u] = defaultValues[u];\n } else {\n normalized[u] = objNow[u];\n }\n }\n\n // make sure the values we have are in range\n const higherOrderInvalid = useWeekData\n ? hasInvalidWeekData(normalized, minDaysInFirstWeek, startOfWeek)\n : containsOrdinal\n ? hasInvalidOrdinalData(normalized)\n : hasInvalidGregorianData(normalized),\n invalid = higherOrderInvalid || hasInvalidTimeData(normalized);\n\n if (invalid) {\n return DateTime.invalid(invalid);\n }\n\n // compute the actual time\n const gregorian = useWeekData\n ? weekToGregorian(normalized, minDaysInFirstWeek, startOfWeek)\n : containsOrdinal\n ? ordinalToGregorian(normalized)\n : normalized,\n [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse),\n inst = new DateTime({\n ts: tsFinal,\n zone: zoneToUse,\n o: offsetFinal,\n loc,\n });\n\n // gregorian data + weekday serves only to validate\n if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {\n return DateTime.invalid(\n \"mismatched weekday\",\n `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`\n );\n }\n\n if (!inst.isValid) {\n return DateTime.invalid(inst.invalid);\n }\n\n return inst;\n }\n\n /**\n * Create a DateTime from an ISO 8601 string\n * @param {string} text - the ISO string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance\n * @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance\n * @param {string} [opts.weekSettings] - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromISO('2016-05-25T09:08:34.123')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')\n * @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})\n * @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})\n * @example DateTime.fromISO('2016-W05-4')\n * @return {DateTime}\n */\n static fromISO(text, opts = {}) {\n const [vals, parsedZone] = parseISODate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"ISO 8601\", text);\n }\n\n /**\n * Create a DateTime from an RFC 2822 string\n * @param {string} text - the RFC 2822 string\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')\n * @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')\n * @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')\n * @return {DateTime}\n */\n static fromRFC2822(text, opts = {}) {\n const [vals, parsedZone] = parseRFC2822Date(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"RFC 2822\", text);\n }\n\n /**\n * Create a DateTime from an HTTP header date\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @param {string} text - the HTTP header date\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.\n * @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.\n * @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')\n * @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')\n * @return {DateTime}\n */\n static fromHTTP(text, opts = {}) {\n const [vals, parsedZone] = parseHTTPDate(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"HTTP\", opts);\n }\n\n /**\n * Create a DateTime from an input string and format string.\n * Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see the link below for the formats)\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @return {DateTime}\n */\n static fromFormat(text, fmt, opts = {}) {\n if (isUndefined(text) || isUndefined(fmt)) {\n throw new InvalidArgumentError(\"fromFormat requires an input string and a format\");\n }\n\n const { locale = null, numberingSystem = null } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n }),\n [vals, parsedZone, specificOffset, invalid] = parseFromTokens(localeToUse, text, fmt);\n if (invalid) {\n return DateTime.invalid(invalid);\n } else {\n return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text, specificOffset);\n }\n }\n\n /**\n * @deprecated use fromFormat instead\n */\n static fromString(text, fmt, opts = {}) {\n return DateTime.fromFormat(text, fmt, opts);\n }\n\n /**\n * Create a DateTime from a SQL date, time, or datetime\n * Defaults to en-US if no locale has been specified, regardless of the system's locale\n * @param {string} text - the string to parse\n * @param {Object} opts - options to affect the creation\n * @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone\n * @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one\n * @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale\n * @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system\n * @param {string} opts.weekSettings - the week settings to set on the resulting DateTime instance\n * @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance\n * @example DateTime.fromSQL('2017-05-15')\n * @example DateTime.fromSQL('2017-05-15 09:12:34')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })\n * @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })\n * @example DateTime.fromSQL('09:12:34.342')\n * @return {DateTime}\n */\n static fromSQL(text, opts = {}) {\n const [vals, parsedZone] = parseSQL(text);\n return parseDataToDateTime(vals, parsedZone, opts, \"SQL\", text);\n }\n\n /**\n * Create an invalid DateTime.\n * @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent.\n * @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information\n * @return {DateTime}\n */\n static invalid(reason, explanation = null) {\n if (!reason) {\n throw new InvalidArgumentError(\"need to specify a reason the DateTime is invalid\");\n }\n\n const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);\n\n if (Settings.throwOnInvalid) {\n throw new InvalidDateTimeError(invalid);\n } else {\n return new DateTime({ invalid });\n }\n }\n\n /**\n * Check if an object is an instance of DateTime. Works across context boundaries\n * @param {object} o\n * @return {boolean}\n */\n static isDateTime(o) {\n return (o && o.isLuxonDateTime) || false;\n }\n\n /**\n * Produce the format string for a set of options\n * @param formatOpts\n * @param localeOpts\n * @returns {string}\n */\n static parseFormatForOpts(formatOpts, localeOpts = {}) {\n const tokenList = formatOptsToTokens(formatOpts, Locale.fromObject(localeOpts));\n return !tokenList ? null : tokenList.map((t) => (t ? t.val : null)).join(\"\");\n }\n\n /**\n * Produce the the fully expanded format token for the locale\n * Does NOT quote characters, so quoted tokens will not round trip correctly\n * @param fmt\n * @param localeOpts\n * @returns {string}\n */\n static expandFormat(fmt, localeOpts = {}) {\n const expanded = expandMacroTokens(Formatter.parseFormat(fmt), Locale.fromObject(localeOpts));\n return expanded.map((t) => t.val).join(\"\");\n }\n\n static resetCache() {\n zoneOffsetTs = undefined;\n zoneOffsetGuessCache.clear();\n }\n\n // INFO\n\n /**\n * Get the value of unit.\n * @param {string} unit - a unit such as 'minute' or 'day'\n * @example DateTime.local(2017, 7, 4).get('month'); //=> 7\n * @example DateTime.local(2017, 7, 4).get('day'); //=> 4\n * @return {number}\n */\n get(unit) {\n return this[unit];\n }\n\n /**\n * Returns whether the DateTime is valid. Invalid DateTimes occur when:\n * * The DateTime was created from invalid calendar information, such as the 13th month or February 30\n * * The DateTime was created by an operation on another invalid date\n * @type {boolean}\n */\n get isValid() {\n return this.invalid === null;\n }\n\n /**\n * Returns an error code if this DateTime is invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidReason() {\n return this.invalid ? this.invalid.reason : null;\n }\n\n /**\n * Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid\n * @type {string}\n */\n get invalidExplanation() {\n return this.invalid ? this.invalid.explanation : null;\n }\n\n /**\n * Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime\n *\n * @type {string}\n */\n get locale() {\n return this.isValid ? this.loc.locale : null;\n }\n\n /**\n * Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime\n *\n * @type {string}\n */\n get numberingSystem() {\n return this.isValid ? this.loc.numberingSystem : null;\n }\n\n /**\n * Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime\n *\n * @type {string}\n */\n get outputCalendar() {\n return this.isValid ? this.loc.outputCalendar : null;\n }\n\n /**\n * Get the time zone associated with this DateTime.\n * @type {Zone}\n */\n get zone() {\n return this._zone;\n }\n\n /**\n * Get the name of the time zone.\n * @type {string}\n */\n get zoneName() {\n return this.isValid ? this.zone.name : null;\n }\n\n /**\n * Get the year\n * @example DateTime.local(2017, 5, 25).year //=> 2017\n * @type {number}\n */\n get year() {\n return this.isValid ? this.c.year : NaN;\n }\n\n /**\n * Get the quarter\n * @example DateTime.local(2017, 5, 25).quarter //=> 2\n * @type {number}\n */\n get quarter() {\n return this.isValid ? Math.ceil(this.c.month / 3) : NaN;\n }\n\n /**\n * Get the month (1-12).\n * @example DateTime.local(2017, 5, 25).month //=> 5\n * @type {number}\n */\n get month() {\n return this.isValid ? this.c.month : NaN;\n }\n\n /**\n * Get the day of the month (1-30ish).\n * @example DateTime.local(2017, 5, 25).day //=> 25\n * @type {number}\n */\n get day() {\n return this.isValid ? this.c.day : NaN;\n }\n\n /**\n * Get the hour of the day (0-23).\n * @example DateTime.local(2017, 5, 25, 9).hour //=> 9\n * @type {number}\n */\n get hour() {\n return this.isValid ? this.c.hour : NaN;\n }\n\n /**\n * Get the minute of the hour (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30\n * @type {number}\n */\n get minute() {\n return this.isValid ? this.c.minute : NaN;\n }\n\n /**\n * Get the second of the minute (0-59).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52\n * @type {number}\n */\n get second() {\n return this.isValid ? this.c.second : NaN;\n }\n\n /**\n * Get the millisecond of the second (0-999).\n * @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654\n * @type {number}\n */\n get millisecond() {\n return this.isValid ? this.c.millisecond : NaN;\n }\n\n /**\n * Get the week year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 12, 31).weekYear //=> 2015\n * @type {number}\n */\n get weekYear() {\n return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the week number of the week year (1-52ish).\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2017, 5, 25).weekNumber //=> 21\n * @type {number}\n */\n get weekNumber() {\n return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the day of the week.\n * 1 is Monday and 7 is Sunday\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2014, 11, 31).weekday //=> 4\n * @type {number}\n */\n get weekday() {\n return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;\n }\n\n /**\n * Returns true if this date is on a weekend according to the locale, false otherwise\n * @returns {boolean}\n */\n get isWeekend() {\n return this.isValid && this.loc.getWeekendDays().includes(this.weekday);\n }\n\n /**\n * Get the day of the week according to the locale.\n * 1 is the first day of the week and 7 is the last day of the week.\n * If the locale assigns Sunday as the first day of the week, then a date which is a Sunday will return 1,\n * @returns {number}\n */\n get localWeekday() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekday : NaN;\n }\n\n /**\n * Get the week number of the week year according to the locale. Different locales assign week numbers differently,\n * because the week can start on different days of the week (see localWeekday) and because a different number of days\n * is required for a week to count as the first week of a year.\n * @returns {number}\n */\n get localWeekNumber() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekNumber : NaN;\n }\n\n /**\n * Get the week year according to the locale. Different locales assign week numbers (and therefor week years)\n * differently, see localWeekNumber.\n * @returns {number}\n */\n get localWeekYear() {\n return this.isValid ? possiblyCachedLocalWeekData(this).weekYear : NaN;\n }\n\n /**\n * Get the ordinal (meaning the day of the year)\n * @example DateTime.local(2017, 5, 25).ordinal //=> 145\n * @type {number|DateTime}\n */\n get ordinal() {\n return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;\n }\n\n /**\n * Get the human readable short month name, such as 'Oct'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthShort //=> Oct\n * @type {string}\n */\n get monthShort() {\n return this.isValid ? Info.months(\"short\", { locObj: this.loc })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable long month name, such as 'October'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).monthLong //=> October\n * @type {string}\n */\n get monthLong() {\n return this.isValid ? Info.months(\"long\", { locObj: this.loc })[this.month - 1] : null;\n }\n\n /**\n * Get the human readable short weekday, such as 'Mon'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon\n * @type {string}\n */\n get weekdayShort() {\n return this.isValid ? Info.weekdays(\"short\", { locObj: this.loc })[this.weekday - 1] : null;\n }\n\n /**\n * Get the human readable long weekday, such as 'Monday'.\n * Defaults to the system's locale if no locale has been specified\n * @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday\n * @type {string}\n */\n get weekdayLong() {\n return this.isValid ? Info.weekdays(\"long\", { locObj: this.loc })[this.weekday - 1] : null;\n }\n\n /**\n * Get the UTC offset of this DateTime in minutes\n * @example DateTime.now().offset //=> -240\n * @example DateTime.utc().offset //=> 0\n * @type {number}\n */\n get offset() {\n return this.isValid ? +this.o : NaN;\n }\n\n /**\n * Get the short human name for the zone's current offset, for example \"EST\" or \"EDT\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameShort() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"short\",\n locale: this.locale,\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get the long human name for the zone's current offset, for example \"Eastern Standard Time\" or \"Eastern Daylight Time\".\n * Defaults to the system's locale if no locale has been specified\n * @type {string}\n */\n get offsetNameLong() {\n if (this.isValid) {\n return this.zone.offsetName(this.ts, {\n format: \"long\",\n locale: this.locale,\n });\n } else {\n return null;\n }\n }\n\n /**\n * Get whether this zone's offset ever changes, as in a DST.\n * @type {boolean}\n */\n get isOffsetFixed() {\n return this.isValid ? this.zone.isUniversal : null;\n }\n\n /**\n * Get whether the DateTime is in a DST.\n * @type {boolean}\n */\n get isInDST() {\n if (this.isOffsetFixed) {\n return false;\n } else {\n return (\n this.offset > this.set({ month: 1, day: 1 }).offset ||\n this.offset > this.set({ month: 5 }).offset\n );\n }\n }\n\n /**\n * Get those DateTimes which have the same local time as this DateTime, but a different offset from UTC\n * in this DateTime's zone. During DST changes local time can be ambiguous, for example\n * `2023-10-29T02:30:00` in `Europe/Berlin` can have offset `+01:00` or `+02:00`.\n * This method will return both possible DateTimes if this DateTime's local time is ambiguous.\n * @returns {DateTime[]}\n */\n getPossibleOffsets() {\n if (!this.isValid || this.isOffsetFixed) {\n return [this];\n }\n const dayMs = 86400000;\n const minuteMs = 60000;\n const localTS = objToLocalTS(this.c);\n const oEarlier = this.zone.offset(localTS - dayMs);\n const oLater = this.zone.offset(localTS + dayMs);\n\n const o1 = this.zone.offset(localTS - oEarlier * minuteMs);\n const o2 = this.zone.offset(localTS - oLater * minuteMs);\n if (o1 === o2) {\n return [this];\n }\n const ts1 = localTS - o1 * minuteMs;\n const ts2 = localTS - o2 * minuteMs;\n const c1 = tsToObj(ts1, o1);\n const c2 = tsToObj(ts2, o2);\n if (\n c1.hour === c2.hour &&\n c1.minute === c2.minute &&\n c1.second === c2.second &&\n c1.millisecond === c2.millisecond\n ) {\n return [clone(this, { ts: ts1 }), clone(this, { ts: ts2 })];\n }\n return [this];\n }\n\n /**\n * Returns true if this DateTime is in a leap year, false otherwise\n * @example DateTime.local(2016).isInLeapYear //=> true\n * @example DateTime.local(2013).isInLeapYear //=> false\n * @type {boolean}\n */\n get isInLeapYear() {\n return isLeapYear(this.year);\n }\n\n /**\n * Returns the number of days in this DateTime's month\n * @example DateTime.local(2016, 2).daysInMonth //=> 29\n * @example DateTime.local(2016, 3).daysInMonth //=> 31\n * @type {number}\n */\n get daysInMonth() {\n return daysInMonth(this.year, this.month);\n }\n\n /**\n * Returns the number of days in this DateTime's year\n * @example DateTime.local(2016).daysInYear //=> 366\n * @example DateTime.local(2013).daysInYear //=> 365\n * @type {number}\n */\n get daysInYear() {\n return this.isValid ? daysInYear(this.year) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's year\n * @see https://en.wikipedia.org/wiki/ISO_week_date\n * @example DateTime.local(2004).weeksInWeekYear //=> 53\n * @example DateTime.local(2013).weeksInWeekYear //=> 52\n * @type {number}\n */\n get weeksInWeekYear() {\n return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;\n }\n\n /**\n * Returns the number of weeks in this DateTime's local week year\n * @example DateTime.local(2020, 6, {locale: 'en-US'}).weeksInLocalWeekYear //=> 52\n * @example DateTime.local(2020, 6, {locale: 'de-DE'}).weeksInLocalWeekYear //=> 53\n * @type {number}\n */\n get weeksInLocalWeekYear() {\n return this.isValid\n ? weeksInWeekYear(\n this.localWeekYear,\n this.loc.getMinDaysInFirstWeek(),\n this.loc.getStartOfWeek()\n )\n : NaN;\n }\n\n /**\n * Returns the resolved Intl options for this DateTime.\n * This is useful in understanding the behavior of formatting methods\n * @param {Object} opts - the same options as toLocaleString\n * @return {Object}\n */\n resolvedLocaleOptions(opts = {}) {\n const { locale, numberingSystem, calendar } = Formatter.create(\n this.loc.clone(opts),\n opts\n ).resolvedOptions(this);\n return { locale, numberingSystem, outputCalendar: calendar };\n }\n\n // TRANSFORM\n\n /**\n * \"Set\" the DateTime's zone to UTC. Returns a newly-constructed DateTime.\n *\n * Equivalent to {@link DateTime#setZone}('utc')\n * @param {number} [offset=0] - optionally, an offset from UTC in minutes\n * @param {Object} [opts={}] - options to pass to `setZone()`\n * @return {DateTime}\n */\n toUTC(offset = 0, opts = {}) {\n return this.setZone(FixedOffsetZone.instance(offset), opts);\n }\n\n /**\n * \"Set\" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.\n *\n * Equivalent to `setZone('local')`\n * @return {DateTime}\n */\n toLocal() {\n return this.setZone(Settings.defaultZone);\n }\n\n /**\n * \"Set\" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.\n *\n * By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime#plus}. You may wish to use {@link DateTime#toLocal} and {@link DateTime#toUTC} which provide simple convenience wrappers for commonly used zones.\n * @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime#Zone} class.\n * @param {Object} opts - options\n * @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.\n * @return {DateTime}\n */\n setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) {\n zone = normalizeZone(zone, Settings.defaultZone);\n if (zone.equals(this.zone)) {\n return this;\n } else if (!zone.isValid) {\n return DateTime.invalid(unsupportedZone(zone));\n } else {\n let newTS = this.ts;\n if (keepLocalTime || keepCalendarTime) {\n const offsetGuess = zone.offset(this.ts);\n const asObj = this.toObject();\n [newTS] = objToTS(asObj, offsetGuess, zone);\n }\n return clone(this, { ts: newTS, zone });\n }\n }\n\n /**\n * \"Set\" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.\n * @param {Object} properties - the properties to set\n * @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })\n * @return {DateTime}\n */\n reconfigure({ locale, numberingSystem, outputCalendar } = {}) {\n const loc = this.loc.clone({ locale, numberingSystem, outputCalendar });\n return clone(this, { loc });\n }\n\n /**\n * \"Set\" the locale. Returns a newly-constructed DateTime.\n * Just a convenient alias for reconfigure({ locale })\n * @example DateTime.local(2017, 5, 25).setLocale('en-GB')\n * @return {DateTime}\n */\n setLocale(locale) {\n return this.reconfigure({ locale });\n }\n\n /**\n * \"Set\" the values of specified units. Returns a newly-constructed DateTime.\n * You can only set units with this method; for \"setting\" metadata, see {@link DateTime#reconfigure} and {@link DateTime#setZone}.\n *\n * This method also supports setting locale-based week units, i.e. `localWeekday`, `localWeekNumber` and `localWeekYear`.\n * They cannot be mixed with ISO-week units like `weekday`.\n * @param {Object} values - a mapping of units to numbers\n * @example dt.set({ year: 2017 })\n * @example dt.set({ hour: 8, minute: 30 })\n * @example dt.set({ weekday: 5 })\n * @example dt.set({ year: 2005, ordinal: 234 })\n * @return {DateTime}\n */\n set(values) {\n if (!this.isValid) return this;\n\n const normalized = normalizeObject(values, normalizeUnitWithLocalWeeks);\n const { minDaysInFirstWeek, startOfWeek } = usesLocalWeekValues(normalized, this.loc);\n\n const settingWeekStuff =\n !isUndefined(normalized.weekYear) ||\n !isUndefined(normalized.weekNumber) ||\n !isUndefined(normalized.weekday),\n containsOrdinal = !isUndefined(normalized.ordinal),\n containsGregorYear = !isUndefined(normalized.year),\n containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),\n containsGregor = containsGregorYear || containsGregorMD,\n definiteWeekDef = normalized.weekYear || normalized.weekNumber;\n\n if ((containsGregor || containsOrdinal) && definiteWeekDef) {\n throw new ConflictingSpecificationError(\n \"Can't mix weekYear/weekNumber units with year/month/day or ordinals\"\n );\n }\n\n if (containsGregorMD && containsOrdinal) {\n throw new ConflictingSpecificationError(\"Can't mix ordinal dates with month/day\");\n }\n\n let mixed;\n if (settingWeekStuff) {\n mixed = weekToGregorian(\n { ...gregorianToWeek(this.c, minDaysInFirstWeek, startOfWeek), ...normalized },\n minDaysInFirstWeek,\n startOfWeek\n );\n } else if (!isUndefined(normalized.ordinal)) {\n mixed = ordinalToGregorian({ ...gregorianToOrdinal(this.c), ...normalized });\n } else {\n mixed = { ...this.toObject(), ...normalized };\n\n // if we didn't set the day but we ended up on an overflow date,\n // use the last day of the right month\n if (isUndefined(normalized.day)) {\n mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);\n }\n }\n\n const [ts, o] = objToTS(mixed, this.o, this.zone);\n return clone(this, { ts, o });\n }\n\n /**\n * Add a period of time to this DateTime and return the resulting DateTime\n *\n * Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.\n * @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n * @example DateTime.now().plus(123) //~> in 123 milliseconds\n * @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes\n * @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow\n * @example DateTime.now().plus({ days: -1 }) //~> this time yesterday\n * @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min\n * @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min\n * @return {DateTime}\n */\n plus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration);\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * Subtract a period of time to this DateTime and return the resulting DateTime\n * See {@link DateTime#plus}\n * @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()\n @return {DateTime}\n */\n minus(duration) {\n if (!this.isValid) return this;\n const dur = Duration.fromDurationLike(duration).negate();\n return clone(this, adjustTime(this, dur));\n }\n\n /**\n * \"Set\" this DateTime to the beginning of a unit of time.\n * @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'\n * @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'\n * @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'\n * @return {DateTime}\n */\n startOf(unit, { useLocaleWeeks = false } = {}) {\n if (!this.isValid) return this;\n\n const o = {},\n normalizedUnit = Duration.normalizeUnit(unit);\n switch (normalizedUnit) {\n case \"years\":\n o.month = 1;\n // falls through\n case \"quarters\":\n case \"months\":\n o.day = 1;\n // falls through\n case \"weeks\":\n case \"days\":\n o.hour = 0;\n // falls through\n case \"hours\":\n o.minute = 0;\n // falls through\n case \"minutes\":\n o.second = 0;\n // falls through\n case \"seconds\":\n o.millisecond = 0;\n break;\n // no default, invalid units throw in normalizeUnit()\n }\n\n if (normalizedUnit === \"weeks\") {\n if (useLocaleWeeks) {\n const startOfWeek = this.loc.getStartOfWeek();\n const { weekday } = this;\n if (weekday < startOfWeek) {\n o.weekNumber = this.weekNumber - 1;\n }\n o.weekday = startOfWeek;\n } else {\n o.weekday = 1;\n }\n }\n\n if (normalizedUnit === \"quarters\") {\n const q = Math.ceil(this.month / 3);\n o.month = (q - 1) * 3 + 1;\n }\n\n return this.set(o);\n }\n\n /**\n * \"Set\" this DateTime to the end (meaning the last millisecond) of a unit of time\n * @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week\n * @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'\n * @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'\n * @return {DateTime}\n */\n endOf(unit, opts) {\n return this.isValid\n ? this.plus({ [unit]: 1 })\n .startOf(unit, opts)\n .minus(1)\n : this;\n }\n\n // OUTPUT\n\n /**\n * Returns a string representation of this DateTime formatted according to the specified format string.\n * **You may not want this.** See {@link DateTime#toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).\n * Defaults to en-US if no locale has been specified, regardless of the system's locale.\n * @param {string} fmt - the format string\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'\n * @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'\n * @example DateTime.now().toFormat('yyyy LLL dd', { locale: \"fr\" }) //=> '2017 avr. 22'\n * @example DateTime.now().toFormat(\"HH 'hours and' mm 'minutes'\") //=> '20 hours and 55 minutes'\n * @return {string}\n */\n toFormat(fmt, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt)\n : INVALID;\n }\n\n /**\n * Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.\n * The exact behavior of this method is browser-specific, but in general it will return an appropriate representation\n * of the DateTime in the assigned locale.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat\n * @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options\n * @param {Object} opts - opts to override the configuration options on this DateTime\n * @example DateTime.now().toLocaleString(); //=> 4/20/2017\n * @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'\n * @example DateTime.now().toLocaleString(DateTime.DATE_FULL, { locale: 'fr' }); //=> '28 août 2022'\n * @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'\n * @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'\n * @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'\n * @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'\n * @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'\n * @return {string}\n */\n toLocaleString(formatOpts = DATE_SHORT, opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this)\n : INVALID;\n }\n\n /**\n * Returns an array of format \"parts\", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.\n * Defaults to the system's locale if no locale has been specified\n * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts\n * @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.\n * @example DateTime.now().toLocaleParts(); //=> [\n * //=> { type: 'day', value: '25' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'month', value: '05' },\n * //=> { type: 'literal', value: '/' },\n * //=> { type: 'year', value: '1982' }\n * //=> ]\n */\n toLocaleParts(opts = {}) {\n return this.isValid\n ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this)\n : [];\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=false] - add the time zone format extension\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @param {string} [opts.precision='milliseconds'] - truncate output to desired presicion: 'years', 'months', 'days', 'hours', 'minutes', 'seconds' or 'milliseconds'. When precision and suppressSeconds or suppressMilliseconds are used together, precision sets the maximum unit shown in the output, however seconds or milliseconds will still be suppressed if they are 0.\n * @example DateTime.utc(1983, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'\n * @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'\n * @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'\n * @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'\n * @example DateTime.now().toISO({ precision: 'day' }) //=> '2017-04-22Z'\n * @example DateTime.now().toISO({ precision: 'minute' }) //=> '2017-04-22T20:47Z'\n * @return {string|null}\n */\n toISO({\n format = \"extended\",\n suppressSeconds = false,\n suppressMilliseconds = false,\n includeOffset = true,\n extendedZone = false,\n precision = \"milliseconds\",\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n precision = normalizeUnit(precision);\n const ext = format === \"extended\";\n\n let c = toISODate(this, ext, precision);\n if (orderedUnits.indexOf(precision) >= 3) c += \"T\";\n c += toISOTime(\n this,\n ext,\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone,\n precision\n );\n return c;\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's date component\n * @param {Object} opts - options\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @param {string} [opts.precision='day'] - truncate output to desired precision: 'years', 'months', or 'days'.\n * @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'\n * @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'\n * @example DateTime.utc(1982, 5, 25).toISODate({ precision: 'month' }) //=> '1982-05'\n * @return {string|null}\n */\n toISODate({ format = \"extended\", precision = \"day\" } = {}) {\n if (!this.isValid) {\n return null;\n }\n return toISODate(this, format === \"extended\", normalizeUnit(precision));\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's week date\n * @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'\n * @return {string}\n */\n toISOWeekDate() {\n return toTechFormat(this, \"kkkk-'W'WW-c\");\n }\n\n /**\n * Returns an ISO 8601-compliant string representation of this DateTime's time component\n * @param {Object} opts - options\n * @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0\n * @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.extendedZone=true] - add the time zone format extension\n * @param {boolean} [opts.includePrefix=false] - include the `T` prefix\n * @param {string} [opts.format='extended'] - choose between the basic and extended format\n * @param {string} [opts.precision='milliseconds'] - truncate output to desired presicion: 'hours', 'minutes', 'seconds' or 'milliseconds'. When precision and suppressSeconds or suppressMilliseconds are used together, precision sets the maximum unit shown in the output, however seconds or milliseconds will still be suppressed if they are 0.\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'\n * @example DateTime.utc().set({ hour: 7, minute: 34, second: 56 }).toISOTime({ precision: 'minute' }) //=> '07:34Z'\n * @return {string}\n */\n toISOTime({\n suppressMilliseconds = false,\n suppressSeconds = false,\n includeOffset = true,\n includePrefix = false,\n extendedZone = false,\n format = \"extended\",\n precision = \"milliseconds\",\n } = {}) {\n if (!this.isValid) {\n return null;\n }\n\n precision = normalizeUnit(precision);\n let c = includePrefix && orderedUnits.indexOf(precision) >= 3 ? \"T\" : \"\";\n return (\n c +\n toISOTime(\n this,\n format === \"extended\",\n suppressSeconds,\n suppressMilliseconds,\n includeOffset,\n extendedZone,\n precision\n )\n );\n }\n\n /**\n * Returns an RFC 2822-compatible string representation of this DateTime\n * @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'\n * @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'\n * @return {string}\n */\n toRFC2822() {\n return toTechFormat(this, \"EEE, dd LLL yyyy HH:mm:ss ZZZ\", false);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in HTTP headers. The output is always expressed in GMT.\n * Specifically, the string conforms to RFC 1123.\n * @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1\n * @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'\n * @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'\n * @return {string}\n */\n toHTTP() {\n return toTechFormat(this.toUTC(), \"EEE, dd LLL yyyy HH:mm:ss 'GMT'\");\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Date\n * @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'\n * @return {string|null}\n */\n toSQLDate() {\n if (!this.isValid) {\n return null;\n }\n return toISODate(this, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL Time\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc().toSQL() //=> '05:15:16.345'\n * @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'\n * @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'\n * @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'\n * @return {string}\n */\n toSQLTime({ includeOffset = true, includeZone = false, includeOffsetSpace = true } = {}) {\n let fmt = \"HH:mm:ss.SSS\";\n\n if (includeZone || includeOffset) {\n if (includeOffsetSpace) {\n fmt += \" \";\n }\n if (includeZone) {\n fmt += \"z\";\n } else if (includeOffset) {\n fmt += \"ZZ\";\n }\n }\n\n return toTechFormat(this, fmt, true);\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for use in SQL DateTime\n * @param {Object} opts - options\n * @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.\n * @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'\n * @param {boolean} [opts.includeOffsetSpace=true] - include the space between the time and the offset, such as '05:15:16.345 -04:00'\n * @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'\n * @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'\n * @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'\n * @return {string}\n */\n toSQL(opts = {}) {\n if (!this.isValid) {\n return null;\n }\n\n return `${this.toSQLDate()} ${this.toSQLTime(opts)}`;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for debugging\n * @return {string}\n */\n toString() {\n return this.isValid ? this.toISO() : INVALID;\n }\n\n /**\n * Returns a string representation of this DateTime appropriate for the REPL.\n * @return {string}\n */\n [Symbol.for(\"nodejs.util.inspect.custom\")]() {\n if (this.isValid) {\n return `DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`;\n } else {\n return `DateTime { Invalid, reason: ${this.invalidReason} }`;\n }\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}\n * @return {number}\n */\n valueOf() {\n return this.toMillis();\n }\n\n /**\n * Returns the epoch milliseconds of this DateTime.\n * @return {number}\n */\n toMillis() {\n return this.isValid ? this.ts : NaN;\n }\n\n /**\n * Returns the epoch seconds (including milliseconds in the fractional part) of this DateTime.\n * @return {number}\n */\n toSeconds() {\n return this.isValid ? this.ts / 1000 : NaN;\n }\n\n /**\n * Returns the epoch seconds (as a whole number) of this DateTime.\n * @return {number}\n */\n toUnixInteger() {\n return this.isValid ? Math.floor(this.ts / 1000) : NaN;\n }\n\n /**\n * Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.\n * @return {string}\n */\n toJSON() {\n return this.toISO();\n }\n\n /**\n * Returns a BSON serializable equivalent to this DateTime.\n * @return {Date}\n */\n toBSON() {\n return this.toJSDate();\n }\n\n /**\n * Returns a JavaScript object with this DateTime's year, month, day, and so on.\n * @param opts - options for generating the object\n * @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output\n * @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }\n * @return {Object}\n */\n toObject(opts = {}) {\n if (!this.isValid) return {};\n\n const base = { ...this.c };\n\n if (opts.includeConfig) {\n base.outputCalendar = this.outputCalendar;\n base.numberingSystem = this.loc.numberingSystem;\n base.locale = this.loc.locale;\n }\n return base;\n }\n\n /**\n * Returns a JavaScript Date equivalent to this DateTime.\n * @return {Date}\n */\n toJSDate() {\n return new Date(this.isValid ? this.ts : NaN);\n }\n\n // COMPARE\n\n /**\n * Return the difference between two DateTimes as a Duration.\n * @param {DateTime} otherDateTime - the DateTime to compare this one to\n * @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @example\n * var i1 = DateTime.fromISO('1982-05-25T09:45'),\n * i2 = DateTime.fromISO('1983-10-14T10:30');\n * i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }\n * i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }\n * i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }\n * i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }\n * @return {Duration}\n */\n diff(otherDateTime, unit = \"milliseconds\", opts = {}) {\n if (!this.isValid || !otherDateTime.isValid) {\n return Duration.invalid(\"created by diffing an invalid DateTime\");\n }\n\n const durOpts = { locale: this.locale, numberingSystem: this.numberingSystem, ...opts };\n\n const units = maybeArray(unit).map(Duration.normalizeUnit),\n otherIsLater = otherDateTime.valueOf() > this.valueOf(),\n earlier = otherIsLater ? this : otherDateTime,\n later = otherIsLater ? otherDateTime : this,\n diffed = diff(earlier, later, units, durOpts);\n\n return otherIsLater ? diffed.negate() : diffed;\n }\n\n /**\n * Return the difference between this DateTime and right now.\n * See {@link DateTime#diff}\n * @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration\n * @param {Object} opts - options that affect the creation of the Duration\n * @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use\n * @return {Duration}\n */\n diffNow(unit = \"milliseconds\", opts = {}) {\n return this.diff(DateTime.now(), unit, opts);\n }\n\n /**\n * Return an Interval spanning between this DateTime and another DateTime\n * @param {DateTime} otherDateTime - the other end point of the Interval\n * @return {Interval|DateTime}\n */\n until(otherDateTime) {\n return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;\n }\n\n /**\n * Return whether this DateTime is in the same unit of time as another DateTime.\n * Higher-order units must also be identical for this function to return `true`.\n * Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime#setZone} to convert one of the dates if needed.\n * @param {DateTime} otherDateTime - the other DateTime\n * @param {string} unit - the unit of time to check sameness on\n * @param {Object} opts - options\n * @param {boolean} [opts.useLocaleWeeks=false] - If true, use weeks based on the locale, i.e. use the locale-dependent start of the week; only the locale of this DateTime is used\n * @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day\n * @return {boolean}\n */\n hasSame(otherDateTime, unit, opts) {\n if (!this.isValid) return false;\n\n const inputMs = otherDateTime.valueOf();\n const adjustedToZone = this.setZone(otherDateTime.zone, { keepLocalTime: true });\n return (\n adjustedToZone.startOf(unit, opts) <= inputMs && inputMs <= adjustedToZone.endOf(unit, opts)\n );\n }\n\n /**\n * Equality check\n * Two DateTimes are equal if and only if they represent the same millisecond, have the same zone and location, and are both valid.\n * To compare just the millisecond values, use `+dt1 === +dt2`.\n * @param {DateTime} other - the other DateTime\n * @return {boolean}\n */\n equals(other) {\n return (\n this.isValid &&\n other.isValid &&\n this.valueOf() === other.valueOf() &&\n this.zone.equals(other.zone) &&\n this.loc.equals(other.loc)\n );\n }\n\n /**\n * Returns a string representation of a this time relative to now, such as \"in two days\". Can only internationalize if your\n * platform supports Intl.RelativeTimeFormat. Rounds towards zero by default.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} [options.style=\"long\"] - the style of units, must be \"long\", \"short\", or \"narrow\"\n * @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of \"years\", \"quarters\", \"months\", \"weeks\", \"days\", \"hours\", \"minutes\", or \"seconds\"\n * @param {boolean} [options.round=true] - whether to round the numbers in the output.\n * @param {string} [options.rounding=\"trunc\"] - rounding method to use when rounding the numbers in the output. Can be \"trunc\" (toward zero), \"expand\" (away from zero), \"round\", \"floor\", or \"ceil\".\n * @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelative() //=> \"in 1 day\"\n * @example DateTime.now().setLocale(\"es\").toRelative({ days: 1 }) //=> \"dentro de 1 día\"\n * @example DateTime.now().plus({ days: 1 }).toRelative({ locale: \"fr\" }) //=> \"dans 23 heures\"\n * @example DateTime.now().minus({ days: 2 }).toRelative() //=> \"2 days ago\"\n * @example DateTime.now().minus({ days: 2 }).toRelative({ unit: \"hours\" }) //=> \"48 hours ago\"\n * @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> \"1.5 days ago\"\n */\n toRelative(options = {}) {\n if (!this.isValid) return null;\n const base = options.base || DateTime.fromObject({}, { zone: this.zone }),\n padding = options.padding ? (this < base ? -options.padding : options.padding) : 0;\n let units = [\"years\", \"months\", \"days\", \"hours\", \"minutes\", \"seconds\"];\n let unit = options.unit;\n if (Array.isArray(options.unit)) {\n units = options.unit;\n unit = undefined;\n }\n return diffRelative(base, this.plus(padding), {\n ...options,\n numeric: \"always\",\n units,\n unit,\n });\n }\n\n /**\n * Returns a string representation of this date relative to today, such as \"yesterday\" or \"next month\".\n * Only internationalizes on platforms that supports Intl.RelativeTimeFormat.\n * @param {Object} options - options that affect the output\n * @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.\n * @param {string} options.locale - override the locale of this DateTime\n * @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of \"years\", \"quarters\", \"months\", \"weeks\", or \"days\"\n * @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> \"tomorrow\"\n * @example DateTime.now().setLocale(\"es\").plus({ days: 1 }).toRelative() //=> \"\"mañana\"\n * @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: \"fr\" }) //=> \"demain\"\n * @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> \"2 days ago\"\n */\n toRelativeCalendar(options = {}) {\n if (!this.isValid) return null;\n\n return diffRelative(options.base || DateTime.fromObject({}, { zone: this.zone }), this, {\n ...options,\n numeric: \"auto\",\n units: [\"years\", \"months\", \"days\"],\n calendary: true,\n });\n }\n\n /**\n * Return the min of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum\n * @return {DateTime} the min DateTime, or undefined if called with no argument\n */\n static min(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"min requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, (i) => i.valueOf(), Math.min);\n }\n\n /**\n * Return the max of several date times\n * @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum\n * @return {DateTime} the max DateTime, or undefined if called with no argument\n */\n static max(...dateTimes) {\n if (!dateTimes.every(DateTime.isDateTime)) {\n throw new InvalidArgumentError(\"max requires all arguments be DateTimes\");\n }\n return bestBy(dateTimes, (i) => i.valueOf(), Math.max);\n }\n\n // MISC\n\n /**\n * Explain how a string would be parsed by fromFormat()\n * @param {string} text - the string to parse\n * @param {string} fmt - the format the string is expected to be in (see description)\n * @param {Object} options - options taken by fromFormat()\n * @return {Object}\n */\n static fromFormatExplain(text, fmt, options = {}) {\n const { locale = null, numberingSystem = null } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n return explainFromTokens(localeToUse, text, fmt);\n }\n\n /**\n * @deprecated use fromFormatExplain instead\n */\n static fromStringExplain(text, fmt, options = {}) {\n return DateTime.fromFormatExplain(text, fmt, options);\n }\n\n /**\n * Build a parser for `fmt` using the given locale. This parser can be passed\n * to {@link DateTime.fromFormatParser} to a parse a date in this format. This\n * can be used to optimize cases where many dates need to be parsed in a\n * specific format.\n *\n * @param {String} fmt - the format the string is expected to be in (see\n * description)\n * @param {Object} options - options used to set locale and numberingSystem\n * for parser\n * @returns {TokenParser} - opaque object to be used\n */\n static buildFormatParser(fmt, options = {}) {\n const { locale = null, numberingSystem = null } = options,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n return new TokenParser(localeToUse, fmt);\n }\n\n /**\n * Create a DateTime from an input string and format parser.\n *\n * The format parser must have been created with the same locale as this call.\n *\n * @param {String} text - the string to parse\n * @param {TokenParser} formatParser - parser from {@link DateTime.buildFormatParser}\n * @param {Object} opts - options taken by fromFormat()\n * @returns {DateTime}\n */\n static fromFormatParser(text, formatParser, opts = {}) {\n if (isUndefined(text) || isUndefined(formatParser)) {\n throw new InvalidArgumentError(\n \"fromFormatParser requires an input string and a format parser\"\n );\n }\n const { locale = null, numberingSystem = null } = opts,\n localeToUse = Locale.fromOpts({\n locale,\n numberingSystem,\n defaultToEN: true,\n });\n\n if (!localeToUse.equals(formatParser.locale)) {\n throw new InvalidArgumentError(\n `fromFormatParser called with a locale of ${localeToUse}, ` +\n `but the format parser was created for ${formatParser.locale}`\n );\n }\n\n const { result, zone, specificOffset, invalidReason } = formatParser.explainFromTokens(text);\n\n if (invalidReason) {\n return DateTime.invalid(invalidReason);\n } else {\n return parseDataToDateTime(\n result,\n zone,\n opts,\n `format ${formatParser.format}`,\n text,\n specificOffset\n );\n }\n }\n\n // FORMAT PRESETS\n\n /**\n * {@link DateTime#toLocaleString} format like 10/14/1983\n * @type {Object}\n */\n static get DATE_SHORT() {\n return DATE_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED() {\n return DATE_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, Oct 14, 1983'\n * @type {Object}\n */\n static get DATE_MED_WITH_WEEKDAY() {\n return DATE_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983'\n * @type {Object}\n */\n static get DATE_FULL() {\n return DATE_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Tuesday, October 14, 1983'\n * @type {Object}\n */\n static get DATE_HUGE() {\n return DATE_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_SIMPLE() {\n return TIME_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SECONDS() {\n return TIME_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_SHORT_OFFSET() {\n return TIME_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get TIME_WITH_LONG_OFFSET() {\n return TIME_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_SIMPLE() {\n return TIME_24_SIMPLE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SECONDS() {\n return TIME_24_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 EDT', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_SHORT_OFFSET() {\n return TIME_24_WITH_SHORT_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.\n * @type {Object}\n */\n static get TIME_24_WITH_LONG_OFFSET() {\n return TIME_24_WITH_LONG_OFFSET;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT() {\n return DATETIME_SHORT;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_SHORT_WITH_SECONDS() {\n return DATETIME_SHORT_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED() {\n return DATETIME_MED;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_SECONDS() {\n return DATETIME_MED_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_MED_WITH_WEEKDAY() {\n return DATETIME_MED_WITH_WEEKDAY;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL() {\n return DATETIME_FULL;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_FULL_WITH_SECONDS() {\n return DATETIME_FULL_WITH_SECONDS;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE() {\n return DATETIME_HUGE;\n }\n\n /**\n * {@link DateTime#toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.\n * @type {Object}\n */\n static get DATETIME_HUGE_WITH_SECONDS() {\n return DATETIME_HUGE_WITH_SECONDS;\n }\n}\n\n/**\n * @private\n */\nfunction friendlyDateTime(dateTimeish) {\n if (DateTime.isDateTime(dateTimeish)) {\n return dateTimeish;\n } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {\n return DateTime.fromJSDate(dateTimeish);\n } else if (dateTimeish && typeof dateTimeish === \"object\") {\n return DateTime.fromObject(dateTimeish);\n } else {\n throw new InvalidArgumentError(\n `Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`\n );\n }\n}\n\nconst VERSION = \"3.7.2\";\n\nexport { DateTime, Duration, FixedOffsetZone, IANAZone, Info, Interval, InvalidZone, Settings, SystemZone, VERSION, Zone };\n//# sourceMappingURL=luxon.mjs.map\n","import { DateTime } from 'luxon';\nimport { projectsState } from './projects.svelte';\nimport { authState } from './auth.svelte';\n\nexport function getTimezone(): string {\n\tconst organizationId = projectsState.currentProject?.organizationId;\n\tif (organizationId) {\n\t\tconst timezone = authState.getTimezoneForOrganization(organizationId);\n\t\tif (timezone) return timezone;\n\t}\n\treturn DateTime.local().zoneName || 'UTC';\n}\n","import { DateTime } from 'luxon';\nimport { getTimezone } from '$lib/state/timezone.svelte';\n\nexport function preciseTimeMs(isoString: string): number {\n\tconst match = isoString.match(\n\t\t/^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d+))?Z$/\n\t);\n\tif (!match) return new Date(isoString).getTime();\n\n\tconst [, year, month, day, hour, minute, second, frac] = match;\n\tconst baseMs = Date.UTC(+year, +month - 1, +day, +hour, +minute, +second);\n\tif (!frac) return baseMs;\n\n\treturn baseMs + parseFloat('0.' + frac) * 1000;\n}\n\nexport function formatDuration(nanoseconds: number): string {\n\tconst ms = nanoseconds / 1_000_000;\n\tif (ms < 1) {\n\t\treturn `${(nanoseconds / 1000).toFixed(0)}µs`;\n\t} else if (ms < 1000) {\n\t\treturn `${ms.toFixed(0)}ms`;\n\t} else {\n\t\treturn `${(ms / 1000).toFixed(1)}s`;\n\t}\n}\n\nexport function formatDurationMs(ms: number): string {\n\tif (ms < 1) {\n\t\treturn `${(ms * 1000).toFixed(0)} µs`;\n\t} else if (ms < 1000) {\n\t\treturn `${ms.toFixed(0)} ms`;\n\t} else {\n\t\treturn `${(ms / 1000).toFixed(2)} s`;\n\t}\n}\n\nexport function getStatusColor(statusCode: number): string {\n\tif (statusCode >= 200 && statusCode < 300) return 'text-green-500';\n\tif (statusCode >= 300 && statusCode < 400) return 'text-blue-500';\n\tif (statusCode >= 400 && statusCode < 500) return 'text-yellow-500';\n\treturn 'text-red-500';\n}\n\nexport function truncateStackTrace(stackTrace: string, maxLength = 70): string {\n\tconst firstLine = stackTrace.split('\\n')[0];\n\tif (firstLine.length > maxLength) {\n\t\treturn firstLine.slice(0, maxLength) + '...';\n\t}\n\treturn firstLine;\n}\n\nexport function formatRelativeTime(dateStr: string, timezone?: string): string {\n\tconst tz = timezone ?? getTimezone();\n\tconst dt = DateTime.fromISO(dateStr, { zone: 'utc' }).setZone(tz);\n\tconst now = DateTime.now().setZone(tz);\n\tconst diffMs = now.toMillis() - dt.toMillis();\n\tconst diffMins = Math.floor(diffMs / 60000);\n\tconst diffHours = Math.floor(diffMs / 3600000);\n\tconst diffDays = Math.floor(diffMs / 86400000);\n\n\tif (diffMins < 1) return 'just now';\n\tif (diffMins < 60) return `${diffMins}m`;\n\tif (diffHours < 24) return `${diffHours}h`;\n\treturn `${diffDays}d`;\n}\n\nexport type DateTimeFormat = 'full' | 'short' | 'date' | 'time' | 'datetime' | 'iso';\n\nexport function formatDateTime(\n\tdateInput: string | Date | number,\n\toptions: {\n\t\ttimezone?: string;\n\t\tformat?: DateTimeFormat;\n\t} = {}\n): string {\n\tconst tz = options.timezone ?? getTimezone();\n\tconst isoStr =\n\t\ttypeof dateInput === 'string'\n\t\t\t? dateInput\n\t\t\t: dateInput instanceof Date\n\t\t\t\t? dateInput.toISOString()\n\t\t\t\t: new Date(dateInput).toISOString();\n\n\tconst dt = DateTime.fromISO(isoStr, { zone: 'utc' }).setZone(tz);\n\n\tif (!dt.isValid) {\n\t\treturn 'Invalid date';\n\t}\n\n\tswitch (options.format) {\n\t\tcase 'full':\n\t\t\treturn dt.toLocaleString(DateTime.DATETIME_FULL);\n\t\tcase 'short':\n\t\t\treturn dt.toLocaleString(DateTime.DATETIME_SHORT);\n\t\tcase 'date':\n\t\t\treturn dt.toLocaleString(DateTime.DATE_MED);\n\t\tcase 'time':\n\t\t\treturn dt.toLocaleString(DateTime.TIME_SIMPLE);\n\t\tcase 'iso':\n\t\t\treturn dt.toISO() ?? '';\n\t\tcase 'datetime':\n\t\tdefault:\n\t\t\treturn dt.toLocaleString(DateTime.DATETIME_MED);\n\t}\n}\n\nexport function getNow(timezone?: string): DateTime {\n\tconst tz = timezone ?? getTimezone();\n\treturn DateTime.now().setZone(tz);\n}\n\n\n\nexport function luxonToCalendarDateTime(dt: DateTime): {\n\tyear: number;\n\tmonth: number;\n\tday: number;\n\thour: number;\n\tminute: number;\n\tsecond: number;\n} {\n\treturn {\n\t\tyear: dt.year,\n\t\tmonth: dt.month,\n\t\tday: dt.day,\n\t\thour: dt.hour,\n\t\tminute: dt.minute,\n\t\tsecond: dt.second\n\t};\n}\n\nexport function calendarDateTimeToLuxon(\n\tcalDt: {\n\t\tyear: number;\n\t\tmonth: number;\n\t\tday: number;\n\t\thour?: number;\n\t\tminute?: number;\n\t\tsecond?: number;\n\t},\n\ttimezone?: string\n): DateTime {\n\tconst tz = timezone ?? getTimezone();\n\treturn DateTime.fromObject(\n\t\t{\n\t\t\tyear: calDt.year,\n\t\t\tmonth: calDt.month,\n\t\t\tday: calDt.day,\n\t\t\thour: calDt.hour ?? 0,\n\t\t\tminute: calDt.minute ?? 0,\n\t\t\tsecond: calDt.second ?? 0\n\t\t},\n\t\t{ zone: tz }\n\t);\n}\n\nexport function toUTCISO(dt: DateTime): string {\n\treturn dt.toUTC().toISO() ?? '';\n}\n\nexport function parseISO(dateStr: string, timezone?: string): DateTime {\n\tconst tz = timezone ?? getTimezone();\n\treturn DateTime.fromISO(dateStr, { zone: 'utc' }).setZone(tz);\n}\n"],"names":["LuxonError","InvalidDateTimeError","reason","InvalidIntervalError","InvalidDurationError","ConflictingSpecificationError","InvalidUnitError","unit","InvalidArgumentError","ZoneIsAbstractError","n","s","l","DATE_SHORT","DATE_MED","DATE_MED_WITH_WEEKDAY","DATE_FULL","DATE_HUGE","TIME_SIMPLE","TIME_WITH_SECONDS","TIME_WITH_SHORT_OFFSET","TIME_WITH_LONG_OFFSET","TIME_24_SIMPLE","TIME_24_WITH_SECONDS","TIME_24_WITH_SHORT_OFFSET","TIME_24_WITH_LONG_OFFSET","DATETIME_SHORT","DATETIME_SHORT_WITH_SECONDS","DATETIME_MED","DATETIME_MED_WITH_SECONDS","DATETIME_MED_WITH_WEEKDAY","DATETIME_FULL","DATETIME_FULL_WITH_SECONDS","DATETIME_HUGE","DATETIME_HUGE_WITH_SECONDS","Zone","ts","opts","format","otherZone","singleton$1","SystemZone","locale","parseZoneInfo","formatOffset","dtfCache","makeDTF","zoneName","dtf","typeToPos","hackyOffset","date","formatted","parsed","fMonth","fDay","fYear","fadOrBc","fHour","fMinute","fSecond","partsOffset","filled","i","type","value","pos","isUndefined","ianaZoneCache","IANAZone","name","zone","year","month","day","adOrBc","hour","minute","second","asUTC","objToLocalTS","asTS","over","intlLFCache","getCachedLF","locString","key","intlDTCache","getCachedDTF","intlNumCache","getCachedINF","inf","intlRelCache","getCachedRTF","base","cacheKeyOpts","sysLocaleCache","systemLocale","intlResolvedOptionsCache","getCachedIntResolvedOptions","weekInfoCache","getCachedWeekInfo","data","fallbackWeekSettings","parseLocaleString","localeStr","xIndex","uIndex","options","selectedStr","smaller","numberingSystem","calendar","intlConfigString","outputCalendar","mapMonths","f","ms","dt","DateTime","mapWeekdays","listStuff","loc","length","englishFn","intlFn","mode","supportsFastNumbers","PolyNumberFormatter","intl","forceSimple","padTo","floor","otherOpts","intlOpts","fixed","roundTo","padStart","PolyDateFormatter","z","gmtOffset","offsetZ","parts","part","offsetName","PolyRelFormatter","isEnglish","hasRelative","count","formatRelativeTime","Locale","weekSettings","defaultToEN","specifiedLocale","Settings","localeR","numberingSystemR","outputCalendarR","weekSettingsR","validateWeekSettings","numbering","parsedLocale","parsedNumberingSystem","parsedOutputCalendar","isActuallyEn","hasNoWeirdness","alts","months","monthSpecialCase","formatStr","mapper","weekdays","meridiems","eras","field","df","results","matching","m","hasLocaleWeekInfo","other","singleton","FixedOffsetZone","offset","r","signedOffset","InvalidZone","normalizeZone","input","defaultZone","isString","lowered","isNumber","numberingSystems","numberingSystemsUTF16","hanidecChars","parseDigits","str","code","min","max","digitRegexCache","resetDigitRegexCache","digitRegex","append","ns","appendCache","regex","now","defaultLocale","defaultNumberingSystem","defaultOutputCalendar","twoDigitCutoffYear","throwOnInvalid","defaultWeekSettings","cutoffYear","t","Invalid","explanation","nonLeapLadder","leapLadder","unitOutOfRange","dayOfWeek","d","js","computeOrdinal","isLeapYear","uncomputeOrdinal","ordinal","table","month0","isoWeekdayToLocal","isoWeekday","startOfWeek","gregorianToWeek","gregObj","minDaysInFirstWeek","weekday","weekNumber","weekYear","weeksInWeekYear","timeObject","weekToGregorian","weekData","weekdayOfJan4","yearInDays","daysInYear","gregorianToOrdinal","gregData","ordinalToGregorian","ordinalData","usesLocalWeekValues","obj","hasInvalidWeekData","validYear","isInteger","validWeek","integerBetween","validWeekday","hasInvalidOrdinalData","validOrdinal","hasInvalidGregorianData","validMonth","validDay","daysInMonth","hasInvalidTimeData","millisecond","validHour","validMinute","validSecond","validMillisecond","o","isDate","maybeArray","thing","bestBy","arr","by","compare","best","next","pair","pick","keys","a","k","hasOwnProperty","prop","settings","v","bottom","top","floorMod","x","isNeg","padded","parseInteger","string","parseFloating","parseMillis","fraction","number","digits","rounding","factor","modMonth","modYear","firstWeekOffset","weekOffset","weekOffsetNext","untruncateYear","offsetFormat","timeZone","modified","offHourStr","offMinuteStr","offHour","offMin","offMinSigned","asNumber","numericValue","normalizeObject","normalizer","normalized","u","hours","minutes","sign","monthsLong","monthsShort","monthsNarrow","weekdaysLong","weekdaysShort","weekdaysNarrow","erasLong","erasShort","erasNarrow","meridiemForDateTime","weekdayForDateTime","monthForDateTime","eraForDateTime","numeric","narrow","units","lastable","isDay","isInPast","fmtValue","singular","lilUnits","fmtUnit","stringifyTokens","splits","tokenToString","token","macroTokenToFormatOpts","Formatter","fmt","current","currentFull","bracketed","c","formatOpts","interval","p","signDisplay","knownEnglish","useDateTimeFormatter","extract","meridiem","standalone","maybeMacro","era","dur","invertLargest","tokenToField","lildur","info","mapped","inversionFactor","tokens","realTokens","found","literal","val","collapsed","durationInfo","ianaRegex","combineRegexes","regexes","full","combineExtractors","extractors","mergedVals","mergedZone","cursor","ex","parse","patterns","extractor","simpleParse","match","ret","offsetRegex","isoExtendedZone","isoTimeBaseRegex","isoTimeRegex","isoTimeExtensionRegex","isoYmdRegex","isoWeekRegex","isoOrdinalRegex","extractISOWeekData","extractISOOrdinalData","sqlYmdRegex","sqlTimeRegex","sqlTimeExtensionRegex","int","fallback","extractISOYmd","extractISOTime","extractISOOffset","local","fullOffset","extractIANAZone","isoTimeOnly","isoDuration","extractISODuration","yearStr","monthStr","weekStr","dayStr","hourStr","minuteStr","secondStr","millisecondsStr","hasNegativePrefix","negativeSeconds","maybeNegate","num","force","obsOffsets","fromStrings","weekdayStr","result","rfc2822","extractRFC2822","obsOffset","milOffset","preprocessRFC2822","rfc1123","rfc850","ascii","extractRFC1123Or850","extractASCII","isoYmdWithTimeExtensionRegex","isoWeekWithTimeExtensionRegex","isoOrdinalWithTimeExtensionRegex","isoTimeCombinedRegex","extractISOYmdTimeAndOffset","extractISOWeekTimeAndOffset","extractISOOrdinalDateAndTime","extractISOTimeAndOffset","parseISODate","parseRFC2822Date","parseHTTPDate","parseISODuration","extractISOTimeOnly","parseISOTimeOnly","sqlYmdWithTimeExtensionRegex","sqlTimeCombinedRegex","extractISOTimeOffsetAndIANAZone","parseSQL","INVALID$2","lowOrderMatrix","casualMatrix","daysInYearAccurate","daysInMonthAccurate","accurateMatrix","orderedUnits$1","reverseUnits","clone$1","clear","conf","Duration","durationToMillis","matrix","vals","sum","normalizeValues","previous","previousVal","conv","rollUp","removeZeroes","newVals","config","accurate","durationLike","text","invalid","fmtOpts","showZeros","millis","duration","fn","values","mixed","conversionAccuracy","built","accumulated","lastUnit","own","ak","negated","eq","v1","v2","INVALID$1","validateStartEnd","start","end","Interval","builtStart","friendlyDateTime","builtEnd","validateError","e","startIsValid","endIsValid","dateTime","dateTimes","sorted","b","added","idx","numberOfParts","intervals","final","sofar","item","currentCount","ends","flattened","dateFormat","separator","mapFn","Info","proto","locObj","dayDiff","earlier","later","utcDayStart","highOrderDiffs","differs","days","lowestOrder","highWater","differ","diff","remainingMillis","lowerOrderUnits","MISSING_FTP","intUnit","post","NBSP","spaceOrNBSP","spaceOrNBSPRegExp","fixListRegex","stripInsensitivities","oneOf","strings","startIndex","groups","h","simple","escapeToken","unitForToken","one","two","three","four","six","oneOrTwo","oneToThree","oneToSix","oneToNine","twoToFour","fourToSix","partTypeStyleToTokenVal","tokenForPart","resolvedOpts","isSpace","style","actualType","buildRegex","handlers","matches","all","matchIndex","dateTimeFromMatches","toField","specificOffset","dummyDateTimeCache","getDummyDateTime","maybeExpandMacroToken","formatOptsToTokens","expandMacroTokens","TokenParser","regexString","rawMatches","explainFromTokens","parseFromTokens","invalidReason","INVALID","MAX_DATE","unsupportedZone","possiblyCachedWeekData","possiblyCachedLocalWeekData","clone","inst","fixOffset","localTS","tz","utcGuess","o2","o3","tsToObj","objToTS","adjustTime","oPre","millisToAdd","parseDataToDateTime","parsedZone","setZone","interpretationZone","toTechFormat","allowZ","toISODate","extended","precision","longFormat","toISOTime","suppressSeconds","suppressMilliseconds","includeOffset","extendedZone","showSeconds","defaultUnitValues","defaultWeekUnitValues","defaultOrdinalUnitValues","orderedUnits","orderedWeekUnits","orderedOrdinalUnits","normalizeUnit","normalizeUnitWithLocalWeeks","guessOffsetForZone","zoneOffsetTs","offsetGuess","zoneOffsetGuessCache","quickDT","offsetProvis","diffRelative","round","lastOpts","argList","args","ot","zoneToUse","milliseconds","seconds","tsNow","containsOrdinal","containsGregorYear","containsGregorMD","containsGregor","definiteWeekDef","useWeekData","defaultValues","objNow","foundFirst","higherOrderInvalid","gregorian","tsFinal","offsetFinal","localeToUse","localeOpts","tokenList","dayMs","minuteMs","oEarlier","oLater","o1","ts1","ts2","c1","c2","keepLocalTime","keepCalendarTime","newTS","asObj","settingWeekStuff","useLocaleWeeks","normalizedUnit","q","ext","includePrefix","includeZone","includeOffsetSpace","otherDateTime","durOpts","otherIsLater","diffed","inputMs","adjustedToZone","padding","formatParser","dateTimeish","getTimezone","organizationId","projectsState","timezone","authState","preciseTimeMs","isoString","frac","baseMs","formatDuration","nanoseconds","formatDurationMs","getStatusColor","statusCode","truncateStackTrace","stackTrace","maxLength","firstLine","dateStr","diffMs","diffMins","diffHours","diffDays","formatDateTime","dateInput","isoStr","getNow","lux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AAMonB,EAAM,KACZ,MAAOA,EAAM,MACb,IAAKA,EAAM,IACX,KAAMA,EAAM,MAAQ,EACpB,OAAQA,EAAM,QAAU,EACxB,OAAQA,EAAM,QAAU,CAAA,EAEzB,CAAE,KAAM5H,CAAA,CAAG,CAEb,CAEO,SAAS6H,GAAStnB,EAAsB,CAC9C,OAAOA,EAAG,QAAQ,MAAA,GAAW,EAC9B,CAEO,SAASunB,GAASb,EAAiBf,EAA6B,CACtE,MAAMlG,EAAKkG,GAAYH,GAAA,EACvB,OAAOvlB,EAAS,QAAQymB,EAAS,CAAE,KAAM,KAAA,CAAO,EAAE,QAAQjH,CAAE,CAC7D","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/C202V9ED.js b/backend/static/frontend/_app/immutable/chunks/Dtb4566M.js
similarity index 94%
rename from backend/static/frontend/_app/immutable/chunks/C202V9ED.js
rename to backend/static/frontend/_app/immutable/chunks/Dtb4566M.js
index be184fb9..a08d50b3 100644
--- a/backend/static/frontend/_app/immutable/chunks/C202V9ED.js
+++ b/backend/static/frontend/_app/immutable/chunks/Dtb4566M.js
@@ -1 +1 @@
-import{p as ra,i as D}from"./DMODTt3n.js";import{p as oa,d as F,c as j,g as a,u as v,b as e,a as na,f as i,e as s,r as t,s as f,k as E,l as _,x as G}from"./B2WdN-7r.js";import{e as H,i as J}from"./CMyj8Fzw.js";import{c as M}from"./BAcG0-U_.js";import{s as ia}from"./DH0tcjsQ.js";import{P as la,a as va,b as pa}from"./DKXzXP9M.js";var da=i('<span class="inline-flex items-center rounded bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground"><span class="font-semibold"> </span> <span class="ml-1 max-w-[120px] truncate font-mono"> </span></span>'),ma=i('<span class="cursor-pointer text-xs text-muted-foreground underline underline-offset-2 hover:text-foreground"> </span>'),ca=i('<div class="flex items-start gap-2 text-sm"><span class="shrink-0 font-medium text-muted-foreground"> </span> <span class="font-mono break-all"> </span></div>'),fa=i('<div class="space-y-2"><h4 class="text-sm font-medium">All Attributes Tags</h4> <div class="grid gap-2"></div></div>'),_a=i("<!> <!>",1),ua=i('<div class="flex flex-wrap items-center gap-1"><!> <!></div>'),xa=i('<span class="text-xs text-muted-foreground">-</span>');function ka(K,y){oa(y,!0);let P=ra(y,"maxInlineTags",3,2);const p=v(()=>Object.entries(y.attributes||{}).sort((r,o)=>r[0].localeCompare(o[0]))),L=v(()=>a(p).length>P()),N=v(()=>a(p).slice(0,P())),Q=v(()=>a(p).length-P());var O=F(),R=j(O);{var S=r=>{var o=ua(),q=s(o);H(q,17,()=>a(N),J,(d,u)=>{var x=v(()=>G(a(u),2));let k=()=>a(x)[0],g=()=>a(x)[1];var m=da(),h=s(m),b=s(h);t(h);var l=f(h,2),A=s(l,!0);t(l),t(m),E(()=>{_(b,`${k()??""}:`),ia(l,"title",g()),_(A,g())}),e(d,m)});var V=f(q,2);{var W=d=>{var u=F(),x=j(u);M(x,()=>pa,(k,g)=>{g(k,{children:(m,h)=>{var b=_a(),l=j(b);M(l,()=>la,(w,T)=>{T(w,{onclick:c=>c.stopPropagation(),children:(c,X)=>{var n=ma(),$=s(n);t(n),E(()=>_($,`+${a(Q)??""} more`)),e(c,n)},$$slots:{default:!0}})});var A=f(l,2);M(A,()=>va,(w,T)=>{T(w,{class:"w-80",children:(c,X)=>{var n=fa(),$=f(s(n),2);H($,21,()=>a(p),J,(Y,Z)=>{var z=v(()=>G(a(Z),2));let aa=()=>a(z)[0],ta=()=>a(z)[1];var C=ca(),I=s(C),ea=s(I);t(I);var B=f(I,2),sa=s(B,!0);t(B),t(C),E(()=>{_(ea,`${aa()??""}:`),_(sa,ta())}),e(Y,C)}),t($),t(n),e(c,n)},$$slots:{default:!0}})}),e(m,b)},$$slots:{default:!0}})}),e(d,u)};D(V,d=>{a(L)&&d(W)})}t(o),e(r,o)},U=r=>{var o=xa();e(r,o)};D(R,r=>{a(p).length>0?r(S):r(U,!1)})}e(K,O),na()}export{ka as A};
+import{p as ra,i as D}from"./DMODTt3n.js";import{p as oa,d as F,c as j,g as a,u as v,b as e,a as na,f as i,e as s,r as t,s as f,k as E,l as _,x as G}from"./B2WdN-7r.js";import{e as H,i as J}from"./CMyj8Fzw.js";import{c as M}from"./BAcG0-U_.js";import{s as ia}from"./DH0tcjsQ.js";import{P as la,a as va,b as pa}from"./Bzt1ocTi.js";var da=i('<span class="inline-flex items-center rounded bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground"><span class="font-semibold"> </span> <span class="ml-1 max-w-[120px] truncate font-mono"> </span></span>'),ma=i('<span class="cursor-pointer text-xs text-muted-foreground underline underline-offset-2 hover:text-foreground"> </span>'),ca=i('<div class="flex items-start gap-2 text-sm"><span class="shrink-0 font-medium text-muted-foreground"> </span> <span class="font-mono break-all"> </span></div>'),fa=i('<div class="space-y-2"><h4 class="text-sm font-medium">All Attributes Tags</h4> <div class="grid gap-2"></div></div>'),_a=i("<!> <!>",1),ua=i('<div class="flex flex-wrap items-center gap-1"><!> <!></div>'),xa=i('<span class="text-xs text-muted-foreground">-</span>');function ka(K,y){oa(y,!0);let P=ra(y,"maxInlineTags",3,2);const p=v(()=>Object.entries(y.attributes||{}).sort((r,o)=>r[0].localeCompare(o[0]))),L=v(()=>a(p).length>P()),N=v(()=>a(p).slice(0,P())),Q=v(()=>a(p).length-P());var O=F(),R=j(O);{var S=r=>{var o=ua(),q=s(o);H(q,17,()=>a(N),J,(d,u)=>{var x=v(()=>G(a(u),2));let k=()=>a(x)[0],g=()=>a(x)[1];var m=da(),h=s(m),b=s(h);t(h);var l=f(h,2),A=s(l,!0);t(l),t(m),E(()=>{_(b,`${k()??""}:`),ia(l,"title",g()),_(A,g())}),e(d,m)});var V=f(q,2);{var W=d=>{var u=F(),x=j(u);M(x,()=>pa,(k,g)=>{g(k,{children:(m,h)=>{var b=_a(),l=j(b);M(l,()=>la,(w,T)=>{T(w,{onclick:c=>c.stopPropagation(),children:(c,X)=>{var n=ma(),$=s(n);t(n),E(()=>_($,`+${a(Q)??""} more`)),e(c,n)},$$slots:{default:!0}})});var A=f(l,2);M(A,()=>va,(w,T)=>{T(w,{class:"w-80",children:(c,X)=>{var n=fa(),$=f(s(n),2);H($,21,()=>a(p),J,(Y,Z)=>{var z=v(()=>G(a(Z),2));let aa=()=>a(z)[0],ta=()=>a(z)[1];var C=ca(),I=s(C),ea=s(I);t(I);var B=f(I,2),sa=s(B,!0);t(B),t(C),E(()=>{_(ea,`${aa()??""}:`),_(sa,ta())}),e(Y,C)}),t($),t(n),e(c,n)},$$slots:{default:!0}})}),e(m,b)},$$slots:{default:!0}})}),e(d,u)};D(V,d=>{a(L)&&d(W)})}t(o),e(r,o)},U=r=>{var o=xa();e(r,o)};D(R,r=>{a(p).length>0?r(S):r(U,!1)})}e(K,O),na()}export{ka as A};
diff --git a/backend/static/frontend/_app/immutable/chunks/C202V9ED.js.map b/backend/static/frontend/_app/immutable/chunks/Dtb4566M.js.map
similarity index 98%
rename from backend/static/frontend/_app/immutable/chunks/C202V9ED.js.map
rename to backend/static/frontend/_app/immutable/chunks/Dtb4566M.js.map
index fa4f4492..fc1dccfa 100644
--- a/backend/static/frontend/_app/immutable/chunks/C202V9ED.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/Dtb4566M.js.map
@@ -1 +1 @@
-{"version":3,"file":"C202V9ED.js","sources":["../../../../../../src/lib/components/attributes-display.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport * as Popover from '$lib/components/ui/popover';\n\n\tinterface Props {\n\t\tattributes: Record<string, string> | null | undefined;\n\t\tmaxInlineTags?: number;\n\t}\n\n\tlet { attributes, maxInlineTags = 2 }: Props = $props();\n\n\tconst entries = $derived(\n\t\tObject.entries(attributes || {}).sort((a, b) => a[0].localeCompare(b[0]))\n\t);\n\tconst hasMore = $derived(entries.length > maxInlineTags);\n\tconst visibleEntries = $derived(entries.slice(0, maxInlineTags));\n\tconst hiddenCount = $derived(entries.length - maxInlineTags);\n</script>\n\n{#if entries.length > 0}\n\t<div class=\"flex flex-wrap items-center gap-1\">\n\t\t{#each visibleEntries as [key, value]}\n\t\t\t<span\n\t\t\t\tclass=\"inline-flex items-center rounded bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground\"\n\t\t\t>\n\t\t\t\t<span class=\"font-semibold\">{key}:</span>\n\t\t\t\t<span class=\"ml-1 max-w-[120px] truncate font-mono\" title={value}>{value}</span>\n\t\t\t</span>\n\t\t{/each}\n\t\t{#if hasMore}\n\t\t\t<Popover.Root>\n\t\t\t\t<Popover.Trigger onclick={(e) => e.stopPropagation()}>\n\t\t\t\t\t<span\n\t\t\t\t\t\tclass=\"cursor-pointer text-xs text-muted-foreground underline underline-offset-2 hover:text-foreground\"\n\t\t\t\t\t>\n\t\t\t\t\t\t+{hiddenCount} more\n\t\t\t\t\t</span>\n\t\t\t\t</Popover.Trigger>\n\t\t\t\t<Popover.Content class=\"w-80\">\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<h4 class=\"text-sm font-medium\">All Attributes Tags</h4>\n\t\t\t\t\t\t<div class=\"grid gap-2\">\n\t\t\t\t\t\t\t{#each entries as [key, value]}\n\t\t\t\t\t\t\t\t<div class=\"flex items-start gap-2 text-sm\">\n\t\t\t\t\t\t\t\t\t<span class=\"shrink-0 font-medium text-muted-foreground\">{key}:</span>\n\t\t\t\t\t\t\t\t\t<span class=\"font-mono break-all\">{value}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</Popover.Content>\n\t\t\t</Popover.Root>\n\t\t{/if}\n\t</div>\n{:else}\n\t<span class=\"text-xs text-muted-foreground\">-</span>\n{/if}\n"],"names":["maxInlineTags","entries","$$props","a","b","hasMore","$.derived","$.get","visibleEntries","hiddenCount","div","root_1","$.index","$$anchor","$$item","key","$$array","value","span","root_2","span_1","$.child","span_2","$.reset","$.set_attribute","$.append","Popover_Root","Popover_Trigger","e","span_3","root_5","text_2","Popover_Content","div_1","root_6","div_2","$.each","$$array_1","div_3","root_7","span_4","span_5","$$render","consequent","span_6","root_8","consequent_1","alternate"],"mappings":"onCAAA,UAQmB,IAAAA,yBAAgB,CAAC,EAE7B,MAAAC,QACL,OAAO,QAAOC,EAAA,YAAA,CAAA,CAAA,EAAmB,MAAMC,EAAGC,IAAMD,EAAE,CAAC,EAAE,cAAcC,EAAE,CAAC,CAAA,CAAA,CAAA,EAEjEC,EAAOC,EAAA,IAAAC,EAAYN,CAAO,EAAC,OAASD,GAAa,EACjDQ,UAA0BP,CAAO,EAAC,MAAM,EAAGD,EAAa,CAAA,CAAA,EACxDS,EAAWH,EAAA,IAAAC,EAAYN,CAAO,EAAC,OAASD,GAAa,kCAI1DU,EAAGC,GAAA,MAAHD,CAAG,eACIF,CAAc,EAAAI,EAAA,CAAAC,EAAAC,IAAA,4BAAKC,EAAI,IAAAR,EAAAS,CAAA,EAAA,CAAA,EAACC,EAAM,IAAAV,EAAAS,CAAA,EAAA,CAAA,EACnC,IAAAE,EAAAC,GAAA,EAGCC,EAAIC,EAHLH,CAAA,MAGCE,CAAI,IAAJA,CAAI,EACJ,IAAAE,IADAF,EAAI,CAAA,MACJE,EAAI,EAAA,IAAJA,CAAI,EAJLC,EAAAL,CAAA,gBAG6BH,EAAG,GAAA,EAAA,GAAA,EAC/BS,GAAAF,UAA0DL,GAAK,MAAGA,GAAK,IAJxEQ,EAAAZ,EAAAK,CAAA,gEAQAQ,EAAYb,EAAA,uDACXc,EAAed,EAAA,SAAWe,GAAMA,EAAE,gBAAe,mBAChD,IAAAC,EAAAC,GAAA,EAAAC,EAAAV,EAAAQ,CAAA,EAAAN,EAAAM,CAAA,kBAGEpB,CAAW,GAAA,EAAA,OAAA,CAAA,EAHbgB,EAAAZ,EAAAgB,CAAA,4DAMDG,EAAenB,EAAA,mCACdoB,EAAGC,GAAA,EAEFC,MAFDF,CAAG,EAAA,CAAA,EAEFG,EAAAD,WACOlC,CAAO,EAAAW,EAAA,CAAAC,EAAAC,IAAA,4BAAKC,GAAI,IAAAR,EAAA8B,CAAA,EAAA,CAAA,EAACpB,GAAM,IAAAV,EAAA8B,CAAA,EAAA,CAAA,MAC5BC,EAAGC,GAAA,EACFC,IADDF,CAAG,OACFE,CAAI,IAAJA,CAAI,EACJ,IAAAC,IADAD,EAAI,CAAA,OACJC,EAAI,EAAA,IAAJA,CAAI,IAFLH,CAAG,iBACuDvB,GAAG,GAAA,EAAA,GAAA,OAC1BE,IAAK,QAFxCqB,CAAG,MAFLH,CAAG,IAFJF,CAAG,MAAHA,CAAG,+EAVF5B,CAAO,GAAAqC,EAAAC,CAAA,MATZjC,CAAG,MAAHA,CAAG,aAmCHkC,EAAIC,GAAA,MAAJD,CAAI,aApCD3C,CAAO,EAAC,OAAS,EAACyC,EAAAI,CAAA,EAAAJ,EAAAK,EAAA,EAAA,eAFvB"}
\ No newline at end of file
+{"version":3,"file":"Dtb4566M.js","sources":["../../../../../../src/lib/components/attributes-display.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport * as Popover from '$lib/components/ui/popover';\n\n\tinterface Props {\n\t\tattributes: Record<string, string> | null | undefined;\n\t\tmaxInlineTags?: number;\n\t}\n\n\tlet { attributes, maxInlineTags = 2 }: Props = $props();\n\n\tconst entries = $derived(\n\t\tObject.entries(attributes || {}).sort((a, b) => a[0].localeCompare(b[0]))\n\t);\n\tconst hasMore = $derived(entries.length > maxInlineTags);\n\tconst visibleEntries = $derived(entries.slice(0, maxInlineTags));\n\tconst hiddenCount = $derived(entries.length - maxInlineTags);\n</script>\n\n{#if entries.length > 0}\n\t<div class=\"flex flex-wrap items-center gap-1\">\n\t\t{#each visibleEntries as [key, value]}\n\t\t\t<span\n\t\t\t\tclass=\"inline-flex items-center rounded bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground\"\n\t\t\t>\n\t\t\t\t<span class=\"font-semibold\">{key}:</span>\n\t\t\t\t<span class=\"ml-1 max-w-[120px] truncate font-mono\" title={value}>{value}</span>\n\t\t\t</span>\n\t\t{/each}\n\t\t{#if hasMore}\n\t\t\t<Popover.Root>\n\t\t\t\t<Popover.Trigger onclick={(e) => e.stopPropagation()}>\n\t\t\t\t\t<span\n\t\t\t\t\t\tclass=\"cursor-pointer text-xs text-muted-foreground underline underline-offset-2 hover:text-foreground\"\n\t\t\t\t\t>\n\t\t\t\t\t\t+{hiddenCount} more\n\t\t\t\t\t</span>\n\t\t\t\t</Popover.Trigger>\n\t\t\t\t<Popover.Content class=\"w-80\">\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<h4 class=\"text-sm font-medium\">All Attributes Tags</h4>\n\t\t\t\t\t\t<div class=\"grid gap-2\">\n\t\t\t\t\t\t\t{#each entries as [key, value]}\n\t\t\t\t\t\t\t\t<div class=\"flex items-start gap-2 text-sm\">\n\t\t\t\t\t\t\t\t\t<span class=\"shrink-0 font-medium text-muted-foreground\">{key}:</span>\n\t\t\t\t\t\t\t\t\t<span class=\"font-mono break-all\">{value}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</Popover.Content>\n\t\t\t</Popover.Root>\n\t\t{/if}\n\t</div>\n{:else}\n\t<span class=\"text-xs text-muted-foreground\">-</span>\n{/if}\n"],"names":["maxInlineTags","entries","$$props","a","b","hasMore","$.derived","$.get","visibleEntries","hiddenCount","div","root_1","$.index","$$anchor","$$item","key","$$array","value","span","root_2","span_1","$.child","span_2","$.reset","$.set_attribute","$.append","Popover_Root","Popover_Trigger","e","span_3","root_5","text_2","Popover_Content","div_1","root_6","div_2","$.each","$$array_1","div_3","root_7","span_4","span_5","$$render","consequent","span_6","root_8","consequent_1","alternate"],"mappings":"onCAAA,UAQmB,IAAAA,yBAAgB,CAAC,EAE7B,MAAAC,QACL,OAAO,QAAOC,EAAA,YAAA,CAAA,CAAA,EAAmB,MAAMC,EAAGC,IAAMD,EAAE,CAAC,E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AAJA,CAAI,IAFLH,CAAG,iBACuDvB,GAAG,GAAA,EAAA,GAAA,OAC1BE,IAAK,QAFxCqB,CAAG,MAFLH,CAAG,IAFJF,CAAG,MAAHA,CAAG,+EAVF5B,CAAO,GAAAqC,EAAAC,CAAA,MATZjC,CAAG,MAAHA,CAAG,aAmCHkC,EAAIC,GAAA,MAAJD,CAAI,aApCD3C,CAAO,EAAC,OAAS,EAACyC,EAAAI,CAAA,EAAAJ,EAAAK,EAAA,EAAA,eAFvB"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/CK7m5hvD.js b/backend/static/frontend/_app/immutable/chunks/DuUGLGtW.js
similarity index 97%
rename from backend/static/frontend/_app/immutable/chunks/CK7m5hvD.js
rename to backend/static/frontend/_app/immutable/chunks/DuUGLGtW.js
index 881f2916..93b014d1 100644
--- a/backend/static/frontend/_app/immutable/chunks/CK7m5hvD.js
+++ b/backend/static/frontend/_app/immutable/chunks/DuUGLGtW.js
@@ -1 +1 @@
-import{l as B,s as D,i as h}from"./DMODTt3n.js";import{d as m,c,b as o,p as E,g as a,u as P,a as F,f as L,s as A,n as J,t as K,k as G,l as H,e as O,r as Q}from"./B2WdN-7r.js";import{c as C}from"./BAcG0-U_.js";import{a as R}from"./DH0tcjsQ.js";import{T as U,a as V,b as W}from"./2aB7Aq1L.js";import{I as X,s as Y}from"./CQWqWi6p.js";import{T as Z}from"./B4mGfC0Z.js";function ee(v,t){const _=B(t,["children","$$slots","$$events","$$legacy"]);const i=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335"}],["path",{d:"m9 11 3 3L22 4"}]];X(v,D({name:"circle-check-big"},()=>_,{get iconNode(){return i},children:(p,n)=>{var d=m(),x=c(d);Y(x,t,"default",{},null),o(p,d)},$$slots:{default:!0}}))}var te=L("<span><!> </span>"),ae=L("<!> <!>",1);function ge(v,t){E(t,!0);const _=g=>{var s=te(),u=O(s);{var b=e=>{var l=m(),f=c(l);{var $=r=>{ee(r,{class:"h-3 w-3"})},w=r=>{Z(r,{class:"h-3 w-3"})};h(f,r=>{a(n)()?.icon==="check"?r($):r(w,!1)})}o(e,l)};h(u,e=>{a(p)&&e(b)})}var k=A(u);Q(s),G((e,l,f)=>{R(s,1,`inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium ${e??""} ${l??""}`),H(k,` ${f??""}`)},[()=>a(n)()?.bg,()=>a(n)()?.text,()=>a(n)()?.label]),o(g,s)},i=P(()=>t.score>=.75?"critical":t.score>=.5?"high":t.score>=.25?"medium":"good"),p=P(()=>t.showIcon??(a(i)==="critical"||a(i)==="high")),n=P(()=>()=>{switch(a(i)){case"critical":return{bg:"bg-red-500/15",text:"text-red-600 dark:text-red-400",label:"Critical",icon:"alert"};case"high":return{bg:"bg-orange-500/15",text:"text-orange-600 dark:text-orange-400",label:"High",icon:"alert"};case"medium":return{bg:"bg-yellow-500/15",text:"text-yellow-600 dark:text-yellow-500",label:"Medium",icon:"alert"};case"good":return{bg:"bg-green-500/15",text:"text-green-600 dark:text-green-400",label:"Good",icon:"check"}}});var d=m(),x=c(d);{var S=g=>{var s=m(),u=c(s);{var b=e=>{var l=m(),f=c(l);C(f,()=>W,($,w)=>{w($,{children:(r,re)=>{var M=ae(),N=c(M);C(N,()=>U,(y,I)=>{I(y,{class:"cursor-default",children:(T,q)=>{_(T)},$$slots:{default:!0}})});var j=A(N,2);C(j,()=>V,(y,I)=>{I(y,{side:"left",children:(T,q)=>{J();var z=K();G(()=>H(z,t.reason)),o(T,z)},$$slots:{default:!0}})}),o(r,M)},$$slots:{default:!0}})}),o(e,l)},k=e=>{_(e)};h(u,e=>{t.reason?e(b):e(k,!1)})}o(g,s)};h(x,g=>{a(n)()&&g(S)})}o(v,d),F()}export{ge as I};
+import{l as B,s as D,i as h}from"./DMODTt3n.js";import{d as m,c,b as o,p as E,g as a,u as P,a as F,f as L,s as A,n as J,t as K,k as G,l as H,e as O,r as Q}from"./B2WdN-7r.js";import{c as C}from"./BAcG0-U_.js";import{a as R}from"./DH0tcjsQ.js";import{T as U,a as V,b as W}from"./5D-Broyu.js";import{I as X,s as Y}from"./CQWqWi6p.js";import{T as Z}from"./B4mGfC0Z.js";function ee(v,t){const _=B(t,["children","$$slots","$$events","$$legacy"]);const i=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335"}],["path",{d:"m9 11 3 3L22 4"}]];X(v,D({name:"circle-check-big"},()=>_,{get iconNode(){return i},children:(p,n)=>{var d=m(),x=c(d);Y(x,t,"default",{},null),o(p,d)},$$slots:{default:!0}}))}var te=L("<span><!> </span>"),ae=L("<!> <!>",1);function ge(v,t){E(t,!0);const _=g=>{var s=te(),u=O(s);{var b=e=>{var l=m(),f=c(l);{var $=r=>{ee(r,{class:"h-3 w-3"})},w=r=>{Z(r,{class:"h-3 w-3"})};h(f,r=>{a(n)()?.icon==="check"?r($):r(w,!1)})}o(e,l)};h(u,e=>{a(p)&&e(b)})}var k=A(u);Q(s),G((e,l,f)=>{R(s,1,`inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium ${e??""} ${l??""}`),H(k,` ${f??""}`)},[()=>a(n)()?.bg,()=>a(n)()?.text,()=>a(n)()?.label]),o(g,s)},i=P(()=>t.score>=.75?"critical":t.score>=.5?"high":t.score>=.25?"medium":"good"),p=P(()=>t.showIcon??(a(i)==="critical"||a(i)==="high")),n=P(()=>()=>{switch(a(i)){case"critical":return{bg:"bg-red-500/15",text:"text-red-600 dark:text-red-400",label:"Critical",icon:"alert"};case"high":return{bg:"bg-orange-500/15",text:"text-orange-600 dark:text-orange-400",label:"High",icon:"alert"};case"medium":return{bg:"bg-yellow-500/15",text:"text-yellow-600 dark:text-yellow-500",label:"Medium",icon:"alert"};case"good":return{bg:"bg-green-500/15",text:"text-green-600 dark:text-green-400",label:"Good",icon:"check"}}});var d=m(),x=c(d);{var S=g=>{var s=m(),u=c(s);{var b=e=>{var l=m(),f=c(l);C(f,()=>W,($,w)=>{w($,{children:(r,re)=>{var M=ae(),N=c(M);C(N,()=>U,(y,I)=>{I(y,{class:"cursor-default",children:(T,q)=>{_(T)},$$slots:{default:!0}})});var j=A(N,2);C(j,()=>V,(y,I)=>{I(y,{side:"left",children:(T,q)=>{J();var z=K();G(()=>H(z,t.reason)),o(T,z)},$$slots:{default:!0}})}),o(r,M)},$$slots:{default:!0}})}),o(e,l)},k=e=>{_(e)};h(u,e=>{t.reason?e(b):e(k,!1)})}o(g,s)};h(x,g=>{a(n)()&&g(S)})}o(v,d),F()}export{ge as I};
diff --git a/backend/static/frontend/_app/immutable/chunks/CK7m5hvD.js.map b/backend/static/frontend/_app/immutable/chunks/DuUGLGtW.js.map
similarity index 98%
rename from backend/static/frontend/_app/immutable/chunks/CK7m5hvD.js.map
rename to backend/static/frontend/_app/immutable/chunks/DuUGLGtW.js.map
index beb84200..90f974dd 100644
--- a/backend/static/frontend/_app/immutable/chunks/CK7m5hvD.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/DuUGLGtW.js.map
@@ -1 +1 @@
-{"version":3,"file":"CK7m5hvD.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/circle-check-big.svelte","../../../../../../src/lib/components/ui/impact-badge/impact-badge.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M21.801 10A10 10 0 1 1 17 3.335\" }], [\"path\", { \"d\": \"m9 11 3 3L22 4\" }]];\n/**\n * @component @name CircleCheckBig\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEuODAxIDEwQTEwIDEwIDAgMSAxIDE3IDMuMzM1IiAvPgogIDxwYXRoIGQ9Im05IDExIDMgM0wyMiA0IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/circle-check-big\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"circle-check-big\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { TriangleAlert, CheckCircle } from 'lucide-svelte';\n\timport * as Tooltip from '$lib/components/ui/tooltip';\n\n\tlet {\n\t\tscore,\n\t\tshowIcon,\n\t\treason\n\t}: {\n\t\tscore: number; // 0-1 impact score\n\t\tshowIcon?: boolean;\n\t\treason?: string;\n\t} = $props();\n\n\t// Map score to impact level\n\ttype ImpactLevel = 'critical' | 'high' | 'medium' | 'good';\n\tconst level = $derived<ImpactLevel>(\n\t\tscore >= 0.75 ? 'critical' : score >= 0.5 ? 'high' : score >= 0.25 ? 'medium' : 'good'\n\t);\n\n\t// Default showIcon to true for critical and high levels\n\tconst shouldShowIcon = $derived(showIcon ?? (level === 'critical' || level === 'high'));\n\n\tconst config = $derived(() => {\n\t\tswitch (level) {\n\t\t\tcase 'critical':\n\t\t\t\treturn {\n\t\t\t\t\tbg: 'bg-red-500/15',\n\t\t\t\t\ttext: 'text-red-600 dark:text-red-400',\n\t\t\t\t\tlabel: 'Critical',\n\t\t\t\t\ticon: 'alert'\n\t\t\t\t};\n\t\t\tcase 'high':\n\t\t\t\treturn {\n\t\t\t\t\tbg: 'bg-orange-500/15',\n\t\t\t\t\ttext: 'text-orange-600 dark:text-orange-400',\n\t\t\t\t\tlabel: 'High',\n\t\t\t\t\ticon: 'alert'\n\t\t\t\t};\n\t\t\tcase 'medium':\n\t\t\t\treturn {\n\t\t\t\t\tbg: 'bg-yellow-500/15',\n\t\t\t\t\ttext: 'text-yellow-600 dark:text-yellow-500',\n\t\t\t\t\tlabel: 'Medium',\n\t\t\t\t\ticon: 'alert'\n\t\t\t\t};\n\t\t\tcase 'good':\n\t\t\t\treturn {\n\t\t\t\t\tbg: 'bg-green-500/15',\n\t\t\t\t\ttext: 'text-green-600 dark:text-green-400',\n\t\t\t\t\tlabel: 'Good',\n\t\t\t\t\ticon: 'check'\n\t\t\t\t};\n\t\t}\n\t});\n</script>\n\n{#snippet badge()}\n\t<span\n\t\tclass=\"inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium {config()\n\t\t\t?.bg} {config()?.text}\"\n\t>\n\t\t{#if shouldShowIcon}\n\t\t\t{#if config()?.icon === 'check'}\n\t\t\t\t<CheckCircle class=\"h-3 w-3\" />\n\t\t\t{:else}\n\t\t\t\t<TriangleAlert class=\"h-3 w-3\" />\n\t\t\t{/if}\n\t\t{/if}\n\t\t{config()?.label}\n\t</span>\n{/snippet}\n\n{#if config()}\n\t{#if reason}\n\t\t<Tooltip.Root>\n\t\t\t<Tooltip.Trigger class=\"cursor-default\">\n\t\t\t\t{@render badge()}\n\t\t\t</Tooltip.Trigger>\n\t\t\t<Tooltip.Content side=\"left\">\n\t\t\t\t{reason}\n\t\t\t</Tooltip.Content>\n\t\t</Tooltip.Root>\n\t{:else}\n\t\t{@render badge()}\n\t{/if}\n{/if}\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","badge","span","root_1","node","$.child","CheckCircle","TriangleAlert","config","$$render","consequent","alternate","shouldShowIcon","consequent_1","$.reset","$.set_class","$0","$1","$.get","$.append","level","$$props","$.derived","Tooltip_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,2DAEd2B,EAAe3B,EAAA,iJAKRG,EAAKH,CAAA,qDAXXU,CAAM,KAAAC,EAAAiB,CAAA,cAlBX","x_google_ignoreList":[0]}
\ No newline at end of file
+{"version":3,"file":"DuUGLGtW.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/circle-check-big.svelte","../../../../../../src/lib/components/ui/impact-badge/impact-badge.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M21.801 10A10 10 0 1 1 17 3.335\" }], [\"path\", { \"d\": \"m9 11 3 3L22 4\" }]];\n/**\n * @component @name CircleCheckBig\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEuODAxIDEwQTEwIDEwIDAgMSAxIDE3IDMuMzM1IiAvPgogIDxwYXRoIGQ9Im05IDExIDMgM0wyMiA0IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/circle-check-big\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"circle-check-big\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { TriangleAlert, CheckCircle } from 'lucide-svelte';\n\timport * as Tooltip from '$lib/components/ui/tooltip';\n\n\tlet {\n\t\tscore,\n\t\tshowIcon,\n\t\treason\n\t}: {\n\t\tscore: number; // 0-1 impact score\n\t\tshowIcon?: boolean;\n\t\treason?: string;\n\t} = $props();\n\n\t// Map score to impact level\n\ttype ImpactLevel = 'critical' | 'high' | 'medium' | 'good';\n\tconst level = $derived<ImpactLevel>(\n\t\tscore >= 0.75 ? 'critical' : score >= 0.5 ? 'high' : score >= 0.25 ? 'medium' : 'good'\n\t);\n\n\t// Default showIcon to true for critical and high levels\n\tconst shouldShowIcon = $derived(showIcon ?? (level === 'critical' || level === 'high'));\n\n\tconst config = $derived(() => {\n\t\tswitch (level) {\n\t\t\tcase 'critical':\n\t\t\t\treturn {\n\t\t\t\t\tbg: 'bg-red-500/15',\n\t\t\t\t\ttext: 'text-red-600 dark:text-red-400',\n\t\t\t\t\tlabel: 'Critical',\n\t\t\t\t\ticon: 'alert'\n\t\t\t\t};\n\t\t\tcase 'high':\n\t\t\t\treturn {\n\t\t\t\t\tbg: 'bg-orange-500/15',\n\t\t\t\t\ttext: 'text-orange-600 dark:text-orange-400',\n\t\t\t\t\tlabel: 'High',\n\t\t\t\t\ticon: 'alert'\n\t\t\t\t};\n\t\t\tcase 'medium':\n\t\t\t\treturn {\n\t\t\t\t\tbg: 'bg-yellow-500/15',\n\t\t\t\t\ttext: 'text-yellow-600 dark:text-yellow-500',\n\t\t\t\t\tlabel: 'Medium',\n\t\t\t\t\ticon: 'alert'\n\t\t\t\t};\n\t\t\tcase 'good':\n\t\t\t\treturn {\n\t\t\t\t\tbg: 'bg-green-500/15',\n\t\t\t\t\ttext: 'text-green-600 dark:text-green-400',\n\t\t\t\t\tlabel: 'Good',\n\t\t\t\t\ticon: 'check'\n\t\t\t\t};\n\t\t}\n\t});\n</script>\n\n{#snippet badge()}\n\t<span\n\t\tclass=\"inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium {config()\n\t\t\t?.bg} {config()?.text}\"\n\t>\n\t\t{#if shouldShowIcon}\n\t\t\t{#if config()?.icon === 'check'}\n\t\t\t\t<CheckCircle class=\"h-3 w-3\" />\n\t\t\t{:else}\n\t\t\t\t<TriangleAlert class=\"h-3 w-3\" />\n\t\t\t{/if}\n\t\t{/if}\n\t\t{config()?.label}\n\t</span>\n{/snippet}\n\n{#if config()}\n\t{#if reason}\n\t\t<Tooltip.Root>\n\t\t\t<Tooltip.Trigger class=\"cursor-default\">\n\t\t\t\t{@render badge()}\n\t\t\t</Tooltip.Trigger>\n\t\t\t<Tooltip.Content side=\"left\">\n\t\t\t\t{reason}\n\t\t\t</Tooltip.Content>\n\t\t</Tooltip.Root>\n\t{:else}\n\t\t{@render badge()}\n\t{/if}\n{/if}\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","badge","span","root_1","node","$.child","CheckCircle","TriangleAlert","config","$$render","consequent","alternate","shouldShowIcon","consequent_1","$.reset","$.set_class","$0","$1","$.get","$.append","level","$$props","$.derived","Tooltip_Root","Tooltip_Trigger","Tooltip_Content","consequent_3"],"mappings":"8XAAA,iEA6CMA,EAAQ,EAAK,OAAM,CAAI,EAAK,kCAAiC,GAAM,OAAM,CAAI,EAAK,gBAAgB,CAAA,GAcvGC,EAAIC,EAAAC,EAAA,CAAA,KAAA,kBAAA,EAAA,IAAAC,EAAA,uBAAgDJ,6FAFrD,iECzDA,eAyDUK,EAAKH,GAAA,CACb,IAAAI,EAAAC,GAAA,EAAAC,EAAAC,EAAAH,CAAA,yCAMGI,GAAWR,EAAA,CAAA,MAAA,SAAA,CAAA,SAEXS,EAAaT,EAAA,CAAA,MAAA,SAAA,CAAA,aAHVU,CAAM,EAAA,GAAI,OAAS,QAAOC,EAAAC,CAAA,EAAAD,EAAAE,EAAA,EAAA,sBAD3BC,CAAc,GAAAH,EAAAI,CAAA,eAJnBC,EAAAZ,CAAA,cAAAa,EAAAb,EAAA,EAAA,+EAAAc,GAAA,EAAA,IAAAC,GAAA,EAAA,EAAA,qBACoF,IAAAC,EAAAV,CAAM,KACvF,GAAK,IAAAU,EAAAV,CAAM,KAAI,KASjB,IAAAU,EAAAV,CAAM,KAAI,QAXXW,EAAArB,EAAAI,CAAA,GA1CKkB,iBACI,IAAO,WAAsBC,EAAA,OAAA,GAAM,OAAMA,EAAA,OAAY,IAAO,SAAW,MAAK,EAIhFT,uBAAuCQ,CAAK,IAAK,YAAUF,EAAIE,CAAK,IAAK,OAAM,EAE/EZ,EAAMc,EAAA,IAAA,IAAkB,UACrBF,CAAK,EAAA,KACP,kBAEH,GAAI,gBACJ,KAAM,iCACN,MAAO,WACP,KAAM,aAEH,cAEH,GAAI,mBACJ,KAAM,uCACN,MAAO,OACP,KAAM,aAEH,gBAEH,GAAI,mBACJ,KAAM,uCACN,MAAO,SACP,KAAM,aAEH,cAEH,GAAI,kBACJ,KAAM,qCACN,MAAO,OACP,KAAM,SAGV,CAAC,6FAqBCG,EAAYzB,EAAA,uDACX0B,EAAe1B,EAAA,yCACNG,EAAKH,CAAA,2DAEd2B,EAAe3B,EAAA,iJAKRG,EAAKH,CAAA,qDAXXU,CAAM,KAAAC,EAAAiB,CAAA,cAlBX","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/DwGghOhY.js b/backend/static/frontend/_app/immutable/chunks/DwGghOhY.js
deleted file mode 100644
index 333c6d34..00000000
--- a/backend/static/frontend/_app/immutable/chunks/DwGghOhY.js
+++ /dev/null
@@ -1 +0,0 @@
-import{p as ra,i as o}from"./DMODTt3n.js";import{d as i,c as f,b as r,f as s,k as t,w as U}from"./B2WdN-7r.js";import{a as v,c as l}from"./DH0tcjsQ.js";var aa=s('<img src="/gin.png" alt="Gin"/>'),ea=U('<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="1" y="3" width="10" height="2.5" rx="0.5" fill="#00ACD7"></rect><rect x="1" y="6.75" width="14" height="2.5" rx="0.5" fill="#00ACD7"></rect><rect x="1" y="10.5" width="6" height="2.5" rx="0.5" fill="#00ACD7"></rect></svg>'),ta=s('<img src="/chi.png" alt="Chi"/>'),va=s('<img src="/fasthttp.png" alt="FastHTTP"/>'),la=s('<img src="/stdlib.png" alt="Standard Library"/>'),oa=U('<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="1.5" fill="#61DAFB"></circle><ellipse cx="8" cy="8" rx="6.5" ry="2.5" stroke="#61DAFB" stroke-width="0.8" fill="none"></ellipse><ellipse cx="8" cy="8" rx="6.5" ry="2.5" stroke="#61DAFB" stroke-width="0.8" fill="none" transform="rotate(60 8 8)"></ellipse><ellipse cx="8" cy="8" rx="6.5" ry="2.5" stroke="#61DAFB" stroke-width="0.8" fill="none" transform="rotate(120 8 8)"></ellipse></svg>'),ia=s('<img src="/svelte.png" alt="Svelte"/>'),fa=U('<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.8 1H10.4L8 5L5.6 1H3.2L8 9.5L12.8 1Z" fill="#41B883"></path><path d="M15 1H12.8L8 9.5L3.2 1H1L8 13L15 1Z" fill="#41B883" opacity="0.6"></path><path d="M12.8 1H10.4L8 5L5.6 1H3.2L8 9.5L12.8 1Z" fill="#35495E"></path></svg>'),sa=s('<img src="/nextjs.png" alt="Next.js"/>'),ma=s('<img src="/nestjs.png" alt="NestJS"/>'),ga=s('<img src="/express.png" alt="Express"/>'),na=s('<img src="/remix.png" alt="Remix"/>'),_a=s('<img src="/jquery.png" alt="jQuery"/>'),ca=s('<img src="/hono.png" alt="Hono"/>'),wa=s('<img src="/cloudflare.png" alt="Cloudflare"/>'),ha=s('<img src="/opentelemetry.png" alt="OpenTelemetry"/>'),ua=s('<img src="/symfony.png" alt="Symfony"/>'),ka=s('<img src="/flutter.png" alt="Flutter" style="object-fit: contain;"/>'),xa=s('<img src="/android.png" alt="Android" style="object-fit: contain;"/>'),ya=s('<img src="/custom.png" alt="Custom"/>');function pa(W,a){let e=ra(a,"class",3,"size-4 shrink-0");var V=i(),X=f(V);{var Y=m=>{var H=aa();t(()=>v(H,1,l(e()))),r(m,H)},$=m=>{var H=i(),rr=f(H);{var ar=g=>{var D=ea();t(()=>v(D,0,l(e()))),r(g,D)},er=g=>{var D=i(),tr=f(D);{var vr=n=>{var C=ta();t(()=>v(C,1,l(e()))),r(n,C)},lr=n=>{var C=i(),or=f(C);{var ir=_=>{var S=va();t(()=>v(S,1,l(e()))),r(_,S)},fr=_=>{var S=i(),sr=f(S);{var mr=c=>{var M=la();t(()=>v(M,1,l(e()))),r(c,M)},gr=c=>{var M=i(),nr=f(M);{var _r=w=>{var N=oa();t(()=>v(N,0,l(e()))),r(w,N)},cr=w=>{var N=i(),wr=f(N);{var hr=h=>{var T=ia();t(()=>v(T,1,l(e()))),r(h,T)},ur=h=>{var T=i(),kr=f(T);{var xr=u=>{var Z=fa();t(()=>v(Z,0,l(e()))),r(u,Z)},yr=u=>{var Z=i(),dr=f(Z);{var Lr=k=>{var q=sa();t(()=>v(q,1,l(e()))),r(k,q)},jr=k=>{var q=i(),pr=f(q);{var Br=x=>{var E=ma();t(()=>v(E,1,l(e()))),r(x,E)},br=x=>{var E=i(),Ar=f(E);{var Fr=y=>{var z=ga();t(()=>v(z,1,l(e()))),r(y,z)},Hr=y=>{var z=i(),Dr=f(z);{var Cr=d=>{var G=na();t(()=>v(G,1,l(e()))),r(d,G)},Sr=d=>{var G=i(),Mr=f(G);{var Nr=L=>{var J=_a();t(()=>v(J,1,l(e()))),r(L,J)},Tr=L=>{var J=i(),Zr=f(J);{var qr=j=>{var O=ca();t(()=>v(O,1,l(e()))),r(j,O)},Er=j=>{var O=i(),zr=f(O);{var Gr=p=>{var P=wa();t(()=>v(P,1,l(e()))),r(p,P)},Jr=p=>{var P=i(),Or=f(P);{var Pr=B=>{var Q=ha();t(()=>v(Q,1,l(e()))),r(B,Q)},Qr=B=>{var Q=i(),Rr=f(Q);{var Ir=b=>{var R=ua();t(()=>v(R,1,l(e()))),r(b,R)},Kr=b=>{var R=i(),Ur=f(R);{var Vr=A=>{var I=ka();t(()=>v(I,1,l(e()))),r(A,I)},Wr=A=>{var I=i(),Xr=f(I);{var Yr=F=>{var K=xa();t(()=>v(K,1,l(e()))),r(F,K)},$r=F=>{var K=ya();t(()=>v(K,1,l(e()))),r(F,K)};o(Xr,F=>{a.framework==="android"?F(Yr):F($r,!1)},!0)}r(A,I)};o(Ur,A=>{a.framework==="flutter"?A(Vr):A(Wr,!1)},!0)}r(b,R)};o(Rr,b=>{a.framework==="symfony"?b(Ir):b(Kr,!1)},!0)}r(B,Q)};o(Or,B=>{a.framework==="opentelemetry"?B(Pr):B(Qr,!1)},!0)}r(p,P)};o(zr,p=>{a.framework==="cloudflare"?p(Gr):p(Jr,!1)},!0)}r(j,O)};o(Zr,j=>{a.framework==="hono"?j(qr):j(Er,!1)},!0)}r(L,J)};o(Mr,L=>{a.framework==="jquery"?L(Nr):L(Tr,!1)},!0)}r(d,G)};o(Dr,d=>{a.framework==="remix"?d(Cr):d(Sr,!1)},!0)}r(y,z)};o(Ar,y=>{a.framework==="express"?y(Fr):y(Hr,!1)},!0)}r(x,E)};o(pr,x=>{a.framework==="nestjs"?x(Br):x(br,!1)},!0)}r(k,q)};o(dr,k=>{a.framework==="nextjs"?k(Lr):k(jr,!1)},!0)}r(u,Z)};o(kr,u=>{a.framework==="vuejs"?u(xr):u(yr,!1)},!0)}r(h,T)};o(wr,h=>{a.framework==="svelte"?h(hr):h(ur,!1)},!0)}r(w,N)};o(nr,w=>{a.framework==="react"||a.framework==="react-native"?w(_r):w(cr,!1)},!0)}r(c,M)};o(sr,c=>{a.framework==="stdlib"?c(mr):c(gr,!1)},!0)}r(_,S)};o(or,_=>{a.framework==="fasthttp"?_(ir):_(fr,!1)},!0)}r(n,C)};o(tr,n=>{a.framework==="chi"?n(vr):n(lr,!1)},!0)}r(g,D)};o(rr,g=>{a.framework==="fiber"?g(ar):g(er,!1)},!0)}r(m,H)};o(X,m=>{a.framework==="gin"?m(Y):m($,!1)})}r(W,V)}export{pa as F};
diff --git a/backend/static/frontend/_app/immutable/chunks/DwGghOhY.js.map b/backend/static/frontend/_app/immutable/chunks/DwGghOhY.js.map
deleted file mode 100644
index 9e6eb16b..00000000
--- a/backend/static/frontend/_app/immutable/chunks/DwGghOhY.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"DwGghOhY.js","sources":["../../../../../../src/lib/components/framework-icon.svelte"],"sourcesContent":["<script lang=\"ts\">\n import type { Framework } from '$lib/state/projects.svelte';\n\n interface Props {\n framework: Framework | string;\n class?: string;\n }\n\n let { framework, class: className = 'size-4 shrink-0' }: Props = $props();\n</script>\n\n{#if framework === 'gin'}\n <img src=\"/gin.png\" alt=\"Gin\" class={className} />\n{:else if framework === 'fiber'}\n <svg class={className} viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"1\" y=\"3\" width=\"10\" height=\"2.5\" rx=\"0.5\" fill=\"#00ACD7\"/>\n <rect x=\"1\" y=\"6.75\" width=\"14\" height=\"2.5\" rx=\"0.5\" fill=\"#00ACD7\"/>\n <rect x=\"1\" y=\"10.5\" width=\"6\" height=\"2.5\" rx=\"0.5\" fill=\"#00ACD7\"/>\n </svg>\n{:else if framework === 'chi'}\n <img src=\"/chi.png\" alt=\"Chi\" class={className} />\n{:else if framework === 'fasthttp'}\n <img src=\"/fasthttp.png\" alt=\"FastHTTP\" class={className} />\n{:else if framework === 'stdlib'}\n <img src=\"/stdlib.png\" alt=\"Standard Library\" class={className} />\n{:else if framework === 'react' || framework === 'react-native'}\n <svg class={className} viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"8\" cy=\"8\" r=\"1.5\" fill=\"#61DAFB\"/>\n <ellipse cx=\"8\" cy=\"8\" rx=\"6.5\" ry=\"2.5\" stroke=\"#61DAFB\" stroke-width=\"0.8\" fill=\"none\"/>\n <ellipse cx=\"8\" cy=\"8\" rx=\"6.5\" ry=\"2.5\" stroke=\"#61DAFB\" stroke-width=\"0.8\" fill=\"none\" transform=\"rotate(60 8 8)\"/>\n <ellipse cx=\"8\" cy=\"8\" rx=\"6.5\" ry=\"2.5\" stroke=\"#61DAFB\" stroke-width=\"0.8\" fill=\"none\" transform=\"rotate(120 8 8)\"/>\n </svg>\n{:else if framework === 'svelte'}\n <img src=\"/svelte.png\" alt=\"Svelte\" class={className} />\n{:else if framework === 'vuejs'}\n <svg class={className} viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12.8 1H10.4L8 5L5.6 1H3.2L8 9.5L12.8 1Z\" fill=\"#41B883\"/>\n <path d=\"M15 1H12.8L8 9.5L3.2 1H1L8 13L15 1Z\" fill=\"#41B883\" opacity=\"0.6\"/>\n <path d=\"M12.8 1H10.4L8 5L5.6 1H3.2L8 9.5L12.8 1Z\" fill=\"#35495E\"/>\n </svg>\n{:else if framework === 'nextjs'}\n <img src=\"/nextjs.png\" alt=\"Next.js\" class={className} />\n{:else if framework === 'nestjs'}\n <img src=\"/nestjs.png\" alt=\"NestJS\" class={className} />\n{:else if framework === 'express'}\n <img src=\"/express.png\" alt=\"Express\" class={className} />\n{:else if framework === 'remix'}\n <img src=\"/remix.png\" alt=\"Remix\" class={className} />\n{:else if framework === 'jquery'}\n <img src=\"/jquery.png\" alt=\"jQuery\" class={className} />\n{:else if framework === 'hono'}\n <img src=\"/hono.png\" alt=\"Hono\" class={className} />\n{:else if framework === 'cloudflare'}\n <img src=\"/cloudflare.png\" alt=\"Cloudflare\" class={className} />\n{:else if framework === 'opentelemetry'}\n <img src=\"/opentelemetry.png\" alt=\"OpenTelemetry\" class={className} />\n{:else if framework === 'symfony'}\n <img src=\"/symfony.png\" alt=\"Symfony\" class={className} />\n{:else if framework === 'flutter'}\n <img src=\"/flutter.png\" alt=\"Flutter\" class={className} style=\"object-fit: contain;\" />\n{:else if framework === 'android'}\n <img src=\"/android.png\" alt=\"Android\" class={className} style=\"object-fit: contain;\" />\n{:else}\n <img src=\"/custom.png\" alt=\"Custom\" class={className} />\n{/if}\n"],"names":["className","img","root_1","$.template_effect","$.set_class","svg","root_3","img_1","root_5","img_2","root_7","img_3","root_9","svg_1","root_11","img_4","root_13","svg_2","root_15","img_5","root_17","img_6","root_19","img_7","root_21","img_8","root_23","img_9","root_25","img_10","root_27","img_11","root_29","img_12","root_31","img_13","root_33","img_14","root_35","img_15","root_37","img_16","root_38","$$render","consequent_18","alternate","consequent_17","alternate_1","consequent_16","alternate_2","consequent_15","alternate_3","consequent_14","alternate_4","consequent_13","alternate_5","consequent_12","alternate_6","consequent_11","alternate_7","consequent_10","alternate_8","consequent_9","alternate_9","consequent_8","alternate_10","consequent_7","alternate_11","consequent_6","alternate_12","$$props","consequent_5","alternate_13","consequent_4","alternate_14","consequent_3","alternate_15","consequent_2","alternate_16","consequent_1","alternate_17","consequent","alternate_18"],"mappings":"8mEAAA,CAQ4B,IAAAA,iBAAY,iBAAiB,kCAIpDC,EAAGC,GAAA,EAAHC,EAAA,IAAAC,EAAAH,MAAoCD,EAAS,CAAA,CAAA,CAAA,MAA7CC,CAAG,2CAEHI,EAAGC,GAAA,EAAHH,EAAA,IAAAC,EAAAC,MAAWL,EAAS,CAAA,CAAA,CAAA,MAApBK,CAAG,4CAMHE,EAAGC,GAAA,EAAHL,EAAA,IAAAC,EAAAG,MAAoCP,EAAS,CAAA,CAAA,CAAA,MAA7CO,CAAG,4CAEHE,EAAGC,GAAA,EAAHP,EAAA,IAAAC,EAAAK,MAA8CT,EAAS,CAAA,CAAA,CAAA,MAAvDS,CAAG,4CAEHE,EAAGC,GAAA,EAAHT,EAAA,IAAAC,EAAAO,MAAoDX,EAAS,CAAA,CAAA,CAAA,MAA7DW,CA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EAAAmC,GAAA,EAAA,sCANL,QAAOnC,EAAAoC,EAAA,EAAApC,EAAAqC,GAAA,EAAA,qCAFZ,MAAKrC,EAAAsC,CAAA,EAAAtC,EAAAuC,EAAA,EAAA,UAFxB"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/FmJ3F5-k.js b/backend/static/frontend/_app/immutable/chunks/FmJ3F5-k.js
new file mode 100644
index 00000000..7cc4a17e
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/FmJ3F5-k.js
@@ -0,0 +1 @@
+import{p as la,i as o}from"./DMODTt3n.js";import{d as i,c as f,b as r,f as s,k as t,w as W}from"./B2WdN-7r.js";import{a as v,c as l}from"./DH0tcjsQ.js";var oa=s('<img src="/gin.png" alt="Gin"/>'),ia=W('<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="1" y="3" width="10" height="2.5" rx="0.5" fill="#00ACD7"></rect><rect x="1" y="6.75" width="14" height="2.5" rx="0.5" fill="#00ACD7"></rect><rect x="1" y="10.5" width="6" height="2.5" rx="0.5" fill="#00ACD7"></rect></svg>'),fa=s('<img src="/chi.png" alt="Chi"/>'),sa=s('<img src="/fasthttp.png" alt="FastHTTP"/>'),ma=s('<img src="/stdlib.png" alt="Standard Library"/>'),ga=W('<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="1.5" fill="#61DAFB"></circle><ellipse cx="8" cy="8" rx="6.5" ry="2.5" stroke="#61DAFB" stroke-width="0.8" fill="none"></ellipse><ellipse cx="8" cy="8" rx="6.5" ry="2.5" stroke="#61DAFB" stroke-width="0.8" fill="none" transform="rotate(60 8 8)"></ellipse><ellipse cx="8" cy="8" rx="6.5" ry="2.5" stroke="#61DAFB" stroke-width="0.8" fill="none" transform="rotate(120 8 8)"></ellipse></svg>'),na=s('<img src="/svelte.png" alt="Svelte"/>'),_a=W('<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.8 1H10.4L8 5L5.6 1H3.2L8 9.5L12.8 1Z" fill="#41B883"></path><path d="M15 1H12.8L8 9.5L3.2 1H1L8 13L15 1Z" fill="#41B883" opacity="0.6"></path><path d="M12.8 1H10.4L8 5L5.6 1H3.2L8 9.5L12.8 1Z" fill="#35495E"></path></svg>'),ca=s('<img src="/nextjs.png" alt="Next.js"/>'),wa=s('<img src="/nestjs.png" alt="NestJS"/>'),ua=s('<img src="/express.png" alt="Express"/>'),ha=s('<img src="/remix.png" alt="Remix"/>'),ka=s('<img src="/jquery.png" alt="jQuery"/>'),xa=s('<img src="/hono.png" alt="Hono"/>'),ya=s('<img src="/cloudflare.png" alt="Cloudflare"/>'),da=s('<img src="/opentelemetry.png" alt="OpenTelemetry"/>'),La=s('<img src="/symfony.png" alt="Symfony"/>'),ja=s('<img src="/laravel.png" alt="Laravel"/>'),pa=s('<img src="/flutter.png" alt="Flutter" style="object-fit: contain;"/>'),Ba=s('<img src="/android.png" alt="Android" style="object-fit: contain;"/>'),ba=s('<img src="/custom.png" alt="Custom"/>');function Da(Y,a){let e=la(a,"class",3,"size-4 shrink-0");var X=i(),$=f(X);{var rr=m=>{var D=oa();t(()=>v(D,1,l(e()))),r(m,D)},ar=m=>{var D=i(),er=f(D);{var tr=g=>{var C=ia();t(()=>v(C,0,l(e()))),r(g,C)},vr=g=>{var C=i(),lr=f(C);{var or=n=>{var S=fa();t(()=>v(S,1,l(e()))),r(n,S)},ir=n=>{var S=i(),fr=f(S);{var sr=_=>{var M=sa();t(()=>v(M,1,l(e()))),r(_,M)},mr=_=>{var M=i(),gr=f(M);{var nr=c=>{var N=ma();t(()=>v(N,1,l(e()))),r(c,N)},_r=c=>{var N=i(),cr=f(N);{var wr=w=>{var T=ga();t(()=>v(T,0,l(e()))),r(w,T)},ur=w=>{var T=i(),hr=f(T);{var kr=u=>{var Z=na();t(()=>v(Z,1,l(e()))),r(u,Z)},xr=u=>{var Z=i(),yr=f(Z);{var dr=h=>{var q=_a();t(()=>v(q,0,l(e()))),r(h,q)},Lr=h=>{var q=i(),jr=f(q);{var pr=k=>{var E=ca();t(()=>v(E,1,l(e()))),r(k,E)},Br=k=>{var E=i(),br=f(E);{var Ar=x=>{var z=wa();t(()=>v(z,1,l(e()))),r(x,z)},Fr=x=>{var z=i(),Hr=f(z);{var Dr=y=>{var G=ua();t(()=>v(G,1,l(e()))),r(y,G)},Cr=y=>{var G=i(),Sr=f(G);{var Mr=d=>{var J=ha();t(()=>v(J,1,l(e()))),r(d,J)},Nr=d=>{var J=i(),Tr=f(J);{var Zr=L=>{var O=ka();t(()=>v(O,1,l(e()))),r(L,O)},qr=L=>{var O=i(),Er=f(O);{var zr=j=>{var P=xa();t(()=>v(P,1,l(e()))),r(j,P)},Gr=j=>{var P=i(),Jr=f(P);{var Or=p=>{var Q=ya();t(()=>v(Q,1,l(e()))),r(p,Q)},Pr=p=>{var Q=i(),Qr=f(Q);{var Rr=B=>{var R=da();t(()=>v(R,1,l(e()))),r(B,R)},Ir=B=>{var R=i(),Kr=f(R);{var Ur=b=>{var I=La();t(()=>v(I,1,l(e()))),r(b,I)},Vr=b=>{var I=i(),Wr=f(I);{var Xr=A=>{var K=ja();t(()=>v(K,1,l(e()))),r(A,K)},Yr=A=>{var K=i(),$r=f(K);{var ra=F=>{var U=pa();t(()=>v(U,1,l(e()))),r(F,U)},aa=F=>{var U=i(),ea=f(U);{var ta=H=>{var V=Ba();t(()=>v(V,1,l(e()))),r(H,V)},va=H=>{var V=ba();t(()=>v(V,1,l(e()))),r(H,V)};o(ea,H=>{a.framework==="android"?H(ta):H(va,!1)},!0)}r(F,U)};o($r,F=>{a.framework==="flutter"?F(ra):F(aa,!1)},!0)}r(A,K)};o(Wr,A=>{a.framework==="laravel"?A(Xr):A(Yr,!1)},!0)}r(b,I)};o(Kr,b=>{a.framework==="symfony"?b(Ur):b(Vr,!1)},!0)}r(B,R)};o(Qr,B=>{a.framework==="opentelemetry"?B(Rr):B(Ir,!1)},!0)}r(p,Q)};o(Jr,p=>{a.framework==="cloudflare"?p(Or):p(Pr,!1)},!0)}r(j,P)};o(Er,j=>{a.framework==="hono"?j(zr):j(Gr,!1)},!0)}r(L,O)};o(Tr,L=>{a.framework==="jquery"?L(Zr):L(qr,!1)},!0)}r(d,J)};o(Sr,d=>{a.framework==="remix"?d(Mr):d(Nr,!1)},!0)}r(y,G)};o(Hr,y=>{a.framework==="express"?y(Dr):y(Cr,!1)},!0)}r(x,z)};o(br,x=>{a.framework==="nestjs"?x(Ar):x(Fr,!1)},!0)}r(k,E)};o(jr,k=>{a.framework==="nextjs"?k(pr):k(Br,!1)},!0)}r(h,q)};o(yr,h=>{a.framework==="vuejs"?h(dr):h(Lr,!1)},!0)}r(u,Z)};o(hr,u=>{a.framework==="svelte"?u(kr):u(xr,!1)},!0)}r(w,T)};o(cr,w=>{a.framework==="react"||a.framework==="react-native"?w(wr):w(ur,!1)},!0)}r(c,N)};o(gr,c=>{a.framework==="stdlib"?c(nr):c(_r,!1)},!0)}r(_,M)};o(fr,_=>{a.framework==="fasthttp"?_(sr):_(mr,!1)},!0)}r(n,S)};o(lr,n=>{a.framework==="chi"?n(or):n(ir,!1)},!0)}r(g,C)};o(er,g=>{a.framework==="fiber"?g(tr):g(vr,!1)},!0)}r(m,D)};o($,m=>{a.framework==="gin"?m(rr):m(ar,!1)})}r(Y,X)}export{Da as F};
diff --git a/backend/static/frontend/_app/immutable/chunks/FmJ3F5-k.js.map b/backend/static/frontend/_app/immutable/chunks/FmJ3F5-k.js.map
new file mode 100644
index 00000000..6132c305
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/FmJ3F5-k.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"FmJ3F5-k.js","sources":["../../../../../../src/lib/components/framework-icon.svelte"],"sourcesContent":["<script lang=\"ts\">\n import type { Framework } from '$lib/state/projects.svelte';\n\n interface Props {\n framework: Framework | string;\n class?: string;\n }\n\n let { framework, class: className = 'size-4 shrink-0' }: Props = $props();\n</script>\n\n{#if framework === 'gin'}\n <img src=\"/gin.png\" alt=\"Gin\" class={className} />\n{:else if framework === 'fiber'}\n <svg class={className} viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"1\" y=\"3\" width=\"10\" height=\"2.5\" rx=\"0.5\" fill=\"#00ACD7\"/>\n <rect x=\"1\" y=\"6.75\" width=\"14\" height=\"2.5\" rx=\"0.5\" fill=\"#00ACD7\"/>\n <rect x=\"1\" y=\"10.5\" width=\"6\" height=\"2.5\" rx=\"0.5\" fill=\"#00ACD7\"/>\n </svg>\n{:else if framework === 'chi'}\n <img src=\"/chi.png\" alt=\"Chi\" class={className} />\n{:else if framework === 'fasthttp'}\n <img src=\"/fasthttp.png\" alt=\"FastHTTP\" class={className} />\n{:else if framework === 'stdlib'}\n <img src=\"/stdlib.png\" alt=\"Standard Library\" class={className} />\n{:else if framework === 'react' || framework === 'react-native'}\n <svg class={className} viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"8\" cy=\"8\" r=\"1.5\" fill=\"#61DAFB\"/>\n <ellipse cx=\"8\" cy=\"8\" rx=\"6.5\" ry=\"2.5\" stroke=\"#61DAFB\" stroke-width=\"0.8\" fill=\"none\"/>\n <ellipse cx=\"8\" cy=\"8\" rx=\"6.5\" ry=\"2.5\" stroke=\"#61DAFB\" stroke-width=\"0.8\" fill=\"none\" transform=\"rotate(60 8 8)\"/>\n <ellipse cx=\"8\" cy=\"8\" rx=\"6.5\" ry=\"2.5\" stroke=\"#61DAFB\" stroke-width=\"0.8\" fill=\"none\" transform=\"rotate(120 8 8)\"/>\n </svg>\n{:else if framework === 'svelte'}\n <img src=\"/svelte.png\" alt=\"Svelte\" class={className} />\n{:else if framework === 'vuejs'}\n <svg class={className} viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M12.8 1H10.4L8 5L5.6 1H3.2L8 9.5L12.8 1Z\" fill=\"#41B883\"/>\n <path d=\"M15 1H12.8L8 9.5L3.2 1H1L8 13L15 1Z\" fill=\"#41B883\" opacity=\"0.6\"/>\n <path d=\"M12.8 1H10.4L8 5L5.6 1H3.2L8 9.5L12.8 1Z\" fill=\"#35495E\"/>\n </svg>\n{:else if framework === 'nextjs'}\n <img src=\"/nextjs.png\" alt=\"Next.js\" class={className} />\n{:else if framework === 'nestjs'}\n <img src=\"/nestjs.png\" alt=\"NestJS\" class={className} />\n{:else if framework === 'express'}\n <img src=\"/express.png\" alt=\"Express\" class={className} />\n{:else if framework === 'remix'}\n <img src=\"/remix.png\" alt=\"Remix\" class={className} />\n{:else if framework === 'jquery'}\n <img src=\"/jquery.png\" alt=\"jQuery\" class={className} />\n{:else if framework === 'hono'}\n <img src=\"/hono.png\" alt=\"Hono\" class={className} />\n{:else if framework === 'cloudflare'}\n <img src=\"/cloudflare.png\" alt=\"Cloudflare\" class={className} />\n{:else if framework === 'opentelemetry'}\n <img src=\"/opentelemetry.png\" alt=\"OpenTelemetry\" class={className} />\n{:else if framework === 'symfony'}\n <img src=\"/symfony.png\" alt=\"Symfony\" class={className} />\n{:else if framework === 'laravel'}\n <img src=\"/laravel.png\" alt=\"Laravel\" class={className} />\n{:else if framework === 'flutter'}\n <img src=\"/flutter.png\" alt=\"Flutter\" class={className} style=\"object-fit: contain;\" />\n{:else if framework === 'android'}\n <img src=\"/android.png\" alt=\"Android\" class={className} style=\"object-fit: contain;\" />\n{:else}\n <img src=\"/custom.png\" alt=\"Custom\" class={className} />\n{/if}\n"],"names":["className","img","root_1","$.template_effect","$.set_class","svg","root_3","img_1","root_5","img_2","root_7","img_3","root_9","svg_1","root_11","img_4","root_13","svg_2","root_15","img_5","root_17","img_6","root_19","img_7","root_21","img_8","root_23","img_9","root_25","img_10","root_27","img_11","root_29","img_12","root_31","img_13","root_33","img_14","root_35","img_15","root_37","img_16","root_39","img_17","root_40","$$render","consequent_19","alternate","consequent_18","alternate_1","consequent_17","alternate_2","consequent_16","alternate_3","consequent_15","alternate_4","consequent_14","alternate_5","consequent_13","alternate_6","consequent_12","alternate_7","consequent_11","alternate_8","consequent_10","alternate_9","consequent_9","alternate_10","consequent_8","alternate_11","consequent_7","alternate_12","consequent_6","alternate_13","$$props","consequent_5","alternate_14","consequent_4","alternate_15","consequent_3","alternate_16","consequent_2","alternate_17","consequent_1","alternate_18","consequent","alternate_19"],"mappings":"8pEAAA,CAQ4B,IAAAA,iBAAY,iBAAiB,mCAIpDC,EAAGC,GAAA,EAAHC,EAAA,IAAAC,EAAAH,MAAoCD,EAAS,CAAA,CAAA,CAAA,MAA7CC,CAAG,4CAEHI,EAAGC,GAAA,EAAHH,EAAA,IAAAC,EAAAC,MAAWL,EAAS,CAAA,CAAA,CAAA,MAApBK,CAAG,4CAMHE,EAAGC,GAAA,EAAHL,EAAA,IAAAC,EAAAG,MAAoCP,EAAS,CAAA,CAAA,CAAA,MAA7CO,CAAG,4CAEHE,EAAGC,GAAA,EAAHP,EAAA,IAAAC,EAAAK,MAA8CT,EAAS,CAAA,CAAA,CAAA,MAAvDS,CAAG,4CAEHE,EAAGC,GAAA,EAAHT,EAAA,IAAAC,EAAAO,MAAoDX,EAAS,CAAA,CAAA,CAAA,MAA7DW,CAAG,4CAEHE,EAAGC,GAAA,EAAHX,EAAA,IAAAC,EAAAS,MAAWb,EAAS,CAAA,CAAA,CAAA,MAApBa,CAAG,4CAOHE,EAAGC,GAAA,EAAHb,EAAA,IAAAC,EAAAW,MAA0Cf,EAAS,CAAA,CAAA,CAAA,MAAnDe,CAAG,4CAEHE,EAAGC,GAAA,EAAHf,EAAA,IAAAC,EAAAa,MAAWjB,EAAS,CAAA,CAAA,CAAA,MAApBiB,CAAG,4CAMHE,EAAGC,GAAA,EAAHjB,EAAA,IAAAC,EAAAe,MAA2CnB,EAAS,CAAA,CAAA,CAAA,MAApDmB,CAAG,4CAEHE,EAAGC,GAAA,EAAHnB,EAAA,IAAAC,EAAAiB,M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,EAAAH,EAAAI,GAAA,EAAA,sCAFT,UAASJ,EAAAK,EAAA,EAAAL,EAAAM,GAAA,EAAA,sCAFT,UAASN,EAAAO,EAAA,EAAAP,EAAAQ,GAAA,EAAA,sCAFT,gBAAeR,EAAAS,EAAA,EAAAT,EAAAU,GAAA,EAAA,sCAFf,aAAYV,EAAAW,EAAA,EAAAX,EAAAY,GAAA,EAAA,sCAFZ,OAAMZ,EAAAa,EAAA,EAAAb,EAAAc,GAAA,EAAA,sCAFN,SAAQd,EAAAe,EAAA,EAAAf,EAAAgB,GAAA,EAAA,sCAFR,QAAOhB,EAAAiB,EAAA,EAAAjB,EAAAkB,GAAA,EAAA,sCAFP,UAASlB,EAAAmB,EAAA,EAAAnB,EAAAoB,GAAA,EAAA,sCAFT,SAAQpB,EAAAqB,EAAA,EAAArB,EAAAsB,GAAA,EAAA,sCAFR,SAAQtB,EAAAuB,EAAA,EAAAvB,EAAAwB,GAAA,EAAA,sCANR,QAAOxB,EAAAyB,EAAA,EAAAzB,EAAA0B,GAAA,EAAA,sCAFP,SAAQ1B,EAAA2B,EAAA,EAAA3B,EAAA4B,GAAA,EAAA,wBAPRC,EAAA,YAAA,uBAAyB,eAAc7B,EAAA8B,EAAA,EAAA9B,EAAA+B,GAAA,EAAA,sCAFvC,SAAQ/B,EAAAgC,EAAA,EAAAhC,EAAAiC,GAAA,EAAA,sCAFR,WAAUjC,EAAAkC,EAAA,EAAAlC,EAAAmC,GAAA,EAAA,sCAFV,MAAKnC,EAAAoC,EAAA,EAAApC,EAAAqC,GAAA,EAAA,sCANL,QAAOrC,EAAAsC,EAAA,EAAAtC,EAAAuC,GAAA,EAAA,qCAFZ,MAAKvC,EAAAwC,EAAA,EAAAxC,EAAAyC,GAAA,EAAA,UAFxB"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/CyOblkUv.js b/backend/static/frontend/_app/immutable/chunks/UIirCQWa.js
similarity index 85%
rename from backend/static/frontend/_app/immutable/chunks/CyOblkUv.js
rename to backend/static/frontend/_app/immutable/chunks/UIirCQWa.js
index 1de51b16..d467beef 100644
--- a/backend/static/frontend/_app/immutable/chunks/CyOblkUv.js
+++ b/backend/static/frontend/_app/immutable/chunks/UIirCQWa.js
@@ -1 +1 @@
-import{g as i}from"./xR3pK9Ey.js";function l(e,...n){let r=e;if(n.length>0){const o=new URLSearchParams(window.location.search),a=new URL(e,window.location.origin);n.forEach(t=>{const c=o.get(t);c!==null&&a.searchParams.set(t,c)}),r=a.pathname+a.search}return r}function s(e,n,...r){return o=>{n?.();const a=l(e,...r);o.ctrlKey||o.metaKey?window.open(a,"_blank"):i(a)}}function u(e,...n){return s(e,void 0,...n)}export{s as a,u as c};
+import{g as i}from"./BIF4_51j.js";function l(e,...n){let r=e;if(n.length>0){const o=new URLSearchParams(window.location.search),a=new URL(e,window.location.origin);n.forEach(t=>{const c=o.get(t);c!==null&&a.searchParams.set(t,c)}),r=a.pathname+a.search}return r}function s(e,n,...r){return o=>{n?.();const a=l(e,...r);o.ctrlKey||o.metaKey?window.open(a,"_blank"):i(a)}}function u(e,...n){return s(e,void 0,...n)}export{s as a,u as c};
diff --git a/backend/static/frontend/_app/immutable/chunks/CyOblkUv.js.map b/backend/static/frontend/_app/immutable/chunks/UIirCQWa.js.map
similarity index 97%
rename from backend/static/frontend/_app/immutable/chunks/CyOblkUv.js.map
rename to backend/static/frontend/_app/immutable/chunks/UIirCQWa.js.map
index e8816b0e..92ddeb28 100644
--- a/backend/static/frontend/_app/immutable/chunks/CyOblkUv.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/UIirCQWa.js.map
@@ -1 +1 @@
-{"version":3,"file":"CyOblkUv.js","sources":["../../../../../../src/lib/utils/navigation.ts"],"sourcesContent":["import { goto } from '$app/navigation';\n\nexport function addStickyParamsToHref(href: string, ...stickyParams: string[]) {\n\tlet finalHref = href;\n\n\tif (stickyParams.length > 0) {\n\t\tconst currentParams = new URLSearchParams(window.location.search);\n\t\tconst url = new URL(href, window.location.origin);\n\n\t\tstickyParams.forEach(stickyParam => {\n\t\t\tconst currentValue = currentParams.get(stickyParam);\n\t\t\tif (currentValue !== null) {\n\t\t\t\turl.searchParams.set(stickyParam, currentValue);\n\t\t\t}\n\t\t});\n\n\t\tfinalHref = url.pathname + url.search;\n\t}\n\treturn finalHref;\n}\n\n// in the future it would be really cool if we could bind the type here to get type safety and force the use of resolve :/\n// this also won't work with absolute paths - meh so be it\nexport function createRowClickHandlerWithNavigate(href: string, onBeforeNavigate: (() => void) | undefined, ...stickyParams: string[]) {\n\treturn (event: MouseEvent) => {\n\t\tonBeforeNavigate?.();\n\n\t\tconst finalHref = addStickyParamsToHref(href, ...stickyParams);\n\n\t\tif (event.ctrlKey || event.metaKey) {\n\t\t\twindow.open(finalHref, '_blank');\n\t\t} else {\n\t\t\t// eslint-disable-next-line svelte/no-navigation-without-resolve\n\t\t\tgoto(finalHref);\n\t\t}\n\t};\n}\n\nexport function createRowClickHandler(href: string, ...stickyParams: string[]) {\n\treturn createRowClickHandlerWithNavigate(href, undefined, ...stickyParams);\n}"],"names":["addStickyParamsToHref","href","stickyParams","finalHref","currentParams","url","stickyParam","currentValue","createRowClickHandlerWithNavigate","onBeforeNavigate","event","goto","createRowClickHandler"],"mappings":"kCAEO,SAASA,EAAsBC,KAAiBC,EAAwB,CAC9E,IAAIC,EAAYF,EAEhB,GAAIC,EAAa,OAAS,EAAG,CAC5B,MAAME,EAAgB,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAC1DC,EAAM,IAAI,IAAIJ,EAAM,OAAO,SAAS,MAAM,EAEhDC,EAAa,QAAQI,GAAe,CACnC,MAAMC,EAAeH,EAAc,IAAIE,CAAW,EAC9CC,IAAiB,MACpBF,EAAI,aAAa,IAAIC,EAAaC,CAAY,CAEhD,CAAC,EAEDJ,EAAYE,EAAI,SAAWA,EAAI,MAChC,CACA,OAAOF,CACR,CAIO,SAASK,EAAkCP,EAAcQ,KAA+CP,EAAwB,CACtI,OAAQQ,GAAsB,CAC7BD,IAAA,EAEA,MAAMN,EAAYH,EAAsBC,EAAM,GAAGC,CAAY,EAEzDQ,EAAM,SAAWA,EAAM,QAC1B,OAAO,KAAKP,EAAW,QAAQ,EAG/BQ,EAAKR,CAAS,CAEhB,CACD,CAEO,SAASS,EAAsBX,KAAiBC,EAAwB,CAC9E,OAAOM,EAAkCP,EAAM,OAAW,GAAGC,CAAY,CAC1E"}
\ No newline at end of file
+{"version":3,"file":"UIirCQWa.js","sources":["../../../../../../src/lib/utils/navigation.ts"],"sourcesContent":["import { goto } from '$app/navigation';\n\nexport function addStickyParamsToHref(href: string, ...stickyParams: string[]) {\n\tlet finalHref = href;\n\n\tif (stickyParams.length > 0) {\n\t\tconst currentParams = new URLSearchParams(window.location.search);\n\t\tconst url = new URL(href, window.location.origin);\n\n\t\tstickyParams.forEach(stickyParam => {\n\t\t\tconst currentValue = currentParams.get(stickyParam);\n\t\t\tif (currentValue !== null) {\n\t\t\t\turl.searchParams.set(stickyParam, currentValue);\n\t\t\t}\n\t\t});\n\n\t\tfinalHref = url.pathname + url.search;\n\t}\n\treturn finalHref;\n}\n\n// in the future it would be really cool if we could bind the type here to get type safety and force the use of resolve :/\n// this also won't work with absolute paths - meh so be it\nexport function createRowClickHandlerWithNavigate(href: string, onBeforeNavigate: (() => void) | undefined, ...stickyParams: string[]) {\n\treturn (event: MouseEvent) => {\n\t\tonBeforeNavigate?.();\n\n\t\tconst finalHref = addStickyParamsToHref(href, ...stickyParams);\n\n\t\tif (event.ctrlKey || event.metaKey) {\n\t\t\twindow.open(finalHref, '_blank');\n\t\t} else {\n\t\t\t// eslint-disable-next-line svelte/no-navigation-without-resolve\n\t\t\tgoto(finalHref);\n\t\t}\n\t};\n}\n\nexport function createRowClickHandler(href: string, ...stickyParams: string[]) {\n\treturn createRowClickHandlerWithNavigate(href, undefined, ...stickyParams);\n}"],"names":["addStickyParamsToHref","href","stickyParams","finalHref","currentParams","url","stickyParam","currentValue","createRowClickHandlerWithNavigate","onBeforeNavigate","event","goto","createRowClickHandler"],"mappings":"kCAEO,SAASA,EAAsBC,KAAiBC,EAAwB,CAC9E,IAAIC,EAAYF,EAEhB,GAAIC,EAAa,OAAS,EAAG,CAC5B,MAAME,EAAgB,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAC1DC,EAAM,IAAI,IAAIJ,EAAM,OAAO,SAAS,MAAM,EAEhDC,EAAa,QAAQI,GAAe,CACnC,MAAMC,EAAeH,EAAc,IAAIE,CAAW,EAC9CC,IAAiB,MACpBF,EAAI,aAAa,IAAIC,EAAaC,CAAY,CAEhD,CAAC,EAEDJ,EAAYE,EAAI,SAAWA,EAAI,MAChC,CACA,OAAOF,CACR,CAIO,SAASK,EAAkCP,EAAcQ,KAA+CP,EAAwB,CACtI,OAAQQ,GAAsB,CAC7BD,IAAA,EAEA,MAAMN,EAAYH,EAAsBC,EAAM,GAAGC,CAAY,EAEzDQ,EAAM,SAAWA,EAAM,QAC1B,OAAO,KAAKP,EAAW,QAAQ,EAG/BQ,EAAKR,CAAS,CAEhB,CACD,CAEO,SAASS,EAAsBX,KAAiBC,EAAwB,CAC9E,OAAOM,EAAkCP,EAAM,OAAW,GAAGC,CAAY,CAC1E"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/l7hcXazj.js b/backend/static/frontend/_app/immutable/chunks/l7hcXazj.js
deleted file mode 100644
index 6eec6050..00000000
--- a/backend/static/frontend/_app/immutable/chunks/l7hcXazj.js
+++ /dev/null
@@ -1 +0,0 @@
-import{i as v}from"./DMODTt3n.js";import{o as j}from"./Dwk6gGSK.js";import{p as E,h as m,v as P,d as _,c,b as e,a as V,i as f,g as a,f as q,e as D,w as d,s as I,k as J,l as K,n as L,r as N}from"./B2WdN-7r.js";import{e as Q,i as R}from"./CMyj8Fzw.js";import{B as S}from"./C1aqwstW.js";var T=d('<svg class="size-4" viewBox="0 0 24 24" aria-hidden="true"><path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"></path><path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"></path><path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"></path><path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"></path></svg>'),U=d('<svg class="size-4" viewBox="0 0 24 24" aria-hidden="true" fill="currentColor"><path d="M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.1.79-.25.79-.56v-2.16c-3.2.7-3.87-1.37-3.87-1.37-.52-1.32-1.27-1.67-1.27-1.67-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.75 2.69 1.24 3.34.95.1-.74.4-1.24.72-1.53-2.55-.29-5.24-1.27-5.24-5.66 0-1.25.45-2.27 1.18-3.07-.12-.29-.51-1.46.11-3.05 0 0 .96-.31 3.15 1.17.91-.25 1.89-.38 2.86-.39.97 0 1.95.13 2.86.39 2.18-1.48 3.14-1.17 3.14-1.17.62 1.59.23 2.76.11 3.05.74.8 1.18 1.82 1.18 3.07 0 4.4-2.69 5.36-5.25 5.65.41.36.78 1.07.78 2.15v3.18c0 .31.21.67.8.56C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5z"></path></svg>'),W=d("<!> ",1),X=q('<div class="flex flex-col gap-2"><!> <div class="flex items-center gap-3 my-2"><div class="flex-1 border-t"></div> <p class="text-xs text-muted-foreground">or</p> <div class="flex-1 border-t"></div></div></div>');function o1(x,b){E(b,!0);let i=m(P([])),h=m(!1);j(async()=>{try{const t=await fetch("/api/auth/providers");if(t.ok){const o=await t.json();f(i,o.providers||[],!0)}}catch{f(i,[],!0)}finally{f(h,!0)}});function w(t){window.location.href=`/api/auth/start/${t}`}const C={google:"Continue with Google",github:"Continue with GitHub"};var p=_(),z=c(p);{var y=t=>{var o=X(),B=D(o);Q(B,17,()=>a(i),R,(M,r)=>{S(M,{type:"button",variant:"outline",class:"w-full",onclick:()=>w(a(r)),children:(k,Y)=>{var u=W(),g=c(u);{var H=s=>{var l=T();e(s,l)},$=s=>{var l=_(),F=c(l);{var G=n=>{var O=U();e(n,O)};v(F,n=>{a(r)==="github"&&n(G)},!0)}e(s,l)};v(g,s=>{a(r)==="google"?s(H):s($,!1)})}var A=I(g,1,!0);J(()=>K(A,C[a(r)]??`Continue with ${a(r)}`)),e(k,u)},$$slots:{default:!0}})}),L(2),N(o),e(t,o)};v(z,t=>{a(h)&&a(i).length>0&&t(y)})}e(x,p),V()}export{o1 as O};
diff --git a/backend/static/frontend/_app/immutable/chunks/l7hcXazj.js.map b/backend/static/frontend/_app/immutable/chunks/l7hcXazj.js.map
deleted file mode 100644
index 4d4fafbb..00000000
--- a/backend/static/frontend/_app/immutable/chunks/l7hcXazj.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"l7hcXazj.js","sources":["../../../../../../src/lib/components/oauth-buttons.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { Button } from \"$lib/components/ui/button\";\n import { onMount } from 'svelte';\n\n let providers = $state<string[]>([]);\n let loaded = $state(false);\n\n onMount(async () => {\n try {\n const response = await fetch('/api/auth/providers');\n if (response.ok) {\n const data = await response.json();\n providers = data.providers || [];\n }\n } catch {\n providers = [];\n } finally {\n loaded = true;\n }\n });\n\n function start(provider: string) {\n window.location.href = `/api/auth/start/${provider}`;\n }\n\n const labels: Record<string, string> = {\n google: 'Continue with Google',\n github: 'Continue with GitHub',\n };\n</script>\n\n{#if loaded && providers.length > 0}\n <div class=\"flex flex-col gap-2\">\n {#each providers as provider}\n <Button\n type=\"button\"\n variant=\"outline\"\n class=\"w-full\"\n onclick={() => start(provider)}\n >\n {#if provider === 'google'}\n <svg class=\"size-4\" viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <path fill=\"#4285F4\" d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z\" />\n <path fill=\"#34A853\" d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\" />\n <path fill=\"#FBBC05\" d=\"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z\" />\n <path fill=\"#EA4335\" d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\" />\n </svg>\n {:else if provider === 'github'}\n <svg class=\"size-4\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" fill=\"currentColor\">\n <path d=\"M12 .5C5.65.5.5 5.65.5 12c0 5.08 3.29 9.39 7.86 10.91.58.1.79-.25.79-.56v-2.16c-3.2.7-3.87-1.37-3.87-1.37-.52-1.32-1.27-1.67-1.27-1.67-1.04-.71.08-.7.08-.7 1.15.08 1.76 1.18 1.76 1.18 1.02 1.75 2.69 1.24 3.34.95.1-.74.4-1.24.72-1.53-2.55-.29-5.24-1.27-5.24-5.66 0-1.25.45-2.27 1.18-3.07-.12-.29-.51-1.46.11-3.05 0 0 .96-.31 3.15 1.17.91-.25 1.89-.38 2.86-.39.97 0 1.95.13 2.86.39 2.18-1.48 3.14-1.17 3.14-1.17.62 1.59.23 2.76.11 3.05.74.8 1.18 1.82 1.18 3.07 0 4.4-2.69 5.36-5.25 5.65.41.36.78 1.07.78 2.15v3.18c0 .31.21.67.8.56C20.21 21.39 23.5 17.08 23.5 12 23.5 5.65 18.35.5 12 .5z\" />\n </svg>\n {/if}\n {labels[provider] ?? `Continue with ${provider}`}\n </Button>\n {/each}\n <div class=\"flex items-center gap-3 my-2\">\n <div class=\"flex-1 border-t\"></div>\n <p class=\"text-xs text-muted-foreground\">or</p>\n <div class=\"flex-1 border-t\"></div>\n </div>\n </div>\n{/if}\n"],"names":["providers","$.state","$.proxy","loaded","onMount","response","data","$.set","start","provider","labels","div","root_1","$.each","node_1","$.get","Button","$$anchor","svg","root_4","svg_1","root_6","$$render","consequent_1","consequent","alternate","consequent_2"],"mappings":"w5DAAA,SAIQ,IAAAA,EAAYC,EAAMC,EAAA,CAAA,CAAA,CAAA,EAClBC,EAASF,EAAO,EAAK,EAEzBG,EAAO,SAAa,CACZ,GAAA,OACMC,EAAQ,MAAS,MAAM,qBAAqB,KAC9CA,EAAS,GAAI,OACPC,EAAI,MAASD,EAAS,KAAI,IAChCL,EAAYM,EAAK,WAAS,CAAA,EAAA,EAAA,CAC9B,CACJ,MAAQ,GACJN,EAAS,CAAA,EAAA,EAAA,CACb,QAAC,CACGO,EAAAJ,EAAS,EAAI,CACjB,CACJ,CAAC,WAEQK,EAAMC,EAAkB,CAC7B,OAAO,SAAS,wBAA0BA,CAAQ,EACtD,OAEMC,EAA8B,CAChC,OAAQ,uBACR,OAAQ,wDAKXC,EAAGC,EAAA,MAAHD,CAAG,EACOE,EAAAC,EAAA,GAAA,IAAAC,EAAAf,CAAS,OAAIS,IAAQ,CACvBO,EAAAC,EAAA,gDAIkB,QAAA,IAAAT,IAAMC,CAAQ,CAAA,mDAGxBS,EAAGC,EAAA,MAAHD,CAAG,yCAOHE,EAAGC,EAAA,MAAHD,CAAG,WADEL,EAAAN,CAAQ,IAAK,UAAQa,EAAAC,CAAA,uBAP1BR,EAAAN,CAAQ,IAAK,SAAQa,EAAAE,CAAA,EAAAF,EAAAG,EAAA,EAAA,8BAYzBf,EAAMK,EAACN,CAAQ,CAAA,GAAA,iBAAAM,EAAsBN,CAAQ,CAAA,EAAA,CAAA,0CApBzDE,CAAG,MAAHA,CAAG,WADHI,EAAAZ,CAAM,GAAAY,EAAIf,CAAS,EAAC,OAAS,GAACsB,EAAAI,CAAA,cAFnC"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/NF-n962K.js b/backend/static/frontend/_app/immutable/chunks/lEFYSxvE.js
similarity index 96%
rename from backend/static/frontend/_app/immutable/chunks/NF-n962K.js
rename to backend/static/frontend/_app/immutable/chunks/lEFYSxvE.js
index 363fe079..a6de8dab 100644
--- a/backend/static/frontend/_app/immutable/chunks/NF-n962K.js
+++ b/backend/static/frontend/_app/immutable/chunks/lEFYSxvE.js
@@ -1,2 +1,2 @@
-import{l as It,s as Nt,i as g}from"./DMODTt3n.js";import{o as jt}from"./Dwk6gGSK.js";import{d as z,c as d,b as e,p as Dt,g as a,h as rt,a as Bt,i as S,f as m,e as y,s as n,n as k,t as v,r as $,k as B,l as H}from"./B2WdN-7r.js";import{e as Ht,i as zt}from"./CMyj8Fzw.js";import{c as f}from"./BAcG0-U_.js";import{a as ct}from"./DH0tcjsQ.js";import{g as at}from"./xR3pK9Ey.js";import{a as Et,p as At}from"./D6S6XYVy.js";import{a as dt,b as pt,C as vt}from"./BHR29ZVu.js";import{C as ft}from"./BKHeGn2e.js";import{C as mt}from"./KAiF5-Ht.js";import{B as st}from"./Ci5jf6Wy.js";import{B as Lt}from"./C1aqwstW.js";import{L as Mt}from"./D0pIT200.js";import{h as Rt,b as St}from"./DJdWGDax.js";import{I as Ut,s as Ft}from"./CQWqWi6p.js";import{A as Gt}from"./Dt-hNsWv.js";function ut(K,b){const C=It(b,["children","$$slots","$$events","$$legacy"]);const E=[["line",{x1:"6",x2:"6",y1:"3",y2:"15"}],["circle",{cx:"18",cy:"6",r:"3"}],["circle",{cx:"6",cy:"18",r:"3"}],["path",{d:"M18 9a9 9 0 0 1-9 9"}]];Ut(K,Nt({name:"git-branch"},()=>C,{get iconNode(){return E},children:(U,ot)=>{var F=z(),G=d(F);Ft(G,b,"default",{},null),e(U,F)},$$slots:{default:!0}}))}var Vt=m('<div class="flex items-center gap-2"><!> <!></div> <!>',1),Yt=m('<div class="flex items-center justify-center py-6"><!></div>'),qt=m("<!> <!>",1),Jt=m('<div class="flex items-center gap-2"><!> <!></div> <!>',1),Kt=m("<span> </span>"),Ot=m('<span class="shrink-0 font-mono text-sm text-muted-foreground"> </span>'),Qt=m("View <!>",1),Wt=m('<div><div class="flex min-w-0 flex-1 items-center gap-3"><!> <span class="truncate font-mono text-sm"><!></span> <!> <!> <!></div> <!></div>'),Xt=m('<div class="space-y-3"></div>'),Zt=m("<!> <!>",1);function $e(K,b){Dt(b,!0);let C=rt(null),E=rt(!0),U=rt("");async function ot(){S(E,!0),S(U,"");try{S(C,await Et.post(`/distributed-traces/${b.distributedTraceId}`,{}),!0)}catch(o){S(U,o.message||"Failed to load distributed trace",!0)}finally{S(E,!1)}}function F(o){At.selectProject(o.projectId),o.traceType==="task"&&o.task?at(`/tasks/${encodeURIComponent(o.task.taskName)}/${o.task.id}?preset=24h`):o.traceType==="exception"&&o.exception?at(`/issues/${o.exception.exceptionHash}?preset=24h`):o.endpoint&&at(`/endpoints/${encodeURIComponent(o.endpoint.endpoint)}/${o.endpoint.id}?preset=24h`)}jt(()=>{ot()});var G=z(),_t=d(G);{var $t=o=>{var A=z(),O=d(A);f(O,()=>vt,(Q,L)=>{L(Q,{children:(V,it)=>{var Y=qt(),q=d(Y);f(q,()=>dt,(J,w)=>{w(J,{children:(I,X)=>{var p=Vt(),u=d(p),N=y(u);ut(N,{class:"h-5 w-5 text-muted-foreground"});var Z=n(N,2);f(Z,()=>pt,(_,r)=>{r(_,{children:(P,x)=>{k();var l=v("Distributed Trace");e(P,l)},$$slots:{default:!0}})}),$(u);var h=n(u,2);f(h,()=>mt,(_,r)=>{r(_,{children:(P,x)=>{k();var l=v("This trace spans across multiple services");e(P,l)},$$slots:{default:!0}})}),e(I,p)},$$slots:{default:!0}})});var W=n(q,2);f(W,()=>ft,(J,w)=>{w(J,{children:(I,X)=>{var p=Yt(),u=y(p);Mt(u,{size:"md"}),$(p),e(I,p)},$$slots:{default:!0}})}),e(V,Y)},$$slots:{default:!0}})}),e(o,A)},ht=o=>{var A=z(),O=d(A);{var Q=L=>{var V=z(),it=d(V);f(it,()=>vt,(Y,q)=>{q(Y,{children:(W,J)=>{var w=Zt(),I=d(w);f(I,()=>dt,(p,u)=>{u(p,{children:(N,Z)=>{var h=Jt(),_=d(h),r=y(_);ut(r,{class:"h-5 w-5 text-muted-foreground"});var P=n(r,2);f(P,()=>pt,(l,j)=>{j(l,{children:(T,tt)=>{k();var M=v("Distributed Trace");e(T,M)},$$slots:{default:!0}})}),$(_);var x=n(_,2);f(x,()=>mt,(l,j)=>{j(l,{children:(T,tt)=>{k();var M=v("This trace spans across multiple services");e(T,M)},$$slots:{default:!0}})}),e(N,h)},$$slots:{default:!0}})});var X=n(I,2);f(X,()=>ft,(p,u)=>{u(p,{children:(N,Z)=>{var h=Xt();Ht(h,21,()=>a(C).nodes,zt,(_,r,P)=>{var x=Wt();ct(x,1,`flex items-center gap-3 rounded-md border p-3 ${P>0?"ml-6":""}`);var l=y(x),j=y(l);st(j,{variant:"outline",class:"shrink-0",children:(t,s)=>{k();var c=v();B(()=>H(c,a(r).projectName)),e(t,c)},$$slots:{default:!0}});var T=n(j,2),tt=y(T);{var M=t=>{var s=v();B(()=>H(s,a(r).task?.taskName)),e(t,s)},xt=t=>{var s=z(),c=d(s);{var i=D=>{var R=v();B(wt=>H(R,wt),[()=>a(r).exception?.stackTrace.split(`
+import{l as It,s as Nt,i as g}from"./DMODTt3n.js";import{o as jt}from"./Dwk6gGSK.js";import{d as z,c as d,b as e,p as Dt,g as a,h as rt,a as Bt,i as S,f as m,e as y,s as n,n as k,t as v,r as $,k as B,l as H}from"./B2WdN-7r.js";import{e as Ht,i as zt}from"./CMyj8Fzw.js";import{c as f}from"./BAcG0-U_.js";import{a as ct}from"./DH0tcjsQ.js";import{g as at}from"./BIF4_51j.js";import{a as Et,p as At}from"./qCQ2nSvO.js";import{a as dt,b as pt,C as vt}from"./BHR29ZVu.js";import{C as ft}from"./BKHeGn2e.js";import{C as mt}from"./KAiF5-Ht.js";import{B as st}from"./Ci5jf6Wy.js";import{B as Lt}from"./C1aqwstW.js";import{L as Mt}from"./D0pIT200.js";import{h as Rt,b as St}from"./Dq-0lVru.js";import{I as Ut,s as Ft}from"./CQWqWi6p.js";import{A as Gt}from"./Dt-hNsWv.js";function ut(K,b){const C=It(b,["children","$$slots","$$events","$$legacy"]);const E=[["line",{x1:"6",x2:"6",y1:"3",y2:"15"}],["circle",{cx:"18",cy:"6",r:"3"}],["circle",{cx:"6",cy:"18",r:"3"}],["path",{d:"M18 9a9 9 0 0 1-9 9"}]];Ut(K,Nt({name:"git-branch"},()=>C,{get iconNode(){return E},children:(U,ot)=>{var F=z(),G=d(F);Ft(G,b,"default",{},null),e(U,F)},$$slots:{default:!0}}))}var Vt=m('<div class="flex items-center gap-2"><!> <!></div> <!>',1),Yt=m('<div class="flex items-center justify-center py-6"><!></div>'),qt=m("<!> <!>",1),Jt=m('<div class="flex items-center gap-2"><!> <!></div> <!>',1),Kt=m("<span> </span>"),Ot=m('<span class="shrink-0 font-mono text-sm text-muted-foreground"> </span>'),Qt=m("View <!>",1),Wt=m('<div><div class="flex min-w-0 flex-1 items-center gap-3"><!> <span class="truncate font-mono text-sm"><!></span> <!> <!> <!></div> <!></div>'),Xt=m('<div class="space-y-3"></div>'),Zt=m("<!> <!>",1);function $e(K,b){Dt(b,!0);let C=rt(null),E=rt(!0),U=rt("");async function ot(){S(E,!0),S(U,"");try{S(C,await Et.post(`/distributed-traces/${b.distributedTraceId}`,{}),!0)}catch(o){S(U,o.message||"Failed to load distributed trace",!0)}finally{S(E,!1)}}function F(o){At.selectProject(o.projectId),o.traceType==="task"&&o.task?at(`/tasks/${encodeURIComponent(o.task.taskName)}/${o.task.id}?preset=24h`):o.traceType==="exception"&&o.exception?at(`/issues/${o.exception.exceptionHash}?preset=24h`):o.endpoint&&at(`/endpoints/${encodeURIComponent(o.endpoint.endpoint)}/${o.endpoint.id}?preset=24h`)}jt(()=>{ot()});var G=z(),_t=d(G);{var $t=o=>{var A=z(),O=d(A);f(O,()=>vt,(Q,L)=>{L(Q,{children:(V,it)=>{var Y=qt(),q=d(Y);f(q,()=>dt,(J,w)=>{w(J,{children:(I,X)=>{var p=Vt(),u=d(p),N=y(u);ut(N,{class:"h-5 w-5 text-muted-foreground"});var Z=n(N,2);f(Z,()=>pt,(_,r)=>{r(_,{children:(P,x)=>{k();var l=v("Distributed Trace");e(P,l)},$$slots:{default:!0}})}),$(u);var h=n(u,2);f(h,()=>mt,(_,r)=>{r(_,{children:(P,x)=>{k();var l=v("This trace spans across multiple services");e(P,l)},$$slots:{default:!0}})}),e(I,p)},$$slots:{default:!0}})});var W=n(q,2);f(W,()=>ft,(J,w)=>{w(J,{children:(I,X)=>{var p=Yt(),u=y(p);Mt(u,{size:"md"}),$(p),e(I,p)},$$slots:{default:!0}})}),e(V,Y)},$$slots:{default:!0}})}),e(o,A)},ht=o=>{var A=z(),O=d(A);{var Q=L=>{var V=z(),it=d(V);f(it,()=>vt,(Y,q)=>{q(Y,{children:(W,J)=>{var w=Zt(),I=d(w);f(I,()=>dt,(p,u)=>{u(p,{children:(N,Z)=>{var h=Jt(),_=d(h),r=y(_);ut(r,{class:"h-5 w-5 text-muted-foreground"});var P=n(r,2);f(P,()=>pt,(l,j)=>{j(l,{children:(T,tt)=>{k();var M=v("Distributed Trace");e(T,M)},$$slots:{default:!0}})}),$(_);var x=n(_,2);f(x,()=>mt,(l,j)=>{j(l,{children:(T,tt)=>{k();var M=v("This trace spans across multiple services");e(T,M)},$$slots:{default:!0}})}),e(N,h)},$$slots:{default:!0}})});var X=n(I,2);f(X,()=>ft,(p,u)=>{u(p,{children:(N,Z)=>{var h=Xt();Ht(h,21,()=>a(C).nodes,zt,(_,r,P)=>{var x=Wt();ct(x,1,`flex items-center gap-3 rounded-md border p-3 ${P>0?"ml-6":""}`);var l=y(x),j=y(l);st(j,{variant:"outline",class:"shrink-0",children:(t,s)=>{k();var c=v();B(()=>H(c,a(r).projectName)),e(t,c)},$$slots:{default:!0}});var T=n(j,2),tt=y(T);{var M=t=>{var s=v();B(()=>H(s,a(r).task?.taskName)),e(t,s)},xt=t=>{var s=z(),c=d(s);{var i=D=>{var R=v();B(wt=>H(R,wt),[()=>a(r).exception?.stackTrace.split(`
`)[0]]),e(D,R)},et=D=>{var R=v();B(()=>H(R,a(r).endpoint?.endpoint)),e(D,R)};g(c,D=>{a(r).traceType==="exception"?D(i):D(et,!1)},!0)}e(t,s)};g(tt,t=>{a(r).traceType==="task"?t(M):t(xt,!1)})}$(T);var nt=n(T,2);{var gt=t=>{var s=Kt(),c=y(s,!0);$(s),B(i=>{ct(s,1,`shrink-0 font-mono text-sm ${i??""}`),H(c,a(r).endpoint.statusCode)},[()=>Rt(a(r).endpoint.statusCode)]),e(t,s)};g(nt,t=>{a(r).traceType==="endpoint"&&a(r).endpoint&&t(gt)})}var lt=n(nt,2);{var yt=t=>{var s=Ot(),c=y(s,!0);$(s),B(i=>H(c,i),[()=>St(a(r).traceType==="task"?a(r).task?.duration??0:a(r).endpoint?.duration??0)]),e(t,s)};g(lt,t=>{a(r).traceType!=="exception"&&t(yt)})}var kt=n(lt,2);{var bt=t=>{st(t,{variant:"destructive",class:"shrink-0",children:(s,c)=>{k();var i=v("Exception");e(s,i)},$$slots:{default:!0}})};g(kt,t=>{a(r).exception&&t(bt)})}$(l);var Pt=n(l,2);{var Tt=t=>{st(t,{class:"bg-blue-500 hover:bg-blue-500 text-white",children:(s,c)=>{k();var i=v("You're here");e(s,i)},$$slots:{default:!0}})},Ct=t=>{Lt(t,{variant:"ghost",size:"sm",onclick:()=>F(a(r)),children:(s,c)=>{k();var i=Qt(),et=n(d(i));Gt(et,{class:"ml-1 h-3 w-3"}),e(s,i)},$$slots:{default:!0}})};g(Pt,t=>{b.currentExceptionHash&&a(r).traceType==="exception"&&a(r).exception?.exceptionHash===b.currentExceptionHash?t(Tt):t(Ct,!1)})}$(x),e(_,x)}),$(h),e(N,h)},$$slots:{default:!0}})}),e(W,w)},$$slots:{default:!0}})}),e(L,V)};g(O,L=>{a(C)&&a(C).nodes.length>1&&L(Q)},!0)}e(o,A)};g(_t,o=>{a(E)?o($t):o(ht,!1)})}e(K,G),Bt()}export{$e as D};
diff --git a/backend/static/frontend/_app/immutable/chunks/NF-n962K.js.map b/backend/static/frontend/_app/immutable/chunks/lEFYSxvE.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/chunks/NF-n962K.js.map
rename to backend/static/frontend/_app/immutable/chunks/lEFYSxvE.js.map
index 0f8734a8..35cc983e 100644
--- a/backend/static/frontend/_app/immutable/chunks/NF-n962K.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/lEFYSxvE.js.map
@@ -1 +1 @@
-{"version":3,"file":"NF-n962K.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/git-branch.svelte","../../../../../../src/lib/components/distributed-trace/distributed-trace-card.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"line\", { \"x1\": \"6\", \"x2\": \"6\", \"y1\": \"3\", \"y2\": \"15\" }], [\"circle\", { \"cx\": \"18\", \"cy\": \"6\", \"r\": \"3\" }], [\"circle\", { \"cx\": \"6\", \"cy\": \"18\", \"r\": \"3\" }], [\"path\", { \"d\": \"M18 9a9 9 0 0 1-9 9\" }]];\n/**\n * @component @name GitBranch\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8bGluZSB4MT0iNiIgeDI9IjYiIHkxPSIzIiB5Mj0iMTUiIC8+CiAgPGNpcmNsZSBjeD0iMTgiIGN5PSI2IiByPSIzIiAvPgogIDxjaXJjbGUgY3g9IjYiIGN5PSIxOCIgcj0iMyIgLz4KICA8cGF0aCBkPSJNMTggOWE5IDkgMCAwIDEtOSA5IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/git-branch\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"git-branch\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport * as Card from '$lib/components/ui/card';\n\timport { Badge } from '$lib/components/ui/badge';\n\timport { Button } from '$lib/components/ui/button';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { formatDuration, getStatusColor, formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { ArrowRight, GitBranch } from 'lucide-svelte';\n\timport type { DistributedTraceResponse, DistributedTraceNode } from '$lib/types/distributed-trace';\n\n\tinterface Props {\n\t\tdistributedTraceId: string;\n\t\tcurrentExceptionHash?: string;\n\t}\n\n\tlet { distributedTraceId, currentExceptionHash }: Props = $props();\n\n\tconst timezone = $derived(getTimezone());\n\n\tlet response = $state<DistributedTraceResponse | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\n\tasync function loadTrace() {\n\t\tloading = true;\n\t\terror = '';\n\t\ttry {\n\t\t\tresponse = (await api.post(\n\t\t\t\t`/distributed-traces/${distributedTraceId}`,\n\t\t\t\t{}\n\t\t\t)) as DistributedTraceResponse;\n\t\t} catch (e: any) {\n\t\t\terror = e.message || 'Failed to load distributed trace';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction navigateToNode(node: DistributedTraceNode) {\n\t\tprojectsState.selectProject(node.projectId);\n\t\tif (node.traceType === 'task' && node.task) {\n\t\t\tgoto(`/tasks/${encodeURIComponent(node.task.taskName)}/${node.task.id}?preset=24h`);\n\t\t} else if (node.traceType === 'exception' && node.exception) {\n\t\t\tgoto(`/issues/${node.exception.exceptionHash}?preset=24h`);\n\t\t} else if (node.endpoint) {\n\t\t\tgoto(`/endpoints/${encodeURIComponent(node.endpoint.endpoint)}/${node.endpoint.id}?preset=24h`);\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\tloadTrace();\n\t});\n</script>\n\n{#if loading}\n\t<Card.Root>\n\t\t<Card.Header>\n\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t<GitBranch class=\"h-5 w-5 text-muted-foreground\" />\n\t\t\t\t<Card.Title>Distributed Trace</Card.Title>\n\t\t\t</div>\n\t\t\t<Card.Description>\n\t\t\t\tThis trace spans across multiple services\n\t\t\t</Card.Description>\n\t\t</Card.Header>\n\t\t<Card.Content>\n\t\t\t<div class=\"flex items-center justify-center py-6\">\n\t\t\t\t<LoadingCircle size=\"md\" />\n\t\t\t</div>\n\t\t</Card.Content>\n\t</Card.Root>\n{:else if response && response.nodes.length > 1}\n\t<Card.Root>\n\t\t<Card.Header>\n\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t<GitBranch class=\"h-5 w-5 text-muted-foreground\" />\n\t\t\t\t<Card.Title>Distributed Trace</Card.Title>\n\t\t\t</div>\n\t\t\t<Card.Description>\n\t\t\t\tThis trace spans across multiple services\n\t\t\t</Card.Description>\n\t\t</Card.Header>\n\t\t<Card.Content>\n\t\t\t<div class=\"space-y-3\">\n\t\t\t\t{#each response.nodes as node, i}\n\t\t\t\t\t<div class=\"flex items-center gap-3 rounded-md border p-3 {i > 0 ? 'ml-6' : ''}\">\n\t\t\t\t\t\t<div class=\"flex min-w-0 flex-1 items-center gap-3\">\n\t\t\t\t\t\t\t<Badge variant=\"outline\" class=\"shrink-0\">{node.projectName}</Badge>\n\t\t\t\t\t\t\t<span class=\"truncate font-mono text-sm\">\n\t\t\t\t\t\t\t\t{#if node.traceType === 'task'}\n\t\t\t\t\t\t\t\t\t{node.task?.taskName}\n\t\t\t\t\t\t\t\t{:else if node.traceType === 'exception'}\n\t\t\t\t\t\t\t\t\t{node.exception?.stackTrace.split('\\n')[0]}\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t{node.endpoint?.endpoint}\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t{#if node.traceType === 'endpoint' && node.endpoint}\n\t\t\t\t\t\t\t\t<span class=\"shrink-0 font-mono text-sm {getStatusColor(node.endpoint.statusCode)}\">\n\t\t\t\t\t\t\t\t\t{node.endpoint.statusCode}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{#if node.traceType !== 'exception'}\n\t\t\t\t\t\t\t\t<span class=\"shrink-0 font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{formatDuration(node.traceType === 'task' ? node.task?.duration ?? 0 : node.endpoint?.duration ?? 0)}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{#if node.exception}\n\t\t\t\t\t\t\t\t<Badge variant=\"destructive\" class=\"shrink-0\">Exception</Badge>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{#if currentExceptionHash && node.traceType === 'exception' && node.exception?.exceptionHash === currentExceptionHash}\n\t\t\t\t\t\t<Badge class=\"bg-blue-500 hover:bg-blue-500 text-white\">You're here</Badge>\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<Button variant=\"ghost\" size=\"sm\" onclick={() => navigateToNode(node)}>\n\t\t\t\t\t\t\tView\n\t\t\t\t\t\t\t<ArrowRight class=\"ml-1 h-3 w-3\" />\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t{/if}\n\t\t\t\t\t</div>\n\t\t\t\t\t{/each}\n\t\t\t</div>\n\t\t</Card.Content>\n\t</Card.Root>\n{/if}\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","response","$.state","loading","error","loadTrace","$.set","api","$$props","e","navigateToNode","node","projectsState","goto","onMount","Card_Root","Card_Header","div","$.first_child","fragment_3","GitBranch","node_4","Card_Title","Card_Description","Card_Content","div_1","root_6","LoadingCircle","node_8","Card_Root_1","Card_Header_1","div_2","fragment_7","node_12","Card_Title_1","Card_Description_1","Card_Content_1","div_3","root_13","$.each","$.get","i","div_4","root_14","$.set_class","div_5","Badge","node_16","$.template_effect","$.set_text","text_4","span","$.sibling","$$render","consequent_2","alternate","consequent_1","alternate_1","span_1","root_20","$0","getStatusColor","consequent_3","span_2","root_21","formatDuration","consequent_4","consequent_5","Button","ArrowRight","node_23","consequent_6","alternate_2","consequent_7","consequent","alternate_3"],"mappings":"4wBAAA,kEA6CMA,EAAQ,CAAK,CAAA,OAAM,CAAI,GAAM,IAAK,GAAM,IAAK,GAAM,IAAK,GAAM,KAA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AU,CAAA,OAA/E+C,CAAI,YADDlB,EAAA7B,CAAI,EAAC,YAAc,YAAU6B,EAAI7B,CAAI,EAAC,UAAQ0C,EAAAS,EAAA,mCAMjDC,EAAIC,GAAA,MAAJD,EAAI,EAAA,IAAJA,CAAI,eACH,IAAAE,GAAczB,EAAC7B,CAAI,EAAC,YAAc,OAAS6B,EAAA7B,CAAI,EAAC,MAAM,UAAY,EAAI6B,EAAA7B,CAAI,EAAC,UAAU,UAAY,CAAC,QADnGoD,CAAI,cADDpD,CAAI,EAAC,YAAc,aAAW0C,EAAAa,EAAA,+BAMjCpB,GAAKhD,EAAA,2HADF0C,EAAA7B,CAAI,EAAC,WAAS0C,EAAAc,EAAA,MArBnBtB,CAAG,WAAHA,EAAG,CAAA,cA0BHC,GAAKhD,EAAA,qIAELsE,GAAMtE,EAAA,2BAA0C,QAAA,IAAAY,IAAeC,CAAI,CAAA,6CAElE0D,GAAUC,GAAA,CAAA,MAAA,cAAA,CAAA,qEALiB3D,CAAI,EAAC,YAAc,eAAeA,CAAI,EAAC,WAAW,gBAAaH,EAAA,qBAAA6C,EAAAkB,EAAA,EAAAlB,EAAAmB,GAAA,EAAA,MA1B5F9B,CAAG,MAAHA,CAAG,MAFLL,CAAG,MAAHA,CAAG,6EAZGG,EAAAvC,CAAQ,KAAIA,CAAQ,EAAC,MAAM,OAAS,GAACoD,EAAAoB,CAAA,0BAjB1CtE,CAAO,EAAAkD,EAAAqB,EAAA,EAAArB,EAAAsB,GAAA,EAAA,eAFZ","x_google_ignoreList":[0]}
\ No newline at end of file
+{"version":3,"file":"lEFYSxvE.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/git-branch.svelte","../../../../../../src/lib/components/distributed-trace/distributed-trace-card.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"line\", { \"x1\": \"6\", \"x2\": \"6\", \"y1\": \"3\", \"y2\": \"15\" }], [\"circle\", { \"cx\": \"18\", \"cy\": \"6\", \"r\": \"3\" }], [\"circle\", { \"cx\": \"6\", \"cy\": \"18\", \"r\": \"3\" }], [\"path\", { \"d\": \"M18 9a9 9 0 0 1-9 9\" }]];\n/**\n * @component @name GitBranch\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8bGluZSB4MT0iNiIgeDI9IjYiIHkxPSIzIiB5Mj0iMTUiIC8+CiAgPGNpcmNsZSBjeD0iMTgiIGN5PSI2IiByPSIzIiAvPgogIDxjaXJjbGUgY3g9IjYiIGN5PSIxOCIgcj0iMyIgLz4KICA8cGF0aCBkPSJNMTggOWE5IDkgMCAwIDEtOSA5IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/git-branch\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"git-branch\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport * as Card from '$lib/components/ui/card';\n\timport { Badge } from '$lib/components/ui/badge';\n\timport { Button } from '$lib/components/ui/button';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { formatDuration, getStatusColor, formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { ArrowRight, GitBranch } from 'lucide-svelte';\n\timport type { DistributedTraceResponse, DistributedTraceNode } from '$lib/types/distributed-trace';\n\n\tinterface Props {\n\t\tdistributedTraceId: string;\n\t\tcurrentExceptionHash?: string;\n\t}\n\n\tlet { distributedTraceId, currentExceptionHash }: Props = $props();\n\n\tconst timezone = $derived(getTimezone());\n\n\tlet response = $state<DistributedTraceResponse | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\n\tasync function loadTrace() {\n\t\tloading = true;\n\t\terror = '';\n\t\ttry {\n\t\t\tresponse = (await api.post(\n\t\t\t\t`/distributed-traces/${distributedTraceId}`,\n\t\t\t\t{}\n\t\t\t)) as DistributedTraceResponse;\n\t\t} catch (e: any) {\n\t\t\terror = e.message || 'Failed to load distributed trace';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction navigateToNode(node: DistributedTraceNode) {\n\t\tprojectsState.selectProject(node.projectId);\n\t\tif (node.traceType === 'task' && node.task) {\n\t\t\tgoto(`/tasks/${encodeURIComponent(node.task.taskName)}/${node.task.id}?preset=24h`);\n\t\t} else if (node.traceType === 'exception' && node.exception) {\n\t\t\tgoto(`/issues/${node.exception.exceptionHash}?preset=24h`);\n\t\t} else if (node.endpoint) {\n\t\t\tgoto(`/endpoints/${encodeURIComponent(node.endpoint.endpoint)}/${node.endpoint.id}?preset=24h`);\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\tloadTrace();\n\t});\n</script>\n\n{#if loading}\n\t<Card.Root>\n\t\t<Card.Header>\n\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t<GitBranch class=\"h-5 w-5 text-muted-foreground\" />\n\t\t\t\t<Card.Title>Distributed Trace</Card.Title>\n\t\t\t</div>\n\t\t\t<Card.Description>\n\t\t\t\tThis trace spans across multiple services\n\t\t\t</Card.Description>\n\t\t</Card.Header>\n\t\t<Card.Content>\n\t\t\t<div class=\"flex items-center justify-center py-6\">\n\t\t\t\t<LoadingCircle size=\"md\" />\n\t\t\t</div>\n\t\t</Card.Content>\n\t</Card.Root>\n{:else if response && response.nodes.length > 1}\n\t<Card.Root>\n\t\t<Card.Header>\n\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t<GitBranch class=\"h-5 w-5 text-muted-foreground\" />\n\t\t\t\t<Card.Title>Distributed Trace</Card.Title>\n\t\t\t</div>\n\t\t\t<Card.Description>\n\t\t\t\tThis trace spans across multiple services\n\t\t\t</Card.Description>\n\t\t</Card.Header>\n\t\t<Card.Content>\n\t\t\t<div class=\"space-y-3\">\n\t\t\t\t{#each response.nodes as node, i}\n\t\t\t\t\t<div class=\"flex items-center gap-3 rounded-md border p-3 {i > 0 ? 'ml-6' : ''}\">\n\t\t\t\t\t\t<div class=\"flex min-w-0 flex-1 items-center gap-3\">\n\t\t\t\t\t\t\t<Badge variant=\"outline\" class=\"shrink-0\">{node.projectName}</Badge>\n\t\t\t\t\t\t\t<span class=\"truncate font-mono text-sm\">\n\t\t\t\t\t\t\t\t{#if node.traceType === 'task'}\n\t\t\t\t\t\t\t\t\t{node.task?.taskName}\n\t\t\t\t\t\t\t\t{:else if node.traceType === 'exception'}\n\t\t\t\t\t\t\t\t\t{node.exception?.stackTrace.split('\\n')[0]}\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t{node.endpoint?.endpoint}\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t{#if node.traceType === 'endpoint' && node.endpoint}\n\t\t\t\t\t\t\t\t<span class=\"shrink-0 font-mono text-sm {getStatusColor(node.endpoint.statusCode)}\">\n\t\t\t\t\t\t\t\t\t{node.endpoint.statusCode}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{#if node.traceType !== 'exception'}\n\t\t\t\t\t\t\t\t<span class=\"shrink-0 font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{formatDuration(node.traceType === 'task' ? node.task?.duration ?? 0 : node.endpoint?.duration ?? 0)}\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{#if node.exception}\n\t\t\t\t\t\t\t\t<Badge variant=\"destructive\" class=\"shrink-0\">Exception</Badge>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{#if currentExceptionHash && node.traceType === 'exception' && node.exception?.exceptionHash === currentExceptionHash}\n\t\t\t\t\t\t<Badge class=\"bg-blue-500 hover:bg-blue-500 text-white\">You're here</Badge>\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<Button variant=\"ghost\" size=\"sm\" onclick={() => navigateToNode(node)}>\n\t\t\t\t\t\t\tView\n\t\t\t\t\t\t\t<ArrowRight class=\"ml-1 h-3 w-3\" />\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t{/if}\n\t\t\t\t\t</div>\n\t\t\t\t\t{/each}\n\t\t\t</div>\n\t\t</Card.Content>\n\t</Card.Root>\n{/if}\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","response","$.state","loading","error","loadTrace","$.set","api","$$props","e","navigateToNode","node","projectsState","goto","onMount","Card_Root","Card_Header","div","$.first_child","fragment_3","GitBranch","node_4","Card_Title","Card_Description","Card_Content","div_1","root_6","LoadingCircle","node_8","Card_Root_1","Card_Header_1","div_2","fragment_7","node_12","Card_Title_1","Card_Description_1","Card_Content_1","div_3","root_13","$.each","$.get","i","div_4","root_14","$.set_class","div_5","Badge","node_16","$.template_effect","$.set_text","text_4","span","$.sibling","$$render","consequent_2","alternate","consequent_1","alternate_1","span_1","root_20","$0","getStatusColor","consequent_3","span_2","root_21","formatDuration","consequent_4","consequent_5","Button","ArrowRight","node_23","consequent_6","alternate_2","consequent_7","consequent","alternate_3"],"mappings":"4wBAAA,kEA6CMA,EAAQ,CAAK,CAAA,OAAM,CAAI,GAAM,IAAK,GAAM,IAAK,GAAM,IAAK,GAAM,KAAI,GAAM,SAAQ,CAAI,GAAM,KAAM,GAAM,IAAK,EAAK,IAAG,GAAM,SAAQ,CAAI,GAAM,IAAK,GAAM,KAAM,EAAK,IAAG,GAAM,OAAM,CAAI,EAAK,qBAAqB,CAAA,GAcnNC,GAAIC,EAAAC,GAAA,CAAA,KAAA,YAAA,EAAA,IAAAC,EAAA,uBAA0CJ,+FAF/C,qjBCzDA,cAuBKK,EAAWC,GAAwC,IAAI,EACvDC,EAAUD,GAAO,EAAI,EACrBE,EAAQF,GAAO,EAAE,EAEN,eAAAG,IAAY,CAC1BC,EAAAH,EAAU,EAAI,EACdG,EAAAF,EAAQ,EAAE,EACN,GAAA,GACHH,EAAQ,MAAUM,GAAI,KAAI,uBAAAC,EAAA,kBAAA,GAAA,CAAA,CAAA,EAAA,EAAA,CAI3B,OAASC,EAAQ,CAChBH,EAAAF,EAAQK,EAAE,SAAW,mCAAkC,EAAA,CACxD,QAAC,CACAH,EAAAH,EAAU,EAAK,CAChB,CACD,UAESO,EAAeC,EAA4B,CACnDC,GAAc,cAAcD,EAAK,SAAS,EACtCA,EAAK,YAAc,QAAUA,EAAK,KACrCE,GAAI,UAAW,mBAAmBF,EAAK,KAAK,QAAQ,CAAA,IAAKA,EAAK,KAAK,EAAE,aAAA,EAC3DA,EAAK,YAAc,aAAeA,EAAK,UACjDE,GAAI,WAAYF,EAAK,UAAU,aAAa,aAAA,EAClCA,EAAK,UACfE,GAAI,cAAe,mBAAmBF,EAAK,SAAS,QAAQ,CAAA,IAAKA,EAAK,SAAS,EAAE,aAAA,CAEnF,CAEAG,GAAO,IAAO,CACbT,GAAS,CACV,CAAC,oEAIAU,EAASjB,EAAA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/chunks/m9wcLEvn.js
deleted file mode 100644
index 50dedd15..00000000
--- a/backend/static/frontend/_app/immutable/chunks/m9wcLEvn.js
+++ /dev/null
@@ -1 +0,0 @@
-import{p as f,i as B,r as M}from"./DMODTt3n.js";import{h,g as e,i as o,u as a,K as T,p as z,d as b,c as P,b as c,a as K,m as w,f as U,e as W,o as j,r as q}from"./B2WdN-7r.js";import{b as F}from"./DH0tcjsQ.js";import{b as l,d as ot,g as it,a as N,e as E,c as G,m as R}from"./DWAABZDo.js";import{C as nt,P as V,w as H,o as at,S as X,E as Y}from"./CAQEdoSh.js";const dt=ot({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),u=new nt("Dialog.Root | AlertDialog.Root");class Z{static create(t){const s=u.getOr(null);return u.set(new Z(t,s))}opts;#t=h(null);get triggerNode(){return e(this.#t)}set triggerNode(t){o(this.#t,t,!0)}#e=h(null);get contentNode(){return e(this.#e)}set contentNode(t){o(this.#e,t,!0)}#s=h(null);get overlayNode(){return e(this.#s)}set overlayNode(t){o(this.#s,t,!0)}#r=h(null);get descriptionNode(){return e(this.#r)}set descriptionNode(t){o(this.#r,t,!0)}#o=h(void 0);get contentId(){return e(this.#o)}set contentId(t){o(this.#o,t,!0)}#i=h(void 0);get titleId(){return e(this.#i)}set titleId(t){o(this.#i,t,!0)}#n=h(void 0);get triggerId(){return e(this.#n)}set triggerId(t){o(this.#n,t,!0)}#a=h(void 0);get descriptionId(){return e(this.#a)}set descriptionId(t){o(this.#a,t,!0)}#d=h(null);get cancelNode(){return e(this.#d)}set cancelNode(t){o(this.#d,t,!0)}#h=h(0);get nestedOpenCount(){return e(this.#h)}set nestedOpenCount(t){o(this.#h,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,s){this.opts=t,this.parent=s,this.depth=s?s.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new V({ref:l(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new V({ref:l(()=>this.overlayNode),open:this.opts.open,enabled:!0}),H(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),at(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>dt.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#c=a(()=>({"data-state":it(this.opts.open.current)}));get sharedProps(){return e(this.#c)}set sharedProps(t){o(this.#c,t)}}class ${static create(t){return new $(t,u.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=N(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===X||t.key===Y)&&(t.preventDefault(),this.root.handleClose())}#t=a(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return e(this.#t)}set props(t){o(this.#t,t)}}class tt{static create(t){return new tt(t,u.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=N(this.opts.ref)}#t=a(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return e(this.#t)}set props(t){o(this.#t,t)}}class J{static create(t){return new J(t,u.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.root.titleId=this.opts.id.current,this.attachment=N(this.opts.ref),H.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}#t=a(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return e(this.#t)}set props(t){o(this.#t,t)}}class L{static create(t){return new L(t,u.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.root.descriptionId=this.opts.id.current,this.attachment=N(this.opts.ref,r=>{this.root.descriptionNode=r}),H.pre(()=>this.opts.id.current,r=>{this.root.descriptionId=r})}#t=a(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return e(this.#t)}set props(t){o(this.#t,t)}}class et{static create(t){return new et(t,u.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=N(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#t=a(()=>({open:this.root.opts.open.current}));get snippetProps(){return e(this.#t)}set snippetProps(t){o(this.#t,t)}#e=a(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":E(this.root.nestedOpenCount>0),"data-nested":E(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return e(this.#e)}set props(t){o(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class Q{static create(t){return new Q(t,u.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=N(this.opts.ref,r=>this.root.overlayNode=r)}#t=a(()=>({open:this.root.opts.open.current}));get snippetProps(){return e(this.#t)}set snippetProps(t){o(this.#t,t)}#e=a(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":E(this.root.nestedOpenCount>0),"data-nested":E(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return e(this.#e)}set props(t){o(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class st{static create(t){return new st(t,u.get())}opts;root;attachment;constructor(t,s){this.opts=t,this.root=s,this.attachment=N(this.opts.ref,r=>this.root.cancelNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===X||t.key===Y)&&(t.preventDefault(),this.root.handleClose())}#t=a(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return e(this.#t)}set props(t){o(this.#t,t)}}var ht=U("<div><!></div>");function mt(I,t){const s=T();z(t,!0);let r=f(t,"id",19,()=>G(s)),v=f(t,"ref",15,null),k=f(t,"level",3,2),O=M(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const p=J.create({id:l(()=>r()),level:l(()=>k()),ref:l(()=>v(),i=>v(i))}),g=a(()=>R(O,p.props));var m=b(),_=P(m);{var A=i=>{var d=b(),D=P(d);w(D,()=>t.child,()=>({props:e(g)})),c(i,d)},n=i=>{var d=ht();F(d,()=>({...e(g)}));var D=W(d);w(D,()=>t.children??j),q(d),c(i,d)};B(_,i=>{t.child?i(A):i(n,!1)})}c(I,m),K()}var ct=U("<div><!></div>");function yt(I,t){const s=T();z(t,!0);let r=f(t,"id",19,()=>G(s)),v=f(t,"forceMount",3,!1),k=f(t,"ref",15,null),O=M(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const p=Q.create({id:l(()=>r()),ref:l(()=>k(),n=>k(n))}),g=a(()=>R(O,p.props));var m=b(),_=P(m);{var A=n=>{var i=b(),d=P(i);{var D=C=>{var y=b(),x=P(y);{let S=a(()=>({props:R(e(g)),...p.snippetProps}));w(x,()=>t.child,()=>e(S))}c(C,y)},rt=C=>{var y=ct();F(y,S=>({...S}),[()=>R(e(g))]);var x=W(y);w(x,()=>t.children??j,()=>p.snippetProps),q(y),c(C,y)};B(d,C=>{t.child?C(D):C(rt,!1)})}c(n,i)};B(_,n=>{(p.shouldRender||v())&&n(A)})}c(I,m),K()}var pt=U("<div><!></div>");function bt(I,t){const s=T();z(t,!0);let r=f(t,"id",19,()=>G(s)),v=f(t,"ref",15,null),k=M(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const O=L.create({id:l(()=>r()),ref:l(()=>v(),n=>v(n))}),p=a(()=>R(k,O.props));var g=b(),m=P(g);{var _=n=>{var i=b(),d=P(i);w(d,()=>t.child,()=>({props:e(p)})),c(n,i)},A=n=>{var i=pt();F(i,()=>({...e(p)}));var d=W(i);w(d,()=>t.children??j),q(i),c(n,i)};B(m,n=>{t.child?n(_):n(A,!1)})}c(I,g),K()}export{st as A,Z as D,et as a,yt as b,mt as c,bt as d,tt as e,$ as f};
diff --git a/backend/static/frontend/_app/immutable/chunks/m9wcLEvn.js.map b/backend/static/frontend/_app/immutable/chunks/m9wcLEvn.js.map
deleted file mode 100644
index 65fee175..00000000
--- a/backend/static/frontend/_app/immutable/chunks/m9wcLEvn.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"m9wcLEvn.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/dialog/dialog.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog-title.svelte","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog-overlay.svelte","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog-description.svelte"],"sourcesContent":["import { attachRef, boxWith, onDestroyEffect, } from \"svelte-toolbelt\";\nimport { Context, watch } from \"runed\";\nimport { createBitsAttrs, boolToStr, getDataOpenClosed, boolToEmptyStrOrUndef, } from \"../../internal/attrs.js\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { PresenceManager } from \"../../internal/presence-manager.svelte.js\";\nconst dialogAttrs = createBitsAttrs({\n component: \"dialog\",\n parts: [\"content\", \"trigger\", \"overlay\", \"title\", \"description\", \"close\", \"cancel\", \"action\"],\n});\nconst DialogRootContext = new Context(\"Dialog.Root | AlertDialog.Root\");\nexport class DialogRootState {\n static create(opts) {\n const parent = DialogRootContext.getOr(null);\n return DialogRootContext.set(new DialogRootState(opts, parent));\n }\n opts;\n triggerNode = $state(null);\n contentNode = $state(null);\n overlayNode = $state(null);\n descriptionNode = $state(null);\n contentId = $state(undefined);\n titleId = $state(undefined);\n triggerId = $state(undefined);\n descriptionId = $state(undefined);\n cancelNode = $state(null);\n nestedOpenCount = $state(0);\n depth;\n parent;\n contentPresence;\n overlayPresence;\n constructor(opts, parent) {\n this.opts = opts;\n this.parent = parent;\n this.depth = parent ? parent.depth + 1 : 0;\n this.handleOpen = this.handleOpen.bind(this);\n this.handleClose = this.handleClose.bind(this);\n this.contentPresence = new PresenceManager({\n ref: boxWith(() => this.contentNode),\n open: this.opts.open,\n enabled: true,\n onComplete: () => {\n this.opts.onOpenChangeComplete.current(this.opts.open.current);\n },\n });\n this.overlayPresence = new PresenceManager({\n ref: boxWith(() => this.overlayNode),\n open: this.opts.open,\n enabled: true,\n });\n watch(() => this.opts.open.current, (isOpen) => {\n if (!this.parent)\n return;\n if (isOpen) {\n this.parent.incrementNested();\n }\n else {\n this.parent.decrementNested();\n }\n }, { lazy: true });\n onDestroyEffect(() => {\n if (this.opts.open.current) {\n this.parent?.decrementNested();\n }\n });\n }\n handleOpen() {\n if (this.opts.open.current)\n return;\n this.opts.open.current = true;\n }\n handleClose() {\n if (!this.opts.open.current)\n return;\n this.opts.open.current = false;\n }\n getBitsAttr = (part) => {\n return dialogAttrs.getAttr(part, this.opts.variant.current);\n };\n incrementNested() {\n this.nestedOpenCount++;\n this.parent?.incrementNested();\n }\n decrementNested() {\n if (this.nestedOpenCount === 0)\n return;\n this.nestedOpenCount--;\n this.parent?.decrementNested();\n }\n sharedProps = $derived.by(() => ({\n \"data-state\": getDataOpenClosed(this.opts.open.current),\n }));\n}\nexport class DialogTriggerState {\n static create(opts) {\n return new DialogTriggerState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => {\n this.root.triggerNode = v;\n this.root.triggerId = v?.id;\n });\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n onclick(e) {\n if (this.opts.disabled.current)\n return;\n if (e.button > 0)\n return;\n this.root.handleOpen();\n }\n onkeydown(e) {\n if (this.opts.disabled.current)\n return;\n if (e.key === kbd.SPACE || e.key === kbd.ENTER) {\n e.preventDefault();\n this.root.handleOpen();\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": boolToStr(this.root.opts.open.current),\n \"aria-controls\": this.root.contentId,\n [this.root.getBitsAttr(\"trigger\")]: \"\",\n onkeydown: this.onkeydown,\n onclick: this.onclick,\n disabled: this.opts.disabled.current ? true : undefined,\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\nexport class DialogCloseState {\n static create(opts) {\n return new DialogCloseState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n onclick(e) {\n if (this.opts.disabled.current)\n return;\n if (e.button > 0)\n return;\n this.root.handleClose();\n }\n onkeydown(e) {\n if (this.opts.disabled.current)\n return;\n if (e.key === kbd.SPACE || e.key === kbd.ENTER) {\n e.preventDefault();\n this.root.handleClose();\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(this.opts.variant.current)]: \"\",\n onclick: this.onclick,\n onkeydown: this.onkeydown,\n disabled: this.opts.disabled.current ? true : undefined,\n tabindex: 0,\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\nexport class DialogActionState {\n static create(opts) {\n return new DialogActionState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"action\")]: \"\",\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\nexport class DialogTitleState {\n static create(opts) {\n return new DialogTitleState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.root.titleId = this.opts.id.current;\n this.attachment = attachRef(this.opts.ref);\n watch.pre(() => this.opts.id.current, (id) => {\n this.root.titleId = id;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"heading\",\n \"aria-level\": this.opts.level.current,\n [this.root.getBitsAttr(\"title\")]: \"\",\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\nexport class DialogDescriptionState {\n static create(opts) {\n return new DialogDescriptionState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.root.descriptionId = this.opts.id.current;\n this.attachment = attachRef(this.opts.ref, (v) => {\n this.root.descriptionNode = v;\n });\n watch.pre(() => this.opts.id.current, (id) => {\n this.root.descriptionId = id;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"description\")]: \"\",\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\nexport class DialogContentState {\n static create(opts) {\n return new DialogContentState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => {\n this.root.contentNode = v;\n this.root.contentId = v?.id;\n });\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: this.root.opts.variant.current === \"alert-dialog\" ? \"alertdialog\" : \"dialog\",\n \"aria-modal\": \"true\",\n \"aria-describedby\": this.root.descriptionId,\n \"aria-labelledby\": this.root.titleId,\n [this.root.getBitsAttr(\"content\")]: \"\",\n style: {\n pointerEvents: \"auto\",\n outline: this.root.opts.variant.current === \"alert-dialog\" ? \"none\" : undefined,\n \"--bits-dialog-depth\": this.root.depth,\n \"--bits-dialog-nested-count\": this.root.nestedOpenCount,\n },\n tabindex: this.root.opts.variant.current === \"alert-dialog\" ? -1 : undefined,\n \"data-nested-open\": boolToEmptyStrOrUndef(this.root.nestedOpenCount > 0),\n \"data-nested\": boolToEmptyStrOrUndef(this.root.parent !== null),\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n get shouldRender() {\n return this.root.contentPresence.shouldRender;\n }\n}\nexport class DialogOverlayState {\n static create(opts) {\n return new DialogOverlayState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.overlayNode = v));\n }\n snippetProps = $derived.by(() => ({ open: this.root.opts.open.current }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"overlay\")]: \"\",\n style: {\n pointerEvents: \"auto\",\n \"--bits-dialog-depth\": this.root.depth,\n \"--bits-dialog-nested-count\": this.root.nestedOpenCount,\n },\n \"data-nested-open\": boolToEmptyStrOrUndef(this.root.nestedOpenCount > 0),\n \"data-nested\": boolToEmptyStrOrUndef(this.root.parent !== null),\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n get shouldRender() {\n return this.root.overlayPresence.shouldRender;\n }\n}\nexport class AlertDialogCancelState {\n static create(opts) {\n return new AlertDialogCancelState(opts, DialogRootContext.get());\n }\n opts;\n root;\n attachment;\n constructor(opts, root) {\n this.opts = opts;\n this.root = root;\n this.attachment = attachRef(this.opts.ref, (v) => (this.root.cancelNode = v));\n this.onclick = this.onclick.bind(this);\n this.onkeydown = this.onkeydown.bind(this);\n }\n onclick(e) {\n if (this.opts.disabled.current)\n return;\n if (e.button > 0)\n return;\n this.root.handleClose();\n }\n onkeydown(e) {\n if (this.opts.disabled.current)\n return;\n if (e.key === kbd.SPACE || e.key === kbd.ENTER) {\n e.preventDefault();\n this.root.handleClose();\n }\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n [this.root.getBitsAttr(\"cancel\")]: \"\",\n onclick: this.onclick,\n onkeydown: this.onkeydown,\n tabindex: 0,\n ...this.root.sharedProps,\n ...this.attachment,\n }));\n}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { DialogTitleState } from \"../dialog.svelte.js\";\n\timport type { DialogTitleProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tchildren,\n\t\tlevel = 2,\n\t\t...restProps\n\t}: DialogTitleProps = $props();\n\n\tconst titleState = DialogTitleState.create({\n\t\tid: boxWith(() => id),\n\t\tlevel: boxWith(() => level),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, titleState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { DialogOverlayState } from \"../dialog.svelte.js\";\n\timport type { DialogOverlayProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tforceMount = false,\n\t\tchild,\n\t\tchildren,\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: DialogOverlayProps = $props();\n\n\tconst overlayState = DialogOverlayState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, overlayState.props));\n</script>\n\n{#if overlayState.shouldRender || forceMount}\n\t{#if child}\n\t\t{@render child({ props: mergeProps(mergedProps), ...overlayState.snippetProps })}\n\t{:else}\n\t\t<div {...mergeProps(mergedProps)}>\n\t\t\t{@render children?.(overlayState.snippetProps)}\n\t\t</div>\n\t{/if}\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { DialogDescriptionState } from \"../dialog.svelte.js\";\n\timport type { DialogDescriptionProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: DialogDescriptionProps = $props();\n\n\tconst descriptionState = DialogDescriptionState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, descriptionState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n"],"names":["dialogAttrs","createBitsAttrs","DialogRootContext","Context","DialogRootState","opts","parent","#triggerNode","$.state","value","#contentNode","#overlayNode","#descriptionNode","#contentId","#titleId","#triggerId","#descriptionId","#cancelNode","#nestedOpenCount","PresenceManager","boxWith","watch","isOpen","onDestroyEffect","part","getDataOpenClosed","DialogCloseState","root","attachRef","e","kbd.SPACE","kbd.ENTER","DialogActionState","DialogTitleState","id","DialogDescriptionState","v","DialogContentState","boolToEmptyStrOrUndef","DialogOverlayState","AlertDialogCancelState","uid","$.props_id","$.prop","$$props","createId","ref","level","restProps","$.rest_props","titleState","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","forceMount","overlayState","$.get","root_3","$0","node_3","$.noop","$$render","consequent_1","descriptionState"],"mappings":"sWAKM,MAAAA,GAAcC,GAAe,CAC/B,UAAW,SACX,MAAK,CAAG,UAAW,UAAW,UAAW,QAAS,cAAe,QAAS,SAAU,YAElFC,EAAiB,IAAOC,GAAQ,gCAAgC,EACzD,MAAAC,CAAgB,QAClB,OAAOC,EAAM,CACV,MAAAC,EAASJ,EAAkB,MAAM,IAAI,EACpC,OAAAA,EAAkB,IAAG,IAAKE,EAAgBC,EAAMC,CAAM,CAAA,CACjE,CACA,KACcC,GAAAC,EAAO,IAAI,MAAzB,aAAW,uBAAX,YAAWC,EAAA,iBACGC,GAAAF,EAAO,IAAI,MAAzB,aAAW,uBAAX,YAAWC,EAAA,iBACGE,GAAAH,EAAO,IAAI,MAAzB,aAAW,uBAAX,YAAWC,EAAA,iBACOG,GAAAJ,EAAO,IAAI,MAA7B,iBAAe,uBAAf,gBAAeC,EAAA,iBACHI,GAAAL,EAAO,MAAS,MAA5B,WAAS,uBAAT,UAASC,EAAA,iBACCK,GAAAN,EAAO,MAAS,MAA1B,SAAO,uBAAP,QAAOC,EAAA,iBACKM,GAAAP,EAAO,MAAS,MAA5B,WAAS,uBAAT,UAASC,EAAA,iBACOO,GAAAR,EAAO,MAAS,MAAhC,eAAa,uBAAb,cAAaC,EAAA,iBACAQ,GAAAT,EAAO,IAAI,MAAxB,YAAU,uBAAV,WAAUC,EAAA,iBACQS,GAAAV,EAAO,CAAC,MAA1B,iBAAe,uBAAf,gBAAeC,EAAA,iBACf,MACA,OACA,gBACA,gBACA,YAAYJ,EAAMC,EAAQ,CACtB,KAAK,KAAOD,EACZ,KAAK,OAASC,EACd,KAAK,MAAQA,EAASA,EAAO,MAAQ,EAAI,EACzC,KAAK,WAAa,KA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V,CAAC,CAAA,IAIXe,QAAuBC,EAAWJ,EAAWmB,EAAiB,KAAK,CAAA,+CAIxDd,EAAAC,EAAA,IAAAV,EAAA,MAAA,KAAA,CAAA,QAAOO,CAAW,CAAA,EAAA,oBAElCI,EAAGC,GAAA,EAAHC,EAAAF,aAAQJ,CAAW,CAAA,EAAA,UAAnBI,CAAG,2BAAHA,CAAG,MAAHA,CAAG,4CALL","x_google_ignoreList":[0,1,2,3]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/qCQ2nSvO.js b/backend/static/frontend/_app/immutable/chunks/qCQ2nSvO.js
new file mode 100644
index 00000000..a99ba3c9
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/qCQ2nSvO.js
@@ -0,0 +1 @@
+import{h as g,v as f,g as u,i as h,u as y,aM as O,F as I,C as w}from"./B2WdN-7r.js";import{g as z}from"./BIF4_51j.js";const S="traceway_nav_depth";function P(){try{return parseInt(sessionStorage.getItem(S)||"0",10)}catch{return 0}}function v(s){try{sessionStorage.setItem(S,String(s))}catch{}}function L(){v(P()+1)}function B(){v(Math.max(0,P()-1))}function R(){try{sessionStorage.removeItem(S)}catch{}}function k(){return P()>0}function G(s){const{fallbackPath:t}=s;return e=>{if(e.ctrlKey||e.metaKey){window.open(t,"_blank");return}k()?history.back():z(t)}}class N{#t=g(f(localStorage.getItem("AUTH_TOKEN")));get token(){return u(this.#t)}set token(t){h(this.#t,t,!0)}#e=g(f(JSON.parse(localStorage.getItem("USER_ORGANIZATIONS")||"[]")));get organizations(){return u(this.#e)}set organizations(t){h(this.#e,t,!0)}#s=y(()=>!!this.token);get isAuthenticated(){return u(this.#s)}set isAuthenticated(t){h(this.#s,t)}constructor(){O(()=>{I(()=>{this.token?localStorage.setItem("AUTH_TOKEN",this.token):localStorage.removeItem("AUTH_TOKEN")}),I(()=>{this.organizations.length>0?localStorage.setItem("USER_ORGANIZATIONS",JSON.stringify(this.organizations)):localStorage.removeItem("USER_ORGANIZATIONS")})})}setToken(t){this.token=t}setOrganizations(t){this.organizations=t}getRoleForOrganization(t){return this.organizations.find(r=>r.id===t)?.role||null}canManageOrganization(t){const e=this.getRoleForOrganization(t);return e==="owner"||e==="admin"}getTimezoneForOrganization(t){return this.organizations.find(r=>r.id===t)?.timezone||null}updateOrganizationTimezone(t,e){const r=this.organizations.find(n=>n.id===t);r&&(r.timezone=e,this.organizations=[...this.organizations])}logout(){this.token=null,this.organizations=[],R()}}const j=new N;function q(...s){return s.filter(Boolean).join(" ")}const C=typeof document<"u";let E=0;class _{#t=g(f([]));get toasts(){return u(this.#t)}set toasts(t){h(this.#t,t,!0)}#e=g(f([]));get heights(){return u(this.#e)}set heights(t){h(this.#e,t,!0)}#s=t=>{const e=this.toasts.findIndex(r=>r.id===t);return e===-1?null:e};addToast=t=>{C&&this.toasts.unshift(t)};updateToast=({id:t,data:e,type:r,message:n})=>{const i=this.toasts.findIndex(a=>a.id===t),o=this.toasts[i];this.toasts[i]={...o,...e,id:t,title:n,type:r,updated:!0}};create=t=>{const{message:e,...r}=t,n=typeof t?.id=="number"||t.id&&t.id?.length>0?t.id:E++,i=t.dismissable===void 0?!0:t.dismissable,o=t.type===void 0?"default":t.type;return w(()=>{this.toasts.find(l=>l.id===n)?this.updateToast({id:n,data:t,type:o,message:e,dismissable:i}):this.addToast({...r,id:n,title:e,dismissable:i,type:o})}),n};dismiss=t=>(w(()=>{if(t===void 0){this.toasts=this.toasts.map(r=>({...r,dismiss:!0}));return}const e=this.toasts.findIndex(r=>r.id===t);this.toasts[e]&&(this.toasts[e]={...this.toasts[e],dismiss:!0})}),t);remove=t=>{if(t===void 0){this.toasts=[];return}const e=this.#s(t);if(e!==null)return this.toasts.splice(e,1),t};message=(t,e)=>this.create({...e,type:"default",message:t});error=(t,e)=>this.create({...e,type:"error",message:t});success=(t,e)=>this.create({...e,type:"success",message:t});info=(t,e)=>this.create({...e,type:"info",message:t});warning=(t,e)=>this.create({...e,type:"warning",message:t});loading=(t,e)=>this.create({...e,type:"loading",message:t});promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:typeof e.loading=="string"?e.loading:e.loading()}));const n=t instanceof Promise?t:t();let i=r!==void 0;return n.then(o=>{if(typeof o=="object"&&o&&"ok"in o&&typeof o.ok=="boolean"&&!o.ok){i=!1;const a=A(o);this.create({id:r,type:"error",message:a})}else if(e.success!==void 0){i=!1;const a=typeof e.success=="function"?e.success(o):e.success;this.create({id:r,type:"success",message:a})}}).catch(o=>{if(e.error!==void 0){i=!1;const a=typeof e.error=="function"?e.error(o):e.error;this.create({id:r,type:"error",message:a})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),e.finally?.()}),r};custom=(t,e)=>{const r=e?.id||E++;return this.create({component:t,id:r,...e}),r};removeHeight=t=>{this.heights=this.heights.filter(e=>e.toastId!==t)};setHeight=t=>{const e=this.#s(t.toastId);if(e===null){this.heights.push(t);return}this.heights[e]=t};reset=()=>{this.toasts=[],this.heights=[]}}function A(s){return s&&typeof s=="object"&&"status"in s?`HTTP error! Status: ${s.status}`:`Error! ${s}`}const c=new _;function x(s,t){return c.create({message:s,...t})}class V{#t=y(()=>c.toasts.filter(t=>!t.dismiss));get toasts(){return u(this.#t)}}const F=x,b=Object.assign(F,{success:c.success,info:c.info,warning:c.warning,error:c.error,custom:c.custom,message:c.message,promise:c.promise,dismiss:c.dismiss,loading:c.loading,getActiveToasts:()=>c.toasts.filter(s=>!s.dismiss)}),J="/api";async function m(s,t,e,r){const n=j.token,i={"Content-Type":"application/json"};n&&(i.Authorization=`Bearer ${n}`);const o={method:s,headers:i};e&&(o.body=JSON.stringify(e));let a=`${J}${t}`;if(r?.projectId&&!r?.skipProjectId){const d=t.includes("?")?"&":"?";a=`${a}${d}projectId=${r.projectId}`}const l=await fetch(a,o);if(l.status===401)throw j.logout(),window.location.href="/login",new Error("Unauthorized");if(l.status===403){const d=window.location.pathname;throw d==="/"||d===""?(j.logout(),window.location.href="/login"):(b.warning("You don't have permission to access that feature",{position:"top-center"}),window.location.href="/"),new Error("Forbidden")}if(l.status===422){const d=await l.json().catch(()=>({})),T=new Error(d.error||"Validation failed");throw T.status=422,T}if(!l.ok){const d=new Error(`API Error: ${l.statusText}`);throw d.status=l.status,d}return l.json()}const p={get:(s,t)=>m("GET",s,void 0,t),post:(s,t,e)=>m("POST",s,t,e),put:(s,t,e)=>m("PUT",s,t,e),delete:(s,t,e)=>m("DELETE",s,e,t)},H=["react","svelte","vuejs","jquery","react-native","flutter","android"],M=["react","svelte","vuejs","nextjs","nestjs","express","remix","jquery","react-native"],U={gin:"Gin",fiber:"Fiber",chi:"Chi",fasthttp:"FastHTTP",stdlib:"Standard Library",custom:"Custom",react:"React",svelte:"Svelte",vuejs:"Vue.js",nextjs:"Next.js",nestjs:"NestJS",express:"Express",remix:"Remix",jquery:"jQuery","react-native":"React Native",hono:"Hono",cloudflare:"Cloudflare",opentelemetry:"OpenTelemetry",symfony:"Symfony",laravel:"Laravel",flutter:"Flutter",android:"Android"};function W(s){return U[s]??s}function Z(s){return H.includes(s)}function Y(s){return M.includes(s)}function Q(s){return s==="opentelemetry"||s==="hono"}function X(s){return s==="cloudflare"}class D{#t=g(f(JSON.parse(localStorage.getItem("PROJECTS_CACHE")||"[]")));get projects(){return u(this.#t)}set projects(t){h(this.#t,t,!0)}#e=g(f(localStorage.getItem("CURRENT_PROJECT_ID")));get currentProjectId(){return u(this.#e)}set currentProjectId(t){h(this.#e,t,!0)}#s=g(!1);get loading(){return u(this.#s)}set loading(t){h(this.#s,t,!0)}#r=g(null);get error(){return u(this.#r)}set error(t){h(this.#r,t,!0)}#o=y(()=>this.projects.find(t=>t.id===this.currentProjectId)||this.projects[0]||null);get currentProject(){return u(this.#o)}set currentProject(t){h(this.#o,t)}#n=y(()=>{const t=this.currentProject?.organizationId;return t?j.canManageOrganization(t):!1});get canManageCurrentProject(){return u(this.#n)}set canManageCurrentProject(t){h(this.#n,t)}constructor(){O(()=>{I(()=>{this.currentProjectId?localStorage.setItem("CURRENT_PROJECT_ID",this.currentProjectId):localStorage.removeItem("CURRENT_PROJECT_ID")})})}setProjects(t){this.projects=t,(!this.currentProjectId||!this.projects.find(e=>e.id===this.currentProjectId))&&this.projects.length>0&&(this.currentProjectId=this.projects[0].id),localStorage.setItem("PROJECTS_CACHE",JSON.stringify(this.projects))}async loadProjects(){this.loading=!0,this.error=null;try{const t=await p.get("/projects");this.setProjects(t)}catch(t){const e=t instanceof Error?t.message:"Failed to load projects";this.error=e;const r=localStorage.getItem("PROJECTS_CACHE");r&&(this.projects=JSON.parse(r))}finally{this.loading=!1}}async createProject(t,e="gin"){const r=await p.post("/projects",{name:t,framework:e},{projectId:this.currentProjectId??void 0});return await this.loadProjects(),r}async updateProject(t,e,r){const n=await p.put("/projects",{name:e,framework:r},{projectId:t});return await this.loadProjects(),n}async deleteProject(t,e){await p.delete("/projects",{projectId:t},{name:e}),await this.loadProjects()}async generateSourceMapToken(){const t=await p.post("/projects/source-map-token",{},{projectId:this.currentProjectId??void 0});return await this.loadProjects(),t.sourceMapToken}selectProject(t){this.currentProjectId=t}initFromCache(){const t=localStorage.getItem("PROJECTS_CACHE");t&&(this.projects=JSON.parse(t))}}const tt=new D;export{U as F,V as S,p as a,j as b,G as c,Q as d,X as e,Y as f,W as g,c as h,Z as i,q as j,B as k,L as l,tt as p,b as t};
diff --git a/backend/static/frontend/_app/immutable/chunks/qCQ2nSvO.js.map b/backend/static/frontend/_app/immutable/chunks/qCQ2nSvO.js.map
new file mode 100644
index 00000000..d0962552
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/chunks/qCQ2nSvO.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"qCQ2nSvO.js","sources":["../../../../../../src/lib/utils/back-navigation.ts","../../../../../../src/lib/state/auth.svelte.ts","../../../../../../node_modules/svelte-sonner/dist/internal/helpers.js","../../../../../../node_modules/svelte-sonner/dist/toast-state.svelte.js","../../../../../../src/lib/api.ts","../../../../../../src/lib/state/projects.svelte.ts"],"sourcesContent":["import { goto } from '$app/navigation';\n\nconst NAV_DEPTH_KEY = 'traceway_nav_depth';\n\nexport interface SmartBackOptions {\n\tfallbackPath: string;\n}\n\n/**\n * Get current navigation depth\n */\nfunction getNavDepth(): number {\n\ttry {\n\t\treturn parseInt(sessionStorage.getItem(NAV_DEPTH_KEY) || '0', 10);\n\t} catch {\n\t\treturn 0;\n\t}\n}\n\n/**\n * Set navigation depth\n */\nfunction setNavDepth(depth: number): void {\n\ttry {\n\t\tsessionStorage.setItem(NAV_DEPTH_KEY, String(depth));\n\t} catch {\n\t\t// Ignore storage errors\n\t}\n}\n\n/**\n * Called when navigating to a new page (pathname changed)\n */\nexport function incrementNavDepth(): void {\n\tsetNavDepth(getNavDepth() + 1);\n}\n\n/**\n * Called on popstate (browser back/forward)\n */\nexport function decrementNavDepth(): void {\n\tsetNavDepth(Math.max(0, getNavDepth() - 1));\n}\n\n/**\n * Clear navigation depth (call on logout)\n */\nexport function clearNavDepth(): void {\n\ttry {\n\t\tsessionStorage.removeItem(NAV_DEPTH_KEY);\n\t} catch {\n\t\t// Ignore storage errors\n\t}\n}\n\n/**\n * Check if there's internal history to go back to\n */\nexport function hasInternalHistory(): boolean {\n\treturn getNavDepth() > 0;\n}\n\n/**\n * Create a smart back button handler that:\n * 1. Uses history.back() if there's valid internal navigation history\n * 2. Falls back to the specified path if no history (direct URL access, refresh with no prior nav)\n */\nexport function createSmartBackHandler(options: SmartBackOptions): (e: MouseEvent) => void {\n\tconst { fallbackPath } = options;\n\n\treturn (event: MouseEvent) => {\n\t\t// Ctrl/Cmd+Click: open fallback in new tab\n\t\tif (event.ctrlKey || event.metaKey) {\n\t\t\twindow.open(fallbackPath, '_blank');\n\t\t\treturn;\n\t\t}\n\n\t\tif (hasInternalHistory()) {\n\t\t\thistory.back();\n\t\t} else {\n\t\t\tgoto(fallbackPath);\n\t\t}\n\t};\n}\n","import { clearNavDepth } from '$lib/utils/back-navigation';\n\nexport interface UserOrganizationResponse {\n id: number;\n name: string;\n role: string;\n timezone: string;\n}\n\nclass AuthState {\n token = $state<string | null>(localStorage.getItem('AUTH_TOKEN'));\n organizations = $state<UserOrganizationResponse[]>(\n JSON.parse(localStorage.getItem('USER_ORGANIZATIONS') || '[]')\n );\n\n isAuthenticated = $derived(!!this.token);\n\n constructor() {\n $effect.root(() => {\n $effect(() => {\n if (this.token) {\n localStorage.setItem('AUTH_TOKEN', this.token);\n } else {\n localStorage.removeItem('AUTH_TOKEN');\n }\n });\n $effect(() => {\n if (this.organizations.length > 0) {\n localStorage.setItem('USER_ORGANIZATIONS', JSON.stringify(this.organizations));\n } else {\n localStorage.removeItem('USER_ORGANIZATIONS');\n }\n });\n });\n }\n\n setToken(token: string) {\n this.token = token;\n }\n\n setOrganizations(organizations: UserOrganizationResponse[]) {\n this.organizations = organizations;\n }\n\n getRoleForOrganization(organizationId: number): string | null {\n const organization = this.organizations.find(o => o.id === organizationId);\n return organization?.role || null;\n }\n\n canManageOrganization(organizationId: number): boolean {\n const role = this.getRoleForOrganization(organizationId);\n return role === 'owner' || role === 'admin';\n }\n\n getTimezoneForOrganization(organizationId: number): string | null {\n const organization = this.organizations.find(o => o.id === organizationId);\n return organization?.timezone || null;\n }\n\n updateOrganizationTimezone(organizationId: number, timezone: string) {\n const organization = this.organizations.find(o => o.id === organizationId);\n if (organization) {\n organization.timezone = timezone;\n this.organizations = [...this.organizations];\n }\n }\n\n logout() {\n this.token = null;\n this.organizations = [];\n clearNavDepth();\n }\n}\n\nexport const authState = new AuthState();\n","export function cn(...classes) {\n return classes.filter(Boolean).join(' ');\n}\nexport const isBrowser = typeof document !== 'undefined';\n","import { isBrowser } from './internal/helpers.js';\nimport { sonnerContext } from './internal/ctx.js';\nimport { untrack } from 'svelte';\nlet toastsCounter = 0;\nclass ToastState {\n toasts = $state([]);\n heights = $state([]);\n #findToastIdx = (id) => {\n const idx = this.toasts.findIndex((toast) => toast.id === id);\n if (idx === -1)\n return null;\n return idx;\n };\n addToast = (data) => {\n if (!isBrowser)\n return;\n this.toasts.unshift(data);\n };\n updateToast = ({ id, data, type, message }) => {\n const toastIdx = this.toasts.findIndex((toast) => toast.id === id);\n const toastToUpdate = this.toasts[toastIdx];\n this.toasts[toastIdx] = {\n ...toastToUpdate,\n ...data,\n id,\n title: message,\n type,\n updated: true\n };\n };\n create = (data) => {\n const { message, ...rest } = data;\n const id = typeof data?.id === 'number' || (data.id && data.id?.length > 0)\n ? data.id\n : toastsCounter++;\n const dismissable = data.dismissable === undefined ? true : data.dismissable;\n const type = data.type === undefined ? 'default' : data.type;\n untrack(() => {\n const alreadyExists = this.toasts.find((toast) => toast.id === id);\n if (alreadyExists) {\n this.updateToast({ id, data, type, message, dismissable });\n }\n else {\n this.addToast({ ...rest, id, title: message, dismissable, type });\n }\n });\n return id;\n };\n dismiss = (id) => {\n untrack(() => {\n if (id === undefined) {\n // we're dismissing all the toasts\n this.toasts = this.toasts.map((toast) => ({ ...toast, dismiss: true }));\n return;\n }\n // we're dismissing a specific toast\n const toastIdx = this.toasts.findIndex((toast) => toast.id === id);\n if (this.toasts[toastIdx]) {\n this.toasts[toastIdx] = { ...this.toasts[toastIdx], dismiss: true };\n }\n });\n return id;\n };\n remove = (id) => {\n if (id === undefined) {\n // remove all toasts\n this.toasts = [];\n return;\n }\n // remove a specific toast\n const toastIdx = this.#findToastIdx(id);\n if (toastIdx === null)\n return;\n this.toasts.splice(toastIdx, 1);\n return id;\n };\n message = (message, data) => {\n return this.create({ ...data, type: 'default', message });\n };\n error = (message, data) => {\n return this.create({ ...data, type: 'error', message });\n };\n success = (message, data) => {\n return this.create({ ...data, type: 'success', message });\n };\n info = (message, data) => {\n return this.create({ ...data, type: 'info', message });\n };\n warning = (message, data) => {\n return this.create({ ...data, type: 'warning', message });\n };\n loading = (message, data) => {\n return this.create({ ...data, type: 'loading', message });\n };\n promise = (promise, data) => {\n if (!data) {\n // Nothing to show\n return;\n }\n let id = undefined;\n if (data.loading !== undefined) {\n id = this.create({\n ...data,\n promise,\n type: 'loading',\n message: typeof data.loading === 'string' ? data.loading : data.loading()\n });\n }\n const p = promise instanceof Promise ? promise : promise();\n let shouldDismiss = id !== undefined;\n p.then((response) => {\n if (typeof response === 'object' &&\n response &&\n 'ok' in response &&\n typeof response.ok === 'boolean' &&\n !response.ok) {\n shouldDismiss = false;\n const message = constructPromiseErrorMessage(response);\n this.create({ id, type: 'error', message });\n }\n else if (data.success !== undefined) {\n shouldDismiss = false;\n const message = typeof data.success === 'function' ? data.success(response) : data.success;\n this.create({ id, type: 'success', message });\n }\n })\n .catch((error) => {\n if (data.error !== undefined) {\n shouldDismiss = false;\n const message = typeof data.error === 'function' ? data.error(error) : data.error;\n this.create({ id, type: 'error', message });\n }\n })\n .finally(() => {\n if (shouldDismiss) {\n // Toast is still in load state (and will be indefinitely — dismiss it)\n this.dismiss(id);\n id = undefined;\n }\n data.finally?.();\n });\n return id;\n };\n custom = (component, data) => {\n const id = data?.id || toastsCounter++;\n this.create({ component, id, ...data });\n return id;\n };\n removeHeight = (id) => {\n this.heights = this.heights.filter((height) => height.toastId !== id);\n };\n setHeight = (data) => {\n const toastIdx = this.#findToastIdx(data.toastId);\n if (toastIdx === null) {\n this.heights.push(data);\n return;\n }\n this.heights[toastIdx] = data;\n };\n reset = () => {\n this.toasts = [];\n this.heights = [];\n };\n}\nfunction constructPromiseErrorMessage(response) {\n if (response && typeof response === 'object' && 'status' in response) {\n return `HTTP error! Status: ${response.status}`;\n }\n return `Error! ${response}`;\n}\nexport const toastState = new ToastState();\nfunction toastFunction(message, data) {\n return toastState.create({\n message,\n ...data\n });\n}\nexport class SonnerState {\n /**\n * A derived state of the toasts that are not dismissed.\n */\n #activeToasts = $derived(toastState.toasts.filter((toast) => !toast.dismiss));\n get toasts() {\n return this.#activeToasts;\n }\n}\n/**\n * A hook to get a reference to the sonner toast state.\n *\n * Returns a class instance a getter for the `toasts` array.\n *\n * @example\n * ```svelte\n * <script lang=\"ts\">\n * import { useSonner } from 'svelte-sonner';\n *\n * const sonner = useSonner();\n *\n * // Reactive access to the toasts\n * $effect(() => console.log(sonner.toasts))\n * </script>\n * ```\n */\nexport function useSonner() {\n return sonnerContext.get();\n}\nconst basicToast = toastFunction;\nexport const toast = Object.assign(basicToast, {\n success: toastState.success,\n info: toastState.info,\n warning: toastState.warning,\n error: toastState.error,\n custom: toastState.custom,\n message: toastState.message,\n promise: toastState.promise,\n dismiss: toastState.dismiss,\n loading: toastState.loading,\n getActiveToasts: () => {\n return toastState.toasts.filter((toast) => !toast.dismiss);\n }\n});\n","import { authState } from './state/auth.svelte';\nimport { toast } from 'svelte-sonner';\n\nconst BASE_URL = '/api';\n\ninterface RequestOptions {\n projectId?: string;\n skipProjectId?: boolean;\n}\n\nasync function request(method: string, endpoint: string, data?: unknown, options?: RequestOptions) {\n const currentToken = authState.token;\n const headers: Record<string, string> = {\n 'Content-Type': 'application/json'\n };\n\n if (currentToken) {\n headers['Authorization'] = `Bearer ${currentToken}`;\n }\n\n const config: RequestInit = {\n method,\n headers,\n };\n\n if (data) {\n config.body = JSON.stringify(data);\n }\n\n // Add projectId as query parameter if provided\n let url = `${BASE_URL}${endpoint}`;\n if (options?.projectId && !options?.skipProjectId) {\n const separator = endpoint.includes('?') ? '&' : '?';\n url = `${url}${separator}projectId=${options.projectId}`;\n }\n\n const response = await fetch(url, config);\n\n if (response.status === 401) {\n authState.logout();\n window.location.href = '/login';\n throw new Error('Unauthorized');\n }\n\n if (response.status === 403) {\n const currentPath = window.location.pathname;\n if (currentPath === '/' || currentPath === '') {\n authState.logout();\n window.location.href = '/login';\n } else {\n toast.warning(\"You don't have permission to access that feature\", { position: 'top-center' });\n window.location.href = '/';\n }\n throw new Error('Forbidden');\n }\n\n if (response.status === 422) {\n const body = await response.json().catch(() => ({}));\n const error = new Error(body.error || 'Validation failed') as Error & { status: number };\n error.status = 422;\n throw error;\n }\n\n if (!response.ok) {\n const error = new Error(`API Error: ${response.statusText}`) as Error & { status: number };\n error.status = response.status;\n throw error;\n }\n\n return response.json();\n}\n\nexport const api = {\n get: (endpoint: string, options?: RequestOptions) => request('GET', endpoint, undefined, options),\n post: (endpoint: string, data: unknown, options?: RequestOptions) => request('POST', endpoint, data, options),\n put: (endpoint: string, data: unknown, options?: RequestOptions) => request('PUT', endpoint, data, options),\n delete: (endpoint: string, options?: RequestOptions, data?: unknown) => request('DELETE', endpoint, data, options)\n};\n","import { api } from '$lib/api';\nimport { authState } from './auth.svelte';\n\nexport type Framework = 'gin' | 'fiber' | 'chi' | 'fasthttp' | 'stdlib' | 'custom' | 'react' | 'svelte' | 'vuejs' | 'nextjs' | 'nestjs' | 'express' | 'remix' | 'jquery' | 'react-native' | 'hono' | 'cloudflare' | 'opentelemetry' | 'symfony' | 'laravel' | 'flutter' | 'android';\n\nexport const FRONTEND_FRAMEWORKS: Framework[] = ['react', 'svelte', 'vuejs', 'jquery', 'react-native', 'flutter', 'android'];\nexport const JS_FRAMEWORKS: Framework[] = ['react', 'svelte', 'vuejs', 'nextjs', 'nestjs', 'express', 'remix', 'jquery', 'react-native'];\n\nexport const FRAMEWORK_LABELS: Record<Framework, string> = {\n\tgin: 'Gin',\n\tfiber: 'Fiber',\n\tchi: 'Chi',\n\tfasthttp: 'FastHTTP',\n\tstdlib: 'Standard Library',\n\tcustom: 'Custom',\n\treact: 'React',\n\tsvelte: 'Svelte',\n\tvuejs: 'Vue.js',\n\tnextjs: 'Next.js',\n\tnestjs: 'NestJS',\n\texpress: 'Express',\n\tremix: 'Remix',\n\tjquery: 'jQuery',\n\t'react-native': 'React Native',\n\thono: 'Hono',\n\tcloudflare: 'Cloudflare',\n\topentelemetry: 'OpenTelemetry',\n\tsymfony: 'Symfony',\n\tlaravel: 'Laravel',\n\tflutter: 'Flutter',\n\tandroid: 'Android',\n};\n\nexport const MOBILE_FRAMEWORKS: Framework[] = ['flutter', 'android'];\n\nexport function getFrameworkLabel(fw: Framework): string {\n\treturn FRAMEWORK_LABELS[fw] ?? fw;\n}\n\nexport function isMobileFramework(fw: Framework): boolean {\n\treturn MOBILE_FRAMEWORKS.includes(fw);\n}\n\nexport function isFrontendFramework(fw: Framework): boolean {\n\treturn FRONTEND_FRAMEWORKS.includes(fw);\n}\n\nexport function isJsFramework(fw: Framework): boolean {\n\treturn JS_FRAMEWORKS.includes(fw);\n}\n\nexport function isOtelFramework(fw: Framework): boolean {\n\treturn fw === 'opentelemetry' || fw === 'hono';\n}\n\nexport function isCloudflareFramework(fw: Framework): boolean {\n\treturn fw === 'cloudflare';\n}\n\nexport interface Project {\n id: string;\n name: string;\n token: string;\n framework: Framework;\n organizationId: number | null;\n createdAt: string;\n sourceMapToken: string | null;\n backendUrl: string;\n}\n\nexport interface ProjectWithToken extends Project {\n token: string;\n}\n\nclass ProjectsState {\n projects = $state<Project[]>(\n JSON.parse(localStorage.getItem('PROJECTS_CACHE') || '[]')\n );\n currentProjectId = $state<string | null>(localStorage.getItem('CURRENT_PROJECT_ID'));\n loading = $state(false);\n error = $state<string | null>(null);\n\n currentProject = $derived(\n this.projects.find(p => p.id === this.currentProjectId) || this.projects[0] || null\n );\n\n canManageCurrentProject = $derived.by(() => {\n const organizationId = this.currentProject?.organizationId;\n if (!organizationId) return false;\n return authState.canManageOrganization(organizationId);\n });\n\n constructor() {\n $effect.root(() => {\n $effect(() => {\n if (this.currentProjectId) {\n localStorage.setItem('CURRENT_PROJECT_ID', this.currentProjectId);\n } else {\n localStorage.removeItem('CURRENT_PROJECT_ID');\n }\n });\n });\n }\n\n setProjects(projects: Project[]) {\n this.projects = projects;\n\n // If no current project selected or current project not in list, select first one\n if (!this.currentProjectId || !this.projects.find(p => p.id === this.currentProjectId)) {\n if (this.projects.length > 0) {\n this.currentProjectId = this.projects[0].id;\n }\n }\n\n // Cache in localStorage\n localStorage.setItem('PROJECTS_CACHE', JSON.stringify(this.projects));\n }\n\n async loadProjects() {\n this.loading = true;\n this.error = null;\n\n try {\n const response = await api.get('/projects');\n this.setProjects(response)\n } catch (e: unknown) {\n const errorMessage = e instanceof Error ? e.message : 'Failed to load projects';\n this.error = errorMessage;\n\n // Try to load from cache\n const cached = localStorage.getItem('PROJECTS_CACHE');\n if (cached) {\n this.projects = JSON.parse(cached);\n }\n } finally {\n this.loading = false;\n }\n }\n\n async createProject(name: string, framework: Framework = 'gin'): Promise<ProjectWithToken> {\n const response = await api.post('/projects', { name, framework }, {\n projectId: this.currentProjectId ?? undefined\n });\n\n // Reload projects to refresh cache\n await this.loadProjects();\n\n return response;\n }\n\n async updateProject(id: string, name: string, framework: Framework): Promise<Project> {\n const response = await api.put('/projects', { name, framework }, {\n projectId: id\n });\n await this.loadProjects();\n return response;\n }\n\n async deleteProject(id: string, name: string): Promise<void> {\n await api.delete('/projects', { projectId: id }, { name });\n await this.loadProjects();\n }\n\n async generateSourceMapToken(): Promise<string> {\n const resp = await api.post('/projects/source-map-token', {}, {\n projectId: this.currentProjectId ?? undefined\n });\n await this.loadProjects();\n return resp.sourceMapToken;\n }\n\n selectProject(projectId: string) {\n this.currentProjectId = projectId;\n }\n\n initFromCache() {\n const cached = localStorage.getItem('PROJECTS_CACHE');\n if (cached) {\n this.projects = JSON.parse(cached);\n }\n }\n}\n\nexport const projectsState = new ProjectsState();\n"],"names":["NAV_DEPTH_KEY","getNavDepth","setNavDepth","depth","incrementNavDepth","decrementNavDepth","clearNavDepth","hasInternalHistory","createSmartBackHandler","options","fallbackPath","event","goto","AuthState","#token","$.state","$.proxy","value","#isAuthenticated","$.derived","$.user_effect","token","organizations","organizationId","o","role","timezone","organization","authState","cn","classes","isBrowser","toastsCounter","ToastState","id","idx","toast","data","type","message","toastIdx","toastToUpdate","rest","dismissable","untrack","#findToastIdx","promise","p","shouldDismiss","response","constructPromiseErrorMessage","error","component","height","toastState","toastFunction","SonnerState","$.get","basicToast","BASE_URL","request","method","endpoint","currentToken","headers","config","url","separator","currentPath","body","api","FRONTEND_FRAMEWORKS","JS_FRAMEWORKS","FRAMEWORK_LABELS","getFrameworkLabel","fw","isFrontendFramework","isJsFramework","isOtelFramework","isCloudflareFramework","ProjectsState","#currentProjectId","#loading","#error","projects","e","errorMessage","cached","name","framework","resp","projectId","projectsState"],"mappings":"sHAEA,MAAMA,EAAgB,qBAStB,SAASC,GAAsB,CAC9B,GAAI,CACH,OAAO,SAAS,eAAe,QAAQD,CAAa,GAAK,IAAK,EAAE,CACjE,MAAQ,CACP,MAAO,EACR,CACD,CAKA,SAASE,EAAYC,EAAqB,CACzC,GAAI,CACH,eAAe,QAAQH,EAAe,OAAOG,CAAK,CAAC,CACpD,MAAQ,CAER,CACD,CAKO,SAASC,GAA0B,CACzCF,EAAYD,EAAA,EAAgB,CAAC,CAC9B,CAKO,SAASI,GAA0B,CACzCH,EAAY,KAAK,IAAI,EAAGD,EAAA,EAAgB,CAAC,CAAC,CAC3C,CAKO,SAASK,GAAsB,CACrC,GAAI,CACH,eAAe,WAAWN,CAAa,CACxC,MAAQ,CAER,CACD,CAKO,SAASO,GAA8B,CAC7C,OAAON,IAAgB,CACxB,CAOO,SAASO,EAAuBC,EAAoD,CAC1F,KAAM,CAAE,aAAAC,GAAiBD,EAEzB,OAAQE,GAAsB,CAE7B,GAAIA,EAAM,SAAWA,EAAM,QAAS,CACnC,OAAO,KAAKD,EAAc,QAAQ,EAClC,MACD,CAEIH,IACH,QAAQ,KAAA,EAERK,EAAKF,CAAY,CAEnB,CACD,CC1EM,MAAAG,CAAU,CACJC,GAAAC,EAAAC,EAAsB,aAAa,QAAQ,YAAY,CAAA,CAAA,MAA/D,OAAA,uBAAA,MAAAC,EAAA,oBACgBF,EAAAC,EACZ,KAAK,MAAM,aAAa,QAAQ,oBAAoB,GAAK,IAAI,CAAA,CAAA,MADjE,eAAA,uBAAA,cAAAC,EAAA,iBAI6BC,GAAAC,EAAA,IAAA,CAAA,CAAA,KAAK,KAAK,MAAvC,iBAAA,uBAAA,gBAAAF,EAAA,cAEA,aAAc,OACS,CACfG,MAAc,CACN,KAAK,MACL,aAAa,QAAQ,aAAc,KAAK,KAAK,EAE7C,aAAa,WAAW,YA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KAAK,QAAU,GACf,KAAK,MAAQ,QAET,CACM,MAAAE,EAAA,MAAiBqB,EAAI,IAAI,WAAW,EAC1C,KAAK,YAAYrB,CAAQ,CAC7B,OAASoC,EAAY,OACXC,EAAeD,aAAa,MAAQA,EAAE,QAAU,0BACtD,KAAK,MAAQC,EAGP,MAAAC,EAAS,aAAa,QAAQ,gBAAgB,EAChDA,IACA,KAAK,SAAW,KAAK,MAAMA,CAAM,EAEzC,QAAA,CACI,KAAK,QAAU,EACnB,CACJ,CAEM,MAAA,cAAcC,EAAcC,EAAuB,MAAkC,CACjF,MAAAxC,QAAiBqB,EAAI,KAAK,aAAe,KAAAkB,EAAM,UAAAC,IACjD,UAAW,KAAK,wBAAoB,CAAA,EAIlC,aAAA,KAAK,aAAA,EAEJxC,CACX,CAEM,MAAA,cAAcf,EAAYsD,EAAcC,EAAwC,CAC5E,MAAAxC,EAAA,MAAiBqB,EAAI,IAAI,aAAe,KAAAkB,EAAM,UAAAC,IAChD,UAAWvD,CAAA,CAAA,EAET,aAAA,KAAK,aAAA,EACJe,CACX,CAEM,MAAA,cAAcf,EAAYsD,EAA6B,OACnDlB,EAAI,OAAO,aAAe,UAAWpC,CAAA,EAAA,CAAQ,KAAAsD,EAAA,EAC7C,MAAA,KAAK,aAAA,CACf,CAEM,MAAA,wBAA0C,CACtC,MAAAE,QAAapB,EAAI,KAAK,6BAAA,GAAA,CACxB,UAAW,KAAK,wBAAoB,CAAA,EAElC,aAAA,KAAK,aAAA,EACJoB,EAAK,cAChB,CAEA,cAAcC,EAAmB,CAC7B,KAAK,iBAAmBA,CAC5B,CAEA,eAAgB,CACN,MAAAJ,EAAS,aAAa,QAAQ,gBAAgB,EAChDA,IACA,KAAK,SAAW,KAAK,MAAMA,CAAM,EAEzC,CACJ,CAEa,MAAAK,OAAoBZ","x_google_ignoreList":[2,3]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/DCLDG_bE.js b/backend/static/frontend/_app/immutable/chunks/sjIDPxFh.js
similarity index 89%
rename from backend/static/frontend/_app/immutable/chunks/DCLDG_bE.js
rename to backend/static/frontend/_app/immutable/chunks/sjIDPxFh.js
index d1b49a4f..75a65ffe 100644
--- a/backend/static/frontend/_app/immutable/chunks/DCLDG_bE.js
+++ b/backend/static/frontend/_app/immutable/chunks/sjIDPxFh.js
@@ -1 +1 @@
-import{p as c,i as x,r as y}from"./DMODTt3n.js";import{K as G,p as H,d as n,c as l,b as i,a as k,m as f,g as v,u as I,f as K,e as W,o as j,r as q}from"./B2WdN-7r.js";import{b as w}from"./DH0tcjsQ.js";import{S as B,a as C}from"./CYYjDwkn.js";import{c as z,b as m,m as A}from"./DWAABZDo.js";var D=K("<div><!></div>");function O(g,r){const u=G();H(r,!0);let _=c(r,"id",19,()=>z(u)),s=c(r,"ref",15,null),p=y(r,["$$slots","$$events","$$legacy","id","ref","children","child"]);const h=B.create({id:m(()=>_()),ref:m(()=>s(),e=>s(e))}),o=I(()=>A(p,h.props));var d=n(),S=l(d);{var b=e=>{var a=n(),t=l(a);f(t,()=>r.child,()=>({props:v(o)})),i(e,a)},P=e=>{var a=D();w(a,()=>({...v(o)}));var t=W(a);f(t,()=>r.children??j),q(a),i(e,a)};x(S,e=>{r.child?e(b):e(P,!1)})}i(g,d),k()}var E=K("<div><!></div>");function Q(g,r){const u=G();H(r,!0);let _=c(r,"id",19,()=>z(u)),s=c(r,"ref",15,null),p=y(r,["$$slots","$$events","$$legacy","id","ref","child","children"]);const h=C.create({id:m(()=>_()),ref:m(()=>s(),e=>s(e))}),o=I(()=>A(p,h.props));var d=n(),S=l(d);{var b=e=>{var a=n(),t=l(a);f(t,()=>r.child,()=>({props:v(o)})),i(e,a)},P=e=>{var a=E();w(a,()=>({...v(o)}));var t=W(a);f(t,()=>r.children??j),q(a),i(e,a)};x(S,e=>{r.child?e(b):e(P,!1)})}i(g,d),k()}export{O as S,Q as a};
+import{p as c,i as x,r as y}from"./DMODTt3n.js";import{K as G,p as H,d as n,c as l,b as i,a as k,m as f,g as v,u as I,f as K,e as W,o as j,r as q}from"./B2WdN-7r.js";import{b as w}from"./DH0tcjsQ.js";import{S as B,a as C}from"./BT31m2vG.js";import{c as z,b as m,m as A}from"./BDd6-VcB.js";var D=K("<div><!></div>");function O(g,r){const u=G();H(r,!0);let _=c(r,"id",19,()=>z(u)),s=c(r,"ref",15,null),p=y(r,["$$slots","$$events","$$legacy","id","ref","children","child"]);const h=B.create({id:m(()=>_()),ref:m(()=>s(),e=>s(e))}),o=I(()=>A(p,h.props));var d=n(),S=l(d);{var b=e=>{var a=n(),t=l(a);f(t,()=>r.child,()=>({props:v(o)})),i(e,a)},P=e=>{var a=D();w(a,()=>({...v(o)}));var t=W(a);f(t,()=>r.children??j),q(a),i(e,a)};x(S,e=>{r.child?e(b):e(P,!1)})}i(g,d),k()}var E=K("<div><!></div>");function Q(g,r){const u=G();H(r,!0);let _=c(r,"id",19,()=>z(u)),s=c(r,"ref",15,null),p=y(r,["$$slots","$$events","$$legacy","id","ref","child","children"]);const h=C.create({id:m(()=>_()),ref:m(()=>s(),e=>s(e))}),o=I(()=>A(p,h.props));var d=n(),S=l(d);{var b=e=>{var a=n(),t=l(a);f(t,()=>r.child,()=>({props:v(o)})),i(e,a)},P=e=>{var a=E();w(a,()=>({...v(o)}));var t=W(a);f(t,()=>r.children??j),q(a),i(e,a)};x(S,e=>{r.child?e(b):e(P,!1)})}i(g,d),k()}export{O as S,Q as a};
diff --git a/backend/static/frontend/_app/immutable/chunks/DCLDG_bE.js.map b/backend/static/frontend/_app/immutable/chunks/sjIDPxFh.js.map
similarity index 96%
rename from backend/static/frontend/_app/immutable/chunks/DCLDG_bE.js.map
rename to backend/static/frontend/_app/immutable/chunks/sjIDPxFh.js.map
index c25e0f28..f1762a7e 100644
--- a/backend/static/frontend/_app/immutable/chunks/DCLDG_bE.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/sjIDPxFh.js.map
@@ -1 +1 @@
-{"version":3,"file":"DCLDG_bE.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/select/components/select-group.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-group-heading.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { SelectGroupState } from \"../select.svelte.js\";\n\timport type { SelectGroupProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchildren,\n\t\tchild,\n\t\t...restProps\n\t}: SelectGroupProps = $props();\n\n\tconst groupState = SelectGroupState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, groupState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { SelectGroupHeadingProps } from \"../types.js\";\n\timport { SelectGroupHeadingState } from \"../select.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tchildren,\n\t\t...restProps\n\t}: SelectGroupHeadingProps = $props();\n\n\tconst groupHeadingState = SelectGroupHeadingState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, groupHeadingState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n"],"names":["uid","$.props_id","id","$.prop","$$props","createId","ref","restProps","$.rest_props","groupState","SelectGroupState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","groupHeadingState","SelectGroupHeadingState"],"mappings":"0UAAA,OAMOA,EAAGC,EAAA,cAGRC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,EAASL,CAAG,CAAA,EACjBM,eAAgB,IAAI,EAGjBC,EAAAC,EAAAJ,EAAA,uEAGEK,EAAaC,EAAiB,OAAM,CACzC,GAAIC,EAAO,IAAOT,GAAE,EACpB,IAAKS,EAAO,IACLL,EAAG,EACRM,GAAON,EAAMM,CAAC,CAAA,IAIXC,QAAuBC,EAAWP,EAAWE,EAAW,KAAK,CAAA,+CAIlDM,EAAAC,EAAA,IAAAZ,EAAA,MAAA,KAAA,CAAA,QAAOS,CAAW,CAAA,EAAA,oBAElCI,EAAGC,EAAA,EAAHC,EAAAF,aAAQJ,CAAW,CAAA,EAAA,UAAnBI,CAAG,2BAAHA,CAAG,MAAHA,CAAG,4CALL,0CCzBA,OAMOjB,EAAGC,EAAA,cAERC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,EAASL,CAAG,CAAA,EACjBM,eAAgB,IAAI,EAGjBC,EAAAC,EAAAJ,EAAA,uEAGEgB,EAAoBC,EAAwB,OAAM,CACvD,GAAIV,EAAO,IAAOT,GAAE,EACpB,IAAKS,EAAO,IACLL,EAAG,EACRM,GAAON,EAAMM,CAAC,CAAA,IAIXC,QAAuBC,EAAWP,EAAWa,EAAkB,KAAK,CAAA,+CAIzDL,EAAAC,EAAA,IAAAZ,EAAA,MAAA,KAAA,CAAA,QAAOS,CAAW,CAAA,EAAA,oBAElCI,EAAGC,EAAA,EAAHC,EAAAF,aAAQJ,CAAW,CAAA,EAAA,UAAnBI,CAAG,2BAAHA,CAAG,MAAHA,CAAG,4CALL","x_google_ignoreList":[0,1]}
\ No newline at end of file
+{"version":3,"file":"sjIDPxFh.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/select/components/select-group.svelte","../../../../../../node_modules/bits-ui/dist/bits/select/components/select-group-heading.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { SelectGroupState } from \"../select.svelte.js\";\n\timport type { SelectGroupProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchildren,\n\t\tchild,\n\t\t...restProps\n\t}: SelectGroupProps = $props();\n\n\tconst groupState = SelectGroupState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, groupState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { SelectGroupHeadingProps } from \"../types.js\";\n\timport { SelectGroupHeadingState } from \"../select.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchild,\n\t\tchildren,\n\t\t...restProps\n\t}: SelectGroupHeadingProps = $props();\n\n\tconst groupHeadingState = SelectGroupHeadingState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, groupHeadingState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n"],"names":["uid","$.props_id","id","$.prop","$$props","createId","ref","restProps","$.rest_props","groupState","SelectGroupState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","div","root_2","$.attribute_effect","groupHeadingState","SelectGroupHeadingState"],"mappings":"0UAAA,OAMOA,EAAGC,EAAA,cAGRC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,EAASL,CAAG,CAAA,EACjBM,eAAgB,IAAI,EAGjBC,EAAAC,EAAAJ,EAAA,uEAGEK,EAAaC,EAAiB,OAAM,CACzC,GAAIC,EAAO,IAAOT,GAAE,EACpB,IAAKS,EAAO,IACLL,EAAG,EACRM,GAAON,EAAMM,CAAC,CAAA,IAIXC,QAAuBC,EAAWP,EAAWE,EAAW,KAAK,CAAA,+CAIlDM,EAAAC,EAAA,IAAAZ,EAAA,MAAA,KAAA,CAAA,QAAOS,CAAW,CAAA,EAAA,oBAElCI,EAAGC,EAAA,EAAHC,EAAAF,aAAQJ,CAAW,CAAA,EAAA,UAAnBI,CAAG,2BAAHA,CAAG,MAAHA,CAAG,4CALL,0CCzBA,OAMOjB,EAAGC,EAAA,cAERC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,EAASL,CAAG,CAAA,EACjBM,eAAgB,IAAI,EAGjBC,EAAAC,EAAAJ,EAAA,uEAGEgB,EAAoBC,EAAwB,OAAM,CACvD,GAAIV,EAAO,IAAOT,GAAE,EACpB,IAAKS,EAAO,IACLL,EAAG,EACRM,GAAON,EAAMM,CAAC,CAAA,IAIXC,QAAuBC,EAAWP,EAAWa,EAAkB,KAAK,CAAA,+CAIzDL,EAAAC,EAAA,IAAAZ,EAAA,MAAA,KAAA,CAAA,QAAOS,CAAW,CAAA,EAAA,oBAElCI,EAAGC,EAAA,EAAHC,EAAAF,aAAQJ,CAAW,CAAA,EAAA,UAAnBI,CAAG,2BAAHA,CAAG,MAAHA,CAAG,4CALL","x_google_ignoreList":[0,1]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/chunks/CagnQ-rd.js b/backend/static/frontend/_app/immutable/chunks/x4zBYqLS.js
similarity index 97%
rename from backend/static/frontend/_app/immutable/chunks/CagnQ-rd.js
rename to backend/static/frontend/_app/immutable/chunks/x4zBYqLS.js
index 4febc718..4be96551 100644
--- a/backend/static/frontend/_app/immutable/chunks/CagnQ-rd.js
+++ b/backend/static/frontend/_app/immutable/chunks/x4zBYqLS.js
@@ -1,2 +1,2 @@
-import{l as K,s as L}from"./DMODTt3n.js";import{d as I,c as n,b as t,p as Q,a as R,f as g,n as b,t as w,k as O,l as k,s as h,g as v,h as S,i as z}from"./B2WdN-7r.js";import{c as l}from"./BAcG0-U_.js";import{A as T,a as U,b as W,c as X,d as Y,e as Z}from"./CtIWnZub.js";import{B as V}from"./C1aqwstW.js";import{I as ee,s as te}from"./CQWqWi6p.js";function ae(m,e){const a=K(e,["children","$$slots","$$events","$$legacy"]);const $=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"}],["path",{d:"M10 12h4"}]];ee(m,L({name:"archive"},()=>a,{get iconNode(){return $},children:(p,A)=>{var u=I(),f=n(u);te(f,e,"default",{},null),t(p,u)},$$slots:{default:!0}}))}var re=g("<!> <!>",1),oe=g("<!> ",1),se=g("<!> <!>",1),ne=g("<!> <!>",1);function ve(m,e){Q(e,!0);let a=S(!1);async function $(){z(a,!0);try{await e.onConfirm(),e.onOpenChange(!1)}catch{}finally{z(a,!1)}}function p(){v(a)||e.onOpenChange(!1)}var A=I(),u=n(A);l(u,()=>Z,(f,j)=>{j(f,{get open(){return e.open},get onOpenChange(){return e.onOpenChange},children:(q,le)=>{var B=I(),D=n(B);l(D,()=>T,(E,F)=>{F(E,{children:(G,ie)=>{var M=ne(),N=n(M);l(N,()=>U,(x,P)=>{P(x,{children:(y,J)=>{var i=re(),d=n(i);l(d,()=>W,(o,c)=>{c(o,{children:(r,_)=>{b();var s=w();O(()=>k(s,`Archive Issue${e.count>1?"s":""}`)),t(r,s)},$$slots:{default:!0}})});var C=h(d,2);l(C,()=>X,(o,c)=>{c(o,{children:(r,_)=>{b();var s=w();O(()=>k(s,`Are you sure you want to archive ${e.count??""} issue${e.count>1?"s":""}?
+import{l as K,s as L}from"./DMODTt3n.js";import{d as I,c as n,b as t,p as Q,a as R,f as g,n as b,t as w,k as O,l as k,s as h,g as v,h as S,i as z}from"./B2WdN-7r.js";import{c as l}from"./BAcG0-U_.js";import{A as T,a as U,b as W,c as X,d as Y,e as Z}from"./CmY6xZEr.js";import{B as V}from"./C1aqwstW.js";import{I as ee,s as te}from"./CQWqWi6p.js";function ae(m,e){const a=K(e,["children","$$slots","$$events","$$legacy"]);const $=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"}],["path",{d:"M10 12h4"}]];ee(m,L({name:"archive"},()=>a,{get iconNode(){return $},children:(p,A)=>{var u=I(),f=n(u);te(f,e,"default",{},null),t(p,u)},$$slots:{default:!0}}))}var re=g("<!> <!>",1),oe=g("<!> ",1),se=g("<!> <!>",1),ne=g("<!> <!>",1);function ve(m,e){Q(e,!0);let a=S(!1);async function $(){z(a,!0);try{await e.onConfirm(),e.onOpenChange(!1)}catch{}finally{z(a,!1)}}function p(){v(a)||e.onOpenChange(!1)}var A=I(),u=n(A);l(u,()=>Z,(f,j)=>{j(f,{get open(){return e.open},get onOpenChange(){return e.onOpenChange},children:(q,le)=>{var B=I(),D=n(B);l(D,()=>T,(E,F)=>{F(E,{children:(G,ie)=>{var M=ne(),N=n(M);l(N,()=>U,(x,P)=>{P(x,{children:(y,J)=>{var i=re(),d=n(i);l(d,()=>W,(o,c)=>{c(o,{children:(r,_)=>{b();var s=w();O(()=>k(s,`Archive Issue${e.count>1?"s":""}`)),t(r,s)},$$slots:{default:!0}})});var C=h(d,2);l(C,()=>X,(o,c)=>{c(o,{children:(r,_)=>{b();var s=w();O(()=>k(s,`Are you sure you want to archive ${e.count??""} issue${e.count>1?"s":""}?
Archived issues will be hidden from the main issues list.`)),t(r,s)},$$slots:{default:!0}})}),t(y,i)},$$slots:{default:!0}})});var H=h(N,2);l(H,()=>Y,(x,P)=>{P(x,{children:(y,J)=>{var i=se(),d=n(i);V(d,{variant:"outline",onclick:p,get disabled(){return v(a)},children:(o,c)=>{b();var r=w("Cancel");t(o,r)},$$slots:{default:!0}});var C=h(d,2);V(C,{variant:"destructiveOutline",onclick:$,get disabled(){return v(a)},children:(o,c)=>{var r=oe(),_=n(r);ae(_,{class:"h-4 w-4"});var s=h(_);O(()=>k(s,` ${v(a)?"Archiving...":"Archive"}`)),t(o,r)},$$slots:{default:!0}}),t(y,i)},$$slots:{default:!0}})}),t(G,M)},$$slots:{default:!0}})}),t(q,B)},$$slots:{default:!0}})}),t(m,A),R()}export{ve as A,ae as a};
diff --git a/backend/static/frontend/_app/immutable/chunks/CagnQ-rd.js.map b/backend/static/frontend/_app/immutable/chunks/x4zBYqLS.js.map
similarity index 98%
rename from backend/static/frontend/_app/immutable/chunks/CagnQ-rd.js.map
rename to backend/static/frontend/_app/immutable/chunks/x4zBYqLS.js.map
index 3cd88d50..508006ad 100644
--- a/backend/static/frontend/_app/immutable/chunks/CagnQ-rd.js.map
+++ b/backend/static/frontend/_app/immutable/chunks/x4zBYqLS.js.map
@@ -1 +1 @@
-{"version":3,"file":"CagnQ-rd.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/archive.svelte","../../../../../../src/lib/components/archive-confirmation-dialog.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"rect\", { \"width\": \"20\", \"height\": \"5\", \"x\": \"2\", \"y\": \"3\", \"rx\": \"1\" }], [\"path\", { \"d\": \"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8\" }], [\"path\", { \"d\": \"M10 12h4\" }]];\n/**\n * @component @name Archive\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iNSIgeD0iMiIgeT0iMyIgcng9IjEiIC8+CiAgPHBhdGggZD0iTTQgOHYxMWEyIDIgMCAwIDAgMiAyaDEyYTIgMiAwIDAgMCAyLTJWOCIgLz4KICA8cGF0aCBkPSJNMTAgMTJoNCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/archive\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"archive\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport * as AlertDialog from \"$lib/components/ui/alert-dialog\";\n\timport { Button } from \"$lib/components/ui/button\";\n\timport { Archive } from \"lucide-svelte\";\n\n\tinterface Props {\n\t\topen: boolean;\n\t\tonOpenChange: (open: boolean) => void;\n\t\tcount: number;\n\t\tonConfirm: () => Promise<void>;\n\t}\n\n\tlet { open, onOpenChange, count, onConfirm }: Props = $props();\n\tlet loading = $state(false);\n\n\tasync function handleConfirm() {\n\t\tloading = true;\n\t\ttry {\n\t\t\tawait onConfirm();\n\t\t\tonOpenChange(false);\n\t\t} catch (e) {\n\t\t\t// Error handling done in parent, just reset loading\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handleCancel() {\n\t\tif (!loading) {\n\t\t\tonOpenChange(false);\n\t\t}\n\t}\n</script>\n\n<AlertDialog.Root {open} {onOpenChange}>\n\t<AlertDialog.Content>\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Archive Issue{count > 1 ? 's' : ''}</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to archive {count} issue{count > 1 ? 's' : ''}?\n\t\t\t\tArchived issues will be hidden from the main issues list.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={handleCancel} disabled={loading}>\n\t\t\t\tCancel\n\t\t\t</Button>\n\t\t\t<Button variant=\"destructiveOutline\" onclick={handleConfirm} disabled={loading}>\n\t\t\t\t<Archive class=\"h-4 w-4\" /> {loading ? 'Archiving...' : 'Archive'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","loading","$.state","handleConfirm","$.set","handleCancel","$.get","AlertDialog_Root","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","AlertDialog_Footer","Button","node_6","node_7","Archive","node_8"],"mappings":"0WAAA,iEA6CMA,EAAQ,EAAK,OAAU,CAAA,MAAS,KAAM,OAAU,IAAK,EAAK,IAAK,EAAK,IAAK,GAAM,GAAG,IAAM,OAAM,CAAI,EAAK,2CAA0C,GAAM,OAAM,CAAI,EAAK,UAAU,CAAA,GAcrLC,GAAIC,EAAAC,EAAA,CAAA,KAAA,SAAA,EAAA,IAAAC,EAAA,uBAAuCJ,8FAF5C,0FCzDA,aAaKK,EAAUC,EAAO,EAAK,EAEX,eAAAC,GAAgB,CAC9BC,EAAAH,EAAU,EAAI,EACV,GAAA,oCAEU,EAAK,CACnB,MAAY,CAEZ,QAAC,CACAG,EAAAH,EAAU,EAAK,CAChB,CACD,CAES,SAAAI,GAAe,CAClBC,EAAAL,CAAO,kBACE,EAAK,CAEpB,oCAGAM,EAAgBT,EAAA,0HACfU,EAAmBV,EAAA,uDAClBW,EAAkBX,EAAA,sDACjBY,EAAiBZ,EAAA,kEAAuB,EAAI,IAAM,EAAE,EAAA,CAAA,kEACpDa,EAAuBb,EAAA,0GACgC,EAAI,IAAM,EAAE;AAAA,kKAIpEc,EAAkBd,EAAA,oCACjBe,EAAMC,EAAA,2BAA4BT,0BAAwBJ,CAAO,sFAGjEY,EAAME,EAAA,sCAAuCZ,0BAAyBF,CAAO,sCAC5Ee,GAAOC,EAAA,CAAA,MAAA,SAAA,CAAA,6BAAqBhB,CAAO,EAAG,eAAiB,SAAS,EAAA,CAAA,8IAhBrE","x_google_ignoreList":[0]}
\ No newline at end of file
+{"version":3,"file":"x4zBYqLS.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/archive.svelte","../../../../../../src/lib/components/archive-confirmation-dialog.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"rect\", { \"width\": \"20\", \"height\": \"5\", \"x\": \"2\", \"y\": \"3\", \"rx\": \"1\" }], [\"path\", { \"d\": \"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8\" }], [\"path\", { \"d\": \"M10 12h4\" }]];\n/**\n * @component @name Archive\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMjAiIGhlaWdodD0iNSIgeD0iMiIgeT0iMyIgcng9IjEiIC8+CiAgPHBhdGggZD0iTTQgOHYxMWEyIDIgMCAwIDAgMiAyaDEyYTIgMiAwIDAgMCAyLTJWOCIgLz4KICA8cGF0aCBkPSJNMTAgMTJoNCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/archive\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"archive\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport * as AlertDialog from \"$lib/components/ui/alert-dialog\";\n\timport { Button } from \"$lib/components/ui/button\";\n\timport { Archive } from \"lucide-svelte\";\n\n\tinterface Props {\n\t\topen: boolean;\n\t\tonOpenChange: (open: boolean) => void;\n\t\tcount: number;\n\t\tonConfirm: () => Promise<void>;\n\t}\n\n\tlet { open, onOpenChange, count, onConfirm }: Props = $props();\n\tlet loading = $state(false);\n\n\tasync function handleConfirm() {\n\t\tloading = true;\n\t\ttry {\n\t\t\tawait onConfirm();\n\t\t\tonOpenChange(false);\n\t\t} catch (e) {\n\t\t\t// Error handling done in parent, just reset loading\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handleCancel() {\n\t\tif (!loading) {\n\t\t\tonOpenChange(false);\n\t\t}\n\t}\n</script>\n\n<AlertDialog.Root {open} {onOpenChange}>\n\t<AlertDialog.Content>\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Archive Issue{count > 1 ? 's' : ''}</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to archive {count} issue{count > 1 ? 's' : ''}?\n\t\t\t\tArchived issues will be hidden from the main issues list.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={handleCancel} disabled={loading}>\n\t\t\t\tCancel\n\t\t\t</Button>\n\t\t\t<Button variant=\"destructiveOutline\" onclick={handleConfirm} disabled={loading}>\n\t\t\t\t<Archive class=\"h-4 w-4\" /> {loading ? 'Archiving...' : 'Archive'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","loading","$.state","handleConfirm","$.set","handleCancel","$.get","AlertDialog_Root","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","AlertDialog_Footer","Button","node_6","node_7","Archive","node_8"],"mappings":"0WAAA,iEA6CMA,EAAQ,EAAK,OAAU,CAAA,MAAS,KAAM,OAAU,IAAK,EAAK,IAAK,EAAK,IAAK,GAAM,GAAG,IAAM,OAAM,CAAI,EAAK,2CAA0C,GAAM,OAAM,CAAI,EAAK,UAAU,CAAA,GAcrLC,GAAIC,EAAAC,EAAA,CAAA,KAAA,SAAA,EAAA,IAAAC,EAAA,uBAAuCJ,8FAF5C,0FCzDA,aAaKK,EAAUC,EAAO,EAAK,EAEX,eAAAC,GAAgB,CAC9BC,EAAAH,EAAU,EAAI,EACV,GAAA,oCAEU,EAAK,CACnB,MAAY,CAEZ,QAAC,CACAG,EAAAH,EAAU,EAAK,CAChB,CACD,CAES,SAAAI,GAAe,CAClBC,EAAAL,CAAO,kBACE,EAAK,CAEpB,oCAGAM,EAAgBT,EAAA,0HACfU,EAAmBV,EAAA,uDAClBW,EAAkBX,EAAA,sDACjBY,EAAiBZ,EAAA,kEAAuB,EAAI,IAAM,EAAE,EAAA,CAAA,kEACpDa,EAAuBb,EAAA,0GACgC,EAAI,IAAM,EAAE;AAAA,kKAIpEc,EAAkBd,EAAA,oCACjBe,EAAMC,EAAA,2BAA4BT,0BAAwBJ,CAAO,sFAGjEY,EAAME,EAAA,sCAAuCZ,0BAAyBF,CAAO,sCAC5Ee,GAAOC,EAAA,CAAA,MAAA,SAAA,CAAA,6BAAqBhB,CAAO,EAAG,eAAiB,SAAS,EAAA,CAAA,8IAhBrE","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/entry/app.BGmAdRKN.js b/backend/static/frontend/_app/immutable/entry/app.BGmAdRKN.js
deleted file mode 100644
index 5228cc71..00000000
--- a/backend/static/frontend/_app/immutable/entry/app.BGmAdRKN.js
+++ /dev/null
@@ -1,2 +0,0 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BWU19a-p.js","../chunks/DMODTt3n.js","../chunks/B2WdN-7r.js","../chunks/Dwk6gGSK.js","../chunks/CMyj8Fzw.js","../chunks/BAcG0-U_.js","../chunks/xR3pK9Ey.js","../chunks/D6S6XYVy.js","../chunks/BnbBSyGl.js","../chunks/DH0tcjsQ.js","../chunks/2aB7Aq1L.js","../chunks/CAQEdoSh.js","../chunks/DWAABZDo.js","../chunks/Cg3qFI0z.js","../chunks/C1aqwstW.js","../chunks/m9wcLEvn.js","../chunks/CeufXW8P.js","../chunks/Bv_PbELb.js","../chunks/BG_QVry4.js","../chunks/CyOblkUv.js","../chunks/D8CWOmhn.js","../chunks/BuKxAPQs.js","../chunks/Ba_8xUad.js","../chunks/DwGghOhY.js","../chunks/1yZ_tTJD.js","../chunks/CYYjDwkn.js","../chunks/DQwRaN-E.js","../assets/select-scroll-down-button.CV-KWLNP.css","../chunks/DCLDG_bE.js","../chunks/DUJ_Z9AF.js","../chunks/BISlaXSK.js","../chunks/CQWqWi6p.js","../chunks/lk4DWutj.js","../chunks/BLztqFjH.js","../chunks/DGGSyx8c.js","../chunks/RIbCUOxE.js","../chunks/BUQRDnoX.js","../assets/0.W9adI4i9.css","../nodes/1.DRv4q_yx.js","../chunks/D_mqy6BL.js","../chunks/B-KBEnoV.js","../nodes/2.DkVhjzT0.js","../chunks/BJZ1igWb.js","../chunks/DJdWGDax.js","../chunks/D0pIT200.js","../assets/loading-circle.B7eue_J4.css","../chunks/CeOjHHJH.js","../chunks/CEJkX7WU.js","../chunks/BHR29ZVu.js","../chunks/BKHeGn2e.js","../chunks/Bo0m_oha.js","../chunks/Dj0-793h.js","../chunks/BQmrPeqT.js","../chunks/NCUZrEi6.js","../chunks/CK7m5hvD.js","../chunks/B4mGfC0Z.js","../chunks/DE17DnKW.js","../chunks/Dt-hNsWv.js","../chunks/X-i49s3k.js","../chunks/D9j1Uorr.js","../assets/github-dark.BpBxf2Y2.css","../chunks/BvDoo-7I.js","../assets/2.DPbc0cXZ.css","../nodes/3.Cyvwl6f8.js","../chunks/KAiF5-Ht.js","../chunks/CaHAoFtL.js","../chunks/DxBI0u1e.js","../chunks/XxKcOLZH.js","../nodes/4.H2hD8gEo.js","../chunks/xk30YnJ1.js","../chunks/C8IsQj6C.js","../chunks/CzIIBX62.js","../chunks/CXTzohMM.js","../chunks/xqPrLpfy.js","../chunks/DKXzXP9M.js","../chunks/DGXZzcqC.js","../chunks/BGqyWGxT.js","../chunks/D81VMsqm.js","../nodes/5.CGdMiy4Y.js","../nodes/6.D9BoS297.js","../chunks/BCZTK7qK.js","../chunks/DW1P0xGN.js","../assets/attributes-grid.54oNMo7k.css","../nodes/7.CmYotEvC.js","../nodes/8.Dh8h0C3k.js","../assets/8.CY-0MTUc.css","../nodes/9.BUJKpYei.js","../nodes/10.8Gifw9i9.js","../chunks/C202V9ED.js","../chunks/CtIWnZub.js","../nodes/11.DSImG_vI.js","../chunks/DNre5-OF.js","../assets/span-empty-state.DNNG9TWT.css","../chunks/NF-n962K.js","../chunks/Ci5jf6Wy.js","../chunks/Btlz2xiW.js","../chunks/BMae-b69.js","../chunks/CkkEpu6S.js","../nodes/12.mmErx2hI.js","../nodes/13.IYgJWi4P.js","../chunks/DTRXGXES.js","../nodes/14.CyLHTrNP.js","../chunks/CagnQ-rd.js","../chunks/CNi31Ve4.js","../nodes/15.RG13YO23.js","../chunks/B7mBgJdZ.js","../chunks/BOK8K7n_.js","../chunks/PPVm8Dsz.js","../assets/session-actions-table.Bj3M-3Kj.css","../nodes/16.30OVwidN.js","../nodes/17.BiJynP3y.js","../nodes/18.DdJE66EY.js","../chunks/l7hcXazj.js","../nodes/19.BMzdjIwI.js","../nodes/20.Rf6Tmy2E.js","../nodes/21.BrF4_UGb.js","../chunks/uoQG1kt6.js","../chunks/CQ9AfEcR.js","../nodes/22.DfFdFB47.js","../nodes/23.DtaH02zX.js","../nodes/24.CmXn2NPq.js","../nodes/25.D2INCme4.js","../nodes/26.DBjX66dN.js","../nodes/27.BXW3Qpei.js","../nodes/28.Bz5w7sEt.js","../nodes/29.CGGFH12S.js"])))=>i.map(i=>d[i]);
-import{_ as e}from"../chunks/PPVm8Dsz.js";import{i as g,aE as N,g as u,$ as W,a0 as Y,W as q,aF as z,a3 as B,al as J,p as K,aG as Q,F as U,h as P,A as X,f as y,c as h,s as Z,b as E,a as $,d as O,u as R,e as tt,r as et,t as rt,k as ot,l as st}from"../chunks/B2WdN-7r.js";import{p as I,i as A,b as L}from"../chunks/DMODTt3n.js";import{o as at}from"../chunks/Dwk6gGSK.js";import{c as D}from"../chunks/BAcG0-U_.js";function it(a){return class extends _t{constructor(t){super({component:a,...t})}}}class _t{#e;#t;constructor(t){var s=new Map,_=(r,o)=>{var m=J(o,!1,!1);return s.set(r,m),m};const n=new Proxy({...t.props||{},$$events:{}},{get(r,o){return u(s.get(o)??_(o,Reflect.get(r,o)))},has(r,o){return o===N?!0:(u(s.get(o)??_(o,Reflect.get(r,o))),Reflect.has(r,o))},set(r,o,m){return g(s.get(o)??_(o,m),m),Reflect.set(r,o,m)}});this.#t=(t.hydrate?W:Y)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&q(),this.#e=n.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||z(this,r,{get(){return this.#t[r]},set(o){this.#t[r]=o},enumerable:!0});this.#t.$set=r=>{Object.assign(n,r)},this.#t.$destroy=()=>{B(this.#t)}}$set(t){this.#t.$set(t)}$on(t,s){this.#e[t]=this.#e[t]||[];const _=(...n)=>s.call(this,...n);return this.#e[t].push(_),()=>{this.#e[t]=this.#e[t].filter(n=>n!==_)}}$destroy(){this.#t.$destroy()}}const ht={};var nt=y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),mt=y("<!> <!>",1);function ut(a,t){K(t,!0);let s=I(t,"components",23,()=>[]),_=I(t,"data_0",3,null),n=I(t,"data_1",3,null);Q(()=>t.stores.page.set(t.page)),U(()=>{t.stores,t.page,t.constructors,s(),t.form,_(),n(),t.stores.page.notify()});let r=P(!1),o=P(!1),m=P(null);at(()=>{const i=t.stores.page.subscribe(()=>{u(r)&&(g(o,!0),X().then(()=>{g(m,document.title||"untitled page",!0)}))});return g(r,!0),i});const k=R(()=>t.constructors[1]);var T=mt(),V=h(T);{var w=i=>{const c=R(()=>t.constructors[0]);var d=O(),v=h(d);D(v,()=>u(c),(l,p)=>{L(p(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params},children:(f,dt)=>{var b=O(),S=h(b);D(S,()=>u(k),(F,G)=>{L(G(F,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),M=>s()[1]=M,()=>s()?.[1])}),E(f,b)},$$slots:{default:!0}}),f=>s()[0]=f,()=>s()?.[0])}),E(i,d)},j=i=>{const c=R(()=>t.constructors[0]);var d=O(),v=h(d);D(v,()=>u(c),(l,p)=>{L(p(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params}}),f=>s()[0]=f,()=>s()?.[0])}),E(i,d)};A(V,i=>{t.constructors[1]?i(w):i(j,!1)})}var C=Z(V,2);{var H=i=>{var c=nt(),d=tt(c);{var v=l=>{var p=rt();ot(()=>st(p,u(m))),E(l,p)};A(d,l=>{u(o)&&l(v)})}et(c),E(i,c)};A(C,i=>{u(r)&&i(H)})}E(a,T),$()}const gt=it(ut),Pt=[()=>e(()=>import("../nodes/0.BWU19a-p.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37]),import.meta.url),()=>e(()=>import("../nodes/1.DRv4q_yx.js"),__vite__mapDeps([38,1,2,39,6,3,18,40,14,9,19]),import.meta.url),()=>e(()=>import("../nodes/2.DkVhjzT0.js"),__vite__mapDeps([41,42,6,3,2,7,1,4,5,9,19,43,44,45,46,47,10,11,12,13,48,49,50,31,51,52,14,53,54,55,56,57,40,58,59,60,61,8,30,32,62]),import.meta.url),()=>e(()=>import("../nodes/3.Cyvwl6f8.js"),__vite__mapDeps([63,1,2,3,6,18,14,9,20,21,22,5,12,48,49,64,65,66,7,8,29,17,4,67]),import.meta.url),()=>e(()=>import("../nodes/4.H2hD8gEo.js"),__vite__mapDeps([68,42,6,3,2,7,1,4,5,43,46,9,47,44,45,52,10,11,12,13,14,31,53,69,70,71,25,21,17,26,27,29,72,73,74,75,20,19,39,76,77,58]),import.meta.url),()=>e(()=>import("../nodes/5.CGdMiy4Y.js"),__vite__mapDeps([78,42,6,3,2,7,1,4,5,43,46,9,47,44,45,73,14,11,12,25,21,17,26,13,27,71,29,74,52,10,31,53,69,40,19,70,72,76,77,39,58]),import.meta.url),()=>e(()=>import("../nodes/6.D9BoS297.js"),__vite__mapDeps([79,42,6,3,2,7,1,4,5,9,43,48,49,64,44,45,40,14,80,81,31,30,32,82,76,77,39]),import.meta.url),()=>e(()=>import("../nodes/7.CmYotEvC.js"),__vite__mapDeps([83,1,2,3,6,7,65,9,66,44,45,67,17,4]),import.meta.url),()=>e(()=>import("../nodes/8.Dh8h0C3k.js"),__vite__mapDeps([84,42,6,3,2,7,1,9,48,49,64,14,44,45,23,59,31,4,60,61,8,30,32,85]),import.meta.url),()=>e(()=>import("../nodes/9.BUJKpYei.js"),__vite__mapDeps([86,42,6,3,2,7,1,4,5,43,46,9,47,48,49,14,44,45,33,11,12,52,10,13,31,53,54,55,69,70,71,25,21,17,26,27,29,72,73,74,75,20,19,39,76,77,51,58,35,30]),import.meta.url),()=>e(()=>import("../nodes/10.8Gifw9i9.js"),__vite__mapDeps([87,42,6,3,2,7,1,4,5,43,46,9,47,14,44,45,73,11,12,25,21,17,26,13,27,71,29,74,52,10,31,53,69,40,88,19,70,72,76,77,20,89,15,39,58]),import.meta.url),()=>e(()=>import("../nodes/11.DSImG_vI.js"),__vite__mapDeps([90,42,6,3,2,7,1,4,5,43,14,9,48,49,64,46,47,44,45,40,80,81,31,30,32,82,91,11,12,26,74,59,60,8,92,76,77,39,93,94,57,95,96,97,55]),import.meta.url),()=>e(()=>import("../nodes/12.mmErx2hI.js"),__vite__mapDeps([98,1,2,3,4,5,6,14,9,20,21,22,12,48,49,64,65,66,71,11,25,17,26,13,27,29,7,8,24,23,28,67]),import.meta.url),()=>e(()=>import("../nodes/13.IYgJWi4P.js"),__vite__mapDeps([99,1,2,14,9,20,21,22,5,12,48,49,100,17,4,65,66,8,67]),import.meta.url),()=>e(()=>import("../nodes/14.CyLHTrNP.js"),__vite__mapDeps([101,42,6,3,2,7,1,4,5,19,46,9,47,75,20,21,14,71,11,12,25,17,26,13,27,29,44,45,31,43,10,102,89,15,52,53,69,70,72,73,74,58,103]),import.meta.url),()=>e(()=>import("../nodes/15.RG13YO23.js"),__vite__mapDeps([104,42,6,3,2,7,1,18,14,9,44,45,40,105,4,5,48,49,64,43,102,89,11,12,15,31,35,72,95,96,81,30,32,82,80,106,107,46,47,52,10,13,53,69,108,93,94,57,19,56,76,77,39]),import.meta.url),()=>e(()=>import("../nodes/16.30OVwidN.js"),__vite__mapDeps([109,1,2,7,6,3,44,9,45,40,14,43,105,4,5,48,49,64,102,89,11,12,15,31,35,72,95,96,81,30,32,82,80,106,107,46,47,52,10,13,53,69,108,93,94,57,19,56,76,77,39]),import.meta.url),()=>e(()=>import("../nodes/17.BiJynP3y.js"),__vite__mapDeps([110,42,6,3,2,7,1,4,5,18,19,43,14,9,48,64,46,47,44,45,40,52,10,11,12,13,31,53,69,70,71,25,21,17,26,27,29,72,102,89,15,39,103]),import.meta.url),()=>e(()=>import("../nodes/18.DdJE66EY.js"),__vite__mapDeps([111,42,6,3,2,7,1,18,14,9,20,21,22,5,12,48,49,65,66,8,112,4,67,17]),import.meta.url),()=>e(()=>import("../nodes/19.BMzdjIwI.js"),__vite__mapDeps([113,1,2,3,4,5,9,6,7,46,47,75,20,21,14,71,11,12,25,17,26,13,27,29,44,45,43,52,10,31,53,69,70,72,73,74,97,81,30,32,82,89,15,58,36,16]),import.meta.url),()=>e(()=>import("../nodes/20.Rf6Tmy2E.js"),__vite__mapDeps([114,42,6,3,2,7,1,4,5,9,14,20,21,44,45,89,11,12,15,71,25,17,26,13,27,29,95,96,48,49,33,34,73,74,43,50,31,51,46,53,77,57,65,66,30]),import.meta.url),()=>e(()=>import("../nodes/21.BrF4_UGb.js"),__vite__mapDeps([115,1,2,3,4,5,9,18,6,7,43,44,45,14,94,70,71,11,12,25,21,17,26,13,27,29,31,72,46,47,95,65,89,15,75,20,69,73,74,116,22,36,117]),import.meta.url),()=>e(()=>import("../nodes/22.DfFdFB47.js"),__vite__mapDeps([118,42,6,3,2,1,4,5,18,14,9,20,21,22,12,48,49,64,65,66,71,11,25,17,26,13,27,29,7,8,24,23,28,112,67]),import.meta.url),()=>e(()=>import("../nodes/23.DtaH02zX.js"),__vite__mapDeps([119,1,2,6,3,18,14,9,20,21,22,5,12,48,49,100,17,4,65,66,8,67]),import.meta.url),()=>e(()=>import("../nodes/24.CmXn2NPq.js"),__vite__mapDeps([120,1,2,3,4,5,7,6,43,46,9,47,44,45,52,10,11,12,13,14,31,53,69,70,71,25,21,17,26,27,29,72,73,74,75,20,89,15,19,39,76,77,58,36,117,16]),import.meta.url),()=>e(()=>import("../nodes/25.D2INCme4.js"),__vite__mapDeps([121,42,6,3,2,7,1,11,12,9,4,5,39,18,43,48,49,64,46,47,95,96,14,44,45,80,81,31,30,32,82,69,106,107,52,10,13,53,108,40,76,77,57]),import.meta.url),()=>e(()=>import("../nodes/26.DBjX66dN.js"),__vite__mapDeps([122,107,1,2,5,6,3,7,4,48,9,49,64,22,12,14,71,11,25,21,17,26,13,27,29,28,46,47,89,15,116,94,20,44,45]),import.meta.url),()=>e(()=>import("../nodes/27.BXW3Qpei.js"),__vite__mapDeps([123,42,6,3,2,7,1,4,5,43,46,9,47,44,45,52,10,11,12,13,14,31,53,69,70,71,25,21,17,26,27,29,72,73,74,19,39,76,77,58]),import.meta.url),()=>e(()=>import("../nodes/28.Bz5w7sEt.js"),__vite__mapDeps([124,42,6,3,2,7,1,4,5,43,46,9,47,44,45,73,14,11,12,25,21,17,26,13,27,71,29,74,52,10,31,53,69,40,88,19,70,72,76,77,39,58]),import.meta.url),()=>e(()=>import("../nodes/29.CGGFH12S.js"),__vite__mapDeps([125,42,6,3,2,7,1,4,5,43,14,9,48,49,64,46,47,44,45,40,80,81,31,30,32,82,91,11,12,26,74,59,60,8,92,76,77,39,93,94,57,55]),import.meta.url)],Ot=[],Rt={"/":[2],"/accept-invitation":[3],"/ai-traces":[4],"/ai-traces/[traceName]":[5],"/ai-traces/[traceName]/[traceId]":[6],"/auth/callback":[7],"/connection":[8],"/endpoints":[9],"/endpoints/[endpoint]":[10],"/endpoints/[endpoint]/[endpointId]":[11],"/finish-setup":[12],"/forgot-password":[13],"/issues":[14],"/issues/[exceptionHash]":[15],"/issues/[exceptionHash]/events":[17],"/issues/[exceptionHash]/[exceptionId]":[16],"/login":[18],"/logs":[19],"/metrics":[20],"/notifications":[21],"/register":[22],"/reset-password":[23],"/sessions":[24],"/sessions/[sessionId]":[25],"/settings":[26],"/tasks":[27],"/tasks/[task]":[28],"/tasks/[task]/[taskId]":[29]},x={handleError:(({error:a})=>{console.error(a)}),reroute:(()=>{}),transport:{}},ct=Object.fromEntries(Object.entries(x.transport).map(([a,t])=>[a,t.decode])),It=Object.fromEntries(Object.entries(x.transport).map(([a,t])=>[a,t.encode])),At=!1,Lt=(a,t)=>ct[a](t);export{Lt as decode,ct as decoders,Rt as dictionary,It as encoders,At as hash,x as hooks,ht as matchers,Pt as nodes,gt as root,Ot as server_loads};
diff --git a/backend/static/frontend/_app/immutable/entry/app.BLwhCE1c.js b/backend/static/frontend/_app/immutable/entry/app.BLwhCE1c.js
new file mode 100644
index 00000000..9425ada1
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/entry/app.BLwhCE1c.js
@@ -0,0 +1,2 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DqXbLv7T.js","../chunks/DMODTt3n.js","../chunks/B2WdN-7r.js","../chunks/Dwk6gGSK.js","../chunks/CMyj8Fzw.js","../chunks/BAcG0-U_.js","../chunks/BIF4_51j.js","../chunks/qCQ2nSvO.js","../chunks/BnbBSyGl.js","../chunks/DH0tcjsQ.js","../chunks/5D-Broyu.js","../chunks/CjLH05gQ.js","../chunks/BDd6-VcB.js","../chunks/Cg3qFI0z.js","../chunks/C1aqwstW.js","../chunks/CmY6xZEr.js","../chunks/CeufXW8P.js","../chunks/Bv_PbELb.js","../chunks/CyRgFauW.js","../chunks/UIirCQWa.js","../chunks/D8CWOmhn.js","../chunks/BuKxAPQs.js","../chunks/Csh2s3-8.js","../chunks/FmJ3F5-k.js","../chunks/DJPlLp0I.js","../chunks/BT31m2vG.js","../chunks/DQwRaN-E.js","../assets/select-scroll-down-button.CV-KWLNP.css","../chunks/sjIDPxFh.js","../chunks/DUJ_Z9AF.js","../chunks/BISlaXSK.js","../chunks/CQWqWi6p.js","../chunks/lk4DWutj.js","../chunks/CKSCW-4I.js","../chunks/Cjl85b3B.js","../chunks/RIbCUOxE.js","../chunks/BUQRDnoX.js","../chunks/CM0V6MFA.js","../assets/0.CGWkSaCJ.css","../nodes/1.BCPNhgBs.js","../chunks/BGApn_8u.js","../chunks/CFZS-Ydw.js","../nodes/2.BCwBzGJs.js","../chunks/B4VmGkxP.js","../chunks/Dq-0lVru.js","../chunks/D0pIT200.js","../assets/loading-circle.B7eue_J4.css","../chunks/CeOjHHJH.js","../chunks/CEJkX7WU.js","../chunks/BHR29ZVu.js","../chunks/BKHeGn2e.js","../chunks/B622WnQw.js","../chunks/Dj0-793h.js","../chunks/CkVJuMBr.js","../chunks/NCUZrEi6.js","../chunks/DuUGLGtW.js","../chunks/B4mGfC0Z.js","../chunks/BJPFuIL3.js","../chunks/Dt-hNsWv.js","../chunks/X-i49s3k.js","../chunks/D9j1Uorr.js","../assets/github-dark.BpBxf2Y2.css","../chunks/BApWZWbV.js","../assets/2.DPbc0cXZ.css","../nodes/3.DsKkyZbg.js","../chunks/KAiF5-Ht.js","../chunks/CaHAoFtL.js","../chunks/DxBI0u1e.js","../chunks/XxKcOLZH.js","../nodes/4.ngE2ZybA.js","../chunks/xk30YnJ1.js","../chunks/DByR3-93.js","../chunks/BgAHJuQl.js","../chunks/CXTzohMM.js","../chunks/DjEjtFrE.js","../chunks/Bzt1ocTi.js","../chunks/D4tSNflE.js","../chunks/Cplpgpvt.js","../chunks/D81VMsqm.js","../nodes/5.DI8RCFuZ.js","../nodes/6.eKPg085I.js","../chunks/BCZTK7qK.js","../chunks/DW1P0xGN.js","../assets/attributes-grid.54oNMo7k.css","../nodes/7.bOLVYdNV.js","../nodes/8.DoG9Wvpa.js","../assets/8.CY-0MTUc.css","../nodes/9._aK9M2Us.js","../nodes/10.BZSbBkEa.js","../chunks/Dtb4566M.js","../nodes/11.BmOzrP-J.js","../chunks/DWCgVx1V.js","../assets/span-empty-state.DNNG9TWT.css","../chunks/lEFYSxvE.js","../chunks/Ci5jf6Wy.js","../chunks/CC8KIeOw.js","../chunks/CItL7JvW.js","../chunks/CkkEpu6S.js","../nodes/12.Dp40dmWf.js","../nodes/13.CIHi9rGr.js","../chunks/DTRXGXES.js","../nodes/14.7EC4zFK9.js","../chunks/x4zBYqLS.js","../chunks/CNi31Ve4.js","../nodes/15.DSww6OjK.js","../chunks/CCYdrD-l.js","../chunks/BpQ9RPzK.js","../chunks/PPVm8Dsz.js","../assets/session-actions-table.Bj3M-3Kj.css","../nodes/16.BJO23utU.js","../nodes/17.DP2Eww18.js","../nodes/18.C864sJTS.js","../chunks/CRXNgefC.js","../nodes/19.NJmlNQ_L.js","../nodes/20.DsDZMXLc.js","../nodes/21.D--2gUZI.js","../chunks/DXxXPnVP.js","../chunks/CQ9AfEcR.js","../nodes/22.BcVOxonZ.js","../nodes/23.eq98_a14.js","../nodes/24.Cj61BRme.js","../nodes/25.0zhNwC_l.js","../nodes/26.C8KWbgUk.js","../nodes/27.DwmKNf9L.js","../nodes/28.DSjeiQY_.js","../nodes/29.D1lVEb9A.js"])))=>i.map(i=>d[i]);
+import{_ as e}from"../chunks/PPVm8Dsz.js";import{i as g,aE as N,g as u,$ as W,a0 as Y,W as q,aF as z,a3 as B,al as J,p as K,aG as Q,F as U,h as P,A as X,f as y,c as h,s as Z,b as E,a as $,d as O,u as R,e as tt,r as et,t as rt,k as ot,l as st}from"../chunks/B2WdN-7r.js";import{p as I,i as A,b as L}from"../chunks/DMODTt3n.js";import{o as at}from"../chunks/Dwk6gGSK.js";import{c as D}from"../chunks/BAcG0-U_.js";function it(a){return class extends _t{constructor(t){super({component:a,...t})}}}class _t{#e;#t;constructor(t){var s=new Map,_=(r,o)=>{var m=J(o,!1,!1);return s.set(r,m),m};const n=new Proxy({...t.props||{},$$events:{}},{get(r,o){return u(s.get(o)??_(o,Reflect.get(r,o)))},has(r,o){return o===N?!0:(u(s.get(o)??_(o,Reflect.get(r,o))),Reflect.has(r,o))},set(r,o,m){return g(s.get(o)??_(o,m),m),Reflect.set(r,o,m)}});this.#t=(t.hydrate?W:Y)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&q(),this.#e=n.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||z(this,r,{get(){return this.#t[r]},set(o){this.#t[r]=o},enumerable:!0});this.#t.$set=r=>{Object.assign(n,r)},this.#t.$destroy=()=>{B(this.#t)}}$set(t){this.#t.$set(t)}$on(t,s){this.#e[t]=this.#e[t]||[];const _=(...n)=>s.call(this,...n);return this.#e[t].push(_),()=>{this.#e[t]=this.#e[t].filter(n=>n!==_)}}$destroy(){this.#t.$destroy()}}const ht={};var nt=y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),mt=y("<!> <!>",1);function ut(a,t){K(t,!0);let s=I(t,"components",23,()=>[]),_=I(t,"data_0",3,null),n=I(t,"data_1",3,null);Q(()=>t.stores.page.set(t.page)),U(()=>{t.stores,t.page,t.constructors,s(),t.form,_(),n(),t.stores.page.notify()});let r=P(!1),o=P(!1),m=P(null);at(()=>{const i=t.stores.page.subscribe(()=>{u(r)&&(g(o,!0),X().then(()=>{g(m,document.title||"untitled page",!0)}))});return g(r,!0),i});const k=R(()=>t.constructors[1]);var T=mt(),V=h(T);{var w=i=>{const c=R(()=>t.constructors[0]);var d=O(),v=h(d);D(v,()=>u(c),(l,p)=>{L(p(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params},children:(f,dt)=>{var b=O(),S=h(b);D(S,()=>u(k),(F,G)=>{L(G(F,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),M=>s()[1]=M,()=>s()?.[1])}),E(f,b)},$$slots:{default:!0}}),f=>s()[0]=f,()=>s()?.[0])}),E(i,d)},j=i=>{const c=R(()=>t.constructors[0]);var d=O(),v=h(d);D(v,()=>u(c),(l,p)=>{L(p(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params}}),f=>s()[0]=f,()=>s()?.[0])}),E(i,d)};A(V,i=>{t.constructors[1]?i(w):i(j,!1)})}var C=Z(V,2);{var H=i=>{var c=nt(),d=tt(c);{var v=l=>{var p=rt();ot(()=>st(p,u(m))),E(l,p)};A(d,l=>{u(o)&&l(v)})}et(c),E(i,c)};A(C,i=>{u(r)&&i(H)})}E(a,T),$()}const gt=it(ut),Pt=[()=>e(()=>import("../nodes/0.DqXbLv7T.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38]),import.meta.url),()=>e(()=>import("../nodes/1.BCPNhgBs.js"),__vite__mapDeps([39,1,2,40,6,3,18,41,14,9,19]),import.meta.url),()=>e(()=>import("../nodes/2.BCwBzGJs.js"),__vite__mapDeps([42,43,6,3,2,7,1,4,5,9,19,44,45,46,47,48,10,11,12,13,49,50,51,31,52,53,14,54,55,56,57,58,41,59,60,61,62,8,30,32,63]),import.meta.url),()=>e(()=>import("../nodes/3.DsKkyZbg.js"),__vite__mapDeps([64,1,2,3,6,18,14,9,20,21,22,5,12,49,50,65,66,67,7,8,29,17,4,68]),import.meta.url),()=>e(()=>import("../nodes/4.ngE2ZybA.js"),__vite__mapDeps([69,43,6,3,2,7,1,4,5,44,47,9,48,45,46,53,10,11,12,13,14,31,54,70,71,72,25,21,17,26,27,29,73,74,75,76,20,19,40,77,78,59]),import.meta.url),()=>e(()=>import("../nodes/5.DI8RCFuZ.js"),__vite__mapDeps([79,43,6,3,2,7,1,4,5,44,47,9,48,45,46,74,14,11,12,25,21,17,26,13,27,72,29,75,53,10,31,54,70,41,19,71,73,77,78,40,59]),import.meta.url),()=>e(()=>import("../nodes/6.eKPg085I.js"),__vite__mapDeps([80,43,6,3,2,7,1,4,5,9,44,49,50,65,45,46,41,14,81,82,31,30,32,83,77,78,40]),import.meta.url),()=>e(()=>import("../nodes/7.bOLVYdNV.js"),__vite__mapDeps([84,1,2,3,6,7,66,9,67,45,46,68,17,4]),import.meta.url),()=>e(()=>import("../nodes/8.DoG9Wvpa.js"),__vite__mapDeps([85,43,6,3,2,7,1,9,49,50,65,14,45,46,23,60,31,4,61,62,8,30,32,86]),import.meta.url),()=>e(()=>import("../nodes/9._aK9M2Us.js"),__vite__mapDeps([87,43,6,3,2,7,1,4,5,44,47,9,48,49,50,14,45,46,34,11,12,53,10,13,31,54,55,56,70,71,72,25,21,17,26,27,29,73,74,75,76,20,19,40,77,78,52,59,35,30]),import.meta.url),()=>e(()=>import("../nodes/10.BZSbBkEa.js"),__vite__mapDeps([88,43,6,3,2,7,1,4,5,44,47,9,48,14,45,46,74,11,12,25,21,17,26,13,27,72,29,75,53,10,31,54,70,41,89,19,71,73,77,78,20,15,40,59]),import.meta.url),()=>e(()=>import("../nodes/11.BmOzrP-J.js"),__vite__mapDeps([90,43,6,3,2,7,1,4,5,44,14,9,49,50,65,47,48,45,46,41,81,82,31,30,32,83,91,11,12,26,75,60,61,8,92,77,78,40,93,94,58,95,96,97,56]),import.meta.url),()=>e(()=>import("../nodes/12.Dp40dmWf.js"),__vite__mapDeps([98,1,2,3,4,5,6,14,9,20,21,22,12,49,50,65,66,67,72,11,25,17,26,13,27,29,7,8,24,23,28,68]),import.meta.url),()=>e(()=>import("../nodes/13.CIHi9rGr.js"),__vite__mapDeps([99,1,2,14,9,20,21,22,5,12,49,50,100,17,4,66,67,8,68]),import.meta.url),()=>e(()=>import("../nodes/14.7EC4zFK9.js"),__vite__mapDeps([101,43,6,3,2,7,1,4,5,19,47,9,48,76,20,21,14,72,11,12,25,17,26,13,27,29,45,46,31,44,10,102,15,53,54,70,71,73,74,75,59,103]),import.meta.url),()=>e(()=>import("../nodes/15.DSww6OjK.js"),__vite__mapDeps([104,43,6,3,2,7,1,18,14,9,45,46,41,105,4,5,49,50,65,44,102,15,11,12,31,35,73,95,96,82,30,32,83,81,106,107,47,48,53,10,13,54,70,108,93,94,58,19,57,77,78,40]),import.meta.url),()=>e(()=>import("../nodes/16.BJO23utU.js"),__vite__mapDeps([109,1,2,7,6,3,45,9,46,41,14,44,105,4,5,49,50,65,102,15,11,12,31,35,73,95,96,82,30,32,83,81,106,107,47,48,53,10,13,54,70,108,93,94,58,19,57,77,78,40]),import.meta.url),()=>e(()=>import("../nodes/17.DP2Eww18.js"),__vite__mapDeps([110,43,6,3,2,7,1,4,5,18,19,44,14,9,49,65,47,48,45,46,41,53,10,11,12,13,31,54,70,71,72,25,21,17,26,27,29,73,102,15,40,103]),import.meta.url),()=>e(()=>import("../nodes/18.C864sJTS.js"),__vite__mapDeps([111,43,6,3,2,7,1,18,14,9,20,21,22,5,12,49,50,66,67,8,112,4,68,17]),import.meta.url),()=>e(()=>import("../nodes/19.NJmlNQ_L.js"),__vite__mapDeps([113,1,2,3,4,5,9,6,7,47,48,76,20,21,14,72,11,12,25,17,26,13,27,29,45,46,44,53,10,31,54,70,71,73,74,75,97,82,30,32,83,15,59,36,16]),import.meta.url),()=>e(()=>import("../nodes/20.DsDZMXLc.js"),__vite__mapDeps([114,43,6,3,2,7,1,4,5,9,14,20,21,45,46,15,11,12,72,25,17,26,13,27,29,95,96,49,50,34,33,31,74,75,44,51,52,47,54,78,58,66,67,30]),import.meta.url),()=>e(()=>import("../nodes/21.D--2gUZI.js"),__vite__mapDeps([115,1,2,3,4,5,9,18,6,7,44,45,46,14,94,71,72,11,12,25,21,17,26,13,27,29,31,73,47,48,95,66,15,76,20,70,74,75,116,22,36,117,37]),import.meta.url),()=>e(()=>import("../nodes/22.BcVOxonZ.js"),__vite__mapDeps([118,43,6,3,2,1,4,5,18,14,9,20,21,22,12,49,50,65,66,67,72,11,25,17,26,13,27,29,7,8,24,23,28,112,68]),import.meta.url),()=>e(()=>import("../nodes/23.eq98_a14.js"),__vite__mapDeps([119,1,2,6,3,18,14,9,20,21,22,5,12,49,50,100,17,4,66,67,8,68]),import.meta.url),()=>e(()=>import("../nodes/24.Cj61BRme.js"),__vite__mapDeps([120,1,2,3,4,5,7,6,44,47,9,48,45,46,53,10,11,12,13,14,31,54,70,71,72,25,21,17,26,27,29,73,74,75,76,20,15,19,40,77,78,59,36,117,16]),import.meta.url),()=>e(()=>import("../nodes/25.0zhNwC_l.js"),__vite__mapDeps([121,43,6,3,2,7,1,11,12,9,4,5,40,18,44,49,50,65,47,48,95,96,14,45,46,81,82,31,30,32,83,70,106,107,53,10,13,54,108,41,77,78,58]),import.meta.url),()=>e(()=>import("../nodes/26.C8KWbgUk.js"),__vite__mapDeps([122,107,1,2,5,6,3,7,4,49,9,50,65,22,12,14,72,11,25,21,17,26,13,27,29,28,47,48,15,116,94,20,45,46]),import.meta.url),()=>e(()=>import("../nodes/27.DwmKNf9L.js"),__vite__mapDeps([123,43,6,3,2,7,1,4,5,44,47,9,48,45,46,53,10,11,12,13,14,31,54,70,71,72,25,21,17,26,27,29,73,74,75,19,40,77,78,59]),import.meta.url),()=>e(()=>import("../nodes/28.DSjeiQY_.js"),__vite__mapDeps([124,43,6,3,2,7,1,4,5,44,47,9,48,45,46,74,14,11,12,25,21,17,26,13,27,72,29,75,53,10,31,54,70,41,89,19,71,73,77,78,40,59]),import.meta.url),()=>e(()=>import("../nodes/29.D1lVEb9A.js"),__vite__mapDeps([125,43,6,3,2,7,1,4,5,44,14,9,49,50,65,47,48,45,46,41,81,82,31,30,32,83,91,11,12,26,75,60,61,8,92,77,78,40,93,94,58,56]),import.meta.url)],Ot=[],Rt={"/":[2],"/accept-invitation":[3],"/ai-traces":[4],"/ai-traces/[traceName]":[5],"/ai-traces/[traceName]/[traceId]":[6],"/auth/callback":[7],"/connection":[8],"/endpoints":[9],"/endpoints/[endpoint]":[10],"/endpoints/[endpoint]/[endpointId]":[11],"/finish-setup":[12],"/forgot-password":[13],"/issues":[14],"/issues/[exceptionHash]":[15],"/issues/[exceptionHash]/events":[17],"/issues/[exceptionHash]/[exceptionId]":[16],"/login":[18],"/logs":[19],"/metrics":[20],"/notifications":[21],"/register":[22],"/reset-password":[23],"/sessions":[24],"/sessions/[sessionId]":[25],"/settings":[26],"/tasks":[27],"/tasks/[task]":[28],"/tasks/[task]/[taskId]":[29]},x={handleError:(({error:a})=>{console.error(a)}),reroute:(()=>{}),transport:{}},ct=Object.fromEntries(Object.entries(x.transport).map(([a,t])=>[a,t.decode])),It=Object.fromEntries(Object.entries(x.transport).map(([a,t])=>[a,t.encode])),At=!1,Lt=(a,t)=>ct[a](t);export{Lt as decode,ct as decoders,Rt as dictionary,It as encoders,At as hash,x as hooks,ht as matchers,Pt as nodes,gt as root,Ot as server_loads};
diff --git a/backend/static/frontend/_app/immutable/entry/app.BGmAdRKN.js.map b/backend/static/frontend/_app/immutable/entry/app.BLwhCE1c.js.map
similarity index 97%
rename from backend/static/frontend/_app/immutable/entry/app.BGmAdRKN.js.map
rename to backend/static/frontend/_app/immutable/entry/app.BLwhCE1c.js.map
index 89605cb0..20143675 100644
--- a/backend/static/frontend/_app/immutable/entry/app.BGmAdRKN.js.map
+++ b/backend/static/frontend/_app/immutable/entry/app.BLwhCE1c.js.map
@@ -1 +1 @@
-{"version":3,"mappings":";2ZAgDO,SAASA,GAAiBC,EAAW,CAE3C,OAAO,cAAcC,EAAiB,CAErC,YAAYC,EAAS,CACpB,MAAM,CACL,UAAAF,EACA,GAAGE,CACP,CAAI,CACF,CACF,CACA,CAOA,MAAMD,EAAiB,CAEtBE,GAGAC,GAOA,YAAYF,EAAS,CACpB,IAAIG,EAAU,IAAI,IAMdC,EAAa,CAACC,EAAKC,IAAU,CAChC,IAAIC,EAAIC,EAAeF,EAAO,GAAO,EAAK,EAC1C,OAAAH,EAAQ,IAAIE,EAAKE,CAAC,EACXA,CACR,EAKA,MAAME,EAAQ,IAAI,MACjB,CAAE,GAAIT,EAAQ,OAAS,GAAK,SAAU,EAAE,EAC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SAAU,IAAM,CAAC,GACjB,UAAW,EACZ,EAEaC,GAAW,OAAO,YAAY,OAAO,QAAQF,EAAM,SAAS,EAAE,IAAI,CAAC,CAACG,EAAGC,CAAC,IAAM,CAACD,EAAGC,EAAE,MAAM,CAAC,CAAC,EAC5FC,GAAW,OAAO,YAAY,OAAO,QAAQL,EAAM,SAAS,EAAE,IAAI,CAAC,CAACG,EAAGC,CAAC,IAAM,CAACD,EAAGC,EAAE,MAAM,CAAC,CAAC,EAE5FE,GAAO,GAEPC,GAAS,CAACC,EAAMjE,IAAU2D,GAASM,CAAI,EAAEjE,CAAK","names":["asClassComponent","component","Svelte4Component","options","#events","#instance","sources","add_source","key","value","s","mutable_source","props","target","prop","get","LEGACY_PROPS","set","hydrate","mount","flushSync","define_property","next","unmount","event","callback","cb","args","fn","matchers","components","$.prop","$$props","data_0","data_1","$.user_pre_effect","$.user_effect","mounted","$.state","navigated","title","onMount","unsubscribe","$.get","$.set","tick","Pyramid_1","Pyramid_0","Pyramid_0_1","$$anchor","Pyramid_1_1","$$value","Pyramid_0_2","$$render","consequent","alternate","div","root_4","consequent_1","consequent_2","root","Root","nodes","__vitePreload","server_loads","dictionary","hooks","error","decoders","k","v","encoders","hash","decode","type"],"ignoreList":[0],"sources":["../../../../../../node_modules/svelte/src/legacy/legacy-client.js","../../../../../generated/client-optimized/matchers.js","../../../../../generated/root.svelte","../../../../../generated/root.js","../../../../../generated/client-optimized/app.js"],"sourcesContent":["/** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */\nimport { DIRTY, LEGACY_PROPS, MAYBE_DIRTY } from '../internal/client/constants.js';\nimport { user_pre_effect } from '../internal/client/reactivity/effects.js';\nimport { mutable_source, set } from '../internal/client/reactivity/sources.js';\nimport { hydrate, mount, unmount } from '../internal/client/render.js';\nimport { active_effect, get, set_signal_status } from '../internal/client/runtime.js';\nimport { flushSync } from '../internal/client/reactivity/batch.js';\nimport { define_property, is_array } from '../internal/shared/utils.js';\nimport * as e from '../internal/client/errors.js';\nimport * as w from '../internal/client/warnings.js';\nimport { DEV } from 'esm-env';\nimport { FILENAME } from '../constants.js';\nimport { component_context, dev_current_component_function } from '../internal/client/context.js';\nimport { async_mode_flag } from '../internal/flags/index.js';\n\n/**\n * Takes the same options as a Svelte 4 component and the component function and returns a Svelte 4 compatible component.\n *\n * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.\n *\n * @template {Record<string, any>} Props\n * @template {Record<string, any>} Exports\n * @template {Record<string, any>} Events\n * @template {Record<string, any>} Slots\n *\n * @param {ComponentConstructorOptions<Props> & {\n * \tcomponent: ComponentType<SvelteComponent<Props, Events, Slots>> | Component<Props>;\n * }} options\n * @returns {SvelteComponent<Props, Events, Slots> & Exports}\n */\nexport function createClassComponent(options) {\n\t// @ts-expect-error $$prop_def etc are not actually defined\n\treturn new Svelte4Component(options);\n}\n\n/**\n * Takes the component function and returns a Svelte 4 compatible component constructor.\n *\n * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.\n *\n * @template {Record<string, any>} Props\n * @template {Record<string, any>} Exports\n * @template {Record<string, any>} Events\n * @template {Record<string, any>} Slots\n *\n * @param {SvelteComponent<Props, Events, Slots> | Component<Props>} component\n * @returns {ComponentType<SvelteComponent<Props, Events, Slots> & Exports>}\n */\nexport function asClassComponent(component) {\n\t// @ts-expect-error $$prop_def etc are not actually defined\n\treturn class extends Svelte4Component {\n\t\t/** @param {any} options */\n\t\tconstructor(options) {\n\t\t\tsuper({\n\t\t\t\tcomponent,\n\t\t\t\t...options\n\t\t\t});\n\t\t}\n\t};\n}\n\n/**\n * Support using the component as both a class and function during the transition period\n * @typedef {{new (o: ComponentConstructorOptions): SvelteComponent;(...args: Parameters<Component<Record<string, any>>>): ReturnType<Component<Record<string, any>, Record<string, any>>>;}} LegacyComponentType\n */\n\nclass Svelte4Component {\n\t/** @type {any} */\n\t#events;\n\n\t/** @type {Record<string, any>} */\n\t#instance;\n\n\t/**\n\t * @param {ComponentConstructorOptions & {\n\t * component: any;\n\t * }} options\n\t */\n\tconstructor(options) {\n\t\tvar sources = new Map();\n\n\t\t/**\n\t\t * @param {string | symbol} key\n\t\t * @param {unknown} value\n\t\t */\n\t\tvar add_source = (key, value) => {\n\t\t\tvar s = mutable_source(value, false, false);\n\t\t\tsources.set(key, s);\n\t\t\treturn s;\n\t\t};\n\n\t\t// Replicate coarse-grained props through a proxy that has a version source for\n\t\t// each property, which is incremented on updates to the property itself. Do not\n\t\t// use our $state proxy because that one has fine-grained reactivity.\n\t\tconst props = new Proxy(\n\t\t\t{ ...(options.props || {}), $$events: {} },\n\t\t\t{\n\t\t\t\tget(target, prop) {\n\t\t\t\t\treturn get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));\n\t\t\t\t},\n\t\t\t\thas(target, prop) {\n\t\t\t\t\t// Necessary to not throw \"invalid binding\" validation errors on the component side\n\t\t\t\t\tif (prop === LEGACY_PROPS) return true;\n\n\t\t\t\t\tget(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));\n\t\t\t\t\treturn Reflect.has(target, prop);\n\t\t\t\t},\n\t\t\t\tset(target, prop, value) {\n\t\t\t\t\tset(sources.get(prop) ?? add_source(prop, value), value);\n\t\t\t\t\treturn Reflect.set(target, prop, value);\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\n\t\tthis.#instance = (options.hydrate ? hydrate : mount)(options.component, {\n\t\t\ttarget: options.target,\n\t\t\tanchor: options.anchor,\n\t\t\tprops,\n\t\t\tcontext: options.context,\n\t\t\tintro: options.intro ?? false,\n\t\t\trecover: options.recover\n\t\t});\n\n\t\t// We don't flushSync for custom element wrappers or if the user doesn't want it,\n\t\t// or if we're in async mode since `flushSync()` will fail\n\t\tif (!async_mode_flag && (!options?.props?.$$host || options.sync === false)) {\n\t\t\tflushSync();\n\t\t}\n\n\t\tthis.#events = props.$$events;\n\n\t\tfor (const key of Object.keys(this.#instance)) {\n\t\t\tif (key === '$set' || key === '$destroy' || key === '$on') continue;\n\t\t\tdefine_property(this, key, {\n\t\t\t\tget() {\n\t\t\t\t\treturn this.#instance[key];\n\t\t\t\t},\n\t\t\t\t/** @param {any} value */\n\t\t\t\tset(value) {\n\t\t\t\t\tthis.#instance[key] = value;\n\t\t\t\t},\n\t\t\t\tenumerable: true\n\t\t\t});\n\t\t}\n\n\t\tthis.#instance.$set = /** @param {Record<string, any>} next */ (next) => {\n\t\t\tObject.assign(props, next);\n\t\t};\n\n\t\tthis.#instance.$destroy = () => {\n\t\t\tunmount(this.#instance);\n\t\t};\n\t}\n\n\t/** @param {Record<string, any>} props */\n\t$set(props) {\n\t\tthis.#instance.$set(props);\n\t}\n\n\t/**\n\t * @param {string} event\n\t * @param {(...args: any[]) => any} callback\n\t * @returns {any}\n\t */\n\t$on(event, callback) {\n\t\tthis.#events[event] = this.#events[event] || [];\n\n\t\t/** @param {any[]} args */\n\t\tconst cb = (...args) => callback.call(this, ...args);\n\t\tthis.#events[event].push(cb);\n\t\treturn () => {\n\t\t\tthis.#events[event] = this.#events[event].filter(/** @param {any} fn */ (fn) => fn !== cb);\n\t\t};\n\t}\n\n\t$destroy() {\n\t\tthis.#instance.$destroy();\n\t}\n}\n\n/**\n * Runs the given function once immediately on the server, and works like `$effect.pre` on the client.\n *\n * @deprecated Use this only as a temporary solution to migrate your component code to Svelte 5.\n * @param {() => void | (() => void)} fn\n * @returns {void}\n */\nexport function run(fn) {\n\tuser_pre_effect(() => {\n\t\tfn();\n\t\tvar effect = /** @type {import('#client').Effect} */ (active_effect);\n\t\t// If the effect is immediately made dirty again, mark it as maybe dirty to emulate legacy behaviour\n\t\tif ((effect.f & DIRTY) !== 0) {\n\t\t\tlet filename = \"a file (we can't know which one)\";\n\t\t\tif (DEV) {\n\t\t\t\t// @ts-ignore\n\t\t\t\tfilename = dev_current_component_function?.[FILENAME] ?? filename;\n\t\t\t}\n\t\t\tw.legacy_recursive_reactive_block(filename);\n\t\t\tset_signal_status(effect, MAYBE_DIRTY);\n\t\t}\n\t});\n}\n\n/**\n * Function to mimic the multiple listeners available in svelte 4\n * @deprecated\n * @param {EventListener[]} handlers\n * @returns {EventListener}\n */\nexport function handlers(...handlers) {\n\treturn function (event) {\n\t\tconst { stopImmediatePropagation } = event;\n\t\tlet stopped = false;\n\n\t\tevent.stopImmediatePropagation = () => {\n\t\t\tstopped = true;\n\t\t\tstopImmediatePropagation.call(event);\n\t\t};\n\n\t\tconst errors = [];\n\n\t\tfor (const handler of handlers) {\n\t\t\ttry {\n\t\t\t\t// @ts-expect-error `this` is not typed\n\t\t\t\thandler?.call(this, event);\n\t\t\t} catch (e) {\n\t\t\t\terrors.push(e);\n\t\t\t}\n\n\t\t\tif (stopped) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor (let error of errors) {\n\t\t\tqueueMicrotask(() => {\n\t\t\t\tthrow error;\n\t\t\t});\n\t\t}\n\t};\n}\n\n/**\n * Function to create a `bubble` function that mimic the behavior of `on:click` without handler available in svelte 4.\n * @deprecated Use this only as a temporary solution to migrate your automatically delegated events in Svelte 5.\n */\nexport function createBubbler() {\n\tconst active_component_context = component_context;\n\tif (active_component_context === null) {\n\t\te.lifecycle_outside_component('createBubbler');\n\t}\n\n\treturn (/**@type {string}*/ type) => (/**@type {Event}*/ event) => {\n\t\tconst events = /** @type {Record<string, Function | Function[]>} */ (\n\t\t\tactive_component_context.s.$$events\n\t\t)?.[/** @type {any} */ (type)];\n\n\t\tif (events) {\n\t\t\tconst callbacks = is_array(events) ? events.slice() : [events];\n\t\t\tfor (const fn of callbacks) {\n\t\t\t\tfn.call(active_component_context.x, event);\n\t\t\t}\n\t\t\treturn !event.defaultPrevented;\n\t\t}\n\t\treturn true;\n\t};\n}\n\nexport {\n\tonce,\n\tpreventDefault,\n\tself,\n\tstopImmediatePropagation,\n\tstopPropagation,\n\ttrusted,\n\tpassive,\n\tnonpassive\n} from '../internal/client/dom/legacy/event-modifiers.js';\n","export const matchers = {};","<!-- This file is generated by @sveltejs/kit — do not edit it! -->\n<svelte:options runes={true} />\n<script>\n\timport { setContext, onMount, tick } from 'svelte';\n\timport { browser } from '$app/environment';\n\n\t// stores\n\tlet { stores, page, constructors, components = [], form, data_0 = null, data_1 = null } = $props();\n\n\tif (!browser) {\n\t\t// svelte-ignore state_referenced_locally\n\t\tsetContext('__svelte__', stores);\n\t}\n\n\tif (browser) {\n\t\t$effect.pre(() => stores.page.set(page));\n\t} else {\n\t\t// svelte-ignore state_referenced_locally\n\t\tstores.page.set(page);\n\t}\n\t$effect(() => {\n\t\tstores;page;constructors;components;form;data_0;data_1;\n\t\tstores.page.notify();\n\t});\n\n\tlet mounted = $state(false);\n\tlet navigated = $state(false);\n\tlet title = $state(null);\n\n\tonMount(() => {\n\t\tconst unsubscribe = stores.page.subscribe(() => {\n\t\t\tif (mounted) {\n\t\t\t\tnavigated = true;\n\t\t\t\ttick().then(() => {\n\t\t\t\t\ttitle = document.title || 'untitled page';\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\tmounted = true;\n\t\treturn unsubscribe;\n\t});\n\n\tconst Pyramid_1=$derived(constructors[1])\n</script>\n\n{#if constructors[1]}\n\t{@const Pyramid_0 = constructors[0]}\n\t\t\t\t\t\t\t<!-- svelte-ignore binding_property_non_reactive -->\n\t\t\t\t\t\t\t<Pyramid_0 bind:this={components[0]} data={data_0} {form} params={page.params}>\n\t\t\t\t\t\t\t\t<!-- svelte-ignore binding_property_non_reactive -->\n\t\t\t\t\t\t\t\t\t\t<Pyramid_1 bind:this={components[1]} data={data_1} {form} params={page.params} />\n\t\t\t\t\t\t\t</Pyramid_0>\n\n{:else}\n\t{@const Pyramid_0 = constructors[0]}\n\t<!-- svelte-ignore binding_property_non_reactive -->\n\t<Pyramid_0 bind:this={components[0]} data={data_0} {form} params={page.params} />\n\n{/if}\n\n{#if mounted}\n\t<div id=\"svelte-announcer\" aria-live=\"assertive\" aria-atomic=\"true\" style=\"position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px\">\n\t\t{#if navigated}\n\t\t\t{title}\n\t\t{/if}\n\t</div>\n{/if}","import { asClassComponent } from 'svelte/legacy';\nimport Root from './root.svelte';\nexport default asClassComponent(Root);","export { matchers } from './matchers.js';\n\nexport const nodes = [\n\t() => import('./nodes/0'),\n\t() => import('./nodes/1'),\n\t() => import('./nodes/2'),\n\t() => import('./nodes/3'),\n\t() => import('./nodes/4'),\n\t() => import('./nodes/5'),\n\t() => import('./nodes/6'),\n\t() => import('./nodes/7'),\n\t() => import('./nodes/8'),\n\t() => import('./nodes/9'),\n\t() => import('./nodes/10'),\n\t() => import('./nodes/11'),\n\t() => import('./nodes/12'),\n\t() => import('./nodes/13'),\n\t() => import('./nodes/14'),\n\t() => import('./nodes/15'),\n\t() => import('./nodes/16'),\n\t() => import('./nodes/17'),\n\t() => import('./nodes/18'),\n\t() => import('./nodes/19'),\n\t() => import('./nodes/20'),\n\t() => import('./nodes/21'),\n\t() => import('./nodes/22'),\n\t() => import('./nodes/23'),\n\t() => import('./nodes/24'),\n\t() => import('./nodes/25'),\n\t() => import('./nodes/26'),\n\t() => import('./nodes/27'),\n\t() => import('./nodes/28'),\n\t() => import('./nodes/29')\n];\n\nexport const server_loads = [];\n\nexport const dictionary = {\n\t\t\"/\": [2],\n\t\t\"/accept-invitation\": [3],\n\t\t\"/ai-traces\": [4],\n\t\t\"/ai-traces/[traceName]\": [5],\n\t\t\"/ai-traces/[traceName]/[traceId]\": [6],\n\t\t\"/auth/callback\": [7],\n\t\t\"/connection\": [8],\n\t\t\"/endpoints\": [9],\n\t\t\"/endpoints/[endpoint]\": [10],\n\t\t\"/endpoints/[endpoint]/[endpointId]\": [11],\n\t\t\"/finish-setup\": [12],\n\t\t\"/forgot-password\": [13],\n\t\t\"/issues\": [14],\n\t\t\"/issues/[exceptionHash]\": [15],\n\t\t\"/issues/[exceptionHash]/events\": [17],\n\t\t\"/issues/[exceptionHash]/[exceptionId]\": [16],\n\t\t\"/login\": [18],\n\t\t\"/logs\": [19],\n\t\t\"/metrics\": [20],\n\t\t\"/notifications\": [21],\n\t\t\"/register\": [22],\n\t\t\"/reset-password\": [23],\n\t\t\"/sessions\": [24],\n\t\t\"/sessions/[sessionId]\": [25],\n\t\t\"/settings\": [26],\n\t\t\"/tasks\": [27],\n\t\t\"/tasks/[task]\": [28],\n\t\t\"/tasks/[task]/[taskId]\": [29]\n\t};\n\nexport const hooks = {\n\thandleError: (({ error }) => { console.error(error) }),\n\t\n\treroute: (() => {}),\n\ttransport: {}\n};\n\nexport const decoders = Object.fromEntries(Object.entries(hooks.transport).map(([k, v]) => [k, v.decode]));\nexport const encoders = Object.fromEntries(Object.entries(hooks.transport).map(([k, v]) => [k, v.encode]));\n\nexport const hash = false;\n\nexport const decode = (type, value) => decoders[type](value);\n\nexport { default as root } from '../root.js';"],"file":"app.BGmAdRKN.js"}
\ No newline at end of file
+{"version":3,"mappings":";2ZAgDO,SAASA,GAAiBC,EAAW,CAE3C,OAAO,cAAcC,EAAiB,CAErC,YAAYC,EAAS,CACpB,MAAM,CACL,UAAAF,EACA,GAAGE,CACP,CAAI,CACF,CACF,CACA,CAOA,MAAMD,EAAiB,CAEtBE,GAGAC,GAOA,YAAYF,EAAS,CACpB,IAAIG,EAAU,IAAI,IAMdC,EAAa,CAACC,EAAKC,IAAU,CAChC,IAAIC,EAAIC,EAAeF,EAAO,GAAO,EAAK,EAC1C,OAAAH,EAAQ,IAAIE,EAAKE,CAAC,EACXA,CACR,EAKA,MAAME,EAAQ,IAAI,MACjB,CAAE,GAAIT,EAAQ,OAAS,GAAK,SAAU,EAAE,EACxC,CACC,IAAIU,EAAQC,EAAM,CACjB,OAAOC,EAAIT,EAAQ,IAAIQ,CAAI,GAAKP,EAAWO,EAAM,QAAQ,IAAID,EAAQC,CAAI,CAAC,CAAC,CAC5E,EACA,IAAID,EAAQC,EAAM,CAEjB,OAAIA,IAASE,EAAqB,IAElCD,EAAIT,EAAQ,IAAIQ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,EAAE,IAAI,CAAC,CAACG,EAAGC,CAAC,IAAM,CAACD,EAAGC,EAAE,MAAM,CAAC,CAAC,EAE5FE,GAAO,GAEPC,GAAS,CAACC,EAAMjE,IAAU2D,GAASM,CAAI,EAAEjE,CAAK","names":["asClassComponent","component","Svelte4Component","options","#events","#instance","sources","add_source","key","value","s","mutable_source","props","target","prop","get","LEGACY_PROPS","set","hydrate","mount","flushSync","define_property","next","unmount","event","callback","cb","args","fn","matchers","components","$.prop","$$props","data_0","data_1","$.user_pre_effect","$.user_effect","mounted","$.state","navigated","title","onMount","unsubscribe","$.get","$.set","tick","Pyramid_1","Pyramid_0","Pyramid_0_1","$$anchor","Pyramid_1_1","$$value","Pyramid_0_2","$$render","consequent","alternate","div","root_4","consequent_1","consequent_2","root","Root","nodes","__vitePreload","server_loads","dictionary","hooks","error","decoders","k","v","encoders","hash","decode","type"],"ignoreList":[0],"sources":["../../../../../../node_modules/svelte/src/legacy/legacy-client.js","../../../../../generated/client-optimized/matchers.js","../../../../../generated/root.svelte","../../../../../generated/root.js","../../../../../generated/client-optimized/app.js"],"sourcesContent":["/** @import { ComponentConstructorOptions, ComponentType, SvelteComponent, Component } from 'svelte' */\nimport { DIRTY, LEGACY_PROPS, MAYBE_DIRTY } from '../internal/client/constants.js';\nimport { user_pre_effect } from '../internal/client/reactivity/effects.js';\nimport { mutable_source, set } from '../internal/client/reactivity/sources.js';\nimport { hydrate, mount, unmount } from '../internal/client/render.js';\nimport { active_effect, get, set_signal_status } from '../internal/client/runtime.js';\nimport { flushSync } from '../internal/client/reactivity/batch.js';\nimport { define_property, is_array } from '../internal/shared/utils.js';\nimport * as e from '../internal/client/errors.js';\nimport * as w from '../internal/client/warnings.js';\nimport { DEV } from 'esm-env';\nimport { FILENAME } from '../constants.js';\nimport { component_context, dev_current_component_function } from '../internal/client/context.js';\nimport { async_mode_flag } from '../internal/flags/index.js';\n\n/**\n * Takes the same options as a Svelte 4 component and the component function and returns a Svelte 4 compatible component.\n *\n * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.\n *\n * @template {Record<string, any>} Props\n * @template {Record<string, any>} Exports\n * @template {Record<string, any>} Events\n * @template {Record<string, any>} Slots\n *\n * @param {ComponentConstructorOptions<Props> & {\n * \tcomponent: ComponentType<SvelteComponent<Props, Events, Slots>> | Component<Props>;\n * }} options\n * @returns {SvelteComponent<Props, Events, Slots> & Exports}\n */\nexport function createClassComponent(options) {\n\t// @ts-expect-error $$prop_def etc are not actually defined\n\treturn new Svelte4Component(options);\n}\n\n/**\n * Takes the component function and returns a Svelte 4 compatible component constructor.\n *\n * @deprecated Use this only as a temporary solution to migrate your imperative component code to Svelte 5.\n *\n * @template {Record<string, any>} Props\n * @template {Record<string, any>} Exports\n * @template {Record<string, any>} Events\n * @template {Record<string, any>} Slots\n *\n * @param {SvelteComponent<Props, Events, Slots> | Component<Props>} component\n * @returns {ComponentType<SvelteComponent<Props, Events, Slots> & Exports>}\n */\nexport function asClassComponent(component) {\n\t// @ts-expect-error $$prop_def etc are not actually defined\n\treturn class extends Svelte4Component {\n\t\t/** @param {any} options */\n\t\tconstructor(options) {\n\t\t\tsuper({\n\t\t\t\tcomponent,\n\t\t\t\t...options\n\t\t\t});\n\t\t}\n\t};\n}\n\n/**\n * Support using the component as both a class and function during the transition period\n * @typedef {{new (o: ComponentConstructorOptions): SvelteComponent;(...args: Parameters<Component<Record<string, any>>>): ReturnType<Component<Record<string, any>, Record<string, any>>>;}} LegacyComponentType\n */\n\nclass Svelte4Component {\n\t/** @type {any} */\n\t#events;\n\n\t/** @type {Record<string, any>} */\n\t#instance;\n\n\t/**\n\t * @param {ComponentConstructorOptions & {\n\t * component: any;\n\t * }} options\n\t */\n\tconstructor(options) {\n\t\tvar sources = new Map();\n\n\t\t/**\n\t\t * @param {string | symbol} key\n\t\t * @param {unknown} value\n\t\t */\n\t\tvar add_source = (key, value) => {\n\t\t\tvar s = mutable_source(value, false, false);\n\t\t\tsources.set(key, s);\n\t\t\treturn s;\n\t\t};\n\n\t\t// Replicate coarse-grained props through a proxy that has a version source for\n\t\t// each property, which is incremented on updates to the property itself. Do not\n\t\t// use our $state proxy because that one has fine-grained reactivity.\n\t\tconst props = new Proxy(\n\t\t\t{ ...(options.props || {}), $$events: {} },\n\t\t\t{\n\t\t\t\tget(target, prop) {\n\t\t\t\t\treturn get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));\n\t\t\t\t},\n\t\t\t\thas(target, prop) {\n\t\t\t\t\t// Necessary to not throw \"invalid binding\" validation errors on the component side\n\t\t\t\t\tif (prop === LEGACY_PROPS) return true;\n\n\t\t\t\t\tget(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));\n\t\t\t\t\treturn Reflect.has(target, prop);\n\t\t\t\t},\n\t\t\t\tset(target, prop, value) {\n\t\t\t\t\tset(sources.get(prop) ?? add_source(prop, value), value);\n\t\t\t\t\treturn Reflect.set(target, prop, value);\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\n\t\tthis.#instance = (options.hydrate ? hydrate : mount)(options.component, {\n\t\t\ttarget: options.target,\n\t\t\tanchor: options.anchor,\n\t\t\tprops,\n\t\t\tcontext: options.context,\n\t\t\tintro: options.intro ?? false,\n\t\t\trecover: options.recover\n\t\t});\n\n\t\t// We don't flushSync for custom element wrappers or if the user doesn't want it,\n\t\t// or if we're in async mode since `flushSync()` will fail\n\t\tif (!async_mode_flag && (!options?.props?.$$host || options.sync === false)) {\n\t\t\tflushSync();\n\t\t}\n\n\t\tthis.#events = props.$$events;\n\n\t\tfor (const key of Object.keys(this.#instance)) {\n\t\t\tif (key === '$set' || key === '$destroy' || key === '$on') continue;\n\t\t\tdefine_property(this, key, {\n\t\t\t\tget() {\n\t\t\t\t\treturn this.#instance[key];\n\t\t\t\t},\n\t\t\t\t/** @param {any} value */\n\t\t\t\tset(value) {\n\t\t\t\t\tthis.#instance[key] = value;\n\t\t\t\t},\n\t\t\t\tenumerable: true\n\t\t\t});\n\t\t}\n\n\t\tthis.#instance.$set = /** @param {Record<string, any>} next */ (next) => {\n\t\t\tObject.assign(props, next);\n\t\t};\n\n\t\tthis.#instance.$destroy = () => {\n\t\t\tunmount(this.#instance);\n\t\t};\n\t}\n\n\t/** @param {Record<string, any>} props */\n\t$set(props) {\n\t\tthis.#instance.$set(props);\n\t}\n\n\t/**\n\t * @param {string} event\n\t * @param {(...args: any[]) => any} callback\n\t * @returns {any}\n\t */\n\t$on(event, callback) {\n\t\tthis.#events[event] = this.#events[event] || [];\n\n\t\t/** @param {any[]} args */\n\t\tconst cb = (...args) => callback.call(this, ...args);\n\t\tthis.#events[event].push(cb);\n\t\treturn () => {\n\t\t\tthis.#events[event] = this.#events[event].filter(/** @param {any} fn */ (fn) => fn !== cb);\n\t\t};\n\t}\n\n\t$destroy() {\n\t\tthis.#instance.$destroy();\n\t}\n}\n\n/**\n * Runs the given function once immediately on the server, and works like `$effect.pre` on the client.\n *\n * @deprecated Use this only as a temporary solution to migrate your component code to Svelte 5.\n * @param {() => void | (() => void)} fn\n * @returns {void}\n */\nexport function run(fn) {\n\tuser_pre_effect(() => {\n\t\tfn();\n\t\tvar effect = /** @type {import('#client').Effect} */ (active_effect);\n\t\t// If the effect is immediately made dirty again, mark it as maybe dirty to emulate legacy behaviour\n\t\tif ((effect.f & DIRTY) !== 0) {\n\t\t\tlet filename = \"a file (we can't know which one)\";\n\t\t\tif (DEV) {\n\t\t\t\t// @ts-ignore\n\t\t\t\tfilename = dev_current_component_function?.[FILENAME] ?? filename;\n\t\t\t}\n\t\t\tw.legacy_recursive_reactive_block(filename);\n\t\t\tset_signal_status(effect, MAYBE_DIRTY);\n\t\t}\n\t});\n}\n\n/**\n * Function to mimic the multiple listeners available in svelte 4\n * @deprecated\n * @param {EventListener[]} handlers\n * @returns {EventListener}\n */\nexport function handlers(...handlers) {\n\treturn function (event) {\n\t\tconst { stopImmediatePropagation } = event;\n\t\tlet stopped = false;\n\n\t\tevent.stopImmediatePropagation = () => {\n\t\t\tstopped = true;\n\t\t\tstopImmediatePropagation.call(event);\n\t\t};\n\n\t\tconst errors = [];\n\n\t\tfor (const handler of handlers) {\n\t\t\ttry {\n\t\t\t\t// @ts-expect-error `this` is not typed\n\t\t\t\thandler?.call(this, event);\n\t\t\t} catch (e) {\n\t\t\t\terrors.push(e);\n\t\t\t}\n\n\t\t\tif (stopped) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfor (let error of errors) {\n\t\t\tqueueMicrotask(() => {\n\t\t\t\tthrow error;\n\t\t\t});\n\t\t}\n\t};\n}\n\n/**\n * Function to create a `bubble` function that mimic the behavior of `on:click` without handler available in svelte 4.\n * @deprecated Use this only as a temporary solution to migrate your automatically delegated events in Svelte 5.\n */\nexport function createBubbler() {\n\tconst active_component_context = component_context;\n\tif (active_component_context === null) {\n\t\te.lifecycle_outside_component('createBubbler');\n\t}\n\n\treturn (/**@type {string}*/ type) => (/**@type {Event}*/ event) => {\n\t\tconst events = /** @type {Record<string, Function | Function[]>} */ (\n\t\t\tactive_component_context.s.$$events\n\t\t)?.[/** @type {any} */ (type)];\n\n\t\tif (events) {\n\t\t\tconst callbacks = is_array(events) ? events.slice() : [events];\n\t\t\tfor (const fn of callbacks) {\n\t\t\t\tfn.call(active_component_context.x, event);\n\t\t\t}\n\t\t\treturn !event.defaultPrevented;\n\t\t}\n\t\treturn true;\n\t};\n}\n\nexport {\n\tonce,\n\tpreventDefault,\n\tself,\n\tstopImmediatePropagation,\n\tstopPropagation,\n\ttrusted,\n\tpassive,\n\tnonpassive\n} from '../internal/client/dom/legacy/event-modifiers.js';\n","export const matchers = {};","<!-- This file is generated by @sveltejs/kit — do not edit it! -->\n<svelte:options runes={true} />\n<script>\n\timport { setContext, onMount, tick } from 'svelte';\n\timport { browser } from '$app/environment';\n\n\t// stores\n\tlet { stores, page, constructors, components = [], form, data_0 = null, data_1 = null } = $props();\n\n\tif (!browser) {\n\t\t// svelte-ignore state_referenced_locally\n\t\tsetContext('__svelte__', stores);\n\t}\n\n\tif (browser) {\n\t\t$effect.pre(() => stores.page.set(page));\n\t} else {\n\t\t// svelte-ignore state_referenced_locally\n\t\tstores.page.set(page);\n\t}\n\t$effect(() => {\n\t\tstores;page;constructors;components;form;data_0;data_1;\n\t\tstores.page.notify();\n\t});\n\n\tlet mounted = $state(false);\n\tlet navigated = $state(false);\n\tlet title = $state(null);\n\n\tonMount(() => {\n\t\tconst unsubscribe = stores.page.subscribe(() => {\n\t\t\tif (mounted) {\n\t\t\t\tnavigated = true;\n\t\t\t\ttick().then(() => {\n\t\t\t\t\ttitle = document.title || 'untitled page';\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\tmounted = true;\n\t\treturn unsubscribe;\n\t});\n\n\tconst Pyramid_1=$derived(constructors[1])\n</script>\n\n{#if constructors[1]}\n\t{@const Pyramid_0 = constructors[0]}\n\t\t\t\t\t\t\t<!-- svelte-ignore binding_property_non_reactive -->\n\t\t\t\t\t\t\t<Pyramid_0 bind:this={components[0]} data={data_0} {form} params={page.params}>\n\t\t\t\t\t\t\t\t<!-- svelte-ignore binding_property_non_reactive -->\n\t\t\t\t\t\t\t\t\t\t<Pyramid_1 bind:this={components[1]} data={data_1} {form} params={page.params} />\n\t\t\t\t\t\t\t</Pyramid_0>\n\n{:else}\n\t{@const Pyramid_0 = constructors[0]}\n\t<!-- svelte-ignore binding_property_non_reactive -->\n\t<Pyramid_0 bind:this={components[0]} data={data_0} {form} params={page.params} />\n\n{/if}\n\n{#if mounted}\n\t<div id=\"svelte-announcer\" aria-live=\"assertive\" aria-atomic=\"true\" style=\"position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px\">\n\t\t{#if navigated}\n\t\t\t{title}\n\t\t{/if}\n\t</div>\n{/if}","import { asClassComponent } from 'svelte/legacy';\nimport Root from './root.svelte';\nexport default asClassComponent(Root);","export { matchers } from './matchers.js';\n\nexport const nodes = [\n\t() => import('./nodes/0'),\n\t() => import('./nodes/1'),\n\t() => import('./nodes/2'),\n\t() => import('./nodes/3'),\n\t() => import('./nodes/4'),\n\t() => import('./nodes/5'),\n\t() => import('./nodes/6'),\n\t() => import('./nodes/7'),\n\t() => import('./nodes/8'),\n\t() => import('./nodes/9'),\n\t() => import('./nodes/10'),\n\t() => import('./nodes/11'),\n\t() => import('./nodes/12'),\n\t() => import('./nodes/13'),\n\t() => import('./nodes/14'),\n\t() => import('./nodes/15'),\n\t() => import('./nodes/16'),\n\t() => import('./nodes/17'),\n\t() => import('./nodes/18'),\n\t() => import('./nodes/19'),\n\t() => import('./nodes/20'),\n\t() => import('./nodes/21'),\n\t() => import('./nodes/22'),\n\t() => import('./nodes/23'),\n\t() => import('./nodes/24'),\n\t() => import('./nodes/25'),\n\t() => import('./nodes/26'),\n\t() => import('./nodes/27'),\n\t() => import('./nodes/28'),\n\t() => import('./nodes/29')\n];\n\nexport const server_loads = [];\n\nexport const dictionary = {\n\t\t\"/\": [2],\n\t\t\"/accept-invitation\": [3],\n\t\t\"/ai-traces\": [4],\n\t\t\"/ai-traces/[traceName]\": [5],\n\t\t\"/ai-traces/[traceName]/[traceId]\": [6],\n\t\t\"/auth/callback\": [7],\n\t\t\"/connection\": [8],\n\t\t\"/endpoints\": [9],\n\t\t\"/endpoints/[endpoint]\": [10],\n\t\t\"/endpoints/[endpoint]/[endpointId]\": [11],\n\t\t\"/finish-setup\": [12],\n\t\t\"/forgot-password\": [13],\n\t\t\"/issues\": [14],\n\t\t\"/issues/[exceptionHash]\": [15],\n\t\t\"/issues/[exceptionHash]/events\": [17],\n\t\t\"/issues/[exceptionHash]/[exceptionId]\": [16],\n\t\t\"/login\": [18],\n\t\t\"/logs\": [19],\n\t\t\"/metrics\": [20],\n\t\t\"/notifications\": [21],\n\t\t\"/register\": [22],\n\t\t\"/reset-password\": [23],\n\t\t\"/sessions\": [24],\n\t\t\"/sessions/[sessionId]\": [25],\n\t\t\"/settings\": [26],\n\t\t\"/tasks\": [27],\n\t\t\"/tasks/[task]\": [28],\n\t\t\"/tasks/[task]/[taskId]\": [29]\n\t};\n\nexport const hooks = {\n\thandleError: (({ error }) => { console.error(error) }),\n\t\n\treroute: (() => {}),\n\ttransport: {}\n};\n\nexport const decoders = Object.fromEntries(Object.entries(hooks.transport).map(([k, v]) => [k, v.decode]));\nexport const encoders = Object.fromEntries(Object.entries(hooks.transport).map(([k, v]) => [k, v.encode]));\n\nexport const hash = false;\n\nexport const decode = (type, value) => decoders[type](value);\n\nexport { default as root } from '../root.js';"],"file":"app.BLwhCE1c.js"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/entry/start.DJzipVz-.js b/backend/static/frontend/_app/immutable/entry/start.DJzipVz-.js
deleted file mode 100644
index c6417f87..00000000
--- a/backend/static/frontend/_app/immutable/entry/start.DJzipVz-.js
+++ /dev/null
@@ -1 +0,0 @@
-import{l as o,c as r}from"../chunks/xR3pK9Ey.js";export{o as load_css,r as start};
diff --git a/backend/static/frontend/_app/immutable/entry/start.DJzipVz-.js.map b/backend/static/frontend/_app/immutable/entry/start.DJzipVz-.js.map
deleted file mode 100644
index eee0cad5..00000000
--- a/backend/static/frontend/_app/immutable/entry/start.DJzipVz-.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"start.DJzipVz-.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/entry/start.VR9kvLf_.js b/backend/static/frontend/_app/immutable/entry/start.VR9kvLf_.js
new file mode 100644
index 00000000..5fc7464e
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/entry/start.VR9kvLf_.js
@@ -0,0 +1 @@
+import{l as o,c as r}from"../chunks/BIF4_51j.js";export{o as load_css,r as start};
diff --git a/backend/static/frontend/_app/immutable/entry/start.VR9kvLf_.js.map b/backend/static/frontend/_app/immutable/entry/start.VR9kvLf_.js.map
new file mode 100644
index 00000000..18df1d84
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/entry/start.VR9kvLf_.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"start.VR9kvLf_.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/0.BWU19a-p.js b/backend/static/frontend/_app/immutable/nodes/0.BWU19a-p.js
deleted file mode 100644
index aa3be6d4..00000000
--- a/backend/static/frontend/_app/immutable/nodes/0.BWU19a-p.js
+++ /dev/null
@@ -1 +0,0 @@
-import{p as f,i as w,b as $e,s as ne,r as Y,l as Aa}from"../chunks/DMODTt3n.js";import{o as Zt}from"../chunks/Dwk6gGSK.js";import{a4 as Ea,G as Ba,bv as Na,B as Ht,a7 as ja,ae as Fa,au as ea,ac as ta,a6 as aa,ad as La,p as L,f as y,e as P,b as a,r as x,k as Le,a as H,bu as va,b9 as Tt,_ as Ha,Z as Ut,a1 as ga,h as ke,v as ha,F as vt,i as _,g as t,u as p,C as Et,s as k,j as qt,m as S,o as F,d as c,c as s,q as za,t as Re,l as st,w as Dt,K as Qt,bw as Ra,n as Ge}from"../chunks/B2WdN-7r.js";import{e as wt,i as Yt}from"../chunks/CMyj8Fzw.js";import{c as b}from"../chunks/BAcG0-U_.js";import{a as Ka,g as zt}from"../chunks/xR3pK9Ey.js";import{h as Ze,j as ft,S as Va,p as Je,i as Wa,e as Ua,g as Ya,k as Ga,l as Xa,b as It,t as Za}from"../chunks/D6S6XYVy.js";import{t as Gt,i as qa,a as Qa}from"../chunks/BnbBSyGl.js";import{c as ct,a as ut,s as be,e as Rt,b as Xe,S as Ja,d as Ke,t as ma}from"../chunks/DH0tcjsQ.js";import{c as $a,T as er,a as tr,b as ar}from"../chunks/2aB7Aq1L.js";import{c as Jt,b as qe,m as yt}from"../chunks/DWAABZDo.js";import{B as gt}from"../chunks/C1aqwstW.js";import{D as rr,f as nr,a as or,b as sr,c as ir,d as lr}from"../chunks/m9wcLEvn.js";import{at as dr,n as bt,p as cr,r as ur,s as fr,T as vr,t as ra,b as gr}from"../chunks/CAQEdoSh.js";import{X as hr}from"../chunks/CeufXW8P.js";import{p as nt}from"../chunks/BG_QVry4.js";import{c as na}from"../chunks/CyOblkUv.js";import{I as et}from"../chunks/Bv_PbELb.js";import{I as oa}from"../chunks/D8CWOmhn.js";import{L as Ct}from"../chunks/Ba_8xUad.js";import{F as Xt}from"../chunks/DwGghOhY.js";import{F as mr}from"../chunks/1yZ_tTJD.js";import{C as _r}from"../chunks/BISlaXSK.js";import{C as br}from"../chunks/lk4DWutj.js";import{I as yr,s as wr}from"../chunks/CQWqWi6p.js";import{D as xr,a as pr,b as Pr,c as Kt}from"../chunks/BLztqFjH.js";import{D as sa}from"../chunks/DGGSyx8c.js";import{C as Mr}from"../chunks/RIbCUOxE.js";import{P as kr}from"../chunks/BUQRDnoX.js";import{C as Sr}from"../chunks/DUJ_Z9AF.js";function Ir(i,e){let n=null,l=Ht;var r;if(Ht){n=La;for(var d=ja(document.head);d!==null&&(d.nodeType!==Fa||d.data!==i);)d=ea(d);if(d===null)ta(!1);else{var o=ea(d);d.remove(),aa(o)}}Ht||(r=document.head.appendChild(Ea()));try{Ba(()=>e(r),Na)}finally{l&&(ta(!0),aa(n))}}const Cr=!1,Tr=!0,Us=Object.freeze(Object.defineProperty({__proto__:null,prerender:Tr,ssr:Cr},Symbol.toStringTag,{value:"Module"})),Dr=Array(12).fill(0);var Or=y('<div class="sonner-loading-bar"></div>'),Ar=y('<div><div class="sonner-spinner"></div></div>');function Er(i,e){L(e,!0);var n=Ar(),l=P(n);wt(l,23,()=>Dr,(r,d)=>`spinner-bar-${d}`,(r,d)=>{var o=Or();a(r,o)}),x(l),x(n),Le(r=>{ut(n,1,r),be(n,"data-visible",e.visible)},[()=>ct(["sonner-loading-wrapper",e.class].filter(Boolean).join(" "))]),a(i,n),H()}const Br=typeof window<"u"?window:void 0;function Nr(i){let e=i.activeElement;for(;e?.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}class jr{#t;#e;constructor(e,n){this.#t=e,this.#e=va(n)}get current(){return this.#e(),this.#t()}}const Fr=/\(.+\)/,Lr=new Set(["all","print","screen","and","or","not","only"]);class Hr extends jr{constructor(e,n){let l=Fr.test(e)||e.split(/[\s,]+/).some(d=>Lr.has(d.trim()))?e:`(${e})`;const r=window.matchMedia(l);super(()=>r.matches,d=>Tt(r,"change",d))}}class zr{#t;#e;constructor(e={}){const{window:n=Br,document:l=n?.document}=e;n!==void 0&&(this.#t=l,this.#e=va(r=>{const d=Tt(n,"focusin",r),o=Tt(n,"focusout",r);return()=>{d(),o()}}))}get current(){return this.#e?.(),this.#t?Nr(this.#t):null}}new zr;class Rr{#t;#e;constructor(e){this.#t=e,this.#e=Symbol(e)}get key(){return this.#e}exists(){return Ha(this.#e)}get(){const e=Ut(this.#e);if(e===void 0)throw new Error(`Context "${this.#t}" not found`);return e}getOr(e){const n=Ut(this.#e);return n===void 0?e:n}set(e){return ga(this.#e,e)}}const Kr=new Rr("<Toaster/>");function Ot(i){return i.label!==void 0}function Vr(){let i=ke(ha(typeof document<"u"?document.hidden:!1));return vt(()=>Tt(document,"visibilitychange",()=>{_(i,document.hidden,!0)})),{get current(){return t(i)}}}const ia=4e3,Wr=14,Ur=45,Yr=200,Gr=.05,Xr={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function Zr(i){const[e,n]=i.split("-"),l=[];return e&&l.push(e),n&&l.push(n),l}function la(i){return 1/(1.5+Math.abs(i)/20)}var qr=y("<div><!></div>"),Qr=y('<button data-close-button=""><!></button>'),Jr=y('<div data-icon=""><!> <!></div>'),$r=y('<div data-description=""><!></div>'),en=y('<button data-button="" data-cancel=""> </button>'),tn=y('<button data-button=""> </button>'),an=y('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),rn=y('<li data-sonner-toast=""><!> <!></li>');function nn(i,e){L(e,!0);const n=C=>{var W=c(),ee=s(W);{var G=q=>{var Ce=qr(),Qe=P(Ce);S(Qe,()=>e.loadingIcon),x(Ce),Le(ot=>{ut(Ce,1,ot),be(Ce,"data-visible",t(m)==="loading")},[()=>ct(ft(t(Q)?.loader,e.toast?.classes?.loader,"sonner-loader"))]),a(q,Ce)},ae=q=>{{let Ce=p(()=>ft(t(Q)?.loader,e.toast.classes?.loader)),Qe=p(()=>t(m)==="loading");Er(q,{get class(){return t(Ce)},get visible(){return t(Qe)}})}};w(ee,q=>{e.loadingIcon?q(G):q(ae,!1)})}a(C,W)};let l=f(e,"cancelButtonStyle",3,""),r=f(e,"actionButtonStyle",3,""),d=f(e,"descriptionClass",3,""),o=f(e,"unstyled",3,!1),u=f(e,"defaultRichColors",3,!1);const B={...Xr};let A=ke(!1),D=ke(!1),de=ke(!1),z=ke(!1),O=ke(!1),g=ke(0),j=ke(0),Te=e.toast.duration||e.duration||ia,oe=ke(void 0),K=ke(null),ue=ke(null);const ye=p(()=>e.index===0),_e=p(()=>e.index+1<=e.visibleToasts),m=p(()=>e.toast.type),R=p(()=>e.toast.dismissable!==!1),Z=p(()=>e.toast.class||""),we=p(()=>e.toast.descriptionClass||""),ve=p(()=>Ze.heights.findIndex(C=>C.toastId===e.toast.id)||0),Ee=p(()=>e.toast.closeButton??e.closeButton),Se=p(()=>e.toast.duration??e.duration??ia);let se=null;const pe=p(()=>e.position.split("-")),Be=p(()=>Ze.heights.reduce((C,W,ee)=>ee>=t(ve)?C:C+W.height,0)),De=Vr(),xe=p(()=>e.toast.invert||e.invert),J=p(()=>t(m)==="loading"),Q=p(()=>({...B,...e.classes})),ge=p(()=>e.toast.title),$=p(()=>e.toast.description);let he=ke(0),me=ke(0);const v=p(()=>Math.round(t(ve)*Wr+t(Be)));vt(()=>{t(ge),t($);let C;e.expanded||e.expandByDefault?C=1:C=1-e.index*Gr;const W=Et(()=>t(oe));if(W===void 0)return;W.style.setProperty("height","auto");const ee=W.offsetHeight,G=W.getBoundingClientRect().height,ae=Math.round(G/C+Number.EPSILON&100)/100;W.style.removeProperty("height");let q;Math.abs(ae-ee)<1?q=ae:q=ee,_(j,q,!0),Ze.setHeight({toastId:e.toast.id,height:q})});function U(){_(D,!0),_(g,t(v),!0),Ze.removeHeight(e.toast.id),setTimeout(()=>{Ze.remove(e.toast.id)},Yr)}let V;const ie=p(()=>e.toast.promise&&t(m)==="loading"||e.toast.duration===Number.POSITIVE_INFINITY);function T(){_(he,new Date().getTime(),!0),V=setTimeout(()=>{e.toast.onAutoClose?.(e.toast),U()},Te)}function le(){if(t(me)<t(he)){const C=new Date().getTime()-t(he);Te=Te-C}_(me,new Date().getTime(),!0)}vt(()=>{e.toast.updated&&(clearTimeout(V),Te=t(Se),T())}),vt(()=>(t(ie)||(e.expanded||e.interacting||De.current?le():T()),()=>clearTimeout(V))),Zt(()=>{_(A,!0);const C=t(oe)?.getBoundingClientRect().height;return _(j,C,!0),Ze.setHeight({toastId:e.toast.id,height:C}),()=>{Ze.removeHeight(e.toast.id)}}),vt(()=>{e.toast.delete&&Et(()=>{U(),e.toast.onDismiss?.(e.toast)})});const at=C=>{if(t(J))return;_(g,t(v),!0);const W=C.target;W.setPointerCapture(C.pointerId),W.tagName!=="BUTTON"&&(_(de,!0),se={x:C.clientX,y:C.clientY})},Pe=()=>{if(t(z)||!t(R))return;se=null;const C=Number(t(oe)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),W=Number(t(oe)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),ee=new Date().getTime()-0,G=t(K)==="x"?C:W,ae=Math.abs(G)/ee;if(Math.abs(G)>=Ur||ae>.11){_(g,t(v),!0),e.toast.onDismiss?.(e.toast),t(K)==="x"?_(ue,C>0?"right":"left",!0):_(ue,W>0?"down":"up",!0),U(),_(z,!0);return}else t(oe)?.style.setProperty("--swipe-amount-x","0px"),t(oe)?.style.setProperty("--swipe-amount-y","0px");_(O,!1),_(de,!1),_(K,null)},Oe=C=>{if(!se||!t(R)||(window.getSelection()?.toString().length??-1)>0)return;const ee=C.clientY-se.y,G=C.clientX-se.x,ae=e.swipeDirections??Zr(e.position);!t(K)&&(Math.abs(G)>1||Math.abs(ee)>1)&&_(K,Math.abs(G)>Math.abs(ee)?"x":"y",!0);let q={x:0,y:0};if(t(K)==="y"){if(ae.includes("top")||ae.includes("bottom"))if(ae.includes("top")&&ee<0||ae.includes("bottom")&&ee>0)q.y=ee;else{const Ce=ee*la(ee);q.y=Math.abs(Ce)<Math.abs(ee)?Ce:ee}}else if(t(K)==="x"&&(ae.includes("left")||ae.includes("right")))if(ae.includes("left")&&G<0||ae.includes("right")&&G>0)q.x=G;else{const Ce=G*la(G);q.x=Math.abs(Ce)<Math.abs(G)?Ce:G}(Math.abs(q.x)>0||Math.abs(q.y)>0)&&_(O,!0),t(oe)?.style.setProperty("--swipe-amount-x",`${q.x}px`),t(oe)?.style.setProperty("--swipe-amount-y",`${q.y}px`)},Me=()=>{_(de,!1),_(K,null),se=null},E=p(()=>e.toast.icon?e.toast.icon:t(m)==="success"?e.successIcon:t(m)==="error"?e.errorIcon:t(m)==="warning"?e.warningIcon:t(m)==="info"?e.infoIcon:t(m)==="loading"?e.loadingIcon:null);var M=rn();be(M,"tabindex",0);let Ie;M.__pointermove=Oe,M.__pointerup=Pe,M.__pointerdown=at;var rt=P(M);{var it=C=>{var W=Qr();W.__click=()=>{t(J)||!t(R)||(U(),e.toast.onDismiss?.(e.toast))};var ee=P(W);S(ee,()=>e.closeIcon??F),x(W),Le(G=>{be(W,"aria-label",e.closeButtonAriaLabel),be(W,"data-disabled",t(J)),ut(W,1,G)},[()=>ct(ft(t(Q)?.closeButton,e.toast?.classes?.closeButton))]),a(C,W)};w(rt,C=>{t(Ee)&&!e.toast.component&&t(m)!=="loading"&&e.closeIcon!==null&&C(it)})}var tt=k(rt,2);{var We=C=>{const W=p(()=>e.toast.component);var ee=c(),G=s(ee);b(G,()=>t(W),(ae,q)=>{q(ae,ne(()=>e.toast.componentProps,{closeToast:U}))}),a(C,ee)},lt=C=>{var W=an(),ee=s(W);{var G=X=>{var h=Jr(),N=P(h);{var fe=re=>{var Fe=c(),Ye=s(Fe);{var He=Ve=>{var ze=c(),xt=s(ze);b(xt,()=>e.toast.icon,(pt,Pt)=>{Pt(pt,{})}),a(Ve,ze)},Ne=Ve=>{n(Ve)};w(Ye,Ve=>{e.toast.icon?Ve(He):Ve(Ne,!1)})}a(re,Fe)};w(N,re=>{(e.toast.promise||t(m)==="loading")&&re(fe)})}var je=k(N,2);{var I=re=>{var Fe=c(),Ye=s(Fe);{var He=Ve=>{var ze=c(),xt=s(ze);b(xt,()=>e.toast.icon,(pt,Pt)=>{Pt(pt,{})}),a(Ve,ze)},Ne=Ve=>{var ze=c(),xt=s(ze);{var pt=ht=>{var Mt=c(),Nt=s(Mt);S(Nt,()=>e.successIcon??F),a(ht,Mt)},Pt=ht=>{var Mt=c(),Nt=s(Mt);{var Sa=mt=>{var kt=c(),jt=s(kt);S(jt,()=>e.errorIcon??F),a(mt,kt)},Ia=mt=>{var kt=c(),jt=s(kt);{var Ca=_t=>{var St=c(),Ft=s(St);S(Ft,()=>e.warningIcon??F),a(_t,St)},Ta=_t=>{var St=c(),Ft=s(St);{var Da=Lt=>{var $t=c(),Oa=s($t);S(Oa,()=>e.infoIcon??F),a(Lt,$t)};w(Ft,Lt=>{t(m)==="info"&&Lt(Da)},!0)}a(_t,St)};w(jt,_t=>{t(m)==="warning"?_t(Ca):_t(Ta,!1)},!0)}a(mt,kt)};w(Nt,mt=>{t(m)==="error"?mt(Sa):mt(Ia,!1)},!0)}a(ht,Mt)};w(xt,ht=>{t(m)==="success"?ht(pt):ht(Pt,!1)},!0)}a(Ve,ze)};w(Ye,Ve=>{e.toast.icon?Ve(He):Ve(Ne,!1)})}a(re,Fe)};w(je,re=>{e.toast.type!=="loading"&&re(I)})}x(h),Le(re=>ut(h,1,re),[()=>ct(ft(t(Q)?.icon,e.toast?.classes?.icon))]),a(X,h)};w(ee,X=>{(t(m)||e.toast.icon||e.toast.promise)&&e.toast.icon!==null&&(t(E)!==null||e.toast.icon)&&X(G)})}var ae=k(ee,2),q=P(ae),Ce=P(q);{var Qe=X=>{var h=c(),N=s(h);{var fe=I=>{const re=p(()=>e.toast.title);var Fe=c(),Ye=s(Fe);b(Ye,()=>t(re),(He,Ne)=>{Ne(He,ne(()=>e.toast.componentProps))}),a(I,Fe)},je=I=>{var re=Re();Le(()=>st(re,e.toast.title)),a(I,re)};w(N,I=>{typeof e.toast.title!="string"?I(fe):I(je,!1)})}a(X,h)};w(Ce,X=>{e.toast.title&&X(Qe)})}x(q);var ot=k(q,2);{var dt=X=>{var h=$r(),N=P(h);{var fe=I=>{const re=p(()=>e.toast.description);var Fe=c(),Ye=s(Fe);b(Ye,()=>t(re),(He,Ne)=>{Ne(He,ne(()=>e.toast.componentProps))}),a(I,Fe)},je=I=>{var re=Re();Le(()=>st(re,e.toast.description)),a(I,re)};w(N,I=>{typeof e.toast.description!="string"?I(fe):I(je,!1)})}x(h),Le(I=>ut(h,1,I),[()=>ct(ft(d(),t(we),t(Q)?.description,e.toast.classes?.description))]),a(X,h)};w(ot,X=>{e.toast.description&&X(dt)})}x(ae);var Ue=k(ae,2);{var te=X=>{var h=c(),N=s(h);{var fe=I=>{var re=c(),Fe=s(re);b(Fe,()=>e.toast.cancel,(Ye,He)=>{He(Ye,{})}),a(I,re)},je=I=>{var re=c(),Fe=s(re);{var Ye=He=>{var Ne=en();Ne.__click=ze=>{Ot(e.toast.cancel)&&t(R)&&(e.toast.cancel?.onClick?.(ze),U())};var Ve=P(Ne,!0);x(Ne),Le(ze=>{Rt(Ne,e.toast.cancelButtonStyle??l()),ut(Ne,1,ze),st(Ve,e.toast.cancel.label)},[()=>ct(ft(t(Q)?.cancelButton,e.toast?.classes?.cancelButton))]),a(He,Ne)};w(Fe,He=>{Ot(e.toast.cancel)&&He(Ye)},!0)}a(I,re)};w(N,I=>{typeof e.toast.cancel=="function"?I(fe):I(je,!1)})}a(X,h)};w(Ue,X=>{e.toast.cancel&&X(te)})}var ce=k(Ue,2);{var Ae=X=>{var h=c(),N=s(h);{var fe=I=>{var re=c(),Fe=s(re);b(Fe,()=>e.toast.action,(Ye,He)=>{He(Ye,{})}),a(I,re)},je=I=>{var re=c(),Fe=s(re);{var Ye=He=>{var Ne=tn();Ne.__click=ze=>{Ot(e.toast.action)&&(e.toast.action?.onClick(ze),!ze.defaultPrevented&&U())};var Ve=P(Ne,!0);x(Ne),Le(ze=>{Rt(Ne,e.toast.actionButtonStyle??r()),ut(Ne,1,ze),st(Ve,e.toast.action.label)},[()=>ct(ft(t(Q)?.actionButton,e.toast?.classes?.actionButton))]),a(He,Ne)};w(Fe,He=>{Ot(e.toast.action)&&He(Ye)},!0)}a(I,re)};w(N,I=>{typeof e.toast.action=="function"?I(fe):I(je,!1)})}a(X,h)};w(ce,X=>{e.toast.action&&X(Ae)})}Le(X=>ut(q,1,X),[()=>ct(ft(t(Q)?.title,e.toast?.classes?.title))]),a(C,W)};w(tt,C=>{e.toast.component?C(We):C(lt,!1)})}x(M),$e(M,C=>_(oe,C),()=>t(oe)),Le((C,W,ee)=>{ut(M,1,C),be(M,"data-rich-colors",e.toast.richColors??u()),be(M,"data-styled",!(e.toast.component||e.toast.unstyled||o())),be(M,"data-mounted",t(A)),be(M,"data-promise",W),be(M,"data-swiped",t(O)),be(M,"data-removed",t(D)),be(M,"data-visible",t(_e)),be(M,"data-y-position",t(pe)[0]),be(M,"data-x-position",t(pe)[1]),be(M,"data-index",e.index),be(M,"data-front",t(ye)),be(M,"data-swiping",t(de)),be(M,"data-dismissable",t(R)),be(M,"data-type",t(m)),be(M,"data-invert",t(xe)),be(M,"data-swipe-out",t(z)),be(M,"data-swipe-direction",t(ue)),be(M,"data-expanded",ee),Ie=Rt(M,`${e.style} ${e.toast.style}`,Ie,{"--index":e.index,"--toasts-before":e.index,"--z-index":Ze.toasts.length-e.index,"--offset":`${t(D)?t(g):t(v)}px`,"--initial-height":e.expandByDefault?"auto":`${t(j)}px`})},[()=>ct(ft(e.class,t(Z),t(Q)?.toast,e.toast?.classes?.toast,t(Q)?.[t(m)],e.toast?.classes?.[t(m)])),()=>!!e.toast.promise,()=>!!(e.expanded||e.expandByDefault&&t(A))]),qt("dragend",M,Me),a(i,M),H()}za(["pointermove","pointerup","pointerdown","click"]);var on=Dt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>');function sn(i){var e=on();a(i,e)}var ln=Dt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>');function dn(i){var e=ln();a(i,e)}var cn=Dt('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function un(i){var e=cn();a(i,e)}var fn=Dt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>');function vn(i){var e=fn();a(i,e)}var gn=Dt('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function hn(i){var e=gn();a(i,e)}const mn=3,_a="24px",ba="16px",_n=4e3,bn=356,yn=14,Vt="dark",At="light";function wn(i,e){const n={};return[i,e].forEach((l,r)=>{const d=r===1,o=d?"--mobile-offset":"--offset",u=d?ba:_a;function B(A){["top","right","bottom","left"].forEach(D=>{n[`${o}-${D}`]=typeof A=="number"?`${A}px`:A})}typeof l=="number"||typeof l=="string"?B(l):typeof l=="object"?["top","right","bottom","left"].forEach(A=>{const D=l[A];D===void 0?n[`${o}-${A}`]=u:n[`${o}-${A}`]=typeof D=="number"?`${D}px`:D}):B(u)}),n}var xn=y("<ol></ol>"),pn=y('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-nbs0zk"><!></section>');function Pn(i,e){L(e,!0);function n(v){return v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Vt:At}let l=f(e,"invert",3,!1),r=f(e,"position",3,"bottom-right"),d=f(e,"hotkey",19,()=>["altKey","KeyT"]),o=f(e,"expand",3,!1),u=f(e,"closeButton",3,!1),B=f(e,"offset",3,_a),A=f(e,"mobileOffset",3,ba),D=f(e,"theme",3,"light"),de=f(e,"richColors",3,!1),z=f(e,"duration",3,_n),O=f(e,"visibleToasts",3,mn),g=f(e,"toastOptions",19,()=>({})),j=f(e,"dir",7,"auto"),Te=f(e,"gap",3,yn),oe=f(e,"containerAriaLabel",3,"Notifications"),K=f(e,"closeButtonAriaLabel",3,"Close toast"),ue=Y(e,["$$slots","$$events","$$legacy","invert","position","hotkey","expand","closeButton","offset","mobileOffset","theme","richColors","duration","visibleToasts","toastOptions","dir","gap","loadingIcon","successIcon","errorIcon","warningIcon","closeIcon","infoIcon","containerAriaLabel","class","closeButtonAriaLabel","onblur","onfocus","onmouseenter","onmousemove","onmouseleave","ondragend","onpointerdown","onpointerup"]);function ye(){if(j()!=="auto")return j();if(typeof window>"u"||typeof document>"u")return"ltr";const v=document.documentElement.getAttribute("dir");return v==="auto"||!v?(Et(()=>j(window.getComputedStyle(document.documentElement).direction??"ltr")),j()):(Et(()=>j(v)),v)}const _e=p(()=>Array.from(new Set([r(),...Ze.toasts.filter(v=>v.position).map(v=>v.position)].filter(Boolean))));let m=ke(!1),R=ke(!1),Z=ke(ha(n(D()))),we=ke(void 0),ve=ke(null),Ee=ke(!1);const Se=p(()=>d().join("+").replace(/Key/g,"").replace(/Digit/g,""));vt(()=>{Ze.toasts.length<=1&&_(m,!1)}),vt(()=>{const v=Ze.toasts.filter(U=>U.dismiss&&!U.delete);if(v.length>0){const U=Ze.toasts.map(V=>v.find(T=>T.id===V.id)?{...V,delete:!0}:V);Ze.toasts=U}}),vt(()=>()=>{t(we)&&t(ve)&&(t(ve).focus({preventScroll:!0}),_(ve,null),_(Ee,!1))}),Zt(()=>(Ze.reset(),Tt(document,"keydown",U=>{d().every(ie=>U[ie]||U.code===ie)&&(_(m,!0),t(we)?.focus()),U.code==="Escape"&&(document.activeElement===t(we)||t(we)?.contains(document.activeElement))&&_(m,!1)}))),vt(()=>{if(D()!=="system"&&_(Z,D()),typeof window<"u"){D()==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?_(Z,Vt):_(Z,At));const v=window.matchMedia("(prefers-color-scheme: dark)"),U=({matches:V})=>{_(Z,V?Vt:At,!0)};"addEventListener"in v?v.addEventListener("change",U):v.addListener(U)}});const se=v=>{e.onblur?.(v),t(Ee)&&!v.currentTarget.contains(v.relatedTarget)&&(_(Ee,!1),t(ve)&&(t(ve).focus({preventScroll:!0}),_(ve,null)))},pe=v=>{e.onfocus?.(v),!(v.target instanceof HTMLElement&&v.target.dataset.dismissable==="false")&&(t(Ee)||(_(Ee,!0),_(ve,v.relatedTarget,!0)))},Be=v=>{e.onpointerdown?.(v),!(v.target instanceof HTMLElement&&v.target.dataset.dismissable==="false")&&_(R,!0)},De=v=>{e.onmouseenter?.(v),_(m,!0)},xe=v=>{e.onmouseleave?.(v),t(R)||_(m,!1)},J=v=>{e.onmousemove?.(v),_(m,!0)},Q=v=>{e.ondragend?.(v),_(m,!1)},ge=v=>{e.onpointerup?.(v),_(R,!1)};Kr.set(new Va);var $=pn();be($,"tabindex",-1);var he=P($);{var me=v=>{var U=c(),V=s(U);wt(V,18,()=>t(_e),ie=>ie,(ie,T,le,at)=>{const Pe=p(()=>{const[E,M]=T.split("-");return{y:E,x:M}}),Oe=p(()=>wn(B(),A()));var Me=xn();Xe(Me,E=>({tabindex:-1,dir:E,class:e.class,"data-sonner-toaster":!0,"data-sonner-theme":t(Z),"data-y-position":t(Pe).y,"data-x-position":t(Pe).x,style:e.style,onblur:se,onfocus:pe,onmouseenter:De,onmousemove:J,onmouseleave:xe,ondragend:Q,onpointerdown:Be,onpointerup:ge,...ue,[Ja]:{"--front-toast-height":`${Ze.heights[0]?.height}px`,"--width":`${bn}px`,"--gap":`${Te()}px`,"--offset-top":t(Oe)["--offset-top"],"--offset-right":t(Oe)["--offset-right"],"--offset-bottom":t(Oe)["--offset-bottom"],"--offset-left":t(Oe)["--offset-left"],"--mobile-offset-top":t(Oe)["--mobile-offset-top"],"--mobile-offset-right":t(Oe)["--mobile-offset-right"],"--mobile-offset-bottom":t(Oe)["--mobile-offset-bottom"],"--mobile-offset-left":t(Oe)["--mobile-offset-left"]}}),[ye],void 0,void 0,"svelte-nbs0zk"),wt(Me,23,()=>Ze.toasts.filter(E=>!E.position&&t(le)===0||E.position===T),E=>E.id,(E,M,Ie,rt)=>{{const it=Ue=>{var te=c(),ce=s(te);{var Ae=h=>{var N=c(),fe=s(N);S(fe,()=>e.successIcon??F),a(h,N)},X=h=>{var N=c(),fe=s(N);{var je=I=>{sn(I)};w(fe,I=>{e.successIcon!==null&&I(je)},!0)}a(h,N)};w(ce,h=>{e.successIcon?h(Ae):h(X,!1)})}a(Ue,te)},tt=Ue=>{var te=c(),ce=s(te);{var Ae=h=>{var N=c(),fe=s(N);S(fe,()=>e.errorIcon??F),a(h,N)},X=h=>{var N=c(),fe=s(N);{var je=I=>{dn(I)};w(fe,I=>{e.errorIcon!==null&&I(je)},!0)}a(h,N)};w(ce,h=>{e.errorIcon?h(Ae):h(X,!1)})}a(Ue,te)},We=Ue=>{var te=c(),ce=s(te);{var Ae=h=>{var N=c(),fe=s(N);S(fe,()=>e.warningIcon??F),a(h,N)},X=h=>{var N=c(),fe=s(N);{var je=I=>{un(I)};w(fe,I=>{e.warningIcon!==null&&I(je)},!0)}a(h,N)};w(ce,h=>{e.warningIcon?h(Ae):h(X,!1)})}a(Ue,te)},lt=Ue=>{var te=c(),ce=s(te);{var Ae=h=>{var N=c(),fe=s(N);S(fe,()=>e.infoIcon??F),a(h,N)},X=h=>{var N=c(),fe=s(N);{var je=I=>{vn(I)};w(fe,I=>{e.infoIcon!==null&&I(je)},!0)}a(h,N)};w(ce,h=>{e.infoIcon?h(Ae):h(X,!1)})}a(Ue,te)},C=Ue=>{var te=c(),ce=s(te);{var Ae=h=>{var N=c(),fe=s(N);S(fe,()=>e.closeIcon??F),a(h,N)},X=h=>{var N=c(),fe=s(N);{var je=I=>{hn(I)};w(fe,I=>{e.closeIcon!==null&&I(je)},!0)}a(h,N)};w(ce,h=>{e.closeIcon?h(Ae):h(X,!1)})}a(Ue,te)};let W=p(()=>g()?.duration??z()),ee=p(()=>g()?.class??""),G=p(()=>g()?.descriptionClass||""),ae=p(()=>g()?.style??""),q=p(()=>g().classes||{}),Ce=p(()=>g().unstyled??!1),Qe=p(()=>g()?.cancelButtonStyle??""),ot=p(()=>g()?.actionButtonStyle??""),dt=p(()=>g()?.closeButtonAriaLabel??K());nn(E,{get index(){return t(Ie)},get toast(){return t(M)},get defaultRichColors(){return de()},get duration(){return t(W)},get class(){return t(ee)},get descriptionClass(){return t(G)},get invert(){return l()},get visibleToasts(){return O()},get closeButton(){return u()},get interacting(){return t(R)},get position(){return T},get style(){return t(ae)},get classes(){return t(q)},get unstyled(){return t(Ce)},get cancelButtonStyle(){return t(Qe)},get actionButtonStyle(){return t(ot)},get closeButtonAriaLabel(){return t(dt)},get expandByDefault(){return o()},get expanded(){return t(m)},get loadingIcon(){return e.loadingIcon},successIcon:it,errorIcon:tt,warningIcon:We,infoIcon:lt,closeIcon:C,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),x(Me),$e(Me,E=>_(we,E),()=>t(we)),Le(()=>Me.dir=Me.dir),a(ie,Me)}),a(v,U)};w(he,v=>{Ze.toasts.length>0&&v(me)})}x($),Le(()=>be($,"aria-label",`${oe()??""} ${t(Se)??""}`)),a(i,$),H()}const Mn=768;class kn extends Hr{constructor(e=Mn){super(`max-width: ${e-1}px`)}}const Sn="sidebar:state",In=3600*24*7,Cn="16rem",Tn="18rem",Dn="3rem",On="b";class An{props;#t=p(()=>this.props.open());get open(){return t(this.#t)}set open(e){_(this.#t,e)}#e=ke(!1);get openMobile(){return t(this.#e)}set openMobile(e){_(this.#e,e,!0)}setOpen;#a;#r=p(()=>this.open?"expanded":"collapsed");get state(){return t(this.#r)}set state(e){_(this.#r,e)}constructor(e){this.setOpen=e.setOpen,this.#a=new kn,this.props=e}get isMobile(){return this.#a.current}handleShortcutKeydown=e=>{e.key===On&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),this.toggle())};setOpenMobile=e=>{this.openMobile=e};toggle=()=>this.#a.current?this.openMobile=!this.openMobile:this.setOpen(!this.open)}const ya="scn-sidebar";function En(i){return ga(Symbol.for(ya),new An(i))}function Bt(){return Ut(Symbol.for(ya))}var Bn=y("<div><!></div>");function Nn(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Bn();Xe(r,o=>({"data-slot":"sidebar-content","data-sidebar":"content",class:o,...l}),[()=>Ke("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e.class)]);var d=P(r);S(d,()=>e.children??F),x(r),$e(r,o=>n(o),()=>n()),a(i,r),H()}var jn=y("<div><!></div>");function Fn(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=jn();Xe(r,o=>({"data-slot":"sidebar-footer","data-sidebar":"footer",class:o,...l}),[()=>Ke("flex flex-col gap-2 p-2",e.class)]);var d=P(r);S(d,()=>e.children??F),x(r),$e(r,o=>n(o),()=>n()),a(i,r),H()}var Ln=y("<div><!></div>");function da(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Ln();Xe(r,o=>({"data-slot":"sidebar-group-content","data-sidebar":"group-content",class:o,...l}),[()=>Ke("w-full text-sm",e.class)]);var d=P(r);S(d,()=>e.children??F),x(r),$e(r,o=>n(o),()=>n()),a(i,r),H()}var Hn=y("<div><!></div>");function ca(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Hn();Xe(r,o=>({"data-slot":"sidebar-group","data-sidebar":"group",class:o,...l}),[()=>Ke("relative flex w-full min-w-0 flex-col p-2",e.class)]);var d=P(r);S(d,()=>e.children??F),x(r),$e(r,o=>n(o),()=>n()),a(i,r),H()}var zn=y("<div><!></div>");function Rn(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=zn();Xe(r,o=>({"data-slot":"sidebar-header","data-sidebar":"header",class:o,...l}),[()=>Ke("flex flex-col gap-2 p-2",e.class)]);var d=P(r);S(d,()=>e.children??F),x(r),$e(r,o=>n(o),()=>n()),a(i,r),H()}var Kn=y("<main><!></main>");function Vn(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Kn();Xe(r,o=>({"data-slot":"sidebar-inset",class:o,...l}),[()=>Ke("bg-background relative flex min-w-0 w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",e.class)]);var d=P(r);S(d,()=>e.children??F),x(r),$e(r,o=>n(o),()=>n()),a(i,r),H()}var Wn=y("<div><!></div>");function Un(i,e){const n=Qt();L(e,!0);let l=f(e,"ref",15,null),r=f(e,"id",19,()=>Jt(n)),d=Y(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const o=dr.create({id:qe(()=>r()),ref:qe(()=>l(),z=>l(z))}),u=p(()=>yt(d,o.props));var B=c(),A=s(B);{var D=z=>{var O=c(),g=s(O);S(g,()=>e.child,()=>({props:t(u)})),a(z,O)},de=z=>{var O=Wn();Xe(O,()=>({...t(u)}));var g=P(O);S(g,()=>e.children??F),x(O),a(z,O)};w(A,z=>{e.child?z(D):z(de,!1)})}a(i,B),H()}function Yn(i,e){L(e,!0);let n=f(e,"open",15,!1),l=f(e,"onOpenChange",3,bt),r=f(e,"onOpenChangeComplete",3,bt);rr.create({variant:qe(()=>"dialog"),open:qe(()=>n(),u=>{n(u),l()(u)}),onOpenChangeComplete:qe(()=>r())});var d=c(),o=s(d);S(o,()=>e.children??F),a(i,d),H()}var Gn=y("<button><!></button>");function Xn(i,e){const n=Qt();L(e,!0);let l=f(e,"id",19,()=>Jt(n)),r=f(e,"ref",15,null),d=f(e,"disabled",3,!1),o=Y(e,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const u=nr.create({variant:qe(()=>"close"),id:qe(()=>l()),ref:qe(()=>r(),O=>r(O)),disabled:qe(()=>!!d())}),B=p(()=>yt(o,u.props));var A=c(),D=s(A);{var de=O=>{var g=c(),j=s(g);S(j,()=>e.child,()=>({props:t(B)})),a(O,g)},z=O=>{var g=Gn();Xe(g,()=>({...t(B)}));var j=P(g);S(j,()=>e.children??F),x(g),a(O,g)};w(D,O=>{e.child?O(de):O(z,!1)})}a(i,A),H()}var Zn=y("<!> <!>",1),qn=y("<!> <div><!></div>",1);function Qn(i,e){const n=Qt();L(e,!0);let l=f(e,"id",19,()=>Jt(n)),r=f(e,"ref",15,null),d=f(e,"forceMount",3,!1),o=f(e,"onCloseAutoFocus",3,bt),u=f(e,"onOpenAutoFocus",3,bt),B=f(e,"onEscapeKeydown",3,bt),A=f(e,"onInteractOutside",3,bt),D=f(e,"trapFocus",3,!0),de=f(e,"preventScroll",3,!0),z=f(e,"restoreScrollDelay",3,null),O=Y(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const g=or.create({id:qe(()=>l()),ref:qe(()=>r(),ue=>r(ue))}),j=p(()=>yt(O,g.props));var Te=c(),oe=s(Te);{var K=ue=>{cr(ue,{get ref(){return g.opts.ref},loop:!0,get trapFocus(){return D()},get enabled(){return g.root.opts.open.current},get onOpenAutoFocus(){return u()},get onCloseAutoFocus(){return o()},focusScope:(_e,m)=>{let R=()=>m?.().props;ur(_e,ne(()=>t(j),{get enabled(){return g.root.opts.open.current},get ref(){return g.opts.ref},onEscapeKeydown:Z=>{B()(Z),!Z.defaultPrevented&&g.root.handleClose()},children:(Z,we)=>{fr(Z,ne(()=>t(j),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},onInteractOutside:ve=>{A()(ve),!ve.defaultPrevented&&g.root.handleClose()},children:(ve,Ee)=>{vr(ve,ne(()=>t(j),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},children:(Se,se)=>{var pe=c(),Be=s(pe);{var De=J=>{var Q=Zn(),ge=s(Q);{var $=me=>{ra(me,{get preventScroll(){return de()},get restoreScrollDelay(){return z()}})};w(ge,me=>{g.root.opts.open.current&&me($)})}var he=k(ge,2);{let me=p(()=>({props:yt(t(j),R()),...g.snippetProps}));S(he,()=>e.child,()=>t(me))}a(J,Q)},xe=J=>{var Q=qn(),ge=s(Q);ra(ge,{get preventScroll(){return de()}});var $=k(ge,2);Xe($,me=>({...me}),[()=>yt(t(j),R())]);var he=P($);S(he,()=>e.children??F),x($),a(J,Q)};w(Be,J=>{e.child?J(De):J(xe,!1)})}a(Se,pe)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};w(oe,ue=>{(g.shouldRender||d())&&ue(K)})}a(i,Te),H()}function Jn(i,e){L(e,!0);let n=f(e,"delayDuration",3,700),l=f(e,"disableCloseOnTriggerClick",3,!1),r=f(e,"disableHoverableContent",3,!1),d=f(e,"disabled",3,!1),o=f(e,"ignoreNonKeyboardFocus",3,!1),u=f(e,"skipDelayDuration",3,300);$a.create({delayDuration:qe(()=>n()),disableCloseOnTriggerClick:qe(()=>l()),disableHoverableContent:qe(()=>r()),disabled:qe(()=>d()),ignoreNonKeyboardFocus:qe(()=>o()),skipDelayDuration:qe(()=>u())});var B=c(),A=s(B);S(A,()=>e.children??F),a(i,B),H()}function wa(i,e){let n=Y(e,["$$slots","$$events","$$legacy"]);var l=c(),r=s(l);b(r,()=>Jn,(d,o)=>{o(d,ne(()=>n))}),a(i,l)}const $n=ma({base:"peer/menu-button ring-sidebar-ring data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10 active:bg-sidebar-accent data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:data-[active=false]:hover:bg-gray-100 dark:data-[state=open]:data-[active=false]:hover:bg-white/10 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",variants:{variant:{default:"data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10",outline:"bg-background data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10 shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-border)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});var eo=y("<button><!></button>"),to=y("<!> <!>",1);function Wt(i,e){L(e,!0);const n=(g,j)=>{let Te=()=>j?.().props;const oe=p(()=>yt(t(A),Te()));var K=c(),ue=s(K);{var ye=m=>{var R=c(),Z=s(R);S(Z,()=>e.child,()=>({props:t(oe)})),a(m,R)},_e=m=>{var R=eo();Xe(R,()=>({...t(oe)}));var Z=P(R);S(Z,()=>e.children??F),x(R),$e(R,we=>l(we),()=>l()),a(m,R)};w(ue,m=>{e.child?m(ye):m(_e,!1)})}a(g,K)};let l=f(e,"ref",15,null),r=f(e,"variant",3,"default"),d=f(e,"size",3,"default"),o=f(e,"isActive",3,!1),u=Y(e,["$$slots","$$events","$$legacy","ref","class","children","child","variant","size","isActive","tooltipContent","tooltipContentProps"]);const B=Bt(),A=p(()=>({class:Ke($n({variant:r(),size:d()}),e.class),"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":d(),"data-active":o(),...u}));var D=c(),de=s(D);{var z=g=>{n(g,()=>({}))},O=g=>{var j=c(),Te=s(j);b(Te,()=>ar,(oe,K)=>{K(oe,{children:(ue,ye)=>{var _e=to(),m=s(_e);{const Z=(we,ve)=>{let Ee=()=>ve?.().props;n(we,()=>({props:Ee()}))};b(m,()=>er,(we,ve)=>{ve(we,{child:Z,$$slots:{child:!0}})})}var R=k(m,2);{let Z=p(()=>B.state!=="collapsed"||B.isMobile);b(R,()=>tr,(we,ve)=>{ve(we,ne({side:"right",align:"center",get hidden(){return t(Z)}},()=>e.tooltipContentProps,{children:(Ee,Se)=>{var se=c(),pe=s(se);{var Be=xe=>{var J=Re();Le(()=>st(J,e.tooltipContent)),a(xe,J)},De=xe=>{var J=c(),Q=s(J);{var ge=$=>{var he=c(),me=s(he);S(me,()=>e.tooltipContent),a($,he)};w(Q,$=>{e.tooltipContent&&$(ge)},!0)}a(xe,J)};w(pe,xe=>{typeof e.tooltipContent=="string"?xe(Be):xe(De,!1)})}a(Ee,se)},$$slots:{default:!0}}))})}a(ue,_e)},$$slots:{default:!0}})}),a(g,j)};w(de,g=>{e.tooltipContent?g(O,!1):g(z)})}a(i,D),H()}var ao=y("<li><!></li>");function ua(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=ao();Xe(r,o=>({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",class:o,...l}),[()=>Ke("group/menu-item relative",e.class)]);var d=P(r);S(d,()=>e.children??F),x(r),$e(r,o=>n(o),()=>n()),a(i,r),H()}var ro=y("<ul><!></ul>");function fa(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=ro();Xe(r,o=>({"data-slot":"sidebar-menu","data-sidebar":"menu",class:o,...l}),[()=>Ke("flex w-full min-w-0 flex-col gap-1",e.class)]);var d=P(r);S(d,()=>e.children??F),x(r),$e(r,o=>n(o),()=>n()),a(i,r),H()}var no=y("<div><!></div>");function oo(i,e){L(e,!0);let n=f(e,"ref",15,null),l=f(e,"open",15,!0),r=f(e,"onOpenChange",3,()=>{}),d=Y(e,["$$slots","$$events","$$legacy","ref","open","onOpenChange","class","style","children"]);const o=En({open:()=>l(),setOpen:A=>{l(A),r()(A),document.cookie=`${Sn}=${l()}; path=/; max-age=${In}`}});var u=c();qt("keydown",Ra,function(...A){o.handleShortcutKeydown?.apply(this,A)});var B=s(u);b(B,()=>wa,(A,D)=>{D(A,{delayDuration:0,children:(de,z)=>{var O=no();Xe(O,j=>({"data-slot":"sidebar-wrapper",style:`--sidebar-width: ${Cn}; --sidebar-width-icon: ${Dn}; ${e.style??""}`,class:j,...d}),[()=>Ke("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",e.class)]);var g=P(O);S(g,()=>e.children??F),x(O),$e(O,j=>n(j),()=>n()),a(de,O)},$$slots:{default:!0}})}),a(i,u),H()}function so(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}]];et(i,ne({name:"panel-left"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}var io=y('<!> <span class="sr-only">Toggle Sidebar</span>',1);function lo(i,e){L(e,!0),f(e,"ref",11,null);let n=Y(e,["$$slots","$$events","$$legacy","ref","class","onclick"]);const l=Bt();{let r=p(()=>Ke("size-7",e.class));gt(i,ne({"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",get class(){return t(r)},type:"button",onclick:d=>{e.onclick?.(d),l.toggle()}},()=>n,{children:(d,o)=>{var u=io(),B=s(u);so(B,{}),Ge(2),a(d,u)},$$slots:{default:!0}}))}H()}function xa(i,e){L(e,!0);let n=f(e,"open",15,!1),l=Y(e,["$$slots","$$events","$$legacy","open"]);var r=c(),d=s(r);b(d,()=>Yn,(o,u)=>{u(o,ne(()=>l,{get open(){return n()},set open(B){n(B)}}))}),a(i,r),H()}function co(i,e){let n=Y(e,["$$slots","$$events","$$legacy"]);var l=c(),r=s(l);b(r,()=>gr,(d,o)=>{o(d,ne(()=>n))}),a(i,l)}function uo(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class"]);var r=c(),d=s(r);{let o=p(()=>Ke("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e.class));b(d,()=>sr,(u,B)=>{B(u,ne({"data-slot":"sheet-overlay",get class(){return t(o)}},()=>l,{get ref(){return n()},set ref(A){n(A)}}))})}a(i,r),H()}const fo=ma({base:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",variants:{side:{top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",left:"data-[state=closed]:slide-out-to-start data-[state=open]:slide-in-from-start inset-y-0 start-0 h-full w-3/4 border-e sm:max-w-sm",right:"data-[state=closed]:slide-out-to-end data-[state=open]:slide-in-from-end inset-y-0 end-0 h-full w-3/4 border-s sm:max-w-sm"}},defaultVariants:{side:"right"}});var vo=y('<!> <span class="sr-only">Close</span>',1),go=y("<!> <!>",1),ho=y("<!> <!>",1);function pa(i,e){L(e,!0);let n=f(e,"ref",15,null),l=f(e,"side",3,"right"),r=Y(e,["$$slots","$$events","$$legacy","ref","class","side","portalProps","children"]);co(i,ne(()=>e.portalProps,{children:(d,o)=>{var u=ho(),B=s(u);uo(B,{});var A=k(B,2);{let D=p(()=>Ke(fo({side:l()}),e.class));b(A,()=>Qn,(de,z)=>{z(de,ne({"data-slot":"sheet-content",get class(){return t(D)}},()=>r,{get ref(){return n()},set ref(O){n(O)},children:(O,g)=>{var j=go(),Te=s(j);S(Te,()=>e.children??F);var oe=k(Te,2);b(oe,()=>Xn,(K,ue)=>{ue(K,{class:"ring-offset-background focus-visible:ring-ring absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none",children:(ye,_e)=>{var m=vo(),R=s(m);hr(R,{class:"size-4"}),Ge(2),a(ye,m)},$$slots:{default:!0}})}),a(O,j)},$$slots:{default:!0}}))})}a(d,u)},$$slots:{default:!0}})),H()}var mo=y("<div><!></div>");function Pa(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=mo();Xe(r,o=>({"data-slot":"sheet-header",class:o,...l}),[()=>Ke("flex flex-col gap-1.5 p-4",e.class)]);var d=P(r);S(d,()=>e.children??F),x(r),$e(r,o=>n(o),()=>n()),a(i,r),H()}function Ma(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class"]);var r=c(),d=s(r);{let o=p(()=>Ke("text-foreground font-semibold",e.class));b(d,()=>ir,(u,B)=>{B(u,ne({"data-slot":"sheet-title",get class(){return t(o)}},()=>l,{get ref(){return n()},set ref(A){n(A)}}))})}a(i,r),H()}function ka(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class"]);var r=c(),d=s(r);{let o=p(()=>Ke("text-muted-foreground text-sm",e.class));b(d,()=>lr,(u,B)=>{B(u,ne({"data-slot":"sheet-description",get class(){return t(o)}},()=>l,{get ref(){return n()},set ref(A){n(A)}}))})}a(i,r),H()}var _o=y("<div><!></div>"),bo=y("<!> <!>",1),yo=y('<!> <div class="flex h-full w-full flex-col"><!></div>',1),wo=y('<div class="text-sidebar-foreground group peer hidden md:block" data-slot="sidebar"><div data-slot="sidebar-gap"></div> <div><div data-sidebar="sidebar" data-slot="sidebar-inner" class="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"><!></div></div></div>');function xo(i,e){L(e,!0);let n=f(e,"ref",15,null),l=f(e,"side",3,"left"),r=f(e,"variant",3,"sidebar"),d=f(e,"collapsible",3,"offcanvas"),o=Y(e,["$$slots","$$events","$$legacy","ref","side","variant","collapsible","class","children"]);const u=Bt();var B=c(),A=s(B);{var D=z=>{var O=_o();Xe(O,j=>({class:j,...o}),[()=>Ke("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",e.class)]);var g=P(O);S(g,()=>e.children??F),x(O),$e(O,j=>n(j),()=>n()),a(z,O)},de=z=>{var O=c(),g=s(O);{var j=oe=>{var K=c(),ue=s(K),ye=()=>u.openMobile,_e=m=>u.setOpenMobile(m);b(ue,()=>xa,(m,R)=>{R(m,ne({get open(){return ye()},set open(Z){_e(Z)}},()=>o,{children:(Z,we)=>{var ve=c(),Ee=s(ve);b(Ee,()=>pa,(Se,se)=>{se(Se,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",class:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",get style(){return`--sidebar-width: ${Tn};`},get side(){return l()},children:(pe,Be)=>{var De=yo(),xe=s(De);b(xe,()=>Pa,(ge,$)=>{$(ge,{class:"sr-only",children:(he,me)=>{var v=bo(),U=s(v);b(U,()=>Ma,(ie,T)=>{T(ie,{children:(le,at)=>{Ge();var Pe=Re("Sidebar");a(le,Pe)},$$slots:{default:!0}})});var V=k(U,2);b(V,()=>ka,(ie,T)=>{T(ie,{children:(le,at)=>{Ge();var Pe=Re("Displays the mobile sidebar.");a(le,Pe)},$$slots:{default:!0}})}),a(he,v)},$$slots:{default:!0}})});var J=k(xe,2),Q=P(J);S(Q,()=>e.children??F),x(J),a(pe,De)},$$slots:{default:!0}})}),a(Z,ve)},$$slots:{default:!0}}))}),a(oe,K)},Te=oe=>{var K=wo(),ue=P(K),ye=k(ue,2);Xe(ye,R=>({"data-slot":"sidebar-container",class:R,...o}),[()=>Ke("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",l()==="left"?"start-0 group-data-[collapsible=offcanvas]:start-[calc(var(--sidebar-width)*-1)]":"end-0 group-data-[collapsible=offcanvas]:end-[calc(var(--sidebar-width)*-1)]",r()==="floating"||r()==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",e.class)]);var _e=P(ye),m=P(_e);S(m,()=>e.children??F),x(_e),x(ye),x(K),$e(K,R=>n(R),()=>n()),Le(R=>{be(K,"data-state",u.state),be(K,"data-collapsible",u.state==="collapsed"?d():""),be(K,"data-variant",r()),be(K,"data-side",l()),ut(ue,1,R)},[()=>ct(Ke("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",r()==="floating"||r()==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)"))]),a(oe,K)};w(g,oe=>{u.isMobile?oe(j):oe(Te,!1)},!0)}a(z,O)};w(A,z=>{d()==="none"?z(D):z(de,!1)})}a(i,B),H()}function po(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]];et(i,ne({name:"bell"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function Po(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M12 7v14"}],["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"}]];et(i,ne({name:"book-open"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function Mo(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M12 20v-9"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z"}],["path",{d:"M14.12 3.88 16 2"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97"}],["path",{d:"M22 13h-4"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97"}],["path",{d:"M6 13H2"}],["path",{d:"m8 2 1.88 1.88"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13"}]];et(i,ne({name:"bug"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function ko(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M12 16v5"}],["path",{d:"M16 14v7"}],["path",{d:"M20 10v11"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15"}],["path",{d:"M4 18v3"}],["path",{d:"M8 14v7"}]];et(i,ne({name:"chart-no-axes-combined"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function So(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["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"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]];et(i,ne({name:"file-text"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function Io(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M7 3v18"}],["path",{d:"M3 7.5h4"}],["path",{d:"M3 12h18"}],["path",{d:"M3 16.5h4"}],["path",{d:"M17 3v18"}],["path",{d:"M17 7.5h4"}],["path",{d:"M17 16.5h4"}]];et(i,ne({name:"film"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function Co(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];et(i,ne({name:"gauge"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function To(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"}]];et(i,ne({name:"layout-dashboard"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function Do(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12"}]];et(i,ne({name:"link-2"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function Oo(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M16 5H3"}],["path",{d:"M16 12H3"}],["path",{d:"M9 19H3"}],["path",{d:"m16 16-3 3 3 3"}],["path",{d:"M21 5v12a2 2 0 0 1-2 2h-6"}]];et(i,ne({name:"list-end"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function Ao(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]];et(i,ne({name:"log-out"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function Eo(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["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"}]];et(i,ne({name:"moon"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function Bo(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["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"}],["circle",{cx:"12",cy:"12",r:"3"}]];et(i,ne({name:"settings"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function No(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];et(i,ne({name:"sun"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}function jo(i,e){L(e,!0);let n=Y(e,["$$slots","$$events","$$legacy"]);const l=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2"}]];et(i,ne({name:"workflow"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);S(u,()=>e.children??F),a(r,o)},$$slots:{default:!0}})),H()}var Fo=y('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-9 w-auto"/>'),Lo=y('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-9 w-auto"/>'),Ho=y("<!> <span> </span>",1),zo=y("<!> <span> </span>",1),Ro=y("<!> <span> </span>",1),Ko=y('<div class="flex-1"></div> <!>',1),Vo=y("<!> <!>",1),Wo=y('<span class="text-xs text-muted-foreground"></span>'),Uo=y("<!> <!> <!>",1);function Yo(i,e){L(e,!0);const n=new Set(["Dashboard","Logs","Endpoints","Tasks","Metrics","AI Traces"]),l=new Set(["Metrics"]),r=new Set(["Sessions"]),d=[{Icon:To,href:"/",title:"Dashboard",stickyParams:[]},{Icon:Mo,href:"/issues",title:"Issues",stickyParams:["preset","from","to"]},{Icon:So,href:"/logs",title:"Logs",stickyParams:["preset","from","to"]},{Icon:Co,href:"/endpoints",title:"Endpoints",stickyParams:["preset","from","to"]},{Icon:Oo,href:"/tasks",title:"Tasks",stickyParams:["preset","from","to"]},{Icon:Io,href:"/sessions",title:"Sessions",stickyParams:["preset","from","to"]},{Icon:jo,href:"/ai-traces",title:"AI Traces",stickyParams:["preset","from","to"]},{Icon:ko,href:"/metrics",title:"Metrics",stickyParams:["preset","from","to"]},{Icon:po,href:"/notifications",title:"Alerts",stickyParams:["preset","from","to"]},{Icon:Do,href:"/connection",title:"Connection",stickyParams:[]}],o=p(()=>Je.currentProject&&Wa(Je.currentProject.framework)?d.filter(z=>!n.has(z.title)):Je.currentProject&&Ua(Je.currentProject.framework)?d.filter(z=>!l.has(z.title)&&!r.has(z.title)):d.filter(z=>!r.has(z.title))),u=[{Icon:Po,href:"https://docs.tracewayapp.com",title:"Docs",stickyParams:[],external:!0},{Icon:Bo,href:"/settings",title:"Settings",stickyParams:[],adminOnly:!0}],B=p(()=>u.filter(z=>!z.adminOnly||Je.canManageCurrentProject)),A=Bt();var D=c(),de=s(D);b(de,()=>xo,(z,O)=>{O(z,{children:(g,j)=>{var Te=Uo(),oe=s(Te);b(oe,()=>Rn,(ye,_e)=>{_e(ye,{class:"flex items-start p-4",children:(m,R)=>{var Z=c(),we=s(Z);{var ve=Se=>{var se=Fo();a(Se,se)},Ee=Se=>{var se=Lo();a(Se,se)};w(we,Se=>{Gt.isDark?Se(ve):Se(Ee,!1)})}a(m,Z)},$$slots:{default:!0}})});var K=k(oe,2);b(K,()=>Nn,(ye,_e)=>{_e(ye,{children:(m,R)=>{var Z=Vo(),we=s(Z);b(we,()=>ca,(Se,se)=>{se(Se,{class:"p-4 pt-0 pb-0",children:(pe,Be)=>{var De=c(),xe=s(De);b(xe,()=>da,(J,Q)=>{Q(J,{children:(ge,$)=>{var he=c(),me=s(he);b(me,()=>fa,(v,U)=>{U(v,{children:(V,ie)=>{var T=c(),le=s(T);wt(le,17,()=>t(o),Yt,(at,Pe)=>{var Oe=c(),Me=s(Oe);b(Me,()=>ua,(E,M)=>{M(E,{children:(Ie,rt)=>{var it=c(),tt=s(it);{let We=p(()=>nt.url.pathname===t(Pe).href||nt.url.pathname.startsWith(t(Pe).href+"/"));b(tt,()=>Wt,(lt,C)=>{C(lt,{get isActive(){return t(We)},onclick:W=>{A.setOpenMobile(!1),na(t(Pe).href,...t(Pe).stickyParams)(W)},children:(W,ee)=>{var G=Ho(),ae=s(G);b(ae,()=>t(Pe).Icon,(Qe,ot)=>{ot(Qe,{})});var q=k(ae,2),Ce=P(q,!0);x(q),Le(()=>st(Ce,t(Pe).title)),a(W,G)},$$slots:{default:!0}})})}a(Ie,it)},$$slots:{default:!0}})}),a(at,Oe)}),a(V,T)},$$slots:{default:!0}})}),a(ge,he)},$$slots:{default:!0}})}),a(pe,De)},$$slots:{default:!0}})});var ve=k(we,2);{var Ee=Se=>{var se=Ko(),pe=k(s(se),2);b(pe,()=>ca,(Be,De)=>{De(Be,{class:"p-4 pt-0",children:(xe,J)=>{var Q=c(),ge=s(Q);b(ge,()=>da,($,he)=>{he($,{children:(me,v)=>{var U=c(),V=s(U);b(V,()=>fa,(ie,T)=>{T(ie,{children:(le,at)=>{var Pe=c(),Oe=s(Pe);wt(Oe,17,()=>t(B),Yt,(Me,E)=>{var M=c(),Ie=s(M);b(Ie,()=>ua,(rt,it)=>{it(rt,{children:(tt,We)=>{var lt=c(),C=s(lt);{var W=G=>{var ae=c(),q=s(ae);b(q,()=>Wt,(Ce,Qe)=>{Qe(Ce,{onclick:()=>{A.setOpenMobile(!1),window.open(t(E).href,"_blank","noopener,noreferrer")},children:(ot,dt)=>{var Ue=zo(),te=s(Ue);b(te,()=>t(E).Icon,(X,h)=>{h(X,{})});var ce=k(te,2),Ae=P(ce,!0);x(ce),Le(()=>st(Ae,t(E).title)),a(ot,Ue)},$$slots:{default:!0}})}),a(G,ae)},ee=G=>{var ae=c(),q=s(ae);{let Ce=p(()=>nt.url.pathname===t(E).href||nt.url.pathname.startsWith(t(E).href+"/"));b(q,()=>Wt,(Qe,ot)=>{ot(Qe,{get isActive(){return t(Ce)},onclick:dt=>{A.setOpenMobile(!1),na(t(E).href,...t(E).stickyParams)(dt)},children:(dt,Ue)=>{var te=Ro(),ce=s(te);b(ce,()=>t(E).Icon,(h,N)=>{N(h,{})});var Ae=k(ce,2),X=P(Ae,!0);x(Ae),Le(()=>st(X,t(E).title)),a(dt,te)},$$slots:{default:!0}})})}a(G,ae)};w(C,G=>{t(E).external?G(W):G(ee,!1)})}a(tt,lt)},$$slots:{default:!0}})}),a(Me,M)}),a(le,Pe)},$$slots:{default:!0}})}),a(me,U)},$$slots:{default:!0}})}),a(xe,Q)},$$slots:{default:!0}})}),a(Se,se)};w(ve,Se=>{t(B).length&&Se(Ee)})}a(m,Z)},$$slots:{default:!0}})});var ue=k(K,2);b(ue,()=>Fn,(ye,_e)=>{_e(ye,{class:"flex flex-row justify-center border-t border-border py-1 italic",children:(m,R)=>{var Z=Wo();Z.textContent="Traceway - v1.7.21",a(m,Z)},$$slots:{default:!0}})}),a(g,Te)},$$slots:{default:!0}})}),a(i,D),H()}function Go(i,e){const n=Aa(e,["children","$$slots","$$events","$$legacy"]);const l=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];yr(i,ne({name:"external-link"},()=>n,{get iconNode(){return l},children:(r,d)=>{var o=c(),u=s(o);wr(u,e,"default",{},null),a(r,o)},$$slots:{default:!0}}))}var Xo=y("<!> <!>",1),Zo=y("<!> Go to Connection",1),qo=y('<div class="px-6 py-6 space-y-6"><div class="space-y-2"><!> <div class="text-lg font-medium"> </div></div> <div class="space-y-2"><!> <div class="flex items-center gap-2 text-sm text-muted-foreground"><!> <span> </span></div></div> <div class="space-y-2"><!> <div class="flex gap-2"><!> <!></div> <p class="text-sm text-muted-foreground">This token will only be shown once. Make sure to save it securely.</p></div></div> <div class="flex justify-end gap-2 px-6 pb-6"><!> <!></div>',1),Qo=y('<div class="rounded-md bg-destructive/10 border border-destructive/20 p-3"><p class="text-sm text-destructive"> </p></div>'),Jo=y('<form class="px-6 py-6 space-y-5"><div class="space-y-2"><!> <!> <p class="text-xs text-muted-foreground">A unique name for your project (letters, numbers, spaces, hyphens)</p></div> <div class="space-y-2"><!> <!> <p class="text-xs text-muted-foreground">Select your framework for tailored integration code</p></div> <!> <div class="flex justify-end gap-2 pt-2"><!> <!></div></form>'),$o=y("<!> <!>",1);function es(i,e){L(e,!0);let n=ke(""),l=ke("gin"),r=ke(!1),d=ke(""),o=ke(null),u=ke(!1);async function B(g){if(g.preventDefault(),!t(n).trim()){_(d,"Project name is required");return}_(r,!0),_(d,"");try{const j=await Je.createProject(t(n).trim(),t(l));_(o,j,!0)}catch(j){_(d,j instanceof Error?j.message:"Failed to create project",!0)}finally{_(r,!1)}}async function A(){t(o)?.token&&(await navigator.clipboard.writeText(t(o).token),_(u,!0),setTimeout(()=>_(u,!1),2e3))}function D(){_(n,""),_(l,"gin"),_(d,""),_(o,null),e.onOpenChange(!1)}function de(){t(o)&&Je.selectProject(t(o).id),D(),e.onProjectCreated()}var z=c(),O=s(z);b(O,()=>xa,(g,j)=>{j(g,{get open(){return e.open},onOpenChange:D,children:(Te,oe)=>{var K=c(),ue=s(K);b(ue,()=>pa,(ye,_e)=>{_e(ye,{side:"right",class:"w-[400px] sm:w-[540px]",children:(m,R)=>{var Z=$o(),we=s(Z);b(we,()=>Pa,(se,pe)=>{pe(se,{children:(Be,De)=>{var xe=Xo(),J=s(xe);b(J,()=>Ma,(ge,$)=>{$(ge,{children:(he,me)=>{var v=c(),U=s(v);{var V=T=>{var le=Re("Project Created!");a(T,le)},ie=T=>{var le=Re("Create New Project");a(T,le)};w(U,T=>{t(o)?T(V):T(ie,!1)})}a(he,v)},$$slots:{default:!0}})});var Q=k(J,2);b(Q,()=>ka,(ge,$)=>{$(ge,{children:(he,me)=>{var v=c(),U=s(v);{var V=T=>{var le=Re("Your project has been created. Save the token below - you'll need it to connect your application.");a(T,le)},ie=T=>{var le=Re("Add a new project to start tracking errors and metrics.");a(T,le)};w(U,T=>{t(o)?T(V):T(ie,!1)})}a(he,v)},$$slots:{default:!0}})}),a(Be,xe)},$$slots:{default:!0}})});var ve=k(we,2);{var Ee=se=>{var pe=qo(),Be=s(pe),De=P(Be),xe=P(De);Ct(xe,{children:(E,M)=>{Ge();var Ie=Re("Project Name");a(E,Ie)},$$slots:{default:!0}});var J=k(xe,2),Q=P(J,!0);x(J),x(De);var ge=k(De,2),$=P(ge);Ct($,{children:(E,M)=>{Ge();var Ie=Re("Framework");a(E,Ie)},$$slots:{default:!0}});var he=k($,2),me=P(he);Xt(me,{get framework(){return t(l)}});var v=k(me,2),U=P(v,!0);x(v),x(he),x(ge);var V=k(ge,2),ie=P(V);Ct(ie,{children:(E,M)=>{Ge();var Ie=Re("Project Token");a(E,Ie)},$$slots:{default:!0}});var T=k(ie,2),le=P(T);oa(le,{type:"text",get value(){return t(o).token},readonly:!0,class:"font-mono text-sm"});var at=k(le,2);gt(at,{variant:"outline",size:"icon",onclick:A,children:(E,M)=>{var Ie=c(),rt=s(Ie);{var it=We=>{_r(We,{class:"h-4 w-4 text-green-500"})},tt=We=>{br(We,{class:"h-4 w-4"})};w(rt,We=>{t(u)?We(it):We(tt,!1)})}a(E,Ie)},$$slots:{default:!0}}),x(T),Ge(2),x(V),x(Be);var Pe=k(Be,2),Oe=P(Pe);gt(Oe,{variant:"outline",onclick:D,children:(E,M)=>{Ge();var Ie=Re("Close");a(E,Ie)},$$slots:{default:!0}});var Me=k(Oe,2);gt(Me,{onclick:de,children:(E,M)=>{var Ie=Zo(),rt=s(Ie);Go(rt,{class:"mr-2 h-4 w-4"}),Ge(),a(E,Ie)},$$slots:{default:!0}}),x(Pe),Le(E=>{st(Q,t(o).name),st(U,E)},[()=>Ya(t(l))]),a(se,pe)},Se=se=>{var pe=Jo(),Be=P(pe),De=P(Be);Ct(De,{for:"project-name",children:(V,ie)=>{Ge();var T=Re("Project Name");a(V,T)},$$slots:{default:!0}});var xe=k(De,2);oa(xe,{id:"project-name",type:"text",placeholder:"My Application",get disabled(){return t(r)},get value(){return t(n)},set value(V){_(n,V,!0)}}),Ge(2),x(Be);var J=k(Be,2),Q=P(J);Ct(Q,{for:"framework",children:(V,ie)=>{Ge();var T=Re("Framework");a(V,T)},$$slots:{default:!0}});var ge=k(Q,2);mr(ge,{get disabled(){return t(r)},get value(){return t(l)},set value(V){_(l,V,!0)}}),Ge(2),x(J);var $=k(J,2);{var he=V=>{var ie=Qo(),T=P(ie),le=P(T,!0);x(T),x(ie),Le(()=>st(le,t(d))),a(V,ie)};w($,V=>{t(d)&&V(he)})}var me=k($,2),v=P(me);gt(v,{type:"button",variant:"outline",onclick:D,get disabled(){return t(r)},children:(V,ie)=>{Ge();var T=Re("Cancel");a(V,T)},$$slots:{default:!0}});var U=k(v,2);{let V=p(()=>t(r)||!t(n).trim());gt(U,{type:"submit",get disabled(){return t(V)},children:(ie,T)=>{var le=c(),at=s(le);{var Pe=Me=>{var E=Re("Creating...");a(Me,E)},Oe=Me=>{var E=Re("Create Project");a(Me,E)};w(at,Me=>{t(r)?Me(Pe):Me(Oe,!1)})}a(ie,le)},$$slots:{default:!0}})}x(me),x(pe),qt("submit",pe,B),a(se,pe)};w(ve,se=>{t(o)?se(Ee):se(Se,!1)})}a(m,Z)},$$slots:{default:!0}})}),a(Te,K)},$$slots:{default:!0}})}),a(i,z),H()}function ts(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref"]);var r=c(),d=s(r);b(d,()=>Un,(o,u)=>{u(o,ne({"data-slot":"dropdown-menu-group"},()=>l,{get ref(){return n()},set ref(B){n(B)}}))}),a(i,r),H()}var as=y("<div><!></div>");function rs(i,e){L(e,!0);let n=f(e,"ref",15,null),l=Y(e,["$$slots","$$events","$$legacy","ref","class","inset","children"]);var r=as();Xe(r,o=>({"data-slot":"dropdown-menu-label","data-inset":e.inset,class:o,...l}),[()=>Ke("px-2 py-1.5 text-sm font-semibold data-[inset]:ps-8",e.class)]);var d=P(r);S(d,()=>e.children??F),x(r),$e(r,o=>n(o),()=>n()),a(i,r),H()}function ns(i,e){}var os=y('<link rel="icon" href="/favicon.ico"/>'),ss=y("<!> <span> </span> <!>",1),is=y('<div class="flex items-center gap-2"><!> <span> </span></div> <!>',1),ls=y("<!> Add Project",1),ds=y("<!> <!> <!> <!> <!> <!>",1),cs=y("<!> <!>",1),us=y('<header class="flex h-12 shrink-0 items-center gap-2 border-b px-2"><!> <div class="h-4 w-px bg-border"></div> <h1 class="text-lg font-semibold"><!></h1> <div class="ml-auto flex items-center gap-2"><!> <!></div></header> <main class="min-w-0 flex-1 p-4"><!></main>',1),fs=y("<!> <!>",1),vs=y("<!> <!> <!>",1),gs=y('<main class="h-screen w-screen"><!></main>');function Ys(i,e){L(e,!0);let n=ke(!1),l="";Ka(D=>{if(!D.to?.url)return;const de=D.to.url.pathname;D.type==="popstate"?Ga():de!==l&&Xa(),l=de}),Zt(()=>{qa(),window.captureException=ns,It.isAuthenticated&&Je.loadProjects()});function r(){It.logout(),zt("/login")}function d(D){Je.selectProject(D),zt("/")}function o(){const D=Je.currentProject?.organizationId??It.organizations[0]?.id;if(D&&It.getRoleForOrganization(D)==="readonly"){Za.error("You're not authorized to perform that action",{position:"top-center"});return}_(n,!0)}function u(){_(n,!1),zt("/connection")}var B=c();Ir("12qhfyh",D=>{var de=os();a(D,de)});var A=s(B);b(A,()=>wa,(D,de)=>{de(D,{delayDuration:0,children:(z,O)=>{var g=c(),j=s(g);{var Te=K=>{var ue=vs(),ye=s(ue);b(ye,()=>oo,(R,Z)=>{Z(R,{children:(we,ve)=>{var Ee=fs(),Se=s(Ee);Yo(Se,{});var se=k(Se,2);b(se,()=>Vn,(pe,Be)=>{Be(pe,{children:(De,xe)=>{var J=us(),Q=s(J),ge=P(Q);b(ge,()=>lo,(T,le)=>{le(T,{})});var $=k(ge,4),he=P($);b(he,()=>xr,(T,le)=>{le(T,{children:(at,Pe)=>{var Oe=cs(),Me=s(Oe);b(Me,()=>pr,(M,Ie)=>{Ie(M,{class:"flex flex-row items-center gap-2 rounded-md px-2 py-1 transition-colors hover:bg-accent hover:text-accent-foreground",children:(rt,it)=>{var tt=ss(),We=s(tt);{var lt=G=>{Xt(G,{get framework(){return Je.currentProject.framework},class:"size-6 shrink-0"})};w(We,G=>{Je.currentProject&&G(lt)})}var C=k(We,2),W=P(C,!0);x(C);var ee=k(C,2);Mr(ee,{size:16}),Le(()=>st(W,Je.currentProject?.name||"Select Project")),a(rt,tt)},$$slots:{default:!0}})});var E=k(Me,2);b(E,()=>Pr,(M,Ie)=>{Ie(M,{align:"start",class:"w-56",children:(rt,it)=>{var tt=c(),We=s(tt);b(We,()=>ts,(lt,C)=>{C(lt,{children:(W,ee)=>{var G=ds(),ae=s(G);b(ae,()=>rs,(te,ce)=>{ce(te,{children:(Ae,X)=>{Ge();var h=Re("Projects");a(Ae,h)},$$slots:{default:!0}})});var q=k(ae,2);b(q,()=>sa,(te,ce)=>{ce(te,{})});var Ce=k(q,2);wt(Ce,17,()=>Je.projects,Yt,(te,ce)=>{var Ae=c(),X=s(Ae);b(X,()=>Kt,(h,N)=>{N(h,{onclick:()=>d(t(ce).id),class:"flex cursor-pointer items-center justify-between",children:(fe,je)=>{var I=is(),re=s(I),Fe=P(re);Xt(Fe,{get framework(){return t(ce).framework}});var Ye=k(Fe,2),He=P(Ye,!0);x(Ye),x(re);var Ne=k(re,2);{var Ve=ze=>{Sr(ze,{class:"h-4 w-4"})};w(Ne,ze=>{t(ce).id===Je.currentProjectId&&ze(Ve)})}Le(()=>st(He,t(ce).name)),a(fe,I)},$$slots:{default:!0}})}),a(te,Ae)});var Qe=k(Ce,2);{var ot=te=>{var ce=c(),Ae=s(ce);b(Ae,()=>Kt,(X,h)=>{h(X,{disabled:!0,children:(N,fe)=>{Ge();var je=Re("No projects yet");a(N,je)},$$slots:{default:!0}})}),a(te,ce)};w(Qe,te=>{Je.projects.length===0&&te(ot)})}var dt=k(Qe,2);b(dt,()=>sa,(te,ce)=>{ce(te,{})});var Ue=k(dt,2);b(Ue,()=>Kt,(te,ce)=>{ce(te,{onclick:o,class:"cursor-pointer",children:(Ae,X)=>{var h=ls(),N=s(h);kr(N,{class:"mr-2 h-4 w-4"}),Ge(),a(Ae,h)},$$slots:{default:!0}})}),a(W,G)},$$slots:{default:!0}})}),a(rt,tt)},$$slots:{default:!0}})}),a(at,Oe)},$$slots:{default:!0}})}),x($);var me=k($,2),v=P(me);{let T=p(()=>Gt.isDark?"Switch to Light Mode":"Switch to Dark Mode");gt(v,{variant:"ghost",size:"icon",get onclick(){return Qa},get title(){return t(T)},children:(le,at)=>{var Pe=c(),Oe=s(Pe);{var Me=M=>{No(M,{class:"h-5 w-5"})},E=M=>{Eo(M,{class:"h-5 w-5"})};w(Oe,M=>{Gt.isDark?M(Me):M(E,!1)})}a(le,Pe)},$$slots:{default:!0}})}var U=k(v,2);gt(U,{variant:"ghost",size:"icon",onclick:r,title:"Logout",children:(T,le)=>{Ao(T,{class:"h-5 w-5"})},$$slots:{default:!0}}),x(me),x(Q);var V=k(Q,2),ie=P(V);S(ie,()=>e.children),x(V),a(De,J)},$$slots:{default:!0}})}),a(we,Ee)},$$slots:{default:!0}})});var _e=k(ye,2);es(_e,{get open(){return t(n)},onOpenChange:R=>_(n,R,!0),onProjectCreated:u});var m=k(_e,2);Pn(m,{position:"bottom-right"}),a(K,ue)},oe=K=>{var ue=c(),ye=s(ue);{var _e=m=>{var R=gs(),Z=P(R);S(Z,()=>e.children),x(R),a(m,R)};w(ye,m=>{(nt.url.pathname==="/login"||nt.url.pathname==="/register"||nt.url.pathname==="/auth/callback"||nt.url.pathname==="/finish-setup"||nt.url.pathname.startsWith("/accept-invitation"))&&m(_e)})}a(K,ue)};w(j,K=>{It.isAuthenticated&&nt.url.pathname!=="/login"&&nt.url.pathname!=="/register"&&nt.url.pathname!=="/auth/callback"&&nt.url.pathname!=="/finish-setup"&&!nt.url.pathname.startsWith("/accept-invitation")?K(Te):K(oe,!1)})}a(z,g)},$$slots:{default:!0}})}),a(i,B),H()}export{Ys as component,Us as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/0.BWU19a-p.js.map b/backend/static/frontend/_app/immutable/nodes/0.BWU19a-p.js.map
deleted file mode 100644
index 47256680..00000000
--- a/backend/static/frontend/_app/immutable/nodes/0.BWU19a-p.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"0.BWU19a-p.js","sources":["../../../../../../node_modules/svelte/src/internal/client/dom/blocks/svelte-head.js","../../../../../../src/routes/+layout.ts","../../../../../../node_modules/svelte-sonner/dist/Loader.svelte","../../../../../../node_modules/svelte-sonner/node_modules/runed/dist/internal/configurable-globals.js","../../../../../../node_modules/svelte-sonner/node_modules/runed/dist/internal/utils/dom.js","../../../../../../node_modules/svelte/src/reactivity/reactive-value.js","../../../../../../node_modules/svelte/src/reactivity/media-query.js","../../../../../../node_modules/svelte-sonner/node_modules/runed/dist/utilities/active-element/active-element.svelte.js","../../../../../../node_modules/svelte-sonner/node_modules/runed/dist/utilities/context/context.js","../../../../../../node_modules/svelte-sonner/dist/internal/ctx.js","../../../../../../node_modules/svelte-sonner/dist/types.js","../../../../../../node_modules/svelte-sonner/dist/internal/use-document-hidden.svelte.js","../../../../../../node_modules/svelte-sonner/dist/Toast.svelte","../../../../../../node_modules/svelte-sonner/dist/icons/SuccessIcon.svelte","../../../../../../node_modules/svelte-sonner/dist/icons/ErrorIcon.svelte","../../../../../../node_modules/svelte-sonner/dist/icons/WarningIcon.svelte","../../../../../../node_modules/svelte-sonner/dist/icons/InfoIcon.svelte","../../../../../../node_modules/svelte-sonner/dist/icons/CloseIcon.svelte","../../../../../../node_modules/svelte-sonner/dist/Toaster.svelte","../../../../../../src/lib/hooks/is-mobile.svelte.ts","../../../../../../src/lib/components/ui/sidebar/constants.ts","../../../../../../src/lib/components/ui/sidebar/context.svelte.ts","../../../../../../src/lib/components/ui/sidebar/sidebar-content.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-footer.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-group-content.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-group.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-header.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-inset.svelte","../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-group.svelte","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog.svelte","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog-close.svelte","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/tooltip/components/tooltip-provider.svelte","../../../../../../src/lib/components/ui/tooltip/tooltip-provider.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-menu-button.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-menu-item.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-menu.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-provider.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/panel-left.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-trigger.svelte","../../../../../../src/lib/components/ui/sheet/sheet.svelte","../../../../../../src/lib/components/ui/sheet/sheet-portal.svelte","../../../../../../src/lib/components/ui/sheet/sheet-overlay.svelte","../../../../../../src/lib/components/ui/sheet/sheet-content.svelte","../../../../../../src/lib/components/ui/sheet/sheet-header.svelte","../../../../../../src/lib/components/ui/sheet/sheet-title.svelte","../../../../../../src/lib/components/ui/sheet/sheet-description.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/bell.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/book-open.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/bug.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/chart-no-axes-combined.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/file-text.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/film.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/gauge.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/layout-dashboard.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/link-2.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/list-end.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/log-out.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/moon.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/settings.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/sun.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/workflow.svelte","../../../../../../src/lib/components/app-sidebar.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/external-link.svelte","../../../../../../src/lib/components/add-project-modal.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-group.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte","../../../../../../node_modules/@tracewayapp/frontend/dist/index.mjs","../../../../../../src/routes/+layout.svelte"],"sourcesContent":["/** @import { TemplateNode } from '#client' */\nimport { hydrate_node, hydrating, set_hydrate_node, set_hydrating } from '../hydration.js';\nimport { create_text, get_first_child, get_next_sibling } from '../operations.js';\nimport { block } from '../../reactivity/effects.js';\nimport { COMMENT_NODE, HEAD_EFFECT } from '#client/constants';\n\n/**\n * @param {string} hash\n * @param {(anchor: Node) => void} render_fn\n * @returns {void}\n */\nexport function head(hash, render_fn) {\n\t// The head function may be called after the first hydration pass and ssr comment nodes may still be present,\n\t// therefore we need to skip that when we detect that we're not in hydration mode.\n\tlet previous_hydrate_node = null;\n\tlet was_hydrating = hydrating;\n\n\t/** @type {Comment | Text} */\n\tvar anchor;\n\n\tif (hydrating) {\n\t\tprevious_hydrate_node = hydrate_node;\n\n\t\tvar head_anchor = get_first_child(document.head);\n\n\t\t// There might be multiple head blocks in our app, and they could have been\n\t\t// rendered in an arbitrary order — find one corresponding to this component\n\t\twhile (\n\t\t\thead_anchor !== null &&\n\t\t\t(head_anchor.nodeType !== COMMENT_NODE || /** @type {Comment} */ (head_anchor).data !== hash)\n\t\t) {\n\t\t\thead_anchor = get_next_sibling(head_anchor);\n\t\t}\n\n\t\t// If we can't find an opening hydration marker, skip hydration (this can happen\n\t\t// if a framework rendered body but not head content)\n\t\tif (head_anchor === null) {\n\t\t\tset_hydrating(false);\n\t\t} else {\n\t\t\tvar start = /** @type {TemplateNode} */ (get_next_sibling(head_anchor));\n\t\t\thead_anchor.remove(); // in case this component is repeated\n\n\t\t\tset_hydrate_node(start);\n\t\t}\n\t}\n\n\tif (!hydrating) {\n\t\tanchor = document.head.appendChild(create_text());\n\t}\n\n\ttry {\n\t\tblock(() => render_fn(anchor), HEAD_EFFECT);\n\t} finally {\n\t\tif (was_hydrating) {\n\t\t\tset_hydrating(true);\n\t\t\tset_hydrate_node(/** @type {TemplateNode} */ (previous_hydrate_node));\n\t\t}\n\t}\n}\n","export const ssr = false;\nexport const prerender = true;","<script lang=\"ts\" module>\"use strict\";\nconst bars = Array(12).fill(0);\n</script>\n\n<script lang=\"ts\">\"use strict\";\nlet { visible, class: className } = $props();\n</script>\n\n<div\n\tclass={['sonner-loading-wrapper', className].filter(Boolean).join(' ')}\n\tdata-visible={visible}\n>\n\t<div class=\"sonner-spinner\">\n\t\t{#each bars as _, i (`spinner-bar-${i}`)}\n\t\t\t<div class=\"sonner-loading-bar\"></div>\n\t\t{/each}\n\t</div>\n</div>\n","import { BROWSER } from \"esm-env\";\nexport const defaultWindow = BROWSER && typeof window !== \"undefined\" ? window : undefined;\nexport const defaultDocument = BROWSER && typeof window !== \"undefined\" ? window.document : undefined;\nexport const defaultNavigator = BROWSER && typeof window !== \"undefined\" ? window.navigator : undefined;\nexport const defaultLocation = BROWSER && typeof window !== \"undefined\" ? window.location : undefined;\n","import { defaultDocument } from \"../configurable-globals.js\";\n/**\n * Handles getting the active element in a document or shadow root.\n * If the active element is within a shadow root, it will traverse the shadow root\n * to find the active element.\n * If not, it will return the active element in the document.\n *\n * @param document A document or shadow root to get the active element from.\n * @returns The active element in the document or shadow root.\n */\nexport function getActiveElement(document) {\n let activeElement = document.activeElement;\n while (activeElement?.shadowRoot) {\n const node = activeElement.shadowRoot.activeElement;\n if (node === activeElement)\n break;\n else\n activeElement = node;\n }\n return activeElement;\n}\n/**\n * Returns the owner document of a given element.\n *\n * @param node The element to get the owner document from.\n * @returns\n */\nexport function getOwnerDocument(node, fallback = defaultDocument) {\n return node?.ownerDocument ?? fallback;\n}\n/**\n * Checks if an element is or is contained by another element.\n *\n * @param node The element to check if it or its descendants contain the target element.\n * @param target The element to check if it is contained by the node.\n * @returns\n */\nexport function isOrContainsTarget(node, target) {\n return node === target || node.contains(target);\n}\n","import { createSubscriber } from './create-subscriber.js';\n\n/**\n * @template T\n */\nexport class ReactiveValue {\n\t#fn;\n\t#subscribe;\n\n\t/**\n\t *\n\t * @param {() => T} fn\n\t * @param {(update: () => void) => void} onsubscribe\n\t */\n\tconstructor(fn, onsubscribe) {\n\t\tthis.#fn = fn;\n\t\tthis.#subscribe = createSubscriber(onsubscribe);\n\t}\n\n\tget current() {\n\t\tthis.#subscribe();\n\t\treturn this.#fn();\n\t}\n}\n","import { on } from '../events/index.js';\nimport { ReactiveValue } from './reactive-value.js';\n\nconst parenthesis_regex = /\\(.+\\)/;\n\n// these keywords are valid media queries but they need to be without parenthesis\n//\n// eg: new MediaQuery('screen')\n//\n// however because of the auto-parenthesis logic in the constructor since there's no parentehesis\n// in the media query they'll be surrounded by parenthesis\n//\n// however we can check if the media query is only composed of these keywords\n// and skip the auto-parenthesis\n//\n// https://github.com/sveltejs/svelte/issues/15930\nconst non_parenthesized_keywords = new Set(['all', 'print', 'screen', 'and', 'or', 'not', 'only']);\n\n/**\n * Creates a media query and provides a `current` property that reflects whether or not it matches.\n *\n * Use it carefully — during server-side rendering, there is no way to know what the correct value should be, potentially causing content to change upon hydration.\n * If you can use the media query in CSS to achieve the same effect, do that.\n *\n * ```svelte\n * <script>\n * \timport { MediaQuery } from 'svelte/reactivity';\n *\n * \tconst large = new MediaQuery('min-width: 800px');\n * </script>\n *\n * <h1>{large.current ? 'large screen' : 'small screen'}</h1>\n * ```\n * @extends {ReactiveValue<boolean>}\n * @since 5.7.0\n */\nexport class MediaQuery extends ReactiveValue {\n\t/**\n\t * @param {string} query A media query string\n\t * @param {boolean} [fallback] Fallback value for the server\n\t */\n\tconstructor(query, fallback) {\n\t\tlet final_query =\n\t\t\tparenthesis_regex.test(query) ||\n\t\t\t// we need to use `some` here because technically this `window.matchMedia('random,screen')` still returns true\n\t\t\tquery.split(/[\\s,]+/).some((keyword) => non_parenthesized_keywords.has(keyword.trim()))\n\t\t\t\t? query\n\t\t\t\t: `(${query})`;\n\t\tconst q = window.matchMedia(final_query);\n\t\tsuper(\n\t\t\t() => q.matches,\n\t\t\t(update) => on(q, 'change', update)\n\t\t);\n\t}\n}\n","import { defaultWindow, } from \"../../internal/configurable-globals.js\";\nimport { getActiveElement } from \"../../internal/utils/dom.js\";\nimport { on } from \"svelte/events\";\nimport { createSubscriber } from \"svelte/reactivity\";\nexport class ActiveElement {\n #document;\n #subscribe;\n constructor(options = {}) {\n const { window = defaultWindow, document = window?.document } = options;\n if (window === undefined)\n return;\n this.#document = document;\n this.#subscribe = createSubscriber((update) => {\n const cleanupFocusIn = on(window, \"focusin\", update);\n const cleanupFocusOut = on(window, \"focusout\", update);\n return () => {\n cleanupFocusIn();\n cleanupFocusOut();\n };\n });\n }\n get current() {\n this.#subscribe?.();\n if (!this.#document)\n return null;\n return getActiveElement(this.#document);\n }\n}\n/**\n * An object holding a reactive value that is equal to `document.activeElement`.\n * It automatically listens for changes, keeping the reference up to date.\n *\n * If you wish to use a custom document or shadowRoot, you should use\n * [useActiveElement](https://runed.dev/docs/utilities/active-element) instead.\n *\n * @see {@link https://runed.dev/docs/utilities/active-element}\n */\nexport const activeElement = new ActiveElement();\n","import { getContext, hasContext, setContext } from \"svelte\";\nexport class Context {\n #name;\n #key;\n /**\n * @param name The name of the context.\n * This is used for generating the context key and error messages.\n */\n constructor(name) {\n this.#name = name;\n this.#key = Symbol(name);\n }\n /**\n * The key used to get and set the context.\n *\n * It is not recommended to use this value directly.\n * Instead, use the methods provided by this class.\n */\n get key() {\n return this.#key;\n }\n /**\n * Checks whether this has been set in the context of a parent component.\n *\n * Must be called during component initialisation.\n */\n exists() {\n return hasContext(this.#key);\n }\n /**\n * Retrieves the context that belongs to the closest parent component.\n *\n * Must be called during component initialisation.\n *\n * @throws An error if the context does not exist.\n */\n get() {\n const context = getContext(this.#key);\n if (context === undefined) {\n throw new Error(`Context \"${this.#name}\" not found`);\n }\n return context;\n }\n /**\n * Retrieves the context that belongs to the closest parent component,\n * or the given fallback value if the context does not exist.\n *\n * Must be called during component initialisation.\n */\n getOr(fallback) {\n const context = getContext(this.#key);\n if (context === undefined) {\n return fallback;\n }\n return context;\n }\n /**\n * Associates the given value with the current component and returns it.\n *\n * Must be called during component initialisation.\n */\n set(context) {\n return setContext(this.#key, context);\n }\n}\n","import { SonnerState } from '../toast-state.svelte.js';\nimport { Context } from 'runed';\nexport const richColorsContext = new Context('richColorsContext');\nexport const sonnerContext = new Context('<Toaster/>');\n","export function isAction(action) {\n return action.label !== undefined;\n}\n","import { on } from 'svelte/events';\nexport function useDocumentHidden() {\n let current = $state(typeof document !== 'undefined' ? document.hidden : false);\n $effect(() => {\n return on(document, 'visibilitychange', () => {\n current = document.hidden;\n });\n });\n return {\n get current() {\n return current;\n }\n };\n}\n","<script lang=\"ts\" module>\"use strict\";\n// Default lifetime of a toasts (in ms)\nconst TOAST_LIFETIME = 4000;\n// Default gap between toasts\nconst GAP = 14;\n// Threshold to dismiss a toast\nconst SWIPE_THRESHOLD = 45;\n// Equal to exit animation duration\nconst TIME_BEFORE_UNMOUNT = 200;\nconst SCALE_MULTIPLIER = 0.05;\nconst DEFAULT_TOAST_CLASSES = {\n toast: '',\n title: '',\n description: '',\n loader: '',\n closeButton: '',\n cancelButton: '',\n actionButton: '',\n action: '',\n warning: '',\n error: '',\n success: '',\n default: '',\n info: '',\n loading: ''\n};\nfunction getDefaultSwipeDirections(position) {\n const [y, x] = position.split('-');\n const directions = [];\n if (y) {\n directions.push(y);\n }\n if (x) {\n directions.push(x);\n }\n return directions;\n}\nfunction getDampening(delta) {\n const factor = Math.abs(delta) / 20;\n return 1 / (1.5 + factor);\n}\n</script>\n\n<script lang=\"ts\">import { onMount, untrack } from 'svelte';\nimport { isAction } from './types.js';\nimport { toastState } from './toast-state.svelte.js';\nimport { cn } from './internal/helpers.js';\nimport { useDocumentHidden } from './internal/use-document-hidden.svelte.js';\nimport Loader from './Loader.svelte';\nlet { toast, index, expanded, invert: invertFromToaster, position, visibleToasts, expandByDefault, closeButton: closeButtonFromToaster, interacting, cancelButtonStyle = '', actionButtonStyle = '', duration: durationFromToaster, descriptionClass = '', classes: classesProp, unstyled = false, loadingIcon, successIcon, errorIcon, warningIcon, closeIcon, infoIcon, defaultRichColors = false, swipeDirections: swipeDirectionsProp, closeButtonAriaLabel, ...restProps } = $props();\nconst defaultClasses = { ...DEFAULT_TOAST_CLASSES };\nlet mounted = $state(false);\nlet removed = $state(false);\nlet swiping = $state(false);\nlet swipeOut = $state(false);\nlet isSwiped = $state(false);\nlet offsetBeforeRemove = $state(0);\nlet initialHeight = $state(0);\nlet remainingTime = toast.duration || durationFromToaster || TOAST_LIFETIME;\nlet dragStartTime = $state(null);\nlet toastRef = $state();\nlet swipeDirection = $state(null);\nlet swipeOutDirection = $state(null);\nconst isFront = $derived(index === 0);\nconst isVisible = $derived(index + 1 <= visibleToasts);\nconst toastType = $derived(toast.type);\nconst dismissable = $derived(toast.dismissable !== false);\nconst toastClass = $derived(toast.class || '');\nconst toastDescriptionClass = $derived(toast.descriptionClass || '');\n// height index is used to calculate the offset as it gets updated before the toast array, which means we can calculate the new layout faster.\nconst heightIndex = $derived(toastState.heights.findIndex((height) => height.toastId === toast.id) ||\n 0);\nconst closeButton = $derived(toast.closeButton ?? closeButtonFromToaster);\nconst duration = $derived(toast.duration ?? durationFromToaster ?? TOAST_LIFETIME);\nlet pointerStart = null;\nconst coords = $derived(position.split('-'));\nconst toastsHeightBefore = $derived(toastState.heights.reduce((prev, curr, reducerIndex) => {\n if (reducerIndex >= heightIndex)\n return prev;\n return prev + curr.height;\n}, 0));\nconst isDocumentHidden = useDocumentHidden();\nconst invert = $derived(toast.invert || invertFromToaster);\nconst disabled = $derived(toastType === 'loading');\nconst classes = $derived({ ...defaultClasses, ...classesProp });\nconst toastTitle = $derived(toast.title);\nconst toastDescription = $derived(toast.description);\nlet closeTimerStartTime = $state(0);\nlet lastCloseTimerStartTime = $state(0);\nconst offset = $derived(Math.round(heightIndex * GAP + toastsHeightBefore));\n$effect(() => {\n toastTitle;\n toastDescription;\n let scale;\n if (expanded || expandByDefault) {\n scale = 1;\n }\n else {\n scale = 1 - index * SCALE_MULTIPLIER;\n }\n const toastEl = untrack(() => toastRef);\n if (toastEl === undefined)\n return;\n toastEl.style.setProperty('height', 'auto');\n const offsetHeight = toastEl.offsetHeight;\n const rectHeight = toastEl.getBoundingClientRect().height;\n const scaledRectHeight = Math.round((rectHeight / scale + Number.EPSILON) & 100) / 100;\n toastEl.style.removeProperty('height');\n let finalHeight;\n if (Math.abs(scaledRectHeight - offsetHeight) < 1) {\n // use scaledRectHeight as it's more precise\n finalHeight = scaledRectHeight;\n }\n else {\n // toast was transitioning its scale, so scaledRectHeight isn't accurate\n finalHeight = offsetHeight;\n }\n initialHeight = finalHeight;\n toastState.setHeight({ toastId: toast.id, height: finalHeight });\n});\nfunction deleteToast() {\n removed = true;\n // save the offset for the exit swipe animation\n offsetBeforeRemove = offset;\n toastState.removeHeight(toast.id);\n setTimeout(() => {\n toastState.remove(toast.id);\n }, TIME_BEFORE_UNMOUNT);\n}\nlet timeoutId;\nconst isPromiseLoadingOrInfiniteDuration = $derived((toast.promise && toastType === 'loading') ||\n toast.duration === Number.POSITIVE_INFINITY);\nfunction startTimer() {\n closeTimerStartTime = new Date().getTime();\n // let the toast know it has started\n timeoutId = setTimeout(() => {\n toast.onAutoClose?.(toast);\n deleteToast();\n }, remainingTime);\n}\nfunction pauseTimer() {\n if (lastCloseTimerStartTime < closeTimerStartTime) {\n // get the elapsed time since the timer started\n const elapsedTime = new Date().getTime() - closeTimerStartTime;\n remainingTime = remainingTime - elapsedTime;\n }\n lastCloseTimerStartTime = new Date().getTime();\n}\n$effect(() => {\n if (toast.updated) {\n // if the toast has been updated after the initial render,\n // we want to reset the timer and set the remaining time to the\n // new duration\n clearTimeout(timeoutId);\n remainingTime = duration;\n startTimer();\n }\n});\n$effect(() => {\n if (!isPromiseLoadingOrInfiniteDuration) {\n if (expanded || interacting || isDocumentHidden.current) {\n pauseTimer();\n }\n else {\n startTimer();\n }\n }\n return () => clearTimeout(timeoutId);\n});\nonMount(() => {\n mounted = true;\n const height = toastRef?.getBoundingClientRect().height;\n initialHeight = height;\n toastState.setHeight({ toastId: toast.id, height });\n return () => {\n toastState.removeHeight(toast.id);\n };\n});\n$effect(() => {\n if (toast.delete) {\n untrack(() => {\n deleteToast();\n toast.onDismiss?.(toast);\n });\n }\n});\nconst handlePointerDown = (event) => {\n if (disabled)\n return;\n offsetBeforeRemove = offset;\n const target = event.target;\n // ensure we maintain correct pointer capture even when going outside of the toast (e.g. when swiping)\n target.setPointerCapture(event.pointerId);\n if (target.tagName === 'BUTTON')\n return;\n swiping = true;\n pointerStart = { x: event.clientX, y: event.clientY };\n};\nconst handlePointerUp = () => {\n if (swipeOut || !dismissable)\n return;\n pointerStart = null;\n const swipeAmountX = Number(toastRef?.style\n .getPropertyValue('--swipe-amount-x')\n .replace('px', '') || 0);\n const swipeAmountY = Number(toastRef?.style\n .getPropertyValue('--swipe-amount-y')\n .replace('px', '') || 0);\n const timeTaken = new Date().getTime() - (dragStartTime?.getTime() ?? 0);\n const swipeAmount = swipeDirection === 'x' ? swipeAmountX : swipeAmountY;\n const velocity = Math.abs(swipeAmount) / timeTaken;\n // remove only if threshold is met\n if (Math.abs(swipeAmount) >= SWIPE_THRESHOLD || velocity > 0.11) {\n offsetBeforeRemove = offset;\n toast.onDismiss?.(toast);\n if (swipeDirection === 'x') {\n swipeOutDirection = swipeAmountX > 0 ? 'right' : 'left';\n }\n else {\n swipeOutDirection = swipeAmountY > 0 ? 'down' : 'up';\n }\n deleteToast();\n swipeOut = true;\n return;\n }\n else {\n toastRef?.style.setProperty('--swipe-amount-x', '0px');\n toastRef?.style.setProperty('--swipe-amount-y', '0px');\n }\n isSwiped = false;\n swiping = false;\n swipeDirection = null;\n};\nconst handlePointerMove = (event) => {\n if (!pointerStart || !dismissable)\n return;\n const isHighlighted = (window.getSelection()?.toString().length ?? -1) > 0;\n if (isHighlighted)\n return;\n const yDelta = event.clientY - pointerStart.y;\n const xDelta = event.clientX - pointerStart.x;\n const swipeDirections = swipeDirectionsProp ?? getDefaultSwipeDirections(position);\n // Determine swipe direction if not already locked\n if (!swipeDirection && (Math.abs(xDelta) > 1 || Math.abs(yDelta) > 1)) {\n swipeDirection = Math.abs(xDelta) > Math.abs(yDelta) ? 'x' : 'y';\n }\n let swipeAmount = { x: 0, y: 0 };\n if (swipeDirection === 'y') {\n // handle vertical swipes\n if (swipeDirections.includes('top') ||\n swipeDirections.includes('bottom')) {\n if ((swipeDirections.includes('top') && yDelta < 0) ||\n (swipeDirections.includes('bottom') && yDelta > 0)) {\n swipeAmount.y = yDelta;\n }\n else {\n // smoothly transition to dampened movement\n const dampenedDelta = yDelta * getDampening(yDelta);\n // ensure we don't jump when transition to dampened movement\n swipeAmount.y =\n Math.abs(dampenedDelta) < Math.abs(yDelta)\n ? dampenedDelta\n : yDelta;\n }\n }\n }\n else if (swipeDirection === 'x') {\n // handle horizontal swipes\n if (swipeDirections.includes('left') ||\n swipeDirections.includes('right')) {\n if ((swipeDirections.includes('left') && xDelta < 0) ||\n (swipeDirections.includes('right') && xDelta > 0)) {\n swipeAmount.x = xDelta;\n }\n else {\n // Smoothly transition to dampened movement\n const dampenedDelta = xDelta * getDampening(xDelta);\n // Ensure we don't jump when transitioning to dampened movement\n swipeAmount.x =\n Math.abs(dampenedDelta) < Math.abs(xDelta)\n ? dampenedDelta\n : xDelta;\n }\n }\n }\n if (Math.abs(swipeAmount.x) > 0 || Math.abs(swipeAmount.y) > 0) {\n isSwiped = true;\n }\n toastRef?.style.setProperty('--swipe-amount-x', `${swipeAmount.x}px`);\n toastRef?.style.setProperty('--swipe-amount-y', `${swipeAmount.y}px`);\n};\nconst handleDragEnd = () => {\n swiping = false;\n swipeDirection = null;\n pointerStart = null;\n};\nconst icon = $derived.by(() => {\n if (toast.icon)\n return toast.icon;\n if (toastType === 'success')\n return successIcon;\n if (toastType === 'error')\n return errorIcon;\n if (toastType === 'warning')\n return warningIcon;\n if (toastType === 'info')\n return infoIcon;\n if (toastType === 'loading')\n return loadingIcon;\n return null;\n});\n</script>\n\n{#snippet LoadingIcon()}\n\t{#if loadingIcon}\n\t\t<div\n\t\t\tclass={cn(classes?.loader, toast?.classes?.loader, 'sonner-loader')}\n\t\t\tdata-visible={toastType === 'loading'}\n\t\t>\n\t\t\t{@render loadingIcon()}\n\t\t</div>\n\t{:else}\n\t\t<Loader\n\t\t\tclass={cn(classes?.loader, toast.classes?.loader)}\n\t\t\tvisible={toastType === 'loading'}\n\t\t/>\n\t{/if}\n{/snippet}\n\n<!-- svelte-ignore a11y_no_noninteractive_tabindex -->\n<li\n\ttabindex={0}\n\tbind:this={toastRef}\n\tclass={cn(\n\t\trestProps.class,\n\t\ttoastClass,\n\t\tclasses?.toast,\n\t\ttoast?.classes?.toast,\n\t\tclasses?.[toastType],\n\t\ttoast?.classes?.[toastType]\n\t)}\n\tdata-sonner-toast=\"\"\n\tdata-rich-colors={toast.richColors ?? defaultRichColors}\n\tdata-styled={!(toast.component || toast.unstyled || unstyled)}\n\tdata-mounted={mounted}\n\tdata-promise={Boolean(toast.promise)}\n\tdata-swiped={isSwiped}\n\tdata-removed={removed}\n\tdata-visible={isVisible}\n\tdata-y-position={coords[0]}\n\tdata-x-position={coords[1]}\n\tdata-index={index}\n\tdata-front={isFront}\n\tdata-swiping={swiping}\n\tdata-dismissable={dismissable}\n\tdata-type={toastType}\n\tdata-invert={invert}\n\tdata-swipe-out={swipeOut}\n\tdata-swipe-direction={swipeOutDirection}\n\tdata-expanded={Boolean(expanded || (expandByDefault && mounted))}\n\tstyle:--index={index}\n\tstyle:--toasts-before={index}\n\tstyle:--z-index={toastState.toasts.length - index}\n\tstyle:--offset={`${removed ? offsetBeforeRemove : offset}px`}\n\tstyle:--initial-height={expandByDefault ? 'auto' : `${initialHeight}px`}\n\tstyle={`${restProps.style} ${toast.style}`}\n\tonpointermove={handlePointerMove}\n\tonpointerup={handlePointerUp}\n\tonpointerdown={handlePointerDown}\n\tondragend={handleDragEnd}\n>\n\t{#if closeButton && !toast.component && toastType !== 'loading' && closeIcon !== null}\n\t\t<button\n\t\t\taria-label={closeButtonAriaLabel}\n\t\t\tdata-disabled={disabled}\n\t\t\tdata-close-button\n\t\t\tonclick={() => {\n\t\t\t\tif (disabled || !dismissable) return;\n\t\t\t\tdeleteToast();\n\t\t\t\ttoast.onDismiss?.(toast);\n\t\t\t}}\n\t\t\tclass={cn(classes?.closeButton, toast?.classes?.closeButton)}\n\t\t>\n\t\t\t{@render closeIcon?.()}\n\t\t</button>\n\t{/if}\n\n\t{#if toast.component}\n\t\t{@const Component = toast.component}\n\t\t<Component {...toast.componentProps} closeToast={deleteToast} />\n\t{:else}\n\t\t{#if (toastType || toast.icon || toast.promise) && toast.icon !== null && (icon !== null || toast.icon)}\n\t\t\t<div data-icon=\"\" class={cn(classes?.icon, toast?.classes?.icon)}>\n\t\t\t\t{#if toast.promise || toastType === 'loading'}\n\t\t\t\t\t{#if toast.icon}\n\t\t\t\t\t\t<toast.icon />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{@render LoadingIcon()}\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t\t{#if toast.type !== 'loading'}\n\t\t\t\t\t{#if toast.icon}\n\t\t\t\t\t\t<toast.icon />\n\t\t\t\t\t{:else if toastType === 'success'}\n\t\t\t\t\t\t{@render successIcon?.()}\n\t\t\t\t\t{:else if toastType === 'error'}\n\t\t\t\t\t\t{@render errorIcon?.()}\n\t\t\t\t\t{:else if toastType === 'warning'}\n\t\t\t\t\t\t{@render warningIcon?.()}\n\t\t\t\t\t{:else if toastType === 'info'}\n\t\t\t\t\t\t{@render infoIcon?.()}\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t{/if}\n\t\t<div data-content=\"\">\n\t\t\t<div\n\t\t\t\tdata-title=\"\"\n\t\t\t\tclass={cn(classes?.title, toast?.classes?.title)}\n\t\t\t>\n\t\t\t\t{#if toast.title}\n\t\t\t\t\t{#if typeof toast.title !== 'string'}\n\t\t\t\t\t\t{@const Title = toast.title}\n\t\t\t\t\t\t<Title {...toast.componentProps} />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{toast.title}\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t\t{#if toast.description}\n\t\t\t\t<div\n\t\t\t\t\tdata-description=\"\"\n\t\t\t\t\tclass={cn(\n\t\t\t\t\t\tdescriptionClass,\n\t\t\t\t\t\ttoastDescriptionClass,\n\t\t\t\t\t\tclasses?.description,\n\t\t\t\t\t\ttoast.classes?.description\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t{#if typeof toast.description !== 'string'}\n\t\t\t\t\t\t{@const Description = toast.description}\n\t\t\t\t\t\t<Description {...toast.componentProps} />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{toast.description}\n\t\t\t\t\t{/if}\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t</div>\n\t\t{#if toast.cancel}\n\t\t\t{#if typeof toast.cancel === 'function'}\n\t\t\t\t<toast.cancel />\n\t\t\t{:else if isAction(toast.cancel)}\n\t\t\t\t<button\n\t\t\t\t\tdata-button\n\t\t\t\t\tdata-cancel\n\t\t\t\t\tstyle={toast.cancelButtonStyle ?? cancelButtonStyle}\n\t\t\t\t\tclass={cn(\n\t\t\t\t\t\tclasses?.cancelButton,\n\t\t\t\t\t\ttoast?.classes?.cancelButton\n\t\t\t\t\t)}\n\t\t\t\t\tonclick={(event) => {\n\t\t\t\t\t\tif (!isAction(toast.cancel)) return;\n\t\t\t\t\t\tif (!dismissable) return;\n\t\t\t\t\t\ttoast.cancel?.onClick?.(event);\n\t\t\t\t\t\tdeleteToast();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{toast.cancel.label}\n\t\t\t\t</button>\n\t\t\t{/if}\n\t\t{/if}\n\t\t{#if toast.action}\n\t\t\t{#if typeof toast.action === 'function'}\n\t\t\t\t<toast.action />\n\t\t\t{:else if isAction(toast.action)}\n\t\t\t\t<button\n\t\t\t\t\tdata-button=\"\"\n\t\t\t\t\tstyle={toast.actionButtonStyle ?? actionButtonStyle}\n\t\t\t\t\tclass={cn(\n\t\t\t\t\t\tclasses?.actionButton,\n\t\t\t\t\t\ttoast?.classes?.actionButton\n\t\t\t\t\t)}\n\t\t\t\t\tonclick={(event) => {\n\t\t\t\t\t\tif (!isAction(toast.action)) return;\n\t\t\t\t\t\ttoast.action?.onClick(event);\n\t\t\t\t\t\tif (event.defaultPrevented) return;\n\t\t\t\t\t\tdeleteToast();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{toast.action.label}\n\t\t\t\t</button>\n\t\t\t{/if}\n\t\t{/if}\n\t{/if}\n</li>\n","<svg\n\txmlns=\"http://www.w3.org/2000/svg\"\n\tviewBox=\"0 0 20 20\"\n\tfill=\"currentColor\"\n\theight=\"20\"\n\twidth=\"20\"\n\tdata-sonner-success-icon\n>\n\t<path\n\t\tfill-rule=\"evenodd\"\n\t\td=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\"\n\t\tclip-rule=\"evenodd\"\n\t/>\n</svg>\n","<svg\n\txmlns=\"http://www.w3.org/2000/svg\"\n\tviewBox=\"0 0 20 20\"\n\tfill=\"currentColor\"\n\theight=\"20\"\n\twidth=\"20\"\n\tdata-sonner-error-icon\n>\n\t<path\n\t\tfill-rule=\"evenodd\"\n\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\"\n\t\tclip-rule=\"evenodd\"\n\t/>\n</svg>\n","<svg\n\tviewBox=\"0 0 64 64\"\n\tfill=\"currentColor\"\n\theight=\"20\"\n\twidth=\"20\"\n\tdata-sonner-warning-icon\n\txmlns=\"http://www.w3.org/2000/svg\"\n>\n\t<path\n\t\td=\"M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z\"\n\t/>\n\t<path\n\t\td=\"M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z\"\n\t/>\n</svg>\n","<svg\n\txmlns=\"http://www.w3.org/2000/svg\"\n\tviewBox=\"0 0 20 20\"\n\tfill=\"currentColor\"\n\theight=\"20\"\n\twidth=\"20\"\n\tdata-sonner-info-icon\n>\n\t<path\n\t\tfill-rule=\"evenodd\"\n\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z\"\n\t\tclip-rule=\"evenodd\"\n\t/>\n</svg>\n","<svg\n\txmlns=\"http://www.w3.org/2000/svg\"\n\twidth=\"12\"\n\theight=\"12\"\n\tviewBox=\"0 0 24 24\"\n\tfill=\"none\"\n\tstroke=\"currentColor\"\n\tstroke-width=\"1.5\"\n\tstroke-linecap=\"round\"\n\tstroke-linejoin=\"round\"\n\tdata-sonner-close-icon\n>\n\t<line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n\t<line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n</svg>\n","<script lang=\"ts\" module>\"use strict\";\n// visible toasts amount\nconst VISIBLE_TOASTS_AMOUNT = 3;\n// Viewport padding\nconst VIEWPORT_OFFSET = '24px';\n// Mobile viewport padding\nconst MOBILE_VIEWPORT_OFFSET = '16px';\n// Default lifetime of a toasts (in ms)\nconst TOAST_LIFETIME = 4000;\n// Default toast width\nconst TOAST_WIDTH = 356;\n// Default gap between toasts\nconst GAP = 14;\nconst DARK = 'dark';\nconst LIGHT = 'light';\nfunction getOffsetObject(defaultOffset, mobileOffset) {\n const styles = {};\n [defaultOffset, mobileOffset].forEach((offset, index) => {\n const isMobile = index === 1;\n const prefix = isMobile ? '--mobile-offset' : '--offset';\n const defaultValue = isMobile\n ? MOBILE_VIEWPORT_OFFSET\n : VIEWPORT_OFFSET;\n function assignAll(offset) {\n ['top', 'right', 'bottom', 'left'].forEach((key) => {\n styles[`${prefix}-${key}`] =\n typeof offset === 'number' ? `${offset}px` : offset;\n });\n }\n if (typeof offset === 'number' || typeof offset === 'string') {\n assignAll(offset);\n }\n else if (typeof offset === 'object') {\n ['top', 'right', 'bottom', 'left'].forEach((key) => {\n const value = offset[key];\n if (value === undefined) {\n styles[`${prefix}-${key}`] =\n defaultValue;\n }\n else {\n styles[`${prefix}-${key}`] =\n typeof value === 'number' ? `${value}px` : value;\n }\n });\n }\n else {\n assignAll(defaultValue);\n }\n });\n return styles;\n}\n</script>\n\n<script lang=\"ts\">import { onMount, untrack } from 'svelte';\nimport { SonnerState, toastState } from './toast-state.svelte';\nimport Toast from './Toast.svelte';\nimport SuccessIcon from './icons/SuccessIcon.svelte';\nimport ErrorIcon from './icons/ErrorIcon.svelte';\nimport WarningIcon from './icons/WarningIcon.svelte';\nimport InfoIcon from './icons/InfoIcon.svelte';\nimport CloseIcon from './icons/CloseIcon.svelte';\nimport { sonnerContext } from './internal/ctx.js';\nimport { on } from 'svelte/events';\nfunction getInitialTheme(t) {\n if (t !== 'system')\n return t;\n if (typeof window !== 'undefined') {\n if (window.matchMedia &&\n window.matchMedia('(prefers-color-scheme: dark)').matches) {\n return DARK;\n }\n return LIGHT;\n }\n return LIGHT;\n}\nlet { invert = false, position = 'bottom-right', hotkey = ['altKey', 'KeyT'], expand = false, closeButton = false, offset = VIEWPORT_OFFSET, mobileOffset = MOBILE_VIEWPORT_OFFSET, theme = 'light', richColors = false, duration = TOAST_LIFETIME, visibleToasts = VISIBLE_TOASTS_AMOUNT, toastOptions = {}, dir = 'auto', gap = GAP, loadingIcon: loadingIconProp, successIcon: successIconProp, errorIcon: errorIconProp, warningIcon: warningIconProp, closeIcon: closeIconProp, infoIcon: infoIconProp, containerAriaLabel = 'Notifications', class: className, closeButtonAriaLabel = 'Close toast', onblur, onfocus, onmouseenter, onmousemove, onmouseleave, ondragend, onpointerdown, onpointerup, ...restProps } = $props();\nfunction getDocumentDirection() {\n if (dir !== 'auto')\n return dir;\n if (typeof window === 'undefined')\n return 'ltr';\n if (typeof document === 'undefined')\n return 'ltr'; // For Fresh purpose\n const dirAttribute = document.documentElement.getAttribute('dir');\n if (dirAttribute === 'auto' || !dirAttribute) {\n untrack(() => (dir =\n window.getComputedStyle(document.documentElement)\n .direction ?? 'ltr'));\n return dir;\n }\n untrack(() => (dir = dirAttribute));\n return dirAttribute;\n}\nconst possiblePositions = $derived(Array.from(new Set([\n position,\n ...toastState.toasts\n .filter((toast) => toast.position)\n .map((toast) => toast.position)\n].filter(Boolean))));\nlet expanded = $state(false);\nlet interacting = $state(false);\nlet actualTheme = $state(getInitialTheme(theme));\nlet listRef = $state();\nlet lastFocusedElementRef = $state(null);\nlet isFocusWithin = $state(false);\nconst hotkeyLabel = $derived(hotkey.join('+').replace(/Key/g, '').replace(/Digit/g, ''));\n$effect(() => {\n if (toastState.toasts.length <= 1) {\n expanded = false;\n }\n});\n// Check for dismissed toasts and remove them. We need to do this to have dismiss animation.\n$effect(() => {\n const toastsToDismiss = toastState.toasts.filter((toast) => toast.dismiss && !toast.delete);\n if (toastsToDismiss.length > 0) {\n const updatedToasts = toastState.toasts.map((toast) => {\n const matchingToast = toastsToDismiss.find((dismissToast) => dismissToast.id === toast.id);\n if (matchingToast) {\n return { ...toast, delete: true };\n }\n return toast;\n });\n toastState.toasts = updatedToasts;\n }\n});\n$effect(() => {\n return () => {\n if (listRef && lastFocusedElementRef) {\n lastFocusedElementRef.focus({ preventScroll: true });\n lastFocusedElementRef = null;\n isFocusWithin = false;\n }\n };\n});\nonMount(() => {\n toastState.reset();\n const handleKeydown = (event) => {\n const isHotkeyPressed = hotkey.every((key) => \n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n event[key] || event.code === key);\n if (isHotkeyPressed) {\n expanded = true;\n listRef?.focus();\n }\n if (event.code === 'Escape' &&\n (document.activeElement === listRef ||\n listRef?.contains(document.activeElement))) {\n expanded = false;\n }\n };\n return on(document, 'keydown', handleKeydown);\n});\n$effect(() => {\n if (theme !== 'system') {\n actualTheme = theme;\n }\n if (typeof window !== 'undefined') {\n if (theme === 'system') {\n if (window.matchMedia &&\n window.matchMedia('(prefers-color-scheme: dark)').matches) {\n actualTheme = DARK;\n }\n else {\n actualTheme = LIGHT;\n }\n }\n const mediaQueryList = window.matchMedia('(prefers-color-scheme: dark)');\n const changeHandler = ({ matches }) => {\n actualTheme = matches ? DARK : LIGHT;\n };\n if ('addEventListener' in mediaQueryList) {\n mediaQueryList.addEventListener('change', changeHandler);\n }\n else {\n // @ts-expect-error deprecated API\n mediaQueryList.addListener(changeHandler);\n }\n }\n});\nconst handleBlur = (event) => {\n onblur?.(event);\n if (isFocusWithin &&\n !event.currentTarget.contains(event.relatedTarget)) {\n isFocusWithin = false;\n if (lastFocusedElementRef) {\n lastFocusedElementRef.focus({ preventScroll: true });\n lastFocusedElementRef = null;\n }\n }\n};\nconst handleFocus = (event) => {\n onfocus?.(event);\n const isNotDismissable = event.target instanceof HTMLElement &&\n event.target.dataset.dismissable === 'false';\n if (isNotDismissable)\n return;\n if (!isFocusWithin) {\n isFocusWithin = true;\n lastFocusedElementRef = event.relatedTarget;\n }\n};\nconst handlePointerDown = (event) => {\n onpointerdown?.(event);\n const isNotDismissable = event.target instanceof HTMLElement &&\n event.target.dataset.dismissable === 'false';\n if (isNotDismissable)\n return;\n interacting = true;\n};\nconst handleMouseEnter = (event) => {\n onmouseenter?.(event);\n expanded = true;\n};\nconst handleMouseLeave = (event) => {\n onmouseleave?.(event);\n if (!interacting) {\n expanded = false;\n }\n};\nconst handleMouseMove = (event) => {\n onmousemove?.(event);\n expanded = true;\n};\nconst handleDragEnd = (event) => {\n ondragend?.(event);\n expanded = false;\n};\nconst handlePointerUp = (event) => {\n onpointerup?.(event);\n interacting = false;\n};\nsonnerContext.set(new SonnerState());\n</script>\n\n<!-- eslint-disable-next-line svelte/valid-compile -->\n<!-- svelte-ignore a11y_no_noninteractive_tabindex -->\n<section\n\taria-label=\"{containerAriaLabel} {hotkeyLabel}\"\n\ttabindex={-1}\n\taria-live=\"polite\"\n\taria-relevant=\"additions text\"\n\taria-atomic=\"false\"\n>\n\t{#if toastState.toasts.length > 0}\n\t\t{#each possiblePositions as position, index (position)}\n\t\t\t{@const [y, x] = position.split('-')}\n\t\t\t{@const offsetObject = getOffsetObject(offset, mobileOffset)}\n\t\t\t<!-- eslint-disable-next-line svelte/valid-compile -->\n\t\t\t<!-- svelte-ignore a11y_no_noninteractive_tabindex -->\n\t\t\t<ol\n\t\t\t\ttabindex={-1}\n\t\t\t\tdir={getDocumentDirection()}\n\t\t\t\tbind:this={listRef}\n\t\t\t\tclass={className}\n\t\t\t\tdata-sonner-toaster\n\t\t\t\tdata-sonner-theme={actualTheme}\n\t\t\t\tdata-y-position={y}\n\t\t\t\tdata-x-position={x}\n\t\t\t\tstyle:--front-toast-height={`${toastState.heights[0]?.height}px`}\n\t\t\t\tstyle:--width={`${TOAST_WIDTH}px`}\n\t\t\t\tstyle:--gap={`${gap}px`}\n\t\t\t\tstyle:--offset-top={offsetObject['--offset-top']}\n\t\t\t\tstyle:--offset-right={offsetObject['--offset-right']}\n\t\t\t\tstyle:--offset-bottom={offsetObject['--offset-bottom']}\n\t\t\t\tstyle:--offset-left={offsetObject['--offset-left']}\n\t\t\t\tstyle:--mobile-offset-top={offsetObject['--mobile-offset-top']}\n\t\t\t\tstyle:--mobile-offset-right={offsetObject[\n\t\t\t\t\t'--mobile-offset-right'\n\t\t\t\t]}\n\t\t\t\tstyle:--mobile-offset-bottom={offsetObject[\n\t\t\t\t\t'--mobile-offset-bottom'\n\t\t\t\t]}\n\t\t\t\tstyle:--mobile-offset-left={offsetObject[\n\t\t\t\t\t'--mobile-offset-left'\n\t\t\t\t]}\n\t\t\t\tstyle={restProps.style}\n\t\t\t\tonblur={handleBlur}\n\t\t\t\tonfocus={handleFocus}\n\t\t\t\tonmouseenter={handleMouseEnter}\n\t\t\t\tonmousemove={handleMouseMove}\n\t\t\t\tonmouseleave={handleMouseLeave}\n\t\t\t\tondragend={handleDragEnd}\n\t\t\t\tonpointerdown={handlePointerDown}\n\t\t\t\tonpointerup={handlePointerUp}\n\t\t\t\t{...restProps}\n\t\t\t>\n\t\t\t\t{#each toastState.toasts.filter((toast) => (!toast.position && index === 0) || toast.position === position) as toast, index (toast.id)}\n\t\t\t\t\t<Toast\n\t\t\t\t\t\t{index}\n\t\t\t\t\t\t{toast}\n\t\t\t\t\t\tdefaultRichColors={richColors}\n\t\t\t\t\t\tduration={toastOptions?.duration ?? duration}\n\t\t\t\t\t\tclass={toastOptions?.class ?? ''}\n\t\t\t\t\t\tdescriptionClass={toastOptions?.descriptionClass || ''}\n\t\t\t\t\t\t{invert}\n\t\t\t\t\t\t{visibleToasts}\n\t\t\t\t\t\t{closeButton}\n\t\t\t\t\t\t{interacting}\n\t\t\t\t\t\t{position}\n\t\t\t\t\t\tstyle={toastOptions?.style ?? ''}\n\t\t\t\t\t\tclasses={toastOptions.classes || {}}\n\t\t\t\t\t\tunstyled={toastOptions.unstyled ?? false}\n\t\t\t\t\t\tcancelButtonStyle={toastOptions?.cancelButtonStyle ??\n\t\t\t\t\t\t\t''}\n\t\t\t\t\t\tactionButtonStyle={toastOptions?.actionButtonStyle ??\n\t\t\t\t\t\t\t''}\n\t\t\t\t\t\tcloseButtonAriaLabel={toastOptions?.closeButtonAriaLabel ??\n\t\t\t\t\t\t\tcloseButtonAriaLabel}\n\t\t\t\t\t\texpandByDefault={expand}\n\t\t\t\t\t\t{expanded}\n\t\t\t\t\t\tloadingIcon={loadingIconProp}\n\t\t\t\t\t>\n\t\t\t\t\t\t{#snippet successIcon()}\n\t\t\t\t\t\t\t{#if successIconProp}\n\t\t\t\t\t\t\t\t{@render successIconProp?.()}\n\t\t\t\t\t\t\t{:else if successIconProp !== null}\n\t\t\t\t\t\t\t\t<SuccessIcon />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/snippet}\n\n\t\t\t\t\t\t{#snippet errorIcon()}\n\t\t\t\t\t\t\t{#if errorIconProp}\n\t\t\t\t\t\t\t\t{@render errorIconProp?.()}\n\t\t\t\t\t\t\t{:else if errorIconProp !== null}\n\t\t\t\t\t\t\t\t<ErrorIcon />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/snippet}\n\n\t\t\t\t\t\t{#snippet warningIcon()}\n\t\t\t\t\t\t\t{#if warningIconProp}\n\t\t\t\t\t\t\t\t{@render warningIconProp?.()}\n\t\t\t\t\t\t\t{:else if warningIconProp !== null}\n\t\t\t\t\t\t\t\t<WarningIcon />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/snippet}\n\n\t\t\t\t\t\t{#snippet infoIcon()}\n\t\t\t\t\t\t\t{#if infoIconProp}\n\t\t\t\t\t\t\t\t{@render infoIconProp?.()}\n\t\t\t\t\t\t\t{:else if infoIconProp !== null}\n\t\t\t\t\t\t\t\t<InfoIcon />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/snippet}\n\n\t\t\t\t\t\t{#snippet closeIcon()}\n\t\t\t\t\t\t\t{#if closeIconProp}\n\t\t\t\t\t\t\t\t{@render closeIconProp?.()}\n\t\t\t\t\t\t\t{:else if closeIconProp !== null}\n\t\t\t\t\t\t\t\t<CloseIcon />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/snippet}\n\t\t\t\t\t</Toast>\n\t\t\t\t{/each}\n\t\t\t</ol>\n\t\t{/each}\n\t{/if}\n</section>\n\n<style global>\n\t:global(html[dir='ltr']),\n\t:global([data-sonner-toaster][dir='ltr']) {\n\t\t--toast-icon-margin-start: -3px;\n\t\t--toast-icon-margin-end: 4px;\n\t\t--toast-svg-margin-start: -1px;\n\t\t--toast-svg-margin-end: 0px;\n\t\t--toast-button-margin-start: auto;\n\t\t--toast-button-margin-end: 0;\n\t\t--toast-close-button-start: 0;\n\t\t--toast-close-button-end: unset;\n\t\t--toast-close-button-transform: translate(-35%, -35%);\n\t}\n\n\t:global(html[dir='rtl']),\n\t:global([data-sonner-toaster][dir='rtl']) {\n\t\t--toast-icon-margin-start: 4px;\n\t\t--toast-icon-margin-end: -3px;\n\t\t--toast-svg-margin-start: 0px;\n\t\t--toast-svg-margin-end: -1px;\n\t\t--toast-button-margin-start: 0;\n\t\t--toast-button-margin-end: auto;\n\t\t--toast-close-button-start: unset;\n\t\t--toast-close-button-end: 0;\n\t\t--toast-close-button-transform: translate(35%, -35%);\n\t}\n\n\t:global([data-sonner-toaster]) {\n\t\tposition: fixed;\n\t\twidth: var(--width);\n\t\tfont-family:\n\t\t\tui-sans-serif,\n\t\t\tsystem-ui,\n\t\t\t-apple-system,\n\t\t\tBlinkMacSystemFont,\n\t\t\tSegoe UI,\n\t\t\tRoboto,\n\t\t\tHelvetica Neue,\n\t\t\tArial,\n\t\t\tNoto Sans,\n\t\t\tsans-serif,\n\t\t\tApple Color Emoji,\n\t\t\tSegoe UI Emoji,\n\t\t\tSegoe UI Symbol,\n\t\t\tNoto Color Emoji;\n\t\t--gray1: hsl(0, 0%, 99%);\n\t\t--gray2: hsl(0, 0%, 97.3%);\n\t\t--gray3: hsl(0, 0%, 95.1%);\n\t\t--gray4: hsl(0, 0%, 93%);\n\t\t--gray5: hsl(0, 0%, 90.9%);\n\t\t--gray6: hsl(0, 0%, 88.7%);\n\t\t--gray7: hsl(0, 0%, 85.8%);\n\t\t--gray8: hsl(0, 0%, 78%);\n\t\t--gray9: hsl(0, 0%, 56.1%);\n\t\t--gray10: hsl(0, 0%, 52.3%);\n\t\t--gray11: hsl(0, 0%, 43.5%);\n\t\t--gray12: hsl(0, 0%, 9%);\n\t\t--border-radius: 8px;\n\t\tbox-sizing: border-box;\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tlist-style: none;\n\t\toutline: none;\n\t\tz-index: 999999999;\n\t\ttransition: transform 400ms ease;\n\t}\n\n\t@media (hover: none) and (pointer: coarse) {\n\t\t:global([data-sonner-toaster][data-lifted='true']) {\n\t\t\ttransform: none;\n\t\t}\n\t}\n\n\t:global([data-sonner-toaster][data-x-position='right']) {\n\t\tright: var(--offset-right);\n\t}\n\n\t:global([data-sonner-toaster][data-x-position='left']) {\n\t\tleft: var(--offset-left);\n\t}\n\n\t:global([data-sonner-toaster][data-x-position='center']) {\n\t\tleft: 50%;\n\t\ttransform: translateX(-50%);\n\t}\n\n\t:global([data-sonner-toaster][data-y-position='top']) {\n\t\ttop: var(--offset-top);\n\t}\n\n\t:global([data-sonner-toaster][data-y-position='bottom']) {\n\t\tbottom: var(--offset-bottom);\n\t}\n\n\t:global([data-sonner-toast]) {\n\t\t--y: translateY(100%);\n\t\t--lift-amount: calc(var(--lift) * var(--gap));\n\t\tz-index: var(--z-index);\n\t\tposition: absolute;\n\t\topacity: 0;\n\t\ttransform: var(--y);\n\t\ttouch-action: none;\n\t\ttransition:\n\t\t\ttransform 400ms,\n\t\t\topacity 400ms,\n\t\t\theight 400ms,\n\t\t\tbox-shadow 200ms;\n\t\tbox-sizing: border-box;\n\t\toutline: none;\n\t\toverflow-wrap: anywhere;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) {\n\t\tpadding: 16px;\n\t\tbackground: var(--normal-bg);\n\t\tborder: 1px solid var(--normal-border);\n\t\tcolor: var(--normal-text);\n\t\tborder-radius: var(--border-radius);\n\t\tbox-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);\n\t\twidth: var(--width);\n\t\tfont-size: 13px;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: 6px;\n\t}\n\n\t:global([data-sonner-toast]:focus-visible) {\n\t\tbox-shadow:\n\t\t\t0px 4px 12px rgba(0, 0, 0, 0.1),\n\t\t\t0 0 0 2px rgba(0, 0, 0, 0.2);\n\t}\n\n\t:global([data-sonner-toast][data-y-position='top']) {\n\t\ttop: 0;\n\t\t--y: translateY(-100%);\n\t\t--lift: 1;\n\t\t--lift-amount: calc(1 * var(--gap));\n\t}\n\n\t:global([data-sonner-toast][data-y-position='bottom']) {\n\t\tbottom: 0;\n\t\t--y: translateY(100%);\n\t\t--lift: -1;\n\t\t--lift-amount: calc(var(--lift) * var(--gap));\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-description]) {\n\t\tfont-weight: 400;\n\t\tline-height: 1.4;\n\t\tcolor: #3f3f3f;\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-styled='true']\n\t\t[data-description]) {\n\t\tcolor: inherit;\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']) :global([data-description]) {\n\t\tcolor: hsl(0, 0%, 91%);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-title]) {\n\t\tfont-weight: 500;\n\t\tline-height: 1.5;\n\t\tcolor: inherit;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-icon]) {\n\t\tdisplay: flex;\n\t\theight: 16px;\n\t\twidth: 16px;\n\t\tposition: relative;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\t\tflex-shrink: 0;\n\t\tmargin-left: var(--toast-icon-margin-start);\n\t\tmargin-right: var(--toast-icon-margin-end);\n\t}\n\n\t:global([data-sonner-toast][data-promise='true']) :global([data-icon]) > :global(svg) {\n\t\topacity: 0;\n\t\ttransform: scale(0.8);\n\t\ttransform-origin: center;\n\t\tanimation: sonner-fade-in 300ms ease forwards;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-icon]) > :global(*) {\n\t\tflex-shrink: 0;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-icon]) :global(svg) {\n\t\tmargin-left: var(--toast-svg-margin-start);\n\t\tmargin-right: var(--toast-svg-margin-end);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-content]) {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 2px;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-button]) {\n\t\tborder-radius: 4px;\n\t\tpadding-left: 8px;\n\t\tpadding-right: 8px;\n\t\theight: 24px;\n\t\tfont-size: 12px;\n\t\tcolor: var(--normal-bg);\n\t\tbackground: var(--normal-text);\n\t\tmargin-left: var(--toast-button-margin-start);\n\t\tmargin-right: var(--toast-button-margin-end);\n\t\tborder: none;\n\t\tfont-weight: 500;\n\t\tcursor: pointer;\n\t\toutline: none;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex-shrink: 0;\n\t\ttransition:\n\t\t\topacity 400ms,\n\t\t\tbox-shadow 200ms;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-button]:focus-visible) {\n\t\tbox-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-button]:first-of-type) {\n\t\tmargin-left: var(--toast-button-margin-start);\n\t\tmargin-right: var(--toast-button-margin-end);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-cancel]) {\n\t\tcolor: var(--normal-text);\n\t\tbackground: rgba(0, 0, 0, 0.08);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']\n\t\t[data-sonner-toast][data-styled='true']\n\t\t[data-cancel]) {\n\t\tbackground: rgba(255, 255, 255, 0.3);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-close-button]) {\n\t\tposition: absolute;\n\t\tleft: var(--toast-close-button-start);\n\t\tright: var(--toast-close-button-end);\n\t\ttop: 0;\n\t\theight: 20px;\n\t\twidth: 20px;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tpadding: 0;\n\t\tcolor: var(--gray12);\n\t\tbackground: var(--normal-bg);\n\t\tborder: 1px solid var(--gray4);\n\t\ttransform: var(--toast-close-button-transform);\n\t\tborder-radius: 50%;\n\t\tcursor: pointer;\n\t\tz-index: 1;\n\t\ttransition:\n\t\t\topacity 100ms,\n\t\t\tbackground 200ms,\n\t\t\tborder-color 200ms;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-close-button]:focus-visible) {\n\t\tbox-shadow:\n\t\t\t0px 4px 12px rgba(0, 0, 0, 0.1),\n\t\t\t0 0 0 2px rgba(0, 0, 0, 0.2);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-disabled='true']) {\n\t\tcursor: not-allowed;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']:hover) :global([data-close-button]:hover) {\n\t\tbackground: var(--gray2);\n\t\tborder-color: var(--gray5);\n\t}\n\n\t:global([data-sonner-toast][data-swiping='true']::before) {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: -100%;\n\t\tright: -100%;\n\t\theight: 100%;\n\t\tz-index: -1;\n\t}\n\n\t:global([data-sonner-toast][data-y-position='top'][data-swiping='true']::before) {\n\t\tbottom: 50%;\n\t\ttransform: scaleY(3) translateY(50%);\n\t}\n\n\t:global([data-sonner-toast][data-y-position='bottom'][data-swiping='true']::before) {\n\t\ttop: 50%;\n\t\ttransform: scaleY(3) translateY(-50%);\n\t}\n\n\t:global([data-sonner-toast][data-swiping='false'][data-removed='true']::before) {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\ttransform: scaleY(2);\n\t}\n\n\t:global([data-sonner-toast][data-expanded='true']::after) {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\theight: calc(var(--gap) + 1px);\n\t\tbottom: 100%;\n\t\twidth: 100%;\n\t}\n\n\t:global([data-sonner-toast][data-mounted='true']) {\n\t\t--y: translateY(0);\n\t\topacity: 1;\n\t}\n\n\t:global([data-sonner-toast][data-expanded='false'][data-front='false']) {\n\t\t--scale: var(--toasts-before) * 0.05 + 1;\n\t\t--y: translateY(calc(var(--lift-amount) * var(--toasts-before)))\n\t\t\tscale(calc(-1 * var(--scale)));\n\t\theight: var(--front-toast-height);\n\t}\n\n\t:global([data-sonner-toast]) > :global(*) {\n\t\ttransition: opacity 400ms;\n\t}\n\n\t:global([data-sonner-toast][data-x-position='right']) {\n\t\tright: 0;\n\t}\n\n\t:global([data-sonner-toast][data-x-position='left']) {\n\t\tleft: 0;\n\t}\n\n\t:global([data-sonner-toast][data-expanded='false'][data-front='false'][data-styled='true']\n\t\t)> :global(*) {\n\t\topacity: 0;\n\t}\n\n\t:global([data-sonner-toast][data-visible='false']) {\n\t\topacity: 0;\n\t\tpointer-events: none;\n\t}\n\n\t:global([data-sonner-toast][data-mounted='true'][data-expanded='true']) {\n\t\t--y: translateY(calc(var(--lift) * var(--offset)));\n\t\theight: var(--initial-height);\n\t}\n\n\t:global([data-sonner-toast][data-removed='true'][data-front='true'][data-swipe-out='false']) {\n\t\t--y: translateY(calc(var(--lift) * -100%));\n\t\topacity: 0;\n\t}\n\n\t:global([data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='true']) {\n\t\t--y: translateY(\n\t\t\tcalc(var(--lift) * var(--offset) + var(--lift) * -100%)\n\t\t);\n\t\topacity: 0;\n\t}\n\n\t:global([data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='false']) {\n\t\t--y: translateY(40%);\n\t\topacity: 0;\n\t\ttransition:\n\t\t\ttransform 500ms,\n\t\t\topacity 200ms;\n\t}\n\n\t:global([data-sonner-toast][data-removed='true'][data-front='false']::before) {\n\t\theight: calc(var(--initial-height) + 20%);\n\t}\n\n\t:global([data-sonner-toast][data-swiping='true']) {\n\t\ttransform: var(--y) translateY(var(--swipe-amount-y, 0px))\n\t\t\ttranslateX(var(--swipe-amount-x, 0px));\n\t\ttransition: none;\n\t}\n\n\t:global([data-sonner-toast][data-swiped='true']) {\n\t\tuser-select: none;\n\t}\n\n\t:global([data-sonner-toast][data-swipe-out='true'][data-y-position='bottom']),\n\t:global([data-sonner-toast][data-swipe-out='true'][data-y-position='top']) {\n\t\tanimation-duration: 200ms;\n\t\tanimation-timing-function: ease-out;\n\t\tanimation-fill-mode: forwards;\n\t}\n\n\t:global([data-sonner-toast][data-swipe-out='true'][data-swipe-direction='left']) {\n\t\tanimation-name: swipe-out-left;\n\t}\n\n\t:global([data-sonner-toast][data-swipe-out='true'][data-swipe-direction='right']) {\n\t\tanimation-name: swipe-out-right;\n\t}\n\n\t:global([data-sonner-toast][data-swipe-out='true'][data-swipe-direction='up']) {\n\t\tanimation-name: swipe-out-up;\n\t}\n\n\t:global([data-sonner-toast][data-swipe-out='true'][data-swipe-direction='down']) {\n\t\tanimation-name: swipe-out-down;\n\t}\n\n\t@keyframes -global-swipe-out-left {\n\t\tfrom {\n\t\t\ttransform: var(--y) translateX(var(--swipe-amount-x));\n\t\t\topacity: 1;\n\t\t}\n\n\t\tto {\n\t\t\ttransform: var(--y) translateX(calc(var(--swipe-amount-x) - 100%));\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes -global-swipe-out-right {\n\t\tfrom {\n\t\t\ttransform: var(--y) translateX(var(--swipe-amount-x));\n\t\t\topacity: 1;\n\t\t}\n\n\t\tto {\n\t\t\ttransform: var(--y) translateX(calc(var(--swipe-amount-x) + 100%));\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes -global-swipe-out-up {\n\t\tfrom {\n\t\t\ttransform: var(--y) translateY(var(--swipe-amount-y));\n\t\t\topacity: 1;\n\t\t}\n\n\t\tto {\n\t\t\ttransform: var(--y) translateY(calc(var(--swipe-amount-y) - 100%));\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes -global-swipe-out-down {\n\t\tfrom {\n\t\t\ttransform: var(--y) translateY(var(--swipe-amount-y));\n\t\t\topacity: 1;\n\t\t}\n\n\t\tto {\n\t\t\ttransform: var(--y) translateY(calc(var(--swipe-amount-y) + 100%));\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@media (max-width: 600px) {\n\t\t:global([data-sonner-toaster]) {\n\t\t\tposition: fixed;\n\t\t\tright: var(--mobile-offset-right);\n\t\t\tleft: var(--mobile-offset-left);\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t:global([data-sonner-toaster][dir='rtl']) {\n\t\t\tleft: calc(var(--mobile-offset-left) * -1);\n\t\t}\n\n\t\t:global([data-sonner-toaster]) :global([data-sonner-toast]) {\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\twidth: calc(100% - var(--mobile-offset-left) * 2);\n\t\t}\n\n\t\t:global([data-sonner-toaster][data-x-position='left']) {\n\t\t\tleft: var(--mobile-offset-left);\n\t\t}\n\n\t\t:global([data-sonner-toaster][data-y-position='bottom']) {\n\t\t\tbottom: var(--mobile-offset-bottom);\n\t\t}\n\n\t\t:global([data-sonner-toaster][data-y-position='top']) {\n\t\t\ttop: var(--mobile-offset-top);\n\t\t}\n\n\t\t:global([data-sonner-toaster][data-x-position='center']) {\n\t\t\tleft: var(--mobile-offset-left);\n\t\t\tright: var(--mobile-offset-right);\n\t\t\ttransform: none;\n\t\t}\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='light']) {\n\t\t--normal-bg: #fff;\n\t\t--normal-border: var(--gray4);\n\t\t--normal-text: var(--gray12);\n\n\t\t--success-bg: hsl(143, 85%, 96%);\n\t\t--success-border: hsl(145, 92%, 87%);\n\t\t--success-text: hsl(140, 100%, 27%);\n\n\t\t--info-bg: hsl(208, 100%, 97%);\n\t\t--info-border: hsl(221, 91%, 93%);\n\t\t--info-text: hsl(210, 92%, 45%);\n\n\t\t--warning-bg: hsl(49, 100%, 97%);\n\t\t--warning-border: hsl(49, 91%, 84%);\n\t\t--warning-text: hsl(31, 92%, 45%);\n\n\t\t--error-bg: hsl(359, 100%, 97%);\n\t\t--error-border: hsl(359, 100%, 94%);\n\t\t--error-text: hsl(360, 100%, 45%);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='light']\n\t\t[data-sonner-toast][data-invert='true']) {\n\t\t--normal-bg: #000;\n\t\t--normal-border: hsl(0, 0%, 20%);\n\t\t--normal-text: var(--gray1);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']\n\t\t[data-sonner-toast][data-invert='true']) {\n\t\t--normal-bg: #fff;\n\t\t--normal-border: var(--gray3);\n\t\t--normal-text: var(--gray12);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']) {\n\t\t--normal-bg: #000;\n\t\t--normal-bg-hover: hsl(0, 0%, 12%);\n\t\t--normal-border: hsl(0, 0%, 20%);\n\t\t--normal-border-hover: hsl(0, 0%, 25%);\n\t\t--normal-text: var(--gray1);\n\n\t\t--success-bg: hsl(150, 100%, 6%);\n\t\t--success-border: hsl(147, 100%, 12%);\n\t\t--success-text: hsl(150, 86%, 65%);\n\n\t\t--info-bg: hsl(215, 100%, 6%);\n\t\t--info-border: hsl(223, 43%, 17%);\n\t\t--info-text: hsl(216, 87%, 65%);\n\n\t\t--warning-bg: hsl(64, 100%, 6%);\n\t\t--warning-border: hsl(60, 100%, 9%);\n\t\t--warning-text: hsl(46, 87%, 65%);\n\n\t\t--error-bg: hsl(358, 76%, 10%);\n\t\t--error-border: hsl(357, 89%, 16%);\n\t\t--error-text: hsl(358, 100%, 81%);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']\n\t\t[data-sonner-toast]\n\t\t[data-close-button]) {\n\t\tbackground: var(--normal-bg);\n\t\tborder-color: var(--normal-border);\n\t\tcolor: var(--normal-text);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']\n\t\t[data-sonner-toast]\n\t\t[data-close-button]:hover) {\n\t\tbackground: var(--normal-bg-hover);\n\t\tborder-color: var(--normal-border-hover);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='success']) {\n\t\tbackground: var(--success-bg);\n\t\tborder-color: var(--success-border);\n\t\tcolor: var(--success-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='success']\n\t\t[data-close-button]) {\n\t\tbackground: var(--success-bg);\n\t\tborder-color: var(--success-border);\n\t\tcolor: var(--success-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='info']) {\n\t\tbackground: var(--info-bg);\n\t\tborder-color: var(--info-border);\n\t\tcolor: var(--info-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='info']\n\t\t[data-close-button]) {\n\t\tbackground: var(--info-bg);\n\t\tborder-color: var(--info-border);\n\t\tcolor: var(--info-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='warning']) {\n\t\tbackground: var(--warning-bg);\n\t\tborder-color: var(--warning-border);\n\t\tcolor: var(--warning-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='warning']\n\t\t[data-close-button]) {\n\t\tbackground: var(--warning-bg);\n\t\tborder-color: var(--warning-border);\n\t\tcolor: var(--warning-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='error']) {\n\t\tbackground: var(--error-bg);\n\t\tborder-color: var(--error-border);\n\t\tcolor: var(--error-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='error']\n\t\t[data-close-button]) {\n\t\tbackground: var(--error-bg);\n\t\tborder-color: var(--error-border);\n\t\tcolor: var(--error-text);\n\t}\n\n\t:global(.sonner-loading-wrapper) {\n\t\t--size: 16px;\n\t\theight: var(--size);\n\t\twidth: var(--size);\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tz-index: 10;\n\t}\n\n\t:global(.sonner-loading-wrapper[data-visible='false']) {\n\t\ttransform-origin: center;\n\t\tanimation: sonner-fade-out 0.2s ease forwards;\n\t}\n\n\t:global(.sonner-spinner) {\n\t\tposition: relative;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\theight: var(--size);\n\t\twidth: var(--size);\n\t}\n\n\t:global(.sonner-loading-bar) {\n\t\tanimation: sonner-spin 1.2s linear infinite;\n\t\tbackground: var(--gray11);\n\t\tborder-radius: 6px;\n\t\theight: 8%;\n\t\tleft: -10%;\n\t\tposition: absolute;\n\t\ttop: -3.9%;\n\t\twidth: 24%;\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(1)) {\n\t\tanimation-delay: -1.2s;\n\t\ttransform: rotate(0.0001deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(2)) {\n\t\tanimation-delay: -1.1s;\n\t\ttransform: rotate(30deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(3)) {\n\t\tanimation-delay: -1s;\n\t\ttransform: rotate(60deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(4)) {\n\t\tanimation-delay: -0.9s;\n\t\ttransform: rotate(90deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(5)) {\n\t\tanimation-delay: -0.8s;\n\t\ttransform: rotate(120deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(6)) {\n\t\tanimation-delay: -0.7s;\n\t\ttransform: rotate(150deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(7)) {\n\t\tanimation-delay: -0.6s;\n\t\ttransform: rotate(180deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(8)) {\n\t\tanimation-delay: -0.5s;\n\t\ttransform: rotate(210deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(9)) {\n\t\tanimation-delay: -0.4s;\n\t\ttransform: rotate(240deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(10)) {\n\t\tanimation-delay: -0.3s;\n\t\ttransform: rotate(270deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(11)) {\n\t\tanimation-delay: -0.2s;\n\t\ttransform: rotate(300deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(12)) {\n\t\tanimation-delay: -0.1s;\n\t\ttransform: rotate(330deg) translate(146%);\n\t}\n\n\t@keyframes -global-sonner-fade-in {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t\ttransform: scale(0.8);\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n\n\t@keyframes -global-sonner-fade-out {\n\t\t0% {\n\t\t\topacity: 1;\n\t\t\ttransform: scale(1);\n\t\t}\n\t\t100% {\n\t\t\topacity: 0;\n\t\t\ttransform: scale(0.8);\n\t\t}\n\t}\n\n\t@keyframes -global-sonner-spin {\n\t\t0% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 0.15;\n\t\t}\n\t}\n\n\t@media (prefers-reduced-motion) {\n\t\t:global([data-sonner-toast]),\n\t\t:global([data-sonner-toast]) > :global(*),\n\t\t:global(.sonner-loading-bar) {\n\t\t\ttransition: none !important;\n\t\t\tanimation: none !important;\n\t\t}\n\t}\n\n\t:global(.sonner-loader) {\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\ttransform-origin: center;\n\t\ttransition:\n\t\t\topacity 200ms,\n\t\t\ttransform 200ms;\n\t}\n\n\t:global(.sonner-loader[data-visible='false']) {\n\t\topacity: 0;\n\t\ttransform: scale(0.8) translate(-50%, -50%);\n\t}\n</style>\n","import { MediaQuery } from \"svelte/reactivity\";\n\nconst DEFAULT_MOBILE_BREAKPOINT = 768;\n\nexport class IsMobile extends MediaQuery {\n\tconstructor(breakpoint: number = DEFAULT_MOBILE_BREAKPOINT) {\n\t\tsuper(`max-width: ${breakpoint - 1}px`);\n\t}\n}\n","export const SIDEBAR_COOKIE_NAME = \"sidebar:state\";\nexport const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\nexport const SIDEBAR_WIDTH = \"16rem\";\nexport const SIDEBAR_WIDTH_MOBILE = \"18rem\";\nexport const SIDEBAR_WIDTH_ICON = \"3rem\";\nexport const SIDEBAR_KEYBOARD_SHORTCUT = \"b\";\n","import { IsMobile } from \"$lib/hooks/is-mobile.svelte.js\";\nimport { getContext, setContext } from \"svelte\";\nimport { SIDEBAR_KEYBOARD_SHORTCUT } from \"./constants.js\";\n\ntype Getter<T> = () => T;\n\nexport type SidebarStateProps = {\n\t/**\n\t * A getter function that returns the current open state of the sidebar.\n\t * We use a getter function here to support `bind:open` on the `Sidebar.Provider`\n\t * component.\n\t */\n\topen: Getter<boolean>;\n\n\t/**\n\t * A function that sets the open state of the sidebar. To support `bind:open`, we need\n\t * a source of truth for changing the open state to ensure it will be synced throughout\n\t * the sub-components and any `bind:` references.\n\t */\n\tsetOpen: (open: boolean) => void;\n};\n\nclass SidebarState {\n\treadonly props: SidebarStateProps;\n\topen = $derived.by(() => this.props.open());\n\topenMobile = $state(false);\n\tsetOpen: SidebarStateProps[\"setOpen\"];\n\t#isMobile: IsMobile;\n\tstate = $derived.by(() => (this.open ? \"expanded\" : \"collapsed\"));\n\n\tconstructor(props: SidebarStateProps) {\n\t\tthis.setOpen = props.setOpen;\n\t\tthis.#isMobile = new IsMobile();\n\t\tthis.props = props;\n\t}\n\n\t// Convenience getter for checking if the sidebar is mobile\n\t// without this, we would need to use `sidebar.isMobile.current` everywhere\n\tget isMobile() {\n\t\treturn this.#isMobile.current;\n\t}\n\n\t// Event handler to apply to the `<svelte:window>`\n\thandleShortcutKeydown = (e: KeyboardEvent) => {\n\t\tif (e.key === SIDEBAR_KEYBOARD_SHORTCUT && (e.metaKey || e.ctrlKey)) {\n\t\t\te.preventDefault();\n\t\t\tthis.toggle();\n\t\t}\n\t};\n\n\tsetOpenMobile = (value: boolean) => {\n\t\tthis.openMobile = value;\n\t};\n\n\ttoggle = () => {\n\t\treturn this.#isMobile.current\n\t\t\t? (this.openMobile = !this.openMobile)\n\t\t\t: this.setOpen(!this.open);\n\t};\n}\n\nconst SYMBOL_KEY = \"scn-sidebar\";\n\n/**\n * Instantiates a new `SidebarState` instance and sets it in the context.\n *\n * @param props The constructor props for the `SidebarState` class.\n * @returns The `SidebarState` instance.\n */\nexport function setSidebar(props: SidebarStateProps): SidebarState {\n\treturn setContext(Symbol.for(SYMBOL_KEY), new SidebarState(props));\n}\n\n/**\n * Retrieves the `SidebarState` instance from the context. This is a class instance,\n * so you cannot destructure it.\n * @returns The `SidebarState` instance.\n */\nexport function useSidebar(): SidebarState {\n\treturn getContext(Symbol.for(SYMBOL_KEY));\n}\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sidebar-content\"\n\tdata-sidebar=\"content\"\n\tclass={cn(\n\t\t\"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sidebar-footer\"\n\tdata-sidebar=\"footer\"\n\tclass={cn(\"flex flex-col gap-2 p-2\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sidebar-group-content\"\n\tdata-sidebar=\"group-content\"\n\tclass={cn(\"w-full text-sm\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sidebar-group\"\n\tdata-sidebar=\"group\"\n\tclass={cn(\"relative flex w-full min-w-0 flex-col p-2\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sidebar-header\"\n\tdata-sidebar=\"header\"\n\tclass={cn(\"flex flex-col gap-2 p-2\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<main\n\tbind:this={ref}\n\tdata-slot=\"sidebar-inset\"\n\tclass={cn(\n\t\t\"bg-background relative flex min-w-0 w-full flex-1 flex-col\",\n\t\t\"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</main>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuGroupProps } from \"../types.js\";\n\timport { MenuGroupState } from \"../menu.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: MenuGroupProps = $props();\n\n\tconst groupState = MenuGroupState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\tconst mergedProps = $derived(mergeProps(restProps, groupState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport { DialogRootState } from \"../dialog.svelte.js\";\n\timport type { DialogRootProps } from \"../types.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tchildren,\n\t}: DialogRootProps = $props();\n\n\tDialogRootState.create({\n\t\tvariant: boxWith(() => \"dialog\"),\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n{@render children?.()}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { DialogCloseState } from \"../dialog.svelte.js\";\n\timport type { DialogCloseProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tdisabled = false,\n\t\t...restProps\n\t}: DialogCloseProps = $props();\n\n\tconst closeState = DialogCloseState.create({\n\t\tvariant: boxWith(() => \"close\"),\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdisabled: boxWith(() => Boolean(disabled)),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, closeState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { DialogContentState } from \"../dialog.svelte.js\";\n\timport type { DialogContentProps } from \"../types.js\";\n\timport DismissibleLayer from \"../../utilities/dismissible-layer/dismissible-layer.svelte\";\n\timport EscapeLayer from \"../../utilities/escape-layer/escape-layer.svelte\";\n\timport FocusScope from \"../../utilities/focus-scope/focus-scope.svelte\";\n\timport TextSelectionLayer from \"../../utilities/text-selection-layer/text-selection-layer.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport ScrollLock from \"../../utilities/scroll-lock/scroll-lock.svelte\";\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tforceMount = false,\n\t\tonCloseAutoFocus = noop,\n\t\tonOpenAutoFocus = noop,\n\t\tonEscapeKeydown = noop,\n\t\tonInteractOutside = noop,\n\t\ttrapFocus = true,\n\t\tpreventScroll = true,\n\t\trestoreScrollDelay = null,\n\t\t...restProps\n\t}: DialogContentProps = $props();\n\n\tconst contentState = DialogContentState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n</script>\n\n{#if contentState.shouldRender || forceMount}\n\t<FocusScope\n\t\tref={contentState.opts.ref}\n\t\tloop\n\t\t{trapFocus}\n\t\tenabled={contentState.root.opts.open.current}\n\t\t{onOpenAutoFocus}\n\t\t{onCloseAutoFocus}\n\t>\n\t\t{#snippet focusScope({ props: focusScopeProps })}\n\t\t\t<EscapeLayer\n\t\t\t\t{...mergedProps}\n\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\tref={contentState.opts.ref}\n\t\t\t\tonEscapeKeydown={(e) => {\n\t\t\t\t\tonEscapeKeydown(e);\n\t\t\t\t\tif (e.defaultPrevented) return;\n\t\t\t\t\tcontentState.root.handleClose();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<DismissibleLayer\n\t\t\t\t\t{...mergedProps}\n\t\t\t\t\tref={contentState.opts.ref}\n\t\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\t\tonInteractOutside={(e) => {\n\t\t\t\t\t\tonInteractOutside(e);\n\t\t\t\t\t\tif (e.defaultPrevented) return;\n\t\t\t\t\t\tcontentState.root.handleClose();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<TextSelectionLayer\n\t\t\t\t\t\t{...mergedProps}\n\t\t\t\t\t\tref={contentState.opts.ref}\n\t\t\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\t\t>\n\t\t\t\t\t\t{#if child}\n\t\t\t\t\t\t\t{#if contentState.root.opts.open.current}\n\t\t\t\t\t\t\t\t<ScrollLock {preventScroll} {restoreScrollDelay} />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{@render child({\n\t\t\t\t\t\t\t\tprops: mergeProps(mergedProps, focusScopeProps),\n\t\t\t\t\t\t\t\t...contentState.snippetProps,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t<ScrollLock {preventScroll} />\n\t\t\t\t\t\t\t<div {...mergeProps(mergedProps, focusScopeProps)}>\n\t\t\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t</TextSelectionLayer>\n\t\t\t\t</DismissibleLayer>\n\t\t\t</EscapeLayer>\n\t\t{/snippet}\n\t</FocusScope>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { TooltipProviderProps } from \"../types.js\";\n\timport { TooltipProviderState } from \"../tooltip.svelte.js\";\n\n\tlet {\n\t\tchildren,\n\t\tdelayDuration = 700,\n\t\tdisableCloseOnTriggerClick = false,\n\t\tdisableHoverableContent = false,\n\t\tdisabled = false,\n\t\tignoreNonKeyboardFocus = false,\n\t\tskipDelayDuration = 300,\n\t}: TooltipProviderProps = $props();\n\n\tTooltipProviderState.create({\n\t\tdelayDuration: boxWith(() => delayDuration),\n\t\tdisableCloseOnTriggerClick: boxWith(() => disableCloseOnTriggerClick),\n\t\tdisableHoverableContent: boxWith(() => disableHoverableContent),\n\t\tdisabled: boxWith(() => disabled),\n\t\tignoreNonKeyboardFocus: boxWith(() => ignoreNonKeyboardFocus),\n\t\tskipDelayDuration: boxWith(() => skipDelayDuration),\n\t});\n</script>\n\n{@render children?.()}\n","<script lang=\"ts\">\n\timport { Tooltip as TooltipPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: TooltipPrimitive.ProviderProps = $props();\n</script>\n\n<TooltipPrimitive.Provider {...restProps} />\n","<script lang=\"ts\" module>\n\timport { tv, type VariantProps } from \"tailwind-variants\";\n\n\texport const sidebarMenuButtonVariants = tv({\n\t\tbase: \"peer/menu-button ring-sidebar-ring data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10 active:bg-sidebar-accent data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:data-[active=false]:hover:bg-gray-100 dark:data-[state=open]:data-[active=false]:hover:bg-white/10 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0\",\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: \"data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10\",\n\t\t\t\toutline:\n\t\t\t\t\t\"bg-background data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10 shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-border)]\",\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: \"h-8 text-sm\",\n\t\t\t\tsm: \"h-7 text-xs\",\n\t\t\t\tlg: \"h-12 text-sm group-data-[collapsible=icon]:p-0!\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t\tsize: \"default\",\n\t\t},\n\t});\n\n\texport type SidebarMenuButtonVariant = VariantProps<\n\t\ttypeof sidebarMenuButtonVariants\n\t>[\"variant\"];\n\texport type SidebarMenuButtonSize = VariantProps<typeof sidebarMenuButtonVariants>[\"size\"];\n</script>\n\n<script lang=\"ts\">\n\timport * as Tooltip from \"$lib/components/ui/tooltip/index.js\";\n\timport { cn, type WithElementRef, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport { mergeProps } from \"bits-ui\";\n\timport type { ComponentProps, Snippet } from \"svelte\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { useSidebar } from \"./context.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\tchild,\n\t\tvariant = \"default\",\n\t\tsize = \"default\",\n\t\tisActive = false,\n\t\ttooltipContent,\n\t\ttooltipContentProps,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {\n\t\tisActive?: boolean;\n\t\tvariant?: SidebarMenuButtonVariant;\n\t\tsize?: SidebarMenuButtonSize;\n\t\ttooltipContent?: Snippet | string;\n\t\ttooltipContentProps?: WithoutChildrenOrChild<ComponentProps<typeof Tooltip.Content>>;\n\t\tchild?: Snippet<[{ props: Record<string, unknown> }]>;\n\t} = $props();\n\n\tconst sidebar = useSidebar();\n\n\tconst buttonProps = $derived({\n\t\tclass: cn(sidebarMenuButtonVariants({ variant, size }), className),\n\t\t\"data-slot\": \"sidebar-menu-button\",\n\t\t\"data-sidebar\": \"menu-button\",\n\t\t\"data-size\": size,\n\t\t\"data-active\": isActive,\n\t\t...restProps,\n\t});\n</script>\n\n{#snippet Button({ props }: { props?: Record<string, unknown> })}\n\t{@const mergedProps = mergeProps(buttonProps, props)}\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<button bind:this={ref} {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</button>\n\t{/if}\n{/snippet}\n\n{#if !tooltipContent}\n\t{@render Button({})}\n{:else}\n\t<Tooltip.Root>\n\t\t<Tooltip.Trigger>\n\t\t\t{#snippet child({ props })}\n\t\t\t\t{@render Button({ props })}\n\t\t\t{/snippet}\n\t\t</Tooltip.Trigger>\n\t\t<Tooltip.Content\n\t\t\tside=\"right\"\n\t\t\talign=\"center\"\n\t\t\thidden={sidebar.state !== \"collapsed\" || sidebar.isMobile}\n\t\t\t{...tooltipContentProps}\n\t\t>\n\t\t\t{#if typeof tooltipContent === \"string\"}\n\t\t\t\t{tooltipContent}\n\t\t\t{:else if tooltipContent}\n\t\t\t\t{@render tooltipContent()}\n\t\t\t{/if}\n\t\t</Tooltip.Content>\n\t</Tooltip.Root>\n{/if}\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLLIElement>, HTMLLIElement> = $props();\n</script>\n\n<li\n\tbind:this={ref}\n\tdata-slot=\"sidebar-menu-item\"\n\tdata-sidebar=\"menu-item\"\n\tclass={cn(\"group/menu-item relative\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</li>\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLUListElement>, HTMLUListElement> = $props();\n</script>\n\n<ul\n\tbind:this={ref}\n\tdata-slot=\"sidebar-menu\"\n\tdata-sidebar=\"menu\"\n\tclass={cn(\"flex w-full min-w-0 flex-col gap-1\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</ul>\n","<script lang=\"ts\">\n\timport * as Tooltip from \"$lib/components/ui/tooltip/index.js\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport {\n\t\tSIDEBAR_COOKIE_MAX_AGE,\n\t\tSIDEBAR_COOKIE_NAME,\n\t\tSIDEBAR_WIDTH,\n\t\tSIDEBAR_WIDTH_ICON,\n\t} from \"./constants.js\";\n\timport { setSidebar } from \"./context.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\topen = $bindable(true),\n\t\tonOpenChange = () => {},\n\t\tclass: className,\n\t\tstyle,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {\n\t\topen?: boolean;\n\t\tonOpenChange?: (open: boolean) => void;\n\t} = $props();\n\n\tconst sidebar = setSidebar({\n\t\topen: () => open,\n\t\tsetOpen: (value: boolean) => {\n\t\t\topen = value;\n\t\t\tonOpenChange(value);\n\n\t\t\t// This sets the cookie to keep the sidebar state.\n\t\t\tdocument.cookie = `${SIDEBAR_COOKIE_NAME}=${open}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\n\t\t},\n\t});\n</script>\n\n<svelte:window onkeydown={sidebar.handleShortcutKeydown} />\n\n<Tooltip.Provider delayDuration={0}>\n\t<div\n\t\tdata-slot=\"sidebar-wrapper\"\n\t\tstyle=\"--sidebar-width: {SIDEBAR_WIDTH}; --sidebar-width-icon: {SIDEBAR_WIDTH_ICON}; {style}\"\n\t\tclass={cn(\n\t\t\t\"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full\",\n\t\t\tclassName\n\t\t)}\n\t\tbind:this={ref}\n\t\t{...restProps}\n\t>\n\t\t{@render children?.()}\n\t</div>\n</Tooltip.Provider>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"rect\", { \"width\": \"18\", \"height\": \"18\", \"x\": \"3\", \"y\": \"3\", \"rx\": \"2\" }], [\"path\", { \"d\": \"M9 3v18\" }]];\n/**\n * @component @name PanelLeft\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjMiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik05IDN2MTgiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/panel-left\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"panel-left\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport { Button } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\timport PanelLeftIcon from \"@lucide/svelte/icons/panel-left\";\n\timport type { ComponentProps } from \"svelte\";\n\timport { useSidebar } from \"./context.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tonclick,\n\t\t...restProps\n\t}: ComponentProps<typeof Button> & {\n\t\tonclick?: (e: MouseEvent) => void;\n\t} = $props();\n\n\tconst sidebar = useSidebar();\n</script>\n\n<Button\n\tdata-sidebar=\"trigger\"\n\tdata-slot=\"sidebar-trigger\"\n\tvariant=\"ghost\"\n\tsize=\"icon\"\n\tclass={cn(\"size-7\", className)}\n\ttype=\"button\"\n\tonclick={(e) => {\n\t\tonclick?.(e);\n\t\tsidebar.toggle();\n\t}}\n\t{...restProps}\n>\n\t<PanelLeftIcon />\n\t<span class=\"sr-only\">Toggle Sidebar</span>\n</Button>\n","<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\n\tlet { open = $bindable(false), ...restProps }: SheetPrimitive.RootProps = $props();\n</script>\n\n<SheetPrimitive.Root bind:open {...restProps} />\n","<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: SheetPrimitive.PortalProps = $props();\n</script>\n\n<SheetPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: SheetPrimitive.OverlayProps = $props();\n</script>\n\n<SheetPrimitive.Overlay\n\tbind:ref\n\tdata-slot=\"sheet-overlay\"\n\tclass={cn(\n\t\t\"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\" module>\n\timport { tv, type VariantProps } from \"tailwind-variants\";\n\texport const sheetVariants = tv({\n\t\tbase: \"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n\t\tvariants: {\n\t\t\tside: {\n\t\t\t\ttop: \"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b\",\n\t\t\t\tbottom: \"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t\",\n\t\t\t\tleft: \"data-[state=closed]:slide-out-to-start data-[state=open]:slide-in-from-start inset-y-0 start-0 h-full w-3/4 border-e sm:max-w-sm\",\n\t\t\t\tright: \"data-[state=closed]:slide-out-to-end data-[state=open]:slide-in-from-end inset-y-0 end-0 h-full w-3/4 border-s sm:max-w-sm\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tside: \"right\",\n\t\t},\n\t});\n\n\texport type Side = VariantProps<typeof sheetVariants>[\"side\"];\n</script>\n\n<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\timport XIcon from \"@lucide/svelte/icons/x\";\n\timport type { Snippet } from \"svelte\";\n\timport SheetPortal from \"./sheet-portal.svelte\";\n\timport SheetOverlay from \"./sheet-overlay.svelte\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport type { ComponentProps } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tside = \"right\",\n\t\tportalProps,\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<SheetPrimitive.ContentProps> & {\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof SheetPortal>>;\n\t\tside?: Side;\n\t\tchildren: Snippet;\n\t} = $props();\n</script>\n\n<SheetPortal {...portalProps}>\n\t<SheetOverlay />\n\t<SheetPrimitive.Content\n\t\tbind:ref\n\t\tdata-slot=\"sheet-content\"\n\t\tclass={cn(sheetVariants({ side }), className)}\n\t\t{...restProps}\n\t>\n\t\t{@render children?.()}\n\t\t<SheetPrimitive.Close\n\t\t\tclass=\"ring-offset-background focus-visible:ring-ring absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none\"\n\t\t>\n\t\t\t<XIcon class=\"size-4\" />\n\t\t\t<span class=\"sr-only\">Close</span>\n\t\t</SheetPrimitive.Close>\n\t</SheetPrimitive.Content>\n</SheetPortal>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sheet-header\"\n\tclass={cn(\"flex flex-col gap-1.5 p-4\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: SheetPrimitive.TitleProps = $props();\n</script>\n\n<SheetPrimitive.Title\n\tbind:ref\n\tdata-slot=\"sheet-title\"\n\tclass={cn(\"text-foreground font-semibold\", className)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: SheetPrimitive.DescriptionProps = $props();\n</script>\n\n<SheetPrimitive.Description\n\tbind:ref\n\tdata-slot=\"sheet-description\"\n\tclass={cn(\"text-muted-foreground text-sm\", className)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport * as Sheet from \"$lib/components/ui/sheet/index.js\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { SIDEBAR_WIDTH_MOBILE } from \"./constants.js\";\n\timport { useSidebar } from \"./context.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tside = \"left\",\n\t\tvariant = \"sidebar\",\n\t\tcollapsible = \"offcanvas\",\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {\n\t\tside?: \"left\" | \"right\";\n\t\tvariant?: \"sidebar\" | \"floating\" | \"inset\";\n\t\tcollapsible?: \"offcanvas\" | \"icon\" | \"none\";\n\t} = $props();\n\n\tconst sidebar = useSidebar();\n</script>\n\n{#if collapsible === \"none\"}\n\t<div\n\t\tclass={cn(\n\t\t\t\"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col\",\n\t\t\tclassName\n\t\t)}\n\t\tbind:this={ref}\n\t\t{...restProps}\n\t>\n\t\t{@render children?.()}\n\t</div>\n{:else if sidebar.isMobile}\n\t<Sheet.Root\n\t\tbind:open={() => sidebar.openMobile, (v) => sidebar.setOpenMobile(v)}\n\t\t{...restProps}\n\t>\n\t\t<Sheet.Content\n\t\t\tdata-sidebar=\"sidebar\"\n\t\t\tdata-slot=\"sidebar\"\n\t\t\tdata-mobile=\"true\"\n\t\t\tclass=\"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden\"\n\t\t\tstyle=\"--sidebar-width: {SIDEBAR_WIDTH_MOBILE};\"\n\t\t\t{side}\n\t\t>\n\t\t\t<Sheet.Header class=\"sr-only\">\n\t\t\t\t<Sheet.Title>Sidebar</Sheet.Title>\n\t\t\t\t<Sheet.Description>Displays the mobile sidebar.</Sheet.Description>\n\t\t\t</Sheet.Header>\n\t\t\t<div class=\"flex h-full w-full flex-col\">\n\t\t\t\t{@render children?.()}\n\t\t\t</div>\n\t\t</Sheet.Content>\n\t</Sheet.Root>\n{:else}\n\t<div\n\t\tbind:this={ref}\n\t\tclass=\"text-sidebar-foreground group peer hidden md:block\"\n\t\tdata-state={sidebar.state}\n\t\tdata-collapsible={sidebar.state === \"collapsed\" ? collapsible : \"\"}\n\t\tdata-variant={variant}\n\t\tdata-side={side}\n\t\tdata-slot=\"sidebar\"\n\t>\n\t\t<!-- This is what handles the sidebar gap on desktop -->\n\t\t<div\n\t\t\tdata-slot=\"sidebar-gap\"\n\t\t\tclass={cn(\n\t\t\t\t\"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear\",\n\t\t\t\t\"group-data-[collapsible=offcanvas]:w-0\",\n\t\t\t\t\"group-data-[side=right]:rotate-180\",\n\t\t\t\tvariant === \"floating\" || variant === \"inset\"\n\t\t\t\t\t? \"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]\"\n\t\t\t\t\t: \"group-data-[collapsible=icon]:w-(--sidebar-width-icon)\"\n\t\t\t)}\n\t\t></div>\n\t\t<div\n\t\t\tdata-slot=\"sidebar-container\"\n\t\t\tclass={cn(\n\t\t\t\t\"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex\",\n\t\t\t\tside === \"left\"\n\t\t\t\t\t? \"start-0 group-data-[collapsible=offcanvas]:start-[calc(var(--sidebar-width)*-1)]\"\n\t\t\t\t\t: \"end-0 group-data-[collapsible=offcanvas]:end-[calc(var(--sidebar-width)*-1)]\",\n\t\t\t\t// Adjust the padding for floating and inset variants.\n\t\t\t\tvariant === \"floating\" || variant === \"inset\"\n\t\t\t\t\t? \"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]\"\n\t\t\t\t\t: \"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...restProps}\n\t\t>\n\t\t\t<div\n\t\t\t\tdata-sidebar=\"sidebar\"\n\t\t\t\tdata-slot=\"sidebar-inner\"\n\t\t\t\tclass=\"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm\"\n\t\t\t>\n\t\t\t\t{@render children?.()}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M10.268 21a2 2 0 0 0 3.464 0\" }], [\"path\", { \"d\": \"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326\" }]];\n/**\n * @component @name Bell\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTAuMjY4IDIxYTIgMiAwIDAgMCAzLjQ2NCAwIiAvPgogIDxwYXRoIGQ9Ik0zLjI2MiAxNS4zMjZBMSAxIDAgMCAwIDQgMTdoMTZhMSAxIDAgMCAwIC43NC0xLjY3M0MxOS40MSAxMy45NTYgMTggMTIuNDk5IDE4IDhBNiA2IDAgMCAwIDYgOGMwIDQuNDk5LTEuNDExIDUuOTU2LTIuNzM4IDcuMzI2IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/bell\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"bell\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M12 7v14\" }], [\"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\" }]];\n/**\n * @component @name BookOpen\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgN3YxNCIgLz4KICA8cGF0aCBkPSJNMyAxOGExIDEgMCAwIDEtMS0xVjRhMSAxIDAgMCAxIDEtMWg1YTQgNCAwIDAgMSA0IDQgNCA0IDAgMCAxIDQtNGg1YTEgMSAwIDAgMSAxIDF2MTNhMSAxIDAgMCAxLTEgMWgtNmEzIDMgMCAwIDAtMyAzIDMgMyAwIDAgMC0zLTN6IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/book-open\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"book-open\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M12 20v-9\" }], [\"path\", { \"d\": \"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z\" }], [\"path\", { \"d\": \"M14.12 3.88 16 2\" }], [\"path\", { \"d\": \"M21 21a4 4 0 0 0-3.81-4\" }], [\"path\", { \"d\": \"M21 5a4 4 0 0 1-3.55 3.97\" }], [\"path\", { \"d\": \"M22 13h-4\" }], [\"path\", { \"d\": \"M3 21a4 4 0 0 1 3.81-4\" }], [\"path\", { \"d\": \"M3 5a4 4 0 0 0 3.55 3.97\" }], [\"path\", { \"d\": \"M6 13H2\" }], [\"path\", { \"d\": \"m8 2 1.88 1.88\" }], [\"path\", { \"d\": \"M9 7.13V6a3 3 0 1 1 6 0v1.13\" }]];\n/**\n * @component @name Bug\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMjB2LTkiIC8+CiAgPHBhdGggZD0iTTE0IDdhNCA0IDAgMCAxIDQgNHYzYTYgNiAwIDAgMS0xMiAwdi0zYTQgNCAwIDAgMSA0LTR6IiAvPgogIDxwYXRoIGQ9Ik0xNC4xMiAzLjg4IDE2IDIiIC8+CiAgPHBhdGggZD0iTTIxIDIxYTQgNCAwIDAgMC0zLjgxLTQiIC8+CiAgPHBhdGggZD0iTTIxIDVhNCA0IDAgMCAxLTMuNTUgMy45NyIgLz4KICA8cGF0aCBkPSJNMjIgMTNoLTQiIC8+CiAgPHBhdGggZD0iTTMgMjFhNCA0IDAgMCAxIDMuODEtNCIgLz4KICA8cGF0aCBkPSJNMyA1YTQgNCAwIDAgMCAzLjU1IDMuOTciIC8+CiAgPHBhdGggZD0iTTYgMTNIMiIgLz4KICA8cGF0aCBkPSJtOCAyIDEuODggMS44OCIgLz4KICA8cGF0aCBkPSJNOSA3LjEzVjZhMyAzIDAgMSAxIDYgMHYxLjEzIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/bug\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"bug\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M12 16v5\" }], [\"path\", { \"d\": \"M16 14v7\" }], [\"path\", { \"d\": \"M20 10v11\" }], [\"path\", { \"d\": \"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15\" }], [\"path\", { \"d\": \"M4 18v3\" }], [\"path\", { \"d\": \"M8 14v7\" }]];\n/**\n * @component @name ChartNoAxesCombined\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMTZ2NSIgLz4KICA8cGF0aCBkPSJNMTYgMTR2NyIgLz4KICA8cGF0aCBkPSJNMjAgMTB2MTEiIC8+CiAgPHBhdGggZD0ibTIyIDMtOC42NDYgOC42NDZhLjUuNSAwIDAgMS0uNzA4IDBMOS4zNTQgOC4zNTRhLjUuNSAwIDAgMC0uNzA3IDBMMiAxNSIgLz4KICA8cGF0aCBkPSJNNCAxOHYzIiAvPgogIDxwYXRoIGQ9Ik04IDE0djciIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/chart-no-axes-combined\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chart-no-axes-combined\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"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\" }], [\"path\", { \"d\": \"M14 2v5a1 1 0 0 0 1 1h5\" }], [\"path\", { \"d\": \"M10 9H8\" }], [\"path\", { \"d\": \"M16 13H8\" }], [\"path\", { \"d\": \"M16 17H8\" }]];\n/**\n * @component @name FileText\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNiAyMmEyIDIgMCAwIDEtMi0yVjRhMiAyIDAgMCAxIDItMmg4YTIuNCAyLjQgMCAwIDEgMS43MDQuNzA2bDMuNTg4IDMuNTg4QTIuNCAyLjQgMCAwIDEgMjAgOHYxMmEyIDIgMCAwIDEtMiAyeiIgLz4KICA8cGF0aCBkPSJNMTQgMnY1YTEgMSAwIDAgMCAxIDFoNSIgLz4KICA8cGF0aCBkPSJNMTAgOUg4IiAvPgogIDxwYXRoIGQ9Ik0xNiAxM0g4IiAvPgogIDxwYXRoIGQ9Ik0xNiAxN0g4IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/file-text\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"file-text\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"rect\", { \"width\": \"18\", \"height\": \"18\", \"x\": \"3\", \"y\": \"3\", \"rx\": \"2\" }], [\"path\", { \"d\": \"M7 3v18\" }], [\"path\", { \"d\": \"M3 7.5h4\" }], [\"path\", { \"d\": \"M3 12h18\" }], [\"path\", { \"d\": \"M3 16.5h4\" }], [\"path\", { \"d\": \"M17 3v18\" }], [\"path\", { \"d\": \"M17 7.5h4\" }], [\"path\", { \"d\": \"M17 16.5h4\" }]];\n/**\n * @component @name Film\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjMiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik03IDN2MTgiIC8+CiAgPHBhdGggZD0iTTMgNy41aDQiIC8+CiAgPHBhdGggZD0iTTMgMTJoMTgiIC8+CiAgPHBhdGggZD0iTTMgMTYuNWg0IiAvPgogIDxwYXRoIGQ9Ik0xNyAzdjE4IiAvPgogIDxwYXRoIGQ9Ik0xNyA3LjVoNCIgLz4KICA8cGF0aCBkPSJNMTcgMTYuNWg0IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/film\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"film\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m12 14 4-4\" }], [\"path\", { \"d\": \"M3.34 19a10 10 0 1 1 17.32 0\" }]];\n/**\n * @component @name Gauge\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTIgMTQgNC00IiAvPgogIDxwYXRoIGQ9Ik0zLjM0IDE5YTEwIDEwIDAgMSAxIDE3LjMyIDAiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/gauge\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"gauge\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"rect\", { \"width\": \"7\", \"height\": \"9\", \"x\": \"3\", \"y\": \"3\", \"rx\": \"1\" }], [\"rect\", { \"width\": \"7\", \"height\": \"5\", \"x\": \"14\", \"y\": \"3\", \"rx\": \"1\" }], [\"rect\", { \"width\": \"7\", \"height\": \"9\", \"x\": \"14\", \"y\": \"12\", \"rx\": \"1\" }], [\"rect\", { \"width\": \"7\", \"height\": \"5\", \"x\": \"3\", \"y\": \"16\", \"rx\": \"1\" }]];\n/**\n * @component @name LayoutDashboard\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSI5IiB4PSIzIiB5PSIzIiByeD0iMSIgLz4KICA8cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSI1IiB4PSIxNCIgeT0iMyIgcng9IjEiIC8+CiAgPHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iOSIgeD0iMTQiIHk9IjEyIiByeD0iMSIgLz4KICA8cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSI1IiB4PSIzIiB5PSIxNiIgcng9IjEiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/layout-dashboard\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"layout-dashboard\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M9 17H7A5 5 0 0 1 7 7h2\" }], [\"path\", { \"d\": \"M15 7h2a5 5 0 1 1 0 10h-2\" }], [\"line\", { \"x1\": \"8\", \"x2\": \"16\", \"y1\": \"12\", \"y2\": \"12\" }]];\n/**\n * @component @name Link2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOSAxN0g3QTUgNSAwIDAgMSA3IDdoMiIgLz4KICA8cGF0aCBkPSJNMTUgN2gyYTUgNSAwIDEgMSAwIDEwaC0yIiAvPgogIDxsaW5lIHgxPSI4IiB4Mj0iMTYiIHkxPSIxMiIgeTI9IjEyIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/link-2\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"link-2\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M16 5H3\" }], [\"path\", { \"d\": \"M16 12H3\" }], [\"path\", { \"d\": \"M9 19H3\" }], [\"path\", { \"d\": \"m16 16-3 3 3 3\" }], [\"path\", { \"d\": \"M21 5v12a2 2 0 0 1-2 2h-6\" }]];\n/**\n * @component @name ListEnd\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTYgNUgzIiAvPgogIDxwYXRoIGQ9Ik0xNiAxMkgzIiAvPgogIDxwYXRoIGQ9Ik05IDE5SDMiIC8+CiAgPHBhdGggZD0ibTE2IDE2LTMgMyAzIDMiIC8+CiAgPHBhdGggZD0iTTIxIDV2MTJhMiAyIDAgMCAxLTIgMmgtNiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/list-end\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"list-end\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m16 17 5-5-5-5\" }], [\"path\", { \"d\": \"M21 12H9\" }], [\"path\", { \"d\": \"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\" }]];\n/**\n * @component @name LogOut\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTYgMTcgNS01LTUtNSIgLz4KICA8cGF0aCBkPSJNMjEgMTJIOSIgLz4KICA8cGF0aCBkPSJNOSAyMUg1YTIgMiAwIDAgMS0yLTJWNWEyIDIgMCAwIDEgMi0yaDQiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/log-out\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"log-out\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"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\" }]];\n/**\n * @component @name Moon\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjAuOTg1IDEyLjQ4NmE5IDkgMCAxIDEtOS40NzMtOS40NzJjLjQwNS0uMDIyLjYxNy40Ni40MDIuODAzYTYgNiAwIDAgMCA4LjI2OCA4LjI2OGMuMzQ0LS4yMTUuODI1LS4wMDQuODAzLjQwMSIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/moon\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"moon\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"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\" }], [\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"3\" }]];\n/**\n * @component @name Settings\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOS42NzEgNC4xMzZhMi4zNCAyLjM0IDAgMCAxIDQuNjU5IDAgMi4zNCAyLjM0IDAgMCAwIDMuMzE5IDEuOTE1IDIuMzQgMi4zNCAwIDAgMSAyLjMzIDQuMDMzIDIuMzQgMi4zNCAwIDAgMCAwIDMuODMxIDIuMzQgMi4zNCAwIDAgMS0yLjMzIDQuMDMzIDIuMzQgMi4zNCAwIDAgMC0zLjMxOSAxLjkxNSAyLjM0IDIuMzQgMCAwIDEtNC42NTkgMCAyLjM0IDIuMzQgMCAwIDAtMy4zMi0xLjkxNSAyLjM0IDIuMzQgMCAwIDEtMi4zMy00LjAzMyAyLjM0IDIuMzQgMCAwIDAgMC0zLjgzMUEyLjM0IDIuMzQgMCAwIDEgNi4zNSA2LjA1MWEyLjM0IDIuMzQgMCAwIDAgMy4zMTktMS45MTUiIC8+CiAgPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMyIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/settings\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"settings\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"4\" }], [\"path\", { \"d\": \"M12 2v2\" }], [\"path\", { \"d\": \"M12 20v2\" }], [\"path\", { \"d\": \"m4.93 4.93 1.41 1.41\" }], [\"path\", { \"d\": \"m17.66 17.66 1.41 1.41\" }], [\"path\", { \"d\": \"M2 12h2\" }], [\"path\", { \"d\": \"M20 12h2\" }], [\"path\", { \"d\": \"m6.34 17.66-1.41 1.41\" }], [\"path\", { \"d\": \"m19.07 4.93-1.41 1.41\" }]];\n/**\n * @component @name Sun\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI0IiAvPgogIDxwYXRoIGQ9Ik0xMiAydjIiIC8+CiAgPHBhdGggZD0iTTEyIDIwdjIiIC8+CiAgPHBhdGggZD0ibTQuOTMgNC45MyAxLjQxIDEuNDEiIC8+CiAgPHBhdGggZD0ibTE3LjY2IDE3LjY2IDEuNDEgMS40MSIgLz4KICA8cGF0aCBkPSJNMiAxMmgyIiAvPgogIDxwYXRoIGQ9Ik0yMCAxMmgyIiAvPgogIDxwYXRoIGQ9Im02LjM0IDE3LjY2LTEuNDEgMS40MSIgLz4KICA8cGF0aCBkPSJtMTkuMDcgNC45My0xLjQxIDEuNDEiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/sun\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"sun\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"rect\", { \"width\": \"8\", \"height\": \"8\", \"x\": \"3\", \"y\": \"3\", \"rx\": \"2\" }], [\"path\", { \"d\": \"M7 11v4a2 2 0 0 0 2 2h4\" }], [\"rect\", { \"width\": \"8\", \"height\": \"8\", \"x\": \"13\", \"y\": \"13\", \"rx\": \"2\" }]];\n/**\n * @component @name Workflow\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB4PSIzIiB5PSIzIiByeD0iMiIgLz4KICA8cGF0aCBkPSJNNyAxMXY0YTIgMiAwIDAgMCAyIDJoNCIgLz4KICA8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB4PSIxMyIgeT0iMTMiIHJ4PSIyIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/workflow\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"workflow\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport * as Sidebar from '$lib/components/ui/sidebar';\n\timport { useSidebar } from '$lib/components/ui/sidebar';\n\timport {\n\t\tBell,\n\t\tWorkflow,\n\t\tBug,\n\t\tLink2,\n\t\tChartNoAxesCombined,\n\t\tChartNoAxesGantt,\n\t\tFileText,\n\t\tFilm,\n\t\tGauge,\n\t\tListEnd,\n\t\tSettings,\n\t\tBookOpen\n\t} from '@lucide/svelte';\n\timport { themeState } from '$lib/state/theme.svelte';\n\timport { projectsState, isFrontendFramework, isCloudflareFramework } from '$lib/state/projects.svelte';\n\timport { LayoutDashboard } from '@lucide/svelte';\n\timport { page } from '$app/state';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\n\tinterface SidebarItem {\n\t\tIcon: typeof LayoutDashboard;\n\t\thref: string;\n\t\ttitle: string;\n\t\tstickyParams: string[];\n\t\tadminOnly?: boolean;\n\t\texternal?: boolean;\n\t}\n\n\tconst hiddenForFrontend = new Set(['Dashboard', 'Logs', 'Endpoints', 'Tasks', 'Metrics', 'AI Traces']);\n\tconst hiddenForCloudflare = new Set(['Metrics']);\n\t// Items that only make sense for frontend (browser) projects — dropped from\n\t// the sidebar for any other framework, so a Go backend project doesn't\n\t// surface a Sessions tab that can never be populated.\n\tconst frontendOnly = new Set(['Sessions']);\n\n\tconst allSidebarItems: SidebarItem[] = [\n\t\t{ Icon: LayoutDashboard, href: '/', title: 'Dashboard', stickyParams: [] },\n\t\t{ Icon: Bug, href: '/issues', title: 'Issues', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: FileText, href: '/logs', title: 'Logs', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: Gauge, href: '/endpoints', title: 'Endpoints', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: ListEnd, href: '/tasks', title: 'Tasks', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: Film, href: '/sessions', title: 'Sessions', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: Workflow, href: '/ai-traces', title: 'AI Traces', stickyParams: ['preset', 'from', 'to'] },\n\t\t{\n\t\t\tIcon: ChartNoAxesCombined,\n\t\t\thref: '/metrics',\n\t\t\ttitle: 'Metrics',\n\t\t\tstickyParams: ['preset', 'from', 'to']\n\t\t},\n\t\t{ Icon: Bell, href: '/notifications', title: 'Alerts', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: Link2, href: '/connection', title: 'Connection', stickyParams: [] }\n\t];\n\n\tconst sidebarItems = $derived(\n\t\tprojectsState.currentProject && isFrontendFramework(projectsState.currentProject.framework)\n\t\t\t? allSidebarItems.filter((item) => !hiddenForFrontend.has(item.title))\n\t\t\t: projectsState.currentProject && isCloudflareFramework(projectsState.currentProject.framework)\n\t\t\t\t? allSidebarItems.filter((item) => !hiddenForCloudflare.has(item.title) && !frontendOnly.has(item.title))\n\t\t\t\t: allSidebarItems.filter((item) => !frontendOnly.has(item.title))\n\t);\n\n\tconst allSidebarItemsBottom: SidebarItem[] = [\n\t\t{\n\t\t\tIcon: BookOpen,\n\t\t\thref: 'https://docs.tracewayapp.com',\n\t\t\ttitle: 'Docs',\n\t\t\tstickyParams: [],\n\t\t\texternal: true\n\t\t},\n\t\t{ Icon: Settings, href: '/settings', title: 'Settings', stickyParams: [], adminOnly: true }\n\t];\n\n\tconst sidebarItemsBottom = $derived(\n\t\tallSidebarItemsBottom.filter((item) => !item.adminOnly || projectsState.canManageCurrentProject)\n\t);\n\n\tconst sidebar = useSidebar();\n</script>\n\n<Sidebar.Sidebar>\n\t<Sidebar.SidebarHeader class=\"flex items-start p-4\">\n\t\t{#if themeState.isDark}\n\t\t\t<img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-9 w-auto\" />\n\t\t{:else}\n\t\t\t<img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-9 w-auto\" />\n\t\t{/if}\n\t</Sidebar.SidebarHeader>\n\t<Sidebar.SidebarContent>\n\t\t<Sidebar.SidebarGroup class=\"p-4 pt-0 pb-0\">\n\t\t\t<Sidebar.SidebarGroupContent>\n\t\t\t\t<Sidebar.SidebarMenu>\n\t\t\t\t\t{#each sidebarItems as sidebarItem}\n\t\t\t\t\t\t<Sidebar.SidebarMenuItem>\n\t\t\t\t\t\t\t<Sidebar.SidebarMenuButton\n\t\t\t\t\t\t\t\tisActive={page.url.pathname === sidebarItem.href ||\n\t\t\t\t\t\t\t\t\tpage.url.pathname.startsWith(sidebarItem.href + '/')}\n\t\t\t\t\t\t\t\tonclick={(e) => {\n\t\t\t\t\t\t\t\t\tsidebar.setOpenMobile(false);\n\t\t\t\t\t\t\t\t\tcreateRowClickHandler(sidebarItem.href, ...sidebarItem.stickyParams)(e);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<sidebarItem.Icon />\n\t\t\t\t\t\t\t\t<span>{sidebarItem.title}</span>\n\t\t\t\t\t\t\t</Sidebar.SidebarMenuButton>\n\t\t\t\t\t\t</Sidebar.SidebarMenuItem>\n\t\t\t\t\t{/each}\n\t\t\t\t</Sidebar.SidebarMenu>\n\t\t\t</Sidebar.SidebarGroupContent>\n\t\t</Sidebar.SidebarGroup>\n\n\t\t{#if sidebarItemsBottom.length}\n\t\t\t<div class=\"flex-1\"></div>\n\n\t\t\t<Sidebar.SidebarGroup class=\"p-4 pt-0\">\n\t\t\t\t<Sidebar.SidebarGroupContent>\n\t\t\t\t\t<Sidebar.SidebarMenu>\n\t\t\t\t\t\t{#each sidebarItemsBottom as sidebarItem}\n\t\t\t\t\t\t\t<Sidebar.SidebarMenuItem>\n\t\t\t\t\t\t\t\t{#if sidebarItem.external}\n\t\t\t\t\t\t\t\t\t<Sidebar.SidebarMenuButton\n\t\t\t\t\t\t\t\t\t\tonclick={() => {\n\t\t\t\t\t\t\t\t\t\t\tsidebar.setOpenMobile(false);\n\t\t\t\t\t\t\t\t\t\t\twindow.open(sidebarItem.href, '_blank', 'noopener,noreferrer');\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<sidebarItem.Icon />\n\t\t\t\t\t\t\t\t\t\t<span>{sidebarItem.title}</span>\n\t\t\t\t\t\t\t\t\t</Sidebar.SidebarMenuButton>\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t<Sidebar.SidebarMenuButton\n\t\t\t\t\t\t\t\t\t\tisActive={page.url.pathname === sidebarItem.href ||\n\t\t\t\t\t\t\t\t\t\t\tpage.url.pathname.startsWith(sidebarItem.href + '/')}\n\t\t\t\t\t\t\t\t\t\tonclick={(e) => {\n\t\t\t\t\t\t\t\t\t\t\tsidebar.setOpenMobile(false);\n\t\t\t\t\t\t\t\t\t\t\tcreateRowClickHandler(sidebarItem.href, ...sidebarItem.stickyParams)(e);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<sidebarItem.Icon />\n\t\t\t\t\t\t\t\t\t\t<span>{sidebarItem.title}</span>\n\t\t\t\t\t\t\t\t\t</Sidebar.SidebarMenuButton>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Sidebar.SidebarMenuItem>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Sidebar.SidebarMenu>\n\t\t\t\t</Sidebar.SidebarGroupContent>\n\t\t\t</Sidebar.SidebarGroup>\n\t\t{/if}\n\t</Sidebar.SidebarContent>\n\t<Sidebar.SidebarFooter class=\"flex flex-row justify-center border-t border-border py-1 italic\">\n\t\t<span class=\"text-xs text-muted-foreground\">Traceway - v{__APP_VERSION__}</span>\n\t</Sidebar.SidebarFooter>\n</Sidebar.Sidebar>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M15 3h6v6\" }], [\"path\", { \"d\": \"M10 14 21 3\" }], [\"path\", { \"d\": \"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" }]];\n/**\n * @component @name ExternalLink\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTUgM2g2djYiIC8+CiAgPHBhdGggZD0iTTEwIDE0IDIxIDMiIC8+CiAgPHBhdGggZD0iTTE4IDEzdjZhMiAyIDAgMCAxLTIgMkg1YTIgMiAwIDAgMS0yLTJWOGEyIDIgMCAwIDEgMi0yaDYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/external-link\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"external-link\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n import * as Sheet from \"$lib/components/ui/sheet\";\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { projectsState, getFrameworkLabel, type ProjectWithToken, type Framework } from '$lib/state/projects.svelte';\n import { Copy, Check, ExternalLink } from 'lucide-svelte';\n import FrameworkIcon from './framework-icon.svelte';\n import FrameworkCombobox from './framework-combobox.svelte';\n\n interface Props {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n onProjectCreated: () => void;\n }\n\n let { open, onOpenChange, onProjectCreated }: Props = $props();\n\n let projectName = $state('');\n let selectedFramework = $state<Framework>('gin');\n let loading = $state(false);\n let error = $state('');\n let createdProject = $state<ProjectWithToken | null>(null);\n let copied = $state(false);\n\n async function handleSubmit(e: Event) {\n e.preventDefault();\n if (!projectName.trim()) {\n error = 'Project name is required';\n return;\n }\n\n loading = true;\n error = '';\n\n try {\n const project = await projectsState.createProject(projectName.trim(), selectedFramework);\n createdProject = project;\n } catch (err) {\n error = err instanceof Error ? err.message : 'Failed to create project';\n } finally {\n loading = false;\n }\n }\n\n async function copyToken() {\n if (createdProject?.token) {\n await navigator.clipboard.writeText(createdProject.token);\n copied = true;\n setTimeout(() => copied = false, 2000);\n }\n }\n\n function handleClose() {\n projectName = '';\n selectedFramework = 'gin';\n error = '';\n createdProject = null;\n onOpenChange(false);\n }\n\n function handleGoToConnection() {\n if (createdProject) {\n projectsState.selectProject(createdProject.id);\n }\n handleClose();\n onProjectCreated();\n }\n</script>\n\n<Sheet.Root {open} onOpenChange={handleClose}>\n <Sheet.Content side=\"right\" class=\"w-[400px] sm:w-[540px]\">\n <Sheet.Header>\n <Sheet.Title>\n {#if createdProject}\n Project Created!\n {:else}\n Create New Project\n {/if}\n </Sheet.Title>\n <Sheet.Description>\n {#if createdProject}\n Your project has been created. Save the token below - you'll need it to connect your application.\n {:else}\n Add a new project to start tracking errors and metrics.\n {/if}\n </Sheet.Description>\n </Sheet.Header>\n\n {#if createdProject}\n <div class=\"px-6 py-6 space-y-6\">\n <div class=\"space-y-2\">\n <Label>Project Name</Label>\n <div class=\"text-lg font-medium\">{createdProject.name}</div>\n </div>\n\n <div class=\"space-y-2\">\n <Label>Framework</Label>\n <div class=\"flex items-center gap-2 text-sm text-muted-foreground\">\n <FrameworkIcon framework={selectedFramework} />\n <span>{getFrameworkLabel(selectedFramework)}</span>\n </div>\n </div>\n\n <div class=\"space-y-2\">\n <Label>Project Token</Label>\n <div class=\"flex gap-2\">\n <Input\n type=\"text\"\n value={createdProject.token}\n readonly\n class=\"font-mono text-sm\"\n />\n <Button variant=\"outline\" size=\"icon\" onclick={copyToken}>\n {#if copied}\n <Check class=\"h-4 w-4 text-green-500\" />\n {:else}\n <Copy class=\"h-4 w-4\" />\n {/if}\n </Button>\n </div>\n <p class=\"text-sm text-muted-foreground\">\n This token will only be shown once. Make sure to save it securely.\n </p>\n </div>\n </div>\n\n <div class=\"flex justify-end gap-2 px-6 pb-6\">\n <Button variant=\"outline\" onclick={handleClose}>\n Close\n </Button>\n <Button onclick={handleGoToConnection}>\n <ExternalLink class=\"mr-2 h-4 w-4\" />\n Go to Connection\n </Button>\n </div>\n {:else}\n <form onsubmit={handleSubmit} class=\"px-6 py-6 space-y-5\">\n <div class=\"space-y-2\">\n <Label for=\"project-name\">Project Name</Label>\n <Input\n id=\"project-name\"\n type=\"text\"\n placeholder=\"My Application\"\n bind:value={projectName}\n disabled={loading}\n />\n <p class=\"text-xs text-muted-foreground\">\n A unique name for your project (letters, numbers, spaces, hyphens)\n </p>\n </div>\n\n <div class=\"space-y-2\">\n <Label for=\"framework\">Framework</Label>\n <FrameworkCombobox bind:value={selectedFramework} disabled={loading} />\n <p class=\"text-xs text-muted-foreground\">\n Select your framework for tailored integration code\n </p>\n </div>\n\n {#if error}\n <div class=\"rounded-md bg-destructive/10 border border-destructive/20 p-3\">\n <p class=\"text-sm text-destructive\">{error}</p>\n </div>\n {/if}\n\n <div class=\"flex justify-end gap-2 pt-2\">\n <Button type=\"button\" variant=\"outline\" onclick={handleClose} disabled={loading}>\n Cancel\n </Button>\n <Button type=\"submit\" disabled={loading || !projectName.trim()}>\n {#if loading}\n Creating...\n {:else}\n Create Project\n {/if}\n </Button>\n </div>\n </form>\n {/if}\n </Sheet.Content>\n</Sheet.Root>\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet { ref = $bindable(null), ...restProps }: DropdownMenuPrimitive.GroupProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Group bind:ref data-slot=\"dropdown-menu-group\" {...restProps} />\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tinset,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {\n\t\tinset?: boolean;\n\t} = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"dropdown-menu-label\"\n\tdata-inset={inset}\n\tclass={cn(\"px-2 py-1.5 text-sm font-semibold data-[inset]:ps-8\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","// src/index.ts\nimport { nowISO as nowISO2, generateUUID as generateUUID3 } from \"@tracewayapp/core\";\n\n// src/client.ts\nimport { parseConnectionString, generateUUID } from \"@tracewayapp/core\";\n\n// src/transport.ts\nasync function compressGzip(data) {\n const encoder = new TextEncoder();\n const inputBytes = encoder.encode(data);\n const cs = new CompressionStream(\"gzip\");\n const writer = cs.writable.getWriter();\n writer.write(inputBytes);\n writer.close();\n const reader = cs.readable.getReader();\n const chunks = [];\n let totalLength = 0;\n while (true) {\n const { done, value } = await reader.read();\n if (done) break;\n chunks.push(value);\n totalLength += value.length;\n }\n const result = new Uint8Array(totalLength);\n let offset = 0;\n for (const chunk of chunks) {\n result.set(chunk, offset);\n offset += chunk.length;\n }\n return result;\n}\nasync function sendReport(apiUrl, token, body) {\n const compressed = await compressGzip(body);\n const resp = await fetch(apiUrl, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Content-Encoding\": \"gzip\",\n Authorization: `Bearer ${token}`\n },\n body: compressed\n });\n return resp.status === 200;\n}\n\n// src/session-recorder.ts\nimport { record } from \"rrweb\";\nvar SessionRecorder = class {\n segmentDuration;\n current;\n previous = null;\n stopFn = null;\n rotateInterval = null;\n constructor(options = {}) {\n this.segmentDuration = options.segmentDuration ?? 1e4;\n this.current = { events: [], startedAt: (/* @__PURE__ */ new Date()).toISOString() };\n }\n start() {\n this.stopFn = record({\n emit: (event) => {\n this.onEvent(event);\n }\n });\n this.rotateInterval = setInterval(() => {\n this.rotateSegment();\n }, this.segmentDuration);\n }\n stop() {\n if (this.stopFn) {\n this.stopFn();\n this.stopFn = null;\n }\n if (this.rotateInterval) {\n clearInterval(this.rotateInterval);\n this.rotateInterval = null;\n }\n }\n onEvent(event) {\n this.current.events.push(event);\n }\n rotateSegment() {\n this.previous = this.current;\n this.current = { events: [], startedAt: (/* @__PURE__ */ new Date()).toISOString() };\n record.takeFullSnapshot();\n }\n getSegments() {\n const segments = [];\n if (this.previous && this.previous.events.length > 0) {\n segments.push({\n events: this.previous.events,\n timestamp: this.previous.startedAt\n });\n }\n if (this.current.events.length > 0) {\n segments.push({\n events: this.current.events,\n timestamp: this.current.startedAt\n });\n }\n return segments;\n }\n hasSegments() {\n return this.current.events.length > 0 || this.previous !== null && this.previous.events.length > 0;\n }\n flush() {\n this.previous = null;\n this.current = { events: [], startedAt: (/* @__PURE__ */ new Date()).toISOString() };\n if (this.stopFn) {\n record.takeFullSnapshot();\n }\n }\n};\n\n// src/client.ts\nvar TracewayFrontendClient = class {\n apiUrl;\n token;\n debug;\n debounceMs;\n retryDelayMs;\n version;\n pendingExceptions = [];\n pendingRecordings = [];\n isSyncing = false;\n debounceTimer = null;\n retryTimer = null;\n recorder = null;\n constructor(connectionString, options = {}) {\n const { token, apiUrl } = parseConnectionString(connectionString);\n this.apiUrl = apiUrl;\n this.token = token;\n this.debug = options.debug ?? false;\n this.debounceMs = options.debounceMs ?? 1500;\n this.retryDelayMs = options.retryDelayMs ?? 1e4;\n this.version = options.version ?? \"\";\n if (options.sessionRecording !== false && typeof window !== \"undefined\") {\n this.recorder = new SessionRecorder({\n segmentDuration: options.sessionRecordingSegmentDuration\n });\n this.recorder.start();\n }\n }\n addException(exception) {\n if (this.recorder && this.recorder.hasSegments()) {\n const segments = this.recorder.getSegments();\n const allEvents = segments.flatMap((s) => s.events);\n const exceptionId = generateUUID();\n exception.sessionRecordingId = exceptionId;\n this.pendingRecordings.push({ exceptionId, events: allEvents });\n }\n this.pendingExceptions.push(exception);\n this.scheduleSync();\n }\n scheduleSync() {\n if (this.debounceTimer !== null) {\n clearTimeout(this.debounceTimer);\n }\n this.debounceTimer = setTimeout(() => {\n this.debounceTimer = null;\n this.doSync();\n }, this.debounceMs);\n }\n async doSync() {\n if (this.isSyncing) return;\n if (this.pendingExceptions.length === 0) return;\n this.isSyncing = true;\n const batch = this.pendingExceptions.splice(0);\n const recordings = this.pendingRecordings.splice(0);\n const frame = {\n stackTraces: batch,\n metrics: [],\n traces: [],\n sessionRecordings: recordings.length > 0 ? recordings : void 0\n };\n const payload = {\n collectionFrames: [frame],\n appVersion: this.version,\n serverName: \"\"\n };\n let failed = false;\n try {\n const success = await sendReport(\n this.apiUrl,\n this.token,\n JSON.stringify(payload)\n );\n if (!success) {\n failed = true;\n this.pendingExceptions.unshift(...batch);\n this.pendingRecordings.unshift(...recordings);\n if (this.debug) {\n console.error(\"Traceway: sync failed, re-queued exceptions\");\n }\n }\n } catch (err) {\n failed = true;\n this.pendingExceptions.unshift(...batch);\n this.pendingRecordings.unshift(...recordings);\n if (this.debug) {\n console.error(\"Traceway: sync error:\", err);\n }\n } finally {\n this.isSyncing = false;\n if (this.pendingExceptions.length > 0) {\n if (failed) {\n this.scheduleRetry();\n } else {\n this.doSync();\n }\n }\n }\n }\n scheduleRetry() {\n if (this.retryTimer !== null) return;\n this.retryTimer = setTimeout(() => {\n this.retryTimer = null;\n this.doSync();\n }, this.retryDelayMs);\n }\n async flush(timeoutMs) {\n if (this.debounceTimer !== null) {\n clearTimeout(this.debounceTimer);\n this.debounceTimer = null;\n }\n if (this.retryTimer !== null) {\n clearTimeout(this.retryTimer);\n this.retryTimer = null;\n }\n if (this.recorder) {\n this.recorder.stop();\n }\n const syncPromise = this.doSync();\n if (timeoutMs !== void 0) {\n await Promise.race([\n syncPromise,\n new Promise((resolve) => setTimeout(resolve, timeoutMs))\n ]);\n } else {\n await syncPromise;\n }\n }\n};\n\n// src/stack-trace.ts\nfunction formatBrowserStackTrace(error) {\n const lines = [];\n const typeName = error.constructor?.name || \"Error\";\n lines.push(`${typeName}: ${error.message}`);\n if (error.stack) {\n const stackLines = error.stack.split(\"\\n\");\n for (const line of stackLines) {\n const v8Match = line.match(/^\\s+at\\s+(.+?)\\s+\\((.+):(\\d+):(\\d+)\\)$/);\n if (v8Match) {\n const funcName = shortenFunctionName(v8Match[1]);\n const file = shortenFilePath(v8Match[2]);\n lines.push(`${funcName}()`);\n lines.push(` ${file}:${v8Match[3]}:${v8Match[4]}`);\n continue;\n }\n const v8AnonMatch = line.match(/^\\s+at\\s+(.+):(\\d+):(\\d+)$/);\n if (v8AnonMatch) {\n const file = shortenFilePath(v8AnonMatch[1]);\n lines.push(`<anonymous>()`);\n lines.push(` ${file}:${v8AnonMatch[2]}:${v8AnonMatch[3]}`);\n continue;\n }\n const ffMatch = line.match(/^(.+)@(.+):(\\d+):(\\d+)$/);\n if (ffMatch) {\n const funcName = shortenFunctionName(ffMatch[1]) || \"<anonymous>\";\n const file = shortenFilePath(ffMatch[2]);\n lines.push(`${funcName}()`);\n lines.push(` ${file}:${ffMatch[3]}:${ffMatch[4]}`);\n continue;\n }\n const ffAnonMatch = line.match(/^@(.+):(\\d+):(\\d+)$/);\n if (ffAnonMatch) {\n const file = shortenFilePath(ffAnonMatch[1]);\n lines.push(`<anonymous>()`);\n lines.push(` ${file}:${ffAnonMatch[2]}:${ffAnonMatch[3]}`);\n continue;\n }\n }\n }\n return lines.join(\"\\n\") + \"\\n\";\n}\nfunction shortenFunctionName(fn) {\n const slashIdx = fn.lastIndexOf(\"/\");\n if (slashIdx >= 0) {\n fn = fn.slice(slashIdx + 1);\n }\n const dotIdx = fn.indexOf(\".\");\n if (dotIdx >= 0) {\n fn = fn.slice(dotIdx + 1);\n }\n return fn;\n}\nfunction shortenFilePath(filePath) {\n const parts = filePath.split(\"/\");\n return parts[parts.length - 1];\n}\n\n// src/global-handlers.ts\nimport { nowISO } from \"@tracewayapp/core\";\n\n// src/fetch-instrumentation.ts\nimport { generateUUID as generateUUID2 } from \"@tracewayapp/core\";\nvar activeDistributedTraceId = null;\nfunction getActiveDistributedTraceId() {\n return activeDistributedTraceId;\n}\nfunction isSameOrigin(input) {\n try {\n const url = new URL(\n typeof input === \"string\" ? input : input instanceof Request ? input.url : input.href,\n window.location.origin\n );\n return url.origin === window.location.origin;\n } catch {\n return true;\n }\n}\nfunction installFetchInstrumentation() {\n const originalFetch = window.fetch;\n window.fetch = function(input, init2) {\n if (!isSameOrigin(input)) {\n return originalFetch.call(this, input, init2);\n }\n const traceId = generateUUID2();\n activeDistributedTraceId = traceId;\n const headers = new Headers(init2?.headers);\n headers.set(\"traceway-trace-id\", traceId);\n return originalFetch.call(this, input, { ...init2, headers }).finally(() => {\n if (activeDistributedTraceId === traceId) {\n activeDistributedTraceId = null;\n }\n });\n };\n}\n\n// src/global-handlers.ts\nfunction installGlobalHandlers(client2) {\n const prevOnError = window.onerror;\n window.onerror = (message, source, lineno, colno, error) => {\n if (error) {\n client2.addException({\n traceId: null,\n stackTrace: formatBrowserStackTrace(error),\n recordedAt: nowISO(),\n isMessage: false,\n distributedTraceId: getActiveDistributedTraceId()\n });\n } else {\n client2.addException({\n traceId: null,\n stackTrace: String(message),\n recordedAt: nowISO(),\n isMessage: false,\n distributedTraceId: getActiveDistributedTraceId()\n });\n }\n if (typeof prevOnError === \"function\") {\n return prevOnError(message, source, lineno, colno, error);\n }\n return false;\n };\n const prevOnUnhandledRejection = window.onunhandledrejection;\n window.onunhandledrejection = (event) => {\n const reason = event.reason;\n if (reason instanceof Error) {\n client2.addException({\n traceId: null,\n stackTrace: formatBrowserStackTrace(reason),\n recordedAt: nowISO(),\n isMessage: false,\n distributedTraceId: getActiveDistributedTraceId()\n });\n } else {\n client2.addException({\n traceId: null,\n stackTrace: String(reason),\n recordedAt: nowISO(),\n isMessage: false,\n distributedTraceId: getActiveDistributedTraceId()\n });\n }\n if (typeof prevOnUnhandledRejection === \"function\") {\n prevOnUnhandledRejection.call(window, event);\n }\n };\n}\n\n// src/index.ts\nvar client = null;\nfunction init(connectionString, options = {}) {\n client = new TracewayFrontendClient(connectionString, options);\n if (typeof window !== \"undefined\") {\n installGlobalHandlers(client);\n installFetchInstrumentation();\n }\n}\nfunction captureException(error, options) {\n if (!client) return;\n client.addException({\n traceId: null,\n stackTrace: formatBrowserStackTrace(error),\n recordedAt: nowISO2(),\n isMessage: false,\n distributedTraceId: options?.distributedTraceId ?? getActiveDistributedTraceId()\n });\n}\nfunction captureExceptionWithAttributes(error, attributes, options) {\n if (!client) return;\n client.addException({\n traceId: null,\n stackTrace: formatBrowserStackTrace(error),\n recordedAt: nowISO2(),\n attributes,\n isMessage: false,\n distributedTraceId: options?.distributedTraceId ?? getActiveDistributedTraceId()\n });\n}\nfunction captureMessage(msg) {\n if (!client) return;\n client.addException({\n traceId: null,\n stackTrace: msg,\n recordedAt: nowISO2(),\n isMessage: true\n });\n}\nasync function flush(timeoutMs) {\n if (!client) return;\n await client.flush(timeoutMs);\n}\nvar DISTRIBUTED_TRACE_HEADER = \"traceway-trace-id\";\nfunction createAxiosInterceptor() {\n return (config) => {\n config.headers = config.headers || {};\n config.headers[\"traceway-trace-id\"] = generateUUID3();\n return config;\n };\n}\nexport {\n DISTRIBUTED_TRACE_HEADER,\n TracewayFrontendClient,\n captureException,\n captureExceptionWithAttributes,\n captureMessage,\n createAxiosInterceptor,\n flush,\n formatBrowserStackTrace,\n getActiveDistributedTraceId,\n init,\n installGlobalHandlers\n};\n//# sourceMappingURL=index.mjs.map","<script lang=\"ts\">\n\timport './layout.css';\n\timport { goto, afterNavigate } from '$app/navigation';\n\timport { authState } from '$lib/state/auth.svelte';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { themeState, initTheme, toggleTheme } from '$lib/state/theme.svelte';\n\timport { incrementNavDepth, decrementNavDepth } from '$lib/utils/back-navigation';\n\timport AppSidebar from '$lib/components/app-sidebar.svelte';\n\timport AddProjectModal from '$lib/components/add-project-modal.svelte';\n\timport FrameworkIcon from '$lib/components/framework-icon.svelte';\n\timport * as Sidebar from '$lib/components/ui/sidebar';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Sun, Moon, LogOut, Plus, Check } from '@lucide/svelte';\n\timport { onMount } from 'svelte';\n\timport * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';\n\timport { ChevronDown } from 'lucide-svelte';\n\timport { Toaster, toast } from 'svelte-sonner';\n\timport { page } from '$app/state';\n\timport { setupTraceway } from '@tracewayapp/svelte';\n\timport { captureException } from '@tracewayapp/frontend';\n\timport * as Tooltip from '$lib/components/ui/tooltip';\n\n\tif (__TRACEWAY_URL__) {\n\t\tsetupTraceway({\n\t\t\tconnectionString: __TRACEWAY_URL__\n\t\t});\n\t}\n\n\tlet { children } = $props();\n\tlet showAddProjectModal = $state(false);\n\n\t// Track navigation depth for smart back buttons\n\tlet lastPathname = '';\n\tafterNavigate((navigation) => {\n\t\tif (!navigation.to?.url) return;\n\t\tconst newPathname = navigation.to.url.pathname;\n\n\t\tif (navigation.type === 'popstate') {\n\t\t\t// Browser back/forward button\n\t\t\tdecrementNavDepth();\n\t\t} else if (newPathname !== lastPathname) {\n\t\t\t// Navigated to a different page (not just param change)\n\t\t\tincrementNavDepth();\n\t\t}\n\t\t// Param-only changes (same pathname) don't affect depth\n\n\t\tlastPathname = newPathname;\n\t});\n\n\tonMount(() => {\n\t\tinitTheme();\n\t\t(window as any).captureException = captureException;\n\n\t\tif (authState.isAuthenticated) {\n\t\t\tprojectsState.loadProjects();\n\t\t}\n\t});\n\n\tfunction handleLogout() {\n\t\tauthState.logout();\n\t\tgoto('/login');\n\t}\n\n\tfunction handleProjectSelect(projectId: string) {\n\t\tprojectsState.selectProject(projectId);\n\t\tgoto('/');\n\t}\n\n\tfunction handleAddProjectClick() {\n\t\tconst organizationId =\n\t\t\tprojectsState.currentProject?.organizationId ?? authState.organizations[0]?.id;\n\t\tif (organizationId) {\n\t\t\tconst role = authState.getRoleForOrganization(organizationId);\n\t\t\tif (role === 'readonly') {\n\t\t\t\ttoast.error(\"You're not authorized to perform that action\", { position: 'top-center' });\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tshowAddProjectModal = true;\n\t}\n\n\tfunction handleProjectCreated() {\n\t\tshowAddProjectModal = false;\n\t\t// Optionally navigate to connection page to show token\n\t\tgoto('/connection');\n\t}\n</script>\n\n<svelte:head><link rel=\"icon\" href=\"/favicon.ico\" /></svelte:head>\n\n<Tooltip.Provider delayDuration={0}>\n<!-- This is not ideal, but because our layout is a top level route it can end up showing sidebar on the login page (after the login before the transition). -->\n<!-- We could consider moving this to a lower level layout for the actual app, for now it's just a path check -->\n{#if authState.isAuthenticated && page.url.pathname !== '/login' && page.url.pathname !== '/register' && page.url.pathname !== '/auth/callback' && page.url.pathname !== '/finish-setup' && !page.url.pathname.startsWith('/accept-invitation')}\n\t<Sidebar.SidebarProvider>\n\t\t<AppSidebar />\n\t\t<Sidebar.SidebarInset>\n\t\t\t<header class=\"flex h-12 shrink-0 items-center gap-2 border-b px-2\">\n\t\t\t\t<Sidebar.SidebarTrigger />\n\t\t\t\t<div class=\"h-4 w-px bg-border\"></div>\n\t\t\t\t<h1 class=\"text-lg font-semibold\">\n\t\t\t\t\t<DropdownMenu.Root>\n\t\t\t\t\t\t<DropdownMenu.Trigger\n\t\t\t\t\t\t\tclass=\"flex flex-row items-center gap-2 rounded-md px-2 py-1 transition-colors hover:bg-accent hover:text-accent-foreground\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{#if projectsState.currentProject}\n\t\t\t\t\t\t\t\t<FrameworkIcon framework={projectsState.currentProject.framework} class=\"size-6 shrink-0\" />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t<span>{projectsState.currentProject?.name || 'Select Project'}</span>\n\t\t\t\t\t\t\t<ChevronDown size={16} />\n\t\t\t\t\t\t</DropdownMenu.Trigger>\n\t\t\t\t\t\t<DropdownMenu.Content align=\"start\" class=\"w-56\">\n\t\t\t\t\t\t\t<DropdownMenu.Group>\n\t\t\t\t\t\t\t\t<DropdownMenu.Label>Projects</DropdownMenu.Label>\n\t\t\t\t\t\t\t\t<DropdownMenu.Separator />\n\t\t\t\t\t\t\t\t{#each projectsState.projects as project}\n\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\tonclick={() => handleProjectSelect(project.id)}\n\t\t\t\t\t\t\t\t\t\tclass=\"flex cursor-pointer items-center justify-between\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t\t\t<FrameworkIcon framework={project.framework} />\n\t\t\t\t\t\t\t\t\t\t\t<span>{project.name}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t{#if project.id === projectsState.currentProjectId}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t{#if projectsState.projects.length === 0}\n\t\t\t\t\t\t\t\t\t<DropdownMenu.Item disabled>No projects yet</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t<DropdownMenu.Separator />\n\t\t\t\t\t\t\t\t<DropdownMenu.Item onclick={handleAddProjectClick} class=\"cursor-pointer\">\n\t\t\t\t\t\t\t\t\t<Plus class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tAdd Project\n\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t</DropdownMenu.Group>\n\t\t\t\t\t\t</DropdownMenu.Content>\n\t\t\t\t\t</DropdownMenu.Root>\n\t\t\t\t</h1>\n\t\t\t\t<div class=\"ml-auto flex items-center gap-2\">\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\tonclick={toggleTheme}\n\t\t\t\t\t\ttitle={themeState.isDark ? 'Switch to Light Mode' : 'Switch to Dark Mode'}\n\t\t\t\t\t>\n\t\t\t\t\t\t{#if themeState.isDark}\n\t\t\t\t\t\t\t<Sun class=\"h-5 w-5\" />\n\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t<Moon class=\"h-5 w-5\" />\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t</Button>\n\t\t\t\t\t<Button variant=\"ghost\" size=\"icon\" onclick={handleLogout} title=\"Logout\">\n\t\t\t\t\t\t<LogOut class=\"h-5 w-5\" />\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t</header>\n\t\t\t<main class=\"min-w-0 flex-1 p-4\">\n\t\t\t\t{@render children()}\n\t\t\t</main>\n\t\t</Sidebar.SidebarInset>\n\t</Sidebar.SidebarProvider>\n\n\t<AddProjectModal\n\t\topen={showAddProjectModal}\n\t\tonOpenChange={(open) => (showAddProjectModal = open)}\n\t\tonProjectCreated={handleProjectCreated}\n\t/>\n\n\t<Toaster position=\"bottom-right\" />\n{:else}\n\t{#if page.url.pathname === '/login' || page.url.pathname === '/register' || page.url.pathname === '/auth/callback' || page.url.pathname === '/finish-setup' || page.url.pathname.startsWith('/accept-invitation')}\n\t\t<main class=\"h-screen w-screen\">\n\t\t\t{@render children()}\n\t\t</main>\n\t{/if}\n{/if}\n</Tooltip.Provider>\n"],"names":["head","hash","render_fn","previous_hydrate_node","was_hydrating","hydrating","anchor","hydrate_node","head_anchor","get_first_child","COMMENT_NODE","get_next_sibling","set_hydrating","start","set_hydrate_node","create_text","block","HEAD_EFFECT","ssr","prerender","bars","div","root","div_1","$.child","$.each","_","i","div_2","root_1","$.reset","$.set_class","$0","$.set_attribute","$$props","$.clsx","$.append","$$anchor","defaultWindow","getActiveElement","document","activeElement","node","ReactiveValue","#fn","#subscribe","fn","onsubscribe","createSubscriber","parenthesis_regex","non_parenthesized_keywords","MediaQuery","query","fallback","final_query","keyword","q","update","on","ActiveElement","options","window","#document","cleanupFocusIn","cleanupFocusOut","Context","#name","#key","name","hasContext","context","getContext","setContext","sonnerContext","isAction","action","useDocumentHidden","current","$.state","$.proxy","$.user_effect","TOAST_LIFETIME","GAP","SWIPE_THRESHOLD","TIME_BEFORE_UNMOUNT","SCALE_MULTIPLIER","DEFAULT_TOAST_CLASSES","getDefaultSwipeDirections","position","y","x","directions","getDampening","delta","LoadingIcon","root_2","node_1","$.get","toastType","cn","classes","$.derived","$1","Loader","cancelButtonStyle","actionButtonStyle","descriptionClass","unstyled","defaultRichColors","defaultClasses","mounted","removed","swiping","swipeOut","isSwiped","offsetBeforeRemove","initialHeight","remainingTime","toastRef","swipeDirection","swipeOutDirection","isFront","isVisible","dismissable","toastClass","toastDescriptionClass","heightIndex","toastState","height","closeButton","duration","pointerStart","coords","toastsHeightBefore","prev","curr","reducerIndex","isDocumentHidden","invert","disabled","toastTitle","toastDescription","closeTimerStartTime","lastCloseTimerStartTime","offset","scale","toastEl","untrack","offsetHeight","rectHeight","scaledRectHeight","finalHeight","$.set","deleteToast","timeoutId","isPromiseLoadingOrInfiniteDuration","startTimer","pauseTimer","elapsedTime","onMount","handlePointerDown","event","target","handlePointerUp","swipeAmountX","swipeAmountY","timeTaken","swipeAmount","velocity","handlePointerMove","yDelta","xDelta","swipeDirections","dampenedDelta","handleDragEnd","icon","li","node_2","button","root_4","node_3","$$render","consequent_1","Component","Component_1","$.spread_props","root_7","toast_icon","consequent_3","alternate_1","consequent_4","toast_icon_1","consequent_9","consequent_8","alternate_2","consequent_7","alternate_3","consequent_6","alternate_4","consequent_5","alternate_5","consequent_10","consequent_11","$.sibling","node_6","div_3","node_21","Title","Title_1","consequent_12","alternate_6","consequent_13","node_24","div_4","root_24","node_25","Description","Description_1","consequent_14","alternate_7","$.template_effect","consequent_15","toast_cancel","button_1","root_30","text_2","$.set_text","consequent_17","consequent_16","alternate_8","consequent_18","toast_action","button_2","root_34","text_3","consequent_20","consequent_19","alternate_9","consequent_21","consequent_2","alternate_10","$$value","$2","styles","$.event","svg","VISIBLE_TOASTS_AMOUNT","VIEWPORT_OFFSET","MOBILE_VIEWPORT_OFFSET","TOAST_WIDTH","DARK","LIGHT","getOffsetObject","defaultOffset","mobileOffset","index","isMobile","prefix","defaultValue","assignAll","key","value","getInitialTheme","t","hotkey","$.prop","expand","theme","richColors","visibleToasts","toastOptions","dir","gap","containerAriaLabel","closeButtonAriaLabel","restProps","$.rest_props","getDocumentDirection","dirAttribute","possiblePositions","toast","expanded","interacting","actualTheme","listRef","lastFocusedElementRef","isFocusWithin","hotkeyLabel","toastsToDismiss","updatedToasts","dismissToast","mediaQueryList","changeHandler","matches","handleBlur","handleFocus","handleMouseEnter","handleMouseLeave","handleMouseMove","SonnerState","section","$$array","offsetObject","ol","$$array_1","successIcon","SuccessIcon","errorIcon","ErrorIcon","warningIcon","WarningIcon","infoIcon","InfoIcon","closeIcon","CloseIcon","$4","Toast","DEFAULT_MOBILE_BREAKPOINT","IsMobile","breakpoint","SIDEBAR_COOKIE_NAME","SIDEBAR_COOKIE_MAX_AGE","SIDEBAR_WIDTH","SIDEBAR_WIDTH_MOBILE","SIDEBAR_WIDTH_ICON","SIDEBAR_KEYBOARD_SHORTCUT","SidebarState","#openMobile","#state","props","#isMobile","SYMBOL_KEY","setSidebar","useSidebar","ref","main","$.attribute_effect","uid","$.props_id","id","createId","groupState","MenuGroupState","boxWith","v","mergedProps","mergeProps","$.snippet","open","onOpenChange","noop","onOpenChangeComplete","DialogRootState","closeState","DialogCloseState","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay","contentState","DialogContentState","FocusScope","$$arg0","focusScopeProps","EscapeLayer","e","DismissibleLayer","TextSelectionLayer","ScrollLock","consequent","node_4","delayDuration","disableCloseOnTriggerClick","disableHoverableContent","ignoreNonKeyboardFocus","skipDelayDuration","TooltipProviderState","TooltipPrimitive_Provider","sidebarMenuButtonVariants","tv","Button","buttonProps","root_3","variant","size","isActive","sidebar","Tooltip_Root","child","Tooltip_Trigger","Tooltip_Content","ul","$$args","Tooltip_Provider","iconNode","Icon","$.noop","PanelLeftIcon","SheetPrimitive_Root","SheetPrimitive_Portal","SheetPrimitive_Overlay","sheetVariants","side","SheetPortal","SheetOverlay","SheetPrimitive_Content","SheetPrimitive_Close","XIcon","SheetPrimitive_Title","SheetPrimitive_Description","collapsible","bind_get","bind_set","Sheet_Root","Sheet_Content","Sheet_Header","Sheet_Title","Sheet_Description","node_5","root_9","div_5","node_9","alternate","hiddenForFrontend","hiddenForCloudflare","frontendOnly","allSidebarItems","LayoutDashboard","Bug","FileText","Gauge","ListEnd","Film","Workflow","ChartNoAxesCombined","Bell","Link2","sidebarItems","projectsState","isFrontendFramework","item","isCloudflareFramework","allSidebarItemsBottom","BookOpen","Settings","sidebarItemsBottom","Sidebar_Sidebar","Sidebar_SidebarHeader","img","img_1","themeState","Sidebar_SidebarContent","Sidebar_SidebarGroup","Sidebar_SidebarGroupContent","Sidebar_SidebarMenu","node_7","sidebarItem","Sidebar_SidebarMenuItem","page","Sidebar_SidebarMenuButton","createRowClickHandler","sidebarItem_Icon","span","node_10","text","Sidebar_SidebarGroup_1","Sidebar_SidebarGroupContent_1","Sidebar_SidebarMenu_1","node_15","Sidebar_SidebarMenuItem_1","Sidebar_SidebarMenuButton_1","sidebarItem_Icon_1","span_1","node_19","text_1","Sidebar_SidebarMenuButton_2","sidebarItem_Icon_2","span_2","Sidebar_SidebarFooter","span_3","root_22","$$sanitized_props","projectName","selectedFramework","loading","error","createdProject","copied","handleSubmit","project","err","copyToken","handleClose","handleGoToConnection","$.first_child","fragment_6","Label","node_8","FrameworkIcon","node_11","div_6","Input","node_12","node_13","Check","Copy","div_7","node_16","ExternalLink","node_17","text_5","getFrameworkLabel","form","root_19","div_8","node_18","div_9","node_20","FrameworkCombobox","div_10","p","div_11","node_22","node_23","DropdownMenuPrimitive_Group","captureException","showAddProjectModal","lastPathname","afterNavigate","navigation","newPathname","decrementNavDepth","incrementNavDepth","initTheme","authState","handleLogout","goto","handleProjectSelect","projectId","handleAddProjectClick","organizationId","handleProjectCreated","$.head","link","Sidebar_SidebarProvider","AppSidebar","Sidebar_SidebarInset","header","fragment_4","Sidebar_SidebarTrigger","h1","DropdownMenu_Root","DropdownMenu_Trigger","ChevronDown","DropdownMenu_Content","DropdownMenu_Group","DropdownMenu_Label","DropdownMenu_Separator","$.index","DropdownMenu_Item","fragment_11","DropdownMenu_Item_1","DropdownMenu_Separator_1","DropdownMenu_Item_2","Plus","toggleTheme","Sun","Mo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/backend/static/frontend/_app/immutable/nodes/0.DqXbLv7T.js b/backend/static/frontend/_app/immutable/nodes/0.DqXbLv7T.js
new file mode 100644
index 00000000..47772b5c
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/0.DqXbLv7T.js
@@ -0,0 +1 @@
+import{p as _,i as P,b as rt,s as we,r as ae,l as Fa}from"../chunks/DMODTt3n.js";import{o as $t}from"../chunks/Dwk6gGSK.js";import{a4 as La,G as Ha,bv as za,B as Wt,a7 as Ra,ae as Ka,au as ia,ac as da,a6 as ca,ad as Va,p as W,f as b,e as y,b as a,r as p,k as Le,a as U,bu as ya,b9 as Tt,_ as Wa,Z as qt,a1 as xa,h as me,v as wa,F as ut,i as f,g as t,u as S,C as Nt,s as g,j as Lt,m as O,o as G,d as c,c as s,q as Pa,t as De,l as at,w as Dt,K as ea,bw as Ua,n as xe}from"../chunks/B2WdN-7r.js";import{e as kt,i as Xt}from"../chunks/CMyj8Fzw.js";import{c as m}from"../chunks/BAcG0-U_.js";import{g as Et,a as Ya}from"../chunks/BIF4_51j.js";import{h as $e,j as ht,S as Ga,p as Ye,i as qa,e as Xa,g as Za,t as Bt,k as Qa,l as Ja,b as It}from"../chunks/qCQ2nSvO.js";import{t as Zt,i as $a,a as er}from"../chunks/BnbBSyGl.js";import{c as vt,a as gt,s as je,e as Ut,b as Je,S as tr,d as Ge,t as ka}from"../chunks/DH0tcjsQ.js";import{c as ar,T as rr,a as or,b as nr}from"../chunks/5D-Broyu.js";import{c as ta,b as et,m as Pt}from"../chunks/BDd6-VcB.js";import{B as dt}from"../chunks/C1aqwstW.js";import{g as sr,h as lr,i as ir,j as dr,k as cr,l as ur,e as fr,A as vr,a as gr,b as hr,c as mr,d as _r}from"../chunks/CmY6xZEr.js";import{at as br,n as wt,s as pr,v as yr,x as xr,T as wr,y as ua,P as Pr}from"../chunks/CjLH05gQ.js";import{X as kr}from"../chunks/CeufXW8P.js";import{p as it}from"../chunks/CyRgFauW.js";import{c as fa}from"../chunks/UIirCQWa.js";import{I as ot}from"../chunks/Bv_PbELb.js";import{I as Ft}from"../chunks/D8CWOmhn.js";import{L as mt}from"../chunks/Csh2s3-8.js";import{F as Qt}from"../chunks/FmJ3F5-k.js";import{F as Ma}from"../chunks/DJPlLp0I.js";import{C as Jt}from"../chunks/BISlaXSK.js";import{C as Ca}from"../chunks/lk4DWutj.js";import{I as Mr,s as Cr}from"../chunks/CQWqWi6p.js";import{T as Sr,C as Ir,D as va}from"../chunks/CKSCW-4I.js";import{D as Tr,a as Dr,b as jr,c as jt}from"../chunks/Cjl85b3B.js";import{C as Ar}from"../chunks/RIbCUOxE.js";import{P as Or}from"../chunks/BUQRDnoX.js";import{C as Er}from"../chunks/DUJ_Z9AF.js";import{P as Br}from"../chunks/CM0V6MFA.js";function Nr(i,e){let o=null,l=Wt;var r;if(Wt){o=Va;for(var d=Ra(document.head);d!==null&&(d.nodeType!==Ka||d.data!==i);)d=ia(d);if(d===null)da(!1);else{var n=ia(d);d.remove(),ca(n)}}Wt||(r=document.head.appendChild(La()));try{Ha(()=>e(r),za)}finally{l&&(da(!0),ca(o))}}const Fr=!1,Lr=!0,gl=Object.freeze(Object.defineProperty({__proto__:null,prerender:Lr,ssr:Fr},Symbol.toStringTag,{value:"Module"})),Hr=Array(12).fill(0);var zr=b('<div class="sonner-loading-bar"></div>'),Rr=b('<div><div class="sonner-spinner"></div></div>');function Kr(i,e){W(e,!0);var o=Rr(),l=y(o);kt(l,23,()=>Hr,(r,d)=>`spinner-bar-${d}`,(r,d)=>{var n=zr();a(r,n)}),p(l),p(o),Le(r=>{gt(o,1,r),je(o,"data-visible",e.visible)},[()=>vt(["sonner-loading-wrapper",e.class].filter(Boolean).join(" "))]),a(i,o),U()}const Vr=typeof window<"u"?window:void 0;function Wr(i){let e=i.activeElement;for(;e?.shadowRoot;){const o=e.shadowRoot.activeElement;if(o===e)break;e=o}return e}class Ur{#t;#e;constructor(e,o){this.#t=e,this.#e=ya(o)}get current(){return this.#e(),this.#t()}}const Yr=/\(.+\)/,Gr=new Set(["all","print","screen","and","or","not","only"]);class qr extends Ur{constructor(e,o){let l=Yr.test(e)||e.split(/[\s,]+/).some(d=>Gr.has(d.trim()))?e:`(${e})`;const r=window.matchMedia(l);super(()=>r.matches,d=>Tt(r,"change",d))}}class Xr{#t;#e;constructor(e={}){const{window:o=Vr,document:l=o?.document}=e;o!==void 0&&(this.#t=l,this.#e=ya(r=>{const d=Tt(o,"focusin",r),n=Tt(o,"focusout",r);return()=>{d(),n()}}))}get current(){return this.#e?.(),this.#t?Wr(this.#t):null}}new Xr;class Zr{#t;#e;constructor(e){this.#t=e,this.#e=Symbol(e)}get key(){return this.#e}exists(){return Wa(this.#e)}get(){const e=qt(this.#e);if(e===void 0)throw new Error(`Context "${this.#t}" not found`);return e}getOr(e){const o=qt(this.#e);return o===void 0?e:o}set(e){return xa(this.#e,e)}}const Qr=new Zr("<Toaster/>");function At(i){return i.label!==void 0}function Jr(){let i=me(wa(typeof document<"u"?document.hidden:!1));return ut(()=>Tt(document,"visibilitychange",()=>{f(i,document.hidden,!0)})),{get current(){return t(i)}}}const ga=4e3,$r=14,eo=45,to=200,ao=.05,ro={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function oo(i){const[e,o]=i.split("-"),l=[];return e&&l.push(e),o&&l.push(o),l}function ha(i){return 1/(1.5+Math.abs(i)/20)}var no=b("<div><!></div>"),so=b('<button data-close-button=""><!></button>'),lo=b('<div data-icon=""><!> <!></div>'),io=b('<div data-description=""><!></div>'),co=b('<button data-button="" data-cancel=""> </button>'),uo=b('<button data-button=""> </button>'),fo=b('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),vo=b('<li data-sonner-toast=""><!> <!></li>');function go(i,e){W(e,!0);const o=L=>{var Z=c(),ie=s(Z);{var ue=Q=>{var Be=no(),tt=y(Be);O(tt,()=>e.loadingIcon),p(Be),Le(lt=>{gt(Be,1,lt),je(Be,"data-visible",t(x)==="loading")},[()=>vt(ht(t(ne)?.loader,e.toast?.classes?.loader,"sonner-loader"))]),a(Q,Be)},ye=Q=>{{let Be=S(()=>ht(t(ne)?.loader,e.toast.classes?.loader)),tt=S(()=>t(x)==="loading");Kr(Q,{get class(){return t(Be)},get visible(){return t(tt)}})}};P(ie,Q=>{e.loadingIcon?Q(ue):Q(ye,!1)})}a(L,Z)};let l=_(e,"cancelButtonStyle",3,""),r=_(e,"actionButtonStyle",3,""),d=_(e,"descriptionClass",3,""),n=_(e,"unstyled",3,!1),u=_(e,"defaultRichColors",3,!1);const B={...ro};let D=me(!1),J=me(!1),$=me(!1),E=me(!1),N=me(!1),w=me(0),H=me(0),Ae=e.toast.duration||e.duration||ga,ge=me(void 0),K=me(null),oe=me(null);const _e=S(()=>e.index===0),ke=S(()=>e.index+1<=e.visibleToasts),x=S(()=>e.toast.type),R=S(()=>e.toast.dismissable!==!1),q=S(()=>e.toast.class||""),ce=S(()=>e.toast.descriptionClass||""),he=S(()=>$e.heights.findIndex(L=>L.toastId===e.toast.id)||0),He=S(()=>e.toast.closeButton??e.closeButton),Se=S(()=>e.toast.duration??e.duration??ga);let re=null;const fe=S(()=>e.position.split("-")),Ie=S(()=>$e.heights.reduce((L,Z,ie)=>ie>=t(he)?L:L+Z.height,0)),Me=Jr(),Pe=S(()=>e.toast.invert||e.invert),ee=S(()=>t(x)==="loading"),ne=S(()=>({...B,...e.classes})),X=S(()=>e.toast.title),V=S(()=>e.toast.description);let te=me(0),se=me(0);const v=S(()=>Math.round(t(he)*$r+t(Ie)));ut(()=>{t(X),t(V);let L;e.expanded||e.expandByDefault?L=1:L=1-e.index*ao;const Z=Nt(()=>t(ge));if(Z===void 0)return;Z.style.setProperty("height","auto");const ie=Z.offsetHeight,ue=Z.getBoundingClientRect().height,ye=Math.round(ue/L+Number.EPSILON&100)/100;Z.style.removeProperty("height");let Q;Math.abs(ye-ie)<1?Q=ye:Q=ie,f(H,Q,!0),$e.setHeight({toastId:e.toast.id,height:Q})});function j(){f(J,!0),f(w,t(v),!0),$e.removeHeight(e.toast.id),setTimeout(()=>{$e.remove(e.toast.id)},to)}let F;const Y=S(()=>e.toast.promise&&t(x)==="loading"||e.toast.duration===Number.POSITIVE_INFINITY);function I(){f(te,new Date().getTime(),!0),F=setTimeout(()=>{e.toast.onAutoClose?.(e.toast),j()},Ae)}function k(){if(t(se)<t(te)){const L=new Date().getTime()-t(te);Ae=Ae-L}f(se,new Date().getTime(),!0)}ut(()=>{e.toast.updated&&(clearTimeout(F),Ae=t(Se),I())}),ut(()=>(t(Y)||(e.expanded||e.interacting||Me.current?k():I()),()=>clearTimeout(F))),$t(()=>{f(D,!0);const L=t(ge)?.getBoundingClientRect().height;return f(H,L,!0),$e.setHeight({toastId:e.toast.id,height:L}),()=>{$e.removeHeight(e.toast.id)}}),ut(()=>{e.toast.delete&&Nt(()=>{j(),e.toast.onDismiss?.(e.toast)})});const be=L=>{if(t(ee))return;f(w,t(v),!0);const Z=L.target;Z.setPointerCapture(L.pointerId),Z.tagName!=="BUTTON"&&(f($,!0),re={x:L.clientX,y:L.clientY})},z=()=>{if(t(E)||!t(R))return;re=null;const L=Number(t(ge)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),Z=Number(t(ge)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),ie=new Date().getTime()-0,ue=t(K)==="x"?L:Z,ye=Math.abs(ue)/ie;if(Math.abs(ue)>=eo||ye>.11){f(w,t(v),!0),e.toast.onDismiss?.(e.toast),t(K)==="x"?f(oe,L>0?"right":"left",!0):f(oe,Z>0?"down":"up",!0),j(),f(E,!0);return}else t(ge)?.style.setProperty("--swipe-amount-x","0px"),t(ge)?.style.setProperty("--swipe-amount-y","0px");f(N,!1),f($,!1),f(K,null)},Te=L=>{if(!re||!t(R)||(window.getSelection()?.toString().length??-1)>0)return;const ie=L.clientY-re.y,ue=L.clientX-re.x,ye=e.swipeDirections??oo(e.position);!t(K)&&(Math.abs(ue)>1||Math.abs(ie)>1)&&f(K,Math.abs(ue)>Math.abs(ie)?"x":"y",!0);let Q={x:0,y:0};if(t(K)==="y"){if(ye.includes("top")||ye.includes("bottom"))if(ye.includes("top")&&ie<0||ye.includes("bottom")&&ie>0)Q.y=ie;else{const Be=ie*ha(ie);Q.y=Math.abs(Be)<Math.abs(ie)?Be:ie}}else if(t(K)==="x"&&(ye.includes("left")||ye.includes("right")))if(ye.includes("left")&&ue<0||ye.includes("right")&&ue>0)Q.x=ue;else{const Be=ue*ha(ue);Q.x=Math.abs(Be)<Math.abs(ue)?Be:ue}(Math.abs(Q.x)>0||Math.abs(Q.y)>0)&&f(N,!0),t(ge)?.style.setProperty("--swipe-amount-x",`${Q.x}px`),t(ge)?.style.setProperty("--swipe-amount-y",`${Q.y}px`)},Ce=()=>{f($,!1),f(K,null),re=null},A=S(()=>e.toast.icon?e.toast.icon:t(x)==="success"?e.successIcon:t(x)==="error"?e.errorIcon:t(x)==="warning"?e.warningIcon:t(x)==="info"?e.infoIcon:t(x)==="loading"?e.loadingIcon:null);var T=vo();je(T,"tabindex",0);let pe;T.__pointermove=Te,T.__pointerup=z,T.__pointerdown=be;var Oe=y(T);{var Xe=L=>{var Z=so();Z.__click=()=>{t(ee)||!t(R)||(j(),e.toast.onDismiss?.(e.toast))};var ie=y(Z);O(ie,()=>e.closeIcon??G),p(Z),Le(ue=>{je(Z,"aria-label",e.closeButtonAriaLabel),je(Z,"data-disabled",t(ee)),gt(Z,1,ue)},[()=>vt(ht(t(ne)?.closeButton,e.toast?.classes?.closeButton))]),a(L,Z)};P(Oe,L=>{t(He)&&!e.toast.component&&t(x)!=="loading"&&e.closeIcon!==null&&L(Xe)})}var nt=g(Oe,2);{var qe=L=>{const Z=S(()=>e.toast.component);var ie=c(),ue=s(ie);m(ue,()=>t(Z),(ye,Q)=>{Q(ye,we(()=>e.toast.componentProps,{closeToast:j}))}),a(L,ie)},st=L=>{var Z=fo(),ie=s(Z);{var ue=ve=>{var h=lo(),C=y(h);{var le=de=>{var Re=c(),Ke=s(Re);{var ze=We=>{var Ue=c(),_t=s(Ue);m(_t,()=>e.toast.icon,(bt,pt)=>{pt(bt,{})}),a(We,Ue)},Fe=We=>{o(We)};P(Ke,We=>{e.toast.icon?We(ze):We(Fe,!1)})}a(de,Re)};P(C,de=>{(e.toast.promise||t(x)==="loading")&&de(le)})}var Ee=g(C,2);{var M=de=>{var Re=c(),Ke=s(Re);{var ze=We=>{var Ue=c(),_t=s(Ue);m(_t,()=>e.toast.icon,(bt,pt)=>{pt(bt,{})}),a(We,Ue)},Fe=We=>{var Ue=c(),_t=s(Ue);{var bt=ft=>{var Mt=c(),zt=s(Mt);O(zt,()=>e.successIcon??G),a(ft,Mt)},pt=ft=>{var Mt=c(),zt=s(Mt);{var ja=yt=>{var Ct=c(),Rt=s(Ct);O(Rt,()=>e.errorIcon??G),a(yt,Ct)},Aa=yt=>{var Ct=c(),Rt=s(Ct);{var Oa=xt=>{var St=c(),Kt=s(St);O(Kt,()=>e.warningIcon??G),a(xt,St)},Ea=xt=>{var St=c(),Kt=s(St);{var Ba=Vt=>{var la=c(),Na=s(la);O(Na,()=>e.infoIcon??G),a(Vt,la)};P(Kt,Vt=>{t(x)==="info"&&Vt(Ba)},!0)}a(xt,St)};P(Rt,xt=>{t(x)==="warning"?xt(Oa):xt(Ea,!1)},!0)}a(yt,Ct)};P(zt,yt=>{t(x)==="error"?yt(ja):yt(Aa,!1)},!0)}a(ft,Mt)};P(_t,ft=>{t(x)==="success"?ft(bt):ft(pt,!1)},!0)}a(We,Ue)};P(Ke,We=>{e.toast.icon?We(ze):We(Fe,!1)})}a(de,Re)};P(Ee,de=>{e.toast.type!=="loading"&&de(M)})}p(h),Le(de=>gt(h,1,de),[()=>vt(ht(t(ne)?.icon,e.toast?.classes?.icon))]),a(ve,h)};P(ie,ve=>{(t(x)||e.toast.icon||e.toast.promise)&&e.toast.icon!==null&&(t(A)!==null||e.toast.icon)&&ve(ue)})}var ye=g(ie,2),Q=y(ye),Be=y(Q);{var tt=ve=>{var h=c(),C=s(h);{var le=M=>{const de=S(()=>e.toast.title);var Re=c(),Ke=s(Re);m(Ke,()=>t(de),(ze,Fe)=>{Fe(ze,we(()=>e.toast.componentProps))}),a(M,Re)},Ee=M=>{var de=De();Le(()=>at(de,e.toast.title)),a(M,de)};P(C,M=>{typeof e.toast.title!="string"?M(le):M(Ee,!1)})}a(ve,h)};P(Be,ve=>{e.toast.title&&ve(tt)})}p(Q);var lt=g(Q,2);{var ct=ve=>{var h=io(),C=y(h);{var le=M=>{const de=S(()=>e.toast.description);var Re=c(),Ke=s(Re);m(Ke,()=>t(de),(ze,Fe)=>{Fe(ze,we(()=>e.toast.componentProps))}),a(M,Re)},Ee=M=>{var de=De();Le(()=>at(de,e.toast.description)),a(M,de)};P(C,M=>{typeof e.toast.description!="string"?M(le):M(Ee,!1)})}p(h),Le(M=>gt(h,1,M),[()=>vt(ht(d(),t(ce),t(ne)?.description,e.toast.classes?.description))]),a(ve,h)};P(lt,ve=>{e.toast.description&&ve(ct)})}p(ye);var Ze=g(ye,2);{var Ne=ve=>{var h=c(),C=s(h);{var le=M=>{var de=c(),Re=s(de);m(Re,()=>e.toast.cancel,(Ke,ze)=>{ze(Ke,{})}),a(M,de)},Ee=M=>{var de=c(),Re=s(de);{var Ke=ze=>{var Fe=co();Fe.__click=Ue=>{At(e.toast.cancel)&&t(R)&&(e.toast.cancel?.onClick?.(Ue),j())};var We=y(Fe,!0);p(Fe),Le(Ue=>{Ut(Fe,e.toast.cancelButtonStyle??l()),gt(Fe,1,Ue),at(We,e.toast.cancel.label)},[()=>vt(ht(t(ne)?.cancelButton,e.toast?.classes?.cancelButton))]),a(ze,Fe)};P(Re,ze=>{At(e.toast.cancel)&&ze(Ke)},!0)}a(M,de)};P(C,M=>{typeof e.toast.cancel=="function"?M(le):M(Ee,!1)})}a(ve,h)};P(Ze,ve=>{e.toast.cancel&&ve(Ne)})}var Ve=g(Ze,2);{var Qe=ve=>{var h=c(),C=s(h);{var le=M=>{var de=c(),Re=s(de);m(Re,()=>e.toast.action,(Ke,ze)=>{ze(Ke,{})}),a(M,de)},Ee=M=>{var de=c(),Re=s(de);{var Ke=ze=>{var Fe=uo();Fe.__click=Ue=>{At(e.toast.action)&&(e.toast.action?.onClick(Ue),!Ue.defaultPrevented&&j())};var We=y(Fe,!0);p(Fe),Le(Ue=>{Ut(Fe,e.toast.actionButtonStyle??r()),gt(Fe,1,Ue),at(We,e.toast.action.label)},[()=>vt(ht(t(ne)?.actionButton,e.toast?.classes?.actionButton))]),a(ze,Fe)};P(Re,ze=>{At(e.toast.action)&&ze(Ke)},!0)}a(M,de)};P(C,M=>{typeof e.toast.action=="function"?M(le):M(Ee,!1)})}a(ve,h)};P(Ve,ve=>{e.toast.action&&ve(Qe)})}Le(ve=>gt(Q,1,ve),[()=>vt(ht(t(ne)?.title,e.toast?.classes?.title))]),a(L,Z)};P(nt,L=>{e.toast.component?L(qe):L(st,!1)})}p(T),rt(T,L=>f(ge,L),()=>t(ge)),Le((L,Z,ie)=>{gt(T,1,L),je(T,"data-rich-colors",e.toast.richColors??u()),je(T,"data-styled",!(e.toast.component||e.toast.unstyled||n())),je(T,"data-mounted",t(D)),je(T,"data-promise",Z),je(T,"data-swiped",t(N)),je(T,"data-removed",t(J)),je(T,"data-visible",t(ke)),je(T,"data-y-position",t(fe)[0]),je(T,"data-x-position",t(fe)[1]),je(T,"data-index",e.index),je(T,"data-front",t(_e)),je(T,"data-swiping",t($)),je(T,"data-dismissable",t(R)),je(T,"data-type",t(x)),je(T,"data-invert",t(Pe)),je(T,"data-swipe-out",t(E)),je(T,"data-swipe-direction",t(oe)),je(T,"data-expanded",ie),pe=Ut(T,`${e.style} ${e.toast.style}`,pe,{"--index":e.index,"--toasts-before":e.index,"--z-index":$e.toasts.length-e.index,"--offset":`${t(J)?t(w):t(v)}px`,"--initial-height":e.expandByDefault?"auto":`${t(H)}px`})},[()=>vt(ht(e.class,t(q),t(ne)?.toast,e.toast?.classes?.toast,t(ne)?.[t(x)],e.toast?.classes?.[t(x)])),()=>!!e.toast.promise,()=>!!(e.expanded||e.expandByDefault&&t(D))]),Lt("dragend",T,Ce),a(i,T),U()}Pa(["pointermove","pointerup","pointerdown","click"]);var ho=Dt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>');function mo(i){var e=ho();a(i,e)}var _o=Dt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>');function bo(i){var e=_o();a(i,e)}var po=Dt('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function yo(i){var e=po();a(i,e)}var xo=Dt('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>');function wo(i){var e=xo();a(i,e)}var Po=Dt('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function ko(i){var e=Po();a(i,e)}const Mo=3,Sa="24px",Ia="16px",Co=4e3,So=356,Io=14,Yt="dark",Ot="light";function To(i,e){const o={};return[i,e].forEach((l,r)=>{const d=r===1,n=d?"--mobile-offset":"--offset",u=d?Ia:Sa;function B(D){["top","right","bottom","left"].forEach(J=>{o[`${n}-${J}`]=typeof D=="number"?`${D}px`:D})}typeof l=="number"||typeof l=="string"?B(l):typeof l=="object"?["top","right","bottom","left"].forEach(D=>{const J=l[D];J===void 0?o[`${n}-${D}`]=u:o[`${n}-${D}`]=typeof J=="number"?`${J}px`:J}):B(u)}),o}var Do=b("<ol></ol>"),jo=b('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-nbs0zk"><!></section>');function Ao(i,e){W(e,!0);function o(v){return v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Yt:Ot}let l=_(e,"invert",3,!1),r=_(e,"position",3,"bottom-right"),d=_(e,"hotkey",19,()=>["altKey","KeyT"]),n=_(e,"expand",3,!1),u=_(e,"closeButton",3,!1),B=_(e,"offset",3,Sa),D=_(e,"mobileOffset",3,Ia),J=_(e,"theme",3,"light"),$=_(e,"richColors",3,!1),E=_(e,"duration",3,Co),N=_(e,"visibleToasts",3,Mo),w=_(e,"toastOptions",19,()=>({})),H=_(e,"dir",7,"auto"),Ae=_(e,"gap",3,Io),ge=_(e,"containerAriaLabel",3,"Notifications"),K=_(e,"closeButtonAriaLabel",3,"Close toast"),oe=ae(e,["$$slots","$$events","$$legacy","invert","position","hotkey","expand","closeButton","offset","mobileOffset","theme","richColors","duration","visibleToasts","toastOptions","dir","gap","loadingIcon","successIcon","errorIcon","warningIcon","closeIcon","infoIcon","containerAriaLabel","class","closeButtonAriaLabel","onblur","onfocus","onmouseenter","onmousemove","onmouseleave","ondragend","onpointerdown","onpointerup"]);function _e(){if(H()!=="auto")return H();if(typeof window>"u"||typeof document>"u")return"ltr";const v=document.documentElement.getAttribute("dir");return v==="auto"||!v?(Nt(()=>H(window.getComputedStyle(document.documentElement).direction??"ltr")),H()):(Nt(()=>H(v)),v)}const ke=S(()=>Array.from(new Set([r(),...$e.toasts.filter(v=>v.position).map(v=>v.position)].filter(Boolean))));let x=me(!1),R=me(!1),q=me(wa(o(J()))),ce=me(void 0),he=me(null),He=me(!1);const Se=S(()=>d().join("+").replace(/Key/g,"").replace(/Digit/g,""));ut(()=>{$e.toasts.length<=1&&f(x,!1)}),ut(()=>{const v=$e.toasts.filter(j=>j.dismiss&&!j.delete);if(v.length>0){const j=$e.toasts.map(F=>v.find(I=>I.id===F.id)?{...F,delete:!0}:F);$e.toasts=j}}),ut(()=>()=>{t(ce)&&t(he)&&(t(he).focus({preventScroll:!0}),f(he,null),f(He,!1))}),$t(()=>($e.reset(),Tt(document,"keydown",j=>{d().every(Y=>j[Y]||j.code===Y)&&(f(x,!0),t(ce)?.focus()),j.code==="Escape"&&(document.activeElement===t(ce)||t(ce)?.contains(document.activeElement))&&f(x,!1)}))),ut(()=>{if(J()!=="system"&&f(q,J()),typeof window<"u"){J()==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?f(q,Yt):f(q,Ot));const v=window.matchMedia("(prefers-color-scheme: dark)"),j=({matches:F})=>{f(q,F?Yt:Ot,!0)};"addEventListener"in v?v.addEventListener("change",j):v.addListener(j)}});const re=v=>{e.onblur?.(v),t(He)&&!v.currentTarget.contains(v.relatedTarget)&&(f(He,!1),t(he)&&(t(he).focus({preventScroll:!0}),f(he,null)))},fe=v=>{e.onfocus?.(v),!(v.target instanceof HTMLElement&&v.target.dataset.dismissable==="false")&&(t(He)||(f(He,!0),f(he,v.relatedTarget,!0)))},Ie=v=>{e.onpointerdown?.(v),!(v.target instanceof HTMLElement&&v.target.dataset.dismissable==="false")&&f(R,!0)},Me=v=>{e.onmouseenter?.(v),f(x,!0)},Pe=v=>{e.onmouseleave?.(v),t(R)||f(x,!1)},ee=v=>{e.onmousemove?.(v),f(x,!0)},ne=v=>{e.ondragend?.(v),f(x,!1)},X=v=>{e.onpointerup?.(v),f(R,!1)};Qr.set(new Ga);var V=jo();je(V,"tabindex",-1);var te=y(V);{var se=v=>{var j=c(),F=s(j);kt(F,18,()=>t(ke),Y=>Y,(Y,I,k,be)=>{const z=S(()=>{const[A,T]=I.split("-");return{y:A,x:T}}),Te=S(()=>To(B(),D()));var Ce=Do();Je(Ce,A=>({tabindex:-1,dir:A,class:e.class,"data-sonner-toaster":!0,"data-sonner-theme":t(q),"data-y-position":t(z).y,"data-x-position":t(z).x,style:e.style,onblur:re,onfocus:fe,onmouseenter:Me,onmousemove:ee,onmouseleave:Pe,ondragend:ne,onpointerdown:Ie,onpointerup:X,...oe,[tr]:{"--front-toast-height":`${$e.heights[0]?.height}px`,"--width":`${So}px`,"--gap":`${Ae()}px`,"--offset-top":t(Te)["--offset-top"],"--offset-right":t(Te)["--offset-right"],"--offset-bottom":t(Te)["--offset-bottom"],"--offset-left":t(Te)["--offset-left"],"--mobile-offset-top":t(Te)["--mobile-offset-top"],"--mobile-offset-right":t(Te)["--mobile-offset-right"],"--mobile-offset-bottom":t(Te)["--mobile-offset-bottom"],"--mobile-offset-left":t(Te)["--mobile-offset-left"]}}),[_e],void 0,void 0,"svelte-nbs0zk"),kt(Ce,23,()=>$e.toasts.filter(A=>!A.position&&t(k)===0||A.position===I),A=>A.id,(A,T,pe,Oe)=>{{const Xe=Ze=>{var Ne=c(),Ve=s(Ne);{var Qe=h=>{var C=c(),le=s(C);O(le,()=>e.successIcon??G),a(h,C)},ve=h=>{var C=c(),le=s(C);{var Ee=M=>{mo(M)};P(le,M=>{e.successIcon!==null&&M(Ee)},!0)}a(h,C)};P(Ve,h=>{e.successIcon?h(Qe):h(ve,!1)})}a(Ze,Ne)},nt=Ze=>{var Ne=c(),Ve=s(Ne);{var Qe=h=>{var C=c(),le=s(C);O(le,()=>e.errorIcon??G),a(h,C)},ve=h=>{var C=c(),le=s(C);{var Ee=M=>{bo(M)};P(le,M=>{e.errorIcon!==null&&M(Ee)},!0)}a(h,C)};P(Ve,h=>{e.errorIcon?h(Qe):h(ve,!1)})}a(Ze,Ne)},qe=Ze=>{var Ne=c(),Ve=s(Ne);{var Qe=h=>{var C=c(),le=s(C);O(le,()=>e.warningIcon??G),a(h,C)},ve=h=>{var C=c(),le=s(C);{var Ee=M=>{yo(M)};P(le,M=>{e.warningIcon!==null&&M(Ee)},!0)}a(h,C)};P(Ve,h=>{e.warningIcon?h(Qe):h(ve,!1)})}a(Ze,Ne)},st=Ze=>{var Ne=c(),Ve=s(Ne);{var Qe=h=>{var C=c(),le=s(C);O(le,()=>e.infoIcon??G),a(h,C)},ve=h=>{var C=c(),le=s(C);{var Ee=M=>{wo(M)};P(le,M=>{e.infoIcon!==null&&M(Ee)},!0)}a(h,C)};P(Ve,h=>{e.infoIcon?h(Qe):h(ve,!1)})}a(Ze,Ne)},L=Ze=>{var Ne=c(),Ve=s(Ne);{var Qe=h=>{var C=c(),le=s(C);O(le,()=>e.closeIcon??G),a(h,C)},ve=h=>{var C=c(),le=s(C);{var Ee=M=>{ko(M)};P(le,M=>{e.closeIcon!==null&&M(Ee)},!0)}a(h,C)};P(Ve,h=>{e.closeIcon?h(Qe):h(ve,!1)})}a(Ze,Ne)};let Z=S(()=>w()?.duration??E()),ie=S(()=>w()?.class??""),ue=S(()=>w()?.descriptionClass||""),ye=S(()=>w()?.style??""),Q=S(()=>w().classes||{}),Be=S(()=>w().unstyled??!1),tt=S(()=>w()?.cancelButtonStyle??""),lt=S(()=>w()?.actionButtonStyle??""),ct=S(()=>w()?.closeButtonAriaLabel??K());go(A,{get index(){return t(pe)},get toast(){return t(T)},get defaultRichColors(){return $()},get duration(){return t(Z)},get class(){return t(ie)},get descriptionClass(){return t(ue)},get invert(){return l()},get visibleToasts(){return N()},get closeButton(){return u()},get interacting(){return t(R)},get position(){return I},get style(){return t(ye)},get classes(){return t(Q)},get unstyled(){return t(Be)},get cancelButtonStyle(){return t(tt)},get actionButtonStyle(){return t(lt)},get closeButtonAriaLabel(){return t(ct)},get expandByDefault(){return n()},get expanded(){return t(x)},get loadingIcon(){return e.loadingIcon},successIcon:Xe,errorIcon:nt,warningIcon:qe,infoIcon:st,closeIcon:L,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),p(Ce),rt(Ce,A=>f(ce,A),()=>t(ce)),Le(()=>Ce.dir=Ce.dir),a(Y,Ce)}),a(v,j)};P(te,v=>{$e.toasts.length>0&&v(se)})}p(V),Le(()=>je(V,"aria-label",`${ge()??""} ${t(Se)??""}`)),a(i,V),U()}const Oo=768;class Eo extends qr{constructor(e=Oo){super(`max-width: ${e-1}px`)}}const Bo="sidebar:state",No=3600*24*7,Fo="16rem",Lo="18rem",Ho="3rem",zo="b";class Ro{props;#t=S(()=>this.props.open());get open(){return t(this.#t)}set open(e){f(this.#t,e)}#e=me(!1);get openMobile(){return t(this.#e)}set openMobile(e){f(this.#e,e,!0)}setOpen;#a;#r=S(()=>this.open?"expanded":"collapsed");get state(){return t(this.#r)}set state(e){f(this.#r,e)}constructor(e){this.setOpen=e.setOpen,this.#a=new Eo,this.props=e}get isMobile(){return this.#a.current}handleShortcutKeydown=e=>{e.key===zo&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),this.toggle())};setOpenMobile=e=>{this.openMobile=e};toggle=()=>this.#a.current?this.openMobile=!this.openMobile:this.setOpen(!this.open)}const Ta="scn-sidebar";function Ko(i){return xa(Symbol.for(Ta),new Ro(i))}function Ht(){return qt(Symbol.for(Ta))}var Vo=b("<div><!></div>");function Wo(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Vo();Je(r,n=>({"data-slot":"sidebar-content","data-sidebar":"content",class:n,...l}),[()=>Ge("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e.class)]);var d=y(r);O(d,()=>e.children??G),p(r),rt(r,n=>o(n),()=>o()),a(i,r),U()}var Uo=b("<div><!></div>");function Yo(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Uo();Je(r,n=>({"data-slot":"sidebar-footer","data-sidebar":"footer",class:n,...l}),[()=>Ge("flex flex-col gap-2 p-2",e.class)]);var d=y(r);O(d,()=>e.children??G),p(r),rt(r,n=>o(n),()=>o()),a(i,r),U()}var Go=b("<div><!></div>");function ma(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Go();Je(r,n=>({"data-slot":"sidebar-group-content","data-sidebar":"group-content",class:n,...l}),[()=>Ge("w-full text-sm",e.class)]);var d=y(r);O(d,()=>e.children??G),p(r),rt(r,n=>o(n),()=>o()),a(i,r),U()}var qo=b("<div><!></div>");function _a(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=qo();Je(r,n=>({"data-slot":"sidebar-group","data-sidebar":"group",class:n,...l}),[()=>Ge("relative flex w-full min-w-0 flex-col p-2",e.class)]);var d=y(r);O(d,()=>e.children??G),p(r),rt(r,n=>o(n),()=>o()),a(i,r),U()}var Xo=b("<div><!></div>");function Zo(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Xo();Je(r,n=>({"data-slot":"sidebar-header","data-sidebar":"header",class:n,...l}),[()=>Ge("flex flex-col gap-2 p-2",e.class)]);var d=y(r);O(d,()=>e.children??G),p(r),rt(r,n=>o(n),()=>o()),a(i,r),U()}var Qo=b("<main><!></main>");function Jo(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Qo();Je(r,n=>({"data-slot":"sidebar-inset",class:n,...l}),[()=>Ge("bg-background relative flex min-w-0 w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",e.class)]);var d=y(r);O(d,()=>e.children??G),p(r),rt(r,n=>o(n),()=>o()),a(i,r),U()}var $o=b("<div><!></div>");function en(i,e){const o=ea();W(e,!0);let l=_(e,"ref",15,null),r=_(e,"id",19,()=>ta(o)),d=ae(e,["$$slots","$$events","$$legacy","children","child","ref","id"]);const n=br.create({id:et(()=>r()),ref:et(()=>l(),E=>l(E))}),u=S(()=>Pt(d,n.props));var B=c(),D=s(B);{var J=E=>{var N=c(),w=s(N);O(w,()=>e.child,()=>({props:t(u)})),a(E,N)},$=E=>{var N=$o();Je(N,()=>({...t(u)}));var w=y(N);O(w,()=>e.children??G),p(N),a(E,N)};P(D,E=>{e.child?E(J):E($,!1)})}a(i,B),U()}function tn(i,e){W(e,!0);let o=_(e,"open",15,!1),l=_(e,"onOpenChange",3,wt),r=_(e,"onOpenChangeComplete",3,wt);sr.create({variant:et(()=>"dialog"),open:et(()=>o(),u=>{o(u),l()(u)}),onOpenChangeComplete:et(()=>r())});var d=c(),n=s(d);O(n,()=>e.children??G),a(i,d),U()}var an=b("<button><!></button>");function rn(i,e){const o=ea();W(e,!0);let l=_(e,"id",19,()=>ta(o)),r=_(e,"ref",15,null),d=_(e,"disabled",3,!1),n=ae(e,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const u=lr.create({variant:et(()=>"close"),id:et(()=>l()),ref:et(()=>r(),N=>r(N)),disabled:et(()=>!!d())}),B=S(()=>Pt(n,u.props));var D=c(),J=s(D);{var $=N=>{var w=c(),H=s(w);O(H,()=>e.child,()=>({props:t(B)})),a(N,w)},E=N=>{var w=an();Je(w,()=>({...t(B)}));var H=y(w);O(H,()=>e.children??G),p(w),a(N,w)};P(J,N=>{e.child?N($):N(E,!1)})}a(i,D),U()}var on=b("<!> <!>",1),nn=b("<!> <div><!></div>",1);function sn(i,e){const o=ea();W(e,!0);let l=_(e,"id",19,()=>ta(o)),r=_(e,"ref",15,null),d=_(e,"forceMount",3,!1),n=_(e,"onCloseAutoFocus",3,wt),u=_(e,"onOpenAutoFocus",3,wt),B=_(e,"onEscapeKeydown",3,wt),D=_(e,"onInteractOutside",3,wt),J=_(e,"trapFocus",3,!0),$=_(e,"preventScroll",3,!0),E=_(e,"restoreScrollDelay",3,null),N=ae(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const w=ir.create({id:et(()=>l()),ref:et(()=>r(),oe=>r(oe))}),H=S(()=>Pt(N,w.props));var Ae=c(),ge=s(Ae);{var K=oe=>{pr(oe,{get ref(){return w.opts.ref},loop:!0,get trapFocus(){return J()},get enabled(){return w.root.opts.open.current},get onOpenAutoFocus(){return u()},get onCloseAutoFocus(){return n()},focusScope:(ke,x)=>{let R=()=>x?.().props;yr(ke,we(()=>t(H),{get enabled(){return w.root.opts.open.current},get ref(){return w.opts.ref},onEscapeKeydown:q=>{B()(q),!q.defaultPrevented&&w.root.handleClose()},children:(q,ce)=>{xr(q,we(()=>t(H),{get ref(){return w.opts.ref},get enabled(){return w.root.opts.open.current},onInteractOutside:he=>{D()(he),!he.defaultPrevented&&w.root.handleClose()},children:(he,He)=>{wr(he,we(()=>t(H),{get ref(){return w.opts.ref},get enabled(){return w.root.opts.open.current},children:(Se,re)=>{var fe=c(),Ie=s(fe);{var Me=ee=>{var ne=on(),X=s(ne);{var V=se=>{ua(se,{get preventScroll(){return $()},get restoreScrollDelay(){return E()}})};P(X,se=>{w.root.opts.open.current&&se(V)})}var te=g(X,2);{let se=S(()=>({props:Pt(t(H),R()),...w.snippetProps}));O(te,()=>e.child,()=>t(se))}a(ee,ne)},Pe=ee=>{var ne=nn(),X=s(ne);ua(X,{get preventScroll(){return $()}});var V=g(X,2);Je(V,se=>({...se}),[()=>Pt(t(H),R())]);var te=y(V);O(te,()=>e.children??G),p(V),a(ee,ne)};P(Ie,ee=>{e.child?ee(Me):ee(Pe,!1)})}a(Se,fe)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};P(ge,oe=>{(w.shouldRender||d())&&oe(K)})}a(i,Ae),U()}function ln(i,e){W(e,!0);let o=_(e,"delayDuration",3,700),l=_(e,"disableCloseOnTriggerClick",3,!1),r=_(e,"disableHoverableContent",3,!1),d=_(e,"disabled",3,!1),n=_(e,"ignoreNonKeyboardFocus",3,!1),u=_(e,"skipDelayDuration",3,300);ar.create({delayDuration:et(()=>o()),disableCloseOnTriggerClick:et(()=>l()),disableHoverableContent:et(()=>r()),disabled:et(()=>d()),ignoreNonKeyboardFocus:et(()=>n()),skipDelayDuration:et(()=>u())});var B=c(),D=s(B);O(D,()=>e.children??G),a(i,B),U()}function Da(i,e){let o=ae(e,["$$slots","$$events","$$legacy"]);var l=c(),r=s(l);m(r,()=>ln,(d,n)=>{n(d,we(()=>o))}),a(i,l)}const dn=ka({base:"peer/menu-button ring-sidebar-ring data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10 active:bg-sidebar-accent data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:data-[active=false]:hover:bg-gray-100 dark:data-[state=open]:data-[active=false]:hover:bg-white/10 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",variants:{variant:{default:"data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10",outline:"bg-background data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10 shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-border)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});var cn=b("<button><!></button>"),un=b("<!> <!>",1);function Gt(i,e){W(e,!0);const o=(w,H)=>{let Ae=()=>H?.().props;const ge=S(()=>Pt(t(D),Ae()));var K=c(),oe=s(K);{var _e=x=>{var R=c(),q=s(R);O(q,()=>e.child,()=>({props:t(ge)})),a(x,R)},ke=x=>{var R=cn();Je(R,()=>({...t(ge)}));var q=y(R);O(q,()=>e.children??G),p(R),rt(R,ce=>l(ce),()=>l()),a(x,R)};P(oe,x=>{e.child?x(_e):x(ke,!1)})}a(w,K)};let l=_(e,"ref",15,null),r=_(e,"variant",3,"default"),d=_(e,"size",3,"default"),n=_(e,"isActive",3,!1),u=ae(e,["$$slots","$$events","$$legacy","ref","class","children","child","variant","size","isActive","tooltipContent","tooltipContentProps"]);const B=Ht(),D=S(()=>({class:Ge(dn({variant:r(),size:d()}),e.class),"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":d(),"data-active":n(),...u}));var J=c(),$=s(J);{var E=w=>{o(w,()=>({}))},N=w=>{var H=c(),Ae=s(H);m(Ae,()=>nr,(ge,K)=>{K(ge,{children:(oe,_e)=>{var ke=un(),x=s(ke);{const q=(ce,he)=>{let He=()=>he?.().props;o(ce,()=>({props:He()}))};m(x,()=>rr,(ce,he)=>{he(ce,{child:q,$$slots:{child:!0}})})}var R=g(x,2);{let q=S(()=>B.state!=="collapsed"||B.isMobile);m(R,()=>or,(ce,he)=>{he(ce,we({side:"right",align:"center",get hidden(){return t(q)}},()=>e.tooltipContentProps,{children:(He,Se)=>{var re=c(),fe=s(re);{var Ie=Pe=>{var ee=De();Le(()=>at(ee,e.tooltipContent)),a(Pe,ee)},Me=Pe=>{var ee=c(),ne=s(ee);{var X=V=>{var te=c(),se=s(te);O(se,()=>e.tooltipContent),a(V,te)};P(ne,V=>{e.tooltipContent&&V(X)},!0)}a(Pe,ee)};P(fe,Pe=>{typeof e.tooltipContent=="string"?Pe(Ie):Pe(Me,!1)})}a(He,re)},$$slots:{default:!0}}))})}a(oe,ke)},$$slots:{default:!0}})}),a(w,H)};P($,w=>{e.tooltipContent?w(N,!1):w(E)})}a(i,J),U()}var fn=b("<li><!></li>");function ba(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=fn();Je(r,n=>({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",class:n,...l}),[()=>Ge("group/menu-item relative",e.class)]);var d=y(r);O(d,()=>e.children??G),p(r),rt(r,n=>o(n),()=>o()),a(i,r),U()}var vn=b("<ul><!></ul>");function pa(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=vn();Je(r,n=>({"data-slot":"sidebar-menu","data-sidebar":"menu",class:n,...l}),[()=>Ge("flex w-full min-w-0 flex-col gap-1",e.class)]);var d=y(r);O(d,()=>e.children??G),p(r),rt(r,n=>o(n),()=>o()),a(i,r),U()}var gn=b("<div><!></div>");function hn(i,e){W(e,!0);let o=_(e,"ref",15,null),l=_(e,"open",15,!0),r=_(e,"onOpenChange",3,()=>{}),d=ae(e,["$$slots","$$events","$$legacy","ref","open","onOpenChange","class","style","children"]);const n=Ko({open:()=>l(),setOpen:D=>{l(D),r()(D),document.cookie=`${Bo}=${l()}; path=/; max-age=${No}`}});var u=c();Lt("keydown",Ua,function(...D){n.handleShortcutKeydown?.apply(this,D)});var B=s(u);m(B,()=>Da,(D,J)=>{J(D,{delayDuration:0,children:($,E)=>{var N=gn();Je(N,H=>({"data-slot":"sidebar-wrapper",style:`--sidebar-width: ${Fo}; --sidebar-width-icon: ${Ho}; ${e.style??""}`,class:H,...d}),[()=>Ge("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",e.class)]);var w=y(N);O(w,()=>e.children??G),p(N),rt(N,H=>o(H),()=>o()),a($,N)},$$slots:{default:!0}})}),a(i,u),U()}function mn(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}]];ot(i,we({name:"panel-left"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}var _n=b('<!> <span class="sr-only">Toggle Sidebar</span>',1);function bn(i,e){W(e,!0),_(e,"ref",11,null);let o=ae(e,["$$slots","$$events","$$legacy","ref","class","onclick"]);const l=Ht();{let r=S(()=>Ge("size-7",e.class));dt(i,we({"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",get class(){return t(r)},type:"button",onclick:d=>{e.onclick?.(d),l.toggle()}},()=>o,{children:(d,n)=>{var u=_n(),B=s(u);mn(B,{}),xe(2),a(d,u)},$$slots:{default:!0}}))}U()}function aa(i,e){W(e,!0);let o=_(e,"open",15,!1),l=ae(e,["$$slots","$$events","$$legacy","open"]);var r=c(),d=s(r);m(d,()=>tn,(n,u)=>{u(n,we(()=>l,{get open(){return o()},set open(B){o(B)}}))}),a(i,r),U()}function pn(i,e){let o=ae(e,["$$slots","$$events","$$legacy"]);var l=c(),r=s(l);m(r,()=>Pr,(d,n)=>{n(d,we(()=>o))}),a(i,l)}function yn(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class"]);var r=c(),d=s(r);{let n=S(()=>Ge("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e.class));m(d,()=>dr,(u,B)=>{B(u,we({"data-slot":"sheet-overlay",get class(){return t(n)}},()=>l,{get ref(){return o()},set ref(D){o(D)}}))})}a(i,r),U()}const xn=ka({base:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",variants:{side:{top:"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",bottom:"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",left:"data-[state=closed]:slide-out-to-start data-[state=open]:slide-in-from-start inset-y-0 start-0 h-full w-3/4 border-e sm:max-w-sm",right:"data-[state=closed]:slide-out-to-end data-[state=open]:slide-in-from-end inset-y-0 end-0 h-full w-3/4 border-s sm:max-w-sm"}},defaultVariants:{side:"right"}});var wn=b('<!> <span class="sr-only">Close</span>',1),Pn=b("<!> <!>",1),kn=b("<!> <!>",1);function ra(i,e){W(e,!0);let o=_(e,"ref",15,null),l=_(e,"side",3,"right"),r=ae(e,["$$slots","$$events","$$legacy","ref","class","side","portalProps","children"]);pn(i,we(()=>e.portalProps,{children:(d,n)=>{var u=kn(),B=s(u);yn(B,{});var D=g(B,2);{let J=S(()=>Ge(xn({side:l()}),e.class));m(D,()=>sn,($,E)=>{E($,we({"data-slot":"sheet-content",get class(){return t(J)}},()=>r,{get ref(){return o()},set ref(N){o(N)},children:(N,w)=>{var H=Pn(),Ae=s(H);O(Ae,()=>e.children??G);var ge=g(Ae,2);m(ge,()=>rn,(K,oe)=>{oe(K,{class:"ring-offset-background focus-visible:ring-ring absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none",children:(_e,ke)=>{var x=wn(),R=s(x);kr(R,{class:"size-4"}),xe(2),a(_e,x)},$$slots:{default:!0}})}),a(N,H)},$$slots:{default:!0}}))})}a(d,u)},$$slots:{default:!0}})),U()}var Mn=b("<div><!></div>");function oa(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class","children"]);var r=Mn();Je(r,n=>({"data-slot":"sheet-header",class:n,...l}),[()=>Ge("flex flex-col gap-1.5 p-4",e.class)]);var d=y(r);O(d,()=>e.children??G),p(r),rt(r,n=>o(n),()=>o()),a(i,r),U()}function na(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class"]);var r=c(),d=s(r);{let n=S(()=>Ge("text-foreground font-semibold",e.class));m(d,()=>cr,(u,B)=>{B(u,we({"data-slot":"sheet-title",get class(){return t(n)}},()=>l,{get ref(){return o()},set ref(D){o(D)}}))})}a(i,r),U()}function sa(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class"]);var r=c(),d=s(r);{let n=S(()=>Ge("text-muted-foreground text-sm",e.class));m(d,()=>ur,(u,B)=>{B(u,we({"data-slot":"sheet-description",get class(){return t(n)}},()=>l,{get ref(){return o()},set ref(D){o(D)}}))})}a(i,r),U()}var Cn=b("<div><!></div>"),Sn=b("<!> <!>",1),In=b('<!> <div class="flex h-full w-full flex-col"><!></div>',1),Tn=b('<div class="text-sidebar-foreground group peer hidden md:block" data-slot="sidebar"><div data-slot="sidebar-gap"></div> <div><div data-sidebar="sidebar" data-slot="sidebar-inner" class="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"><!></div></div></div>');function Dn(i,e){W(e,!0);let o=_(e,"ref",15,null),l=_(e,"side",3,"left"),r=_(e,"variant",3,"sidebar"),d=_(e,"collapsible",3,"offcanvas"),n=ae(e,["$$slots","$$events","$$legacy","ref","side","variant","collapsible","class","children"]);const u=Ht();var B=c(),D=s(B);{var J=E=>{var N=Cn();Je(N,H=>({class:H,...n}),[()=>Ge("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",e.class)]);var w=y(N);O(w,()=>e.children??G),p(N),rt(N,H=>o(H),()=>o()),a(E,N)},$=E=>{var N=c(),w=s(N);{var H=ge=>{var K=c(),oe=s(K),_e=()=>u.openMobile,ke=x=>u.setOpenMobile(x);m(oe,()=>aa,(x,R)=>{R(x,we({get open(){return _e()},set open(q){ke(q)}},()=>n,{children:(q,ce)=>{var he=c(),He=s(he);m(He,()=>ra,(Se,re)=>{re(Se,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",class:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",get style(){return`--sidebar-width: ${Lo};`},get side(){return l()},children:(fe,Ie)=>{var Me=In(),Pe=s(Me);m(Pe,()=>oa,(X,V)=>{V(X,{class:"sr-only",children:(te,se)=>{var v=Sn(),j=s(v);m(j,()=>na,(Y,I)=>{I(Y,{children:(k,be)=>{xe();var z=De("Sidebar");a(k,z)},$$slots:{default:!0}})});var F=g(j,2);m(F,()=>sa,(Y,I)=>{I(Y,{children:(k,be)=>{xe();var z=De("Displays the mobile sidebar.");a(k,z)},$$slots:{default:!0}})}),a(te,v)},$$slots:{default:!0}})});var ee=g(Pe,2),ne=y(ee);O(ne,()=>e.children??G),p(ee),a(fe,Me)},$$slots:{default:!0}})}),a(q,he)},$$slots:{default:!0}}))}),a(ge,K)},Ae=ge=>{var K=Tn(),oe=y(K),_e=g(oe,2);Je(_e,R=>({"data-slot":"sidebar-container",class:R,...n}),[()=>Ge("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",l()==="left"?"start-0 group-data-[collapsible=offcanvas]:start-[calc(var(--sidebar-width)*-1)]":"end-0 group-data-[collapsible=offcanvas]:end-[calc(var(--sidebar-width)*-1)]",r()==="floating"||r()==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s",e.class)]);var ke=y(_e),x=y(ke);O(x,()=>e.children??G),p(ke),p(_e),p(K),rt(K,R=>o(R),()=>o()),Le(R=>{je(K,"data-state",u.state),je(K,"data-collapsible",u.state==="collapsed"?d():""),je(K,"data-variant",r()),je(K,"data-side",l()),gt(oe,1,R)},[()=>vt(Ge("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",r()==="floating"||r()==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)"))]),a(ge,K)};P(w,ge=>{u.isMobile?ge(H):ge(Ae,!1)},!0)}a(E,N)};P(D,E=>{d()==="none"?E(J):E($,!1)})}a(i,B),U()}function jn(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]];ot(i,we({name:"bell"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function An(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M12 7v14"}],["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"}]];ot(i,we({name:"book-open"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function On(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M12 20v-9"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z"}],["path",{d:"M14.12 3.88 16 2"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97"}],["path",{d:"M22 13h-4"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97"}],["path",{d:"M6 13H2"}],["path",{d:"m8 2 1.88 1.88"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13"}]];ot(i,we({name:"bug"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function En(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M12 16v5"}],["path",{d:"M16 14v7"}],["path",{d:"M20 10v11"}],["path",{d:"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15"}],["path",{d:"M4 18v3"}],["path",{d:"M8 14v7"}]];ot(i,we({name:"chart-no-axes-combined"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function Bn(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["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"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]];ot(i,we({name:"file-text"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function Nn(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M7 3v18"}],["path",{d:"M3 7.5h4"}],["path",{d:"M3 12h18"}],["path",{d:"M3 16.5h4"}],["path",{d:"M17 3v18"}],["path",{d:"M17 7.5h4"}],["path",{d:"M17 16.5h4"}]];ot(i,we({name:"film"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function Fn(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];ot(i,we({name:"gauge"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function Ln(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1"}]];ot(i,we({name:"layout-dashboard"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function Hn(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12"}]];ot(i,we({name:"link-2"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function zn(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M16 5H3"}],["path",{d:"M16 12H3"}],["path",{d:"M9 19H3"}],["path",{d:"m16 16-3 3 3 3"}],["path",{d:"M21 5v12a2 2 0 0 1-2 2h-6"}]];ot(i,we({name:"list-end"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function Rn(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]];ot(i,we({name:"log-out"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function Kn(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["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"}]];ot(i,we({name:"moon"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function Vn(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["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"}],["circle",{cx:"12",cy:"12",r:"3"}]];ot(i,we({name:"settings"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function Wn(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];ot(i,we({name:"sun"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}function Un(i,e){W(e,!0);let o=ae(e,["$$slots","$$events","$$legacy"]);const l=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2"}]];ot(i,we({name:"workflow"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);O(u,()=>e.children??G),a(r,n)},$$slots:{default:!0}})),U()}var Yn=b('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-9 w-auto"/>'),Gn=b('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-9 w-auto"/>'),qn=b("<!> <span> </span>",1),Xn=b("<!> <span> </span>",1),Zn=b("<!> <span> </span>",1),Qn=b('<div class="flex-1"></div> <!>',1),Jn=b("<!> <!>",1),$n=b('<span class="text-xs text-muted-foreground"></span>'),es=b("<!> <!> <!>",1);function ts(i,e){W(e,!0);const o=new Set(["Dashboard","Logs","Endpoints","Tasks","Metrics","AI Traces"]),l=new Set(["Metrics"]),r=new Set(["Sessions"]),d=[{Icon:Ln,href:"/",title:"Dashboard",stickyParams:[]},{Icon:On,href:"/issues",title:"Issues",stickyParams:["preset","from","to"]},{Icon:Bn,href:"/logs",title:"Logs",stickyParams:["preset","from","to"]},{Icon:Fn,href:"/endpoints",title:"Endpoints",stickyParams:["preset","from","to"]},{Icon:zn,href:"/tasks",title:"Tasks",stickyParams:["preset","from","to"]},{Icon:Nn,href:"/sessions",title:"Sessions",stickyParams:["preset","from","to"]},{Icon:Un,href:"/ai-traces",title:"AI Traces",stickyParams:["preset","from","to"]},{Icon:En,href:"/metrics",title:"Metrics",stickyParams:["preset","from","to"]},{Icon:jn,href:"/notifications",title:"Alerts",stickyParams:["preset","from","to"]},{Icon:Hn,href:"/connection",title:"Connection",stickyParams:[]}],n=S(()=>Ye.currentProject&&qa(Ye.currentProject.framework)?d.filter(E=>!o.has(E.title)):Ye.currentProject&&Xa(Ye.currentProject.framework)?d.filter(E=>!l.has(E.title)&&!r.has(E.title)):d.filter(E=>!r.has(E.title))),u=[{Icon:An,href:"https://docs.tracewayapp.com",title:"Docs",stickyParams:[],external:!0},{Icon:Vn,href:"/settings",title:"Settings",stickyParams:[],adminOnly:!0}],B=S(()=>u.filter(E=>!E.adminOnly||Ye.canManageCurrentProject)),D=Ht();var J=c(),$=s(J);m($,()=>Dn,(E,N)=>{N(E,{children:(w,H)=>{var Ae=es(),ge=s(Ae);m(ge,()=>Zo,(_e,ke)=>{ke(_e,{class:"flex items-start p-4",children:(x,R)=>{var q=c(),ce=s(q);{var he=Se=>{var re=Yn();a(Se,re)},He=Se=>{var re=Gn();a(Se,re)};P(ce,Se=>{Zt.isDark?Se(he):Se(He,!1)})}a(x,q)},$$slots:{default:!0}})});var K=g(ge,2);m(K,()=>Wo,(_e,ke)=>{ke(_e,{children:(x,R)=>{var q=Jn(),ce=s(q);m(ce,()=>_a,(Se,re)=>{re(Se,{class:"p-4 pt-0 pb-0",children:(fe,Ie)=>{var Me=c(),Pe=s(Me);m(Pe,()=>ma,(ee,ne)=>{ne(ee,{children:(X,V)=>{var te=c(),se=s(te);m(se,()=>pa,(v,j)=>{j(v,{children:(F,Y)=>{var I=c(),k=s(I);kt(k,17,()=>t(n),Xt,(be,z)=>{var Te=c(),Ce=s(Te);m(Ce,()=>ba,(A,T)=>{T(A,{children:(pe,Oe)=>{var Xe=c(),nt=s(Xe);{let qe=S(()=>it.url.pathname===t(z).href||it.url.pathname.startsWith(t(z).href+"/"));m(nt,()=>Gt,(st,L)=>{L(st,{get isActive(){return t(qe)},onclick:Z=>{D.setOpenMobile(!1),fa(t(z).href,...t(z).stickyParams)(Z)},children:(Z,ie)=>{var ue=qn(),ye=s(ue);m(ye,()=>t(z).Icon,(tt,lt)=>{lt(tt,{})});var Q=g(ye,2),Be=y(Q,!0);p(Q),Le(()=>at(Be,t(z).title)),a(Z,ue)},$$slots:{default:!0}})})}a(pe,Xe)},$$slots:{default:!0}})}),a(be,Te)}),a(F,I)},$$slots:{default:!0}})}),a(X,te)},$$slots:{default:!0}})}),a(fe,Me)},$$slots:{default:!0}})});var he=g(ce,2);{var He=Se=>{var re=Qn(),fe=g(s(re),2);m(fe,()=>_a,(Ie,Me)=>{Me(Ie,{class:"p-4 pt-0",children:(Pe,ee)=>{var ne=c(),X=s(ne);m(X,()=>ma,(V,te)=>{te(V,{children:(se,v)=>{var j=c(),F=s(j);m(F,()=>pa,(Y,I)=>{I(Y,{children:(k,be)=>{var z=c(),Te=s(z);kt(Te,17,()=>t(B),Xt,(Ce,A)=>{var T=c(),pe=s(T);m(pe,()=>ba,(Oe,Xe)=>{Xe(Oe,{children:(nt,qe)=>{var st=c(),L=s(st);{var Z=ue=>{var ye=c(),Q=s(ye);m(Q,()=>Gt,(Be,tt)=>{tt(Be,{onclick:()=>{D.setOpenMobile(!1),window.open(t(A).href,"_blank","noopener,noreferrer")},children:(lt,ct)=>{var Ze=Xn(),Ne=s(Ze);m(Ne,()=>t(A).Icon,(ve,h)=>{h(ve,{})});var Ve=g(Ne,2),Qe=y(Ve,!0);p(Ve),Le(()=>at(Qe,t(A).title)),a(lt,Ze)},$$slots:{default:!0}})}),a(ue,ye)},ie=ue=>{var ye=c(),Q=s(ye);{let Be=S(()=>it.url.pathname===t(A).href||it.url.pathname.startsWith(t(A).href+"/"));m(Q,()=>Gt,(tt,lt)=>{lt(tt,{get isActive(){return t(Be)},onclick:ct=>{D.setOpenMobile(!1),fa(t(A).href,...t(A).stickyParams)(ct)},children:(ct,Ze)=>{var Ne=Zn(),Ve=s(Ne);m(Ve,()=>t(A).Icon,(h,C)=>{C(h,{})});var Qe=g(Ve,2),ve=y(Qe,!0);p(Qe),Le(()=>at(ve,t(A).title)),a(ct,Ne)},$$slots:{default:!0}})})}a(ue,ye)};P(L,ue=>{t(A).external?ue(Z):ue(ie,!1)})}a(nt,st)},$$slots:{default:!0}})}),a(Ce,T)}),a(k,z)},$$slots:{default:!0}})}),a(se,j)},$$slots:{default:!0}})}),a(Pe,ne)},$$slots:{default:!0}})}),a(Se,re)};P(he,Se=>{t(B).length&&Se(He)})}a(x,q)},$$slots:{default:!0}})});var oe=g(K,2);m(oe,()=>Yo,(_e,ke)=>{ke(_e,{class:"flex flex-row justify-center border-t border-border py-1 italic",children:(x,R)=>{var q=$n();q.textContent="Traceway - v1.7.22",a(x,q)},$$slots:{default:!0}})}),a(w,Ae)},$$slots:{default:!0}})}),a(i,J),U()}function as(i,e){const o=Fa(e,["children","$$slots","$$events","$$legacy"]);const l=[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]];Mr(i,we({name:"external-link"},()=>o,{get iconNode(){return l},children:(r,d)=>{var n=c(),u=s(n);Cr(u,e,"default",{},null),a(r,n)},$$slots:{default:!0}}))}var rs=b("<!> <!>",1),os=b("<!> Go to Connection",1),ns=b('<div class="px-6 py-6 space-y-6"><div class="space-y-2"><!> <div class="text-lg font-medium"> </div></div> <div class="space-y-2"><!> <div class="flex items-center gap-2 text-sm text-muted-foreground"><!> <span> </span></div></div> <div class="space-y-2"><!> <div class="flex gap-2"><!> <!></div> <p class="text-sm text-muted-foreground">This token will only be shown once. Make sure to save it securely.</p></div></div> <div class="flex justify-end gap-2 px-6 pb-6"><!> <!></div>',1),ss=b('<div class="rounded-md bg-destructive/10 border border-destructive/20 p-3"><p class="text-sm text-destructive"> </p></div>'),ls=b('<form class="px-6 py-6 space-y-5"><div class="space-y-2"><!> <!> <p class="text-xs text-muted-foreground">A unique name for your project (letters, numbers, spaces, hyphens)</p></div> <div class="space-y-2"><!> <!> <p class="text-xs text-muted-foreground">Select your framework for tailored integration code</p></div> <!> <div class="flex justify-end gap-2 pt-2"><!> <!></div></form>'),is=b("<!> <!>",1);function ds(i,e){W(e,!0);let o=me(""),l=me("gin"),r=me(!1),d=me(""),n=me(null),u=me(!1);async function B(w){if(w.preventDefault(),!t(o).trim()){f(d,"Project name is required");return}f(r,!0),f(d,"");try{const H=await Ye.createProject(t(o).trim(),t(l));f(n,H,!0)}catch(H){f(d,H instanceof Error?H.message:"Failed to create project",!0)}finally{f(r,!1)}}async function D(){t(n)?.token&&(await navigator.clipboard.writeText(t(n).token),f(u,!0),setTimeout(()=>f(u,!1),2e3))}function J(){f(o,""),f(l,"gin"),f(d,""),f(n,null),e.onOpenChange(!1)}function $(){t(n)&&Ye.selectProject(t(n).id),J(),e.onProjectCreated()}var E=c(),N=s(E);m(N,()=>aa,(w,H)=>{H(w,{get open(){return e.open},onOpenChange:J,children:(Ae,ge)=>{var K=c(),oe=s(K);m(oe,()=>ra,(_e,ke)=>{ke(_e,{side:"right",class:"w-[400px] sm:w-[540px]",children:(x,R)=>{var q=is(),ce=s(q);m(ce,()=>oa,(re,fe)=>{fe(re,{children:(Ie,Me)=>{var Pe=rs(),ee=s(Pe);m(ee,()=>na,(X,V)=>{V(X,{children:(te,se)=>{var v=c(),j=s(v);{var F=I=>{var k=De("Project Created!");a(I,k)},Y=I=>{var k=De("Create New Project");a(I,k)};P(j,I=>{t(n)?I(F):I(Y,!1)})}a(te,v)},$$slots:{default:!0}})});var ne=g(ee,2);m(ne,()=>sa,(X,V)=>{V(X,{children:(te,se)=>{var v=c(),j=s(v);{var F=I=>{var k=De("Your project has been created. Save the token below - you'll need it to connect your application.");a(I,k)},Y=I=>{var k=De("Add a new project to start tracking errors and metrics.");a(I,k)};P(j,I=>{t(n)?I(F):I(Y,!1)})}a(te,v)},$$slots:{default:!0}})}),a(Ie,Pe)},$$slots:{default:!0}})});var he=g(ce,2);{var He=re=>{var fe=ns(),Ie=s(fe),Me=y(Ie),Pe=y(Me);mt(Pe,{children:(A,T)=>{xe();var pe=De("Project Name");a(A,pe)},$$slots:{default:!0}});var ee=g(Pe,2),ne=y(ee,!0);p(ee),p(Me);var X=g(Me,2),V=y(X);mt(V,{children:(A,T)=>{xe();var pe=De("Framework");a(A,pe)},$$slots:{default:!0}});var te=g(V,2),se=y(te);Qt(se,{get framework(){return t(l)}});var v=g(se,2),j=y(v,!0);p(v),p(te),p(X);var F=g(X,2),Y=y(F);mt(Y,{children:(A,T)=>{xe();var pe=De("Project Token");a(A,pe)},$$slots:{default:!0}});var I=g(Y,2),k=y(I);Ft(k,{type:"text",get value(){return t(n).token},readonly:!0,class:"font-mono text-sm"});var be=g(k,2);dt(be,{variant:"outline",size:"icon",onclick:D,children:(A,T)=>{var pe=c(),Oe=s(pe);{var Xe=qe=>{Jt(qe,{class:"h-4 w-4 text-green-500"})},nt=qe=>{Ca(qe,{class:"h-4 w-4"})};P(Oe,qe=>{t(u)?qe(Xe):qe(nt,!1)})}a(A,pe)},$$slots:{default:!0}}),p(I),xe(2),p(F),p(Ie);var z=g(Ie,2),Te=y(z);dt(Te,{variant:"outline",onclick:J,children:(A,T)=>{xe();var pe=De("Close");a(A,pe)},$$slots:{default:!0}});var Ce=g(Te,2);dt(Ce,{onclick:$,children:(A,T)=>{var pe=os(),Oe=s(pe);as(Oe,{class:"mr-2 h-4 w-4"}),xe(),a(A,pe)},$$slots:{default:!0}}),p(z),Le(A=>{at(ne,t(n).name),at(j,A)},[()=>Za(t(l))]),a(re,fe)},Se=re=>{var fe=ls(),Ie=y(fe),Me=y(Ie);mt(Me,{for:"project-name",children:(F,Y)=>{xe();var I=De("Project Name");a(F,I)},$$slots:{default:!0}});var Pe=g(Me,2);Ft(Pe,{id:"project-name",type:"text",placeholder:"My Application",get disabled(){return t(r)},get value(){return t(o)},set value(F){f(o,F,!0)}}),xe(2),p(Ie);var ee=g(Ie,2),ne=y(ee);mt(ne,{for:"framework",children:(F,Y)=>{xe();var I=De("Framework");a(F,I)},$$slots:{default:!0}});var X=g(ne,2);Ma(X,{get disabled(){return t(r)},get value(){return t(l)},set value(F){f(l,F,!0)}}),xe(2),p(ee);var V=g(ee,2);{var te=F=>{var Y=ss(),I=y(Y),k=y(I,!0);p(I),p(Y),Le(()=>at(k,t(d))),a(F,Y)};P(V,F=>{t(d)&&F(te)})}var se=g(V,2),v=y(se);dt(v,{type:"button",variant:"outline",onclick:J,get disabled(){return t(r)},children:(F,Y)=>{xe();var I=De("Cancel");a(F,I)},$$slots:{default:!0}});var j=g(v,2);{let F=S(()=>t(r)||!t(o).trim());dt(j,{type:"submit",get disabled(){return t(F)},children:(Y,I)=>{var k=c(),be=s(k);{var z=Ce=>{var A=De("Creating...");a(Ce,A)},Te=Ce=>{var A=De("Create Project");a(Ce,A)};P(be,Ce=>{t(r)?Ce(z):Ce(Te,!1)})}a(Y,k)},$$slots:{default:!0}})}p(se),p(fe),Lt("submit",fe,B),a(re,fe)};P(he,re=>{t(n)?re(He):re(Se,!1)})}a(x,q)},$$slots:{default:!0}})}),a(Ae,K)},$$slots:{default:!0}})}),a(i,E),U()}var cs=b("<!> <!>",1),us=b('<div class="rounded-md bg-destructive/10 border border-destructive/20 p-3"><p class="text-sm text-destructive"> </p></div>'),fs=b("<!> Update Project",1),vs=b("<!> Delete Project",1),gs=b('<!> <form class="px-6 py-6 space-y-5"><div class="space-y-2"><!> <!> <p class="text-xs text-muted-foreground">A unique name for your project (letters, numbers, spaces, hyphens)</p></div> <div class="space-y-2"><!> <!> <p class="text-xs text-muted-foreground">Select your framework for tailored integration code</p></div> <!> <div class="flex justify-end gap-2 pt-2"><!> <!></div></form> <div class="px-6 pb-6"><div class="border-t pt-6"><p class="text-sm text-muted-foreground mb-3">Danger zone</p> <!></div></div>',1),hs=b("<!> <!>",1),ms=b('Enter the project name <span class="font-semibold text-foreground"> </span><button type="button" class="inline-flex items-center align-middle ml-1 rounded p-0.5 text-muted-foreground hover:bg-accent hover:text-foreground" title="Copy project name" aria-label="Copy project name"><!></button> to continue:',1),_s=b('<p class="text-xs text-destructive flex items-center gap-1"><!> The project name does not match</p>'),bs=b("<!> <!>",1),ps=b('<!> <div class="rounded-md bg-destructive/10 border border-destructive/30 px-3 py-2"><p class="text-sm"><span class="font-semibold text-destructive">Warning:</span> <span class="text-destructive/90">This action is not reversible. Please be certain.</span></p></div> <div class="space-y-2"><!> <!> <!></div> <!>',1),ys=b("<!> <!>",1);function xs(i,e){W(e,!0);let o=me(""),l=me("gin"),r=me(!1),d=me(""),n=me(!1),u=me(!1),B=me(""),D=me(!1);ut(()=>{e.open&&e.project&&(f(o,e.project.name,!0),f(l,e.project.framework,!0),f(d,""))}),ut(()=>{t(n)||(f(B,""),f(D,!1))});async function J(){e.project&&(await navigator.clipboard.writeText(e.project.name),f(D,!0),setTimeout(()=>f(D,!1),2e3))}let $=S(()=>!!e.project&&t(B)===e.project.name);async function E(K){if(K.preventDefault(),!t(o).trim()){f(d,"Project name is required");return}if(e.project){f(r,!0),f(d,"");try{await Ye.updateProject(e.project.id,t(o).trim(),t(l)),Bt.success("Successfully updated the project",{position:"top-center"}),e.onOpenChange(!1)}catch(oe){f(d,oe instanceof Error?oe.message:"Failed to update project",!0)}finally{f(r,!1)}}}async function N(){if(!(!e.project||!t($))){f(u,!0);try{await Ye.deleteProject(e.project.id,e.project.name),Bt.success("Successfully deleted the project",{position:"top-center"}),f(n,!1),e.onOpenChange(!1),Et("/")}catch(K){Bt.error(K instanceof Error?K.message:"Failed to delete project",{position:"top-center"})}finally{f(u,!1)}}}function w(){f(d,""),f(n,!1),e.onOpenChange(!1)}var H=ys(),Ae=s(H);m(Ae,()=>aa,(K,oe)=>{oe(K,{get open(){return e.open},onOpenChange:w,children:(_e,ke)=>{var x=c(),R=s(x);m(R,()=>ra,(q,ce)=>{ce(q,{side:"right",class:"w-[400px] sm:w-[540px]",children:(he,He)=>{var Se=gs(),re=s(Se);m(re,()=>oa,(k,be)=>{be(k,{children:(z,Te)=>{var Ce=cs(),A=s(Ce);m(A,()=>na,(pe,Oe)=>{Oe(pe,{children:(Xe,nt)=>{xe();var qe=De("Edit Project");a(Xe,qe)},$$slots:{default:!0}})});var T=g(A,2);m(T,()=>sa,(pe,Oe)=>{Oe(pe,{children:(Xe,nt)=>{xe();var qe=De("Update your project name or framework.");a(Xe,qe)},$$slots:{default:!0}})}),a(z,Ce)},$$slots:{default:!0}})});var fe=g(re,2),Ie=y(fe),Me=y(Ie);mt(Me,{for:"edit-project-name",children:(k,be)=>{xe();var z=De("Project Name");a(k,z)},$$slots:{default:!0}});var Pe=g(Me,2);Ft(Pe,{id:"edit-project-name",type:"text",placeholder:"My Application",get disabled(){return t(r)},get value(){return t(o)},set value(k){f(o,k,!0)}}),xe(2),p(Ie);var ee=g(Ie,2),ne=y(ee);mt(ne,{for:"edit-framework",children:(k,be)=>{xe();var z=De("Framework");a(k,z)},$$slots:{default:!0}});var X=g(ne,2);Ma(X,{get disabled(){return t(r)},get value(){return t(l)},set value(k){f(l,k,!0)}}),xe(2),p(ee);var V=g(ee,2);{var te=k=>{var be=us(),z=y(be),Te=y(z,!0);p(z),p(be),Le(()=>at(Te,t(d))),a(k,be)};P(V,k=>{t(d)&&k(te)})}var se=g(V,2),v=y(se);dt(v,{type:"button",variant:"outline",onclick:w,get disabled(){return t(r)},children:(k,be)=>{xe();var z=De("Cancel");a(k,z)},$$slots:{default:!0}});var j=g(v,2);dt(j,{type:"submit",get disabled(){return t(r)},children:(k,be)=>{var z=c(),Te=s(z);{var Ce=T=>{var pe=De("Updating...");a(T,pe)},A=T=>{var pe=fs(),Oe=s(pe);Jt(Oe,{class:"mr-2 h-4 w-4"}),xe(),a(T,pe)};P(Te,T=>{t(r)?T(Ce):T(A,!1)})}a(k,z)},$$slots:{default:!0}}),p(se),p(fe);var F=g(fe,2),Y=y(F),I=g(y(Y),2);dt(I,{type:"button",variant:"destructiveOutline",onclick:()=>f(n,!0),children:(k,be)=>{var z=vs(),Te=s(z);Sr(Te,{class:"mr-2 h-4 w-4"}),xe(),a(k,z)},$$slots:{default:!0}}),p(Y),p(F),Lt("submit",fe,E),a(he,Se)},$$slots:{default:!0}})}),a(_e,x)},$$slots:{default:!0}})});var ge=g(Ae,2);m(ge,()=>fr,(K,oe)=>{oe(K,{get open(){return t(n)},set open(_e){f(n,_e,!0)},children:(_e,ke)=>{var x=c(),R=s(x);m(R,()=>vr,(q,ce)=>{ce(q,{interactOutsideBehavior:"close",children:(he,He)=>{var Se=ps(),re=s(Se);m(re,()=>gr,(X,V)=>{V(X,{children:(te,se)=>{var v=hs(),j=s(v);m(j,()=>hr,(Y,I)=>{I(Y,{children:(k,be)=>{xe();var z=De("Delete Project");a(k,z)},$$slots:{default:!0}})});var F=g(j,2);m(F,()=>mr,(Y,I)=>{I(Y,{children:(k,be)=>{xe();var z=De("This project will be permanently deleted along with all of its data, including transactions, exceptions, logs, metrics, and dashboards.");a(k,z)},$$slots:{default:!0}})}),a(te,v)},$$slots:{default:!0}})});var fe=g(re,4),Ie=y(fe);mt(Ie,{for:"delete-confirm-name",class:"text-sm font-normal text-muted-foreground leading-relaxed",children:(X,V)=>{xe();var te=ms(),se=g(s(te)),v=y(se,!0);p(se);var j=g(se);j.__click=J;var F=y(j);{var Y=k=>{Jt(k,{class:"h-3.5 w-3.5"})},I=k=>{Ca(k,{class:"h-3.5 w-3.5"})};P(F,k=>{t(D)?k(Y):k(I,!1)})}p(j),xe(),Le(()=>at(v,e.project?.name)),a(X,te)},$$slots:{default:!0}});var Me=g(Ie,2);Ft(Me,{id:"delete-confirm-name",type:"text",autocomplete:"off",get disabled(){return t(u)},get value(){return t(B)},set value(X){f(B,X,!0)}});var Pe=g(Me,2);{var ee=X=>{var V=_s(),te=y(V);Ir(te,{class:"h-3.5 w-3.5"}),xe(),p(V),a(X,V)};P(Pe,X=>{t(B).length>0&&!t($)&&X(ee)})}p(fe);var ne=g(fe,2);m(ne,()=>_r,(X,V)=>{V(X,{class:"sm:justify-between",children:(te,se)=>{var v=bs(),j=s(v);dt(j,{variant:"outline",onclick:()=>f(n,!1),get disabled(){return t(u)},children:(Y,I)=>{xe();var k=De("Cancel");a(Y,k)},$$slots:{default:!0}});var F=g(j,2);{let Y=S(()=>t(u)||!t($));dt(F,{variant:"destructive",onclick:N,get disabled(){return t(Y)},children:(I,k)=>{xe();var be=De();Le(()=>at(be,t(u)?"Deleting...":"Delete Project")),a(I,be)},$$slots:{default:!0}})}a(te,v)},$$slots:{default:!0}})}),a(he,Se)},$$slots:{default:!0}})}),a(_e,x)},$$slots:{default:!0}})}),a(i,H),U()}Pa(["click"]);function ws(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref"]);var r=c(),d=s(r);m(d,()=>en,(n,u)=>{u(n,we({"data-slot":"dropdown-menu-group"},()=>l,{get ref(){return o()},set ref(B){o(B)}}))}),a(i,r),U()}var Ps=b("<div><!></div>");function ks(i,e){W(e,!0);let o=_(e,"ref",15,null),l=ae(e,["$$slots","$$events","$$legacy","ref","class","inset","children"]);var r=Ps();Je(r,n=>({"data-slot":"dropdown-menu-label","data-inset":e.inset,class:n,...l}),[()=>Ge("px-2 py-1.5 text-sm font-semibold data-[inset]:ps-8",e.class)]);var d=y(r);O(d,()=>e.children??G),p(r),rt(r,n=>o(n),()=>o()),a(i,r),U()}function Ms(i,e){}var Cs=b('<link rel="icon" href="/favicon.ico"/>'),Ss=b("<!> <span> </span> <!>",1),Is=b('<div class="flex items-center gap-2"><!> <span> </span></div> <!>',1),Ts=b("<!> Edit Project",1),Ds=b("<!> Add Project",1),js=b("<!> <!> <!> <!> <!> <!> <!>",1),As=b("<!> <!>",1),Os=b('<header class="flex h-12 shrink-0 items-center gap-2 border-b px-2"><!> <div class="h-4 w-px bg-border"></div> <h1 class="text-lg font-semibold"><!></h1> <div class="ml-auto flex items-center gap-2"><!> <!></div></header> <main class="min-w-0 flex-1 p-4"><!></main>',1),Es=b("<!> <!>",1),Bs=b("<!> <!> <!> <!>",1),Ns=b('<main class="h-screen w-screen"><!></main>');function hl(i,e){W(e,!0);let o=me(!1),l=me(!1),r="";Ya($=>{if(!$.to?.url)return;const E=$.to.url.pathname;$.type==="popstate"?Qa():E!==r&&Ja(),r=E}),$t(()=>{$a(),window.captureException=Ms,It.isAuthenticated&&Ye.loadProjects()});function d(){It.logout(),Et("/login")}function n($){Ye.selectProject($),Et("/")}function u(){const $=Ye.currentProject?.organizationId??It.organizations[0]?.id;if($&&It.getRoleForOrganization($)==="readonly"){Bt.error("You're not authorized to perform that action",{position:"top-center"});return}f(o,!0)}function B(){f(o,!1),Et("/connection")}var D=c();Nr("12qhfyh",$=>{var E=Cs();a($,E)});var J=s(D);m(J,()=>Da,($,E)=>{E($,{delayDuration:0,children:(N,w)=>{var H=c(),Ae=s(H);{var ge=oe=>{var _e=Bs(),ke=s(_e);m(ke,()=>hn,(ce,he)=>{he(ce,{children:(He,Se)=>{var re=Es(),fe=s(re);ts(fe,{});var Ie=g(fe,2);m(Ie,()=>Jo,(Me,Pe)=>{Pe(Me,{children:(ee,ne)=>{var X=Os(),V=s(X),te=y(V);m(te,()=>bn,(be,z)=>{z(be,{})});var se=g(te,4),v=y(se);m(v,()=>Tr,(be,z)=>{z(be,{children:(Te,Ce)=>{var A=As(),T=s(A);m(T,()=>Dr,(Oe,Xe)=>{Xe(Oe,{class:"flex flex-row items-center gap-2 rounded-md px-2 py-1 transition-colors hover:bg-accent hover:text-accent-foreground",children:(nt,qe)=>{var st=Ss(),L=s(st);{var Z=Q=>{Qt(Q,{get framework(){return Ye.currentProject.framework},class:"size-6 shrink-0"})};P(L,Q=>{Ye.currentProject&&Q(Z)})}var ie=g(L,2),ue=y(ie,!0);p(ie);var ye=g(ie,2);Ar(ye,{size:16}),Le(()=>at(ue,Ye.currentProject?.name||"Select Project")),a(nt,st)},$$slots:{default:!0}})});var pe=g(T,2);m(pe,()=>jr,(Oe,Xe)=>{Xe(Oe,{align:"start",class:"w-56",children:(nt,qe)=>{var st=c(),L=s(st);m(L,()=>ws,(Z,ie)=>{ie(Z,{children:(ue,ye)=>{var Q=js(),Be=s(Q);m(Be,()=>ks,(h,C)=>{C(h,{children:(le,Ee)=>{xe();var M=De("Projects");a(le,M)},$$slots:{default:!0}})});var tt=g(Be,2);m(tt,()=>va,(h,C)=>{C(h,{})});var lt=g(tt,2);kt(lt,17,()=>Ye.projects,Xt,(h,C)=>{var le=c(),Ee=s(le);m(Ee,()=>jt,(M,de)=>{de(M,{onclick:()=>n(t(C).id),class:"flex cursor-pointer items-center justify-between",children:(Re,Ke)=>{var ze=Is(),Fe=s(ze),We=y(Fe);Qt(We,{get framework(){return t(C).framework}});var Ue=g(We,2),_t=y(Ue,!0);p(Ue),p(Fe);var bt=g(Fe,2);{var pt=ft=>{Er(ft,{class:"h-4 w-4"})};P(bt,ft=>{t(C).id===Ye.currentProjectId&&ft(pt)})}Le(()=>at(_t,t(C).name)),a(Re,ze)},$$slots:{default:!0}})}),a(h,le)});var ct=g(lt,2);{var Ze=h=>{var C=c(),le=s(C);m(le,()=>jt,(Ee,M)=>{M(Ee,{disabled:!0,children:(de,Re)=>{xe();var Ke=De("No projects yet");a(de,Ke)},$$slots:{default:!0}})}),a(h,C)};P(ct,h=>{Ye.projects.length===0&&h(Ze)})}var Ne=g(ct,2);m(Ne,()=>va,(h,C)=>{C(h,{})});var Ve=g(Ne,2);{var Qe=h=>{var C=c(),le=s(C);m(le,()=>jt,(Ee,M)=>{M(Ee,{onclick:()=>f(l,!0),class:"cursor-pointer",children:(de,Re)=>{var Ke=Ts(),ze=s(Ke);Br(ze,{class:"mr-2 h-4 w-4"}),xe(),a(de,Ke)},$$slots:{default:!0}})}),a(h,C)};P(Ve,h=>{Ye.canManageCurrentProject&&h(Qe)})}var ve=g(Ve,2);m(ve,()=>jt,(h,C)=>{C(h,{onclick:u,class:"cursor-pointer",children:(le,Ee)=>{var M=Ds(),de=s(M);Or(de,{class:"mr-2 h-4 w-4"}),xe(),a(le,M)},$$slots:{default:!0}})}),a(ue,Q)},$$slots:{default:!0}})}),a(nt,st)},$$slots:{default:!0}})}),a(Te,A)},$$slots:{default:!0}})}),p(se);var j=g(se,2),F=y(j);{let be=S(()=>Zt.isDark?"Switch to Light Mode":"Switch to Dark Mode");dt(F,{variant:"ghost",size:"icon",get onclick(){return er},get title(){return t(be)},children:(z,Te)=>{var Ce=c(),A=s(Ce);{var T=Oe=>{Wn(Oe,{class:"h-5 w-5"})},pe=Oe=>{Kn(Oe,{class:"h-5 w-5"})};P(A,Oe=>{Zt.isDark?Oe(T):Oe(pe,!1)})}a(z,Ce)},$$slots:{default:!0}})}var Y=g(F,2);dt(Y,{variant:"ghost",size:"icon",onclick:d,title:"Logout",children:(be,z)=>{Rn(be,{class:"h-5 w-5"})},$$slots:{default:!0}}),p(j),p(V);var I=g(V,2),k=y(I);O(k,()=>e.children),p(I),a(ee,X)},$$slots:{default:!0}})}),a(He,re)},$$slots:{default:!0}})});var x=g(ke,2);ds(x,{get open(){return t(o)},onOpenChange:ce=>f(o,ce,!0),onProjectCreated:B});var R=g(x,2);xs(R,{get open(){return t(l)},onOpenChange:ce=>f(l,ce,!0),get project(){return Ye.currentProject}});var q=g(R,2);Ao(q,{position:"bottom-right"}),a(oe,_e)},K=oe=>{var _e=c(),ke=s(_e);{var x=R=>{var q=Ns(),ce=y(q);O(ce,()=>e.children),p(q),a(R,q)};P(ke,R=>{(it.url.pathname==="/login"||it.url.pathname==="/register"||it.url.pathname==="/auth/callback"||it.url.pathname==="/finish-setup"||it.url.pathname.startsWith("/accept-invitation"))&&R(x)})}a(oe,_e)};P(Ae,oe=>{It.isAuthenticated&&it.url.pathname!=="/login"&&it.url.pathname!=="/register"&&it.url.pathname!=="/auth/callback"&&it.url.pathname!=="/finish-setup"&&!it.url.pathname.startsWith("/accept-invitation")?oe(ge):oe(K,!1)})}a(N,H)},$$slots:{default:!0}})}),a(i,D),U()}export{hl as component,gl as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/0.DqXbLv7T.js.map b/backend/static/frontend/_app/immutable/nodes/0.DqXbLv7T.js.map
new file mode 100644
index 00000000..70f51263
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/0.DqXbLv7T.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"0.DqXbLv7T.js","sources":["../../../../../../node_modules/svelte/src/internal/client/dom/blocks/svelte-head.js","../../../../../../src/routes/+layout.ts","../../../../../../node_modules/svelte-sonner/dist/Loader.svelte","../../../../../../node_modules/svelte-sonner/node_modules/runed/dist/internal/configurable-globals.js","../../../../../../node_modules/svelte-sonner/node_modules/runed/dist/internal/utils/dom.js","../../../../../../node_modules/svelte/src/reactivity/reactive-value.js","../../../../../../node_modules/svelte/src/reactivity/media-query.js","../../../../../../node_modules/svelte-sonner/node_modules/runed/dist/utilities/active-element/active-element.svelte.js","../../../../../../node_modules/svelte-sonner/node_modules/runed/dist/utilities/context/context.js","../../../../../../node_modules/svelte-sonner/dist/internal/ctx.js","../../../../../../node_modules/svelte-sonner/dist/types.js","../../../../../../node_modules/svelte-sonner/dist/internal/use-document-hidden.svelte.js","../../../../../../node_modules/svelte-sonner/dist/Toast.svelte","../../../../../../node_modules/svelte-sonner/dist/icons/SuccessIcon.svelte","../../../../../../node_modules/svelte-sonner/dist/icons/ErrorIcon.svelte","../../../../../../node_modules/svelte-sonner/dist/icons/WarningIcon.svelte","../../../../../../node_modules/svelte-sonner/dist/icons/InfoIcon.svelte","../../../../../../node_modules/svelte-sonner/dist/icons/CloseIcon.svelte","../../../../../../node_modules/svelte-sonner/dist/Toaster.svelte","../../../../../../src/lib/hooks/is-mobile.svelte.ts","../../../../../../src/lib/components/ui/sidebar/constants.ts","../../../../../../src/lib/components/ui/sidebar/context.svelte.ts","../../../../../../src/lib/components/ui/sidebar/sidebar-content.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-footer.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-group-content.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-group.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-header.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-inset.svelte","../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-group.svelte","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog.svelte","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog-close.svelte","../../../../../../node_modules/bits-ui/dist/bits/dialog/components/dialog-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/tooltip/components/tooltip-provider.svelte","../../../../../../src/lib/components/ui/tooltip/tooltip-provider.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-menu-button.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-menu-item.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-menu.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-provider.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/panel-left.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar-trigger.svelte","../../../../../../src/lib/components/ui/sheet/sheet.svelte","../../../../../../src/lib/components/ui/sheet/sheet-portal.svelte","../../../../../../src/lib/components/ui/sheet/sheet-overlay.svelte","../../../../../../src/lib/components/ui/sheet/sheet-content.svelte","../../../../../../src/lib/components/ui/sheet/sheet-header.svelte","../../../../../../src/lib/components/ui/sheet/sheet-title.svelte","../../../../../../src/lib/components/ui/sheet/sheet-description.svelte","../../../../../../src/lib/components/ui/sidebar/sidebar.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/bell.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/book-open.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/bug.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/chart-no-axes-combined.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/file-text.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/film.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/gauge.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/layout-dashboard.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/link-2.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/list-end.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/log-out.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/moon.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/settings.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/sun.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/workflow.svelte","../../../../../../src/lib/components/app-sidebar.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/external-link.svelte","../../../../../../src/lib/components/add-project-modal.svelte","../../../../../../src/lib/components/edit-project-modal.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-group.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte","../../../../../../node_modules/@tracewayapp/frontend/dist/index.mjs","../../../../../../src/routes/+layout.svelte"],"sourcesContent":["/** @import { TemplateNode } from '#client' */\nimport { hydrate_node, hydrating, set_hydrate_node, set_hydrating } from '../hydration.js';\nimport { create_text, get_first_child, get_next_sibling } from '../operations.js';\nimport { block } from '../../reactivity/effects.js';\nimport { COMMENT_NODE, HEAD_EFFECT } from '#client/constants';\n\n/**\n * @param {string} hash\n * @param {(anchor: Node) => void} render_fn\n * @returns {void}\n */\nexport function head(hash, render_fn) {\n\t// The head function may be called after the first hydration pass and ssr comment nodes may still be present,\n\t// therefore we need to skip that when we detect that we're not in hydration mode.\n\tlet previous_hydrate_node = null;\n\tlet was_hydrating = hydrating;\n\n\t/** @type {Comment | Text} */\n\tvar anchor;\n\n\tif (hydrating) {\n\t\tprevious_hydrate_node = hydrate_node;\n\n\t\tvar head_anchor = get_first_child(document.head);\n\n\t\t// There might be multiple head blocks in our app, and they could have been\n\t\t// rendered in an arbitrary order — find one corresponding to this component\n\t\twhile (\n\t\t\thead_anchor !== null &&\n\t\t\t(head_anchor.nodeType !== COMMENT_NODE || /** @type {Comment} */ (head_anchor).data !== hash)\n\t\t) {\n\t\t\thead_anchor = get_next_sibling(head_anchor);\n\t\t}\n\n\t\t// If we can't find an opening hydration marker, skip hydration (this can happen\n\t\t// if a framework rendered body but not head content)\n\t\tif (head_anchor === null) {\n\t\t\tset_hydrating(false);\n\t\t} else {\n\t\t\tvar start = /** @type {TemplateNode} */ (get_next_sibling(head_anchor));\n\t\t\thead_anchor.remove(); // in case this component is repeated\n\n\t\t\tset_hydrate_node(start);\n\t\t}\n\t}\n\n\tif (!hydrating) {\n\t\tanchor = document.head.appendChild(create_text());\n\t}\n\n\ttry {\n\t\tblock(() => render_fn(anchor), HEAD_EFFECT);\n\t} finally {\n\t\tif (was_hydrating) {\n\t\t\tset_hydrating(true);\n\t\t\tset_hydrate_node(/** @type {TemplateNode} */ (previous_hydrate_node));\n\t\t}\n\t}\n}\n","export const ssr = false;\nexport const prerender = true;","<script lang=\"ts\" module>\"use strict\";\nconst bars = Array(12).fill(0);\n</script>\n\n<script lang=\"ts\">\"use strict\";\nlet { visible, class: className } = $props();\n</script>\n\n<div\n\tclass={['sonner-loading-wrapper', className].filter(Boolean).join(' ')}\n\tdata-visible={visible}\n>\n\t<div class=\"sonner-spinner\">\n\t\t{#each bars as _, i (`spinner-bar-${i}`)}\n\t\t\t<div class=\"sonner-loading-bar\"></div>\n\t\t{/each}\n\t</div>\n</div>\n","import { BROWSER } from \"esm-env\";\nexport const defaultWindow = BROWSER && typeof window !== \"undefined\" ? window : undefined;\nexport const defaultDocument = BROWSER && typeof window !== \"undefined\" ? window.document : undefined;\nexport const defaultNavigator = BROWSER && typeof window !== \"undefined\" ? window.navigator : undefined;\nexport const defaultLocation = BROWSER && typeof window !== \"undefined\" ? window.location : undefined;\n","import { defaultDocument } from \"../configurable-globals.js\";\n/**\n * Handles getting the active element in a document or shadow root.\n * If the active element is within a shadow root, it will traverse the shadow root\n * to find the active element.\n * If not, it will return the active element in the document.\n *\n * @param document A document or shadow root to get the active element from.\n * @returns The active element in the document or shadow root.\n */\nexport function getActiveElement(document) {\n let activeElement = document.activeElement;\n while (activeElement?.shadowRoot) {\n const node = activeElement.shadowRoot.activeElement;\n if (node === activeElement)\n break;\n else\n activeElement = node;\n }\n return activeElement;\n}\n/**\n * Returns the owner document of a given element.\n *\n * @param node The element to get the owner document from.\n * @returns\n */\nexport function getOwnerDocument(node, fallback = defaultDocument) {\n return node?.ownerDocument ?? fallback;\n}\n/**\n * Checks if an element is or is contained by another element.\n *\n * @param node The element to check if it or its descendants contain the target element.\n * @param target The element to check if it is contained by the node.\n * @returns\n */\nexport function isOrContainsTarget(node, target) {\n return node === target || node.contains(target);\n}\n","import { createSubscriber } from './create-subscriber.js';\n\n/**\n * @template T\n */\nexport class ReactiveValue {\n\t#fn;\n\t#subscribe;\n\n\t/**\n\t *\n\t * @param {() => T} fn\n\t * @param {(update: () => void) => void} onsubscribe\n\t */\n\tconstructor(fn, onsubscribe) {\n\t\tthis.#fn = fn;\n\t\tthis.#subscribe = createSubscriber(onsubscribe);\n\t}\n\n\tget current() {\n\t\tthis.#subscribe();\n\t\treturn this.#fn();\n\t}\n}\n","import { on } from '../events/index.js';\nimport { ReactiveValue } from './reactive-value.js';\n\nconst parenthesis_regex = /\\(.+\\)/;\n\n// these keywords are valid media queries but they need to be without parenthesis\n//\n// eg: new MediaQuery('screen')\n//\n// however because of the auto-parenthesis logic in the constructor since there's no parentehesis\n// in the media query they'll be surrounded by parenthesis\n//\n// however we can check if the media query is only composed of these keywords\n// and skip the auto-parenthesis\n//\n// https://github.com/sveltejs/svelte/issues/15930\nconst non_parenthesized_keywords = new Set(['all', 'print', 'screen', 'and', 'or', 'not', 'only']);\n\n/**\n * Creates a media query and provides a `current` property that reflects whether or not it matches.\n *\n * Use it carefully — during server-side rendering, there is no way to know what the correct value should be, potentially causing content to change upon hydration.\n * If you can use the media query in CSS to achieve the same effect, do that.\n *\n * ```svelte\n * <script>\n * \timport { MediaQuery } from 'svelte/reactivity';\n *\n * \tconst large = new MediaQuery('min-width: 800px');\n * </script>\n *\n * <h1>{large.current ? 'large screen' : 'small screen'}</h1>\n * ```\n * @extends {ReactiveValue<boolean>}\n * @since 5.7.0\n */\nexport class MediaQuery extends ReactiveValue {\n\t/**\n\t * @param {string} query A media query string\n\t * @param {boolean} [fallback] Fallback value for the server\n\t */\n\tconstructor(query, fallback) {\n\t\tlet final_query =\n\t\t\tparenthesis_regex.test(query) ||\n\t\t\t// we need to use `some` here because technically this `window.matchMedia('random,screen')` still returns true\n\t\t\tquery.split(/[\\s,]+/).some((keyword) => non_parenthesized_keywords.has(keyword.trim()))\n\t\t\t\t? query\n\t\t\t\t: `(${query})`;\n\t\tconst q = window.matchMedia(final_query);\n\t\tsuper(\n\t\t\t() => q.matches,\n\t\t\t(update) => on(q, 'change', update)\n\t\t);\n\t}\n}\n","import { defaultWindow, } from \"../../internal/configurable-globals.js\";\nimport { getActiveElement } from \"../../internal/utils/dom.js\";\nimport { on } from \"svelte/events\";\nimport { createSubscriber } from \"svelte/reactivity\";\nexport class ActiveElement {\n #document;\n #subscribe;\n constructor(options = {}) {\n const { window = defaultWindow, document = window?.document } = options;\n if (window === undefined)\n return;\n this.#document = document;\n this.#subscribe = createSubscriber((update) => {\n const cleanupFocusIn = on(window, \"focusin\", update);\n const cleanupFocusOut = on(window, \"focusout\", update);\n return () => {\n cleanupFocusIn();\n cleanupFocusOut();\n };\n });\n }\n get current() {\n this.#subscribe?.();\n if (!this.#document)\n return null;\n return getActiveElement(this.#document);\n }\n}\n/**\n * An object holding a reactive value that is equal to `document.activeElement`.\n * It automatically listens for changes, keeping the reference up to date.\n *\n * If you wish to use a custom document or shadowRoot, you should use\n * [useActiveElement](https://runed.dev/docs/utilities/active-element) instead.\n *\n * @see {@link https://runed.dev/docs/utilities/active-element}\n */\nexport const activeElement = new ActiveElement();\n","import { getContext, hasContext, setContext } from \"svelte\";\nexport class Context {\n #name;\n #key;\n /**\n * @param name The name of the context.\n * This is used for generating the context key and error messages.\n */\n constructor(name) {\n this.#name = name;\n this.#key = Symbol(name);\n }\n /**\n * The key used to get and set the context.\n *\n * It is not recommended to use this value directly.\n * Instead, use the methods provided by this class.\n */\n get key() {\n return this.#key;\n }\n /**\n * Checks whether this has been set in the context of a parent component.\n *\n * Must be called during component initialisation.\n */\n exists() {\n return hasContext(this.#key);\n }\n /**\n * Retrieves the context that belongs to the closest parent component.\n *\n * Must be called during component initialisation.\n *\n * @throws An error if the context does not exist.\n */\n get() {\n const context = getContext(this.#key);\n if (context === undefined) {\n throw new Error(`Context \"${this.#name}\" not found`);\n }\n return context;\n }\n /**\n * Retrieves the context that belongs to the closest parent component,\n * or the given fallback value if the context does not exist.\n *\n * Must be called during component initialisation.\n */\n getOr(fallback) {\n const context = getContext(this.#key);\n if (context === undefined) {\n return fallback;\n }\n return context;\n }\n /**\n * Associates the given value with the current component and returns it.\n *\n * Must be called during component initialisation.\n */\n set(context) {\n return setContext(this.#key, context);\n }\n}\n","import { SonnerState } from '../toast-state.svelte.js';\nimport { Context } from 'runed';\nexport const richColorsContext = new Context('richColorsContext');\nexport const sonnerContext = new Context('<Toaster/>');\n","export function isAction(action) {\n return action.label !== undefined;\n}\n","import { on } from 'svelte/events';\nexport function useDocumentHidden() {\n let current = $state(typeof document !== 'undefined' ? document.hidden : false);\n $effect(() => {\n return on(document, 'visibilitychange', () => {\n current = document.hidden;\n });\n });\n return {\n get current() {\n return current;\n }\n };\n}\n","<script lang=\"ts\" module>\"use strict\";\n// Default lifetime of a toasts (in ms)\nconst TOAST_LIFETIME = 4000;\n// Default gap between toasts\nconst GAP = 14;\n// Threshold to dismiss a toast\nconst SWIPE_THRESHOLD = 45;\n// Equal to exit animation duration\nconst TIME_BEFORE_UNMOUNT = 200;\nconst SCALE_MULTIPLIER = 0.05;\nconst DEFAULT_TOAST_CLASSES = {\n toast: '',\n title: '',\n description: '',\n loader: '',\n closeButton: '',\n cancelButton: '',\n actionButton: '',\n action: '',\n warning: '',\n error: '',\n success: '',\n default: '',\n info: '',\n loading: ''\n};\nfunction getDefaultSwipeDirections(position) {\n const [y, x] = position.split('-');\n const directions = [];\n if (y) {\n directions.push(y);\n }\n if (x) {\n directions.push(x);\n }\n return directions;\n}\nfunction getDampening(delta) {\n const factor = Math.abs(delta) / 20;\n return 1 / (1.5 + factor);\n}\n</script>\n\n<script lang=\"ts\">import { onMount, untrack } from 'svelte';\nimport { isAction } from './types.js';\nimport { toastState } from './toast-state.svelte.js';\nimport { cn } from './internal/helpers.js';\nimport { useDocumentHidden } from './internal/use-document-hidden.svelte.js';\nimport Loader from './Loader.svelte';\nlet { toast, index, expanded, invert: invertFromToaster, position, visibleToasts, expandByDefault, closeButton: closeButtonFromToaster, interacting, cancelButtonStyle = '', actionButtonStyle = '', duration: durationFromToaster, descriptionClass = '', classes: classesProp, unstyled = false, loadingIcon, successIcon, errorIcon, warningIcon, closeIcon, infoIcon, defaultRichColors = false, swipeDirections: swipeDirectionsProp, closeButtonAriaLabel, ...restProps } = $props();\nconst defaultClasses = { ...DEFAULT_TOAST_CLASSES };\nlet mounted = $state(false);\nlet removed = $state(false);\nlet swiping = $state(false);\nlet swipeOut = $state(false);\nlet isSwiped = $state(false);\nlet offsetBeforeRemove = $state(0);\nlet initialHeight = $state(0);\nlet remainingTime = toast.duration || durationFromToaster || TOAST_LIFETIME;\nlet dragStartTime = $state(null);\nlet toastRef = $state();\nlet swipeDirection = $state(null);\nlet swipeOutDirection = $state(null);\nconst isFront = $derived(index === 0);\nconst isVisible = $derived(index + 1 <= visibleToasts);\nconst toastType = $derived(toast.type);\nconst dismissable = $derived(toast.dismissable !== false);\nconst toastClass = $derived(toast.class || '');\nconst toastDescriptionClass = $derived(toast.descriptionClass || '');\n// height index is used to calculate the offset as it gets updated before the toast array, which means we can calculate the new layout faster.\nconst heightIndex = $derived(toastState.heights.findIndex((height) => height.toastId === toast.id) ||\n 0);\nconst closeButton = $derived(toast.closeButton ?? closeButtonFromToaster);\nconst duration = $derived(toast.duration ?? durationFromToaster ?? TOAST_LIFETIME);\nlet pointerStart = null;\nconst coords = $derived(position.split('-'));\nconst toastsHeightBefore = $derived(toastState.heights.reduce((prev, curr, reducerIndex) => {\n if (reducerIndex >= heightIndex)\n return prev;\n return prev + curr.height;\n}, 0));\nconst isDocumentHidden = useDocumentHidden();\nconst invert = $derived(toast.invert || invertFromToaster);\nconst disabled = $derived(toastType === 'loading');\nconst classes = $derived({ ...defaultClasses, ...classesProp });\nconst toastTitle = $derived(toast.title);\nconst toastDescription = $derived(toast.description);\nlet closeTimerStartTime = $state(0);\nlet lastCloseTimerStartTime = $state(0);\nconst offset = $derived(Math.round(heightIndex * GAP + toastsHeightBefore));\n$effect(() => {\n toastTitle;\n toastDescription;\n let scale;\n if (expanded || expandByDefault) {\n scale = 1;\n }\n else {\n scale = 1 - index * SCALE_MULTIPLIER;\n }\n const toastEl = untrack(() => toastRef);\n if (toastEl === undefined)\n return;\n toastEl.style.setProperty('height', 'auto');\n const offsetHeight = toastEl.offsetHeight;\n const rectHeight = toastEl.getBoundingClientRect().height;\n const scaledRectHeight = Math.round((rectHeight / scale + Number.EPSILON) & 100) / 100;\n toastEl.style.removeProperty('height');\n let finalHeight;\n if (Math.abs(scaledRectHeight - offsetHeight) < 1) {\n // use scaledRectHeight as it's more precise\n finalHeight = scaledRectHeight;\n }\n else {\n // toast was transitioning its scale, so scaledRectHeight isn't accurate\n finalHeight = offsetHeight;\n }\n initialHeight = finalHeight;\n toastState.setHeight({ toastId: toast.id, height: finalHeight });\n});\nfunction deleteToast() {\n removed = true;\n // save the offset for the exit swipe animation\n offsetBeforeRemove = offset;\n toastState.removeHeight(toast.id);\n setTimeout(() => {\n toastState.remove(toast.id);\n }, TIME_BEFORE_UNMOUNT);\n}\nlet timeoutId;\nconst isPromiseLoadingOrInfiniteDuration = $derived((toast.promise && toastType === 'loading') ||\n toast.duration === Number.POSITIVE_INFINITY);\nfunction startTimer() {\n closeTimerStartTime = new Date().getTime();\n // let the toast know it has started\n timeoutId = setTimeout(() => {\n toast.onAutoClose?.(toast);\n deleteToast();\n }, remainingTime);\n}\nfunction pauseTimer() {\n if (lastCloseTimerStartTime < closeTimerStartTime) {\n // get the elapsed time since the timer started\n const elapsedTime = new Date().getTime() - closeTimerStartTime;\n remainingTime = remainingTime - elapsedTime;\n }\n lastCloseTimerStartTime = new Date().getTime();\n}\n$effect(() => {\n if (toast.updated) {\n // if the toast has been updated after the initial render,\n // we want to reset the timer and set the remaining time to the\n // new duration\n clearTimeout(timeoutId);\n remainingTime = duration;\n startTimer();\n }\n});\n$effect(() => {\n if (!isPromiseLoadingOrInfiniteDuration) {\n if (expanded || interacting || isDocumentHidden.current) {\n pauseTimer();\n }\n else {\n startTimer();\n }\n }\n return () => clearTimeout(timeoutId);\n});\nonMount(() => {\n mounted = true;\n const height = toastRef?.getBoundingClientRect().height;\n initialHeight = height;\n toastState.setHeight({ toastId: toast.id, height });\n return () => {\n toastState.removeHeight(toast.id);\n };\n});\n$effect(() => {\n if (toast.delete) {\n untrack(() => {\n deleteToast();\n toast.onDismiss?.(toast);\n });\n }\n});\nconst handlePointerDown = (event) => {\n if (disabled)\n return;\n offsetBeforeRemove = offset;\n const target = event.target;\n // ensure we maintain correct pointer capture even when going outside of the toast (e.g. when swiping)\n target.setPointerCapture(event.pointerId);\n if (target.tagName === 'BUTTON')\n return;\n swiping = true;\n pointerStart = { x: event.clientX, y: event.clientY };\n};\nconst handlePointerUp = () => {\n if (swipeOut || !dismissable)\n return;\n pointerStart = null;\n const swipeAmountX = Number(toastRef?.style\n .getPropertyValue('--swipe-amount-x')\n .replace('px', '') || 0);\n const swipeAmountY = Number(toastRef?.style\n .getPropertyValue('--swipe-amount-y')\n .replace('px', '') || 0);\n const timeTaken = new Date().getTime() - (dragStartTime?.getTime() ?? 0);\n const swipeAmount = swipeDirection === 'x' ? swipeAmountX : swipeAmountY;\n const velocity = Math.abs(swipeAmount) / timeTaken;\n // remove only if threshold is met\n if (Math.abs(swipeAmount) >= SWIPE_THRESHOLD || velocity > 0.11) {\n offsetBeforeRemove = offset;\n toast.onDismiss?.(toast);\n if (swipeDirection === 'x') {\n swipeOutDirection = swipeAmountX > 0 ? 'right' : 'left';\n }\n else {\n swipeOutDirection = swipeAmountY > 0 ? 'down' : 'up';\n }\n deleteToast();\n swipeOut = true;\n return;\n }\n else {\n toastRef?.style.setProperty('--swipe-amount-x', '0px');\n toastRef?.style.setProperty('--swipe-amount-y', '0px');\n }\n isSwiped = false;\n swiping = false;\n swipeDirection = null;\n};\nconst handlePointerMove = (event) => {\n if (!pointerStart || !dismissable)\n return;\n const isHighlighted = (window.getSelection()?.toString().length ?? -1) > 0;\n if (isHighlighted)\n return;\n const yDelta = event.clientY - pointerStart.y;\n const xDelta = event.clientX - pointerStart.x;\n const swipeDirections = swipeDirectionsProp ?? getDefaultSwipeDirections(position);\n // Determine swipe direction if not already locked\n if (!swipeDirection && (Math.abs(xDelta) > 1 || Math.abs(yDelta) > 1)) {\n swipeDirection = Math.abs(xDelta) > Math.abs(yDelta) ? 'x' : 'y';\n }\n let swipeAmount = { x: 0, y: 0 };\n if (swipeDirection === 'y') {\n // handle vertical swipes\n if (swipeDirections.includes('top') ||\n swipeDirections.includes('bottom')) {\n if ((swipeDirections.includes('top') && yDelta < 0) ||\n (swipeDirections.includes('bottom') && yDelta > 0)) {\n swipeAmount.y = yDelta;\n }\n else {\n // smoothly transition to dampened movement\n const dampenedDelta = yDelta * getDampening(yDelta);\n // ensure we don't jump when transition to dampened movement\n swipeAmount.y =\n Math.abs(dampenedDelta) < Math.abs(yDelta)\n ? dampenedDelta\n : yDelta;\n }\n }\n }\n else if (swipeDirection === 'x') {\n // handle horizontal swipes\n if (swipeDirections.includes('left') ||\n swipeDirections.includes('right')) {\n if ((swipeDirections.includes('left') && xDelta < 0) ||\n (swipeDirections.includes('right') && xDelta > 0)) {\n swipeAmount.x = xDelta;\n }\n else {\n // Smoothly transition to dampened movement\n const dampenedDelta = xDelta * getDampening(xDelta);\n // Ensure we don't jump when transitioning to dampened movement\n swipeAmount.x =\n Math.abs(dampenedDelta) < Math.abs(xDelta)\n ? dampenedDelta\n : xDelta;\n }\n }\n }\n if (Math.abs(swipeAmount.x) > 0 || Math.abs(swipeAmount.y) > 0) {\n isSwiped = true;\n }\n toastRef?.style.setProperty('--swipe-amount-x', `${swipeAmount.x}px`);\n toastRef?.style.setProperty('--swipe-amount-y', `${swipeAmount.y}px`);\n};\nconst handleDragEnd = () => {\n swiping = false;\n swipeDirection = null;\n pointerStart = null;\n};\nconst icon = $derived.by(() => {\n if (toast.icon)\n return toast.icon;\n if (toastType === 'success')\n return successIcon;\n if (toastType === 'error')\n return errorIcon;\n if (toastType === 'warning')\n return warningIcon;\n if (toastType === 'info')\n return infoIcon;\n if (toastType === 'loading')\n return loadingIcon;\n return null;\n});\n</script>\n\n{#snippet LoadingIcon()}\n\t{#if loadingIcon}\n\t\t<div\n\t\t\tclass={cn(classes?.loader, toast?.classes?.loader, 'sonner-loader')}\n\t\t\tdata-visible={toastType === 'loading'}\n\t\t>\n\t\t\t{@render loadingIcon()}\n\t\t</div>\n\t{:else}\n\t\t<Loader\n\t\t\tclass={cn(classes?.loader, toast.classes?.loader)}\n\t\t\tvisible={toastType === 'loading'}\n\t\t/>\n\t{/if}\n{/snippet}\n\n<!-- svelte-ignore a11y_no_noninteractive_tabindex -->\n<li\n\ttabindex={0}\n\tbind:this={toastRef}\n\tclass={cn(\n\t\trestProps.class,\n\t\ttoastClass,\n\t\tclasses?.toast,\n\t\ttoast?.classes?.toast,\n\t\tclasses?.[toastType],\n\t\ttoast?.classes?.[toastType]\n\t)}\n\tdata-sonner-toast=\"\"\n\tdata-rich-colors={toast.richColors ?? defaultRichColors}\n\tdata-styled={!(toast.component || toast.unstyled || unstyled)}\n\tdata-mounted={mounted}\n\tdata-promise={Boolean(toast.promise)}\n\tdata-swiped={isSwiped}\n\tdata-removed={removed}\n\tdata-visible={isVisible}\n\tdata-y-position={coords[0]}\n\tdata-x-position={coords[1]}\n\tdata-index={index}\n\tdata-front={isFront}\n\tdata-swiping={swiping}\n\tdata-dismissable={dismissable}\n\tdata-type={toastType}\n\tdata-invert={invert}\n\tdata-swipe-out={swipeOut}\n\tdata-swipe-direction={swipeOutDirection}\n\tdata-expanded={Boolean(expanded || (expandByDefault && mounted))}\n\tstyle:--index={index}\n\tstyle:--toasts-before={index}\n\tstyle:--z-index={toastState.toasts.length - index}\n\tstyle:--offset={`${removed ? offsetBeforeRemove : offset}px`}\n\tstyle:--initial-height={expandByDefault ? 'auto' : `${initialHeight}px`}\n\tstyle={`${restProps.style} ${toast.style}`}\n\tonpointermove={handlePointerMove}\n\tonpointerup={handlePointerUp}\n\tonpointerdown={handlePointerDown}\n\tondragend={handleDragEnd}\n>\n\t{#if closeButton && !toast.component && toastType !== 'loading' && closeIcon !== null}\n\t\t<button\n\t\t\taria-label={closeButtonAriaLabel}\n\t\t\tdata-disabled={disabled}\n\t\t\tdata-close-button\n\t\t\tonclick={() => {\n\t\t\t\tif (disabled || !dismissable) return;\n\t\t\t\tdeleteToast();\n\t\t\t\ttoast.onDismiss?.(toast);\n\t\t\t}}\n\t\t\tclass={cn(classes?.closeButton, toast?.classes?.closeButton)}\n\t\t>\n\t\t\t{@render closeIcon?.()}\n\t\t</button>\n\t{/if}\n\n\t{#if toast.component}\n\t\t{@const Component = toast.component}\n\t\t<Component {...toast.componentProps} closeToast={deleteToast} />\n\t{:else}\n\t\t{#if (toastType || toast.icon || toast.promise) && toast.icon !== null && (icon !== null || toast.icon)}\n\t\t\t<div data-icon=\"\" class={cn(classes?.icon, toast?.classes?.icon)}>\n\t\t\t\t{#if toast.promise || toastType === 'loading'}\n\t\t\t\t\t{#if toast.icon}\n\t\t\t\t\t\t<toast.icon />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{@render LoadingIcon()}\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t\t{#if toast.type !== 'loading'}\n\t\t\t\t\t{#if toast.icon}\n\t\t\t\t\t\t<toast.icon />\n\t\t\t\t\t{:else if toastType === 'success'}\n\t\t\t\t\t\t{@render successIcon?.()}\n\t\t\t\t\t{:else if toastType === 'error'}\n\t\t\t\t\t\t{@render errorIcon?.()}\n\t\t\t\t\t{:else if toastType === 'warning'}\n\t\t\t\t\t\t{@render warningIcon?.()}\n\t\t\t\t\t{:else if toastType === 'info'}\n\t\t\t\t\t\t{@render infoIcon?.()}\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t{/if}\n\t\t<div data-content=\"\">\n\t\t\t<div\n\t\t\t\tdata-title=\"\"\n\t\t\t\tclass={cn(classes?.title, toast?.classes?.title)}\n\t\t\t>\n\t\t\t\t{#if toast.title}\n\t\t\t\t\t{#if typeof toast.title !== 'string'}\n\t\t\t\t\t\t{@const Title = toast.title}\n\t\t\t\t\t\t<Title {...toast.componentProps} />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{toast.title}\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t\t{#if toast.description}\n\t\t\t\t<div\n\t\t\t\t\tdata-description=\"\"\n\t\t\t\t\tclass={cn(\n\t\t\t\t\t\tdescriptionClass,\n\t\t\t\t\t\ttoastDescriptionClass,\n\t\t\t\t\t\tclasses?.description,\n\t\t\t\t\t\ttoast.classes?.description\n\t\t\t\t\t)}\n\t\t\t\t>\n\t\t\t\t\t{#if typeof toast.description !== 'string'}\n\t\t\t\t\t\t{@const Description = toast.description}\n\t\t\t\t\t\t<Description {...toast.componentProps} />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{toast.description}\n\t\t\t\t\t{/if}\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t</div>\n\t\t{#if toast.cancel}\n\t\t\t{#if typeof toast.cancel === 'function'}\n\t\t\t\t<toast.cancel />\n\t\t\t{:else if isAction(toast.cancel)}\n\t\t\t\t<button\n\t\t\t\t\tdata-button\n\t\t\t\t\tdata-cancel\n\t\t\t\t\tstyle={toast.cancelButtonStyle ?? cancelButtonStyle}\n\t\t\t\t\tclass={cn(\n\t\t\t\t\t\tclasses?.cancelButton,\n\t\t\t\t\t\ttoast?.classes?.cancelButton\n\t\t\t\t\t)}\n\t\t\t\t\tonclick={(event) => {\n\t\t\t\t\t\tif (!isAction(toast.cancel)) return;\n\t\t\t\t\t\tif (!dismissable) return;\n\t\t\t\t\t\ttoast.cancel?.onClick?.(event);\n\t\t\t\t\t\tdeleteToast();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{toast.cancel.label}\n\t\t\t\t</button>\n\t\t\t{/if}\n\t\t{/if}\n\t\t{#if toast.action}\n\t\t\t{#if typeof toast.action === 'function'}\n\t\t\t\t<toast.action />\n\t\t\t{:else if isAction(toast.action)}\n\t\t\t\t<button\n\t\t\t\t\tdata-button=\"\"\n\t\t\t\t\tstyle={toast.actionButtonStyle ?? actionButtonStyle}\n\t\t\t\t\tclass={cn(\n\t\t\t\t\t\tclasses?.actionButton,\n\t\t\t\t\t\ttoast?.classes?.actionButton\n\t\t\t\t\t)}\n\t\t\t\t\tonclick={(event) => {\n\t\t\t\t\t\tif (!isAction(toast.action)) return;\n\t\t\t\t\t\ttoast.action?.onClick(event);\n\t\t\t\t\t\tif (event.defaultPrevented) return;\n\t\t\t\t\t\tdeleteToast();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{toast.action.label}\n\t\t\t\t</button>\n\t\t\t{/if}\n\t\t{/if}\n\t{/if}\n</li>\n","<svg\n\txmlns=\"http://www.w3.org/2000/svg\"\n\tviewBox=\"0 0 20 20\"\n\tfill=\"currentColor\"\n\theight=\"20\"\n\twidth=\"20\"\n\tdata-sonner-success-icon\n>\n\t<path\n\t\tfill-rule=\"evenodd\"\n\t\td=\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z\"\n\t\tclip-rule=\"evenodd\"\n\t/>\n</svg>\n","<svg\n\txmlns=\"http://www.w3.org/2000/svg\"\n\tviewBox=\"0 0 20 20\"\n\tfill=\"currentColor\"\n\theight=\"20\"\n\twidth=\"20\"\n\tdata-sonner-error-icon\n>\n\t<path\n\t\tfill-rule=\"evenodd\"\n\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z\"\n\t\tclip-rule=\"evenodd\"\n\t/>\n</svg>\n","<svg\n\tviewBox=\"0 0 64 64\"\n\tfill=\"currentColor\"\n\theight=\"20\"\n\twidth=\"20\"\n\tdata-sonner-warning-icon\n\txmlns=\"http://www.w3.org/2000/svg\"\n>\n\t<path\n\t\td=\"M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z\"\n\t/>\n\t<path\n\t\td=\"M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z\"\n\t/>\n</svg>\n","<svg\n\txmlns=\"http://www.w3.org/2000/svg\"\n\tviewBox=\"0 0 20 20\"\n\tfill=\"currentColor\"\n\theight=\"20\"\n\twidth=\"20\"\n\tdata-sonner-info-icon\n>\n\t<path\n\t\tfill-rule=\"evenodd\"\n\t\td=\"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z\"\n\t\tclip-rule=\"evenodd\"\n\t/>\n</svg>\n","<svg\n\txmlns=\"http://www.w3.org/2000/svg\"\n\twidth=\"12\"\n\theight=\"12\"\n\tviewBox=\"0 0 24 24\"\n\tfill=\"none\"\n\tstroke=\"currentColor\"\n\tstroke-width=\"1.5\"\n\tstroke-linecap=\"round\"\n\tstroke-linejoin=\"round\"\n\tdata-sonner-close-icon\n>\n\t<line x1=\"18\" y1=\"6\" x2=\"6\" y2=\"18\" />\n\t<line x1=\"6\" y1=\"6\" x2=\"18\" y2=\"18\" />\n</svg>\n","<script lang=\"ts\" module>\"use strict\";\n// visible toasts amount\nconst VISIBLE_TOASTS_AMOUNT = 3;\n// Viewport padding\nconst VIEWPORT_OFFSET = '24px';\n// Mobile viewport padding\nconst MOBILE_VIEWPORT_OFFSET = '16px';\n// Default lifetime of a toasts (in ms)\nconst TOAST_LIFETIME = 4000;\n// Default toast width\nconst TOAST_WIDTH = 356;\n// Default gap between toasts\nconst GAP = 14;\nconst DARK = 'dark';\nconst LIGHT = 'light';\nfunction getOffsetObject(defaultOffset, mobileOffset) {\n const styles = {};\n [defaultOffset, mobileOffset].forEach((offset, index) => {\n const isMobile = index === 1;\n const prefix = isMobile ? '--mobile-offset' : '--offset';\n const defaultValue = isMobile\n ? MOBILE_VIEWPORT_OFFSET\n : VIEWPORT_OFFSET;\n function assignAll(offset) {\n ['top', 'right', 'bottom', 'left'].forEach((key) => {\n styles[`${prefix}-${key}`] =\n typeof offset === 'number' ? `${offset}px` : offset;\n });\n }\n if (typeof offset === 'number' || typeof offset === 'string') {\n assignAll(offset);\n }\n else if (typeof offset === 'object') {\n ['top', 'right', 'bottom', 'left'].forEach((key) => {\n const value = offset[key];\n if (value === undefined) {\n styles[`${prefix}-${key}`] =\n defaultValue;\n }\n else {\n styles[`${prefix}-${key}`] =\n typeof value === 'number' ? `${value}px` : value;\n }\n });\n }\n else {\n assignAll(defaultValue);\n }\n });\n return styles;\n}\n</script>\n\n<script lang=\"ts\">import { onMount, untrack } from 'svelte';\nimport { SonnerState, toastState } from './toast-state.svelte';\nimport Toast from './Toast.svelte';\nimport SuccessIcon from './icons/SuccessIcon.svelte';\nimport ErrorIcon from './icons/ErrorIcon.svelte';\nimport WarningIcon from './icons/WarningIcon.svelte';\nimport InfoIcon from './icons/InfoIcon.svelte';\nimport CloseIcon from './icons/CloseIcon.svelte';\nimport { sonnerContext } from './internal/ctx.js';\nimport { on } from 'svelte/events';\nfunction getInitialTheme(t) {\n if (t !== 'system')\n return t;\n if (typeof window !== 'undefined') {\n if (window.matchMedia &&\n window.matchMedia('(prefers-color-scheme: dark)').matches) {\n return DARK;\n }\n return LIGHT;\n }\n return LIGHT;\n}\nlet { invert = false, position = 'bottom-right', hotkey = ['altKey', 'KeyT'], expand = false, closeButton = false, offset = VIEWPORT_OFFSET, mobileOffset = MOBILE_VIEWPORT_OFFSET, theme = 'light', richColors = false, duration = TOAST_LIFETIME, visibleToasts = VISIBLE_TOASTS_AMOUNT, toastOptions = {}, dir = 'auto', gap = GAP, loadingIcon: loadingIconProp, successIcon: successIconProp, errorIcon: errorIconProp, warningIcon: warningIconProp, closeIcon: closeIconProp, infoIcon: infoIconProp, containerAriaLabel = 'Notifications', class: className, closeButtonAriaLabel = 'Close toast', onblur, onfocus, onmouseenter, onmousemove, onmouseleave, ondragend, onpointerdown, onpointerup, ...restProps } = $props();\nfunction getDocumentDirection() {\n if (dir !== 'auto')\n return dir;\n if (typeof window === 'undefined')\n return 'ltr';\n if (typeof document === 'undefined')\n return 'ltr'; // For Fresh purpose\n const dirAttribute = document.documentElement.getAttribute('dir');\n if (dirAttribute === 'auto' || !dirAttribute) {\n untrack(() => (dir =\n window.getComputedStyle(document.documentElement)\n .direction ?? 'ltr'));\n return dir;\n }\n untrack(() => (dir = dirAttribute));\n return dirAttribute;\n}\nconst possiblePositions = $derived(Array.from(new Set([\n position,\n ...toastState.toasts\n .filter((toast) => toast.position)\n .map((toast) => toast.position)\n].filter(Boolean))));\nlet expanded = $state(false);\nlet interacting = $state(false);\nlet actualTheme = $state(getInitialTheme(theme));\nlet listRef = $state();\nlet lastFocusedElementRef = $state(null);\nlet isFocusWithin = $state(false);\nconst hotkeyLabel = $derived(hotkey.join('+').replace(/Key/g, '').replace(/Digit/g, ''));\n$effect(() => {\n if (toastState.toasts.length <= 1) {\n expanded = false;\n }\n});\n// Check for dismissed toasts and remove them. We need to do this to have dismiss animation.\n$effect(() => {\n const toastsToDismiss = toastState.toasts.filter((toast) => toast.dismiss && !toast.delete);\n if (toastsToDismiss.length > 0) {\n const updatedToasts = toastState.toasts.map((toast) => {\n const matchingToast = toastsToDismiss.find((dismissToast) => dismissToast.id === toast.id);\n if (matchingToast) {\n return { ...toast, delete: true };\n }\n return toast;\n });\n toastState.toasts = updatedToasts;\n }\n});\n$effect(() => {\n return () => {\n if (listRef && lastFocusedElementRef) {\n lastFocusedElementRef.focus({ preventScroll: true });\n lastFocusedElementRef = null;\n isFocusWithin = false;\n }\n };\n});\nonMount(() => {\n toastState.reset();\n const handleKeydown = (event) => {\n const isHotkeyPressed = hotkey.every((key) => \n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n event[key] || event.code === key);\n if (isHotkeyPressed) {\n expanded = true;\n listRef?.focus();\n }\n if (event.code === 'Escape' &&\n (document.activeElement === listRef ||\n listRef?.contains(document.activeElement))) {\n expanded = false;\n }\n };\n return on(document, 'keydown', handleKeydown);\n});\n$effect(() => {\n if (theme !== 'system') {\n actualTheme = theme;\n }\n if (typeof window !== 'undefined') {\n if (theme === 'system') {\n if (window.matchMedia &&\n window.matchMedia('(prefers-color-scheme: dark)').matches) {\n actualTheme = DARK;\n }\n else {\n actualTheme = LIGHT;\n }\n }\n const mediaQueryList = window.matchMedia('(prefers-color-scheme: dark)');\n const changeHandler = ({ matches }) => {\n actualTheme = matches ? DARK : LIGHT;\n };\n if ('addEventListener' in mediaQueryList) {\n mediaQueryList.addEventListener('change', changeHandler);\n }\n else {\n // @ts-expect-error deprecated API\n mediaQueryList.addListener(changeHandler);\n }\n }\n});\nconst handleBlur = (event) => {\n onblur?.(event);\n if (isFocusWithin &&\n !event.currentTarget.contains(event.relatedTarget)) {\n isFocusWithin = false;\n if (lastFocusedElementRef) {\n lastFocusedElementRef.focus({ preventScroll: true });\n lastFocusedElementRef = null;\n }\n }\n};\nconst handleFocus = (event) => {\n onfocus?.(event);\n const isNotDismissable = event.target instanceof HTMLElement &&\n event.target.dataset.dismissable === 'false';\n if (isNotDismissable)\n return;\n if (!isFocusWithin) {\n isFocusWithin = true;\n lastFocusedElementRef = event.relatedTarget;\n }\n};\nconst handlePointerDown = (event) => {\n onpointerdown?.(event);\n const isNotDismissable = event.target instanceof HTMLElement &&\n event.target.dataset.dismissable === 'false';\n if (isNotDismissable)\n return;\n interacting = true;\n};\nconst handleMouseEnter = (event) => {\n onmouseenter?.(event);\n expanded = true;\n};\nconst handleMouseLeave = (event) => {\n onmouseleave?.(event);\n if (!interacting) {\n expanded = false;\n }\n};\nconst handleMouseMove = (event) => {\n onmousemove?.(event);\n expanded = true;\n};\nconst handleDragEnd = (event) => {\n ondragend?.(event);\n expanded = false;\n};\nconst handlePointerUp = (event) => {\n onpointerup?.(event);\n interacting = false;\n};\nsonnerContext.set(new SonnerState());\n</script>\n\n<!-- eslint-disable-next-line svelte/valid-compile -->\n<!-- svelte-ignore a11y_no_noninteractive_tabindex -->\n<section\n\taria-label=\"{containerAriaLabel} {hotkeyLabel}\"\n\ttabindex={-1}\n\taria-live=\"polite\"\n\taria-relevant=\"additions text\"\n\taria-atomic=\"false\"\n>\n\t{#if toastState.toasts.length > 0}\n\t\t{#each possiblePositions as position, index (position)}\n\t\t\t{@const [y, x] = position.split('-')}\n\t\t\t{@const offsetObject = getOffsetObject(offset, mobileOffset)}\n\t\t\t<!-- eslint-disable-next-line svelte/valid-compile -->\n\t\t\t<!-- svelte-ignore a11y_no_noninteractive_tabindex -->\n\t\t\t<ol\n\t\t\t\ttabindex={-1}\n\t\t\t\tdir={getDocumentDirection()}\n\t\t\t\tbind:this={listRef}\n\t\t\t\tclass={className}\n\t\t\t\tdata-sonner-toaster\n\t\t\t\tdata-sonner-theme={actualTheme}\n\t\t\t\tdata-y-position={y}\n\t\t\t\tdata-x-position={x}\n\t\t\t\tstyle:--front-toast-height={`${toastState.heights[0]?.height}px`}\n\t\t\t\tstyle:--width={`${TOAST_WIDTH}px`}\n\t\t\t\tstyle:--gap={`${gap}px`}\n\t\t\t\tstyle:--offset-top={offsetObject['--offset-top']}\n\t\t\t\tstyle:--offset-right={offsetObject['--offset-right']}\n\t\t\t\tstyle:--offset-bottom={offsetObject['--offset-bottom']}\n\t\t\t\tstyle:--offset-left={offsetObject['--offset-left']}\n\t\t\t\tstyle:--mobile-offset-top={offsetObject['--mobile-offset-top']}\n\t\t\t\tstyle:--mobile-offset-right={offsetObject[\n\t\t\t\t\t'--mobile-offset-right'\n\t\t\t\t]}\n\t\t\t\tstyle:--mobile-offset-bottom={offsetObject[\n\t\t\t\t\t'--mobile-offset-bottom'\n\t\t\t\t]}\n\t\t\t\tstyle:--mobile-offset-left={offsetObject[\n\t\t\t\t\t'--mobile-offset-left'\n\t\t\t\t]}\n\t\t\t\tstyle={restProps.style}\n\t\t\t\tonblur={handleBlur}\n\t\t\t\tonfocus={handleFocus}\n\t\t\t\tonmouseenter={handleMouseEnter}\n\t\t\t\tonmousemove={handleMouseMove}\n\t\t\t\tonmouseleave={handleMouseLeave}\n\t\t\t\tondragend={handleDragEnd}\n\t\t\t\tonpointerdown={handlePointerDown}\n\t\t\t\tonpointerup={handlePointerUp}\n\t\t\t\t{...restProps}\n\t\t\t>\n\t\t\t\t{#each toastState.toasts.filter((toast) => (!toast.position && index === 0) || toast.position === position) as toast, index (toast.id)}\n\t\t\t\t\t<Toast\n\t\t\t\t\t\t{index}\n\t\t\t\t\t\t{toast}\n\t\t\t\t\t\tdefaultRichColors={richColors}\n\t\t\t\t\t\tduration={toastOptions?.duration ?? duration}\n\t\t\t\t\t\tclass={toastOptions?.class ?? ''}\n\t\t\t\t\t\tdescriptionClass={toastOptions?.descriptionClass || ''}\n\t\t\t\t\t\t{invert}\n\t\t\t\t\t\t{visibleToasts}\n\t\t\t\t\t\t{closeButton}\n\t\t\t\t\t\t{interacting}\n\t\t\t\t\t\t{position}\n\t\t\t\t\t\tstyle={toastOptions?.style ?? ''}\n\t\t\t\t\t\tclasses={toastOptions.classes || {}}\n\t\t\t\t\t\tunstyled={toastOptions.unstyled ?? false}\n\t\t\t\t\t\tcancelButtonStyle={toastOptions?.cancelButtonStyle ??\n\t\t\t\t\t\t\t''}\n\t\t\t\t\t\tactionButtonStyle={toastOptions?.actionButtonStyle ??\n\t\t\t\t\t\t\t''}\n\t\t\t\t\t\tcloseButtonAriaLabel={toastOptions?.closeButtonAriaLabel ??\n\t\t\t\t\t\t\tcloseButtonAriaLabel}\n\t\t\t\t\t\texpandByDefault={expand}\n\t\t\t\t\t\t{expanded}\n\t\t\t\t\t\tloadingIcon={loadingIconProp}\n\t\t\t\t\t>\n\t\t\t\t\t\t{#snippet successIcon()}\n\t\t\t\t\t\t\t{#if successIconProp}\n\t\t\t\t\t\t\t\t{@render successIconProp?.()}\n\t\t\t\t\t\t\t{:else if successIconProp !== null}\n\t\t\t\t\t\t\t\t<SuccessIcon />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/snippet}\n\n\t\t\t\t\t\t{#snippet errorIcon()}\n\t\t\t\t\t\t\t{#if errorIconProp}\n\t\t\t\t\t\t\t\t{@render errorIconProp?.()}\n\t\t\t\t\t\t\t{:else if errorIconProp !== null}\n\t\t\t\t\t\t\t\t<ErrorIcon />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/snippet}\n\n\t\t\t\t\t\t{#snippet warningIcon()}\n\t\t\t\t\t\t\t{#if warningIconProp}\n\t\t\t\t\t\t\t\t{@render warningIconProp?.()}\n\t\t\t\t\t\t\t{:else if warningIconProp !== null}\n\t\t\t\t\t\t\t\t<WarningIcon />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/snippet}\n\n\t\t\t\t\t\t{#snippet infoIcon()}\n\t\t\t\t\t\t\t{#if infoIconProp}\n\t\t\t\t\t\t\t\t{@render infoIconProp?.()}\n\t\t\t\t\t\t\t{:else if infoIconProp !== null}\n\t\t\t\t\t\t\t\t<InfoIcon />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/snippet}\n\n\t\t\t\t\t\t{#snippet closeIcon()}\n\t\t\t\t\t\t\t{#if closeIconProp}\n\t\t\t\t\t\t\t\t{@render closeIconProp?.()}\n\t\t\t\t\t\t\t{:else if closeIconProp !== null}\n\t\t\t\t\t\t\t\t<CloseIcon />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/snippet}\n\t\t\t\t\t</Toast>\n\t\t\t\t{/each}\n\t\t\t</ol>\n\t\t{/each}\n\t{/if}\n</section>\n\n<style global>\n\t:global(html[dir='ltr']),\n\t:global([data-sonner-toaster][dir='ltr']) {\n\t\t--toast-icon-margin-start: -3px;\n\t\t--toast-icon-margin-end: 4px;\n\t\t--toast-svg-margin-start: -1px;\n\t\t--toast-svg-margin-end: 0px;\n\t\t--toast-button-margin-start: auto;\n\t\t--toast-button-margin-end: 0;\n\t\t--toast-close-button-start: 0;\n\t\t--toast-close-button-end: unset;\n\t\t--toast-close-button-transform: translate(-35%, -35%);\n\t}\n\n\t:global(html[dir='rtl']),\n\t:global([data-sonner-toaster][dir='rtl']) {\n\t\t--toast-icon-margin-start: 4px;\n\t\t--toast-icon-margin-end: -3px;\n\t\t--toast-svg-margin-start: 0px;\n\t\t--toast-svg-margin-end: -1px;\n\t\t--toast-button-margin-start: 0;\n\t\t--toast-button-margin-end: auto;\n\t\t--toast-close-button-start: unset;\n\t\t--toast-close-button-end: 0;\n\t\t--toast-close-button-transform: translate(35%, -35%);\n\t}\n\n\t:global([data-sonner-toaster]) {\n\t\tposition: fixed;\n\t\twidth: var(--width);\n\t\tfont-family:\n\t\t\tui-sans-serif,\n\t\t\tsystem-ui,\n\t\t\t-apple-system,\n\t\t\tBlinkMacSystemFont,\n\t\t\tSegoe UI,\n\t\t\tRoboto,\n\t\t\tHelvetica Neue,\n\t\t\tArial,\n\t\t\tNoto Sans,\n\t\t\tsans-serif,\n\t\t\tApple Color Emoji,\n\t\t\tSegoe UI Emoji,\n\t\t\tSegoe UI Symbol,\n\t\t\tNoto Color Emoji;\n\t\t--gray1: hsl(0, 0%, 99%);\n\t\t--gray2: hsl(0, 0%, 97.3%);\n\t\t--gray3: hsl(0, 0%, 95.1%);\n\t\t--gray4: hsl(0, 0%, 93%);\n\t\t--gray5: hsl(0, 0%, 90.9%);\n\t\t--gray6: hsl(0, 0%, 88.7%);\n\t\t--gray7: hsl(0, 0%, 85.8%);\n\t\t--gray8: hsl(0, 0%, 78%);\n\t\t--gray9: hsl(0, 0%, 56.1%);\n\t\t--gray10: hsl(0, 0%, 52.3%);\n\t\t--gray11: hsl(0, 0%, 43.5%);\n\t\t--gray12: hsl(0, 0%, 9%);\n\t\t--border-radius: 8px;\n\t\tbox-sizing: border-box;\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tlist-style: none;\n\t\toutline: none;\n\t\tz-index: 999999999;\n\t\ttransition: transform 400ms ease;\n\t}\n\n\t@media (hover: none) and (pointer: coarse) {\n\t\t:global([data-sonner-toaster][data-lifted='true']) {\n\t\t\ttransform: none;\n\t\t}\n\t}\n\n\t:global([data-sonner-toaster][data-x-position='right']) {\n\t\tright: var(--offset-right);\n\t}\n\n\t:global([data-sonner-toaster][data-x-position='left']) {\n\t\tleft: var(--offset-left);\n\t}\n\n\t:global([data-sonner-toaster][data-x-position='center']) {\n\t\tleft: 50%;\n\t\ttransform: translateX(-50%);\n\t}\n\n\t:global([data-sonner-toaster][data-y-position='top']) {\n\t\ttop: var(--offset-top);\n\t}\n\n\t:global([data-sonner-toaster][data-y-position='bottom']) {\n\t\tbottom: var(--offset-bottom);\n\t}\n\n\t:global([data-sonner-toast]) {\n\t\t--y: translateY(100%);\n\t\t--lift-amount: calc(var(--lift) * var(--gap));\n\t\tz-index: var(--z-index);\n\t\tposition: absolute;\n\t\topacity: 0;\n\t\ttransform: var(--y);\n\t\ttouch-action: none;\n\t\ttransition:\n\t\t\ttransform 400ms,\n\t\t\topacity 400ms,\n\t\t\theight 400ms,\n\t\t\tbox-shadow 200ms;\n\t\tbox-sizing: border-box;\n\t\toutline: none;\n\t\toverflow-wrap: anywhere;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) {\n\t\tpadding: 16px;\n\t\tbackground: var(--normal-bg);\n\t\tborder: 1px solid var(--normal-border);\n\t\tcolor: var(--normal-text);\n\t\tborder-radius: var(--border-radius);\n\t\tbox-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);\n\t\twidth: var(--width);\n\t\tfont-size: 13px;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tgap: 6px;\n\t}\n\n\t:global([data-sonner-toast]:focus-visible) {\n\t\tbox-shadow:\n\t\t\t0px 4px 12px rgba(0, 0, 0, 0.1),\n\t\t\t0 0 0 2px rgba(0, 0, 0, 0.2);\n\t}\n\n\t:global([data-sonner-toast][data-y-position='top']) {\n\t\ttop: 0;\n\t\t--y: translateY(-100%);\n\t\t--lift: 1;\n\t\t--lift-amount: calc(1 * var(--gap));\n\t}\n\n\t:global([data-sonner-toast][data-y-position='bottom']) {\n\t\tbottom: 0;\n\t\t--y: translateY(100%);\n\t\t--lift: -1;\n\t\t--lift-amount: calc(var(--lift) * var(--gap));\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-description]) {\n\t\tfont-weight: 400;\n\t\tline-height: 1.4;\n\t\tcolor: #3f3f3f;\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-styled='true']\n\t\t[data-description]) {\n\t\tcolor: inherit;\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']) :global([data-description]) {\n\t\tcolor: hsl(0, 0%, 91%);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-title]) {\n\t\tfont-weight: 500;\n\t\tline-height: 1.5;\n\t\tcolor: inherit;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-icon]) {\n\t\tdisplay: flex;\n\t\theight: 16px;\n\t\twidth: 16px;\n\t\tposition: relative;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\t\tflex-shrink: 0;\n\t\tmargin-left: var(--toast-icon-margin-start);\n\t\tmargin-right: var(--toast-icon-margin-end);\n\t}\n\n\t:global([data-sonner-toast][data-promise='true']) :global([data-icon]) > :global(svg) {\n\t\topacity: 0;\n\t\ttransform: scale(0.8);\n\t\ttransform-origin: center;\n\t\tanimation: sonner-fade-in 300ms ease forwards;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-icon]) > :global(*) {\n\t\tflex-shrink: 0;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-icon]) :global(svg) {\n\t\tmargin-left: var(--toast-svg-margin-start);\n\t\tmargin-right: var(--toast-svg-margin-end);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-content]) {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 2px;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-button]) {\n\t\tborder-radius: 4px;\n\t\tpadding-left: 8px;\n\t\tpadding-right: 8px;\n\t\theight: 24px;\n\t\tfont-size: 12px;\n\t\tcolor: var(--normal-bg);\n\t\tbackground: var(--normal-text);\n\t\tmargin-left: var(--toast-button-margin-start);\n\t\tmargin-right: var(--toast-button-margin-end);\n\t\tborder: none;\n\t\tfont-weight: 500;\n\t\tcursor: pointer;\n\t\toutline: none;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex-shrink: 0;\n\t\ttransition:\n\t\t\topacity 400ms,\n\t\t\tbox-shadow 200ms;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-button]:focus-visible) {\n\t\tbox-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-button]:first-of-type) {\n\t\tmargin-left: var(--toast-button-margin-start);\n\t\tmargin-right: var(--toast-button-margin-end);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-cancel]) {\n\t\tcolor: var(--normal-text);\n\t\tbackground: rgba(0, 0, 0, 0.08);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']\n\t\t[data-sonner-toast][data-styled='true']\n\t\t[data-cancel]) {\n\t\tbackground: rgba(255, 255, 255, 0.3);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-close-button]) {\n\t\tposition: absolute;\n\t\tleft: var(--toast-close-button-start);\n\t\tright: var(--toast-close-button-end);\n\t\ttop: 0;\n\t\theight: 20px;\n\t\twidth: 20px;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tpadding: 0;\n\t\tcolor: var(--gray12);\n\t\tbackground: var(--normal-bg);\n\t\tborder: 1px solid var(--gray4);\n\t\ttransform: var(--toast-close-button-transform);\n\t\tborder-radius: 50%;\n\t\tcursor: pointer;\n\t\tz-index: 1;\n\t\ttransition:\n\t\t\topacity 100ms,\n\t\t\tbackground 200ms,\n\t\t\tborder-color 200ms;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-close-button]:focus-visible) {\n\t\tbox-shadow:\n\t\t\t0px 4px 12px rgba(0, 0, 0, 0.1),\n\t\t\t0 0 0 2px rgba(0, 0, 0, 0.2);\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']) :global([data-disabled='true']) {\n\t\tcursor: not-allowed;\n\t}\n\n\t:global([data-sonner-toast][data-styled='true']:hover) :global([data-close-button]:hover) {\n\t\tbackground: var(--gray2);\n\t\tborder-color: var(--gray5);\n\t}\n\n\t:global([data-sonner-toast][data-swiping='true']::before) {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: -100%;\n\t\tright: -100%;\n\t\theight: 100%;\n\t\tz-index: -1;\n\t}\n\n\t:global([data-sonner-toast][data-y-position='top'][data-swiping='true']::before) {\n\t\tbottom: 50%;\n\t\ttransform: scaleY(3) translateY(50%);\n\t}\n\n\t:global([data-sonner-toast][data-y-position='bottom'][data-swiping='true']::before) {\n\t\ttop: 50%;\n\t\ttransform: scaleY(3) translateY(-50%);\n\t}\n\n\t:global([data-sonner-toast][data-swiping='false'][data-removed='true']::before) {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\ttransform: scaleY(2);\n\t}\n\n\t:global([data-sonner-toast][data-expanded='true']::after) {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\theight: calc(var(--gap) + 1px);\n\t\tbottom: 100%;\n\t\twidth: 100%;\n\t}\n\n\t:global([data-sonner-toast][data-mounted='true']) {\n\t\t--y: translateY(0);\n\t\topacity: 1;\n\t}\n\n\t:global([data-sonner-toast][data-expanded='false'][data-front='false']) {\n\t\t--scale: var(--toasts-before) * 0.05 + 1;\n\t\t--y: translateY(calc(var(--lift-amount) * var(--toasts-before)))\n\t\t\tscale(calc(-1 * var(--scale)));\n\t\theight: var(--front-toast-height);\n\t}\n\n\t:global([data-sonner-toast]) > :global(*) {\n\t\ttransition: opacity 400ms;\n\t}\n\n\t:global([data-sonner-toast][data-x-position='right']) {\n\t\tright: 0;\n\t}\n\n\t:global([data-sonner-toast][data-x-position='left']) {\n\t\tleft: 0;\n\t}\n\n\t:global([data-sonner-toast][data-expanded='false'][data-front='false'][data-styled='true']\n\t\t)> :global(*) {\n\t\topacity: 0;\n\t}\n\n\t:global([data-sonner-toast][data-visible='false']) {\n\t\topacity: 0;\n\t\tpointer-events: none;\n\t}\n\n\t:global([data-sonner-toast][data-mounted='true'][data-expanded='true']) {\n\t\t--y: translateY(calc(var(--lift) * var(--offset)));\n\t\theight: var(--initial-height);\n\t}\n\n\t:global([data-sonner-toast][data-removed='true'][data-front='true'][data-swipe-out='false']) {\n\t\t--y: translateY(calc(var(--lift) * -100%));\n\t\topacity: 0;\n\t}\n\n\t:global([data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='true']) {\n\t\t--y: translateY(\n\t\t\tcalc(var(--lift) * var(--offset) + var(--lift) * -100%)\n\t\t);\n\t\topacity: 0;\n\t}\n\n\t:global([data-sonner-toast][data-removed='true'][data-front='false'][data-swipe-out='false'][data-expanded='false']) {\n\t\t--y: translateY(40%);\n\t\topacity: 0;\n\t\ttransition:\n\t\t\ttransform 500ms,\n\t\t\topacity 200ms;\n\t}\n\n\t:global([data-sonner-toast][data-removed='true'][data-front='false']::before) {\n\t\theight: calc(var(--initial-height) + 20%);\n\t}\n\n\t:global([data-sonner-toast][data-swiping='true']) {\n\t\ttransform: var(--y) translateY(var(--swipe-amount-y, 0px))\n\t\t\ttranslateX(var(--swipe-amount-x, 0px));\n\t\ttransition: none;\n\t}\n\n\t:global([data-sonner-toast][data-swiped='true']) {\n\t\tuser-select: none;\n\t}\n\n\t:global([data-sonner-toast][data-swipe-out='true'][data-y-position='bottom']),\n\t:global([data-sonner-toast][data-swipe-out='true'][data-y-position='top']) {\n\t\tanimation-duration: 200ms;\n\t\tanimation-timing-function: ease-out;\n\t\tanimation-fill-mode: forwards;\n\t}\n\n\t:global([data-sonner-toast][data-swipe-out='true'][data-swipe-direction='left']) {\n\t\tanimation-name: swipe-out-left;\n\t}\n\n\t:global([data-sonner-toast][data-swipe-out='true'][data-swipe-direction='right']) {\n\t\tanimation-name: swipe-out-right;\n\t}\n\n\t:global([data-sonner-toast][data-swipe-out='true'][data-swipe-direction='up']) {\n\t\tanimation-name: swipe-out-up;\n\t}\n\n\t:global([data-sonner-toast][data-swipe-out='true'][data-swipe-direction='down']) {\n\t\tanimation-name: swipe-out-down;\n\t}\n\n\t@keyframes -global-swipe-out-left {\n\t\tfrom {\n\t\t\ttransform: var(--y) translateX(var(--swipe-amount-x));\n\t\t\topacity: 1;\n\t\t}\n\n\t\tto {\n\t\t\ttransform: var(--y) translateX(calc(var(--swipe-amount-x) - 100%));\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes -global-swipe-out-right {\n\t\tfrom {\n\t\t\ttransform: var(--y) translateX(var(--swipe-amount-x));\n\t\t\topacity: 1;\n\t\t}\n\n\t\tto {\n\t\t\ttransform: var(--y) translateX(calc(var(--swipe-amount-x) + 100%));\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes -global-swipe-out-up {\n\t\tfrom {\n\t\t\ttransform: var(--y) translateY(var(--swipe-amount-y));\n\t\t\topacity: 1;\n\t\t}\n\n\t\tto {\n\t\t\ttransform: var(--y) translateY(calc(var(--swipe-amount-y) - 100%));\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@keyframes -global-swipe-out-down {\n\t\tfrom {\n\t\t\ttransform: var(--y) translateY(var(--swipe-amount-y));\n\t\t\topacity: 1;\n\t\t}\n\n\t\tto {\n\t\t\ttransform: var(--y) translateY(calc(var(--swipe-amount-y) + 100%));\n\t\t\topacity: 0;\n\t\t}\n\t}\n\n\t@media (max-width: 600px) {\n\t\t:global([data-sonner-toaster]) {\n\t\t\tposition: fixed;\n\t\t\tright: var(--mobile-offset-right);\n\t\t\tleft: var(--mobile-offset-left);\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t:global([data-sonner-toaster][dir='rtl']) {\n\t\t\tleft: calc(var(--mobile-offset-left) * -1);\n\t\t}\n\n\t\t:global([data-sonner-toaster]) :global([data-sonner-toast]) {\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\twidth: calc(100% - var(--mobile-offset-left) * 2);\n\t\t}\n\n\t\t:global([data-sonner-toaster][data-x-position='left']) {\n\t\t\tleft: var(--mobile-offset-left);\n\t\t}\n\n\t\t:global([data-sonner-toaster][data-y-position='bottom']) {\n\t\t\tbottom: var(--mobile-offset-bottom);\n\t\t}\n\n\t\t:global([data-sonner-toaster][data-y-position='top']) {\n\t\t\ttop: var(--mobile-offset-top);\n\t\t}\n\n\t\t:global([data-sonner-toaster][data-x-position='center']) {\n\t\t\tleft: var(--mobile-offset-left);\n\t\t\tright: var(--mobile-offset-right);\n\t\t\ttransform: none;\n\t\t}\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='light']) {\n\t\t--normal-bg: #fff;\n\t\t--normal-border: var(--gray4);\n\t\t--normal-text: var(--gray12);\n\n\t\t--success-bg: hsl(143, 85%, 96%);\n\t\t--success-border: hsl(145, 92%, 87%);\n\t\t--success-text: hsl(140, 100%, 27%);\n\n\t\t--info-bg: hsl(208, 100%, 97%);\n\t\t--info-border: hsl(221, 91%, 93%);\n\t\t--info-text: hsl(210, 92%, 45%);\n\n\t\t--warning-bg: hsl(49, 100%, 97%);\n\t\t--warning-border: hsl(49, 91%, 84%);\n\t\t--warning-text: hsl(31, 92%, 45%);\n\n\t\t--error-bg: hsl(359, 100%, 97%);\n\t\t--error-border: hsl(359, 100%, 94%);\n\t\t--error-text: hsl(360, 100%, 45%);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='light']\n\t\t[data-sonner-toast][data-invert='true']) {\n\t\t--normal-bg: #000;\n\t\t--normal-border: hsl(0, 0%, 20%);\n\t\t--normal-text: var(--gray1);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']\n\t\t[data-sonner-toast][data-invert='true']) {\n\t\t--normal-bg: #fff;\n\t\t--normal-border: var(--gray3);\n\t\t--normal-text: var(--gray12);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']) {\n\t\t--normal-bg: #000;\n\t\t--normal-bg-hover: hsl(0, 0%, 12%);\n\t\t--normal-border: hsl(0, 0%, 20%);\n\t\t--normal-border-hover: hsl(0, 0%, 25%);\n\t\t--normal-text: var(--gray1);\n\n\t\t--success-bg: hsl(150, 100%, 6%);\n\t\t--success-border: hsl(147, 100%, 12%);\n\t\t--success-text: hsl(150, 86%, 65%);\n\n\t\t--info-bg: hsl(215, 100%, 6%);\n\t\t--info-border: hsl(223, 43%, 17%);\n\t\t--info-text: hsl(216, 87%, 65%);\n\n\t\t--warning-bg: hsl(64, 100%, 6%);\n\t\t--warning-border: hsl(60, 100%, 9%);\n\t\t--warning-text: hsl(46, 87%, 65%);\n\n\t\t--error-bg: hsl(358, 76%, 10%);\n\t\t--error-border: hsl(357, 89%, 16%);\n\t\t--error-text: hsl(358, 100%, 81%);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']\n\t\t[data-sonner-toast]\n\t\t[data-close-button]) {\n\t\tbackground: var(--normal-bg);\n\t\tborder-color: var(--normal-border);\n\t\tcolor: var(--normal-text);\n\t}\n\n\t:global([data-sonner-toaster][data-sonner-theme='dark']\n\t\t[data-sonner-toast]\n\t\t[data-close-button]:hover) {\n\t\tbackground: var(--normal-bg-hover);\n\t\tborder-color: var(--normal-border-hover);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='success']) {\n\t\tbackground: var(--success-bg);\n\t\tborder-color: var(--success-border);\n\t\tcolor: var(--success-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='success']\n\t\t[data-close-button]) {\n\t\tbackground: var(--success-bg);\n\t\tborder-color: var(--success-border);\n\t\tcolor: var(--success-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='info']) {\n\t\tbackground: var(--info-bg);\n\t\tborder-color: var(--info-border);\n\t\tcolor: var(--info-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='info']\n\t\t[data-close-button]) {\n\t\tbackground: var(--info-bg);\n\t\tborder-color: var(--info-border);\n\t\tcolor: var(--info-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='warning']) {\n\t\tbackground: var(--warning-bg);\n\t\tborder-color: var(--warning-border);\n\t\tcolor: var(--warning-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='warning']\n\t\t[data-close-button]) {\n\t\tbackground: var(--warning-bg);\n\t\tborder-color: var(--warning-border);\n\t\tcolor: var(--warning-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='error']) {\n\t\tbackground: var(--error-bg);\n\t\tborder-color: var(--error-border);\n\t\tcolor: var(--error-text);\n\t}\n\n\t:global([data-rich-colors='true'][data-sonner-toast][data-type='error']\n\t\t[data-close-button]) {\n\t\tbackground: var(--error-bg);\n\t\tborder-color: var(--error-border);\n\t\tcolor: var(--error-text);\n\t}\n\n\t:global(.sonner-loading-wrapper) {\n\t\t--size: 16px;\n\t\theight: var(--size);\n\t\twidth: var(--size);\n\t\tposition: absolute;\n\t\tinset: 0;\n\t\tz-index: 10;\n\t}\n\n\t:global(.sonner-loading-wrapper[data-visible='false']) {\n\t\ttransform-origin: center;\n\t\tanimation: sonner-fade-out 0.2s ease forwards;\n\t}\n\n\t:global(.sonner-spinner) {\n\t\tposition: relative;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\theight: var(--size);\n\t\twidth: var(--size);\n\t}\n\n\t:global(.sonner-loading-bar) {\n\t\tanimation: sonner-spin 1.2s linear infinite;\n\t\tbackground: var(--gray11);\n\t\tborder-radius: 6px;\n\t\theight: 8%;\n\t\tleft: -10%;\n\t\tposition: absolute;\n\t\ttop: -3.9%;\n\t\twidth: 24%;\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(1)) {\n\t\tanimation-delay: -1.2s;\n\t\ttransform: rotate(0.0001deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(2)) {\n\t\tanimation-delay: -1.1s;\n\t\ttransform: rotate(30deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(3)) {\n\t\tanimation-delay: -1s;\n\t\ttransform: rotate(60deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(4)) {\n\t\tanimation-delay: -0.9s;\n\t\ttransform: rotate(90deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(5)) {\n\t\tanimation-delay: -0.8s;\n\t\ttransform: rotate(120deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(6)) {\n\t\tanimation-delay: -0.7s;\n\t\ttransform: rotate(150deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(7)) {\n\t\tanimation-delay: -0.6s;\n\t\ttransform: rotate(180deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(8)) {\n\t\tanimation-delay: -0.5s;\n\t\ttransform: rotate(210deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(9)) {\n\t\tanimation-delay: -0.4s;\n\t\ttransform: rotate(240deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(10)) {\n\t\tanimation-delay: -0.3s;\n\t\ttransform: rotate(270deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(11)) {\n\t\tanimation-delay: -0.2s;\n\t\ttransform: rotate(300deg) translate(146%);\n\t}\n\n\t:global(.sonner-loading-bar:nth-child(12)) {\n\t\tanimation-delay: -0.1s;\n\t\ttransform: rotate(330deg) translate(146%);\n\t}\n\n\t@keyframes -global-sonner-fade-in {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t\ttransform: scale(0.8);\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n\n\t@keyframes -global-sonner-fade-out {\n\t\t0% {\n\t\t\topacity: 1;\n\t\t\ttransform: scale(1);\n\t\t}\n\t\t100% {\n\t\t\topacity: 0;\n\t\t\ttransform: scale(0.8);\n\t\t}\n\t}\n\n\t@keyframes -global-sonner-spin {\n\t\t0% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 0.15;\n\t\t}\n\t}\n\n\t@media (prefers-reduced-motion) {\n\t\t:global([data-sonner-toast]),\n\t\t:global([data-sonner-toast]) > :global(*),\n\t\t:global(.sonner-loading-bar) {\n\t\t\ttransition: none !important;\n\t\t\tanimation: none !important;\n\t\t}\n\t}\n\n\t:global(.sonner-loader) {\n\t\tposition: absolute;\n\t\ttop: 50%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, -50%);\n\t\ttransform-origin: center;\n\t\ttransition:\n\t\t\topacity 200ms,\n\t\t\ttransform 200ms;\n\t}\n\n\t:global(.sonner-loader[data-visible='false']) {\n\t\topacity: 0;\n\t\ttransform: scale(0.8) translate(-50%, -50%);\n\t}\n</style>\n","import { MediaQuery } from \"svelte/reactivity\";\n\nconst DEFAULT_MOBILE_BREAKPOINT = 768;\n\nexport class IsMobile extends MediaQuery {\n\tconstructor(breakpoint: number = DEFAULT_MOBILE_BREAKPOINT) {\n\t\tsuper(`max-width: ${breakpoint - 1}px`);\n\t}\n}\n","export const SIDEBAR_COOKIE_NAME = \"sidebar:state\";\nexport const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;\nexport const SIDEBAR_WIDTH = \"16rem\";\nexport const SIDEBAR_WIDTH_MOBILE = \"18rem\";\nexport const SIDEBAR_WIDTH_ICON = \"3rem\";\nexport const SIDEBAR_KEYBOARD_SHORTCUT = \"b\";\n","import { IsMobile } from \"$lib/hooks/is-mobile.svelte.js\";\nimport { getContext, setContext } from \"svelte\";\nimport { SIDEBAR_KEYBOARD_SHORTCUT } from \"./constants.js\";\n\ntype Getter<T> = () => T;\n\nexport type SidebarStateProps = {\n\t/**\n\t * A getter function that returns the current open state of the sidebar.\n\t * We use a getter function here to support `bind:open` on the `Sidebar.Provider`\n\t * component.\n\t */\n\topen: Getter<boolean>;\n\n\t/**\n\t * A function that sets the open state of the sidebar. To support `bind:open`, we need\n\t * a source of truth for changing the open state to ensure it will be synced throughout\n\t * the sub-components and any `bind:` references.\n\t */\n\tsetOpen: (open: boolean) => void;\n};\n\nclass SidebarState {\n\treadonly props: SidebarStateProps;\n\topen = $derived.by(() => this.props.open());\n\topenMobile = $state(false);\n\tsetOpen: SidebarStateProps[\"setOpen\"];\n\t#isMobile: IsMobile;\n\tstate = $derived.by(() => (this.open ? \"expanded\" : \"collapsed\"));\n\n\tconstructor(props: SidebarStateProps) {\n\t\tthis.setOpen = props.setOpen;\n\t\tthis.#isMobile = new IsMobile();\n\t\tthis.props = props;\n\t}\n\n\t// Convenience getter for checking if the sidebar is mobile\n\t// without this, we would need to use `sidebar.isMobile.current` everywhere\n\tget isMobile() {\n\t\treturn this.#isMobile.current;\n\t}\n\n\t// Event handler to apply to the `<svelte:window>`\n\thandleShortcutKeydown = (e: KeyboardEvent) => {\n\t\tif (e.key === SIDEBAR_KEYBOARD_SHORTCUT && (e.metaKey || e.ctrlKey)) {\n\t\t\te.preventDefault();\n\t\t\tthis.toggle();\n\t\t}\n\t};\n\n\tsetOpenMobile = (value: boolean) => {\n\t\tthis.openMobile = value;\n\t};\n\n\ttoggle = () => {\n\t\treturn this.#isMobile.current\n\t\t\t? (this.openMobile = !this.openMobile)\n\t\t\t: this.setOpen(!this.open);\n\t};\n}\n\nconst SYMBOL_KEY = \"scn-sidebar\";\n\n/**\n * Instantiates a new `SidebarState` instance and sets it in the context.\n *\n * @param props The constructor props for the `SidebarState` class.\n * @returns The `SidebarState` instance.\n */\nexport function setSidebar(props: SidebarStateProps): SidebarState {\n\treturn setContext(Symbol.for(SYMBOL_KEY), new SidebarState(props));\n}\n\n/**\n * Retrieves the `SidebarState` instance from the context. This is a class instance,\n * so you cannot destructure it.\n * @returns The `SidebarState` instance.\n */\nexport function useSidebar(): SidebarState {\n\treturn getContext(Symbol.for(SYMBOL_KEY));\n}\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sidebar-content\"\n\tdata-sidebar=\"content\"\n\tclass={cn(\n\t\t\"flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sidebar-footer\"\n\tdata-sidebar=\"footer\"\n\tclass={cn(\"flex flex-col gap-2 p-2\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sidebar-group-content\"\n\tdata-sidebar=\"group-content\"\n\tclass={cn(\"w-full text-sm\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sidebar-group\"\n\tdata-sidebar=\"group\"\n\tclass={cn(\"relative flex w-full min-w-0 flex-col p-2\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sidebar-header\"\n\tdata-sidebar=\"header\"\n\tclass={cn(\"flex flex-col gap-2 p-2\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();\n</script>\n\n<main\n\tbind:this={ref}\n\tdata-slot=\"sidebar-inset\"\n\tclass={cn(\n\t\t\"bg-background relative flex min-w-0 w-full flex-1 flex-col\",\n\t\t\"md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</main>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuGroupProps } from \"../types.js\";\n\timport { MenuGroupState } from \"../menu.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tid = createId(uid),\n\t\t...restProps\n\t}: MenuGroupProps = $props();\n\n\tconst groupState = MenuGroupState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\tconst mergedProps = $derived(mergeProps(restProps, groupState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<div {...mergedProps}>\n\t\t{@render children?.()}\n\t</div>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport { DialogRootState } from \"../dialog.svelte.js\";\n\timport type { DialogRootProps } from \"../types.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tchildren,\n\t}: DialogRootProps = $props();\n\n\tDialogRootState.create({\n\t\tvariant: boxWith(() => \"dialog\"),\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange(v);\n\t\t\t}\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n{@render children?.()}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { DialogCloseState } from \"../dialog.svelte.js\";\n\timport type { DialogCloseProps } from \"../types.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tdisabled = false,\n\t\t...restProps\n\t}: DialogCloseProps = $props();\n\n\tconst closeState = DialogCloseState.create({\n\t\tvariant: boxWith(() => \"close\"),\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tdisabled: boxWith(() => Boolean(disabled)),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, closeState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport { DialogContentState } from \"../dialog.svelte.js\";\n\timport type { DialogContentProps } from \"../types.js\";\n\timport DismissibleLayer from \"../../utilities/dismissible-layer/dismissible-layer.svelte\";\n\timport EscapeLayer from \"../../utilities/escape-layer/escape-layer.svelte\";\n\timport FocusScope from \"../../utilities/focus-scope/focus-scope.svelte\";\n\timport TextSelectionLayer from \"../../utilities/text-selection-layer/text-selection-layer.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport ScrollLock from \"../../utilities/scroll-lock/scroll-lock.svelte\";\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tchildren,\n\t\tchild,\n\t\tref = $bindable(null),\n\t\tforceMount = false,\n\t\tonCloseAutoFocus = noop,\n\t\tonOpenAutoFocus = noop,\n\t\tonEscapeKeydown = noop,\n\t\tonInteractOutside = noop,\n\t\ttrapFocus = true,\n\t\tpreventScroll = true,\n\t\trestoreScrollDelay = null,\n\t\t...restProps\n\t}: DialogContentProps = $props();\n\n\tconst contentState = DialogContentState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, contentState.props));\n</script>\n\n{#if contentState.shouldRender || forceMount}\n\t<FocusScope\n\t\tref={contentState.opts.ref}\n\t\tloop\n\t\t{trapFocus}\n\t\tenabled={contentState.root.opts.open.current}\n\t\t{onOpenAutoFocus}\n\t\t{onCloseAutoFocus}\n\t>\n\t\t{#snippet focusScope({ props: focusScopeProps })}\n\t\t\t<EscapeLayer\n\t\t\t\t{...mergedProps}\n\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\tref={contentState.opts.ref}\n\t\t\t\tonEscapeKeydown={(e) => {\n\t\t\t\t\tonEscapeKeydown(e);\n\t\t\t\t\tif (e.defaultPrevented) return;\n\t\t\t\t\tcontentState.root.handleClose();\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<DismissibleLayer\n\t\t\t\t\t{...mergedProps}\n\t\t\t\t\tref={contentState.opts.ref}\n\t\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\t\tonInteractOutside={(e) => {\n\t\t\t\t\t\tonInteractOutside(e);\n\t\t\t\t\t\tif (e.defaultPrevented) return;\n\t\t\t\t\t\tcontentState.root.handleClose();\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<TextSelectionLayer\n\t\t\t\t\t\t{...mergedProps}\n\t\t\t\t\t\tref={contentState.opts.ref}\n\t\t\t\t\t\tenabled={contentState.root.opts.open.current}\n\t\t\t\t\t>\n\t\t\t\t\t\t{#if child}\n\t\t\t\t\t\t\t{#if contentState.root.opts.open.current}\n\t\t\t\t\t\t\t\t<ScrollLock {preventScroll} {restoreScrollDelay} />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{@render child({\n\t\t\t\t\t\t\t\tprops: mergeProps(mergedProps, focusScopeProps),\n\t\t\t\t\t\t\t\t...contentState.snippetProps,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t<ScrollLock {preventScroll} />\n\t\t\t\t\t\t\t<div {...mergeProps(mergedProps, focusScopeProps)}>\n\t\t\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t</TextSelectionLayer>\n\t\t\t\t</DismissibleLayer>\n\t\t\t</EscapeLayer>\n\t\t{/snippet}\n\t</FocusScope>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { TooltipProviderProps } from \"../types.js\";\n\timport { TooltipProviderState } from \"../tooltip.svelte.js\";\n\n\tlet {\n\t\tchildren,\n\t\tdelayDuration = 700,\n\t\tdisableCloseOnTriggerClick = false,\n\t\tdisableHoverableContent = false,\n\t\tdisabled = false,\n\t\tignoreNonKeyboardFocus = false,\n\t\tskipDelayDuration = 300,\n\t}: TooltipProviderProps = $props();\n\n\tTooltipProviderState.create({\n\t\tdelayDuration: boxWith(() => delayDuration),\n\t\tdisableCloseOnTriggerClick: boxWith(() => disableCloseOnTriggerClick),\n\t\tdisableHoverableContent: boxWith(() => disableHoverableContent),\n\t\tdisabled: boxWith(() => disabled),\n\t\tignoreNonKeyboardFocus: boxWith(() => ignoreNonKeyboardFocus),\n\t\tskipDelayDuration: boxWith(() => skipDelayDuration),\n\t});\n</script>\n\n{@render children?.()}\n","<script lang=\"ts\">\n\timport { Tooltip as TooltipPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: TooltipPrimitive.ProviderProps = $props();\n</script>\n\n<TooltipPrimitive.Provider {...restProps} />\n","<script lang=\"ts\" module>\n\timport { tv, type VariantProps } from \"tailwind-variants\";\n\n\texport const sidebarMenuButtonVariants = tv({\n\t\tbase: \"peer/menu-button ring-sidebar-ring data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10 active:bg-sidebar-accent data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:data-[active=false]:hover:bg-gray-100 dark:data-[state=open]:data-[active=false]:hover:bg-white/10 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0\",\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: \"data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10\",\n\t\t\t\toutline:\n\t\t\t\t\t\"bg-background data-[active=false]:hover:bg-gray-100 dark:data-[active=false]:hover:bg-white/10 shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-border)]\",\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: \"h-8 text-sm\",\n\t\t\t\tsm: \"h-7 text-xs\",\n\t\t\t\tlg: \"h-12 text-sm group-data-[collapsible=icon]:p-0!\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t\tsize: \"default\",\n\t\t},\n\t});\n\n\texport type SidebarMenuButtonVariant = VariantProps<\n\t\ttypeof sidebarMenuButtonVariants\n\t>[\"variant\"];\n\texport type SidebarMenuButtonSize = VariantProps<typeof sidebarMenuButtonVariants>[\"size\"];\n</script>\n\n<script lang=\"ts\">\n\timport * as Tooltip from \"$lib/components/ui/tooltip/index.js\";\n\timport { cn, type WithElementRef, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport { mergeProps } from \"bits-ui\";\n\timport type { ComponentProps, Snippet } from \"svelte\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { useSidebar } from \"./context.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\tchild,\n\t\tvariant = \"default\",\n\t\tsize = \"default\",\n\t\tisActive = false,\n\t\ttooltipContent,\n\t\ttooltipContentProps,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {\n\t\tisActive?: boolean;\n\t\tvariant?: SidebarMenuButtonVariant;\n\t\tsize?: SidebarMenuButtonSize;\n\t\ttooltipContent?: Snippet | string;\n\t\ttooltipContentProps?: WithoutChildrenOrChild<ComponentProps<typeof Tooltip.Content>>;\n\t\tchild?: Snippet<[{ props: Record<string, unknown> }]>;\n\t} = $props();\n\n\tconst sidebar = useSidebar();\n\n\tconst buttonProps = $derived({\n\t\tclass: cn(sidebarMenuButtonVariants({ variant, size }), className),\n\t\t\"data-slot\": \"sidebar-menu-button\",\n\t\t\"data-sidebar\": \"menu-button\",\n\t\t\"data-size\": size,\n\t\t\"data-active\": isActive,\n\t\t...restProps,\n\t});\n</script>\n\n{#snippet Button({ props }: { props?: Record<string, unknown> })}\n\t{@const mergedProps = mergeProps(buttonProps, props)}\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<button bind:this={ref} {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</button>\n\t{/if}\n{/snippet}\n\n{#if !tooltipContent}\n\t{@render Button({})}\n{:else}\n\t<Tooltip.Root>\n\t\t<Tooltip.Trigger>\n\t\t\t{#snippet child({ props })}\n\t\t\t\t{@render Button({ props })}\n\t\t\t{/snippet}\n\t\t</Tooltip.Trigger>\n\t\t<Tooltip.Content\n\t\t\tside=\"right\"\n\t\t\talign=\"center\"\n\t\t\thidden={sidebar.state !== \"collapsed\" || sidebar.isMobile}\n\t\t\t{...tooltipContentProps}\n\t\t>\n\t\t\t{#if typeof tooltipContent === \"string\"}\n\t\t\t\t{tooltipContent}\n\t\t\t{:else if tooltipContent}\n\t\t\t\t{@render tooltipContent()}\n\t\t\t{/if}\n\t\t</Tooltip.Content>\n\t</Tooltip.Root>\n{/if}\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLLIElement>, HTMLLIElement> = $props();\n</script>\n\n<li\n\tbind:this={ref}\n\tdata-slot=\"sidebar-menu-item\"\n\tdata-sidebar=\"menu-item\"\n\tclass={cn(\"group/menu-item relative\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</li>\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLUListElement>, HTMLUListElement> = $props();\n</script>\n\n<ul\n\tbind:this={ref}\n\tdata-slot=\"sidebar-menu\"\n\tdata-sidebar=\"menu\"\n\tclass={cn(\"flex w-full min-w-0 flex-col gap-1\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</ul>\n","<script lang=\"ts\">\n\timport * as Tooltip from \"$lib/components/ui/tooltip/index.js\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport {\n\t\tSIDEBAR_COOKIE_MAX_AGE,\n\t\tSIDEBAR_COOKIE_NAME,\n\t\tSIDEBAR_WIDTH,\n\t\tSIDEBAR_WIDTH_ICON,\n\t} from \"./constants.js\";\n\timport { setSidebar } from \"./context.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\topen = $bindable(true),\n\t\tonOpenChange = () => {},\n\t\tclass: className,\n\t\tstyle,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {\n\t\topen?: boolean;\n\t\tonOpenChange?: (open: boolean) => void;\n\t} = $props();\n\n\tconst sidebar = setSidebar({\n\t\topen: () => open,\n\t\tsetOpen: (value: boolean) => {\n\t\t\topen = value;\n\t\t\tonOpenChange(value);\n\n\t\t\t// This sets the cookie to keep the sidebar state.\n\t\t\tdocument.cookie = `${SIDEBAR_COOKIE_NAME}=${open}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;\n\t\t},\n\t});\n</script>\n\n<svelte:window onkeydown={sidebar.handleShortcutKeydown} />\n\n<Tooltip.Provider delayDuration={0}>\n\t<div\n\t\tdata-slot=\"sidebar-wrapper\"\n\t\tstyle=\"--sidebar-width: {SIDEBAR_WIDTH}; --sidebar-width-icon: {SIDEBAR_WIDTH_ICON}; {style}\"\n\t\tclass={cn(\n\t\t\t\"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full\",\n\t\t\tclassName\n\t\t)}\n\t\tbind:this={ref}\n\t\t{...restProps}\n\t>\n\t\t{@render children?.()}\n\t</div>\n</Tooltip.Provider>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"rect\", { \"width\": \"18\", \"height\": \"18\", \"x\": \"3\", \"y\": \"3\", \"rx\": \"2\" }], [\"path\", { \"d\": \"M9 3v18\" }]];\n/**\n * @component @name PanelLeft\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjMiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik05IDN2MTgiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/panel-left\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"panel-left\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport { Button } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\timport PanelLeftIcon from \"@lucide/svelte/icons/panel-left\";\n\timport type { ComponentProps } from \"svelte\";\n\timport { useSidebar } from \"./context.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tonclick,\n\t\t...restProps\n\t}: ComponentProps<typeof Button> & {\n\t\tonclick?: (e: MouseEvent) => void;\n\t} = $props();\n\n\tconst sidebar = useSidebar();\n</script>\n\n<Button\n\tdata-sidebar=\"trigger\"\n\tdata-slot=\"sidebar-trigger\"\n\tvariant=\"ghost\"\n\tsize=\"icon\"\n\tclass={cn(\"size-7\", className)}\n\ttype=\"button\"\n\tonclick={(e) => {\n\t\tonclick?.(e);\n\t\tsidebar.toggle();\n\t}}\n\t{...restProps}\n>\n\t<PanelLeftIcon />\n\t<span class=\"sr-only\">Toggle Sidebar</span>\n</Button>\n","<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\n\tlet { open = $bindable(false), ...restProps }: SheetPrimitive.RootProps = $props();\n</script>\n\n<SheetPrimitive.Root bind:open {...restProps} />\n","<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\n\tlet { ...restProps }: SheetPrimitive.PortalProps = $props();\n</script>\n\n<SheetPrimitive.Portal {...restProps} />\n","<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: SheetPrimitive.OverlayProps = $props();\n</script>\n\n<SheetPrimitive.Overlay\n\tbind:ref\n\tdata-slot=\"sheet-overlay\"\n\tclass={cn(\n\t\t\"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\" module>\n\timport { tv, type VariantProps } from \"tailwind-variants\";\n\texport const sheetVariants = tv({\n\t\tbase: \"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n\t\tvariants: {\n\t\t\tside: {\n\t\t\t\ttop: \"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b\",\n\t\t\t\tbottom: \"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t\",\n\t\t\t\tleft: \"data-[state=closed]:slide-out-to-start data-[state=open]:slide-in-from-start inset-y-0 start-0 h-full w-3/4 border-e sm:max-w-sm\",\n\t\t\t\tright: \"data-[state=closed]:slide-out-to-end data-[state=open]:slide-in-from-end inset-y-0 end-0 h-full w-3/4 border-s sm:max-w-sm\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tside: \"right\",\n\t\t},\n\t});\n\n\texport type Side = VariantProps<typeof sheetVariants>[\"side\"];\n</script>\n\n<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\timport XIcon from \"@lucide/svelte/icons/x\";\n\timport type { Snippet } from \"svelte\";\n\timport SheetPortal from \"./sheet-portal.svelte\";\n\timport SheetOverlay from \"./sheet-overlay.svelte\";\n\timport { cn, type WithoutChildrenOrChild } from \"$lib/utils.js\";\n\timport type { ComponentProps } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tside = \"right\",\n\t\tportalProps,\n\t\tchildren,\n\t\t...restProps\n\t}: WithoutChildrenOrChild<SheetPrimitive.ContentProps> & {\n\t\tportalProps?: WithoutChildrenOrChild<ComponentProps<typeof SheetPortal>>;\n\t\tside?: Side;\n\t\tchildren: Snippet;\n\t} = $props();\n</script>\n\n<SheetPortal {...portalProps}>\n\t<SheetOverlay />\n\t<SheetPrimitive.Content\n\t\tbind:ref\n\t\tdata-slot=\"sheet-content\"\n\t\tclass={cn(sheetVariants({ side }), className)}\n\t\t{...restProps}\n\t>\n\t\t{@render children?.()}\n\t\t<SheetPrimitive.Close\n\t\t\tclass=\"ring-offset-background focus-visible:ring-ring absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none\"\n\t\t>\n\t\t\t<XIcon class=\"size-4\" />\n\t\t\t<span class=\"sr-only\">Close</span>\n\t\t</SheetPrimitive.Close>\n\t</SheetPrimitive.Content>\n</SheetPortal>\n","<script lang=\"ts\">\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"sheet-header\"\n\tclass={cn(\"flex flex-col gap-1.5 p-4\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: SheetPrimitive.TitleProps = $props();\n</script>\n\n<SheetPrimitive.Title\n\tbind:ref\n\tdata-slot=\"sheet-title\"\n\tclass={cn(\"text-foreground font-semibold\", className)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Dialog as SheetPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: SheetPrimitive.DescriptionProps = $props();\n</script>\n\n<SheetPrimitive.Description\n\tbind:ref\n\tdata-slot=\"sheet-description\"\n\tclass={cn(\"text-muted-foreground text-sm\", className)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport * as Sheet from \"$lib/components/ui/sheet/index.js\";\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\timport { SIDEBAR_WIDTH_MOBILE } from \"./constants.js\";\n\timport { useSidebar } from \"./context.svelte.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tside = \"left\",\n\t\tvariant = \"sidebar\",\n\t\tcollapsible = \"offcanvas\",\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {\n\t\tside?: \"left\" | \"right\";\n\t\tvariant?: \"sidebar\" | \"floating\" | \"inset\";\n\t\tcollapsible?: \"offcanvas\" | \"icon\" | \"none\";\n\t} = $props();\n\n\tconst sidebar = useSidebar();\n</script>\n\n{#if collapsible === \"none\"}\n\t<div\n\t\tclass={cn(\n\t\t\t\"bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col\",\n\t\t\tclassName\n\t\t)}\n\t\tbind:this={ref}\n\t\t{...restProps}\n\t>\n\t\t{@render children?.()}\n\t</div>\n{:else if sidebar.isMobile}\n\t<Sheet.Root\n\t\tbind:open={() => sidebar.openMobile, (v) => sidebar.setOpenMobile(v)}\n\t\t{...restProps}\n\t>\n\t\t<Sheet.Content\n\t\t\tdata-sidebar=\"sidebar\"\n\t\t\tdata-slot=\"sidebar\"\n\t\t\tdata-mobile=\"true\"\n\t\t\tclass=\"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden\"\n\t\t\tstyle=\"--sidebar-width: {SIDEBAR_WIDTH_MOBILE};\"\n\t\t\t{side}\n\t\t>\n\t\t\t<Sheet.Header class=\"sr-only\">\n\t\t\t\t<Sheet.Title>Sidebar</Sheet.Title>\n\t\t\t\t<Sheet.Description>Displays the mobile sidebar.</Sheet.Description>\n\t\t\t</Sheet.Header>\n\t\t\t<div class=\"flex h-full w-full flex-col\">\n\t\t\t\t{@render children?.()}\n\t\t\t</div>\n\t\t</Sheet.Content>\n\t</Sheet.Root>\n{:else}\n\t<div\n\t\tbind:this={ref}\n\t\tclass=\"text-sidebar-foreground group peer hidden md:block\"\n\t\tdata-state={sidebar.state}\n\t\tdata-collapsible={sidebar.state === \"collapsed\" ? collapsible : \"\"}\n\t\tdata-variant={variant}\n\t\tdata-side={side}\n\t\tdata-slot=\"sidebar\"\n\t>\n\t\t<!-- This is what handles the sidebar gap on desktop -->\n\t\t<div\n\t\t\tdata-slot=\"sidebar-gap\"\n\t\t\tclass={cn(\n\t\t\t\t\"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear\",\n\t\t\t\t\"group-data-[collapsible=offcanvas]:w-0\",\n\t\t\t\t\"group-data-[side=right]:rotate-180\",\n\t\t\t\tvariant === \"floating\" || variant === \"inset\"\n\t\t\t\t\t? \"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]\"\n\t\t\t\t\t: \"group-data-[collapsible=icon]:w-(--sidebar-width-icon)\"\n\t\t\t)}\n\t\t></div>\n\t\t<div\n\t\t\tdata-slot=\"sidebar-container\"\n\t\t\tclass={cn(\n\t\t\t\t\"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex\",\n\t\t\t\tside === \"left\"\n\t\t\t\t\t? \"start-0 group-data-[collapsible=offcanvas]:start-[calc(var(--sidebar-width)*-1)]\"\n\t\t\t\t\t: \"end-0 group-data-[collapsible=offcanvas]:end-[calc(var(--sidebar-width)*-1)]\",\n\t\t\t\t// Adjust the padding for floating and inset variants.\n\t\t\t\tvariant === \"floating\" || variant === \"inset\"\n\t\t\t\t\t? \"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]\"\n\t\t\t\t\t: \"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s\",\n\t\t\t\tclassName\n\t\t\t)}\n\t\t\t{...restProps}\n\t\t>\n\t\t\t<div\n\t\t\t\tdata-sidebar=\"sidebar\"\n\t\t\t\tdata-slot=\"sidebar-inner\"\n\t\t\t\tclass=\"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm\"\n\t\t\t>\n\t\t\t\t{@render children?.()}\n\t\t\t</div>\n\t\t</div>\n\t</div>\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M10.268 21a2 2 0 0 0 3.464 0\" }], [\"path\", { \"d\": \"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326\" }]];\n/**\n * @component @name Bell\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTAuMjY4IDIxYTIgMiAwIDAgMCAzLjQ2NCAwIiAvPgogIDxwYXRoIGQ9Ik0zLjI2MiAxNS4zMjZBMSAxIDAgMCAwIDQgMTdoMTZhMSAxIDAgMCAwIC43NC0xLjY3M0MxOS40MSAxMy45NTYgMTggMTIuNDk5IDE4IDhBNiA2IDAgMCAwIDYgOGMwIDQuNDk5LTEuNDExIDUuOTU2LTIuNzM4IDcuMzI2IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/bell\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"bell\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M12 7v14\" }], [\"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\" }]];\n/**\n * @component @name BookOpen\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgN3YxNCIgLz4KICA8cGF0aCBkPSJNMyAxOGExIDEgMCAwIDEtMS0xVjRhMSAxIDAgMCAxIDEtMWg1YTQgNCAwIDAgMSA0IDQgNCA0IDAgMCAxIDQtNGg1YTEgMSAwIDAgMSAxIDF2MTNhMSAxIDAgMCAxLTEgMWgtNmEzIDMgMCAwIDAtMyAzIDMgMyAwIDAgMC0zLTN6IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/book-open\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"book-open\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M12 20v-9\" }], [\"path\", { \"d\": \"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z\" }], [\"path\", { \"d\": \"M14.12 3.88 16 2\" }], [\"path\", { \"d\": \"M21 21a4 4 0 0 0-3.81-4\" }], [\"path\", { \"d\": \"M21 5a4 4 0 0 1-3.55 3.97\" }], [\"path\", { \"d\": \"M22 13h-4\" }], [\"path\", { \"d\": \"M3 21a4 4 0 0 1 3.81-4\" }], [\"path\", { \"d\": \"M3 5a4 4 0 0 0 3.55 3.97\" }], [\"path\", { \"d\": \"M6 13H2\" }], [\"path\", { \"d\": \"m8 2 1.88 1.88\" }], [\"path\", { \"d\": \"M9 7.13V6a3 3 0 1 1 6 0v1.13\" }]];\n/**\n * @component @name Bug\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMjB2LTkiIC8+CiAgPHBhdGggZD0iTTE0IDdhNCA0IDAgMCAxIDQgNHYzYTYgNiAwIDAgMS0xMiAwdi0zYTQgNCAwIDAgMSA0LTR6IiAvPgogIDxwYXRoIGQ9Ik0xNC4xMiAzLjg4IDE2IDIiIC8+CiAgPHBhdGggZD0iTTIxIDIxYTQgNCAwIDAgMC0zLjgxLTQiIC8+CiAgPHBhdGggZD0iTTIxIDVhNCA0IDAgMCAxLTMuNTUgMy45NyIgLz4KICA8cGF0aCBkPSJNMjIgMTNoLTQiIC8+CiAgPHBhdGggZD0iTTMgMjFhNCA0IDAgMCAxIDMuODEtNCIgLz4KICA8cGF0aCBkPSJNMyA1YTQgNCAwIDAgMCAzLjU1IDMuOTciIC8+CiAgPHBhdGggZD0iTTYgMTNIMiIgLz4KICA8cGF0aCBkPSJtOCAyIDEuODggMS44OCIgLz4KICA8cGF0aCBkPSJNOSA3LjEzVjZhMyAzIDAgMSAxIDYgMHYxLjEzIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/bug\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"bug\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M12 16v5\" }], [\"path\", { \"d\": \"M16 14v7\" }], [\"path\", { \"d\": \"M20 10v11\" }], [\"path\", { \"d\": \"m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15\" }], [\"path\", { \"d\": \"M4 18v3\" }], [\"path\", { \"d\": \"M8 14v7\" }]];\n/**\n * @component @name ChartNoAxesCombined\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMTZ2NSIgLz4KICA8cGF0aCBkPSJNMTYgMTR2NyIgLz4KICA8cGF0aCBkPSJNMjAgMTB2MTEiIC8+CiAgPHBhdGggZD0ibTIyIDMtOC42NDYgOC42NDZhLjUuNSAwIDAgMS0uNzA4IDBMOS4zNTQgOC4zNTRhLjUuNSAwIDAgMC0uNzA3IDBMMiAxNSIgLz4KICA8cGF0aCBkPSJNNCAxOHYzIiAvPgogIDxwYXRoIGQ9Ik04IDE0djciIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/chart-no-axes-combined\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chart-no-axes-combined\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"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\" }], [\"path\", { \"d\": \"M14 2v5a1 1 0 0 0 1 1h5\" }], [\"path\", { \"d\": \"M10 9H8\" }], [\"path\", { \"d\": \"M16 13H8\" }], [\"path\", { \"d\": \"M16 17H8\" }]];\n/**\n * @component @name FileText\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNiAyMmEyIDIgMCAwIDEtMi0yVjRhMiAyIDAgMCAxIDItMmg4YTIuNCAyLjQgMCAwIDEgMS43MDQuNzA2bDMuNTg4IDMuNTg4QTIuNCAyLjQgMCAwIDEgMjAgOHYxMmEyIDIgMCAwIDEtMiAyeiIgLz4KICA8cGF0aCBkPSJNMTQgMnY1YTEgMSAwIDAgMCAxIDFoNSIgLz4KICA8cGF0aCBkPSJNMTAgOUg4IiAvPgogIDxwYXRoIGQ9Ik0xNiAxM0g4IiAvPgogIDxwYXRoIGQ9Ik0xNiAxN0g4IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/file-text\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"file-text\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"rect\", { \"width\": \"18\", \"height\": \"18\", \"x\": \"3\", \"y\": \"3\", \"rx\": \"2\" }], [\"path\", { \"d\": \"M7 3v18\" }], [\"path\", { \"d\": \"M3 7.5h4\" }], [\"path\", { \"d\": \"M3 12h18\" }], [\"path\", { \"d\": \"M3 16.5h4\" }], [\"path\", { \"d\": \"M17 3v18\" }], [\"path\", { \"d\": \"M17 7.5h4\" }], [\"path\", { \"d\": \"M17 16.5h4\" }]];\n/**\n * @component @name Film\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjMiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik03IDN2MTgiIC8+CiAgPHBhdGggZD0iTTMgNy41aDQiIC8+CiAgPHBhdGggZD0iTTMgMTJoMTgiIC8+CiAgPHBhdGggZD0iTTMgMTYuNWg0IiAvPgogIDxwYXRoIGQ9Ik0xNyAzdjE4IiAvPgogIDxwYXRoIGQ9Ik0xNyA3LjVoNCIgLz4KICA8cGF0aCBkPSJNMTcgMTYuNWg0IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/film\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"film\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m12 14 4-4\" }], [\"path\", { \"d\": \"M3.34 19a10 10 0 1 1 17.32 0\" }]];\n/**\n * @component @name Gauge\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTIgMTQgNC00IiAvPgogIDxwYXRoIGQ9Ik0zLjM0IDE5YTEwIDEwIDAgMSAxIDE3LjMyIDAiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/gauge\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"gauge\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"rect\", { \"width\": \"7\", \"height\": \"9\", \"x\": \"3\", \"y\": \"3\", \"rx\": \"1\" }], [\"rect\", { \"width\": \"7\", \"height\": \"5\", \"x\": \"14\", \"y\": \"3\", \"rx\": \"1\" }], [\"rect\", { \"width\": \"7\", \"height\": \"9\", \"x\": \"14\", \"y\": \"12\", \"rx\": \"1\" }], [\"rect\", { \"width\": \"7\", \"height\": \"5\", \"x\": \"3\", \"y\": \"16\", \"rx\": \"1\" }]];\n/**\n * @component @name LayoutDashboard\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSI5IiB4PSIzIiB5PSIzIiByeD0iMSIgLz4KICA8cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSI1IiB4PSIxNCIgeT0iMyIgcng9IjEiIC8+CiAgPHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iOSIgeD0iMTQiIHk9IjEyIiByeD0iMSIgLz4KICA8cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSI1IiB4PSIzIiB5PSIxNiIgcng9IjEiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/layout-dashboard\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"layout-dashboard\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M9 17H7A5 5 0 0 1 7 7h2\" }], [\"path\", { \"d\": \"M15 7h2a5 5 0 1 1 0 10h-2\" }], [\"line\", { \"x1\": \"8\", \"x2\": \"16\", \"y1\": \"12\", \"y2\": \"12\" }]];\n/**\n * @component @name Link2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOSAxN0g3QTUgNSAwIDAgMSA3IDdoMiIgLz4KICA8cGF0aCBkPSJNMTUgN2gyYTUgNSAwIDEgMSAwIDEwaC0yIiAvPgogIDxsaW5lIHgxPSI4IiB4Mj0iMTYiIHkxPSIxMiIgeTI9IjEyIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/link-2\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"link-2\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M16 5H3\" }], [\"path\", { \"d\": \"M16 12H3\" }], [\"path\", { \"d\": \"M9 19H3\" }], [\"path\", { \"d\": \"m16 16-3 3 3 3\" }], [\"path\", { \"d\": \"M21 5v12a2 2 0 0 1-2 2h-6\" }]];\n/**\n * @component @name ListEnd\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTYgNUgzIiAvPgogIDxwYXRoIGQ9Ik0xNiAxMkgzIiAvPgogIDxwYXRoIGQ9Ik05IDE5SDMiIC8+CiAgPHBhdGggZD0ibTE2IDE2LTMgMyAzIDMiIC8+CiAgPHBhdGggZD0iTTIxIDV2MTJhMiAyIDAgMCAxLTIgMmgtNiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/list-end\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"list-end\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"m16 17 5-5-5-5\" }], [\"path\", { \"d\": \"M21 12H9\" }], [\"path\", { \"d\": \"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4\" }]];\n/**\n * @component @name LogOut\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTYgMTcgNS01LTUtNSIgLz4KICA8cGF0aCBkPSJNMjEgMTJIOSIgLz4KICA8cGF0aCBkPSJNOSAyMUg1YTIgMiAwIDAgMS0yLTJWNWEyIDIgMCAwIDEgMi0yaDQiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/log-out\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"log-out\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"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\" }]];\n/**\n * @component @name Moon\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjAuOTg1IDEyLjQ4NmE5IDkgMCAxIDEtOS40NzMtOS40NzJjLjQwNS0uMDIyLjYxNy40Ni40MDIuODAzYTYgNiAwIDAgMCA4LjI2OCA4LjI2OGMuMzQ0LS4yMTUuODI1LS4wMDQuODAzLjQwMSIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/moon\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"moon\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"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\" }], [\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"3\" }]];\n/**\n * @component @name Settings\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNOS42NzEgNC4xMzZhMi4zNCAyLjM0IDAgMCAxIDQuNjU5IDAgMi4zNCAyLjM0IDAgMCAwIDMuMzE5IDEuOTE1IDIuMzQgMi4zNCAwIDAgMSAyLjMzIDQuMDMzIDIuMzQgMi4zNCAwIDAgMCAwIDMuODMxIDIuMzQgMi4zNCAwIDAgMS0yLjMzIDQuMDMzIDIuMzQgMi4zNCAwIDAgMC0zLjMxOSAxLjkxNSAyLjM0IDIuMzQgMCAwIDEtNC42NTkgMCAyLjM0IDIuMzQgMCAwIDAtMy4zMi0xLjkxNSAyLjM0IDIuMzQgMCAwIDEtMi4zMy00LjAzMyAyLjM0IDIuMzQgMCAwIDAgMC0zLjgzMUEyLjM0IDIuMzQgMCAwIDEgNi4zNSA2LjA1MWEyLjM0IDIuMzQgMCAwIDAgMy4zMTktMS45MTUiIC8+CiAgPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMyIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/settings\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"settings\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"4\" }], [\"path\", { \"d\": \"M12 2v2\" }], [\"path\", { \"d\": \"M12 20v2\" }], [\"path\", { \"d\": \"m4.93 4.93 1.41 1.41\" }], [\"path\", { \"d\": \"m17.66 17.66 1.41 1.41\" }], [\"path\", { \"d\": \"M2 12h2\" }], [\"path\", { \"d\": \"M20 12h2\" }], [\"path\", { \"d\": \"m6.34 17.66-1.41 1.41\" }], [\"path\", { \"d\": \"m19.07 4.93-1.41 1.41\" }]];\n/**\n * @component @name Sun\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI0IiAvPgogIDxwYXRoIGQ9Ik0xMiAydjIiIC8+CiAgPHBhdGggZD0iTTEyIDIwdjIiIC8+CiAgPHBhdGggZD0ibTQuOTMgNC45MyAxLjQxIDEuNDEiIC8+CiAgPHBhdGggZD0ibTE3LjY2IDE3LjY2IDEuNDEgMS40MSIgLz4KICA8cGF0aCBkPSJNMiAxMmgyIiAvPgogIDxwYXRoIGQ9Ik0yMCAxMmgyIiAvPgogIDxwYXRoIGQ9Im02LjM0IDE3LjY2LTEuNDEgMS40MSIgLz4KICA8cGF0aCBkPSJtMTkuMDcgNC45My0xLjQxIDEuNDEiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/sun\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"sun\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"rect\", { \"width\": \"8\", \"height\": \"8\", \"x\": \"3\", \"y\": \"3\", \"rx\": \"2\" }], [\"path\", { \"d\": \"M7 11v4a2 2 0 0 0 2 2h4\" }], [\"rect\", { \"width\": \"8\", \"height\": \"8\", \"x\": \"13\", \"y\": \"13\", \"rx\": \"2\" }]];\n/**\n * @component @name Workflow\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB4PSIzIiB5PSIzIiByeD0iMiIgLz4KICA8cGF0aCBkPSJNNyAxMXY0YTIgMiAwIDAgMCAyIDJoNCIgLz4KICA8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiB4PSIxMyIgeT0iMTMiIHJ4PSIyIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/workflow\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"workflow\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport * as Sidebar from '$lib/components/ui/sidebar';\n\timport { useSidebar } from '$lib/components/ui/sidebar';\n\timport {\n\t\tBell,\n\t\tWorkflow,\n\t\tBug,\n\t\tLink2,\n\t\tChartNoAxesCombined,\n\t\tChartNoAxesGantt,\n\t\tFileText,\n\t\tFilm,\n\t\tGauge,\n\t\tListEnd,\n\t\tSettings,\n\t\tBookOpen\n\t} from '@lucide/svelte';\n\timport { themeState } from '$lib/state/theme.svelte';\n\timport { projectsState, isFrontendFramework, isCloudflareFramework } from '$lib/state/projects.svelte';\n\timport { LayoutDashboard } from '@lucide/svelte';\n\timport { page } from '$app/state';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\n\tinterface SidebarItem {\n\t\tIcon: typeof LayoutDashboard;\n\t\thref: string;\n\t\ttitle: string;\n\t\tstickyParams: string[];\n\t\tadminOnly?: boolean;\n\t\texternal?: boolean;\n\t}\n\n\tconst hiddenForFrontend = new Set(['Dashboard', 'Logs', 'Endpoints', 'Tasks', 'Metrics', 'AI Traces']);\n\tconst hiddenForCloudflare = new Set(['Metrics']);\n\t// Items that only make sense for frontend (browser) projects — dropped from\n\t// the sidebar for any other framework, so a Go backend project doesn't\n\t// surface a Sessions tab that can never be populated.\n\tconst frontendOnly = new Set(['Sessions']);\n\n\tconst allSidebarItems: SidebarItem[] = [\n\t\t{ Icon: LayoutDashboard, href: '/', title: 'Dashboard', stickyParams: [] },\n\t\t{ Icon: Bug, href: '/issues', title: 'Issues', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: FileText, href: '/logs', title: 'Logs', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: Gauge, href: '/endpoints', title: 'Endpoints', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: ListEnd, href: '/tasks', title: 'Tasks', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: Film, href: '/sessions', title: 'Sessions', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: Workflow, href: '/ai-traces', title: 'AI Traces', stickyParams: ['preset', 'from', 'to'] },\n\t\t{\n\t\t\tIcon: ChartNoAxesCombined,\n\t\t\thref: '/metrics',\n\t\t\ttitle: 'Metrics',\n\t\t\tstickyParams: ['preset', 'from', 'to']\n\t\t},\n\t\t{ Icon: Bell, href: '/notifications', title: 'Alerts', stickyParams: ['preset', 'from', 'to'] },\n\t\t{ Icon: Link2, href: '/connection', title: 'Connection', stickyParams: [] }\n\t];\n\n\tconst sidebarItems = $derived(\n\t\tprojectsState.currentProject && isFrontendFramework(projectsState.currentProject.framework)\n\t\t\t? allSidebarItems.filter((item) => !hiddenForFrontend.has(item.title))\n\t\t\t: projectsState.currentProject && isCloudflareFramework(projectsState.currentProject.framework)\n\t\t\t\t? allSidebarItems.filter((item) => !hiddenForCloudflare.has(item.title) && !frontendOnly.has(item.title))\n\t\t\t\t: allSidebarItems.filter((item) => !frontendOnly.has(item.title))\n\t);\n\n\tconst allSidebarItemsBottom: SidebarItem[] = [\n\t\t{\n\t\t\tIcon: BookOpen,\n\t\t\thref: 'https://docs.tracewayapp.com',\n\t\t\ttitle: 'Docs',\n\t\t\tstickyParams: [],\n\t\t\texternal: true\n\t\t},\n\t\t{ Icon: Settings, href: '/settings', title: 'Settings', stickyParams: [], adminOnly: true }\n\t];\n\n\tconst sidebarItemsBottom = $derived(\n\t\tallSidebarItemsBottom.filter((item) => !item.adminOnly || projectsState.canManageCurrentProject)\n\t);\n\n\tconst sidebar = useSidebar();\n</script>\n\n<Sidebar.Sidebar>\n\t<Sidebar.SidebarHeader class=\"flex items-start p-4\">\n\t\t{#if themeState.isDark}\n\t\t\t<img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-9 w-auto\" />\n\t\t{:else}\n\t\t\t<img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-9 w-auto\" />\n\t\t{/if}\n\t</Sidebar.SidebarHeader>\n\t<Sidebar.SidebarContent>\n\t\t<Sidebar.SidebarGroup class=\"p-4 pt-0 pb-0\">\n\t\t\t<Sidebar.SidebarGroupContent>\n\t\t\t\t<Sidebar.SidebarMenu>\n\t\t\t\t\t{#each sidebarItems as sidebarItem}\n\t\t\t\t\t\t<Sidebar.SidebarMenuItem>\n\t\t\t\t\t\t\t<Sidebar.SidebarMenuButton\n\t\t\t\t\t\t\t\tisActive={page.url.pathname === sidebarItem.href ||\n\t\t\t\t\t\t\t\t\tpage.url.pathname.startsWith(sidebarItem.href + '/')}\n\t\t\t\t\t\t\t\tonclick={(e) => {\n\t\t\t\t\t\t\t\t\tsidebar.setOpenMobile(false);\n\t\t\t\t\t\t\t\t\tcreateRowClickHandler(sidebarItem.href, ...sidebarItem.stickyParams)(e);\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<sidebarItem.Icon />\n\t\t\t\t\t\t\t\t<span>{sidebarItem.title}</span>\n\t\t\t\t\t\t\t</Sidebar.SidebarMenuButton>\n\t\t\t\t\t\t</Sidebar.SidebarMenuItem>\n\t\t\t\t\t{/each}\n\t\t\t\t</Sidebar.SidebarMenu>\n\t\t\t</Sidebar.SidebarGroupContent>\n\t\t</Sidebar.SidebarGroup>\n\n\t\t{#if sidebarItemsBottom.length}\n\t\t\t<div class=\"flex-1\"></div>\n\n\t\t\t<Sidebar.SidebarGroup class=\"p-4 pt-0\">\n\t\t\t\t<Sidebar.SidebarGroupContent>\n\t\t\t\t\t<Sidebar.SidebarMenu>\n\t\t\t\t\t\t{#each sidebarItemsBottom as sidebarItem}\n\t\t\t\t\t\t\t<Sidebar.SidebarMenuItem>\n\t\t\t\t\t\t\t\t{#if sidebarItem.external}\n\t\t\t\t\t\t\t\t\t<Sidebar.SidebarMenuButton\n\t\t\t\t\t\t\t\t\t\tonclick={() => {\n\t\t\t\t\t\t\t\t\t\t\tsidebar.setOpenMobile(false);\n\t\t\t\t\t\t\t\t\t\t\twindow.open(sidebarItem.href, '_blank', 'noopener,noreferrer');\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<sidebarItem.Icon />\n\t\t\t\t\t\t\t\t\t\t<span>{sidebarItem.title}</span>\n\t\t\t\t\t\t\t\t\t</Sidebar.SidebarMenuButton>\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t<Sidebar.SidebarMenuButton\n\t\t\t\t\t\t\t\t\t\tisActive={page.url.pathname === sidebarItem.href ||\n\t\t\t\t\t\t\t\t\t\t\tpage.url.pathname.startsWith(sidebarItem.href + '/')}\n\t\t\t\t\t\t\t\t\t\tonclick={(e) => {\n\t\t\t\t\t\t\t\t\t\t\tsidebar.setOpenMobile(false);\n\t\t\t\t\t\t\t\t\t\t\tcreateRowClickHandler(sidebarItem.href, ...sidebarItem.stickyParams)(e);\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<sidebarItem.Icon />\n\t\t\t\t\t\t\t\t\t\t<span>{sidebarItem.title}</span>\n\t\t\t\t\t\t\t\t\t</Sidebar.SidebarMenuButton>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Sidebar.SidebarMenuItem>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Sidebar.SidebarMenu>\n\t\t\t\t</Sidebar.SidebarGroupContent>\n\t\t\t</Sidebar.SidebarGroup>\n\t\t{/if}\n\t</Sidebar.SidebarContent>\n\t<Sidebar.SidebarFooter class=\"flex flex-row justify-center border-t border-border py-1 italic\">\n\t\t<span class=\"text-xs text-muted-foreground\">Traceway - v{__APP_VERSION__}</span>\n\t</Sidebar.SidebarFooter>\n</Sidebar.Sidebar>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M15 3h6v6\" }], [\"path\", { \"d\": \"M10 14 21 3\" }], [\"path\", { \"d\": \"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\" }]];\n/**\n * @component @name ExternalLink\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTUgM2g2djYiIC8+CiAgPHBhdGggZD0iTTEwIDE0IDIxIDMiIC8+CiAgPHBhdGggZD0iTTE4IDEzdjZhMiAyIDAgMCAxLTIgMkg1YTIgMiAwIDAgMS0yLTJWOGEyIDIgMCAwIDEgMi0yaDYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/external-link\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"external-link\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n import * as Sheet from \"$lib/components/ui/sheet\";\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { projectsState, getFrameworkLabel, type ProjectWithToken, type Framework } from '$lib/state/projects.svelte';\n import { Copy, Check, ExternalLink } from 'lucide-svelte';\n import FrameworkIcon from './framework-icon.svelte';\n import FrameworkCombobox from './framework-combobox.svelte';\n\n interface Props {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n onProjectCreated: () => void;\n }\n\n let { open, onOpenChange, onProjectCreated }: Props = $props();\n\n let projectName = $state('');\n let selectedFramework = $state<Framework>('gin');\n let loading = $state(false);\n let error = $state('');\n let createdProject = $state<ProjectWithToken | null>(null);\n let copied = $state(false);\n\n async function handleSubmit(e: Event) {\n e.preventDefault();\n if (!projectName.trim()) {\n error = 'Project name is required';\n return;\n }\n\n loading = true;\n error = '';\n\n try {\n const project = await projectsState.createProject(projectName.trim(), selectedFramework);\n createdProject = project;\n } catch (err) {\n error = err instanceof Error ? err.message : 'Failed to create project';\n } finally {\n loading = false;\n }\n }\n\n async function copyToken() {\n if (createdProject?.token) {\n await navigator.clipboard.writeText(createdProject.token);\n copied = true;\n setTimeout(() => copied = false, 2000);\n }\n }\n\n function handleClose() {\n projectName = '';\n selectedFramework = 'gin';\n error = '';\n createdProject = null;\n onOpenChange(false);\n }\n\n function handleGoToConnection() {\n if (createdProject) {\n projectsState.selectProject(createdProject.id);\n }\n handleClose();\n onProjectCreated();\n }\n</script>\n\n<Sheet.Root {open} onOpenChange={handleClose}>\n <Sheet.Content side=\"right\" class=\"w-[400px] sm:w-[540px]\">\n <Sheet.Header>\n <Sheet.Title>\n {#if createdProject}\n Project Created!\n {:else}\n Create New Project\n {/if}\n </Sheet.Title>\n <Sheet.Description>\n {#if createdProject}\n Your project has been created. Save the token below - you'll need it to connect your application.\n {:else}\n Add a new project to start tracking errors and metrics.\n {/if}\n </Sheet.Description>\n </Sheet.Header>\n\n {#if createdProject}\n <div class=\"px-6 py-6 space-y-6\">\n <div class=\"space-y-2\">\n <Label>Project Name</Label>\n <div class=\"text-lg font-medium\">{createdProject.name}</div>\n </div>\n\n <div class=\"space-y-2\">\n <Label>Framework</Label>\n <div class=\"flex items-center gap-2 text-sm text-muted-foreground\">\n <FrameworkIcon framework={selectedFramework} />\n <span>{getFrameworkLabel(selectedFramework)}</span>\n </div>\n </div>\n\n <div class=\"space-y-2\">\n <Label>Project Token</Label>\n <div class=\"flex gap-2\">\n <Input\n type=\"text\"\n value={createdProject.token}\n readonly\n class=\"font-mono text-sm\"\n />\n <Button variant=\"outline\" size=\"icon\" onclick={copyToken}>\n {#if copied}\n <Check class=\"h-4 w-4 text-green-500\" />\n {:else}\n <Copy class=\"h-4 w-4\" />\n {/if}\n </Button>\n </div>\n <p class=\"text-sm text-muted-foreground\">\n This token will only be shown once. Make sure to save it securely.\n </p>\n </div>\n </div>\n\n <div class=\"flex justify-end gap-2 px-6 pb-6\">\n <Button variant=\"outline\" onclick={handleClose}>\n Close\n </Button>\n <Button onclick={handleGoToConnection}>\n <ExternalLink class=\"mr-2 h-4 w-4\" />\n Go to Connection\n </Button>\n </div>\n {:else}\n <form onsubmit={handleSubmit} class=\"px-6 py-6 space-y-5\">\n <div class=\"space-y-2\">\n <Label for=\"project-name\">Project Name</Label>\n <Input\n id=\"project-name\"\n type=\"text\"\n placeholder=\"My Application\"\n bind:value={projectName}\n disabled={loading}\n />\n <p class=\"text-xs text-muted-foreground\">\n A unique name for your project (letters, numbers, spaces, hyphens)\n </p>\n </div>\n\n <div class=\"space-y-2\">\n <Label for=\"framework\">Framework</Label>\n <FrameworkCombobox bind:value={selectedFramework} disabled={loading} />\n <p class=\"text-xs text-muted-foreground\">\n Select your framework for tailored integration code\n </p>\n </div>\n\n {#if error}\n <div class=\"rounded-md bg-destructive/10 border border-destructive/20 p-3\">\n <p class=\"text-sm text-destructive\">{error}</p>\n </div>\n {/if}\n\n <div class=\"flex justify-end gap-2 pt-2\">\n <Button type=\"button\" variant=\"outline\" onclick={handleClose} disabled={loading}>\n Cancel\n </Button>\n <Button type=\"submit\" disabled={loading || !projectName.trim()}>\n {#if loading}\n Creating...\n {:else}\n Create Project\n {/if}\n </Button>\n </div>\n </form>\n {/if}\n </Sheet.Content>\n</Sheet.Root>\n","<script lang=\"ts\">\n import * as Sheet from \"$lib/components/ui/sheet\";\n import * as AlertDialog from \"$lib/components/ui/alert-dialog\";\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { projectsState, type Project, type Framework } from '$lib/state/projects.svelte';\n import { Check, Trash2, Copy, CircleAlert } from 'lucide-svelte';\n import FrameworkCombobox from './framework-combobox.svelte';\n import { toast } from 'svelte-sonner';\n import { goto } from '$app/navigation';\n\n interface Props {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n project: Project | null;\n }\n\n let { open, onOpenChange, project }: Props = $props();\n\n let projectName = $state('');\n let selectedFramework = $state<Framework>('gin');\n let loading = $state(false);\n let error = $state('');\n let showDeleteConfirm = $state(false);\n let deleting = $state(false);\n let deleteConfirmName = $state('');\n let nameCopied = $state(false);\n\n $effect(() => {\n if (open && project) {\n projectName = project.name;\n selectedFramework = project.framework;\n error = '';\n }\n });\n\n $effect(() => {\n if (!showDeleteConfirm) {\n deleteConfirmName = '';\n nameCopied = false;\n }\n });\n\n async function copyProjectName() {\n if (!project) return;\n await navigator.clipboard.writeText(project.name);\n nameCopied = true;\n setTimeout(() => nameCopied = false, 2000);\n }\n\n let deleteConfirmMatches = $derived(\n !!project && deleteConfirmName === project.name\n );\n\n async function handleSubmit(e: Event) {\n e.preventDefault();\n if (!projectName.trim()) {\n error = 'Project name is required';\n return;\n }\n if (!project) return;\n\n loading = true;\n error = '';\n\n try {\n await projectsState.updateProject(project.id, projectName.trim(), selectedFramework);\n toast.success('Successfully updated the project', { position: 'top-center' });\n onOpenChange(false);\n } catch (err: any) {\n error = err instanceof Error ? err.message : 'Failed to update project';\n } finally {\n loading = false;\n }\n }\n\n async function handleDelete() {\n if (!project || !deleteConfirmMatches) return;\n\n deleting = true;\n try {\n await projectsState.deleteProject(project.id, project.name);\n toast.success('Successfully deleted the project', { position: 'top-center' });\n showDeleteConfirm = false;\n onOpenChange(false);\n goto('/');\n } catch (err: any) {\n toast.error(err instanceof Error ? err.message : 'Failed to delete project', { position: 'top-center' });\n } finally {\n deleting = false;\n }\n }\n\n function handleClose() {\n error = '';\n showDeleteConfirm = false;\n onOpenChange(false);\n }\n</script>\n\n<Sheet.Root {open} onOpenChange={handleClose}>\n <Sheet.Content side=\"right\" class=\"w-[400px] sm:w-[540px]\">\n <Sheet.Header>\n <Sheet.Title>Edit Project</Sheet.Title>\n <Sheet.Description>\n Update your project name or framework.\n </Sheet.Description>\n </Sheet.Header>\n\n <form onsubmit={handleSubmit} class=\"px-6 py-6 space-y-5\">\n <div class=\"space-y-2\">\n <Label for=\"edit-project-name\">Project Name</Label>\n <Input\n id=\"edit-project-name\"\n type=\"text\"\n placeholder=\"My Application\"\n bind:value={projectName}\n disabled={loading}\n />\n <p class=\"text-xs text-muted-foreground\">\n A unique name for your project (letters, numbers, spaces, hyphens)\n </p>\n </div>\n\n <div class=\"space-y-2\">\n <Label for=\"edit-framework\">Framework</Label>\n <FrameworkCombobox bind:value={selectedFramework} disabled={loading} />\n <p class=\"text-xs text-muted-foreground\">\n Select your framework for tailored integration code\n </p>\n </div>\n\n {#if error}\n <div class=\"rounded-md bg-destructive/10 border border-destructive/20 p-3\">\n <p class=\"text-sm text-destructive\">{error}</p>\n </div>\n {/if}\n\n <div class=\"flex justify-end gap-2 pt-2\">\n <Button type=\"button\" variant=\"outline\" onclick={handleClose} disabled={loading}>\n Cancel\n </Button>\n <Button type=\"submit\" disabled={loading}>\n {#if loading}\n Updating...\n {:else}\n <Check class=\"mr-2 h-4 w-4\" />\n Update Project\n {/if}\n </Button>\n </div>\n </form>\n\n <div class=\"px-6 pb-6\">\n <div class=\"border-t pt-6\">\n <p class=\"text-sm text-muted-foreground mb-3\">Danger zone</p>\n <Button\n type=\"button\"\n variant=\"destructiveOutline\"\n onclick={() => showDeleteConfirm = true}\n >\n <Trash2 class=\"mr-2 h-4 w-4\" />\n Delete Project\n </Button>\n </div>\n </div>\n </Sheet.Content>\n</Sheet.Root>\n\n<AlertDialog.Root bind:open={showDeleteConfirm}>\n <AlertDialog.Content interactOutsideBehavior=\"close\">\n <AlertDialog.Header>\n <AlertDialog.Title>Delete Project</AlertDialog.Title>\n <AlertDialog.Description>\n This project will be permanently deleted along with all of its data, including transactions, exceptions, logs, metrics, and dashboards.\n </AlertDialog.Description>\n </AlertDialog.Header>\n\n <div class=\"rounded-md bg-destructive/10 border border-destructive/30 px-3 py-2\">\n <p class=\"text-sm\">\n <span class=\"font-semibold text-destructive\">Warning:</span>\n <span class=\"text-destructive/90\">This action is not reversible. Please be certain.</span>\n </p>\n </div>\n\n <div class=\"space-y-2\">\n <Label for=\"delete-confirm-name\" class=\"text-sm font-normal text-muted-foreground leading-relaxed\">\n Enter the project name <span class=\"font-semibold text-foreground\">{project?.name}</span><button\n type=\"button\"\n onclick={copyProjectName}\n class=\"inline-flex items-center align-middle ml-1 rounded p-0.5 text-muted-foreground hover:bg-accent hover:text-foreground\"\n title=\"Copy project name\"\n aria-label=\"Copy project name\"\n >\n {#if nameCopied}\n <Check class=\"h-3.5 w-3.5\" />\n {:else}\n <Copy class=\"h-3.5 w-3.5\" />\n {/if}\n </button> to continue:\n </Label>\n <Input\n id=\"delete-confirm-name\"\n type=\"text\"\n autocomplete=\"off\"\n bind:value={deleteConfirmName}\n disabled={deleting}\n />\n {#if deleteConfirmName.length > 0 && !deleteConfirmMatches}\n <p class=\"text-xs text-destructive flex items-center gap-1\">\n <CircleAlert class=\"h-3.5 w-3.5\" />\n The project name does not match\n </p>\n {/if}\n </div>\n\n <AlertDialog.Footer class=\"sm:justify-between\">\n <Button variant=\"outline\" onclick={() => showDeleteConfirm = false} disabled={deleting}>\n Cancel\n </Button>\n <Button variant=\"destructive\" onclick={handleDelete} disabled={deleting || !deleteConfirmMatches}>\n {deleting ? 'Deleting...' : 'Delete Project'}\n </Button>\n </AlertDialog.Footer>\n </AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet { ref = $bindable(null), ...restProps }: DropdownMenuPrimitive.GroupProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Group bind:ref data-slot=\"dropdown-menu-group\" {...restProps} />\n","<script lang=\"ts\">\n\timport { cn, type WithElementRef } from \"$lib/utils.js\";\n\timport type { HTMLAttributes } from \"svelte/elements\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tinset,\n\t\tchildren,\n\t\t...restProps\n\t}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {\n\t\tinset?: boolean;\n\t} = $props();\n</script>\n\n<div\n\tbind:this={ref}\n\tdata-slot=\"dropdown-menu-label\"\n\tdata-inset={inset}\n\tclass={cn(\"px-2 py-1.5 text-sm font-semibold data-[inset]:ps-8\", className)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</div>\n","// src/index.ts\nimport { nowISO as nowISO2, generateUUID as generateUUID3 } from \"@tracewayapp/core\";\n\n// src/client.ts\nimport { parseConnectionString, generateUUID } from \"@tracewayapp/core\";\n\n// src/transport.ts\nasync function compressGzip(data) {\n const encoder = new TextEncoder();\n const inputBytes = encoder.encode(data);\n const cs = new CompressionStream(\"gzip\");\n const writer = cs.writable.getWriter();\n writer.write(inputBytes);\n writer.close();\n const reader = cs.readable.getReader();\n const chunks = [];\n let totalLength = 0;\n while (true) {\n const { done, value } = await reader.read();\n if (done) break;\n chunks.push(value);\n totalLength += value.length;\n }\n const result = new Uint8Array(totalLength);\n let offset = 0;\n for (const chunk of chunks) {\n result.set(chunk, offset);\n offset += chunk.length;\n }\n return result;\n}\nasync function sendReport(apiUrl, token, body) {\n const compressed = await compressGzip(body);\n const resp = await fetch(apiUrl, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n \"Content-Encoding\": \"gzip\",\n Authorization: `Bearer ${token}`\n },\n body: compressed\n });\n return resp.status === 200;\n}\n\n// src/session-recorder.ts\nimport { record } from \"rrweb\";\nvar SessionRecorder = class {\n segmentDuration;\n current;\n previous = null;\n stopFn = null;\n rotateInterval = null;\n constructor(options = {}) {\n this.segmentDuration = options.segmentDuration ?? 1e4;\n this.current = { events: [], startedAt: (/* @__PURE__ */ new Date()).toISOString() };\n }\n start() {\n this.stopFn = record({\n emit: (event) => {\n this.onEvent(event);\n }\n });\n this.rotateInterval = setInterval(() => {\n this.rotateSegment();\n }, this.segmentDuration);\n }\n stop() {\n if (this.stopFn) {\n this.stopFn();\n this.stopFn = null;\n }\n if (this.rotateInterval) {\n clearInterval(this.rotateInterval);\n this.rotateInterval = null;\n }\n }\n onEvent(event) {\n this.current.events.push(event);\n }\n rotateSegment() {\n this.previous = this.current;\n this.current = { events: [], startedAt: (/* @__PURE__ */ new Date()).toISOString() };\n record.takeFullSnapshot();\n }\n getSegments() {\n const segments = [];\n if (this.previous && this.previous.events.length > 0) {\n segments.push({\n events: this.previous.events,\n timestamp: this.previous.startedAt\n });\n }\n if (this.current.events.length > 0) {\n segments.push({\n events: this.current.events,\n timestamp: this.current.startedAt\n });\n }\n return segments;\n }\n hasSegments() {\n return this.current.events.length > 0 || this.previous !== null && this.previous.events.length > 0;\n }\n flush() {\n this.previous = null;\n this.current = { events: [], startedAt: (/* @__PURE__ */ new Date()).toISOString() };\n if (this.stopFn) {\n record.takeFullSnapshot();\n }\n }\n};\n\n// src/client.ts\nvar TracewayFrontendClient = class {\n apiUrl;\n token;\n debug;\n debounceMs;\n retryDelayMs;\n version;\n pendingExceptions = [];\n pendingRecordings = [];\n isSyncing = false;\n debounceTimer = null;\n retryTimer = null;\n recorder = null;\n constructor(connectionString, options = {}) {\n const { token, apiUrl } = parseConnectionString(connectionString);\n this.apiUrl = apiUrl;\n this.token = token;\n this.debug = options.debug ?? false;\n this.debounceMs = options.debounceMs ?? 1500;\n this.retryDelayMs = options.retryDelayMs ?? 1e4;\n this.version = options.version ?? \"\";\n if (options.sessionRecording !== false && typeof window !== \"undefined\") {\n this.recorder = new SessionRecorder({\n segmentDuration: options.sessionRecordingSegmentDuration\n });\n this.recorder.start();\n }\n }\n addException(exception) {\n if (this.recorder && this.recorder.hasSegments()) {\n const segments = this.recorder.getSegments();\n const allEvents = segments.flatMap((s) => s.events);\n const exceptionId = generateUUID();\n exception.sessionRecordingId = exceptionId;\n this.pendingRecordings.push({ exceptionId, events: allEvents });\n }\n this.pendingExceptions.push(exception);\n this.scheduleSync();\n }\n scheduleSync() {\n if (this.debounceTimer !== null) {\n clearTimeout(this.debounceTimer);\n }\n this.debounceTimer = setTimeout(() => {\n this.debounceTimer = null;\n this.doSync();\n }, this.debounceMs);\n }\n async doSync() {\n if (this.isSyncing) return;\n if (this.pendingExceptions.length === 0) return;\n this.isSyncing = true;\n const batch = this.pendingExceptions.splice(0);\n const recordings = this.pendingRecordings.splice(0);\n const frame = {\n stackTraces: batch,\n metrics: [],\n traces: [],\n sessionRecordings: recordings.length > 0 ? recordings : void 0\n };\n const payload = {\n collectionFrames: [frame],\n appVersion: this.version,\n serverName: \"\"\n };\n let failed = false;\n try {\n const success = await sendReport(\n this.apiUrl,\n this.token,\n JSON.stringify(payload)\n );\n if (!success) {\n failed = true;\n this.pendingExceptions.unshift(...batch);\n this.pendingRecordings.unshift(...recordings);\n if (this.debug) {\n console.error(\"Traceway: sync failed, re-queued exceptions\");\n }\n }\n } catch (err) {\n failed = true;\n this.pendingExceptions.unshift(...batch);\n this.pendingRecordings.unshift(...recordings);\n if (this.debug) {\n console.error(\"Traceway: sync error:\", err);\n }\n } finally {\n this.isSyncing = false;\n if (this.pendingExceptions.length > 0) {\n if (failed) {\n this.scheduleRetry();\n } else {\n this.doSync();\n }\n }\n }\n }\n scheduleRetry() {\n if (this.retryTimer !== null) return;\n this.retryTimer = setTimeout(() => {\n this.retryTimer = null;\n this.doSync();\n }, this.retryDelayMs);\n }\n async flush(timeoutMs) {\n if (this.debounceTimer !== null) {\n clearTimeout(this.debounceTimer);\n this.debounceTimer = null;\n }\n if (this.retryTimer !== null) {\n clearTimeout(this.retryTimer);\n this.retryTimer = null;\n }\n if (this.recorder) {\n this.recorder.stop();\n }\n const syncPromise = this.doSync();\n if (timeoutMs !== void 0) {\n await Promise.race([\n syncPromise,\n new Promise((resolve) => setTimeout(resolve, timeoutMs))\n ]);\n } else {\n await syncPromise;\n }\n }\n};\n\n// src/stack-trace.ts\nfunction formatBrowserStackTrace(error) {\n const lines = [];\n const typeName = error.constructor?.name || \"Error\";\n lines.push(`${typeName}: ${error.message}`);\n if (error.stack) {\n const stackLines = error.stack.split(\"\\n\");\n for (const line of stackLines) {\n const v8Match = line.match(/^\\s+at\\s+(.+?)\\s+\\((.+):(\\d+):(\\d+)\\)$/);\n if (v8Match) {\n const funcName = shortenFunctionName(v8Match[1]);\n const file = shortenFilePath(v8Match[2]);\n lines.push(`${funcName}()`);\n lines.push(` ${file}:${v8Match[3]}:${v8Match[4]}`);\n continue;\n }\n const v8AnonMatch = line.match(/^\\s+at\\s+(.+):(\\d+):(\\d+)$/);\n if (v8AnonMatch) {\n const file = shortenFilePath(v8AnonMatch[1]);\n lines.push(`<anonymous>()`);\n lines.push(` ${file}:${v8AnonMatch[2]}:${v8AnonMatch[3]}`);\n continue;\n }\n const ffMatch = line.match(/^(.+)@(.+):(\\d+):(\\d+)$/);\n if (ffMatch) {\n const funcName = shortenFunctionName(ffMatch[1]) || \"<anonymous>\";\n const file = shortenFilePath(ffMatch[2]);\n lines.push(`${funcName}()`);\n lines.push(` ${file}:${ffMatch[3]}:${ffMatch[4]}`);\n continue;\n }\n const ffAnonMatch = line.match(/^@(.+):(\\d+):(\\d+)$/);\n if (ffAnonMatch) {\n const file = shortenFilePath(ffAnonMatch[1]);\n lines.push(`<anonymous>()`);\n lines.push(` ${file}:${ffAnonMatch[2]}:${ffAnonMatch[3]}`);\n continue;\n }\n }\n }\n return lines.join(\"\\n\") + \"\\n\";\n}\nfunction shortenFunctionName(fn) {\n const slashIdx = fn.lastIndexOf(\"/\");\n if (slashIdx >= 0) {\n fn = fn.slice(slashIdx + 1);\n }\n const dotIdx = fn.indexOf(\".\");\n if (dotIdx >= 0) {\n fn = fn.slice(dotIdx + 1);\n }\n return fn;\n}\nfunction shortenFilePath(filePath) {\n const parts = filePath.split(\"/\");\n return parts[parts.length - 1];\n}\n\n// src/global-handlers.ts\nimport { nowISO } from \"@tracewayapp/core\";\n\n// src/fetch-instrumentation.ts\nimport { generateUUID as generateUUID2 } from \"@tracewayapp/core\";\nvar activeDistributedTraceId = null;\nfunction getActiveDistributedTraceId() {\n return activeDistributedTraceId;\n}\nfunction isSameOrigin(input) {\n try {\n const url = new URL(\n typeof input === \"string\" ? input : input instanceof Request ? input.url : input.href,\n window.location.origin\n );\n return url.origin === window.location.origin;\n } catch {\n return true;\n }\n}\nfunction installFetchInstrumentation() {\n const originalFetch = window.fetch;\n window.fetch = function(input, init2) {\n if (!isSameOrigin(input)) {\n return originalFetch.call(this, input, init2);\n }\n const traceId = generateUUID2();\n activeDistributedTraceId = traceId;\n const headers = new Headers(init2?.headers);\n headers.set(\"traceway-trace-id\", traceId);\n return originalFetch.call(this, input, { ...init2, headers }).finally(() => {\n if (activeDistributedTraceId === traceId) {\n activeDistributedTraceId = null;\n }\n });\n };\n}\n\n// src/global-handlers.ts\nfunction installGlobalHandlers(client2) {\n const prevOnError = window.onerror;\n window.onerror = (message, source, lineno, colno, error) => {\n if (error) {\n client2.addException({\n traceId: null,\n stackTrace: formatBrowserStackTrace(error),\n recordedAt: nowISO(),\n isMessage: false,\n distributedTraceId: getActiveDistributedTraceId()\n });\n } else {\n client2.addException({\n traceId: null,\n stackTrace: String(message),\n recordedAt: nowISO(),\n isMessage: false,\n distributedTraceId: getActiveDistributedTraceId()\n });\n }\n if (typeof prevOnError === \"function\") {\n return prevOnError(message, source, lineno, colno, error);\n }\n return false;\n };\n const prevOnUnhandledRejection = window.onunhandledrejection;\n window.onunhandledrejection = (event) => {\n const reason = event.reason;\n if (reason instanceof Error) {\n client2.addException({\n traceId: null,\n stackTrace: formatBrowserStackTrace(reason),\n recordedAt: nowISO(),\n isMessage: false,\n distributedTraceId: getActiveDistributedTraceId()\n });\n } else {\n client2.addException({\n traceId: null,\n stackTrace: String(reason),\n recordedAt: nowISO(),\n isMessage: false,\n distributedTraceId: getActiveDistributedTraceId()\n });\n }\n if (typeof prevOnUnhandledRejection === \"function\") {\n prevOnUnhandledRejection.call(window, event);\n }\n };\n}\n\n// src/index.ts\nvar client = null;\nfunction init(connectionString, options = {}) {\n client = new TracewayFrontendClient(connectionString, options);\n if (typeof window !== \"undefined\") {\n installGlobalHandlers(client);\n installFetchInstrumentation();\n }\n}\nfunction captureException(error, options) {\n if (!client) return;\n client.addException({\n traceId: null,\n stackTrace: formatBrowserStackTrace(error),\n recordedAt: nowISO2(),\n isMessage: false,\n distributedTraceId: options?.distributedTraceId ?? getActiveDistributedTraceId()\n });\n}\nfunction captureExceptionWithAttributes(error, attributes, options) {\n if (!client) return;\n client.addException({\n traceId: null,\n stackTrace: formatBrowserStackTrace(error),\n recordedAt: nowISO2(),\n attributes,\n isMessage: false,\n distributedTraceId: options?.distributedTraceId ?? getActiveDistributedTraceId()\n });\n}\nfunction captureMessage(msg) {\n if (!client) return;\n client.addException({\n traceId: null,\n stackTrace: msg,\n recordedAt: nowISO2(),\n isMessage: true\n });\n}\nasync function flush(timeoutMs) {\n if (!client) return;\n await client.flush(timeoutMs);\n}\nvar DISTRIBUTED_TRACE_HEADER = \"traceway-trace-id\";\nfunction createAxiosInterceptor() {\n return (config) => {\n config.headers = config.headers || {};\n config.headers[\"traceway-trace-id\"] = generateUUID3();\n return config;\n };\n}\nexport {\n DISTRIBUTED_TRACE_HEADER,\n TracewayFrontendClient,\n captureException,\n captureExceptionWithAttributes,\n captureMessage,\n createAxiosInterceptor,\n flush,\n formatBrowserStackTrace,\n getActiveDistributedTraceId,\n init,\n installGlobalHandlers\n};\n//# sourceMappingURL=index.mjs.map","<script lang=\"ts\">\n\timport './layout.css';\n\timport { goto, afterNavigate } from '$app/navigation';\n\timport { authState } from '$lib/state/auth.svelte';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { themeState, initTheme, toggleTheme } from '$lib/state/theme.svelte';\n\timport { incrementNavDepth, decrementNavDepth } from '$lib/utils/back-navigation';\n\timport AppSidebar from '$lib/components/app-sidebar.svelte';\n\timport AddProjectModal from '$lib/components/add-project-modal.svelte';\n\timport EditProjectModal from '$lib/components/edit-project-modal.svelte';\n\timport FrameworkIcon from '$lib/components/framework-icon.svelte';\n\timport * as Sidebar from '$lib/components/ui/sidebar';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Sun, Moon, LogOut, Plus, Check, Pencil } from '@lucide/svelte';\n\timport { onMount } from 'svelte';\n\timport * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';\n\timport { ChevronDown } from 'lucide-svelte';\n\timport { Toaster, toast } from 'svelte-sonner';\n\timport { page } from '$app/state';\n\timport { setupTraceway } from '@tracewayapp/svelte';\n\timport { captureException } from '@tracewayapp/frontend';\n\timport * as Tooltip from '$lib/components/ui/tooltip';\n\n\tif (__TRACEWAY_URL__) {\n\t\tsetupTraceway({\n\t\t\tconnectionString: __TRACEWAY_URL__\n\t\t});\n\t}\n\n\tlet { children } = $props();\n\tlet showAddProjectModal = $state(false);\n\tlet showEditProjectModal = $state(false);\n\n\t// Track navigation depth for smart back buttons\n\tlet lastPathname = '';\n\tafterNavigate((navigation) => {\n\t\tif (!navigation.to?.url) return;\n\t\tconst newPathname = navigation.to.url.pathname;\n\n\t\tif (navigation.type === 'popstate') {\n\t\t\t// Browser back/forward button\n\t\t\tdecrementNavDepth();\n\t\t} else if (newPathname !== lastPathname) {\n\t\t\t// Navigated to a different page (not just param change)\n\t\t\tincrementNavDepth();\n\t\t}\n\t\t// Param-only changes (same pathname) don't affect depth\n\n\t\tlastPathname = newPathname;\n\t});\n\n\tonMount(() => {\n\t\tinitTheme();\n\t\t(window as any).captureException = captureException;\n\n\t\tif (authState.isAuthenticated) {\n\t\t\tprojectsState.loadProjects();\n\t\t}\n\t});\n\n\tfunction handleLogout() {\n\t\tauthState.logout();\n\t\tgoto('/login');\n\t}\n\n\tfunction handleProjectSelect(projectId: string) {\n\t\tprojectsState.selectProject(projectId);\n\t\tgoto('/');\n\t}\n\n\tfunction handleAddProjectClick() {\n\t\tconst organizationId =\n\t\t\tprojectsState.currentProject?.organizationId ?? authState.organizations[0]?.id;\n\t\tif (organizationId) {\n\t\t\tconst role = authState.getRoleForOrganization(organizationId);\n\t\t\tif (role === 'readonly') {\n\t\t\t\ttoast.error(\"You're not authorized to perform that action\", { position: 'top-center' });\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tshowAddProjectModal = true;\n\t}\n\n\tfunction handleProjectCreated() {\n\t\tshowAddProjectModal = false;\n\t\t// Optionally navigate to connection page to show token\n\t\tgoto('/connection');\n\t}\n</script>\n\n<svelte:head><link rel=\"icon\" href=\"/favicon.ico\" /></svelte:head>\n\n<Tooltip.Provider delayDuration={0}>\n<!-- This is not ideal, but because our layout is a top level route it can end up showing sidebar on the login page (after the login before the transition). -->\n<!-- We could consider moving this to a lower level layout for the actual app, for now it's just a path check -->\n{#if authState.isAuthenticated && page.url.pathname !== '/login' && page.url.pathname !== '/register' && page.url.pathname !== '/auth/callback' && page.url.pathname !== '/finish-setup' && !page.url.pathname.startsWith('/accept-invitation')}\n\t<Sidebar.SidebarProvider>\n\t\t<AppSidebar />\n\t\t<Sidebar.SidebarInset>\n\t\t\t<header class=\"flex h-12 shrink-0 items-center gap-2 border-b px-2\">\n\t\t\t\t<Sidebar.SidebarTrigger />\n\t\t\t\t<div class=\"h-4 w-px bg-border\"></div>\n\t\t\t\t<h1 class=\"text-lg font-semibold\">\n\t\t\t\t\t<DropdownMenu.Root>\n\t\t\t\t\t\t<DropdownMenu.Trigger\n\t\t\t\t\t\t\tclass=\"flex flex-row items-center gap-2 rounded-md px-2 py-1 transition-colors hover:bg-accent hover:text-accent-foreground\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{#if projectsState.currentProject}\n\t\t\t\t\t\t\t\t<FrameworkIcon framework={projectsState.currentProject.framework} class=\"size-6 shrink-0\" />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t<span>{projectsState.currentProject?.name || 'Select Project'}</span>\n\t\t\t\t\t\t\t<ChevronDown size={16} />\n\t\t\t\t\t\t</DropdownMenu.Trigger>\n\t\t\t\t\t\t<DropdownMenu.Content align=\"start\" class=\"w-56\">\n\t\t\t\t\t\t\t<DropdownMenu.Group>\n\t\t\t\t\t\t\t\t<DropdownMenu.Label>Projects</DropdownMenu.Label>\n\t\t\t\t\t\t\t\t<DropdownMenu.Separator />\n\t\t\t\t\t\t\t\t{#each projectsState.projects as project}\n\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\tonclick={() => handleProjectSelect(project.id)}\n\t\t\t\t\t\t\t\t\t\tclass=\"flex cursor-pointer items-center justify-between\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t\t\t<FrameworkIcon framework={project.framework} />\n\t\t\t\t\t\t\t\t\t\t\t<span>{project.name}</span>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t{#if project.id === projectsState.currentProjectId}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t{#if projectsState.projects.length === 0}\n\t\t\t\t\t\t\t\t\t<DropdownMenu.Item disabled>No projects yet</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t<DropdownMenu.Separator />\n\t\t\t\t\t\t\t\t{#if projectsState.canManageCurrentProject}\n\t\t\t\t\t\t\t\t\t<DropdownMenu.Item onclick={() => showEditProjectModal = true} class=\"cursor-pointer\">\n\t\t\t\t\t\t\t\t\t\t<Pencil class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\tEdit Project\n\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t<DropdownMenu.Item onclick={handleAddProjectClick} class=\"cursor-pointer\">\n\t\t\t\t\t\t\t\t\t<Plus class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tAdd Project\n\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t</DropdownMenu.Group>\n\t\t\t\t\t\t</DropdownMenu.Content>\n\t\t\t\t\t</DropdownMenu.Root>\n\t\t\t\t</h1>\n\t\t\t\t<div class=\"ml-auto flex items-center gap-2\">\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\tonclick={toggleTheme}\n\t\t\t\t\t\ttitle={themeState.isDark ? 'Switch to Light Mode' : 'Switch to Dark Mode'}\n\t\t\t\t\t>\n\t\t\t\t\t\t{#if themeState.isDark}\n\t\t\t\t\t\t\t<Sun class=\"h-5 w-5\" />\n\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t<Moon class=\"h-5 w-5\" />\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t</Button>\n\t\t\t\t\t<Button variant=\"ghost\" size=\"icon\" onclick={handleLogout} title=\"Logout\">\n\t\t\t\t\t\t<LogOut class=\"h-5 w-5\" />\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t</header>\n\t\t\t<main class=\"min-w-0 flex-1 p-4\">\n\t\t\t\t{@render children()}\n\t\t\t</main>\n\t\t</Sidebar.SidebarInset>\n\t</Sidebar.SidebarProvider>\n\n\t<AddProjectModal\n\t\topen={showAddProjectModal}\n\t\tonOpenChange={(open) => (showAddProjectModal = open)}\n\t\tonProjectCreated={handleProjectCreated}\n\t/>\n\n\t<EditProjectModal\n\t\topen={showEditProjectModal}\n\t\tonOpenChange={(open) => (showEditProjectModal = open)}\n\t\tproject={projectsState.currentProject}\n\t/>\n\n\t<Toaster position=\"bottom-right\" />\n{:else}\n\t{#if page.url.pathname === '/login' || page.url.pathname === '/register' || page.url.pathname === '/auth/callback' || page.url.pathname === '/finish-setup' || page.url.pathname.startsWith('/accept-invitation')}\n\t\t<main class=\"h-screen w-screen\">\n\t\t\t{@render children()}\n\t\t</main>\n\t{/if}\n{/if}\n</Tooltip.Provider>\n"],"names":["head","hash","render_fn","previous_hydrate_node","was_hydrating","hydrating","anchor","hydrate_node","head_anchor","get_first_child","COMMENT_NODE","get_next_sibling","set_hydrating","start","set_hydrate_node","create_text","block","HEAD_EFFECT","ssr","prerender","bars","div","root","div_1","$.child","$.each","_","i","div_2","root_1","$.reset","$.set_class","$0","$.set_attribute","$$props","$.clsx","$.append","$$anchor","defaultWindow","getActiveElement","document","activeElement","node","ReactiveValue","#fn","#subscribe","fn","onsubscribe","createSubscriber","parenthesis_regex","non_parenthesized_keywords","MediaQuery","query","fallback","final_query","keyword","q","update","on","ActiveElement","options","window","#document","cleanupFocusIn","cleanupFocusOut","Context","#name","#key","name","hasContext","context","getContext","setContext","sonnerContext","isAction","action","useDocumentHidden","current","$.state","$.proxy","$.user_effect","TOAST_LIFETIME","GAP","SWIPE_THRESHOLD","TIME_BEFORE_UNMOUNT","SCALE_MULTIPLIER","DEFAULT_TOAST_CLASSES","getDefaultSwipeDirections","position","y","x","directions","getDampening","delta","LoadingIcon","root_2","node_1","$.get","toastType","cn","classes","$.derived","$1","Loader","cancelButtonStyle","actionButtonStyle","descriptionClass","unstyled","defaultRichColors","defaultClasses","mounted","removed","swiping","swipeOut","isSwiped","offsetBeforeRemove","initialHeight","remainingTime","toastRef","swipeDirection","swipeOutDirection","isFront","isVisible","dismissable","toastClass","toastDescriptionClass","heightIndex","toastState","height","closeButton","duration","pointerStart","coords","toastsHeightBefore","prev","curr","reducerIndex","isDocumentHidden","invert","disabled","toastTitle","toastDescription","closeTimerStartTime","lastCloseTimerStartTime","offset","scale","toastEl","untrack","offsetHeight","rectHeight","scaledRectHeight","finalHeight","$.set","deleteToast","timeoutId","isPromiseLoadingOrInfiniteDuration","startTimer","pauseTimer","elapsedTime","onMount","handlePointerDown","event","target","handlePointerUp","swipeAmountX","swipeAmountY","timeTaken","swipeAmount","velocity","handlePointerMove","yDelta","xDelta","swipeDirections","dampenedDelta","handleDragEnd","icon","li","node_2","button","root_4","node_3","$$render","consequent_1","Component","Component_1","$.spread_props","root_7","toast_icon","consequent_3","alternate_1","consequent_4","toast_icon_1","consequent_9","consequent_8","alternate_2","consequent_7","alternate_3","consequent_6","alternate_4","consequent_5","alternate_5","consequent_10","consequent_11","$.sibling","node_6","div_3","node_21","Title","Title_1","consequent_12","alternate_6","consequent_13","node_24","div_4","root_24","node_25","Description","Description_1","consequent_14","alternate_7","$.template_effect","consequent_15","toast_cancel","button_1","root_30","text_2","$.set_text","consequent_17","consequent_16","alternate_8","consequent_18","toast_action","button_2","root_34","text_3","consequent_20","consequent_19","alternate_9","consequent_21","consequent_2","alternate_10","$$value","$2","styles","$.event","svg","VISIBLE_TOASTS_AMOUNT","VIEWPORT_OFFSET","MOBILE_VIEWPORT_OFFSET","TOAST_WIDTH","DARK","LIGHT","getOffsetObject","defaultOffset","mobileOffset","index","isMobile","prefix","defaultValue","assignAll","key","value","getInitialTheme","t","hotkey","$.prop","expand","theme","richColors","visibleToasts","toastOptions","dir","gap","containerAriaLabel","closeButtonAriaLabel","restProps","$.rest_props","getDocumentDirection","dirAttribute","possiblePositions","toast","expanded","interacting","actualTheme","listRef","lastFocusedElementRef","isFocusWithin","hotkeyLabel","toastsToDismiss","updatedToasts","dismissToast","mediaQueryList","changeHandler","matches","handleBlur","handleFocus","handleMouseEnter","handleMouseLeave","handleMouseMove","SonnerState","section","$$array","offsetObject","ol","$$array_1","successIcon","SuccessIcon","errorIcon","ErrorIcon","warningIcon","WarningIcon","infoIcon","InfoIcon","closeIcon","CloseIcon","$4","Toast","DEFAULT_MOBILE_BREAKPOINT","IsMobile","breakpoint","SIDEBAR_COOKIE_NAME","SIDEBAR_COOKIE_MAX_AGE","SIDEBAR_WIDTH","SIDEBAR_WIDTH_MOBILE","SIDEBAR_WIDTH_ICON","SIDEBAR_KEYBOARD_SHORTCUT","SidebarState","#openMobile","#state","props","#isMobile","SYMBOL_KEY","setSidebar","useSidebar","ref","main","$.attribute_effect","uid","$.props_id","id","createId","groupState","MenuGroupState","boxWith","v","mergedProps","mergeProps","$.snippet","open","onOpenChange","noop","onOpenChangeComplete","DialogRootState","closeState","DialogCloseState","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay","contentState","DialogContentState","FocusScope","$$arg0","focusScopeProps","EscapeLayer","e","DismissibleLayer","TextSelectionLayer","ScrollLock","consequent","node_4","delayDuration","disableCloseOnTriggerClick","disableHoverableContent","ignoreNonKeyboardFocus","skipDelayDuration","TooltipProviderState","TooltipPrimitive_Provider","sidebarMenuButtonVariants","tv","Button","buttonProps","root_3","variant","size","isActive","sidebar","Tooltip_Root","child","Tooltip_Trigger","Tooltip_Content","ul","$$args","Tooltip_Provider","iconNode","Icon","$.noop","PanelLeftIcon","SheetPrimitive_Root","SheetPrimitive_Portal","SheetPrimitive_Overlay","sheetVariants","side","SheetPortal","SheetOverlay","SheetPrimitive_Content","SheetPrimitive_Close","XIcon","SheetPrimitive_Title","SheetPrimitive_Description","collapsible","bind_get","bind_set","Sheet_Root","Sheet_Content","Sheet_Header","Sheet_Title","Sheet_Description","node_5","root_9","div_5","node_9","alternate","hiddenForFrontend","hiddenForCloudflare","frontendOnly","allSidebarItems","LayoutDashboard","Bug","FileText","Gauge","ListEnd","Film","Workflow","ChartNoAxesCombined","Bell","Link2","sidebarItems","projectsState","isFrontendFramework","item","isCloudflareFramework","allSidebarItemsBottom","BookOpen","Settings","sidebarItemsBottom","Sidebar_Sidebar","Sidebar_SidebarHeader","img","img_1","themeState","Sidebar_SidebarContent","Sidebar_SidebarGroup","Sidebar_SidebarGroupContent","Sidebar_SidebarMenu","node_7","sidebarItem","Sidebar_SidebarMenuItem","page","Sidebar_SidebarMenuButton","createRowClickHandler","sidebarItem_Icon","span","node_10","text","Sidebar_SidebarGroup_1","Sidebar_SidebarGroupContent_1","Sidebar_SidebarMenu_1","node_15","Sidebar_SidebarMenuItem_1","Sidebar_SidebarMenuButton_1","sidebarItem_Icon_1","span_1","node_19","text_1","Sidebar_SidebarMenuButton_2","sidebarItem_Icon_2","span_2","Sidebar_SidebarFooter","span_3","root_22","$$sanitized_props","projectName","selectedFramework","loading","error","createdProject","copied","handleSubmit","project","err","copyToken","handleClose","handleGoToConnection","$.first_child","fragment_6","Label","node_8","FrameworkIcon","node_11","div_6","Input","node_12","node_13","Check","Copy","div_7","node_16","ExternalLink","node_17","text_5","getFrameworkLabel","form","root_19","div_8","node_18","div_9","node_20","FrameworkCombobox","div_10","p","div_11","node_22","node_23","showDeleteConfirm","deleting","deleteConfirmName","nameCopied","copyProjectName","deleteConfirmMatches","handleDelete","goto","root_8","node_14","Trash2","AlertDialog_Root","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","fragment_10","p_1","CircleAlert","AlertDialog_Footer","node_27","node_28","DropdownMenuPrimitive_Group","captureException","showAddProjectModal","showEditProjectModal","lastPathname","afterNavigate","navigation","newPathname","decrementNavDepth","incrementNavDepth","initTheme","authState","handleLogout","handleProjectSelect","projectId","handleAddProjectClick","organizationId","handleProjectCreated","$.head","link","Sidebar_SidebarProvider","AppSidebar","Sidebar_SidebarInset","header","fragment_4","Sidebar_SidebarTrigger","h1","DropdownMenu_Root","DropdownMenu_Trigger","ChevronDown","DropdownMenu_Content","DropdownMenu_Group","DropdownMenu_Label","DropdownMenu_Separator","$.index","DropdownMenu_Item","fragment_11","DropdownMenu_Item_1","DropdownMenu_Separator_1","DropdownMenu_Item_2","Pencil","DropdownMenu_Item_3","Plus","node_26","toggleTheme","Sun","Moon","LogOut","AddProjectModal","node_30","EditProjectModal","node_31","Toaster","node_32","main_1","root_25"],"mappings":"ijEAWO,SAASA,GAAKC,EAAMC,EAAW,CAGrC,IAAIC,EAAwB,KACxBC,EAAgBC,GAGpB,IAAIC,EAEJ,GAAID,GAAW,CACdF,EAAwBI,GAMxB,QAJIC,EAAcC,GAAgB,SAAS,IAAI,EAK9CD,IAAgB,OACfA,EAAY,WAAaE,IAAwCF,EAAa,OAASP,IAExFO,EAAcG,GAAiBH,CAAW,EAK3C,GAAIA,IAAgB,KACnBI,GAAc,EAAK,MACb,CACN,IAAIC,EAAqCF,GAAiBH,CAAW,EACrEA,EAAY,OAAM,EAElBM,GAAiBD,CAAK,CACvB,CACD,CAEKR,KACJC,EAAS,SAAS,KAAK,YAAYS,GAAW,CAAE,GAGjD,GAAI,CACHC,GAAM,IAAMd,E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AAI,WAAa,iBAAmBA,GAAK,IAAI,SAAS,WAAW,oBAAoB,IAAAzR,EAAAgB,CAAA,wBA5F5M4W,GAAU,iBAAmBnG,GAAK,IAAI,WAAa,UAAYA,GAAK,IAAI,WAAa,aAAeA,GAAK,IAAI,WAAa,kBAAoBA,GAAK,IAAI,WAAa,iBAAe,CAAKA,GAAK,IAAI,SAAS,WAAW,oBAAoB,EAAAzR,GAAAkB,EAAA,EAAAlB,GAAAQ,EAAA,EAAA,+CAP9O","x_google_ignoreList":[0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,28,29,30,31,32,38,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,69]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/1.DRv4q_yx.js b/backend/static/frontend/_app/immutable/nodes/1.BCPNhgBs.js
similarity index 73%
rename from backend/static/frontend/_app/immutable/nodes/1.DRv4q_yx.js
rename to backend/static/frontend/_app/immutable/nodes/1.BCPNhgBs.js
index ee70a78d..5fd95944 100644
--- a/backend/static/frontend/_app/immutable/nodes/1.DRv4q_yx.js
+++ b/backend/static/frontend/_app/immutable/nodes/1.BCPNhgBs.js
@@ -1 +1 @@
-import"../chunks/DMODTt3n.js";import{p as u,a as g,g as e,u as r}from"../chunks/B2WdN-7r.js";import{r as c}from"../chunks/D_mqy6BL.js";import{p as t}from"../chunks/BG_QVry4.js";import{E as d}from"../chunks/B-KBEnoV.js";import{c as l}from"../chunks/CyOblkUv.js";function x(a,s){u(s,!0);const o=r(()=>t.status),n=r(()=>t.error?.message);{let p=r(()=>e(o)===404?"Page Not Found":"Something Went Wrong"),i=r(()=>e(n)||(e(o)===404?"The page you're looking for doesn't exist or may have been moved.":"An unexpected error occurred. Please try again.")),m=r(()=>l(c("/")));d(a,{get status(){return e(o)},get title(){return e(p)},get description(){return e(i)},get onBack(){return e(m)},backLabel:"Go to Dashboard"})}g()}export{x as component};
+import"../chunks/DMODTt3n.js";import{p as u,a as g,g as e,u as r}from"../chunks/B2WdN-7r.js";import{r as c}from"../chunks/BGApn_8u.js";import{p as t}from"../chunks/CyRgFauW.js";import{E as d}from"../chunks/CFZS-Ydw.js";import{c as l}from"../chunks/UIirCQWa.js";function x(a,s){u(s,!0);const o=r(()=>t.status),n=r(()=>t.error?.message);{let p=r(()=>e(o)===404?"Page Not Found":"Something Went Wrong"),i=r(()=>e(n)||(e(o)===404?"The page you're looking for doesn't exist or may have been moved.":"An unexpected error occurred. Please try again.")),m=r(()=>l(c("/")));d(a,{get status(){return e(o)},get title(){return e(p)},get description(){return e(i)},get onBack(){return e(m)},backLabel:"Go to Dashboard"})}g()}export{x as component};
diff --git a/backend/static/frontend/_app/immutable/nodes/1.DRv4q_yx.js.map b/backend/static/frontend/_app/immutable/nodes/1.BCPNhgBs.js.map
similarity index 91%
rename from backend/static/frontend/_app/immutable/nodes/1.DRv4q_yx.js.map
rename to backend/static/frontend/_app/immutable/nodes/1.BCPNhgBs.js.map
index d952b3e7..7b8400d8 100644
--- a/backend/static/frontend/_app/immutable/nodes/1.DRv4q_yx.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/1.BCPNhgBs.js.map
@@ -1 +1 @@
-{"version":3,"file":"1.DRv4q_yx.js","sources":["../../../../../../src/routes/+error.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { resolve } from '$app/paths';\n import { page } from '$app/state';\n import { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\n const status = $derived(page.status);\n const errorMessage = $derived(page.error?.message);\n</script>\n\n<ErrorDisplay\n {status}\n title={status === 404 ? 'Page Not Found' : 'Something Went Wrong'}\n description={errorMessage || (status === 404\n ? \"The page you're looking for doesn't exist or may have been moved.\"\n : 'An unexpected error occurred. Please try again.')}\n onBack={createRowClickHandler(resolve('/'))}\n backLabel=\"Go to Dashboard\"\n/>\n"],"names":["status","$.derived","page","errorMessage","$0","$.get","createRowClickHandler","resolve","ErrorDisplay","$$anchor"],"mappings":"oRAAA,eAMUA,EAAMC,EAAA,IAAYC,EAAK,MAAM,EAC7BC,EAAYF,EAAA,IAAYC,EAAK,OAAO,OAAO,GAK1C,IAAAE,EAAAH,EAAA,IAAAI,EAAAL,CAAM,IAAK,IAAM,iBAAmB,sBAAsB,YACpDG,CAAY,IAAAE,EAAKL,CAAM,IAAK,IACnC,oEACA,kDAAiD,UAC/CM,EAAsBC,EAAQ,GAAG,CAAA,CAAA,EAN5CC,EAAAC,EAAA,uBACIT,CAAM,sHAHX"}
\ No newline at end of file
+{"version":3,"file":"1.BCPNhgBs.js","sources":["../../../../../../src/routes/+error.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { resolve } from '$app/paths';\n import { page } from '$app/state';\n import { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\n const status = $derived(page.status);\n const errorMessage = $derived(page.error?.message);\n</script>\n\n<ErrorDisplay\n {status}\n title={status === 404 ? 'Page Not Found' : 'Something Went Wrong'}\n description={errorMessage || (status === 404\n ? \"The page you're looking for doesn't exist or may have been moved.\"\n : 'An unexpected error occurred. Please try again.')}\n onBack={createRowClickHandler(resolve('/'))}\n backLabel=\"Go to Dashboard\"\n/>\n"],"names":["status","$.derived","page","errorMessage","$0","$.get","createRowClickHandler","resolve","ErrorDisplay","$$anchor"],"mappings":"oRAAA,eAMUA,EAAMC,EAAA,IAAYC,EAAK,MAAM,EAC7BC,EAAYF,EAAA,IAAYC,EAAK,OAAO,OAAO,GAK1C,IAAAE,EAAAH,EAAA,IAAAI,EAAAL,CAAM,IAAK,IAAM,iBAAmB,sBAAsB,YACpDG,CAAY,IAAAE,EAAKL,CAAM,IAAK,IACnC,oEACA,kDAAiD,UAC/CM,EAAsBC,EAAQ,GAAG,CAAA,CAAA,EAN5CC,EAAAC,EAAA,uBACIT,CAAM,sHAHX"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/10.8Gifw9i9.js b/backend/static/frontend/_app/immutable/nodes/10.BZSbBkEa.js
similarity index 95%
rename from backend/static/frontend/_app/immutable/nodes/10.8Gifw9i9.js
rename to backend/static/frontend/_app/immutable/nodes/10.BZSbBkEa.js
index ca031dd3..eb5d6561 100644
--- a/backend/static/frontend/_app/immutable/nodes/10.8Gifw9i9.js
+++ b/backend/static/frontend/_app/immutable/nodes/10.BZSbBkEa.js
@@ -1,3 +1,3 @@
-import{r as Jt}from"../chunks/BJZ1igWb.js";import{b as qt,a as at,p as ot,t as yt}from"../chunks/D6S6XYVy.js";import{s as Gt,r as Yt,i as J}from"../chunks/DMODTt3n.js";import{o as Qt,a as Wt}from"../chunks/Dwk6gGSK.js";import{p as Rt,d as B,c as m,m as Xt,o as Zt,b as s,a as Ct,h as c,v as se,g as e,u as Se,f as C,e as i,r as d,s as o,n as g,t as F,i as t,k as A,l as h}from"../chunks/B2WdN-7r.js";import{e as er,i as tr}from"../chunks/CMyj8Fzw.js";import{c as f}from"../chunks/BAcG0-U_.js";import{p as Pt,g as rr,c as St,t as Tt,d as Ge,f as ar,b as or,h as sr}from"../chunks/DJdWGDax.js";import{b as nr,T as st,a as q,c as ir}from"../chunks/CeOjHHJH.js";import{T as dr}from"../chunks/CEJkX7WU.js";import{B as nt}from"../chunks/C1aqwstW.js";import{L as wt}from"../chunks/D0pIT200.js";import{d as Te,a as we,c as lr,b as it,p as ur,g as cr,u as pr,T as fr}from"../chunks/xqPrLpfy.js";import{T as ne}from"../chunks/BQmrPeqT.js";import{T as mr}from"../chunks/xk30YnJ1.js";import{E as Dt}from"../chunks/B-KBEnoV.js";import{A as vr}from"../chunks/C202V9ED.js";import{c as gr}from"../chunks/CyOblkUv.js";import{g as _r}from"../chunks/xR3pK9Ey.js";import{P as xr}from"../chunks/C8IsQj6C.js";import{P as hr}from"../chunks/BGqyWGxT.js";import{I as kt}from"../chunks/D8CWOmhn.js";import{A as $r,a as br,b as yr,c as Pr,d as Sr,e as Tr}from"../chunks/CtIWnZub.js";import{r as wr}from"../chunks/D_mqy6BL.js";import{g as Dr,h as kr,s as Ir}from"../chunks/X-i49s3k.js";import{I as Rr}from"../chunks/Bv_PbELb.js";function It(De,u){Rt(u,!0);let l=Yt(u,["$$slots","$$events","$$legacy"]);const ge=[["path",{d:"M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0"}],["circle",{cx:"10",cy:"13",r:"8"}],["path",{d:"M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6"}],["path",{d:"M18 3 19.1 5.2"}],["path",{d:"M22 3 20.9 5.2"}]];Rr(De,Gt({name:"snail"},()=>l,{get iconNode(){return ge},children:(E,G)=>{var ie=B(),ke=m(ie);Xt(ke,()=>u.children??Zt),s(E,ie)},$$slots:{default:!0}})),Ct()}const Cr=!1,Fr=({params:De,url:u})=>{if(!qt.isAuthenticated)throw Jt(302,"/login");return{endpoint:De.endpoint,preset:u.searchParams.get("preset")||null,from:u.searchParams.get("from")||null,to:u.searchParams.get("to")||null}},ha=Object.freeze(Object.defineProperty({__proto__:null,load:Fr,prerender:Cr},Symbol.toStringTag,{value:"Module"}));var Ar=C("<!> ",1),Br=C('<div class="flex items-center gap-2 rounded-md border border-border bg-muted/50 px-4 py-3 text-sm"><!> <span><span class="font-medium">Expected Performance:</span> <!></span></div>'),Er=C('<div class="grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-7"><div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average response time</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Median response time</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">95th percentile response time</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">99th percentile response time</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Apdex score</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average error rate</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average throughput</p></div></div>'),zr=C('<div class="flex items-center justify-center py-8"><!></div>'),Mr=C("<!> <!> <!> <!> <!> <!> <!> <!>",1),Ur=C('<div class="flex items-center justify-center"><!></div>'),jr=C("<!> <!> <!> <!> <!> <!> <!> <!>",1),Lr=C("<!> <!>",1),Or=C('<div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex items-start gap-2"><!> <!></div></div> <!> <!> <div class="overflow-hidden rounded-md border"><!></div> <!>',1),Nr=C("<!> <!>",1),Vr=C("<!> <!>",1),Kr=C(`<!> <div class="space-y-4 py-4"><div><label for="offset-input" class="text-sm font-medium">Offset (ms)</label> <!> <p class="text-xs text-muted-foreground mt-1.5">How many extra milliseconds above the default 750ms threshold are acceptable for this endpoint.
+import{r as Jt}from"../chunks/B4VmGkxP.js";import{b as qt,a as at,p as ot,t as yt}from"../chunks/qCQ2nSvO.js";import{s as Gt,r as Yt,i as J}from"../chunks/DMODTt3n.js";import{o as Qt,a as Wt}from"../chunks/Dwk6gGSK.js";import{p as Rt,d as B,c as m,m as Xt,o as Zt,b as s,a as Ct,h as c,v as se,g as e,u as Se,f as C,e as i,r as d,s as o,n as g,t as F,i as t,k as A,l as h}from"../chunks/B2WdN-7r.js";import{e as er,i as tr}from"../chunks/CMyj8Fzw.js";import{c as f}from"../chunks/BAcG0-U_.js";import{p as Pt,g as rr,c as St,t as Tt,d as Ge,f as ar,b as or,h as sr}from"../chunks/Dq-0lVru.js";import{b as nr,T as st,a as q,c as ir}from"../chunks/CeOjHHJH.js";import{T as dr}from"../chunks/CEJkX7WU.js";import{B as nt}from"../chunks/C1aqwstW.js";import{L as wt}from"../chunks/D0pIT200.js";import{d as Te,a as we,c as lr,b as it,p as ur,g as cr,u as pr,T as fr}from"../chunks/DjEjtFrE.js";import{T as ne}from"../chunks/CkVJuMBr.js";import{T as mr}from"../chunks/xk30YnJ1.js";import{E as Dt}from"../chunks/CFZS-Ydw.js";import{A as vr}from"../chunks/Dtb4566M.js";import{c as gr}from"../chunks/UIirCQWa.js";import{g as _r}from"../chunks/BIF4_51j.js";import{P as xr}from"../chunks/DByR3-93.js";import{P as hr}from"../chunks/Cplpgpvt.js";import{I as kt}from"../chunks/D8CWOmhn.js";import{A as $r,a as br,b as yr,c as Pr,d as Sr,e as Tr}from"../chunks/CmY6xZEr.js";import{r as wr}from"../chunks/BGApn_8u.js";import{g as Dr,h as kr,s as Ir}from"../chunks/X-i49s3k.js";import{I as Rr}from"../chunks/Bv_PbELb.js";function It(De,u){Rt(u,!0);let l=Yt(u,["$$slots","$$events","$$legacy"]);const ge=[["path",{d:"M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0"}],["circle",{cx:"10",cy:"13",r:"8"}],["path",{d:"M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6"}],["path",{d:"M18 3 19.1 5.2"}],["path",{d:"M22 3 20.9 5.2"}]];Rr(De,Gt({name:"snail"},()=>l,{get iconNode(){return ge},children:(E,G)=>{var ie=B(),ke=m(ie);Xt(ke,()=>u.children??Zt),s(E,ie)},$$slots:{default:!0}})),Ct()}const Cr=!1,Fr=({params:De,url:u})=>{if(!qt.isAuthenticated)throw Jt(302,"/login");return{endpoint:De.endpoint,preset:u.searchParams.get("preset")||null,from:u.searchParams.get("from")||null,to:u.searchParams.get("to")||null}},ha=Object.freeze(Object.defineProperty({__proto__:null,load:Fr,prerender:Cr},Symbol.toStringTag,{value:"Module"}));var Ar=C("<!> ",1),Br=C('<div class="flex items-center gap-2 rounded-md border border-border bg-muted/50 px-4 py-3 text-sm"><!> <span><span class="font-medium">Expected Performance:</span> <!></span></div>'),Er=C('<div class="grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-7"><div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average response time</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Median response time</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">95th percentile response time</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">99th percentile response time</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Apdex score</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average error rate</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average throughput</p></div></div>'),zr=C('<div class="flex items-center justify-center py-8"><!></div>'),Mr=C("<!> <!> <!> <!> <!> <!> <!> <!>",1),Ur=C('<div class="flex items-center justify-center"><!></div>'),jr=C("<!> <!> <!> <!> <!> <!> <!> <!>",1),Lr=C("<!> <!>",1),Or=C('<div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex items-start gap-2"><!> <!></div></div> <!> <!> <div class="overflow-hidden rounded-md border"><!></div> <!>',1),Nr=C("<!> <!>",1),Vr=C("<!> <!>",1),Kr=C(`<!> <div class="space-y-4 py-4"><div><label for="offset-input" class="text-sm font-medium">Offset (ms)</label> <!> <p class="text-xs text-muted-foreground mt-1.5">How many extra milliseconds above the default 750ms threshold are acceptable for this endpoint.
Set to 0 to remove the offset.</p></div> <div><label for="reason-input" class="text-sm font-medium">Reason</label> <!> <p class="text-xs text-muted-foreground mt-1.5">Explain why this endpoint is expected to be slow.</p></div></div> <!>`,1),Hr=C('<div class="space-y-6"><!></div> <!>',1);function $a(De,u){Rt(u,!0);const l=Se(rr);let ge=c(se([])),E=c(null),G=c(!0),ie=c(""),ke=c(!1),Le=c(0),de=c(1),Ye=c(50),dt=c(0),Qe=c(0);function Ft(){if(u.data.preset&&lr[u.data.preset]){const a=it(u.data.preset,e(l));return{preset:u.data.preset,from:a.from,to:a.to}}if(u.data.from&&u.data.to){const a=Pt(u.data.from,e(l)),p=Pt(u.data.to,e(l));if(a.isValid&&p.isValid)return{preset:null,from:a.toJSDate(),to:p.toJSDate()}}const r=it("24h",e(l));return{preset:"24h",from:r.from,to:r.to}}const Ie=Ft();let j=c(se(Ie.preset)),Y=c(se(Te(Ie.from,e(l)))),Q=c(se(Te(Ie.to,e(l)))),_e=c(se(we(Ie.from,e(l)))),xe=c(se(we(Ie.to,e(l))));function At(r=!0){pr(e(j)?{preset:e(j)}:{from:We(),to:Xe()},{pushToHistory:r})}const lt="endpoint_detail",ut=Dr(lt,{field:"recorded_at",direction:"desc"});let le=c(se(ut.field)),ue=c(se(ut.direction)),O=c(0),he=c(""),Re=c(!1),Ce=c(!1),Oe=c(""),Fe=c("");function We(){const[r,a]=(e(_e)||"00:00").split(":").map(Number),p=St({year:e(Y).year,month:e(Y).month,day:e(Y).day,hour:r,minute:a},e(l));return Tt(p)}function Xe(){const[r,a]=(e(xe)||"23:59").split(":").map(Number),p=St({year:e(Q).year,month:e(Q).month,day:e(Q).day,hour:r,minute:a},e(l)).endOf("minute");return Tt(p)}function Ze(r){const a=new URLSearchParams;e(j)?a.set("preset",e(j)):(a.set("from",We()),a.set("to",Xe()));const p=wr("/endpoints")+"?"+a.toString();r.ctrlKey||r.metaKey?window.open(p,"_blank"):_r(p)}function Bt(r,a,p){t(Y,r.date,!0),t(_e,r.time,!0),t(Q,a.date,!0),t(xe,a.time,!0),t(j,p,!0),t(de,1),W()}function Et(r){return r<1024?`${r} B`:r<1024*1024?`${(r/1024).toFixed(1)} KB`:`${(r/(1024*1024)).toFixed(2)} MB`}async function W(r=!0){if(t(G,!0),t(ie,""),t(ke,!1),t(Le,0),e(j)){const a=it(e(j),e(l));t(Y,Te(a.from,e(l)),!0),t(Q,Te(a.to,e(l)),!0),t(_e,we(a.from,e(l)),!0),t(xe,we(a.to,e(l)),!0)}At(r);try{const a={fromDate:We(),toDate:Xe(),orderBy:e(le),sortDirection:e(ue),pagination:{page:e(de),pageSize:e(Ye)}},p=await at.post(`/endpoints/endpoint?endpoint=${encodeURIComponent(u.data.endpoint)}`,a,{projectId:ot.currentProjectId??void 0});t(ge,p.data||[],!0),t(E,p.stats||null,!0),t(dt,p.pagination.total,!0),t(Qe,p.pagination.totalPages,!0)}catch(a){console.error(a),t(Le,a.status||0,!0),a.status===404?t(ke,!0):t(ie,a.message||"Failed to load data",!0)}finally{t(G,!1)}}function zt(r){r>=1&&r<=e(Qe)&&(t(de,r,!0),W(!1))}function Mt(r){t(Ye,r,!0),t(de,1),W(!1)}function Ne(r){const a=kr(r,e(le),e(ue));t(le,a.field,!0),t(ue,a.direction,!0),Ir(lt,a),t(de,1),W(!1)}async function Ut(){try{const r=await at.get(`/endpoints/slow?endpoint=${encodeURIComponent(u.data.endpoint)}`,{projectId:ot.currentProjectId??void 0});t(O,r.offsetMs??0,!0),t(he,r.reason??"",!0)}catch{t(O,0),t(he,"")}}async function jt(){t(Ce,!0);try{const r=parseInt(e(Oe))||0;await at.post("/endpoints/slow",{endpoint:decodeURIComponent(u.data.endpoint),offsetMs:Math.max(0,r),reason:e(Fe)},{projectId:ot.currentProjectId??void 0}),t(O,Math.max(0,r),!0),t(he,e(Fe),!0),t(Re,!1),yt.success("Expected performance updated")}catch(r){yt.error(r.message||"Failed to save")}finally{t(Ce,!1)}}function ct(){const r=ur(e(l)),a=cr(r,e(l));t(j,r.preset,!0),t(Y,Te(a.from,e(l)),!0),t(Q,Te(a.to,e(l)),!0),t(_e,we(a.from,e(l)),!0),t(xe,we(a.to,e(l)),!0),t(de,1),W(!1)}Qt(()=>{window.addEventListener("popstate",ct),W(!1),Ut()}),Wt(()=>{typeof window<"u"&&window.removeEventListener("popstate",ct)});var pt=Hr(),et=m(pt),Lt=i(et);{var Ot=r=>{{let a=Se(()=>decodeURIComponent(u.data.endpoint));Dt(r,{status:404,title:"Endpoint Not Found",description:"The endpoint you're looking for doesn't exist or has no recorded traces.",onBack:Ze,backLabel:"Back to Endpoints",onRetry:()=>W(!1),get identifier(){return e(a)}})}},Nt=r=>{var a=B(),p=m(a);{var ft=X=>{{let $e=Se(()=>e(Le)===400?400:e(Le)===422?422:400);Dt(X,{get status(){return e($e)},title:"Failed to Load Traces",get description(){return e(ie)},onBack:Ze,backLabel:"Back to Endpoints",onRetry:()=>W(!1)})}},Ve=X=>{var $e=Or(),Ae=m($e),Ke=i(Ae);{let n=Se(()=>decodeURIComponent(u.data.endpoint));hr(Ke,{get title(){return e(n)},subtitle:"Trace instances for this endpoint",onBack:Ze})}var tt=o(Ke,2),Be=i(tt);nt(Be,{variant:"outline",size:"sm",onclick:()=>{t(Oe,e(O)>0?String(e(O)):"",!0),t(Fe,e(he),!0),t(Re,!0)},children:(n,S)=>{var _=Ar(),$=m(_);It($,{class:"h-4 w-4"});var b=o($);A(()=>h(b,` ${e(O)>0?`+${e(O)}ms offset`:"Expected Performance"}`)),s(n,_)},$$slots:{default:!0}});var He=o(Be,2);fr(He,{onApply:Bt,get fromDate(){return e(Y)},set fromDate(n){t(Y,n,!0)},get toDate(){return e(Q)},set toDate(n){t(Q,n,!0)},get fromTime(){return e(_e)},set fromTime(n){t(_e,n,!0)},get toTime(){return e(xe)},set toTime(n){t(xe,n,!0)},get preset(){return e(j)},set preset(n){t(j,n,!0)}}),d(tt),d(Ae);var be=o(Ae,2);{var Ee=n=>{var S=Br(),_=i(S);It(_,{class:"h-4 w-4 shrink-0 text-muted-foreground"});var $=o(_,2),b=o(i($)),v=o(b);{var k=P=>{var I=F();A(()=>h(I,e(he))),s(P,I)};J(v,P=>{e(he)&&P(k)})}d($),d(S),A(()=>h(b,` +${e(O)??""}ms offset applied. `)),s(n,S)};J(be,n=>{e(O)>0&&n(Ee)})}var Je=o(be,2);{var qe=n=>{var S=Er(),_=i(S),$=i(_),b=i($,!0);d($),g(2),d(_);var v=o(_,2),k=i(v),P=i(k,!0);d(k),g(2),d(v);var I=o(v,2),z=i(I),Ue=i(z,!0);d(z),g(2),d(I);var ye=o(I,2),ce=i(ye),je=i(ce,!0);d(ce),g(2),d(ye);var Pe=o(ye,2),pe=i(Pe),L=i(pe,!0);d(pe),g(2),d(Pe);var M=o(Pe,2),Z=i(M),fe=i(Z);d(Z),g(2),d(M);var me=o(M,2),R=i(me),ee=i(R);d(R),g(2),d(me),d(S),A((V,te,y,K,re,ve,H)=>{h(b,V),h(P,te),h(Ue,y),h(je,K),h(L,re),h(fe,`${ve??""} %`),h(ee,`${H??""} rpm`)},[()=>Ge(e(E).avgDuration),()=>Ge(e(E).medianDuration),()=>Ge(e(E).p95Duration),()=>Ge(e(E).p99Duration),()=>e(E).apdex.toFixed(2),()=>e(E).errorRate.toFixed(2),()=>e(E).throughput.toFixed(0)]),s(n,S)},rt=n=>{var S=B(),_=m(S);{var $=b=>{var v=zr(),k=i(v);wt(k,{size:"lg"}),d(v),s(b,v)};J(_,b=>{e(G)&&b($)},!0)}s(n,S)};J(Je,n=>{e(E)?n(qe):n(rt,!1)})}var ze=o(Je,2),N=i(ze);f(N,()=>ir,(n,S)=>{S(n,{children:(_,$)=>{var b=Lr(),v=m(b);{var k=I=>{var z=B(),Ue=m(z);f(Ue,()=>dr,(ye,ce)=>{ce(ye,{children:(je,Pe)=>{var pe=B(),L=m(pe);f(L,()=>st,(M,Z)=>{Z(M,{children:(fe,me)=>{var R=Mr(),ee=m(R);ne(ee,{label:"Recorded At",sortField:"recorded_at",get currentSortField(){return e(le)},get sortDirection(){return e(ue)},onSort:U=>Ne(U),class:"w-[180px]"});var V=o(ee,2);ne(V,{label:"Duration",sortField:"duration",get currentSortField(){return e(le)},get sortDirection(){return e(ue)},onSort:U=>Ne(U),class:"w-[120px]"});var te=o(V,2);ne(te,{label:"Status",sortField:"status_code",get currentSortField(){return e(le)},get sortDirection(){return e(ue)},onSort:U=>Ne(U),class:"w-[100px]"});var y=o(te,2);ne(y,{label:"Body Size",sortField:"body_size",get currentSortField(){return e(le)},get sortDirection(){return e(ue)},onSort:U=>Ne(U),class:"w-[100px]"});var K=o(y,2);ne(K,{label:"Client IP",class:"w-[140px]"});var re=o(K,2);ne(re,{label:"Server",class:"w-[120px]"});var ve=o(re,2);ne(ve,{label:"Version",class:"w-[100px]"});var H=o(ve,2);ne(H,{label:"Attributes"}),s(fe,R)},$$slots:{default:!0}})}),s(je,pe)},$$slots:{default:!0}})}),s(I,z)};J(v,I=>{(e(G)||e(ge).length>0)&&I(k)})}var P=o(v,2);f(P,()=>nr,(I,z)=>{z(I,{children:(Ue,ye)=>{var ce=B(),je=m(ce);{var Pe=L=>{var M=B(),Z=m(M);f(Z,()=>st,(fe,me)=>{me(fe,{children:(R,ee)=>{var V=B(),te=m(V);f(te,()=>q,(y,K)=>{K(y,{colspan:8,class:"h-48",children:(re,ve)=>{var H=Ur(),U=i(H);wt(U,{size:"lg"}),d(H),s(re,H)},$$slots:{default:!0}})}),s(R,V)},$$slots:{default:!0}})}),s(L,M)},pe=L=>{var M=B(),Z=m(M);{var fe=R=>{mr(R,{colspan:8,message:"No traces found in this time range."})},me=R=>{var ee=B(),V=m(ee);er(V,17,()=>e(ge),tr,(te,y)=>{var K=B(),re=m(K);{let ve=Se(()=>gr(`/endpoints/${encodeURIComponent(decodeURIComponent(u.data.endpoint))}/${e(y).id}`,"preset","from","to"));f(re,()=>st,(H,U)=>{U(H,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return e(ve)},children:(Kt,Jr)=>{var mt=jr(),vt=m(mt);f(vt,()=>q,(T,w)=>{w(T,{class:"text-muted-foreground",children:(D,ae)=>{g();var x=F();A(oe=>h(x,oe),[()=>ar(e(y).recordedAt,{timezone:e(l)})]),s(D,x)},$$slots:{default:!0}})});var gt=o(vt,2);f(gt,()=>q,(T,w)=>{w(T,{class:"font-mono text-sm",children:(D,ae)=>{g();var x=F();A(oe=>h(x,oe),[()=>or(e(y).duration)]),s(D,x)},$$slots:{default:!0}})});var _t=o(gt,2);{let T=Se(()=>sr(e(y).statusCode));f(_t,()=>q,(w,D)=>{D(w,{get class(){return`font-mono text-sm ${e(T)??""}`},children:(ae,x)=>{g();var oe=F();A(()=>h(oe,e(y).statusCode)),s(ae,oe)},$$slots:{default:!0}})})}var xt=o(_t,2);f(xt,()=>q,(T,w)=>{w(T,{class:"font-mono text-sm",children:(D,ae)=>{g();var x=F();A(oe=>h(x,oe),[()=>Et(e(y).bodySize)]),s(D,x)},$$slots:{default:!0}})});var ht=o(xt,2);f(ht,()=>q,(T,w)=>{w(T,{class:"font-mono text-sm text-muted-foreground",children:(D,ae)=>{g();var x=F();A(()=>h(x,e(y).clientIP)),s(D,x)},$$slots:{default:!0}})});var $t=o(ht,2);f($t,()=>q,(T,w)=>{w(T,{class:"font-mono text-sm text-muted-foreground",children:(D,ae)=>{g();var x=F();A(()=>h(x,e(y).serverName||"-")),s(D,x)},$$slots:{default:!0}})});var bt=o($t,2);f(bt,()=>q,(T,w)=>{w(T,{class:"font-mono text-sm text-muted-foreground",children:(D,ae)=>{g();var x=F();A(()=>h(x,e(y).appVersion||"-")),s(D,x)},$$slots:{default:!0}})});var Ht=o(bt,2);f(Ht,()=>q,(T,w)=>{w(T,{children:(D,ae)=>{vr(D,{get attributes(){return e(y).attributes}})},$$slots:{default:!0}})}),s(Kt,mt)},$$slots:{default:!0}})})}s(te,K)}),s(R,ee)};J(Z,R=>{e(ge).length===0?R(fe):R(me,!1)},!0)}s(L,M)};J(je,L=>{e(G)?L(Pe):L(pe,!1)})}s(Ue,ce)},$$slots:{default:!0}})}),s(_,b)},$$slots:{default:!0}})}),d(ze);var Me=o(ze,2);xr(Me,{get currentPage(){return e(de)},get totalPages(){return e(Qe)},get pageSize(){return e(Ye)},get totalItems(){return e(dt)},onPageChange:zt,onPageSizeChange:Mt,get loading(){return e(G)},itemLabel:"endpoint"}),s(X,$e)};J(p,X=>{e(ie)&&!e(G)?X(ft):X(Ve,!1)},!0)}s(r,a)};J(Lt,r=>{e(ke)?r(Ot):r(Nt,!1)})}d(et);var Vt=o(et,2);f(Vt,()=>Tr,(r,a)=>{a(r,{get open(){return e(Re)},set open(p){t(Re,p,!0)},children:(p,ft)=>{var Ve=B(),X=m(Ve);f(X,()=>$r,($e,Ae)=>{Ae($e,{interactOutsideBehavior:"close",children:(Ke,tt)=>{var Be=Kr(),He=m(Be);f(He,()=>br,(N,Me)=>{Me(N,{children:(n,S)=>{var _=Nr(),$=m(_);f($,()=>yr,(v,k)=>{k(v,{children:(P,I)=>{g();var z=F("Expected Performance");s(P,z)},$$slots:{default:!0}})});var b=o($,2);f(b,()=>Pr,(v,k)=>{k(v,{children:(P,I)=>{g();var z=F(`Set a time offset for endpoints that are expected to be slow (e.g., report generation, data exports).
The offset adjusts impact score thresholds so the endpoint isn't flagged as unhealthy.`);s(P,z)},$$slots:{default:!0}})}),s(n,_)},$$slots:{default:!0}})});var be=o(He,2),Ee=i(be),Je=o(i(Ee),2);kt(Je,{id:"offset-input",type:"number",placeholder:"e.g., 2000",min:"0",class:"mt-1.5",get value(){return e(Oe)},set value(N){t(Oe,N,!0)}}),g(2),d(Ee);var qe=o(Ee,2),rt=o(i(qe),2);kt(rt,{id:"reason-input",type:"text",placeholder:"e.g., generates large PDF reports",class:"mt-1.5",get value(){return e(Fe)},set value(N){t(Fe,N,!0)}}),g(2),d(qe),d(be);var ze=o(be,2);f(ze,()=>Sr,(N,Me)=>{Me(N,{children:(n,S)=>{var _=Vr(),$=m(_);nt($,{variant:"outline",onclick:()=>t(Re,!1),get disabled(){return e(Ce)},children:(v,k)=>{g();var P=F("Cancel");s(v,P)},$$slots:{default:!0}});var b=o($,2);nt(b,{onclick:jt,get disabled(){return e(Ce)},children:(v,k)=>{g();var P=F();A(()=>h(P,e(Ce)?"Saving...":"Save")),s(v,P)},$$slots:{default:!0}}),s(n,_)},$$slots:{default:!0}})}),s(Ke,Be)},$$slots:{default:!0}})}),s(p,Ve)},$$slots:{default:!0}})}),s(De,pt),Ct()}export{$a as component,ha as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/10.8Gifw9i9.js.map b/backend/static/frontend/_app/immutable/nodes/10.BZSbBkEa.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/10.8Gifw9i9.js.map
rename to backend/static/frontend/_app/immutable/nodes/10.BZSbBkEa.js.map
index 46f29787..9440450f 100644
--- a/backend/static/frontend/_app/immutable/nodes/10.8Gifw9i9.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/10.BZSbBkEa.js.map
@@ -1 +1 @@
-{"version":3,"file":"10.8Gifw9i9.js","sources":["../../../../../../node_modules/@lucide/svelte/dist/icons/snail.svelte","../../../../../../src/routes/endpoints/[endpoint]/+page.ts","../../../../../../src/routes/endpoints/[endpoint]/+page.svelte"],"sourcesContent":["<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0\" }], [\"circle\", { \"cx\": \"10\", \"cy\": \"13\", \"r\": \"8\" }], [\"path\", { \"d\": \"M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6\" }], [\"path\", { \"d\": \"M18 3 19.1 5.2\" }], [\"path\", { \"d\": \"M22 3 20.9 5.2\" }]];\n/**\n * @component @name Snail\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMiAxM2E2IDYgMCAxIDAgMTIgMCA0IDQgMCAxIDAtOCAwIDIgMiAwIDAgMCA0IDAiIC8+CiAgPGNpcmNsZSBjeD0iMTAiIGN5PSIxMyIgcj0iOCIgLz4KICA8cGF0aCBkPSJNMiAyMWgxMmM0LjQgMCA4LTMuNiA4LThWN2EyIDIgMCAxIDAtNCAwdjYiIC8+CiAgPHBhdGggZD0iTTE4IDMgMTkuMSA1LjIiIC8+CiAgPHBhdGggZD0iTTIyIDMgMjAuOSA1LjIiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/snail\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"snail\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\tendpoint: params.endpoint,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount, onDestroy } from 'svelte';\n\timport { api } from '$lib/api';\n\timport {\n\t\tformatDuration,\n\t\tformatDurationMs,\n\t\tgetStatusColor,\n\t\tformatDateTime,\n\t\tparseISO,\n\t\ttoUTCISO,\n\t\tcalendarDateTimeToLuxon\n\t} from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport * as Table from '$lib/components/ui/table';\n\timport { Button } from '$lib/components/ui/button';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { ArrowLeft, Snail } from '@lucide/svelte';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { CalendarDate } from '@internationalized/date';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport AttributesDisplay from '$lib/components/attributes-display.svelte';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\timport { goto } from '$app/navigation';\n\timport PaginationFooter from '$lib/components/ui/pagination-footer/pagination-footer.svelte';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { Input } from '$lib/components/ui/input';\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport { toast } from 'svelte-sonner';\n\timport { resolve } from '$app/paths';\n\timport {\n\t\tpresetMinutes,\n\t\tgetTimeRangeFromPreset,\n\t\tparseTimeRangeFromUrl,\n\t\tgetResolvedTimeRange,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport {\n\t\tgetSortState,\n\t\tsetSortState,\n\t\thandleSortClick,\n\t\ttype SortDirection\n\t} from '$lib/utils/sort-storage';\n\n\tconst timezone = $derived(getTimezone());\n\n\ttype EndpointInstance = {\n\t\tid: string;\n\t\tendpoint: string;\n\t\tduration: number;\n\t\trecordedAt: string;\n\t\tstatusCode: number;\n\t\tbodySize: number;\n\t\tclientIP: string;\n\t\tattributes: Record<string, string> | null;\n\t\tserverName: string;\n\t\tappVersion: string;\n\t};\n\n\ttype EndpointStats = {\n\t\tcount: number;\n\t\tavgDuration: number;\n\t\tmedianDuration: number;\n\t\tp95Duration: number;\n\t\tp99Duration: number;\n\t\tapdex: number;\n\t\terrorRate: number;\n\t\tthroughput: number;\n\t};\n\n\ttype SortField = 'recorded_at' | 'duration' | 'status_code' | 'body_size';\n\n\tlet { data } = $props();\n\n\tlet transactions = $state<EndpointInstance[]>([]);\n\tlet stats = $state<EndpointStats | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\tlet errorStatus = $state<number>(0);\n\n\t// Pagination State\n\tlet page = $state(1);\n\tlet pageSize = $state(50);\n\tlet total = $state(0);\n\tlet totalPages = $state(0);\n\n\t// Initialize from URL params (from page data)\n\tfunction getInitialRange(): { preset: string | null; from: Date; to: Date } {\n\t\t// If preset is provided, use it\n\t\tif (data.preset && presetMinutes[data.preset]) {\n\t\t\tconst range = getTimeRangeFromPreset(data.preset, timezone);\n\t\t\treturn { preset: data.preset, from: range.from, to: range.to };\n\t\t}\n\n\t\t// If custom from/to provided\n\t\tif (data.from && data.to) {\n\t\t\tconst fromDt = parseISO(data.from, timezone);\n\t\t\tconst toDt = parseISO(data.to, timezone);\n\t\t\tif (fromDt.isValid && toDt.isValid) {\n\t\t\t\treturn { preset: null, from: fromDt.toJSDate(), to: toDt.toJSDate() };\n\t\t\t}\n\t\t}\n\n\t\t// Default to 24h preset\n\t\tconst range = getTimeRangeFromPreset('24h', timezone);\n\t\treturn { preset: '24h', from: range.from, to: range.to };\n\t}\n\n\tconst initialRange = getInitialRange();\n\n\t// Date Range State\n\tlet selectedPreset = $state<string | null>(initialRange.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\tfunction updateTimeRangeUrl(pushToHistory = true) {\n\t\tupdateUrl(\n\t\t\tselectedPreset\n\t\t\t\t? { preset: selectedPreset }\n\t\t\t\t: { from: getFromDateTimeUTC(), to: getToDateTimeUTC() },\n\t\t\t{ pushToHistory }\n\t\t);\n\t}\n\n\t// Sorting State - persisted to localStorage\n\tconst SORT_STORAGE_KEY = 'endpoint_detail';\n\tconst initialSort = getSortState(SORT_STORAGE_KEY, { field: 'recorded_at', direction: 'desc' });\n\tlet orderBy = $state<SortField>(initialSort.field as SortField);\n\tlet sortDirection = $state<SortDirection>(initialSort.direction);\n\n\t// Slow endpoint state\n\tlet offsetMs = $state<number>(0);\n\tlet reason = $state('');\n\tlet showSlowDialog = $state(false);\n\tlet slowLoading = $state(false);\n\tlet offsetInput = $state('');\n\tlet reasonInput = $state('');\n\n\t// Combine date and time into UTC ISO datetime string\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = (toTime || '23:59').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction goBackToEndpoints(event: MouseEvent) {\n\t\tconst params = new URLSearchParams();\n\t\tif (selectedPreset) {\n\t\t\tparams.set('preset', selectedPreset);\n\t\t} else {\n\t\t\tparams.set('from', getFromDateTimeUTC());\n\t\t\tparams.set('to', getToDateTimeUTC());\n\t\t}\n\t\tconst href = resolve('/endpoints') + '?' + params.toString();\n\t\tif (event.ctrlKey || event.metaKey) {\n\t\t\twindow.open(href, '_blank');\n\t\t} else {\n\t\t\tgoto(href);\n\t\t}\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\tfromTime = from.time;\n\t\ttoDate = to.date;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\tpage = 1;\n\t\tloadData();\n\t}\n\n\tfunction formatBytes(bytes: number): string {\n\t\tif (bytes < 1024) {\n\t\t\treturn `${bytes} B`;\n\t\t} else if (bytes < 1024 * 1024) {\n\t\t\treturn `${(bytes / 1024).toFixed(1)} KB`;\n\t\t} else {\n\t\t\treturn `${(bytes / (1024 * 1024)).toFixed(2)} MB`;\n\t\t}\n\t}\n\n\tasync function loadData(pushToHistory = true) {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\t\terrorStatus = 0;\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\n\t\tupdateTimeRangeUrl(pushToHistory);\n\n\t\ttry {\n\t\t\tconst requestBody = {\n\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\ttoDate: getToDateTimeUTC(),\n\t\t\t\torderBy: orderBy,\n\t\t\t\tsortDirection: sortDirection,\n\t\t\t\tpagination: {\n\t\t\t\t\tpage: page,\n\t\t\t\t\tpageSize: pageSize\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tconst response = await api.post(\n\t\t\t\t`/endpoints/endpoint?endpoint=${encodeURIComponent(data.endpoint)}`,\n\t\t\t\trequestBody,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\ttransactions = response.data || [];\n\t\t\tstats = response.stats || null;\n\t\t\ttotal = response.pagination.total;\n\t\t\ttotalPages = response.pagination.totalPages;\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\terrorStatus = e.status || 0;\n\t\t\tif (e.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = e.message || 'Failed to load data';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handlePageChange(newPage: number) {\n\t\tif (newPage >= 1 && newPage <= totalPages) {\n\t\t\tpage = newPage;\n\t\t\tloadData(false);\n\t\t}\n\t}\n\n\tfunction handlePageSizeChange(newPageSize: number) {\n\t\tpageSize = newPageSize;\n\t\tpage = 1;\n\t\tloadData(false); // Don't push to history for pagination\n\t}\n\n\tfunction handleSort(field: SortField) {\n\t\tconst newSort = handleSortClick(field, orderBy, sortDirection);\n\t\torderBy = newSort.field as SortField;\n\t\tsortDirection = newSort.direction;\n\t\tsetSortState(SORT_STORAGE_KEY, newSort);\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tasync function loadSlowEndpoint() {\n\t\ttry {\n\t\t\tconst response = await api.get(\n\t\t\t\t`/endpoints/slow?endpoint=${encodeURIComponent(data.endpoint)}`,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\toffsetMs = response.offsetMs ?? 0;\n\t\t\treason = response.reason ?? '';\n\t\t} catch {\n\t\t\toffsetMs = 0;\n\t\t\treason = '';\n\t\t}\n\t}\n\n\tasync function saveSlowEndpoint() {\n\t\tslowLoading = true;\n\t\ttry {\n\t\t\tconst value = parseInt(offsetInput) || 0;\n\t\t\tawait api.post(\n\t\t\t\t'/endpoints/slow',\n\t\t\t\t{ endpoint: decodeURIComponent(data.endpoint), offsetMs: Math.max(0, value), reason: reasonInput },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\toffsetMs = Math.max(0, value);\n\t\t\treason = reasonInput;\n\t\t\tshowSlowDialog = false;\n\t\t\ttoast.success('Expected performance updated');\n\t\t} catch (e: any) {\n\t\t\ttoast.error(e.message || 'Failed to save');\n\t\t} finally {\n\t\t\tslowLoading = false;\n\t\t}\n\t}\n\n\tfunction handlePopState() {\n\t\tconst urlParams = parseTimeRangeFromUrl(timezone);\n\t\tconst range = getResolvedTimeRange(urlParams, timezone);\n\t\tselectedPreset = urlParams.preset;\n\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tonMount(() => {\n\t\twindow.addEventListener('popstate', handlePopState);\n\t\tloadData(false);\n\t\tloadSlowEndpoint();\n\t});\n\n\tonDestroy(() => {\n\t\tif (typeof window !== 'undefined') {\n\t\t\twindow.removeEventListener('popstate', handlePopState);\n\t\t}\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t{#if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"Endpoint Not Found\"\n\t\t\tdescription=\"The endpoint you're looking for doesn't exist or has no recorded traces.\"\n\t\t\tonBack={goBackToEndpoints}\n\t\t\tbackLabel=\"Back to Endpoints\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t\tidentifier={decodeURIComponent(data.endpoint)}\n\t\t/>\n\t{:else if error && !loading}\n\t\t<ErrorDisplay\n\t\t\tstatus={errorStatus === 400 ? 400 : errorStatus === 422 ? 422 : 400}\n\t\t\ttitle=\"Failed to Load Traces\"\n\t\t\tdescription={error}\n\t\t\tonBack={goBackToEndpoints}\n\t\t\tbackLabel=\"Back to Endpoints\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t/>\n\t{:else}\n\t\t<!-- Header with Title and Time Range Filter -->\n\t\t<div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n\t\t\t<PageHeader\n\t\t\t\ttitle={decodeURIComponent(data.endpoint)}\n\t\t\t\tsubtitle=\"Trace instances for this endpoint\"\n\t\t\t\tonBack={goBackToEndpoints}\n\t\t\t/>\n\n\t\t\t<div class=\"flex items-start gap-2\">\n\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={() => { offsetInput = offsetMs > 0 ? String(offsetMs) : ''; reasonInput = reason; showSlowDialog = true; }}>\n\t\t\t\t\t<Snail class=\"h-4 w-4\" />\n\t\t\t\t\t{offsetMs > 0 ? `+${offsetMs}ms offset` : 'Expected Performance'}\n\t\t\t\t</Button>\n\t\t\t\t<TimeRangePicker\n\t\t\t\t\tbind:fromDate\n\t\t\t\t\tbind:toDate\n\t\t\t\t\tbind:fromTime\n\t\t\t\t\tbind:toTime\n\t\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\n\t\t{#if offsetMs > 0}\n\t\t\t<div class=\"flex items-center gap-2 rounded-md border border-border bg-muted/50 px-4 py-3 text-sm\">\n\t\t\t\t<Snail class=\"h-4 w-4 shrink-0 text-muted-foreground\" />\n\t\t\t\t<span>\n\t\t\t\t\t<span class=\"font-medium\">Expected Performance:</span> +{offsetMs}ms offset applied.\n\t\t\t\t\t{#if reason}\n\t\t\t\t\t\t{reason}\n\t\t\t\t\t{/if}\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Endpoint Stats -->\n\t\t{#if stats}\n\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-7\">\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.avgDuration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average response time</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">\n\t\t\t\t\t\t{formatDurationMs(stats.medianDuration)}\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Median response time</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.p95Duration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">95th percentile response time</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.p99Duration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">99th percentile response time</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{stats.apdex.toFixed(2)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Apdex score</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{stats.errorRate.toFixed(2)} %</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average error rate</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{stats.throughput.toFixed(0)} rpm</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average throughput</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{:else if loading}\n\t\t\t<div class=\"flex items-center justify-center py-8\">\n\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Traces Table -->\n\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t<Table.Root>\n\t\t\t\t{#if loading || transactions.length > 0}\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\t\t\tsortField=\"recorded_at\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[180px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Duration\"\n\t\t\t\t\t\t\t\tsortField=\"duration\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[120px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Status\"\n\t\t\t\t\t\t\t\tsortField=\"status_code\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[100px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Body Size\"\n\t\t\t\t\t\t\t\tsortField=\"body_size\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[100px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Client IP\" class=\"w-[140px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Server\" class=\"w-[120px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Version\" class=\"w-[100px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Attributes\" />\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t{/if}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Cell colspan={8} class=\"h-48\">\n\t\t\t\t\t\t\t\t<div class=\"flex items-center justify-center\">\n\t\t\t\t\t\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t{:else if transactions.length === 0}\n\t\t\t\t\t\t<TableEmptyState colspan={8} message=\"No traces found in this time range.\" />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{#each transactions as transaction}\n\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/endpoints/${encodeURIComponent(decodeURIComponent(data.endpoint))}/${transaction.id}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{formatDateTime(transaction.recordedAt, { timezone })}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t{formatDuration(transaction.duration)}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm {getStatusColor(transaction.statusCode)}\">\n\t\t\t\t\t\t\t\t\t{transaction.statusCode}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t{formatBytes(transaction.bodySize)}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{transaction.clientIP}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{transaction.serverName || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{transaction.appVersion || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t<AttributesDisplay attributes={transaction.attributes} />\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t{/if}\n\t\t\t\t</Table.Body>\n\t\t\t</Table.Root>\n\t\t</div>\n\n\t\t<!-- Pagination Footer -->\n\t\t<PaginationFooter\n\t\t\tcurrentPage={page}\n\t\t\t{totalPages}\n\t\t\t{pageSize}\n\t\t\ttotalItems={total}\n\t\t\tonPageChange={handlePageChange}\n\t\t\tonPageSizeChange={handlePageSizeChange}\n\t\t\t{loading}\n\t\t\titemLabel=\"endpoint\"\n\t\t/>\n\t{/if}\n</div>\n\n<AlertDialog.Root bind:open={showSlowDialog}>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Expected Performance</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tSet a time offset for endpoints that are expected to be slow (e.g., report generation, data exports).\n\t\t\t\tThe offset adjusts impact score thresholds so the endpoint isn't flagged as unhealthy.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t<div class=\"space-y-4 py-4\">\n\t\t\t<div>\n\t\t\t\t<label for=\"offset-input\" class=\"text-sm font-medium\">Offset (ms)</label>\n\t\t\t\t<Input id=\"offset-input\" type=\"number\" bind:value={offsetInput} placeholder=\"e.g., 2000\" min=\"0\" class=\"mt-1.5\" />\n\t\t\t\t<p class=\"text-xs text-muted-foreground mt-1.5\">\n\t\t\t\t\tHow many extra milliseconds above the default 750ms threshold are acceptable for this endpoint.\n\t\t\t\t\tSet to 0 to remove the offset.\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<label for=\"reason-input\" class=\"text-sm font-medium\">Reason</label>\n\t\t\t\t<Input id=\"reason-input\" type=\"text\" bind:value={reasonInput} placeholder=\"e.g., generates large PDF reports\" class=\"mt-1.5\" />\n\t\t\t\t<p class=\"text-xs text-muted-foreground mt-1.5\">\n\t\t\t\t\tExplain why this endpoint is expected to be slow.\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</div>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => showSlowDialog = false} disabled={slowLoading}>Cancel</Button>\n\t\t\t<Button onclick={saveSlowEndpoint} disabled={slowLoading}>\n\t\t\t\t{slowLoading ? 'Saving...' : 'Save'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n"],"names":["props","$.rest_props","$$props","iconNode","Icon","$.noop","prerender","load","params","url","authState","redirect","timezone","getTimezone","transactions","$.state","$.proxy","stats","loading","error","notFound","errorStatus","page","pageSize","total","totalPages","getInitialRange","presetMinutes","range","getTimeRangeFromPreset","fromDt","parseISO","toDt","initialRange","selectedPreset","fromDate","dateToCalendarDate","$.get","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","updateUrl","getFromDateTimeUTC","getToDateTimeUTC","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","offsetMs","reason","showSlowDialog","slowLoading","offsetInput","reasonInput","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","goBackToEndpoints","event","href","resolve","goto","handleTimeRangeChange","from","to","preset","$.set","loadData","formatBytes","bytes","requestBody","response","api","projectsState","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","loadSlowEndpoint","saveSlowEndpoint","value","toast","handlePopState","urlParams","parseTimeRangeFromUrl","getResolvedTimeRange","onMount","onDestroy","div","$.first_child","fragment","$0","$.derived","ErrorDisplay","$$anchor","div_1","fragment_4","PageHeader","node_2","div_2","$.sibling","Button","node_3","Snail","node_4","$.template_effect","$.set_text","text","TimeRangePicker","node_5","$$value","div_3","root_6","node_7","span","$$render","consequent_2","consequent_3","div_4","root_8","div_5","p","div_6","p_1","div_7","p_2","div_8","p_3","div_9","p_4","div_10","p_5","div_11","p_6","formatDurationMs","div_12","root_10","LoadingCircle","node_11","consequent_5","consequent_4","alternate","div_13","node_9","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_16","node_17","node_18","node_19","node_20","node_21","node_22","node_23","consequent_6","Table_Body","Table_Row_1","Table_Cell","div_14","root_18","node_28","TableEmptyState","$.each","node_30","transaction","createRowClickHandler","Table_Row_2","Table_Cell_1","formatDateTime","Table_Cell_2","formatDuration","getStatusColor","Table_Cell_3","text_12","Table_Cell_4","Table_Cell_5","text_14","Table_Cell_6","Table_Cell_7","Table_Cell_8","AttributesDisplay","consequent_8","alternate_1","consequent_7","alternate_2","PaginationFooter","node_40","consequent_1","alternate_3","consequent","alternate_4","AlertDialog_Root","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","div_15","node_43","div_16","Input","node_46","div_17","node_47","AlertDialog_Footer","node_49","node_50"],"mappings":"8+CAAA,cA6CIA,EAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,GAAQ,EAAK,OAAU,CAAA,EAAK,kDAAkD,IAAM,SAAQ,CAAI,GAAM,KAAM,GAAM,KAAM,EAAK,IAAG,GAAM,OAAU,CAAA,EAAK,4CAA4C,IAAM,OAAM,CAAI,EAA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G,EAAA,uDACjBsG,EAAiBtG,EAAA,uHACjBuG,EAAuBvG,EAAA;mKAKxBwG,GAAGlG,EAAAmG,GAAA,CAAA,EACFC,KADDF,EAAG,SACFE,EAAG,EAAA,CAAA,EAEFC,GAAKC,GAAA,qFAAiC,OAAU,UAAE9J,EAAW,OAAvB,MAAUkE,EAAA,GAAElE,GAAWkE,EAAA,EAAA,YAF9D0F,EAAG,EAQH,IAAAG,KARAH,GAAG,CAAA,SAQHG,EAAG,EAAA,CAAA,EAEFF,GAAKG,GAAA,kGAA+B,OAAU,UAAE/J,EAAW,OAAvB,MAAUiE,EAAA,GAAEjE,GAAWiE,EAAA,EAAA,YAF5D6F,EAAG,IATJL,EAAG,WAAHA,GAAG,CAAA,uBAiBHO,GAAkB/G,EAAA,oCACjBO,GAAMyG,EAAA,mBAAkC,QAAA,IAAAlJ,EAAAlB,GAAiB,EAAK,0BAAYC,EAAW,sFACrF0D,GAAM0G,EAAA,SAAUhI,2BAA4BpC,EAAW,8CACtDA,EAAW,EAAG,YAAc,MAAM,CAAA,oJAhPvC","x_google_ignoreList":[0]}
\ No newline at end of file
+{"version":3,"file":"10.BZSbBkEa.js","sources":["../../../../../../node_modules/@lucide/svelte/dist/icons/snail.svelte","../../../../../../src/routes/endpoints/[endpoint]/+page.ts","../../../../../../src/routes/endpoints/[endpoint]/+page.svelte"],"sourcesContent":["<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M2 13a6 6 0 1 0 12 0 4 4 0 1 0-8 0 2 2 0 0 0 4 0\" }], [\"circle\", { \"cx\": \"10\", \"cy\": \"13\", \"r\": \"8\" }], [\"path\", { \"d\": \"M2 21h12c4.4 0 8-3.6 8-8V7a2 2 0 1 0-4 0v6\" }], [\"path\", { \"d\": \"M18 3 19.1 5.2\" }], [\"path\", { \"d\": \"M22 3 20.9 5.2\" }]];\n/**\n * @component @name Snail\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMiAxM2E2IDYgMCAxIDAgMTIgMCA0IDQgMCAxIDAtOCAwIDIgMiAwIDAgMCA0IDAiIC8+CiAgPGNpcmNsZSBjeD0iMTAiIGN5PSIxMyIgcj0iOCIgLz4KICA8cGF0aCBkPSJNMiAyMWgxMmM0LjQgMCA4LTMuNiA4LThWN2EyIDIgMCAxIDAtNCAwdjYiIC8+CiAgPHBhdGggZD0iTTE4IDMgMTkuMSA1LjIiIC8+CiAgPHBhdGggZD0iTTIyIDMgMjAuOSA1LjIiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/snail\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"snail\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\tendpoint: params.endpoint,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount, onDestroy } from 'svelte';\n\timport { api } from '$lib/api';\n\timport {\n\t\tformatDuration,\n\t\tformatDurationMs,\n\t\tgetStatusColor,\n\t\tformatDateTime,\n\t\tparseISO,\n\t\ttoUTCISO,\n\t\tcalendarDateTimeToLuxon\n\t} from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport * as Table from '$lib/components/ui/table';\n\timport { Button } from '$lib/components/ui/button';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { ArrowLeft, Snail } from '@lucide/svelte';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { CalendarDate } from '@internationalized/date';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport AttributesDisplay from '$lib/components/attributes-display.svelte';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\timport { goto } from '$app/navigation';\n\timport PaginationFooter from '$lib/components/ui/pagination-footer/pagination-footer.svelte';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { Input } from '$lib/components/ui/input';\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport { toast } from 'svelte-sonner';\n\timport { resolve } from '$app/paths';\n\timport {\n\t\tpresetMinutes,\n\t\tgetTimeRangeFromPreset,\n\t\tparseTimeRangeFromUrl,\n\t\tgetResolvedTimeRange,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport {\n\t\tgetSortState,\n\t\tsetSortState,\n\t\thandleSortClick,\n\t\ttype SortDirection\n\t} from '$lib/utils/sort-storage';\n\n\tconst timezone = $derived(getTimezone());\n\n\ttype EndpointInstance = {\n\t\tid: string;\n\t\tendpoint: string;\n\t\tduration: number;\n\t\trecordedAt: string;\n\t\tstatusCode: number;\n\t\tbodySize: number;\n\t\tclientIP: string;\n\t\tattributes: Record<string, string> | null;\n\t\tserverName: string;\n\t\tappVersion: string;\n\t};\n\n\ttype EndpointStats = {\n\t\tcount: number;\n\t\tavgDuration: number;\n\t\tmedianDuration: number;\n\t\tp95Duration: number;\n\t\tp99Duration: number;\n\t\tapdex: number;\n\t\terrorRate: number;\n\t\tthroughput: number;\n\t};\n\n\ttype SortField = 'recorded_at' | 'duration' | 'status_code' | 'body_size';\n\n\tlet { data } = $props();\n\n\tlet transactions = $state<EndpointInstance[]>([]);\n\tlet stats = $state<EndpointStats | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\tlet errorStatus = $state<number>(0);\n\n\t// Pagination State\n\tlet page = $state(1);\n\tlet pageSize = $state(50);\n\tlet total = $state(0);\n\tlet totalPages = $state(0);\n\n\t// Initialize from URL params (from page data)\n\tfunction getInitialRange(): { preset: string | null; from: Date; to: Date } {\n\t\t// If preset is provided, use it\n\t\tif (data.preset && presetMinutes[data.preset]) {\n\t\t\tconst range = getTimeRangeFromPreset(data.preset, timezone);\n\t\t\treturn { preset: data.preset, from: range.from, to: range.to };\n\t\t}\n\n\t\t// If custom from/to provided\n\t\tif (data.from && data.to) {\n\t\t\tconst fromDt = parseISO(data.from, timezone);\n\t\t\tconst toDt = parseISO(data.to, timezone);\n\t\t\tif (fromDt.isValid && toDt.isValid) {\n\t\t\t\treturn { preset: null, from: fromDt.toJSDate(), to: toDt.toJSDate() };\n\t\t\t}\n\t\t}\n\n\t\t// Default to 24h preset\n\t\tconst range = getTimeRangeFromPreset('24h', timezone);\n\t\treturn { preset: '24h', from: range.from, to: range.to };\n\t}\n\n\tconst initialRange = getInitialRange();\n\n\t// Date Range State\n\tlet selectedPreset = $state<string | null>(initialRange.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\tfunction updateTimeRangeUrl(pushToHistory = true) {\n\t\tupdateUrl(\n\t\t\tselectedPreset\n\t\t\t\t? { preset: selectedPreset }\n\t\t\t\t: { from: getFromDateTimeUTC(), to: getToDateTimeUTC() },\n\t\t\t{ pushToHistory }\n\t\t);\n\t}\n\n\t// Sorting State - persisted to localStorage\n\tconst SORT_STORAGE_KEY = 'endpoint_detail';\n\tconst initialSort = getSortState(SORT_STORAGE_KEY, { field: 'recorded_at', direction: 'desc' });\n\tlet orderBy = $state<SortField>(initialSort.field as SortField);\n\tlet sortDirection = $state<SortDirection>(initialSort.direction);\n\n\t// Slow endpoint state\n\tlet offsetMs = $state<number>(0);\n\tlet reason = $state('');\n\tlet showSlowDialog = $state(false);\n\tlet slowLoading = $state(false);\n\tlet offsetInput = $state('');\n\tlet reasonInput = $state('');\n\n\t// Combine date and time into UTC ISO datetime string\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = (toTime || '23:59').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction goBackToEndpoints(event: MouseEvent) {\n\t\tconst params = new URLSearchParams();\n\t\tif (selectedPreset) {\n\t\t\tparams.set('preset', selectedPreset);\n\t\t} else {\n\t\t\tparams.set('from', getFromDateTimeUTC());\n\t\t\tparams.set('to', getToDateTimeUTC());\n\t\t}\n\t\tconst href = resolve('/endpoints') + '?' + params.toString();\n\t\tif (event.ctrlKey || event.metaKey) {\n\t\t\twindow.open(href, '_blank');\n\t\t} else {\n\t\t\tgoto(href);\n\t\t}\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\tfromTime = from.time;\n\t\ttoDate = to.date;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\tpage = 1;\n\t\tloadData();\n\t}\n\n\tfunction formatBytes(bytes: number): string {\n\t\tif (bytes < 1024) {\n\t\t\treturn `${bytes} B`;\n\t\t} else if (bytes < 1024 * 1024) {\n\t\t\treturn `${(bytes / 1024).toFixed(1)} KB`;\n\t\t} else {\n\t\t\treturn `${(bytes / (1024 * 1024)).toFixed(2)} MB`;\n\t\t}\n\t}\n\n\tasync function loadData(pushToHistory = true) {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\t\terrorStatus = 0;\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\n\t\tupdateTimeRangeUrl(pushToHistory);\n\n\t\ttry {\n\t\t\tconst requestBody = {\n\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\ttoDate: getToDateTimeUTC(),\n\t\t\t\torderBy: orderBy,\n\t\t\t\tsortDirection: sortDirection,\n\t\t\t\tpagination: {\n\t\t\t\t\tpage: page,\n\t\t\t\t\tpageSize: pageSize\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tconst response = await api.post(\n\t\t\t\t`/endpoints/endpoint?endpoint=${encodeURIComponent(data.endpoint)}`,\n\t\t\t\trequestBody,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\ttransactions = response.data || [];\n\t\t\tstats = response.stats || null;\n\t\t\ttotal = response.pagination.total;\n\t\t\ttotalPages = response.pagination.totalPages;\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\terrorStatus = e.status || 0;\n\t\t\tif (e.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = e.message || 'Failed to load data';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handlePageChange(newPage: number) {\n\t\tif (newPage >= 1 && newPage <= totalPages) {\n\t\t\tpage = newPage;\n\t\t\tloadData(false);\n\t\t}\n\t}\n\n\tfunction handlePageSizeChange(newPageSize: number) {\n\t\tpageSize = newPageSize;\n\t\tpage = 1;\n\t\tloadData(false); // Don't push to history for pagination\n\t}\n\n\tfunction handleSort(field: SortField) {\n\t\tconst newSort = handleSortClick(field, orderBy, sortDirection);\n\t\torderBy = newSort.field as SortField;\n\t\tsortDirection = newSort.direction;\n\t\tsetSortState(SORT_STORAGE_KEY, newSort);\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tasync function loadSlowEndpoint() {\n\t\ttry {\n\t\t\tconst response = await api.get(\n\t\t\t\t`/endpoints/slow?endpoint=${encodeURIComponent(data.endpoint)}`,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\toffsetMs = response.offsetMs ?? 0;\n\t\t\treason = response.reason ?? '';\n\t\t} catch {\n\t\t\toffsetMs = 0;\n\t\t\treason = '';\n\t\t}\n\t}\n\n\tasync function saveSlowEndpoint() {\n\t\tslowLoading = true;\n\t\ttry {\n\t\t\tconst value = parseInt(offsetInput) || 0;\n\t\t\tawait api.post(\n\t\t\t\t'/endpoints/slow',\n\t\t\t\t{ endpoint: decodeURIComponent(data.endpoint), offsetMs: Math.max(0, value), reason: reasonInput },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\toffsetMs = Math.max(0, value);\n\t\t\treason = reasonInput;\n\t\t\tshowSlowDialog = false;\n\t\t\ttoast.success('Expected performance updated');\n\t\t} catch (e: any) {\n\t\t\ttoast.error(e.message || 'Failed to save');\n\t\t} finally {\n\t\t\tslowLoading = false;\n\t\t}\n\t}\n\n\tfunction handlePopState() {\n\t\tconst urlParams = parseTimeRangeFromUrl(timezone);\n\t\tconst range = getResolvedTimeRange(urlParams, timezone);\n\t\tselectedPreset = urlParams.preset;\n\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tonMount(() => {\n\t\twindow.addEventListener('popstate', handlePopState);\n\t\tloadData(false);\n\t\tloadSlowEndpoint();\n\t});\n\n\tonDestroy(() => {\n\t\tif (typeof window !== 'undefined') {\n\t\t\twindow.removeEventListener('popstate', handlePopState);\n\t\t}\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t{#if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"Endpoint Not Found\"\n\t\t\tdescription=\"The endpoint you're looking for doesn't exist or has no recorded traces.\"\n\t\t\tonBack={goBackToEndpoints}\n\t\t\tbackLabel=\"Back to Endpoints\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t\tidentifier={decodeURIComponent(data.endpoint)}\n\t\t/>\n\t{:else if error && !loading}\n\t\t<ErrorDisplay\n\t\t\tstatus={errorStatus === 400 ? 400 : errorStatus === 422 ? 422 : 400}\n\t\t\ttitle=\"Failed to Load Traces\"\n\t\t\tdescription={error}\n\t\t\tonBack={goBackToEndpoints}\n\t\t\tbackLabel=\"Back to Endpoints\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t/>\n\t{:else}\n\t\t<!-- Header with Title and Time Range Filter -->\n\t\t<div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n\t\t\t<PageHeader\n\t\t\t\ttitle={decodeURIComponent(data.endpoint)}\n\t\t\t\tsubtitle=\"Trace instances for this endpoint\"\n\t\t\t\tonBack={goBackToEndpoints}\n\t\t\t/>\n\n\t\t\t<div class=\"flex items-start gap-2\">\n\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={() => { offsetInput = offsetMs > 0 ? String(offsetMs) : ''; reasonInput = reason; showSlowDialog = true; }}>\n\t\t\t\t\t<Snail class=\"h-4 w-4\" />\n\t\t\t\t\t{offsetMs > 0 ? `+${offsetMs}ms offset` : 'Expected Performance'}\n\t\t\t\t</Button>\n\t\t\t\t<TimeRangePicker\n\t\t\t\t\tbind:fromDate\n\t\t\t\t\tbind:toDate\n\t\t\t\t\tbind:fromTime\n\t\t\t\t\tbind:toTime\n\t\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\n\t\t{#if offsetMs > 0}\n\t\t\t<div class=\"flex items-center gap-2 rounded-md border border-border bg-muted/50 px-4 py-3 text-sm\">\n\t\t\t\t<Snail class=\"h-4 w-4 shrink-0 text-muted-foreground\" />\n\t\t\t\t<span>\n\t\t\t\t\t<span class=\"font-medium\">Expected Performance:</span> +{offsetMs}ms offset applied.\n\t\t\t\t\t{#if reason}\n\t\t\t\t\t\t{reason}\n\t\t\t\t\t{/if}\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Endpoint Stats -->\n\t\t{#if stats}\n\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-7\">\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.avgDuration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average response time</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">\n\t\t\t\t\t\t{formatDurationMs(stats.medianDuration)}\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Median response time</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.p95Duration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">95th percentile response time</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.p99Duration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">99th percentile response time</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{stats.apdex.toFixed(2)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Apdex score</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{stats.errorRate.toFixed(2)} %</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average error rate</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{stats.throughput.toFixed(0)} rpm</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average throughput</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{:else if loading}\n\t\t\t<div class=\"flex items-center justify-center py-8\">\n\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Traces Table -->\n\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t<Table.Root>\n\t\t\t\t{#if loading || transactions.length > 0}\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\t\t\tsortField=\"recorded_at\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[180px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Duration\"\n\t\t\t\t\t\t\t\tsortField=\"duration\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[120px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Status\"\n\t\t\t\t\t\t\t\tsortField=\"status_code\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[100px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Body Size\"\n\t\t\t\t\t\t\t\tsortField=\"body_size\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[100px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Client IP\" class=\"w-[140px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Server\" class=\"w-[120px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Version\" class=\"w-[100px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Attributes\" />\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t{/if}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Cell colspan={8} class=\"h-48\">\n\t\t\t\t\t\t\t\t<div class=\"flex items-center justify-center\">\n\t\t\t\t\t\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t{:else if transactions.length === 0}\n\t\t\t\t\t\t<TableEmptyState colspan={8} message=\"No traces found in this time range.\" />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{#each transactions as transaction}\n\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/endpoints/${encodeURIComponent(decodeURIComponent(data.endpoint))}/${transaction.id}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{formatDateTime(transaction.recordedAt, { timezone })}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t{formatDuration(transaction.duration)}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm {getStatusColor(transaction.statusCode)}\">\n\t\t\t\t\t\t\t\t\t{transaction.statusCode}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t{formatBytes(transaction.bodySize)}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{transaction.clientIP}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{transaction.serverName || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{transaction.appVersion || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t<AttributesDisplay attributes={transaction.attributes} />\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t{/if}\n\t\t\t\t</Table.Body>\n\t\t\t</Table.Root>\n\t\t</div>\n\n\t\t<!-- Pagination Footer -->\n\t\t<PaginationFooter\n\t\t\tcurrentPage={page}\n\t\t\t{totalPages}\n\t\t\t{pageSize}\n\t\t\ttotalItems={total}\n\t\t\tonPageChange={handlePageChange}\n\t\t\tonPageSizeChange={handlePageSizeChange}\n\t\t\t{loading}\n\t\t\titemLabel=\"endpoint\"\n\t\t/>\n\t{/if}\n</div>\n\n<AlertDialog.Root bind:open={showSlowDialog}>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Expected Performance</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tSet a time offset for endpoints that are expected to be slow (e.g., report generation, data exports).\n\t\t\t\tThe offset adjusts impact score thresholds so the endpoint isn't flagged as unhealthy.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t<div class=\"space-y-4 py-4\">\n\t\t\t<div>\n\t\t\t\t<label for=\"offset-input\" class=\"text-sm font-medium\">Offset (ms)</label>\n\t\t\t\t<Input id=\"offset-input\" type=\"number\" bind:value={offsetInput} placeholder=\"e.g., 2000\" min=\"0\" class=\"mt-1.5\" />\n\t\t\t\t<p class=\"text-xs text-muted-foreground mt-1.5\">\n\t\t\t\t\tHow many extra milliseconds above the default 750ms threshold are acceptable for this endpoint.\n\t\t\t\t\tSet to 0 to remove the offset.\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<label for=\"reason-input\" class=\"text-sm font-medium\">Reason</label>\n\t\t\t\t<Input id=\"reason-input\" type=\"text\" bind:value={reasonInput} placeholder=\"e.g., generates large PDF reports\" class=\"mt-1.5\" />\n\t\t\t\t<p class=\"text-xs text-muted-foreground mt-1.5\">\n\t\t\t\t\tExplain why this endpoint is expected to be slow.\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</div>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => showSlowDialog = false} disabled={slowLoading}>Cancel</Button>\n\t\t\t<Button onclick={saveSlowEndpoint} disabled={slowLoading}>\n\t\t\t\t{slowLoading ? 'Saving...' : 'Save'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n"],"names":["props","$.rest_props","$$props","iconNode","Icon","$.noop","prerender","load","params","url","authState","redirect","timezone","getTimezone","transactions","$.state","$.proxy","stats","loading","error","notFound","errorStatus","page","pageSize","total","totalPages","getInitialRange","presetMinutes","range","getTimeRangeFromPreset","fromDt","parseISO","toDt","initialRange","selectedPreset","fromDate","dateToCalendarDate","$.get","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","updateUrl","getFromDateTimeUTC","getToDateTimeUTC","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","offsetMs","reason","showSlowDialog","slowLoading","offsetInput","reasonInput","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","goBackToEndpoints","event","href","resolve","goto","handleTimeRangeChange","from","to","preset","$.set","loadData","formatBytes","bytes","requestBody","response","api","projectsState","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","loadSlowEndpoint","saveSlowEndpoint","value","toast","handlePopState","urlParams","parseTimeRangeFromUrl","getResolvedTimeRange","onMount","onDestroy","div","$.first_child","fragment","$0","$.derived","ErrorDisplay","$$anchor","div_1","fragment_4","PageHeader","node_2","div_2","$.sibling","Button","node_3","Snail","node_4","$.template_effect","$.set_text","text","TimeRangePicker","node_5","$$value","div_3","root_6","node_7","span","$$render","consequent_2","consequent_3","div_4","root_8","div_5","p","div_6","p_1","div_7","p_2","div_8","p_3","div_9","p_4","div_10","p_5","div_11","p_6","formatDurationMs","div_12","root_10","LoadingCircle","node_11","consequent_5","consequent_4","alternate","div_13","node_9","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_16","node_17","node_18","node_19","node_20","node_21","node_22","node_23","consequent_6","Table_Body","Table_Row_1","Table_Cell","div_14","root_18","node_28","TableEmptyState","$.each","node_30","transaction","createRowClickHandler","Table_Row_2","Table_Cell_1","formatDateTime","Table_Cell_2","formatDuration","getStatusColor","Table_Cell_3","text_12","Table_Cell_4","Table_Cell_5","text_14","Table_Cell_6","Table_Cell_7","Table_Cell_8","AttributesDisplay","consequent_8","alternate_1","consequent_7","alternate_2","PaginationFooter","node_40","consequent_1","alternate_3","consequent","alternate_4","AlertDialog_Root","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","div_15","node_43","div_16","Input","node_46","div_17","node_47","AlertDialog_Footer","node_49","node_50"],"mappings":"8+CAAA,cA6CIA,EAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,GAAQ,EAAK,OAAU,CAAA,EAAK,kDAAkD,IAAM,SAAQ,CAAI,GAAM,KAAM,GAAM,KAAM,EAAK,IAAG,GAAM,OAAU,CAAA,EAAK,4CAA4C,IAAM,OAAM,CAAI,EAAK,iBAAgB,GAAM,OAAM,CAAI,EAAK,gBAAgB,CAAA,GAchRC,4BAAsBJ,EAAK,uBAAYG,qDACvB,UAAQE,EAAA,uCAHzB,CCtDO,MAAMC,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,GAAQ,IAAAC,KAAU,CAClD,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAG7B,MAAO,CACN,SAAUH,GAAO,SACjB,OAAQC,EAAI,aAAa,IAAI,QAAQ,GAAK,KAC1C,KAAMA,EAAI,aAAa,IAAI,MAAM,GAAK,KACtC,GAAIA,EAAI,aAAa,IAAI,IAAI,GAAK,IAAA,CAEpC;sTCjBA,UAgDO,MAAAG,KAAoBC,EAAW,EA8BjC,IAAAC,GAAeC,EAAMC,GAAA,CAAA,CAAA,CAAA,EACrBC,EAAQF,EAA6B,IAAI,EACzCG,EAAUH,EAAO,EAAI,EACrBI,GAAQJ,EAAO,EAAE,EACjBK,GAAWL,EAAO,EAAK,EACvBM,GAAcN,EAAe,CAAC,EAG9BO,GAAOP,EAAO,CAAC,EACfQ,GAAWR,EAAO,EAAE,EACpBS,GAAQT,EAAO,CAAC,EAChBU,GAAaV,EAAO,CAAC,EAGhB,SAAAW,IAAmE,CAElE,GAAAxB,EAAA,KAAA,QAAUyB,GAAazB,EAAA,KAAM,MAAM,EAAG,CACxC,MAAA0B,EAAQC,GAAsB3B,EAAA,KAAM,SAAQU,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AAO,2CAhMAmB,EAAAlB,EAAK,MAAKD,CAAO,EAAA6G,EAAA0E,EAAA,EAAA1E,EAAA2E,GAAA,EAAA,0BAVtBtL,EAAQ,EAAA2G,EAAA4E,EAAA,EAAA5E,EAAA6E,GAAA,EAAA,MADbxG,EAAG,WAAHA,GAAG,CAAA,sBAiNHyG,EAAgBnG,EAAA,KAAC,MAAS,UAAEpD,EAAc,OAAzB,KAASoE,EAAA,GAAEpE,GAAcoE,EAAA,EAAA,6DACzCoF,GAAmBpG,GAAA,8FAClBqG,GAAkBrG,EAAA,uDACjBsG,EAAiBtG,EAAA,uHACjBuG,EAAuBvG,EAAA;mKAKxBwG,GAAGlG,EAAAmG,GAAA,CAAA,EACFC,KADDF,EAAG,SACFE,EAAG,EAAA,CAAA,EAEFC,GAAKC,GAAA,qFAAiC,OAAU,UAAE9J,EAAW,OAAvB,MAAUkE,EAAA,GAAElE,GAAWkE,EAAA,EAAA,YAF9D0F,EAAG,EAQH,IAAAG,KARAH,GAAG,CAAA,SAQHG,EAAG,EAAA,CAAA,EAEFF,GAAKG,GAAA,kGAA+B,OAAU,UAAE/J,EAAW,OAAvB,MAAUiE,EAAA,GAAEjE,GAAWiE,EAAA,EAAA,YAF5D6F,EAAG,IATJL,EAAG,WAAHA,GAAG,CAAA,uBAiBHO,GAAkB/G,EAAA,oCACjBO,GAAMyG,EAAA,mBAAkC,QAAA,IAAAlJ,EAAAlB,GAAiB,EAAK,0BAAYC,EAAW,sFACrF0D,GAAM0G,EAAA,SAAUhI,2BAA4BpC,EAAW,8CACtDA,EAAW,EAAG,YAAc,MAAM,CAAA,oJAhPvC","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/11.DSImG_vI.js b/backend/static/frontend/_app/immutable/nodes/11.BmOzrP-J.js
similarity index 97%
rename from backend/static/frontend/_app/immutable/nodes/11.DSImG_vI.js
rename to backend/static/frontend/_app/immutable/nodes/11.BmOzrP-J.js
index de5908b5..6cefa119 100644
--- a/backend/static/frontend/_app/immutable/nodes/11.DSImG_vI.js
+++ b/backend/static/frontend/_app/immutable/nodes/11.BmOzrP-J.js
@@ -1,4 +1,4 @@
-import{r as tr}from"../chunks/BJZ1igWb.js";import{b as rr,a as Lt,p as Ct,c as Dt}from"../chunks/D6S6XYVy.js";import{p as ar,i as y}from"../chunks/DMODTt3n.js";import{o as Wt}from"../chunks/Dwk6gGSK.js";import{p as Gt,h as _e,v as Ot,d as p,c as a,f as s,n as $,t as g,b as t,s as o,g as e,e as Q,r as X,a as Jt,i as A,k as oe,l as se,u as L}from"../chunks/B2WdN-7r.js";import{e as zt,i as or}from"../chunks/CMyj8Fzw.js";import{c as r}from"../chunks/BAcG0-U_.js";import{g as Ft}from"../chunks/xR3pK9Ey.js";import{f as yt,g as Qt,h as sr,b as nr}from"../chunks/DJdWGDax.js";import{B as dr}from"../chunks/C1aqwstW.js";import{a as pt,b as ft,C as _t}from"../chunks/BHR29ZVu.js";import{C as $t}from"../chunks/BKHeGn2e.js";import{C as Pt}from"../chunks/KAiF5-Ht.js";import{c as At,T as dt,b as Bt,a as Pe}from"../chunks/CeOjHHJH.js";import{T as Et,a as ye}from"../chunks/CEJkX7WU.js";import{L as Nt}from"../chunks/D0pIT200.js";import{E as Mt}from"../chunks/B-KBEnoV.js";import{L as Fe}from"../chunks/BCZTK7qK.js";import{A as lr}from"../chunks/DW1P0xGN.js";import{S as ir,a as ur,C as vr}from"../chunks/DNre5-OF.js";import{P as cr}from"../chunks/BGqyWGxT.js";import{r as jt}from"../chunks/D_mqy6BL.js";import{D as pr}from"../chunks/NF-n962K.js";import{s as Ht}from"../chunks/DH0tcjsQ.js";import{T as fr,a as _r,b as Ut}from"../chunks/Btlz2xiW.js";import{T as Vt}from"../chunks/BMae-b69.js";import{S as qt,E as Kt}from"../chunks/CkkEpu6S.js";import{T as $r}from"../chunks/B4mGfC0Z.js";import{A as mr}from"../chunks/Dt-hNsWv.js";const gr=!1,hr=({params:$e,url:I})=>{if(!rr.isAuthenticated)throw tr(302,"/login");return{endpoint:$e.endpoint,endpointId:$e.endpointId,preset:I.searchParams.get("preset")||null,from:I.searchParams.get("from")||null,to:I.searchParams.get("to")||null}},Ma=Object.freeze(Object.defineProperty({__proto__:null,load:hr,prerender:gr},Symbol.toStringTag,{value:"Module"}));function xr($e){return $e?$e.replace(/-/g,"").slice(-16).toLowerCase():""}function br($e){return $e?$e.replace(/-/g,"").toLowerCase():""}var Pr=s("<!> <!>",1),yr=s('<div class="flex items-center justify-center py-6"><!></div>'),Tr=s('<div class="py-6 text-center text-sm text-red-500"> </div>'),wr=s('<div class="py-6 text-center text-sm text-muted-foreground">No logs for this trace in the surrounding time window</div>'),Ir=s("<!> <!> <!> <!>",1),kr=s('<span class="inline-block max-w-[200px] truncate rounded bg-muted px-2 py-0.5 font-mono text-xs text-muted-foreground"> </span>'),Sr=s('<span class="text-xs text-muted-foreground">—</span>'),Cr=s("<!> <!> <!> <!>",1),Dr=s("<!> <!>",1),jr=s("<!> <!>",1),Lr=s('<div class="flex items-center justify-center py-6"><!></div>'),zr=s('<div class="py-6 text-center text-sm text-red-500"> </div>'),Ar=s('<div class="py-6 text-center text-sm text-muted-foreground">Loading distributed logs…</div>'),Br=s('<div class="py-6 text-center text-sm text-muted-foreground">No logs found in this distributed trace</div>'),Er=s("<!> <!> <!> <!> <!>",1),Nr=s('<span class="text-muted-foreground"> </span>'),Rr=s('<span class="text-muted-foreground">—</span>'),Or=s("<!> <!> <!> <!> <!>",1),Fr=s("<!> <!>",1),Mr=s("<!> <!>",1),Hr=s("<!> <!> <!>",1),Ur=s("<!> <!>",1);function Vr($e,I){Gt(I,!0);let Me=ar(I,"distributedTraceId",3,null);I.rootSpan;const d=L(Qt);let Qe=_e("this-trace"),Ne=_e(Ot([])),He=_e(!0),Re=_e(""),Xe=_e(null),Ue=_e(Ot([])),Ve=_e(!1),lt=_e(!1),Ye=_e("");const Tt=L(()=>{const v=new Map;for(const T of I.spans){const ne=xr(T.id);ne&&v.set(ne,T.name)}return v});function S(v){return v.spanId?e(Tt).get(v.spanId.toLowerCase())??null:null}function te(){const v=new Date(I.traceRecordedAt).getTime(),T=3600*1e3;return{fromDate:new Date(v-T).toISOString(),toDate:new Date(v+T).toISOString()}}async function qe(){A(He,!0),A(Re,"");try{const{fromDate:v,toDate:T}=te(),ne=await Lt.post("/logs",{fromDate:v,toDate:T,orderBy:"timestamp",sortDirection:"asc",pagination:{page:1,pageSize:100},traceId:I.traceId},{projectId:I.projectId||void 0});A(Ne,ne.data||[],!0)}catch(v){A(Re,v.message||"Failed to load logs",!0)}finally{A(He,!1)}}async function wt(){if(Me()){A(Ve,!0),A(Ye,"");try{const{fromDate:v,toDate:T}=te(),ne=await Lt.post("/logs",{fromDate:v,toDate:T,orderBy:"timestamp",sortDirection:"asc",pagination:{page:1,pageSize:100},distributedTraceId:Me()},{projectId:I.projectId||void 0});A(Ue,ne.data||[],!0),A(lt,!0)}catch(v){A(Ye,v.message||"Failed to load distributed logs",!0)}finally{A(Ve,!1)}}}function It(v){v!=="this-trace"&&v!=="all-distributed"||(A(Qe,v,!0),v==="all-distributed"&&!e(lt)&&!e(Ve)&&wt())}function Be(v){A(Xe,e(Xe)===v?null:v,!0)}function Ke(v){if(!v)return"";const T=v.indexOf(`
+import{r as tr}from"../chunks/B4VmGkxP.js";import{b as rr,a as Lt,p as Ct,c as Dt}from"../chunks/qCQ2nSvO.js";import{p as ar,i as y}from"../chunks/DMODTt3n.js";import{o as Wt}from"../chunks/Dwk6gGSK.js";import{p as Gt,h as _e,v as Ot,d as p,c as a,f as s,n as $,t as g,b as t,s as o,g as e,e as Q,r as X,a as Jt,i as A,k as oe,l as se,u as L}from"../chunks/B2WdN-7r.js";import{e as zt,i as or}from"../chunks/CMyj8Fzw.js";import{c as r}from"../chunks/BAcG0-U_.js";import{g as Ft}from"../chunks/BIF4_51j.js";import{f as yt,g as Qt,h as sr,b as nr}from"../chunks/Dq-0lVru.js";import{B as dr}from"../chunks/C1aqwstW.js";import{a as pt,b as ft,C as _t}from"../chunks/BHR29ZVu.js";import{C as $t}from"../chunks/BKHeGn2e.js";import{C as Pt}from"../chunks/KAiF5-Ht.js";import{c as At,T as dt,b as Bt,a as Pe}from"../chunks/CeOjHHJH.js";import{T as Et,a as ye}from"../chunks/CEJkX7WU.js";import{L as Nt}from"../chunks/D0pIT200.js";import{E as Mt}from"../chunks/CFZS-Ydw.js";import{L as Fe}from"../chunks/BCZTK7qK.js";import{A as lr}from"../chunks/DW1P0xGN.js";import{S as ir,a as ur,C as vr}from"../chunks/DWCgVx1V.js";import{P as cr}from"../chunks/Cplpgpvt.js";import{r as jt}from"../chunks/BGApn_8u.js";import{D as pr}from"../chunks/lEFYSxvE.js";import{s as Ht}from"../chunks/DH0tcjsQ.js";import{T as fr,a as _r,b as Ut}from"../chunks/CC8KIeOw.js";import{T as Vt}from"../chunks/CItL7JvW.js";import{S as qt,E as Kt}from"../chunks/CkkEpu6S.js";import{T as $r}from"../chunks/B4mGfC0Z.js";import{A as mr}from"../chunks/Dt-hNsWv.js";const gr=!1,hr=({params:$e,url:I})=>{if(!rr.isAuthenticated)throw tr(302,"/login");return{endpoint:$e.endpoint,endpointId:$e.endpointId,preset:I.searchParams.get("preset")||null,from:I.searchParams.get("from")||null,to:I.searchParams.get("to")||null}},Ma=Object.freeze(Object.defineProperty({__proto__:null,load:hr,prerender:gr},Symbol.toStringTag,{value:"Module"}));function xr($e){return $e?$e.replace(/-/g,"").slice(-16).toLowerCase():""}function br($e){return $e?$e.replace(/-/g,"").toLowerCase():""}var Pr=s("<!> <!>",1),yr=s('<div class="flex items-center justify-center py-6"><!></div>'),Tr=s('<div class="py-6 text-center text-sm text-red-500"> </div>'),wr=s('<div class="py-6 text-center text-sm text-muted-foreground">No logs for this trace in the surrounding time window</div>'),Ir=s("<!> <!> <!> <!>",1),kr=s('<span class="inline-block max-w-[200px] truncate rounded bg-muted px-2 py-0.5 font-mono text-xs text-muted-foreground"> </span>'),Sr=s('<span class="text-xs text-muted-foreground">—</span>'),Cr=s("<!> <!> <!> <!>",1),Dr=s("<!> <!>",1),jr=s("<!> <!>",1),Lr=s('<div class="flex items-center justify-center py-6"><!></div>'),zr=s('<div class="py-6 text-center text-sm text-red-500"> </div>'),Ar=s('<div class="py-6 text-center text-sm text-muted-foreground">Loading distributed logs…</div>'),Br=s('<div class="py-6 text-center text-sm text-muted-foreground">No logs found in this distributed trace</div>'),Er=s("<!> <!> <!> <!> <!>",1),Nr=s('<span class="text-muted-foreground"> </span>'),Rr=s('<span class="text-muted-foreground">—</span>'),Or=s("<!> <!> <!> <!> <!>",1),Fr=s("<!> <!>",1),Mr=s("<!> <!>",1),Hr=s("<!> <!> <!>",1),Ur=s("<!> <!>",1);function Vr($e,I){Gt(I,!0);let Me=ar(I,"distributedTraceId",3,null);I.rootSpan;const d=L(Qt);let Qe=_e("this-trace"),Ne=_e(Ot([])),He=_e(!0),Re=_e(""),Xe=_e(null),Ue=_e(Ot([])),Ve=_e(!1),lt=_e(!1),Ye=_e("");const Tt=L(()=>{const v=new Map;for(const T of I.spans){const ne=xr(T.id);ne&&v.set(ne,T.name)}return v});function S(v){return v.spanId?e(Tt).get(v.spanId.toLowerCase())??null:null}function te(){const v=new Date(I.traceRecordedAt).getTime(),T=3600*1e3;return{fromDate:new Date(v-T).toISOString(),toDate:new Date(v+T).toISOString()}}async function qe(){A(He,!0),A(Re,"");try{const{fromDate:v,toDate:T}=te(),ne=await Lt.post("/logs",{fromDate:v,toDate:T,orderBy:"timestamp",sortDirection:"asc",pagination:{page:1,pageSize:100},traceId:I.traceId},{projectId:I.projectId||void 0});A(Ne,ne.data||[],!0)}catch(v){A(Re,v.message||"Failed to load logs",!0)}finally{A(He,!1)}}async function wt(){if(Me()){A(Ve,!0),A(Ye,"");try{const{fromDate:v,toDate:T}=te(),ne=await Lt.post("/logs",{fromDate:v,toDate:T,orderBy:"timestamp",sortDirection:"asc",pagination:{page:1,pageSize:100},distributedTraceId:Me()},{projectId:I.projectId||void 0});A(Ue,ne.data||[],!0),A(lt,!0)}catch(v){A(Ye,v.message||"Failed to load distributed logs",!0)}finally{A(Ve,!1)}}}function It(v){v!=="this-trace"&&v!=="all-distributed"||(A(Qe,v,!0),v==="all-distributed"&&!e(lt)&&!e(Ve)&&wt())}function Be(v){A(Xe,e(Xe)===v?null:v,!0)}function Ke(v){if(!v)return"";const T=v.indexOf(`
`);return T===-1?v:v.slice(0,T)}Wt(()=>{qe()});var mt=p(),kt=a(mt);r(kt,()=>_t,(v,T)=>{T(v,{class:"gap-0 pb-0 overflow-hidden",children:(ne,Rt)=>{var gt=Ur(),Ze=a(gt);r(Ze,()=>pt,(et,tt)=>{tt(et,{children:(it,xt)=>{var We=p(),rt=a(We);r(rt,()=>ft,(at,ut)=>{ut(at,{children:(vt,B)=>{$();var M=g("Logs");t(vt,M)},$$slots:{default:!0}})}),t(it,We)},$$slots:{default:!0}})});var ht=o(Ze,2);r(ht,()=>$t,(et,tt)=>{tt(et,{class:"p-0",children:(it,xt)=>{var We=p(),rt=a(We);r(rt,()=>fr,(at,ut)=>{ut(at,{get value(){return e(Qe)},onValueChange:It,children:(vt,B)=>{var M=Hr(),me=a(M);r(me,()=>_r,(le,R)=>{R(le,{class:"h-auto w-full justify-start gap-4 rounded-none border-b bg-transparent p-0 pl-6 pt-0 pb-2",children:(C,H)=>{var D=Pr(),w=a(D);r(w,()=>Ut,(u,n)=>{n(u,{value:"this-trace",class:"rounded-none border-b-2 border-transparent bg-transparent px-0 pb-2 pt-0 text-sm font-medium text-muted-foreground shadow-none data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none",children:(l,h)=>{$();var f=g("This Trace");t(l,f)},$$slots:{default:!0}})});var b=o(w,2);{var E=u=>{var n=p(),l=a(n);r(l,()=>Ut,(h,f)=>{f(h,{value:"all-distributed",class:"rounded-none border-b-2 border-transparent bg-transparent px-0 pb-2 pt-0 text-sm font-medium text-muted-foreground shadow-none data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none",children:(c,m)=>{$();var x=g("All Distributed Traces");t(c,x)},$$slots:{default:!0}})}),t(u,n)};y(b,u=>{Me()&&u(E)})}t(C,D)},$$slots:{default:!0}})});var De=o(me,2);r(De,()=>Vt,(le,R)=>{R(le,{value:"this-trace",class:"mt-0",children:(C,H)=>{var D=p(),w=a(D);{var b=u=>{var n=yr(),l=Q(n);Nt(l,{size:"lg"}),X(n),t(u,n)},E=u=>{var n=p(),l=a(n);{var h=c=>{var m=Tr(),x=Q(m,!0);X(m),oe(()=>se(x,e(Re))),t(c,m)},f=c=>{var m=p(),x=a(m);{var k=O=>{var ie=wr();t(O,ie)},i=O=>{var ie=p(),Ge=a(ie);r(Ge,()=>At,(re,je)=>{je(re,{children:(Je,ue)=>{var Ee=jr(),ge=a(Ee);r(ge,()=>Et,(Le,ze)=>{ze(Le,{children:(Oe,he)=>{var Y=p(),Z=a(Y);r(Z,()=>dt,(ve,P)=>{P(ve,{children:(ee,ce)=>{var xe=Ir(),U=a(xe);r(U,()=>ye,(_,N)=>{N(_,{class:"h-8 w-[180px] py-1.5 pl-6",children:(K,pe)=>{$();var F=g("Timestamp");t(K,F)},$$slots:{default:!0}})});var V=o(U,2);r(V,()=>ye,(_,N)=>{N(_,{class:"h-8 w-[80px] py-1.5",children:(K,pe)=>{$();var F=g("Level");t(K,F)},$$slots:{default:!0}})});var q=o(V,2);r(q,()=>ye,(_,N)=>{N(_,{class:"h-8 py-1.5",children:(K,pe)=>{$();var F=g("Message");t(K,F)},$$slots:{default:!0}})});var Ie=o(q,2);r(Ie,()=>ye,(_,N)=>{N(_,{class:"h-8 w-[220px] py-1.5 pr-6",children:(K,pe)=>{$();var F=g("Span");t(K,F)},$$slots:{default:!0}})}),t(ee,xe)},$$slots:{default:!0}})}),t(Oe,Y)},$$slots:{default:!0}})});var we=o(ge,2);r(we,()=>Bt,(Le,ze)=>{ze(Le,{children:(Oe,he)=>{var Y=p(),Z=a(Y);zt(Z,17,()=>e(Ne),ve=>ve.id,(ve,P)=>{const ee=L(()=>S(e(P)));var ce=Dr(),xe=a(ce);r(xe,()=>dt,(q,Ie)=>{Ie(q,{class:"h-8 cursor-pointer hover:bg-muted/50",onclick:()=>Be(e(P).id),children:(_,N)=>{var K=Cr(),pe=a(K);r(pe,()=>Pe,(be,Ae)=>{Ae(be,{class:"py-1.5 pl-6 text-xs text-muted-foreground tabular-nums",children:(z,W)=>{$();var j=g();oe(fe=>se(j,fe),[()=>yt(e(P).timestamp,{timezone:e(d)})]),t(z,j)},$$slots:{default:!0}})});var F=o(pe,2);r(F,()=>Pe,(be,Ae)=>{Ae(be,{class:"py-1.5",children:(z,W)=>{qt(z,{get severityText(){return e(P).severityText},get severityNumber(){return e(P).severityNumber}})},$$slots:{default:!0}})});var ke=o(F,2);r(ke,()=>Pe,(be,Ae)=>{Ae(be,{class:"max-w-[600px] truncate py-1.5 font-mono text-xs",children:(z,W)=>{$();var j=g();oe(fe=>se(j,fe),[()=>Ke(e(P).body)]),t(z,j)},$$slots:{default:!0}})});var ot=o(ke,2);r(ot,()=>Pe,(be,Ae)=>{Ae(be,{class:"py-1.5 pr-6",children:(z,W)=>{var j=p(),fe=a(j);{var ae=G=>{var J=kr(),Se=Q(J,!0);X(J),oe(()=>{Ht(J,"title",e(ee)),se(Se,e(ee))}),t(G,J)},St=G=>{var J=Sr();t(G,J)};y(fe,G=>{e(ee)?G(ae):G(St,!1)})}t(z,j)},$$slots:{default:!0}})}),t(_,K)},$$slots:{default:!0}})});var U=o(xe,2);{var V=q=>{Kt(q,{get log(){return e(P)},colspan:4})};y(U,q=>{e(Xe)===e(P).id&&q(V)})}t(ve,ce)}),t(Oe,Y)},$$slots:{default:!0}})}),t(Je,Ee)},$$slots:{default:!0}})}),t(O,ie)};y(x,O=>{e(Ne).length===0?O(k):O(i,!1)},!0)}t(c,m)};y(l,c=>{e(Re)?c(h):c(f,!1)},!0)}t(u,n)};y(w,u=>{e(He)?u(b):u(E,!1)})}t(C,D)},$$slots:{default:!0}})});var de=o(De,2);{var Te=le=>{var R=p(),C=a(R);r(C,()=>Vt,(H,D)=>{D(H,{value:"all-distributed",class:"mt-0",children:(w,b)=>{var E=p(),u=a(E);{var n=h=>{var f=Lr(),c=Q(f);Nt(c,{size:"lg"}),X(f),t(h,f)},l=h=>{var f=p(),c=a(f);{var m=k=>{var i=zr(),O=Q(i,!0);X(i),oe(()=>se(O,e(Ye))),t(k,i)},x=k=>{var i=p(),O=a(i);{var ie=re=>{var je=Ar();t(re,je)},Ge=re=>{var je=p(),Je=a(je);{var ue=ge=>{var we=Br();t(ge,we)},Ee=ge=>{var we=p(),Le=a(we);r(Le,()=>At,(ze,Oe)=>{Oe(ze,{children:(he,Y)=>{var Z=Mr(),ve=a(Z);r(ve,()=>Et,(ee,ce)=>{ce(ee,{children:(xe,U)=>{var V=p(),q=a(V);r(q,()=>dt,(Ie,_)=>{_(Ie,{children:(N,K)=>{var pe=Er(),F=a(pe);r(F,()=>ye,(z,W)=>{W(z,{class:"h-8 w-[180px] py-1.5 pl-6",children:(j,fe)=>{$();var ae=g("Timestamp");t(j,ae)},$$slots:{default:!0}})});var ke=o(F,2);r(ke,()=>ye,(z,W)=>{W(z,{class:"h-8 w-[80px] py-1.5",children:(j,fe)=>{$();var ae=g("Level");t(j,ae)},$$slots:{default:!0}})});var ot=o(ke,2);r(ot,()=>ye,(z,W)=>{W(z,{class:"h-8 py-1.5",children:(j,fe)=>{$();var ae=g("Message");t(j,ae)},$$slots:{default:!0}})});var be=o(ot,2);r(be,()=>ye,(z,W)=>{W(z,{class:"h-8 w-[160px] py-1.5",children:(j,fe)=>{$();var ae=g("Service");t(j,ae)},$$slots:{default:!0}})});var Ae=o(be,2);r(Ae,()=>ye,(z,W)=>{W(z,{class:"h-8 w-[130px] py-1.5 pr-6",children:(j,fe)=>{$();var ae=g("Trace");t(j,ae)},$$slots:{default:!0}})}),t(N,pe)},$$slots:{default:!0}})}),t(xe,V)},$$slots:{default:!0}})});var P=o(ve,2);r(P,()=>Bt,(ee,ce)=>{ce(ee,{children:(xe,U)=>{var V=p(),q=a(V);zt(q,17,()=>e(Ue),Ie=>Ie.id,(Ie,_)=>{var N=Fr(),K=a(N);r(K,()=>dt,(ke,ot)=>{ot(ke,{class:"h-8 cursor-pointer hover:bg-muted/50",onclick:()=>Be(e(_).id),children:(be,Ae)=>{var z=Or(),W=a(z);r(W,()=>Pe,(G,J)=>{J(G,{class:"py-1.5 pl-6 text-xs text-muted-foreground tabular-nums",children:(Se,bt)=>{$();var Ce=g();oe(ct=>se(Ce,ct),[()=>yt(e(_).timestamp,{timezone:e(d)})]),t(Se,Ce)},$$slots:{default:!0}})});var j=o(W,2);r(j,()=>Pe,(G,J)=>{J(G,{class:"py-1.5",children:(Se,bt)=>{qt(Se,{get severityText(){return e(_).severityText},get severityNumber(){return e(_).severityNumber}})},$$slots:{default:!0}})});var fe=o(j,2);r(fe,()=>Pe,(G,J)=>{J(G,{class:"max-w-[500px] truncate py-1.5 font-mono text-xs",children:(Se,bt)=>{$();var Ce=g();oe(ct=>se(Ce,ct),[()=>Ke(e(_).body)]),t(Se,Ce)},$$slots:{default:!0}})});var ae=o(fe,2);r(ae,()=>Pe,(G,J)=>{J(G,{class:"py-1.5 text-xs text-muted-foreground",children:(Se,bt)=>{$();var Ce=g();oe(()=>se(Ce,e(_).serviceName||"—")),t(Se,Ce)},$$slots:{default:!0}})});var St=o(ae,2);r(St,()=>Pe,(G,J)=>{J(G,{class:"py-1.5 pr-6 font-mono text-xs",children:(Se,bt)=>{var Ce=p(),ct=a(Ce);{var Xt=st=>{var nt=Nr(),Zt=Q(nt);X(nt),oe(er=>{Ht(nt,"title",e(_).traceId),se(Zt,`${er??""}…`)},[()=>e(_).traceId.slice(0,8)]),t(st,nt)},Yt=st=>{var nt=Rr();t(st,nt)};y(ct,st=>{e(_).traceId?st(Xt):st(Yt,!1)})}t(Se,Ce)},$$slots:{default:!0}})}),t(be,z)},$$slots:{default:!0}})});var pe=o(K,2);{var F=ke=>{Kt(ke,{get log(){return e(_)},colspan:5})};y(pe,ke=>{e(Xe)===e(_).id&&ke(F)})}t(Ie,N)}),t(xe,V)},$$slots:{default:!0}})}),t(he,Z)},$$slots:{default:!0}})}),t(ge,we)};y(Je,ge=>{e(Ue).length===0?ge(ue):ge(Ee,!1)},!0)}t(re,je)};y(O,re=>{e(lt)?re(Ge,!1):re(ie)},!0)}t(k,i)};y(c,k=>{e(Ye)?k(m):k(x,!1)},!0)}t(h,f)};y(u,h=>{e(Ve)?h(n):h(l,!1)})}t(w,E)},$$slots:{default:!0}})}),t(le,R)};y(de,le=>{Me()&&le(Te)})}t(vt,M)},$$slots:{default:!0}})}),t(it,We)},$$slots:{default:!0}})}),t(ne,gt)},$$slots:{default:!0}})}),t($e,mt),Jt()}var qr=s('<div class="flex items-center justify-center py-20"><!></div>'),Kr=s("<!> <!>",1),Wr=s('<hr class="border-border"/> <div><p class="mb-3 text-sm font-medium">Attributes</p> <!></div>',1),Gr=s('<div class="grid grid-cols-2 gap-4 md:grid-cols-4"><!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Jr=s("<!> <!>",1),Qr=s('<div class="flex items-center gap-2"><!> <!></div> <!>',1),Xr=s("View Full Exception <!>",1),Yr=s('<div class="mb-4 max-h-32 overflow-x-auto rounded-md bg-muted p-3"><pre class="font-mono text-sm whitespace-pre-wrap"> </pre></div> <!>',1),Zr=s("<!> <!>",1),ea=s('<div class="flex items-center gap-2"><!> <!></div> <!>',1),ta=s("<!> <!> <!>",1),ra=s('<div class="max-w-md truncate font-mono text-sm"> </div>'),aa=s('<span class="text-xs text-muted-foreground"> </span>'),oa=s('<span class="text-xs text-muted-foreground">-</span>'),sa=s("<!> <!> <!>",1),na=s("<!> <!>",1),da=s("<!> <!>",1),la=s("<!> <!>",1),ia=s("<!> <!>",1),ua=s("<!> <!> <!> <!> <!> <!>",1),va=s('<div class="space-y-6"><!> <!></div>');function Ha($e,I){Gt(I,!0);const Me=L(Qt);let d=_e(null),Qe=_e(!0),Ne=_e(""),He=_e(!1);async function Re(){A(Qe,!0),A(Ne,""),A(He,!1);try{const S=await Lt.post(`/endpoints/${I.data.endpointId}`,{},{projectId:Ct.currentProjectId??void 0});A(d,S,!0)}catch(S){console.error(S);const te=S;te.status===404?A(He,!0):A(Ne,te.message||"Failed to load endpoint details",!0)}finally{A(Qe,!1)}}function Xe(S){return S<1024?`${S} B`:S<1024*1024?`${(S/1024).toFixed(1)} KB`:`${(S/(1024*1024)).toFixed(2)} MB`}Wt(()=>{Re()});var Ue=va(),Ve=Q(Ue);{let S=L(()=>decodeURIComponent(I.data.endpoint)),te=L(()=>`Endpoint ID: ${I.data.endpointId}`),qe=L(()=>Dt({fallbackPath:jt("/endpoints/[endpoint]",{endpoint:encodeURIComponent(I.data.endpoint)})}));cr(Ve,{get title(){return e(S)},get subtitle(){return e(te)},get onBack(){return e(qe)}})}var lt=o(Ve,2);{var Ye=S=>{var te=qr(),qe=Q(te);Nt(qe,{size:"xlg"}),X(te),t(S,te)},Tt=S=>{var te=p(),qe=a(te);{var wt=Be=>{{let Ke=L(()=>Dt({fallbackPath:jt("/endpoints/[endpoint]",{endpoint:encodeURIComponent(I.data.endpoint)})}));Mt(Be,{status:404,title:"Endpoint Not Found",description:"The endpoint instance you're looking for doesn't exist or may have expired.",get onBack(){return e(Ke)},backLabel:"Back to Endpoint",onRetry:Re,get identifier(){return I.data.endpointId}})}},It=Be=>{var Ke=p(),mt=a(Ke);{var kt=T=>{{let ne=L(()=>Dt({fallbackPath:jt("/endpoints/[endpoint]",{endpoint:encodeURIComponent(I.data.endpoint)})}));Mt(T,{status:400,title:"Failed to Load Endpoint",get description(){return e(Ne)},get onBack(){return e(ne)},backLabel:"Back to Endpoint",onRetry:Re})}},v=T=>{var ne=p(),Rt=a(ne);{var gt=Ze=>{var ht=ua(),et=a(ht);r(et,()=>_t,(B,M)=>{M(B,{children:(me,De)=>{var de=Jr(),Te=a(de);r(Te,()=>pt,(R,C)=>{C(R,{children:(H,D)=>{var w=Kr(),b=a(w);r(b,()=>ft,(u,n)=>{n(u,{children:(l,h)=>{$();var f=g("Endpoint Details");t(l,f)},$$slots:{default:!0}})});var E=o(b,2);r(E,()=>Pt,(u,n)=>{n(u,{children:(l,h)=>{$();var f=g("Details of this specific endpoint occurrence");t(l,f)},$$slots:{default:!0}})}),t(H,w)},$$slots:{default:!0}})});var le=o(Te,2);r(le,()=>$t,(R,C)=>{C(R,{class:"space-y-6",children:(H,D)=>{var w=Gr(),b=a(w),E=Q(b);{let i=L(()=>decodeURIComponent(I.data.endpoint));Fe(E,{label:"Endpoint",get value(){return e(i)},mono:!0})}var u=o(E,2);{let i=L(()=>sr(e(d).endpoint.statusCode));Fe(u,{label:"Status",get value(){return e(d).endpoint.statusCode},mono:!0,large:!0,get valueClass(){return e(i)}})}var n=o(u,2);{let i=L(()=>nr(e(d).endpoint.duration));Fe(n,{label:"Duration",get value(){return e(i)},mono:!0,large:!0})}var l=o(n,2);{let i=L(()=>yt(e(d).endpoint.recordedAt,{timezone:e(Me)}));Fe(l,{label:"Recorded At",get value(){return e(i)},mono:!0})}var h=o(l,2);Fe(h,{label:"Server",get value(){return e(d).endpoint.serverName},mono:!0});var f=o(h,2);{let i=L(()=>e(d).endpoint.appVersion||"-");Fe(f,{label:"Version",get value(){return e(i)},mono:!0})}var c=o(f,2);Fe(c,{label:"Client IP",get value(){return e(d).endpoint.clientIP},mono:!0});var m=o(c,2);{let i=L(()=>Xe(e(d).endpoint.bodySize));Fe(m,{label:"Body Size",get value(){return e(i)},mono:!0})}X(b);var x=o(b,2);{var k=i=>{var O=Wr(),ie=o(a(O),2),Ge=o(Q(ie),2);lr(Ge,{get attributes(){return e(d).endpoint.attributes}}),X(ie),t(i,O)};y(x,i=>{e(d).endpoint.attributes&&Object.keys(e(d).endpoint.attributes).length>0&&i(k)})}t(H,w)},$$slots:{default:!0}})}),t(me,de)},$$slots:{default:!0}})});var tt=o(et,2);{var it=B=>{var M=p(),me=a(M);r(me,()=>_t,(De,de)=>{de(De,{class:"border-red-500/30 bg-red-500/5",children:(Te,le)=>{var R=Zr(),C=a(R);r(C,()=>pt,(D,w)=>{w(D,{children:(b,E)=>{var u=Qr(),n=a(u),l=Q(n);$r(l,{class:"h-5 w-5 text-red-500"});var h=o(l,2);r(h,()=>ft,(c,m)=>{m(c,{class:"text-red-600 dark:text-red-400",children:(x,k)=>{$();var i=g("Exception Occurred");t(x,i)},$$slots:{default:!0}})}),X(n);var f=o(n,2);r(f,()=>Pt,(c,m)=>{m(c,{children:(x,k)=>{$();var i=g("This endpoint request resulted in an exception");t(x,i)},$$slots:{default:!0}})}),t(b,u)},$$slots:{default:!0}})});var H=o(C,2);r(H,()=>$t,(D,w)=>{w(D,{children:(b,E)=>{var u=Yr(),n=a(u),l=Q(n),h=Q(l);X(l),X(n);var f=o(n,2);dr(f,{variant:"outline",size:"sm",onclick:()=>Ft(`/issues/${e(d).exception.exceptionHash}`),children:(c,m)=>{$();var x=Xr(),k=o(a(x));mr(k,{class:"ml-2 h-4 w-4"}),t(c,x)},$$slots:{default:!0}}),oe((c,m)=>se(h,`${c??""}${m??""}`),[()=>e(d).exception.stackTrace.split(`
`).slice(0,4).join(`
`),()=>e(d).exception.stackTrace.split(`
diff --git a/backend/static/frontend/_app/immutable/nodes/11.DSImG_vI.js.map b/backend/static/frontend/_app/immutable/nodes/11.BmOzrP-J.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/11.DSImG_vI.js.map
rename to backend/static/frontend/_app/immutable/nodes/11.BmOzrP-J.js.map
index 0ac9e011..b8e7199c 100644
--- a/backend/static/frontend/_app/immutable/nodes/11.DSImG_vI.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/11.BmOzrP-J.js.map
@@ -1 +1 @@
-{"version":3,"file":"11.DSImG_vI.js","sources":["../../../../../../src/routes/endpoints/[endpoint]/[endpointId]/+page.ts","../../../../../../src/lib/utils/span-id.ts","../../../../../../src/lib/components/trace-logs/trace-logs-panel.svelte","../../../../../../src/routes/endpoints/[endpoint]/[endpointId]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\tendpoint: params.endpoint,\n\t\tendpointId: params.endpointId,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","export function spanIdUuidToHex(spanUuid: string | null | undefined): string {\n\tif (!spanUuid) return '';\n\treturn spanUuid.replace(/-/g, '').slice(-16).toLowerCase();\n}\n\nexport function traceIdUuidToHex(traceUuid: string | null | undefined): string {\n\tif (!traceUuid) return '';\n\treturn traceUuid.replace(/-/g, '').toLowerCase();\n}\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { api } from '$lib/api';\n\timport * as Card from '$lib/components/ui/card';\n\timport * as Table from '$lib/components/ui/table';\n\timport * as Tabs from '$lib/components/ui/tabs';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { SeverityBadge } from '$lib/components/ui/severity-badge';\n\timport ExpandedLogRow from './expanded-log-row.svelte';\n\timport { formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { spanIdUuidToHex } from '$lib/utils/span-id';\n\timport type { Span } from '$lib/types/spans';\n\n\ttype LogRecord = {\n\t\tid: string;\n\t\tprojectId: string;\n\t\ttimestamp: string;\n\t\ttraceId: string;\n\t\tspanId: string;\n\t\tseverityText: string;\n\t\tseverityNumber: number;\n\t\tserviceName: string;\n\t\tbody: string;\n\t\tresourceAttributes: Record<string, string> | null;\n\t\tscopeName: string;\n\t\tscopeVersion: string;\n\t\tscopeAttributes: Record<string, string> | null;\n\t\tlogAttributes: Record<string, string> | null;\n\t};\n\n\tlet {\n\t\tprojectId,\n\t\ttraceId,\n\t\tdistributedTraceId = null,\n\t\tspans,\n\t\trootSpan,\n\t\ttraceRecordedAt\n\t}: {\n\t\tprojectId: string;\n\t\ttraceId: string;\n\t\tdistributedTraceId?: string | null;\n\t\tspans: Span[];\n\t\trootSpan: { id: string; name: string };\n\t\ttraceRecordedAt: string;\n\t} = $props();\n\n\t// rootSpan kept on the prop surface for future use; not referenced here now\n\t// that the root-span chip fallback is gone.\n\tvoid rootSpan;\n\n\tconst timezone = $derived(getTimezone());\n\n\tlet activeTab = $state<'this-trace' | 'all-distributed'>('this-trace');\n\n\t// This-trace data\n\tlet logs = $state<LogRecord[]>([]);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet expandedId = $state<string | null>(null);\n\n\t// Distributed data (lazy)\n\tlet distributedLogs = $state<LogRecord[]>([]);\n\tlet distributedLoading = $state(false);\n\tlet distributedLoaded = $state(false);\n\tlet distributedError = $state('');\n\n\tconst childSpanNameByHex = $derived.by(() => {\n\t\tconst m = new Map<string, string>();\n\t\tfor (const s of spans) {\n\t\t\tconst hex = spanIdUuidToHex(s.id);\n\t\t\tif (hex) m.set(hex, s.name);\n\t\t}\n\t\treturn m;\n\t});\n\n\tfunction resolveSpanName(log: LogRecord): string | null {\n\t\tif (!log.spanId) return null;\n\t\treturn childSpanNameByHex.get(log.spanId.toLowerCase()) ?? null;\n\t}\n\n\tfunction timeWindow(): { fromDate: string; toDate: string } {\n\t\tconst t = new Date(traceRecordedAt).getTime();\n\t\tconst hour = 60 * 60 * 1000;\n\t\treturn {\n\t\t\tfromDate: new Date(t - hour).toISOString(),\n\t\t\ttoDate: new Date(t + hour).toISOString()\n\t\t};\n\t}\n\n\tasync function loadTraceLogs() {\n\t\tloading = true;\n\t\terror = '';\n\t\ttry {\n\t\t\tconst { fromDate, toDate } = timeWindow();\n\t\t\tconst response = (await api.post(\n\t\t\t\t'/logs',\n\t\t\t\t{\n\t\t\t\t\tfromDate,\n\t\t\t\t\ttoDate,\n\t\t\t\t\torderBy: 'timestamp',\n\t\t\t\t\tsortDirection: 'asc',\n\t\t\t\t\tpagination: { page: 1, pageSize: 100 },\n\t\t\t\t\ttraceId\n\t\t\t\t},\n\t\t\t\t{ projectId: projectId || undefined }\n\t\t\t)) as { data: LogRecord[] };\n\t\t\tlogs = response.data || [];\n\t\t} catch (e: unknown) {\n\t\t\tconst err = e as { message?: string };\n\t\t\terror = err.message || 'Failed to load logs';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tasync function loadDistributedLogs() {\n\t\tif (!distributedTraceId) return;\n\t\tdistributedLoading = true;\n\t\tdistributedError = '';\n\t\ttry {\n\t\t\tconst { fromDate, toDate } = timeWindow();\n\t\t\tconst response = (await api.post(\n\t\t\t\t'/logs',\n\t\t\t\t{\n\t\t\t\t\tfromDate,\n\t\t\t\t\ttoDate,\n\t\t\t\t\torderBy: 'timestamp',\n\t\t\t\t\tsortDirection: 'asc',\n\t\t\t\t\tpagination: { page: 1, pageSize: 100 },\n\t\t\t\t\tdistributedTraceId\n\t\t\t\t},\n\t\t\t\t{ projectId: projectId || undefined }\n\t\t\t)) as { data: LogRecord[] };\n\t\t\tdistributedLogs = response.data || [];\n\t\t\tdistributedLoaded = true;\n\t\t} catch (e: unknown) {\n\t\t\tconst err = e as { message?: string };\n\t\t\tdistributedError = err.message || 'Failed to load distributed logs';\n\t\t} finally {\n\t\t\tdistributedLoading = false;\n\t\t}\n\t}\n\n\tfunction onTabChange(value: string) {\n\t\tif (value !== 'this-trace' && value !== 'all-distributed') return;\n\t\tactiveTab = value;\n\t\tif (value === 'all-distributed' && !distributedLoaded && !distributedLoading) {\n\t\t\tloadDistributedLogs();\n\t\t}\n\t}\n\n\tfunction toggleExpanded(id: string) {\n\t\texpandedId = expandedId === id ? null : id;\n\t}\n\n\tfunction firstLine(body: string): string {\n\t\tif (!body) return '';\n\t\tconst nl = body.indexOf('\\n');\n\t\treturn nl === -1 ? body : body.slice(0, nl);\n\t}\n\n\tonMount(() => {\n\t\tloadTraceLogs();\n\t});\n</script>\n\n<Card.Root class=\"gap-0 pb-0 overflow-hidden\">\n\t<Card.Header>\n\t\t<Card.Title>Logs</Card.Title>\n\t</Card.Header>\n\t<Card.Content class=\"p-0\">\n\t\t<Tabs.Root value={activeTab} onValueChange={onTabChange}>\n\t\t\t<Tabs.List\n\t\t\t\tclass=\"h-auto w-full justify-start gap-4 rounded-none border-b bg-transparent p-0 pl-6 pt-0 pb-2\"\n\t\t\t>\n\t\t\t\t<Tabs.Trigger\n\t\t\t\t\tvalue=\"this-trace\"\n\t\t\t\t\tclass=\"rounded-none border-b-2 border-transparent bg-transparent px-0 pb-2 pt-0 text-sm font-medium text-muted-foreground shadow-none data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none\"\n\t\t\t\t>\n\t\t\t\t\tThis Trace\n\t\t\t\t</Tabs.Trigger>\n\t\t\t\t{#if distributedTraceId}\n\t\t\t\t\t<Tabs.Trigger\n\t\t\t\t\t\tvalue=\"all-distributed\"\n\t\t\t\t\t\tclass=\"rounded-none border-b-2 border-transparent bg-transparent px-0 pb-2 pt-0 text-sm font-medium text-muted-foreground shadow-none data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none\"\n\t\t\t\t\t>\n\t\t\t\t\t\tAll Distributed Traces\n\t\t\t\t\t</Tabs.Trigger>\n\t\t\t\t{/if}\n\t\t\t</Tabs.List>\n\n\t\t\t<Tabs.Content value=\"this-trace\" class=\"mt-0\">\n\t\t\t\t{#if loading}\n\t\t\t\t\t<div class=\"flex items-center justify-center py-6\">\n\t\t\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t\t\t</div>\n\t\t\t\t{:else if error}\n\t\t\t\t\t<div class=\"py-6 text-center text-sm text-red-500\">{error}</div>\n\t\t\t\t{:else if logs.length === 0}\n\t\t\t\t\t<div class=\"py-6 text-center text-sm text-muted-foreground\">\n\t\t\t\t\t\tNo logs for this trace in the surrounding time window\n\t\t\t\t\t</div>\n\t\t\t\t{:else}\n\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[180px] py-1.5 pl-6\">Timestamp</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[80px] py-1.5\">Level</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 py-1.5\">Message</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[220px] py-1.5 pr-6\">Span</Table.Head>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t{#each logs as log (log.id)}\n\t\t\t\t\t\t\t\t{@const spanName = resolveSpanName(log)}\n\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\tclass=\"h-8 cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\tonclick={() => toggleExpanded(log.id)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5 pl-6 text-xs text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t{formatDateTime(log.timestamp, { timezone })}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5\">\n\t\t\t\t\t\t\t\t\t\t<SeverityBadge\n\t\t\t\t\t\t\t\t\t\t\tseverityText={log.severityText}\n\t\t\t\t\t\t\t\t\t\t\tseverityNumber={log.severityNumber}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"max-w-[600px] truncate py-1.5 font-mono text-xs\">\n\t\t\t\t\t\t\t\t\t\t{firstLine(log.body)}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5 pr-6\">\n\t\t\t\t\t\t\t\t\t\t{#if spanName}\n\t\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"inline-block max-w-[200px] truncate rounded bg-muted px-2 py-0.5 font-mono text-xs text-muted-foreground\"\n\t\t\t\t\t\t\t\t\t\t\t\ttitle={spanName}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{spanName}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">—</span>\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t\t{#if expandedId === log.id}\n\t\t\t\t\t\t\t\t\t<ExpandedLogRow {log} colspan={4} />\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t</Table.Root>\n\t\t\t\t{/if}\n\t\t\t</Tabs.Content>\n\n\t\t\t{#if distributedTraceId}\n\t\t\t\t<Tabs.Content value=\"all-distributed\" class=\"mt-0\">\n\t\t\t\t\t{#if distributedLoading}\n\t\t\t\t\t\t<div class=\"flex items-center justify-center py-6\">\n\t\t\t\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else if distributedError}\n\t\t\t\t\t\t<div class=\"py-6 text-center text-sm text-red-500\">{distributedError}</div>\n\t\t\t\t\t{:else if !distributedLoaded}\n\t\t\t\t\t\t<div class=\"py-6 text-center text-sm text-muted-foreground\">\n\t\t\t\t\t\t\tLoading distributed logs…\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else if distributedLogs.length === 0}\n\t\t\t\t\t\t<div class=\"py-6 text-center text-sm text-muted-foreground\">\n\t\t\t\t\t\t\tNo logs found in this distributed trace\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[180px] py-1.5 pl-6\">Timestamp</Table.Head>\n\t\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[80px] py-1.5\">Level</Table.Head>\n\t\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 py-1.5\">Message</Table.Head>\n\t\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[160px] py-1.5\">Service</Table.Head>\n\t\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[130px] py-1.5 pr-6\">Trace</Table.Head>\n\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t\t{#each distributedLogs as log (log.id)}\n\t\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\t\tclass=\"h-8 cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\t\tonclick={() => toggleExpanded(log.id)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5 pl-6 text-xs text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t{formatDateTime(log.timestamp, { timezone })}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5\">\n\t\t\t\t\t\t\t\t\t\t\t<SeverityBadge\n\t\t\t\t\t\t\t\t\t\t\t\tseverityText={log.severityText}\n\t\t\t\t\t\t\t\t\t\t\t\tseverityNumber={log.severityNumber}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"max-w-[500px] truncate py-1.5 font-mono text-xs\">\n\t\t\t\t\t\t\t\t\t\t\t{firstLine(log.body)}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t\t{log.serviceName || '—'}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5 pr-6 font-mono text-xs\">\n\t\t\t\t\t\t\t\t\t\t\t{#if log.traceId}\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-muted-foreground\" title={log.traceId}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{log.traceId.slice(0, 8)}…\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-muted-foreground\">—</span>\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t\t\t{#if expandedId === log.id}\n\t\t\t\t\t\t\t\t\t\t<ExpandedLogRow {log} colspan={5} />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t\t</Table.Root>\n\t\t\t\t\t{/if}\n\t\t\t\t</Tabs.Content>\n\t\t\t{/if}\n\t\t</Tabs.Root>\n\t</Card.Content>\n</Card.Root>\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport { formatDuration, getStatusColor, formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Card from '$lib/components/ui/card';\n\timport * as Table from '$lib/components/ui/table';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { ArrowLeft, ArrowRight, TriangleAlert, ClipboardList } from 'lucide-svelte';\n\timport { LabelValue } from '$lib/components/ui/label-value';\n\timport { AttributesGrid } from '$lib/components/ui/attributes-grid/index.js';\n\timport SpanWaterfall from '$lib/components/spans/span-waterfall.svelte';\n\timport SpanEmptyState from '$lib/components/spans/span-empty-state.svelte';\n\timport type { TraceDetailResponse } from '$lib/types/spans';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport { resolve } from '$app/paths';\n\timport DistributedTraceCard from '$lib/components/distributed-trace/distributed-trace-card.svelte';\n\timport TraceLogsPanel from '$lib/components/trace-logs/trace-logs-panel.svelte';\n\timport { traceIdUuidToHex } from '$lib/utils/span-id';\n\n\tlet { data } = $props();\n\n\tconst timezone = $derived(getTimezone());\n\n\tlet response = $state<TraceDetailResponse | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\n\tasync function loadData() {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\n\t\ttry {\n\t\t\tconst result = await api.post(\n\t\t\t\t`/endpoints/${data.endpointId}`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\tresponse = result;\n\t\t} catch (e: unknown) {\n\t\t\tconsole.error(e);\n\t\t\tconst err = e as { status?: number; message?: string };\n\t\t\tif (err.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = err.message || 'Failed to load endpoint details';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction formatBytes(bytes: number): string {\n\t\tif (bytes < 1024) {\n\t\t\treturn `${bytes} B`;\n\t\t} else if (bytes < 1024 * 1024) {\n\t\t\treturn `${(bytes / 1024).toFixed(1)} KB`;\n\t\t} else {\n\t\t\treturn `${(bytes / (1024 * 1024)).toFixed(2)} MB`;\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\tloadData();\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t<PageHeader\n\t\ttitle={decodeURIComponent(data.endpoint)}\n\t\tsubtitle={`Endpoint ID: ${data.endpointId}`}\n\t\tonBack={createSmartBackHandler({\n\t\t\tfallbackPath: resolve('/endpoints/[endpoint]', {\n\t\t\t\tendpoint: encodeURIComponent(data.endpoint)\n\t\t\t})\n\t\t})}\n\t/>\n\n\t{#if loading}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"Endpoint Not Found\"\n\t\t\tdescription=\"The endpoint instance you're looking for doesn't exist or may have expired.\"\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/endpoints/[endpoint]', {\n\t\t\t\t\tendpoint: encodeURIComponent(data.endpoint)\n\t\t\t\t})\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Endpoint\"\n\t\t\tonRetry={loadData}\n\t\t\tidentifier={data.endpointId}\n\t\t/>\n\t{:else if error}\n\t\t<ErrorDisplay\n\t\t\tstatus={400}\n\t\t\ttitle=\"Failed to Load Endpoint\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/endpoints/[endpoint]', {\n\t\t\t\t\tendpoint: encodeURIComponent(data.endpoint)\n\t\t\t\t})\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Endpoint\"\n\t\t\tonRetry={loadData}\n\t\t/>\n\t{:else if response}\n\t\t<!-- Endpoint Details Card -->\n\t\t<Card.Root>\n\t\t\t<Card.Header>\n\t\t\t\t<Card.Title>Endpoint Details</Card.Title>\n\t\t\t\t<Card.Description>Details of this specific endpoint occurrence</Card.Description>\n\t\t\t</Card.Header>\n\t\t\t<Card.Content class=\"space-y-6\">\n\t\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-4\">\n\t\t\t\t\t<LabelValue label=\"Endpoint\" value={decodeURIComponent(data.endpoint)} mono />\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Status\"\n\t\t\t\t\t\tvalue={response.endpoint.statusCode}\n\t\t\t\t\t\tmono\n\t\t\t\t\t\tlarge\n\t\t\t\t\t\tvalueClass={getStatusColor(response.endpoint.statusCode)}\n\t\t\t\t\t/>\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Duration\"\n\t\t\t\t\t\tvalue={formatDuration(response.endpoint.duration)}\n\t\t\t\t\t\tmono\n\t\t\t\t\t\tlarge\n\t\t\t\t\t/>\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\tvalue={formatDateTime(response.endpoint.recordedAt, { timezone })}\n\t\t\t\t\t\tmono\n\t\t\t\t\t/>\n\t\t\t\t\t<LabelValue label=\"Server\" value={response.endpoint.serverName} mono />\n\t\t\t\t\t<LabelValue label=\"Version\" value={response.endpoint.appVersion || '-'} mono />\n\t\t\t\t\t<LabelValue label=\"Client IP\" value={response.endpoint.clientIP} mono />\n\t\t\t\t\t<LabelValue label=\"Body Size\" value={formatBytes(response.endpoint.bodySize)} mono />\n\t\t\t\t</div>\n\n\t\t\t\t{#if response.endpoint.attributes && Object.keys(response.endpoint.attributes).length > 0}\n\t\t\t\t\t<hr class=\"border-border\" />\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<p class=\"mb-3 text-sm font-medium\">Attributes</p>\n\t\t\t\t\t\t<AttributesGrid attributes={response.endpoint.attributes} />\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t</Card.Content>\n\t\t</Card.Root>\n\n\t\t<!-- Exception Card (if exception exists) -->\n\t\t{#if response.exception}\n\t\t\t<Card.Root class=\"border-red-500/30 bg-red-500/5\">\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<TriangleAlert class=\"h-5 w-5 text-red-500\" />\n\t\t\t\t\t\t<Card.Title class=\"text-red-600 dark:text-red-400\">Exception Occurred</Card.Title>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Card.Description>This endpoint request resulted in an exception</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content>\n\t\t\t\t\t<div class=\"mb-4 max-h-32 overflow-x-auto rounded-md bg-muted p-3\">\n\t\t\t\t\t\t<pre class=\"font-mono text-sm whitespace-pre-wrap\">{response.exception.stackTrace\n\t\t\t\t\t\t\t\t.split('\\n')\n\t\t\t\t\t\t\t\t.slice(0, 4)\n\t\t\t\t\t\t\t\t.join('\\n')}{response.exception.stackTrace.split('\\n').length > 4\n\t\t\t\t\t\t\t\t? '\\n...'\n\t\t\t\t\t\t\t\t: ''}</pre>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\tonclick={() => goto(`/issues/${response!.exception!.exceptionHash}`)}\n\t\t\t\t\t>\n\t\t\t\t\t\tView Full Exception\n\t\t\t\t\t\t<ArrowRight class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t</Button>\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\n\t\t<!-- Messages Section (if messages exist) -->\n\t\t{#if response.messages.length > 0}\n\t\t\t<Card.Root>\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<ClipboardList class=\"h-5 w-5 text-muted-foreground\" />\n\t\t\t\t\t\t<Card.Title>Messages</Card.Title>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Card.Description>\n\t\t\t\t\t\t{response.messages.length} message{response.messages.length === 1 ? '' : 's'} logged during\n\t\t\t\t\t\tthis request\n\t\t\t\t\t</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content class=\"px-0 pb-0\">\n\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Head class=\"pl-6\">Message</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"w-[180px]\">Recorded At</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"w-[100px] pr-6\">Attributes</Table.Head>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t{#each response.messages as message}\n\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\tonclick={() => goto(`/issues/${message.exceptionHash}/${message.id}`)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"pl-6\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"max-w-md truncate font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t\t\t{message.stackTrace.split('\\n')[0]}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t{formatDateTime(message.recordedAt, { timezone })}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"pr-6\">\n\t\t\t\t\t\t\t\t\t\t{#if message.attributes && Object.keys(message.attributes).length > 0}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(message.attributes).length} key{Object.keys(message.attributes)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.length === 1\n\t\t\t\t\t\t\t\t\t\t\t\t\t? ''\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 's'}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">-</span>\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t</Table.Root>\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\n\t\t<!-- Spans Section -->\n\t\t<Card.Root>\n\t\t\t{#if response.hasSpans}\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<Card.Title>Spans</Card.Title>\n\t\t\t\t\t<Card.Description>\n\t\t\t\t\t\tTiming breakdown of operations within this endpoint request\n\t\t\t\t\t</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t{/if}\n\t\t\t<Card.Content>\n\t\t\t\t{#if response.hasSpans}\n\t\t\t\t\t<SpanWaterfall\n\t\t\t\t\t\tspans={response.spans}\n\t\t\t\t\t\ttraceDuration={response.endpoint.duration}\n\t\t\t\t\t\ttraceStartTime={response.endpoint.recordedAt}\n\t\t\t\t\t/>\n\t\t\t\t{:else}\n\t\t\t\t\t<SpanEmptyState framework={projectsState.currentProject?.framework ?? 'gin'} />\n\t\t\t\t{/if}\n\t\t\t</Card.Content>\n\t\t</Card.Root>\n\n\t\t<TraceLogsPanel\n\t\t\tprojectId={projectsState.currentProjectId ?? ''}\n\t\t\ttraceId={traceIdUuidToHex(response.endpoint.id)}\n\t\t\tdistributedTraceId={response.endpoint.distributedTraceId ?? null}\n\t\t\tspans={response.spans ?? []}\n\t\t\trootSpan={{\n\t\t\t\tid: response.endpoint.spanId ?? response.endpoint.id,\n\t\t\t\tname: response.endpoint.endpoint\n\t\t\t}}\n\t\t\ttraceRecordedAt={response.endpoint.recordedAt}\n\t\t/>\n\n\t\t{#if response.endpoint.distributedTraceId}\n\t\t\t<DistributedTraceCard distributedTraceId={response.endpoint.distributedTraceId} />\n\t\t{/if}\n\t{/if}\n</div>\n"],"names":["prerender","load","params","url","authState","redirect","spanIdUuidToHex","spanUuid","traceIdUuidToHex","traceUuid","distributedTraceId","timezone","getTimezone","activeTab","$.state","logs","$.proxy","loading","error","expandedId","distributedLogs","distributedLoading","distributedLoaded","distributedError","childSpanNameByHex","$.derived","m","s","$$props","hex","resolveSpanName","log","timeWindow","t","hour","loadTraceLogs","$.set","fromDate","toDate","response","api","e","loadDistributedLogs","onTabChange","value","$.get","toggleExpanded","id","firstLine","body","nl","onMount","Card_Root","$$anchor","Card_Header","Card_Title","Card_Content","Tabs_Root","Tabs_List","Tabs_Trigger","Tabs_Trigger_1","$$render","consequent","Tabs_Content","div","root_11","LoadingCircle","node_11","div_1","root_13","div_2","root_15","Table_Root","Table_Header","Table_Row","Table_Head","Table_Head_1","Table_Head_2","Table_Head_3","Table_Body","$.each","node_22","spanName","Table_Row_1","Table_Cell","formatDateTime","Table_Cell_1","SeverityBadge","Table_Cell_2","Table_Cell_3","span","root_31","text_10","$.child","$.reset","$.set_attribute","$.append","span_1","root_32","consequent_4","alternate","ExpandedLogRow","consequent_5","consequent_3","alternate_1","consequent_2","alternate_2","consequent_1","alternate_3","Tabs_Content_1","div_3","root_36","node_33","div_4","root_38","div_5","root_40","div_6","root_42","Table_Root_1","Table_Header_1","Table_Row_2","Table_Head_4","Table_Head_5","Table_Head_6","Table_Head_7","Table_Head_8","Table_Body_1","node_46","Table_Row_3","Table_Cell_4","Table_Cell_5","Table_Cell_6","Table_Cell_7","Table_Cell_8","span_2","root_60","span_3","root_61","consequent_10","alternate_4","consequent_11","consequent_9","alternate_5","alternate_6","consequent_8","consequent_7","alternate_7","consequent_6","alternate_8","consequent_12","notFound","loadData","result","projectsState","err","formatBytes","bytes","root","$0","createSmartBackHandler","resolve","PageHeader","node","root_1","node_2","ErrorDisplay","Card_Description","$.first_child","fragment_8","LabelValue","getStatusColor","node_12","formatDuration","node_13","node_14","node_15","node_16","node_17","node_18","$.sibling","fragment_9","AttributesGrid","node_20","Card_Root_1","Card_Header_1","fragment_12","TriangleAlert","node_24","Card_Title_1","Card_Description_1","Card_Content_1","fragment_13","pre","Button","node_28","goto","ArrowRight","node_29","Card_Root_2","Card_Header_2","fragment_17","ClipboardList","Card_Title_2","Card_Description_2","$.template_effect","$.set_text","text_6","Card_Content_2","$.index","message","div_7","root_39","Card_Root_3","Card_Header_3","Card_Title_3","Card_Description_3","Card_Content_3","SpanWaterfall","SpanEmptyState","$1","$2","$3","TraceLogsPanel","node_57","DistributedTraceCard"],"mappings":"i/CAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,GAAQ,IAAAC,KAAU,CAClD,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAG7B,MAAO,CACN,SAAUH,GAAO,SACjB,WAAYA,GAAO,WACnB,OAAQC,EAAI,aAAa,IAAI,QAAQ,GAAK,KAC1C,KAAMA,EAAI,aAAa,IAAI,MAAM,GAAK,KACtC,GAAIA,EAAI,aAAa,IAAI,IAAI,GAAK,IAAA,CAEpC,qHClBO,SAASG,GAAgBC,GAA6C,CAC5E,OAAKA,GACEA,GAAS,QAAQ,KAAM,EAAE,EAAE,MAAM,GAAG,EAAE,YAAA,EADvB,EAEvB,CAEO,SAASC,GAAiBC,GAA8C,CAC9E,OAAKA,GACEA,GAAU,QAAQ,KAAM,EAAE,EAAE,YAAA,EADZ,EAExB,6pCCRA,UAkCE,IAAAC,+BAAqB,IAAI,aAiBpB,MAAAC,IAAoBC,EAAW,MAEjCC,GAAYC,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WAAa,KAAK,EAA1EiE,GAActK,EAAA,0CAPXR,EAAAN,CAAQ,EAAC,SAAQsB,EAAAoF,CAAA,EAAApF,EAAA2C,EAAA,EAAA,oGAaZkD,GAAc,kBAAoB,EAAE,EACtCkE,EAAAnM,EAAA,IAAAjB,GAAgBqC,EAACN,CAAQ,EAAC,SAAS,EAAE,CAAA,EAC1BsL,GAAApM,EAAA,IAAAoB,EAAAN,CAAQ,EAAC,SAAS,oBAAsB,IAAI,EACzDuL,GAAArM,EAAA,IAAAoB,EAAAN,CAAQ,EAAC,OAAK,EAAA,aAEpB,GAAEM,EAAEN,CAAQ,EAAC,SAAS,QAAMM,EAAIN,CAAQ,EAAC,SAAS,GAClD,KAAIM,EAAEN,CAAQ,EAAC,SAAS,YAPzBwL,GAAAC,GAAA,sLASiBzL,CAAQ,EAAC,SAAS,yCAIlC0L,GAAoB5K,EAAA,mCAAqBd,CAAQ,EAAC,SAAS,kCADxDA,CAAQ,EAAC,SAAS,oBAAkBsB,EAAAiF,EAAA,0BAtKhCvG,CAAQ,GAAAsB,GAAA8E,EAAA,2BAbRzH,EAAK,EAAA2C,EAAA4C,EAAA,EAAA5C,EAAA6C,EAAA,EAAA,6BAdL6C,EAAQ,EAAA1F,GAAA8C,EAAA,EAAA9C,GAAA+C,GAAA,EAAA,2BAJb3F,EAAO,EAAA4C,EAAAC,EAAA,EAAAD,EAAA+E,GAAA,EAAA,MAXZ5E,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"11.BmOzrP-J.js","sources":["../../../../../../src/routes/endpoints/[endpoint]/[endpointId]/+page.ts","../../../../../../src/lib/utils/span-id.ts","../../../../../../src/lib/components/trace-logs/trace-logs-panel.svelte","../../../../../../src/routes/endpoints/[endpoint]/[endpointId]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\tendpoint: params.endpoint,\n\t\tendpointId: params.endpointId,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","export function spanIdUuidToHex(spanUuid: string | null | undefined): string {\n\tif (!spanUuid) return '';\n\treturn spanUuid.replace(/-/g, '').slice(-16).toLowerCase();\n}\n\nexport function traceIdUuidToHex(traceUuid: string | null | undefined): string {\n\tif (!traceUuid) return '';\n\treturn traceUuid.replace(/-/g, '').toLowerCase();\n}\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { api } from '$lib/api';\n\timport * as Card from '$lib/components/ui/card';\n\timport * as Table from '$lib/components/ui/table';\n\timport * as Tabs from '$lib/components/ui/tabs';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { SeverityBadge } from '$lib/components/ui/severity-badge';\n\timport ExpandedLogRow from './expanded-log-row.svelte';\n\timport { formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { spanIdUuidToHex } from '$lib/utils/span-id';\n\timport type { Span } from '$lib/types/spans';\n\n\ttype LogRecord = {\n\t\tid: string;\n\t\tprojectId: string;\n\t\ttimestamp: string;\n\t\ttraceId: string;\n\t\tspanId: string;\n\t\tseverityText: string;\n\t\tseverityNumber: number;\n\t\tserviceName: string;\n\t\tbody: string;\n\t\tresourceAttributes: Record<string, string> | null;\n\t\tscopeName: string;\n\t\tscopeVersion: string;\n\t\tscopeAttributes: Record<string, string> | null;\n\t\tlogAttributes: Record<string, string> | null;\n\t};\n\n\tlet {\n\t\tprojectId,\n\t\ttraceId,\n\t\tdistributedTraceId = null,\n\t\tspans,\n\t\trootSpan,\n\t\ttraceRecordedAt\n\t}: {\n\t\tprojectId: string;\n\t\ttraceId: string;\n\t\tdistributedTraceId?: string | null;\n\t\tspans: Span[];\n\t\trootSpan: { id: string; name: string };\n\t\ttraceRecordedAt: string;\n\t} = $props();\n\n\t// rootSpan kept on the prop surface for future use; not referenced here now\n\t// that the root-span chip fallback is gone.\n\tvoid rootSpan;\n\n\tconst timezone = $derived(getTimezone());\n\n\tlet activeTab = $state<'this-trace' | 'all-distributed'>('this-trace');\n\n\t// This-trace data\n\tlet logs = $state<LogRecord[]>([]);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet expandedId = $state<string | null>(null);\n\n\t// Distributed data (lazy)\n\tlet distributedLogs = $state<LogRecord[]>([]);\n\tlet distributedLoading = $state(false);\n\tlet distributedLoaded = $state(false);\n\tlet distributedError = $state('');\n\n\tconst childSpanNameByHex = $derived.by(() => {\n\t\tconst m = new Map<string, string>();\n\t\tfor (const s of spans) {\n\t\t\tconst hex = spanIdUuidToHex(s.id);\n\t\t\tif (hex) m.set(hex, s.name);\n\t\t}\n\t\treturn m;\n\t});\n\n\tfunction resolveSpanName(log: LogRecord): string | null {\n\t\tif (!log.spanId) return null;\n\t\treturn childSpanNameByHex.get(log.spanId.toLowerCase()) ?? null;\n\t}\n\n\tfunction timeWindow(): { fromDate: string; toDate: string } {\n\t\tconst t = new Date(traceRecordedAt).getTime();\n\t\tconst hour = 60 * 60 * 1000;\n\t\treturn {\n\t\t\tfromDate: new Date(t - hour).toISOString(),\n\t\t\ttoDate: new Date(t + hour).toISOString()\n\t\t};\n\t}\n\n\tasync function loadTraceLogs() {\n\t\tloading = true;\n\t\terror = '';\n\t\ttry {\n\t\t\tconst { fromDate, toDate } = timeWindow();\n\t\t\tconst response = (await api.post(\n\t\t\t\t'/logs',\n\t\t\t\t{\n\t\t\t\t\tfromDate,\n\t\t\t\t\ttoDate,\n\t\t\t\t\torderBy: 'timestamp',\n\t\t\t\t\tsortDirection: 'asc',\n\t\t\t\t\tpagination: { page: 1, pageSize: 100 },\n\t\t\t\t\ttraceId\n\t\t\t\t},\n\t\t\t\t{ projectId: projectId || undefined }\n\t\t\t)) as { data: LogRecord[] };\n\t\t\tlogs = response.data || [];\n\t\t} catch (e: unknown) {\n\t\t\tconst err = e as { message?: string };\n\t\t\terror = err.message || 'Failed to load logs';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tasync function loadDistributedLogs() {\n\t\tif (!distributedTraceId) return;\n\t\tdistributedLoading = true;\n\t\tdistributedError = '';\n\t\ttry {\n\t\t\tconst { fromDate, toDate } = timeWindow();\n\t\t\tconst response = (await api.post(\n\t\t\t\t'/logs',\n\t\t\t\t{\n\t\t\t\t\tfromDate,\n\t\t\t\t\ttoDate,\n\t\t\t\t\torderBy: 'timestamp',\n\t\t\t\t\tsortDirection: 'asc',\n\t\t\t\t\tpagination: { page: 1, pageSize: 100 },\n\t\t\t\t\tdistributedTraceId\n\t\t\t\t},\n\t\t\t\t{ projectId: projectId || undefined }\n\t\t\t)) as { data: LogRecord[] };\n\t\t\tdistributedLogs = response.data || [];\n\t\t\tdistributedLoaded = true;\n\t\t} catch (e: unknown) {\n\t\t\tconst err = e as { message?: string };\n\t\t\tdistributedError = err.message || 'Failed to load distributed logs';\n\t\t} finally {\n\t\t\tdistributedLoading = false;\n\t\t}\n\t}\n\n\tfunction onTabChange(value: string) {\n\t\tif (value !== 'this-trace' && value !== 'all-distributed') return;\n\t\tactiveTab = value;\n\t\tif (value === 'all-distributed' && !distributedLoaded && !distributedLoading) {\n\t\t\tloadDistributedLogs();\n\t\t}\n\t}\n\n\tfunction toggleExpanded(id: string) {\n\t\texpandedId = expandedId === id ? null : id;\n\t}\n\n\tfunction firstLine(body: string): string {\n\t\tif (!body) return '';\n\t\tconst nl = body.indexOf('\\n');\n\t\treturn nl === -1 ? body : body.slice(0, nl);\n\t}\n\n\tonMount(() => {\n\t\tloadTraceLogs();\n\t});\n</script>\n\n<Card.Root class=\"gap-0 pb-0 overflow-hidden\">\n\t<Card.Header>\n\t\t<Card.Title>Logs</Card.Title>\n\t</Card.Header>\n\t<Card.Content class=\"p-0\">\n\t\t<Tabs.Root value={activeTab} onValueChange={onTabChange}>\n\t\t\t<Tabs.List\n\t\t\t\tclass=\"h-auto w-full justify-start gap-4 rounded-none border-b bg-transparent p-0 pl-6 pt-0 pb-2\"\n\t\t\t>\n\t\t\t\t<Tabs.Trigger\n\t\t\t\t\tvalue=\"this-trace\"\n\t\t\t\t\tclass=\"rounded-none border-b-2 border-transparent bg-transparent px-0 pb-2 pt-0 text-sm font-medium text-muted-foreground shadow-none data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none\"\n\t\t\t\t>\n\t\t\t\t\tThis Trace\n\t\t\t\t</Tabs.Trigger>\n\t\t\t\t{#if distributedTraceId}\n\t\t\t\t\t<Tabs.Trigger\n\t\t\t\t\t\tvalue=\"all-distributed\"\n\t\t\t\t\t\tclass=\"rounded-none border-b-2 border-transparent bg-transparent px-0 pb-2 pt-0 text-sm font-medium text-muted-foreground shadow-none data-[state=active]:border-primary data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:shadow-none\"\n\t\t\t\t\t>\n\t\t\t\t\t\tAll Distributed Traces\n\t\t\t\t\t</Tabs.Trigger>\n\t\t\t\t{/if}\n\t\t\t</Tabs.List>\n\n\t\t\t<Tabs.Content value=\"this-trace\" class=\"mt-0\">\n\t\t\t\t{#if loading}\n\t\t\t\t\t<div class=\"flex items-center justify-center py-6\">\n\t\t\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t\t\t</div>\n\t\t\t\t{:else if error}\n\t\t\t\t\t<div class=\"py-6 text-center text-sm text-red-500\">{error}</div>\n\t\t\t\t{:else if logs.length === 0}\n\t\t\t\t\t<div class=\"py-6 text-center text-sm text-muted-foreground\">\n\t\t\t\t\t\tNo logs for this trace in the surrounding time window\n\t\t\t\t\t</div>\n\t\t\t\t{:else}\n\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[180px] py-1.5 pl-6\">Timestamp</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[80px] py-1.5\">Level</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 py-1.5\">Message</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[220px] py-1.5 pr-6\">Span</Table.Head>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t{#each logs as log (log.id)}\n\t\t\t\t\t\t\t\t{@const spanName = resolveSpanName(log)}\n\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\tclass=\"h-8 cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\tonclick={() => toggleExpanded(log.id)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5 pl-6 text-xs text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t{formatDateTime(log.timestamp, { timezone })}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5\">\n\t\t\t\t\t\t\t\t\t\t<SeverityBadge\n\t\t\t\t\t\t\t\t\t\t\tseverityText={log.severityText}\n\t\t\t\t\t\t\t\t\t\t\tseverityNumber={log.severityNumber}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"max-w-[600px] truncate py-1.5 font-mono text-xs\">\n\t\t\t\t\t\t\t\t\t\t{firstLine(log.body)}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5 pr-6\">\n\t\t\t\t\t\t\t\t\t\t{#if spanName}\n\t\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"inline-block max-w-[200px] truncate rounded bg-muted px-2 py-0.5 font-mono text-xs text-muted-foreground\"\n\t\t\t\t\t\t\t\t\t\t\t\ttitle={spanName}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{spanName}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">—</span>\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t\t{#if expandedId === log.id}\n\t\t\t\t\t\t\t\t\t<ExpandedLogRow {log} colspan={4} />\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t</Table.Root>\n\t\t\t\t{/if}\n\t\t\t</Tabs.Content>\n\n\t\t\t{#if distributedTraceId}\n\t\t\t\t<Tabs.Content value=\"all-distributed\" class=\"mt-0\">\n\t\t\t\t\t{#if distributedLoading}\n\t\t\t\t\t\t<div class=\"flex items-center justify-center py-6\">\n\t\t\t\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else if distributedError}\n\t\t\t\t\t\t<div class=\"py-6 text-center text-sm text-red-500\">{distributedError}</div>\n\t\t\t\t\t{:else if !distributedLoaded}\n\t\t\t\t\t\t<div class=\"py-6 text-center text-sm text-muted-foreground\">\n\t\t\t\t\t\t\tLoading distributed logs…\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else if distributedLogs.length === 0}\n\t\t\t\t\t\t<div class=\"py-6 text-center text-sm text-muted-foreground\">\n\t\t\t\t\t\t\tNo logs found in this distributed trace\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[180px] py-1.5 pl-6\">Timestamp</Table.Head>\n\t\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[80px] py-1.5\">Level</Table.Head>\n\t\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 py-1.5\">Message</Table.Head>\n\t\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[160px] py-1.5\">Service</Table.Head>\n\t\t\t\t\t\t\t\t\t<Table.Head class=\"h-8 w-[130px] py-1.5 pr-6\">Trace</Table.Head>\n\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t\t{#each distributedLogs as log (log.id)}\n\t\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\t\tclass=\"h-8 cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\t\tonclick={() => toggleExpanded(log.id)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5 pl-6 text-xs text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t{formatDateTime(log.timestamp, { timezone })}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5\">\n\t\t\t\t\t\t\t\t\t\t\t<SeverityBadge\n\t\t\t\t\t\t\t\t\t\t\t\tseverityText={log.severityText}\n\t\t\t\t\t\t\t\t\t\t\t\tseverityNumber={log.severityNumber}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"max-w-[500px] truncate py-1.5 font-mono text-xs\">\n\t\t\t\t\t\t\t\t\t\t\t{firstLine(log.body)}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t\t{log.serviceName || '—'}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-1.5 pr-6 font-mono text-xs\">\n\t\t\t\t\t\t\t\t\t\t\t{#if log.traceId}\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-muted-foreground\" title={log.traceId}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t{log.traceId.slice(0, 8)}…\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-muted-foreground\">—</span>\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t\t\t{#if expandedId === log.id}\n\t\t\t\t\t\t\t\t\t\t<ExpandedLogRow {log} colspan={5} />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t\t</Table.Root>\n\t\t\t\t\t{/if}\n\t\t\t\t</Tabs.Content>\n\t\t\t{/if}\n\t\t</Tabs.Root>\n\t</Card.Content>\n</Card.Root>\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport { formatDuration, getStatusColor, formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Card from '$lib/components/ui/card';\n\timport * as Table from '$lib/components/ui/table';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { ArrowLeft, ArrowRight, TriangleAlert, ClipboardList } from 'lucide-svelte';\n\timport { LabelValue } from '$lib/components/ui/label-value';\n\timport { AttributesGrid } from '$lib/components/ui/attributes-grid/index.js';\n\timport SpanWaterfall from '$lib/components/spans/span-waterfall.svelte';\n\timport SpanEmptyState from '$lib/components/spans/span-empty-state.svelte';\n\timport type { TraceDetailResponse } from '$lib/types/spans';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport { resolve } from '$app/paths';\n\timport DistributedTraceCard from '$lib/components/distributed-trace/distributed-trace-card.svelte';\n\timport TraceLogsPanel from '$lib/components/trace-logs/trace-logs-panel.svelte';\n\timport { traceIdUuidToHex } from '$lib/utils/span-id';\n\n\tlet { data } = $props();\n\n\tconst timezone = $derived(getTimezone());\n\n\tlet response = $state<TraceDetailResponse | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\n\tasync function loadData() {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\n\t\ttry {\n\t\t\tconst result = await api.post(\n\t\t\t\t`/endpoints/${data.endpointId}`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\tresponse = result;\n\t\t} catch (e: unknown) {\n\t\t\tconsole.error(e);\n\t\t\tconst err = e as { status?: number; message?: string };\n\t\t\tif (err.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = err.message || 'Failed to load endpoint details';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction formatBytes(bytes: number): string {\n\t\tif (bytes < 1024) {\n\t\t\treturn `${bytes} B`;\n\t\t} else if (bytes < 1024 * 1024) {\n\t\t\treturn `${(bytes / 1024).toFixed(1)} KB`;\n\t\t} else {\n\t\t\treturn `${(bytes / (1024 * 1024)).toFixed(2)} MB`;\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\tloadData();\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t<PageHeader\n\t\ttitle={decodeURIComponent(data.endpoint)}\n\t\tsubtitle={`Endpoint ID: ${data.endpointId}`}\n\t\tonBack={createSmartBackHandler({\n\t\t\tfallbackPath: resolve('/endpoints/[endpoint]', {\n\t\t\t\tendpoint: encodeURIComponent(data.endpoint)\n\t\t\t})\n\t\t})}\n\t/>\n\n\t{#if loading}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"Endpoint Not Found\"\n\t\t\tdescription=\"The endpoint instance you're looking for doesn't exist or may have expired.\"\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/endpoints/[endpoint]', {\n\t\t\t\t\tendpoint: encodeURIComponent(data.endpoint)\n\t\t\t\t})\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Endpoint\"\n\t\t\tonRetry={loadData}\n\t\t\tidentifier={data.endpointId}\n\t\t/>\n\t{:else if error}\n\t\t<ErrorDisplay\n\t\t\tstatus={400}\n\t\t\ttitle=\"Failed to Load Endpoint\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/endpoints/[endpoint]', {\n\t\t\t\t\tendpoint: encodeURIComponent(data.endpoint)\n\t\t\t\t})\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Endpoint\"\n\t\t\tonRetry={loadData}\n\t\t/>\n\t{:else if response}\n\t\t<!-- Endpoint Details Card -->\n\t\t<Card.Root>\n\t\t\t<Card.Header>\n\t\t\t\t<Card.Title>Endpoint Details</Card.Title>\n\t\t\t\t<Card.Description>Details of this specific endpoint occurrence</Card.Description>\n\t\t\t</Card.Header>\n\t\t\t<Card.Content class=\"space-y-6\">\n\t\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-4\">\n\t\t\t\t\t<LabelValue label=\"Endpoint\" value={decodeURIComponent(data.endpoint)} mono />\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Status\"\n\t\t\t\t\t\tvalue={response.endpoint.statusCode}\n\t\t\t\t\t\tmono\n\t\t\t\t\t\tlarge\n\t\t\t\t\t\tvalueClass={getStatusColor(response.endpoint.statusCode)}\n\t\t\t\t\t/>\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Duration\"\n\t\t\t\t\t\tvalue={formatDuration(response.endpoint.duration)}\n\t\t\t\t\t\tmono\n\t\t\t\t\t\tlarge\n\t\t\t\t\t/>\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\tvalue={formatDateTime(response.endpoint.recordedAt, { timezone })}\n\t\t\t\t\t\tmono\n\t\t\t\t\t/>\n\t\t\t\t\t<LabelValue label=\"Server\" value={response.endpoint.serverName} mono />\n\t\t\t\t\t<LabelValue label=\"Version\" value={response.endpoint.appVersion || '-'} mono />\n\t\t\t\t\t<LabelValue label=\"Client IP\" value={response.endpoint.clientIP} mono />\n\t\t\t\t\t<LabelValue label=\"Body Size\" value={formatBytes(response.endpoint.bodySize)} mono />\n\t\t\t\t</div>\n\n\t\t\t\t{#if response.endpoint.attributes && Object.keys(response.endpoint.attributes).length > 0}\n\t\t\t\t\t<hr class=\"border-border\" />\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<p class=\"mb-3 text-sm font-medium\">Attributes</p>\n\t\t\t\t\t\t<AttributesGrid attributes={response.endpoint.attributes} />\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t</Card.Content>\n\t\t</Card.Root>\n\n\t\t<!-- Exception Card (if exception exists) -->\n\t\t{#if response.exception}\n\t\t\t<Card.Root class=\"border-red-500/30 bg-red-500/5\">\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<TriangleAlert class=\"h-5 w-5 text-red-500\" />\n\t\t\t\t\t\t<Card.Title class=\"text-red-600 dark:text-red-400\">Exception Occurred</Card.Title>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Card.Description>This endpoint request resulted in an exception</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content>\n\t\t\t\t\t<div class=\"mb-4 max-h-32 overflow-x-auto rounded-md bg-muted p-3\">\n\t\t\t\t\t\t<pre class=\"font-mono text-sm whitespace-pre-wrap\">{response.exception.stackTrace\n\t\t\t\t\t\t\t\t.split('\\n')\n\t\t\t\t\t\t\t\t.slice(0, 4)\n\t\t\t\t\t\t\t\t.join('\\n')}{response.exception.stackTrace.split('\\n').length > 4\n\t\t\t\t\t\t\t\t? '\\n...'\n\t\t\t\t\t\t\t\t: ''}</pre>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\tonclick={() => goto(`/issues/${response!.exception!.exceptionHash}`)}\n\t\t\t\t\t>\n\t\t\t\t\t\tView Full Exception\n\t\t\t\t\t\t<ArrowRight class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t</Button>\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\n\t\t<!-- Messages Section (if messages exist) -->\n\t\t{#if response.messages.length > 0}\n\t\t\t<Card.Root>\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<ClipboardList class=\"h-5 w-5 text-muted-foreground\" />\n\t\t\t\t\t\t<Card.Title>Messages</Card.Title>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Card.Description>\n\t\t\t\t\t\t{response.messages.length} message{response.messages.length === 1 ? '' : 's'} logged during\n\t\t\t\t\t\tthis request\n\t\t\t\t\t</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content class=\"px-0 pb-0\">\n\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Head class=\"pl-6\">Message</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"w-[180px]\">Recorded At</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"w-[100px] pr-6\">Attributes</Table.Head>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t{#each response.messages as message}\n\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\tonclick={() => goto(`/issues/${message.exceptionHash}/${message.id}`)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"pl-6\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"max-w-md truncate font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t\t\t{message.stackTrace.split('\\n')[0]}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t{formatDateTime(message.recordedAt, { timezone })}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"pr-6\">\n\t\t\t\t\t\t\t\t\t\t{#if message.attributes && Object.keys(message.attributes).length > 0}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(message.attributes).length} key{Object.keys(message.attributes)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.length === 1\n\t\t\t\t\t\t\t\t\t\t\t\t\t? ''\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 's'}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">-</span>\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t</Table.Root>\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\n\t\t<!-- Spans Section -->\n\t\t<Card.Root>\n\t\t\t{#if response.hasSpans}\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<Card.Title>Spans</Card.Title>\n\t\t\t\t\t<Card.Description>\n\t\t\t\t\t\tTiming breakdown of operations within this endpoint request\n\t\t\t\t\t</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t{/if}\n\t\t\t<Card.Content>\n\t\t\t\t{#if response.hasSpans}\n\t\t\t\t\t<SpanWaterfall\n\t\t\t\t\t\tspans={response.spans}\n\t\t\t\t\t\ttraceDuration={response.endpoint.duration}\n\t\t\t\t\t\ttraceStartTime={response.endpoint.recordedAt}\n\t\t\t\t\t/>\n\t\t\t\t{:else}\n\t\t\t\t\t<SpanEmptyState framework={projectsState.currentProject?.framework ?? 'gin'} />\n\t\t\t\t{/if}\n\t\t\t</Card.Content>\n\t\t</Card.Root>\n\n\t\t<TraceLogsPanel\n\t\t\tprojectId={projectsState.currentProjectId ?? ''}\n\t\t\ttraceId={traceIdUuidToHex(response.endpoint.id)}\n\t\t\tdistributedTraceId={response.endpoint.distributedTraceId ?? null}\n\t\t\tspans={response.spans ?? []}\n\t\t\trootSpan={{\n\t\t\t\tid: response.endpoint.spanId ?? response.endpoint.id,\n\t\t\t\tname: response.endpoint.endpoint\n\t\t\t}}\n\t\t\ttraceRecordedAt={response.endpoint.recordedAt}\n\t\t/>\n\n\t\t{#if response.endpoint.distributedTraceId}\n\t\t\t<DistributedTraceCard distributedTraceId={response.endpoint.distributedTraceId} />\n\t\t{/if}\n\t{/if}\n</div>\n"],"names":["prerender","load","params","url","authState","redirect","spanIdUuidToHex","spanUuid","traceIdUuidToHex","traceUuid","distributedTraceId","timezone","getTimezone","activeTab","$.state","logs","$.proxy","loading","error","expandedId","distributedLogs","distributedLoading","distributedLoaded","distributedError","childSpanNameByHex","$.derived","m","s","$$props","hex","resolveSpanName","log","timeWindow","t","hour","loadTraceLogs","$.set","fromDate","toDate","response","api","e","loadDistributedLogs","onTabChange","value","$.get","toggleExpanded","id","firstLine","body","nl","onMount","Card_Root","$$anchor","Card_Header","Card_Title","Card_Content","Tabs_Root","Tabs_List","Tabs_Trigger","Tabs_Trigger_1","$$render","consequent","Tabs_Content","div","root_11","LoadingCircle","node_11","div_1","root_13","div_2","root_15","Table_Root","Table_Header","Table_Row","Table_Head","Table_Head_1","Table_Head_2","Table_Head_3","Table_Body","$.each","node_22","spanName","Table_Row_1","Table_Cell","formatDateTime","Table_Cell_1","SeverityBadge","Table_Cell_2","Table_Cell_3","span","root_31","text_10","$.child","$.reset","$.set_attribute","$.append","span_1","root_32","consequent_4","alternate","ExpandedLogRow","consequent_5","consequent_3","alternate_1","consequent_2","alternate_2","consequent_1","alternate_3","Tabs_Content_1","div_3","root_36","node_33","div_4","root_38","div_5","root_40","div_6","root_42","Table_Root_1","Table_Header_1","Table_Row_2","Table_Head_4","Table_Head_5","Table_Head_6","Table_Head_7","Table_Head_8","Table_Body_1","node_46","Table_Row_3","Table_Cell_4","Table_Cell_5","Table_Cell_6","Table_Cell_7","Table_Cell_8","span_2","root_60","span_3","root_61","consequent_10","alternate_4","consequent_11","consequent_9","alternate_5","alternate_6","consequent_8","consequent_7","alternate_7","consequent_6","alternate_8","consequent_12","notFound","loadData","result","projectsState","err","formatBytes","bytes","root","$0","createSmartBackHandler","resolve","PageHeader","node","root_1","node_2","ErrorDisplay","Card_Description","$.first_child","fragment_8","LabelValue","getStatusColor","node_12","formatDuration","node_13","node_14","node_15","node_16","node_17","node_18","$.sibling","fragment_9","AttributesGrid","node_20","Card_Root_1","Card_Header_1","fragment_12","TriangleAlert","node_24","Card_Title_1","Card_Description_1","Card_Content_1","fragment_13","pre","Button","node_28","goto","ArrowRight","node_29","Card_Root_2","Card_Header_2","fragment_17","ClipboardList","Card_Title_2","Card_Description_2","$.template_effect","$.set_text","text_6","Card_Content_2","$.index","message","div_7","root_39","Card_Root_3","Card_Header_3","Card_Title_3","Card_Description_3","Card_Content_3","SpanWaterfall","SpanEmptyState","$1","$2","$3","TraceLogsPanel","node_57","DistributedTraceCard"],"mappings":"i/CAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,GAAQ,IAAAC,KAAU,CAClD,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAG7B,MAAO,CACN,SAAUH,GAAO,SACjB,WAAYA,GAAO,WACnB,OAAQC,EAAI,aAAa,IAAI,QAAQ,GAAK,KAC1C,KAAMA,EAAI,aAAa,IAAI,MAAM,GAAK,KACtC,GAAIA,EAAI,aAAa,IAAI,IAAI,GAAK,IAAA,CAEpC,qHClBO,SAASG,GAAgBC,GAA6C,CAC5E,OAAKA,GACEA,GAAS,QAAQ,KAAM,EAAE,EAAE,MAAM,GAAG,EAAE,YAAA,EADvB,EAEvB,CAEO,SAASC,GAAiBC,GAA8C,CAC9E,OAAKA,GACEA,GAAU,QAAQ,KAAM,EAAE,EAAE,YAAA,EADZ,EAExB,6pCCRA,UAkCE,IAAAC,+BAAqB,IAAI,aAiBpB,MAAAC,IAAoBC,EAAW,MAEjCC,GAAYC,GAAyC,YAAY,EAGjEC,GAAOD,GAAME,GAAA,CAAA,CAAA,CAAA,EACbC,GAAUH,GAAO,EAAI,EACrBI,GAAQJ,GAAO,EAAE,EACjBK,GAAaL,GAAsB,IAAI,EAGvCM,GAAkBN,GAAME,GAAA,CAAA,CAAA,CAAA,EACx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CAAQ,EAAC,SAAS,EAAE,CAAA,EAC1BsL,GAAApM,EAAA,IAAAoB,EAAAN,CAAQ,EAAC,SAAS,oBAAsB,IAAI,EACzDuL,GAAArM,EAAA,IAAAoB,EAAAN,CAAQ,EAAC,OAAK,EAAA,aAEpB,GAAEM,EAAEN,CAAQ,EAAC,SAAS,QAAMM,EAAIN,CAAQ,EAAC,SAAS,GAClD,KAAIM,EAAEN,CAAQ,EAAC,SAAS,YAPzBwL,GAAAC,GAAA,sLASiBzL,CAAQ,EAAC,SAAS,yCAIlC0L,GAAoB5K,EAAA,mCAAqBd,CAAQ,EAAC,SAAS,kCADxDA,CAAQ,EAAC,SAAS,oBAAkBsB,EAAAiF,EAAA,0BAtKhCvG,CAAQ,GAAAsB,GAAA8E,EAAA,2BAbRzH,EAAK,EAAA2C,EAAA4C,EAAA,EAAA5C,EAAA6C,EAAA,EAAA,6BAdL6C,EAAQ,EAAA1F,GAAA8C,EAAA,EAAA9C,GAAA+C,GAAA,EAAA,2BAJb3F,EAAO,EAAA4C,EAAAC,EAAA,EAAAD,EAAA+E,GAAA,EAAA,MAXZ5E,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/12.mmErx2hI.js b/backend/static/frontend/_app/immutable/nodes/12.Dp40dmWf.js
similarity index 94%
rename from backend/static/frontend/_app/immutable/nodes/12.mmErx2hI.js
rename to backend/static/frontend/_app/immutable/nodes/12.Dp40dmWf.js
index 95856f71..7ca92324 100644
--- a/backend/static/frontend/_app/immutable/nodes/12.mmErx2hI.js
+++ b/backend/static/frontend/_app/immutable/nodes/12.Dp40dmWf.js
@@ -1 +1 @@
-import{i as D}from"../chunks/DMODTt3n.js";import{o as Ne}from"../chunks/Dwk6gGSK.js";import{p as Ae,h as P,v as Fe,f as l,b as t,a as Oe,c as i,t as d,s as a,e as c,i as $,g as o,d as ee,j as Te,r as v,n as w,k as te,l as re}from"../chunks/B2WdN-7r.js";import{e as Ee,i as Le}from"../chunks/CMyj8Fzw.js";import{c as I}from"../chunks/BAcG0-U_.js";import{g as de}from"../chunks/xR3pK9Ey.js";import{B as De}from"../chunks/C1aqwstW.js";import{I as ce}from"../chunks/D8CWOmhn.js";import{L as M}from"../chunks/Ba_8xUad.js";import{C as Ie,a as Me,b as Be}from"../chunks/BHR29ZVu.js";import{C as qe}from"../chunks/BKHeGn2e.js";import{C as Re}from"../chunks/KAiF5-Ht.js";import{A as Ze,a as Je}from"../chunks/CaHAoFtL.js";import{A as Ke}from"../chunks/DxBI0u1e.js";import{S as Ue,a as Ve,b as We,c as Ye}from"../chunks/CzIIBX62.js";import{b as B,p as Ge}from"../chunks/D6S6XYVy.js";import{t as He}from"../chunks/BnbBSyGl.js";import{F as Qe}from"../chunks/1yZ_tTJD.js";import{C as Xe}from"../chunks/XxKcOLZH.js";import{C as et}from"../chunks/DUJ_Z9AF.js";const tt=!1,Ot=Object.freeze(Object.defineProperty({__proto__:null,ssr:tt},Symbol.toStringTag,{value:"Module"}));var rt=l('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),at=l('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),ot=l('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),st=l("<!> <!>",1),lt=l("<!> <!> <!>",1),nt=l("<span> </span>"),it=l("<span> </span> <!>",1),dt=l("<!> <!>",1),ct=l('<!> <form class="grid w-full items-center gap-4"><div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <!></form>',1),vt=l("<!> <!>",1),mt=l('<div class="flex min-h-screen w-full items-center justify-center px-4 py-8"><!></div>');function Tt(ve,me){Ae(me,!0);const fe="gin";let q=P(""),A=P(Fe(Intl.DateTimeFormat().resolvedOptions().timeZone)),R=P(""),Z=P(fe),F=P(""),O=P(!1);const pe=Intl.supportedValuesOf("timeZone");Ne(()=>{B.token||de("/login")});async function ue(){$(O,!0),$(F,"");try{const m=await fetch("/api/auth/finish-setup",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${B.token}`},body:JSON.stringify({organizationName:o(q),timezone:o(A),projectName:o(R),framework:o(Z)})});if(!m.ok){const E=await m.json().catch(()=>({}));throw new Error(E.error||"Setup failed")}const T=await m.json();B.setToken(T.token),B.setOrganizations(T.organizations||[]),Ge.setProjects(T.projects),de("/")}catch(m){$(F,m instanceof Error?m.message:"Setup failed",!0)}finally{$(O,!1)}}var J=mt(),_e=c(J);Ie(_e,{class:"w-[400px]",children:(m,T)=>{var E=vt(),ae=i(E);Me(ae,{children:(K,ge)=>{var j=st(),S=i(j);Be(S,{class:"text-2xl",children:(g,k)=>{var f=ot(),V=c(f);{var z=p=>{var h=rt();t(p,h)},L=p=>{var h=at();t(p,h)};D(V,p=>{He.isDark?p(z):p(L,!1)})}v(f),t(g,f)},$$slots:{default:!0}});var U=a(S,2);Re(U,{class:"text-center",children:(g,k)=>{w();var f=d("Finish setting up your account");t(g,f)},$$slots:{default:!0}}),t(K,j)},$$slots:{default:!0}});var $e=a(ae,2);qe($e,{children:(K,ge)=>{var j=ct(),S=i(j);{var U=e=>{Ze(e,{variant:"destructive",class:"mb-4 bg-red-50 border-red-200",children:(u,r)=>{var C=lt(),x=i(C);Xe(x,{class:"h-4 w-4 text-red-700"});var y=a(x,2);Ke(y,{class:"text-red-800",children:(s,N)=>{w();var _=d("Error");t(s,_)},$$slots:{default:!0}});var n=a(y,2);Je(n,{class:"text-red-700",children:(s,N)=>{w();var _=d();te(()=>re(_,o(F))),t(s,_)},$$slots:{default:!0}}),t(u,C)},$$slots:{default:!0}})};D(S,e=>{o(F)&&e(U)})}var g=a(S,2),k=c(g),f=c(k);M(f,{for:"organizationName",children:(e,u)=>{w();var r=d("Organization Name");t(e,r)},$$slots:{default:!0}});var V=a(f,2);ce(V,{id:"organizationName",type:"text",placeholder:"Your company or team",required:!0,get value(){return o(q)},set value(e){$(q,e,!0)}}),v(k);var z=a(k,2),L=c(z);M(L,{for:"timezone",children:(e,u)=>{w();var r=d("Timezone");t(e,r)},$$slots:{default:!0}});var p=a(L,2);I(p,()=>We,(e,u)=>{u(e,{type:"single",get value(){return o(A)},set value(r){$(A,r,!0)},children:(r,C)=>{var x=dt(),y=i(x);I(y,()=>Ue,(s,N)=>{N(s,{class:"w-full",children:(_,we)=>{var b=nt(),Y=c(b,!0);v(b),te(()=>re(Y,o(A))),t(_,b)},$$slots:{default:!0}})});var n=a(y,2);I(n,()=>Ve,(s,N)=>{N(s,{class:"max-h-60",children:(_,we)=>{var b=ee(),Y=i(b);Ee(Y,17,()=>pe,Le,(be,le)=>{var ne=ee(),Pe=i(ne);{const je=(G,H)=>{let Se=()=>H?.().selected;var ie=it(),Q=i(ie),ke=c(Q,!0);v(Q);var ze=a(Q,2);{var Ce=X=>{et(X,{class:"absolute end-2 size-4"})};D(ze,X=>{Se()&&X(Ce)})}te(()=>re(ke,o(le))),t(G,ie)};I(Pe,()=>Ye,(G,H)=>{H(G,{get value(){return o(le)},children:je,$$slots:{default:!0}})})}t(be,ne)}),t(_,b)},$$slots:{default:!0}})}),t(r,x)},$$slots:{default:!0}})}),v(z);var h=a(z,2),oe=c(h);M(oe,{for:"projectName",children:(e,u)=>{w();var r=d("Project Name");t(e,r)},$$slots:{default:!0}});var he=a(oe,2);ce(he,{id:"projectName",type:"text",placeholder:"My App",required:!0,get value(){return o(R)},set value(e){$(R,e,!0)}}),v(h);var W=a(h,2),se=c(W);M(se,{for:"framework",children:(e,u)=>{w();var r=d("Framework");t(e,r)},$$slots:{default:!0}});var xe=a(se,2);Qe(xe,{get value(){return o(Z)},set value(e){$(Z,e,!0)}}),v(W);var ye=a(W,2);De(ye,{type:"submit",get disabled(){return o(O)},class:"w-full mt-2",children:(e,u)=>{var r=ee(),C=i(r);{var x=n=>{var s=d("Finishing setup...");t(n,s)},y=n=>{var s=d("Finish setup");t(n,s)};D(C,n=>{o(O)?n(x):n(y,!1)})}t(e,r)},$$slots:{default:!0}}),v(g),Te("submit",g,e=>{e.preventDefault(),ue()}),t(K,j)},$$slots:{default:!0}}),t(m,E)},$$slots:{default:!0}}),v(J),t(ve,J),Oe()}export{Tt as component,Ot as universal};
+import{i as D}from"../chunks/DMODTt3n.js";import{o as Ne}from"../chunks/Dwk6gGSK.js";import{p as Ae,h as P,v as Fe,f as l,b as t,a as Oe,c as i,t as d,s as a,e as c,i as $,g as o,d as ee,j as Te,r as v,n as w,k as te,l as re}from"../chunks/B2WdN-7r.js";import{e as Ee,i as Le}from"../chunks/CMyj8Fzw.js";import{c as I}from"../chunks/BAcG0-U_.js";import{g as de}from"../chunks/BIF4_51j.js";import{B as De}from"../chunks/C1aqwstW.js";import{I as ce}from"../chunks/D8CWOmhn.js";import{L as M}from"../chunks/Csh2s3-8.js";import{C as Ie,a as Me,b as Be}from"../chunks/BHR29ZVu.js";import{C as qe}from"../chunks/BKHeGn2e.js";import{C as Re}from"../chunks/KAiF5-Ht.js";import{A as Ze,a as Je}from"../chunks/CaHAoFtL.js";import{A as Ke}from"../chunks/DxBI0u1e.js";import{S as Ue,a as Ve,b as We,c as Ye}from"../chunks/BgAHJuQl.js";import{b as B,p as Ge}from"../chunks/qCQ2nSvO.js";import{t as He}from"../chunks/BnbBSyGl.js";import{F as Qe}from"../chunks/DJPlLp0I.js";import{C as Xe}from"../chunks/XxKcOLZH.js";import{C as et}from"../chunks/DUJ_Z9AF.js";const tt=!1,Ot=Object.freeze(Object.defineProperty({__proto__:null,ssr:tt},Symbol.toStringTag,{value:"Module"}));var rt=l('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),at=l('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),ot=l('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),st=l("<!> <!>",1),lt=l("<!> <!> <!>",1),nt=l("<span> </span>"),it=l("<span> </span> <!>",1),dt=l("<!> <!>",1),ct=l('<!> <form class="grid w-full items-center gap-4"><div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <!></form>',1),vt=l("<!> <!>",1),mt=l('<div class="flex min-h-screen w-full items-center justify-center px-4 py-8"><!></div>');function Tt(ve,me){Ae(me,!0);const fe="gin";let q=P(""),A=P(Fe(Intl.DateTimeFormat().resolvedOptions().timeZone)),R=P(""),Z=P(fe),F=P(""),O=P(!1);const pe=Intl.supportedValuesOf("timeZone");Ne(()=>{B.token||de("/login")});async function ue(){$(O,!0),$(F,"");try{const m=await fetch("/api/auth/finish-setup",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${B.token}`},body:JSON.stringify({organizationName:o(q),timezone:o(A),projectName:o(R),framework:o(Z)})});if(!m.ok){const E=await m.json().catch(()=>({}));throw new Error(E.error||"Setup failed")}const T=await m.json();B.setToken(T.token),B.setOrganizations(T.organizations||[]),Ge.setProjects(T.projects),de("/")}catch(m){$(F,m instanceof Error?m.message:"Setup failed",!0)}finally{$(O,!1)}}var J=mt(),_e=c(J);Ie(_e,{class:"w-[400px]",children:(m,T)=>{var E=vt(),ae=i(E);Me(ae,{children:(K,ge)=>{var j=st(),S=i(j);Be(S,{class:"text-2xl",children:(g,k)=>{var f=ot(),V=c(f);{var z=p=>{var h=rt();t(p,h)},L=p=>{var h=at();t(p,h)};D(V,p=>{He.isDark?p(z):p(L,!1)})}v(f),t(g,f)},$$slots:{default:!0}});var U=a(S,2);Re(U,{class:"text-center",children:(g,k)=>{w();var f=d("Finish setting up your account");t(g,f)},$$slots:{default:!0}}),t(K,j)},$$slots:{default:!0}});var $e=a(ae,2);qe($e,{children:(K,ge)=>{var j=ct(),S=i(j);{var U=e=>{Ze(e,{variant:"destructive",class:"mb-4 bg-red-50 border-red-200",children:(u,r)=>{var C=lt(),x=i(C);Xe(x,{class:"h-4 w-4 text-red-700"});var y=a(x,2);Ke(y,{class:"text-red-800",children:(s,N)=>{w();var _=d("Error");t(s,_)},$$slots:{default:!0}});var n=a(y,2);Je(n,{class:"text-red-700",children:(s,N)=>{w();var _=d();te(()=>re(_,o(F))),t(s,_)},$$slots:{default:!0}}),t(u,C)},$$slots:{default:!0}})};D(S,e=>{o(F)&&e(U)})}var g=a(S,2),k=c(g),f=c(k);M(f,{for:"organizationName",children:(e,u)=>{w();var r=d("Organization Name");t(e,r)},$$slots:{default:!0}});var V=a(f,2);ce(V,{id:"organizationName",type:"text",placeholder:"Your company or team",required:!0,get value(){return o(q)},set value(e){$(q,e,!0)}}),v(k);var z=a(k,2),L=c(z);M(L,{for:"timezone",children:(e,u)=>{w();var r=d("Timezone");t(e,r)},$$slots:{default:!0}});var p=a(L,2);I(p,()=>We,(e,u)=>{u(e,{type:"single",get value(){return o(A)},set value(r){$(A,r,!0)},children:(r,C)=>{var x=dt(),y=i(x);I(y,()=>Ue,(s,N)=>{N(s,{class:"w-full",children:(_,we)=>{var b=nt(),Y=c(b,!0);v(b),te(()=>re(Y,o(A))),t(_,b)},$$slots:{default:!0}})});var n=a(y,2);I(n,()=>Ve,(s,N)=>{N(s,{class:"max-h-60",children:(_,we)=>{var b=ee(),Y=i(b);Ee(Y,17,()=>pe,Le,(be,le)=>{var ne=ee(),Pe=i(ne);{const je=(G,H)=>{let Se=()=>H?.().selected;var ie=it(),Q=i(ie),ke=c(Q,!0);v(Q);var ze=a(Q,2);{var Ce=X=>{et(X,{class:"absolute end-2 size-4"})};D(ze,X=>{Se()&&X(Ce)})}te(()=>re(ke,o(le))),t(G,ie)};I(Pe,()=>Ye,(G,H)=>{H(G,{get value(){return o(le)},children:je,$$slots:{default:!0}})})}t(be,ne)}),t(_,b)},$$slots:{default:!0}})}),t(r,x)},$$slots:{default:!0}})}),v(z);var h=a(z,2),oe=c(h);M(oe,{for:"projectName",children:(e,u)=>{w();var r=d("Project Name");t(e,r)},$$slots:{default:!0}});var he=a(oe,2);ce(he,{id:"projectName",type:"text",placeholder:"My App",required:!0,get value(){return o(R)},set value(e){$(R,e,!0)}}),v(h);var W=a(h,2),se=c(W);M(se,{for:"framework",children:(e,u)=>{w();var r=d("Framework");t(e,r)},$$slots:{default:!0}});var xe=a(se,2);Qe(xe,{get value(){return o(Z)},set value(e){$(Z,e,!0)}}),v(W);var ye=a(W,2);De(ye,{type:"submit",get disabled(){return o(O)},class:"w-full mt-2",children:(e,u)=>{var r=ee(),C=i(r);{var x=n=>{var s=d("Finishing setup...");t(n,s)},y=n=>{var s=d("Finish setup");t(n,s)};D(C,n=>{o(O)?n(x):n(y,!1)})}t(e,r)},$$slots:{default:!0}}),v(g),Te("submit",g,e=>{e.preventDefault(),ue()}),t(K,j)},$$slots:{default:!0}}),t(m,E)},$$slots:{default:!0}}),v(J),t(ve,J),Oe()}export{Tt as component,Ot as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/12.mmErx2hI.js.map b/backend/static/frontend/_app/immutable/nodes/12.Dp40dmWf.js.map
similarity index 98%
rename from backend/static/frontend/_app/immutable/nodes/12.mmErx2hI.js.map
rename to backend/static/frontend/_app/immutable/nodes/12.Dp40dmWf.js.map
index 9cc802b9..c5718d2e 100644
--- a/backend/static/frontend/_app/immutable/nodes/12.mmErx2hI.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/12.Dp40dmWf.js.map
@@ -1 +1 @@
-{"version":3,"file":"12.mmErx2hI.js","sources":["../../../../../../src/routes/finish-setup/+page.ts","../../../../../../src/routes/finish-setup/+page.svelte"],"sourcesContent":["export const ssr = false;\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { onMount } from 'svelte';\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import * as Select from \"$lib/components/ui/select\";\n import { CircleAlert, Check } from \"@lucide/svelte\";\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState, type Framework } from '$lib/state/projects.svelte';\n import { themeState } from '$lib/state/theme.svelte';\n import FrameworkCombobox from '$lib/components/framework-combobox.svelte';\n\n const DEFAULT_FRAMEWORK: Framework = 'gin';\n\n let organizationName = $state('');\n let timezone = $state(Intl.DateTimeFormat().resolvedOptions().timeZone);\n let projectName = $state('');\n let framework = $state<Framework>(DEFAULT_FRAMEWORK);\n let error = $state('');\n let loading = $state(false);\n\n const timezones = Intl.supportedValuesOf('timeZone');\n\n onMount(() => {\n if (!authState.token) {\n goto('/login');\n }\n });\n\n async function handleSubmit() {\n loading = true;\n error = '';\n try {\n const response = await fetch('/api/auth/finish-setup', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${authState.token}`,\n },\n body: JSON.stringify({ organizationName, timezone, projectName, framework })\n });\n\n if (!response.ok) {\n const data = await response.json().catch(() => ({}));\n throw new Error(data.error || 'Setup failed');\n }\n\n const data = await response.json();\n authState.setToken(data.token);\n authState.setOrganizations(data.organizations || []);\n projectsState.setProjects(data.projects);\n goto('/');\n } catch (e) {\n error = e instanceof Error ? e.message : 'Setup failed';\n } finally {\n loading = false;\n }\n }\n</script>\n\n<div class=\"flex min-h-screen w-full items-center justify-center px-4 py-8\">\n <Card class=\"w-[400px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n <CardDescription class=\"text-center\">\n Finish setting up your account\n </CardDescription>\n </CardHeader>\n <CardContent>\n {#if error}\n <Alert variant=\"destructive\" class=\"mb-4 bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">{error}</AlertDescription>\n </Alert>\n {/if}\n <form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class=\"grid w-full items-center gap-4\">\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"organizationName\">Organization Name</Label>\n <Input id=\"organizationName\" type=\"text\" bind:value={organizationName} placeholder=\"Your company or team\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"timezone\">Timezone</Label>\n <Select.Root type=\"single\" bind:value={timezone}>\n <Select.Trigger class=\"w-full\">\n <span>{timezone}</span>\n </Select.Trigger>\n <Select.Content class=\"max-h-60\">\n {#each timezones as tz}\n <Select.Item value={tz}>\n {#snippet children({ selected })}\n <span>{tz}</span>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Select.Item>\n {/each}\n </Select.Content>\n </Select.Root>\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"projectName\">Project Name</Label>\n <Input id=\"projectName\" type=\"text\" bind:value={projectName} placeholder=\"My App\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"framework\">Framework</Label>\n <FrameworkCombobox bind:value={framework} />\n </div>\n <Button type=\"submit\" disabled={loading} class=\"w-full mt-2\">\n {#if loading}\n Finishing setup...\n {:else}\n Finish setup\n {/if}\n </Button>\n </form>\n </CardContent>\n </Card>\n</div>\n"],"names":["ssr","DEFAULT_FRAMEWORK","organizationName","$.state","timezone","$.proxy","projectName","framework","error","loading","timezones","onMount","authState","goto","handleSubmit","$.set","response","data","projectsState","e","div","root","Card","node","CardHeader","node_1","CardTitle","node_2","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardDescription","node_4","CardContent","node_5","Alert","$$anchor","CircleAlert","node_7","AlertTitle","node_8","AlertDescription","node_9","consequent_1","form","$.sibling","node_6","div_2","Label","node_10","Input","node_11","$$value","div_3","node_12","Select_Root","Select_Trigger","span","root_15","Select_Content","$.each","node_16","tz","children","$$arg0","selected","span_1","$.first_child","fragment_9","Check","consequent_2","Select_Item","div_4","node_19","node_20","div_5","node_21","FrameworkCombobox","node_22","Button","node_23","consequent_3","alternate_1"],"mappings":"qhCAAO,MAAMA,GAAM,y2BCAnB,WAeU,MAAAC,GAA+B,UAEjCC,EAAmBC,EAAO,EAAE,EAC5BC,EAAWD,EAAME,GAAC,KAAK,iBAAiB,kBAAkB,QAAQ,CAAA,EAClEC,EAAcH,EAAO,EAAE,EACvBI,EAAYJ,EAAkBF,EAAiB,EAC/CO,EAAQL,EAAO,EAAE,EACjBM,EAAUN,EAAO,EAAK,EAEpB,MAAAO,GAAY,KAAK,kBAAkB,UAAU,EAEnDC,GAAO,IAAO,CACLC,EAAU,OACXC,GAAK,QAAQ,CAErB,CAAC,EAEc,eAAAC,IAAe,CAC1BC,EAAAN,EAAU,EAAI,EACdM,EAAAP,EAAQ,EAAE,EACN,GAAA,OACMQ,EAAQ,MAAS,MAAM,yBAAwB,CACjD,OAAQ,OACR,QAAO,CACH,eAAgB,mBAChB,cAAe,UAAYJ,EAAU,KAAK,IAE9C,KAAM,KAAK,UAAS,CAAG,mBAAAV,CAAgB,EAAE,WAAAE,CAAQ,EAAE,cAAAE,CAAW,EAAE,YAAAC,CAAS,UAGxES,EAAS,GAAI,CACR,MAAAC,EAAI,MAASD,EAAS,KAAI,EAAG,MAAK,KAAA,CAAA,EAAA,EAC9B,MAAA,IAAA,MAAMC,EAAK,OAAS,cAAc,CAChD,OAEMA,EAAI,MAASD,EAAS,KAAI,EAChCJ,EAAU,SAASK,EAAK,KAAK,EAC7BL,EAAU,iBAAiBK,EAAK,eAAa,CAAA,CAAA,EAC7CC,GAAc,YAAYD,EAAK,QAAQ,EACvCJ,GAAK,GAAG,CACZ,OAASM,EAAG,GACRX,EAAQW,aAAa,MAAQA,EAAE,QAAU,eAAc,EAAA,CAC3D,QA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AA,cAEAG,GAAKjC,EAAA,CAAA,MAAA,uBAAA,CAAA,YADL6B,GAAQ,GAAArC,EAAA0C,EAAA,mBADNR,EAAE,CAAA,CAAA,+BAFhBS,EAAWnC,EAAA,sBAAQ0B,EAAE,GACR,SAAAC,2GAT7BV,CAAG,EAoBH,IAAAmB,IApBAnB,EAAG,CAAA,OAoBHmB,CAAG,EACCxB,EAAKyB,GAAA,8GACLvB,GAAKwB,GAAA,mEAA8B,OAAU,UAAE3E,CAAW,OAAvB,MAAUqD,EAAA,GAAErD,EAAWqD,EAAA,EAAA,OAF9DoB,CAAG,EAIH,IAAAG,IAJAH,EAAG,CAAA,OAIHG,CAAG,EACC3B,EAAK4B,GAAA,yGACLC,GAAiBC,GAAA,KAAC,OAAU,UAAE9E,CAAS,OAArB,MAAUoD,EAAA,GAAEpD,EAASoD,EAAA,EAAA,OAF3CuB,CAAG,WAAHA,EAAG,CAAA,EAIHI,GAAMC,GAAA,uCAAyB9E,CAAO,2JAC9BA,CAAO,EAAA0B,EAAAqD,CAAA,EAAArD,EAAAsD,EAAA,EAAA,qCAlCnBtC,CAAI,cAAJA,EAAgB,GAAM,CAAE,EAAE,eAAc,EAAIrC,GAAY,CAAI,CAAC,kEAxBzEM,CAAG,OAAHA,CAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"12.Dp40dmWf.js","sources":["../../../../../../src/routes/finish-setup/+page.ts","../../../../../../src/routes/finish-setup/+page.svelte"],"sourcesContent":["export const ssr = false;\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { onMount } from 'svelte';\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import * as Select from \"$lib/components/ui/select\";\n import { CircleAlert, Check } from \"@lucide/svelte\";\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState, type Framework } from '$lib/state/projects.svelte';\n import { themeState } from '$lib/state/theme.svelte';\n import FrameworkCombobox from '$lib/components/framework-combobox.svelte';\n\n const DEFAULT_FRAMEWORK: Framework = 'gin';\n\n let organizationName = $state('');\n let timezone = $state(Intl.DateTimeFormat().resolvedOptions().timeZone);\n let projectName = $state('');\n let framework = $state<Framework>(DEFAULT_FRAMEWORK);\n let error = $state('');\n let loading = $state(false);\n\n const timezones = Intl.supportedValuesOf('timeZone');\n\n onMount(() => {\n if (!authState.token) {\n goto('/login');\n }\n });\n\n async function handleSubmit() {\n loading = true;\n error = '';\n try {\n const response = await fetch('/api/auth/finish-setup', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${authState.token}`,\n },\n body: JSON.stringify({ organizationName, timezone, projectName, framework })\n });\n\n if (!response.ok) {\n const data = await response.json().catch(() => ({}));\n throw new Error(data.error || 'Setup failed');\n }\n\n const data = await response.json();\n authState.setToken(data.token);\n authState.setOrganizations(data.organizations || []);\n projectsState.setProjects(data.projects);\n goto('/');\n } catch (e) {\n error = e instanceof Error ? e.message : 'Setup failed';\n } finally {\n loading = false;\n }\n }\n</script>\n\n<div class=\"flex min-h-screen w-full items-center justify-center px-4 py-8\">\n <Card class=\"w-[400px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n <CardDescription class=\"text-center\">\n Finish setting up your account\n </CardDescription>\n </CardHeader>\n <CardContent>\n {#if error}\n <Alert variant=\"destructive\" class=\"mb-4 bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">{error}</AlertDescription>\n </Alert>\n {/if}\n <form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class=\"grid w-full items-center gap-4\">\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"organizationName\">Organization Name</Label>\n <Input id=\"organizationName\" type=\"text\" bind:value={organizationName} placeholder=\"Your company or team\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"timezone\">Timezone</Label>\n <Select.Root type=\"single\" bind:value={timezone}>\n <Select.Trigger class=\"w-full\">\n <span>{timezone}</span>\n </Select.Trigger>\n <Select.Content class=\"max-h-60\">\n {#each timezones as tz}\n <Select.Item value={tz}>\n {#snippet children({ selected })}\n <span>{tz}</span>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Select.Item>\n {/each}\n </Select.Content>\n </Select.Root>\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"projectName\">Project Name</Label>\n <Input id=\"projectName\" type=\"text\" bind:value={projectName} placeholder=\"My App\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"framework\">Framework</Label>\n <FrameworkCombobox bind:value={framework} />\n </div>\n <Button type=\"submit\" disabled={loading} class=\"w-full mt-2\">\n {#if loading}\n Finishing setup...\n {:else}\n Finish setup\n {/if}\n </Button>\n </form>\n </CardContent>\n </Card>\n</div>\n"],"names":["ssr","DEFAULT_FRAMEWORK","organizationName","$.state","timezone","$.proxy","projectName","framework","error","loading","timezones","onMount","authState","goto","handleSubmit","$.set","response","data","projectsState","e","div","root","Card","node","CardHeader","node_1","CardTitle","node_2","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardDescription","node_4","CardContent","node_5","Alert","$$anchor","CircleAlert","node_7","AlertTitle","node_8","AlertDescription","node_9","consequent_1","form","$.sibling","node_6","div_2","Label","node_10","Input","node_11","$$value","div_3","node_12","Select_Root","Select_Trigger","span","root_15","Select_Content","$.each","node_16","tz","children","$$arg0","selected","span_1","$.first_child","fragment_9","Check","consequent_2","Select_Item","div_4","node_19","node_20","div_5","node_21","FrameworkCombobox","node_22","Button","node_23","consequent_3","alternate_1"],"mappings":"qhCAAO,MAAMA,GAAM,y2BCAnB,WAeU,MAAAC,GAA+B,UAEjCC,EAAmBC,EAAO,EAAE,EAC5BC,EAAWD,EAAME,GAAC,KAAK,iBAAiB,kBAAkB,QAAQ,CAAA,EAClEC,EAAcH,EAAO,EAAE,EACvBI,EAAYJ,EAAkBF,EAAiB,EAC/CO,EAAQL,EAAO,EAAE,EACjBM,EAAUN,EAAO,EAAK,EAEpB,MAAAO,GAAY,KAAK,kBAAkB,UAAU,EAEnDC,GAAO,IAAO,CACLC,EAAU,OACXC,GAAK,QAAQ,CAErB,CAAC,EAEc,eAAAC,IAAe,CAC1BC,EAAAN,EAAU,EAAI,EACdM,EAAAP,EAAQ,EAAE,EACN,GAAA,OACMQ,EAAQ,MAAS,MAAM,yBAAwB,CACjD,OAAQ,OACR,QAAO,CACH,eAAgB,mBAChB,cAAe,UAAYJ,EAAU,KAAK,IAE9C,KAAM,KAAK,UAAS,CAAG,mBAAAV,CAAgB,EAAE,WAAAE,CAAQ,EAAE,cAAAE,CAAW,EAAE,YAAAC,CAAS,UAGxES,EAAS,GAAI,CACR,MAAAC,EAAI,MAASD,EAAS,KAAI,EAAG,MAAK,KAAA,CAAA,EAAA,EAC9B,MAAA,IAAA,MAAMC,EAAK,OAAS,cAAc,CAChD,OAEMA,EAAI,MAASD,EAAS,KAAI,EAChCJ,EAAU,SAASK,EAAK,KAAK,EAC7BL,EAAU,iBAAiBK,EAAK,eAAa,CAAA,CAAA,EAC7CC,GAAc,YAAYD,EAAK,QAAQ,EACvCJ,GAAK,GAAG,CACZ,OAASM,EAAG,GACRX,EAAQW,aAAa,MAAQA,EAAE,QAAU,eAAc,EAAA,CAC3D,QAAC,CACGJ,EAAAN,EAAU,EAAK,CACnB,CACJ,KAGHW,EAAGC,GAAA,OA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GAAArC,EAAA0C,EAAA,mBADNR,EAAE,CAAA,CAAA,+BAFhBS,EAAWnC,EAAA,sBAAQ0B,EAAE,GACR,SAAAC,2GAT7BV,CAAG,EAoBH,IAAAmB,IApBAnB,EAAG,CAAA,OAoBHmB,CAAG,EACCxB,EAAKyB,GAAA,8GACLvB,GAAKwB,GAAA,mEAA8B,OAAU,UAAE3E,CAAW,OAAvB,MAAUqD,EAAA,GAAErD,EAAWqD,EAAA,EAAA,OAF9DoB,CAAG,EAIH,IAAAG,IAJAH,EAAG,CAAA,OAIHG,CAAG,EACC3B,EAAK4B,GAAA,yGACLC,GAAiBC,GAAA,KAAC,OAAU,UAAE9E,CAAS,OAArB,MAAUoD,EAAA,GAAEpD,EAASoD,EAAA,EAAA,OAF3CuB,CAAG,WAAHA,EAAG,CAAA,EAIHI,GAAMC,GAAA,uCAAyB9E,CAAO,2JAC9BA,CAAO,EAAA0B,EAAAqD,CAAA,EAAArD,EAAAsD,EAAA,EAAA,qCAlCnBtC,CAAI,cAAJA,EAAgB,GAAM,CAAE,EAAE,eAAc,EAAIrC,GAAY,CAAI,CAAC,kEAxBzEM,CAAG,OAAHA,CAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/13.IYgJWi4P.js b/backend/static/frontend/_app/immutable/nodes/13.CIHi9rGr.js
similarity index 96%
rename from backend/static/frontend/_app/immutable/nodes/13.IYgJWi4P.js
rename to backend/static/frontend/_app/immutable/nodes/13.CIHi9rGr.js
index 3dd275ef..caee7e9c 100644
--- a/backend/static/frontend/_app/immutable/nodes/13.IYgJWi4P.js
+++ b/backend/static/frontend/_app/immutable/nodes/13.CIHi9rGr.js
@@ -1 +1 @@
-import{i as S}from"../chunks/DMODTt3n.js";import{p as te,f as s,b as e,a as ae,c as _,d as M,s as a,e as E,r as T,g as c,h as B,n as y,t as f,i as $,j as se,k as oe,l as le}from"../chunks/B2WdN-7r.js";import{B as ie}from"../chunks/C1aqwstW.js";import{I as ne}from"../chunks/D8CWOmhn.js";import{L as de}from"../chunks/Ba_8xUad.js";import{C as ce,a as fe,b as me}from"../chunks/BHR29ZVu.js";import{C as ue}from"../chunks/BKHeGn2e.js";import{C as ve,a as pe}from"../chunks/DTRXGXES.js";import{A as Q,a as U}from"../chunks/CaHAoFtL.js";import{A as V}from"../chunks/DxBI0u1e.js";import{t as _e}from"../chunks/BnbBSyGl.js";import{C as $e}from"../chunks/XxKcOLZH.js";var ge=s('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),he=s('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),xe=s('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),we=s("<!> <!> <!>",1),ye=s("<!> <!> <!>",1),be=s(`<!> <p class="text-sm text-muted-foreground mb-4">Enter your email address and we'll send you a link to reset your password.</p> <form class="grid w-full items-center gap-4"><div class="flex flex-col space-y-1.5"><!> <!></div> <!></form>`,1),Pe=s('<p class="text-sm text-muted-foreground"><a href="/login" class="text-primary hover:underline">Back to Login</a></p>'),Ce=s("<!> <!> <!>",1),ke=s('<div class="flex h-screen w-full items-center justify-center px-4"><!></div>');function Je(W,X){te(X,!0);let I=B(""),b=B(""),P=B(!1),J=B(!1);async function Y(){$(P,!0),$(b,"");try{const n=await fetch("/api/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c(I)})});if(!n.ok){const N=await n.json();throw new Error(N.error||"Failed to process request")}$(J,!0)}catch(n){$(b,n instanceof Error?n.message:"An unexpected error occurred",!0)}finally{$(P,!1)}}var q=ke(),Z=E(q);ce(Z,{class:"w-[350px]",children:(n,N)=>{var R=Ce(),z=_(R);fe(z,{children:(g,H)=>{me(g,{class:"text-2xl",children:(m,K)=>{var h=xe(),D=E(h);{var o=t=>{var l=ge();e(t,l)},u=t=>{var l=he();e(t,l)};S(D,t=>{_e.isDark?t(o):t(u,!1)})}T(h),e(m,h)},$$slots:{default:!0}})},$$slots:{default:!0}});var G=a(z,2);ue(G,{children:(g,H)=>{var m=M(),K=_(m);{var h=o=>{Q(o,{class:"mb-4 bg-green-50 border-green-200",children:(u,t)=>{var l=we(),v=_(l);pe(v,{class:"h-4 w-4 text-green-700"});var p=a(v,2);V(p,{class:"text-green-800",children:(x,O)=>{y();var r=f("Check your email");e(x,r)},$$slots:{default:!0}});var C=a(p,2);U(C,{class:"text-green-700",children:(x,O)=>{y();var r=f("If an account exists with this email, a password reset link will be sent to it.");e(x,r)},$$slots:{default:!0}}),e(u,l)},$$slots:{default:!0}})},D=o=>{var u=be(),t=_(u);{var l=r=>{Q(r,{variant:"destructive",class:"mb-4 bg-red-50 border-red-200",children:(F,w)=>{var k=ye(),j=_(k);$e(j,{class:"h-4 w-4 text-red-700"});var A=a(j,2);V(A,{class:"text-red-800",children:(d,re)=>{y();var L=f("Error");e(d,L)},$$slots:{default:!0}});var i=a(A,2);U(i,{class:"text-red-700",children:(d,re)=>{y();var L=f();oe(()=>le(L,c(b))),e(d,L)},$$slots:{default:!0}}),e(F,k)},$$slots:{default:!0}})};S(t,r=>{c(b)&&r(l)})}var v=a(t,4),p=E(v),C=E(p);de(C,{for:"email",children:(r,F)=>{y();var w=f("Email");e(r,w)},$$slots:{default:!0}});var x=a(C,2);ne(x,{id:"email",type:"email",placeholder:"[email protected]",required:!0,get value(){return c(I)},set value(r){$(I,r,!0)}}),T(p);var O=a(p,2);ie(O,{type:"submit",get disabled(){return c(P)},class:"w-full",children:(r,F)=>{var w=M(),k=_(w);{var j=i=>{var d=f("Sending...");e(i,d)},A=i=>{var d=f("Send Reset Link");e(i,d)};S(k,i=>{c(P)?i(j):i(A,!1)})}e(r,w)},$$slots:{default:!0}}),T(v),se("submit",v,r=>{r.preventDefault(),Y()}),e(o,u)};S(K,o=>{c(J)?o(h):o(D,!1)})}e(g,m)},$$slots:{default:!0}});var ee=a(G,2);ve(ee,{class:"flex flex-col justify-center",children:(g,H)=>{var m=Pe();e(g,m)},$$slots:{default:!0}}),e(n,R)},$$slots:{default:!0}}),T(q),e(W,q),ae()}export{Je as component};
+import{i as S}from"../chunks/DMODTt3n.js";import{p as te,f as s,b as e,a as ae,c as _,d as M,s as a,e as E,r as T,g as c,h as B,n as y,t as f,i as $,j as se,k as oe,l as le}from"../chunks/B2WdN-7r.js";import{B as ie}from"../chunks/C1aqwstW.js";import{I as ne}from"../chunks/D8CWOmhn.js";import{L as de}from"../chunks/Csh2s3-8.js";import{C as ce,a as fe,b as me}from"../chunks/BHR29ZVu.js";import{C as ue}from"../chunks/BKHeGn2e.js";import{C as ve,a as pe}from"../chunks/DTRXGXES.js";import{A as Q,a as U}from"../chunks/CaHAoFtL.js";import{A as V}from"../chunks/DxBI0u1e.js";import{t as _e}from"../chunks/BnbBSyGl.js";import{C as $e}from"../chunks/XxKcOLZH.js";var ge=s('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),he=s('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),xe=s('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),we=s("<!> <!> <!>",1),ye=s("<!> <!> <!>",1),be=s(`<!> <p class="text-sm text-muted-foreground mb-4">Enter your email address and we'll send you a link to reset your password.</p> <form class="grid w-full items-center gap-4"><div class="flex flex-col space-y-1.5"><!> <!></div> <!></form>`,1),Pe=s('<p class="text-sm text-muted-foreground"><a href="/login" class="text-primary hover:underline">Back to Login</a></p>'),Ce=s("<!> <!> <!>",1),ke=s('<div class="flex h-screen w-full items-center justify-center px-4"><!></div>');function Je(W,X){te(X,!0);let I=B(""),b=B(""),P=B(!1),J=B(!1);async function Y(){$(P,!0),$(b,"");try{const n=await fetch("/api/forgot-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:c(I)})});if(!n.ok){const N=await n.json();throw new Error(N.error||"Failed to process request")}$(J,!0)}catch(n){$(b,n instanceof Error?n.message:"An unexpected error occurred",!0)}finally{$(P,!1)}}var q=ke(),Z=E(q);ce(Z,{class:"w-[350px]",children:(n,N)=>{var R=Ce(),z=_(R);fe(z,{children:(g,H)=>{me(g,{class:"text-2xl",children:(m,K)=>{var h=xe(),D=E(h);{var o=t=>{var l=ge();e(t,l)},u=t=>{var l=he();e(t,l)};S(D,t=>{_e.isDark?t(o):t(u,!1)})}T(h),e(m,h)},$$slots:{default:!0}})},$$slots:{default:!0}});var G=a(z,2);ue(G,{children:(g,H)=>{var m=M(),K=_(m);{var h=o=>{Q(o,{class:"mb-4 bg-green-50 border-green-200",children:(u,t)=>{var l=we(),v=_(l);pe(v,{class:"h-4 w-4 text-green-700"});var p=a(v,2);V(p,{class:"text-green-800",children:(x,O)=>{y();var r=f("Check your email");e(x,r)},$$slots:{default:!0}});var C=a(p,2);U(C,{class:"text-green-700",children:(x,O)=>{y();var r=f("If an account exists with this email, a password reset link will be sent to it.");e(x,r)},$$slots:{default:!0}}),e(u,l)},$$slots:{default:!0}})},D=o=>{var u=be(),t=_(u);{var l=r=>{Q(r,{variant:"destructive",class:"mb-4 bg-red-50 border-red-200",children:(F,w)=>{var k=ye(),j=_(k);$e(j,{class:"h-4 w-4 text-red-700"});var A=a(j,2);V(A,{class:"text-red-800",children:(d,re)=>{y();var L=f("Error");e(d,L)},$$slots:{default:!0}});var i=a(A,2);U(i,{class:"text-red-700",children:(d,re)=>{y();var L=f();oe(()=>le(L,c(b))),e(d,L)},$$slots:{default:!0}}),e(F,k)},$$slots:{default:!0}})};S(t,r=>{c(b)&&r(l)})}var v=a(t,4),p=E(v),C=E(p);de(C,{for:"email",children:(r,F)=>{y();var w=f("Email");e(r,w)},$$slots:{default:!0}});var x=a(C,2);ne(x,{id:"email",type:"email",placeholder:"[email protected]",required:!0,get value(){return c(I)},set value(r){$(I,r,!0)}}),T(p);var O=a(p,2);ie(O,{type:"submit",get disabled(){return c(P)},class:"w-full",children:(r,F)=>{var w=M(),k=_(w);{var j=i=>{var d=f("Sending...");e(i,d)},A=i=>{var d=f("Send Reset Link");e(i,d)};S(k,i=>{c(P)?i(j):i(A,!1)})}e(r,w)},$$slots:{default:!0}}),T(v),se("submit",v,r=>{r.preventDefault(),Y()}),e(o,u)};S(K,o=>{c(J)?o(h):o(D,!1)})}e(g,m)},$$slots:{default:!0}});var ee=a(G,2);ve(ee,{class:"flex flex-col justify-center",children:(g,H)=>{var m=Pe();e(g,m)},$$slots:{default:!0}}),e(n,R)},$$slots:{default:!0}}),T(q),e(W,q),ae()}export{Je as component};
diff --git a/backend/static/frontend/_app/immutable/nodes/13.IYgJWi4P.js.map b/backend/static/frontend/_app/immutable/nodes/13.CIHi9rGr.js.map
similarity index 98%
rename from backend/static/frontend/_app/immutable/nodes/13.IYgJWi4P.js.map
rename to backend/static/frontend/_app/immutable/nodes/13.CIHi9rGr.js.map
index de63b2b0..d400f043 100644
--- a/backend/static/frontend/_app/immutable/nodes/13.IYgJWi4P.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/13.CIHi9rGr.js.map
@@ -1 +1 @@
-{"version":3,"file":"13.IYgJWi4P.js","sources":["../../../../../../src/routes/forgot-password/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardFooter, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import { CircleAlert, CircleCheck } from \"@lucide/svelte\";\n import { themeState } from '$lib/state/theme.svelte';\n\n let email = $state('');\n let error = $state('');\n let loading = $state(false);\n let success = $state(false);\n\n async function handleSubmit() {\n loading = true;\n error = '';\n\n try {\n const response = await fetch('/api/forgot-password', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({ email })\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to process request');\n }\n\n success = true;\n } catch (e) {\n error = e instanceof Error ? e.message : 'An unexpected error occurred';\n } finally {\n loading = false;\n }\n }\n</script>\n\n<div class=\"flex h-screen w-full items-center justify-center px-4\">\n <Card class=\"w-[350px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n </CardHeader>\n <CardContent>\n {#if success}\n <Alert class=\"mb-4 bg-green-50 border-green-200\">\n <CircleCheck class=\"h-4 w-4 text-green-700\" />\n <AlertTitle class=\"text-green-800\">Check your email</AlertTitle>\n <AlertDescription class=\"text-green-700\">\n If an account exists with this email, a password reset link will be sent to it.\n </AlertDescription>\n </Alert>\n {:else}\n {#if error}\n <Alert variant=\"destructive\" class=\"mb-4 bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n {/if}\n <p class=\"text-sm text-muted-foreground mb-4\">\n Enter your email address and we'll send you a link to reset your password.\n </p>\n <form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class=\"grid w-full items-center gap-4\">\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" bind:value={email} placeholder=\"[email protected]\" required />\n </div>\n <Button type=\"submit\" disabled={loading} class=\"w-full\">\n {#if loading}\n Sending...\n {:else}\n Send Reset Link\n {/if}\n </Button>\n </form>\n {/if}\n </CardContent>\n <CardFooter class=\"flex flex-col justify-center\">\n <p class=\"text-sm text-muted-foreground\">\n <a href=\"/login\" class=\"text-primary hover:underline\">Back to Login</a>\n </p>\n </CardFooter>\n </Card>\n</div>\n"],"names":["email","$.state","error","loading","success","handleSubmit","$.set","response","data","e","div","root","Card","node","CardHeader","node_1","CardTitle","$$anchor","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardContent","node_3","Alert","CircleCheck","node_5","AlertTitle","node_6","AlertDescription","node_7","CircleAlert","node_9","node_10","node_11","consequent_2","form","$.sibling","node_8","div_2","Label","node_12","Input","node_13","$$value","Button","node_14","consequent_3","alternate_1","consequent_1","alternate_2","CardFooter","node_16","p","root_20"],"mappings":"u6CAAA,cASQA,EAAQC,EAAO,EAAE,EACjBC,EAAQD,EAAO,EAAE,EACjBE,EAAUF,EAAO,EAAK,EACtBG,EAAUH,EAAO,EAAK,EAEX,eAAAI,GAAe,CAC1BC,EAAAH,EAAU,EAAI,EACdG,EAAAJ,EAAQ,EAAE,EAEN,GAAA,OACMK,EAAQ,MAAS,MAAM,uBAAsB,CAC/C,OAAQ,OACR,QAAO,CACH,eAAgB,kBAAiB,EAErC,KAAM,KAAK,UAAS,CAAG,QAAAP,CAAK,CAAA,CAAA,QAG3BO,EAAS,GAAI,OACRC,EAAI,MAASD,EAAS,KAAI,EACtB,MAAA,IAAA,MAAMC,EAAK,OAAS,2BAA2B,CAC7D,CAEAF,EAAAF,EAAU,EAAI,CAClB,OAASK,EAAG,GACRP,EAAQO,aAAa,MAAQA,EAAE,QAAU,+BAA8B,EAAA,CAC3E,QAAC,CACGH,EAAAH,EAAU,EAAK,CACnB,CACJ,KAGHO,EAAGC,GAAA,MAAHD,CAAG,EACCE,GAAIC,EAAA,sDACAC,GAAUC,EAAA,kBACNC,GAASC,EAAA,uCACLC,EAAGC,GAAA,MAAHD,CAAG,iBAEKE,EAAGC,GAAA,MAAHD,CAAG,aAEHE,EAAGC,GAAA,MAAHD,CAAG,WAHHE,GAAW,OAAMC,EAAAC,CAAA,EAAAD,EAAAE,EAAA,EAAA,MADzBT,CAAG,MAAHA,CAAG,+DASXU,GAAWC,EAAA,8CAEHC,EAAKb,EAAA,8EACDc,GAAWC,EAAA,CAAA,MAAA,wBAAA,CAAA,eACXC,EAAUC,EAAA,qHACVC,EAAgBC,EAAA,0OAMhBN,EAAKb,EAAA,gGACDoB,GAAWC,EAAA,CAAA,MAAA,sBAAA,CAAA,eACXL,EAAUM,EAAA,yGACVJ,EAAgBK,EAAA,oEACZtC,CAAK,CAAA,CAAA,2EALbA,CAAK,GAAAuB,EAAAgB,CAAA,QAYTC,EAAIC,EAAAC,EAAA,CAAA,EACAC,IADJH,CAAI,MACAG,CAAG,EACCC,GAAKC,EAAA,+FACLC,GAAKC,EAAA,uEAAyB,OAAU,UAAEjD,CAAK,OAAjB,MAAUkD,EAAA,GAAElD,EAAKkD,EAAA,EAAA,OAFnDL,CAAG,UAAHA,EAAG,CAAA,EAIHM,GAAMC,EAAA,uCAAyBjD,CAAO,gJAC9BA,CAAO,EAAAsB,EAAA4B,CAAA,EAAA5B,EAAA6B,EAAA,EAAA,qCANnBZ,CAAI,cAAJA,EAAgBjC,GAAM,CAAEA,EAAE,eAAc,EAAIJ,EAAY,CAAI,CAAC,oBArB7DD,CAAO,EAAAqB,EAAA8B,CAAA,EAAA9B,EAAA+B,EAAA,EAAA,iDAoCfC,GAAUC,GAAA,2DACNC,EAACC,GAAA,MAADD,CAAC,2DAnDbjD,CAAG,MAAHA,CAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"13.CIHi9rGr.js","sources":["../../../../../../src/routes/forgot-password/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardFooter, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import { CircleAlert, CircleCheck } from \"@lucide/svelte\";\n import { themeState } from '$lib/state/theme.svelte';\n\n let email = $state('');\n let error = $state('');\n let loading = $state(false);\n let success = $state(false);\n\n async function handleSubmit() {\n loading = true;\n error = '';\n\n try {\n const response = await fetch('/api/forgot-password', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({ email })\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to process request');\n }\n\n success = true;\n } catch (e) {\n error = e instanceof Error ? e.message : 'An unexpected error occurred';\n } finally {\n loading = false;\n }\n }\n</script>\n\n<div class=\"flex h-screen w-full items-center justify-center px-4\">\n <Card class=\"w-[350px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n </CardHeader>\n <CardContent>\n {#if success}\n <Alert class=\"mb-4 bg-green-50 border-green-200\">\n <CircleCheck class=\"h-4 w-4 text-green-700\" />\n <AlertTitle class=\"text-green-800\">Check your email</AlertTitle>\n <AlertDescription class=\"text-green-700\">\n If an account exists with this email, a password reset link will be sent to it.\n </AlertDescription>\n </Alert>\n {:else}\n {#if error}\n <Alert variant=\"destructive\" class=\"mb-4 bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n {/if}\n <p class=\"text-sm text-muted-foreground mb-4\">\n Enter your email address and we'll send you a link to reset your password.\n </p>\n <form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class=\"grid w-full items-center gap-4\">\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" bind:value={email} placeholder=\"[email protected]\" required />\n </div>\n <Button type=\"submit\" disabled={loading} class=\"w-full\">\n {#if loading}\n Sending...\n {:else}\n Send Reset Link\n {/if}\n </Button>\n </form>\n {/if}\n </CardContent>\n <CardFooter class=\"flex flex-col justify-center\">\n <p class=\"text-sm text-muted-foreground\">\n <a href=\"/login\" class=\"text-primary hover:underline\">Back to Login</a>\n </p>\n </CardFooter>\n </Card>\n</div>\n"],"names":["email","$.state","error","loading","success","handleSubmit","$.set","response","data","e","div","root","Card","node","CardHeader","node_1","CardTitle","$$anchor","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardContent","node_3","Alert","CircleCheck","node_5","AlertTitle","node_6","AlertDescription","node_7","CircleAlert","node_9","node_10","node_11","consequent_2","form","$.sibling","node_8","div_2","Label","node_12","Input","node_13","$$value","Button","node_14","consequent_3","alternate_1","consequent_1","alternate_2","CardFooter","node_16","p","root_20"],"mappings":"u6CAAA,cASQA,EAAQC,EAAO,EAAE,EACjBC,EAAQD,EAAO,EAAE,EACjBE,EAAUF,EAAO,EAAK,EACtBG,EAAUH,EAAO,EAAK,EAEX,eAAAI,GAAe,CAC1BC,EAAAH,EAAU,EAAI,EACdG,EAAAJ,EAAQ,EAAE,EAEN,GAAA,OACMK,EAAQ,MAAS,MAAM,uBAAsB,CAC/C,OAAQ,OACR,QAAO,CACH,eAAgB,kBAAiB,EAErC,KAAM,KAAK,UAAS,CAAG,QAAAP,CAAK,CAAA,CAAA,QAG3BO,EAAS,GAAI,OACRC,EAAI,MAASD,EAAS,KAAI,EACtB,MAAA,IAAA,MAAMC,EAAK,OAAS,2BAA2B,CAC7D,CAEAF,EAAAF,EAAU,EAAI,CAClB,OAASK,EAAG,GACRP,EAAQO,aAAa,MAAQA,EAAE,QAAU,+BAA8B,EAAA,CAC3E,QAAC,CACGH,EAAAH,EAAU,EAAK,CACnB,CACJ,KAGHO,EAAGC,GAAA,MAAHD,CAAG,EACCE,GAAIC,EAAA,sDACAC,GAAUC,EAAA,kBACNC,GAASC,EAAA,uCACLC,EAAGC,GAAA,MAAHD,CAAG,iBAEKE,EAAGC,GAAA,MAAHD,CAAG,aAEHE,EAAGC,GAAA,MAAHD,CAAG,WAHHE,GAAW,OAAMC,EAAAC,CAAA,EAAAD,EAAAE,EAAA,EAAA,MADzBT,CAAG,MAAHA,CAAG,+DASXU,GAAWC,EAAA,8CAEHC,EAAKb,EAAA,8EACDc,GAAWC,EAAA,CAAA,MAAA,wBAAA,CAAA,eACXC,EAAUC,EAAA,qHACVC,EAAgBC,EAAA,0OAMhBN,EAAKb,EAAA,gGACDoB,GAAWC,EAAA,CAAA,MAAA,sBAAA,CAAA,eACXL,EAAUM,EAAA,yGACVJ,EAAgBK,EAAA,oEACZtC,CAAK,CAAA,CAAA,2EALbA,CAAK,GAAAuB,EAAAgB,CAAA,QAYTC,EAAIC,EAAAC,EAAA,CAAA,EACAC,IADJH,CAAI,MACAG,CAAG,EACCC,GAAKC,EAAA,+FACLC,GAAKC,EAAA,uEAAyB,OAAU,UAAEjD,CAAK,OAAjB,MAAUkD,EAAA,GAAElD,EAAKkD,EAAA,EAAA,OAFnDL,CAAG,UAAHA,EAAG,CAAA,EAIHM,GAAMC,EAAA,uCAAyBjD,CAAO,gJAC9BA,CAAO,EAAAsB,EAAA4B,CAAA,EAAA5B,EAAA6B,EAAA,EAAA,qCANnBZ,CAAI,cAAJA,EAAgBjC,GAAM,CAAEA,EAAE,eAAc,EAAIJ,EAAY,CAAI,CAAC,oBArB7DD,CAAO,EAAAqB,EAAA8B,CAAA,EAAA9B,EAAA+B,EAAA,EAAA,iDAoCfC,GAAUC,GAAA,2DACNC,EAACC,GAAA,MAADD,CAAC,2DAnDbjD,CAAG,MAAHA,CAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/14.CyLHTrNP.js b/backend/static/frontend/_app/immutable/nodes/14.7EC4zFK9.js
similarity index 96%
rename from backend/static/frontend/_app/immutable/nodes/14.CyLHTrNP.js
rename to backend/static/frontend/_app/immutable/nodes/14.7EC4zFK9.js
index 67bc29fd..4cf3d19b 100644
--- a/backend/static/frontend/_app/immutable/nodes/14.CyLHTrNP.js
+++ b/backend/static/frontend/_app/immutable/nodes/14.7EC4zFK9.js
@@ -1,2 +1,2 @@
-import{r as Xt}from"../chunks/BJZ1igWb.js";import{b as Zt,a as Tt,p as Ct,t as er}from"../chunks/D6S6XYVy.js";import{i as le,s as mt,p as F,r as gt}from"../chunks/DMODTt3n.js";import{o as tr,a as rr}from"../chunks/Dwk6gGSK.js";import{R as sr,b1 as ar,b2 as or,u as l,g as e,i as s,p as Ce,d as T,c as h,b as i,a as Pe,K as nr,f as I,s as v,m as ft,e as O,o as Ht,r as H,k as ge,l as ve,h as w,v as Y,n as He,t as Be}from"../chunks/B2WdN-7r.js";import{e as Et,i as ir}from"../chunks/CMyj8Fzw.js";import{c as b}from"../chunks/BAcG0-U_.js";import{c as Ge}from"../chunks/CyOblkUv.js";import{b as Je,T as Ve,a as ke,c as lr}from"../chunks/CeOjHHJH.js";import{T as ur,a as cr}from"../chunks/CEJkX7WU.js";import{S as dr}from"../chunks/DGXZzcqC.js";import{L as hr}from"../chunks/D0pIT200.js";import{b as fr,d as pr,a as mr,e as ht}from"../chunks/DH0tcjsQ.js";import{C as Ot,w as pt,E as gr,S as vr,f as _r}from"../chunks/CAQEdoSh.js";import{a as br,e as Pt,h as Dt,i as kr,d as yr,c as xr,b as Z,m as $r}from"../chunks/DWAABZDo.js";import{i as Sr}from"../chunks/CQWqWi6p.js";import{H as wr}from"../chunks/CYYjDwkn.js";import{I as Tr}from"../chunks/Bv_PbELb.js";import{C as Cr}from"../chunks/DUJ_Z9AF.js";import{f as qt,g as Nt,i as Pr,c as Rt,t as zt}from"../chunks/DJdWGDax.js";import{b as Dr,T as Rr,a as zr}from"../chunks/2aB7Aq1L.js";import{A as Ar}from"../chunks/CagnQ-rd.js";import{T as Ye}from"../chunks/BQmrPeqT.js";import{T as Ir}from"../chunks/xk30YnJ1.js";import{P as Mr}from"../chunks/C8IsQj6C.js";import{g as At,d as we,a as Te,T as Hr,p as Er,b as Or,u as qr}from"../chunks/xqPrLpfy.js";import{g as Nr,h as Fr,s as jr}from"../chunks/X-i49s3k.js";import{B as It}from"../chunks/C1aqwstW.js";import{A as Lr}from"../chunks/CNi31Ve4.js";const Ur=[];function Br(o,t=!1,n=!1){return Ke(o,new Map,"",Ur,null,n)}function Ke(o,t,n,u,k=null,$=!1){if(typeof o=="object"&&o!==null){var _=t.get(o);if(_!==void 0)return _;if(o instanceof Map)return new Map(o);if(o instanceof Set)return new Set(o);if(sr(o)){var c=Array(o.length);t.set(o,c),k!==null&&t.set(k,c);for(var p=0;p<o.length;p+=1){var E=o[p];p in o&&(c[p]=Ke(E,t,n,u,null,$))}return c}if(ar(o)===or){c={},t.set(o,c),k!==null&&t.set(k,c);for(var R in o)c[R]=Ke(o[R],t,n,u,null,$);return c}if(o instanceof Date)return structuredClone(o);if(typeof o.toJSON=="function"&&!$)return Ke(o.toJSON(),t,n,u,o)}if(o instanceof EventTarget)return o;try{return structuredClone(o)}catch{return o}}const Gr=yr({component:"checkbox",parts:["root","group","group-label","input"]}),Jr=new Ot("Checkbox.Group"),Ft=new Ot("Checkbox.Root");class vt{static create(t,n=null){return Ft.set(new vt(t,n))}opts;group;#e=l(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return e(this.#e)}set trueName(t){s(this.#e,t)}#t=l(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return e(this.#t)}set trueRequired(t){s(this.#t,t)}#r=l(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return e(this.#r)}set trueDisabled(t){s(this.#r,t)}#a=l(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return e(this.#a)}set trueReadonly(t){s(this.#a,t)}attachment;constructor(t,n){this.opts=t,this.group=n,this.attachment=br(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),pt.pre([()=>Br(this.group?.opts.value.current),()=>this.opts.value.current],([u,k])=>{!u||!k||(this.opts.checked.current=u.includes(k))}),pt.pre(()=>this.opts.checked.current,u=>{this.group&&(u?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(t){this.trueDisabled||this.trueReadonly||(t.key===gr&&t.preventDefault(),t.key===vr&&(t.preventDefault(),this.#s()))}#s(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(t){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#s();return}t.preventDefault(),this.#s()}}#o=l(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return e(this.#o)}set snippetProps(t){s(this.#o,t)}#n=l(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":kr(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":Dt(this.trueRequired),"aria-readonly":Dt(this.trueReadonly),"data-disabled":Pt(this.trueDisabled),"data-readonly":Pt(this.trueReadonly),"data-state":Vr(this.opts.checked.current,this.opts.indeterminate.current),[Gr.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return e(this.#n)}set props(t){s(this.#n,t)}}class _t{static create(){return new _t(Ft.get())}root;#e=l(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return e(this.#e)}set trueChecked(t){s(this.#e,t)}#t=l(()=>!!this.root.trueName);get shouldRender(){return e(this.#t)}set shouldRender(t){s(this.#t,t)}constructor(t){this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(t){_r(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#r=l(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return e(this.#r)}set props(t){s(this.#r,t)}}function Vr(o,t){return t?"indeterminate":o?"checked":"unchecked"}function Yr(o,t){Ce(t,!1);const n=_t.create();Sr();var u=T(),k=h(u);{var $=_=>{wr(_,mt(()=>n.props))};le(k,_=>{n.shouldRender&&_($)})}i(o,u),Pe()}var Kr=I("<button><!></button>"),Wr=I("<!> <!>",1);function Qr(o,t){const n=nr();Ce(t,!0);let u=F(t,"checked",15,!1),k=F(t,"ref",15,null),$=F(t,"disabled",3,!1),_=F(t,"required",3,!1),c=F(t,"name",3,void 0),p=F(t,"value",3,"on"),E=F(t,"id",19,()=>xr(n)),R=F(t,"indeterminate",15,!1),U=F(t,"type",3,"button"),C=gt(t,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const D=Jr.getOr(null);D&&p()&&(D.opts.value.current.includes(p())?u(!0):u(!1)),pt.pre(()=>p(),()=>{D&&p()&&(D.opts.value.current.includes(p())?u(!0):u(!1))});const x=vt.create({checked:Z(()=>u(),f=>{u(f),t.onCheckedChange?.(f)}),disabled:Z(()=>$()??!1),required:Z(()=>_()),name:Z(()=>c()),value:Z(()=>p()),id:Z(()=>E()),ref:Z(()=>k(),f=>k(f)),indeterminate:Z(()=>R(),f=>{R(f),t.onIndeterminateChange?.(f)}),type:Z(()=>U()),readonly:Z(()=>!!t.readonly)},D),m=l(()=>$r({...C},x.props));var d=Wr(),g=h(d);{var S=f=>{var y=T(),z=h(y);{let M=l(()=>({props:e(m),...x.snippetProps}));ft(z,()=>t.child,()=>e(M))}i(f,y)},P=f=>{var y=Kr();fr(y,()=>({...e(m)}));var z=O(y);ft(z,()=>t.children??Ht,()=>x.snippetProps),H(y),i(f,y)};le(g,f=>{t.child?f(S):f(P,!1)})}var j=v(g,2);Yr(j,{}),i(o,d),Pe()}function Xr(o,t){Ce(t,!0);let n=gt(t,["$$slots","$$events","$$legacy"]);const u=[["path",{d:"M5 12h14"}]];Tr(o,mt({name:"minus"},()=>n,{get iconNode(){return u},children:(k,$)=>{var _=T(),c=h(_);ft(c,()=>t.children??Ht),i(k,_)},$$slots:{default:!0}})),Pe()}const Zr=()=>{if(!Zt.isAuthenticated)throw Xt(302,"/login")},Bs=Object.freeze(Object.defineProperty({__proto__:null,load:Zr},Symbol.toStringTag,{value:"Module"}));var es=I('<span class="flex items-center justify-center text-current"><!></span>');function Mt(o,t){Ce(t,!0);let n=F(t,"ref",15,null),u=F(t,"checked",15,!1),k=F(t,"disabled",3,!1),$=gt(t,["$$slots","$$events","$$legacy","ref","checked","onCheckedChange","class","disabled"]);const _=l(()=>u()===!0),c=l(()=>u()==="indeterminate");function p(C){const D=C;u(D),t.onCheckedChange?.(D)}function E(C){C&&(u("indeterminate"),t.onCheckedChange?.("indeterminate"))}var R=T(),U=h(R);{const C=(x,m)=>{let d=()=>m?.().checked,g=()=>m?.().indeterminate;var S=es(),P=O(S);{var j=y=>{Xr(y,{class:"size-3"})},f=y=>{var z=T(),M=h(z);{var q=L=>{Cr(L,{class:"size-3"})};le(M,L=>{d()&&L(q)},!0)}i(y,z)};le(P,y=>{g()?y(j):y(f,!1)})}H(S),i(x,S)};let D=l(()=>pr("peer size-4 shrink-0 rounded-[4px] border border-input dark:border-white bg-background shadow-sm transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground","data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:text-primary-foreground",t.class));b(U,()=>Qr,(x,m)=>{m(x,mt({get checked(){return e(_)},get indeterminate(){return e(c)},onCheckedChange:p,onIndeterminateChange:E,get disabled(){return k()},get class(){return e(D)}},()=>$,{get ref(){return n()},set ref(d){n(d)},children:C,$$slots:{default:!0}}))})}i(o,R),Pe()}var ts=I('<div class="absolute left-0 right-7 h-[1px]"></div> <span class="absolute right-1 text-[10px] w-[20px] text-muted-foreground tabular-nums"> </span>',1),rs=I("<div></div>"),ss=I('<div class="font-medium text-sm"> </div> <div class="text-muted-foreground text-xs"> </div>',1),as=I("<!> <!>",1),os=I('<div class="relative h-7 w-44 flex-shrink-0"><div class="absolute left-0 right-7 bottom-0 border-t border-muted-foreground/40"></div> <!> <div class="absolute inset-0 right-7 flex items-end gap-[1px]"></div></div>');function ns(o,t){Ce(t,!0);let n=F(t,"trend",19,()=>[]);const u=l(()=>t.timezone??Nt()),k=24,$=10,_=l(()=>()=>{const x=Pr(e(u)),m=[],d=new Map;for(const g of n()){const S=new Date(g.timestamp),P=`${S.getFullYear()}-${S.getMonth()}-${S.getDate()}-${S.getHours()}`;d.set(P,(d.get(P)||0)+g.count)}for(let g=k-1;g>=0;g--){const P=x.minus({hours:g}).startOf("hour").toJSDate(),j=`${P.getFullYear()}-${P.getMonth()}-${P.getDate()}-${P.getHours()}`;m.push({hour:P,count:d.get(j)||0})}return m}),c=l(()=>()=>Math.max(...e(_)().map(x=>x.count),0)),p=l(()=>()=>Math.max($,e(c)())),E=l(()=>()=>e(c)()===0?0:e(c)()/e(p)()*100);var R=os(),U=v(O(R),2);{var C=x=>{var m=ts(),d=h(m),g=v(d,2),S=O(g,!0);H(g),ge((P,j,f)=>{ht(d,`bottom: ${P??""}%; background: repeating-linear-gradient(to right, var(--muted-foreground) 0, var(--muted-foreground) 4px, transparent 4px, transparent 7px); opacity: 0.5;`),ht(g,`bottom: calc(${j??""}% - 6px);`),ve(S,f)},[()=>e(E)(),()=>e(E)(),()=>e(c)()>999?(e(c)()/1e3).toFixed(1)+"k":e(c)()]),i(x,m)};le(U,x=>{e(c)()>0&&x(C)})}var D=v(U,2);Et(D,21,()=>e(_)(),ir,(x,m)=>{const d=l(()=>e(p)()>0?e(m).count/e(p)()*100:0),g=l(()=>e(m).count>0);var S=T(),P=h(S);b(P,()=>Dr,(j,f)=>{f(j,{children:(y,z)=>{var M=as(),q=h(M);b(q,()=>Rr,(K,W)=>{W(K,{class:"flex-1 h-full flex items-end justify-center",children:(Q,We)=>{var ee=rs();ge(ue=>{mr(ee,1,`w-full max-w-[4px] rounded-[1px] transition-colors ${e(g)?"hover:opacity-80":""}`),ht(ee,`height: ${ue??""}%;${e(g)?" background-color: var(--sidebar-accent);":""}`)},[()=>Math.max(2,e(d))]),i(Q,ee)},$$slots:{default:!0}})});var L=v(q,2);b(L,()=>zr,(K,W)=>{W(K,{side:"top",class:"py-2 px-3 !animate-none !transition-none",children:(Q,We)=>{var ee=ss(),ue=h(ee),Qe=O(ue);H(ue);var B=v(ue,2),Xe=O(B,!0);H(B),ge(Ze=>{ve(Qe,`${e(m).count??""} ${e(m).count===1?"Event":"Events"}`),ve(Xe,Ze)},[()=>qt(e(m).hour,{timezone:e(u),format:"full"})]),i(Q,ee)},$$slots:{default:!0}})}),i(y,M)},$$slots:{default:!0}})}),i(x,S)}),H(D),H(R),i(o,R),Pe()}var is=I("<!> Archive",1),ls=I('<div class="flex animate-in items-center gap-3 rounded-lg border bg-muted/50 p-3 duration-200 fade-in slide-in-from-top-1"><span class="text-sm font-medium"> </span> <!> <!></div>'),us=I('<div class="flex h-full items-center justify-center"><!></div>'),cs=I("<!> <!> <!> <!> <!>",1),ds=I('<span class="text-foreground"> </span>'),hs=I("<!> <!> <!> <!> <!>",1),fs=I("<!> <!>",1),ps=I('<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"><h2 class="text-2xl font-bold tracking-tight">Issues</h2> <div class="w-full sm:w-auto"><!></div></div> <!> <!> <div class="overflow-hidden rounded-md border"><!></div> <!></div> <!>',1);function Gs(o,t){Ce(t,!0);const n=l(Nt),u="issues",k=Nr(u,{field:"last_seen",direction:"desc"});let $=w(Y(k.field)),_=w(Y(k.direction)),c=w(Y([])),p=w(!0),E=w(""),R=w(!1),U=w(!1),C=w(1),D=w(20),x=w(0),m=w(0),d=w(Y(new Set));const g=l(()=>e(d).size),S=l(()=>e(c).length>0&&e(d).size===e(c).length),P=l(()=>e(d).size>0&&e(d).size<e(c).length);function j(){const r=new URLSearchParams(window.location.search);return{...Er(e(n),"24h"),search:r.get("search")||"",searchType:r.get("searchType")||"all"}}const f=j(),y=At(f,e(n));let z=w(Y(f.preset)),M=w(Y(we(y.from,e(n)))),q=w(Y(we(y.to,e(n)))),L=w(Y(Te(y.from,e(n)))),K=w(Y(Te(y.to,e(n)))),W=w(Y(f.search)),Q=w(Y(f.searchType));const We=[{value:"all",label:"All"},{value:"issues",label:"Issues"},{value:"messages",label:"Messages"}];function ee(){const[r,a]=e(L).split(":").map(Number),N=Rt({year:e(M).year,month:e(M).month,day:e(M).day,hour:r,minute:a},e(n));return zt(N)}function ue(){const[r,a]=e(K).split(":").map(Number),N=Rt({year:e(q).year,month:e(q).month,day:e(q).day,hour:r,minute:a},e(n)).endOf("minute");return zt(N)}function Qe(r=!0){const a={};e(z)?a.preset=e(z):(a.from=ee(),a.to=ue()),e(W).trim()&&(a.search=e(W).trim()),e(Q)!=="all"&&(a.searchType=e(Q)),qr(a,{pushToHistory:r})}async function B(r=!0){if(s(p,!0),s(E,""),e(z)){const a=Or(e(z),e(n));s(M,we(a.from,e(n)),!0),s(q,we(a.to,e(n)),!0),s(L,Te(a.from,e(n)),!0),s(K,Te(a.to,e(n)),!0)}Qe(r);try{const a=e(_)==="asc"?`${e($)}_asc`:e($),N={fromDate:ee(),toDate:ue(),orderBy:a,pagination:{page:e(C),pageSize:e(D)},search:e(W).trim(),searchType:e(Q),includeArchived:!1},ye=await Tt.post("/exception-stack-traces",N,{projectId:Ct.currentProjectId??void 0});s(c,ye.data||[],!0),s(x,ye.pagination.total,!0),s(m,ye.pagination.totalPages,!0),s(d,new Set,!0)}catch(a){console.error(a),s(E,a.message||"Failed to load data",!0)}finally{s(p,!1)}}function Xe(r){r>=1&&r<=e(m)&&(s(C,r,!0),B(!0))}function Ze(r){s(D,r,!0),s(C,1),B(!0)}function jt(r,a,N){s(M,r.date,!0),s(q,a.date,!0),s(L,r.time,!0),s(K,a.time,!0),s(z,N,!0),s(C,1),B(!0)}function Lt(){s(C,1),B(!0)}function bt(r){const a=Fr(r,e($),e(_));s($,a.field,!0),s(_,a.direction,!0),jr(u,a),s(C,1),B(!0)}function kt(){const r=j(),a=At(r,e(n));s(z,r.preset,!0),s(M,we(a.from,e(n)),!0),s(q,we(a.to,e(n)),!0),s(L,Te(a.from,e(n)),!0),s(K,Te(a.to,e(n)),!0),s(W,r.search,!0),s(Q,r.searchType,!0),s(C,1),B(!1)}function Ut(){e(S)?s(d,new Set,!0):s(d,new Set(e(c).map(r=>r.exceptionHash)),!0)}function Bt(r){const a=new Set(e(d));a.has(r)?a.delete(r):a.add(r),s(d,a,!0)}function yt(r){return e(d).has(r)}async function Gt(){if(e(d).size!==0){s(R,!0);try{await Tt.post("/exception-stack-traces/archive",{hashes:Array.from(e(d))},{projectId:Ct.currentProjectId??void 0}),er.success("Successfully archived the Issue"+(e(d).size>1?"s":""),{position:"top-center"}),s(d,new Set,!0),await B()}catch(r){throw console.error("Archive failed:",r),s(E,r.message||"Failed to archive issues",!0),r}finally{s(R,!1)}}}tr(()=>{window.addEventListener("popstate",kt),B(!1)}),rr(()=>{typeof window<"u"&&window.removeEventListener("popstate",kt)});var xt=ps(),et=h(xt),tt=O(et),$t=v(O(tt),2),Jt=O($t);Hr(Jt,{onApply:jt,get fromDate(){return e(M)},set fromDate(r){s(M,r,!0)},get toDate(){return e(q)},set toDate(r){s(q,r,!0)},get fromTime(){return e(L)},set fromTime(r){s(L,r,!0)},get toTime(){return e(K)},set toTime(r){s(K,r,!0)},get preset(){return e(z)},set preset(r){s(z,r,!0)}}),H($t),H(tt);var St=v(tt,2);dr(St,{placeholder:"Search exceptions...",get typeOptions(){return We},onSearch:Lt,get disabled(){return e(p)},get value(){return e(W)},set value(r){s(W,r,!0)},get typeValue(){return e(Q)},set typeValue(r){s(Q,r,!0)}});var wt=v(St,2);{var Vt=r=>{var a=ls(),N=O(a),ye=O(N);H(N);var De=v(N,2);It(De,{variant:"outline",size:"sm",onclick:()=>s(U,!0),get disabled(){return e(R)},class:"gap-1.5",children:(Re,at)=>{var G=is(),_e=h(G);Lr(_e,{class:"h-4 w-4"}),He(),i(Re,G)},$$slots:{default:!0}});var st=v(De,2);It(st,{variant:"ghost",size:"sm",onclick:()=>s(d,new Set,!0),children:(Re,at)=>{He();var G=Be("Clear selection");i(Re,G)},$$slots:{default:!0}}),H(a),ge(()=>ve(ye,`${e(g)??""} issue${e(g)===1?"":"s"} selected`)),i(r,a)};le(wt,r=>{e(g)>0&&r(Vt)})}var rt=v(wt,2),Yt=O(rt);b(Yt,()=>lr,(r,a)=>{a(r,{children:(N,ye)=>{var De=T(),st=h(De);{var Re=G=>{var _e=T(),ot=h(_e);b(ot,()=>Je,(nt,it)=>{it(nt,{children:(ce,xe)=>{var $e=T(),ze=h($e);b(ze,()=>Ve,(Ae,X)=>{X(Ae,{children:(de,he)=>{var fe=T(),te=h(fe);b(te,()=>ke,(re,pe)=>{pe(re,{colspan:5,class:"h-48",children:(Ee,se)=>{var ae=us(),oe=O(ae);hr(oe,{size:"xlg"}),H(ae),i(Ee,ae)},$$slots:{default:!0}})}),i(de,fe)},$$slots:{default:!0}})}),i(ce,$e)},$$slots:{default:!0}})}),i(G,_e)},at=G=>{var _e=T(),ot=h(_e);{var nt=ce=>{var xe=T(),$e=h(xe);b($e,()=>Je,(ze,Ae)=>{Ae(ze,{children:(X,de)=>{var he=T(),fe=h(he);b(fe,()=>Ve,(te,re)=>{re(te,{children:(pe,Ee)=>{var se=T(),ae=h(se);b(ae,()=>ke,(oe,A)=>{A(oe,{colspan:5,class:"h-24 text-center text-red-500",children:(Se,lt)=>{He();var be=Be();ge(()=>ve(be,e(E))),i(Se,be)},$$slots:{default:!0}})}),i(pe,se)},$$slots:{default:!0}})}),i(X,he)},$$slots:{default:!0}})}),i(ce,xe)},it=ce=>{var xe=T(),$e=h(xe);{var ze=X=>{var de=T(),he=h(de);b(he,()=>Je,(fe,te)=>{te(fe,{children:(re,pe)=>{Ir(re,{colspan:5,message:"No issues found."})},$$slots:{default:!0}})}),i(X,de)},Ae=X=>{var de=fs(),he=h(de);b(he,()=>ur,(te,re)=>{re(te,{children:(pe,Ee)=>{var se=T(),ae=h(se);b(ae,()=>Ve,(oe,A)=>{A(oe,{children:(Se,lt)=>{var be=cs(),Oe=h(be);b(Oe,()=>cr,(je,Le)=>{Le(je,{class:"w-[40px] pl-4",children:(Ue,ct)=>{{let dt=l(()=>e(S)?!0:e(P)?"indeterminate":!1);Mt(Ue,{get checked(){return e(dt)},onCheckedChange:Ut,"aria-label":"Select all"})}},$$slots:{default:!0}})});var qe=v(Oe,2);Ye(qe,{label:"Issue",tooltip:"The error message or exception that occurred"});var Ne=v(qe,2);Ye(Ne,{label:"Trend",tooltip:"Hourly occurrence pattern over the last 24h",class:"w-[190px]"});var ut=v(Ne,2);Ye(ut,{label:"Events",tooltip:"Total number of times this issue occurred in the selected range",align:"right",class:"w-[80px]",sortField:"count",get currentSortField(){return e($)},get sortDirection(){return e(_)},onSort:bt});var Fe=v(ut,2);Ye(Fe,{label:"Last Seen",tooltip:"When this issue last occurred",class:"w-[180px]",sortField:"last_seen",get currentSortField(){return e($)},get sortDirection(){return e(_)},onSort:bt}),i(Se,be)},$$slots:{default:!0}})}),i(pe,se)},$$slots:{default:!0}})});var fe=v(he,2);b(fe,()=>Je,(te,re)=>{re(te,{children:(pe,Ee)=>{var se=T(),ae=h(se);Et(ae,17,()=>e(c),oe=>oe.exceptionHash,(oe,A)=>{var Se=T(),lt=h(Se);{let be=l(()=>yt(e(A).exceptionHash)?"selected":void 0);b(lt,()=>Ve,(Oe,qe)=>{qe(Oe,{class:"group cursor-pointer hover:bg-muted/50",get"data-state"(){return e(be)},children:(Ne,ut)=>{var Fe=hs(),je=h(Fe);b(je,()=>ke,(ne,ie)=>{ie(ne,{class:"pl-4",onclick:J=>J.stopPropagation(),children:(J,me)=>{{let Ie=l(()=>yt(e(A).exceptionHash));Mt(J,{get checked(){return e(Ie)},onCheckedChange:()=>Bt(e(A).exceptionHash),"aria-label":"Select row"})}},$$slots:{default:!0}})});var Le=v(je,2);{let ne=l(()=>Ge(`/issues/${e(A).exceptionHash}`,"preset","from","to"));b(Le,()=>ke,(ie,J)=>{J(ie,{class:"max-w-[400px] truncate font-mono text-sm",get title(){return e(A).stackTrace},get onclick(){return e(ne)},children:(me,Ie)=>{var V=ds(),Me=O(V,!0);H(V),ge(Qt=>ve(Me,Qt),[()=>e(A).stackTrace.split(`
+import{r as Xt}from"../chunks/B4VmGkxP.js";import{b as Zt,a as Tt,p as Ct,t as er}from"../chunks/qCQ2nSvO.js";import{i as le,s as mt,p as F,r as gt}from"../chunks/DMODTt3n.js";import{o as tr,a as rr}from"../chunks/Dwk6gGSK.js";import{R as sr,b1 as ar,b2 as or,u as l,g as e,i as s,p as Ce,d as T,c as h,b as i,a as Pe,K as nr,f as I,s as v,m as ft,e as O,o as Ht,r as H,k as ge,l as ve,h as w,v as Y,n as He,t as Be}from"../chunks/B2WdN-7r.js";import{e as Et,i as ir}from"../chunks/CMyj8Fzw.js";import{c as b}from"../chunks/BAcG0-U_.js";import{c as Ge}from"../chunks/UIirCQWa.js";import{b as Je,T as Ve,a as ke,c as lr}from"../chunks/CeOjHHJH.js";import{T as ur,a as cr}from"../chunks/CEJkX7WU.js";import{S as dr}from"../chunks/D4tSNflE.js";import{L as hr}from"../chunks/D0pIT200.js";import{b as fr,d as pr,a as mr,e as ht}from"../chunks/DH0tcjsQ.js";import{C as Ot,w as pt,E as gr,S as vr,f as _r}from"../chunks/CjLH05gQ.js";import{a as br,e as Pt,g as Dt,i as kr,d as yr,c as xr,b as Z,m as $r}from"../chunks/BDd6-VcB.js";import{i as Sr}from"../chunks/CQWqWi6p.js";import{H as wr}from"../chunks/BT31m2vG.js";import{I as Tr}from"../chunks/Bv_PbELb.js";import{C as Cr}from"../chunks/DUJ_Z9AF.js";import{f as qt,g as Nt,i as Pr,c as Rt,t as zt}from"../chunks/Dq-0lVru.js";import{b as Dr,T as Rr,a as zr}from"../chunks/5D-Broyu.js";import{A as Ar}from"../chunks/x4zBYqLS.js";import{T as Ye}from"../chunks/CkVJuMBr.js";import{T as Ir}from"../chunks/xk30YnJ1.js";import{P as Mr}from"../chunks/DByR3-93.js";import{g as At,d as we,a as Te,T as Hr,p as Er,b as Or,u as qr}from"../chunks/DjEjtFrE.js";import{g as Nr,h as Fr,s as jr}from"../chunks/X-i49s3k.js";import{B as It}from"../chunks/C1aqwstW.js";import{A as Lr}from"../chunks/CNi31Ve4.js";const Ur=[];function Br(o,t=!1,n=!1){return Ke(o,new Map,"",Ur,null,n)}function Ke(o,t,n,u,k=null,$=!1){if(typeof o=="object"&&o!==null){var _=t.get(o);if(_!==void 0)return _;if(o instanceof Map)return new Map(o);if(o instanceof Set)return new Set(o);if(sr(o)){var c=Array(o.length);t.set(o,c),k!==null&&t.set(k,c);for(var p=0;p<o.length;p+=1){var E=o[p];p in o&&(c[p]=Ke(E,t,n,u,null,$))}return c}if(ar(o)===or){c={},t.set(o,c),k!==null&&t.set(k,c);for(var R in o)c[R]=Ke(o[R],t,n,u,null,$);return c}if(o instanceof Date)return structuredClone(o);if(typeof o.toJSON=="function"&&!$)return Ke(o.toJSON(),t,n,u,o)}if(o instanceof EventTarget)return o;try{return structuredClone(o)}catch{return o}}const Gr=yr({component:"checkbox",parts:["root","group","group-label","input"]}),Jr=new Ot("Checkbox.Group"),Ft=new Ot("Checkbox.Root");class vt{static create(t,n=null){return Ft.set(new vt(t,n))}opts;group;#e=l(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return e(this.#e)}set trueName(t){s(this.#e,t)}#t=l(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return e(this.#t)}set trueRequired(t){s(this.#t,t)}#r=l(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return e(this.#r)}set trueDisabled(t){s(this.#r,t)}#a=l(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return e(this.#a)}set trueReadonly(t){s(this.#a,t)}attachment;constructor(t,n){this.opts=t,this.group=n,this.attachment=br(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),pt.pre([()=>Br(this.group?.opts.value.current),()=>this.opts.value.current],([u,k])=>{!u||!k||(this.opts.checked.current=u.includes(k))}),pt.pre(()=>this.opts.checked.current,u=>{this.group&&(u?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(t){this.trueDisabled||this.trueReadonly||(t.key===gr&&t.preventDefault(),t.key===vr&&(t.preventDefault(),this.#s()))}#s(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(t){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#s();return}t.preventDefault(),this.#s()}}#o=l(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return e(this.#o)}set snippetProps(t){s(this.#o,t)}#n=l(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":kr(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":Dt(this.trueRequired),"aria-readonly":Dt(this.trueReadonly),"data-disabled":Pt(this.trueDisabled),"data-readonly":Pt(this.trueReadonly),"data-state":Vr(this.opts.checked.current,this.opts.indeterminate.current),[Gr.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return e(this.#n)}set props(t){s(this.#n,t)}}class _t{static create(){return new _t(Ft.get())}root;#e=l(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return e(this.#e)}set trueChecked(t){s(this.#e,t)}#t=l(()=>!!this.root.trueName);get shouldRender(){return e(this.#t)}set shouldRender(t){s(this.#t,t)}constructor(t){this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(t){_r(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#r=l(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return e(this.#r)}set props(t){s(this.#r,t)}}function Vr(o,t){return t?"indeterminate":o?"checked":"unchecked"}function Yr(o,t){Ce(t,!1);const n=_t.create();Sr();var u=T(),k=h(u);{var $=_=>{wr(_,mt(()=>n.props))};le(k,_=>{n.shouldRender&&_($)})}i(o,u),Pe()}var Kr=I("<button><!></button>"),Wr=I("<!> <!>",1);function Qr(o,t){const n=nr();Ce(t,!0);let u=F(t,"checked",15,!1),k=F(t,"ref",15,null),$=F(t,"disabled",3,!1),_=F(t,"required",3,!1),c=F(t,"name",3,void 0),p=F(t,"value",3,"on"),E=F(t,"id",19,()=>xr(n)),R=F(t,"indeterminate",15,!1),U=F(t,"type",3,"button"),C=gt(t,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const D=Jr.getOr(null);D&&p()&&(D.opts.value.current.includes(p())?u(!0):u(!1)),pt.pre(()=>p(),()=>{D&&p()&&(D.opts.value.current.includes(p())?u(!0):u(!1))});const x=vt.create({checked:Z(()=>u(),f=>{u(f),t.onCheckedChange?.(f)}),disabled:Z(()=>$()??!1),required:Z(()=>_()),name:Z(()=>c()),value:Z(()=>p()),id:Z(()=>E()),ref:Z(()=>k(),f=>k(f)),indeterminate:Z(()=>R(),f=>{R(f),t.onIndeterminateChange?.(f)}),type:Z(()=>U()),readonly:Z(()=>!!t.readonly)},D),m=l(()=>$r({...C},x.props));var d=Wr(),g=h(d);{var S=f=>{var y=T(),z=h(y);{let M=l(()=>({props:e(m),...x.snippetProps}));ft(z,()=>t.child,()=>e(M))}i(f,y)},P=f=>{var y=Kr();fr(y,()=>({...e(m)}));var z=O(y);ft(z,()=>t.children??Ht,()=>x.snippetProps),H(y),i(f,y)};le(g,f=>{t.child?f(S):f(P,!1)})}var j=v(g,2);Yr(j,{}),i(o,d),Pe()}function Xr(o,t){Ce(t,!0);let n=gt(t,["$$slots","$$events","$$legacy"]);const u=[["path",{d:"M5 12h14"}]];Tr(o,mt({name:"minus"},()=>n,{get iconNode(){return u},children:(k,$)=>{var _=T(),c=h(_);ft(c,()=>t.children??Ht),i(k,_)},$$slots:{default:!0}})),Pe()}const Zr=()=>{if(!Zt.isAuthenticated)throw Xt(302,"/login")},Bs=Object.freeze(Object.defineProperty({__proto__:null,load:Zr},Symbol.toStringTag,{value:"Module"}));var es=I('<span class="flex items-center justify-center text-current"><!></span>');function Mt(o,t){Ce(t,!0);let n=F(t,"ref",15,null),u=F(t,"checked",15,!1),k=F(t,"disabled",3,!1),$=gt(t,["$$slots","$$events","$$legacy","ref","checked","onCheckedChange","class","disabled"]);const _=l(()=>u()===!0),c=l(()=>u()==="indeterminate");function p(C){const D=C;u(D),t.onCheckedChange?.(D)}function E(C){C&&(u("indeterminate"),t.onCheckedChange?.("indeterminate"))}var R=T(),U=h(R);{const C=(x,m)=>{let d=()=>m?.().checked,g=()=>m?.().indeterminate;var S=es(),P=O(S);{var j=y=>{Xr(y,{class:"size-3"})},f=y=>{var z=T(),M=h(z);{var q=L=>{Cr(L,{class:"size-3"})};le(M,L=>{d()&&L(q)},!0)}i(y,z)};le(P,y=>{g()?y(j):y(f,!1)})}H(S),i(x,S)};let D=l(()=>pr("peer size-4 shrink-0 rounded-[4px] border border-input dark:border-white bg-background shadow-sm transition-colors","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground","data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:text-primary-foreground",t.class));b(U,()=>Qr,(x,m)=>{m(x,mt({get checked(){return e(_)},get indeterminate(){return e(c)},onCheckedChange:p,onIndeterminateChange:E,get disabled(){return k()},get class(){return e(D)}},()=>$,{get ref(){return n()},set ref(d){n(d)},children:C,$$slots:{default:!0}}))})}i(o,R),Pe()}var ts=I('<div class="absolute left-0 right-7 h-[1px]"></div> <span class="absolute right-1 text-[10px] w-[20px] text-muted-foreground tabular-nums"> </span>',1),rs=I("<div></div>"),ss=I('<div class="font-medium text-sm"> </div> <div class="text-muted-foreground text-xs"> </div>',1),as=I("<!> <!>",1),os=I('<div class="relative h-7 w-44 flex-shrink-0"><div class="absolute left-0 right-7 bottom-0 border-t border-muted-foreground/40"></div> <!> <div class="absolute inset-0 right-7 flex items-end gap-[1px]"></div></div>');function ns(o,t){Ce(t,!0);let n=F(t,"trend",19,()=>[]);const u=l(()=>t.timezone??Nt()),k=24,$=10,_=l(()=>()=>{const x=Pr(e(u)),m=[],d=new Map;for(const g of n()){const S=new Date(g.timestamp),P=`${S.getFullYear()}-${S.getMonth()}-${S.getDate()}-${S.getHours()}`;d.set(P,(d.get(P)||0)+g.count)}for(let g=k-1;g>=0;g--){const P=x.minus({hours:g}).startOf("hour").toJSDate(),j=`${P.getFullYear()}-${P.getMonth()}-${P.getDate()}-${P.getHours()}`;m.push({hour:P,count:d.get(j)||0})}return m}),c=l(()=>()=>Math.max(...e(_)().map(x=>x.count),0)),p=l(()=>()=>Math.max($,e(c)())),E=l(()=>()=>e(c)()===0?0:e(c)()/e(p)()*100);var R=os(),U=v(O(R),2);{var C=x=>{var m=ts(),d=h(m),g=v(d,2),S=O(g,!0);H(g),ge((P,j,f)=>{ht(d,`bottom: ${P??""}%; background: repeating-linear-gradient(to right, var(--muted-foreground) 0, var(--muted-foreground) 4px, transparent 4px, transparent 7px); opacity: 0.5;`),ht(g,`bottom: calc(${j??""}% - 6px);`),ve(S,f)},[()=>e(E)(),()=>e(E)(),()=>e(c)()>999?(e(c)()/1e3).toFixed(1)+"k":e(c)()]),i(x,m)};le(U,x=>{e(c)()>0&&x(C)})}var D=v(U,2);Et(D,21,()=>e(_)(),ir,(x,m)=>{const d=l(()=>e(p)()>0?e(m).count/e(p)()*100:0),g=l(()=>e(m).count>0);var S=T(),P=h(S);b(P,()=>Dr,(j,f)=>{f(j,{children:(y,z)=>{var M=as(),q=h(M);b(q,()=>Rr,(K,W)=>{W(K,{class:"flex-1 h-full flex items-end justify-center",children:(Q,We)=>{var ee=rs();ge(ue=>{mr(ee,1,`w-full max-w-[4px] rounded-[1px] transition-colors ${e(g)?"hover:opacity-80":""}`),ht(ee,`height: ${ue??""}%;${e(g)?" background-color: var(--sidebar-accent);":""}`)},[()=>Math.max(2,e(d))]),i(Q,ee)},$$slots:{default:!0}})});var L=v(q,2);b(L,()=>zr,(K,W)=>{W(K,{side:"top",class:"py-2 px-3 !animate-none !transition-none",children:(Q,We)=>{var ee=ss(),ue=h(ee),Qe=O(ue);H(ue);var B=v(ue,2),Xe=O(B,!0);H(B),ge(Ze=>{ve(Qe,`${e(m).count??""} ${e(m).count===1?"Event":"Events"}`),ve(Xe,Ze)},[()=>qt(e(m).hour,{timezone:e(u),format:"full"})]),i(Q,ee)},$$slots:{default:!0}})}),i(y,M)},$$slots:{default:!0}})}),i(x,S)}),H(D),H(R),i(o,R),Pe()}var is=I("<!> Archive",1),ls=I('<div class="flex animate-in items-center gap-3 rounded-lg border bg-muted/50 p-3 duration-200 fade-in slide-in-from-top-1"><span class="text-sm font-medium"> </span> <!> <!></div>'),us=I('<div class="flex h-full items-center justify-center"><!></div>'),cs=I("<!> <!> <!> <!> <!>",1),ds=I('<span class="text-foreground"> </span>'),hs=I("<!> <!> <!> <!> <!>",1),fs=I("<!> <!>",1),ps=I('<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"><h2 class="text-2xl font-bold tracking-tight">Issues</h2> <div class="w-full sm:w-auto"><!></div></div> <!> <!> <div class="overflow-hidden rounded-md border"><!></div> <!></div> <!>',1);function Gs(o,t){Ce(t,!0);const n=l(Nt),u="issues",k=Nr(u,{field:"last_seen",direction:"desc"});let $=w(Y(k.field)),_=w(Y(k.direction)),c=w(Y([])),p=w(!0),E=w(""),R=w(!1),U=w(!1),C=w(1),D=w(20),x=w(0),m=w(0),d=w(Y(new Set));const g=l(()=>e(d).size),S=l(()=>e(c).length>0&&e(d).size===e(c).length),P=l(()=>e(d).size>0&&e(d).size<e(c).length);function j(){const r=new URLSearchParams(window.location.search);return{...Er(e(n),"24h"),search:r.get("search")||"",searchType:r.get("searchType")||"all"}}const f=j(),y=At(f,e(n));let z=w(Y(f.preset)),M=w(Y(we(y.from,e(n)))),q=w(Y(we(y.to,e(n)))),L=w(Y(Te(y.from,e(n)))),K=w(Y(Te(y.to,e(n)))),W=w(Y(f.search)),Q=w(Y(f.searchType));const We=[{value:"all",label:"All"},{value:"issues",label:"Issues"},{value:"messages",label:"Messages"}];function ee(){const[r,a]=e(L).split(":").map(Number),N=Rt({year:e(M).year,month:e(M).month,day:e(M).day,hour:r,minute:a},e(n));return zt(N)}function ue(){const[r,a]=e(K).split(":").map(Number),N=Rt({year:e(q).year,month:e(q).month,day:e(q).day,hour:r,minute:a},e(n)).endOf("minute");return zt(N)}function Qe(r=!0){const a={};e(z)?a.preset=e(z):(a.from=ee(),a.to=ue()),e(W).trim()&&(a.search=e(W).trim()),e(Q)!=="all"&&(a.searchType=e(Q)),qr(a,{pushToHistory:r})}async function B(r=!0){if(s(p,!0),s(E,""),e(z)){const a=Or(e(z),e(n));s(M,we(a.from,e(n)),!0),s(q,we(a.to,e(n)),!0),s(L,Te(a.from,e(n)),!0),s(K,Te(a.to,e(n)),!0)}Qe(r);try{const a=e(_)==="asc"?`${e($)}_asc`:e($),N={fromDate:ee(),toDate:ue(),orderBy:a,pagination:{page:e(C),pageSize:e(D)},search:e(W).trim(),searchType:e(Q),includeArchived:!1},ye=await Tt.post("/exception-stack-traces",N,{projectId:Ct.currentProjectId??void 0});s(c,ye.data||[],!0),s(x,ye.pagination.total,!0),s(m,ye.pagination.totalPages,!0),s(d,new Set,!0)}catch(a){console.error(a),s(E,a.message||"Failed to load data",!0)}finally{s(p,!1)}}function Xe(r){r>=1&&r<=e(m)&&(s(C,r,!0),B(!0))}function Ze(r){s(D,r,!0),s(C,1),B(!0)}function jt(r,a,N){s(M,r.date,!0),s(q,a.date,!0),s(L,r.time,!0),s(K,a.time,!0),s(z,N,!0),s(C,1),B(!0)}function Lt(){s(C,1),B(!0)}function bt(r){const a=Fr(r,e($),e(_));s($,a.field,!0),s(_,a.direction,!0),jr(u,a),s(C,1),B(!0)}function kt(){const r=j(),a=At(r,e(n));s(z,r.preset,!0),s(M,we(a.from,e(n)),!0),s(q,we(a.to,e(n)),!0),s(L,Te(a.from,e(n)),!0),s(K,Te(a.to,e(n)),!0),s(W,r.search,!0),s(Q,r.searchType,!0),s(C,1),B(!1)}function Ut(){e(S)?s(d,new Set,!0):s(d,new Set(e(c).map(r=>r.exceptionHash)),!0)}function Bt(r){const a=new Set(e(d));a.has(r)?a.delete(r):a.add(r),s(d,a,!0)}function yt(r){return e(d).has(r)}async function Gt(){if(e(d).size!==0){s(R,!0);try{await Tt.post("/exception-stack-traces/archive",{hashes:Array.from(e(d))},{projectId:Ct.currentProjectId??void 0}),er.success("Successfully archived the Issue"+(e(d).size>1?"s":""),{position:"top-center"}),s(d,new Set,!0),await B()}catch(r){throw console.error("Archive failed:",r),s(E,r.message||"Failed to archive issues",!0),r}finally{s(R,!1)}}}tr(()=>{window.addEventListener("popstate",kt),B(!1)}),rr(()=>{typeof window<"u"&&window.removeEventListener("popstate",kt)});var xt=ps(),et=h(xt),tt=O(et),$t=v(O(tt),2),Jt=O($t);Hr(Jt,{onApply:jt,get fromDate(){return e(M)},set fromDate(r){s(M,r,!0)},get toDate(){return e(q)},set toDate(r){s(q,r,!0)},get fromTime(){return e(L)},set fromTime(r){s(L,r,!0)},get toTime(){return e(K)},set toTime(r){s(K,r,!0)},get preset(){return e(z)},set preset(r){s(z,r,!0)}}),H($t),H(tt);var St=v(tt,2);dr(St,{placeholder:"Search exceptions...",get typeOptions(){return We},onSearch:Lt,get disabled(){return e(p)},get value(){return e(W)},set value(r){s(W,r,!0)},get typeValue(){return e(Q)},set typeValue(r){s(Q,r,!0)}});var wt=v(St,2);{var Vt=r=>{var a=ls(),N=O(a),ye=O(N);H(N);var De=v(N,2);It(De,{variant:"outline",size:"sm",onclick:()=>s(U,!0),get disabled(){return e(R)},class:"gap-1.5",children:(Re,at)=>{var G=is(),_e=h(G);Lr(_e,{class:"h-4 w-4"}),He(),i(Re,G)},$$slots:{default:!0}});var st=v(De,2);It(st,{variant:"ghost",size:"sm",onclick:()=>s(d,new Set,!0),children:(Re,at)=>{He();var G=Be("Clear selection");i(Re,G)},$$slots:{default:!0}}),H(a),ge(()=>ve(ye,`${e(g)??""} issue${e(g)===1?"":"s"} selected`)),i(r,a)};le(wt,r=>{e(g)>0&&r(Vt)})}var rt=v(wt,2),Yt=O(rt);b(Yt,()=>lr,(r,a)=>{a(r,{children:(N,ye)=>{var De=T(),st=h(De);{var Re=G=>{var _e=T(),ot=h(_e);b(ot,()=>Je,(nt,it)=>{it(nt,{children:(ce,xe)=>{var $e=T(),ze=h($e);b(ze,()=>Ve,(Ae,X)=>{X(Ae,{children:(de,he)=>{var fe=T(),te=h(fe);b(te,()=>ke,(re,pe)=>{pe(re,{colspan:5,class:"h-48",children:(Ee,se)=>{var ae=us(),oe=O(ae);hr(oe,{size:"xlg"}),H(ae),i(Ee,ae)},$$slots:{default:!0}})}),i(de,fe)},$$slots:{default:!0}})}),i(ce,$e)},$$slots:{default:!0}})}),i(G,_e)},at=G=>{var _e=T(),ot=h(_e);{var nt=ce=>{var xe=T(),$e=h(xe);b($e,()=>Je,(ze,Ae)=>{Ae(ze,{children:(X,de)=>{var he=T(),fe=h(he);b(fe,()=>Ve,(te,re)=>{re(te,{children:(pe,Ee)=>{var se=T(),ae=h(se);b(ae,()=>ke,(oe,A)=>{A(oe,{colspan:5,class:"h-24 text-center text-red-500",children:(Se,lt)=>{He();var be=Be();ge(()=>ve(be,e(E))),i(Se,be)},$$slots:{default:!0}})}),i(pe,se)},$$slots:{default:!0}})}),i(X,he)},$$slots:{default:!0}})}),i(ce,xe)},it=ce=>{var xe=T(),$e=h(xe);{var ze=X=>{var de=T(),he=h(de);b(he,()=>Je,(fe,te)=>{te(fe,{children:(re,pe)=>{Ir(re,{colspan:5,message:"No issues found."})},$$slots:{default:!0}})}),i(X,de)},Ae=X=>{var de=fs(),he=h(de);b(he,()=>ur,(te,re)=>{re(te,{children:(pe,Ee)=>{var se=T(),ae=h(se);b(ae,()=>Ve,(oe,A)=>{A(oe,{children:(Se,lt)=>{var be=cs(),Oe=h(be);b(Oe,()=>cr,(je,Le)=>{Le(je,{class:"w-[40px] pl-4",children:(Ue,ct)=>{{let dt=l(()=>e(S)?!0:e(P)?"indeterminate":!1);Mt(Ue,{get checked(){return e(dt)},onCheckedChange:Ut,"aria-label":"Select all"})}},$$slots:{default:!0}})});var qe=v(Oe,2);Ye(qe,{label:"Issue",tooltip:"The error message or exception that occurred"});var Ne=v(qe,2);Ye(Ne,{label:"Trend",tooltip:"Hourly occurrence pattern over the last 24h",class:"w-[190px]"});var ut=v(Ne,2);Ye(ut,{label:"Events",tooltip:"Total number of times this issue occurred in the selected range",align:"right",class:"w-[80px]",sortField:"count",get currentSortField(){return e($)},get sortDirection(){return e(_)},onSort:bt});var Fe=v(ut,2);Ye(Fe,{label:"Last Seen",tooltip:"When this issue last occurred",class:"w-[180px]",sortField:"last_seen",get currentSortField(){return e($)},get sortDirection(){return e(_)},onSort:bt}),i(Se,be)},$$slots:{default:!0}})}),i(pe,se)},$$slots:{default:!0}})});var fe=v(he,2);b(fe,()=>Je,(te,re)=>{re(te,{children:(pe,Ee)=>{var se=T(),ae=h(se);Et(ae,17,()=>e(c),oe=>oe.exceptionHash,(oe,A)=>{var Se=T(),lt=h(Se);{let be=l(()=>yt(e(A).exceptionHash)?"selected":void 0);b(lt,()=>Ve,(Oe,qe)=>{qe(Oe,{class:"group cursor-pointer hover:bg-muted/50",get"data-state"(){return e(be)},children:(Ne,ut)=>{var Fe=hs(),je=h(Fe);b(je,()=>ke,(ne,ie)=>{ie(ne,{class:"pl-4",onclick:J=>J.stopPropagation(),children:(J,me)=>{{let Ie=l(()=>yt(e(A).exceptionHash));Mt(J,{get checked(){return e(Ie)},onCheckedChange:()=>Bt(e(A).exceptionHash),"aria-label":"Select row"})}},$$slots:{default:!0}})});var Le=v(je,2);{let ne=l(()=>Ge(`/issues/${e(A).exceptionHash}`,"preset","from","to"));b(Le,()=>ke,(ie,J)=>{J(ie,{class:"max-w-[400px] truncate font-mono text-sm",get title(){return e(A).stackTrace},get onclick(){return e(ne)},children:(me,Ie)=>{var V=ds(),Me=O(V,!0);H(V),ge(Qt=>ve(Me,Qt),[()=>e(A).stackTrace.split(`
`)[0]]),i(me,V)},$$slots:{default:!0}})})}var Ue=v(Le,2);{let ne=l(()=>Ge(`/issues/${e(A).exceptionHash}`,"preset","from","to"));b(Ue,()=>ke,(ie,J)=>{J(ie,{get onclick(){return e(ne)},children:(me,Ie)=>{{let V=l(()=>e(A).hourlyTrend||[]);ns(me,{get trend(){return e(V)}})}},$$slots:{default:!0}})})}var ct=v(Ue,2);{let ne=l(()=>Ge(`/issues/${e(A).exceptionHash}`,"preset","from","to"));b(ct,()=>ke,(ie,J)=>{J(ie,{class:"text-right font-medium tabular-nums",get onclick(){return e(ne)},children:(me,Ie)=>{He();var V=Be();ge(Me=>ve(V,Me),[()=>e(A).count.toLocaleString()]),i(me,V)},$$slots:{default:!0}})})}var dt=v(ct,2);{let ne=l(()=>Ge(`/issues/${e(A).exceptionHash}`,"preset","from","to"));b(dt,()=>ke,(ie,J)=>{J(ie,{class:"text-muted-foreground",get onclick(){return e(ne)},children:(me,Ie)=>{He();var V=Be();ge(Me=>ve(V,Me),[()=>qt(e(A).lastSeen,{timezone:e(n)})]),i(me,V)},$$slots:{default:!0}})})}i(Ne,Fe)},$$slots:{default:!0}})})}i(oe,Se)}),i(pe,se)},$$slots:{default:!0}})}),i(X,de)};le($e,X=>{e(c).length===0?X(ze):X(Ae,!1)},!0)}i(ce,xe)};le(ot,ce=>{e(E)?ce(nt):ce(it,!1)},!0)}i(G,_e)};le(st,G=>{e(p)?G(Re):G(at,!1)})}i(N,De)},$$slots:{default:!0}})}),H(rt);var Kt=v(rt,2);Mr(Kt,{get currentPage(){return e(C)},get totalPages(){return e(m)},get pageSize(){return e(D)},get totalItems(){return e(x)},onPageChange:Xe,onPageSizeChange:Ze,get loading(){return e(p)},itemLabel:"issue"}),H(et);var Wt=v(et,2);Ar(Wt,{get open(){return e(U)},onOpenChange:r=>s(U,r,!0),get count(){return e(g)},onConfirm:Gt}),i(o,xt),Pe()}export{Gs as component,Bs as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/14.CyLHTrNP.js.map b/backend/static/frontend/_app/immutable/nodes/14.7EC4zFK9.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/14.CyLHTrNP.js.map
rename to backend/static/frontend/_app/immutable/nodes/14.7EC4zFK9.js.map
index 5a5c7b63..65f3c8f1 100644
--- a/backend/static/frontend/_app/immutable/nodes/14.CyLHTrNP.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/14.7EC4zFK9.js.map
@@ -1 +1 @@
-{"version":3,"file":"14.CyLHTrNP.js","sources":["../../../../../../node_modules/svelte/src/internal/shared/clone.js","../../../../../../node_modules/bits-ui/dist/bits/checkbox/checkbox.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/checkbox/components/checkbox-input.svelte","../../../../../../node_modules/bits-ui/dist/bits/checkbox/components/checkbox.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/minus.svelte","../../../../../../src/routes/issues/+page.ts","../../../../../../src/lib/components/ui/checkbox/checkbox.svelte","../../../../../../src/lib/components/issue-trend-chart.svelte","../../../../../../src/routes/issues/+page.svelte"],"sourcesContent":["/** @import { Snapshot } from './types' */\nimport { DEV } from 'esm-env';\nimport * as w from './warnings.js';\nimport { get_prototype_of, is_array, object_prototype } from './utils.js';\n\n/**\n * In dev, we keep track of which properties could not be cloned. In prod\n * we don't bother, but we keep a dummy array around so that the\n * signature stays the same\n * @type {string[]}\n */\nconst empty = [];\n\n/**\n * @template T\n * @param {T} value\n * @param {boolean} [skip_warning]\n * @param {boolean} [no_tojson]\n * @returns {Snapshot<T>}\n */\nexport function snapshot(value, skip_warning = false, no_tojson = false) {\n\tif (DEV && !skip_warning) {\n\t\t/** @type {string[]} */\n\t\tconst paths = [];\n\n\t\tconst copy = clone(value, new Map(), '', paths, null, no_tojson);\n\t\tif (paths.length === 1 && paths[0] === '') {\n\t\t\t// value could not be cloned\n\t\t\tw.state_snapshot_uncloneable();\n\t\t} else if (paths.length > 0) {\n\t\t\t// some properties could not be cloned\n\t\t\tconst slice = paths.length > 10 ? paths.slice(0, 7) : paths.slice(0, 10);\n\t\t\tconst excess = paths.length - slice.length;\n\n\t\t\tlet uncloned = slice.map((path) => `- <value>${path}`).join('\\n');\n\t\t\tif (excess > 0) uncloned += `\\n- ...and ${excess} more`;\n\n\t\t\tw.state_snapshot_uncloneable(uncloned);\n\t\t}\n\n\t\treturn copy;\n\t}\n\n\treturn clone(value, new Map(), '', empty, null, no_tojson);\n}\n\n/**\n * @template T\n * @param {T} value\n * @param {Map<T, Snapshot<T>>} cloned\n * @param {string} path\n * @param {string[]} paths\n * @param {null | T} [original] The original value, if `value` was produced from a `toJSON` call\n * @param {boolean} [no_tojson]\n * @returns {Snapshot<T>}\n */\nfunction clone(value, cloned, path, paths, original = null, no_tojson = false) {\n\tif (typeof value === 'object' && value !== null) {\n\t\tvar unwrapped = cloned.get(value);\n\t\tif (unwrapped !== undefined) return unwrapped;\n\n\t\tif (value instanceof Map) return /** @type {Snapshot<T>} */ (new Map(value));\n\t\tif (value instanceof Set) return /** @type {Snapshot<T>} */ (new Set(value));\n\n\t\tif (is_array(value)) {\n\t\t\tvar copy = /** @type {Snapshot<any>} */ (Array(value.length));\n\t\t\tcloned.set(value, copy);\n\n\t\t\tif (original !== null) {\n\t\t\t\tcloned.set(original, copy);\n\t\t\t}\n\n\t\t\tfor (var i = 0; i < value.length; i += 1) {\n\t\t\t\tvar element = value[i];\n\t\t\t\tif (i in value) {\n\t\t\t\t\tcopy[i] = clone(element, cloned, DEV ? `${path}[${i}]` : path, paths, null, no_tojson);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn copy;\n\t\t}\n\n\t\tif (get_prototype_of(value) === object_prototype) {\n\t\t\t/** @type {Snapshot<any>} */\n\t\t\tcopy = {};\n\t\t\tcloned.set(value, copy);\n\n\t\t\tif (original !== null) {\n\t\t\t\tcloned.set(original, copy);\n\t\t\t}\n\n\t\t\tfor (var key in value) {\n\t\t\t\tcopy[key] = clone(\n\t\t\t\t\t// @ts-expect-error\n\t\t\t\t\tvalue[key],\n\t\t\t\t\tcloned,\n\t\t\t\t\tDEV ? `${path}.${key}` : path,\n\t\t\t\t\tpaths,\n\t\t\t\t\tnull,\n\t\t\t\t\tno_tojson\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn copy;\n\t\t}\n\n\t\tif (value instanceof Date) {\n\t\t\treturn /** @type {Snapshot<T>} */ (structuredClone(value));\n\t\t}\n\n\t\tif (typeof (/** @type {T & { toJSON?: any } } */ (value).toJSON) === 'function' && !no_tojson) {\n\t\t\treturn clone(\n\t\t\t\t/** @type {T & { toJSON(): any } } */ (value).toJSON(),\n\t\t\t\tcloned,\n\t\t\t\tDEV ? `${path}.toJSON()` : path,\n\t\t\t\tpaths,\n\t\t\t\t// Associate the instance with the toJSON clone\n\t\t\t\tvalue\n\t\t\t);\n\t\t}\n\t}\n\n\tif (value instanceof EventTarget) {\n\t\t// can't be cloned\n\t\treturn /** @type {Snapshot<T>} */ (value);\n\t}\n\n\ttry {\n\t\treturn /** @type {Snapshot<T>} */ (structuredClone(value));\n\t} catch (e) {\n\t\tif (DEV) {\n\t\t\tpaths.push(path);\n\t\t}\n\n\t\treturn /** @type {Snapshot<T>} */ (value);\n\t}\n}\n","import { attachRef } from \"svelte-toolbelt\";\nimport { Context, watch } from \"runed\";\nimport { boolToStr, createBitsAttrs, getAriaChecked, boolToEmptyStrOrUndef, } from \"../../internal/attrs.js\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { arraysAreEqual } from \"../../internal/arrays.js\";\nimport { isHTMLElement } from \"../../internal/is.js\";\nconst checkboxAttrs = createBitsAttrs({\n component: \"checkbox\",\n parts: [\"root\", \"group\", \"group-label\", \"input\"],\n});\nexport const CheckboxGroupContext = new Context(\"Checkbox.Group\");\nexport class CheckboxGroupState {\n static create(opts) {\n return CheckboxGroupContext.set(new CheckboxGroupState(opts));\n }\n opts;\n attachment;\n labelId = $state(undefined);\n constructor(opts) {\n this.opts = opts;\n this.attachment = attachRef(this.opts.ref);\n }\n addValue(checkboxValue) {\n if (!checkboxValue)\n return;\n if (!this.opts.value.current.includes(checkboxValue)) {\n const newValue = [...$state.snapshot(this.opts.value.current), checkboxValue];\n this.opts.value.current = newValue;\n if (arraysAreEqual(this.opts.value.current, newValue))\n return;\n this.opts.onValueChange.current(newValue);\n }\n }\n removeValue(checkboxValue) {\n if (!checkboxValue)\n return;\n const index = this.opts.value.current.indexOf(checkboxValue);\n if (index === -1)\n return;\n const newValue = this.opts.value.current.filter((v) => v !== checkboxValue);\n this.opts.value.current = newValue;\n if (arraysAreEqual(this.opts.value.current, newValue))\n return;\n this.opts.onValueChange.current(newValue);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"group\",\n \"aria-labelledby\": this.labelId,\n \"data-disabled\": boolToEmptyStrOrUndef(this.opts.disabled.current),\n [checkboxAttrs.group]: \"\",\n ...this.attachment,\n }));\n}\nexport class CheckboxGroupLabelState {\n static create(opts) {\n return new CheckboxGroupLabelState(opts, CheckboxGroupContext.get());\n }\n opts;\n group;\n attachment;\n constructor(opts, group) {\n this.opts = opts;\n this.group = group;\n this.group.labelId = this.opts.id.current;\n this.attachment = attachRef(this.opts.ref);\n watch.pre(() => this.opts.id.current, (id) => {\n this.group.labelId = id;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.group.opts.disabled.current),\n [checkboxAttrs[\"group-label\"]]: \"\",\n ...this.attachment,\n }));\n}\nconst CheckboxRootContext = new Context(\"Checkbox.Root\");\nexport class CheckboxRootState {\n static create(opts, group = null) {\n return CheckboxRootContext.set(new CheckboxRootState(opts, group));\n }\n opts;\n group;\n trueName = $derived.by(() => {\n if (this.group && this.group.opts.name.current)\n return this.group.opts.name.current;\n return this.opts.name.current;\n });\n trueRequired = $derived.by(() => {\n if (this.group && this.group.opts.required.current)\n return true;\n return this.opts.required.current;\n });\n trueDisabled = $derived.by(() => {\n if (this.group && this.group.opts.disabled.current)\n return true;\n return this.opts.disabled.current;\n });\n trueReadonly = $derived.by(() => {\n if (this.group && this.group.opts.readonly.current)\n return true;\n return this.opts.readonly.current;\n });\n attachment;\n constructor(opts, group) {\n this.opts = opts;\n this.group = group;\n this.attachment = attachRef(this.opts.ref);\n this.onkeydown = this.onkeydown.bind(this);\n this.onclick = this.onclick.bind(this);\n watch.pre([() => $state.snapshot(this.group?.opts.value.current), () => this.opts.value.current], ([groupValue, value]) => {\n if (!groupValue || !value)\n return;\n this.opts.checked.current = groupValue.includes(value);\n });\n watch.pre(() => this.opts.checked.current, (checked) => {\n if (!this.group)\n return;\n if (checked) {\n this.group?.addValue(this.opts.value.current);\n }\n else {\n this.group?.removeValue(this.opts.value.current);\n }\n });\n }\n onkeydown(e) {\n if (this.trueDisabled || this.trueReadonly)\n return;\n if (e.key === kbd.ENTER)\n e.preventDefault();\n if (e.key === kbd.SPACE) {\n e.preventDefault();\n this.#toggle();\n }\n }\n #toggle() {\n if (this.opts.indeterminate.current) {\n this.opts.indeterminate.current = false;\n this.opts.checked.current = true;\n }\n else {\n this.opts.checked.current = !this.opts.checked.current;\n }\n }\n onclick(e) {\n if (this.trueDisabled || this.trueReadonly)\n return;\n if (this.opts.type.current === \"submit\") {\n this.#toggle();\n return;\n }\n e.preventDefault();\n this.#toggle();\n }\n snippetProps = $derived.by(() => ({\n checked: this.opts.checked.current,\n indeterminate: this.opts.indeterminate.current,\n }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"checkbox\",\n type: this.opts.type.current,\n disabled: this.trueDisabled,\n \"aria-checked\": getAriaChecked(this.opts.checked.current, this.opts.indeterminate.current),\n \"aria-required\": boolToStr(this.trueRequired),\n \"aria-readonly\": boolToStr(this.trueReadonly),\n \"data-disabled\": boolToEmptyStrOrUndef(this.trueDisabled),\n \"data-readonly\": boolToEmptyStrOrUndef(this.trueReadonly),\n \"data-state\": getCheckboxDataState(this.opts.checked.current, this.opts.indeterminate.current),\n [checkboxAttrs.root]: \"\",\n //\n onclick: this.onclick,\n onkeydown: this.onkeydown,\n ...this.attachment,\n }));\n}\nexport class CheckboxInputState {\n static create() {\n return new CheckboxInputState(CheckboxRootContext.get());\n }\n root;\n trueChecked = $derived.by(() => {\n if (!this.root.group)\n return this.root.opts.checked.current;\n if (this.root.opts.value.current !== undefined &&\n this.root.group.opts.value.current.includes(this.root.opts.value.current)) {\n return true;\n }\n return false;\n });\n shouldRender = $derived.by(() => Boolean(this.root.trueName));\n constructor(root) {\n this.root = root;\n this.onfocus = this.onfocus.bind(this);\n }\n onfocus(_) {\n if (!isHTMLElement(this.root.opts.ref.current))\n return;\n this.root.opts.ref.current.focus();\n }\n props = $derived.by(() => ({\n type: \"checkbox\",\n checked: this.root.opts.checked.current === true,\n disabled: this.root.trueDisabled,\n required: this.root.trueRequired,\n name: this.root.trueName,\n value: this.root.opts.value.current,\n readonly: this.root.trueReadonly,\n onfocus: this.onfocus,\n }));\n}\nfunction getCheckboxDataState(checked, indeterminate) {\n if (indeterminate)\n return \"indeterminate\";\n return checked ? \"checked\" : \"unchecked\";\n}\n","<script lang=\"ts\">\n\timport { CheckboxInputState } from \"../checkbox.svelte.js\";\n\timport HiddenInput from \"../../utilities/hidden-input.svelte\";\n\n\tconst inputState = CheckboxInputState.create();\n</script>\n\n{#if inputState.shouldRender}\n\t<HiddenInput {...inputState.props} />\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { CheckboxRootProps } from \"../types.js\";\n\timport { CheckboxGroupContext, CheckboxRootState } from \"../checkbox.svelte.js\";\n\timport CheckboxInput from \"./checkbox-input.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { watch } from \"runed\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchecked = $bindable(false),\n\t\tref = $bindable(null),\n\t\tonCheckedChange,\n\t\tchildren,\n\t\tdisabled = false,\n\t\trequired = false,\n\t\tname = undefined,\n\t\tvalue = \"on\",\n\t\tid = createId(uid),\n\t\tindeterminate = $bindable(false),\n\t\tonIndeterminateChange,\n\t\tchild,\n\t\ttype = \"button\",\n\t\treadonly,\n\t\t...restProps\n\t}: CheckboxRootProps = $props();\n\n\tconst group = CheckboxGroupContext.getOr(null);\n\n\tif (group && value) {\n\t\tif (group.opts.value.current.includes(value)) {\n\t\t\tchecked = true;\n\t\t} else {\n\t\t\tchecked = false;\n\t\t}\n\t}\n\n\twatch.pre(\n\t\t() => value,\n\t\t() => {\n\t\t\tif (group && value) {\n\t\t\t\tif (group.opts.value.current.includes(value)) {\n\t\t\t\t\tchecked = true;\n\t\t\t\t} else {\n\t\t\t\t\tchecked = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t);\n\n\tconst rootState = CheckboxRootState.create(\n\t\t{\n\t\t\tchecked: boxWith(\n\t\t\t\t() => checked,\n\t\t\t\t(v) => {\n\t\t\t\t\tchecked = v;\n\t\t\t\t\tonCheckedChange?.(v);\n\t\t\t\t}\n\t\t\t),\n\t\t\tdisabled: boxWith(() => disabled ?? false),\n\t\t\trequired: boxWith(() => required),\n\t\t\tname: boxWith(() => name),\n\t\t\tvalue: boxWith(() => value),\n\t\t\tid: boxWith(() => id),\n\t\t\tref: boxWith(\n\t\t\t\t() => ref,\n\t\t\t\t(v) => (ref = v)\n\t\t\t),\n\t\t\tindeterminate: boxWith(\n\t\t\t\t() => indeterminate,\n\t\t\t\t(v) => {\n\t\t\t\t\tindeterminate = v;\n\t\t\t\t\tonIndeterminateChange?.(v);\n\t\t\t\t}\n\t\t\t),\n\t\t\ttype: boxWith(() => type),\n\t\t\treadonly: boxWith(() => Boolean(readonly)),\n\t\t},\n\t\tgroup\n\t);\n\n\tconst mergedProps = $derived(mergeProps({ ...restProps }, rootState.props));\n</script>\n\n{#if child}\n\t{@render child({\n\t\tprops: mergedProps,\n\t\t...rootState.snippetProps,\n\t})}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.(rootState.snippetProps)}\n\t</button>\n{/if}\n\n<CheckboxInput />\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M5 12h14\" }]];\n/**\n * @component @name Minus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNSAxMmgxNCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/minus\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"minus\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n\timport { Checkbox as CheckboxPrimitive } from \"bits-ui\";\n\timport CheckIcon from \"@lucide/svelte/icons/check\";\n\timport MinusIcon from \"@lucide/svelte/icons/minus\";\n\timport { cn } from \"$lib/utils.js\";\n\n\ttype CheckedState = boolean | \"indeterminate\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tchecked = $bindable<CheckedState>(false),\n\t\tonCheckedChange,\n\t\tclass: className,\n\t\tdisabled = false,\n\t\t...restProps\n\t}: {\n\t\tref?: HTMLButtonElement | null;\n\t\tchecked?: CheckedState;\n\t\tonCheckedChange?: (checked: CheckedState) => void;\n\t\tclass?: string;\n\t\tdisabled?: boolean;\n\t\t\"aria-label\"?: string;\n\t} = $props();\n\n\t// Split checked state into checked and indeterminate for bits-ui\n\tconst isChecked = $derived(checked === true);\n\tconst isIndeterminate = $derived(checked === \"indeterminate\");\n\n\tfunction handleCheckedChange(value: boolean) {\n\t\tconst newState: CheckedState = value;\n\t\tchecked = newState;\n\t\tonCheckedChange?.(newState);\n\t}\n\n\tfunction handleIndeterminateChange(value: boolean) {\n\t\tif (value) {\n\t\t\tchecked = \"indeterminate\";\n\t\t\tonCheckedChange?.(\"indeterminate\");\n\t\t}\n\t}\n</script>\n\n<CheckboxPrimitive.Root\n\tbind:ref\n\tchecked={isChecked}\n\tindeterminate={isIndeterminate}\n\tonCheckedChange={handleCheckedChange}\n\tonIndeterminateChange={handleIndeterminateChange}\n\t{disabled}\n\tclass={cn(\n\t\t\"peer size-4 shrink-0 rounded-[4px] border border-input dark:border-white bg-background shadow-sm transition-colors\",\n\t\t\"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring\",\n\t\t\"disabled:cursor-not-allowed disabled:opacity-50\",\n\t\t\"data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground\",\n\t\t\"data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:text-primary-foreground\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{#snippet children({ checked: isOn, indeterminate })}\n\t\t<span class=\"flex items-center justify-center text-current\">\n\t\t\t{#if indeterminate}\n\t\t\t\t<MinusIcon class=\"size-3\" />\n\t\t\t{:else if isOn}\n\t\t\t\t<CheckIcon class=\"size-3\" />\n\t\t\t{/if}\n\t\t</span>\n\t{/snippet}\n</CheckboxPrimitive.Root>\n","<script lang=\"ts\">\n\timport * as Tooltip from \"$lib/components/ui/tooltip\";\n\timport { formatDateTime, getNow } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\n\ttype TrendPoint = { timestamp: string; count: number };\n\n\tlet { trend = [], timezone }: {\n\t\ttrend: TrendPoint[];\n\t\ttimezone?: string;\n\t} = $props();\n\n\tconst tz = $derived(timezone ?? getTimezone());\n\n\t// Always 24 hours\n\tconst HOURS = 24;\n\tconst SCALE_MAX = 10; // Visual scale max - bars are relative to this\n\n\t// Build 24-hour data array, filling gaps with 0\n\tconst hourlyData = $derived(() => {\n\t\tconst nowDt = getNow(tz);\n\t\tconst result: { hour: Date; count: number }[] = [];\n\n\t\t// Create a map of hour -> count from trend data\n\t\tconst trendMap = new Map<string, number>();\n\t\tfor (const point of trend) {\n\t\t\tconst date = new Date(point.timestamp);\n\t\t\tconst key = `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}-${date.getHours()}`;\n\t\t\ttrendMap.set(key, (trendMap.get(key) || 0) + point.count);\n\t\t}\n\n\t\t// Generate last 24 hours\n\t\tfor (let i = HOURS - 1; i >= 0; i--) {\n\t\t\tconst hourDt = nowDt.minus({ hours: i }).startOf('hour');\n\t\t\tconst hour = hourDt.toJSDate();\n\t\t\tconst key = `${hour.getFullYear()}-${hour.getMonth()}-${hour.getDate()}-${hour.getHours()}`;\n\t\t\tresult.push({\n\t\t\t\thour,\n\t\t\t\tcount: trendMap.get(key) || 0\n\t\t\t});\n\t\t}\n\n\t\treturn result;\n\t});\n\n\t// Actual max from data\n\tconst actualMax = $derived(() => {\n\t\treturn Math.max(...hourlyData().map(d => d.count), 0);\n\t});\n\n\t// Scale max - at least SCALE_MAX, or higher if data exceeds it\n\tconst scaleMax = $derived(() => {\n\t\treturn Math.max(SCALE_MAX, actualMax());\n\t});\n\n\t// Dashed line position as percentage from bottom (actual max relative to scale max)\n\tconst linePositionPct = $derived(() => {\n\t\tif (actualMax() === 0) return 0;\n\t\treturn (actualMax() / scaleMax()) * 100;\n\t});\n</script>\n\n<div class=\"relative h-7 w-44 flex-shrink-0\">\n\t<!-- Solid bottom line -->\n\t<div class=\"absolute left-0 right-7 bottom-0 border-t border-muted-foreground/40\"></div>\n\n\t<!-- Dashed line at actual max -->\n\t{#if actualMax() > 0}\n\t\t<div\n\t\t\tclass=\"absolute left-0 right-7 h-[1px]\"\n\t\t\tstyle=\"bottom: {linePositionPct()}%; background: repeating-linear-gradient(to right, var(--muted-foreground) 0, var(--muted-foreground) 4px, transparent 4px, transparent 7px); opacity: 0.5;\"\n\t\t></div>\n\t\t<!-- Max count label -->\n\t\t<span\n\t\t\tclass=\"absolute right-1 text-[10px] w-[20px] text-muted-foreground tabular-nums\"\n\t\t\tstyle=\"bottom: calc({linePositionPct()}% - 6px);\"\n\t\t>\n\t\t\t{actualMax() > 999 ? (actualMax()/1000).toFixed(1) + \"k\" : actualMax()}\n\t\t</span>\n\t{/if}\n\n\t<!-- Bars container -->\n\t<div class=\"absolute inset-0 right-7 flex items-end gap-[1px]\">\n\t\t{#each hourlyData() as point, i (i)}\n\t\t\t{@const heightPct = scaleMax() > 0 ? (point.count / scaleMax()) * 100 : 0}\n\t\t\t{@const hasEvents = point.count > 0}\n\t\t\t<Tooltip.Root>\n\t\t\t\t<Tooltip.Trigger class=\"flex-1 h-full flex items-end justify-center\">\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"w-full max-w-[4px] rounded-[1px] transition-colors {hasEvents ? 'hover:opacity-80' : ''}\"\n\t\t\t\t\t\tstyle=\"height: {Math.max(2, heightPct)}%;{hasEvents ? ' background-color: var(--sidebar-accent);' : ''}\"\n\t\t\t\t\t></div>\n\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t<Tooltip.Content side=\"top\" class=\"py-2 px-3 !animate-none !transition-none\">\n\t\t\t\t\t<div class=\"font-medium text-sm\">{point.count} {point.count === 1 ? 'Event' : 'Events'}</div>\n\t\t\t\t\t<div class=\"text-muted-foreground text-xs\">\n\t\t\t\t\t\t{formatDateTime(point.hour, { timezone: tz, format: 'full' })}\n\t\t\t\t\t</div>\n\t\t\t\t</Tooltip.Content>\n\t\t\t</Tooltip.Root>\n\t\t{/each}\n\t</div>\n</div>\n","<script lang=\"ts\">\n\timport { onMount, onDestroy } from 'svelte';\n\timport { browser } from '$app/environment';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\timport { api } from '$lib/api';\n\timport * as Table from '$lib/components/ui/table';\n\timport { SearchBar } from '$lib/components/ui/search-bar';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { Checkbox } from '$lib/components/ui/checkbox';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport IssueTrendChart from '$lib/components/issue-trend-chart.svelte';\n\timport Archive from '@lucide/svelte/icons/archive';\n\timport { toast } from 'svelte-sonner';\n\timport ArchiveConfirmationDialog from '$lib/components/archive-confirmation-dialog.svelte';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { PaginationFooter } from '$lib/components/ui/pagination-footer';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { CalendarDate } from '@internationalized/date';\n\timport {\n\t\tparseTimeRangeFromUrl,\n\t\tgetResolvedTimeRange,\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport { calendarDateTimeToLuxon, toUTCISO, formatDateTime } from '$lib/utils/formatters';\n\timport {\n\t\tgetSortState,\n\t\tsetSortState,\n\t\thandleSortClick,\n\t\ttype SortDirection\n\t} from '$lib/utils/sort-storage';\n\timport Button from '$lib/components/ui/button/button.svelte';\n\n\tconst timezone = $derived(getTimezone());\n\n\t// Sort state (persisted to localStorage)\n\tconst SORT_STORAGE_KEY = 'issues';\n\tconst initialSort = getSortState(SORT_STORAGE_KEY, { field: 'last_seen', direction: 'desc' });\n\tlet sortField = $state(initialSort.field);\n\tlet sortDirection = $state<SortDirection>(initialSort.direction);\n\n\ttype ExceptionTrendPoint = {\n\t\ttimestamp: string;\n\t\tcount: number;\n\t};\n\n\ttype ExceptionGroup = {\n\t\texceptionHash: string;\n\t\tstackTrace: string;\n\t\tlastSeen: string;\n\t\tfirstSeen: string;\n\t\tcount: number;\n\t\thourlyTrend: ExceptionTrendPoint[];\n\t};\n\n\tlet exceptions = $state<ExceptionGroup[]>([]);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet archiving = $state(false);\n\tlet showArchiveDialog = $state(false);\n\n\t// Pagination State\n\tlet page = $state(1);\n\tlet pageSize = $state(20);\n\tlet total = $state(0);\n\tlet totalPages = $state(0);\n\n\t// Selection State\n\tlet selectedHashes = $state<Set<string>>(new Set());\n\n\t// Derived selection states\n\tconst selectedCount = $derived(selectedHashes.size);\n\tconst allSelected = $derived(exceptions.length > 0 && selectedHashes.size === exceptions.length);\n\tconst someSelected = $derived(selectedHashes.size > 0 && selectedHashes.size < exceptions.length);\n\n\t// Parse URL params on init\n\tfunction parseIssuesUrlParams() {\n\t\tif (!browser) return { preset: '24h', from: null, to: null, search: '', searchType: 'all' };\n\t\tconst params = new URLSearchParams(window.location.search);\n\t\tconst timeParams = parseTimeRangeFromUrl(timezone, '24h');\n\t\treturn {\n\t\t\t...timeParams,\n\t\t\tsearch: params.get('search') || '',\n\t\t\tsearchType: params.get('searchType') || 'all'\n\t\t};\n\t}\n\n\tconst initialUrlParams = parseIssuesUrlParams();\n\tconst initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n\t// Time range state\n\tlet selectedPreset = $state<string | null>(initialUrlParams.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\t// Search state (manual trigger only)\n\tlet searchQuery = $state(initialUrlParams.search);\n\tlet searchType = $state(initialUrlParams.searchType);\n\n\t// Search type options\n\tconst searchTypeOptions = [\n\t\t{ value: 'all', label: 'All' },\n\t\t{ value: 'issues', label: 'Issues' },\n\t\t{ value: 'messages', label: 'Messages' }\n\t];\n\n\t// Page size options\n\tconst pageSizeOptions = [\n\t\t{ value: '10', label: '10' },\n\t\t{ value: '20', label: '20' },\n\t\t{ value: '50', label: '50' },\n\t\t{ value: '100', label: '100' }\n\t];\n\n\t// Helper functions for date/time conversion\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = fromTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = toTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction updateIssuesUrl(pushToHistory = true) {\n\t\tconst params: Record<string, string | null | undefined> = {};\n\t\tif (selectedPreset) {\n\t\t\tparams.preset = selectedPreset;\n\t\t} else {\n\t\t\tparams.from = getFromDateTimeUTC();\n\t\t\tparams.to = getToDateTimeUTC();\n\t\t}\n\t\tif (searchQuery.trim()) params.search = searchQuery.trim();\n\t\tif (searchType !== 'all') params.searchType = searchType;\n\t\tupdateUrl(params, { pushToHistory });\n\t}\n\n\tasync function loadData(pushToHistory = true) {\n\t\tloading = true;\n\t\terror = '';\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\n\t\tupdateIssuesUrl(pushToHistory);\n\n\t\ttry {\n\t\t\t// Build orderBy with direction suffix for backend\n\t\t\tconst orderBy = sortDirection === 'asc' ? `${sortField}_asc` : sortField;\n\n\t\t\tconst requestBody = {\n\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\ttoDate: getToDateTimeUTC(),\n\t\t\t\torderBy,\n\t\t\t\tpagination: {\n\t\t\t\t\tpage: page,\n\t\t\t\t\tpageSize: pageSize\n\t\t\t\t},\n\t\t\t\tsearch: searchQuery.trim(),\n\t\t\t\tsearchType: searchType,\n\t\t\t\tincludeArchived: false\n\t\t\t};\n\n\t\t\tconst response = await api.post('/exception-stack-traces', requestBody, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\n\t\t\texceptions = response.data || [];\n\t\t\ttotal = response.pagination.total;\n\t\t\ttotalPages = response.pagination.totalPages;\n\n\t\t\t// Clear selection when data changes\n\t\t\tselectedHashes = new Set();\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\terror = e.message || 'Failed to load data';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handlePageChange(newPage: number) {\n\t\tif (newPage >= 1 && newPage <= totalPages) {\n\t\t\tpage = newPage;\n\t\t\tloadData(true);\n\t\t}\n\t}\n\n\tfunction handlePageSizeChange(newPageSize: number) {\n\t\tpageSize = newPageSize;\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\ttoDate = to.date;\n\t\tfromTime = from.time;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleSearch() {\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleSort(field: string) {\n\t\tconst newSort = handleSortClick(field, sortField, sortDirection);\n\t\tsortField = newSort.field;\n\t\tsortDirection = newSort.direction;\n\t\tsetSortState(SORT_STORAGE_KEY, newSort);\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handlePopState() {\n\t\tconst urlParams = parseIssuesUrlParams();\n\t\tconst range = getResolvedTimeRange(urlParams, timezone);\n\t\tselectedPreset = urlParams.preset;\n\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\tsearchQuery = urlParams.search;\n\t\tsearchType = urlParams.searchType;\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\t// Selection handlers\n\tfunction toggleSelectAll() {\n\t\tif (allSelected) {\n\t\t\tselectedHashes = new Set();\n\t\t} else {\n\t\t\tselectedHashes = new Set(exceptions.map((e) => e.exceptionHash));\n\t\t}\n\t}\n\n\tfunction toggleSelect(hash: string) {\n\t\tconst newSet = new Set(selectedHashes);\n\t\tif (newSet.has(hash)) {\n\t\t\tnewSet.delete(hash);\n\t\t} else {\n\t\t\tnewSet.add(hash);\n\t\t}\n\t\tselectedHashes = newSet;\n\t}\n\n\tfunction isSelected(hash: string): boolean {\n\t\treturn selectedHashes.has(hash);\n\t}\n\n\t// Archive handler\n\tasync function archiveSelected() {\n\t\tif (selectedHashes.size === 0) return;\n\n\t\tarchiving = true;\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t'/exception-stack-traces/archive',\n\t\t\t\t{\n\t\t\t\t\thashes: Array.from(selectedHashes)\n\t\t\t\t},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\ttoast.success('Successfully archived the Issue' + (selectedHashes.size > 1 ? 's' : ''), {\n\t\t\t\tposition: 'top-center'\n\t\t\t});\n\t\t\tselectedHashes = new Set();\n\t\t\tawait loadData();\n\t\t} catch (e: any) {\n\t\t\tconsole.error('Archive failed:', e);\n\t\t\terror = e.message || 'Failed to archive issues';\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tarchiving = false;\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\twindow.addEventListener('popstate', handlePopState);\n\t\tloadData(false);\n\t});\n\n\tonDestroy(() => {\n\t\tif (typeof window !== 'undefined') {\n\t\t\twindow.removeEventListener('popstate', handlePopState);\n\t\t}\n\t});\n</script>\n\n<div class=\"space-y-4\">\n\t<!-- Row 1: Title + TimeRangePicker -->\n\t<div class=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Issues</h2>\n\t\t<div class=\"w-full sm:w-auto\">\n\t\t\t<TimeRangePicker\n\t\t\t\tbind:fromDate\n\t\t\t\tbind:toDate\n\t\t\t\tbind:fromTime\n\t\t\t\tbind:toTime\n\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t/>\n\t\t</div>\n\t</div>\n\n\t<!-- Row 2: Search -->\n\t<SearchBar\n\t\tplaceholder=\"Search exceptions...\"\n\t\tbind:value={searchQuery}\n\t\tbind:typeValue={searchType}\n\t\ttypeOptions={searchTypeOptions}\n\t\tonSearch={handleSearch}\n\t\tdisabled={loading}\n\t/>\n\n\t<!-- Archive Toolbar - shown when items selected -->\n\t{#if selectedCount > 0}\n\t\t<div\n\t\t\tclass=\"flex animate-in items-center gap-3 rounded-lg border bg-muted/50 p-3 duration-200 fade-in slide-in-from-top-1\"\n\t\t>\n\t\t\t<span class=\"text-sm font-medium\"\n\t\t\t\t>{selectedCount} issue{selectedCount === 1 ? '' : 's'} selected</span\n\t\t\t>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tonclick={() => (showArchiveDialog = true)}\n\t\t\t\tdisabled={archiving}\n\t\t\t\tclass=\"gap-1.5\"\n\t\t\t>\n\t\t\t\t<Archive class=\"h-4 w-4\" />\n\t\t\t\tArchive\n\t\t\t</Button>\n\t\t\t<Button variant=\"ghost\" size=\"sm\" onclick={() => (selectedHashes = new Set())}>\n\t\t\t\tClear selection\n\t\t\t</Button>\n\t\t</div>\n\t{/if}\n\n\t<div class=\"overflow-hidden rounded-md border\">\n\t\t<Table.Root>\n\t\t\t{#if loading}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<Table.Cell colspan={5} class=\"h-48\">\n\t\t\t\t\t\t\t<div class=\"flex h-full items-center justify-center\">\n\t\t\t\t\t\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Body>\n\t\t\t{:else if error}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<Table.Cell colspan={5} class=\"h-24 text-center text-red-500\">\n\t\t\t\t\t\t\t{error}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Body>\n\t\t\t{:else if exceptions.length === 0}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<TableEmptyState colspan={5} message=\"No issues found.\" />\n\t\t\t\t</Table.Body>\n\t\t\t{:else}\n\t\t\t\t<Table.Header>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<Table.Head class=\"w-[40px] pl-4\">\n\t\t\t\t\t\t\t<Checkbox\n\t\t\t\t\t\t\t\tchecked={allSelected ? true : someSelected ? 'indeterminate' : false}\n\t\t\t\t\t\t\t\tonCheckedChange={toggleSelectAll}\n\t\t\t\t\t\t\t\taria-label=\"Select all\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</Table.Head>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Issue\"\n\t\t\t\t\t\t\ttooltip=\"The error message or exception that occurred\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Trend\"\n\t\t\t\t\t\t\ttooltip=\"Hourly occurrence pattern over the last 24h\"\n\t\t\t\t\t\t\tclass=\"w-[190px]\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Events\"\n\t\t\t\t\t\t\ttooltip=\"Total number of times this issue occurred in the selected range\"\n\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\tclass=\"w-[80px]\"\n\t\t\t\t\t\t\tsortField=\"count\"\n\t\t\t\t\t\t\tcurrentSortField={sortField}\n\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\tonSort={handleSort}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Last Seen\"\n\t\t\t\t\t\t\ttooltip=\"When this issue last occurred\"\n\t\t\t\t\t\t\tclass=\"w-[180px]\"\n\t\t\t\t\t\t\tsortField=\"last_seen\"\n\t\t\t\t\t\t\tcurrentSortField={sortField}\n\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\tonSort={handleSort}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Header>\n\t\t\t\t<Table.Body>\n\t\t\t\t\t{#each exceptions as exception (exception.exceptionHash)}\n\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\tclass=\"group cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\tdata-state={isSelected(exception.exceptionHash) ? 'selected' : undefined}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Table.Cell class=\"pl-4\" onclick={(e) => e.stopPropagation()}>\n\t\t\t\t\t\t\t\t<Checkbox\n\t\t\t\t\t\t\t\t\tchecked={isSelected(exception.exceptionHash)}\n\t\t\t\t\t\t\t\t\tonCheckedChange={() => toggleSelect(exception.exceptionHash)}\n\t\t\t\t\t\t\t\t\taria-label=\"Select row\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\tclass=\"max-w-[400px] truncate font-mono text-sm\"\n\t\t\t\t\t\t\t\ttitle={exception.stackTrace}\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/issues/${exception.exceptionHash}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span class=\"text-foreground\">{exception.stackTrace.split('\\n')[0]}</span>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/issues/${exception.exceptionHash}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<IssueTrendChart trend={exception.hourlyTrend || []} />\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\tclass=\"text-right font-medium tabular-nums\"\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/issues/${exception.exceptionHash}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{exception.count.toLocaleString()}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\tclass=\"text-muted-foreground\"\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/issues/${exception.exceptionHash}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{formatDateTime(exception.lastSeen, { timezone })}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t{/each}\n\t\t\t\t</Table.Body>\n\t\t\t{/if}\n\t\t</Table.Root>\n\t</div>\n\n\t<!-- Pagination Footer -->\n\t<PaginationFooter\n\t\tcurrentPage={page}\n\t\t{totalPages}\n\t\t{pageSize}\n\t\ttotalItems={total}\n\t\tonPageChange={handlePageChange}\n\t\tonPageSizeChange={handlePageSizeChange}\n\t\t{loading}\n\t\titemLabel=\"issue\"\n\t/>\n</div>\n\n<ArchiveConfirmationDialog\n\topen={showArchiveDialog}\n\tonOpenChange={(open) => (showArchiveDialog = open)}\n\tcount={selectedCount}\n\tonConfirm={archiveSelected}\n/>\n"],"names":["empty","snapshot","value","skip_warning","no_tojson","clone","cloned","path","paths","original","unwrapped","is_array","copy","i","element","get_prototype_of","object_prototype","key","checkboxAttrs","createBitsAttrs","CheckboxGroupContext","Context","CheckboxRootContext","CheckboxRootState","opts","group","attachRef","watch","$.snapshot","groupValue","checked","e","kbd.ENTER","kbd.SPACE","#toggle","getAriaChecked","boolToStr","boolToEmptyStrOrUndef","getCheckboxDataState","CheckboxInputState","#shouldRender","$.derived","root","_","isHTMLElement","indeterminate","inputState","HiddenInput","$$anchor","$.spread_props","$$render","consequent","uid","$.props_id","ref","disabled","required","name","id","$.prop","$$props","createId","type","restProps","$.rest_props","rootState","boxWith","v","mergedProps","mergeProps","$0","$.get","button","root_2","$.attribute_effect","$.snippet","node_2","$.noop","CheckboxInput","node_3","props","iconNode","Icon","load","authState","redirect","isChecked","isIndeterminate","handleCheckedChange","newState","handleIndeterminateChange","children","$$arg0","isOn","span","root_1","MinusIcon","CheckIcon","consequent_1","alternate","cn","CheckboxPrimitive_Root","$$value","trend","tz","getTimezone","HOURS","SCALE_MAX","hourlyData","nowDt","getNow","result","trendMap","point","date","hour","actualMax","d","scaleMax","linePositionPct","div","div_1","$.first_child","fragment","$.sibling","text","$.child","$.reset","$.set_style","$1","div_2","node","$.index","heightPct","hasEvents","Tooltip_Root","Tooltip_Trigger","div_3","root_4","$.set_class","$.append","Tooltip_Content","div_4","fragment_3","div_5","formatDateTime","timezone","SORT_STORAGE_KEY","initialSort","getSortState","sortField","$.state","$.proxy","sortDirection","exceptions","loading","error","archiving","showArchiveDialog","page","pageSize","total","totalPages","selectedHashes","selectedCount","allSelected","someSelected","parseIssuesUrlParams","params","parseTimeRangeFromUrl","initialUrlParams","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","searchQuery","searchType","searchTypeOptions","getFromDateTimeUTC","minute","luxonDt","calendarDateTimeToLuxon","toUTCISO","getToDateTimeUTC","updateIssuesUrl","pushToHistory","updateUrl","loadData","$.set","range","getTimeRangeFromPreset","orderBy","requestBody","response","api","projectsState","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleTimeRangeChange","from","to","preset","handleSearch","handleSort","field","newSort","handleSortClick","setSortState","handlePopState","urlParams","toggleSelectAll","toggleSelect","hash","newSet","isSelected","archiveSelected","toast","onMount","onDestroy","TimeRangePicker","SearchBar","node_1","Button","Archive","node_4","node_5","$.template_effect","$.set_text","Table_Root","Table_Body","Table_Row","Table_Cell","root_8","LoadingCircle","node_11","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","Table_Head","Checkbox","TracewayTableHeader","node_21","node_22","node_23","node_24","Table_Body_3","$.each","node_26","exception","Table_Row_3","Table_Cell_2","createRowClickHandler","Table_Cell_3","span_1","root_25","text_3","Table_Cell_4","IssueTrendChart","Table_Cell_5","Table_Cell_6","consequent_3","consequent_2","alternate_1","alternate_2","PaginationFooter","node_33","ArchiveConfirmationDialog","node_34","open"],"mappings":"0sDAWA,MAAMA,GAAQ,CAAA,EASP,SAASC,GAASC,EAAOC,EAAe,GAAOC,EAAY,GAAO,CAuBxE,OAAOC,GAAMH,EAAO,IAAI,IAAO,GAAIF,GAAO,KAAMI,CAAS,CAC1D,CAYA,SAASC,GAAMH,EAAOI,EAAQC,EAAMC,EAAOC,EAAW,KAAML,EAAY,GAAO,CAC9E,GAAI,OAAOF,GAAU,UAAYA,IAAU,KAAM,CAChD,IAAIQ,EAAYJ,EAAO,IAAIJ,CAAK,EAChC,GAAIQ,IAAc,OAAW,OAAOA,EAEpC,GAAIR,aAAiB,IAAK,OAAmC,IAAI,IAAIA,CAAK,EAC1E,GA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A,EAiIHqI,GAAAC,GAAA,4BACarH,CAAI,6BAChBG,CAAU,2BACVF,CAAQ,6BACGC,CAAK,gBACHwC,oBACIE,0BACjBhD,CAAO,yBA1LTnC,EAAG,WAAHA,GAAG,CAAA,EA+LH6J,GAAAC,GAAA,qBACMxH,CAAiB,gBACRyH,GAAItF,EAAMnC,EAAoByH,EAAI,EAAA,uBAC1CnH,CAAa,aACT0D,iBArMZ","x_google_ignoreList":[0,1,2,3,4]}
\ No newline at end of file
+{"version":3,"file":"14.7EC4zFK9.js","sources":["../../../../../../node_modules/svelte/src/internal/shared/clone.js","../../../../../../node_modules/bits-ui/dist/bits/checkbox/checkbox.svelte.js","../../../../../../node_modules/bits-ui/dist/bits/checkbox/components/checkbox-input.svelte","../../../../../../node_modules/bits-ui/dist/bits/checkbox/components/checkbox.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/minus.svelte","../../../../../../src/routes/issues/+page.ts","../../../../../../src/lib/components/ui/checkbox/checkbox.svelte","../../../../../../src/lib/components/issue-trend-chart.svelte","../../../../../../src/routes/issues/+page.svelte"],"sourcesContent":["/** @import { Snapshot } from './types' */\nimport { DEV } from 'esm-env';\nimport * as w from './warnings.js';\nimport { get_prototype_of, is_array, object_prototype } from './utils.js';\n\n/**\n * In dev, we keep track of which properties could not be cloned. In prod\n * we don't bother, but we keep a dummy array around so that the\n * signature stays the same\n * @type {string[]}\n */\nconst empty = [];\n\n/**\n * @template T\n * @param {T} value\n * @param {boolean} [skip_warning]\n * @param {boolean} [no_tojson]\n * @returns {Snapshot<T>}\n */\nexport function snapshot(value, skip_warning = false, no_tojson = false) {\n\tif (DEV && !skip_warning) {\n\t\t/** @type {string[]} */\n\t\tconst paths = [];\n\n\t\tconst copy = clone(value, new Map(), '', paths, null, no_tojson);\n\t\tif (paths.length === 1 && paths[0] === '') {\n\t\t\t// value could not be cloned\n\t\t\tw.state_snapshot_uncloneable();\n\t\t} else if (paths.length > 0) {\n\t\t\t// some properties could not be cloned\n\t\t\tconst slice = paths.length > 10 ? paths.slice(0, 7) : paths.slice(0, 10);\n\t\t\tconst excess = paths.length - slice.length;\n\n\t\t\tlet uncloned = slice.map((path) => `- <value>${path}`).join('\\n');\n\t\t\tif (excess > 0) uncloned += `\\n- ...and ${excess} more`;\n\n\t\t\tw.state_snapshot_uncloneable(uncloned);\n\t\t}\n\n\t\treturn copy;\n\t}\n\n\treturn clone(value, new Map(), '', empty, null, no_tojson);\n}\n\n/**\n * @template T\n * @param {T} value\n * @param {Map<T, Snapshot<T>>} cloned\n * @param {string} path\n * @param {string[]} paths\n * @param {null | T} [original] The original value, if `value` was produced from a `toJSON` call\n * @param {boolean} [no_tojson]\n * @returns {Snapshot<T>}\n */\nfunction clone(value, cloned, path, paths, original = null, no_tojson = false) {\n\tif (typeof value === 'object' && value !== null) {\n\t\tvar unwrapped = cloned.get(value);\n\t\tif (unwrapped !== undefined) return unwrapped;\n\n\t\tif (value instanceof Map) return /** @type {Snapshot<T>} */ (new Map(value));\n\t\tif (value instanceof Set) return /** @type {Snapshot<T>} */ (new Set(value));\n\n\t\tif (is_array(value)) {\n\t\t\tvar copy = /** @type {Snapshot<any>} */ (Array(value.length));\n\t\t\tcloned.set(value, copy);\n\n\t\t\tif (original !== null) {\n\t\t\t\tcloned.set(original, copy);\n\t\t\t}\n\n\t\t\tfor (var i = 0; i < value.length; i += 1) {\n\t\t\t\tvar element = value[i];\n\t\t\t\tif (i in value) {\n\t\t\t\t\tcopy[i] = clone(element, cloned, DEV ? `${path}[${i}]` : path, paths, null, no_tojson);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn copy;\n\t\t}\n\n\t\tif (get_prototype_of(value) === object_prototype) {\n\t\t\t/** @type {Snapshot<any>} */\n\t\t\tcopy = {};\n\t\t\tcloned.set(value, copy);\n\n\t\t\tif (original !== null) {\n\t\t\t\tcloned.set(original, copy);\n\t\t\t}\n\n\t\t\tfor (var key in value) {\n\t\t\t\tcopy[key] = clone(\n\t\t\t\t\t// @ts-expect-error\n\t\t\t\t\tvalue[key],\n\t\t\t\t\tcloned,\n\t\t\t\t\tDEV ? `${path}.${key}` : path,\n\t\t\t\t\tpaths,\n\t\t\t\t\tnull,\n\t\t\t\t\tno_tojson\n\t\t\t\t);\n\t\t\t}\n\n\t\t\treturn copy;\n\t\t}\n\n\t\tif (value instanceof Date) {\n\t\t\treturn /** @type {Snapshot<T>} */ (structuredClone(value));\n\t\t}\n\n\t\tif (typeof (/** @type {T & { toJSON?: any } } */ (value).toJSON) === 'function' && !no_tojson) {\n\t\t\treturn clone(\n\t\t\t\t/** @type {T & { toJSON(): any } } */ (value).toJSON(),\n\t\t\t\tcloned,\n\t\t\t\tDEV ? `${path}.toJSON()` : path,\n\t\t\t\tpaths,\n\t\t\t\t// Associate the instance with the toJSON clone\n\t\t\t\tvalue\n\t\t\t);\n\t\t}\n\t}\n\n\tif (value instanceof EventTarget) {\n\t\t// can't be cloned\n\t\treturn /** @type {Snapshot<T>} */ (value);\n\t}\n\n\ttry {\n\t\treturn /** @type {Snapshot<T>} */ (structuredClone(value));\n\t} catch (e) {\n\t\tif (DEV) {\n\t\t\tpaths.push(path);\n\t\t}\n\n\t\treturn /** @type {Snapshot<T>} */ (value);\n\t}\n}\n","import { attachRef } from \"svelte-toolbelt\";\nimport { Context, watch } from \"runed\";\nimport { boolToStr, createBitsAttrs, getAriaChecked, boolToEmptyStrOrUndef, } from \"../../internal/attrs.js\";\nimport { kbd } from \"../../internal/kbd.js\";\nimport { arraysAreEqual } from \"../../internal/arrays.js\";\nimport { isHTMLElement } from \"../../internal/is.js\";\nconst checkboxAttrs = createBitsAttrs({\n component: \"checkbox\",\n parts: [\"root\", \"group\", \"group-label\", \"input\"],\n});\nexport const CheckboxGroupContext = new Context(\"Checkbox.Group\");\nexport class CheckboxGroupState {\n static create(opts) {\n return CheckboxGroupContext.set(new CheckboxGroupState(opts));\n }\n opts;\n attachment;\n labelId = $state(undefined);\n constructor(opts) {\n this.opts = opts;\n this.attachment = attachRef(this.opts.ref);\n }\n addValue(checkboxValue) {\n if (!checkboxValue)\n return;\n if (!this.opts.value.current.includes(checkboxValue)) {\n const newValue = [...$state.snapshot(this.opts.value.current), checkboxValue];\n this.opts.value.current = newValue;\n if (arraysAreEqual(this.opts.value.current, newValue))\n return;\n this.opts.onValueChange.current(newValue);\n }\n }\n removeValue(checkboxValue) {\n if (!checkboxValue)\n return;\n const index = this.opts.value.current.indexOf(checkboxValue);\n if (index === -1)\n return;\n const newValue = this.opts.value.current.filter((v) => v !== checkboxValue);\n this.opts.value.current = newValue;\n if (arraysAreEqual(this.opts.value.current, newValue))\n return;\n this.opts.onValueChange.current(newValue);\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"group\",\n \"aria-labelledby\": this.labelId,\n \"data-disabled\": boolToEmptyStrOrUndef(this.opts.disabled.current),\n [checkboxAttrs.group]: \"\",\n ...this.attachment,\n }));\n}\nexport class CheckboxGroupLabelState {\n static create(opts) {\n return new CheckboxGroupLabelState(opts, CheckboxGroupContext.get());\n }\n opts;\n group;\n attachment;\n constructor(opts, group) {\n this.opts = opts;\n this.group = group;\n this.group.labelId = this.opts.id.current;\n this.attachment = attachRef(this.opts.ref);\n watch.pre(() => this.opts.id.current, (id) => {\n this.group.labelId = id;\n });\n }\n props = $derived.by(() => ({\n id: this.opts.id.current,\n \"data-disabled\": boolToEmptyStrOrUndef(this.group.opts.disabled.current),\n [checkboxAttrs[\"group-label\"]]: \"\",\n ...this.attachment,\n }));\n}\nconst CheckboxRootContext = new Context(\"Checkbox.Root\");\nexport class CheckboxRootState {\n static create(opts, group = null) {\n return CheckboxRootContext.set(new CheckboxRootState(opts, group));\n }\n opts;\n group;\n trueName = $derived.by(() => {\n if (this.group && this.group.opts.name.current)\n return this.group.opts.name.current;\n return this.opts.name.current;\n });\n trueRequired = $derived.by(() => {\n if (this.group && this.group.opts.required.current)\n return true;\n return this.opts.required.current;\n });\n trueDisabled = $derived.by(() => {\n if (this.group && this.group.opts.disabled.current)\n return true;\n return this.opts.disabled.current;\n });\n trueReadonly = $derived.by(() => {\n if (this.group && this.group.opts.readonly.current)\n return true;\n return this.opts.readonly.current;\n });\n attachment;\n constructor(opts, group) {\n this.opts = opts;\n this.group = group;\n this.attachment = attachRef(this.opts.ref);\n this.onkeydown = this.onkeydown.bind(this);\n this.onclick = this.onclick.bind(this);\n watch.pre([() => $state.snapshot(this.group?.opts.value.current), () => this.opts.value.current], ([groupValue, value]) => {\n if (!groupValue || !value)\n return;\n this.opts.checked.current = groupValue.includes(value);\n });\n watch.pre(() => this.opts.checked.current, (checked) => {\n if (!this.group)\n return;\n if (checked) {\n this.group?.addValue(this.opts.value.current);\n }\n else {\n this.group?.removeValue(this.opts.value.current);\n }\n });\n }\n onkeydown(e) {\n if (this.trueDisabled || this.trueReadonly)\n return;\n if (e.key === kbd.ENTER)\n e.preventDefault();\n if (e.key === kbd.SPACE) {\n e.preventDefault();\n this.#toggle();\n }\n }\n #toggle() {\n if (this.opts.indeterminate.current) {\n this.opts.indeterminate.current = false;\n this.opts.checked.current = true;\n }\n else {\n this.opts.checked.current = !this.opts.checked.current;\n }\n }\n onclick(e) {\n if (this.trueDisabled || this.trueReadonly)\n return;\n if (this.opts.type.current === \"submit\") {\n this.#toggle();\n return;\n }\n e.preventDefault();\n this.#toggle();\n }\n snippetProps = $derived.by(() => ({\n checked: this.opts.checked.current,\n indeterminate: this.opts.indeterminate.current,\n }));\n props = $derived.by(() => ({\n id: this.opts.id.current,\n role: \"checkbox\",\n type: this.opts.type.current,\n disabled: this.trueDisabled,\n \"aria-checked\": getAriaChecked(this.opts.checked.current, this.opts.indeterminate.current),\n \"aria-required\": boolToStr(this.trueRequired),\n \"aria-readonly\": boolToStr(this.trueReadonly),\n \"data-disabled\": boolToEmptyStrOrUndef(this.trueDisabled),\n \"data-readonly\": boolToEmptyStrOrUndef(this.trueReadonly),\n \"data-state\": getCheckboxDataState(this.opts.checked.current, this.opts.indeterminate.current),\n [checkboxAttrs.root]: \"\",\n //\n onclick: this.onclick,\n onkeydown: this.onkeydown,\n ...this.attachment,\n }));\n}\nexport class CheckboxInputState {\n static create() {\n return new CheckboxInputState(CheckboxRootContext.get());\n }\n root;\n trueChecked = $derived.by(() => {\n if (!this.root.group)\n return this.root.opts.checked.current;\n if (this.root.opts.value.current !== undefined &&\n this.root.group.opts.value.current.includes(this.root.opts.value.current)) {\n return true;\n }\n return false;\n });\n shouldRender = $derived.by(() => Boolean(this.root.trueName));\n constructor(root) {\n this.root = root;\n this.onfocus = this.onfocus.bind(this);\n }\n onfocus(_) {\n if (!isHTMLElement(this.root.opts.ref.current))\n return;\n this.root.opts.ref.current.focus();\n }\n props = $derived.by(() => ({\n type: \"checkbox\",\n checked: this.root.opts.checked.current === true,\n disabled: this.root.trueDisabled,\n required: this.root.trueRequired,\n name: this.root.trueName,\n value: this.root.opts.value.current,\n readonly: this.root.trueReadonly,\n onfocus: this.onfocus,\n }));\n}\nfunction getCheckboxDataState(checked, indeterminate) {\n if (indeterminate)\n return \"indeterminate\";\n return checked ? \"checked\" : \"unchecked\";\n}\n","<script lang=\"ts\">\n\timport { CheckboxInputState } from \"../checkbox.svelte.js\";\n\timport HiddenInput from \"../../utilities/hidden-input.svelte\";\n\n\tconst inputState = CheckboxInputState.create();\n</script>\n\n{#if inputState.shouldRender}\n\t<HiddenInput {...inputState.props} />\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { CheckboxRootProps } from \"../types.js\";\n\timport { CheckboxGroupContext, CheckboxRootState } from \"../checkbox.svelte.js\";\n\timport CheckboxInput from \"./checkbox-input.svelte\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport { watch } from \"runed\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchecked = $bindable(false),\n\t\tref = $bindable(null),\n\t\tonCheckedChange,\n\t\tchildren,\n\t\tdisabled = false,\n\t\trequired = false,\n\t\tname = undefined,\n\t\tvalue = \"on\",\n\t\tid = createId(uid),\n\t\tindeterminate = $bindable(false),\n\t\tonIndeterminateChange,\n\t\tchild,\n\t\ttype = \"button\",\n\t\treadonly,\n\t\t...restProps\n\t}: CheckboxRootProps = $props();\n\n\tconst group = CheckboxGroupContext.getOr(null);\n\n\tif (group && value) {\n\t\tif (group.opts.value.current.includes(value)) {\n\t\t\tchecked = true;\n\t\t} else {\n\t\t\tchecked = false;\n\t\t}\n\t}\n\n\twatch.pre(\n\t\t() => value,\n\t\t() => {\n\t\t\tif (group && value) {\n\t\t\t\tif (group.opts.value.current.includes(value)) {\n\t\t\t\t\tchecked = true;\n\t\t\t\t} else {\n\t\t\t\t\tchecked = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t);\n\n\tconst rootState = CheckboxRootState.create(\n\t\t{\n\t\t\tchecked: boxWith(\n\t\t\t\t() => checked,\n\t\t\t\t(v) => {\n\t\t\t\t\tchecked = v;\n\t\t\t\t\tonCheckedChange?.(v);\n\t\t\t\t}\n\t\t\t),\n\t\t\tdisabled: boxWith(() => disabled ?? false),\n\t\t\trequired: boxWith(() => required),\n\t\t\tname: boxWith(() => name),\n\t\t\tvalue: boxWith(() => value),\n\t\t\tid: boxWith(() => id),\n\t\t\tref: boxWith(\n\t\t\t\t() => ref,\n\t\t\t\t(v) => (ref = v)\n\t\t\t),\n\t\t\tindeterminate: boxWith(\n\t\t\t\t() => indeterminate,\n\t\t\t\t(v) => {\n\t\t\t\t\tindeterminate = v;\n\t\t\t\t\tonIndeterminateChange?.(v);\n\t\t\t\t}\n\t\t\t),\n\t\t\ttype: boxWith(() => type),\n\t\t\treadonly: boxWith(() => Boolean(readonly)),\n\t\t},\n\t\tgroup\n\t);\n\n\tconst mergedProps = $derived(mergeProps({ ...restProps }, rootState.props));\n</script>\n\n{#if child}\n\t{@render child({\n\t\tprops: mergedProps,\n\t\t...rootState.snippetProps,\n\t})}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.(rootState.snippetProps)}\n\t</button>\n{/if}\n\n<CheckboxInput />\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M5 12h14\" }]];\n/**\n * @component @name Minus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNSAxMmgxNCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/minus\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"minus\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n\timport { Checkbox as CheckboxPrimitive } from \"bits-ui\";\n\timport CheckIcon from \"@lucide/svelte/icons/check\";\n\timport MinusIcon from \"@lucide/svelte/icons/minus\";\n\timport { cn } from \"$lib/utils.js\";\n\n\ttype CheckedState = boolean | \"indeterminate\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tchecked = $bindable<CheckedState>(false),\n\t\tonCheckedChange,\n\t\tclass: className,\n\t\tdisabled = false,\n\t\t...restProps\n\t}: {\n\t\tref?: HTMLButtonElement | null;\n\t\tchecked?: CheckedState;\n\t\tonCheckedChange?: (checked: CheckedState) => void;\n\t\tclass?: string;\n\t\tdisabled?: boolean;\n\t\t\"aria-label\"?: string;\n\t} = $props();\n\n\t// Split checked state into checked and indeterminate for bits-ui\n\tconst isChecked = $derived(checked === true);\n\tconst isIndeterminate = $derived(checked === \"indeterminate\");\n\n\tfunction handleCheckedChange(value: boolean) {\n\t\tconst newState: CheckedState = value;\n\t\tchecked = newState;\n\t\tonCheckedChange?.(newState);\n\t}\n\n\tfunction handleIndeterminateChange(value: boolean) {\n\t\tif (value) {\n\t\t\tchecked = \"indeterminate\";\n\t\t\tonCheckedChange?.(\"indeterminate\");\n\t\t}\n\t}\n</script>\n\n<CheckboxPrimitive.Root\n\tbind:ref\n\tchecked={isChecked}\n\tindeterminate={isIndeterminate}\n\tonCheckedChange={handleCheckedChange}\n\tonIndeterminateChange={handleIndeterminateChange}\n\t{disabled}\n\tclass={cn(\n\t\t\"peer size-4 shrink-0 rounded-[4px] border border-input dark:border-white bg-background shadow-sm transition-colors\",\n\t\t\"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring\",\n\t\t\"disabled:cursor-not-allowed disabled:opacity-50\",\n\t\t\"data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=checked]:text-primary-foreground\",\n\t\t\"data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary data-[state=indeterminate]:text-primary-foreground\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{#snippet children({ checked: isOn, indeterminate })}\n\t\t<span class=\"flex items-center justify-center text-current\">\n\t\t\t{#if indeterminate}\n\t\t\t\t<MinusIcon class=\"size-3\" />\n\t\t\t{:else if isOn}\n\t\t\t\t<CheckIcon class=\"size-3\" />\n\t\t\t{/if}\n\t\t</span>\n\t{/snippet}\n</CheckboxPrimitive.Root>\n","<script lang=\"ts\">\n\timport * as Tooltip from \"$lib/components/ui/tooltip\";\n\timport { formatDateTime, getNow } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\n\ttype TrendPoint = { timestamp: string; count: number };\n\n\tlet { trend = [], timezone }: {\n\t\ttrend: TrendPoint[];\n\t\ttimezone?: string;\n\t} = $props();\n\n\tconst tz = $derived(timezone ?? getTimezone());\n\n\t// Always 24 hours\n\tconst HOURS = 24;\n\tconst SCALE_MAX = 10; // Visual scale max - bars are relative to this\n\n\t// Build 24-hour data array, filling gaps with 0\n\tconst hourlyData = $derived(() => {\n\t\tconst nowDt = getNow(tz);\n\t\tconst result: { hour: Date; count: number }[] = [];\n\n\t\t// Create a map of hour -> count from trend data\n\t\tconst trendMap = new Map<string, number>();\n\t\tfor (const point of trend) {\n\t\t\tconst date = new Date(point.timestamp);\n\t\t\tconst key = `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}-${date.getHours()}`;\n\t\t\ttrendMap.set(key, (trendMap.get(key) || 0) + point.count);\n\t\t}\n\n\t\t// Generate last 24 hours\n\t\tfor (let i = HOURS - 1; i >= 0; i--) {\n\t\t\tconst hourDt = nowDt.minus({ hours: i }).startOf('hour');\n\t\t\tconst hour = hourDt.toJSDate();\n\t\t\tconst key = `${hour.getFullYear()}-${hour.getMonth()}-${hour.getDate()}-${hour.getHours()}`;\n\t\t\tresult.push({\n\t\t\t\thour,\n\t\t\t\tcount: trendMap.get(key) || 0\n\t\t\t});\n\t\t}\n\n\t\treturn result;\n\t});\n\n\t// Actual max from data\n\tconst actualMax = $derived(() => {\n\t\treturn Math.max(...hourlyData().map(d => d.count), 0);\n\t});\n\n\t// Scale max - at least SCALE_MAX, or higher if data exceeds it\n\tconst scaleMax = $derived(() => {\n\t\treturn Math.max(SCALE_MAX, actualMax());\n\t});\n\n\t// Dashed line position as percentage from bottom (actual max relative to scale max)\n\tconst linePositionPct = $derived(() => {\n\t\tif (actualMax() === 0) return 0;\n\t\treturn (actualMax() / scaleMax()) * 100;\n\t});\n</script>\n\n<div class=\"relative h-7 w-44 flex-shrink-0\">\n\t<!-- Solid bottom line -->\n\t<div class=\"absolute left-0 right-7 bottom-0 border-t border-muted-foreground/40\"></div>\n\n\t<!-- Dashed line at actual max -->\n\t{#if actualMax() > 0}\n\t\t<div\n\t\t\tclass=\"absolute left-0 right-7 h-[1px]\"\n\t\t\tstyle=\"bottom: {linePositionPct()}%; background: repeating-linear-gradient(to right, var(--muted-foreground) 0, var(--muted-foreground) 4px, transparent 4px, transparent 7px); opacity: 0.5;\"\n\t\t></div>\n\t\t<!-- Max count label -->\n\t\t<span\n\t\t\tclass=\"absolute right-1 text-[10px] w-[20px] text-muted-foreground tabular-nums\"\n\t\t\tstyle=\"bottom: calc({linePositionPct()}% - 6px);\"\n\t\t>\n\t\t\t{actualMax() > 999 ? (actualMax()/1000).toFixed(1) + \"k\" : actualMax()}\n\t\t</span>\n\t{/if}\n\n\t<!-- Bars container -->\n\t<div class=\"absolute inset-0 right-7 flex items-end gap-[1px]\">\n\t\t{#each hourlyData() as point, i (i)}\n\t\t\t{@const heightPct = scaleMax() > 0 ? (point.count / scaleMax()) * 100 : 0}\n\t\t\t{@const hasEvents = point.count > 0}\n\t\t\t<Tooltip.Root>\n\t\t\t\t<Tooltip.Trigger class=\"flex-1 h-full flex items-end justify-center\">\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass=\"w-full max-w-[4px] rounded-[1px] transition-colors {hasEvents ? 'hover:opacity-80' : ''}\"\n\t\t\t\t\t\tstyle=\"height: {Math.max(2, heightPct)}%;{hasEvents ? ' background-color: var(--sidebar-accent);' : ''}\"\n\t\t\t\t\t></div>\n\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t<Tooltip.Content side=\"top\" class=\"py-2 px-3 !animate-none !transition-none\">\n\t\t\t\t\t<div class=\"font-medium text-sm\">{point.count} {point.count === 1 ? 'Event' : 'Events'}</div>\n\t\t\t\t\t<div class=\"text-muted-foreground text-xs\">\n\t\t\t\t\t\t{formatDateTime(point.hour, { timezone: tz, format: 'full' })}\n\t\t\t\t\t</div>\n\t\t\t\t</Tooltip.Content>\n\t\t\t</Tooltip.Root>\n\t\t{/each}\n\t</div>\n</div>\n","<script lang=\"ts\">\n\timport { onMount, onDestroy } from 'svelte';\n\timport { browser } from '$app/environment';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\timport { api } from '$lib/api';\n\timport * as Table from '$lib/components/ui/table';\n\timport { SearchBar } from '$lib/components/ui/search-bar';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { Checkbox } from '$lib/components/ui/checkbox';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport IssueTrendChart from '$lib/components/issue-trend-chart.svelte';\n\timport Archive from '@lucide/svelte/icons/archive';\n\timport { toast } from 'svelte-sonner';\n\timport ArchiveConfirmationDialog from '$lib/components/archive-confirmation-dialog.svelte';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { PaginationFooter } from '$lib/components/ui/pagination-footer';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { CalendarDate } from '@internationalized/date';\n\timport {\n\t\tparseTimeRangeFromUrl,\n\t\tgetResolvedTimeRange,\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport { calendarDateTimeToLuxon, toUTCISO, formatDateTime } from '$lib/utils/formatters';\n\timport {\n\t\tgetSortState,\n\t\tsetSortState,\n\t\thandleSortClick,\n\t\ttype SortDirection\n\t} from '$lib/utils/sort-storage';\n\timport Button from '$lib/components/ui/button/button.svelte';\n\n\tconst timezone = $derived(getTimezone());\n\n\t// Sort state (persisted to localStorage)\n\tconst SORT_STORAGE_KEY = 'issues';\n\tconst initialSort = getSortState(SORT_STORAGE_KEY, { field: 'last_seen', direction: 'desc' });\n\tlet sortField = $state(initialSort.field);\n\tlet sortDirection = $state<SortDirection>(initialSort.direction);\n\n\ttype ExceptionTrendPoint = {\n\t\ttimestamp: string;\n\t\tcount: number;\n\t};\n\n\ttype ExceptionGroup = {\n\t\texceptionHash: string;\n\t\tstackTrace: string;\n\t\tlastSeen: string;\n\t\tfirstSeen: string;\n\t\tcount: number;\n\t\thourlyTrend: ExceptionTrendPoint[];\n\t};\n\n\tlet exceptions = $state<ExceptionGroup[]>([]);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet archiving = $state(false);\n\tlet showArchiveDialog = $state(false);\n\n\t// Pagination State\n\tlet page = $state(1);\n\tlet pageSize = $state(20);\n\tlet total = $state(0);\n\tlet totalPages = $state(0);\n\n\t// Selection State\n\tlet selectedHashes = $state<Set<string>>(new Set());\n\n\t// Derived selection states\n\tconst selectedCount = $derived(selectedHashes.size);\n\tconst allSelected = $derived(exceptions.length > 0 && selectedHashes.size === exceptions.length);\n\tconst someSelected = $derived(selectedHashes.size > 0 && selectedHashes.size < exceptions.length);\n\n\t// Parse URL params on init\n\tfunction parseIssuesUrlParams() {\n\t\tif (!browser) return { preset: '24h', from: null, to: null, search: '', searchType: 'all' };\n\t\tconst params = new URLSearchParams(window.location.search);\n\t\tconst timeParams = parseTimeRangeFromUrl(timezone, '24h');\n\t\treturn {\n\t\t\t...timeParams,\n\t\t\tsearch: params.get('search') || '',\n\t\t\tsearchType: params.get('searchType') || 'all'\n\t\t};\n\t}\n\n\tconst initialUrlParams = parseIssuesUrlParams();\n\tconst initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n\t// Time range state\n\tlet selectedPreset = $state<string | null>(initialUrlParams.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\t// Search state (manual trigger only)\n\tlet searchQuery = $state(initialUrlParams.search);\n\tlet searchType = $state(initialUrlParams.searchType);\n\n\t// Search type options\n\tconst searchTypeOptions = [\n\t\t{ value: 'all', label: 'All' },\n\t\t{ value: 'issues', label: 'Issues' },\n\t\t{ value: 'messages', label: 'Messages' }\n\t];\n\n\t// Page size options\n\tconst pageSizeOptions = [\n\t\t{ value: '10', label: '10' },\n\t\t{ value: '20', label: '20' },\n\t\t{ value: '50', label: '50' },\n\t\t{ value: '100', label: '100' }\n\t];\n\n\t// Helper functions for date/time conversion\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = fromTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = toTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction updateIssuesUrl(pushToHistory = true) {\n\t\tconst params: Record<string, string | null | undefined> = {};\n\t\tif (selectedPreset) {\n\t\t\tparams.preset = selectedPreset;\n\t\t} else {\n\t\t\tparams.from = getFromDateTimeUTC();\n\t\t\tparams.to = getToDateTimeUTC();\n\t\t}\n\t\tif (searchQuery.trim()) params.search = searchQuery.trim();\n\t\tif (searchType !== 'all') params.searchType = searchType;\n\t\tupdateUrl(params, { pushToHistory });\n\t}\n\n\tasync function loadData(pushToHistory = true) {\n\t\tloading = true;\n\t\terror = '';\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\n\t\tupdateIssuesUrl(pushToHistory);\n\n\t\ttry {\n\t\t\t// Build orderBy with direction suffix for backend\n\t\t\tconst orderBy = sortDirection === 'asc' ? `${sortField}_asc` : sortField;\n\n\t\t\tconst requestBody = {\n\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\ttoDate: getToDateTimeUTC(),\n\t\t\t\torderBy,\n\t\t\t\tpagination: {\n\t\t\t\t\tpage: page,\n\t\t\t\t\tpageSize: pageSize\n\t\t\t\t},\n\t\t\t\tsearch: searchQuery.trim(),\n\t\t\t\tsearchType: searchType,\n\t\t\t\tincludeArchived: false\n\t\t\t};\n\n\t\t\tconst response = await api.post('/exception-stack-traces', requestBody, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\n\t\t\texceptions = response.data || [];\n\t\t\ttotal = response.pagination.total;\n\t\t\ttotalPages = response.pagination.totalPages;\n\n\t\t\t// Clear selection when data changes\n\t\t\tselectedHashes = new Set();\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\terror = e.message || 'Failed to load data';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handlePageChange(newPage: number) {\n\t\tif (newPage >= 1 && newPage <= totalPages) {\n\t\t\tpage = newPage;\n\t\t\tloadData(true);\n\t\t}\n\t}\n\n\tfunction handlePageSizeChange(newPageSize: number) {\n\t\tpageSize = newPageSize;\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\ttoDate = to.date;\n\t\tfromTime = from.time;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleSearch() {\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleSort(field: string) {\n\t\tconst newSort = handleSortClick(field, sortField, sortDirection);\n\t\tsortField = newSort.field;\n\t\tsortDirection = newSort.direction;\n\t\tsetSortState(SORT_STORAGE_KEY, newSort);\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handlePopState() {\n\t\tconst urlParams = parseIssuesUrlParams();\n\t\tconst range = getResolvedTimeRange(urlParams, timezone);\n\t\tselectedPreset = urlParams.preset;\n\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\tsearchQuery = urlParams.search;\n\t\tsearchType = urlParams.searchType;\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\t// Selection handlers\n\tfunction toggleSelectAll() {\n\t\tif (allSelected) {\n\t\t\tselectedHashes = new Set();\n\t\t} else {\n\t\t\tselectedHashes = new Set(exceptions.map((e) => e.exceptionHash));\n\t\t}\n\t}\n\n\tfunction toggleSelect(hash: string) {\n\t\tconst newSet = new Set(selectedHashes);\n\t\tif (newSet.has(hash)) {\n\t\t\tnewSet.delete(hash);\n\t\t} else {\n\t\t\tnewSet.add(hash);\n\t\t}\n\t\tselectedHashes = newSet;\n\t}\n\n\tfunction isSelected(hash: string): boolean {\n\t\treturn selectedHashes.has(hash);\n\t}\n\n\t// Archive handler\n\tasync function archiveSelected() {\n\t\tif (selectedHashes.size === 0) return;\n\n\t\tarchiving = true;\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t'/exception-stack-traces/archive',\n\t\t\t\t{\n\t\t\t\t\thashes: Array.from(selectedHashes)\n\t\t\t\t},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\ttoast.success('Successfully archived the Issue' + (selectedHashes.size > 1 ? 's' : ''), {\n\t\t\t\tposition: 'top-center'\n\t\t\t});\n\t\t\tselectedHashes = new Set();\n\t\t\tawait loadData();\n\t\t} catch (e: any) {\n\t\t\tconsole.error('Archive failed:', e);\n\t\t\terror = e.message || 'Failed to archive issues';\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tarchiving = false;\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\twindow.addEventListener('popstate', handlePopState);\n\t\tloadData(false);\n\t});\n\n\tonDestroy(() => {\n\t\tif (typeof window !== 'undefined') {\n\t\t\twindow.removeEventListener('popstate', handlePopState);\n\t\t}\n\t});\n</script>\n\n<div class=\"space-y-4\">\n\t<!-- Row 1: Title + TimeRangePicker -->\n\t<div class=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Issues</h2>\n\t\t<div class=\"w-full sm:w-auto\">\n\t\t\t<TimeRangePicker\n\t\t\t\tbind:fromDate\n\t\t\t\tbind:toDate\n\t\t\t\tbind:fromTime\n\t\t\t\tbind:toTime\n\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t/>\n\t\t</div>\n\t</div>\n\n\t<!-- Row 2: Search -->\n\t<SearchBar\n\t\tplaceholder=\"Search exceptions...\"\n\t\tbind:value={searchQuery}\n\t\tbind:typeValue={searchType}\n\t\ttypeOptions={searchTypeOptions}\n\t\tonSearch={handleSearch}\n\t\tdisabled={loading}\n\t/>\n\n\t<!-- Archive Toolbar - shown when items selected -->\n\t{#if selectedCount > 0}\n\t\t<div\n\t\t\tclass=\"flex animate-in items-center gap-3 rounded-lg border bg-muted/50 p-3 duration-200 fade-in slide-in-from-top-1\"\n\t\t>\n\t\t\t<span class=\"text-sm font-medium\"\n\t\t\t\t>{selectedCount} issue{selectedCount === 1 ? '' : 's'} selected</span\n\t\t\t>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tsize=\"sm\"\n\t\t\t\tonclick={() => (showArchiveDialog = true)}\n\t\t\t\tdisabled={archiving}\n\t\t\t\tclass=\"gap-1.5\"\n\t\t\t>\n\t\t\t\t<Archive class=\"h-4 w-4\" />\n\t\t\t\tArchive\n\t\t\t</Button>\n\t\t\t<Button variant=\"ghost\" size=\"sm\" onclick={() => (selectedHashes = new Set())}>\n\t\t\t\tClear selection\n\t\t\t</Button>\n\t\t</div>\n\t{/if}\n\n\t<div class=\"overflow-hidden rounded-md border\">\n\t\t<Table.Root>\n\t\t\t{#if loading}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<Table.Cell colspan={5} class=\"h-48\">\n\t\t\t\t\t\t\t<div class=\"flex h-full items-center justify-center\">\n\t\t\t\t\t\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Body>\n\t\t\t{:else if error}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<Table.Cell colspan={5} class=\"h-24 text-center text-red-500\">\n\t\t\t\t\t\t\t{error}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Body>\n\t\t\t{:else if exceptions.length === 0}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<TableEmptyState colspan={5} message=\"No issues found.\" />\n\t\t\t\t</Table.Body>\n\t\t\t{:else}\n\t\t\t\t<Table.Header>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<Table.Head class=\"w-[40px] pl-4\">\n\t\t\t\t\t\t\t<Checkbox\n\t\t\t\t\t\t\t\tchecked={allSelected ? true : someSelected ? 'indeterminate' : false}\n\t\t\t\t\t\t\t\tonCheckedChange={toggleSelectAll}\n\t\t\t\t\t\t\t\taria-label=\"Select all\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</Table.Head>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Issue\"\n\t\t\t\t\t\t\ttooltip=\"The error message or exception that occurred\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Trend\"\n\t\t\t\t\t\t\ttooltip=\"Hourly occurrence pattern over the last 24h\"\n\t\t\t\t\t\t\tclass=\"w-[190px]\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Events\"\n\t\t\t\t\t\t\ttooltip=\"Total number of times this issue occurred in the selected range\"\n\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\tclass=\"w-[80px]\"\n\t\t\t\t\t\t\tsortField=\"count\"\n\t\t\t\t\t\t\tcurrentSortField={sortField}\n\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\tonSort={handleSort}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Last Seen\"\n\t\t\t\t\t\t\ttooltip=\"When this issue last occurred\"\n\t\t\t\t\t\t\tclass=\"w-[180px]\"\n\t\t\t\t\t\t\tsortField=\"last_seen\"\n\t\t\t\t\t\t\tcurrentSortField={sortField}\n\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\tonSort={handleSort}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Header>\n\t\t\t\t<Table.Body>\n\t\t\t\t\t{#each exceptions as exception (exception.exceptionHash)}\n\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\tclass=\"group cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\tdata-state={isSelected(exception.exceptionHash) ? 'selected' : undefined}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Table.Cell class=\"pl-4\" onclick={(e) => e.stopPropagation()}>\n\t\t\t\t\t\t\t\t<Checkbox\n\t\t\t\t\t\t\t\t\tchecked={isSelected(exception.exceptionHash)}\n\t\t\t\t\t\t\t\t\tonCheckedChange={() => toggleSelect(exception.exceptionHash)}\n\t\t\t\t\t\t\t\t\taria-label=\"Select row\"\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\tclass=\"max-w-[400px] truncate font-mono text-sm\"\n\t\t\t\t\t\t\t\ttitle={exception.stackTrace}\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/issues/${exception.exceptionHash}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span class=\"text-foreground\">{exception.stackTrace.split('\\n')[0]}</span>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/issues/${exception.exceptionHash}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<IssueTrendChart trend={exception.hourlyTrend || []} />\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\tclass=\"text-right font-medium tabular-nums\"\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/issues/${exception.exceptionHash}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{exception.count.toLocaleString()}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\tclass=\"text-muted-foreground\"\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/issues/${exception.exceptionHash}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{formatDateTime(exception.lastSeen, { timezone })}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t{/each}\n\t\t\t\t</Table.Body>\n\t\t\t{/if}\n\t\t</Table.Root>\n\t</div>\n\n\t<!-- Pagination Footer -->\n\t<PaginationFooter\n\t\tcurrentPage={page}\n\t\t{totalPages}\n\t\t{pageSize}\n\t\ttotalItems={total}\n\t\tonPageChange={handlePageChange}\n\t\tonPageSizeChange={handlePageSizeChange}\n\t\t{loading}\n\t\titemLabel=\"issue\"\n\t/>\n</div>\n\n<ArchiveConfirmationDialog\n\topen={showArchiveDialog}\n\tonOpenChange={(open) => (showArchiveDialog = open)}\n\tcount={selectedCount}\n\tonConfirm={archiveSelected}\n/>\n"],"names":["empty","snapshot","value","skip_warning","no_tojson","clone","cloned","path","paths","original","unwrapped","is_array","copy","i","element","get_prototype_of","object_prototype","key","checkboxAttrs","createBitsAttrs","CheckboxGroupContext","Context","CheckboxRootContext","CheckboxRootState","opts","group","attachRef","watch","$.snapshot","groupValue","checked","e","kbd.ENTER","kbd.SPACE","#toggle","getAriaChecked","boolToStr","boolToEmptyStrOrUndef","getCheckboxDataState","CheckboxInputState","#shouldRender","$.derived","root","_","isHTMLElement","indeterminate","inputState","HiddenInput","$$anchor","$.spread_props","$$render","consequent","uid","$.props_id","ref","disabled","required","name","id","$.prop","$$props","createId","type","restProps","$.rest_props","rootState","boxWith","v","mergedProps","mergeProps","$0","$.get","button","root_2","$.attribute_effect","$.snippet","node_2","$.noop","CheckboxInput","node_3","props","iconNode","Icon","load","authState","redirect","isChecked","isIndeterminate","handleCheckedChange","newState","handleIndeterminateChange","children","$$arg0","isOn","span","root_1","MinusIcon","CheckIcon","consequent_1","alternate","cn","CheckboxPrimitive_Root","$$value","trend","tz","getTimezone","HOURS","SCALE_MAX","hourlyData","nowDt","getNow","result","trendMap","point","date","hour","actualMax","d","scaleMax","linePositionPct","div","div_1","$.first_child","fragment","$.sibling","text","$.child","$.reset","$.set_style","$1","div_2","node","$.index","heightPct","hasEvents","Tooltip_Root","Tooltip_Trigger","div_3","root_4","$.set_class","$.append","Tooltip_Content","div_4","fragment_3","div_5","formatDateTime","timezone","SORT_STORAGE_KEY","initialSort","getSortState","sortField","$.state","$.proxy","sortDirection","exceptions","loading","error","archiving","showArchiveDialog","page","pageSize","total","totalPages","selectedHashes","selectedCount","allSelected","someSelected","parseIssuesUrlParams","params","parseTimeRangeFromUrl","initialUrlParams","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","searchQuery","searchType","searchTypeOptions","getFromDateTimeUTC","minute","luxonDt","calendarDateTimeToLuxon","toUTCISO","getToDateTimeUTC","updateIssuesUrl","pushToHistory","updateUrl","loadData","$.set","range","getTimeRangeFromPreset","orderBy","requestBody","response","api","projectsState","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleTimeRangeChange","from","to","preset","handleSearch","handleSort","field","newSort","handleSortClick","setSortState","handlePopState","urlParams","toggleSelectAll","toggleSelect","hash","newSet","isSelected","archiveSelected","toast","onMount","onDestroy","TimeRangePicker","SearchBar","node_1","Button","Archive","node_4","node_5","$.template_effect","$.set_text","Table_Root","Table_Body","Table_Row","Table_Cell","root_8","LoadingCircle","node_11","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","Table_Head","Checkbox","TracewayTableHeader","node_21","node_22","node_23","node_24","Table_Body_3","$.each","node_26","exception","Table_Row_3","Table_Cell_2","createRowClickHandler","Table_Cell_3","span_1","root_25","text_3","Table_Cell_4","IssueTrendChart","Table_Cell_5","Table_Cell_6","consequent_3","consequent_2","alternate_1","alternate_2","PaginationFooter","node_33","ArchiveConfirmationDialog","node_34","open"],"mappings":"0sDAWA,MAAMA,GAAQ,CAAA,EASP,SAASC,GAASC,EAAOC,EAAe,GAAOC,EAAY,GAAO,CAuBxE,OAAOC,GAAMH,EAAO,IAAI,IAAO,GAAIF,GAAO,KAAMI,CAAS,CAC1D,CAYA,SAASC,GAAMH,EAAOI,EAAQC,EAAMC,EAAOC,EAAW,KAAML,EAAY,GAAO,CAC9E,GAAI,OAAOF,GAAU,UAAYA,IAAU,KAAM,CAChD,IAAIQ,EAAYJ,EAAO,IAAIJ,CAAK,EAChC,GAAIQ,IAAc,OAAW,OAAOA,EAEpC,GAAIR,aAAiB,IAAK,OAAmC,IAAI,IAAIA,CAAK,EAC1E,GAAIA,aAAiB,IAAK,OAAmC,IAAI,IAAIA,CAAK,EAE1E,GAAIS,GAAST,CAAK,EAAG,CACpB,IAAIU,EAAqC,MAAMV,EAAM,MAAM,EAC3DI,EAAO,IAAIJ,EAAOU,CAAI,EAElBH,IAAa,MAChBH,EAAO,IAAIG,EAAUG,CAAI,EAG1B,QAASC,EAAI,EAAGA,EAAIX,EAAM,OAAQW,GAAK,EAAG,CACzC,IAAIC,EAAUZ,EAAMW,CAAC,EACjBA,KAAKX,IACRU,EAAKC,CAAC,EAAIR,GAAMS,EAASR,EAAgCC,EAAMC,EAAO,KAAMJ,CAAS,EAEvF,CAEA,OAAOQ,CACR,CAEA,GAAIG,GAAiBb,CAAK,IAAMc,GAAkB,CAEjDJ,EAAO,CAAA,EACPN,EAAO,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AAA/L,EAClB4L,CAAS,EAAC,aAAa,GAClC,SACA,OACA,IAAG,CAAA,uBALJQ,EAAM3N,GAAA,iDAQkB,IAAAsB,EAAA7B,EAAA,IAAA8B,EAAA4L,CAAS,EAAC,aAAW,EAAA,EAA5CS,GAAe5N,GAAA,oFAIPsN,GAAqB,WAAA/L,EAClB4L,CAAS,EAAC,aAAa,GAClC,SACA,OACA,IAAG,CAAA,uBANJU,EAAM7N,GAAA,mIASLmN,CAAS,EAAC,MAAM,eAAc,CAAA,CAAA,iEAItBG,GAAqB,WAAA/L,EAClB4L,CAAS,EAAC,aAAa,GAClC,SACA,OACA,IAAG,CAAA,uBANJW,EAAM9N,GAAA,+GASL,IAAAiG,KAAekH,CAAS,EAAC,SAAQ,CAAI,WAAAjH,CAAQ,CAAA,CAAA,4IAnGzCQ,CAAU,EAAC,SAAW,EAACxG,EAAA6N,EAAA,EAAA7N,EAAAiD,GAAA,EAAA,8BARvByD,CAAK,EAAA1G,GAAA8N,EAAA,EAAA9N,GAAA+N,GAAA,EAAA,4BAVVtH,CAAO,EAAAzG,EAAAgD,EAAA,EAAAhD,EAAAgO,GAAA,EAAA,wCAFbpI,EAAG,WAAHA,GAAG,CAAA,EAiIHqI,GAAAC,GAAA,4BACarH,CAAI,6BAChBG,CAAU,2BACVF,CAAQ,6BACGC,CAAK,gBACHwC,oBACIE,0BACjBhD,CAAO,yBA1LTnC,EAAG,WAAHA,GAAG,CAAA,EA+LH6J,GAAAC,GAAA,qBACMxH,CAAiB,gBACRyH,GAAItF,EAAMnC,EAAoByH,EAAI,EAAA,uBAC1CnH,CAAa,aACT0D,iBArMZ","x_google_ignoreList":[0,1,2,3,4]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/15.RG13YO23.js b/backend/static/frontend/_app/immutable/nodes/15.DSww6OjK.js
similarity index 89%
rename from backend/static/frontend/_app/immutable/nodes/15.RG13YO23.js
rename to backend/static/frontend/_app/immutable/nodes/15.DSww6OjK.js
index f62bb09a..a123a371 100644
--- a/backend/static/frontend/_app/immutable/nodes/15.RG13YO23.js
+++ b/backend/static/frontend/_app/immutable/nodes/15.DSww6OjK.js
@@ -1,2 +1,2 @@
-import{r as ge}from"../chunks/BJZ1igWb.js";import{b as ve,a as L,p as R,t as he,c as z}from"../chunks/D6S6XYVy.js";import{i as v}from"../chunks/DMODTt3n.js";import{o as me}from"../chunks/Dwk6gGSK.js";import{p as _e,h as o,v as ke,f as V,c as h,b as p,a as xe,e as F,i as t,g as e,s as I,u as i,r as $,d as N}from"../chunks/B2WdN-7r.js";import{p as Q}from"../chunks/BG_QVry4.js";import{g as ye}from"../chunks/xR3pK9Ey.js";import"../chunks/C1aqwstW.js";import{L as be}from"../chunks/D0pIT200.js";import{E as U}from"../chunks/B-KBEnoV.js";import{S as Ie,E as Se,a as Te}from"../chunks/B7mBgJdZ.js";import{P as we}from"../chunks/BGqyWGxT.js";import{A as je}from"../chunks/CagnQ-rd.js";import{r as W}from"../chunks/D_mqy6BL.js";const Ae=!1,Ee=({params:S})=>{if(!ve.isAuthenticated)throw ge(302,"/login");return{exceptionHash:S.exceptionHash}},Je=Object.freeze(Object.defineProperty({__proto__:null,load:Ee,prerender:Ae},Symbol.toStringTag,{value:"Module"}));var He=V('<div class="flex items-center justify-center py-20"><!></div>'),Pe=V("<!> <!> <!>",1),Me=V('<div class="space-y-6"><div class="flex items-start justify-between gap-4"><!></div> <!></div> <!>',1);function Ke(S,X){_e(X,!0);let l=o(null),m=o(ke([])),T=o(!0),_=o(""),w=o(!1),j=o(0),A=o(null),E=o(null),H=o(null),k=o(!1),x=o(!1);const y=i(()=>Q.params.exceptionHash??""),f=i(()=>e(m)[0]),Y=i(()=>e(f)?.isMessage??!1),Z=i(()=>e(j)>10),ee=i(()=>e(f)?.stackTrace.split(`
+import{r as ge}from"../chunks/B4VmGkxP.js";import{b as ve,a as L,p as R,t as he,c as z}from"../chunks/qCQ2nSvO.js";import{i as v}from"../chunks/DMODTt3n.js";import{o as me}from"../chunks/Dwk6gGSK.js";import{p as _e,h as o,v as ke,f as V,c as h,b as p,a as xe,e as F,i as t,g as e,s as I,u as i,r as $,d as N}from"../chunks/B2WdN-7r.js";import{p as Q}from"../chunks/CyRgFauW.js";import{g as ye}from"../chunks/BIF4_51j.js";import"../chunks/C1aqwstW.js";import{L as be}from"../chunks/D0pIT200.js";import{E as U}from"../chunks/CFZS-Ydw.js";import{S as Ie,E as Se,a as Te}from"../chunks/CCYdrD-l.js";import{P as we}from"../chunks/Cplpgpvt.js";import{A as je}from"../chunks/x4zBYqLS.js";import{r as W}from"../chunks/BGApn_8u.js";const Ae=!1,Ee=({params:S})=>{if(!ve.isAuthenticated)throw ge(302,"/login");return{exceptionHash:S.exceptionHash}},Je=Object.freeze(Object.defineProperty({__proto__:null,load:Ee,prerender:Ae},Symbol.toStringTag,{value:"Module"}));var He=V('<div class="flex items-center justify-center py-20"><!></div>'),Pe=V("<!> <!> <!>",1),Me=V('<div class="space-y-6"><div class="flex items-start justify-between gap-4"><!></div> <!></div> <!>',1);function Ke(S,X){_e(X,!0);let l=o(null),m=o(ke([])),T=o(!0),_=o(""),w=o(!1),j=o(0),A=o(null),E=o(null),H=o(null),k=o(!1),x=o(!1);const y=i(()=>Q.params.exceptionHash??""),f=i(()=>e(m)[0]),Y=i(()=>e(f)?.isMessage??!1),Z=i(()=>e(j)>10),ee=i(()=>e(f)?.stackTrace.split(`
`)[0]||"Exception");async function P(){t(T,!0),t(_,""),t(w,!1),t(A,null),t(E,null),t(H,null);try{const r=Q.params.exceptionHash,s=await L.post(`/exception-stack-traces/${r}`,{pagination:{page:1,pageSize:10}},{projectId:R.currentProjectId??void 0});t(l,s.group,!0),t(m,s.occurrences||[],!0),t(j,s.pagination.total,!0),t(E,s.sessionRecording??null,!0),t(H,s.sessionId??null,!0);const u=e(m)[0];if(u?.traceId)try{const c=u.traceType==="task",B=c?"/tasks":"/endpoints",n=await L.post(`${B}/${u.traceId}`,{},{projectId:R.currentProjectId??void 0}),a=c?n.task:n.endpoint;a&&t(A,{id:a.id,endpoint:c?a.taskName:a.endpoint,duration:a.duration,statusCode:a.statusCode||0,recordedAt:a.recordedAt,traceType:c?"task":"endpoint",distributedTraceId:a.distributedTraceId},!0)}catch(c){console.warn("Could not load linked trace:",c)}}catch(r){console.error(r),r.status===404?t(w,!0):t(_,r.message||"Failed to load exception details",!0)}finally{t(T,!1)}}async function te(){t(x,!0);try{await L.post("/exception-stack-traces/archive",{hashes:[e(y)]},{projectId:R.currentProjectId??void 0}),he.success("Successfully archived the Issue",{position:"top-center"}),ye("/issues")}catch(r){throw console.error("Archive failed:",r),r}finally{t(x,!1)}}me(()=>{P()});var q=Me(),M=h(q),O=F(M),re=F(O);{let r=i(()=>z({fallbackPath:W("/issues")}));we(re,{get title(){return e(ee)},get subtitle(){return`Exception Hash: ${e(y)??""}`},get onBack(){return e(r)}})}$(O);var ae=I(O,2);{var se=r=>{var s=He(),u=F(s);be(u,{size:"xlg"}),$(s),p(r,s)},oe=r=>{var s=N(),u=h(s);{var c=n=>{{let a=i(()=>z({fallbackPath:W("/issues")}));U(n,{status:404,title:"Exception Not Found",description:"The exception you're looking for doesn't exist or may have been removed. It's possible the data has expired or the link is incorrect.",get onBack(){return e(a)},backLabel:"Back to Issues",onRetry:()=>P(),get identifier(){return e(y)}})}},B=n=>{var a=N(),ie=h(a);{var ce=d=>{{let b=i(()=>z({fallbackPath:W("/issues")}));U(d,{status:400,title:"Something Went Wrong",get description(){return e(_)},get onBack(){return e(b)},backLabel:"Back to Issues",onRetry:()=>P()})}},le=d=>{var b=N(),ue=h(b);{var de=C=>{var G=Pe(),J=h(G);{let g=i(()=>e(f)?.stackTrace??e(l).stackTrace);Ie(J,{get stackTrace(){return e(g)},get isMessage(){return e(Y)},get firstSeen(){return e(l).firstSeen},get lastSeen(){return e(l).lastSeen},get totalCount(){return e(l).count},get showArchiveDialog(){return e(k)},set showArchiveDialog(D){t(k,D,!0)},get archiving(){return e(x)},set archiving(D){t(x,D,!0)}})}var K=I(J,2);{var pe=g=>{Te(g,{get occurrence(){return e(f)},get linkedTrace(){return e(A)},get sessionRecording(){return e(E)},get sessionId(){return e(H)},title:"Last Event",description:"Details from the most recent occurrence of this exception"})};v(K,g=>{e(f)&&g(pe)})}var fe=I(K,2);Se(fe,{get occurrences(){return e(m)},get exceptionHash(){return e(y)},get total(){return e(j)},get hasMore(){return e(Z)},showViewAll:!0}),p(C,G)};v(ue,C=>{e(l)&&C(de)},!0)}p(d,b)};v(ie,d=>{e(_)?d(ce):d(le,!1)},!0)}p(n,a)};v(u,n=>{e(w)?n(c):n(B,!1)},!0)}p(r,s)};v(ae,r=>{e(T)&&!e(l)?r(se):r(oe,!1)})}$(M);var ne=I(M,2);je(ne,{get open(){return e(k)},onOpenChange:r=>t(k,r,!0),count:1,onConfirm:te}),p(S,q),xe()}export{Ke as component,Je as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/15.RG13YO23.js.map b/backend/static/frontend/_app/immutable/nodes/15.DSww6OjK.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/15.RG13YO23.js.map
rename to backend/static/frontend/_app/immutable/nodes/15.DSww6OjK.js.map
index 6d4603b6..2dc14faf 100644
--- a/backend/static/frontend/_app/immutable/nodes/15.RG13YO23.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/15.DSww6OjK.js.map
@@ -1 +1 @@
-{"version":3,"file":"15.RG13YO23.js","sources":["../../../../../../src/routes/issues/[exceptionHash]/+page.ts","../../../../../../src/routes/issues/[exceptionHash]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\treturn {\n\t\texceptionHash: params.exceptionHash\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { page } from '$app/state';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport { Button } from '$lib/components/ui/button';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { StackTraceCard, EventCard, EventsTable, PageHeader } from '$lib/components/issues';\n\timport { toast } from 'svelte-sonner';\n\timport ArchiveConfirmationDialog from '$lib/components/archive-confirmation-dialog.svelte';\n\timport Archive from '@lucide/svelte/icons/archive';\n\timport type {\n\t\tExceptionGroup,\n\t\tExceptionOccurrence,\n\t\tLinkedTrace,\n\t\tSessionRecording\n\t} from '$lib/types/exceptions';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport { resolve } from '$app/paths';\n\n\tlet group = $state<ExceptionGroup | null>(null);\n\tlet occurrences = $state<ExceptionOccurrence[]>([]);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\tlet total = $state(0);\n\tlet linkedTrace = $state<LinkedTrace | null>(null);\n\tlet sessionRecording = $state<SessionRecording | null>(null);\n\tlet sessionId = $state<string | null>(null);\n\tlet showArchiveDialog = $state(false);\n\tlet archiving = $state(false);\n\n\tconst exceptionHash = $derived(page.params.exceptionHash ?? '');\n\tconst latestOccurrence = $derived(occurrences[0]);\n\tconst isMessage = $derived(latestOccurrence?.isMessage ?? false);\n\tconst hasMoreOccurrences = $derived(total > 10);\n\tconst firstLineOfStackTrace = $derived(latestOccurrence?.stackTrace.split('\\n')[0] || 'Exception');\n\n\tasync function loadData() {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\t\tlinkedTrace = null;\n\t\tsessionRecording = null;\n\t\tsessionId = null;\n\n\t\ttry {\n\t\t\tconst exceptionHash = page.params.exceptionHash;\n\t\t\tconst response = await api.post(\n\t\t\t\t`/exception-stack-traces/${exceptionHash}`,\n\t\t\t\t{\n\t\t\t\t\tpagination: {\n\t\t\t\t\t\tpage: 1,\n\t\t\t\t\t\tpageSize: 10\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\tgroup = response.group;\n\t\t\toccurrences = response.occurrences || [];\n\t\t\ttotal = response.pagination.total;\n\t\t\tsessionRecording = response.sessionRecording ?? null;\n\t\t\tsessionId = response.sessionId ?? null;\n\n\t\t\t// Load linked trace if the latest occurrence has a traceId\n\t\t\tconst firstOccurrence = occurrences[0];\n\t\t\tif (firstOccurrence?.traceId) {\n\t\t\t\ttry {\n\t\t\t\t\tconst isTask = firstOccurrence.traceType === 'task';\n\t\t\t\t\tconst endpoint = isTask ? '/tasks' : '/endpoints';\n\t\t\t\t\tconst txResponse = await api.post(\n\t\t\t\t\t\t`${endpoint}/${firstOccurrence.traceId}`,\n\t\t\t\t\t\t{},\n\t\t\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t\t\t);\n\t\t\t\t\tconst txData = isTask ? txResponse.task : txResponse.endpoint;\n\t\t\t\t\tif (txData) {\n\t\t\t\t\t\tlinkedTrace = {\n\t\t\t\t\t\t\tid: txData.id,\n\t\t\t\t\t\t\tendpoint: isTask ? txData.taskName : txData.endpoint,\n\t\t\t\t\t\t\tduration: txData.duration,\n\t\t\t\t\t\t\tstatusCode: txData.statusCode || 0,\n\t\t\t\t\t\t\trecordedAt: txData.recordedAt,\n\t\t\t\t\t\t\ttraceType: isTask ? 'task' : 'endpoint',\n\t\t\t\t\t\t\tdistributedTraceId: txData.distributedTraceId\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t} catch (txError) {\n\t\t\t\t\tconsole.warn('Could not load linked trace:', txError);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\tif (e.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = e.message || 'Failed to load exception details';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tasync function archiveIssue() {\n\t\tarchiving = true;\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t'/exception-stack-traces/archive',\n\t\t\t\t{ hashes: [exceptionHash] },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Successfully archived the Issue', { position: 'top-center' });\n\t\t\tgoto('/issues');\n\t\t} catch (e: any) {\n\t\t\tconsole.error('Archive failed:', e);\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tarchiving = false;\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\tloadData();\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t<div class=\"flex items-start justify-between gap-4\">\n\t\t<PageHeader\n\t\t\ttitle={firstLineOfStackTrace}\n\t\t\tsubtitle=\"Exception Hash: {exceptionHash}\"\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/issues') })}\n\t\t/>\n\t</div>\n\n\t{#if loading && !group}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"Exception Not Found\"\n\t\t\tdescription=\"The exception you're looking for doesn't exist or may have been removed. It's possible the data has expired or the link is incorrect.\"\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/issues') })}\n\t\t\tbackLabel=\"Back to Issues\"\n\t\t\tonRetry={() => loadData()}\n\t\t\tidentifier={exceptionHash}\n\t\t/>\n\t{:else if error}\n\t\t<ErrorDisplay\n\t\t\tstatus={400}\n\t\t\ttitle=\"Something Went Wrong\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/issues') })}\n\t\t\tbackLabel=\"Back to Issues\"\n\t\t\tonRetry={() => loadData()}\n\t\t/>\n\t{:else if group}\n\t\t<StackTraceCard\n\t\t\tstackTrace={latestOccurrence?.stackTrace ?? group.stackTrace}\n\t\t\t{isMessage}\n\t\t\tfirstSeen={group.firstSeen}\n\t\t\tlastSeen={group.lastSeen}\n\t\t\ttotalCount={group.count}\n\t\t\tbind:showArchiveDialog\n\t\t\tbind:archiving\n\t\t/>\n\n\t\t{#if latestOccurrence}\n\t\t\t<EventCard\n\t\t\t\toccurrence={latestOccurrence}\n\t\t\t\t{linkedTrace}\n\t\t\t\t{sessionRecording}\n\t\t\t\t{sessionId}\n\t\t\t\ttitle=\"Last Event\"\n\t\t\t\tdescription=\"Details from the most recent occurrence of this exception\"\n\t\t\t/>\n\t\t{/if}\n\n\t\t<EventsTable\n\t\t\t{occurrences}\n\t\t\t{exceptionHash}\n\t\t\t{total}\n\t\t\thasMore={hasMoreOccurrences}\n\t\t\tshowViewAll={true}\n\t\t/>\n\t{/if}\n</div>\n\n<ArchiveConfirmationDialog\n\topen={showArchiveDialog}\n\tonOpenChange={(open) => (showArchiveDialog = open)}\n\tcount={1}\n\tonConfirm={archiveIssue}\n/>\n"],"names":["prerender","load","params","authState","redirect","group","$.state","occurrences","$.proxy","loading","error","notFound","total","linkedTrace","sessionRecording","sessionId","showArchiveDialog","archiving","exceptionHash","page","latestOccurrence","$.derived","$.get","isMessage","hasMoreOccurrences","firstLineOfStackTrace","loadData","$.set","response","api","projectsState","firstOccurrence","isTask","endpoint","txResponse","txData","txError","e","archiveIssue","toast","goto","onMount","div","$.first_child","fragment","div_1","$0","createSmartBackHandler","resolve","PageHeader","node","div_2","root_1","LoadingCircle","node_2","ErrorDisplay","$$anchor","StackTraceCard","node_6","$$value","EventCard","$$render","consequent_3","EventsTable","node_8","consequent_4","consequent_2","alternate","consequent_1","alternate_1","consequent","alternate_2","ArchiveConfirmationDialog","node_9","open"],"mappings":"mtBAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,KAAa,CAC7C,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAE7B,MAAO,CACN,cAAeF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CAAO,MAAKJ,CAAK,EAAAwD,EAAAS,EAAA,EAAAT,EAAAU,GAAA,EAAA,MATtB7B,CAAG,WAAHA,EAAG,CAAA,EAgEH8B,GAAAC,GAAA,qBACMzD,CAAiB,gBACR0D,GAAI/C,EAAMX,EAAoB0D,EAAI,EAAA,QAC1C,YACIpC,gBAtEZ"}
\ No newline at end of file
+{"version":3,"file":"15.DSww6OjK.js","sources":["../../../../../../src/routes/issues/[exceptionHash]/+page.ts","../../../../../../src/routes/issues/[exceptionHash]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\treturn {\n\t\texceptionHash: params.exceptionHash\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { page } from '$app/state';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport { Button } from '$lib/components/ui/button';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { StackTraceCard, EventCard, EventsTable, PageHeader } from '$lib/components/issues';\n\timport { toast } from 'svelte-sonner';\n\timport ArchiveConfirmationDialog from '$lib/components/archive-confirmation-dialog.svelte';\n\timport Archive from '@lucide/svelte/icons/archive';\n\timport type {\n\t\tExceptionGroup,\n\t\tExceptionOccurrence,\n\t\tLinkedTrace,\n\t\tSessionRecording\n\t} from '$lib/types/exceptions';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport { resolve } from '$app/paths';\n\n\tlet group = $state<ExceptionGroup | null>(null);\n\tlet occurrences = $state<ExceptionOccurrence[]>([]);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\tlet total = $state(0);\n\tlet linkedTrace = $state<LinkedTrace | null>(null);\n\tlet sessionRecording = $state<SessionRecording | null>(null);\n\tlet sessionId = $state<string | null>(null);\n\tlet showArchiveDialog = $state(false);\n\tlet archiving = $state(false);\n\n\tconst exceptionHash = $derived(page.params.exceptionHash ?? '');\n\tconst latestOccurrence = $derived(occurrences[0]);\n\tconst isMessage = $derived(latestOccurrence?.isMessage ?? false);\n\tconst hasMoreOccurrences = $derived(total > 10);\n\tconst firstLineOfStackTrace = $derived(latestOccurrence?.stackTrace.split('\\n')[0] || 'Exception');\n\n\tasync function loadData() {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\t\tlinkedTrace = null;\n\t\tsessionRecording = null;\n\t\tsessionId = null;\n\n\t\ttry {\n\t\t\tconst exceptionHash = page.params.exceptionHash;\n\t\t\tconst response = await api.post(\n\t\t\t\t`/exception-stack-traces/${exceptionHash}`,\n\t\t\t\t{\n\t\t\t\t\tpagination: {\n\t\t\t\t\t\tpage: 1,\n\t\t\t\t\t\tpageSize: 10\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\tgroup = response.group;\n\t\t\toccurrences = response.occurrences || [];\n\t\t\ttotal = response.pagination.total;\n\t\t\tsessionRecording = response.sessionRecording ?? null;\n\t\t\tsessionId = response.sessionId ?? null;\n\n\t\t\t// Load linked trace if the latest occurrence has a traceId\n\t\t\tconst firstOccurrence = occurrences[0];\n\t\t\tif (firstOccurrence?.traceId) {\n\t\t\t\ttry {\n\t\t\t\t\tconst isTask = firstOccurrence.traceType === 'task';\n\t\t\t\t\tconst endpoint = isTask ? '/tasks' : '/endpoints';\n\t\t\t\t\tconst txResponse = await api.post(\n\t\t\t\t\t\t`${endpoint}/${firstOccurrence.traceId}`,\n\t\t\t\t\t\t{},\n\t\t\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t\t\t);\n\t\t\t\t\tconst txData = isTask ? txResponse.task : txResponse.endpoint;\n\t\t\t\t\tif (txData) {\n\t\t\t\t\t\tlinkedTrace = {\n\t\t\t\t\t\t\tid: txData.id,\n\t\t\t\t\t\t\tendpoint: isTask ? txData.taskName : txData.endpoint,\n\t\t\t\t\t\t\tduration: txData.duration,\n\t\t\t\t\t\t\tstatusCode: txData.statusCode || 0,\n\t\t\t\t\t\t\trecordedAt: txData.recordedAt,\n\t\t\t\t\t\t\ttraceType: isTask ? 'task' : 'endpoint',\n\t\t\t\t\t\t\tdistributedTraceId: txData.distributedTraceId\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t} catch (txError) {\n\t\t\t\t\tconsole.warn('Could not load linked trace:', txError);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\tif (e.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = e.message || 'Failed to load exception details';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tasync function archiveIssue() {\n\t\tarchiving = true;\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t'/exception-stack-traces/archive',\n\t\t\t\t{ hashes: [exceptionHash] },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Successfully archived the Issue', { position: 'top-center' });\n\t\t\tgoto('/issues');\n\t\t} catch (e: any) {\n\t\t\tconsole.error('Archive failed:', e);\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tarchiving = false;\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\tloadData();\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t<div class=\"flex items-start justify-between gap-4\">\n\t\t<PageHeader\n\t\t\ttitle={firstLineOfStackTrace}\n\t\t\tsubtitle=\"Exception Hash: {exceptionHash}\"\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/issues') })}\n\t\t/>\n\t</div>\n\n\t{#if loading && !group}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"Exception Not Found\"\n\t\t\tdescription=\"The exception you're looking for doesn't exist or may have been removed. It's possible the data has expired or the link is incorrect.\"\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/issues') })}\n\t\t\tbackLabel=\"Back to Issues\"\n\t\t\tonRetry={() => loadData()}\n\t\t\tidentifier={exceptionHash}\n\t\t/>\n\t{:else if error}\n\t\t<ErrorDisplay\n\t\t\tstatus={400}\n\t\t\ttitle=\"Something Went Wrong\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/issues') })}\n\t\t\tbackLabel=\"Back to Issues\"\n\t\t\tonRetry={() => loadData()}\n\t\t/>\n\t{:else if group}\n\t\t<StackTraceCard\n\t\t\tstackTrace={latestOccurrence?.stackTrace ?? group.stackTrace}\n\t\t\t{isMessage}\n\t\t\tfirstSeen={group.firstSeen}\n\t\t\tlastSeen={group.lastSeen}\n\t\t\ttotalCount={group.count}\n\t\t\tbind:showArchiveDialog\n\t\t\tbind:archiving\n\t\t/>\n\n\t\t{#if latestOccurrence}\n\t\t\t<EventCard\n\t\t\t\toccurrence={latestOccurrence}\n\t\t\t\t{linkedTrace}\n\t\t\t\t{sessionRecording}\n\t\t\t\t{sessionId}\n\t\t\t\ttitle=\"Last Event\"\n\t\t\t\tdescription=\"Details from the most recent occurrence of this exception\"\n\t\t\t/>\n\t\t{/if}\n\n\t\t<EventsTable\n\t\t\t{occurrences}\n\t\t\t{exceptionHash}\n\t\t\t{total}\n\t\t\thasMore={hasMoreOccurrences}\n\t\t\tshowViewAll={true}\n\t\t/>\n\t{/if}\n</div>\n\n<ArchiveConfirmationDialog\n\topen={showArchiveDialog}\n\tonOpenChange={(open) => (showArchiveDialog = open)}\n\tcount={1}\n\tonConfirm={archiveIssue}\n/>\n"],"names":["prerender","load","params","authState","redirect","group","$.state","occurrences","$.proxy","loading","error","notFound","total","linkedTrace","sessionRecording","sessionId","showArchiveDialog","archiving","exceptionHash","page","latestOccurrence","$.derived","$.get","isMessage","hasMoreOccurrences","firstLineOfStackTrace","loadData","$.set","response","api","projectsState","firstOccurrence","isTask","endpoint","txResponse","txData","txError","e","archiveIssue","toast","goto","onMount","div","$.first_child","fragment","div_1","$0","createSmartBackHandler","resolve","PageHeader","node","div_2","root_1","LoadingCircle","node_2","ErrorDisplay","$$anchor","StackTraceCard","node_6","$$value","EventCard","$$render","consequent_3","EventsTable","node_8","consequent_4","consequent_2","alternate","consequent_1","alternate_1","consequent","alternate_2","ArchiveConfirmationDialog","node_9","open"],"mappings":"mtBAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,KAAa,CAC7C,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAE7B,MAAO,CACN,cAAeF,EAAO,aAAA,CAExB,kVCbA,cAsBKG,EAAQC,EAA8B,IAAI,EAC1CC,EAAcD,EAAME,GAAA,CAAA,CAAA,CAAA,EACpBC,EAAUH,EAAO,EAAI,EACrBI,EAAQJ,EAAO,EAAE,EACjBK,EAAWL,EAAO,EAAK,EACvBM,EAAQN,EAAO,CAAC,EAChBO,EAAcP,EAA2B,IAAI,EAC7CQ,EAAmBR,EAAgC,IAAI,EACvDS,EAAYT,EAAsB,IAAI,EACtCU,EAAoBV,EAAO,EAAK,EAChCW,EAAYX,EAAO,EAAK,EAEtB,MAAAY,QAAyBC,EAAK,OAAO,eAAiB,EAAE,EACxDC,EAAgBC,EAAA,IAAAC,EAAYf,CAAW,EAAC,CAAC,CAAA,EACzCgB,EAASF,EAAA,IAAAC,EAAYF,CAAgB,GAAE,WAAa,EAAK,EACzDI,EAAkBH,EAAA,IAAAC,EAAYV,CAAK,EAAG,EAAE,EACxCa,GAAqBJ,EAAA,IAAAC,EAAYF,CAAgB,GAAE,WA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AAC,UAAU,EAD5DoD,GAAAC,EAAA,wDAECnC,CAAS,mBACC,OAAAD,EAAAjB,CAAK,EAAC,0BACP,OAAAiB,EAAAjB,CAAK,EAAC,2BACJ,OAAAiB,EAAAjB,CAAK,EAAC,WAClB,mBAAK,kBAAL,kBAAKsD,EAAA,gBACL,WAAK,kBAAL,UAAKA,EAAA,uCAIJC,GAAAJ,EAAA,2BACYpC,CAAgB,8BAC3BP,CAAW,mCACXC,CAAgB,4BAChBC,CAAS,2GALPK,CAAgB,GAAAyC,EAAAC,EAAA,kBAWpBC,GAAAC,GAAA,4BACCzD,CAAW,gCACXW,CAAa,wBACbN,CAAK,0BACGY,CAAkB,eACd,wBA3BLnB,CAAK,GAAAwD,EAAAI,EAAA,0BATLvD,CAAK,EAAAmD,EAAAK,EAAA,EAAAL,EAAAM,GAAA,EAAA,yBAVLxD,CAAQ,EAAAkD,EAAAO,CAAA,EAAAP,EAAAQ,EAAA,EAAA,wBAJb/C,EAAAb,CAAO,MAAKJ,CAAK,EAAAwD,EAAAS,EAAA,EAAAT,EAAAU,GAAA,EAAA,MATtB7B,CAAG,WAAHA,EAAG,CAAA,EAgEH8B,GAAAC,GAAA,qBACMzD,CAAiB,gBACR0D,GAAI/C,EAAMX,EAAoB0D,EAAI,EAAA,QAC1C,YACIpC,gBAtEZ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/16.30OVwidN.js b/backend/static/frontend/_app/immutable/nodes/16.BJO23utU.js
similarity index 91%
rename from backend/static/frontend/_app/immutable/nodes/16.30OVwidN.js
rename to backend/static/frontend/_app/immutable/nodes/16.BJO23utU.js
index f249741c..3fe6ae29 100644
--- a/backend/static/frontend/_app/immutable/nodes/16.30OVwidN.js
+++ b/backend/static/frontend/_app/immutable/nodes/16.BJO23utU.js
@@ -1,2 +1,2 @@
-import{i as I}from"../chunks/DMODTt3n.js";import{p as le,h as n,v as ue,F as pe,f as M,c as p,b as u,a as fe,i as a,g as e,e as V,s as y,u as d,r as q,d as z}from"../chunks/B2WdN-7r.js";import{a as b,p as T,t as ge,c as L}from"../chunks/D6S6XYVy.js";import{L as ve}from"../chunks/D0pIT200.js";import{E as J}from"../chunks/B-KBEnoV.js";import{f as he,g as me}from"../chunks/DJdWGDax.js";import{S as xe,a as _e,E as ke}from"../chunks/B7mBgJdZ.js";import{P as Ie}from"../chunks/BGqyWGxT.js";import{r as H}from"../chunks/D_mqy6BL.js";import{A as ye}from"../chunks/CagnQ-rd.js";import{g as be}from"../chunks/xR3pK9Ey.js";const Te=!1;function He({params:f}){return{exceptionHash:f.exceptionHash,exceptionId:f.exceptionId}}const Ce=Object.freeze(Object.defineProperty({__proto__:null,load:He,prerender:Te},Symbol.toStringTag,{value:"Module"}));var Ee=M('<div class="flex items-center justify-center py-20"><!></div>'),je=M("<!> <!> <!>",1),we=M('<div class="space-y-6"><!> <!></div> <!>',1);function Ne(f,c){le(c,!0);const K=d(me);let r=n(null),O=n(ue([])),E=n(!0),g=n(""),v=n(!1),j=n(0),w=n(null),A=n(null),F=n(null),h=n(!1),m=n(!1);const Q=d(()=>e(r)?.isMessage??!1),X=d(()=>e(r)?.stackTrace.split(`
+import{i as I}from"../chunks/DMODTt3n.js";import{p as le,h as n,v as ue,F as pe,f as M,c as p,b as u,a as fe,i as a,g as e,e as V,s as y,u as d,r as q,d as z}from"../chunks/B2WdN-7r.js";import{a as b,p as T,t as ge,c as L}from"../chunks/qCQ2nSvO.js";import{L as ve}from"../chunks/D0pIT200.js";import{E as J}from"../chunks/CFZS-Ydw.js";import{f as he,g as me}from"../chunks/Dq-0lVru.js";import{S as xe,a as _e,E as ke}from"../chunks/CCYdrD-l.js";import{P as Ie}from"../chunks/Cplpgpvt.js";import{r as H}from"../chunks/BGApn_8u.js";import{A as ye}from"../chunks/x4zBYqLS.js";import{g as be}from"../chunks/BIF4_51j.js";const Te=!1;function He({params:f}){return{exceptionHash:f.exceptionHash,exceptionId:f.exceptionId}}const Ce=Object.freeze(Object.defineProperty({__proto__:null,load:He,prerender:Te},Symbol.toStringTag,{value:"Module"}));var Ee=M('<div class="flex items-center justify-center py-20"><!></div>'),je=M("<!> <!> <!>",1),we=M('<div class="space-y-6"><!> <!></div> <!>',1);function Ne(f,c){le(c,!0);const K=d(me);let r=n(null),O=n(ue([])),E=n(!0),g=n(""),v=n(!1),j=n(0),w=n(null),A=n(null),F=n(null),h=n(!1),m=n(!1);const Q=d(()=>e(r)?.isMessage??!1),X=d(()=>e(r)?.stackTrace.split(`
`)[0]||"Exception"),Y=d(()=>e(j)>10),Z=d(()=>e(r)?`Event from ${he(e(r).recordedAt,{timezone:e(K)})}`:"Loading...");async function P(){a(E,!0),a(g,""),a(v,!1),a(w,null),a(A,null);try{const t=await b.post(`/exception-stack-traces/by-id/${c.data.exceptionId}`,{},{projectId:T.currentProjectId??void 0});if(a(r,t.exception,!0),a(A,t.sessionRecording??null,!0),a(F,t.sessionId??null,!0),!e(r)){a(v,!0);return}const i=await b.post(`/exception-stack-traces/${c.data.exceptionHash}`,{pagination:{page:1,pageSize:10}},{projectId:T.currentProjectId??void 0});if(a(O,i.occurrences||[],!0),a(j,i.pagination.total,!0),e(r).traceId)try{const s=e(r).traceType==="task";console.log("DEBUG linked trace:",{traceId:e(r).traceId,traceType:e(r).traceType,isTask:s});const D=s?"/tasks":"/endpoints",x=await b.post(`${D}/${e(r).traceId}`,{},{projectId:T.currentProjectId??void 0}),o=s?x.task:x.endpoint;o&&a(w,{id:o.id,endpoint:s?o.taskName:o.endpoint,duration:o.duration,statusCode:o.statusCode||0,recordedAt:o.recordedAt,traceType:s?"task":"endpoint",distributedTraceId:o.distributedTraceId},!0)}catch(s){console.error("Failed to load linked trace:",{error:s,traceId:e(r).traceId,traceType:e(r).traceType})}}catch(t){console.error(t),t.status===404?a(v,!0):a(g,t.message||"Failed to load exception details",!0)}finally{a(E,!1)}}async function $(){a(m,!0);try{await b.post("/exception-stack-traces/archive",{hashes:[c.data.exceptionHash]},{projectId:T.currentProjectId??void 0}),ge.success("Successfully archived the Issue",{position:"top-center"}),be(H("/issues"))}catch(t){throw console.error("Archive failed:",t),t}finally{a(m,!1)}}pe(()=>{c.data.exceptionId,P()});var C=we(),S=p(C),N=V(S);{let t=d(()=>L({fallbackPath:H("/issues/[exceptionHash]",{exceptionHash:c.data.exceptionHash})}));Ie(N,{get title(){return e(X)},get subtitle(){return e(Z)},get onBack(){return e(t)}})}var ee=y(N,2);{var te=t=>{var i=Ee(),s=V(i);ve(s,{size:"xlg"}),q(i),u(t,i)},ae=t=>{var i=z(),s=p(i);{var D=o=>{{let _=d(()=>L({fallbackPath:H("/issues/[exceptionHash]",{exceptionHash:c.data.exceptionHash})}));J(o,{status:404,title:"Event Not Found",description:"The specific event you're looking for doesn't exist or may have been removed.",get onBack(){return e(_)},backLabel:"Back to Exception",onRetry:()=>P()})}},x=o=>{var _=z(),oe=p(_);{var se=l=>{{let k=d(()=>L({fallbackPath:H("/issues/[exceptionHash]",{exceptionHash:c.data.exceptionHash})}));J(l,{status:400,title:"Something Went Wrong",get description(){return e(g)},get onBack(){return e(k)},backLabel:"Back to Exception",onRetry:()=>P()})}},ne=l=>{var k=z(),ce=p(k);{var ie=B=>{var W=je(),G=p(W);xe(G,{get stackTrace(){return e(r).stackTrace},get isMessage(){return e(Q)},get showArchiveDialog(){return e(h)},set showArchiveDialog(R){a(h,R,!0)},get archiving(){return e(m)},set archiving(R){a(m,R,!0)}});var U=y(G,2);_e(U,{get occurrence(){return e(r)},get linkedTrace(){return e(w)},get sessionRecording(){return e(A)},get sessionId(){return e(F)},title:"Event",description:"Details for this specific occurrence"});var de=y(U,2);ke(de,{get occurrences(){return e(O)},get exceptionHash(){return c.data.exceptionHash},get total(){return e(j)},get hasMore(){return e(Y)},showViewAll:!0,get currentExceptionId(){return c.data.exceptionId}}),u(B,W)};I(ce,B=>{e(r)&&B(ie)},!0)}u(l,k)};I(oe,l=>{e(g)?l(se):l(ne,!1)},!0)}u(o,_)};I(s,o=>{e(v)?o(D):o(x,!1)},!0)}u(t,i)};I(ee,t=>{e(E)&&!e(r)?t(te):t(ae,!1)})}q(S);var re=y(S,2);ye(re,{get open(){return e(h)},onOpenChange:t=>a(h,t,!0),count:1,onConfirm:$}),u(f,C),fe()}export{Ne as component,Ce as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/16.30OVwidN.js.map b/backend/static/frontend/_app/immutable/nodes/16.BJO23utU.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/16.30OVwidN.js.map
rename to backend/static/frontend/_app/immutable/nodes/16.BJO23utU.js.map
index 8c054652..b6e44fd9 100644
--- a/backend/static/frontend/_app/immutable/nodes/16.30OVwidN.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/16.BJO23utU.js.map
@@ -1 +1 @@
-{"version":3,"file":"16.30OVwidN.js","sources":["../../../../../../src/routes/issues/[exceptionHash]/[exceptionId]/+page.ts","../../../../../../src/routes/issues/[exceptionHash]/[exceptionId]/+page.svelte"],"sourcesContent":["export const prerender = false;\n\nexport function load({ params }) {\n return {\n exceptionHash: params.exceptionHash,\n exceptionId: params.exceptionId\n };\n}\n","<script lang=\"ts\">\n import { api } from '$lib/api';\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import { ErrorDisplay } from \"$lib/components/ui/error-display\";\n import { projectsState } from '$lib/state/projects.svelte';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import { formatDateTime } from '$lib/utils/formatters';\n import { StackTraceCard, EventCard, EventsTable, PageHeader } from '$lib/components/issues';\n import type { ExceptionOccurrence, LinkedTrace, SessionRecording } from '$lib/types/exceptions';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport { resolve } from '$app/paths';\n\timport ArchiveConfirmationDialog from '$lib/components/archive-confirmation-dialog.svelte';\n\timport { goto } from '$app/navigation';\n\timport { toast } from 'svelte-sonner';\n\n let { data } = $props();\n\n const timezone = $derived(getTimezone());\n\n let occurrence = $state<ExceptionOccurrence | null>(null);\n let allOccurrences = $state<ExceptionOccurrence[]>([]);\n let loading = $state(true);\n let error = $state('');\n let notFound = $state(false);\n let total = $state(0);\n let linkedTrace = $state<LinkedTrace | null>(null);\n let sessionRecording = $state<SessionRecording | null>(null);\n let sessionId = $state<string | null>(null);\n let showArchiveDialog = $state(false);\n let archiving = $state(false);\n\n\n const isMessage = $derived(occurrence?.isMessage ?? false);\n const firstLineOfStackTrace = $derived(occurrence?.stackTrace.split('\\n')[0] || 'Exception');\n const hasMoreOccurrences = $derived(total > 10);\n const subtitleText = $derived(occurrence ? `Event from ${formatDateTime(occurrence.recordedAt, { timezone })}` : 'Loading...');\n\n async function loadData() {\n loading = true;\n error = '';\n notFound = false;\n linkedTrace = null;\n sessionRecording = null;\n\n try {\n // Load the specific exception by ID\n const exceptionResponse = await api.post(`/exception-stack-traces/by-id/${data.exceptionId}`, {}, { projectId: projectsState.currentProjectId ?? undefined });\n occurrence = exceptionResponse.exception;\n sessionRecording = exceptionResponse.sessionRecording ?? null;\n sessionId = exceptionResponse.sessionId ?? null;\n\n if (!occurrence) {\n notFound = true;\n return;\n }\n\n // Load all occurrences for this hash (for the events table)\n const response = await api.post(`/exception-stack-traces/${data.exceptionHash}`, {\n pagination: {\n page: 1,\n pageSize: 10\n }\n }, { projectId: projectsState.currentProjectId ?? undefined });\n\n allOccurrences = response.occurrences || [];\n total = response.pagination.total;\n\n // Load linked trace if this occurrence has a traceId\n if (occurrence.traceId) {\n try {\n const isTask = occurrence.traceType === 'task';\n console.log('DEBUG linked trace:', {\n traceId: occurrence.traceId,\n traceType: occurrence.traceType,\n isTask\n });\n const endpoint = isTask ? '/tasks' : '/endpoints';\n const txResponse = await api.post(\n `${endpoint}/${occurrence.traceId}`,\n {},\n { projectId: projectsState.currentProjectId ?? undefined }\n );\n const txData = isTask ? txResponse.task : txResponse.endpoint;\n if (txData) {\n linkedTrace = {\n id: txData.id,\n endpoint: isTask ? txData.taskName : txData.endpoint,\n duration: txData.duration,\n statusCode: txData.statusCode || 0,\n recordedAt: txData.recordedAt,\n traceType: isTask ? 'task' : 'endpoint',\n distributedTraceId: txData.distributedTraceId\n };\n }\n } catch (txError) {\n console.error('Failed to load linked trace:', {\n error: txError,\n traceId: occurrence.traceId,\n traceType: occurrence.traceType\n });\n }\n }\n } catch (e: any) {\n console.error(e);\n if (e.status === 404) {\n notFound = true;\n } else {\n error = e.message || 'Failed to load exception details';\n }\n } finally {\n loading = false;\n }\n }\n\n async function archiveIssue() {\n archiving = true;\n try {\n await api.post(\n '/exception-stack-traces/archive',\n { hashes: [data.exceptionHash] },\n { projectId: projectsState.currentProjectId ?? undefined }\n );\n toast.success('Successfully archived the Issue', { position: 'top-center' });\n goto(resolve(\"/issues\"));\n } catch (e: any) {\n console.error('Archive failed:', e);\n throw e;\n } finally {\n archiving = false;\n }\n }\n\n $effect(() => {\n data.exceptionId;\n loadData();\n });\n</script>\n\n<div class=\"space-y-6\">\n <PageHeader\n title={firstLineOfStackTrace}\n subtitle={subtitleText}\n onBack={createSmartBackHandler({ fallbackPath: resolve(\"/issues/[exceptionHash]\", {exceptionHash: data.exceptionHash}) })}\n />\n\n {#if loading && !occurrence}\n <div class=\"flex items-center justify-center py-20\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else if notFound}\n <ErrorDisplay\n status={404}\n title=\"Event Not Found\"\n description=\"The specific event you're looking for doesn't exist or may have been removed.\"\n onBack={createSmartBackHandler({ fallbackPath: resolve('/issues/[exceptionHash]', {exceptionHash: data.exceptionHash}) })}\n backLabel=\"Back to Exception\"\n onRetry={() => loadData()}\n />\n {:else if error}\n <ErrorDisplay\n status={400}\n title=\"Something Went Wrong\"\n description={error}\n onBack={createSmartBackHandler({ fallbackPath: resolve('/issues/[exceptionHash]', {exceptionHash: data.exceptionHash}) })}\n backLabel=\"Back to Exception\"\n onRetry={() => loadData()}\n />\n {:else if occurrence}\n <StackTraceCard\n stackTrace={occurrence.stackTrace}\n {isMessage}\n bind:showArchiveDialog={showArchiveDialog}\n bind:archiving={archiving}\n />\n\n <EventCard\n {occurrence}\n {linkedTrace}\n {sessionRecording}\n {sessionId}\n title=\"Event\"\n description=\"Details for this specific occurrence\"\n />\n\n <EventsTable\n occurrences={allOccurrences}\n exceptionHash={data.exceptionHash}\n {total}\n hasMore={hasMoreOccurrences}\n showViewAll={true}\n currentExceptionId={data.exceptionId}\n />\n {/if}\n</div>\n\n\n<ArchiveConfirmationDialog\n open={showArchiveDialog}\n onOpenChange={(open) => showArchiveDialog = open}\n count={1}\n onConfirm={archiveIssue}\n/>\n"],"names":["prerender","load","params","timezone","getTimezone","occurrence","$.state","allOccurrences","$.proxy","loading","error","notFound","total","linkedTrace","sessionRecording","sessionId","showArchiveDialog","archiving","isMessage","$.derived","$.get","firstLineOfStackTrace","hasMoreOccurrences","subtitleText","formatDateTime","loadData","$.set","exceptionResponse","api","$$props","projectsState","response","isTask","endpoint","txResponse","txData","txError","e","archiveIssue","toast","goto","resolve","$.user_effect","div","$.first_child","fragment","createSmartBackHandler","PageHeader","node","div_1","root_1","LoadingCircle","node_2","ErrorDisplay","$$anchor","StackTraceCard","node_6","$$value","EventCard","node_7","EventsTable","node_8","$$render","consequent_3","consequent_2","alternate","consequent_1","alternate_1","consequent","alternate_2","ArchiveConfirmationDialog","node_9","open"],"mappings":"wmBAAO,MAAMA,GAAY,GAElB,SAASC,GAAK,CAAE,OAAAC,GAAU,CAC7B,MAAO,CACH,cAAeA,EAAO,cACtB,YAAaA,EAAO,WAAA,CAE5B,6RCPA,UAiBU,MAAAC,IAAoBC,EAAW,MAEjCC,EAAaC,EAAmC,IAAI,EACpDC,EAAiBD,EAAME,GAAA,CAAA,CAAA,CAAA,EACvBC,EAAUH,EAAO,EAAI,EACrBI,EAAQJ,EAAO,EAAE,EACjBK,EAAWL,EAAO,EAAK,EACvBM,EAAQN,EAAO,CAAC,EAChBO,EAAcP,EAA2B,IAAI,EAC7CQ,EAAmBR,EAAgC,IAAI,EACvDS,EAAYT,EAAsB,IAAI,EACtCU,EAAoBV,EAAO,EAAK,EAChCW,EA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+{"version":3,"file":"16.BJO23utU.js","sources":["../../../../../../src/routes/issues/[exceptionHash]/[exceptionId]/+page.ts","../../../../../../src/routes/issues/[exceptionHash]/[exceptionId]/+page.svelte"],"sourcesContent":["export const prerender = false;\n\nexport function load({ params }) {\n return {\n exceptionHash: params.exceptionHash,\n exceptionId: params.exceptionId\n };\n}\n","<script lang=\"ts\">\n import { api } from '$lib/api';\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import { ErrorDisplay } from \"$lib/components/ui/error-display\";\n import { projectsState } from '$lib/state/projects.svelte';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import { formatDateTime } from '$lib/utils/formatters';\n import { StackTraceCard, EventCard, EventsTable, PageHeader } from '$lib/components/issues';\n import type { ExceptionOccurrence, LinkedTrace, SessionRecording } from '$lib/types/exceptions';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport { resolve } from '$app/paths';\n\timport ArchiveConfirmationDialog from '$lib/components/archive-confirmation-dialog.svelte';\n\timport { goto } from '$app/navigation';\n\timport { toast } from 'svelte-sonner';\n\n let { data } = $props();\n\n const timezone = $derived(getTimezone());\n\n let occurrence = $state<ExceptionOccurrence | null>(null);\n let allOccurrences = $state<ExceptionOccurrence[]>([]);\n let loading = $state(true);\n let error = $state('');\n let notFound = $state(false);\n let total = $state(0);\n let linkedTrace = $state<LinkedTrace | null>(null);\n let sessionRecording = $state<SessionRecording | null>(null);\n let sessionId = $state<string | null>(null);\n let showArchiveDialog = $state(false);\n let archiving = $state(false);\n\n\n const isMessage = $derived(occurrence?.isMessage ?? false);\n const firstLineOfStackTrace = $derived(occurrence?.stackTrace.split('\\n')[0] || 'Exception');\n const hasMoreOccurrences = $derived(total > 10);\n const subtitleText = $derived(occurrence ? `Event from ${formatDateTime(occurrence.recordedAt, { timezone })}` : 'Loading...');\n\n async function loadData() {\n loading = true;\n error = '';\n notFound = false;\n linkedTrace = null;\n sessionRecording = null;\n\n try {\n // Load the specific exception by ID\n const exceptionResponse = await api.post(`/exception-stack-traces/by-id/${data.exceptionId}`, {}, { projectId: projectsState.currentProjectId ?? undefined });\n occurrence = exceptionResponse.exception;\n sessionRecording = exceptionResponse.sessionRecording ?? null;\n sessionId = exceptionResponse.sessionId ?? null;\n\n if (!occurrence) {\n notFound = true;\n return;\n }\n\n // Load all occurrences for this hash (for the events table)\n const response = await api.post(`/exception-stack-traces/${data.exceptionHash}`, {\n pagination: {\n page: 1,\n pageSize: 10\n }\n }, { projectId: projectsState.currentProjectId ?? undefined });\n\n allOccurrences = response.occurrences || [];\n total = response.pagination.total;\n\n // Load linked trace if this occurrence has a traceId\n if (occurrence.traceId) {\n try {\n const isTask = occurrence.traceType === 'task';\n console.log('DEBUG linked trace:', {\n traceId: occurrence.traceId,\n traceType: occurrence.traceType,\n isTask\n });\n const endpoint = isTask ? '/tasks' : '/endpoints';\n const txResponse = await api.post(\n `${endpoint}/${occurrence.traceId}`,\n {},\n { projectId: projectsState.currentProjectId ?? undefined }\n );\n const txData = isTask ? txResponse.task : txResponse.endpoint;\n if (txData) {\n linkedTrace = {\n id: txData.id,\n endpoint: isTask ? txData.taskName : txData.endpoint,\n duration: txData.duration,\n statusCode: txData.statusCode || 0,\n recordedAt: txData.recordedAt,\n traceType: isTask ? 'task' : 'endpoint',\n distributedTraceId: txData.distributedTraceId\n };\n }\n } catch (txError) {\n console.error('Failed to load linked trace:', {\n error: txError,\n traceId: occurrence.traceId,\n traceType: occurrence.traceType\n });\n }\n }\n } catch (e: any) {\n console.error(e);\n if (e.status === 404) {\n notFound = true;\n } else {\n error = e.message || 'Failed to load exception details';\n }\n } finally {\n loading = false;\n }\n }\n\n async function archiveIssue() {\n archiving = true;\n try {\n await api.post(\n '/exception-stack-traces/archive',\n { hashes: [data.exceptionHash] },\n { projectId: projectsState.currentProjectId ?? undefined }\n );\n toast.success('Successfully archived the Issue', { position: 'top-center' });\n goto(resolve(\"/issues\"));\n } catch (e: any) {\n console.error('Archive failed:', e);\n throw e;\n } finally {\n archiving = false;\n }\n }\n\n $effect(() => {\n data.exceptionId;\n loadData();\n });\n</script>\n\n<div class=\"space-y-6\">\n <PageHeader\n title={firstLineOfStackTrace}\n subtitle={subtitleText}\n onBack={createSmartBackHandler({ fallbackPath: resolve(\"/issues/[exceptionHash]\", {exceptionHash: data.exceptionHash}) })}\n />\n\n {#if loading && !occurrence}\n <div class=\"flex items-center justify-center py-20\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else if notFound}\n <ErrorDisplay\n status={404}\n title=\"Event Not Found\"\n description=\"The specific event you're looking for doesn't exist or may have been removed.\"\n onBack={createSmartBackHandler({ fallbackPath: resolve('/issues/[exceptionHash]', {exceptionHash: data.exceptionHash}) })}\n backLabel=\"Back to Exception\"\n onRetry={() => loadData()}\n />\n {:else if error}\n <ErrorDisplay\n status={400}\n title=\"Something Went Wrong\"\n description={error}\n onBack={createSmartBackHandler({ fallbackPath: resolve('/issues/[exceptionHash]', {exceptionHash: data.exceptionHash}) })}\n backLabel=\"Back to Exception\"\n onRetry={() => loadData()}\n />\n {:else if occurrence}\n <StackTraceCard\n stackTrace={occurrence.stackTrace}\n {isMessage}\n bind:showArchiveDialog={showArchiveDialog}\n bind:archiving={archiving}\n />\n\n <EventCard\n {occurrence}\n {linkedTrace}\n {sessionRecording}\n {sessionId}\n title=\"Event\"\n description=\"Details for this specific occurrence\"\n />\n\n <EventsTable\n occurrences={allOccurrences}\n exceptionHash={data.exceptionHash}\n {total}\n hasMore={hasMoreOccurrences}\n showViewAll={true}\n currentExceptionId={data.exceptionId}\n />\n {/if}\n</div>\n\n\n<ArchiveConfirmationDialog\n open={showArchiveDialog}\n onOpenChange={(open) => showArchiveDialog = open}\n count={1}\n onConfirm={archiveIssue}\n/>\n"],"names":["prerender","load","params","timezone","getTimezone","occurrence","$.state","allOccurrences","$.proxy","loading","error","notFound","total","linkedTrace","sessionRecording","sessionId","showArchiveDialog","archiving","isMessage","$.derived","$.get","firstLineOfStackTrace","hasMoreOccurrences","subtitleText","formatDateTime","loadData","$.set","exceptionResponse","api","$$props","projectsState","response","isTask","endpoint","txResponse","txData","txError","e","archiveIssue","toast","goto","resolve","$.user_effect","div","$.first_child","fragment","createSmartBackHandler","PageHeader","node","div_1","root_1","LoadingCircle","node_2","ErrorDisplay","$$anchor","StackTraceCard","node_6","$$value","EventCard","node_7","EventsTable","node_8","$$render","consequent_3","consequent_2","alternate","consequent_1","alternate_1","consequent","alternate_2","ArchiveConfirmationDialog","node_9","open"],"mappings":"wmBAAO,MAAMA,GAAY,GAElB,SAASC,GAAK,CAAE,OAAAC,GAAU,CAC7B,MAAO,CACH,cAAeA,EAAO,cACtB,YAAaA,EAAO,WAAA,CAE5B,6RCPA,UAiBU,MAAAC,IAAoBC,EAAW,MAEjCC,EAAaC,EAAmC,IAAI,EACpDC,EAAiBD,EAAME,GAAA,CAAA,CAAA,CAAA,EACvBC,EAAUH,EAAO,EAAI,EACrBI,EAAQJ,EAAO,EAAE,EACjBK,EAAWL,EAAO,EAAK,EACvBM,EAAQN,EAAO,CAAC,EAChBO,EAAcP,EAA2B,IAAI,EAC7CQ,EAAmBR,EAAgC,IAAI,EACvDS,EAAYT,EAAsB,IAAI,EACtCU,EAAoBV,EAAO,EAAK,EAChCW,EAAYX,EAAO,EAAK,EAGtB,MAAAY,EAASC,EAAA,IAAAC,EAAYf,CAAU,GAAE,WAAa,EAAK,EACnDgB,EAAqBF,EAAA,IAAAC,EAAYf,CAAU,GAAE,WAAW,MAAM;AAAA,CAAI,EAAE,CAAC,GAAK,WAAW,EACrFiB,EAAkBH,EAAA,IAAAC,EAAYR,CAAK,EAAG,EAAE,EACxCW,UAAwBlB,CAAU,EAAiB,cAAAmB,KAAenB,CAAU,EAAC,WAAU,CAAI,WAAAF,CAAQ,CAAA,CAAA,CAAA,GAAQ,YAAY,EAE9G,eAAAsB,GAAW,CACtBC,EAAAjB,EAAU,EAAI,EACdiB,EAAAhB,EAAQ,EAAE,EACVgB,EAAAf,EAAW,EAAK,EAChBe,EAAAb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OAAApC,EAAAf,CAAU,EAAC,qCACtBa,CAAS,OACV,mBAAsB,UAAEF,CAAiB,OAAzC,kBAAsByC,EAAA,GAAEzC,EAAiByC,EAAA,EAAA,OACzC,WAAc,UAAExC,CAAS,OAAzB,UAAcwC,EAAA,GAAExC,EAASwC,EAAA,EAAA,kBAG5BC,GAAAC,EAAA,2BACItD,CAAU,8BACVQ,CAAW,mCACXC,CAAgB,4BAChBC,CAAS,oFAKb6C,GAAAC,GAAA,4BACgBtD,CAAc,qCACP,oCACnBK,CAAK,0BACGU,CAAkB,eACd,0CACY,kCAvBvBjB,CAAU,GAAAyD,EAAAC,EAAA,0BATVrD,CAAK,EAAAoD,EAAAE,EAAA,EAAAF,EAAAG,GAAA,EAAA,yBATLtD,CAAQ,EAAAmD,EAAAI,CAAA,EAAAJ,EAAAK,EAAA,EAAA,wBAJb/C,EAAAX,CAAO,MAAKJ,CAAU,EAAAyD,EAAAM,EAAA,EAAAN,EAAAO,GAAA,EAAA,MAP9B1B,CAAG,WAAHA,EAAG,CAAA,EA0DH2B,GAAAC,GAAA,qBACSvD,CAAiB,gBACRwD,GAAI9C,EAAKV,EAAoBwD,EAAI,EAAA,QACzC,YACIlC,eAhEf"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/17.BiJynP3y.js b/backend/static/frontend/_app/immutable/nodes/17.DP2Eww18.js
similarity index 91%
rename from backend/static/frontend/_app/immutable/nodes/17.BiJynP3y.js
rename to backend/static/frontend/_app/immutable/nodes/17.DP2Eww18.js
index 6dacec28..81bc2941 100644
--- a/backend/static/frontend/_app/immutable/nodes/17.BiJynP3y.js
+++ b/backend/static/frontend/_app/immutable/nodes/17.DP2Eww18.js
@@ -1,2 +1,2 @@
-import{r as gt}from"../chunks/BJZ1igWb.js";import{b as ht,a as We,p as ue,t as $t,c as Ie,i as xt}from"../chunks/D6S6XYVy.js";import{i as _}from"../chunks/DMODTt3n.js";import{o as bt}from"../chunks/Dwk6gGSK.js";import{p as Pt,h as f,v as kt,f as u,c as a,b as t,a as wt,w as yt,g as e,u as g,e as Y,i as o,s as v,n as k,r as Z,d as l,t as M,k as ee,l as te}from"../chunks/B2WdN-7r.js";import{e as Tt,i as St}from"../chunks/CMyj8Fzw.js";import{c as n}from"../chunks/BAcG0-U_.js";import{p as re}from"../chunks/BG_QVry4.js";import{g as Ct}from"../chunks/xR3pK9Ey.js";import{c as jt}from"../chunks/CyOblkUv.js";import{e as qe,f as zt,g as Ht}from"../chunks/DJdWGDax.js";import{B as Ge}from"../chunks/C1aqwstW.js";import{a as It,b as At,C as Bt}from"../chunks/BHR29ZVu.js";import{C as Ft}from"../chunks/KAiF5-Ht.js";import{b as Et,T as Ae,a as ae,c as Lt}from"../chunks/CeOjHHJH.js";import{T as Dt}from"../chunks/CEJkX7WU.js";import{L as Je}from"../chunks/D0pIT200.js";import{E as Ke}from"../chunks/B-KBEnoV.js";import{T as me}from"../chunks/BQmrPeqT.js";import{T as Rt}from"../chunks/xk30YnJ1.js";import{P as Mt}from"../chunks/C8IsQj6C.js";import{A as Nt}from"../chunks/CagnQ-rd.js";import{r as Be}from"../chunks/D_mqy6BL.js";import{A as Ot}from"../chunks/CNi31Ve4.js";const Wt=!1,qt=({params:pe})=>{if(!ht.isAuthenticated)throw gt(302,"/login");return{exceptionHash:pe.exceptionHash}},Cr=Object.freeze(Object.defineProperty({__proto__:null,load:qt,prerender:Wt},Symbol.toStringTag,{value:"Module"}));var Gt=yt('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg> Back to Issue',1),Jt=u("<!> Archive",1),Kt=u('<div class="flex items-center justify-center py-20"><!></div>'),Qt=u("<!> <!>",1),Ut=u("<!> <!>",1),Vt=u("<!> <!>",1),Xt=u('<div class="flex items-center justify-center"><!></div>'),Yt=u("<!> <!>",1),Zt=u("<!> <!>",1),er=u("<!> <!>",1),tr=u('<!> <div class="rounded-md border overflow-hidden"><!></div> <!>',1),rr=u('<div class="space-y-6"><div class="flex items-center justify-between"><!> <!></div> <!></div> <!>',1);function jr(pe,Qe){Pt(Qe,!0);const Ue=g(Ht),oe=g(()=>ue.currentProject?.framework?xt(ue.currentProject.framework):!1);let N=f(null),O=f(kt([])),j=f(!0),se=f(""),_e=f(!1),ge=f(!1),he=f(!1),ne=f(1),$e=f(50),Fe=f(0),xe=f(0);async function W(){o(j,!0),o(se,""),o(_e,!1);try{const r=re.params.exceptionHash,s=await We.post(`/exception-stack-traces/${r}`,{pagination:{page:e(ne),pageSize:e($e)}},{projectId:ue.currentProjectId??void 0});o(N,s.group,!0),o(O,s.occurrences||[],!0),o(Fe,s.pagination.total,!0),o(xe,s.pagination.totalPages,!0)}catch(r){console.error(r),r.status===404?o(_e,!0):o(se,r.message||"Failed to load exception details",!0)}finally{o(j,!1)}}function Ve(r){r>=1&&r<=e(xe)&&(o(ne,r,!0),W())}function Xe(r){o($e,r,!0),o(ne,1),W()}async function Ye(){o(he,!0);try{await We.post("/exception-stack-traces/archive",{hashes:[re.params.exceptionHash]},{projectId:ue.currentProjectId??void 0}),$t.success("Successfully archived the Issue",{position:"top-center"}),Ct("/issues")}catch(r){throw console.error("Archive failed:",r),r}finally{o(he,!1)}}bt(()=>{W()});var Ee=rr(),be=a(Ee),Pe=Y(be),Le=Y(Pe);{let r=g(()=>Ie({fallbackPath:Be("/issues/[exceptionHash]",{exceptionHash:re.params.exceptionHash??""})}));Ge(Le,{variant:"outline",size:"sm",get onclick(){return e(r)},children:(s,q)=>{var z=Gt();k(),t(s,z)},$$slots:{default:!0}})}var Ze=v(Le,2);{var et=r=>{Ge(r,{variant:"outline",size:"sm",onclick:()=>o(ge,!0),get disabled(){return e(he)},class:"gap-1.5",children:(s,q)=>{var z=Jt(),ke=a(z);Ot(ke,{class:"h-4 w-4"}),k(),t(s,z)},$$slots:{default:!0}})};_(Ze,r=>{e(N)&&r(et)})}Z(Pe);var tt=v(Pe,2);{var rt=r=>{var s=Kt(),q=Y(s);Je(q,{size:"xlg"}),Z(s),t(r,s)},at=r=>{var s=l(),q=a(s);{var z=H=>{{let le=g(()=>Ie({fallbackPath:Be("/issues")}));Ke(H,{status:404,title:"Exception Not Found",description:"The exception you're looking for doesn't exist or may have been removed.",get onBack(){return e(le)},backLabel:"Back to Issues",onRetry:()=>W(),get identifier(){return re.params.exceptionHash}})}},ke=H=>{var le=l(),st=a(le);{var nt=I=>{{let ie=g(()=>Ie({fallbackPath:Be("/issues")}));Ke(I,{status:400,title:"Something Went Wrong",get description(){return e(se)},get onBack(){return e(ie)},backLabel:"Back to Issues",onRetry:()=>W()})}},lt=I=>{var ie=l(),it=a(ie);{var ct=we=>{var De=tr(),Re=a(De);n(Re,()=>Bt,(Te,Se)=>{Se(Te,{children:(Ce,vt)=>{var G=l(),ce=a(G);n(ce,()=>It,(je,ze)=>{ze(je,{class:"pb-3",children:(w,J)=>{var A=Qt(),K=a(A);n(K,()=>At,(y,F)=>{F(y,{class:"text-lg",children:(h,m)=>{k();var i=M("All Events");t(h,i)},$$slots:{default:!0}})});var B=v(K,2);n(B,()=>Ft,(y,F)=>{F(y,{class:"font-mono text-sm",children:(h,m)=>{k();var i=M();ee(T=>te(i,T),[()=>qe(e(N).stackTrace,80)]),t(h,i)},$$slots:{default:!0}})}),t(w,A)},$$slots:{default:!0}})}),t(Ce,G)},$$slots:{default:!0}})});var ye=v(Re,2),dt=Y(ye);n(dt,()=>Lt,(Te,Se)=>{Se(Te,{children:(Ce,vt)=>{var G=er(),ce=a(G);{var je=w=>{var J=l(),A=a(J);n(A,()=>Dt,(K,B)=>{B(K,{children:(y,F)=>{var h=l(),m=a(h);n(m,()=>Ae,(i,T)=>{T(i,{children:(Q,de)=>{var c=Vt(),$=a(c);me($,{label:"Recorded At",tooltip:"When this occurrence was recorded"});var E=v($,2);{var U=d=>{me(d,{label:"Title",tooltip:"Exception message from the first line of the stack trace"})},p=d=>{var L=Ut(),D=a(L);me(D,{label:"Server",tooltip:"Server instance where error occurred"});var fe=v(D,2);me(fe,{label:"Trace",tooltip:"Trace ID if this occurred during a request"}),t(d,L)};_(E,d=>{e(oe)?d(U):d(p,!1)})}t(Q,c)},$$slots:{default:!0}})}),t(y,h)},$$slots:{default:!0}})}),t(w,J)};_(ce,w=>{(e(j)||e(O).length>0)&&w(je)})}var ze=v(ce,2);n(ze,()=>Et,(w,J)=>{J(w,{children:(A,K)=>{var B=l(),y=a(B);{var F=m=>{var i=l(),T=a(i);n(T,()=>Ae,(Q,de)=>{de(Q,{children:(c,$)=>{var E=l(),U=a(E);{let p=g(()=>e(oe)?2:3);n(U,()=>ae,(d,L)=>{L(d,{get colspan(){return e(p)},class:"h-48",children:(D,fe)=>{var V=Xt(),He=Y(V);Je(He,{size:"lg"}),Z(V),t(D,V)},$$slots:{default:!0}})})}t(c,E)},$$slots:{default:!0}})}),t(m,i)},h=m=>{var i=l(),T=a(i);{var Q=c=>{{let $=g(()=>e(oe)?2:3);Rt(c,{get colspan(){return e($)},message:"No events found."})}},de=c=>{var $=l(),E=a($);Tt(E,17,()=>e(O),St,(U,p)=>{var d=l(),L=a(d);{let D=g(()=>jt(`/issues/${re.params.exceptionHash}/${e(p).id}`,"preset","from","to"));n(L,()=>Ae,(fe,V)=>{V(fe,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return e(D)},children:(He,ar)=>{var Me=Zt(),Ne=a(Me);n(Ne,()=>ae,(x,S)=>{S(x,{children:(R,ve)=>{k();var b=M();ee(C=>te(b,C),[()=>zt(e(p).recordedAt,{timezone:e(Ue)})]),t(R,b)},$$slots:{default:!0}})});var ut=v(Ne,2);{var mt=x=>{var S=l(),R=a(S);{let ve=g(()=>e(p).stackTrace.split(`
+import{r as gt}from"../chunks/B4VmGkxP.js";import{b as ht,a as We,p as ue,t as $t,c as Ie,i as xt}from"../chunks/qCQ2nSvO.js";import{i as _}from"../chunks/DMODTt3n.js";import{o as bt}from"../chunks/Dwk6gGSK.js";import{p as Pt,h as f,v as kt,f as u,c as a,b as t,a as wt,w as yt,g as e,u as g,e as Y,i as o,s as v,n as k,r as Z,d as l,t as M,k as ee,l as te}from"../chunks/B2WdN-7r.js";import{e as Tt,i as St}from"../chunks/CMyj8Fzw.js";import{c as n}from"../chunks/BAcG0-U_.js";import{p as re}from"../chunks/CyRgFauW.js";import{g as Ct}from"../chunks/BIF4_51j.js";import{c as jt}from"../chunks/UIirCQWa.js";import{e as qe,f as zt,g as Ht}from"../chunks/Dq-0lVru.js";import{B as Ge}from"../chunks/C1aqwstW.js";import{a as It,b as At,C as Bt}from"../chunks/BHR29ZVu.js";import{C as Ft}from"../chunks/KAiF5-Ht.js";import{b as Et,T as Ae,a as ae,c as Lt}from"../chunks/CeOjHHJH.js";import{T as Dt}from"../chunks/CEJkX7WU.js";import{L as Je}from"../chunks/D0pIT200.js";import{E as Ke}from"../chunks/CFZS-Ydw.js";import{T as me}from"../chunks/CkVJuMBr.js";import{T as Rt}from"../chunks/xk30YnJ1.js";import{P as Mt}from"../chunks/DByR3-93.js";import{A as Nt}from"../chunks/x4zBYqLS.js";import{r as Be}from"../chunks/BGApn_8u.js";import{A as Ot}from"../chunks/CNi31Ve4.js";const Wt=!1,qt=({params:pe})=>{if(!ht.isAuthenticated)throw gt(302,"/login");return{exceptionHash:pe.exceptionHash}},Cr=Object.freeze(Object.defineProperty({__proto__:null,load:qt,prerender:Wt},Symbol.toStringTag,{value:"Module"}));var Gt=yt('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-2"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg> Back to Issue',1),Jt=u("<!> Archive",1),Kt=u('<div class="flex items-center justify-center py-20"><!></div>'),Qt=u("<!> <!>",1),Ut=u("<!> <!>",1),Vt=u("<!> <!>",1),Xt=u('<div class="flex items-center justify-center"><!></div>'),Yt=u("<!> <!>",1),Zt=u("<!> <!>",1),er=u("<!> <!>",1),tr=u('<!> <div class="rounded-md border overflow-hidden"><!></div> <!>',1),rr=u('<div class="space-y-6"><div class="flex items-center justify-between"><!> <!></div> <!></div> <!>',1);function jr(pe,Qe){Pt(Qe,!0);const Ue=g(Ht),oe=g(()=>ue.currentProject?.framework?xt(ue.currentProject.framework):!1);let N=f(null),O=f(kt([])),j=f(!0),se=f(""),_e=f(!1),ge=f(!1),he=f(!1),ne=f(1),$e=f(50),Fe=f(0),xe=f(0);async function W(){o(j,!0),o(se,""),o(_e,!1);try{const r=re.params.exceptionHash,s=await We.post(`/exception-stack-traces/${r}`,{pagination:{page:e(ne),pageSize:e($e)}},{projectId:ue.currentProjectId??void 0});o(N,s.group,!0),o(O,s.occurrences||[],!0),o(Fe,s.pagination.total,!0),o(xe,s.pagination.totalPages,!0)}catch(r){console.error(r),r.status===404?o(_e,!0):o(se,r.message||"Failed to load exception details",!0)}finally{o(j,!1)}}function Ve(r){r>=1&&r<=e(xe)&&(o(ne,r,!0),W())}function Xe(r){o($e,r,!0),o(ne,1),W()}async function Ye(){o(he,!0);try{await We.post("/exception-stack-traces/archive",{hashes:[re.params.exceptionHash]},{projectId:ue.currentProjectId??void 0}),$t.success("Successfully archived the Issue",{position:"top-center"}),Ct("/issues")}catch(r){throw console.error("Archive failed:",r),r}finally{o(he,!1)}}bt(()=>{W()});var Ee=rr(),be=a(Ee),Pe=Y(be),Le=Y(Pe);{let r=g(()=>Ie({fallbackPath:Be("/issues/[exceptionHash]",{exceptionHash:re.params.exceptionHash??""})}));Ge(Le,{variant:"outline",size:"sm",get onclick(){return e(r)},children:(s,q)=>{var z=Gt();k(),t(s,z)},$$slots:{default:!0}})}var Ze=v(Le,2);{var et=r=>{Ge(r,{variant:"outline",size:"sm",onclick:()=>o(ge,!0),get disabled(){return e(he)},class:"gap-1.5",children:(s,q)=>{var z=Jt(),ke=a(z);Ot(ke,{class:"h-4 w-4"}),k(),t(s,z)},$$slots:{default:!0}})};_(Ze,r=>{e(N)&&r(et)})}Z(Pe);var tt=v(Pe,2);{var rt=r=>{var s=Kt(),q=Y(s);Je(q,{size:"xlg"}),Z(s),t(r,s)},at=r=>{var s=l(),q=a(s);{var z=H=>{{let le=g(()=>Ie({fallbackPath:Be("/issues")}));Ke(H,{status:404,title:"Exception Not Found",description:"The exception you're looking for doesn't exist or may have been removed.",get onBack(){return e(le)},backLabel:"Back to Issues",onRetry:()=>W(),get identifier(){return re.params.exceptionHash}})}},ke=H=>{var le=l(),st=a(le);{var nt=I=>{{let ie=g(()=>Ie({fallbackPath:Be("/issues")}));Ke(I,{status:400,title:"Something Went Wrong",get description(){return e(se)},get onBack(){return e(ie)},backLabel:"Back to Issues",onRetry:()=>W()})}},lt=I=>{var ie=l(),it=a(ie);{var ct=we=>{var De=tr(),Re=a(De);n(Re,()=>Bt,(Te,Se)=>{Se(Te,{children:(Ce,vt)=>{var G=l(),ce=a(G);n(ce,()=>It,(je,ze)=>{ze(je,{class:"pb-3",children:(w,J)=>{var A=Qt(),K=a(A);n(K,()=>At,(y,F)=>{F(y,{class:"text-lg",children:(h,m)=>{k();var i=M("All Events");t(h,i)},$$slots:{default:!0}})});var B=v(K,2);n(B,()=>Ft,(y,F)=>{F(y,{class:"font-mono text-sm",children:(h,m)=>{k();var i=M();ee(T=>te(i,T),[()=>qe(e(N).stackTrace,80)]),t(h,i)},$$slots:{default:!0}})}),t(w,A)},$$slots:{default:!0}})}),t(Ce,G)},$$slots:{default:!0}})});var ye=v(Re,2),dt=Y(ye);n(dt,()=>Lt,(Te,Se)=>{Se(Te,{children:(Ce,vt)=>{var G=er(),ce=a(G);{var je=w=>{var J=l(),A=a(J);n(A,()=>Dt,(K,B)=>{B(K,{children:(y,F)=>{var h=l(),m=a(h);n(m,()=>Ae,(i,T)=>{T(i,{children:(Q,de)=>{var c=Vt(),$=a(c);me($,{label:"Recorded At",tooltip:"When this occurrence was recorded"});var E=v($,2);{var U=d=>{me(d,{label:"Title",tooltip:"Exception message from the first line of the stack trace"})},p=d=>{var L=Ut(),D=a(L);me(D,{label:"Server",tooltip:"Server instance where error occurred"});var fe=v(D,2);me(fe,{label:"Trace",tooltip:"Trace ID if this occurred during a request"}),t(d,L)};_(E,d=>{e(oe)?d(U):d(p,!1)})}t(Q,c)},$$slots:{default:!0}})}),t(y,h)},$$slots:{default:!0}})}),t(w,J)};_(ce,w=>{(e(j)||e(O).length>0)&&w(je)})}var ze=v(ce,2);n(ze,()=>Et,(w,J)=>{J(w,{children:(A,K)=>{var B=l(),y=a(B);{var F=m=>{var i=l(),T=a(i);n(T,()=>Ae,(Q,de)=>{de(Q,{children:(c,$)=>{var E=l(),U=a(E);{let p=g(()=>e(oe)?2:3);n(U,()=>ae,(d,L)=>{L(d,{get colspan(){return e(p)},class:"h-48",children:(D,fe)=>{var V=Xt(),He=Y(V);Je(He,{size:"lg"}),Z(V),t(D,V)},$$slots:{default:!0}})})}t(c,E)},$$slots:{default:!0}})}),t(m,i)},h=m=>{var i=l(),T=a(i);{var Q=c=>{{let $=g(()=>e(oe)?2:3);Rt(c,{get colspan(){return e($)},message:"No events found."})}},de=c=>{var $=l(),E=a($);Tt(E,17,()=>e(O),St,(U,p)=>{var d=l(),L=a(d);{let D=g(()=>jt(`/issues/${re.params.exceptionHash}/${e(p).id}`,"preset","from","to"));n(L,()=>Ae,(fe,V)=>{V(fe,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return e(D)},children:(He,ar)=>{var Me=Zt(),Ne=a(Me);n(Ne,()=>ae,(x,S)=>{S(x,{children:(R,ve)=>{k();var b=M();ee(C=>te(b,C),[()=>zt(e(p).recordedAt,{timezone:e(Ue)})]),t(R,b)},$$slots:{default:!0}})});var ut=v(Ne,2);{var mt=x=>{var S=l(),R=a(S);{let ve=g(()=>e(p).stackTrace.split(`
`)[0]);n(R,()=>ae,(b,C)=>{C(b,{class:"font-mono text-sm text-muted-foreground truncate max-w-[400px]",get title(){return e(ve)},children:(X,Oe)=>{k();var P=M();ee(_t=>te(P,_t),[()=>qe(e(p).stackTrace,60)]),t(X,P)},$$slots:{default:!0}})})}t(x,S)},pt=x=>{var S=Yt(),R=a(S);n(R,()=>ae,(b,C)=>{C(b,{class:"font-mono text-sm text-muted-foreground",children:(X,Oe)=>{k();var P=M();ee(()=>te(P,e(p).serverName||"-")),t(X,P)},$$slots:{default:!0}})});var ve=v(R,2);n(ve,()=>ae,(b,C)=>{C(b,{class:"font-mono text-sm",children:(X,Oe)=>{k();var P=M();ee(()=>te(P,e(p).traceId||"-")),t(X,P)},$$slots:{default:!0}})}),t(x,S)};_(ut,x=>{e(oe)?x(mt):x(pt,!1)})}t(He,Me)},$$slots:{default:!0}})})}t(U,d)}),t(c,$)};_(T,c=>{e(O).length===0?c(Q):c(de,!1)},!0)}t(m,i)};_(y,m=>{e(j)?m(F):m(h,!1)})}t(A,B)},$$slots:{default:!0}})}),t(Ce,G)},$$slots:{default:!0}})}),Z(ye);var ft=v(ye,2);Mt(ft,{get currentPage(){return e(ne)},get totalPages(){return e(xe)},get pageSize(){return e($e)},get totalItems(){return e(Fe)},get itemsShown(){return e(O).length},onPageChange:Ve,onPageSizeChange:Xe,get loading(){return e(j)},itemLabel:"event"}),t(we,De)};_(it,we=>{e(N)&&we(ct)},!0)}t(I,ie)};_(st,I=>{e(se)?I(nt):I(lt,!1)},!0)}t(H,le)};_(q,H=>{e(_e)?H(z):H(ke,!1)},!0)}t(r,s)};_(tt,r=>{e(j)&&!e(N)?r(rt):r(at,!1)})}Z(be);var ot=v(be,2);Nt(ot,{get open(){return e(ge)},onOpenChange:r=>o(ge,r,!0),count:1,onConfirm:Ye}),t(pe,Ee),wt()}export{jr as component,Cr as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/17.BiJynP3y.js.map b/backend/static/frontend/_app/immutable/nodes/17.DP2Eww18.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/17.BiJynP3y.js.map
rename to backend/static/frontend/_app/immutable/nodes/17.DP2Eww18.js.map
index c49e2efd..47c0bab3 100644
--- a/backend/static/frontend/_app/immutable/nodes/17.BiJynP3y.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/17.DP2Eww18.js.map
@@ -1 +1 @@
-{"version":3,"file":"17.BiJynP3y.js","sources":["../../../../../../src/routes/issues/[exceptionHash]/events/+page.ts","../../../../../../src/routes/issues/[exceptionHash]/events/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\treturn {\n\t\texceptionHash: params.exceptionHash\n\t};\n};\n","<script lang=\"ts\">\n import { onMount } from 'svelte';\n import { page } from '$app/state';\n import { goto } from '$app/navigation';\n import { createRowClickHandler } from '$lib/utils/navigation';\n import { createSmartBackHandler } from '$lib/utils/back-navigation';\n import { truncateStackTrace, formatDateTime } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import { api } from '$lib/api';\n import { Button } from \"$lib/components/ui/button\";\n import * as Card from \"$lib/components/ui/card\";\n import * as Table from \"$lib/components/ui/table\";\n import * as Select from \"$lib/components/ui/select\";\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import { ErrorDisplay } from \"$lib/components/ui/error-display\";\n import { projectsState, isFrontendFramework } from '$lib/state/projects.svelte';\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { PaginationFooter } from \"$lib/components/ui/pagination-footer\";\n import { toast } from 'svelte-sonner';\n import ArchiveConfirmationDialog from '$lib/components/archive-confirmation-dialog.svelte';\n import Archive from '@lucide/svelte/icons/archive';\n\timport { resolve } from '$app/paths';\n\n const timezone = $derived(getTimezone());\n const isFrontend = $derived(\n projectsState.currentProject?.framework\n ? isFrontendFramework(projectsState.currentProject.framework)\n : false\n );\n\n type ExceptionGroup = {\n exceptionHash: string;\n stackTrace: string;\n lastSeen: string;\n firstSeen: string;\n count: number;\n };\n\n type ExceptionOccurrence = {\n id: string;\n traceId: string | null;\n exceptionHash: string;\n stackTrace: string;\n recordedAt: string;\n serverName: string;\n appVersion: string;\n endpoint: string;\n };\n\n let group = $state<ExceptionGroup | null>(null);\n let occurrences = $state<ExceptionOccurrence[]>([]);\n let loading = $state(true);\n let error = $state('');\n let notFound = $state(false);\n let showArchiveDialog = $state(false);\n let archiving = $state(false);\n\n // Pagination state\n let currentPage = $state(1);\n let pageSize = $state(50);\n let total = $state(0);\n let totalPages = $state(0);\n\n // Page size options\n const pageSizeOptions = [\n { value: \"10\", label: \"10\" },\n { value: \"20\", label: \"20\" },\n { value: \"50\", label: \"50\" },\n { value: \"100\", label: \"100\" }\n ];\n\n const pageSizeLabel = $derived(pageSizeOptions.find(o => o.value === pageSize.toString())?.label ?? pageSize.toString());\n\n async function loadData() {\n loading = true;\n error = '';\n notFound = false;\n\n try {\n const exceptionHash = page.params.exceptionHash;\n const response = await api.post(`/exception-stack-traces/${exceptionHash}`, {\n pagination: {\n page: currentPage,\n pageSize: pageSize\n }\n }, { projectId: projectsState.currentProjectId ?? undefined });\n\n group = response.group;\n occurrences = response.occurrences || [];\n total = response.pagination.total;\n totalPages = response.pagination.totalPages;\n } catch (e: any) {\n console.error(e);\n if (e.status === 404) {\n notFound = true;\n } else {\n error = e.message || 'Failed to load exception details';\n }\n } finally {\n loading = false;\n }\n }\n\n function handlePageChange(newPage: number) {\n if (newPage >= 1 && newPage <= totalPages) {\n currentPage = newPage;\n loadData();\n }\n }\n\n function handlePageSizeChange(newPageSize: number) {\n pageSize = newPageSize;\n currentPage = 1;\n loadData();\n }\n\n async function archiveIssue() {\n archiving = true;\n try {\n await api.post(\n '/exception-stack-traces/archive',\n { hashes: [page.params.exceptionHash] },\n { projectId: projectsState.currentProjectId ?? undefined }\n );\n toast.success('Successfully archived the Issue', { position: 'top-center' });\n goto('/issues');\n } catch (e: any) {\n console.error('Archive failed:', e);\n throw e;\n } finally {\n archiving = false;\n }\n }\n\n onMount(() => {\n loadData();\n });\n</script>\n\n<div class=\"space-y-6\">\n <!-- Header -->\n <div class=\"flex items-center justify-between\">\n <Button variant=\"outline\" size=\"sm\" onclick={createSmartBackHandler({ fallbackPath: resolve('/issues/[exceptionHash]', {exceptionHash: page.params.exceptionHash ?? ''}) })}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"mr-2\">\n <path d=\"m12 19-7-7 7-7\"/><path d=\"M19 12H5\"/>\n </svg>\n Back to Issue\n </Button>\n {#if group}\n <Button\n variant=\"outline\"\n size=\"sm\"\n onclick={() => showArchiveDialog = true}\n disabled={archiving}\n class=\"gap-1.5\"\n >\n <Archive class=\"h-4 w-4\" />\n Archive\n </Button>\n {/if}\n </div>\n\n {#if loading && !group}\n <div class=\"flex items-center justify-center py-20\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else if notFound}\n <ErrorDisplay\n status={404}\n title=\"Exception Not Found\"\n description=\"The exception you're looking for doesn't exist or may have been removed.\"\n onBack={createSmartBackHandler({ fallbackPath: resolve('/issues') })}\n backLabel=\"Back to Issues\"\n onRetry={() => loadData()}\n identifier={page.params.exceptionHash}\n />\n {:else if error}\n <ErrorDisplay\n status={400}\n title=\"Something Went Wrong\"\n description={error}\n onBack={createSmartBackHandler({ fallbackPath: resolve('/issues') })}\n backLabel=\"Back to Issues\"\n onRetry={() => loadData()}\n />\n {:else if group}\n <!-- Issue Summary -->\n <Card.Root>\n <Card.Header class=\"pb-3\">\n <Card.Title class=\"text-lg\">All Events</Card.Title>\n <Card.Description class=\"font-mono text-sm\">\n {truncateStackTrace(group.stackTrace, 80)}\n </Card.Description>\n </Card.Header>\n </Card.Root>\n\n <!-- Events Table -->\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if loading || occurrences.length > 0}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader\n label=\"Recorded At\"\n tooltip=\"When this occurrence was recorded\"\n />\n {#if isFrontend}\n <TracewayTableHeader\n label=\"Title\"\n tooltip=\"Exception message from the first line of the stack trace\"\n />\n {:else}\n <TracewayTableHeader\n label=\"Server\"\n tooltip=\"Server instance where error occurred\"\n />\n <TracewayTableHeader\n label=\"Trace\"\n tooltip=\"Trace ID if this occurred during a request\"\n />\n {/if}\n </Table.Row>\n </Table.Header>\n {/if}\n <Table.Body>\n {#if loading}\n <Table.Row>\n <Table.Cell colspan={isFrontend ? 2 : 3} class=\"h-48\">\n <div class=\"flex items-center justify-center\">\n <LoadingCircle size=\"lg\" />\n </div>\n </Table.Cell>\n </Table.Row>\n {:else if occurrences.length === 0}\n <TableEmptyState colspan={isFrontend ? 2 : 3} message=\"No events found.\" />\n {:else}\n {#each occurrences as occurrence}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50\"\n onclick={createRowClickHandler(`/issues/${page.params.exceptionHash}/${occurrence.id}`, 'preset', 'from', 'to')}\n >\n <Table.Cell>{formatDateTime(occurrence.recordedAt, { timezone })}</Table.Cell>\n {#if isFrontend}\n <Table.Cell class=\"font-mono text-sm text-muted-foreground truncate max-w-[400px]\" title={occurrence.stackTrace.split('\\n')[0]}>\n {truncateStackTrace(occurrence.stackTrace, 60)}\n </Table.Cell>\n {:else}\n <Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n {occurrence.serverName || '-'}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm\">\n {occurrence.traceId || '-'}\n </Table.Cell>\n {/if}\n </Table.Row>\n {/each}\n {/if}\n </Table.Body>\n </Table.Root>\n </div>\n\n <!-- Pagination Footer -->\n <PaginationFooter\n {currentPage}\n {totalPages}\n {pageSize}\n totalItems={total}\n itemsShown={occurrences.length}\n onPageChange={handlePageChange}\n onPageSizeChange={handlePageSizeChange}\n {loading}\n itemLabel=\"event\"\n />\n {/if}\n</div>\n\n<ArchiveConfirmationDialog\n open={showArchiveDialog}\n onOpenChange={(open) => showArchiveDialog = open}\n count={1}\n onConfirm={archiveIssue}\n/>\n"],"names":["prerender","load","params","authState","redirect","timezone","getTimezone","isFrontend","$.derived","projectsState","isFrontendFramework","group","$.state","occurrences","$.proxy","loading","error","notFound","showArchiveDialog","archiving","currentPage","pageSize","total","totalPages","loadData","$.set","exceptionHash","page","response","api","$.get","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","archiveIssue","toast","goto","onMount","div","$.first_child","fragment","div_1","createSmartBackHandler","resolve","Button","node","$$anchor","Archive","node_2","$$render","consequent","div_2","root_4","LoadingCircle","node_4","$0","ErrorDisplay","Card_Root","Card_Header","Card_Title","Card_Description","$.template_effect","$.set_text","text_1","truncateStackTrace","div_3","$.sibling","node_8","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_16","node_18","node_19","consequent_4","alternate","consequent_5","Table_Body","Table_Row_1","Table_Cell","div_4","root_24","node_24","TableEmptyState","$.each","node_26","occurrence","createRowClickHandler","Table_Row_2","Table_Cell_1","formatDateTime","Table_Cell_2","text_3","Table_Cell_3","Table_Cell_4","consequent_8","alternate_1","consequent_7","alternate_2","consequent_6","alternate_3","PaginationFooter","node_33","consequent_9","consequent_3","alternate_4","consequent_2","alternate_5","consequent_1","alternate_6","ArchiveConfirmationDialog","node_34","open"],"mappings":"ivCAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,MAAa,CAC7C,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAE7B,MAAO,CACN,cAAeF,GAAO,aAAA,CAExB,s2BCbA,WAwBU,MAAAG,KAAoBC,EAAW,EAC/BC,GAAUC,EAAA,IACZC,GAAc,gBAAgB,UACxBC,GAAoBD,GAAc,eAAe,SAAS,EAC1D,EAAA,MAsBNE,EAAQC,EAA8B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AAC,WAAY,EAAE,CAAA,CAAA,uFAGhDO,EAAUhD,EAAA,+FACNyC,CAAU,EAAC,YAAc,GAAG,CAAA,qEAEhCQ,EAAUjD,EAAA,yEACNyC,CAAU,EAAC,SAAW,GAAG,CAAA,sDATzBlF,EAAU,EAAA4C,EAAA+C,EAAA,EAAA/C,EAAAgD,GAAA,EAAA,kEATjBtF,CAAW,EAAC,SAAW,EAACsC,EAAAiD,CAAA,EAAAjD,EAAAkD,GAAA,EAAA,yBAR7BtF,CAAO,EAAAoC,EAAAmD,CAAA,EAAAnD,EAAAoD,EAAA,EAAA,yEA5BvBpC,EAAG,WAAHA,GAAG,CAAA,EAiEHqC,GAAAC,GAAA,4BACIrF,EAAW,6BACXG,EAAU,2BACVF,EAAQ,6BACGC,EAAK,oBACL,OAAAQ,EAAAjB,CAAW,EAAC,qBACVmB,oBACIE,0BACjBnB,CAAO,6CArFNJ,CAAK,GAAAwC,GAAAuD,EAAA,2BATL1F,EAAK,EAAAmC,EAAAwD,EAAA,EAAAxD,EAAAyD,GAAA,EAAA,0BAVL3F,EAAQ,EAAAkC,EAAA0D,CAAA,EAAA1D,EAAA2D,GAAA,EAAA,wBAJbhF,EAAAf,CAAO,MAAKJ,CAAK,EAAAwC,EAAA4D,EAAA,EAAA5D,EAAA6D,GAAA,EAAA,MAvBzBxE,EAAG,WAAHA,GAAG,CAAA,EAyIHyE,GAAAC,GAAA,qBACShG,EAAiB,gBACRiG,GAAI1F,EAAKP,GAAoBiG,EAAI,EAAA,QACzC,YACI/E,kBA/If"}
\ No newline at end of file
+{"version":3,"file":"17.DP2Eww18.js","sources":["../../../../../../src/routes/issues/[exceptionHash]/events/+page.ts","../../../../../../src/routes/issues/[exceptionHash]/events/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\treturn {\n\t\texceptionHash: params.exceptionHash\n\t};\n};\n","<script lang=\"ts\">\n import { onMount } from 'svelte';\n import { page } from '$app/state';\n import { goto } from '$app/navigation';\n import { createRowClickHandler } from '$lib/utils/navigation';\n import { createSmartBackHandler } from '$lib/utils/back-navigation';\n import { truncateStackTrace, formatDateTime } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import { api } from '$lib/api';\n import { Button } from \"$lib/components/ui/button\";\n import * as Card from \"$lib/components/ui/card\";\n import * as Table from \"$lib/components/ui/table\";\n import * as Select from \"$lib/components/ui/select\";\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import { ErrorDisplay } from \"$lib/components/ui/error-display\";\n import { projectsState, isFrontendFramework } from '$lib/state/projects.svelte';\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { PaginationFooter } from \"$lib/components/ui/pagination-footer\";\n import { toast } from 'svelte-sonner';\n import ArchiveConfirmationDialog from '$lib/components/archive-confirmation-dialog.svelte';\n import Archive from '@lucide/svelte/icons/archive';\n\timport { resolve } from '$app/paths';\n\n const timezone = $derived(getTimezone());\n const isFrontend = $derived(\n projectsState.currentProject?.framework\n ? isFrontendFramework(projectsState.currentProject.framework)\n : false\n );\n\n type ExceptionGroup = {\n exceptionHash: string;\n stackTrace: string;\n lastSeen: string;\n firstSeen: string;\n count: number;\n };\n\n type ExceptionOccurrence = {\n id: string;\n traceId: string | null;\n exceptionHash: string;\n stackTrace: string;\n recordedAt: string;\n serverName: string;\n appVersion: string;\n endpoint: string;\n };\n\n let group = $state<ExceptionGroup | null>(null);\n let occurrences = $state<ExceptionOccurrence[]>([]);\n let loading = $state(true);\n let error = $state('');\n let notFound = $state(false);\n let showArchiveDialog = $state(false);\n let archiving = $state(false);\n\n // Pagination state\n let currentPage = $state(1);\n let pageSize = $state(50);\n let total = $state(0);\n let totalPages = $state(0);\n\n // Page size options\n const pageSizeOptions = [\n { value: \"10\", label: \"10\" },\n { value: \"20\", label: \"20\" },\n { value: \"50\", label: \"50\" },\n { value: \"100\", label: \"100\" }\n ];\n\n const pageSizeLabel = $derived(pageSizeOptions.find(o => o.value === pageSize.toString())?.label ?? pageSize.toString());\n\n async function loadData() {\n loading = true;\n error = '';\n notFound = false;\n\n try {\n const exceptionHash = page.params.exceptionHash;\n const response = await api.post(`/exception-stack-traces/${exceptionHash}`, {\n pagination: {\n page: currentPage,\n pageSize: pageSize\n }\n }, { projectId: projectsState.currentProjectId ?? undefined });\n\n group = response.group;\n occurrences = response.occurrences || [];\n total = response.pagination.total;\n totalPages = response.pagination.totalPages;\n } catch (e: any) {\n console.error(e);\n if (e.status === 404) {\n notFound = true;\n } else {\n error = e.message || 'Failed to load exception details';\n }\n } finally {\n loading = false;\n }\n }\n\n function handlePageChange(newPage: number) {\n if (newPage >= 1 && newPage <= totalPages) {\n currentPage = newPage;\n loadData();\n }\n }\n\n function handlePageSizeChange(newPageSize: number) {\n pageSize = newPageSize;\n currentPage = 1;\n loadData();\n }\n\n async function archiveIssue() {\n archiving = true;\n try {\n await api.post(\n '/exception-stack-traces/archive',\n { hashes: [page.params.exceptionHash] },\n { projectId: projectsState.currentProjectId ?? undefined }\n );\n toast.success('Successfully archived the Issue', { position: 'top-center' });\n goto('/issues');\n } catch (e: any) {\n console.error('Archive failed:', e);\n throw e;\n } finally {\n archiving = false;\n }\n }\n\n onMount(() => {\n loadData();\n });\n</script>\n\n<div class=\"space-y-6\">\n <!-- Header -->\n <div class=\"flex items-center justify-between\">\n <Button variant=\"outline\" size=\"sm\" onclick={createSmartBackHandler({ fallbackPath: resolve('/issues/[exceptionHash]', {exceptionHash: page.params.exceptionHash ?? ''}) })}>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"mr-2\">\n <path d=\"m12 19-7-7 7-7\"/><path d=\"M19 12H5\"/>\n </svg>\n Back to Issue\n </Button>\n {#if group}\n <Button\n variant=\"outline\"\n size=\"sm\"\n onclick={() => showArchiveDialog = true}\n disabled={archiving}\n class=\"gap-1.5\"\n >\n <Archive class=\"h-4 w-4\" />\n Archive\n </Button>\n {/if}\n </div>\n\n {#if loading && !group}\n <div class=\"flex items-center justify-center py-20\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else if notFound}\n <ErrorDisplay\n status={404}\n title=\"Exception Not Found\"\n description=\"The exception you're looking for doesn't exist or may have been removed.\"\n onBack={createSmartBackHandler({ fallbackPath: resolve('/issues') })}\n backLabel=\"Back to Issues\"\n onRetry={() => loadData()}\n identifier={page.params.exceptionHash}\n />\n {:else if error}\n <ErrorDisplay\n status={400}\n title=\"Something Went Wrong\"\n description={error}\n onBack={createSmartBackHandler({ fallbackPath: resolve('/issues') })}\n backLabel=\"Back to Issues\"\n onRetry={() => loadData()}\n />\n {:else if group}\n <!-- Issue Summary -->\n <Card.Root>\n <Card.Header class=\"pb-3\">\n <Card.Title class=\"text-lg\">All Events</Card.Title>\n <Card.Description class=\"font-mono text-sm\">\n {truncateStackTrace(group.stackTrace, 80)}\n </Card.Description>\n </Card.Header>\n </Card.Root>\n\n <!-- Events Table -->\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if loading || occurrences.length > 0}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader\n label=\"Recorded At\"\n tooltip=\"When this occurrence was recorded\"\n />\n {#if isFrontend}\n <TracewayTableHeader\n label=\"Title\"\n tooltip=\"Exception message from the first line of the stack trace\"\n />\n {:else}\n <TracewayTableHeader\n label=\"Server\"\n tooltip=\"Server instance where error occurred\"\n />\n <TracewayTableHeader\n label=\"Trace\"\n tooltip=\"Trace ID if this occurred during a request\"\n />\n {/if}\n </Table.Row>\n </Table.Header>\n {/if}\n <Table.Body>\n {#if loading}\n <Table.Row>\n <Table.Cell colspan={isFrontend ? 2 : 3} class=\"h-48\">\n <div class=\"flex items-center justify-center\">\n <LoadingCircle size=\"lg\" />\n </div>\n </Table.Cell>\n </Table.Row>\n {:else if occurrences.length === 0}\n <TableEmptyState colspan={isFrontend ? 2 : 3} message=\"No events found.\" />\n {:else}\n {#each occurrences as occurrence}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50\"\n onclick={createRowClickHandler(`/issues/${page.params.exceptionHash}/${occurrence.id}`, 'preset', 'from', 'to')}\n >\n <Table.Cell>{formatDateTime(occurrence.recordedAt, { timezone })}</Table.Cell>\n {#if isFrontend}\n <Table.Cell class=\"font-mono text-sm text-muted-foreground truncate max-w-[400px]\" title={occurrence.stackTrace.split('\\n')[0]}>\n {truncateStackTrace(occurrence.stackTrace, 60)}\n </Table.Cell>\n {:else}\n <Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n {occurrence.serverName || '-'}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm\">\n {occurrence.traceId || '-'}\n </Table.Cell>\n {/if}\n </Table.Row>\n {/each}\n {/if}\n </Table.Body>\n </Table.Root>\n </div>\n\n <!-- Pagination Footer -->\n <PaginationFooter\n {currentPage}\n {totalPages}\n {pageSize}\n totalItems={total}\n itemsShown={occurrences.length}\n onPageChange={handlePageChange}\n onPageSizeChange={handlePageSizeChange}\n {loading}\n itemLabel=\"event\"\n />\n {/if}\n</div>\n\n<ArchiveConfirmationDialog\n open={showArchiveDialog}\n onOpenChange={(open) => showArchiveDialog = open}\n count={1}\n onConfirm={archiveIssue}\n/>\n"],"names":["prerender","load","params","authState","redirect","timezone","getTimezone","isFrontend","$.derived","projectsState","isFrontendFramework","group","$.state","occurrences","$.proxy","loading","error","notFound","showArchiveDialog","archiving","currentPage","pageSize","total","totalPages","loadData","$.set","exceptionHash","page","response","api","$.get","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","archiveIssue","toast","goto","onMount","div","$.first_child","fragment","div_1","createSmartBackHandler","resolve","Button","node","$$anchor","Archive","node_2","$$render","consequent","div_2","root_4","LoadingCircle","node_4","$0","ErrorDisplay","Card_Root","Card_Header","Card_Title","Card_Description","$.template_effect","$.set_text","text_1","truncateStackTrace","div_3","$.sibling","node_8","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_16","node_18","node_19","consequent_4","alternate","consequent_5","Table_Body","Table_Row_1","Table_Cell","div_4","root_24","node_24","TableEmptyState","$.each","node_26","occurrence","createRowClickHandler","Table_Row_2","Table_Cell_1","formatDateTime","Table_Cell_2","text_3","Table_Cell_3","Table_Cell_4","consequent_8","alternate_1","consequent_7","alternate_2","consequent_6","alternate_3","PaginationFooter","node_33","consequent_9","consequent_3","alternate_4","consequent_2","alternate_5","consequent_1","alternate_6","ArchiveConfirmationDialog","node_34","open"],"mappings":"ivCAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,MAAa,CAC7C,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAE7B,MAAO,CACN,cAAeF,GAAO,aAAA,CAExB,s2BCbA,WAwBU,MAAAG,KAAoBC,EAAW,EAC/BC,GAAUC,EAAA,IACZC,GAAc,gBAAgB,UACxBC,GAAoBD,GAAc,eAAe,SAAS,EAC1D,EAAA,MAsBNE,EAAQC,EAA8B,IAAI,EAC1CC,EAAcD,EAAME,GAAA,CAAA,CAAA,CAAA,EACpBC,EAAUH,EAAO,EAAI,EACrBI,GAAQJ,EAAO,EAAE,EACjBK,GAAWL,EAAO,EAAK,EACvBM,GAAoBN,EAAO,EAAK,EAChCO,GAAYP,EAAO,EAAK,EAGxBQ,GAAcR,EAAO,CAAC,EACtBS,GAAWT,EAAO,EAAE,EACpBU,GAAQV,EAAO,CAAC,EAChBW,GAAaX,EAAO,CAAC,EAYV,eAAAY,GAAW,CACtBC,EAAAV,EAAU,EAAI,EACdU,EAAAT,GAAQ,EAAE,EACVS,EAAAR,GAAW,EAAK,EAEZ,GAAA,CACM,MAAAS,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AAC,GAAA,4BACIrF,EAAW,6BACXG,EAAU,2BACVF,EAAQ,6BACGC,EAAK,oBACL,OAAAQ,EAAAjB,CAAW,EAAC,qBACVmB,oBACIE,0BACjBnB,CAAO,6CArFNJ,CAAK,GAAAwC,GAAAuD,EAAA,2BATL1F,EAAK,EAAAmC,EAAAwD,EAAA,EAAAxD,EAAAyD,GAAA,EAAA,0BAVL3F,EAAQ,EAAAkC,EAAA0D,CAAA,EAAA1D,EAAA2D,GAAA,EAAA,wBAJbhF,EAAAf,CAAO,MAAKJ,CAAK,EAAAwC,EAAA4D,EAAA,EAAA5D,EAAA6D,GAAA,EAAA,MAvBzBxE,EAAG,WAAHA,GAAG,CAAA,EAyIHyE,GAAAC,GAAA,qBACShG,EAAiB,gBACRiG,GAAI1F,EAAKP,GAAoBiG,EAAI,EAAA,QACzC,YACI/E,kBA/If"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/18.C864sJTS.js b/backend/static/frontend/_app/immutable/nodes/18.C864sJTS.js
new file mode 100644
index 00000000..cdadc372
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/18.C864sJTS.js
@@ -0,0 +1 @@
+import{r as de}from"../chunks/B4VmGkxP.js";import{b as W,t as ce,p as fe}from"../chunks/qCQ2nSvO.js";import{i as w}from"../chunks/DMODTt3n.js";import{p as me,h as u,v as N,F as ue,g as t,i as l,f as n,b as s,a as pe,c as z,s as i,e as $,r as x,n as y,t as p,k as ve,l as he,d as ge,j as _e,u as we}from"../chunks/B2WdN-7r.js";import{g as V}from"../chunks/BIF4_51j.js";import{p as v}from"../chunks/CyRgFauW.js";import{B as $e}from"../chunks/C1aqwstW.js";import{I as X}from"../chunks/D8CWOmhn.js";import{L as Y}from"../chunks/Csh2s3-8.js";import{C as xe,a as ye,b as Pe}from"../chunks/BHR29ZVu.js";import{C as be}from"../chunks/BKHeGn2e.js";import{A as Se,a as Le}from"../chunks/CaHAoFtL.js";import{A as Te}from"../chunks/DxBI0u1e.js";import{t as je}from"../chunks/BnbBSyGl.js";import{O as Ee}from"../chunks/CRXNgefC.js";import{C as Ce}from"../chunks/XxKcOLZH.js";const Ae=()=>{if(W.isAuthenticated)throw de(302,"/")},ar=Object.freeze(Object.defineProperty({__proto__:null,load:Ae},Symbol.toStringTag,{value:"Module"}));var Oe=n('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),ke=n('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),Re=n('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),ze=n("<!> <!> <!>",1),Ie=n('<form class="grid w-full items-center gap-4"><div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!> <a href="/forgot-password" class="text-sm text-primary hover:underline self-end">Forgot password?</a></div> <!></form>'),Ue=n("<!> <!> <!>",1),qe=n("<!> <!> <!>",1),Be=n('<div class="flex h-screen w-full items-center justify-center px-4"><!></div>');function tr(Z,ee){me(ee,!0);const re={oauth_failed:"Sign-in failed. Please try again.",oauth_no_email:"We couldn't read an email address from that account. Please make sure it has a verified email and try again.",invite_required:"This server is invite-only. Ask an admin to invite you."};let I=u(N(v.url.searchParams.get("email")??"")),U=u(N(v.url.searchParams.get("password")??""));const q=v.url.searchParams.get("error");if(v.url.searchParams.has("email")||v.url.searchParams.has("password")){const e=new URL(window.location.href);e.searchParams.delete("email"),e.searchParams.delete("password"),window.history.replaceState({},"",e.pathname+e.search)}let P=u(N(q?re[q]??"Sign-in failed. Please try again.":"")),d=u(!1),b=u(!0),S=u(!1);if(q){const e=new URL(window.location.href);e.searchParams.delete("error"),window.history.replaceState({},"",e.pathname+e.search)}const H=we(()=>v.url.searchParams.get("returnTo"));ue(()=>{t(S)&&t(b)&&(l(d,!0),fetch("/api/has-organizations",{method:"GET"}).then(e=>e.json()).then(e=>{e.hasOrganizations?l(d,!1):V("/register")}).catch(()=>{ce.error("An unexpected error has occured. The page will refresh in 5 seconds."),setTimeout(()=>{window.location.reload()},5e3)}))});async function ae(){l(d,!0),l(P,"");try{const e=await fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t(I),password:t(U)})});if(!e.ok){const j=await e.json();throw new Error(j.error||"Invalid credentials")}const L=await e.json();W.setToken(L.token),W.setOrganizations(L.organizations||[]),fe.setProjects(L.projects);const T=t(H)?decodeURIComponent(t(H)):"/";V(T)}catch(e){l(P,e instanceof Error?e.message:"Invalid email or password",!0)}finally{l(d,!1)}}var B=Be(),te=$(B);xe(te,{class:"w-[350px]",children:(e,L)=>{var T=qe(),j=z(T);ye(j,{children:(E,oe)=>{Pe(E,{class:"text-2xl",children:(C,D)=>{var h=Re(),A=$(h);{var F=r=>{var o=Oe();s(r,o)},G=r=>{var o=ke();s(r,o)};w(A,r=>{je.isDark?r(F):r(G,!1)})}x(h),s(C,h)},$$slots:{default:!0}})},$$slots:{default:!0}});var K=i(j,2);be(K,{children:(E,oe)=>{var C=Ue(),D=z(C);{var h=r=>{Se(r,{variant:"destructive",class:"mb-4 bg-red-50 border-red-200",children:(o,O)=>{var g=ze(),k=z(g);Ce(k,{class:"h-4 w-4 text-red-700"});var c=i(k,2);Te(c,{class:"text-red-800",children:(_,M)=>{y();var a=p("Error");s(_,a)},$$slots:{default:!0}});var R=i(c,2);Le(R,{class:"text-red-700",children:(_,M)=>{y();var a=p();ve(()=>he(a,t(P))),s(_,a)},$$slots:{default:!0}}),s(o,g)},$$slots:{default:!0}})};w(D,r=>{t(P)&&r(h)})}var A=i(D,2);Ee(A,{get passwordLoginEnabled(){return t(b)},set passwordLoginEnabled(r){l(b,r,!0)},get loaded(){return t(S)},set loaded(r){l(S,r,!0)}});var F=i(A,2);{var G=r=>{var o=Ie(),O=$(o),g=$(O);Y(g,{for:"email",children:(a,Q)=>{y();var f=p("Email");s(a,f)},$$slots:{default:!0}});var k=i(g,2);X(k,{id:"email",type:"email",placeholder:"[email protected]",required:!0,get value(){return t(I)},set value(a){l(I,a,!0)}}),x(O);var c=i(O,2),R=$(c);Y(R,{for:"password",children:(a,Q)=>{y();var f=p("Password");s(a,f)},$$slots:{default:!0}});var _=i(R,2);X(_,{id:"password",type:"password",placeholder:"Password",required:!0,get value(){return t(U)},set value(a){l(U,a,!0)}}),y(2),x(c);var M=i(c,2);$e(M,{type:"submit",get disabled(){return t(d)},class:"w-full",children:(a,Q)=>{var f=ge(),le=z(f);{var ie=m=>{var J=p("Logging in...");s(m,J)},ne=m=>{var J=p("Login");s(m,J)};w(le,m=>{t(d)?m(ie):m(ne,!1)})}s(a,f)},$$slots:{default:!0}}),x(o),_e("submit",o,a=>{a.preventDefault(),ae()}),s(r,o)};w(F,r=>{t(S)&&t(b)&&r(G)})}s(E,C)},$$slots:{default:!0}});var se=i(K,2);w(se,E=>{}),s(e,T)},$$slots:{default:!0}}),x(B),s(Z,B),pe()}export{tr as component,ar as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/18.C864sJTS.js.map b/backend/static/frontend/_app/immutable/nodes/18.C864sJTS.js.map
new file mode 100644
index 00000000..e2d7ae37
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/18.C864sJTS.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"18.C864sJTS.js","sources":["../../../../../../src/routes/login/+page.ts","../../../../../../src/routes/login/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (authState.isAuthenticated) {\n\t\tthrow redirect(302, '/');\n\t}\n};\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { page } from '$app/state';\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardFooter, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import { CircleAlert } from \"@lucide/svelte\";\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState } from '$lib/state/projects.svelte';\n import { themeState } from '$lib/state/theme.svelte';\n\timport { toast } from 'svelte-sonner';\n import OauthButtons from '$lib/components/oauth-buttons.svelte';\n\n const ERROR_MESSAGES: Record<string, string> = {\n oauth_failed: 'Sign-in failed. Please try again.',\n oauth_no_email: \"We couldn't read an email address from that account. Please make sure it has a verified email and try again.\",\n invite_required: 'This server is invite-only. Ask an admin to invite you.',\n };\n\n let email = $state(page.url.searchParams.get('email') ?? '');\n let password = $state(page.url.searchParams.get('password') ?? '');\n const initialError = page.url.searchParams.get('error');\n\n if (page.url.searchParams.has('email') || page.url.searchParams.has('password')) {\n const cleanUrl = new URL(window.location.href);\n cleanUrl.searchParams.delete('email');\n cleanUrl.searchParams.delete('password');\n window.history.replaceState({}, '', cleanUrl.pathname + cleanUrl.search);\n }\n\n let error = $state(initialError ? (ERROR_MESSAGES[initialError] ?? 'Sign-in failed. Please try again.') : '');\n let loading = $state(false);\n let passwordLoginEnabled = $state(true);\n let providersLoaded = $state(false);\n\n if (initialError) {\n const cleanUrl = new URL(window.location.href);\n cleanUrl.searchParams.delete('error');\n window.history.replaceState({}, '', cleanUrl.pathname + cleanUrl.search);\n }\n\n // Get returnTo parameter for redirecting after login\n const returnTo = $derived(page.url.searchParams.get('returnTo'));\n\n if (!__CLOUD_MODE__) {\n $effect(() => {\n // Wait for providers to load — if password login is disabled, skip the /register redirect.\n if (!providersLoaded) return;\n if (!passwordLoginEnabled) return;\n\n loading = true;\n fetch('/api/has-organizations', {\n method: 'GET',\n })\n .then(response => response.json())\n .then((response) => {\n if (response.hasOrganizations) {\n loading = false\n } else {\n goto(\"/register\")\n }\n }).catch(() => {\n toast.error(\"An unexpected error has occured. The page will refresh in 5 seconds.\")\n setTimeout(() => {\n window.location.reload()\n }, 5000)\n });\n })\n }\n\n async function handleLogin() {\n loading = true;\n error = '';\n try {\n const response = await fetch('/api/login', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({ email, password })\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Invalid credentials');\n }\n\n const data = await response.json();\n\n authState.setToken(data.token);\n authState.setOrganizations(data.organizations || []);\n projectsState.setProjects(data.projects);\n\n // Redirect to returnTo if provided, otherwise go to dashboard\n const redirectTo = returnTo ? decodeURIComponent(returnTo) : '/';\n goto(redirectTo);\n } catch (e) {\n error = e instanceof Error ? e.message : 'Invalid email or password';\n } finally {\n loading = false;\n }\n }\n</script>\n\n<div class=\"flex h-screen w-full items-center justify-center px-4\">\n <Card class=\"w-[350px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n </CardHeader>\n <CardContent>\n {#if error}\n <Alert variant=\"destructive\" class=\"mb-4 bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n {/if}\n <OauthButtons bind:passwordLoginEnabled bind:loaded={providersLoaded} />\n {#if providersLoaded && passwordLoginEnabled}\n <form onsubmit={(e) => { e.preventDefault(); handleLogin(); }} class=\"grid w-full items-center gap-4\">\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" bind:value={email} placeholder=\"[email protected]\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"password\">Password</Label>\n <Input id=\"password\" type=\"password\" bind:value={password} placeholder=\"Password\" required />\n <a href=\"/forgot-password\" class=\"text-sm text-primary hover:underline self-end\">Forgot password?</a>\n </div>\n <Button type=\"submit\" disabled={loading} class=\"w-full\">\n {#if loading}\n Logging in...\n {:else}\n Login\n {/if}\n </Button>\n </form>\n {/if}\n </CardContent>\n\n <!-- If the backend is running in the cloud mode we'll allow registration to take place -->\n <!-- If we're running in the self hosted mode - we will not allow register -->\n {#if __CLOUD_MODE__}\n <CardFooter class=\"flex flex-col justify-center\">\n <p class=\"text-sm text-muted-foreground\">\n Don't have an account? <a href=\"/register\" class=\"text-primary hover:underline\">Create account</a>\n </p>\n </CardFooter>\n {/if}\n </Card>\n</div>\n"],"names":["load","authState","redirect","ERROR_MESSAGES","email","$.state","$.proxy","page","password","initialError","cleanUrl","error","loading","passwordLoginEnabled","providersLoaded","returnTo","$.derived","$.user_effect","$.set","response","goto","toast","handleLogin","$.get","data","projectsState","redirectTo","div","root","Card","node","CardHeader","node_1","CardTitle","$$anchor","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardContent","node_3","Alert","CircleAlert","node_5","AlertTitle","node_6","AlertDescription","node_7","consequent_1","OauthButtons","node_8","$$value","form","root_11","div_2","Label","node_10","Input","node_11","div_3","node_12","node_13","Button","node_14","consequent_2","alternate_1","e","consequent_3"],"mappings":"81BAIO,MAAMA,GAAiB,IAAM,CACnC,GAAIC,EAAU,gBACb,MAAMC,GAAS,IAAK,GAAG,CAEzB,wxBCRA,iBAeUC,GAAsC,CACxC,aAAc,oCACd,eAAgB,+GAChB,gBAAiB,yDAAA,EAGjB,IAAAC,EAAQC,EAAMC,EAACC,EAAK,IAAI,aAAa,IAAI,OAAO,GAAK,EAAE,CAAA,EACvDC,EAAWH,EAAMC,EAACC,EAAK,IAAI,aAAa,IAAI,UAAU,GAAK,EAAE,CAAA,QAC3DE,EAAeF,EAAK,IAAI,aAAa,IAAI,OAAO,EAElD,GAAAA,EAAK,IAAI,aAAa,IAAI,OAAO,GAAKA,EAAK,IAAI,aAAa,IAAI,UAAU,EAAG,CACvE,MAAAG,MAAe,IAAI,OAAO,SAAS,IAAI,EAC7CA,EAAS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I,EAAA,sEAA+B,OAAU,UAAE3D,CAAQ,OAApB,MAAUiD,EAAA,GAAEjD,EAAQiD,EAAA,EAAA,YAF5DQ,CAAG,UAAHA,EAAG,CAAA,EAKHG,GAAMC,EAAA,uCAAyBzD,CAAO,8IAC9BA,CAAO,IAAA0D,EAAA,EAAA5B,EAAA6B,GAAA,EAAA,qCAXnBb,CAAI,cAAJA,EAAgBc,GAAM,CAAEA,EAAE,eAAA,EAAkBlD,GAAA,CAAe,CAAC,MAA5DoC,CAAI,WADAnC,EAAAT,CAAe,KAAID,CAAoB,GAAA6B,EAAA+B,CAAA,8FAxBvD9C,CAAG,MAAHA,CAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/18.DdJE66EY.js b/backend/static/frontend/_app/immutable/nodes/18.DdJE66EY.js
deleted file mode 100644
index 6e3c3de3..00000000
--- a/backend/static/frontend/_app/immutable/nodes/18.DdJE66EY.js
+++ /dev/null
@@ -1 +0,0 @@
-import{r as le}from"../chunks/BJZ1igWb.js";import{b as M,t as ie,p as ne}from"../chunks/D6S6XYVy.js";import{i as k}from"../chunks/DMODTt3n.js";import{p as de,h as R,v as G,F as ce,i,f as c,b as a,a as me,c as z,s as t,t as f,e as g,g as s,d as fe,j as pe,r as w,n as $,k as ue,l as ve,u as he}from"../chunks/B2WdN-7r.js";import{g as H}from"../chunks/xR3pK9Ey.js";import{p}from"../chunks/BG_QVry4.js";import{B as _e}from"../chunks/C1aqwstW.js";import{I as K}from"../chunks/D8CWOmhn.js";import{L as Q}from"../chunks/Ba_8xUad.js";import{C as ge,a as we,b as $e}from"../chunks/BHR29ZVu.js";import{C as xe}from"../chunks/BKHeGn2e.js";import{A as ye,a as Pe}from"../chunks/CaHAoFtL.js";import{A as be}from"../chunks/DxBI0u1e.js";import{t as Se}from"../chunks/BnbBSyGl.js";import{O as Te}from"../chunks/l7hcXazj.js";import{C as je}from"../chunks/XxKcOLZH.js";const Ce=()=>{if(M.isAuthenticated)throw le(302,"/")},Ye=Object.freeze(Object.defineProperty({__proto__:null,load:Ce},Symbol.toStringTag,{value:"Module"}));var Ae=c('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),Ee=c('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),Le=c('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),Oe=c("<!> <!> <!>",1),ke=c('<!> <!> <form class="grid w-full items-center gap-4"><div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!> <a href="/forgot-password" class="text-sm text-primary hover:underline self-end">Forgot password?</a></div> <!></form>',1),Re=c("<!> <!> <!>",1),ze=c('<div class="flex h-screen w-full items-center justify-center px-4"><!></div>');function Ze(V,X){de(X,!0);const Y={oauth_failed:"Sign-in failed. Please try again.",oauth_no_email:"We couldn't read an email address from that account. Please make sure it has a verified email and try again.",invite_required:"This server is invite-only. Ask an admin to invite you."};let I=R(G(p.url.searchParams.get("email")??"")),U=R(G(p.url.searchParams.get("password")??""));const q=p.url.searchParams.get("error");if(p.url.searchParams.has("email")||p.url.searchParams.has("password")){const e=new URL(window.location.href);e.searchParams.delete("email"),e.searchParams.delete("password"),window.history.replaceState({},"",e.pathname+e.search)}let x=R(G(q?Y[q]??"Sign-in failed. Please try again.":"")),m=R(!1);if(q){const e=new URL(window.location.href);e.searchParams.delete("error"),window.history.replaceState({},"",e.pathname+e.search)}const J=he(()=>p.url.searchParams.get("returnTo"));ce(()=>{i(m,!0),fetch("/api/has-organizations",{method:"GET"}).then(e=>e.json()).then(e=>{e.hasOrganizations?i(m,!1):H("/register")}).catch(()=>{ie.error("An unexpected error has occured. The page will refresh in 5 seconds."),setTimeout(()=>{window.location.reload()},5e3)})});async function Z(){i(m,!0),i(x,"");try{const e=await fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:s(I),password:s(U)})});if(!e.ok){const b=await e.json();throw new Error(b.error||"Invalid credentials")}const y=await e.json();M.setToken(y.token),M.setOrganizations(y.organizations||[]),ne.setProjects(y.projects);const P=s(J)?decodeURIComponent(s(J)):"/";H(P)}catch(e){i(x,e instanceof Error?e.message:"Invalid email or password",!0)}finally{i(m,!1)}}var B=ze(),ee=g(B);ge(ee,{class:"w-[350px]",children:(e,y)=>{var P=Re(),b=z(P);we(b,{children:(S,ae)=>{$e(S,{class:"text-2xl",children:(T,D)=>{var u=Le(),j=g(u);{var v=o=>{var _=Ae();a(o,_)},h=o=>{var _=Ee();a(o,_)};k(j,o=>{Se.isDark?o(v):o(h,!1)})}w(u),a(T,u)},$$slots:{default:!0}})},$$slots:{default:!0}});var N=t(b,2);xe(N,{children:(S,ae)=>{var T=ke(),D=z(T);{var u=r=>{ye(r,{variant:"destructive",class:"mb-4 bg-red-50 border-red-200",children:(C,n)=>{var A=Oe(),E=z(A);je(E,{class:"h-4 w-4 text-red-700"});var L=t(E,2);be(L,{class:"text-red-800",children:(d,oe)=>{$();var O=f("Error");a(d,O)},$$slots:{default:!0}});var l=t(L,2);Pe(l,{class:"text-red-700",children:(d,oe)=>{$();var O=f();ue(()=>ve(O,s(x))),a(d,O)},$$slots:{default:!0}}),a(C,A)},$$slots:{default:!0}})};k(D,r=>{s(x)&&r(u)})}var j=t(D,2);Te(j,{});var v=t(j,2),h=g(v),o=g(h);Q(o,{for:"email",children:(r,C)=>{$();var n=f("Email");a(r,n)},$$slots:{default:!0}});var _=t(o,2);K(_,{id:"email",type:"email",placeholder:"[email protected]",required:!0,get value(){return s(I)},set value(r){i(I,r,!0)}}),w(h);var F=t(h,2),W=g(F);Q(W,{for:"password",children:(r,C)=>{$();var n=f("Password");a(r,n)},$$slots:{default:!0}});var te=t(W,2);K(te,{id:"password",type:"password",placeholder:"Password",required:!0,get value(){return s(U)},set value(r){i(U,r,!0)}}),$(2),w(F);var se=t(F,2);_e(se,{type:"submit",get disabled(){return s(m)},class:"w-full",children:(r,C)=>{var n=fe(),A=z(n);{var E=l=>{var d=f("Logging in...");a(l,d)},L=l=>{var d=f("Login");a(l,d)};k(A,l=>{s(m)?l(E):l(L,!1)})}a(r,n)},$$slots:{default:!0}}),w(v),pe("submit",v,r=>{r.preventDefault(),Z()}),a(S,T)},$$slots:{default:!0}});var re=t(N,2);k(re,S=>{}),a(e,P)},$$slots:{default:!0}}),w(B),a(V,B),me()}export{Ze as component,Ye as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/18.DdJE66EY.js.map b/backend/static/frontend/_app/immutable/nodes/18.DdJE66EY.js.map
deleted file mode 100644
index 2504d9eb..00000000
--- a/backend/static/frontend/_app/immutable/nodes/18.DdJE66EY.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"18.DdJE66EY.js","sources":["../../../../../../src/routes/login/+page.ts","../../../../../../src/routes/login/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (authState.isAuthenticated) {\n\t\tthrow redirect(302, '/');\n\t}\n};\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { page } from '$app/state';\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardFooter, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import { CircleAlert } from \"@lucide/svelte\";\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState } from '$lib/state/projects.svelte';\n import { themeState } from '$lib/state/theme.svelte';\n\timport { toast } from 'svelte-sonner';\n import OauthButtons from '$lib/components/oauth-buttons.svelte';\n\n const ERROR_MESSAGES: Record<string, string> = {\n oauth_failed: 'Sign-in failed. Please try again.',\n oauth_no_email: \"We couldn't read an email address from that account. Please make sure it has a verified email and try again.\",\n invite_required: 'This server is invite-only. Ask an admin to invite you.',\n };\n\n let email = $state(page.url.searchParams.get('email') ?? '');\n let password = $state(page.url.searchParams.get('password') ?? '');\n const initialError = page.url.searchParams.get('error');\n\n if (page.url.searchParams.has('email') || page.url.searchParams.has('password')) {\n const cleanUrl = new URL(window.location.href);\n cleanUrl.searchParams.delete('email');\n cleanUrl.searchParams.delete('password');\n window.history.replaceState({}, '', cleanUrl.pathname + cleanUrl.search);\n }\n\n let error = $state(initialError ? (ERROR_MESSAGES[initialError] ?? 'Sign-in failed. Please try again.') : '');\n let loading = $state(false);\n\n if (initialError) {\n const cleanUrl = new URL(window.location.href);\n cleanUrl.searchParams.delete('error');\n window.history.replaceState({}, '', cleanUrl.pathname + cleanUrl.search);\n }\n\n // Get returnTo parameter for redirecting after login\n const returnTo = $derived(page.url.searchParams.get('returnTo'));\n\n if (!__CLOUD_MODE__) {\n $effect(() => {\n // if we're not in the cloud mode we have to check if an organization exists and if it does not we need to take the user to the register page\n\n loading = true;\n fetch('/api/has-organizations', {\n method: 'GET',\n })\n .then(response => response.json())\n .then((response) => {\n if (response.hasOrganizations) {\n loading = false\n } else {\n goto(\"/register\")\n }\n }).catch(() => {\n toast.error(\"An unexpected error has occured. The page will refresh in 5 seconds.\")\n setTimeout(() => {\n window.location.reload()\n }, 5000)\n });\n })\n }\n\n async function handleLogin() {\n loading = true;\n error = '';\n try {\n const response = await fetch('/api/login', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({ email, password })\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Invalid credentials');\n }\n\n const data = await response.json();\n\n authState.setToken(data.token);\n authState.setOrganizations(data.organizations || []);\n projectsState.setProjects(data.projects);\n\n // Redirect to returnTo if provided, otherwise go to dashboard\n const redirectTo = returnTo ? decodeURIComponent(returnTo) : '/';\n goto(redirectTo);\n } catch (e) {\n error = e instanceof Error ? e.message : 'Invalid email or password';\n } finally {\n loading = false;\n }\n }\n</script>\n\n<div class=\"flex h-screen w-full items-center justify-center px-4\">\n <Card class=\"w-[350px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n </CardHeader>\n <CardContent>\n {#if error}\n <Alert variant=\"destructive\" class=\"mb-4 bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n {/if}\n <OauthButtons />\n <form onsubmit={(e) => { e.preventDefault(); handleLogin(); }} class=\"grid w-full items-center gap-4\">\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" bind:value={email} placeholder=\"[email protected]\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"password\">Password</Label>\n <Input id=\"password\" type=\"password\" bind:value={password} placeholder=\"Password\" required />\n <a href=\"/forgot-password\" class=\"text-sm text-primary hover:underline self-end\">Forgot password?</a>\n </div>\n <Button type=\"submit\" disabled={loading} class=\"w-full\">\n {#if loading}\n Logging in...\n {:else}\n Login\n {/if}\n </Button>\n </form>\n </CardContent>\n\n <!-- If the backend is running in the cloud mode we'll allow registration to take place -->\n <!-- If we're running in the self hosted mode - we will not allow register -->\n {#if __CLOUD_MODE__}\n <CardFooter class=\"flex flex-col justify-center\">\n <p class=\"text-sm text-muted-foreground\">\n Don't have an account? <a href=\"/register\" class=\"text-primary hover:underline\">Create account</a>\n </p>\n </CardFooter>\n {/if}\n </Card>\n</div>\n"],"names":["load","authState","redirect","ERROR_MESSAGES","email","$.state","$.proxy","page","password","initialError","cleanUrl","error","loading","returnTo","$.derived","$.user_effect","$.set","response","goto","toast","handleLogin","$.get","data","projectsState","redirectTo","div","root","Card","node","CardHeader","node_1","CardTitle","$$anchor","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardContent","node_3","Alert","CircleAlert","node_5","AlertTitle","node_6","AlertDescription","node_7","consequent_1","OauthButtons","node_8","form","$.sibling","div_2","Label","node_9","Input","node_10","$$value","div_3","node_11","node_12","Button","node_13","consequent_2","alternate_1","e"],"mappings":"o1BAIO,MAAMA,GAAiB,IAAM,CACnC,GAAIC,EAAU,gBACb,MAAMC,GAAS,IAAK,GAAG,CAEzB,2wBCRA,gBAeUC,EAAsC,CACxC,aAAc,oCACd,eAAgB,+GAChB,gBAAiB,yDAAA,EAGjB,IAAAC,EAAQC,EAAMC,EAACC,EAAK,IAAI,aAAa,IAAI,OAAO,GAAK,EAAE,CAAA,EACvDC,EAAWH,EAAMC,EAACC,EAAK,IAAI,aAAa,IAAI,UAAU,GAAK,EAAE,CAAA,QAC3DE,EAAeF,EAAK,IAAI,aAAa,IAAI,OAAO,EAElD,GAAAA,EAAK,IAAI,aAAa,IAAI,OAAO,GAAKA,EAAK,IAAI,aAAa,IAAI,UAAU,EAAG,CACvE,MAAAG,MAAe,IAAI,OAAO,SAAS,IAAI,EAC7CA,EAAS,aAAa,OAAO,OAAO,EACpCA,EAAS,aAAa,OAAO,UAAU,EACvC,OAAO,QAAQ,aAAY,CAAA,EAAK,GAAIA,EAAS,SAAWA,EAAS,MAAM,CAC3E,KAEIC,EAAQN,EAAMC,EAACG,EAAgBN,EAAeM,CAAY,GAAK,oCAAuC,EAAE,CAAA,EACxGG,EAAUP,EAAO,EAAK,EAEtB,GAAAI,EAAc,CACR,MAAAC,MAAe,IAAI,OAAO,SAAS,IAAI,EAC7CA,EAAS,aAAa,OAAO,OAAO,EACpC,OAAO,QAAQ,aAAY,CAAA,EAAK,GAAIA,EAAS,SAAWA,EAAS,MAAM,CAC3E,OAGMG,EAAQC,GAAA,IAAYP,EAAK,IAAI,aAAa,IAAI,UAAU,CAAA,EA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MAAHD,CAAG,WAHHE,GAAW,OAAMC,EAAAC,CAAA,EAAAD,EAAAE,EAAA,EAAA,MADzBT,CAAG,MAAHA,CAAG,+DASPU,GAAWC,EAAA,gDAEHC,GAAKb,EAAA,gGACDc,GAAWC,EAAA,CAAA,MAAA,sBAAA,CAAA,eACXC,GAAUC,EAAA,yGACVC,GAAgBC,EAAA,oEACZxC,CAAK,CAAA,CAAA,2EALbA,CAAK,KAAAyC,CAAA,iBASTC,GAAYC,EAAA,EAAA,MACZC,EAAIC,EAAAF,EAAA,CAAA,EACAG,IADJF,CAAI,MACAE,CAAG,EACCC,EAAKC,EAAA,+FACLC,EAAKC,EAAA,uEAAyB,OAAU,UAAEzD,CAAK,OAAjB,MAAU0D,EAAA,GAAE1D,EAAK0D,EAAA,EAAA,OAFnDL,CAAG,EAIH,IAAAM,IAJAN,EAAG,CAAA,MAIHM,CAAG,EACCL,EAAKM,EAAA,sGACLJ,EAAKK,GAAA,sEAA+B,OAAU,UAAEzD,CAAQ,OAApB,MAAUsD,EAAA,GAAEtD,EAAQsD,EAAA,EAAA,YAF5DC,CAAG,WAAHA,EAAG,CAAA,EAKHG,GAAMC,GAAA,uCAAyBvD,CAAO,0IAC9BA,CAAO,IAAAwD,CAAA,EAAA5B,EAAA6B,EAAA,EAAA,qCAXnBd,CAAI,cAAJA,EAAgBe,GAAM,CAAEA,EAAE,eAAA,EAAkBlD,EAAA,CAAe,CAAC,4FAxBxEK,CAAG,MAAHA,CAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/19.BMzdjIwI.js b/backend/static/frontend/_app/immutable/nodes/19.NJmlNQ_L.js
similarity index 95%
rename from backend/static/frontend/_app/immutable/nodes/19.BMzdjIwI.js
rename to backend/static/frontend/_app/immutable/nodes/19.NJmlNQ_L.js
index de21a82a..c3acf043 100644
--- a/backend/static/frontend/_app/immutable/nodes/19.BMzdjIwI.js
+++ b/backend/static/frontend/_app/immutable/nodes/19.NJmlNQ_L.js
@@ -1,2 +1,2 @@
-import{i as he}from"../chunks/DMODTt3n.js";import{o as Xt,a as Yt}from"../chunks/Dwk6gGSK.js";import{q as Ht,p as Jt,h as u,v as D,g as e,u as Xe,f as T,e as p,k as V,b as o,a as Zt,i as r,d as h,c as i,s as l,r as g,n as R,t as se,l as K}from"../chunks/B2WdN-7r.js";import{e as Ye,i as er}from"../chunks/CMyj8Fzw.js";import{c as n}from"../chunks/BAcG0-U_.js";import{s as tr}from"../chunks/DH0tcjsQ.js";import{g as rr}from"../chunks/xR3pK9Ey.js";import{a as ar,p as or}from"../chunks/D6S6XYVy.js";import{b as Oe,T as Ue,a as ue,c as sr}from"../chunks/CeOjHHJH.js";import{T as lr}from"../chunks/CEJkX7WU.js";import{S as nr}from"../chunks/DGXZzcqC.js";import{L as ir}from"../chunks/D0pIT200.js";import{c as _t,t as $t,g as ur,f as dr}from"../chunks/DJdWGDax.js";import{T as Pe}from"../chunks/BQmrPeqT.js";import{T as cr}from"../chunks/xk30YnJ1.js";import{P as mr}from"../chunks/C8IsQj6C.js";import{g as ht,d as be,a as xe,T as vr,p as fr,b as pr}from"../chunks/xqPrLpfy.js";import{S as gr,E as _r}from"../chunks/CkkEpu6S.js";import{S as $r,a as hr,b as br,c as xr}from"../chunks/CzIIBX62.js";import{I as bt}from"../chunks/D8CWOmhn.js";import{B as xt}from"../chunks/C1aqwstW.js";import{A as yr,a as Sr,b as Tr,c as Pr,d as wr,e as Dr}from"../chunks/CtIWnZub.js";import{g as Fr,h as kr,s as Ar}from"../chunks/X-i49s3k.js";import{P as yt}from"../chunks/BUQRDnoX.js";import{X as Ir}from"../chunks/CeufXW8P.js";var Lr=T("<!> <!>",1),Nr=T('<span class="inline-flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs font-mono"><span class="text-muted-foreground"> </span> <span>=</span> <span> </span> <button type="button" aria-label="Remove filter" class="ml-1 text-muted-foreground hover:text-foreground"><!></button></span>'),Rr=T('Attribute keys must start with <code class="font-mono">resource.</code>, <code class="font-mono">scope.</code>, or <code class="font-mono">log.</code>.',1),Cr=T("<!> <!>",1),Er=T('<p class="text-xs text-red-500"> </p>'),Or=T("<!> Add filter",1),Ur=T("<!> <!>",1),zr=T('<!> <div class="flex flex-col gap-3"><label class="flex flex-col gap-1 text-sm"><span class="font-medium">Attribute key</span> <!></label> <label class="flex flex-col gap-1 text-sm"><span class="font-medium">Value</span> <!></label> <!></div> <!>',1),jr=T('<div class="flex h-full items-center justify-center"><!></div>'),Br=T("<!> <!> <!> <!> <!>",1),Vr=T('<span class="text-muted-foreground"> </span>'),Kr=T('<span class="text-muted-foreground">—</span>'),Mr=T("<!> <!> <!> <!> <!>",1),qr=T("<!> <!>",1),Gr=T("<!> <!>",1),Qr=T('<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"><h2 class="text-2xl font-bold tracking-tight">Logs</h2> <div class="w-full sm:w-auto"><!></div></div> <div class="flex flex-col gap-3 sm:flex-row sm:items-start"><div class="flex-1"><!></div></div> <div class="flex flex-wrap items-center gap-2"><button type="button" class="inline-flex items-center gap-1 rounded-full border border-dashed px-3 py-0.5 text-xs font-medium text-muted-foreground transition-colors hover:border-foreground/40 hover:text-foreground"><!> Add filter</button> <!></div> <!> <div class="overflow-hidden rounded-md border"><!></div> <!></div>');function ha(St,Tt){Jt(Tt,!0);const m=Xe(ur),He="logs",Je=Fr(He,{field:"timestamp",direction:"desc"});let de=u(D(Je.field)),ce=u(D(Je.direction)),ze=u(D([])),me=u(!0),we=u(""),je=u(null),z=u(1),Be=u(50),Ze=u(0),Ve=u(0);function et(t){const s=t.trim().match(/^(resource|scope|log)\.([^=]+)=(.*)$/);if(!s)return null;const v=s[2].trim();return v?{scope:s[1],key:v,value:s[3]}:null}function Pt(t){return`${t.scope}.${t.key}=${t.value}`}function tt(){const t=new URLSearchParams(window.location.search),a=fr(e(m),"24h"),s=Number(t.get("minSeverity")||"0"),v=[];for(const F of t.getAll("attr")){const j=et(F);j&&v.push(j)}return{...a,search:t.get("search")||"",searchType:t.get("searchType")||"body",minSeverity:Number.isFinite(s)?s:0,serviceName:t.get("service")||"",traceId:t.get("traceId")||"",attributeFilters:v}}const J=tt(),De=ht(J,e(m));let Z=u(D(J.preset)),ee=u(D(be(De.from,e(m)))),te=u(D(be(De.to,e(m)))),ve=u(D(xe(De.from,e(m)))),fe=u(D(xe(De.to,e(m)))),pe=u(D(J.search)),ge=u(D(J.searchType)),le=u(D(J.minSeverity)),Fe=u(D(J.serviceName)),ke=u(D(J.traceId)),M=u(D(J.attributeFilters)),ye=u(!1),Ae=u(""),Ie=u(""),Le=u("");function wt(){r(Ae,""),r(Ie,""),r(Le,""),r(ye,!0)}function rt(){const t=`${e(Ae).trim()}=${e(Ie)}`,a=et(t);if(!a){r(Le,"Key must start with resource., scope., or log.");return}e(M).some(v=>v.scope===a.scope&&v.key===a.key&&v.value===a.value)||r(M,[...e(M),a],!0),r(ye,!1),r(z,1),q(!0)}function at(t){t.key==="Enter"&&(t.preventDefault(),rt())}const Dt=[{value:"body",label:"Message"},{value:"service",label:"Service"},{value:"trace",label:"Trace ID"}],ot=[{value:"0",label:"All levels"},{value:"1",label:"TRACE+"},{value:"5",label:"DEBUG+"},{value:"9",label:"INFO+"},{value:"13",label:"WARN+"},{value:"17",label:"ERROR+"},{value:"21",label:"FATAL"}],Ft=Xe(()=>ot.find(t=>Number(t.value)===e(le))?.label??"All levels");function st(){const[t,a]=e(ve).split(":").map(Number),s=_t({year:e(ee).year,month:e(ee).month,day:e(ee).day,hour:t,minute:a},e(m));return $t(s)}function lt(){const[t,a]=e(fe).split(":").map(Number),s=_t({year:e(te).year,month:e(te).month,day:e(te).day,hour:t,minute:a},e(m)).endOf("minute");return $t(s)}function kt(t=!0){const a=new URLSearchParams;e(Z)?a.set("preset",e(Z)):(a.set("from",st()),a.set("to",lt())),e(pe).trim()&&a.set("search",e(pe).trim()),e(ge)!=="body"&&a.set("searchType",e(ge)),e(le)>0&&a.set("minSeverity",String(e(le))),e(Fe).trim()&&a.set("service",e(Fe).trim()),e(ke).trim()&&a.set("traceId",e(ke).trim());for(const v of e(M))a.append("attr",Pt(v));const s=`${window.location.pathname}?${a.toString()}`;rr(s,{replaceState:!t,noScroll:!0,keepFocus:!0})}function At(t){r(M,e(M).filter((a,s)=>s!==t),!0),r(z,1),q(!0)}async function q(t=!0){if(r(me,!0),r(we,""),e(Z)){const a=pr(e(Z),e(m));r(ee,be(a.from,e(m)),!0),r(te,be(a.to,e(m)),!0),r(ve,xe(a.from,e(m)),!0),r(fe,xe(a.to,e(m)),!0)}kt(t);try{const a={fromDate:st(),toDate:lt(),orderBy:e(de),sortDirection:e(ce),pagination:{page:e(z),pageSize:e(Be)},search:e(pe).trim(),searchType:e(ge),minSeverity:e(le),serviceName:e(Fe).trim(),traceId:e(ke).trim(),attributeFilters:e(M)},s=await ar.post("/logs",a,{projectId:or.currentProjectId??void 0});r(ze,s.data||[],!0),r(Ze,s.pagination.total,!0),r(Ve,s.pagination.totalPages,!0)}catch(a){console.error(a),r(we,a.message||"Failed to load logs",!0)}finally{r(me,!1)}}function It(t){t>=1&&t<=e(Ve)&&(r(z,t,!0),q(!0))}function Lt(t){r(Be,t,!0),r(z,1),q(!0)}function Nt(t,a,s){r(ee,t.date,!0),r(te,a.date,!0),r(ve,t.time,!0),r(fe,a.time,!0),r(Z,s,!0),r(z,1),q(!0)}function Rt(){r(z,1),q(!0)}function Ct(t){r(le,Number(t)||0,!0)}function Ke(t){const a=kr(t,e(de),e(ce));r(de,a.field,!0),r(ce,a.direction,!0),Ar(He,a),r(z,1),q(!0)}function nt(){const t=tt(),a=ht(t,e(m));r(Z,t.preset,!0),r(ee,be(a.from,e(m)),!0),r(te,be(a.to,e(m)),!0),r(ve,xe(a.from,e(m)),!0),r(fe,xe(a.to,e(m)),!0),r(pe,t.search,!0),r(ge,t.searchType,!0),r(le,t.minSeverity,!0),r(Fe,t.serviceName,!0),r(ke,t.traceId,!0),r(M,t.attributeFilters,!0),r(z,1),q(!1)}function Et(t){r(je,e(je)===t?null:t,!0)}function Ot(t){if(!t)return"";const a=t.indexOf(`
+import{i as he}from"../chunks/DMODTt3n.js";import{o as Xt,a as Yt}from"../chunks/Dwk6gGSK.js";import{q as Ht,p as Jt,h as u,v as D,g as e,u as Xe,f as T,e as p,k as V,b as o,a as Zt,i as r,d as h,c as i,s as l,r as g,n as R,t as se,l as K}from"../chunks/B2WdN-7r.js";import{e as Ye,i as er}from"../chunks/CMyj8Fzw.js";import{c as n}from"../chunks/BAcG0-U_.js";import{s as tr}from"../chunks/DH0tcjsQ.js";import{g as rr}from"../chunks/BIF4_51j.js";import{a as ar,p as or}from"../chunks/qCQ2nSvO.js";import{b as Oe,T as Ue,a as ue,c as sr}from"../chunks/CeOjHHJH.js";import{T as lr}from"../chunks/CEJkX7WU.js";import{S as nr}from"../chunks/D4tSNflE.js";import{L as ir}from"../chunks/D0pIT200.js";import{c as _t,t as $t,g as ur,f as dr}from"../chunks/Dq-0lVru.js";import{T as Pe}from"../chunks/CkVJuMBr.js";import{T as cr}from"../chunks/xk30YnJ1.js";import{P as mr}from"../chunks/DByR3-93.js";import{g as ht,d as be,a as xe,T as vr,p as fr,b as pr}from"../chunks/DjEjtFrE.js";import{S as gr,E as _r}from"../chunks/CkkEpu6S.js";import{S as $r,a as hr,b as br,c as xr}from"../chunks/BgAHJuQl.js";import{I as bt}from"../chunks/D8CWOmhn.js";import{B as xt}from"../chunks/C1aqwstW.js";import{A as yr,a as Sr,b as Tr,c as Pr,d as wr,e as Dr}from"../chunks/CmY6xZEr.js";import{g as Fr,h as kr,s as Ar}from"../chunks/X-i49s3k.js";import{P as yt}from"../chunks/BUQRDnoX.js";import{X as Ir}from"../chunks/CeufXW8P.js";var Lr=T("<!> <!>",1),Nr=T('<span class="inline-flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs font-mono"><span class="text-muted-foreground"> </span> <span>=</span> <span> </span> <button type="button" aria-label="Remove filter" class="ml-1 text-muted-foreground hover:text-foreground"><!></button></span>'),Rr=T('Attribute keys must start with <code class="font-mono">resource.</code>, <code class="font-mono">scope.</code>, or <code class="font-mono">log.</code>.',1),Cr=T("<!> <!>",1),Er=T('<p class="text-xs text-red-500"> </p>'),Or=T("<!> Add filter",1),Ur=T("<!> <!>",1),zr=T('<!> <div class="flex flex-col gap-3"><label class="flex flex-col gap-1 text-sm"><span class="font-medium">Attribute key</span> <!></label> <label class="flex flex-col gap-1 text-sm"><span class="font-medium">Value</span> <!></label> <!></div> <!>',1),jr=T('<div class="flex h-full items-center justify-center"><!></div>'),Br=T("<!> <!> <!> <!> <!>",1),Vr=T('<span class="text-muted-foreground"> </span>'),Kr=T('<span class="text-muted-foreground">—</span>'),Mr=T("<!> <!> <!> <!> <!>",1),qr=T("<!> <!>",1),Gr=T("<!> <!>",1),Qr=T('<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"><h2 class="text-2xl font-bold tracking-tight">Logs</h2> <div class="w-full sm:w-auto"><!></div></div> <div class="flex flex-col gap-3 sm:flex-row sm:items-start"><div class="flex-1"><!></div></div> <div class="flex flex-wrap items-center gap-2"><button type="button" class="inline-flex items-center gap-1 rounded-full border border-dashed px-3 py-0.5 text-xs font-medium text-muted-foreground transition-colors hover:border-foreground/40 hover:text-foreground"><!> Add filter</button> <!></div> <!> <div class="overflow-hidden rounded-md border"><!></div> <!></div>');function ha(St,Tt){Jt(Tt,!0);const m=Xe(ur),He="logs",Je=Fr(He,{field:"timestamp",direction:"desc"});let de=u(D(Je.field)),ce=u(D(Je.direction)),ze=u(D([])),me=u(!0),we=u(""),je=u(null),z=u(1),Be=u(50),Ze=u(0),Ve=u(0);function et(t){const s=t.trim().match(/^(resource|scope|log)\.([^=]+)=(.*)$/);if(!s)return null;const v=s[2].trim();return v?{scope:s[1],key:v,value:s[3]}:null}function Pt(t){return`${t.scope}.${t.key}=${t.value}`}function tt(){const t=new URLSearchParams(window.location.search),a=fr(e(m),"24h"),s=Number(t.get("minSeverity")||"0"),v=[];for(const F of t.getAll("attr")){const j=et(F);j&&v.push(j)}return{...a,search:t.get("search")||"",searchType:t.get("searchType")||"body",minSeverity:Number.isFinite(s)?s:0,serviceName:t.get("service")||"",traceId:t.get("traceId")||"",attributeFilters:v}}const J=tt(),De=ht(J,e(m));let Z=u(D(J.preset)),ee=u(D(be(De.from,e(m)))),te=u(D(be(De.to,e(m)))),ve=u(D(xe(De.from,e(m)))),fe=u(D(xe(De.to,e(m)))),pe=u(D(J.search)),ge=u(D(J.searchType)),le=u(D(J.minSeverity)),Fe=u(D(J.serviceName)),ke=u(D(J.traceId)),M=u(D(J.attributeFilters)),ye=u(!1),Ae=u(""),Ie=u(""),Le=u("");function wt(){r(Ae,""),r(Ie,""),r(Le,""),r(ye,!0)}function rt(){const t=`${e(Ae).trim()}=${e(Ie)}`,a=et(t);if(!a){r(Le,"Key must start with resource., scope., or log.");return}e(M).some(v=>v.scope===a.scope&&v.key===a.key&&v.value===a.value)||r(M,[...e(M),a],!0),r(ye,!1),r(z,1),q(!0)}function at(t){t.key==="Enter"&&(t.preventDefault(),rt())}const Dt=[{value:"body",label:"Message"},{value:"service",label:"Service"},{value:"trace",label:"Trace ID"}],ot=[{value:"0",label:"All levels"},{value:"1",label:"TRACE+"},{value:"5",label:"DEBUG+"},{value:"9",label:"INFO+"},{value:"13",label:"WARN+"},{value:"17",label:"ERROR+"},{value:"21",label:"FATAL"}],Ft=Xe(()=>ot.find(t=>Number(t.value)===e(le))?.label??"All levels");function st(){const[t,a]=e(ve).split(":").map(Number),s=_t({year:e(ee).year,month:e(ee).month,day:e(ee).day,hour:t,minute:a},e(m));return $t(s)}function lt(){const[t,a]=e(fe).split(":").map(Number),s=_t({year:e(te).year,month:e(te).month,day:e(te).day,hour:t,minute:a},e(m)).endOf("minute");return $t(s)}function kt(t=!0){const a=new URLSearchParams;e(Z)?a.set("preset",e(Z)):(a.set("from",st()),a.set("to",lt())),e(pe).trim()&&a.set("search",e(pe).trim()),e(ge)!=="body"&&a.set("searchType",e(ge)),e(le)>0&&a.set("minSeverity",String(e(le))),e(Fe).trim()&&a.set("service",e(Fe).trim()),e(ke).trim()&&a.set("traceId",e(ke).trim());for(const v of e(M))a.append("attr",Pt(v));const s=`${window.location.pathname}?${a.toString()}`;rr(s,{replaceState:!t,noScroll:!0,keepFocus:!0})}function At(t){r(M,e(M).filter((a,s)=>s!==t),!0),r(z,1),q(!0)}async function q(t=!0){if(r(me,!0),r(we,""),e(Z)){const a=pr(e(Z),e(m));r(ee,be(a.from,e(m)),!0),r(te,be(a.to,e(m)),!0),r(ve,xe(a.from,e(m)),!0),r(fe,xe(a.to,e(m)),!0)}kt(t);try{const a={fromDate:st(),toDate:lt(),orderBy:e(de),sortDirection:e(ce),pagination:{page:e(z),pageSize:e(Be)},search:e(pe).trim(),searchType:e(ge),minSeverity:e(le),serviceName:e(Fe).trim(),traceId:e(ke).trim(),attributeFilters:e(M)},s=await ar.post("/logs",a,{projectId:or.currentProjectId??void 0});r(ze,s.data||[],!0),r(Ze,s.pagination.total,!0),r(Ve,s.pagination.totalPages,!0)}catch(a){console.error(a),r(we,a.message||"Failed to load logs",!0)}finally{r(me,!1)}}function It(t){t>=1&&t<=e(Ve)&&(r(z,t,!0),q(!0))}function Lt(t){r(Be,t,!0),r(z,1),q(!0)}function Nt(t,a,s){r(ee,t.date,!0),r(te,a.date,!0),r(ve,t.time,!0),r(fe,a.time,!0),r(Z,s,!0),r(z,1),q(!0)}function Rt(){r(z,1),q(!0)}function Ct(t){r(le,Number(t)||0,!0)}function Ke(t){const a=kr(t,e(de),e(ce));r(de,a.field,!0),r(ce,a.direction,!0),Ar(He,a),r(z,1),q(!0)}function nt(){const t=tt(),a=ht(t,e(m));r(Z,t.preset,!0),r(ee,be(a.from,e(m)),!0),r(te,be(a.to,e(m)),!0),r(ve,xe(a.from,e(m)),!0),r(fe,xe(a.to,e(m)),!0),r(pe,t.search,!0),r(ge,t.searchType,!0),r(le,t.minSeverity,!0),r(Fe,t.serviceName,!0),r(ke,t.traceId,!0),r(M,t.attributeFilters,!0),r(z,1),q(!1)}function Et(t){r(je,e(je)===t?null:t,!0)}function Ot(t){if(!t)return"";const a=t.indexOf(`
`);return a===-1?t:t.slice(0,a)}Xt(()=>{window.addEventListener("popstate",nt),q(!1)}),Yt(()=>{typeof window<"u"&&window.removeEventListener("popstate",nt)});var Me=Qr(),qe=p(Me),it=l(p(qe),2),Ut=p(it);vr(Ut,{onApply:Nt,get fromDate(){return e(ee)},set fromDate(t){r(ee,t,!0)},get toDate(){return e(te)},set toDate(t){r(te,t,!0)},get fromTime(){return e(ve)},set fromTime(t){r(ve,t,!0)},get toTime(){return e(fe)},set toTime(t){r(fe,t,!0)},get preset(){return e(Z)},set preset(t){r(Z,t,!0)}}),g(it),g(qe);var Ge=l(qe,2),ut=p(Ge),zt=p(ut);nr(zt,{placeholder:"Search logs...",get typeOptions(){return Dt},onSearch:Rt,get disabled(){return e(me)},get value(){return e(pe)},set value(t){r(pe,t,!0)},get typeValue(){return e(ge)},set typeValue(t){r(ge,t,!0)},children:(t,a)=>{var s=h(),v=i(s);{let F=Xe(()=>String(e(le)));n(v,()=>br,(j,G)=>{G(j,{type:"single",get value(){return e(F)},onValueChange:Ct,children:(ne,k)=>{var C=Lr(),Q=i(C);n(Q,()=>$r,(E,b)=>{b(E,{class:"h-9 w-[130px] rounded-none border-r-0 shadow-none",children:(L,N)=>{R();var A=se();V(()=>K(A,e(Ft))),o(L,A)},$$slots:{default:!0}})});var re=l(Q,2);n(re,()=>hr,(E,b)=>{b(E,{children:(L,N)=>{var A=h(),W=i(A);Ye(W,17,()=>ot,x=>x.value,(x,w)=>{var c=h(),f=i(c);n(f,()=>xr,(_,I)=>{I(_,{get value(){return e(w).value},get label(){return e(w).label},children:(y,O)=>{R();var S=se();V(()=>K(S,e(w).label)),o(y,S)},$$slots:{default:!0}})}),o(x,c)}),o(L,A)},$$slots:{default:!0}})}),o(ne,C)},$$slots:{default:!0}})})}o(t,s)},$$slots:{default:!0}}),g(ut),g(Ge);var Qe=l(Ge,2),Se=p(Qe);Se.__click=wt;var jt=p(Se);yt(jt,{class:"h-3 w-3"}),R(),g(Se);var Bt=l(Se,2);Ye(Bt,17,()=>e(M),er,(t,a,s)=>{var v=Nr(),F=p(v),j=p(F);g(F);var G=l(F,4),ne=p(G,!0);g(G);var k=l(G,2);k.__click=()=>At(s);var C=p(k);Ir(C,{class:"h-3 w-3"}),g(k),g(v),V(()=>{K(j,`${e(a).scope??""}.${e(a).key??""}`),K(ne,e(a).value)}),o(t,v)}),g(Qe);var dt=l(Qe,2);n(dt,()=>Dr,(t,a)=>{a(t,{get open(){return e(ye)},onOpenChange:s=>r(ye,s,!0),children:(s,v)=>{var F=h(),j=i(F);n(j,()=>yr,(G,ne)=>{ne(G,{children:(k,C)=>{var Q=zr(),re=i(Q);n(re,()=>Sr,(c,f)=>{f(c,{children:(_,I)=>{var y=Cr(),O=i(y);n(O,()=>Tr,($,P)=>{P($,{children:(d,B)=>{R();var ae=se("Add attribute filter");o(d,ae)},$$slots:{default:!0}})});var S=l(O,2);n(S,()=>Pr,($,P)=>{P($,{children:(d,B)=>{R();var ae=Rr();R(6),o(d,ae)},$$slots:{default:!0}})}),o(_,y)},$$slots:{default:!0}})});var E=l(re,2),b=p(E),L=l(p(b),2);bt(L,{placeholder:"resource.service.name",onkeydown:at,get value(){return e(Ae)},set value(c){r(Ae,c,!0)}}),g(b);var N=l(b,2),A=l(p(N),2);bt(A,{placeholder:"backend-service",onkeydown:at,get value(){return e(Ie)},set value(c){r(Ie,c,!0)}}),g(N);var W=l(N,2);{var x=c=>{var f=Er(),_=p(f,!0);g(f),V(()=>K(_,e(Le))),o(c,f)};he(W,c=>{e(Le)&&c(x)})}g(E);var w=l(E,2);n(w,()=>wr,(c,f)=>{f(c,{children:(_,I)=>{var y=Ur(),O=i(y);xt(O,{variant:"outline",onclick:()=>r(ye,!1),children:($,P)=>{R();var d=se("Cancel");o($,d)},$$slots:{default:!0}});var S=l(O,2);xt(S,{onclick:rt,children:($,P)=>{var d=Or(),B=i(d);yt(B,{class:"h-4 w-4"}),R(),o($,d)},$$slots:{default:!0}}),o(_,y)},$$slots:{default:!0}})}),o(k,Q)},$$slots:{default:!0}})}),o(s,F)},$$slots:{default:!0}})});var We=l(dt,2),Vt=p(We);n(Vt,()=>sr,(t,a)=>{a(t,{children:(s,v)=>{var F=h(),j=i(F);{var G=k=>{var C=h(),Q=i(C);n(Q,()=>Oe,(re,E)=>{E(re,{children:(b,L)=>{var N=h(),A=i(N);n(A,()=>Ue,(W,x)=>{x(W,{children:(w,c)=>{var f=h(),_=i(f);n(_,()=>ue,(I,y)=>{y(I,{colspan:5,class:"h-48",children:(O,S)=>{var $=jr(),P=p($);ir(P,{size:"xlg"}),g($),o(O,$)},$$slots:{default:!0}})}),o(w,f)},$$slots:{default:!0}})}),o(b,N)},$$slots:{default:!0}})}),o(k,C)},ne=k=>{var C=h(),Q=i(C);{var re=b=>{var L=h(),N=i(L);n(N,()=>Oe,(A,W)=>{W(A,{children:(x,w)=>{var c=h(),f=i(c);n(f,()=>Ue,(_,I)=>{I(_,{children:(y,O)=>{var S=h(),$=i(S);n($,()=>ue,(P,d)=>{d(P,{colspan:5,class:"h-24 text-center text-red-500",children:(B,ae)=>{R();var ie=se();V(()=>K(ie,e(we))),o(B,ie)},$$slots:{default:!0}})}),o(y,S)},$$slots:{default:!0}})}),o(x,c)},$$slots:{default:!0}})}),o(b,L)},E=b=>{var L=h(),N=i(L);{var A=x=>{var w=h(),c=i(w);n(c,()=>Oe,(f,_)=>{_(f,{children:(I,y)=>{cr(I,{colspan:5,message:"No logs found."})},$$slots:{default:!0}})}),o(x,w)},W=x=>{var w=Gr(),c=i(w);n(c,()=>lr,(_,I)=>{I(_,{children:(y,O)=>{var S=h(),$=i(S);n($,()=>Ue,(P,d)=>{d(P,{children:(B,ae)=>{var ie=Br(),Ne=i(ie);Pe(Ne,{label:"Timestamp",tooltip:"Log event time",class:"w-[180px]",sortField:"timestamp",get currentSortField(){return e(de)},get sortDirection(){return e(ce)},onSort:Ke});var oe=l(Ne,2);Pe(oe,{label:"Level",tooltip:"Log severity",class:"w-[90px]",sortField:"severity_number",get currentSortField(){return e(de)},get sortDirection(){return e(ce)},onSort:Ke});var Re=l(oe,2);Pe(Re,{label:"Message",tooltip:"Log body (click row to expand)"});var Ce=l(Re,2);Pe(Ce,{label:"Service",tooltip:"Emitting service",class:"w-[160px]",sortField:"service_name",get currentSortField(){return e(de)},get sortDirection(){return e(ce)},onSort:Ke});var ct=l(Ce,2);Pe(ct,{label:"Trace",tooltip:"Linked trace ID (if present)",class:"w-[110px]"}),o(B,ie)},$$slots:{default:!0}})}),o(y,S)},$$slots:{default:!0}})});var f=l(c,2);n(f,()=>Oe,(_,I)=>{I(_,{children:(y,O)=>{var S=h(),$=i(S);Ye($,17,()=>e(ze),P=>P.id,(P,d)=>{var B=qr(),ae=i(B);n(ae,()=>Ue,(oe,Re)=>{Re(oe,{class:"group cursor-pointer hover:bg-muted/50",onclick:()=>Et(e(d).id),children:(Ce,ct)=>{var mt=Mr(),vt=i(mt);n(vt,()=>ue,(X,Y)=>{Y(X,{class:"text-muted-foreground tabular-nums",children:(H,Ee)=>{R();var U=se();V(Te=>K(U,Te),[()=>dr(e(d).timestamp,{timezone:e(m)})]),o(H,U)},$$slots:{default:!0}})});var ft=l(vt,2);n(ft,()=>ue,(X,Y)=>{Y(X,{children:(H,Ee)=>{gr(H,{get severityText(){return e(d).severityText},get severityNumber(){return e(d).severityNumber}})},$$slots:{default:!0}})});var pt=l(ft,2);n(pt,()=>ue,(X,Y)=>{Y(X,{class:"max-w-[600px] truncate font-mono text-sm",children:(H,Ee)=>{R();var U=se();V(Te=>K(U,Te),[()=>Ot(e(d).body)]),o(H,U)},$$slots:{default:!0}})});var gt=l(pt,2);n(gt,()=>ue,(X,Y)=>{Y(X,{class:"truncate text-muted-foreground",children:(H,Ee)=>{R();var U=se();V(()=>K(U,e(d).serviceName||"—")),o(H,U)},$$slots:{default:!0}})});var Mt=l(gt,2);n(Mt,()=>ue,(X,Y)=>{Y(X,{class:"font-mono text-xs",children:(H,Ee)=>{var U=h(),Te=i(U);{var qt=_e=>{var $e=Vr(),Qt=p($e);g($e),V(Wt=>{tr($e,"title",e(d).traceId),K(Qt,`${Wt??""}…`)},[()=>e(d).traceId.slice(0,8)]),o(_e,$e)},Gt=_e=>{var $e=Kr();o(_e,$e)};he(Te,_e=>{e(d).traceId?_e(qt):_e(Gt,!1)})}o(H,U)},$$slots:{default:!0}})}),o(Ce,mt)},$$slots:{default:!0}})});var ie=l(ae,2);{var Ne=oe=>{_r(oe,{get log(){return e(d)},colspan:5})};he(ie,oe=>{e(je)===e(d).id&&oe(Ne)})}o(P,B)}),o(y,S)},$$slots:{default:!0}})}),o(x,w)};he(N,x=>{e(ze).length===0?x(A):x(W,!1)},!0)}o(b,L)};he(Q,b=>{e(we)?b(re):b(E,!1)},!0)}o(k,C)};he(j,k=>{e(me)?k(G):k(ne,!1)})}o(s,F)},$$slots:{default:!0}})}),g(We);var Kt=l(We,2);mr(Kt,{get currentPage(){return e(z)},get totalPages(){return e(Ve)},get pageSize(){return e(Be)},get totalItems(){return e(Ze)},onPageChange:It,onPageSizeChange:Lt,get loading(){return e(me)},itemLabel:"log"}),g(Me),V(()=>Se.disabled=e(me)),o(St,Me),Zt()}Ht(["click"]);export{ha as component};
diff --git a/backend/static/frontend/_app/immutable/nodes/19.BMzdjIwI.js.map b/backend/static/frontend/_app/immutable/nodes/19.NJmlNQ_L.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/19.BMzdjIwI.js.map
rename to backend/static/frontend/_app/immutable/nodes/19.NJmlNQ_L.js.map
index 546c2abf..4440b6fe 100644
--- a/backend/static/frontend/_app/immutable/nodes/19.BMzdjIwI.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/19.NJmlNQ_L.js.map
@@ -1 +1 @@
-{"version":3,"file":"19.BMzdjIwI.js","sources":["../../../../../../src/routes/logs/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { onMount, onDestroy } from 'svelte';\n\timport { browser } from '$app/environment';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport * as Table from '$lib/components/ui/table';\n\timport { SearchBar } from '$lib/components/ui/search-bar';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { PaginationFooter } from '$lib/components/ui/pagination-footer';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { SeverityBadge } from '$lib/components/ui/severity-badge';\n\timport * as Select from '$lib/components/ui/select';\n\timport { Input } from '$lib/components/ui/input';\n\timport { Button } from '$lib/components/ui/button';\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport ExpandedLogRow from '$lib/components/trace-logs/expanded-log-row.svelte';\n\timport { Plus, X } from '@lucide/svelte';\n\timport { CalendarDate } from '@internationalized/date';\n\timport {\n\t\tparseTimeRangeFromUrl,\n\t\tgetResolvedTimeRange,\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString\n\t} from '$lib/utils/url-params';\n\timport { calendarDateTimeToLuxon, toUTCISO, formatDateTime } from '$lib/utils/formatters';\n\timport {\n\t\tgetSortState,\n\t\tsetSortState,\n\t\thandleSortClick,\n\t\ttype SortDirection\n\t} from '$lib/utils/sort-storage';\n\n\tconst timezone = $derived(getTimezone());\n\n\tconst SORT_STORAGE_KEY = 'logs';\n\tconst initialSort = getSortState(SORT_STORAGE_KEY, { field: 'timestamp', direction: 'desc' });\n\tlet sortField = $state(initialSort.field);\n\tlet sortDirection = $state<SortDirection>(initialSort.direction);\n\n\ttype LogRecord = {\n\t\tid: string;\n\t\tprojectId: string;\n\t\ttimestamp: string;\n\t\ttraceId: string;\n\t\tspanId: string;\n\t\ttraceFlags: number;\n\t\tseverityText: string;\n\t\tseverityNumber: number;\n\t\tserviceName: string;\n\t\tbody: string;\n\t\tresourceSchemaUrl: string;\n\t\tresourceAttributes: Record<string, string> | null;\n\t\tscopeSchemaUrl: string;\n\t\tscopeName: string;\n\t\tscopeVersion: string;\n\t\tscopeAttributes: Record<string, string> | null;\n\t\tlogAttributes: Record<string, string> | null;\n\t};\n\n\tlet logs = $state<LogRecord[]>([]);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet expandedId = $state<string | null>(null);\n\n\tlet page = $state(1);\n\tlet pageSize = $state(50);\n\tlet total = $state(0);\n\tlet totalPages = $state(0);\n\n\ttype AttributeFilter = {\n\t\tscope: 'resource' | 'scope' | 'log';\n\t\tkey: string;\n\t\tvalue: string;\n\t};\n\n\t// Parse `resource.service.name=backend-service` (or scope.*/log.*) into a\n\t// structured filter. Returns null if the input doesn't match the shape.\n\tfunction parseAttributeFilter(input: string): AttributeFilter | null {\n\t\tconst trimmed = input.trim();\n\t\tconst m = trimmed.match(/^(resource|scope|log)\\.([^=]+)=(.*)$/);\n\t\tif (!m) return null;\n\t\tconst key = m[2].trim();\n\t\tif (!key) return null;\n\t\treturn { scope: m[1] as AttributeFilter['scope'], key, value: m[3] };\n\t}\n\n\tfunction formatAttributeFilter(f: AttributeFilter): string {\n\t\treturn `${f.scope}.${f.key}=${f.value}`;\n\t}\n\n\tfunction parseLogsUrlParams() {\n\t\tif (!browser) {\n\t\t\treturn {\n\t\t\t\tpreset: '24h',\n\t\t\t\tfrom: null,\n\t\t\t\tto: null,\n\t\t\t\tsearch: '',\n\t\t\t\tsearchType: 'body',\n\t\t\t\tminSeverity: 0,\n\t\t\t\tserviceName: '',\n\t\t\t\ttraceId: '',\n\t\t\t\tattributeFilters: [] as AttributeFilter[]\n\t\t\t};\n\t\t}\n\t\tconst params = new URLSearchParams(window.location.search);\n\t\tconst timeParams = parseTimeRangeFromUrl(timezone, '24h');\n\t\tconst minSev = Number(params.get('minSeverity') || '0');\n\t\tconst attrs: AttributeFilter[] = [];\n\t\tfor (const raw of params.getAll('attr')) {\n\t\t\tconst parsed = parseAttributeFilter(raw);\n\t\t\tif (parsed) attrs.push(parsed);\n\t\t}\n\t\treturn {\n\t\t\t...timeParams,\n\t\t\tsearch: params.get('search') || '',\n\t\t\tsearchType: params.get('searchType') || 'body',\n\t\t\tminSeverity: Number.isFinite(minSev) ? minSev : 0,\n\t\t\tserviceName: params.get('service') || '',\n\t\t\ttraceId: params.get('traceId') || '',\n\t\t\tattributeFilters: attrs\n\t\t};\n\t}\n\n\tconst initialUrlParams = parseLogsUrlParams();\n\tconst initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n\tlet selectedPreset = $state<string | null>(initialUrlParams.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\tlet searchQuery = $state(initialUrlParams.search);\n\tlet searchType = $state(initialUrlParams.searchType);\n\tlet minSeverity = $state<number>(initialUrlParams.minSeverity);\n\tlet serviceName = $state(initialUrlParams.serviceName);\n\tlet traceIdFilter = $state(initialUrlParams.traceId);\n\tlet attributeFilters = $state<AttributeFilter[]>(initialUrlParams.attributeFilters);\n\n\t// Add-filter dialog\n\tlet addFilterOpen = $state(false);\n\tlet dialogKey = $state('');\n\tlet dialogValue = $state('');\n\tlet dialogError = $state('');\n\n\tfunction openAddFilterDialog() {\n\t\tdialogKey = '';\n\t\tdialogValue = '';\n\t\tdialogError = '';\n\t\taddFilterOpen = true;\n\t}\n\n\tfunction submitDialogFilter() {\n\t\tconst composed = `${dialogKey.trim()}=${dialogValue}`;\n\t\tconst parsed = parseAttributeFilter(composed);\n\t\tif (!parsed) {\n\t\t\tdialogError = 'Key must start with resource., scope., or log.';\n\t\t\treturn;\n\t\t}\n\t\tconst dup = attributeFilters.some(\n\t\t\t(f) => f.scope === parsed.scope && f.key === parsed.key && f.value === parsed.value\n\t\t);\n\t\tif (!dup) {\n\t\t\tattributeFilters = [...attributeFilters, parsed];\n\t\t}\n\t\taddFilterOpen = false;\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleDialogKeydown(e: KeyboardEvent) {\n\t\tif (e.key === 'Enter') {\n\t\t\te.preventDefault();\n\t\t\tsubmitDialogFilter();\n\t\t}\n\t}\n\n\tconst searchTypeOptions = [\n\t\t{ value: 'body', label: 'Message' },\n\t\t{ value: 'service', label: 'Service' },\n\t\t{ value: 'trace', label: 'Trace ID' }\n\t];\n\n\tconst severityOptions = [\n\t\t{ value: '0', label: 'All levels' },\n\t\t{ value: '1', label: 'TRACE+' },\n\t\t{ value: '5', label: 'DEBUG+' },\n\t\t{ value: '9', label: 'INFO+' },\n\t\t{ value: '13', label: 'WARN+' },\n\t\t{ value: '17', label: 'ERROR+' },\n\t\t{ value: '21', label: 'FATAL' }\n\t];\n\n\tconst severityTriggerLabel = $derived(\n\t\tseverityOptions.find((o) => Number(o.value) === minSeverity)?.label ?? 'All levels'\n\t);\n\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = fromTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = toTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction updateLogsUrl(pushToHistory = true) {\n\t\tif (!browser) return;\n\t\tconst urlParams = new URLSearchParams();\n\t\tif (selectedPreset) {\n\t\t\turlParams.set('preset', selectedPreset);\n\t\t} else {\n\t\t\turlParams.set('from', getFromDateTimeUTC());\n\t\t\turlParams.set('to', getToDateTimeUTC());\n\t\t}\n\t\tif (searchQuery.trim()) urlParams.set('search', searchQuery.trim());\n\t\tif (searchType !== 'body') urlParams.set('searchType', searchType);\n\t\tif (minSeverity > 0) urlParams.set('minSeverity', String(minSeverity));\n\t\tif (serviceName.trim()) urlParams.set('service', serviceName.trim());\n\t\tif (traceIdFilter.trim()) urlParams.set('traceId', traceIdFilter.trim());\n\t\tfor (const f of attributeFilters) {\n\t\t\turlParams.append('attr', formatAttributeFilter(f));\n\t\t}\n\t\tconst newUrl = `${window.location.pathname}?${urlParams.toString()}`;\n\t\t// eslint-disable-next-line svelte/no-navigation-without-resolve\n\t\tgoto(newUrl, { replaceState: !pushToHistory, noScroll: true, keepFocus: true });\n\t}\n\n\tfunction removeAttributeFilter(index: number) {\n\t\tattributeFilters = attributeFilters.filter((_, i) => i !== index);\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tasync function loadData(pushToHistory = true) {\n\t\tloading = true;\n\t\terror = '';\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\n\t\tupdateLogsUrl(pushToHistory);\n\n\t\ttry {\n\t\t\tconst requestBody = {\n\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\ttoDate: getToDateTimeUTC(),\n\t\t\t\torderBy: sortField,\n\t\t\t\tsortDirection,\n\t\t\t\tpagination: { page, pageSize },\n\t\t\t\tsearch: searchQuery.trim(),\n\t\t\t\tsearchType,\n\t\t\t\tminSeverity,\n\t\t\t\tserviceName: serviceName.trim(),\n\t\t\t\ttraceId: traceIdFilter.trim(),\n\t\t\t\tattributeFilters\n\t\t\t};\n\n\t\t\tconst response = (await api.post('/logs', requestBody, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t})) as { data: LogRecord[]; pagination: { total: number; totalPages: number } };\n\n\t\t\tlogs = response.data || [];\n\t\t\ttotal = response.pagination.total;\n\t\t\ttotalPages = response.pagination.totalPages;\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\terror = e.message || 'Failed to load logs';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handlePageChange(newPage: number) {\n\t\tif (newPage >= 1 && newPage <= totalPages) {\n\t\t\tpage = newPage;\n\t\t\tloadData(true);\n\t\t}\n\t}\n\n\tfunction handlePageSizeChange(newPageSize: number) {\n\t\tpageSize = newPageSize;\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\ttoDate = to.date;\n\t\tfromTime = from.time;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleSearch() {\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleSeverityChange(value: string) {\n\t\t// Keep severity as pending query state — applied on the next Go press,\n\t\t// same as the search input. Avoids triggering a re-fetch on every\n\t\t// dropdown change.\n\t\tminSeverity = Number(value) || 0;\n\t}\n\n\tfunction handleSort(field: string) {\n\t\tconst newSort = handleSortClick(field, sortField, sortDirection);\n\t\tsortField = newSort.field;\n\t\tsortDirection = newSort.direction;\n\t\tsetSortState(SORT_STORAGE_KEY, newSort);\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handlePopState() {\n\t\tconst urlParams = parseLogsUrlParams();\n\t\tconst range = getResolvedTimeRange(urlParams, timezone);\n\t\tselectedPreset = urlParams.preset;\n\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\tsearchQuery = urlParams.search;\n\t\tsearchType = urlParams.searchType;\n\t\tminSeverity = urlParams.minSeverity;\n\t\tserviceName = urlParams.serviceName;\n\t\ttraceIdFilter = urlParams.traceId;\n\t\tattributeFilters = urlParams.attributeFilters;\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tfunction toggleExpanded(id: string) {\n\t\texpandedId = expandedId === id ? null : id;\n\t}\n\n\tfunction firstLine(body: string): string {\n\t\tif (!body) return '';\n\t\tconst nl = body.indexOf('\\n');\n\t\treturn nl === -1 ? body : body.slice(0, nl);\n\t}\n\n\tonMount(() => {\n\t\twindow.addEventListener('popstate', handlePopState);\n\t\tloadData(false);\n\t});\n\n\tonDestroy(() => {\n\t\tif (typeof window !== 'undefined') {\n\t\t\twindow.removeEventListener('popstate', handlePopState);\n\t\t}\n\t});\n</script>\n\n<div class=\"space-y-4\">\n\t<div class=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Logs</h2>\n\t\t<div class=\"w-full sm:w-auto\">\n\t\t\t<TimeRangePicker\n\t\t\t\tbind:fromDate\n\t\t\t\tbind:toDate\n\t\t\t\tbind:fromTime\n\t\t\t\tbind:toTime\n\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t/>\n\t\t</div>\n\t</div>\n\n\t<div class=\"flex flex-col gap-3 sm:flex-row sm:items-start\">\n\t\t<div class=\"flex-1\">\n\t\t\t<SearchBar\n\t\t\t\tplaceholder=\"Search logs...\"\n\t\t\t\tbind:value={searchQuery}\n\t\t\t\tbind:typeValue={searchType}\n\t\t\t\ttypeOptions={searchTypeOptions}\n\t\t\t\tonSearch={handleSearch}\n\t\t\t\tdisabled={loading}\n\t\t\t>\n\t\t\t\t<Select.Root\n\t\t\t\t\ttype=\"single\"\n\t\t\t\t\tvalue={String(minSeverity)}\n\t\t\t\t\tonValueChange={handleSeverityChange}\n\t\t\t\t>\n\t\t\t\t\t<Select.Trigger class=\"h-9 w-[130px] rounded-none border-r-0 shadow-none\">\n\t\t\t\t\t\t{severityTriggerLabel}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t{#each severityOptions as opt (opt.value)}\n\t\t\t\t\t\t\t<Select.Item value={opt.value} label={opt.label}>{opt.label}</Select.Item>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</SearchBar>\n\t\t</div>\n\t</div>\n\n\t<div class=\"flex flex-wrap items-center gap-2\">\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tclass=\"inline-flex items-center gap-1 rounded-full border border-dashed px-3 py-0.5 text-xs font-medium text-muted-foreground transition-colors hover:border-foreground/40 hover:text-foreground\"\n\t\t\tonclick={openAddFilterDialog}\n\t\t\tdisabled={loading}\n\t\t>\n\t\t\t<Plus class=\"h-3 w-3\" />\n\t\t\tAdd filter\n\t\t</button>\n\t\t{#each attributeFilters as f, i (i)}\n\t\t\t<span\n\t\t\t\tclass=\"inline-flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs font-mono\"\n\t\t\t>\n\t\t\t\t<span class=\"text-muted-foreground\">{f.scope}.{f.key}</span>\n\t\t\t\t<span>=</span>\n\t\t\t\t<span>{f.value}</span>\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\taria-label=\"Remove filter\"\n\t\t\t\t\tclass=\"ml-1 text-muted-foreground hover:text-foreground\"\n\t\t\t\t\tonclick={() => removeAttributeFilter(i)}\n\t\t\t\t>\n\t\t\t\t\t<X class=\"h-3 w-3\" />\n\t\t\t\t</button>\n\t\t\t</span>\n\t\t{/each}\n\t</div>\n\n\t<AlertDialog.Root open={addFilterOpen} onOpenChange={(open) => (addFilterOpen = open)}>\n\t\t<AlertDialog.Content>\n\t\t\t<AlertDialog.Header>\n\t\t\t\t<AlertDialog.Title>Add attribute filter</AlertDialog.Title>\n\t\t\t\t<AlertDialog.Description>\n\t\t\t\t\tAttribute keys must start with <code class=\"font-mono\">resource.</code>,\n\t\t\t\t\t<code class=\"font-mono\">scope.</code>, or <code class=\"font-mono\">log.</code>.\n\t\t\t\t</AlertDialog.Description>\n\t\t\t</AlertDialog.Header>\n\t\t\t<div class=\"flex flex-col gap-3\">\n\t\t\t\t<label class=\"flex flex-col gap-1 text-sm\">\n\t\t\t\t\t<span class=\"font-medium\">Attribute key</span>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tplaceholder=\"resource.service.name\"\n\t\t\t\t\t\tbind:value={dialogKey}\n\t\t\t\t\t\tonkeydown={handleDialogKeydown}\n\t\t\t\t\t/>\n\t\t\t\t</label>\n\t\t\t\t<label class=\"flex flex-col gap-1 text-sm\">\n\t\t\t\t\t<span class=\"font-medium\">Value</span>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tplaceholder=\"backend-service\"\n\t\t\t\t\t\tbind:value={dialogValue}\n\t\t\t\t\t\tonkeydown={handleDialogKeydown}\n\t\t\t\t\t/>\n\t\t\t\t</label>\n\t\t\t\t{#if dialogError}\n\t\t\t\t\t<p class=\"text-xs text-red-500\">{dialogError}</p>\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t\t<AlertDialog.Footer>\n\t\t\t\t<Button variant=\"outline\" onclick={() => (addFilterOpen = false)}>Cancel</Button>\n\t\t\t\t<Button onclick={submitDialogFilter}>\n\t\t\t\t\t<Plus class=\"h-4 w-4\" /> Add filter\n\t\t\t\t</Button>\n\t\t\t</AlertDialog.Footer>\n\t\t</AlertDialog.Content>\n\t</AlertDialog.Root>\n\n\t<div class=\"overflow-hidden rounded-md border\">\n\t\t<Table.Root>\n\t\t\t{#if loading}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<Table.Cell colspan={5} class=\"h-48\">\n\t\t\t\t\t\t\t<div class=\"flex h-full items-center justify-center\">\n\t\t\t\t\t\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Body>\n\t\t\t{:else if error}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<Table.Cell colspan={5} class=\"h-24 text-center text-red-500\">\n\t\t\t\t\t\t\t{error}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Body>\n\t\t\t{:else if logs.length === 0}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<TableEmptyState colspan={5} message=\"No logs found.\" />\n\t\t\t\t</Table.Body>\n\t\t\t{:else}\n\t\t\t\t<Table.Header>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Timestamp\"\n\t\t\t\t\t\t\ttooltip=\"Log event time\"\n\t\t\t\t\t\t\tclass=\"w-[180px]\"\n\t\t\t\t\t\t\tsortField=\"timestamp\"\n\t\t\t\t\t\t\tcurrentSortField={sortField}\n\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\tonSort={handleSort}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Level\"\n\t\t\t\t\t\t\ttooltip=\"Log severity\"\n\t\t\t\t\t\t\tclass=\"w-[90px]\"\n\t\t\t\t\t\t\tsortField=\"severity_number\"\n\t\t\t\t\t\t\tcurrentSortField={sortField}\n\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\tonSort={handleSort}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader label=\"Message\" tooltip=\"Log body (click row to expand)\" />\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Service\"\n\t\t\t\t\t\t\ttooltip=\"Emitting service\"\n\t\t\t\t\t\t\tclass=\"w-[160px]\"\n\t\t\t\t\t\t\tsortField=\"service_name\"\n\t\t\t\t\t\t\tcurrentSortField={sortField}\n\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\tonSort={handleSort}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Trace\"\n\t\t\t\t\t\t\ttooltip=\"Linked trace ID (if present)\"\n\t\t\t\t\t\t\tclass=\"w-[110px]\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Header>\n\t\t\t\t<Table.Body>\n\t\t\t\t\t{#each logs as log (log.id)}\n\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\tclass=\"group cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\tonclick={() => toggleExpanded(log.id)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t\t{formatDateTime(log.timestamp, { timezone })}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t<SeverityBadge\n\t\t\t\t\t\t\t\t\tseverityText={log.severityText}\n\t\t\t\t\t\t\t\t\tseverityNumber={log.severityNumber}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell class=\"max-w-[600px] truncate font-mono text-sm\">\n\t\t\t\t\t\t\t\t{firstLine(log.body)}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell class=\"truncate text-muted-foreground\">\n\t\t\t\t\t\t\t\t{log.serviceName || '—'}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-xs\">\n\t\t\t\t\t\t\t\t{#if log.traceId}\n\t\t\t\t\t\t\t\t\t<span class=\"text-muted-foreground\" title={log.traceId}>\n\t\t\t\t\t\t\t\t\t\t{log.traceId.slice(0, 8)}…\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t<span class=\"text-muted-foreground\">—</span>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{#if expandedId === log.id}\n\t\t\t\t\t\t\t<ExpandedLogRow {log} colspan={5} />\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t{/each}\n\t\t\t\t</Table.Body>\n\t\t\t{/if}\n\t\t</Table.Root>\n\t</div>\n\n\t<PaginationFooter\n\t\tcurrentPage={page}\n\t\t{totalPages}\n\t\t{pageSize}\n\t\ttotalItems={total}\n\t\tonPageChange={handlePageChange}\n\t\tonPageSizeChange={handlePageSizeChange}\n\t\t{loading}\n\t\titemLabel=\"log\"\n\t/>\n</div>\n"],"names":["timezone","getTimezone","SORT_STORAGE_KEY","initialSort","getSortState","sortField","$.state","$.proxy","sortDirection","logs","loading","error","expandedId","page","pageSize","total","totalPages","parseAttributeFilter","input","m","key","formatAttributeFilter","f","parseLogsUrlParams","params","timeParams","parseTimeRangeFromUrl","$.get","minSev","attrs","raw","parsed","initialUrlParams","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","searchQuery","searchType","minSeverity","serviceName","traceIdFilter","attributeFilters","addFilterOpen","dialogKey","dialogValue","dialogError","openAddFilterDialog","$.set","submitDialogFilter","composed","loadData","handleDialogKeydown","e","searchTypeOptions","severityOptions","severityTriggerLabel","o","getFromDateTimeUTC","hour","minute","luxonDt","calendarDateTimeToLuxon","toUTCISO","getToDateTimeUTC","updateLogsUrl","pushToHistory","urlParams","newUrl","goto","removeAttributeFilter","index","_","i","range","getTimeRangeFromPreset","requestBody","response","api","projectsState","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleTimeRangeChange","from","to","preset","handleSearch","handleSeverityChange","value","handleSort","field","newSort","handleSortClick","setSortState","handlePopState","toggleExpanded","id","firstLine","body","nl","onMount","onDestroy","div","root","div_1","div_2","TimeRangePicker","node","$$value","div_3","div_4","SearchBar","node_1","$0","$.derived","Select_Root","$$anchor","Select_Trigger","Select_Content","$.each","node_5","opt","Select_Item","$.template_effect","$.set_text","text_1","div_5","button","$.child","node_7","Plus","$.reset","node_8","$.sibling","span","root_7","span_1","span_2","button_1","node_9","X","text_2","text_3","$.append","AlertDialog_Root","open","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","div_6","node_12","label","Input","node_15","label_1","node_16","p","root_13","$$render","consequent","AlertDialog_Footer","Button","node_19","node_20","node_21","div_7","node_10","Table_Root","Table_Body","Table_Row","Table_Cell","div_8","root_21","LoadingCircle","node_27","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","TracewayTableHeader","node_36","node_37","node_38","node_39","node_40","Table_Body_3","node_42","log","Table_Row_3","Table_Cell_2","formatDateTime","Table_Cell_3","SeverityBadge","Table_Cell_4","Table_Cell_5","Table_Cell_6","span_3","root_41","span_4","root_42","consequent_4","alternate","ExpandedLogRow","consequent_5","consequent_3","alternate_1","consequent_2","alternate_2","consequent_1","alternate_3","PaginationFooter","node_51"],"mappings":"0pGAAA,WAqCO,MAAAA,KAAoBC,EAAW,EAE/BC,GAAmB,OACnBC,GAAcC,GAAaF,GAAgB,CAAI,MAAO,YAAa,UAAW,OAAM,EACtF,IAAAG,GAAYC,EAAMC,EAACJ,GAAY,KAAK,CAAA,EACpCK,GAAgBF,EAAMC,EAAgBJ,GAAY,SAAS,CAAA,E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IJE,GAAIC,GAAA,OAAJD,EAAI,cALDtL,EAAA2K,CAAG,EAAC,QAAOhC,GAAA6C,EAAA,EAAA7C,GAAA8C,GAAA,EAAA,oGAUhBC,GAAc1F,GAAA,oBAAE2E,CAAG,WAAW,kBAD3B1L,EAAU,IAAAe,EAAK2K,CAAG,EAAC,IAAEhC,GAAAgD,EAAA,iEAzEnB7M,EAAI,EAAC,SAAW,EAAC6J,EAAAiD,CAAA,EAAAjD,EAAAkD,EAAA,EAAA,0BARjB7M,EAAK,EAAA2J,EAAAmD,EAAA,EAAAnD,EAAAoD,EAAA,EAAA,0BAVVhN,EAAO,EAAA4J,EAAAqD,CAAA,EAAArD,EAAAsD,GAAA,EAAA,uCAFb/C,EAAG,WAAHA,GAAG,CAAA,EAsGHgD,GAAAC,GAAA,4BACajN,CAAI,6BAChBG,EAAU,2BACVF,EAAQ,6BACGC,EAAK,gBACHsE,oBACIE,0BACjB7E,EAAO,uBA5NTmG,EAAG,EA4CDqB,EAAA,IAAAI,GAAA,SAAA3G,EAIUjB,EAAO,CAAA,OAhDnBmG,EAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"19.NJmlNQ_L.js","sources":["../../../../../../src/routes/logs/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { onMount, onDestroy } from 'svelte';\n\timport { browser } from '$app/environment';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport * as Table from '$lib/components/ui/table';\n\timport { SearchBar } from '$lib/components/ui/search-bar';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { PaginationFooter } from '$lib/components/ui/pagination-footer';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { SeverityBadge } from '$lib/components/ui/severity-badge';\n\timport * as Select from '$lib/components/ui/select';\n\timport { Input } from '$lib/components/ui/input';\n\timport { Button } from '$lib/components/ui/button';\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport ExpandedLogRow from '$lib/components/trace-logs/expanded-log-row.svelte';\n\timport { Plus, X } from '@lucide/svelte';\n\timport { CalendarDate } from '@internationalized/date';\n\timport {\n\t\tparseTimeRangeFromUrl,\n\t\tgetResolvedTimeRange,\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString\n\t} from '$lib/utils/url-params';\n\timport { calendarDateTimeToLuxon, toUTCISO, formatDateTime } from '$lib/utils/formatters';\n\timport {\n\t\tgetSortState,\n\t\tsetSortState,\n\t\thandleSortClick,\n\t\ttype SortDirection\n\t} from '$lib/utils/sort-storage';\n\n\tconst timezone = $derived(getTimezone());\n\n\tconst SORT_STORAGE_KEY = 'logs';\n\tconst initialSort = getSortState(SORT_STORAGE_KEY, { field: 'timestamp', direction: 'desc' });\n\tlet sortField = $state(initialSort.field);\n\tlet sortDirection = $state<SortDirection>(initialSort.direction);\n\n\ttype LogRecord = {\n\t\tid: string;\n\t\tprojectId: string;\n\t\ttimestamp: string;\n\t\ttraceId: string;\n\t\tspanId: string;\n\t\ttraceFlags: number;\n\t\tseverityText: string;\n\t\tseverityNumber: number;\n\t\tserviceName: string;\n\t\tbody: string;\n\t\tresourceSchemaUrl: string;\n\t\tresourceAttributes: Record<string, string> | null;\n\t\tscopeSchemaUrl: string;\n\t\tscopeName: string;\n\t\tscopeVersion: string;\n\t\tscopeAttributes: Record<string, string> | null;\n\t\tlogAttributes: Record<string, string> | null;\n\t};\n\n\tlet logs = $state<LogRecord[]>([]);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet expandedId = $state<string | null>(null);\n\n\tlet page = $state(1);\n\tlet pageSize = $state(50);\n\tlet total = $state(0);\n\tlet totalPages = $state(0);\n\n\ttype AttributeFilter = {\n\t\tscope: 'resource' | 'scope' | 'log';\n\t\tkey: string;\n\t\tvalue: string;\n\t};\n\n\t// Parse `resource.service.name=backend-service` (or scope.*/log.*) into a\n\t// structured filter. Returns null if the input doesn't match the shape.\n\tfunction parseAttributeFilter(input: string): AttributeFilter | null {\n\t\tconst trimmed = input.trim();\n\t\tconst m = trimmed.match(/^(resource|scope|log)\\.([^=]+)=(.*)$/);\n\t\tif (!m) return null;\n\t\tconst key = m[2].trim();\n\t\tif (!key) return null;\n\t\treturn { scope: m[1] as AttributeFilter['scope'], key, value: m[3] };\n\t}\n\n\tfunction formatAttributeFilter(f: AttributeFilter): string {\n\t\treturn `${f.scope}.${f.key}=${f.value}`;\n\t}\n\n\tfunction parseLogsUrlParams() {\n\t\tif (!browser) {\n\t\t\treturn {\n\t\t\t\tpreset: '24h',\n\t\t\t\tfrom: null,\n\t\t\t\tto: null,\n\t\t\t\tsearch: '',\n\t\t\t\tsearchType: 'body',\n\t\t\t\tminSeverity: 0,\n\t\t\t\tserviceName: '',\n\t\t\t\ttraceId: '',\n\t\t\t\tattributeFilters: [] as AttributeFilter[]\n\t\t\t};\n\t\t}\n\t\tconst params = new URLSearchParams(window.location.search);\n\t\tconst timeParams = parseTimeRangeFromUrl(timezone, '24h');\n\t\tconst minSev = Number(params.get('minSeverity') || '0');\n\t\tconst attrs: AttributeFilter[] = [];\n\t\tfor (const raw of params.getAll('attr')) {\n\t\t\tconst parsed = parseAttributeFilter(raw);\n\t\t\tif (parsed) attrs.push(parsed);\n\t\t}\n\t\treturn {\n\t\t\t...timeParams,\n\t\t\tsearch: params.get('search') || '',\n\t\t\tsearchType: params.get('searchType') || 'body',\n\t\t\tminSeverity: Number.isFinite(minSev) ? minSev : 0,\n\t\t\tserviceName: params.get('service') || '',\n\t\t\ttraceId: params.get('traceId') || '',\n\t\t\tattributeFilters: attrs\n\t\t};\n\t}\n\n\tconst initialUrlParams = parseLogsUrlParams();\n\tconst initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n\tlet selectedPreset = $state<string | null>(initialUrlParams.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\tlet searchQuery = $state(initialUrlParams.search);\n\tlet searchType = $state(initialUrlParams.searchType);\n\tlet minSeverity = $state<number>(initialUrlParams.minSeverity);\n\tlet serviceName = $state(initialUrlParams.serviceName);\n\tlet traceIdFilter = $state(initialUrlParams.traceId);\n\tlet attributeFilters = $state<AttributeFilter[]>(initialUrlParams.attributeFilters);\n\n\t// Add-filter dialog\n\tlet addFilterOpen = $state(false);\n\tlet dialogKey = $state('');\n\tlet dialogValue = $state('');\n\tlet dialogError = $state('');\n\n\tfunction openAddFilterDialog() {\n\t\tdialogKey = '';\n\t\tdialogValue = '';\n\t\tdialogError = '';\n\t\taddFilterOpen = true;\n\t}\n\n\tfunction submitDialogFilter() {\n\t\tconst composed = `${dialogKey.trim()}=${dialogValue}`;\n\t\tconst parsed = parseAttributeFilter(composed);\n\t\tif (!parsed) {\n\t\t\tdialogError = 'Key must start with resource., scope., or log.';\n\t\t\treturn;\n\t\t}\n\t\tconst dup = attributeFilters.some(\n\t\t\t(f) => f.scope === parsed.scope && f.key === parsed.key && f.value === parsed.value\n\t\t);\n\t\tif (!dup) {\n\t\t\tattributeFilters = [...attributeFilters, parsed];\n\t\t}\n\t\taddFilterOpen = false;\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleDialogKeydown(e: KeyboardEvent) {\n\t\tif (e.key === 'Enter') {\n\t\t\te.preventDefault();\n\t\t\tsubmitDialogFilter();\n\t\t}\n\t}\n\n\tconst searchTypeOptions = [\n\t\t{ value: 'body', label: 'Message' },\n\t\t{ value: 'service', label: 'Service' },\n\t\t{ value: 'trace', label: 'Trace ID' }\n\t];\n\n\tconst severityOptions = [\n\t\t{ value: '0', label: 'All levels' },\n\t\t{ value: '1', label: 'TRACE+' },\n\t\t{ value: '5', label: 'DEBUG+' },\n\t\t{ value: '9', label: 'INFO+' },\n\t\t{ value: '13', label: 'WARN+' },\n\t\t{ value: '17', label: 'ERROR+' },\n\t\t{ value: '21', label: 'FATAL' }\n\t];\n\n\tconst severityTriggerLabel = $derived(\n\t\tseverityOptions.find((o) => Number(o.value) === minSeverity)?.label ?? 'All levels'\n\t);\n\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = fromTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = toTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction updateLogsUrl(pushToHistory = true) {\n\t\tif (!browser) return;\n\t\tconst urlParams = new URLSearchParams();\n\t\tif (selectedPreset) {\n\t\t\turlParams.set('preset', selectedPreset);\n\t\t} else {\n\t\t\turlParams.set('from', getFromDateTimeUTC());\n\t\t\turlParams.set('to', getToDateTimeUTC());\n\t\t}\n\t\tif (searchQuery.trim()) urlParams.set('search', searchQuery.trim());\n\t\tif (searchType !== 'body') urlParams.set('searchType', searchType);\n\t\tif (minSeverity > 0) urlParams.set('minSeverity', String(minSeverity));\n\t\tif (serviceName.trim()) urlParams.set('service', serviceName.trim());\n\t\tif (traceIdFilter.trim()) urlParams.set('traceId', traceIdFilter.trim());\n\t\tfor (const f of attributeFilters) {\n\t\t\turlParams.append('attr', formatAttributeFilter(f));\n\t\t}\n\t\tconst newUrl = `${window.location.pathname}?${urlParams.toString()}`;\n\t\t// eslint-disable-next-line svelte/no-navigation-without-resolve\n\t\tgoto(newUrl, { replaceState: !pushToHistory, noScroll: true, keepFocus: true });\n\t}\n\n\tfunction removeAttributeFilter(index: number) {\n\t\tattributeFilters = attributeFilters.filter((_, i) => i !== index);\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tasync function loadData(pushToHistory = true) {\n\t\tloading = true;\n\t\terror = '';\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\n\t\tupdateLogsUrl(pushToHistory);\n\n\t\ttry {\n\t\t\tconst requestBody = {\n\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\ttoDate: getToDateTimeUTC(),\n\t\t\t\torderBy: sortField,\n\t\t\t\tsortDirection,\n\t\t\t\tpagination: { page, pageSize },\n\t\t\t\tsearch: searchQuery.trim(),\n\t\t\t\tsearchType,\n\t\t\t\tminSeverity,\n\t\t\t\tserviceName: serviceName.trim(),\n\t\t\t\ttraceId: traceIdFilter.trim(),\n\t\t\t\tattributeFilters\n\t\t\t};\n\n\t\t\tconst response = (await api.post('/logs', requestBody, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t})) as { data: LogRecord[]; pagination: { total: number; totalPages: number } };\n\n\t\t\tlogs = response.data || [];\n\t\t\ttotal = response.pagination.total;\n\t\t\ttotalPages = response.pagination.totalPages;\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\terror = e.message || 'Failed to load logs';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handlePageChange(newPage: number) {\n\t\tif (newPage >= 1 && newPage <= totalPages) {\n\t\t\tpage = newPage;\n\t\t\tloadData(true);\n\t\t}\n\t}\n\n\tfunction handlePageSizeChange(newPageSize: number) {\n\t\tpageSize = newPageSize;\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\ttoDate = to.date;\n\t\tfromTime = from.time;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleSearch() {\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handleSeverityChange(value: string) {\n\t\t// Keep severity as pending query state — applied on the next Go press,\n\t\t// same as the search input. Avoids triggering a re-fetch on every\n\t\t// dropdown change.\n\t\tminSeverity = Number(value) || 0;\n\t}\n\n\tfunction handleSort(field: string) {\n\t\tconst newSort = handleSortClick(field, sortField, sortDirection);\n\t\tsortField = newSort.field;\n\t\tsortDirection = newSort.direction;\n\t\tsetSortState(SORT_STORAGE_KEY, newSort);\n\t\tpage = 1;\n\t\tloadData(true);\n\t}\n\n\tfunction handlePopState() {\n\t\tconst urlParams = parseLogsUrlParams();\n\t\tconst range = getResolvedTimeRange(urlParams, timezone);\n\t\tselectedPreset = urlParams.preset;\n\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\tsearchQuery = urlParams.search;\n\t\tsearchType = urlParams.searchType;\n\t\tminSeverity = urlParams.minSeverity;\n\t\tserviceName = urlParams.serviceName;\n\t\ttraceIdFilter = urlParams.traceId;\n\t\tattributeFilters = urlParams.attributeFilters;\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tfunction toggleExpanded(id: string) {\n\t\texpandedId = expandedId === id ? null : id;\n\t}\n\n\tfunction firstLine(body: string): string {\n\t\tif (!body) return '';\n\t\tconst nl = body.indexOf('\\n');\n\t\treturn nl === -1 ? body : body.slice(0, nl);\n\t}\n\n\tonMount(() => {\n\t\twindow.addEventListener('popstate', handlePopState);\n\t\tloadData(false);\n\t});\n\n\tonDestroy(() => {\n\t\tif (typeof window !== 'undefined') {\n\t\t\twindow.removeEventListener('popstate', handlePopState);\n\t\t}\n\t});\n</script>\n\n<div class=\"space-y-4\">\n\t<div class=\"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Logs</h2>\n\t\t<div class=\"w-full sm:w-auto\">\n\t\t\t<TimeRangePicker\n\t\t\t\tbind:fromDate\n\t\t\t\tbind:toDate\n\t\t\t\tbind:fromTime\n\t\t\t\tbind:toTime\n\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t/>\n\t\t</div>\n\t</div>\n\n\t<div class=\"flex flex-col gap-3 sm:flex-row sm:items-start\">\n\t\t<div class=\"flex-1\">\n\t\t\t<SearchBar\n\t\t\t\tplaceholder=\"Search logs...\"\n\t\t\t\tbind:value={searchQuery}\n\t\t\t\tbind:typeValue={searchType}\n\t\t\t\ttypeOptions={searchTypeOptions}\n\t\t\t\tonSearch={handleSearch}\n\t\t\t\tdisabled={loading}\n\t\t\t>\n\t\t\t\t<Select.Root\n\t\t\t\t\ttype=\"single\"\n\t\t\t\t\tvalue={String(minSeverity)}\n\t\t\t\t\tonValueChange={handleSeverityChange}\n\t\t\t\t>\n\t\t\t\t\t<Select.Trigger class=\"h-9 w-[130px] rounded-none border-r-0 shadow-none\">\n\t\t\t\t\t\t{severityTriggerLabel}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t{#each severityOptions as opt (opt.value)}\n\t\t\t\t\t\t\t<Select.Item value={opt.value} label={opt.label}>{opt.label}</Select.Item>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</SearchBar>\n\t\t</div>\n\t</div>\n\n\t<div class=\"flex flex-wrap items-center gap-2\">\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tclass=\"inline-flex items-center gap-1 rounded-full border border-dashed px-3 py-0.5 text-xs font-medium text-muted-foreground transition-colors hover:border-foreground/40 hover:text-foreground\"\n\t\t\tonclick={openAddFilterDialog}\n\t\t\tdisabled={loading}\n\t\t>\n\t\t\t<Plus class=\"h-3 w-3\" />\n\t\t\tAdd filter\n\t\t</button>\n\t\t{#each attributeFilters as f, i (i)}\n\t\t\t<span\n\t\t\t\tclass=\"inline-flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs font-mono\"\n\t\t\t>\n\t\t\t\t<span class=\"text-muted-foreground\">{f.scope}.{f.key}</span>\n\t\t\t\t<span>=</span>\n\t\t\t\t<span>{f.value}</span>\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\taria-label=\"Remove filter\"\n\t\t\t\t\tclass=\"ml-1 text-muted-foreground hover:text-foreground\"\n\t\t\t\t\tonclick={() => removeAttributeFilter(i)}\n\t\t\t\t>\n\t\t\t\t\t<X class=\"h-3 w-3\" />\n\t\t\t\t</button>\n\t\t\t</span>\n\t\t{/each}\n\t</div>\n\n\t<AlertDialog.Root open={addFilterOpen} onOpenChange={(open) => (addFilterOpen = open)}>\n\t\t<AlertDialog.Content>\n\t\t\t<AlertDialog.Header>\n\t\t\t\t<AlertDialog.Title>Add attribute filter</AlertDialog.Title>\n\t\t\t\t<AlertDialog.Description>\n\t\t\t\t\tAttribute keys must start with <code class=\"font-mono\">resource.</code>,\n\t\t\t\t\t<code class=\"font-mono\">scope.</code>, or <code class=\"font-mono\">log.</code>.\n\t\t\t\t</AlertDialog.Description>\n\t\t\t</AlertDialog.Header>\n\t\t\t<div class=\"flex flex-col gap-3\">\n\t\t\t\t<label class=\"flex flex-col gap-1 text-sm\">\n\t\t\t\t\t<span class=\"font-medium\">Attribute key</span>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tplaceholder=\"resource.service.name\"\n\t\t\t\t\t\tbind:value={dialogKey}\n\t\t\t\t\t\tonkeydown={handleDialogKeydown}\n\t\t\t\t\t/>\n\t\t\t\t</label>\n\t\t\t\t<label class=\"flex flex-col gap-1 text-sm\">\n\t\t\t\t\t<span class=\"font-medium\">Value</span>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tplaceholder=\"backend-service\"\n\t\t\t\t\t\tbind:value={dialogValue}\n\t\t\t\t\t\tonkeydown={handleDialogKeydown}\n\t\t\t\t\t/>\n\t\t\t\t</label>\n\t\t\t\t{#if dialogError}\n\t\t\t\t\t<p class=\"text-xs text-red-500\">{dialogError}</p>\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t\t<AlertDialog.Footer>\n\t\t\t\t<Button variant=\"outline\" onclick={() => (addFilterOpen = false)}>Cancel</Button>\n\t\t\t\t<Button onclick={submitDialogFilter}>\n\t\t\t\t\t<Plus class=\"h-4 w-4\" /> Add filter\n\t\t\t\t</Button>\n\t\t\t</AlertDialog.Footer>\n\t\t</AlertDialog.Content>\n\t</AlertDialog.Root>\n\n\t<div class=\"overflow-hidden rounded-md border\">\n\t\t<Table.Root>\n\t\t\t{#if loading}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<Table.Cell colspan={5} class=\"h-48\">\n\t\t\t\t\t\t\t<div class=\"flex h-full items-center justify-center\">\n\t\t\t\t\t\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Body>\n\t\t\t{:else if error}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<Table.Cell colspan={5} class=\"h-24 text-center text-red-500\">\n\t\t\t\t\t\t\t{error}\n\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Body>\n\t\t\t{:else if logs.length === 0}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t<TableEmptyState colspan={5} message=\"No logs found.\" />\n\t\t\t\t</Table.Body>\n\t\t\t{:else}\n\t\t\t\t<Table.Header>\n\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Timestamp\"\n\t\t\t\t\t\t\ttooltip=\"Log event time\"\n\t\t\t\t\t\t\tclass=\"w-[180px]\"\n\t\t\t\t\t\t\tsortField=\"timestamp\"\n\t\t\t\t\t\t\tcurrentSortField={sortField}\n\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\tonSort={handleSort}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Level\"\n\t\t\t\t\t\t\ttooltip=\"Log severity\"\n\t\t\t\t\t\t\tclass=\"w-[90px]\"\n\t\t\t\t\t\t\tsortField=\"severity_number\"\n\t\t\t\t\t\t\tcurrentSortField={sortField}\n\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\tonSort={handleSort}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader label=\"Message\" tooltip=\"Log body (click row to expand)\" />\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Service\"\n\t\t\t\t\t\t\ttooltip=\"Emitting service\"\n\t\t\t\t\t\t\tclass=\"w-[160px]\"\n\t\t\t\t\t\t\tsortField=\"service_name\"\n\t\t\t\t\t\t\tcurrentSortField={sortField}\n\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\tonSort={handleSort}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\tlabel=\"Trace\"\n\t\t\t\t\t\t\ttooltip=\"Linked trace ID (if present)\"\n\t\t\t\t\t\t\tclass=\"w-[110px]\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</Table.Row>\n\t\t\t\t</Table.Header>\n\t\t\t\t<Table.Body>\n\t\t\t\t\t{#each logs as log (log.id)}\n\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\tclass=\"group cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\tonclick={() => toggleExpanded(log.id)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t\t{formatDateTime(log.timestamp, { timezone })}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t<SeverityBadge\n\t\t\t\t\t\t\t\t\tseverityText={log.severityText}\n\t\t\t\t\t\t\t\t\tseverityNumber={log.severityNumber}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell class=\"max-w-[600px] truncate font-mono text-sm\">\n\t\t\t\t\t\t\t\t{firstLine(log.body)}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell class=\"truncate text-muted-foreground\">\n\t\t\t\t\t\t\t\t{log.serviceName || '—'}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-xs\">\n\t\t\t\t\t\t\t\t{#if log.traceId}\n\t\t\t\t\t\t\t\t\t<span class=\"text-muted-foreground\" title={log.traceId}>\n\t\t\t\t\t\t\t\t\t\t{log.traceId.slice(0, 8)}…\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t<span class=\"text-muted-foreground\">—</span>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{#if expandedId === log.id}\n\t\t\t\t\t\t\t<ExpandedLogRow {log} colspan={5} />\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t{/each}\n\t\t\t\t</Table.Body>\n\t\t\t{/if}\n\t\t</Table.Root>\n\t</div>\n\n\t<PaginationFooter\n\t\tcurrentPage={page}\n\t\t{totalPages}\n\t\t{pageSize}\n\t\ttotalItems={total}\n\t\tonPageChange={handlePageChange}\n\t\tonPageSizeChange={handlePageSizeChange}\n\t\t{loading}\n\t\titemLabel=\"log\"\n\t/>\n</div>\n"],"names":["timezone","getTimezone","SORT_STORAGE_KEY","initialSort","getSortState","sortField","$.state","$.proxy","sortDirection","logs","loading","error","expandedId","page","pageSize","total","totalPages","parseAttributeFilter","input","m","key","formatAttributeFilter","f","parseLogsUrlParams","params","timeParams","parseTimeRangeFromUrl","$.get","minSev","attrs","raw","parsed","initialUrlParams","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","searchQuery","searchType","minSeverity","serviceName","traceIdFilter","attributeFilters","addFilterOpen","dialogKey","dialogValue","dialogError","openAddFilterDialog","$.set","submitDialogFilter","composed","loadData","handleDialogKeydown","e","searchTypeOptions","severityOptions","severityTriggerLabel","o","getFromDateTimeUTC","hour","minute","luxonDt","calendarDateTimeToLuxon","toUTCISO","getToDateTimeUTC","updateLogsUrl","pushToHistory","urlParams","newUrl","goto","removeAttributeFilter","index","_","i","range","getTimeRangeFromPreset","requestBody","response","api","projectsState","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleTimeRangeChange","from","to","preset","handleSearch","handleSeverityChange","value","handleSort","field","newSort","handleSortClick","setSortState","handlePopState","toggleExpanded","id","firstLine","body","nl","onMount","onDestroy","div","root","div_1","div_2","TimeRangePicker","node","$$value","div_3","div_4","SearchBar","node_1","$0","$.derived","Select_Root","$$anchor","Select_Trigger","Select_Content","$.each","node_5","opt","Select_Item","$.template_effect","$.set_text","text_1","div_5","button","$.child","node_7","Plus","$.reset","node_8","$.sibling","span","root_7","span_1","span_2","button_1","node_9","X","text_2","text_3","$.append","AlertDialog_Root","open","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","div_6","node_12","label","Input","node_15","label_1","node_16","p","root_13","$$render","consequent","AlertDialog_Footer","Button","node_19","node_20","node_21","div_7","node_10","Table_Root","Table_Body","Table_Row","Table_Cell","div_8","root_21","LoadingCircle","node_27","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","TracewayTableHeader","node_36","node_37","node_38","node_39","node_40","Table_Body_3","node_42","log","Table_Row_3","Table_Cell_2","formatDateTime","Table_Cell_3","SeverityBadge","Table_Cell_4","Table_Cell_5","Table_Cell_6","span_3","root_41","span_4","root_42","consequent_4","alternate","ExpandedLogRow","consequent_5","consequent_3","alternate_1","consequent_2","alternate_2","consequent_1","alternate_3","PaginationFooter","node_51"],"mappings":"0pGAAA,WAqCO,MAAAA,KAAoBC,EAAW,EAE/BC,GAAmB,OACnBC,GAAcC,GAAaF,GAAgB,CAAI,MAAO,YAAa,UAAW,OAAM,EACtF,IAAAG,GAAYC,EAAMC,EAACJ,GAAY,KAAK,CAAA,EACpCK,GAAgBF,EAAMC,EAAgBJ,GAAY,SAAS,CAAA,EAsB3DM,GAAOH,EAAMC,EAAA,CAAA,CAAA,CAAA,EACbG,GAAUJ,EAAO,EAAI,EACrBK,GAAQL,EAAO,EAAE,EACjBM,GAAaN,EAAsB,IAAI,EAEvCO,EAAOP,EAAO,CAAC,EACfQ,GAAWR,EAAO,EAAE,EACpBS,GAAQT,EAAO,CAAC,EAChBU,GAAaV,EAAO,CAAC,WAUhBW,GAAqBC,EAAuC,CAE9D,MAAAC,EADUD,EAAM,KAAI,EACR,MAAM,sCAAsC,EACzD,GAAA,CAAAC,SAAU,KACT,MAAAC,EAAMD,EAAE,CAAC,EAAE,KAAI,EAChB,OAAAC,GACI,MAAOD,EAAE,CAAC,EAA+B,IAAAC,EAAK,MAAOD,EAAE,CAAC,CAAA,EADhD,IAElB,UAESE,GAAsBC,EAA4B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A,4BACajN,CAAI,6BAChBG,EAAU,2BACVF,EAAQ,6BACGC,EAAK,gBACHsE,oBACIE,0BACjB7E,EAAO,uBA5NTmG,EAAG,EA4CDqB,EAAA,IAAAI,GAAA,SAAA3G,EAIUjB,EAAO,CAAA,OAhDnBmG,EAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/2.DkVhjzT0.js b/backend/static/frontend/_app/immutable/nodes/2.BCwBzGJs.js
similarity index 97%
rename from backend/static/frontend/_app/immutable/nodes/2.DkVhjzT0.js
rename to backend/static/frontend/_app/immutable/nodes/2.BCwBzGJs.js
index 1423f068..285437ce 100644
--- a/backend/static/frontend/_app/immutable/nodes/2.DkVhjzT0.js
+++ b/backend/static/frontend/_app/immutable/nodes/2.BCwBzGJs.js
@@ -1,4 +1,4 @@
-import{r as Ar}from"../chunks/BJZ1igWb.js";import{b as Er,p as Le,i as Jt,a as Qt,t as Xt,e as Mr,d as Nr}from"../chunks/D6S6XYVy.js";import{l as rt,s as at,i as x}from"../chunks/DMODTt3n.js";import{o as Lr}from"../chunks/Dwk6gGSK.js";import{d as z,c as s,b as a,q as Rr,p as Hr,F as er,h as H,v as Qe,g as e,i as n,f as d,a as Wr,e as r,s as o,r as t,u as W,n as j,k as me,l as ce,t as Pe}from"../chunks/B2WdN-7r.js";import{e as Xe,i as Pt}from"../chunks/CMyj8Fzw.js";import{c as g}from"../chunks/BAcG0-U_.js";import{a as Re}from"../chunks/DH0tcjsQ.js";import{c as tr}from"../chunks/CyOblkUv.js";import{e as Fr,a as Ur,g as Br,b as rr}from"../chunks/DJdWGDax.js";import{L as Vr}from"../chunks/D0pIT200.js";import{T as et,b as ar,a as Ce,c as or}from"../chunks/CeOjHHJH.js";import{T as sr}from"../chunks/CEJkX7WU.js";import{T as Ct,a as jt,b as Dt}from"../chunks/2aB7Aq1L.js";import{a as Kr,b as qr,C as Gr}from"../chunks/BHR29ZVu.js";import{C as Yr}from"../chunks/BKHeGn2e.js";import{R as tt,S as Zr,W as Jr}from"../chunks/Bo0m_oha.js";import{C as It,T as je}from"../chunks/BQmrPeqT.js";import{I as Qr}from"../chunks/CK7m5hvD.js";import{V as dr}from"../chunks/DE17DnKW.js";import{E as Xr}from"../chunks/B-KBEnoV.js";import{s as ea}from"../chunks/X-i49s3k.js";import{B as pe}from"../chunks/C1aqwstW.js";import{H as He,g as ta}from"../chunks/D9j1Uorr.js";import{j as lr,y as ra,b as ir,g as aa,c as oa,a as sa,p as da,d as la,e as ia,f as na}from"../chunks/BvDoo-7I.js";import{t as We}from"../chunks/BnbBSyGl.js";import{g as ca}from"../chunks/xR3pK9Ey.js";import{I as ot,s as st}from"../chunks/CQWqWi6p.js";import{C as he}from"../chunks/BISlaXSK.js";import{C as xe}from"../chunks/lk4DWutj.js";import{A as nr}from"../chunks/Dt-hNsWv.js";function va(ye,ue){const we=rt(ue,["children","$$slots","$$events","$$legacy"]);const Q=[["path",{d:"M12 20v-9"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z"}],["path",{d:"M14.12 3.88 16 2"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97"}],["path",{d:"M22 13h-4"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97"}],["path",{d:"M6 13H2"}],["path",{d:"m8 2 1.88 1.88"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13"}]];ot(ye,at({name:"bug"},()=>we,{get iconNode(){return Q},children:(be,Te)=>{var X=z(),fe=s(X);st(fe,ue,"default",{},null),a(be,X)},$$slots:{default:!0}}))}function cr(ye,ue){const we=rt(ue,["children","$$slots","$$events","$$legacy"]);const Q=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m9 12 2 2 4-4"}]];ot(ye,at({name:"circle-check"},()=>we,{get iconNode(){return Q},children:(be,Te)=>{var X=z(),fe=s(X);st(fe,ue,"default",{},null),a(be,X)},$$slots:{default:!0}}))}function ma(ye,ue){const we=rt(ue,["children","$$slots","$$events","$$legacy"]);const Q=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];ot(ye,at({name:"gauge"},()=>we,{get iconNode(){return Q},children:(be,Te)=>{var X=z(),fe=s(X);st(fe,ue,"default",{},null),a(be,X)},$$slots:{default:!0}}))}function vr(ye,ue){const we=rt(ue,["children","$$slots","$$events","$$legacy"]);const Q=[["path",{d:"m19 5 3-3"}],["path",{d:"m2 22 3-3"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z"}],["path",{d:"M7.5 13.5 10 11"}],["path",{d:"M10.5 16.5 13 14"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z"}]];ot(ye,at({name:"unplug"},()=>we,{get iconNode(){return Q},children:(be,Te)=>{var X=z(),fe=s(X);st(fe,ue,"default",{},null),a(be,X)},$$slots:{default:!0}}))}const pa=()=>{if(!Er.isAuthenticated)throw Ar(302,"/login")},Ho=Object.freeze(Object.defineProperty({__proto__:null,load:pa},Symbol.toStringTag,{value:"Module"}));var ua=d('<div class="flex items-center justify-center py-20"><!></div>'),fa=d("<!> Check Again",1),ga=d("<!> Copied!",1),_a=d("<!> Copy",1),ha=d(`<div class="rounded-md border bg-card"><div class="border-b px-4 py-3"><div class="flex items-center gap-3"><div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground">1</div> <h3 class="font-semibold">Create a Destination</h3></div> <p class="mt-1 ml-9 text-sm text-muted-foreground">In the Cloudflare dashboard, create an OTLP destination with the endpoint and
+import{r as Ar}from"../chunks/B4VmGkxP.js";import{b as Er,p as Le,i as Jt,a as Qt,t as Xt,e as Mr,d as Nr}from"../chunks/qCQ2nSvO.js";import{l as rt,s as at,i as x}from"../chunks/DMODTt3n.js";import{o as Lr}from"../chunks/Dwk6gGSK.js";import{d as z,c as s,b as a,q as Rr,p as Hr,F as er,h as H,v as Qe,g as e,i as n,f as d,a as Wr,e as r,s as o,r as t,u as W,n as j,k as me,l as ce,t as Pe}from"../chunks/B2WdN-7r.js";import{e as Xe,i as Pt}from"../chunks/CMyj8Fzw.js";import{c as g}from"../chunks/BAcG0-U_.js";import{a as Re}from"../chunks/DH0tcjsQ.js";import{c as tr}from"../chunks/UIirCQWa.js";import{e as Fr,a as Ur,g as Br,b as rr}from"../chunks/Dq-0lVru.js";import{L as Vr}from"../chunks/D0pIT200.js";import{T as et,b as ar,a as Ce,c as or}from"../chunks/CeOjHHJH.js";import{T as sr}from"../chunks/CEJkX7WU.js";import{T as Ct,a as jt,b as Dt}from"../chunks/5D-Broyu.js";import{a as Kr,b as qr,C as Gr}from"../chunks/BHR29ZVu.js";import{C as Yr}from"../chunks/BKHeGn2e.js";import{R as tt,S as Zr,W as Jr}from"../chunks/B622WnQw.js";import{C as It,T as je}from"../chunks/CkVJuMBr.js";import{I as Qr}from"../chunks/DuUGLGtW.js";import{V as dr}from"../chunks/BJPFuIL3.js";import{E as Xr}from"../chunks/CFZS-Ydw.js";import{s as ea}from"../chunks/X-i49s3k.js";import{B as pe}from"../chunks/C1aqwstW.js";import{H as He,g as ta}from"../chunks/D9j1Uorr.js";import{j as lr,y as ra,b as ir,g as aa,c as oa,a as sa,p as da,d as la,e as ia,f as na}from"../chunks/BApWZWbV.js";import{t as We}from"../chunks/BnbBSyGl.js";import{g as ca}from"../chunks/BIF4_51j.js";import{I as ot,s as st}from"../chunks/CQWqWi6p.js";import{C as he}from"../chunks/BISlaXSK.js";import{C as xe}from"../chunks/lk4DWutj.js";import{A as nr}from"../chunks/Dt-hNsWv.js";function va(ye,ue){const we=rt(ue,["children","$$slots","$$events","$$legacy"]);const Q=[["path",{d:"M12 20v-9"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z"}],["path",{d:"M14.12 3.88 16 2"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97"}],["path",{d:"M22 13h-4"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97"}],["path",{d:"M6 13H2"}],["path",{d:"m8 2 1.88 1.88"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13"}]];ot(ye,at({name:"bug"},()=>we,{get iconNode(){return Q},children:(be,Te)=>{var X=z(),fe=s(X);st(fe,ue,"default",{},null),a(be,X)},$$slots:{default:!0}}))}function cr(ye,ue){const we=rt(ue,["children","$$slots","$$events","$$legacy"]);const Q=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m9 12 2 2 4-4"}]];ot(ye,at({name:"circle-check"},()=>we,{get iconNode(){return Q},children:(be,Te)=>{var X=z(),fe=s(X);st(fe,ue,"default",{},null),a(be,X)},$$slots:{default:!0}}))}function ma(ye,ue){const we=rt(ue,["children","$$slots","$$events","$$legacy"]);const Q=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];ot(ye,at({name:"gauge"},()=>we,{get iconNode(){return Q},children:(be,Te)=>{var X=z(),fe=s(X);st(fe,ue,"default",{},null),a(be,X)},$$slots:{default:!0}}))}function vr(ye,ue){const we=rt(ue,["children","$$slots","$$events","$$legacy"]);const Q=[["path",{d:"m19 5 3-3"}],["path",{d:"m2 22 3-3"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z"}],["path",{d:"M7.5 13.5 10 11"}],["path",{d:"M10.5 16.5 13 14"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z"}]];ot(ye,at({name:"unplug"},()=>we,{get iconNode(){return Q},children:(be,Te)=>{var X=z(),fe=s(X);st(fe,ue,"default",{},null),a(be,X)},$$slots:{default:!0}}))}const pa=()=>{if(!Er.isAuthenticated)throw Ar(302,"/login")},Ho=Object.freeze(Object.defineProperty({__proto__:null,load:pa},Symbol.toStringTag,{value:"Module"}));var ua=d('<div class="flex items-center justify-center py-20"><!></div>'),fa=d("<!> Check Again",1),ga=d("<!> Copied!",1),_a=d("<!> Copy",1),ha=d(`<div class="rounded-md border bg-card"><div class="border-b px-4 py-3"><div class="flex items-center gap-3"><div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground">1</div> <h3 class="font-semibold">Create a Destination</h3></div> <p class="mt-1 ml-9 text-sm text-muted-foreground">In the Cloudflare dashboard, create an OTLP destination with the endpoint and
authorization header below.</p></div> <div class="space-y-4 p-4"><div><p class="mb-2 text-sm font-medium">OTLP Traces Endpoint</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Authorization Header</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div></div></div> <div class="rounded-md border bg-card"><div class="border-b px-4 py-3"><div class="flex items-center gap-3"><div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground">2</div> <h3 class="font-semibold">Enable in wrangler.jsonc</h3></div> <p class="mt-1 ml-9 text-sm text-muted-foreground">Add the observability configuration to your wrangler.jsonc file.</p></div> <div class="p-4"><div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div></div></div> <div class="rounded-md border bg-card"><div class="border-b px-4 py-3"><div class="flex items-center gap-3"><div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground">3</div> <h3 class="font-semibold">Deploy</h3></div> <p class="mt-1 ml-9 text-sm text-muted-foreground">Deploy your worker to start sending traces.</p></div> <div class="p-4"><div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all">npx wrangler deploy</code> <!></div></div></div>`,1),xa=d('<div class="flex items-center gap-2"><span class="w-16 shrink-0 text-sm font-medium"> </span> <code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-xs break-all"> </code> <!></div>'),ba=d("<!> Copied!",1),$a=d("<!> Copy",1),ya=d(`<div class="rounded-md border bg-card"><div class="border-b px-4 py-3"><div class="flex items-center gap-3"><div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground">1</div> <h3 class="font-semibold">Install an OpenTelemetry SDK</h3></div> <p class="mt-1 ml-9 text-sm text-muted-foreground">Choose the OTel SDK for your language. Any language that supports OTLP/HTTP export
will work.</p></div> <div class="space-y-2 p-4"><!> <p class="ml-16 pt-1 text-xs text-muted-foreground"><a href="https://opentelemetry.io/docs/languages/" target="_blank" rel="noopener noreferrer" class="underline hover:text-foreground">View all supported languages</a></p></div></div> <div class="rounded-md border bg-card"><div class="border-b px-4 py-3"><div class="flex items-center gap-3"><div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground">2</div> <h3 class="font-semibold">Configure the OTLP Exporter</h3></div> <p class="mt-1 ml-9 text-sm text-muted-foreground">Point your OTLP/HTTP exporter at Traceway using the endpoint and token below.</p></div> <div class="space-y-4 p-4"><div><p class="mb-2 text-sm font-medium">OTLP Endpoint</p> <p class="mb-2 text-xs text-muted-foreground">Your SDK or Collector will append <code class="rounded bg-muted px-1 py-0.5 font-mono text-xs">/v1/traces</code> and <code class="rounded bg-muted px-1 py-0.5 font-mono text-xs">/v1/metrics</code> automatically.</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Authorization Header</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Example: OTel Collector (optional)</p> <div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div></div></div></div> <div class="rounded-md border bg-card"><div class="border-b px-4 py-3"><div class="flex items-center gap-3"><div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground">3</div> <h3 class="font-semibold">Run Your Application</h3></div> <p class="mt-1 ml-9 text-sm text-muted-foreground">Start your application with OpenTelemetry instrumentation enabled. The SDK will
automatically export traces and metrics to Traceway via OTLP/HTTP.</p></div></div>`,1),wa=d("<!> Copied!",1),ka=d("<!> Copy",1),Ta=d("<!> Copied!",1),Pa=d("<!> Copy",1),Ca=d("<!> Copied!",1),ja=d("<!> Copy",1),Da=d("<!> Copied!",1),Ia=d("<!> Copy",1),Sa=d('<div class="flex justify-center p-2 italic">or</div> <div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div>',1),za=d('<div class="rounded-md border bg-card"><div class="border-b px-4 py-3"><div class="flex items-center gap-3"><div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground">1</div> <h3 class="font-semibold">Install the SDK</h3></div></div> <div class="p-4"><div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div></div></div> <div class="rounded-md border bg-card"><div class="border-b px-4 py-3"><div class="flex items-center gap-3"><div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground">2</div> <h3 class="font-semibold"> </h3></div> <p class="mt-1 ml-9 text-sm text-muted-foreground">Add the Traceway middleware to your application.</p></div> <div class="p-4"><div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div></div></div> <div class="rounded-md border bg-card"><div class="border-b px-4 py-3"><div class="flex items-center gap-3"><div class="flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground">3</div> <h3 class="font-semibold">Add a Test Route</h3></div> <p class="mt-1 ml-9 text-sm text-muted-foreground">Add this route to verify your integration, then visit <code class="rounded bg-muted px-1 py-0.5 font-mono text-xs">GET /testing</code> in your browser.</p></div> <div class="p-4"><div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div> <!></div></div>',1),Oa=d(`Once you've completed the steps above and triggered the <code class="rounded bg-muted px-1 py-0.5 font-mono text-xs">/testing</code> endpoint, click below to verify.`,1),Aa=d("<!> Check Again",1),Ea=d('<!> <div class="rounded-md border bg-card"><div class="flex flex-col items-center justify-center px-6 py-6 text-center"><div class="mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-destructive/10"><!></div> <p class="mb-4 text-sm text-muted-foreground"><!></p> <!></div></div>',1),Ma=d(`<div class="space-y-6"><div class="rounded-md border bg-card"><div class="flex flex-col items-center justify-center px-6 py-8 text-center"><div class="mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted"><!></div> <h3 class="mb-2 text-lg font-semibold">Connect Your Application</h3> <p class="mb-4 max-w-md text-sm text-muted-foreground">No data has been received yet. Follow the steps below to integrate Traceway into your
diff --git a/backend/static/frontend/_app/immutable/nodes/2.DkVhjzT0.js.map b/backend/static/frontend/_app/immutable/nodes/2.BCwBzGJs.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/2.DkVhjzT0.js.map
rename to backend/static/frontend/_app/immutable/nodes/2.BCwBzGJs.js.map
index 7cf6f3f2..ec825508 100644
--- a/backend/static/frontend/_app/immutable/nodes/2.DkVhjzT0.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/2.BCwBzGJs.js.map
@@ -1 +1 @@
-{"version":3,"file":"2.DkVhjzT0.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/bug.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/circle-check.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/gauge.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/unplug.svelte","../../../../../../src/routes/+page.ts","../../../../../../src/routes/+page.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M12 20v-9\" }], [\"path\", { \"d\": \"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z\" }], [\"path\", { \"d\": \"M14.12 3.88 16 2\" }], [\"path\", { \"d\": \"M21 21a4 4 0 0 0-3.81-4\" }], [\"path\", { \"d\": \"M21 5a4 4 0 0 1-3.55 3.97\" }], [\"path\", { \"d\": \"M22 13h-4\" }], [\"path\", { \"d\": \"M3 21a4 4 0 0 1 3.81-4\" }], [\"path\", { \"d\": \"M3 5a4 4 0 0 0 3.55 3.97\" }], [\"path\", { \"d\": \"M6 13H2\" }], [\"path\", { \"d\": \"m8 2 1.88 1.88\" }], [\"path\", { \"d\": \"M9 7.13V6a3 3 0 1 1 6 0v1.13\" }]];\n/**\n * @component @name Bug\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMjB2LTkiIC8+CiAgPHBhdGggZD0iTTE0IDdhNCA0IDAgMCAxIDQgNHYzYTYgNiAwIDAgMS0xMiAwdi0zYTQgNCAwIDAgMSA0LTR6IiAvPgogIDxwYXRoIGQ9Ik0xNC4xMiAzLjg4IDE2IDIiIC8+CiAgPHBhdGggZD0iTTIxIDIxYTQgNCAwIDAgMC0zLjgxLTQiIC8+CiAgPHBhdGggZD0iTTIxIDVhNCA0IDAgMCAxLTMuNTUgMy45NyIgLz4KICA8cGF0aCBkPSJNMjIgMTNoLTQiIC8+CiAgPHBhdGggZD0iTTMgMjFhNCA0IDAgMCAxIDMuODEtNCIgLz4KICA8cGF0aCBkPSJNMyA1YTQgNCAwIDAgMCAzLjU1IDMuOTciIC8+CiAgPHBhdGggZD0iTTYgMTNIMiIgLz4KICA8cGF0aCBkPSJtOCAyIDEuODggMS44OCIgLz4KICA8cGF0aCBkPSJNOSA3LjEzVjZhMyAzIDAgMSAxIDYgMHYxLjEzIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/bug\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"bug\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"10\" }], [\"path\", { \"d\": \"m9 12 2 2 4-4\" }]];\n/**\n * @component @name CircleCheck\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KICA8cGF0aCBkPSJtOSAxMiAyIDIgNC00IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/circle-check\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"circle-check\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"m12 14 4-4\" }], [\"path\", { \"d\": \"M3.34 19a10 10 0 1 1 17.32 0\" }]];\n/**\n * @component @name Gauge\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTIgMTQgNC00IiAvPgogIDxwYXRoIGQ9Ik0zLjM0IDE5YTEwIDEwIDAgMSAxIDE3LjMyIDAiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/gauge\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"gauge\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"m19 5 3-3\" }], [\"path\", { \"d\": \"m2 22 3-3\" }], [\"path\", { \"d\": \"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z\" }], [\"path\", { \"d\": \"M7.5 13.5 10 11\" }], [\"path\", { \"d\": \"M10.5 16.5 13 14\" }], [\"path\", { \"d\": \"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z\" }]];\n/**\n * @component @name Unplug\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTkgNSAzLTMiIC8+CiAgPHBhdGggZD0ibTIgMjIgMy0zIiAvPgogIDxwYXRoIGQ9Ik02LjMgMjAuM2EyLjQgMi40IDAgMCAwIDMuNCAwTDEyIDE4bC02LTYtMi4zIDIuM2EyLjQgMi40IDAgMCAwIDAgMy40WiIgLz4KICA8cGF0aCBkPSJNNy41IDEzLjUgMTAgMTEiIC8+CiAgPHBhdGggZD0iTTEwLjUgMTYuNSAxMyAxNCIgLz4KICA8cGF0aCBkPSJtMTIgNiA2IDYgMi4zLTIuM2EyLjQgMi40IDAgMCAwIDAtMy40bC0yLjYtMi42YTIuNCAyLjQgMCAwIDAtMy40IDBaIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/unplug\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"unplug\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\timport { formatDuration, formatRelativeTime, truncateStackTrace } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport * as Table from '$lib/components/ui/table';\n\timport * as Tooltip from '$lib/components/ui/tooltip';\n\timport {\n\t\tArrowRight,\n\t\tGauge,\n\t\tBug,\n\t\tCircleQuestionMark,\n\t\tCircleCheck,\n\t\tRefreshCw,\n\t\tCopy,\n\t\tCheck,\n\t\tStar,\n\t\tUnplug\n\t} from 'lucide-svelte';\n\timport * as Card from '$lib/components/ui/card';\n\timport WidgetRenderer from '$lib/components/dashboard/widget-renderer.svelte';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { ImpactBadge } from '$lib/components/ui/impact-badge';\n\timport { ViewAllTableRow } from '$lib/components/ui/view-all-table-row';\n\timport { api } from '$lib/api';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport {\n\t\tprojectsState,\n\t\ttype ProjectWithToken,\n\t\tisFrontendFramework,\n\t\tisJsFramework,\n\t\tisCloudflareFramework,\n\t\tisOtelFramework\n\t} from '$lib/state/projects.svelte';\n\timport { setSortState } from '$lib/utils/sort-storage';\n\timport { Button } from '$lib/components/ui/button';\n\timport Highlight from 'svelte-highlight';\n\timport go from 'svelte-highlight/languages/go';\n\timport javascript from 'svelte-highlight/languages/javascript';\n\timport bash from 'svelte-highlight/languages/bash';\n\timport php from 'svelte-highlight/languages/php';\n\timport { themeState } from '$lib/state/theme.svelte';\n\timport yaml from 'svelte-highlight/languages/yaml';\n\timport 'svelte-highlight/styles/github-dark.css';\n\timport {\n\t\tgetFrameworkCode,\n\t\tgetInstallCommand,\n\t\tgetTestingRouteCode,\n\t\tgetFrameworkLabel,\n\t\tgetTestingRouteCode2,\n\t\tgetCodeLanguage\n\t} from '$lib/utils/framework-code';\n\timport { toast } from 'svelte-sonner';\n\timport { goto } from '$app/navigation';\n\n\tconst timezone = $derived(getTimezone());\n\n\t$effect(() => {\n\t\tif (\n\t\t\tprojectsState.currentProject &&\n\t\t\tisFrontendFramework(projectsState.currentProject.framework)\n\t\t) {\n\t\t\t// index redirects to issues on a frontend project\n\t\t\tgoto('issues');\n\t\t}\n\t});\n\n\ttype ExceptionGroup = {\n\t\texceptionHash: string;\n\t\tstackTrace: string;\n\t\tlastSeen: string;\n\t\tfirstSeen: string;\n\t\tcount: number;\n\t};\n\n\ttype EndpointStats = {\n\t\tendpoint: string;\n\t\tcount: number;\n\t\tp50Duration: number;\n\t\tp95Duration: number;\n\t\tavgDuration: number;\n\t\tlastSeen: string;\n\t\timpact: number;\n\t\timpactReason: string;\n\t};\n\n\ttype DashboardOverview = {\n\t\trecentIssues: ExceptionGroup[];\n\t\tworstEndpoints: EndpointStats[];\n\t\thasData: boolean;\n\t};\n\n\ttype StarredWidget = {\n\t\tid: number;\n\t\twidgetGroupId: number;\n\t\ttitle: string;\n\t\twidgetType: string;\n\t\tconfig: any;\n\t\tisStarred: boolean;\n\t};\n\n\tlet data = $state<DashboardOverview | null>(null);\n\tlet starredWidgets = $state<StarredWidget[]>([]);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet errorStatus = $state<number>(0);\n\n\tconst STARRED_WINDOW_MS = 24 * 60 * 60 * 1000;\n\tlet starredFromUTC = $state(new Date(Date.now() - STARRED_WINDOW_MS).toISOString());\n\tlet starredToUTC = $state(new Date().toISOString());\n\n\t// Filter endpoints to only show those with impact > good (score >= 0.25)\n\tconst impactfulEndpoints = $derived(data?.worstEndpoints?.filter((e) => e.impact >= 0.25) ?? []);\n\n\tlet projectWithToken = $derived(projectsState.currentProject);\n\tlet copiedInstall = $state(false);\n\tlet copiedCode = $state(false);\n\tlet copiedTesting = $state(false);\n\tlet copiedTesting2 = $state(false);\n\tlet checking = $state(false);\n\n\tconst sdkCode = $derived(\n\t\tprojectWithToken\n\t\t\t? getFrameworkCode(\n\t\t\t\t\tprojectWithToken.framework,\n\t\t\t\t\tprojectWithToken.token,\n\t\t\t\t\tprojectWithToken.backendUrl\n\t\t\t\t)\n\t\t\t: ''\n\t);\n\n\tconst installCommand = $derived(\n\t\tprojectWithToken ? getInstallCommand(projectWithToken.framework) : 'go get go.tracewayapp.com'\n\t);\n\n\tconst isFrontend = $derived(\n\t\tprojectWithToken ? isFrontendFramework(projectWithToken.framework) : false\n\t);\n\n\tconst codeLanguage = $derived(\n\t\tprojectWithToken ? getCodeLanguage(projectWithToken.framework) : ('go' as const)\n\t);\n\n\tconst highlightLanguage = $derived(codeLanguage === 'javascript' ? javascript : codeLanguage === 'php' ? php : codeLanguage === 'bash' ? bash : go);\n\n\tconst testingRouteCode = $derived(getTestingRouteCode(projectWithToken?.framework));\n\tconst testingRouteCode2 = $derived(getTestingRouteCode2(projectWithToken?.framework));\n\n\tconst isCloudflare = $derived(\n\t\tprojectWithToken ? isCloudflareFramework(projectWithToken.framework) : false\n\t);\n\tconst cfOtelEndpoint = $derived(\n\t\tprojectWithToken ? `${projectWithToken.backendUrl}/api/otel/v1/traces` : ''\n\t);\n\tconst cfAuthHeader = $derived(projectWithToken ? `Bearer ${projectWithToken.token}` : '');\n\tconst cfWranglerConfig = $derived(`{\n \"observability\": {\n \"traces\": {\n \"enabled\": true,\n \"head_sample_rate\": 1,\n \"destinations\": [\n {\n \"name\": \"traceway\",\n \"type\": \"otlp\"\n }\n ]\n }\n }\n}`);\n\n\tlet copiedCfEndpoint = $state(false);\n\tlet copiedCfAuth = $state(false);\n\tlet copiedCfWrangler = $state(false);\n\tlet copiedCfDeploy = $state(false);\n\n\tconst isOtel = $derived(projectWithToken ? isOtelFramework(projectWithToken.framework) : false);\n\tconst otelBaseEndpoint = $derived(\n\t\tprojectWithToken ? `${projectWithToken.backendUrl}/api/otel` : ''\n\t);\n\tconst otelAuthHeader = $derived(projectWithToken ? `Bearer ${projectWithToken.token}` : '');\n\tconst otelCollectorConfig = $derived(\n\t\tprojectWithToken\n\t\t\t? `exporters:\n otlphttp:\n endpoint: \"${projectWithToken.backendUrl}/api/otel\"\n headers:\n Authorization: \"Bearer ${projectWithToken.token}\"\n\nservice:\n pipelines:\n traces:\n exporters: [otlphttp]\n metrics:\n exporters: [otlphttp]`\n\t\t\t: ''\n\t);\n\n\tconst otelSdks = [\n\t\t{\n\t\t\tlang: 'Node.js',\n\t\t\tcmd: 'npm install @opentelemetry/sdk-node @opentelemetry/exporter-trace-otlp-http @opentelemetry/exporter-metrics-otlp-http'\n\t\t},\n\t\t{ lang: 'Python', cmd: 'pip install opentelemetry-sdk opentelemetry-exporter-otlp-proto-http' },\n\t\t{ lang: 'Go', cmd: 'go get go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp' },\n\t\t{ lang: 'Java', cmd: \"implementation 'io.opentelemetry:opentelemetry-exporter-otlp'\" },\n\t\t{ lang: '.NET', cmd: 'dotnet add package OpenTelemetry.Exporter.OpenTelemetryProtocol' }\n\t];\n\n\tlet copiedSdkLang = $state<string | null>(null);\n\tlet copiedOtelEndpoint = $state(false);\n\tlet copiedOtelAuth = $state(false);\n\tlet copiedOtelCollector = $state(false);\n\n\tasync function copyCfEndpoint() {\n\t\tawait navigator.clipboard.writeText(cfOtelEndpoint);\n\t\tcopiedCfEndpoint = true;\n\t\tsetTimeout(() => (copiedCfEndpoint = false), 2000);\n\t}\n\n\tasync function copyCfAuth() {\n\t\tawait navigator.clipboard.writeText(cfAuthHeader);\n\t\tcopiedCfAuth = true;\n\t\tsetTimeout(() => (copiedCfAuth = false), 2000);\n\t}\n\n\tasync function copyCfWrangler() {\n\t\tawait navigator.clipboard.writeText(cfWranglerConfig);\n\t\tcopiedCfWrangler = true;\n\t\tsetTimeout(() => (copiedCfWrangler = false), 2000);\n\t}\n\n\tasync function copyCfDeploy() {\n\t\tawait navigator.clipboard.writeText('npx wrangler deploy');\n\t\tcopiedCfDeploy = true;\n\t\tsetTimeout(() => (copiedCfDeploy = false), 2000);\n\t}\n\n\tasync function copySdkInstall(lang: string, cmd: string) {\n\t\tawait navigator.clipboard.writeText(cmd);\n\t\tcopiedSdkLang = lang;\n\t\tsetTimeout(() => (copiedSdkLang = null), 2000);\n\t}\n\n\tasync function copyOtelEndpoint() {\n\t\tawait navigator.clipboard.writeText(otelBaseEndpoint);\n\t\tcopiedOtelEndpoint = true;\n\t\tsetTimeout(() => (copiedOtelEndpoint = false), 2000);\n\t}\n\n\tasync function copyOtelAuth() {\n\t\tawait navigator.clipboard.writeText(otelAuthHeader);\n\t\tcopiedOtelAuth = true;\n\t\tsetTimeout(() => (copiedOtelAuth = false), 2000);\n\t}\n\n\tasync function copyOtelCollector() {\n\t\tawait navigator.clipboard.writeText(otelCollectorConfig);\n\t\tcopiedOtelCollector = true;\n\t\tsetTimeout(() => (copiedOtelCollector = false), 2000);\n\t}\n\n\tasync function copyInstall() {\n\t\tawait navigator.clipboard.writeText(installCommand);\n\t\tcopiedInstall = true;\n\t\tsetTimeout(() => (copiedInstall = false), 2000);\n\t}\n\n\tasync function copyCode() {\n\t\tawait navigator.clipboard.writeText(sdkCode);\n\t\tcopiedCode = true;\n\t\tsetTimeout(() => (copiedCode = false), 2000);\n\t}\n\n\tasync function copyTesting() {\n\t\tawait navigator.clipboard.writeText(testingRouteCode);\n\t\tcopiedTesting = true;\n\t\tsetTimeout(() => (copiedTesting = false), 2000);\n\t}\n\n\tasync function copyTesting2() {\n\t\tawait navigator.clipboard.writeText(testingRouteCode2);\n\t\tcopiedTesting2 = true;\n\t\tsetTimeout(() => (copiedTesting2 = false), 2000);\n\t}\n\n\tasync function checkAgain() {\n\t\tchecking = true;\n\t\tconst hadDataBefore = data?.hasData ?? false;\n\t\tawait loadDashboard(false);\n\t\tchecking = false;\n\n\t\t// Show success toast if data was received\n\t\tif (!hadDataBefore && data?.hasData) {\n\t\t\ttoast.success('Integration successful! Data received from your application.', {\n\t\t\t\tposition: 'top-center'\n\t\t\t});\n\t\t} else if (!data?.hasData) {\n\t\t\ttoast.warning('No data received yet', {\n\t\t\t\tposition: 'top-center'\n\t\t\t});\n\t\t}\n\t}\n\n\tasync function loadDashboard(showFullPageLoading = true) {\n\t\tif (showFullPageLoading) {\n\t\t\tloading = true;\n\t\t}\n\t\terror = '';\n\t\terrorStatus = 0;\n\n\t\ttry {\n\t\t\tconst projectId = projectsState.currentProjectId ?? undefined;\n\t\t\tstarredFromUTC = new Date(Date.now() - STARRED_WINDOW_MS).toISOString();\n\t\t\tstarredToUTC = new Date().toISOString();\n\t\t\tconst [overview, starred] = await Promise.all([\n\t\t\t\tapi.get('/dashboard/overview', { projectId }),\n\t\t\t\tapi.get('/widget-groups/starred', { projectId }).catch(() => [])\n\t\t\t]);\n\t\t\tdata = overview;\n\t\t\tstarredWidgets = (starred as StarredWidget[]) ?? [];\n\t\t} catch (e: any) {\n\t\t\terrorStatus = e.status || 0;\n\t\t\terror = e.message || 'Failed to load dashboard data';\n\t\t\tconsole.error(e);\n\t\t} finally {\n\t\t\tif (showFullPageLoading) {\n\t\t\t\tloading = false;\n\t\t\t}\n\t\t}\n\t}\n\n\tlet lastProjectId = $state(projectsState.currentProjectId);\n\n\tonMount(() => {\n\t\tloadDashboard();\n\t});\n\n\t$effect(() => {\n\t\tconst currentId = projectsState.currentProjectId;\n\t\tif (currentId !== lastProjectId) {\n\t\t\tlastProjectId = currentId;\n\t\t\tloadDashboard();\n\t\t}\n\t});\n\n\tfunction resetEndpointsSortToImpact() {\n\t\tsetSortState('endpoints', { field: 'impact', direction: 'desc' });\n\t}\n</script>\n\n<div class=\"space-y-4\">\n\t{#if error && !loading}\n\t\t<ErrorDisplay\n\t\t\tstatus={errorStatus === 404\n\t\t\t\t? 404\n\t\t\t\t: errorStatus === 400\n\t\t\t\t\t? 400\n\t\t\t\t\t: errorStatus === 422\n\t\t\t\t\t\t? 422\n\t\t\t\t\t\t: 400}\n\t\t\ttitle=\"Failed to Load Dashboard\"\n\t\t\tdescription={error}\n\t\t\tonRetry={() => loadDashboard()}\n\t\t/>\n\t{/if}\n\n\t{#if loading}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if !error && data && !data.hasData}\n\t\t<!-- Integration Not Connected -->\n\t\t<div class=\"space-y-6\">\n\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t<div class=\"flex flex-col items-center justify-center px-6 py-8 text-center\">\n\t\t\t\t\t<div class=\"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted\">\n\t\t\t\t\t\t<Unplug class=\"h-6 w-6 text-muted-foreground\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<h3 class=\"mb-2 text-lg font-semibold\">Connect Your Application</h3>\n\t\t\t\t\t<p class=\"mb-4 max-w-md text-sm text-muted-foreground\">\n\t\t\t\t\t\tNo data has been received yet. Follow the steps below to integrate Traceway into your\n\t\t\t\t\t\tapplication.\n\t\t\t\t\t</p>\n\t\t\t\t\t<Button variant=\"outline\" onclick={checkAgain} disabled={checking}>\n\t\t\t\t\t\t{#if checking}\n\t\t\t\t\t\t\t<RefreshCw class=\"mr-2 h-4 w-4 animate-spin\" />\n\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t<RefreshCw class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t\tCheck Again\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t{#if projectWithToken}\n\t\t\t\t{#if isCloudflare}\n\t\t\t\t\t<!-- Cloudflare Step 1: Create a Destination -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t1\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Create a Destination</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tIn the Cloudflare dashboard, create an OTLP destination with the endpoint and\n\t\t\t\t\t\t\t\tauthorization header below.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"space-y-4 p-4\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">OTLP Traces Endpoint</p>\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t\t>{cfOtelEndpoint}</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfEndpoint}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedCfEndpoint}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Authorization Header</p>\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t\t>{cfAuthHeader}</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfAuth}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedCfAuth}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Cloudflare Step 2: Enable in wrangler.jsonc -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t2\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Enable in wrangler.jsonc</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tAdd the observability configuration to your wrangler.jsonc file.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"p-4\">\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfWrangler}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedCfWrangler}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={javascript} code={cfWranglerConfig} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Cloudflare Step 3: Deploy -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t3\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Deploy</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tDeploy your worker to start sending traces.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"p-4\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>npx wrangler deploy</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfDeploy}>\n\t\t\t\t\t\t\t\t\t{#if copiedCfDeploy}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if isOtel}\n\t\t\t\t\t<!-- OTel Step 1: Install an OTel SDK -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t1\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Install an OpenTelemetry SDK</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tChoose the OTel SDK for your language. Any language that supports OTLP/HTTP export\n\t\t\t\t\t\t\t\twill work.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"space-y-2 p-4\">\n\t\t\t\t\t\t\t{#each otelSdks as sdk}\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t<span class=\"w-16 shrink-0 text-sm font-medium\">{sdk.lang}</span>\n\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-xs break-all\"\n\t\t\t\t\t\t\t\t\t\t>{sdk.cmd}</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t\tonclick={() => copySdkInstall(sdk.lang, sdk.cmd)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{#if copiedSdkLang === sdk.lang}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t<p class=\"ml-16 pt-1 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\thref=\"https://opentelemetry.io/docs/languages/\"\n\t\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t\t\tclass=\"underline hover:text-foreground\">View all supported languages</a\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- OTel Step 2: Configure the Exporter -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t2\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Configure the OTLP Exporter</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tPoint your OTLP/HTTP exporter at Traceway using the endpoint and token below.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"space-y-4 p-4\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">OTLP Endpoint</p>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\t\tYour SDK or Collector will append <code\n\t\t\t\t\t\t\t\t\t\tclass=\"rounded bg-muted px-1 py-0.5 font-mono text-xs\">/v1/traces</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tand\n\t\t\t\t\t\t\t\t\t<code class=\"rounded bg-muted px-1 py-0.5 font-mono text-xs\">/v1/metrics</code> automatically.\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t\t>{otelBaseEndpoint}</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelEndpoint}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedOtelEndpoint}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Authorization Header</p>\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t\t>{otelAuthHeader}</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelAuth}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedOtelAuth}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Example: OTel Collector (optional)</p>\n\t\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelCollector}>\n\t\t\t\t\t\t\t\t\t\t\t{#if copiedOtelCollector}\n\t\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Highlight language={yaml} code={otelCollectorConfig} />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- OTel Step 3: Run Your Application -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t3\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Run Your Application</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tStart your application with OpenTelemetry instrumentation enabled. The SDK will\n\t\t\t\t\t\t\t\tautomatically export traces and metrics to Traceway via OTLP/HTTP.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t{:else}\n\t\t\t\t\t<!-- Step 1: Install -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t1\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Install the SDK</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"p-4\">\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyInstall}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedInstall}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={bash} code={installCommand} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Step 2: Setup Integration -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t2\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">\n\t\t\t\t\t\t\t\t\t{getFrameworkLabel(projectWithToken.framework)} Integration\n\t\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tAdd the Traceway middleware to your application.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"p-4\">\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCode}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedCode}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={highlightLanguage} code={sdkCode} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Step 3: Add Testing Route -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t3\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Add a Test Route</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tAdd this route to verify your integration, then visit <code\n\t\t\t\t\t\t\t\t\tclass=\"rounded bg-muted px-1 py-0.5 font-mono text-xs\">GET /testing</code\n\t\t\t\t\t\t\t\t> in your browser.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"p-4\">\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyTesting}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedTesting}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={highlightLanguage} code={testingRouteCode} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t{#if testingRouteCode2}\n\t\t\t\t\t\t\t<div class=\"flex justify-center p-2 italic\">or</div>\n\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyTesting2}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedTesting2}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={highlightLanguage} code={testingRouteCode2} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t\t<!-- Bottom Check Again -->\n\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center px-6 py-6 text-center\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-destructive/10\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Unplug class=\"h-6 w-6 text-destructive\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<p class=\"mb-4 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t{#if isOtel || isCloudflare}\n\t\t\t\t\t\t\t\tOnce you've completed the steps above and sent some traffic through your\n\t\t\t\t\t\t\t\tapplication, click below to verify.\n\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\tOnce you've completed the steps above and triggered the <code\n\t\t\t\t\t\t\t\t\tclass=\"rounded bg-muted px-1 py-0.5 font-mono text-xs\">/testing</code\n\t\t\t\t\t\t\t\t> endpoint, click below to verify.\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<Button variant=\"outline\" onclick={checkAgain} disabled={checking}>\n\t\t\t\t\t\t\t{#if checking}\n\t\t\t\t\t\t\t\t<RefreshCw class=\"mr-2 h-4 w-4 animate-spin\" />\n\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t<RefreshCw class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\tCheck Again\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t</div>\n\t{:else if !error}\n\t\t<div class=\"space-y-6\">\n\t\t\t{#if starredWidgets.length > 0}\n\t\t\t\t<div>\n\t\t\t\t\t<div class=\"items-bottom mb-4 flex gap-1\">\n\t\t\t\t\t\t<div class=\"mr-2 flex h-8 w-8 items-center justify-center rounded-md bg-yellow-500/10\">\n\t\t\t\t\t\t\t<Star class=\"h-5 w-5 fill-yellow-500 text-yellow-500\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Starred</h2>\n\t\t\t\t\t\t<Tooltip.Root>\n\t\t\t\t\t\t\t<Tooltip.Trigger class=\"pt-1\">\n\t\t\t\t\t\t\t\t<CircleQuestionMark class=\"h-4 w-4 text-muted-foreground/60\" />\n\t\t\t\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t\t\t\t<Tooltip.Content>\n\t\t\t\t\t\t\t\t<p>Widgets you've starred from the Metrics page (last 24h)</p>\n\t\t\t\t\t\t\t</Tooltip.Content>\n\t\t\t\t\t\t</Tooltip.Root>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"grid grid-cols-1 gap-4 md:grid-cols-3\">\n\t\t\t\t\t\t{#each starredWidgets as widget (widget.id)}\n\t\t\t\t\t\t\t<Card.Root class=\"h-full gap-0\">\n\t\t\t\t\t\t\t\t<Card.Header class=\"pr-2 pb-1\">\n\t\t\t\t\t\t\t\t\t<Card.Title class=\"text-sm font-medium\"\n\t\t\t\t\t\t\t\t\t\t>{widget.title}{#if widget.config?.unit}<span\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"text-xs font-normal text-muted-foreground\"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t({widget.config.unit})</span\n\t\t\t\t\t\t\t\t\t\t\t>{/if}</Card.Title\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t</Card.Header>\n\t\t\t\t\t\t\t\t<Card.Content class=\"p-1\">\n\t\t\t\t\t\t\t\t\t<WidgetRenderer\n\t\t\t\t\t\t\t\t\t\t{widget}\n\t\t\t\t\t\t\t\t\t\tfromDateUTC={starredFromUTC}\n\t\t\t\t\t\t\t\t\t\ttoDateUTC={starredToUTC}\n\t\t\t\t\t\t\t\t\t\ttimeDomain={null}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</Card.Content>\n\t\t\t\t\t\t\t</Card.Root>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t\t{#if !isFrontend}\n\t\t\t\t<!-- Endpoints -->\n\t\t\t\t<div>\n\t\t\t\t\t<div class=\"items-bottom mb-4 flex gap-1\">\n\t\t\t\t\t\t<div class=\"mr-2 flex h-8 w-8 items-center justify-center rounded-md bg-chart-1/10\">\n\t\t\t\t\t\t\t<Gauge class=\"h-5 w-5 text-chart-1\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Endpoints</h2>\n\t\t\t\t\t\t<Tooltip.Root>\n\t\t\t\t\t\t\t<Tooltip.Trigger class=\"pt-1\">\n\t\t\t\t\t\t\t\t<CircleQuestionMark class=\"h-4 w-4 text-muted-foreground/60\" />\n\t\t\t\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t\t\t\t<Tooltip.Content>\n\t\t\t\t\t\t\t\t<p>Endpoints needing attention based on response time and error rates</p>\n\t\t\t\t\t\t\t</Tooltip.Content>\n\t\t\t\t\t\t</Tooltip.Root>\n\t\t\t\t\t</div>\n\t\t\t\t\t{#if impactfulEndpoints.length > 0}\n\t\t\t\t\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t\t\t<Table.Row class=\"hover:bg-transparent\">\n\t\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Endpoint\"\n\t\t\t\t\t\t\t\t\t\t\ttooltip=\"The API route or page being accessed\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Calls\"\n\t\t\t\t\t\t\t\t\t\t\ttooltip=\"Total number of requests\"\n\t\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\t\tclass=\"w-[70px]\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Typical\"\n\t\t\t\t\t\t\t\t\t\t\ttooltip=\"Median response time (P50)\"\n\t\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\t\tclass=\"w-[80px]\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Slow\"\n\t\t\t\t\t\t\t\t\t\t\ttooltip=\"95th percentile - slowest 5%\"\n\t\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\t\tclass=\"w-[70px]\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Impact\"\n\t\t\t\t\t\t\t\t\t\t\ttooltip=\"Priority based on response time and error rates\"\n\t\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\t\tclass=\"w-[80px]\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t\t\t{#each impactfulEndpoints as endpoint}\n\t\t\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t\t\t\t`/endpoints/${encodeURIComponent(endpoint.endpoint)}?preset=24h`\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"max-w-[300px] truncate py-3 font-mono text-sm\"\n\t\t\t\t\t\t\t\t\t\t\t\ttitle={endpoint.endpoint}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{endpoint.endpoint}\n\t\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t\t{endpoint.count.toLocaleString()}\n\t\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right font-mono text-sm tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t\t{formatDuration(endpoint.p50Duration)}\n\t\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right font-mono text-sm tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t\t{formatDuration(endpoint.p95Duration)}\n\t\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t<ImpactBadge score={endpoint.impact} reason={endpoint.impactReason} />\n\t\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t\t<ViewAllTableRow\n\t\t\t\t\t\t\t\t\t\tcolspan={5}\n\t\t\t\t\t\t\t\t\t\thref=\"/endpoints\"\n\t\t\t\t\t\t\t\t\t\tlabel=\"View all endpoints\"\n\t\t\t\t\t\t\t\t\t\tonBeforeNavigate={resetEndpointsSortToImpact}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t\t\t</Table.Root>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<!-- Empty state card for endpoints -->\n\t\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t\t<div class=\"flex flex-col items-center justify-center px-6 py-12 text-center\">\n\t\t\t\t\t\t\t\t<div class=\"mb-4 flex h-12 w-12 items-center justify-center rounded-full\">\n\t\t\t\t\t\t\t\t\t<CircleCheck class=\"h-12 w-12 text-green-500 dark:text-green-400\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"mb-2 text-lg font-semibold\">All Endpoints Healthy</h3>\n\t\t\t\t\t\t\t\t<p class=\"mb-4 max-w-sm text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\tNo endpoints have been experiencing performance issues in the last 24h. Endpoints\n\t\t\t\t\t\t\t\t\twith slow response times or high error rates will appear here when detected.\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\thref=\"/endpoints\"\n\t\t\t\t\t\t\t\t\tclass=\"inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline\"\n\t\t\t\t\t\t\t\t\tonclick={resetEndpointsSortToImpact}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tView all endpoints\n\t\t\t\t\t\t\t\t\t<ArrowRight class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/if}\n\t\t\t\t</div>\n\t\t\t{/if}\n\n\t\t\t<!-- Issues Section -->\n\t\t\t<div>\n\t\t\t\t<div class=\"mb-4 flex items-center gap-1\">\n\t\t\t\t\t<div class=\"mr-2 flex h-8 w-8 items-center justify-center rounded-md bg-destructive/10\">\n\t\t\t\t\t\t<Bug class=\"h-5 w-5 text-destructive\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Issues</h2>\n\t\t\t\t\t<Tooltip.Root>\n\t\t\t\t\t\t<Tooltip.Trigger class=\"pt-1\">\n\t\t\t\t\t\t\t<CircleQuestionMark class=\"h-4 w-4 text-muted-foreground/60\" />\n\t\t\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t\t\t<Tooltip.Content>\n\t\t\t\t\t\t\t<p>Latest exceptions and errors to address from the last 24 hours</p>\n\t\t\t\t\t\t</Tooltip.Content>\n\t\t\t\t\t</Tooltip.Root>\n\t\t\t\t</div>\n\t\t\t\t{#if data?.recentIssues && data.recentIssues.length > 0}\n\t\t\t\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t\t<Table.Row class=\"hover:bg-transparent\">\n\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\tlabel=\"Issue\"\n\t\t\t\t\t\t\t\t\t\ttooltip=\"The error message or exception that occurred\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\tlabel=\"Count\"\n\t\t\t\t\t\t\t\t\t\ttooltip=\"Number of times this issue occurred\"\n\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\tclass=\"w-[70px]\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\tlabel=\"When\"\n\t\t\t\t\t\t\t\t\t\ttooltip=\"When this issue last occurred\"\n\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\tclass=\"w-[70px]\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t\t{#each data.recentIssues as issue}\n\t\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\t\tonclick={createRowClickHandler(`/issues/${issue.exceptionHash}`)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 font-mono text-sm\" title={issue.stackTrace}>\n\t\t\t\t\t\t\t\t\t\t\t{truncateStackTrace(issue.stackTrace)}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right font-medium tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t{issue.count}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right text-sm text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t{formatRelativeTime(issue.lastSeen, timezone)}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t<ViewAllTableRow colspan={3} href=\"/issues\" label=\"View all issues\" />\n\t\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t\t</Table.Root>\n\t\t\t\t\t</div>\n\t\t\t\t{:else}\n\t\t\t\t\t<!-- Empty state card for issues -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"flex flex-col items-center justify-center px-6 py-12 text-center\">\n\t\t\t\t\t\t\t<div class=\"mb-4 flex h-12 w-12 items-center justify-center rounded-full\">\n\t\t\t\t\t\t\t\t<CircleCheck class=\"h-12 w-12 text-green-500 dark:text-green-400\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<h3 class=\"mb-2 text-lg font-semibold\">No Issues Found</h3>\n\t\t\t\t\t\t\t<p class=\"mb-4 max-w-sm text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tNo Issues have been recorded in the last 24 hours. When issues occur in your\n\t\t\t\t\t\t\t\tapplication, they will appear here for quick triage.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref=\"/issues\"\n\t\t\t\t\t\t\t\tclass=\"inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tView all issues\n\t\t\t\t\t\t\t\t<ArrowRight class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t</div>\n\t{/if}\n</div>\n\n<style>\n\t/* Light theme - override dark theme defaults */\n\t:global(.light-code .hljs) {\n\t\tbackground: #f6f8fa;\n\t\tcolor: #24292e;\n\t}\n\t:global(.light-code .hljs-keyword),\n\t:global(.light-code .hljs-selector-tag) {\n\t\tcolor: #d73a49;\n\t}\n\t:global(.light-code .hljs-string),\n\t:global(.light-code .hljs-attr) {\n\t\tcolor: #032f62;\n\t}\n\t:global(.light-code .hljs-function),\n\t:global(.light-code .hljs-title) {\n\t\tcolor: #6f42c1;\n\t}\n\t:global(.light-code .hljs-comment) {\n\t\tcolor: #6a737d;\n\t}\n\t:global(.light-code .hljs-built_in) {\n\t\tcolor: #005cc5;\n\t}\n\t:global(.light-code .hljs-meta) {\n\t\tcolor: #d73a49;\n\t}\n\t:global(.light-code .hljs-variable) {\n\t\tcolor: #24292e;\n\t}\n\n\t/* Dark theme - ensure dark styles apply */\n\t:global(.dark-code .hljs) {\n\t\tbackground: #0d1117;\n\t\tcolor: #c9d1d9;\n\t}\n\t:global(.dark-code .hljs-keyword),\n\t:global(.dark-code .hljs-selector-tag) {\n\t\tcolor: #ff7b72;\n\t}\n\t:global(.dark-code .hljs-string),\n\t:global(.dark-code .hljs-attr) {\n\t\tcolor: #a5d6ff;\n\t}\n\t:global(.dark-code .hljs-function),\n\t:global(.dark-code .hljs-title) {\n\t\tcolor: #d2a8ff;\n\t}\n\t:global(.dark-code .hljs-comment) {\n\t\tcolor: #8b949e;\n\t}\n\t:global(.dark-code .hljs-built_in) {\n\t\tcolor: #79c0ff;\n\t}\n\t:global(.dark-code .hljs-meta) {\n\t\tcolor: #ff7b72;\n\t}\n</style>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","load","authState","redirect","timezone","getTimezone","$.user_effect","projectsState","isFrontendFramework","goto","data","$.state","starredWidgets","$.proxy","loading","error","errorStatus","STARRED_WINDOW_MS","starredFromUTC","starredToUTC","impactfulEndpoints","$.derived","$.get","e","projectWithToken","copiedInstall","copiedCode","copiedTesting","copiedTesting2","checking","sdkCode","getFrameworkCode","installCommand","getInstallCommand","isFrontend","codeLanguage","getCodeLanguage","highlightLanguage","javascript","php","bash","go","testingRouteCode","getTestingRouteCode","testingRouteCode2","getTestingRouteCode2","isCloudflare","isCloudflareFramework","cfOtelEndpoint","cfAuthHeader","cfWranglerConfig","copiedCfEndpoint","copiedCfAuth","copiedCfWrangler","copiedCfDeploy","isOtel","isOtelFramework","otelBaseEndpoint","otelAuthHeader","otelCollectorConfig","otelSdks","copiedSdkLang","copiedOtelEndpoint","copiedOtelAuth","copiedOtelCollector","copyCfEndpoint","$.set","copyCfAuth","copyCfWrangler","copyCfDeploy","copySdkInstall","lang","cmd","copyOtelEndpoint","copyOtelAuth","copyOtelCollector","copyInstall","copyCode","copyTesting","copyTesting2","checkAgain","hadDataBefore","loadDashboard","toast","showFullPageLoading","projectId","overview","starred","api","lastProjectId","onMount","currentId","resetEndpointsSortToImpact","setSortState","div","root","$0","ErrorDisplay","$$render","consequent","div_1","root_2","LoadingCircle","node_2","div_2","root_4","div_3","div_4","div_5","Unplug","node_4","Button","node_5","RefreshCw","consequent_2","alternate","div_6","$.first_child","fragment_6","div_7","div_8","div_9","code","node_9","Check","Copy","consequent_3","alternate_1","div_10","div_11","code_1","node_11","consequent_4","alternate_2","div_12","div_13","div_14","div_15","node_13","node_15","node_16","consequent_5","alternate_3","div_16","$.sibling","node_17","$.child","Highlight","$.reset","div_17","div_18","div_19","node_18","consequent_6","alternate_4","$.set_class","themeState","div_20","fragment_20","div_21","$.each","node_21","sdk","div_22","root_24","span","code_2","node_22","consequent_8","alternate_5","$.set_text","text_2","text_3","div_23","div_24","div_25","div_26","code_3","node_24","consequent_9","alternate_6","div_27","div_28","code_4","node_26","consequent_10","alternate_7","div_29","div_30","div_31","node_28","node_30","node_31","consequent_11","alternate_8","div_32","node_32","yaml","div_33","fragment_33","div_34","div_35","div_36","node_33","node_35","node_36","consequent_13","alternate_9","div_37","node_37","div_38","div_39","div_40","h3","div_41","div_42","div_43","node_38","node_40","node_41","consequent_14","alternate_10","div_44","node_42","div_45","div_46","div_47","div_48","node_43","node_45","node_46","consequent_15","alternate_11","div_49","node_47","div_50","fragment_43","div_51","node_49","node_51","node_52","consequent_16","alternate_12","div_52","node_53","$.template_effect","consequent_17","getFrameworkLabel","consequent_12","alternate_13","consequent_7","alternate_14","div_53","node_8","div_54","div_55","node_54","p","consequent_18","alternate_15","node_56","consequent_19","alternate_16","consequent_20","div_56","root_57","div_57","root_58","div_58","div_59","Star","node_60","Tooltip_Root","Tooltip_Trigger","CircleQuestionMark","Tooltip_Content","p_1","root_61","div_60","widget","Card_Root","Card_Header","Card_Title","span_1","root_66","text_9","$.append","consequent_22","text_8","Card_Content","WidgetRenderer","consequent_23","div_61","root_68","div_62","div_63","Gauge","node_70","Tooltip_Root_1","Tooltip_Trigger_1","Tooltip_Content_1","p_2","root_71","div_64","root_72","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_78","node_79","node_80","node_81","node_82","Table_Body","node_84","endpoint","createRowClickHandler","Table_Row_1","Table_Cell","text_10","Table_Cell_1","Table_Cell_2","formatDuration","Table_Cell_3","Table_Cell_4","ImpactBadge","ViewAllTableRow","node_91","div_65","root_84","div_66","div_67","CircleCheck","node_92","a","node_93","ArrowRight","consequent_24","alternate_17","consequent_25","div_68","node_69","div_69","div_70","Bug","node_94","Tooltip_Root_2","Tooltip_Trigger_2","Tooltip_Content_2","p_3","root_87","div_71","root_88","Table_Root_1","Table_Header_1","Table_Row_2","node_102","node_103","node_104","Table_Body_1","$.index","issue","Table_Row_3","Table_Cell_5","truncateStackTrace","Table_Cell_6","text_15","Table_Cell_7","formatRelativeTime","div_72","root_98","div_73","div_74","node_112","a_1","node_113","consequent_26","altern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,CAAI,EAAC,QAAOwF,GAAA0R,EAAA,EAAA1R,GAAA2R,GAAA,EAAA,2BAJpC/W,EAAO,EAAAoF,EAAA4R,EAAA,EAAA5R,EAAA6R,GAAA,EAAA,MAhBZjS,EAAG,OAAHA,EAAG,MAFJ","x_google_ignoreList":[0,1,2,3]}
\ No newline at end of file
+{"version":3,"file":"2.BCwBzGJs.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/bug.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/circle-check.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/gauge.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/unplug.svelte","../../../../../../src/routes/+page.ts","../../../../../../src/routes/+page.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M12 20v-9\" }], [\"path\", { \"d\": \"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z\" }], [\"path\", { \"d\": \"M14.12 3.88 16 2\" }], [\"path\", { \"d\": \"M21 21a4 4 0 0 0-3.81-4\" }], [\"path\", { \"d\": \"M21 5a4 4 0 0 1-3.55 3.97\" }], [\"path\", { \"d\": \"M22 13h-4\" }], [\"path\", { \"d\": \"M3 21a4 4 0 0 1 3.81-4\" }], [\"path\", { \"d\": \"M3 5a4 4 0 0 0 3.55 3.97\" }], [\"path\", { \"d\": \"M6 13H2\" }], [\"path\", { \"d\": \"m8 2 1.88 1.88\" }], [\"path\", { \"d\": \"M9 7.13V6a3 3 0 1 1 6 0v1.13\" }]];\n/**\n * @component @name Bug\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMjB2LTkiIC8+CiAgPHBhdGggZD0iTTE0IDdhNCA0IDAgMCAxIDQgNHYzYTYgNiAwIDAgMS0xMiAwdi0zYTQgNCAwIDAgMSA0LTR6IiAvPgogIDxwYXRoIGQ9Ik0xNC4xMiAzLjg4IDE2IDIiIC8+CiAgPHBhdGggZD0iTTIxIDIxYTQgNCAwIDAgMC0zLjgxLTQiIC8+CiAgPHBhdGggZD0iTTIxIDVhNCA0IDAgMCAxLTMuNTUgMy45NyIgLz4KICA8cGF0aCBkPSJNMjIgMTNoLTQiIC8+CiAgPHBhdGggZD0iTTMgMjFhNCA0IDAgMCAxIDMuODEtNCIgLz4KICA8cGF0aCBkPSJNMyA1YTQgNCAwIDAgMCAzLjU1IDMuOTciIC8+CiAgPHBhdGggZD0iTTYgMTNIMiIgLz4KICA8cGF0aCBkPSJtOCAyIDEuODggMS44OCIgLz4KICA8cGF0aCBkPSJNOSA3LjEzVjZhMyAzIDAgMSAxIDYgMHYxLjEzIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/bug\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"bug\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"10\" }], [\"path\", { \"d\": \"m9 12 2 2 4-4\" }]];\n/**\n * @component @name CircleCheck\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KICA8cGF0aCBkPSJtOSAxMiAyIDIgNC00IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/circle-check\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"circle-check\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"m12 14 4-4\" }], [\"path\", { \"d\": \"M3.34 19a10 10 0 1 1 17.32 0\" }]];\n/**\n * @component @name Gauge\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTIgMTQgNC00IiAvPgogIDxwYXRoIGQ9Ik0zLjM0IDE5YTEwIDEwIDAgMSAxIDE3LjMyIDAiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/gauge\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"gauge\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"m19 5 3-3\" }], [\"path\", { \"d\": \"m2 22 3-3\" }], [\"path\", { \"d\": \"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z\" }], [\"path\", { \"d\": \"M7.5 13.5 10 11\" }], [\"path\", { \"d\": \"M10.5 16.5 13 14\" }], [\"path\", { \"d\": \"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z\" }]];\n/**\n * @component @name Unplug\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMTkgNSAzLTMiIC8+CiAgPHBhdGggZD0ibTIgMjIgMy0zIiAvPgogIDxwYXRoIGQ9Ik02LjMgMjAuM2EyLjQgMi40IDAgMCAwIDMuNCAwTDEyIDE4bC02LTYtMi4zIDIuM2EyLjQgMi40IDAgMCAwIDAgMy40WiIgLz4KICA8cGF0aCBkPSJNNy41IDEzLjUgMTAgMTEiIC8+CiAgPHBhdGggZD0iTTEwLjUgMTYuNSAxMyAxNCIgLz4KICA8cGF0aCBkPSJtMTIgNiA2IDYgMi4zLTIuM2EyLjQgMi40IDAgMCAwIDAtMy40bC0yLjYtMi42YTIuNCAyLjQgMCAwIDAtMy40IDBaIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/unplug\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"unplug\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\timport { formatDuration, formatRelativeTime, truncateStackTrace } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport * as Table from '$lib/components/ui/table';\n\timport * as Tooltip from '$lib/components/ui/tooltip';\n\timport {\n\t\tArrowRight,\n\t\tGauge,\n\t\tBug,\n\t\tCircleQuestionMark,\n\t\tCircleCheck,\n\t\tRefreshCw,\n\t\tCopy,\n\t\tCheck,\n\t\tStar,\n\t\tUnplug\n\t} from 'lucide-svelte';\n\timport * as Card from '$lib/components/ui/card';\n\timport WidgetRenderer from '$lib/components/dashboard/widget-renderer.svelte';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { ImpactBadge } from '$lib/components/ui/impact-badge';\n\timport { ViewAllTableRow } from '$lib/components/ui/view-all-table-row';\n\timport { api } from '$lib/api';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport {\n\t\tprojectsState,\n\t\ttype ProjectWithToken,\n\t\tisFrontendFramework,\n\t\tisJsFramework,\n\t\tisCloudflareFramework,\n\t\tisOtelFramework\n\t} from '$lib/state/projects.svelte';\n\timport { setSortState } from '$lib/utils/sort-storage';\n\timport { Button } from '$lib/components/ui/button';\n\timport Highlight from 'svelte-highlight';\n\timport go from 'svelte-highlight/languages/go';\n\timport javascript from 'svelte-highlight/languages/javascript';\n\timport bash from 'svelte-highlight/languages/bash';\n\timport php from 'svelte-highlight/languages/php';\n\timport { themeState } from '$lib/state/theme.svelte';\n\timport yaml from 'svelte-highlight/languages/yaml';\n\timport 'svelte-highlight/styles/github-dark.css';\n\timport {\n\t\tgetFrameworkCode,\n\t\tgetInstallCommand,\n\t\tgetTestingRouteCode,\n\t\tgetFrameworkLabel,\n\t\tgetTestingRouteCode2,\n\t\tgetCodeLanguage\n\t} from '$lib/utils/framework-code';\n\timport { toast } from 'svelte-sonner';\n\timport { goto } from '$app/navigation';\n\n\tconst timezone = $derived(getTimezone());\n\n\t$effect(() => {\n\t\tif (\n\t\t\tprojectsState.currentProject &&\n\t\t\tisFrontendFramework(projectsState.currentProject.framework)\n\t\t) {\n\t\t\t// index redirects to issues on a frontend project\n\t\t\tgoto('issues');\n\t\t}\n\t});\n\n\ttype ExceptionGroup = {\n\t\texceptionHash: string;\n\t\tstackTrace: string;\n\t\tlastSeen: string;\n\t\tfirstSeen: string;\n\t\tcount: number;\n\t};\n\n\ttype EndpointStats = {\n\t\tendpoint: string;\n\t\tcount: number;\n\t\tp50Duration: number;\n\t\tp95Duration: number;\n\t\tavgDuration: number;\n\t\tlastSeen: string;\n\t\timpact: number;\n\t\timpactReason: string;\n\t};\n\n\ttype DashboardOverview = {\n\t\trecentIssues: ExceptionGroup[];\n\t\tworstEndpoints: EndpointStats[];\n\t\thasData: boolean;\n\t};\n\n\ttype StarredWidget = {\n\t\tid: number;\n\t\twidgetGroupId: number;\n\t\ttitle: string;\n\t\twidgetType: string;\n\t\tconfig: any;\n\t\tisStarred: boolean;\n\t};\n\n\tlet data = $state<DashboardOverview | null>(null);\n\tlet starredWidgets = $state<StarredWidget[]>([]);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet errorStatus = $state<number>(0);\n\n\tconst STARRED_WINDOW_MS = 24 * 60 * 60 * 1000;\n\tlet starredFromUTC = $state(new Date(Date.now() - STARRED_WINDOW_MS).toISOString());\n\tlet starredToUTC = $state(new Date().toISOString());\n\n\t// Filter endpoints to only show those with impact > good (score >= 0.25)\n\tconst impactfulEndpoints = $derived(data?.worstEndpoints?.filter((e) => e.impact >= 0.25) ?? []);\n\n\tlet projectWithToken = $derived(projectsState.currentProject);\n\tlet copiedInstall = $state(false);\n\tlet copiedCode = $state(false);\n\tlet copiedTesting = $state(false);\n\tlet copiedTesting2 = $state(false);\n\tlet checking = $state(false);\n\n\tconst sdkCode = $derived(\n\t\tprojectWithToken\n\t\t\t? getFrameworkCode(\n\t\t\t\t\tprojectWithToken.framework,\n\t\t\t\t\tprojectWithToken.token,\n\t\t\t\t\tprojectWithToken.backendUrl\n\t\t\t\t)\n\t\t\t: ''\n\t);\n\n\tconst installCommand = $derived(\n\t\tprojectWithToken ? getInstallCommand(projectWithToken.framework) : 'go get go.tracewayapp.com'\n\t);\n\n\tconst isFrontend = $derived(\n\t\tprojectWithToken ? isFrontendFramework(projectWithToken.framework) : false\n\t);\n\n\tconst codeLanguage = $derived(\n\t\tprojectWithToken ? getCodeLanguage(projectWithToken.framework) : ('go' as const)\n\t);\n\n\tconst highlightLanguage = $derived(codeLanguage === 'javascript' ? javascript : codeLanguage === 'php' ? php : codeLanguage === 'bash' ? bash : go);\n\n\tconst testingRouteCode = $derived(getTestingRouteCode(projectWithToken?.framework));\n\tconst testingRouteCode2 = $derived(getTestingRouteCode2(projectWithToken?.framework));\n\n\tconst isCloudflare = $derived(\n\t\tprojectWithToken ? isCloudflareFramework(projectWithToken.framework) : false\n\t);\n\tconst cfOtelEndpoint = $derived(\n\t\tprojectWithToken ? `${projectWithToken.backendUrl}/api/otel/v1/traces` : ''\n\t);\n\tconst cfAuthHeader = $derived(projectWithToken ? `Bearer ${projectWithToken.token}` : '');\n\tconst cfWranglerConfig = $derived(`{\n \"observability\": {\n \"traces\": {\n \"enabled\": true,\n \"head_sample_rate\": 1,\n \"destinations\": [\n {\n \"name\": \"traceway\",\n \"type\": \"otlp\"\n }\n ]\n }\n }\n}`);\n\n\tlet copiedCfEndpoint = $state(false);\n\tlet copiedCfAuth = $state(false);\n\tlet copiedCfWrangler = $state(false);\n\tlet copiedCfDeploy = $state(false);\n\n\tconst isOtel = $derived(projectWithToken ? isOtelFramework(projectWithToken.framework) : false);\n\tconst otelBaseEndpoint = $derived(\n\t\tprojectWithToken ? `${projectWithToken.backendUrl}/api/otel` : ''\n\t);\n\tconst otelAuthHeader = $derived(projectWithToken ? `Bearer ${projectWithToken.token}` : '');\n\tconst otelCollectorConfig = $derived(\n\t\tprojectWithToken\n\t\t\t? `exporters:\n otlphttp:\n endpoint: \"${projectWithToken.backendUrl}/api/otel\"\n headers:\n Authorization: \"Bearer ${projectWithToken.token}\"\n\nservice:\n pipelines:\n traces:\n exporters: [otlphttp]\n metrics:\n exporters: [otlphttp]`\n\t\t\t: ''\n\t);\n\n\tconst otelSdks = [\n\t\t{\n\t\t\tlang: 'Node.js',\n\t\t\tcmd: 'npm install @opentelemetry/sdk-node @opentelemetry/exporter-trace-otlp-http @opentelemetry/exporter-metrics-otlp-http'\n\t\t},\n\t\t{ lang: 'Python', cmd: 'pip install opentelemetry-sdk opentelemetry-exporter-otlp-proto-http' },\n\t\t{ lang: 'Go', cmd: 'go get go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp' },\n\t\t{ lang: 'Java', cmd: \"implementation 'io.opentelemetry:opentelemetry-exporter-otlp'\" },\n\t\t{ lang: '.NET', cmd: 'dotnet add package OpenTelemetry.Exporter.OpenTelemetryProtocol' }\n\t];\n\n\tlet copiedSdkLang = $state<string | null>(null);\n\tlet copiedOtelEndpoint = $state(false);\n\tlet copiedOtelAuth = $state(false);\n\tlet copiedOtelCollector = $state(false);\n\n\tasync function copyCfEndpoint() {\n\t\tawait navigator.clipboard.writeText(cfOtelEndpoint);\n\t\tcopiedCfEndpoint = true;\n\t\tsetTimeout(() => (copiedCfEndpoint = false), 2000);\n\t}\n\n\tasync function copyCfAuth() {\n\t\tawait navigator.clipboard.writeText(cfAuthHeader);\n\t\tcopiedCfAuth = true;\n\t\tsetTimeout(() => (copiedCfAuth = false), 2000);\n\t}\n\n\tasync function copyCfWrangler() {\n\t\tawait navigator.clipboard.writeText(cfWranglerConfig);\n\t\tcopiedCfWrangler = true;\n\t\tsetTimeout(() => (copiedCfWrangler = false), 2000);\n\t}\n\n\tasync function copyCfDeploy() {\n\t\tawait navigator.clipboard.writeText('npx wrangler deploy');\n\t\tcopiedCfDeploy = true;\n\t\tsetTimeout(() => (copiedCfDeploy = false), 2000);\n\t}\n\n\tasync function copySdkInstall(lang: string, cmd: string) {\n\t\tawait navigator.clipboard.writeText(cmd);\n\t\tcopiedSdkLang = lang;\n\t\tsetTimeout(() => (copiedSdkLang = null), 2000);\n\t}\n\n\tasync function copyOtelEndpoint() {\n\t\tawait navigator.clipboard.writeText(otelBaseEndpoint);\n\t\tcopiedOtelEndpoint = true;\n\t\tsetTimeout(() => (copiedOtelEndpoint = false), 2000);\n\t}\n\n\tasync function copyOtelAuth() {\n\t\tawait navigator.clipboard.writeText(otelAuthHeader);\n\t\tcopiedOtelAuth = true;\n\t\tsetTimeout(() => (copiedOtelAuth = false), 2000);\n\t}\n\n\tasync function copyOtelCollector() {\n\t\tawait navigator.clipboard.writeText(otelCollectorConfig);\n\t\tcopiedOtelCollector = true;\n\t\tsetTimeout(() => (copiedOtelCollector = false), 2000);\n\t}\n\n\tasync function copyInstall() {\n\t\tawait navigator.clipboard.writeText(installCommand);\n\t\tcopiedInstall = true;\n\t\tsetTimeout(() => (copiedInstall = false), 2000);\n\t}\n\n\tasync function copyCode() {\n\t\tawait navigator.clipboard.writeText(sdkCode);\n\t\tcopiedCode = true;\n\t\tsetTimeout(() => (copiedCode = false), 2000);\n\t}\n\n\tasync function copyTesting() {\n\t\tawait navigator.clipboard.writeText(testingRouteCode);\n\t\tcopiedTesting = true;\n\t\tsetTimeout(() => (copiedTesting = false), 2000);\n\t}\n\n\tasync function copyTesting2() {\n\t\tawait navigator.clipboard.writeText(testingRouteCode2);\n\t\tcopiedTesting2 = true;\n\t\tsetTimeout(() => (copiedTesting2 = false), 2000);\n\t}\n\n\tasync function checkAgain() {\n\t\tchecking = true;\n\t\tconst hadDataBefore = data?.hasData ?? false;\n\t\tawait loadDashboard(false);\n\t\tchecking = false;\n\n\t\t// Show success toast if data was received\n\t\tif (!hadDataBefore && data?.hasData) {\n\t\t\ttoast.success('Integration successful! Data received from your application.', {\n\t\t\t\tposition: 'top-center'\n\t\t\t});\n\t\t} else if (!data?.hasData) {\n\t\t\ttoast.warning('No data received yet', {\n\t\t\t\tposition: 'top-center'\n\t\t\t});\n\t\t}\n\t}\n\n\tasync function loadDashboard(showFullPageLoading = true) {\n\t\tif (showFullPageLoading) {\n\t\t\tloading = true;\n\t\t}\n\t\terror = '';\n\t\terrorStatus = 0;\n\n\t\ttry {\n\t\t\tconst projectId = projectsState.currentProjectId ?? undefined;\n\t\t\tstarredFromUTC = new Date(Date.now() - STARRED_WINDOW_MS).toISOString();\n\t\t\tstarredToUTC = new Date().toISOString();\n\t\t\tconst [overview, starred] = await Promise.all([\n\t\t\t\tapi.get('/dashboard/overview', { projectId }),\n\t\t\t\tapi.get('/widget-groups/starred', { projectId }).catch(() => [])\n\t\t\t]);\n\t\t\tdata = overview;\n\t\t\tstarredWidgets = (starred as StarredWidget[]) ?? [];\n\t\t} catch (e: any) {\n\t\t\terrorStatus = e.status || 0;\n\t\t\terror = e.message || 'Failed to load dashboard data';\n\t\t\tconsole.error(e);\n\t\t} finally {\n\t\t\tif (showFullPageLoading) {\n\t\t\t\tloading = false;\n\t\t\t}\n\t\t}\n\t}\n\n\tlet lastProjectId = $state(projectsState.currentProjectId);\n\n\tonMount(() => {\n\t\tloadDashboard();\n\t});\n\n\t$effect(() => {\n\t\tconst currentId = projectsState.currentProjectId;\n\t\tif (currentId !== lastProjectId) {\n\t\t\tlastProjectId = currentId;\n\t\t\tloadDashboard();\n\t\t}\n\t});\n\n\tfunction resetEndpointsSortToImpact() {\n\t\tsetSortState('endpoints', { field: 'impact', direction: 'desc' });\n\t}\n</script>\n\n<div class=\"space-y-4\">\n\t{#if error && !loading}\n\t\t<ErrorDisplay\n\t\t\tstatus={errorStatus === 404\n\t\t\t\t? 404\n\t\t\t\t: errorStatus === 400\n\t\t\t\t\t? 400\n\t\t\t\t\t: errorStatus === 422\n\t\t\t\t\t\t? 422\n\t\t\t\t\t\t: 400}\n\t\t\ttitle=\"Failed to Load Dashboard\"\n\t\t\tdescription={error}\n\t\t\tonRetry={() => loadDashboard()}\n\t\t/>\n\t{/if}\n\n\t{#if loading}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if !error && data && !data.hasData}\n\t\t<!-- Integration Not Connected -->\n\t\t<div class=\"space-y-6\">\n\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t<div class=\"flex flex-col items-center justify-center px-6 py-8 text-center\">\n\t\t\t\t\t<div class=\"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted\">\n\t\t\t\t\t\t<Unplug class=\"h-6 w-6 text-muted-foreground\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<h3 class=\"mb-2 text-lg font-semibold\">Connect Your Application</h3>\n\t\t\t\t\t<p class=\"mb-4 max-w-md text-sm text-muted-foreground\">\n\t\t\t\t\t\tNo data has been received yet. Follow the steps below to integrate Traceway into your\n\t\t\t\t\t\tapplication.\n\t\t\t\t\t</p>\n\t\t\t\t\t<Button variant=\"outline\" onclick={checkAgain} disabled={checking}>\n\t\t\t\t\t\t{#if checking}\n\t\t\t\t\t\t\t<RefreshCw class=\"mr-2 h-4 w-4 animate-spin\" />\n\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t<RefreshCw class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t\tCheck Again\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t{#if projectWithToken}\n\t\t\t\t{#if isCloudflare}\n\t\t\t\t\t<!-- Cloudflare Step 1: Create a Destination -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t1\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Create a Destination</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tIn the Cloudflare dashboard, create an OTLP destination with the endpoint and\n\t\t\t\t\t\t\t\tauthorization header below.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"space-y-4 p-4\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">OTLP Traces Endpoint</p>\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t\t>{cfOtelEndpoint}</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfEndpoint}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedCfEndpoint}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Authorization Header</p>\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t\t>{cfAuthHeader}</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfAuth}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedCfAuth}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Cloudflare Step 2: Enable in wrangler.jsonc -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t2\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Enable in wrangler.jsonc</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tAdd the observability configuration to your wrangler.jsonc file.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"p-4\">\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfWrangler}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedCfWrangler}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={javascript} code={cfWranglerConfig} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Cloudflare Step 3: Deploy -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t3\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Deploy</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tDeploy your worker to start sending traces.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"p-4\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>npx wrangler deploy</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfDeploy}>\n\t\t\t\t\t\t\t\t\t{#if copiedCfDeploy}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if isOtel}\n\t\t\t\t\t<!-- OTel Step 1: Install an OTel SDK -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t1\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Install an OpenTelemetry SDK</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tChoose the OTel SDK for your language. Any language that supports OTLP/HTTP export\n\t\t\t\t\t\t\t\twill work.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"space-y-2 p-4\">\n\t\t\t\t\t\t\t{#each otelSdks as sdk}\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t<span class=\"w-16 shrink-0 text-sm font-medium\">{sdk.lang}</span>\n\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-xs break-all\"\n\t\t\t\t\t\t\t\t\t\t>{sdk.cmd}</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\t\tonclick={() => copySdkInstall(sdk.lang, sdk.cmd)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{#if copiedSdkLang === sdk.lang}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t<p class=\"ml-16 pt-1 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\thref=\"https://opentelemetry.io/docs/languages/\"\n\t\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t\t\tclass=\"underline hover:text-foreground\">View all supported languages</a\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- OTel Step 2: Configure the Exporter -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t2\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Configure the OTLP Exporter</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tPoint your OTLP/HTTP exporter at Traceway using the endpoint and token below.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"space-y-4 p-4\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">OTLP Endpoint</p>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\t\tYour SDK or Collector will append <code\n\t\t\t\t\t\t\t\t\t\tclass=\"rounded bg-muted px-1 py-0.5 font-mono text-xs\">/v1/traces</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tand\n\t\t\t\t\t\t\t\t\t<code class=\"rounded bg-muted px-1 py-0.5 font-mono text-xs\">/v1/metrics</code> automatically.\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t\t>{otelBaseEndpoint}</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelEndpoint}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedOtelEndpoint}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Authorization Header</p>\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t\t>{otelAuthHeader}</code\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelAuth}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedOtelAuth}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Example: OTel Collector (optional)</p>\n\t\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelCollector}>\n\t\t\t\t\t\t\t\t\t\t\t{#if copiedOtelCollector}\n\t\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Highlight language={yaml} code={otelCollectorConfig} />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- OTel Step 3: Run Your Application -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t3\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Run Your Application</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tStart your application with OpenTelemetry instrumentation enabled. The SDK will\n\t\t\t\t\t\t\t\tautomatically export traces and metrics to Traceway via OTLP/HTTP.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t{:else}\n\t\t\t\t\t<!-- Step 1: Install -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t1\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Install the SDK</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"p-4\">\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyInstall}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedInstall}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={bash} code={installCommand} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Step 2: Setup Integration -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t2\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">\n\t\t\t\t\t\t\t\t\t{getFrameworkLabel(projectWithToken.framework)} Integration\n\t\t\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tAdd the Traceway middleware to your application.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"p-4\">\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCode}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedCode}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={highlightLanguage} code={sdkCode} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Step 3: Add Testing Route -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"border-b px-4 py-3\">\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"flex h-6 w-6 items-center justify-center rounded-full bg-primary text-sm font-medium text-primary-foreground\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t3\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"font-semibold\">Add a Test Route</h3>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<p class=\"mt-1 ml-9 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tAdd this route to verify your integration, then visit <code\n\t\t\t\t\t\t\t\t\tclass=\"rounded bg-muted px-1 py-0.5 font-mono text-xs\">GET /testing</code\n\t\t\t\t\t\t\t\t> in your browser.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"p-4\">\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyTesting}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedTesting}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={highlightLanguage} code={testingRouteCode} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t{#if testingRouteCode2}\n\t\t\t\t\t\t\t<div class=\"flex justify-center p-2 italic\">or</div>\n\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyTesting2}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedTesting2}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={highlightLanguage} code={testingRouteCode2} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t\t<!-- Bottom Check Again -->\n\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t<div class=\"flex flex-col items-center justify-center px-6 py-6 text-center\">\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-destructive/10\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Unplug class=\"h-6 w-6 text-destructive\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<p class=\"mb-4 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t{#if isOtel || isCloudflare}\n\t\t\t\t\t\t\t\tOnce you've completed the steps above and sent some traffic through your\n\t\t\t\t\t\t\t\tapplication, click below to verify.\n\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\tOnce you've completed the steps above and triggered the <code\n\t\t\t\t\t\t\t\t\tclass=\"rounded bg-muted px-1 py-0.5 font-mono text-xs\">/testing</code\n\t\t\t\t\t\t\t\t> endpoint, click below to verify.\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<Button variant=\"outline\" onclick={checkAgain} disabled={checking}>\n\t\t\t\t\t\t\t{#if checking}\n\t\t\t\t\t\t\t\t<RefreshCw class=\"mr-2 h-4 w-4 animate-spin\" />\n\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t<RefreshCw class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\tCheck Again\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t</div>\n\t{:else if !error}\n\t\t<div class=\"space-y-6\">\n\t\t\t{#if starredWidgets.length > 0}\n\t\t\t\t<div>\n\t\t\t\t\t<div class=\"items-bottom mb-4 flex gap-1\">\n\t\t\t\t\t\t<div class=\"mr-2 flex h-8 w-8 items-center justify-center rounded-md bg-yellow-500/10\">\n\t\t\t\t\t\t\t<Star class=\"h-5 w-5 fill-yellow-500 text-yellow-500\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Starred</h2>\n\t\t\t\t\t\t<Tooltip.Root>\n\t\t\t\t\t\t\t<Tooltip.Trigger class=\"pt-1\">\n\t\t\t\t\t\t\t\t<CircleQuestionMark class=\"h-4 w-4 text-muted-foreground/60\" />\n\t\t\t\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t\t\t\t<Tooltip.Content>\n\t\t\t\t\t\t\t\t<p>Widgets you've starred from the Metrics page (last 24h)</p>\n\t\t\t\t\t\t\t</Tooltip.Content>\n\t\t\t\t\t\t</Tooltip.Root>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"grid grid-cols-1 gap-4 md:grid-cols-3\">\n\t\t\t\t\t\t{#each starredWidgets as widget (widget.id)}\n\t\t\t\t\t\t\t<Card.Root class=\"h-full gap-0\">\n\t\t\t\t\t\t\t\t<Card.Header class=\"pr-2 pb-1\">\n\t\t\t\t\t\t\t\t\t<Card.Title class=\"text-sm font-medium\"\n\t\t\t\t\t\t\t\t\t\t>{widget.title}{#if widget.config?.unit}<span\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"text-xs font-normal text-muted-foreground\"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t({widget.config.unit})</span\n\t\t\t\t\t\t\t\t\t\t\t>{/if}</Card.Title\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t</Card.Header>\n\t\t\t\t\t\t\t\t<Card.Content class=\"p-1\">\n\t\t\t\t\t\t\t\t\t<WidgetRenderer\n\t\t\t\t\t\t\t\t\t\t{widget}\n\t\t\t\t\t\t\t\t\t\tfromDateUTC={starredFromUTC}\n\t\t\t\t\t\t\t\t\t\ttoDateUTC={starredToUTC}\n\t\t\t\t\t\t\t\t\t\ttimeDomain={null}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</Card.Content>\n\t\t\t\t\t\t\t</Card.Root>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t\t{#if !isFrontend}\n\t\t\t\t<!-- Endpoints -->\n\t\t\t\t<div>\n\t\t\t\t\t<div class=\"items-bottom mb-4 flex gap-1\">\n\t\t\t\t\t\t<div class=\"mr-2 flex h-8 w-8 items-center justify-center rounded-md bg-chart-1/10\">\n\t\t\t\t\t\t\t<Gauge class=\"h-5 w-5 text-chart-1\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Endpoints</h2>\n\t\t\t\t\t\t<Tooltip.Root>\n\t\t\t\t\t\t\t<Tooltip.Trigger class=\"pt-1\">\n\t\t\t\t\t\t\t\t<CircleQuestionMark class=\"h-4 w-4 text-muted-foreground/60\" />\n\t\t\t\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t\t\t\t<Tooltip.Content>\n\t\t\t\t\t\t\t\t<p>Endpoints needing attention based on response time and error rates</p>\n\t\t\t\t\t\t\t</Tooltip.Content>\n\t\t\t\t\t\t</Tooltip.Root>\n\t\t\t\t\t</div>\n\t\t\t\t\t{#if impactfulEndpoints.length > 0}\n\t\t\t\t\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t\t\t<Table.Row class=\"hover:bg-transparent\">\n\t\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Endpoint\"\n\t\t\t\t\t\t\t\t\t\t\ttooltip=\"The API route or page being accessed\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Calls\"\n\t\t\t\t\t\t\t\t\t\t\ttooltip=\"Total number of requests\"\n\t\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\t\tclass=\"w-[70px]\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Typical\"\n\t\t\t\t\t\t\t\t\t\t\ttooltip=\"Median response time (P50)\"\n\t\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\t\tclass=\"w-[80px]\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Slow\"\n\t\t\t\t\t\t\t\t\t\t\ttooltip=\"95th percentile - slowest 5%\"\n\t\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\t\tclass=\"w-[70px]\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\t\tlabel=\"Impact\"\n\t\t\t\t\t\t\t\t\t\t\ttooltip=\"Priority based on response time and error rates\"\n\t\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\t\tclass=\"w-[80px]\"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t\t\t{#each impactfulEndpoints as endpoint}\n\t\t\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t\t\t\t`/endpoints/${encodeURIComponent(endpoint.endpoint)}?preset=24h`\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"max-w-[300px] truncate py-3 font-mono text-sm\"\n\t\t\t\t\t\t\t\t\t\t\t\ttitle={endpoint.endpoint}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{endpoint.endpoint}\n\t\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t\t{endpoint.count.toLocaleString()}\n\t\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right font-mono text-sm tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t\t{formatDuration(endpoint.p50Duration)}\n\t\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right font-mono text-sm tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t\t{formatDuration(endpoint.p95Duration)}\n\t\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right\">\n\t\t\t\t\t\t\t\t\t\t\t\t<ImpactBadge score={endpoint.impact} reason={endpoint.impactReason} />\n\t\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t\t<ViewAllTableRow\n\t\t\t\t\t\t\t\t\t\tcolspan={5}\n\t\t\t\t\t\t\t\t\t\thref=\"/endpoints\"\n\t\t\t\t\t\t\t\t\t\tlabel=\"View all endpoints\"\n\t\t\t\t\t\t\t\t\t\tonBeforeNavigate={resetEndpointsSortToImpact}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t\t\t</Table.Root>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<!-- Empty state card for endpoints -->\n\t\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t\t<div class=\"flex flex-col items-center justify-center px-6 py-12 text-center\">\n\t\t\t\t\t\t\t\t<div class=\"mb-4 flex h-12 w-12 items-center justify-center rounded-full\">\n\t\t\t\t\t\t\t\t\t<CircleCheck class=\"h-12 w-12 text-green-500 dark:text-green-400\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<h3 class=\"mb-2 text-lg font-semibold\">All Endpoints Healthy</h3>\n\t\t\t\t\t\t\t\t<p class=\"mb-4 max-w-sm text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\tNo endpoints have been experiencing performance issues in the last 24h. Endpoints\n\t\t\t\t\t\t\t\t\twith slow response times or high error rates will appear here when detected.\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\thref=\"/endpoints\"\n\t\t\t\t\t\t\t\t\tclass=\"inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline\"\n\t\t\t\t\t\t\t\t\tonclick={resetEndpointsSortToImpact}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tView all endpoints\n\t\t\t\t\t\t\t\t\t<ArrowRight class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/if}\n\t\t\t\t</div>\n\t\t\t{/if}\n\n\t\t\t<!-- Issues Section -->\n\t\t\t<div>\n\t\t\t\t<div class=\"mb-4 flex items-center gap-1\">\n\t\t\t\t\t<div class=\"mr-2 flex h-8 w-8 items-center justify-center rounded-md bg-destructive/10\">\n\t\t\t\t\t\t<Bug class=\"h-5 w-5 text-destructive\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Issues</h2>\n\t\t\t\t\t<Tooltip.Root>\n\t\t\t\t\t\t<Tooltip.Trigger class=\"pt-1\">\n\t\t\t\t\t\t\t<CircleQuestionMark class=\"h-4 w-4 text-muted-foreground/60\" />\n\t\t\t\t\t\t</Tooltip.Trigger>\n\t\t\t\t\t\t<Tooltip.Content>\n\t\t\t\t\t\t\t<p>Latest exceptions and errors to address from the last 24 hours</p>\n\t\t\t\t\t\t</Tooltip.Content>\n\t\t\t\t\t</Tooltip.Root>\n\t\t\t\t</div>\n\t\t\t\t{#if data?.recentIssues && data.recentIssues.length > 0}\n\t\t\t\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t\t<Table.Row class=\"hover:bg-transparent\">\n\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\tlabel=\"Issue\"\n\t\t\t\t\t\t\t\t\t\ttooltip=\"The error message or exception that occurred\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\tlabel=\"Count\"\n\t\t\t\t\t\t\t\t\t\ttooltip=\"Number of times this issue occurred\"\n\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\tclass=\"w-[70px]\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\t\t\tlabel=\"When\"\n\t\t\t\t\t\t\t\t\t\ttooltip=\"When this issue last occurred\"\n\t\t\t\t\t\t\t\t\t\talign=\"right\"\n\t\t\t\t\t\t\t\t\t\tclass=\"w-[70px]\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t\t{#each data.recentIssues as issue}\n\t\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\t\tonclick={createRowClickHandler(`/issues/${issue.exceptionHash}`)}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 font-mono text-sm\" title={issue.stackTrace}>\n\t\t\t\t\t\t\t\t\t\t\t{truncateStackTrace(issue.stackTrace)}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right font-medium tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t{issue.count}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t\t<Table.Cell class=\"py-3 text-right text-sm text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t\t\t\t\t{formatRelativeTime(issue.lastSeen, timezone)}\n\t\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t<ViewAllTableRow colspan={3} href=\"/issues\" label=\"View all issues\" />\n\t\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t\t</Table.Root>\n\t\t\t\t\t</div>\n\t\t\t\t{:else}\n\t\t\t\t\t<!-- Empty state card for issues -->\n\t\t\t\t\t<div class=\"rounded-md border bg-card\">\n\t\t\t\t\t\t<div class=\"flex flex-col items-center justify-center px-6 py-12 text-center\">\n\t\t\t\t\t\t\t<div class=\"mb-4 flex h-12 w-12 items-center justify-center rounded-full\">\n\t\t\t\t\t\t\t\t<CircleCheck class=\"h-12 w-12 text-green-500 dark:text-green-400\" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<h3 class=\"mb-2 text-lg font-semibold\">No Issues Found</h3>\n\t\t\t\t\t\t\t<p class=\"mb-4 max-w-sm text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tNo Issues have been recorded in the last 24 hours. When issues occur in your\n\t\t\t\t\t\t\t\tapplication, they will appear here for quick triage.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\thref=\"/issues\"\n\t\t\t\t\t\t\t\tclass=\"inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tView all issues\n\t\t\t\t\t\t\t\t<ArrowRight class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t</div>\n\t\t</div>\n\t{/if}\n</div>\n\n<style>\n\t/* Light theme - override dark theme defaults */\n\t:global(.light-code .hljs) {\n\t\tbackground: #f6f8fa;\n\t\tcolor: #24292e;\n\t}\n\t:global(.light-code .hljs-keyword),\n\t:global(.light-code .hljs-selector-tag) {\n\t\tcolor: #d73a49;\n\t}\n\t:global(.light-code .hljs-string),\n\t:global(.light-code .hljs-attr) {\n\t\tcolor: #032f62;\n\t}\n\t:global(.light-code .hljs-function),\n\t:global(.light-code .hljs-title) {\n\t\tcolor: #6f42c1;\n\t}\n\t:global(.light-code .hljs-comment) {\n\t\tcolor: #6a737d;\n\t}\n\t:global(.light-code .hljs-built_in) {\n\t\tcolor: #005cc5;\n\t}\n\t:global(.light-code .hljs-meta) {\n\t\tcolor: #d73a49;\n\t}\n\t:global(.light-code .hljs-variable) {\n\t\tcolor: #24292e;\n\t}\n\n\t/* Dark theme - ensure dark styles apply */\n\t:global(.dark-code .hljs) {\n\t\tbackground: #0d1117;\n\t\tcolor: #c9d1d9;\n\t}\n\t:global(.dark-code .hljs-keyword),\n\t:global(.dark-code .hljs-selector-tag) {\n\t\tcolor: #ff7b72;\n\t}\n\t:global(.dark-code .hljs-string),\n\t:global(.dark-code .hljs-attr) {\n\t\tcolor: #a5d6ff;\n\t}\n\t:global(.dark-code .hljs-function),\n\t:global(.dark-code .hljs-title) {\n\t\tcolor: #d2a8ff;\n\t}\n\t:global(.dark-code .hljs-comment) {\n\t\tcolor: #8b949e;\n\t}\n\t:global(.dark-code .hljs-built_in) {\n\t\tcolor: #79c0ff;\n\t}\n\t:global(.dark-code .hljs-meta) {\n\t\tcolor: #ff7b72;\n\t}\n</style>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","load","authState","redirect","timezone","getTimezone","$.user_effect","projectsState","isFrontendFramework","goto","data","$.state","starredWidgets","$.proxy","loading","error","errorStatus","STARRED_WINDOW_MS","starredFromUTC","starredToUTC","impactfulEndpoints","$.derived","$.get","e","projectWithToken","copiedInstall","copiedCode","copiedTesting","copiedTesting2","checking","sdkCode","getFrameworkCode","installCommand","getInstallCommand","isFrontend","codeLanguage","getCodeLanguage","highlightLanguage","javascript","php","bash","go","testingRouteCode","getTestingRouteCode","testingRouteCode2","getTestingRouteCode2","isCloudflare","isCloudflareFramework","cfOtelEndpoint","cfAuthHeader","cfWranglerConfig","copiedCfEndpoint","copiedCfAuth","copiedCfWrangler","copiedCfDeploy","isOtel","isOtelFramework","otelBaseEndpoint","otelAuthHeader","otelCollectorConfig","otelSdks","copiedSdkLang","copiedOtelEndpoint","copiedOtelAuth","copiedOtelCollector","copyCfEndpoint","$.set","copyCfAuth","copyCfWrangler","copyCfDeploy","copySdkInstall","lang","cmd","copyOtelEndpoint","copyOtelAuth","copyOtelCollector","copyInstall","copyCode","copyTesting","copyTesting2","checkAgain","hadDataBefore","loadDashboard","toast","showFullPageLoading","projectId","overview","starred","api","lastProjectId","onMount","currentId","resetEndpointsSortToImpact","setSortState","div","root","$0","ErrorDisplay","$$render","consequent","div_1","root_2","LoadingCircle","node_2","div_2","root_4","div_3","div_4","div_5","Unplug","node_4","Button","node_5","RefreshCw","consequent_2","alternate","div_6","$.first_child","fragment_6","div_7","div_8","div_9","code","node_9","Check","Copy","consequent_3","alternate_1","div_10","div_11","code_1","node_11","consequent_4","alternate_2","div_12","div_13","div_14","div_15","node_13","node_15","node_16","consequent_5","alternate_3","div_16","$.sibling","node_17","$.child","Highlight","$.reset","div_17","div_18","div_19","node_18","consequent_6","alternate_4","$.set_class","themeState","div_20","fragment_20","div_21","$.each","node_21","sdk","div_22","root_24","span","code_2","node_22","consequent_8","alternate_5","$.set_text","text_2","text_3","div_23","div_24","div_25","div_26","code_3","node_24","consequent_9","alternate_6","div_27","div_28","code_4","node_26","consequent_10","alternate_7","div_29","div_30","div_31","node_28","node_30","node_31","consequent_11","alternate_8","div_32","node_32","yaml","div_33","fragment_33","div_34","div_35","div_36","node_33","node_35","node_36","consequent_13","alternate_9","div_37","node_37","div_38","div_39","div_40","h3","div_41","div_42","div_43","node_38","node_40","node_41","consequent_14","alternate_10","div_44","node_42","div_45","div_46","div_47","div_48","node_43","node_45","node_46","consequent_15","alternate_11","div_49","node_47","div_50","fragment_43","div_51","node_49","node_51","node_52","consequent_16","alternate_12","div_52","node_53","$.template_effect","consequent_17","getFrameworkLabel","consequent_12","alternate_13","consequent_7","alternate_14","div_53","node_8","div_54","div_55","node_54","p","consequent_18","alternate_15","node_56","consequent_19","alternate_16","consequent_20","div_56","root_57","div_57","root_58","div_58","div_59","Star","node_60","Tooltip_Root","Tooltip_Trigger","CircleQuestionMark","Tooltip_Content","p_1","root_61","div_60","widget","Card_Root","Card_Header","Card_Title","span_1","root_66","text_9","$.append","consequent_22","text_8","Card_Content","WidgetRenderer","consequent_23","div_61","root_68","div_62","div_63","Gauge","node_70","Tooltip_Root_1","Tooltip_Trigger_1","Tooltip_Content_1","p_2","root_71","div_64","root_72","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_78","node_79","node_80","node_81","node_82","Table_Body","node_84","endpoint","createRowClickHandler","Table_Row_1","Table_Cell","text_10","Table_Cell_1","Table_Cell_2","formatDuration","Table_Cell_3","Table_Cell_4","ImpactBadge","ViewAllTableRow","node_91","div_65","root_84","div_66","div_67","CircleCheck","node_92","a","node_93","ArrowRight","consequent_24","alternate_17","consequent_25","div_68","node_69","div_69","div_70","Bug","node_94","Tooltip_Root_2","Tooltip_Trigger_2","Tooltip_Content_2","p_3","root_87","div_71","root_88","Table_Root_1","Table_Header_1","Table_Row_2","node_102","node_103","node_104","Table_Body_1","$.index","issue","Table_Row_3","Table_Cell_5","truncateStackTrace","Table_Cell_6","text_15","Table_Cell_7","formatRelativeTime","div_72","root_98","div_73","div_74","node_112","a_1","node_113","consequent_26","alternate_18","consequent_27","consequent_21","alternate_19","consequent_1","alternate_20"],"mappings":"ytDAAA,oEA6CMA,EAAQ,EAAK,OAAM,CAAI,EAAK,YAAW,GAAM,QAAU,EAAK,4DAA8D,OAAM,CAAI,EAAK,mBAAkB,GAAM,OAAM,CAAI,EAAK,0BAAyB,GAAM,OAAM,CAAI,EAAK,4BAA2B,GAAM,OAAM,CAAI,EAAK,YAAW,GAAM,OAAM,CAAI,EAAK,yBAAwB,GAAM,OAAM,CAAI,EAAK,2BAA0B,GAAM,OAAM,CAAI,EAAK,UAAS,GAAM,OAAM,CAAI,EAAK,iBAAgB,GAAM,OAAM,CAAI,EAAK,8BAA8B,CAAA,GAchfC,GAAIC,GAAAC,GAAA,CAAA,KAAA,KAAA,EAAA,IAAAC,GAAA,uBAAmCJ,oGAFxC,mBCzDA,oEA6CMA,EAAQ,EAAK,SAAQ,CAAI,GAAM,KAAM,GAAM,KAAM,EAAK,KAAI,GAAM,OAAM,CAAI,EAAK,eAAe,CAAA,GAcnGC,GAAIC,GAAAC,GAAA,CAAA,KAAA,cAAA,EAAA,IAAAC,GAAA,uBAA4CJ,oGAFjD,mBCzDA,oEA6CMA,EAAQ,EAAK,OAAM,CAAI,EAAK,aAAY,GAAM,OAAM,CAAI,EAAK,8BAA8B,CAAA,GAchGC,GAAIC,GAAAC,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AQHG,EAAAxO,EAAAE,EAAAqO,CAAA,CAAA,EAKCtC,GAAUuC,EAAA,CAAA,MAAA,SAAA,CAAA,EALXpO,EAAAmO,CAAA,IATDH,EAAG,IADJF,CAAG,MAAHA,CAAG,cA9CAxW,CAAI,GAAE,cAAYY,EAAIZ,CAAI,EAAC,aAAa,OAAS,EAACwF,EAAAuR,EAAA,EAAAvR,EAAAwR,GAAA,EAAA,MAfvDrC,EAAG,IA9JJ7E,EAAG,OAAHA,EAAG,eADMzP,CAAK,GAAAmF,GAAAyR,EAAA,2BA/cL,CAAArW,EAAAP,CAAK,GAAAO,EAAIZ,CAAI,GAAA,CAAAY,EAAKZ,CAAI,EAAC,QAAOwF,GAAA0R,EAAA,EAAA1R,GAAA2R,GAAA,EAAA,2BAJpC/W,EAAO,EAAAoF,EAAA4R,EAAA,EAAA5R,EAAA6R,GAAA,EAAA,MAhBZjS,EAAG,OAAHA,EAAG,MAFJ","x_google_ignoreList":[0,1,2,3]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/20.DsDZMXLc.js b/backend/static/frontend/_app/immutable/nodes/20.DsDZMXLc.js
new file mode 100644
index 00000000..819ebbaf
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/20.DsDZMXLc.js
@@ -0,0 +1,2 @@
+import{r as Jr}from"../chunks/B4VmGkxP.js";import{b as Qr,a as pt,p as mt,t as Lt,F as Zr}from"../chunks/qCQ2nSvO.js";import{p as E,i as ve,s as Ct,r as lr,l as Zt,b as ea}from"../chunks/DMODTt3n.js";import{o as ta}from"../chunks/Dwk6gGSK.js";import{p as Wt,d as v,c as o,m as zt,o as sr,b as t,a as At,K as Lr,g as e,u as R,f as d,e as S,r as D,s as l,q as Ar,F as Xt,i as a,h as C,n as u,k as ae,l as fe,v as ht,x as ra,t as m}from"../chunks/B2WdN-7r.js";import{e as Ft,i as Qt}from"../chunks/CMyj8Fzw.js";import{c as s}from"../chunks/BAcG0-U_.js";import{b as Jt,d as Vr,s as Nr,a as Hr}from"../chunks/DH0tcjsQ.js";import{B as $t}from"../chunks/C1aqwstW.js";import{I as Sr}from"../chunks/D8CWOmhn.js";import{L as Br}from"../chunks/D0pIT200.js";import{A as dr,a as ir,b as ur,d as cr,e as vr,c as Kr}from"../chunks/CmY6xZEr.js";import{S as Vt,a as Ht,c as at,b as qt}from"../chunks/BgAHJuQl.js";import{a as aa,b as oa,T as na}from"../chunks/CC8KIeOw.js";import{T as sa}from"../chunks/CItL7JvW.js";import{C as la,a as da,b as ia}from"../chunks/BHR29ZVu.js";import{C as ua}from"../chunks/BKHeGn2e.js";import{D as Dr,a as Tr,b as Mr,c as Kt}from"../chunks/Cjl85b3B.js";import{n as Ut,ai as ca,F as va,m as fa,d as ga,f as _a,aj as pa,ak as ma,e as $a,g as Ur,al as ha,a as xa}from"../chunks/CjLH05gQ.js";import{b as bt,c as qr,m as fr}from"../chunks/BDd6-VcB.js";import{D as wa,T as Fr,C as gr}from"../chunks/CKSCW-4I.js";import{e as Pa,p as ya,g as ba,d as Nt,a as Bt,T as Ca,b as Cr,u as Sa,$ as zr}from"../chunks/DjEjtFrE.js";import{S as Da,W as Ta,R as Ma}from"../chunks/B622WnQw.js";import{I as er,s as tr}from"../chunks/CQWqWi6p.js";import{a as Fa,A as Wa}from"../chunks/NCUZrEi6.js";import{A as Aa}from"../chunks/D81VMsqm.js";import{A as Oa}from"../chunks/Dt-hNsWv.js";import{A as _r,a as pr}from"../chunks/CaHAoFtL.js";import{A as mr}from"../chunks/DxBI0u1e.js";import{C as ja}from"../chunks/BISlaXSK.js";import{c as Rr,t as Gr,g as ka,f as Ia}from"../chunks/Dq-0lVru.js";function Ea(N,n){Wt(n,!0);let i=E(n,"open",15,!1),c=E(n,"onOpenChange",3,Ut),_=E(n,"onOpenChangeComplete",3,Ut);ca.create({open:bt(()=>i(),h=>{i(h),c()?.(h)}),onOpenChangeComplete:bt(()=>_())}),va(N,{children:(h,p)=>{var P=v(),$=o(P);zt($,()=>n.children??sr),t(h,P)},$$slots:{default:!0}}),At()}var Na=d("<div><div><!></div></div>"),Ba=d("<div><div><!></div></div>");function Ka(N,n){const i=Lr();Wt(n,!0);let c=E(n,"id",19,()=>qr(i)),_=E(n,"ref",15,null),h=E(n,"loop",3,!0),p=E(n,"onInteractOutside",3,Ut),P=E(n,"forceMount",3,!1),$=E(n,"onEscapeKeydown",3,Ut),T=E(n,"interactOutsideBehavior",3,"defer-otherwise-close"),oe=E(n,"escapeKeydownBehavior",3,"defer-otherwise-close"),ge=E(n,"onOpenAutoFocus",3,Ut),_e=E(n,"onCloseAutoFocus",3,Ut),F=E(n,"onFocusOutside",3,Ut),Ee=E(n,"side",3,"right"),A=E(n,"trapFocus",3,!1),xe=lr(n,["$$slots","$$events","$$legacy","id","ref","children","child","loop","onInteractOutside","forceMount","onEscapeKeydown","interactOutsideBehavior","escapeKeydownBehavior","onOpenAutoFocus","onCloseAutoFocus","onFocusOutside","side","trapFocus"]);const w=fa.create({id:bt(()=>c()),loop:bt(()=>h()),ref:bt(()=>_(),g=>_(g)),isSub:!0,onCloseAutoFocus:bt(()=>Ne)});function Z(g){const W=g.currentTarget.contains(g.target),q=ma[w.parentMenu.root.opts.dir.current].includes(g.key);W&&q&&(w.parentMenu.onClose(),w.parentMenu.triggerNode?.focus(),g.preventDefault())}const O=R(()=>w.parentMenu.root.getBitsAttr("sub-content")),G=R(()=>fr(xe,w.props,{side:Ee(),onkeydown:Z,[e(O)]:""}));function j(g){ge()(g),!g.defaultPrevented&&(g.preventDefault(),w.parentMenu.root.isUsingKeyboard&&w.parentMenu.contentNode&&pa.dispatch(w.parentMenu.contentNode))}function Ne(g){_e()(g),!g.defaultPrevented&&g.preventDefault()}function Be(g){p()(g),!g.defaultPrevented&&w.parentMenu.onClose()}function Oe(g){$()(g),!g.defaultPrevented&&w.parentMenu.onClose()}function ne(g){F()(g),!g.defaultPrevented&&_a(g.target)&&g.target.id!==w.parentMenu.triggerNode?.id&&w.parentMenu.onClose()}var we=v(),Ve=o(we);{var Ke=g=>{ga(g,Ct(()=>e(G),{get ref(){return w.opts.ref},get interactOutsideBehavior(){return T()},get escapeKeydownBehavior(){return oe()},onOpenAutoFocus:j,get enabled(){return w.parentMenu.opts.open.current},onInteractOutside:Be,onEscapeKeydown:Oe,onFocusOutside:ne,preventScroll:!1,get loop(){return h()},get trapFocus(){return A()},get shouldRender(){return w.shouldRender},popper:(q,Y)=>{let B=()=>Y?.().props,se=()=>Y?.().wrapperProps;const me=R(()=>fr(B(),e(G),{style:Ur("menu")}));var He=v(),Pe=o(He);{var X=ee=>{var y=v(),b=o(y);{let k=R(()=>({props:e(me),wrapperProps:se(),...w.snippetProps}));zt(b,()=>n.child,()=>e(k))}t(ee,y)},$e=ee=>{var y=Na();Jt(y,()=>({...se()}));var b=S(y);Jt(b,()=>({...e(me)}));var k=S(b);zt(k,()=>n.children??sr),D(b),D(y),t(ee,y)};ve(Pe,ee=>{n.child?ee(X):ee($e,!1)})}t(q,He)},$$slots:{popper:!0}}))},ot=g=>{var W=v(),q=o(W);{var Y=B=>{$a(B,Ct(()=>e(G),{get ref(){return w.opts.ref},get interactOutsideBehavior(){return T()},get escapeKeydownBehavior(){return oe()},onCloseAutoFocus:Ne,onOpenAutoFocus:j,get open(){return w.parentMenu.opts.open.current},onInteractOutside:Be,onEscapeKeydown:Oe,onFocusOutside:ne,preventScroll:!1,get loop(){return h()},get trapFocus(){return A()},get shouldRender(){return w.shouldRender},popper:(me,He)=>{let Pe=()=>He?.().props,X=()=>He?.().wrapperProps;const $e=R(()=>fr(Pe(),e(G),{style:Ur("menu")}));var ee=v(),y=o(ee);{var b=te=>{var J=v(),ye=o(J);{let Qe=R(()=>({props:e($e),wrapperProps:X(),...w.snippetProps}));zt(ye,()=>n.child,()=>e(Qe))}t(te,J)},k=te=>{var J=Ba();Jt(J,()=>({...X()}));var ye=S(J);Jt(ye,()=>({...e($e)}));var Qe=S(ye);zt(Qe,()=>n.children??sr),D(ye),D(J),t(te,J)};ve(y,te=>{n.child?te(b):te(k,!1)})}t(me,ee)},$$slots:{popper:!0}}))};ve(q,B=>{P()||B(Y)},!0)}t(g,W)};ve(Ve,g=>{P()?g(Ke):g(ot,!1)})}t(N,we),At()}var Ua=d("<div><!></div>");function za(N,n){const i=Lr();Wt(n,!0);let c=E(n,"id",19,()=>qr(i)),_=E(n,"disabled",3,!1),h=E(n,"ref",15,null),p=E(n,"onSelect",3,Ut),P=E(n,"openDelay",3,100),$=lr(n,["$$slots","$$events","$$legacy","id","disabled","ref","children","child","onSelect","openDelay"]);const T=ha.create({disabled:bt(()=>_()),onSelect:bt(()=>p()),id:bt(()=>c()),ref:bt(()=>h(),ge=>h(ge)),openDelay:bt(()=>P())}),oe=R(()=>fr($,T.props));xa(N,{get id(){return c()},get ref(){return T.opts.ref},children:(ge,_e)=>{var F=v(),Ee=o(F);{var A=w=>{var Z=v(),O=o(Z);zt(O,()=>n.child,()=>({props:e(oe)})),t(w,Z)},xe=w=>{var Z=Ua();Jt(Z,()=>({...e(oe)}));var O=S(Z);zt(O,()=>n.children??sr),D(Z),t(w,Z)};ve(Ee,w=>{n.child?w(A):w(xe,!1)})}t(ge,F)},$$slots:{default:!0}}),At()}function Wr(N,n){const i=Zt(n,["children","$$slots","$$events","$$legacy"]);const c=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"12",cy:"5",r:"1"}],["circle",{cx:"12",cy:"19",r:"1"}]];er(N,Ct({name:"ellipsis-vertical"},()=>i,{get iconNode(){return c},children:(_,h)=>{var p=v(),P=o(p);tr(P,n,"default",{},null),t(_,p)},$$slots:{default:!0}}))}function Ra(N,n){const i=Zt(n,["children","$$slots","$$events","$$legacy"]);const c=[["path",{d:"M12 2v20"}],["path",{d:"m15 19-3 3-3-3"}],["path",{d:"m19 9 3 3-3 3"}],["path",{d:"M2 12h20"}],["path",{d:"m5 9-3 3 3 3"}],["path",{d:"m9 5 3-3 3 3"}]];er(N,Ct({name:"move"},()=>i,{get iconNode(){return c},children:(_,h)=>{var p=v(),P=o(p);tr(P,n,"default",{},null),t(_,p)},$$slots:{default:!0}}))}function Ga(N,n){const i=Zt(n,["children","$$slots","$$events","$$legacy"]);const c=[["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"}],["path",{d:"m15 5 4 4"}]];er(N,Ct({name:"pencil"},()=>i,{get iconNode(){return c},children:(_,h)=>{var p=v(),P=o(p);tr(P,n,"default",{},null),t(_,p)},$$slots:{default:!0}}))}function nr(N,n){const i=Zt(n,["children","$$slots","$$events","$$legacy"]);const c=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];er(N,Ct({name:"plus"},()=>i,{get iconNode(){return c},children:(_,h)=>{var p=v(),P=o(p);tr(P,n,"default",{},null),t(_,p)},$$slots:{default:!0}}))}function La(N,n){const i=Zt(n,["children","$$slots","$$events","$$legacy"]);const c=[["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"}],["path",{d:"M20 2v4"}],["path",{d:"M22 4h-4"}],["circle",{cx:"4",cy:"20",r:"2"}]];er(N,Ct({name:"sparkles"},()=>i,{get iconNode(){return c},children:(_,h)=>{var p=v(),P=o(p);tr(P,n,"default",{},null),t(_,p)},$$slots:{default:!0}}))}function Va(N,n){const i=Zt(n,["children","$$slots","$$events","$$legacy"]);const c=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];er(N,Ct({name:"x"},()=>i,{get iconNode(){return c},children:(_,h)=>{var p=v(),P=o(p);tr(P,n,"default",{},null),t(_,p)},$$slots:{default:!0}}))}function Ha(N,n){Wt(n,!0);let i=E(n,"open",15,!1),c=lr(n,["$$slots","$$events","$$legacy","open"]);var _=v(),h=o(_);s(h,()=>Ea,(p,P)=>{P(p,Ct(()=>c,{get open(){return i()},set open($){i($)}}))}),t(N,_),At()}function qa(N,n){Wt(n,!0);let i=E(n,"ref",15,null),c=lr(n,["$$slots","$$events","$$legacy","ref","class"]);var _=v(),h=o(_);{let p=R(()=>Vr("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",n.class));s(h,()=>Ka,(P,$)=>{$(P,Ct({"data-slot":"dropdown-menu-sub-content",get class(){return e(p)}},()=>c,{get ref(){return i()},set ref(T){i(T)}}))})}t(N,_),At()}var Ya=d("<!> <!>",1);function Xa(N,n){Wt(n,!0);let i=E(n,"ref",15,null),c=lr(n,["$$slots","$$events","$$legacy","ref","class","inset","children"]);var _=v(),h=o(_);{let p=R(()=>Vr("data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n.class));s(h,()=>za,(P,$)=>{$(P,Ct({"data-slot":"dropdown-menu-sub-trigger",get"data-inset"(){return n.inset},get class(){return e(p)}},()=>c,{get ref(){return i()},set ref(T){i(T)},children:(T,oe)=>{var ge=Ya(),_e=o(ge);zt(_e,()=>n.children??sr);var F=l(_e,2);Pa(F,{class:"ms-auto size-4"}),t(T,ge)},$$slots:{default:!0}}))})}t(N,_),At()}const Ja=()=>{if(!Qr.isAuthenticated)throw Jr(302,"/login")},Ln=Object.freeze(Object.defineProperty({__proto__:null,load:Ja},Symbol.toStringTag,{value:"Module"}));var Qa=d('<span class="text-xs font-normal text-muted-foreground"> </span>'),Za=d(" <!>",1),eo=d("<!> Edit",1),to=d("<!> Move",1),ro=d("<!> Up",1),ao=d("<!> Down",1),oo=d("<!> Left",1),no=d("<!> Right",1),so=d("<!> <!>",1),lo=d("<!> <!> <!>",1),io=d("<!> <!>",1),uo=d("<!> Delete",1),co=d("<!> <!> <!> <!>",1),vo=d("<!> <!>",1),fo=d('<div class="flex items-center justify-between"><!> <div class="flex items-center"><button type="button"><!></button> <!></div></div>'),go=d("<!> <!>",1),_o=d("<div><!></div>"),po=d('<div class="grid grid-cols-1 gap-4 md:grid-cols-3"><!> <button class="flex min-h-[240px] cursor-pointer items-center justify-center rounded-lg border border-dashed border-muted-foreground/25 text-muted-foreground transition-colors hover:border-primary hover:text-primary"><div class="flex flex-col items-center gap-2"><!> <span class="text-sm font-medium">Add Metric Widget</span></div></button></div>');function mo(N,n){Wt(n,!0);let i=E(n,"widgets",19,()=>[]),c=E(n,"timeDomain",3,null),_=C(null),h=C(3);Xt(()=>{const _e=window.matchMedia("(min-width: 768px)"),F=Ee=>{a(h,Ee.matches?3:1,!0)};return F(_e),_e.addEventListener("change",F),()=>_e.removeEventListener("change",F)});const p=R(()=>[...i()].sort((_e,F)=>_e.position-F.position));var P=po(),$=S(P);Ft($,19,()=>e(p),_e=>_e.id,(_e,F,Ee)=>{var A=_o(),xe=S(A);s(xe,()=>la,(w,Z)=>{Z(w,{class:"h-full gap-0",children:(O,G)=>{var j=go(),Ne=o(j);s(Ne,()=>da,(Oe,ne)=>{ne(Oe,{class:"pr-2 pb-1",children:(we,Ve)=>{var Ke=fo(),ot=S(Ke);s(ot,()=>ia,(B,se)=>{se(B,{class:"text-sm font-medium",children:(me,He)=>{u();var Pe=Za(),X=o(Pe,!0),$e=l(X);{var ee=y=>{var b=Qa(),k=S(b);D(b),ae(()=>fe(k,`(${e(F).config.unit??""})`)),t(y,b)};ve($e,y=>{e(F).config?.unit&&y(ee)})}ae(()=>fe(X,e(F).title)),t(me,Pe)},$$slots:{default:!0}})});var g=l(ot,2),W=S(g);W.__click=()=>n.onToggleStar?.(e(F));var q=S(W);{let B=R(()=>e(F).isStarred?"fill-current":"");Da(q,{get class(){return`h-4 w-4 ${e(B)??""}`}})}D(W);var Y=l(W,2);s(Y,()=>Dr,(B,se)=>{se(B,{children:(me,He)=>{var Pe=vo(),X=o(Pe);s(X,()=>Tr,(ee,y)=>{y(ee,{class:"inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:(b,k)=>{Wr(b,{class:"h-4 w-4"})},$$slots:{default:!0}})});var $e=l(X,2);s($e,()=>Mr,(ee,y)=>{y(ee,{align:"end",children:(b,k)=>{var te=co(),J=o(te);s(J,()=>Kt,(je,K)=>{K(je,{onclick:()=>n.onEditWidget?.(e(F)),children:(be,L)=>{var Ce=eo(),U=o(Ce);Ga(U,{class:"mr-2 h-4 w-4"}),u(),t(be,Ce)},$$slots:{default:!0}})});var ye=l(J,2);s(ye,()=>Ha,(je,K)=>{K(je,{children:(be,L)=>{var Ce=io(),U=o(Ce);s(U,()=>Xa,(pe,ze)=>{ze(pe,{children:(V,le)=>{var he=to(),Q=o(he);Ra(Q,{class:"mr-2 h-4 w-4"}),u(),t(V,he)},$$slots:{default:!0}})});var ke=l(U,2);s(ke,()=>qa,(pe,ze)=>{ze(pe,{children:(V,le)=>{var he=lo(),Q=o(he);{let Re=R(()=>e(Ee)<e(h));s(Q,()=>Kt,(Ze,De)=>{De(Ze,{get disabled(){return e(Re)},onclick:()=>n.onMoveWidget?.(e(F).id,-e(h)),children:(de,Te)=>{var Ge=ro(),r=o(Ge);Fa(r,{class:"mr-2 h-4 w-4"}),u(),t(de,Ge)},$$slots:{default:!0}})})}var Se=l(Q,2);{let Re=R(()=>e(Ee)>e(p).length-1-e(h));s(Se,()=>Kt,(Ze,De)=>{De(Ze,{get disabled(){return e(Re)},onclick:()=>n.onMoveWidget?.(e(F).id,e(h)),children:(de,Te)=>{var Ge=ao(),r=o(Ge);Wa(r,{class:"mr-2 h-4 w-4"}),u(),t(de,Ge)},$$slots:{default:!0}})})}var St=l(Se,2);{var ct=Re=>{var Ze=so(),De=o(Ze);{let Te=R(()=>e(Ee)%e(h)===0);s(De,()=>Kt,(Ge,r)=>{r(Ge,{get disabled(){return e(Te)},onclick:()=>n.onMoveWidget?.(e(F).id,-1),children:(f,M)=>{var Ie=oo(),Ye=o(Ie);Aa(Ye,{class:"mr-2 h-4 w-4"}),u(),t(f,Ie)},$$slots:{default:!0}})})}var de=l(De,2);{let Te=R(()=>e(Ee)%e(h)===e(h)-1||e(Ee)+1>=e(p).length);s(de,()=>Kt,(Ge,r)=>{r(Ge,{get disabled(){return e(Te)},onclick:()=>n.onMoveWidget?.(e(F).id,1),children:(f,M)=>{var Ie=no(),Ye=o(Ie);Oa(Ye,{class:"mr-2 h-4 w-4"}),u(),t(f,Ie)},$$slots:{default:!0}})})}t(Re,Ze)};ve(St,Re=>{e(h)>1&&Re(ct)})}t(V,he)},$$slots:{default:!0}})}),t(be,Ce)},$$slots:{default:!0}})});var Qe=l(ye,2);s(Qe,()=>wa,(je,K)=>{K(je,{})});var qe=l(Qe,2);s(qe,()=>Kt,(je,K)=>{K(je,{class:"text-destructive",onclick:()=>n.onDeleteWidget?.(e(F)),children:(be,L)=>{var Ce=uo(),U=o(Ce);Fr(U,{class:"mr-2 h-4 w-4"}),u(),t(be,Ce)},$$slots:{default:!0}})}),t(b,te)},$$slots:{default:!0}})}),t(me,Pe)},$$slots:{default:!0}})}),D(g),D(Ke),ae(()=>{Nr(W,"aria-label",e(F).isStarred?"Unstar widget":"Star widget"),Nr(W,"title",e(F).isStarred?"Unstar":"Star"),Hr(W,1,`inline-flex h-7 w-7 items-center justify-center rounded-md transition-colors hover:bg-muted ${e(F).isStarred?"text-yellow-500 hover:text-yellow-600":"text-muted-foreground hover:text-foreground"}`)}),t(we,Ke)},$$slots:{default:!0}})});var Be=l(Ne,2);s(Be,()=>ua,(Oe,ne)=>{ne(Oe,{class:"p-1",children:(we,Ve)=>{Ta(we,{get widget(){return e(F)},get fromDateUTC(){return n.fromDateUTC},get toDateUTC(){return n.toDateUTC},get timeDomain(){return c()},get onRangeSelect(){return n.onRangeSelect},get sharedHoverTime(){return e(_)},onHoverTimeChange:Ke=>a(_,Ke,!0),isSourceChart:!1})},$$slots:{default:!0}})}),t(O,j)},$$slots:{default:!0}})}),D(A),t(_e,A)});var T=l($,2);T.__click=()=>n.onAddWidget?.();var oe=S(T),ge=S(oe);nr(ge,{class:"h-8 w-8"}),u(2),D(oe),D(T),D(P),t(N,P),At()}Ar(["click"]);var $o=d('<div class="flex items-center gap-1 rounded-md border bg-muted/50 px-2 py-1 text-xs"><span class="font-medium"> </span> <span class="text-muted-foreground">=</span> <span> </span> <button class="ml-1 rounded hover:bg-muted"><!></button></div>'),ho=d("<!> <!>",1),xo=d("<!> <!>",1),wo=d("<!> <!>",1),Po=d('<div class="flex flex-wrap items-center gap-2"><!> <!></div>');function yo(N,n){Wt(n,!0);let i=E(n,"tagKeys",19,()=>[]),c=E(n,"activeFilters",19,()=>({})),_=C(""),h=ht({}),p=C(!1);async function P(A){if(a(_,A,!0),!h[A]){a(p,!0);try{h[A]=await n.onLoadTagValues(A)}catch{h[A]=[]}finally{a(p,!1)}}}function $(A){if(!e(_))return;const xe={...c(),[e(_)]:A};n.onFilterChange(xe),a(_,"")}function T(A){const xe={...c()};delete xe[A],n.onFilterChange(xe)}const oe=R(()=>i().filter(A=>!(A in c())));var ge=Po(),_e=S(ge);Ft(_e,17,()=>Object.entries(c()),Qt,(A,xe)=>{var w=R(()=>ra(e(xe),2));let Z=()=>e(w)[0],O=()=>e(w)[1];var G=$o(),j=S(G),Ne=S(j,!0);D(j);var Be=l(j,4),Oe=S(Be,!0);D(Be);var ne=l(Be,2);ne.__click=()=>T(Z());var we=S(ne);Va(we,{class:"h-3 w-3"}),D(ne),D(G),ae(()=>{fe(Ne,Z()),fe(Oe,O())}),t(A,G)});var F=l(_e,2);{var Ee=A=>{var xe=v(),w=o(xe);{var Z=G=>{var j=xo(),Ne=o(j);s(Ne,()=>qt,(Oe,ne)=>{ne(Oe,{type:"single",onValueChange:we=>{we&&$(we)},children:(we,Ve)=>{var Ke=ho(),ot=o(Ke);s(ot,()=>Vt,(W,q)=>{q(W,{class:"h-7 w-[140px] text-xs",children:(Y,B)=>{var se=v(),me=o(se);{var He=X=>{var $e=m("Loading...");t(X,$e)},Pe=X=>{var $e=m("Select value");t(X,$e)};ve(me,X=>{e(p)?X(He):X(Pe,!1)})}t(Y,se)},$$slots:{default:!0}})});var g=l(ot,2);s(g,()=>Ht,(W,q)=>{q(W,{children:(Y,B)=>{var se=v(),me=o(se);Ft(me,17,()=>h[e(_)]??[],Qt,(He,Pe)=>{var X=v(),$e=o(X);s($e,()=>at,(ee,y)=>{y(ee,{get value(){return e(Pe)},children:(b,k)=>{u();var te=m();ae(()=>fe(te,e(Pe))),t(b,te)},$$slots:{default:!0}})}),t(He,X)}),t(Y,se)},$$slots:{default:!0}})}),t(we,Ke)},$$slots:{default:!0}})});var Be=l(Ne,2);$t(Be,{variant:"ghost",size:"sm",class:"h-7 px-2 text-xs",onclick:()=>a(_,""),children:(Oe,ne)=>{u();var we=m("Cancel");t(Oe,we)},$$slots:{default:!0}}),t(G,j)},O=G=>{var j=v(),Ne=o(j);s(Ne,()=>qt,(Be,Oe)=>{Oe(Be,{type:"single",onValueChange:ne=>{ne&&P(ne)},children:(ne,we)=>{var Ve=wo(),Ke=o(Ve);s(Ke,()=>Vt,(g,W)=>{W(g,{class:"h-7 w-[140px] text-xs",children:(q,Y)=>{u();var B=m("+ Filter by tag");t(q,B)},$$slots:{default:!0}})});var ot=l(Ke,2);s(ot,()=>Ht,(g,W)=>{W(g,{children:(q,Y)=>{var B=v(),se=o(B);Ft(se,17,()=>e(oe),Qt,(me,He)=>{var Pe=v(),X=o(Pe);s(X,()=>at,($e,ee)=>{ee($e,{get value(){return e(He)},children:(y,b)=>{u();var k=m();ae(()=>fe(k,e(He))),t(y,k)},$$slots:{default:!0}})}),t(me,Pe)}),t(q,B)},$$slots:{default:!0}})}),t(ne,Ve)},$$slots:{default:!0}})}),t(G,j)};ve(w,G=>{e(_)?G(Z):G(O,!1)})}t(A,xe)};ve(F,A=>{e(oe).length>0&&A(Ee)})}D(ge),t(N,ge),At()}Ar(["click"]);var bo=d("<!> <!> <!>",1),Co=d("<!> <!> <!> <!> <!>",1),So=d("<!> <!>",1),Do=d("<!> <!>",1),To=d("<!> <!> <!> <!> <!>",1),Mo=d("<!> <!>",1),Fo=d("<!> <!>",1),Wo=d("<!> <!>",1),Ao=d('<div class="space-y-1"><span class="text-xs text-muted-foreground">Tag Filters</span> <!></div> <div><span class="text-xs text-muted-foreground">Group By</span> <!></div>',1),Oo=d('<div class="space-y-2 rounded-md border p-3"><div class="flex items-center gap-2"><!> <!></div> <!></div>'),jo=d("<!> Update Widget",1),ko=d("<!> Add Widget",1),Io=d("<!> <!>",1),Eo=d('<!> <!> <div class="space-y-4"><div><label class="text-sm font-medium" for="widget-title">Title (optional)</label> <!></div> <div><label class="text-sm font-medium">Widget Type</label> <!></div> <div><label class="text-sm font-medium" for="widget-unit">Unit (optional)</label> <!> <p class="text-xs text-muted-foreground mt-1">%, ms, s, MB, GB, bytes, count, ns</p></div> <!></div> <!>',1);function No(N,n){Wt(n,!0);let i=E(n,"open",15,!1),c=E(n,"widget",3,null),_=E(n,"availableMetrics",19,()=>[]),h=E(n,"error",3,""),p=C(ht(c()?.title??"")),P=C(ht(c()?.widgetType??"line_chart")),$=C(ht(c()?.config?.unit??"")),T=C(!!c()?.config?.unit),oe=C(ht(c()?.config?.sources??[{type:"metric",name:"",aggregation:"avg"}]));Xt(()=>{i()&&(a(p,c()?.title??"",!0),a(P,c()?.widgetType??"line_chart",!0),a($,c()?.config?.unit??"",!0),a(T,!!c()?.config?.unit),a(oe,c()?.config?.sources?[...c().config.sources]:[{type:"metric",name:"",aggregation:"avg"}],!0))});function ge(O){return _().find(j=>j.name===O)?.tagKeys??[]}function _e(O){return _().find(j=>j.name===O)?.unit??""}async function F(O,G){try{return(await pt.get(`/metrics/discover/tags?name=${encodeURIComponent(O)}&key=${encodeURIComponent(G)}`,{projectId:mt.currentProjectId??void 0})).values||[]}catch{return[]}}function Ee(O,G){e(oe)[O].name=G,e(T)||a($,_e(G),!0)}function A(){const O=e(oe).filter(Ne=>Ne.name),G=e(p).trim()||O[0]?.name||"",j={sources:O};e($)&&(j.unit=e($)),n.onSave({title:G,widgetType:e(P),config:j})}function xe(){i(!1),n.onCancel()}var w=v(),Z=o(w);s(Z,()=>vr,(O,G)=>{G(O,{get open(){return i()},set open(j){i(j)},children:(j,Ne)=>{var Be=v(),Oe=o(Be);s(Oe,()=>dr,(ne,we)=>{we(ne,{class:"max-w-xl",interactOutsideBehavior:"close",children:(Ve,Ke)=>{var ot=Eo(),g=o(ot);s(g,()=>ir,(y,b)=>{b(y,{children:(k,te)=>{var J=v(),ye=o(J);s(ye,()=>ur,(Qe,qe)=>{qe(Qe,{children:(je,K)=>{u();var be=m();ae(()=>fe(be,c()?.id?"Edit Widget":"Add Widget")),t(je,be)},$$slots:{default:!0}})}),t(k,J)},$$slots:{default:!0}})});var W=l(g,2);{var q=y=>{var b=v(),k=o(b);s(k,()=>_r,(te,J)=>{J(te,{variant:"destructive",class:"bg-red-50 border-red-200",children:(ye,Qe)=>{var qe=bo(),je=o(qe);gr(je,{class:"h-4 w-4 text-red-700"});var K=l(je,2);s(K,()=>mr,(L,Ce)=>{Ce(L,{class:"text-red-800",children:(U,ke)=>{u();var pe=m("Error");t(U,pe)},$$slots:{default:!0}})});var be=l(K,2);s(be,()=>pr,(L,Ce)=>{Ce(L,{class:"text-red-700",children:(U,ke)=>{u();var pe=m();ae(()=>fe(pe,h())),t(U,pe)},$$slots:{default:!0}})}),t(ye,qe)},$$slots:{default:!0}})}),t(y,b)};ve(W,y=>{h()&&y(q)})}var Y=l(W,2),B=S(Y),se=l(S(B),2);Sr(se,{id:"widget-title",placeholder:"Defaults to metric name",get value(){return e(p)},set value(y){a(p,y,!0)}}),D(B);var me=l(B,2),He=l(S(me),2);s(He,()=>qt,(y,b)=>{b(y,{type:"single",get value(){return e(P)},onValueChange:k=>{k&&a(P,k,!0)},children:(k,te)=>{var J=So(),ye=o(J);s(ye,()=>Vt,(qe,je)=>{je(qe,{children:(K,be)=>{u();var L=m();ae(()=>fe(L,{line_chart:"Line Chart",area_chart:"Area Chart",bar_chart:"Bar Chart",single_value:"Single Value",table:"Table"}[e(P)]??e(P))),t(K,L)},$$slots:{default:!0}})});var Qe=l(ye,2);s(Qe,()=>Ht,(qe,je)=>{je(qe,{children:(K,be)=>{var L=Co(),Ce=o(L);s(Ce,()=>at,(V,le)=>{le(V,{value:"line_chart",children:(he,Q)=>{u();var Se=m("Line Chart");t(he,Se)},$$slots:{default:!0}})});var U=l(Ce,2);s(U,()=>at,(V,le)=>{le(V,{value:"area_chart",children:(he,Q)=>{u();var Se=m("Area Chart");t(he,Se)},$$slots:{default:!0}})});var ke=l(U,2);s(ke,()=>at,(V,le)=>{le(V,{value:"bar_chart",children:(he,Q)=>{u();var Se=m("Bar Chart");t(he,Se)},$$slots:{default:!0}})});var pe=l(ke,2);s(pe,()=>at,(V,le)=>{le(V,{value:"single_value",children:(he,Q)=>{u();var Se=m("Single Value");t(he,Se)},$$slots:{default:!0}})});var ze=l(pe,2);s(ze,()=>at,(V,le)=>{le(V,{value:"table",children:(he,Q)=>{u();var Se=m("Table");t(he,Se)},$$slots:{default:!0}})}),t(K,L)},$$slots:{default:!0}})}),t(k,J)},$$slots:{default:!0}})}),D(me);var Pe=l(me,2),X=l(S(Pe),2);Sr(X,{id:"widget-unit",placeholder:"Auto-detected from metric",oninput:()=>{a(T,e($).length>0)},get value(){return e($)},set value(y){a($,y,!0)}}),u(2),D(Pe);var $e=l(Pe,2);Ft($e,17,()=>e(oe),Qt,(y,b,k)=>{var te=Oo(),J=S(te),ye=S(J);s(ye,()=>qt,(K,be)=>{be(K,{type:"single",get value(){return e(b).name},onValueChange:L=>{L&&Ee(k,L)},children:(L,Ce)=>{var U=Do(),ke=o(U);s(ke,()=>Vt,(ze,V)=>{V(ze,{class:"flex-1",children:(le,he)=>{u();var Q=m();ae(()=>fe(Q,e(b).name||"Select metric")),t(le,Q)},$$slots:{default:!0}})});var pe=l(ke,2);s(pe,()=>Ht,(ze,V)=>{V(ze,{children:(le,he)=>{var Q=v(),Se=o(Q);Ft(Se,17,_,Qt,(St,ct)=>{var Re=v(),Ze=o(Re);s(Ze,()=>at,(De,de)=>{de(De,{get value(){return e(ct).name},children:(Te,Ge)=>{u();var r=m();ae(()=>fe(r,e(ct).name)),t(Te,r)},$$slots:{default:!0}})}),t(St,Re)}),t(le,Q)},$$slots:{default:!0}})}),t(L,U)},$$slots:{default:!0}})});var Qe=l(ye,2);s(Qe,()=>qt,(K,be)=>{be(K,{type:"single",get value(){return e(b).aggregation},onValueChange:L=>{L&&(e(oe)[k].aggregation=L)},children:(L,Ce)=>{var U=Mo(),ke=o(U);s(ke,()=>Vt,(ze,V)=>{V(ze,{class:"w-20",children:(le,he)=>{u();var Q=m();ae(()=>fe(Q,e(b).aggregation)),t(le,Q)},$$slots:{default:!0}})});var pe=l(ke,2);s(pe,()=>Ht,(ze,V)=>{V(ze,{children:(le,he)=>{var Q=To(),Se=o(Q);s(Se,()=>at,(De,de)=>{de(De,{value:"avg",children:(Te,Ge)=>{u();var r=m("avg");t(Te,r)},$$slots:{default:!0}})});var St=l(Se,2);s(St,()=>at,(De,de)=>{de(De,{value:"min",children:(Te,Ge)=>{u();var r=m("min");t(Te,r)},$$slots:{default:!0}})});var ct=l(St,2);s(ct,()=>at,(De,de)=>{de(De,{value:"max",children:(Te,Ge)=>{u();var r=m("max");t(Te,r)},$$slots:{default:!0}})});var Re=l(ct,2);s(Re,()=>at,(De,de)=>{de(De,{value:"sum",children:(Te,Ge)=>{u();var r=m("sum");t(Te,r)},$$slots:{default:!0}})});var Ze=l(Re,2);s(Ze,()=>at,(De,de)=>{de(De,{value:"count",children:(Te,Ge)=>{u();var r=m("count");t(Te,r)},$$slots:{default:!0}})}),t(le,Q)},$$slots:{default:!0}})}),t(L,U)},$$slots:{default:!0}})}),D(J);var qe=l(J,2);{var je=K=>{var be=Ao(),L=o(be),Ce=l(S(L),2);{let pe=R(()=>ge(e(b).name)),ze=R(()=>e(b).tagFilters??{});yo(Ce,{get tagKeys(){return e(pe)},get activeFilters(){return e(ze)},onFilterChange:V=>{e(oe)[k].tagFilters=Object.keys(V).length>0?V:void 0},onLoadTagValues:V=>F(e(b).name,V)})}D(L);var U=l(L,2),ke=l(S(U),2);{let pe=R(()=>e(b).groupBy??"");s(ke,()=>qt,(ze,V)=>{V(ze,{type:"single",get value(){return e(pe)},onValueChange:le=>{e(oe)[k].groupBy=le||void 0},children:(le,he)=>{var Q=Wo(),Se=o(Q);s(Se,()=>Vt,(ct,Re)=>{Re(ct,{class:"h-7 w-[160px] text-xs",children:(Ze,De)=>{u();var de=m();ae(()=>fe(de,e(b).groupBy||"None")),t(Ze,de)},$$slots:{default:!0}})});var St=l(Se,2);s(St,()=>Ht,(ct,Re)=>{Re(ct,{children:(Ze,De)=>{var de=Fo(),Te=o(de);s(Te,()=>at,(r,f)=>{f(r,{value:"",children:(M,Ie)=>{u();var Ye=m("None");t(M,Ye)},$$slots:{default:!0}})});var Ge=l(Te,2);Ft(Ge,17,()=>ge(e(b).name),Qt,(r,f)=>{var M=v(),Ie=o(M);s(Ie,()=>at,(Ye,dt)=>{dt(Ye,{get value(){return e(f)},children:(it,xt)=>{u();var vt=m();ae(()=>fe(vt,e(f))),t(it,vt)},$$slots:{default:!0}})}),t(r,M)}),t(Ze,de)},$$slots:{default:!0}})}),t(le,Q)},$$slots:{default:!0}})})}D(U),t(K,be)};ve(qe,K=>{e(b).name&&ge(e(b).name).length>0&&K(je)})}D(te),t(y,te)}),D(Y);var ee=l(Y,2);s(ee,()=>cr,(y,b)=>{b(y,{children:(k,te)=>{var J=Io(),ye=o(J);$t(ye,{variant:"outline",onclick:xe,children:(qe,je)=>{u();var K=m("Cancel");t(qe,K)},$$slots:{default:!0}});var Qe=l(ye,2);$t(Qe,{onclick:A,children:(qe,je)=>{var K=v(),be=o(K);{var L=U=>{var ke=jo(),pe=o(ke);ja(pe,{class:"mr-1 h-4 w-4"}),u(),t(U,ke)},Ce=U=>{var ke=ko(),pe=o(ke);nr(pe,{class:"mr-1 h-4 w-4"}),u(),t(U,ke)};ve(be,U=>{c()?.id?U(L):U(Ce,!1)})}t(qe,K)},$$slots:{default:!0}}),t(k,J)},$$slots:{default:!0}})}),t(Ve,ot)},$$slots:{default:!0}})}),t(j,Be)},$$slots:{default:!0}})}),t(N,w),At()}var Bo=d('<div class="flex items-center justify-center py-20"><!></div>'),Ko=d("<!> ",1),Uo=d("<!> Create your own Widget Group",1),zo=d('<div class="flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center"><p class="mb-4 text-muted-foreground">No widget groups yet.</p> <div class="flex flex-wrap items-center justify-center gap-2"><!> <!></div></div>'),Ro=d("<!> <!>",1),Go=d("<span><!></span>"),Lo=d("<!> Delete Group",1),Vo=d("<!> <!>",1),Ho=d(" <!>",1),qo=d("<!> Delete Group",1),Yo=d("<!> <!>",1),Xo=d('<div class="ml-auto flex items-center gap-1"><span class="text-sm whitespace-nowrap text-muted-foreground"> </span> <!></div>'),Jo=d('<div class="flex items-center justify-center py-20"><!></div>'),Qo=d('<div class="flex items-center gap-2"><!> <div><!></div> <button class="inline-flex items-center justify-center rounded-md px-2 py-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"><!></button> <!> <!></div> <!>',1),Zo=d("<!> <!> <!>",1),en=d("<!> New Widget Group",1),tn=d("<!> <!>",1),rn=d('<!> <!> <div class="space-y-4"><div><label class="text-sm font-medium" for="new-group-name">Name</label> <!></div></div> <!>',1),an=d("<!> <!>",1),on=d("<!> <!> <!>",1),nn=d("<!> <!>",1),sn=d("<!> <!> <!>",1),ln=d("<!> <!>",1),dn=d("<!> <!> <!>",1),un=d("<!> <!>",1),cn=d("<!> <!> <!>",1),vn=d('<div class="space-y-4"><div class="mb-2 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"><h2 class="text-2xl font-bold tracking-tight">Metrics</h2> <div class="flex items-center gap-2"><!></div></div> <!></div> <!> <!> <!> <!>',1);function Vn(N,n){Wt(n,!0);const i=R(ka);let c=C(ht([])),_=C(""),h=C(!1),p=C(!1),P=C(!0),$=C(""),T=C(null),oe=C(!1),ge=C(!1),_e=C(""),F=C(!1),Ee=C(""),A=C(!1),xe=C(!1),w=C(""),Z=C(!1),O=C(null),G=C(ht([])),j=C(""),Ne=C(!1),Be=C(null),Oe=C(!1),ne=C(""),we=C(null),Ve=C(null),Ke=C(!1);const ot=ya(e(i)),g=ba(ot,e(i));let W=C(ht(ot.preset??"24h")),q=C(ht(Nt(g.from,e(i)))),Y=C(ht(Nt(g.to,e(i)))),B=C(ht(Bt(g.from,e(i)))),se=C(ht(Bt(g.to,e(i)))),me=C(null);const He=R(()=>e(we)?Ia(e(we),{timezone:e(i),format:"time"}):"");function Pe(){if(e(W)){const r=Cr(e(W),e(i));a(q,Nt(r.from,e(i)),!0),a(Y,Nt(r.to,e(i)),!0),a(B,Bt(r.from,e(i)),!0),a(se,Bt(r.to,e(i)),!0)}a(me,[new Date($e()),new Date(ee())],!0),e($)&&te(e($))}function X(){e(Ve)&&a(Ke,e(Ve).scrollWidth>e(Ve).clientWidth)}Xt(()=>{if(!e(Ve))return;const r=new ResizeObserver(()=>X());return r.observe(e(Ve)),X(),()=>r.disconnect()}),Xt(()=>{e(c),e(Ve)&&requestAnimationFrame(()=>X())});function $e(){const[r,f]=(e(B)||"00:00").split(":").map(Number),M=Rr({year:e(q).year,month:e(q).month,day:e(q).day,hour:r,minute:f},e(i));return Gr(M)}function ee(){const[r,f]=(e(se)||"23:59").split(":").map(Number),M=Rr({year:e(Y).year,month:e(Y).month,day:e(Y).day,hour:r,minute:f},e(i)).endOf("minute");return Gr(M)}async function y(){a(P,!0);try{const r=await pt.get("/widget-groups",{projectId:mt.currentProjectId??void 0});a(c,r.widgetGroups||[],!0),a(_,r.framework||"",!0),a(h,!!r.canPopulateDefaults),e(c).length>0&&!e($)&&a($,String(e(c)[0].id),!0)}catch(r){console.error("Failed to load widget groups:",r)}finally{a(P,!1)}}async function b(){a(p,!0);try{await pt.post("/widget-groups/populate-defaults",{},{projectId:mt.currentProjectId??void 0}),Lt.success("Successfully populated default charts",{position:"top-center"}),await y()}catch(r){Lt.error(r?.message||"Failed to populate default charts",{position:"top-center"})}finally{a(p,!1)}}const k=R(()=>e(_)?Zr[e(_)]??e(_):"");async function te(r){a(oe,!0);try{const f=await pt.get(`/widget-groups/${r}`,{projectId:mt.currentProjectId??void 0});a(T,f,!0),a(we,new Date,!0)}catch(f){console.error("Failed to load widget group:",f),a(T,null)}finally{a(oe,!1)}}Xt(()=>{e($)&&te(e($))}),Xt(()=>{e(Z)||a(j,"")});function J(r){a($,r,!0),a(Z,!1),a(O,null)}async function ye(){a(F,!0),a(Ee,"");try{const r=await pt.post("/widget-groups",{name:e(_e)},{projectId:mt.currentProjectId??void 0});Lt.success("Successfully created a new Widget Group",{position:"top-center"}),a(ge,!1),a(_e,""),await y(),a($,String(r.id),!0)}catch(r){r?.status===422?a(Ee,r.message,!0):console.error("Failed to create widget group:",r)}finally{a(F,!1)}}async function Qe(){if(e(T)){a(xe,!0),a(w,"");try{await pt.delete(`/widget-groups/${e(T).id}`,{projectId:mt.currentProjectId??void 0}),a(A,!1),a($,""),a(T,null),await y(),e(c).length>0&&a($,String(e(c)[0].id),!0)}catch(r){r?.status===422?a(w,r.message,!0):console.error("Failed to delete widget group:",r)}finally{a(xe,!1)}}}function qe(r,f,M){if(a(q,r.date,!0),a(B,r.time,!0),a(Y,f.date,!0),a(se,f.time,!0),a(W,M,!0),e(W)){const Ie=Cr(e(W),e(i));a(q,Nt(Ie.from,e(i)),!0),a(Y,Nt(Ie.to,e(i)),!0),a(B,Bt(Ie.from,e(i)),!0),a(se,Bt(Ie.to,e(i)),!0)}a(me,[new Date($e()),new Date(ee())],!0),Sa({preset:e(W)??void 0})}function je(r,f){a(W,null),a(q,new zr(r.getFullYear(),r.getMonth()+1,r.getDate()),!0),a(B,`${String(r.getHours()).padStart(2,"0")}:${String(r.getMinutes()).padStart(2,"0")}`),a(Y,new zr(f.getFullYear(),f.getMonth()+1,f.getDate()),!0),a(se,`${String(f.getHours()).padStart(2,"0")}:${String(f.getMinutes()).padStart(2,"0")}`),a(me,[r,f],!0)}async function K(){try{const r=await pt.get(`/metrics/discover?from=${$e()}&to=${ee()}`,{projectId:mt.currentProjectId??void 0});a(G,r.metrics||[],!0)}catch{}}function be(){a(O,null),a(Z,!0),K()}function L(r){a(O,r,!0),a(Z,!0),K()}function Ce(r){a(Be,r,!0),a(Ne,!0)}async function U(){if(!(!e(T)||!e(Be)?.id)){a(Oe,!0),a(ne,"");try{await pt.delete(`/widget-groups/${e(T).id}/widgets/${e(Be).id}`,{projectId:mt.currentProjectId??void 0}),a(Ne,!1),a(Be,null),await te(e($))}catch(r){r?.status===422?a(ne,r.message,!0):console.error("Failed to delete widget:",r)}finally{a(Oe,!1)}}}async function ke(r){if(!e(T))return;const f=e(T).widgets?.find(Ie=>Ie.id===r.id);if(!f)return;const M=f.isStarred??!1;f.isStarred=!M;try{await pt.put(`/widget-groups/${e(T).id}/widgets/${r.id}/star`,{},{projectId:mt.currentProjectId??void 0})}catch(Ie){f.isStarred=M,Lt.error(Ie?.message||"Failed to update star",{position:"top-center"})}}async function pe(r,f){if(e(T))try{await pt.put(`/widget-groups/${e(T).id}/widgets/${r}/move`,{offset:f},{projectId:mt.currentProjectId??void 0}),await te(e($)),Lt.success("Successfully moved the Widget",{position:"top-center"})}catch(M){console.error("Failed to move widget:",M)}}async function ze(r){if(e(T)){a(j,"");try{e(O)?.id?(await pt.put(`/widget-groups/${e(T).id}/widgets/${e(O).id}`,r,{projectId:mt.currentProjectId??void 0}),Lt.success("Successfully updated the Widget",{position:"top-center"})):(await pt.post(`/widget-groups/${e(T).id}/widgets`,r,{projectId:mt.currentProjectId??void 0}),Lt.success("Successfully added the Widget",{position:"top-center"})),a(Z,!1),a(O,null),await te(e($))}catch(f){f?.status===422?a(j,f.message,!0):console.error("Failed to save widget:",f)}}}const V=R(()=>e(c).find(r=>String(r.id)===e($))?.name??"");ta(()=>{if(y(),e(W)){const r=Cr(e(W),e(i));a(q,Nt(r.from,e(i)),!0),a(Y,Nt(r.to,e(i)),!0),a(B,Bt(r.from,e(i)),!0),a(se,Bt(r.to,e(i)),!0)}a(me,[new Date($e()),new Date(ee())],!0)});var le=vn(),he=o(le),Q=S(he),Se=l(S(Q),2),St=S(Se);Ca(St,{onApply:qe,get fromDate(){return e(q)},set fromDate(r){a(q,r,!0)},get toDate(){return e(Y)},set toDate(r){a(Y,r,!0)},get fromTime(){return e(B)},set fromTime(r){a(B,r,!0)},get toTime(){return e(se)},set toTime(r){a(se,r,!0)},get preset(){return e(W)},set preset(r){a(W,r,!0)}}),D(Se),D(Q);var ct=l(Q,2);{var Re=r=>{var f=Bo(),M=S(f);Br(M,{size:"xlg"}),D(f),t(r,f)},Ze=r=>{var f=v(),M=o(f);{var Ie=dt=>{var it=zo(),xt=l(S(it),2),vt=S(xt);{var Yt=nt=>{$t(nt,{onclick:b,get disabled(){return e(p)},children:(ut,ft)=>{var st=Ko(),Me=o(st);La(Me,{class:"mr-1 h-4 w-4"});var Fe=l(Me);ae(()=>fe(Fe,` ${e(p)?"Populating...":e(k)?`Populate default charts for ${e(k)}`:"Populate default charts"}`)),t(ut,st)},$$slots:{default:!0}})};ve(vt,nt=>{e(h)&&nt(Yt)})}var gt=l(vt,2);$t(gt,{variant:"outline",onclick:()=>a(ge,!0),children:(nt,ut)=>{var ft=Uo(),st=o(ft);nr(st,{class:"mr-1 h-4 w-4"}),u(),t(nt,ft)},$$slots:{default:!0}}),D(xt),D(it),t(dt,it)},Ye=dt=>{var it=v(),xt=o(it);s(xt,()=>na,(vt,Yt)=>{Yt(vt,{get value(){return e($)},onValueChange:J,children:(gt,nt)=>{var ut=Qo(),ft=o(ut),st=S(ft);{var Me=x=>{var I=v(),ue=o(I);s(ue,()=>qt,(Je,ce)=>{ce(Je,{type:"single",get value(){return e($)},onValueChange:Ae=>{Ae&&J(Ae)},children:(Ae,lt)=>{var Ue=Ro(),Ot=o(Ue);s(Ot,()=>Vt,(wt,Pt)=>{Pt(wt,{size:"sm",children:(yt,_t)=>{u();var rt=m();ae(()=>fe(rt,e(V))),t(yt,rt)},$$slots:{default:!0}})});var kt=l(Ot,2);s(kt,()=>Ht,(wt,Pt)=>{Pt(wt,{children:(yt,_t)=>{var rt=v(),Dt=o(rt);Ft(Dt,17,()=>e(c),Tt=>Tt.id,(Tt,Mt)=>{var It=v(),Et=o(It);{let jt=R(()=>String(e(Mt).id));s(Et,()=>at,(rr,$r)=>{$r(rr,{get value(){return e(jt)},children:(hr,Or)=>{u();var xr=m();ae(()=>fe(xr,e(Mt).name)),t(hr,xr)},$$slots:{default:!0}})})}t(Tt,It)}),t(yt,rt)},$$slots:{default:!0}})}),t(Ae,Ue)},$$slots:{default:!0}})}),t(x,I)};ve(st,x=>{e(Ke)&&x(Me)})}var Fe=l(st,2);let et;var Le=S(Fe);s(Le,()=>aa,(x,I)=>{I(x,{children:(ue,Je)=>{var ce=v(),Ae=o(ce);Ft(Ae,17,()=>e(c),lt=>lt.id,(lt,Ue)=>{var Ot=v(),kt=o(Ot);{let wt=R(()=>String(e(Ue).id));s(kt,()=>oa,(Pt,yt)=>{yt(Pt,{get value(){return e(wt)},children:(_t,rt)=>{u();var Dt=Ho(),Tt=o(Dt),Mt=l(Tt);{var It=Et=>{var jt=v(),rr=o(jt);s(rr,()=>Dr,($r,hr)=>{hr($r,{children:(Or,xr)=>{var jr=Vo(),kr=o(jr);{const wr=(ar,or)=>{let Ir=()=>or?.().props;var Rt=Go(),Pr=Gt=>Gt.stopPropagation(),yr=Gt=>{(Gt.key==="Enter"||Gt.key===" ")&&Gt.stopPropagation()};Jt(Rt,()=>({...Ir(),class:"-mr-1 ml-1 inline-flex h-5 w-5 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",role:"button",tabindex:0,onclick:Pr,onkeydown:yr}));var br=S(Rt);Wr(br,{class:"h-3.5 w-3.5"}),D(Rt),t(ar,Rt)};s(kr,()=>Tr,(ar,or)=>{or(ar,{child:wr,$$slots:{child:!0}})})}var Yr=l(kr,2);s(Yr,()=>Mr,(wr,ar)=>{ar(wr,{align:"start",children:(or,Ir)=>{var Rt=v(),Pr=o(Rt);s(Pr,()=>Kt,(yr,br)=>{br(yr,{class:"text-destructive",onclick:()=>a(A,!0),children:(Gt,fn)=>{var Er=Lo(),Xr=o(Er);Fr(Xr,{class:"mr-2 h-4 w-4"}),u(),t(Gt,Er)},$$slots:{default:!0}})}),t(or,Rt)},$$slots:{default:!0}})}),t(Or,jr)},$$slots:{default:!0}})}),t(Et,jt)};ve(Mt,Et=>{String(e(Ue).id)===e($)&&Et(It)})}ae(()=>fe(Tt,`${e(Ue).name??""} `)),t(_t,Dt)},$$slots:{default:!0}})})}t(lt,Ot)}),t(ue,ce)},$$slots:{default:!0}})}),D(Fe),ea(Fe,x=>a(Ve,x),()=>e(Ve));var re=l(Fe,2);re.__click=()=>a(ge,!0);var We=S(re);nr(We,{class:"h-4 w-4"}),D(re);var tt=l(re,2);{var z=x=>{var I=v(),ue=o(I);s(ue,()=>Dr,(Je,ce)=>{ce(Je,{children:(Ae,lt)=>{var Ue=Yo(),Ot=o(Ue);s(Ot,()=>Tr,(wt,Pt)=>{Pt(wt,{class:"inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:(yt,_t)=>{Wr(yt,{class:"h-4 w-4"})},$$slots:{default:!0}})});var kt=l(Ot,2);s(kt,()=>Mr,(wt,Pt)=>{Pt(wt,{align:"end",children:(yt,_t)=>{var rt=v(),Dt=o(rt);s(Dt,()=>Kt,(Tt,Mt)=>{Mt(Tt,{class:"text-destructive",onclick:()=>a(A,!0),children:(It,Et)=>{var jt=qo(),rr=o(jt);Fr(rr,{class:"mr-2 h-4 w-4"}),u(),t(It,jt)},$$slots:{default:!0}})}),t(yt,rt)},$$slots:{default:!0}})}),t(Ae,Ue)},$$slots:{default:!0}})}),t(x,I)};ve(tt,x=>{e(Ke)&&e($)&&x(z)})}var ie=l(tt,2);{var H=x=>{var I=Xo(),ue=S(I),Je=S(ue);D(ue);var ce=l(ue,2);$t(ce,{variant:"ghost",size:"sm",onclick:Pe,get disabled(){return e(oe)},children:(Ae,lt)=>{{let Ue=R(()=>e(oe)?"animate-spin":"");Ma(Ae,{get class(){return`h-4 w-4 ${e(Ue)??""}`}})}},$$slots:{default:!0}}),D(I),ae(()=>fe(Je,`Updated: ${e(He)??""}`)),t(x,I)};ve(ie,x=>{e(we)&&x(H)})}D(ft);var Xe=l(ft,2);Ft(Xe,17,()=>e(c),x=>x.id,(x,I)=>{var ue=v(),Je=o(ue);{let ce=R(()=>String(e(I).id));s(Je,()=>sa,(Ae,lt)=>{lt(Ae,{get value(){return e(ce)},children:(Ue,Ot)=>{var kt=v(),wt=o(kt);{var Pt=_t=>{var rt=Jo(),Dt=S(rt);Br(Dt,{size:"xlg"}),D(rt),t(_t,rt)},yt=_t=>{var rt=v(),Dt=o(rt);{var Tt=Mt=>{{let It=R(()=>e(T).widgets??[]),Et=R($e),jt=R(ee);mo(Mt,{get widgets(){return e(It)},get fromDateUTC(){return e(Et)},get toDateUTC(){return e(jt)},get timeDomain(){return e(me)},onEditWidget:L,onDeleteWidget:Ce,onMoveWidget:pe,onAddWidget:be,onToggleStar:ke,onRangeSelect:je})}};ve(Dt,Mt=>{e(T)&&e($)===String(e(I).id)&&Mt(Tt)},!0)}t(_t,rt)};ve(wt,_t=>{e(oe)&&e($)===String(e(I).id)?_t(Pt):_t(yt,!1)})}t(Ue,kt)},$$slots:{default:!0}})})}t(x,ue)}),ae(()=>et=Hr(Fe,1,"flex min-w-0 items-center overflow-hidden",null,et,{invisible:e(Ke),"h-0":e(Ke),"w-0":e(Ke)})),t(gt,ut)},$$slots:{default:!0}})}),t(dt,it)};ve(M,dt=>{e(c).length===0?dt(Ie):dt(Ye,!1)},!0)}t(r,f)};ve(ct,r=>{e(P)?r(Re):r(Ze,!1)})}D(he);var De=l(he,2);No(De,{get widget(){return e(O)},get availableMetrics(){return e(G)},get error(){return e(j)},onSave:ze,onCancel:()=>{a(Z,!1),a(O,null),a(j,"")},get open(){return e(Z)},set open(r){a(Z,r,!0)}});var de=l(De,2);s(de,()=>vr,(r,f)=>{f(r,{onOpenChange:M=>{M||a(Ee,"")},get open(){return e(ge)},set open(M){a(ge,M,!0)},children:(M,Ie)=>{var Ye=v(),dt=o(Ye);s(dt,()=>dr,(it,xt)=>{xt(it,{interactOutsideBehavior:"close",children:(vt,Yt)=>{var gt=rn(),nt=o(gt);s(nt,()=>ir,(Le,re)=>{re(Le,{children:(We,tt)=>{var z=v(),ie=o(z);s(ie,()=>ur,(H,Xe)=>{Xe(H,{children:(x,I)=>{u();var ue=m("New Widget Group");t(x,ue)},$$slots:{default:!0}})}),t(We,z)},$$slots:{default:!0}})});var ut=l(nt,2);{var ft=Le=>{var re=v(),We=o(re);s(We,()=>_r,(tt,z)=>{z(tt,{variant:"destructive",class:"border-red-200 bg-red-50",children:(ie,H)=>{var Xe=Zo(),x=o(Xe);gr(x,{class:"h-4 w-4 text-red-700"});var I=l(x,2);s(I,()=>mr,(Je,ce)=>{ce(Je,{class:"text-red-800",children:(Ae,lt)=>{u();var Ue=m("Error");t(Ae,Ue)},$$slots:{default:!0}})});var ue=l(I,2);s(ue,()=>pr,(Je,ce)=>{ce(Je,{class:"text-red-700",children:(Ae,lt)=>{u();var Ue=m();ae(()=>fe(Ue,e(Ee))),t(Ae,Ue)},$$slots:{default:!0}})}),t(ie,Xe)},$$slots:{default:!0}})}),t(Le,re)};ve(ut,Le=>{e(Ee)&&Le(ft)})}var st=l(ut,2),Me=S(st),Fe=l(S(Me),2);Sr(Fe,{id:"new-group-name",placeholder:"My Group",maxlength:12,get value(){return e(_e)},set value(Le){a(_e,Le,!0)}}),D(Me),D(st);var et=l(st,2);s(et,()=>cr,(Le,re)=>{re(Le,{children:(We,tt)=>{var z=tn(),ie=o(z);$t(ie,{variant:"outline",onclick:()=>a(ge,!1),children:(Xe,x)=>{u();var I=m("Cancel");t(Xe,I)},$$slots:{default:!0}});var H=l(ie,2);$t(H,{onclick:ye,get disabled(){return e(F)},children:(Xe,x)=>{var I=v(),ue=o(I);{var Je=Ae=>{var lt=m("Creating...");t(Ae,lt)},ce=Ae=>{var lt=en(),Ue=o(lt);nr(Ue,{class:"mr-1 h-4 w-4"}),u(),t(Ae,lt)};ve(ue,Ae=>{e(F)?Ae(Je):Ae(ce,!1)})}t(Xe,I)},$$slots:{default:!0}}),t(We,z)},$$slots:{default:!0}})}),t(vt,gt)},$$slots:{default:!0}})}),t(M,Ye)},$$slots:{default:!0}})});var Te=l(de,2);s(Te,()=>vr,(r,f)=>{f(r,{onOpenChange:M=>{M||a(w,"")},get open(){return e(A)},set open(M){a(A,M,!0)},children:(M,Ie)=>{var Ye=v(),dt=o(Ye);s(dt,()=>dr,(it,xt)=>{xt(it,{interactOutsideBehavior:"close",children:(vt,Yt)=>{var gt=sn(),nt=o(gt);s(nt,()=>ir,(Me,Fe)=>{Fe(Me,{children:(et,Le)=>{var re=an(),We=o(re);s(We,()=>ur,(z,ie)=>{ie(z,{children:(H,Xe)=>{u();var x=m("Delete Widget Group");t(H,x)},$$slots:{default:!0}})});var tt=l(We,2);s(tt,()=>Kr,(z,ie)=>{ie(z,{children:(H,Xe)=>{u();var x=m();ae(()=>fe(x,`Are you sure you want to delete "${e(T)?.name??""}"? This will remove all widgets in this
+ group. This action cannot be undone.`)),t(H,x)},$$slots:{default:!0}})}),t(et,re)},$$slots:{default:!0}})});var ut=l(nt,2);{var ft=Me=>{var Fe=v(),et=o(Fe);s(et,()=>_r,(Le,re)=>{re(Le,{variant:"destructive",class:"border-red-200 bg-red-50",children:(We,tt)=>{var z=on(),ie=o(z);gr(ie,{class:"h-4 w-4 text-red-700"});var H=l(ie,2);s(H,()=>mr,(x,I)=>{I(x,{class:"text-red-800",children:(ue,Je)=>{u();var ce=m("Error");t(ue,ce)},$$slots:{default:!0}})});var Xe=l(H,2);s(Xe,()=>pr,(x,I)=>{I(x,{class:"text-red-700",children:(ue,Je)=>{u();var ce=m();ae(()=>fe(ce,e(w))),t(ue,ce)},$$slots:{default:!0}})}),t(We,z)},$$slots:{default:!0}})}),t(Me,Fe)};ve(ut,Me=>{e(w)&&Me(ft)})}var st=l(ut,2);s(st,()=>cr,(Me,Fe)=>{Fe(Me,{children:(et,Le)=>{var re=nn(),We=o(re);$t(We,{variant:"outline",onclick:()=>a(A,!1),get disabled(){return e(xe)},children:(z,ie)=>{u();var H=m("Cancel");t(z,H)},$$slots:{default:!0}});var tt=l(We,2);$t(tt,{variant:"destructive",onclick:Qe,get disabled(){return e(xe)},children:(z,ie)=>{u();var H=m();ae(()=>fe(H,e(xe)?"Deleting...":"Delete")),t(z,H)},$$slots:{default:!0}}),t(et,re)},$$slots:{default:!0}})}),t(vt,gt)},$$slots:{default:!0}})}),t(M,Ye)},$$slots:{default:!0}})});var Ge=l(Te,2);s(Ge,()=>vr,(r,f)=>{f(r,{onOpenChange:M=>{M||a(ne,"")},get open(){return e(Ne)},set open(M){a(Ne,M,!0)},children:(M,Ie)=>{var Ye=v(),dt=o(Ye);s(dt,()=>dr,(it,xt)=>{xt(it,{interactOutsideBehavior:"close",children:(vt,Yt)=>{var gt=cn(),nt=o(gt);s(nt,()=>ir,(Me,Fe)=>{Fe(Me,{children:(et,Le)=>{var re=ln(),We=o(re);s(We,()=>ur,(z,ie)=>{ie(z,{children:(H,Xe)=>{u();var x=m("Delete Widget");t(H,x)},$$slots:{default:!0}})});var tt=l(We,2);s(tt,()=>Kr,(z,ie)=>{ie(z,{children:(H,Xe)=>{u();var x=m();ae(()=>fe(x,`Are you sure you want to delete "${e(Be)?.title??""}"? This action cannot be undone.`)),t(H,x)},$$slots:{default:!0}})}),t(et,re)},$$slots:{default:!0}})});var ut=l(nt,2);{var ft=Me=>{var Fe=v(),et=o(Fe);s(et,()=>_r,(Le,re)=>{re(Le,{variant:"destructive",class:"border-red-200 bg-red-50",children:(We,tt)=>{var z=dn(),ie=o(z);gr(ie,{class:"h-4 w-4 text-red-700"});var H=l(ie,2);s(H,()=>mr,(x,I)=>{I(x,{class:"text-red-800",children:(ue,Je)=>{u();var ce=m("Error");t(ue,ce)},$$slots:{default:!0}})});var Xe=l(H,2);s(Xe,()=>pr,(x,I)=>{I(x,{class:"text-red-700",children:(ue,Je)=>{u();var ce=m();ae(()=>fe(ce,e(ne))),t(ue,ce)},$$slots:{default:!0}})}),t(We,z)},$$slots:{default:!0}})}),t(Me,Fe)};ve(ut,Me=>{e(ne)&&Me(ft)})}var st=l(ut,2);s(st,()=>cr,(Me,Fe)=>{Fe(Me,{children:(et,Le)=>{var re=un(),We=o(re);$t(We,{variant:"outline",onclick:()=>a(Ne,!1),get disabled(){return e(Oe)},children:(z,ie)=>{u();var H=m("Cancel");t(z,H)},$$slots:{default:!0}});var tt=l(We,2);$t(tt,{variant:"destructive",onclick:U,get disabled(){return e(Oe)},children:(z,ie)=>{u();var H=m();ae(()=>fe(H,e(Oe)?"Deleting...":"Delete")),t(z,H)},$$slots:{default:!0}}),t(et,re)},$$slots:{default:!0}})}),t(vt,gt)},$$slots:{default:!0}})}),t(M,Ye)},$$slots:{default:!0}})}),t(N,le),At()}Ar(["click"]);export{Vn as component,Ln as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/20.DsDZMXLc.js.map b/backend/static/frontend/_app/immutable/nodes/20.DsDZMXLc.js.map
new file mode 100644
index 00000000..58cc04f4
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/20.DsDZMXLc.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"20.DsDZMXLc.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-sub.svelte","../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-sub-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-sub-trigger.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/ellipsis-vertical.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/move.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/pencil.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/plus.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/sparkles.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/x.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-sub.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte","../../../../../../src/routes/metrics/+page.ts","../../../../../../src/lib/components/dashboard/widget-grid.svelte","../../../../../../src/lib/components/dashboard/tag-filter.svelte","../../../../../../src/lib/components/dashboard/widget-config-panel.svelte","../../../../../../src/routes/metrics/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { MenuSubProps } from \"../types.js\";\n\timport { MenuSubmenuState } from \"../menu.svelte.js\";\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tchildren,\n\t}: MenuSubProps = $props();\n\n\tMenuSubmenuState.create({\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange?.(v);\n\t\t\t}\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n<FloatingLayer>\n\t{@render children?.()}\n</FloatingLayer>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuSubContentProps } from \"../types.js\";\n\timport { MenuOpenEvent, MenuContentState } from \"../menu.svelte.js\";\n\timport { SUB_CLOSE_KEYS } from \"../utils.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport PopperLayer from \"../../utilities/popper-layer/popper-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { isHTMLElement } from \"../../../internal/is.js\";\n\timport { getFloatingContentCSSVars } from \"../../../internal/floating-svelte/floating-utils.svelte.js\";\n\timport PopperLayerForceMount from \"../../utilities/popper-layer/popper-layer-force-mount.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchildren,\n\t\tchild,\n\t\tloop = true,\n\t\tonInteractOutside = noop,\n\t\tforceMount = false,\n\t\tonEscapeKeydown = noop,\n\t\tinteractOutsideBehavior = \"defer-otherwise-close\",\n\t\tescapeKeydownBehavior = \"defer-otherwise-close\",\n\t\tonOpenAutoFocus: onOpenAutoFocusProp = noop,\n\t\tonCloseAutoFocus: onCloseAutoFocusProp = noop,\n\t\tonFocusOutside = noop,\n\t\tside = \"right\",\n\t\ttrapFocus = false,\n\t\t...restProps\n\t}: MenuSubContentProps = $props();\n\n\tconst subContentState = MenuContentState.create({\n\t\tid: boxWith(() => id),\n\t\tloop: boxWith(() => loop),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tisSub: true,\n\t\tonCloseAutoFocus: boxWith(() => handleCloseAutoFocus),\n\t});\n\n\tfunction onkeydown(e: KeyboardEvent) {\n\t\tconst isKeyDownInside = (e.currentTarget as HTMLElement).contains(e.target as HTMLElement);\n\t\tconst isCloseKey = SUB_CLOSE_KEYS[\n\t\t\tsubContentState.parentMenu.root.opts.dir.current\n\t\t].includes(e.key);\n\t\tif (isKeyDownInside && isCloseKey) {\n\t\t\tsubContentState.parentMenu.onClose();\n\t\t\tconst triggerNode = subContentState.parentMenu.triggerNode;\n\t\t\ttriggerNode?.focus();\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\tconst dataAttr = $derived(subContentState.parentMenu.root.getBitsAttr(\"sub-content\"));\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, subContentState.props, {\n\t\t\tside,\n\t\t\tonkeydown,\n\t\t\t[dataAttr]: \"\",\n\t\t})\n\t);\n\n\tfunction handleOpenAutoFocus(e: Event) {\n\t\tonOpenAutoFocusProp(e);\n\t\tif (e.defaultPrevented) return;\n\t\te.preventDefault();\n\t\tif (\n\t\t\tsubContentState.parentMenu.root.isUsingKeyboard &&\n\t\t\tsubContentState.parentMenu.contentNode\n\t\t) {\n\t\t\tMenuOpenEvent.dispatch(subContentState.parentMenu.contentNode);\n\t\t}\n\t}\n\n\tfunction handleCloseAutoFocus(e: Event) {\n\t\tonCloseAutoFocusProp(e);\n\t\tif (e.defaultPrevented) return;\n\t\te.preventDefault();\n\t}\n\n\tfunction handleInteractOutside(e: PointerEvent) {\n\t\tonInteractOutside(e);\n\t\tif (e.defaultPrevented) return;\n\t\tsubContentState.parentMenu.onClose();\n\t}\n\n\tfunction handleEscapeKeydown(e: KeyboardEvent) {\n\t\tonEscapeKeydown(e);\n\t\tif (e.defaultPrevented) return;\n\t\tsubContentState.parentMenu.onClose();\n\t}\n\n\tfunction handleOnFocusOutside(e: FocusEvent) {\n\t\tonFocusOutside(e);\n\t\tif (e.defaultPrevented) return;\n\t\t// We prevent closing when the trigger is focused to avoid triggering a re-open animation\n\t\t// on pointer interaction.\n\t\tif (!isHTMLElement(e.target)) return;\n\t\tif (e.target.id !== subContentState.parentMenu.triggerNode?.id) {\n\t\t\tsubContentState.parentMenu.onClose();\n\t\t}\n\t}\n</script>\n\n{#if forceMount}\n\t<PopperLayerForceMount\n\t\t{...mergedProps}\n\t\tref={subContentState.opts.ref}\n\t\t{interactOutsideBehavior}\n\t\t{escapeKeydownBehavior}\n\t\tonOpenAutoFocus={handleOpenAutoFocus}\n\t\tenabled={subContentState.parentMenu.opts.open.current}\n\t\tonInteractOutside={handleInteractOutside}\n\t\tonEscapeKeydown={handleEscapeKeydown}\n\t\tonFocusOutside={handleOnFocusOutside}\n\t\tpreventScroll={false}\n\t\t{loop}\n\t\t{trapFocus}\n\t\tshouldRender={subContentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, mergedProps, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"menu\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({\n\t\t\t\t\tprops: finalProps,\n\t\t\t\t\twrapperProps,\n\t\t\t\t\t...subContentState.snippetProps,\n\t\t\t\t})}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayerForceMount>\n{:else if !forceMount}\n\t<PopperLayer\n\t\t{...mergedProps}\n\t\tref={subContentState.opts.ref}\n\t\t{interactOutsideBehavior}\n\t\t{escapeKeydownBehavior}\n\t\tonCloseAutoFocus={handleCloseAutoFocus}\n\t\tonOpenAutoFocus={handleOpenAutoFocus}\n\t\topen={subContentState.parentMenu.opts.open.current}\n\t\tonInteractOutside={handleInteractOutside}\n\t\tonEscapeKeydown={handleEscapeKeydown}\n\t\tonFocusOutside={handleOnFocusOutside}\n\t\tpreventScroll={false}\n\t\t{loop}\n\t\t{trapFocus}\n\t\tshouldRender={subContentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, mergedProps, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"menu\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({\n\t\t\t\t\tprops: finalProps,\n\t\t\t\t\twrapperProps,\n\t\t\t\t\t...subContentState.snippetProps,\n\t\t\t\t})}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayer>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuSubTriggerProps } from \"../types.js\";\n\timport { MenuSubTriggerState } from \"../menu.svelte.js\";\n\timport FloatingLayerAnchor from \"../../utilities/floating-layer/components/floating-layer-anchor.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tdisabled = false,\n\t\tref = $bindable(null),\n\t\tchildren,\n\t\tchild,\n\t\tonSelect = noop,\n\t\topenDelay = 100,\n\t\t...restProps\n\t}: MenuSubTriggerProps = $props();\n\n\tconst subTriggerState = MenuSubTriggerState.create({\n\t\tdisabled: boxWith(() => disabled),\n\t\tonSelect: boxWith(() => onSelect),\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\topenDelay: boxWith(() => openDelay),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, subTriggerState.props));\n</script>\n\n<FloatingLayerAnchor {id} ref={subTriggerState.opts.ref}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<div {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</div>\n\t{/if}\n</FloatingLayerAnchor>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"1\" }], [\"circle\", { \"cx\": \"12\", \"cy\": \"5\", \"r\": \"1\" }], [\"circle\", { \"cx\": \"12\", \"cy\": \"19\", \"r\": \"1\" }]];\n/**\n * @component @name EllipsisVertical\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxIiAvPgogIDxjaXJjbGUgY3g9IjEyIiBjeT0iNSIgcj0iMSIgLz4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjE5IiByPSIxIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/ellipsis-vertical\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"ellipsis-vertical\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M12 2v20\" }], [\"path\", { \"d\": \"m15 19-3 3-3-3\" }], [\"path\", { \"d\": \"m19 9 3 3-3 3\" }], [\"path\", { \"d\": \"M2 12h20\" }], [\"path\", { \"d\": \"m5 9-3 3 3 3\" }], [\"path\", { \"d\": \"m9 5 3-3 3 3\" }]];\n/**\n * @component @name Move\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMnYyMCIgLz4KICA8cGF0aCBkPSJtMTUgMTktMyAzLTMtMyIgLz4KICA8cGF0aCBkPSJtMTkgOSAzIDMtMyAzIiAvPgogIDxwYXRoIGQ9Ik0yIDEyaDIwIiAvPgogIDxwYXRoIGQ9Im01IDktMyAzIDMgMyIgLz4KICA8cGF0aCBkPSJtOSA1IDMtMyAzIDMiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/move\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"move\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"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\" }], [\"path\", { \"d\": \"m15 5 4 4\" }]];\n/**\n * @component @name Pencil\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEuMTc0IDYuODEyYTEgMSAwIDAgMC0zLjk4Ni0zLjk4N0wzLjg0MiAxNi4xNzRhMiAyIDAgMCAwLS41LjgzbC0xLjMyMSA0LjM1MmEuNS41IDAgMCAwIC42MjMuNjIybDQuMzUzLTEuMzJhMiAyIDAgMCAwIC44My0uNDk3eiIgLz4KICA8cGF0aCBkPSJtMTUgNSA0IDQiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/pencil\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"pencil\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M5 12h14\" }], [\"path\", { \"d\": \"M12 5v14\" }]];\n/**\n * @component @name Plus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNSAxMmgxNCIgLz4KICA8cGF0aCBkPSJNMTIgNXYxNCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/plus\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"plus\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"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\" }], [\"path\", { \"d\": \"M20 2v4\" }], [\"path\", { \"d\": \"M22 4h-4\" }], [\"circle\", { \"cx\": \"4\", \"cy\": \"20\", \"r\": \"2\" }]];\n/**\n * @component @name Sparkles\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTEuMDE3IDIuODE0YTEgMSAwIDAgMSAxLjk2NiAwbDEuMDUxIDUuNTU4YTIgMiAwIDAgMCAxLjU5NCAxLjU5NGw1LjU1OCAxLjA1MWExIDEgMCAwIDEgMCAxLjk2NmwtNS41NTggMS4wNTFhMiAyIDAgMCAwLTEuNTk0IDEuNTk0bC0xLjA1MSA1LjU1OGExIDEgMCAwIDEtMS45NjYgMGwtMS4wNTEtNS41NThhMiAyIDAgMCAwLTEuNTk0LTEuNTk0bC01LjU1OC0xLjA1MWExIDEgMCAwIDEgMC0xLjk2Nmw1LjU1OC0xLjA1MWEyIDIgMCAwIDAgMS41OTQtMS41OTR6IiAvPgogIDxwYXRoIGQ9Ik0yMCAydjQiIC8+CiAgPHBhdGggZD0iTTIyIDRoLTQiIC8+CiAgPGNpcmNsZSBjeD0iNCIgY3k9IjIwIiByPSIyIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/sparkles\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"sparkles\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M18 6 6 18\" }], [\"path\", { \"d\": \"m6 6 12 12\" }]];\n/**\n * @component @name X\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTggNiA2IDE4IiAvPgogIDxwYXRoIGQ9Im02IDYgMTIgMTIiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/x\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"x\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet { open = $bindable(false), ...restProps }: DropdownMenuPrimitive.SubProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Sub bind:open {...restProps} />\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: DropdownMenuPrimitive.SubContentProps = $props();\n</script>\n\n<DropdownMenuPrimitive.SubContent\n\tbind:ref\n\tdata-slot=\"dropdown-menu-sub-content\"\n\tclass={cn(\n\t\t\"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport ChevronRightIcon from \"@lucide/svelte/icons/chevron-right\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tinset,\n\t\tchildren,\n\t\t...restProps\n\t}: DropdownMenuPrimitive.SubTriggerProps & {\n\t\tinset?: boolean;\n\t} = $props();\n</script>\n\n<DropdownMenuPrimitive.SubTrigger\n\tbind:ref\n\tdata-slot=\"dropdown-menu-sub-trigger\"\n\tdata-inset={inset}\n\tclass={cn(\n\t\t\"data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n\t<ChevronRightIcon class=\"ms-auto size-4\" />\n</DropdownMenuPrimitive.SubTrigger>\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n\timport * as Card from '$lib/components/ui/card';\n\timport * as DropdownMenu from '$lib/components/ui/dropdown-menu';\n\timport {\n\t\tPlus,\n\t\tEllipsisVertical,\n\t\tPencil,\n\t\tMove,\n\t\tArrowUp,\n\t\tArrowDown,\n\t\tArrowLeft,\n\t\tArrowRight,\n\t\tStar,\n\t\tTrash2\n\t} from 'lucide-svelte';\n\timport WidgetRenderer from './widget-renderer.svelte';\n\n\ttype Widget = {\n\t\tid: number;\n\t\ttitle: string;\n\t\twidgetType: string;\n\t\tconfig: any;\n\t\tposition: number;\n\t\tisStarred?: boolean;\n\t};\n\n\tlet {\n\t\twidgets = [],\n\t\tfromDateUTC,\n\t\ttoDateUTC,\n\t\ttimeDomain = null,\n\t\tonEditWidget,\n\t\tonDeleteWidget,\n\t\tonMoveWidget,\n\t\tonAddWidget,\n\t\tonToggleStar,\n\t\tonRangeSelect\n\t} = $props<{\n\t\twidgets: Widget[];\n\t\tfromDateUTC: string;\n\t\ttoDateUTC: string;\n\t\ttimeDomain: [Date, Date] | null;\n\t\tonEditWidget?: (widget: Widget) => void;\n\t\tonDeleteWidget?: (widget: Widget) => void;\n\t\tonMoveWidget?: (widgetId: number, offset: number) => void;\n\t\tonAddWidget?: () => void;\n\t\tonToggleStar?: (widget: Widget) => void;\n\t\tonRangeSelect?: (from: Date, to: Date) => void;\n\t}>();\n\n\tlet sharedHoverTime = $state<Date | null>(null);\n\tlet cols = $state(3);\n\n\t$effect(() => {\n\t\tconst mql = window.matchMedia('(min-width: 768px)');\n\t\tconst handler = (e: MediaQueryListEvent | MediaQueryList) => {\n\t\t\tcols = e.matches ? 3 : 1;\n\t\t};\n\t\thandler(mql);\n\t\tmql.addEventListener('change', handler);\n\t\treturn () => mql.removeEventListener('change', handler);\n\t});\n\n\tconst sortedWidgets = $derived([...widgets].sort((a, b) => a.position - b.position));\n</script>\n\n<div class=\"grid grid-cols-1 gap-4 md:grid-cols-3\">\n\t{#each sortedWidgets as widget, i (widget.id)}\n\t\t<div>\n\t\t\t<Card.Root class=\"h-full gap-0\">\n\t\t\t\t<Card.Header class=\"pr-2 pb-1\">\n\t\t\t\t\t<div class=\"flex items-center justify-between\">\n\t\t\t\t\t\t<Card.Title class=\"text-sm font-medium\">{widget.title}{#if widget.config?.unit}<span class=\"text-xs font-normal text-muted-foreground\"> ({widget.config.unit})</span>{/if}</Card.Title>\n\t\t\t\t\t\t<div class=\"flex items-center\">\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\taria-label={widget.isStarred ? 'Unstar widget' : 'Star widget'}\n\t\t\t\t\t\t\t\ttitle={widget.isStarred ? 'Unstar' : 'Star'}\n\t\t\t\t\t\t\t\tclass=\"inline-flex h-7 w-7 items-center justify-center rounded-md transition-colors hover:bg-muted {widget.isStarred ? 'text-yellow-500 hover:text-yellow-600' : 'text-muted-foreground hover:text-foreground'}\"\n\t\t\t\t\t\t\t\tonclick={() => onToggleStar?.(widget)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Star class=\"h-4 w-4 {widget.isStarred ? 'fill-current' : ''}\" />\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t<DropdownMenu.Root>\n\t\t\t\t\t\t\t<DropdownMenu.Trigger\n\t\t\t\t\t\t\t\tclass=\"inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<EllipsisVertical class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t</DropdownMenu.Trigger>\n\t\t\t\t\t\t\t<DropdownMenu.Content align=\"end\">\n\t\t\t\t\t\t\t\t<DropdownMenu.Item onclick={() => onEditWidget?.(widget)}>\n\t\t\t\t\t\t\t\t\t<Pencil class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tEdit\n\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t<DropdownMenu.Sub>\n\t\t\t\t\t\t\t\t\t<DropdownMenu.SubTrigger>\n\t\t\t\t\t\t\t\t\t\t<Move class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\tMove\n\t\t\t\t\t\t\t\t\t</DropdownMenu.SubTrigger>\n\t\t\t\t\t\t\t\t\t<DropdownMenu.SubContent>\n\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\tdisabled={i < cols}\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => onMoveWidget?.(widget.id, -cols)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<ArrowUp class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tUp\n\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\tdisabled={i > sortedWidgets.length - 1 - cols}\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => onMoveWidget?.(widget.id, cols)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<ArrowDown class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tDown\n\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t\t{#if cols > 1}\n\t\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled={i % cols === 0}\n\t\t\t\t\t\t\t\t\t\t\t\tonclick={() => onMoveWidget?.(widget.id, -1)}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<ArrowLeft class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t\tLeft\n\t\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled={i % cols === cols - 1 || i + 1 >= sortedWidgets.length}\n\t\t\t\t\t\t\t\t\t\t\t\tonclick={() => onMoveWidget?.(widget.id, 1)}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<ArrowRight class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t\tRight\n\t\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</DropdownMenu.SubContent>\n\t\t\t\t\t\t\t\t</DropdownMenu.Sub>\n\t\t\t\t\t\t\t\t<DropdownMenu.Separator />\n\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\tclass=\"text-destructive\"\n\t\t\t\t\t\t\t\t\tonclick={() => onDeleteWidget?.(widget)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Trash2 class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t</DropdownMenu.Content>\n\t\t\t\t\t\t</DropdownMenu.Root>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content class=\"p-1\">\n\t\t\t\t\t<WidgetRenderer\n\t\t\t\t\t\t{widget}\n\t\t\t\t\t\t{fromDateUTC}\n\t\t\t\t\t\t{toDateUTC}\n\t\t\t\t\t\t{timeDomain}\n\t\t\t\t\t\t{onRangeSelect}\n\t\t\t\t\t\t{sharedHoverTime}\n\t\t\t\t\t\tonHoverTimeChange={(time) => (sharedHoverTime = time)}\n\t\t\t\t\t\tisSourceChart={false}\n\t\t\t\t\t/>\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t</div>\n\t{/each}\n\t<button\n\t\tclass=\"flex min-h-[240px] cursor-pointer items-center justify-center rounded-lg border border-dashed border-muted-foreground/25 text-muted-foreground transition-colors hover:border-primary hover:text-primary\"\n\t\tonclick={() => onAddWidget?.()}\n\t>\n\t\t<div class=\"flex flex-col items-center gap-2\">\n\t\t\t<Plus class=\"h-8 w-8\" />\n\t\t\t<span class=\"text-sm font-medium\">Add Metric Widget</span>\n\t\t</div>\n\t</button>\n</div>\n","<script lang=\"ts\">\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Select from '$lib/components/ui/select';\n\timport { X } from 'lucide-svelte';\n\n\tlet {\n\t\ttagKeys = [],\n\t\tactiveFilters = {},\n\t\tonFilterChange,\n\t\tonLoadTagValues\n\t} = $props<{\n\t\ttagKeys: string[];\n\t\tactiveFilters: Record<string, string>;\n\t\tonFilterChange: (filters: Record<string, string>) => void;\n\t\tonLoadTagValues: (key: string) => Promise<string[]>;\n\t}>();\n\n\tlet selectedKey = $state('');\n\tlet tagValueOptions = $state<Record<string, string[]>>({});\n\tlet loadingValues = $state(false);\n\n\tasync function handleKeySelect(key: string) {\n\t\tselectedKey = key;\n\t\tif (!tagValueOptions[key]) {\n\t\t\tloadingValues = true;\n\t\t\ttry {\n\t\t\t\ttagValueOptions[key] = await onLoadTagValues(key);\n\t\t\t} catch {\n\t\t\t\ttagValueOptions[key] = [];\n\t\t\t} finally {\n\t\t\t\tloadingValues = false;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction handleValueSelect(value: string) {\n\t\tif (!selectedKey) return;\n\t\tconst newFilters = { ...activeFilters, [selectedKey]: value };\n\t\tonFilterChange(newFilters);\n\t\tselectedKey = '';\n\t}\n\n\tfunction removeFilter(key: string) {\n\t\tconst newFilters = { ...activeFilters };\n\t\tdelete newFilters[key];\n\t\tonFilterChange(newFilters);\n\t}\n\n\tconst availableKeys = $derived(tagKeys.filter((k: string) => !(k in activeFilters)));\n</script>\n\n<div class=\"flex flex-wrap items-center gap-2\">\n\t{#each Object.entries(activeFilters) as [key, value]}\n\t\t<div\n\t\t\tclass=\"flex items-center gap-1 rounded-md border bg-muted/50 px-2 py-1 text-xs\"\n\t\t>\n\t\t\t<span class=\"font-medium\">{key}</span>\n\t\t\t<span class=\"text-muted-foreground\">=</span>\n\t\t\t<span>{value}</span>\n\t\t\t<button\n\t\t\t\tclass=\"ml-1 rounded hover:bg-muted\"\n\t\t\t\tonclick={() => removeFilter(key)}\n\t\t\t>\n\t\t\t\t<X class=\"h-3 w-3\" />\n\t\t\t</button>\n\t\t</div>\n\t{/each}\n\n\t{#if availableKeys.length > 0}\n\t\t{#if selectedKey}\n\t\t\t<Select.Root\n\t\t\t\ttype=\"single\"\n\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\tif (v) handleValueSelect(v);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Select.Trigger class=\"h-7 w-[140px] text-xs\">\n\t\t\t\t\t{#if loadingValues}\n\t\t\t\t\t\tLoading...\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tSelect value\n\t\t\t\t\t{/if}\n\t\t\t\t</Select.Trigger>\n\t\t\t\t<Select.Content>\n\t\t\t\t\t{#each tagValueOptions[selectedKey] ?? [] as val}\n\t\t\t\t\t\t<Select.Item value={val}>{val}</Select.Item>\n\t\t\t\t\t{/each}\n\t\t\t\t</Select.Content>\n\t\t\t</Select.Root>\n\t\t\t<Button variant=\"ghost\" size=\"sm\" class=\"h-7 px-2 text-xs\" onclick={() => (selectedKey = '')}>\n\t\t\t\tCancel\n\t\t\t</Button>\n\t\t{:else}\n\t\t\t<Select.Root\n\t\t\t\ttype=\"single\"\n\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\tif (v) handleKeySelect(v);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Select.Trigger class=\"h-7 w-[140px] text-xs\">\n\t\t\t\t\t+ Filter by tag\n\t\t\t\t</Select.Trigger>\n\t\t\t\t<Select.Content>\n\t\t\t\t\t{#each availableKeys as key}\n\t\t\t\t\t\t<Select.Item value={key}>{key}</Select.Item>\n\t\t\t\t\t{/each}\n\t\t\t\t</Select.Content>\n\t\t\t</Select.Root>\n\t\t{/if}\n\t{/if}\n</div>\n","<script lang=\"ts\">\n\timport { Button } from '$lib/components/ui/button';\n\timport { Input } from '$lib/components/ui/input';\n\timport * as Select from '$lib/components/ui/select';\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport TagFilter from './tag-filter.svelte';\n\timport { api } from '$lib/api';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { Plus, Check, CircleAlert } from 'lucide-svelte';\n\timport * as Alert from '$lib/components/ui/alert';\n\timport type { DiscoveredMetric } from '$lib/types/dashboard';\n\n\ttype WidgetSource = {\n\t\ttype: 'metric';\n\t\tname: string;\n\t\taggregation: string;\n\t\ttagFilters?: Record<string, string>;\n\t\tgroupBy?: string;\n\t};\n\n\tlet {\n\t\topen = $bindable(false),\n\t\twidget = null,\n\t\tavailableMetrics = [],\n\t\terror = '',\n\t\tonSave,\n\t\tonCancel\n\t} = $props<{\n\t\topen: boolean;\n\t\twidget: { id?: number; title: string; widgetType: string; config: any } | null;\n\t\tavailableMetrics: DiscoveredMetric[];\n\t\terror?: string;\n\t\tonSave: (data: { title: string; widgetType: string; config: any }) => void;\n\t\tonCancel: () => void;\n\t}>();\n\n\tlet title = $state(widget?.title ?? '');\n\tlet widgetType = $state(widget?.widgetType ?? 'line_chart');\n\tlet unit = $state(widget?.config?.unit ?? '');\n\tlet unitManuallySet = $state(!!widget?.config?.unit);\n\tlet sources = $state<WidgetSource[]>(\n\t\twidget?.config?.sources ?? [{ type: 'metric', name: '', aggregation: 'avg' }]\n\t);\n\n\t$effect(() => {\n\t\tif (open) {\n\t\t\ttitle = widget?.title ?? '';\n\t\t\twidgetType = widget?.widgetType ?? 'line_chart';\n\t\t\tunit = widget?.config?.unit ?? '';\n\t\t\tunitManuallySet = !!widget?.config?.unit;\n\t\t\tsources = widget?.config?.sources\n\t\t\t\t? [...widget.config.sources]\n\t\t\t\t: [{ type: 'metric', name: '', aggregation: 'avg' }];\n\t\t}\n\t});\n\n\tfunction getMetricTagKeys(metricName: string): string[] {\n\t\tconst m = availableMetrics.find((m: DiscoveredMetric) => m.name === metricName);\n\t\treturn m?.tagKeys ?? [];\n\t}\n\n\tfunction getMetricUnit(metricName: string): string {\n\t\tconst m = availableMetrics.find((m: DiscoveredMetric) => m.name === metricName);\n\t\treturn m?.unit ?? '';\n\t}\n\n\tasync function loadTagValues(metricName: string, key: string): Promise<string[]> {\n\t\ttry {\n\t\t\tconst response = await api.get(\n\t\t\t\t`/metrics/discover/tags?name=${encodeURIComponent(metricName)}&key=${encodeURIComponent(key)}`,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\treturn response.values || [];\n\t\t} catch {\n\t\t\treturn [];\n\t\t}\n\t}\n\n\tfunction handleMetricChange(index: number, value: string) {\n\t\tsources[index].name = value;\n\t\tif (!unitManuallySet) {\n\t\t\tunit = getMetricUnit(value);\n\t\t}\n\t}\n\n\tfunction handleSave() {\n\t\tconst validSources = sources.filter((s: WidgetSource) => s.name);\n\t\tconst displayTitle = title.trim() || validSources[0]?.name || '';\n\t\tconst config: Record<string, any> = { sources: validSources };\n\t\tif (unit) config.unit = unit;\n\t\tonSave({\n\t\t\ttitle: displayTitle,\n\t\t\twidgetType,\n\t\t\tconfig\n\t\t});\n\t}\n\n\tfunction handleClose() {\n\t\topen = false;\n\t\tonCancel();\n\t}\n</script>\n\n<AlertDialog.Root bind:open>\n\t<AlertDialog.Content class=\"max-w-xl\" interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>{widget?.id ? 'Edit Widget' : 'Add Widget'}</AlertDialog.Title>\n\t\t</AlertDialog.Header>\n\t\t{#if error}\n\t\t\t<Alert.Root variant=\"destructive\" class=\"bg-red-50 border-red-200\">\n\t\t\t\t<CircleAlert class=\"h-4 w-4 text-red-700\" />\n\t\t\t\t<Alert.Title class=\"text-red-800\">Error</Alert.Title>\n\t\t\t\t<Alert.Description class=\"text-red-700\">{error}</Alert.Description>\n\t\t\t</Alert.Root>\n\t\t{/if}\n\t\t<div class=\"space-y-4\">\n\t\t\t<div>\n\t\t\t\t<label class=\"text-sm font-medium\" for=\"widget-title\">Title (optional)</label>\n\t\t\t\t<Input id=\"widget-title\" bind:value={title} placeholder=\"Defaults to metric name\" />\n\t\t\t</div>\n\n\t\t\t<div>\n\t\t\t\t<label class=\"text-sm font-medium\">Widget Type</label>\n\t\t\t\t<Select.Root\n\t\t\t\t\ttype=\"single\"\n\t\t\t\t\tvalue={widgetType}\n\t\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\t\tif (v) widgetType = v;\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Select.Trigger>\n\t\t\t\t\t\t{({ line_chart: 'Line Chart', area_chart: 'Area Chart', bar_chart: 'Bar Chart', single_value: 'Single Value', table: 'Table' } as Record<string, string>)[widgetType] ?? widgetType}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t<Select.Item value=\"line_chart\">Line Chart</Select.Item>\n\t\t\t\t\t\t<Select.Item value=\"area_chart\">Area Chart</Select.Item>\n\t\t\t\t\t\t<Select.Item value=\"bar_chart\">Bar Chart</Select.Item>\n\t\t\t\t\t\t<Select.Item value=\"single_value\">Single Value</Select.Item>\n\t\t\t\t\t\t<Select.Item value=\"table\">Table</Select.Item>\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</div>\n\n\t\t\t<div>\n\t\t\t\t<label class=\"text-sm font-medium\" for=\"widget-unit\">Unit (optional)</label>\n\t\t\t\t<Input\n\t\t\t\t\tid=\"widget-unit\"\n\t\t\t\t\tbind:value={unit}\n\t\t\t\t\tplaceholder=\"Auto-detected from metric\"\n\t\t\t\t\toninput={() => { unitManuallySet = unit.length > 0; }}\n\t\t\t\t/>\n\t\t\t\t<p class=\"text-xs text-muted-foreground mt-1\">%, ms, s, MB, GB, bytes, count, ns</p>\n\t\t\t</div>\n\n\t\t\t{#each sources as source, i}\n\t\t\t\t<div class=\"space-y-2 rounded-md border p-3\">\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<Select.Root\n\t\t\t\t\t\t\ttype=\"single\"\n\t\t\t\t\t\t\tvalue={source.name}\n\t\t\t\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\t\t\t\tif (v) handleMetricChange(i, v);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Select.Trigger class=\"flex-1\">{source.name || 'Select metric'}</Select.Trigger>\n\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t{#each availableMetrics as m}\n\t\t\t\t\t\t\t\t\t<Select.Item value={m.name}>{m.name}</Select.Item>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t</Select.Root>\n\n\t\t\t\t\t\t<Select.Root\n\t\t\t\t\t\t\ttype=\"single\"\n\t\t\t\t\t\t\tvalue={source.aggregation}\n\t\t\t\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\t\t\t\tif (v) sources[i].aggregation = v;\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Select.Trigger class=\"w-20\">{source.aggregation}</Select.Trigger>\n\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t<Select.Item value=\"avg\">avg</Select.Item>\n\t\t\t\t\t\t\t\t<Select.Item value=\"min\">min</Select.Item>\n\t\t\t\t\t\t\t\t<Select.Item value=\"max\">max</Select.Item>\n\t\t\t\t\t\t\t\t<Select.Item value=\"sum\">sum</Select.Item>\n\t\t\t\t\t\t\t\t<Select.Item value=\"count\">count</Select.Item>\n\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t</Select.Root>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{#if source.name && getMetricTagKeys(source.name).length > 0}\n\t\t\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">Tag Filters</span>\n\t\t\t\t\t\t\t<TagFilter\n\t\t\t\t\t\t\t\ttagKeys={getMetricTagKeys(source.name)}\n\t\t\t\t\t\t\t\tactiveFilters={source.tagFilters ?? {}}\n\t\t\t\t\t\t\t\tonFilterChange={(filters) => {\n\t\t\t\t\t\t\t\t\tsources[i].tagFilters = Object.keys(filters).length > 0 ? filters : undefined;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tonLoadTagValues={(key) => loadTagValues(source.name, key)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">Group By</span>\n\t\t\t\t\t\t\t<Select.Root\n\t\t\t\t\t\t\t\ttype=\"single\"\n\t\t\t\t\t\t\t\tvalue={source.groupBy ?? ''}\n\t\t\t\t\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\t\t\t\t\tsources[i].groupBy = v || undefined;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Select.Trigger class=\"h-7 w-[160px] text-xs\"\n\t\t\t\t\t\t\t\t\t>{source.groupBy || 'None'}</Select.Trigger\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t\t<Select.Item value=\"\">None</Select.Item>\n\t\t\t\t\t\t\t\t\t{#each getMetricTagKeys(source.name) as key}\n\t\t\t\t\t\t\t\t\t\t<Select.Item value={key}>{key}</Select.Item>\n\t\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t\t</Select.Root>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/if}\n\t\t\t\t</div>\n\t\t\t{/each}\n\t\t</div>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={handleClose}>Cancel</Button>\n\t\t\t<Button onclick={handleSave}>\n\t\t\t\t{#if widget?.id}<Check class=\"mr-1 h-4 w-4\" /> Update Widget{:else}<Plus class=\"mr-1 h-4 w-4\" /> Add Widget{/if}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Input } from '$lib/components/ui/input';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport * as Select from '$lib/components/ui/select';\n\timport * as Tabs from '$lib/components/ui/tabs';\n\timport WidgetGrid from '$lib/components/dashboard/widget-grid.svelte';\n\timport WidgetConfigPanel from '$lib/components/dashboard/widget-config-panel.svelte';\n\timport { api } from '$lib/api';\n\timport { projectsState, FRAMEWORK_LABELS, type Framework } from '$lib/state/projects.svelte';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { toUTCISO, calendarDateTimeToLuxon, formatDateTime } from '$lib/utils/formatters';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport {\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tparseTimeRangeFromUrl,\n\t\tgetResolvedTimeRange,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport { CalendarDate } from '@internationalized/date';\n\timport { Trash2, Plus, RefreshCw, CircleAlert, EllipsisVertical, Sparkles } from 'lucide-svelte';\n\timport * as Alert from '$lib/components/ui/alert';\n\timport * as DropdownMenu from '$lib/components/ui/dropdown-menu';\n\timport { toast } from 'svelte-sonner';\n\timport type { DiscoveredMetric } from '$lib/types/dashboard';\n\n\tconst timezone = $derived(getTimezone());\n\n\ttype Widget = {\n\t\tid: number;\n\t\ttitle: string;\n\t\twidgetType: string;\n\t\tconfig: any;\n\t\tposition: number;\n\t\tisStarred?: boolean;\n\t};\n\n\ttype WidgetGroup = {\n\t\tid: number;\n\t\tname: string;\n\t\tdescription: string;\n\t\tisDefault: boolean;\n\t\tcreatedAt: string;\n\t};\n\n\ttype WidgetGroupWithWidgets = WidgetGroup & {\n\t\twidgets: Widget[];\n\t};\n\n\tlet widgetGroups = $state<WidgetGroup[]>([]);\n\tlet projectFramework = $state<Framework | ''>('');\n\tlet canPopulateDefaults = $state(false);\n\tlet populating = $state(false);\n\tlet loading = $state(true);\n\tlet activeTabId = $state<string>('');\n\tlet activeGroup = $state<WidgetGroupWithWidgets | null>(null);\n\tlet loadingGroup = $state(false);\n\n\tlet showCreateDialog = $state(false);\n\tlet newName = $state('');\n\tlet creating = $state(false);\n\tlet createError = $state('');\n\n\tlet showDeleteDialog = $state(false);\n\tlet deleting = $state(false);\n\tlet deleteError = $state('');\n\n\tlet showWidgetConfig = $state(false);\n\tlet editingWidget = $state<Widget | null>(null);\n\tlet availableMetrics = $state<DiscoveredMetric[]>([]);\n\tlet widgetConfigError = $state('');\n\n\tlet showDeleteWidgetDialog = $state(false);\n\tlet deletingWidget = $state<Widget | null>(null);\n\tlet deletingWidgetLoading = $state(false);\n\tlet deleteWidgetError = $state('');\n\n\tlet lastUpdated = $state<Date | null>(null);\n\n\tlet tabsListEl = $state<HTMLElement | null>(null);\n\tlet hasOverflow = $state(false);\n\n\tconst initialUrlParams = parseTimeRangeFromUrl(timezone);\n\tconst initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n\tlet selectedPreset = $state<string | null>(initialUrlParams.preset ?? '24h');\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\tlet sharedTimeDomain = $state<[Date, Date] | null>(null);\n\n\tconst lastUpdatedFormatted = $derived(\n\t\tlastUpdated ? formatDateTime(lastUpdated, { timezone, format: 'time' }) : ''\n\t);\n\n\tfunction reloadGroupWidgets() {\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\t\tsharedTimeDomain = [new Date(getFromDateTimeUTC()), new Date(getToDateTimeUTC())];\n\t\tif (activeTabId) loadGroupWidgets(activeTabId);\n\t}\n\n\tfunction checkOverflow() {\n\t\tif (tabsListEl) {\n\t\t\thasOverflow = tabsListEl.scrollWidth > tabsListEl.clientWidth;\n\t\t}\n\t}\n\n\t$effect(() => {\n\t\tif (!tabsListEl) return;\n\t\tconst observer = new ResizeObserver(() => checkOverflow());\n\t\tobserver.observe(tabsListEl);\n\t\tcheckOverflow();\n\t\treturn () => observer.disconnect();\n\t});\n\n\t$effect(() => {\n\t\twidgetGroups;\n\t\tif (tabsListEl) {\n\t\t\trequestAnimationFrame(() => checkOverflow());\n\t\t}\n\t});\n\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = (toTime || '23:59').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(dt);\n\t}\n\n\tasync function loadWidgetGroups() {\n\t\tloading = true;\n\t\ttry {\n\t\t\tconst response = await api.get('/widget-groups', {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\twidgetGroups = response.widgetGroups || [];\n\t\t\tprojectFramework = (response.framework as Framework) || '';\n\t\t\tcanPopulateDefaults = !!response.canPopulateDefaults;\n\t\t\tif (widgetGroups.length > 0 && !activeTabId) {\n\t\t\t\tactiveTabId = String(widgetGroups[0].id);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tconsole.error('Failed to load widget groups:', e);\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tasync function populateDefaults() {\n\t\tpopulating = true;\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t'/widget-groups/populate-defaults',\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Successfully populated default charts', { position: 'top-center' });\n\t\t\tawait loadWidgetGroups();\n\t\t} catch (e: any) {\n\t\t\ttoast.error(e?.message || 'Failed to populate default charts', { position: 'top-center' });\n\t\t} finally {\n\t\t\tpopulating = false;\n\t\t}\n\t}\n\n\tconst frameworkLabel = $derived(\n\t\tprojectFramework ? (FRAMEWORK_LABELS[projectFramework] ?? projectFramework) : ''\n\t);\n\n\tasync function loadGroupWidgets(groupId: string) {\n\t\tloadingGroup = true;\n\t\ttry {\n\t\t\tconst result = await api.get(`/widget-groups/${groupId}`, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\tactiveGroup = result;\n\t\t\tlastUpdated = new Date();\n\t\t} catch (e) {\n\t\t\tconsole.error('Failed to load widget group:', e);\n\t\t\tactiveGroup = null;\n\t\t} finally {\n\t\t\tloadingGroup = false;\n\t\t}\n\t}\n\n\t$effect(() => {\n\t\tif (activeTabId) {\n\t\t\tloadGroupWidgets(activeTabId);\n\t\t}\n\t});\n\n\t$effect(() => {\n\t\tif (!showWidgetConfig) {\n\t\t\twidgetConfigError = '';\n\t\t}\n\t});\n\n\tfunction handleTabChange(tab: string) {\n\t\tactiveTabId = tab;\n\t\tshowWidgetConfig = false;\n\t\teditingWidget = null;\n\t}\n\n\tasync function createWidgetGroup() {\n\t\tcreating = true;\n\t\tcreateError = '';\n\t\ttry {\n\t\t\tconst group = await api.post(\n\t\t\t\t'/widget-groups',\n\t\t\t\t{ name: newName },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Successfully created a new Widget Group', { position: 'top-center' });\n\t\t\tshowCreateDialog = false;\n\t\t\tnewName = '';\n\t\t\tawait loadWidgetGroups();\n\t\t\tactiveTabId = String(group.id);\n\t\t} catch (e: any) {\n\t\t\tif (e?.status === 422) {\n\t\t\t\tcreateError = e.message;\n\t\t\t} else {\n\t\t\t\tconsole.error('Failed to create widget group:', e);\n\t\t\t}\n\t\t} finally {\n\t\t\tcreating = false;\n\t\t}\n\t}\n\n\tasync function deleteWidgetGroup() {\n\t\tif (!activeGroup) return;\n\t\tdeleting = true;\n\t\tdeleteError = '';\n\t\ttry {\n\t\t\tawait api.delete(`/widget-groups/${activeGroup.id}`, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\tshowDeleteDialog = false;\n\t\t\tactiveTabId = '';\n\t\t\tactiveGroup = null;\n\t\t\tawait loadWidgetGroups();\n\t\t\tif (widgetGroups.length > 0) {\n\t\t\t\tactiveTabId = String(widgetGroups[0].id);\n\t\t\t}\n\t\t} catch (e: any) {\n\t\t\tif (e?.status === 422) {\n\t\t\t\tdeleteError = e.message;\n\t\t\t} else {\n\t\t\t\tconsole.error('Failed to delete widget group:', e);\n\t\t\t}\n\t\t} finally {\n\t\t\tdeleting = false;\n\t\t}\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\tfromTime = from.time;\n\t\ttoDate = to.date;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\n\t\tsharedTimeDomain = [new Date(getFromDateTimeUTC()), new Date(getToDateTimeUTC())];\n\t\tupdateUrl({ preset: selectedPreset ?? undefined });\n\t}\n\n\tfunction handleChartRangeSelect(from: Date, to: Date) {\n\t\tselectedPreset = null;\n\t\tfromDate = new CalendarDate(from.getFullYear(), from.getMonth() + 1, from.getDate());\n\t\tfromTime = `${String(from.getHours()).padStart(2, '0')}:${String(from.getMinutes()).padStart(2, '0')}`;\n\t\ttoDate = new CalendarDate(to.getFullYear(), to.getMonth() + 1, to.getDate());\n\t\ttoTime = `${String(to.getHours()).padStart(2, '0')}:${String(to.getMinutes()).padStart(2, '0')}`;\n\t\tsharedTimeDomain = [from, to];\n\t}\n\n\tasync function loadMetrics() {\n\t\ttry {\n\t\t\tconst discoverResponse = await api.get(\n\t\t\t\t`/metrics/discover?from=${getFromDateTimeUTC()}&to=${getToDateTimeUTC()}`,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\tavailableMetrics = discoverResponse.metrics || [];\n\t\t} catch {\n\t\t\t// ignore\n\t\t}\n\t}\n\n\tfunction openAddWidget() {\n\t\teditingWidget = null;\n\t\tshowWidgetConfig = true;\n\t\tloadMetrics();\n\t}\n\n\tfunction openEditWidget(widget: Widget) {\n\t\teditingWidget = widget;\n\t\tshowWidgetConfig = true;\n\t\tloadMetrics();\n\t}\n\n\tfunction openDeleteWidgetDialog(widget: Widget) {\n\t\tdeletingWidget = widget;\n\t\tshowDeleteWidgetDialog = true;\n\t}\n\n\tasync function confirmDeleteWidget() {\n\t\tif (!activeGroup || !deletingWidget?.id) return;\n\t\tdeletingWidgetLoading = true;\n\t\tdeleteWidgetError = '';\n\t\ttry {\n\t\t\tawait api.delete(`/widget-groups/${activeGroup.id}/widgets/${deletingWidget.id}`, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\tshowDeleteWidgetDialog = false;\n\t\t\tdeletingWidget = null;\n\t\t\tawait loadGroupWidgets(activeTabId);\n\t\t} catch (e: any) {\n\t\t\tif (e?.status === 422) {\n\t\t\t\tdeleteWidgetError = e.message;\n\t\t\t} else {\n\t\t\t\tconsole.error('Failed to delete widget:', e);\n\t\t\t}\n\t\t} finally {\n\t\t\tdeletingWidgetLoading = false;\n\t\t}\n\t}\n\n\tasync function handleToggleStar(widget: { id: number; isStarred?: boolean }) {\n\t\tif (!activeGroup) return;\n\t\tconst target = activeGroup.widgets?.find((w) => w.id === widget.id);\n\t\tif (!target) return;\n\t\tconst previous = target.isStarred ?? false;\n\t\ttarget.isStarred = !previous;\n\t\ttry {\n\t\t\tawait api.put(\n\t\t\t\t`/widget-groups/${activeGroup.id}/widgets/${widget.id}/star`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t} catch (e: any) {\n\t\t\ttarget.isStarred = previous;\n\t\t\ttoast.error(e?.message || 'Failed to update star', { position: 'top-center' });\n\t\t}\n\t}\n\n\tasync function handleMoveWidget(widgetId: number, offset: number) {\n\t\tif (!activeGroup) return;\n\t\ttry {\n\t\t\tawait api.put(\n\t\t\t\t`/widget-groups/${activeGroup.id}/widgets/${widgetId}/move`,\n\t\t\t\t{ offset },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\tawait loadGroupWidgets(activeTabId);\n\t\t\ttoast.success('Successfully moved the Widget', { position: 'top-center' });\n\t\t} catch (e) {\n\t\t\tconsole.error('Failed to move widget:', e);\n\t\t}\n\t}\n\n\tasync function handleWidgetSave(data: { title: string; widgetType: string; config: any }) {\n\t\tif (!activeGroup) return;\n\n\t\twidgetConfigError = '';\n\t\ttry {\n\t\t\tif (editingWidget?.id) {\n\t\t\t\tawait api.put(`/widget-groups/${activeGroup.id}/widgets/${editingWidget.id}`, data, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully updated the Widget', { position: 'top-center' });\n\t\t\t} else {\n\t\t\t\tawait api.post(`/widget-groups/${activeGroup.id}/widgets`, data, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully added the Widget', { position: 'top-center' });\n\t\t\t}\n\t\t\tshowWidgetConfig = false;\n\t\t\teditingWidget = null;\n\t\t\tawait loadGroupWidgets(activeTabId);\n\t\t} catch (e: any) {\n\t\t\tif (e?.status === 422) {\n\t\t\t\twidgetConfigError = e.message;\n\t\t\t} else {\n\t\t\t\tconsole.error('Failed to save widget:', e);\n\t\t\t}\n\t\t}\n\t}\n\n\tconst activeTabName = $derived(\n\t\twidgetGroups.find((g) => String(g.id) === activeTabId)?.name ?? ''\n\t);\n\n\tonMount(() => {\n\t\tloadWidgetGroups();\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\t\tsharedTimeDomain = [new Date(getFromDateTimeUTC()), new Date(getToDateTimeUTC())];\n\t});\n</script>\n\n<div class=\"space-y-4\">\n\t<div class=\"mb-2 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Metrics</h2>\n\t\t<div class=\"flex items-center gap-2\">\n\t\t\t<TimeRangePicker\n\t\t\t\tbind:fromDate\n\t\t\t\tbind:toDate\n\t\t\t\tbind:fromTime\n\t\t\t\tbind:toTime\n\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t/>\n\t\t</div>\n\t</div>\n\n\t{#if loading}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if widgetGroups.length === 0}\n\t\t<div\n\t\t\tclass=\"flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center\"\n\t\t>\n\t\t\t<p class=\"mb-4 text-muted-foreground\">No widget groups yet.</p>\n\t\t\t<div class=\"flex flex-wrap items-center justify-center gap-2\">\n\t\t\t\t{#if canPopulateDefaults}\n\t\t\t\t\t<Button onclick={populateDefaults} disabled={populating}>\n\t\t\t\t\t\t<Sparkles class=\"mr-1 h-4 w-4\" />\n\t\t\t\t\t\t{populating\n\t\t\t\t\t\t\t? 'Populating...'\n\t\t\t\t\t\t\t: frameworkLabel\n\t\t\t\t\t\t\t\t? `Populate default charts for ${frameworkLabel}`\n\t\t\t\t\t\t\t\t: 'Populate default charts'}\n\t\t\t\t\t</Button>\n\t\t\t\t{/if}\n\t\t\t\t<Button variant=\"outline\" onclick={() => (showCreateDialog = true)}>\n\t\t\t\t\t<Plus class=\"mr-1 h-4 w-4\" />\n\t\t\t\t\tCreate your own Widget Group\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t</div>\n\t{:else}\n\t\t<Tabs.Root value={activeTabId} onValueChange={handleTabChange}>\n\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t{#if hasOverflow}\n\t\t\t\t\t<Select.Root\n\t\t\t\t\t\ttype=\"single\"\n\t\t\t\t\t\tvalue={activeTabId}\n\t\t\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\t\t\tif (v) handleTabChange(v);\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Select.Trigger size=\"sm\">{activeTabName}</Select.Trigger>\n\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t{#each widgetGroups as group (group.id)}\n\t\t\t\t\t\t\t\t<Select.Item value={String(group.id)}>{group.name}</Select.Item>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t</Select.Root>\n\t\t\t\t{/if}\n\t\t\t\t<div\n\t\t\t\t\tclass=\"flex min-w-0 items-center overflow-hidden\"\n\t\t\t\t\tclass:invisible={hasOverflow}\n\t\t\t\t\tclass:h-0={hasOverflow}\n\t\t\t\t\tclass:w-0={hasOverflow}\n\t\t\t\t\tbind:this={tabsListEl}\n\t\t\t\t>\n\t\t\t\t\t<Tabs.List>\n\t\t\t\t\t\t{#each widgetGroups as group (group.id)}\n\t\t\t\t\t\t\t<Tabs.Trigger value={String(group.id)}>\n\t\t\t\t\t\t\t\t{group.name}\n\t\t\t\t\t\t\t\t{#if String(group.id) === activeTabId}\n\t\t\t\t\t\t\t\t\t<DropdownMenu.Root>\n\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Trigger>\n\t\t\t\t\t\t\t\t\t\t\t{#snippet child({ props })}\n\t\t\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\t\t\t{...props}\n\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"-mr-1 ml-1 inline-flex h-5 w-5 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground\"\n\t\t\t\t\t\t\t\t\t\t\t\t\trole=\"button\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttabindex={0}\n\t\t\t\t\t\t\t\t\t\t\t\t\tonclick={(e) => e.stopPropagation()}\n\t\t\t\t\t\t\t\t\t\t\t\t\tonkeydown={(e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.key === 'Enter' || e.key === ' ') e.stopPropagation();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<EllipsisVertical class=\"h-3.5 w-3.5\" />\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t{/snippet}\n\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Trigger>\n\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Content align=\"start\">\n\t\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"text-destructive\"\n\t\t\t\t\t\t\t\t\t\t\t\tonclick={() => (showDeleteDialog = true)}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<Trash2 class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t\tDelete Group\n\t\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Content>\n\t\t\t\t\t\t\t\t\t</DropdownMenu.Root>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Tabs.Trigger>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Tabs.List>\n\t\t\t\t</div>\n\t\t\t\t<button\n\t\t\t\t\tclass=\"inline-flex items-center justify-center rounded-md px-2 py-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground\"\n\t\t\t\t\tonclick={() => (showCreateDialog = true)}\n\t\t\t\t>\n\t\t\t\t\t<Plus class=\"h-4 w-4\" />\n\t\t\t\t</button>\n\t\t\t\t{#if hasOverflow && activeTabId}\n\t\t\t\t\t<DropdownMenu.Root>\n\t\t\t\t\t\t<DropdownMenu.Trigger\n\t\t\t\t\t\t\tclass=\"inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<EllipsisVertical class=\"h-4 w-4\" />\n\t\t\t\t\t\t</DropdownMenu.Trigger>\n\t\t\t\t\t\t<DropdownMenu.Content align=\"end\">\n\t\t\t\t\t\t\t<DropdownMenu.Item class=\"text-destructive\" onclick={() => (showDeleteDialog = true)}>\n\t\t\t\t\t\t\t\t<Trash2 class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\tDelete Group\n\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t</DropdownMenu.Content>\n\t\t\t\t\t</DropdownMenu.Root>\n\t\t\t\t{/if}\n\t\t\t\t{#if lastUpdated}\n\t\t\t\t\t<div class=\"ml-auto flex items-center gap-1\">\n\t\t\t\t\t\t<span class=\"text-sm whitespace-nowrap text-muted-foreground\">\n\t\t\t\t\t\t\tUpdated: {lastUpdatedFormatted}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<Button variant=\"ghost\" size=\"sm\" onclick={reloadGroupWidgets} disabled={loadingGroup}>\n\t\t\t\t\t\t\t<RefreshCw class=\"h-4 w-4 {loadingGroup ? 'animate-spin' : ''}\" />\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t</div>\n\n\t\t\t{#each widgetGroups as group (group.id)}\n\t\t\t\t<Tabs.Content value={String(group.id)}>\n\t\t\t\t\t{#if loadingGroup && activeTabId === String(group.id)}\n\t\t\t\t\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t\t\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else if activeGroup && activeTabId === String(group.id)}\n\t\t\t\t\t\t<WidgetGrid\n\t\t\t\t\t\t\twidgets={activeGroup.widgets ?? []}\n\t\t\t\t\t\t\tfromDateUTC={getFromDateTimeUTC()}\n\t\t\t\t\t\t\ttoDateUTC={getToDateTimeUTC()}\n\t\t\t\t\t\t\ttimeDomain={sharedTimeDomain}\n\t\t\t\t\t\t\tonEditWidget={openEditWidget}\n\t\t\t\t\t\t\tonDeleteWidget={openDeleteWidgetDialog}\n\t\t\t\t\t\t\tonMoveWidget={handleMoveWidget}\n\t\t\t\t\t\t\tonAddWidget={openAddWidget}\n\t\t\t\t\t\t\tonToggleStar={handleToggleStar}\n\t\t\t\t\t\t\tonRangeSelect={handleChartRangeSelect}\n\t\t\t\t\t\t/>\n\t\t\t\t\t{/if}\n\t\t\t\t</Tabs.Content>\n\t\t\t{/each}\n\t\t</Tabs.Root>\n\t{/if}\n</div>\n\n<WidgetConfigPanel\n\tbind:open={showWidgetConfig}\n\twidget={editingWidget}\n\t{availableMetrics}\n\terror={widgetConfigError}\n\tonSave={handleWidgetSave}\n\tonCancel={() => {\n\t\tshowWidgetConfig = false;\n\t\teditingWidget = null;\n\t\twidgetConfigError = '';\n\t}}\n/>\n\n<AlertDialog.Root\n\tbind:open={showCreateDialog}\n\tonOpenChange={(o) => {\n\t\tif (!o) createError = '';\n\t}}\n>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>New Widget Group</AlertDialog.Title>\n\t\t</AlertDialog.Header>\n\t\t{#if createError}\n\t\t\t<Alert.Root variant=\"destructive\" class=\"border-red-200 bg-red-50\">\n\t\t\t\t<CircleAlert class=\"h-4 w-4 text-red-700\" />\n\t\t\t\t<Alert.Title class=\"text-red-800\">Error</Alert.Title>\n\t\t\t\t<Alert.Description class=\"text-red-700\">{createError}</Alert.Description>\n\t\t\t</Alert.Root>\n\t\t{/if}\n\t\t<div class=\"space-y-4\">\n\t\t\t<div>\n\t\t\t\t<label class=\"text-sm font-medium\" for=\"new-group-name\">Name</label>\n\t\t\t\t<Input id=\"new-group-name\" bind:value={newName} placeholder=\"My Group\" maxlength={12} />\n\t\t\t</div>\n\t\t</div>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showCreateDialog = false)}>Cancel</Button>\n\t\t\t<Button onclick={createWidgetGroup} disabled={creating}>\n\t\t\t\t{#if creating}Creating...{:else}<Plus class=\"mr-1 h-4 w-4\" /> New Widget Group{/if}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root\n\tbind:open={showDeleteDialog}\n\tonOpenChange={(o) => {\n\t\tif (!o) deleteError = '';\n\t}}\n>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Delete Widget Group</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to delete \"{activeGroup?.name}\"? This will remove all widgets in this\n\t\t\t\tgroup. This action cannot be undone.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t{#if deleteError}\n\t\t\t<Alert.Root variant=\"destructive\" class=\"border-red-200 bg-red-50\">\n\t\t\t\t<CircleAlert class=\"h-4 w-4 text-red-700\" />\n\t\t\t\t<Alert.Title class=\"text-red-800\">Error</Alert.Title>\n\t\t\t\t<Alert.Description class=\"text-red-700\">{deleteError}</Alert.Description>\n\t\t\t</Alert.Root>\n\t\t{/if}\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showDeleteDialog = false)} disabled={deleting}\n\t\t\t\t>Cancel</Button\n\t\t\t>\n\t\t\t<Button variant=\"destructive\" onclick={deleteWidgetGroup} disabled={deleting}>\n\t\t\t\t{deleting ? 'Deleting...' : 'Delete'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root\n\tbind:open={showDeleteWidgetDialog}\n\tonOpenChange={(o) => {\n\t\tif (!o) deleteWidgetError = '';\n\t}}\n>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Delete Widget</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to delete \"{deletingWidget?.title}\"? This action cannot be undone.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t{#if deleteWidgetError}\n\t\t\t<Alert.Root variant=\"destructive\" class=\"border-red-200 bg-red-50\">\n\t\t\t\t<CircleAlert class=\"h-4 w-4 text-red-700\" />\n\t\t\t\t<Alert.Title class=\"text-red-800\">Error</Alert.Title>\n\t\t\t\t<Alert.Description class=\"text-red-700\">{deleteWidgetError}</Alert.Description>\n\t\t\t</Alert.Root>\n\t\t{/if}\n\t\t<AlertDialog.Footer>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tonclick={() => (showDeleteWidgetDialog = false)}\n\t\t\t\tdisabled={deletingWidgetLoading}>Cancel</Button\n\t\t\t>\n\t\t\t<Button variant=\"destructive\" onclick={confirmDeleteWidget} disabled={deletingWidgetLoading}>\n\t\t\t\t{deletingWidgetLoading ? 'Deleting...' : 'Delete'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n"],"names":["open","onOpenChange","noop","onOpenChangeComplete","MenuSubmenuState","boxWith","v","FloatingLayer","$$anchor","uid","$.props_id","id","$.prop","$$props","createId","ref","loop","onInteractOutside","forceMount","onEscapeKeydown","interactOutsideBehavior","escapeKeydownBehavior","onOpenAutoFocusProp","onCloseAutoFocusProp","onFocusOutside","side","trapFocus","restProps","$.rest_props","subContentState","MenuContentState","handleCloseAutoFocus","onkeydown","e","isKeyDownInside","isCloseKey","SUB_CLOSE_KEYS","dataAttr","$.derived","mergedProps","mergeProps","$.get","handleOpenAutoFocus","MenuOpenEvent","handleInteractOutside","handleEscapeKeydown","handleOnFocusOutside","isHTMLElement","PopperLayerForceMount","$.spread_props","$$arg0","props","wrapperProps","finalProps","getFloatingContentCSSVars","div","root_4","$.attribute_effect","div_1","PopperLayer","div_2","root_9","div_3","$$render","consequent_3","consequent_1","alternate_2","disabled","onSelect","openDelay","subTriggerState","MenuSubTriggerState","FloatingLayerAnchor","$.snippet","node_1","root_3","iconNode","Icon","$$sanitized_props","DropdownMenuPrimitive_Sub","$$value","$0","cn","DropdownMenuPrimitive_SubContent","DropdownMenuPrimitive_SubTrigger","ChevronRightIcon","node_2","load","authState","redirect","widgets","timeDomain","sharedHoverTime","$.state","cols","$.user_effect","mql","handler","$.set","sortedWidgets","a","b","root","$.each","node","widget","i","root_1","Card_Root","Card_Header","Card_Title","span","root_5","consequent","$.template_effect","$.set_text","text","$.sibling","node_3","button","$.child","node_5","Star","$.reset","node_6","DropdownMenu_Root","DropdownMenu_Trigger","EllipsisVertical","DropdownMenu_Content","DropdownMenu_Item","Pencil","node_10","DropdownMenu_Sub","DropdownMenu_SubTrigger","Move","node_13","DropdownMenu_SubContent","DropdownMenu_Item_1","ArrowUp","node_16","DropdownMenu_Item_2","ArrowDown","node_18","DropdownMenu_Item_3","ArrowLeft","node_21","DropdownMenu_Item_4","ArrowRight","node_23","DropdownMenu_Separator","DropdownMenu_Item_5","Trash2","node_26","$.set_attribute","Card_Content","WidgetRenderer","time","button_1","div_4","Plus","node_28","tagKeys","activeFilters","selectedKey","tagValueOptions","$.proxy","loadingValues","handleKeySelect","key","handleValueSelect","value","newFilters","removeFilter","availableKeys","k","$.index","$$item","$$array","span_1","X","$.append","Select_Root","Select_Trigger","alternate","Select_Content","val","Select_Item","Button","Select_Root_1","Select_Trigger_1","Select_Content_1","node_14","Select_Item_1","alternate_1","consequent_2","availableMetrics","error","title","widgetType","unit","unitManuallySet","sources","getMetricTagKeys","metricName","m","getMetricUnit","loadTagValues","api","projectsState","handleMetricChange","index","handleSave","validSources","s","displayTitle","config","handleClose","AlertDialog_Root","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","Alert_Root","CircleAlert","Alert_Title","Alert_Description","node_4","Input","node_9","Select_Item_2","Select_Item_3","Select_Item_4","node_19","source","root_17","div_5","Select_Item_5","text_10","Select_Root_2","Select_Trigger_2","text_11","Select_Content_2","Select_Item_6","Select_Item_7","Select_Item_8","Select_Item_9","Select_Item_10","div_6","$.first_child","fragment_19","$1","TagFilter","node_34","filters","div_7","Select_Root_3","Select_Trigger_3","Select_Content_3","Select_Item_11","node_39","Select_Item_12","AlertDialog_Footer","node_42","node_43","Check","node_45","node_46","timezone","getTimezone","widgetGroups","projectFramework","canPopulateDefaults","populating","loading","activeTabId","activeGroup","loadingGroup","showCreateDialog","newName","creating","createError","showDeleteDialog","deleting","deleteError","showWidgetConfig","editingWidget","widgetConfigError","showDeleteWidgetDialog","deletingWidget","deletingWidgetLoading","deleteWidgetError","lastUpdated","tabsListEl","hasOverflow","initialUrlParams","parseTimeRangeFromUrl","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","sharedTimeDomain","lastUpdatedFormatted","formatDateTime","reloadGroupWidgets","range","getTimeRangeFromPreset","getFromDateTimeUTC","getToDateTimeUTC","loadGroupWidgets","checkOverflow","observer","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","loadWidgetGroups","response","populateDefaults","toast","frameworkLabel","FRAMEWORK_LABELS","groupId","result","handleTabChange","tab","createWidgetGroup","group","deleteWidgetGroup","handleTimeRangeChange","from","to","preset","updateUrl","handleChartRangeSelect","CalendarDate","loadMetrics","discoverResponse","openAddWidget","openEditWidget","openDeleteWidgetDialog","confirmDeleteWidget","handleToggleStar","target","w","previous","handleMoveWidget","widgetId","offset","handleWidgetSave","data","activeTabName","g","onMount","fragment","TimeRangePicker","LoadingCircle","Sparkles","node_7","Tabs_Root","fragment_6","text_2","node_15","Tabs_List","Tabs_Trigger","child","root_20","event_handler_1","node_24","consequent_4","text_3","node_25","DropdownMenu_Root_1","DropdownMenu_Trigger_1","DropdownMenu_Content_1","node_31","consequent_5","div_8","root_28","node_33","RefreshCw","consequent_6","Tabs_Content","div_9","root_32","node_37","WidgetGrid","consequent_8","consequent_7","classes","$.set_class","WidgetConfigPanel","o","consequent_9","div_10","node_44","div_11","node_49","node_51","node_52","node_54","consequent_10","alternate_3","AlertDialog_Root_1","AlertDialog_Content_1","AlertDialog_Header_1","AlertDialog_Title_1","AlertDialog_Description","Alert_Root_1","node_62","Alert_Title_1","Alert_Description_1","consequent_11","AlertDialog_Footer_1","node_66","node_67","AlertDialog_Root_2","AlertDialog_Content_2","AlertDialog_Header_2","AlertDialog_Title_2","AlertDialog_Description_1","text_17","Alert_Root_2","node_75","Alert_Title_2","Alert_Description_2","consequent_12","AlertDialog_Footer_2","node_79","node_80"],"mappings":"08DAAA,UAQE,IAAAA,gBAAiB,EAAK,EACtBC,uBAAeC,EAAI,EACnBC,+BAAuBD,EAAI,EAI5BE,GAAiB,OAAM,CACtB,KAAMC,GAAO,IACNL,EAAI,EACTM,GAAM,CACNN,EAAOM,CAAC,EACRL,EAAY,IAAGK,CAAC,CACjB,CAAA,EAED,qBAAsBD,GAAO,IAAOF,EAAoB,CAAA,IAIzDI,GAAaC,EAAA,+FAFd,yFCxBA,OAYOC,EAAGC,GAAA,eAGRC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,GAASL,CAAG,CAAA,EACjBM,eAAgB,IAAI,EAGpBC,eAAO,EAAI,EACXC,4BAAoBf,EAAI,EACxBgB,q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AAK,EAAA,kCAAA,CAAA,4IAIvD2I,GAAUla,GAAA,8FACTsN,GAAW6M,GAAA,CAAA,MAAA,sBAAA,CAAA,mCACXC,EAAWpa,EAAA,oIACXqa,EAAiBra,EAAA,uEAAuByR,EAAiB,CAAA,CAAA,8FAJvDA,EAAiB,GAAAlO,GAAA+W,EAAA,yCAOrBC,GAAkBva,GAAA,yCACjBmL,GAAAqP,GAAA,mBAEgB,QAAA,IAAA9U,EAAA4L,GAAyB,EAAK,0BACpCE,EAAqB,yFAE/BrG,GAAMsP,GAAA,+BAAgCxF,0BAA+BzD,EAAqB,iDACzFA,EAAqB,EAAG,cAAgB,QAAQ,CAAA,qJA7QrD","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/20.Rf6Tmy2E.js b/backend/static/frontend/_app/immutable/nodes/20.Rf6Tmy2E.js
deleted file mode 100644
index 5fb0d60c..00000000
--- a/backend/static/frontend/_app/immutable/nodes/20.Rf6Tmy2E.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{r as Jr}from"../chunks/BJZ1igWb.js";import{b as Qr,a as $t,p as mt,t as qt,F as Zr}from"../chunks/D6S6XYVy.js";import{p as E,i as ve,s as gt,r as lr,l as Rt,b as ea}from"../chunks/DMODTt3n.js";import{o as ta}from"../chunks/Dwk6gGSK.js";import{p as Wt,d as v,c as n,m as Ut,o as sr,b as t,a as At,K as Lr,g as e,u as R,f as d,e as C,r as D,s as l,q as Ar,F as Zt,i as a,h as S,n as c,k as ae,l as fe,v as xt,x as ra,t as h}from"../chunks/B2WdN-7r.js";import{e as Ft,i as tr}from"../chunks/CMyj8Fzw.js";import{c as s}from"../chunks/BAcG0-U_.js";import{b as er,d as Vr,s as Er,a as Hr}from"../chunks/DH0tcjsQ.js";import{B as ht}from"../chunks/C1aqwstW.js";import{I as Cr}from"../chunks/D8CWOmhn.js";import{L as Br}from"../chunks/D0pIT200.js";import{A as dr,a as ir,b as ur,d as cr,e as vr,c as zr}from"../chunks/CtIWnZub.js";import{S as Yt,a as Xt,c as at,b as Jt}from"../chunks/CzIIBX62.js";import{a as aa,b as oa,T as na}from"../chunks/Btlz2xiW.js";import{T as sa}from"../chunks/BMae-b69.js";import{C as la,a as da,b as ia}from"../chunks/BHR29ZVu.js";import{C as ua}from"../chunks/BKHeGn2e.js";import{D as Dr,a as Tr,b as Mr,c as zt}from"../chunks/BLztqFjH.js";import{n as Kt,ai as ca,F as va,m as fa,d as ga,f as _a,aj as pa,ak as $a,e as ma,g as Kr,al as ha,a as xa}from"../chunks/CAQEdoSh.js";import{b as St,c as qr,m as fr}from"../chunks/DWAABZDo.js";import{D as wa}from"../chunks/DGGSyx8c.js";import{e as Pa,p as ya,g as ba,d as Et,a as Bt,T as Sa,b as Sr,u as Ca,$ as Ur}from"../chunks/xqPrLpfy.js";import{S as Da,W as Ta,R as Ma}from"../chunks/Bo0m_oha.js";import{I as Gt,s as Lt}from"../chunks/CQWqWi6p.js";import{a as Fa,A as Wa}from"../chunks/NCUZrEi6.js";import{A as Aa}from"../chunks/D81VMsqm.js";import{A as Oa}from"../chunks/Dt-hNsWv.js";import{A as gr,a as _r}from"../chunks/CaHAoFtL.js";import{A as pr}from"../chunks/DxBI0u1e.js";import{C as ja}from"../chunks/BISlaXSK.js";import{c as Rr,t as Gr,g as ka,f as Ia}from"../chunks/DJdWGDax.js";function Na(A,o){Wt(o,!0);let i=E(o,"open",15,!1),u=E(o,"onOpenChange",3,Kt),g=E(o,"onOpenChangeComplete",3,Kt);ca.create({open:St(()=>i(),$=>{i($),u()?.($)}),onOpenChangeComplete:St(()=>g())}),va(A,{children:($,f)=>{var m=v(),x=n(m);Ut(x,()=>o.children??sr),t($,m)},$$slots:{default:!0}}),At()}var Ea=d("<div><div><!></div></div>"),Ba=d("<div><div><!></div></div>");function za(A,o){const i=Lr();Wt(o,!0);let u=E(o,"id",19,()=>qr(i)),g=E(o,"ref",15,null),$=E(o,"loop",3,!0),f=E(o,"onInteractOutside",3,Kt),m=E(o,"forceMount",3,!1),x=E(o,"onEscapeKeydown",3,Kt),T=E(o,"interactOutsideBehavior",3,"defer-otherwise-close"),oe=E(o,"escapeKeydownBehavior",3,"defer-otherwise-close"),ge=E(o,"onOpenAutoFocus",3,Kt),_e=E(o,"onCloseAutoFocus",3,Kt),F=E(o,"onFocusOutside",3,Kt),Ne=E(o,"side",3,"right"),O=E(o,"trapFocus",3,!1),xe=lr(o,["$$slots","$$events","$$legacy","id","ref","children","child","loop","onInteractOutside","forceMount","onEscapeKeydown","interactOutsideBehavior","escapeKeydownBehavior","onOpenAutoFocus","onCloseAutoFocus","onFocusOutside","side","trapFocus"]);const P=fa.create({id:St(()=>u()),loop:St(()=>$()),ref:St(()=>g(),p=>g(p)),isSub:!0,onCloseAutoFocus:St(()=>Ee)});function Z(p){const W=p.currentTarget.contains(p.target),q=$a[P.parentMenu.root.opts.dir.current].includes(p.key);W&&q&&(P.parentMenu.onClose(),P.parentMenu.triggerNode?.focus(),p.preventDefault())}const j=R(()=>P.parentMenu.root.getBitsAttr("sub-content")),G=R(()=>fr(xe,P.props,{side:Ne(),onkeydown:Z,[e(j)]:""}));function k(p){ge()(p),!p.defaultPrevented&&(p.preventDefault(),P.parentMenu.root.isUsingKeyboard&&P.parentMenu.contentNode&&pa.dispatch(P.parentMenu.contentNode))}function Ee(p){_e()(p),!p.defaultPrevented&&p.preventDefault()}function Be(p){f()(p),!p.defaultPrevented&&P.parentMenu.onClose()}function Oe(p){x()(p),!p.defaultPrevented&&P.parentMenu.onClose()}function ne(p){F()(p),!p.defaultPrevented&&_a(p.target)&&p.target.id!==P.parentMenu.triggerNode?.id&&P.parentMenu.onClose()}var we=v(),Ve=n(we);{var ze=p=>{ga(p,gt(()=>e(G),{get ref(){return P.opts.ref},get interactOutsideBehavior(){return T()},get escapeKeydownBehavior(){return oe()},onOpenAutoFocus:k,get enabled(){return P.parentMenu.opts.open.current},onInteractOutside:Be,onEscapeKeydown:Oe,onFocusOutside:ne,preventScroll:!1,get loop(){return $()},get trapFocus(){return O()},get shouldRender(){return P.shouldRender},popper:(q,Y)=>{let B=()=>Y?.().props,se=()=>Y?.().wrapperProps;const $e=R(()=>fr(B(),e(G),{style:Kr("menu")}));var He=v(),Pe=n(He);{var X=ee=>{var y=v(),b=n(y);{let I=R(()=>({props:e($e),wrapperProps:se(),...P.snippetProps}));Ut(b,()=>o.child,()=>e(I))}t(ee,y)},me=ee=>{var y=Ea();er(y,()=>({...se()}));var b=C(y);er(b,()=>({...e($e)}));var I=C(b);Ut(I,()=>o.children??sr),D(b),D(y),t(ee,y)};ve(Pe,ee=>{o.child?ee(X):ee(me,!1)})}t(q,He)},$$slots:{popper:!0}}))},ot=p=>{var W=v(),q=n(W);{var Y=B=>{ma(B,gt(()=>e(G),{get ref(){return P.opts.ref},get interactOutsideBehavior(){return T()},get escapeKeydownBehavior(){return oe()},onCloseAutoFocus:Ee,onOpenAutoFocus:k,get open(){return P.parentMenu.opts.open.current},onInteractOutside:Be,onEscapeKeydown:Oe,onFocusOutside:ne,preventScroll:!1,get loop(){return $()},get trapFocus(){return O()},get shouldRender(){return P.shouldRender},popper:($e,He)=>{let Pe=()=>He?.().props,X=()=>He?.().wrapperProps;const me=R(()=>fr(Pe(),e(G),{style:Kr("menu")}));var ee=v(),y=n(ee);{var b=te=>{var J=v(),ye=n(J);{let Qe=R(()=>({props:e(me),wrapperProps:X(),...P.snippetProps}));Ut(ye,()=>o.child,()=>e(Qe))}t(te,J)},I=te=>{var J=Ba();er(J,()=>({...X()}));var ye=C(J);er(ye,()=>({...e(me)}));var Qe=C(ye);Ut(Qe,()=>o.children??sr),D(ye),D(J),t(te,J)};ve(y,te=>{o.child?te(b):te(I,!1)})}t($e,ee)},$$slots:{popper:!0}}))};ve(q,B=>{m()||B(Y)},!0)}t(p,W)};ve(Ve,p=>{m()?p(ze):p(ot,!1)})}t(A,we),At()}var Ka=d("<div><!></div>");function Ua(A,o){const i=Lr();Wt(o,!0);let u=E(o,"id",19,()=>qr(i)),g=E(o,"disabled",3,!1),$=E(o,"ref",15,null),f=E(o,"onSelect",3,Kt),m=E(o,"openDelay",3,100),x=lr(o,["$$slots","$$events","$$legacy","id","disabled","ref","children","child","onSelect","openDelay"]);const T=ha.create({disabled:St(()=>g()),onSelect:St(()=>f()),id:St(()=>u()),ref:St(()=>$(),ge=>$(ge)),openDelay:St(()=>m())}),oe=R(()=>fr(x,T.props));xa(A,{get id(){return u()},get ref(){return T.opts.ref},children:(ge,_e)=>{var F=v(),Ne=n(F);{var O=P=>{var Z=v(),j=n(Z);Ut(j,()=>o.child,()=>({props:e(oe)})),t(P,Z)},xe=P=>{var Z=Ka();er(Z,()=>({...e(oe)}));var j=C(Z);Ut(j,()=>o.children??sr),D(Z),t(P,Z)};ve(Ne,P=>{o.child?P(O):P(xe,!1)})}t(ge,F)},$$slots:{default:!0}}),At()}function $r(A,o){const i=Rt(o,["children","$$slots","$$events","$$legacy"]);const u=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]];Gt(A,gt({name:"circle-alert"},()=>i,{get iconNode(){return u},children:(g,$)=>{var f=v(),m=n(f);Lt(m,o,"default",{},null),t(g,f)},$$slots:{default:!0}}))}function Fr(A,o){const i=Rt(o,["children","$$slots","$$events","$$legacy"]);const u=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"12",cy:"5",r:"1"}],["circle",{cx:"12",cy:"19",r:"1"}]];Gt(A,gt({name:"ellipsis-vertical"},()=>i,{get iconNode(){return u},children:(g,$)=>{var f=v(),m=n(f);Lt(m,o,"default",{},null),t(g,f)},$$slots:{default:!0}}))}function Ra(A,o){const i=Rt(o,["children","$$slots","$$events","$$legacy"]);const u=[["path",{d:"M12 2v20"}],["path",{d:"m15 19-3 3-3-3"}],["path",{d:"m19 9 3 3-3 3"}],["path",{d:"M2 12h20"}],["path",{d:"m5 9-3 3 3 3"}],["path",{d:"m9 5 3-3 3 3"}]];Gt(A,gt({name:"move"},()=>i,{get iconNode(){return u},children:(g,$)=>{var f=v(),m=n(f);Lt(m,o,"default",{},null),t(g,f)},$$slots:{default:!0}}))}function Ga(A,o){const i=Rt(o,["children","$$slots","$$events","$$legacy"]);const u=[["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"}],["path",{d:"m15 5 4 4"}]];Gt(A,gt({name:"pencil"},()=>i,{get iconNode(){return u},children:(g,$)=>{var f=v(),m=n(f);Lt(m,o,"default",{},null),t(g,f)},$$slots:{default:!0}}))}function nr(A,o){const i=Rt(o,["children","$$slots","$$events","$$legacy"]);const u=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];Gt(A,gt({name:"plus"},()=>i,{get iconNode(){return u},children:(g,$)=>{var f=v(),m=n(f);Lt(m,o,"default",{},null),t(g,f)},$$slots:{default:!0}}))}function La(A,o){const i=Rt(o,["children","$$slots","$$events","$$legacy"]);const u=[["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"}],["path",{d:"M20 2v4"}],["path",{d:"M22 4h-4"}],["circle",{cx:"4",cy:"20",r:"2"}]];Gt(A,gt({name:"sparkles"},()=>i,{get iconNode(){return u},children:(g,$)=>{var f=v(),m=n(f);Lt(m,o,"default",{},null),t(g,f)},$$slots:{default:!0}}))}function Wr(A,o){const i=Rt(o,["children","$$slots","$$events","$$legacy"]);const u=[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]];Gt(A,gt({name:"trash-2"},()=>i,{get iconNode(){return u},children:(g,$)=>{var f=v(),m=n(f);Lt(m,o,"default",{},null),t(g,f)},$$slots:{default:!0}}))}function Va(A,o){const i=Rt(o,["children","$$slots","$$events","$$legacy"]);const u=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];Gt(A,gt({name:"x"},()=>i,{get iconNode(){return u},children:(g,$)=>{var f=v(),m=n(f);Lt(m,o,"default",{},null),t(g,f)},$$slots:{default:!0}}))}function Ha(A,o){Wt(o,!0);let i=E(o,"open",15,!1),u=lr(o,["$$slots","$$events","$$legacy","open"]);var g=v(),$=n(g);s($,()=>Na,(f,m)=>{m(f,gt(()=>u,{get open(){return i()},set open(x){i(x)}}))}),t(A,g),At()}function qa(A,o){Wt(o,!0);let i=E(o,"ref",15,null),u=lr(o,["$$slots","$$events","$$legacy","ref","class"]);var g=v(),$=n(g);{let f=R(()=>Vr("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",o.class));s($,()=>za,(m,x)=>{x(m,gt({"data-slot":"dropdown-menu-sub-content",get class(){return e(f)}},()=>u,{get ref(){return i()},set ref(T){i(T)}}))})}t(A,g),At()}var Ya=d("<!> <!>",1);function Xa(A,o){Wt(o,!0);let i=E(o,"ref",15,null),u=lr(o,["$$slots","$$events","$$legacy","ref","class","inset","children"]);var g=v(),$=n(g);{let f=R(()=>Vr("data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o.class));s($,()=>Ua,(m,x)=>{x(m,gt({"data-slot":"dropdown-menu-sub-trigger",get"data-inset"(){return o.inset},get class(){return e(f)}},()=>u,{get ref(){return i()},set ref(T){i(T)},children:(T,oe)=>{var ge=Ya(),_e=n(ge);Ut(_e,()=>o.children??sr);var F=l(_e,2);Pa(F,{class:"ms-auto size-4"}),t(T,ge)},$$slots:{default:!0}}))})}t(A,g),At()}const Ja=()=>{if(!Qr.isAuthenticated)throw Jr(302,"/login")},Ln=Object.freeze(Object.defineProperty({__proto__:null,load:Ja},Symbol.toStringTag,{value:"Module"}));var Qa=d('<span class="text-xs font-normal text-muted-foreground"> </span>'),Za=d(" <!>",1),eo=d("<!> Edit",1),to=d("<!> Move",1),ro=d("<!> Up",1),ao=d("<!> Down",1),oo=d("<!> Left",1),no=d("<!> Right",1),so=d("<!> <!>",1),lo=d("<!> <!> <!>",1),io=d("<!> <!>",1),uo=d("<!> Delete",1),co=d("<!> <!> <!> <!>",1),vo=d("<!> <!>",1),fo=d('<div class="flex items-center justify-between"><!> <div class="flex items-center"><button type="button"><!></button> <!></div></div>'),go=d("<!> <!>",1),_o=d("<div><!></div>"),po=d('<div class="grid grid-cols-1 gap-4 md:grid-cols-3"><!> <button class="flex min-h-[240px] cursor-pointer items-center justify-center rounded-lg border border-dashed border-muted-foreground/25 text-muted-foreground transition-colors hover:border-primary hover:text-primary"><div class="flex flex-col items-center gap-2"><!> <span class="text-sm font-medium">Add Metric Widget</span></div></button></div>');function $o(A,o){Wt(o,!0);let i=E(o,"widgets",19,()=>[]),u=E(o,"timeDomain",3,null),g=S(null),$=S(3);Zt(()=>{const _e=window.matchMedia("(min-width: 768px)"),F=Ne=>{a($,Ne.matches?3:1,!0)};return F(_e),_e.addEventListener("change",F),()=>_e.removeEventListener("change",F)});const f=R(()=>[...i()].sort((_e,F)=>_e.position-F.position));var m=po(),x=C(m);Ft(x,19,()=>e(f),_e=>_e.id,(_e,F,Ne)=>{var O=_o(),xe=C(O);s(xe,()=>la,(P,Z)=>{Z(P,{class:"h-full gap-0",children:(j,G)=>{var k=go(),Ee=n(k);s(Ee,()=>da,(Oe,ne)=>{ne(Oe,{class:"pr-2 pb-1",children:(we,Ve)=>{var ze=fo(),ot=C(ze);s(ot,()=>ia,(B,se)=>{se(B,{class:"text-sm font-medium",children:($e,He)=>{c();var Pe=Za(),X=n(Pe,!0),me=l(X);{var ee=y=>{var b=Qa(),I=C(b);D(b),ae(()=>fe(I,`(${e(F).config.unit??""})`)),t(y,b)};ve(me,y=>{e(F).config?.unit&&y(ee)})}ae(()=>fe(X,e(F).title)),t($e,Pe)},$$slots:{default:!0}})});var p=l(ot,2),W=C(p);W.__click=()=>o.onToggleStar?.(e(F));var q=C(W);{let B=R(()=>e(F).isStarred?"fill-current":"");Da(q,{get class(){return`h-4 w-4 ${e(B)??""}`}})}D(W);var Y=l(W,2);s(Y,()=>Dr,(B,se)=>{se(B,{children:($e,He)=>{var Pe=vo(),X=n(Pe);s(X,()=>Tr,(ee,y)=>{y(ee,{class:"inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:(b,I)=>{Fr(b,{class:"h-4 w-4"})},$$slots:{default:!0}})});var me=l(X,2);s(me,()=>Mr,(ee,y)=>{y(ee,{align:"end",children:(b,I)=>{var te=co(),J=n(te);s(J,()=>zt,(je,z)=>{z(je,{onclick:()=>o.onEditWidget?.(e(F)),children:(be,L)=>{var Se=eo(),K=n(Se);Ga(K,{class:"mr-2 h-4 w-4"}),c(),t(be,Se)},$$slots:{default:!0}})});var ye=l(J,2);s(ye,()=>Ha,(je,z)=>{z(je,{children:(be,L)=>{var Se=io(),K=n(Se);s(K,()=>Xa,(pe,Ue)=>{Ue(pe,{children:(V,le)=>{var he=to(),Q=n(he);Ra(Q,{class:"mr-2 h-4 w-4"}),c(),t(V,he)},$$slots:{default:!0}})});var ke=l(K,2);s(ke,()=>qa,(pe,Ue)=>{Ue(pe,{children:(V,le)=>{var he=lo(),Q=n(he);{let Re=R(()=>e(Ne)<e($));s(Q,()=>zt,(Ze,De)=>{De(Ze,{get disabled(){return e(Re)},onclick:()=>o.onMoveWidget?.(e(F).id,-e($)),children:(de,Te)=>{var Ge=ro(),r=n(Ge);Fa(r,{class:"mr-2 h-4 w-4"}),c(),t(de,Ge)},$$slots:{default:!0}})})}var Ce=l(Q,2);{let Re=R(()=>e(Ne)>e(f).length-1-e($));s(Ce,()=>zt,(Ze,De)=>{De(Ze,{get disabled(){return e(Re)},onclick:()=>o.onMoveWidget?.(e(F).id,e($)),children:(de,Te)=>{var Ge=ao(),r=n(Ge);Wa(r,{class:"mr-2 h-4 w-4"}),c(),t(de,Ge)},$$slots:{default:!0}})})}var Ct=l(Ce,2);{var ct=Re=>{var Ze=so(),De=n(Ze);{let Te=R(()=>e(Ne)%e($)===0);s(De,()=>zt,(Ge,r)=>{r(Ge,{get disabled(){return e(Te)},onclick:()=>o.onMoveWidget?.(e(F).id,-1),children:(_,M)=>{var Ie=oo(),Ye=n(Ie);Aa(Ye,{class:"mr-2 h-4 w-4"}),c(),t(_,Ie)},$$slots:{default:!0}})})}var de=l(De,2);{let Te=R(()=>e(Ne)%e($)===e($)-1||e(Ne)+1>=e(f).length);s(de,()=>zt,(Ge,r)=>{r(Ge,{get disabled(){return e(Te)},onclick:()=>o.onMoveWidget?.(e(F).id,1),children:(_,M)=>{var Ie=no(),Ye=n(Ie);Oa(Ye,{class:"mr-2 h-4 w-4"}),c(),t(_,Ie)},$$slots:{default:!0}})})}t(Re,Ze)};ve(Ct,Re=>{e($)>1&&Re(ct)})}t(V,he)},$$slots:{default:!0}})}),t(be,Se)},$$slots:{default:!0}})});var Qe=l(ye,2);s(Qe,()=>wa,(je,z)=>{z(je,{})});var qe=l(Qe,2);s(qe,()=>zt,(je,z)=>{z(je,{class:"text-destructive",onclick:()=>o.onDeleteWidget?.(e(F)),children:(be,L)=>{var Se=uo(),K=n(Se);Wr(K,{class:"mr-2 h-4 w-4"}),c(),t(be,Se)},$$slots:{default:!0}})}),t(b,te)},$$slots:{default:!0}})}),t($e,Pe)},$$slots:{default:!0}})}),D(p),D(ze),ae(()=>{Er(W,"aria-label",e(F).isStarred?"Unstar widget":"Star widget"),Er(W,"title",e(F).isStarred?"Unstar":"Star"),Hr(W,1,`inline-flex h-7 w-7 items-center justify-center rounded-md transition-colors hover:bg-muted ${e(F).isStarred?"text-yellow-500 hover:text-yellow-600":"text-muted-foreground hover:text-foreground"}`)}),t(we,ze)},$$slots:{default:!0}})});var Be=l(Ee,2);s(Be,()=>ua,(Oe,ne)=>{ne(Oe,{class:"p-1",children:(we,Ve)=>{Ta(we,{get widget(){return e(F)},get fromDateUTC(){return o.fromDateUTC},get toDateUTC(){return o.toDateUTC},get timeDomain(){return u()},get onRangeSelect(){return o.onRangeSelect},get sharedHoverTime(){return e(g)},onHoverTimeChange:ze=>a(g,ze,!0),isSourceChart:!1})},$$slots:{default:!0}})}),t(j,k)},$$slots:{default:!0}})}),D(O),t(_e,O)});var T=l(x,2);T.__click=()=>o.onAddWidget?.();var oe=C(T),ge=C(oe);nr(ge,{class:"h-8 w-8"}),c(2),D(oe),D(T),D(m),t(A,m),At()}Ar(["click"]);var mo=d('<div class="flex items-center gap-1 rounded-md border bg-muted/50 px-2 py-1 text-xs"><span class="font-medium"> </span> <span class="text-muted-foreground">=</span> <span> </span> <button class="ml-1 rounded hover:bg-muted"><!></button></div>'),ho=d("<!> <!>",1),xo=d("<!> <!>",1),wo=d("<!> <!>",1),Po=d('<div class="flex flex-wrap items-center gap-2"><!> <!></div>');function yo(A,o){Wt(o,!0);let i=E(o,"tagKeys",19,()=>[]),u=E(o,"activeFilters",19,()=>({})),g=S(""),$=xt({}),f=S(!1);async function m(O){if(a(g,O,!0),!$[O]){a(f,!0);try{$[O]=await o.onLoadTagValues(O)}catch{$[O]=[]}finally{a(f,!1)}}}function x(O){if(!e(g))return;const xe={...u(),[e(g)]:O};o.onFilterChange(xe),a(g,"")}function T(O){const xe={...u()};delete xe[O],o.onFilterChange(xe)}const oe=R(()=>i().filter(O=>!(O in u())));var ge=Po(),_e=C(ge);Ft(_e,17,()=>Object.entries(u()),tr,(O,xe)=>{var P=R(()=>ra(e(xe),2));let Z=()=>e(P)[0],j=()=>e(P)[1];var G=mo(),k=C(G),Ee=C(k,!0);D(k);var Be=l(k,4),Oe=C(Be,!0);D(Be);var ne=l(Be,2);ne.__click=()=>T(Z());var we=C(ne);Va(we,{class:"h-3 w-3"}),D(ne),D(G),ae(()=>{fe(Ee,Z()),fe(Oe,j())}),t(O,G)});var F=l(_e,2);{var Ne=O=>{var xe=v(),P=n(xe);{var Z=G=>{var k=xo(),Ee=n(k);s(Ee,()=>Jt,(Oe,ne)=>{ne(Oe,{type:"single",onValueChange:we=>{we&&x(we)},children:(we,Ve)=>{var ze=ho(),ot=n(ze);s(ot,()=>Yt,(W,q)=>{q(W,{class:"h-7 w-[140px] text-xs",children:(Y,B)=>{var se=v(),$e=n(se);{var He=X=>{var me=h("Loading...");t(X,me)},Pe=X=>{var me=h("Select value");t(X,me)};ve($e,X=>{e(f)?X(He):X(Pe,!1)})}t(Y,se)},$$slots:{default:!0}})});var p=l(ot,2);s(p,()=>Xt,(W,q)=>{q(W,{children:(Y,B)=>{var se=v(),$e=n(se);Ft($e,17,()=>$[e(g)]??[],tr,(He,Pe)=>{var X=v(),me=n(X);s(me,()=>at,(ee,y)=>{y(ee,{get value(){return e(Pe)},children:(b,I)=>{c();var te=h();ae(()=>fe(te,e(Pe))),t(b,te)},$$slots:{default:!0}})}),t(He,X)}),t(Y,se)},$$slots:{default:!0}})}),t(we,ze)},$$slots:{default:!0}})});var Be=l(Ee,2);ht(Be,{variant:"ghost",size:"sm",class:"h-7 px-2 text-xs",onclick:()=>a(g,""),children:(Oe,ne)=>{c();var we=h("Cancel");t(Oe,we)},$$slots:{default:!0}}),t(G,k)},j=G=>{var k=v(),Ee=n(k);s(Ee,()=>Jt,(Be,Oe)=>{Oe(Be,{type:"single",onValueChange:ne=>{ne&&m(ne)},children:(ne,we)=>{var Ve=wo(),ze=n(Ve);s(ze,()=>Yt,(p,W)=>{W(p,{class:"h-7 w-[140px] text-xs",children:(q,Y)=>{c();var B=h("+ Filter by tag");t(q,B)},$$slots:{default:!0}})});var ot=l(ze,2);s(ot,()=>Xt,(p,W)=>{W(p,{children:(q,Y)=>{var B=v(),se=n(B);Ft(se,17,()=>e(oe),tr,($e,He)=>{var Pe=v(),X=n(Pe);s(X,()=>at,(me,ee)=>{ee(me,{get value(){return e(He)},children:(y,b)=>{c();var I=h();ae(()=>fe(I,e(He))),t(y,I)},$$slots:{default:!0}})}),t($e,Pe)}),t(q,B)},$$slots:{default:!0}})}),t(ne,Ve)},$$slots:{default:!0}})}),t(G,k)};ve(P,G=>{e(g)?G(Z):G(j,!1)})}t(O,xe)};ve(F,O=>{e(oe).length>0&&O(Ne)})}D(ge),t(A,ge),At()}Ar(["click"]);var bo=d("<!> <!> <!>",1),So=d("<!> <!> <!> <!> <!>",1),Co=d("<!> <!>",1),Do=d("<!> <!>",1),To=d("<!> <!> <!> <!> <!>",1),Mo=d("<!> <!>",1),Fo=d("<!> <!>",1),Wo=d("<!> <!>",1),Ao=d('<div class="space-y-1"><span class="text-xs text-muted-foreground">Tag Filters</span> <!></div> <div><span class="text-xs text-muted-foreground">Group By</span> <!></div>',1),Oo=d('<div class="space-y-2 rounded-md border p-3"><div class="flex items-center gap-2"><!> <!></div> <!></div>'),jo=d("<!> Update Widget",1),ko=d("<!> Add Widget",1),Io=d("<!> <!>",1),No=d('<!> <!> <div class="space-y-4"><div><label class="text-sm font-medium" for="widget-title">Title (optional)</label> <!></div> <div><label class="text-sm font-medium">Widget Type</label> <!></div> <div><label class="text-sm font-medium" for="widget-unit">Unit (optional)</label> <!> <p class="text-xs text-muted-foreground mt-1">%, ms, s, MB, GB, bytes, count, ns</p></div> <!></div> <!>',1);function Eo(A,o){Wt(o,!0);let i=E(o,"open",15,!1),u=E(o,"widget",3,null),g=E(o,"availableMetrics",19,()=>[]),$=E(o,"error",3,""),f=S(xt(u()?.title??"")),m=S(xt(u()?.widgetType??"line_chart")),x=S(xt(u()?.config?.unit??"")),T=S(!!u()?.config?.unit),oe=S(xt(u()?.config?.sources??[{type:"metric",name:"",aggregation:"avg"}]));Zt(()=>{i()&&(a(f,u()?.title??"",!0),a(m,u()?.widgetType??"line_chart",!0),a(x,u()?.config?.unit??"",!0),a(T,!!u()?.config?.unit),a(oe,u()?.config?.sources?[...u().config.sources]:[{type:"metric",name:"",aggregation:"avg"}],!0))});function ge(j){return g().find(k=>k.name===j)?.tagKeys??[]}function _e(j){return g().find(k=>k.name===j)?.unit??""}async function F(j,G){try{return(await $t.get(`/metrics/discover/tags?name=${encodeURIComponent(j)}&key=${encodeURIComponent(G)}`,{projectId:mt.currentProjectId??void 0})).values||[]}catch{return[]}}function Ne(j,G){e(oe)[j].name=G,e(T)||a(x,_e(G),!0)}function O(){const j=e(oe).filter(Ee=>Ee.name),G=e(f).trim()||j[0]?.name||"",k={sources:j};e(x)&&(k.unit=e(x)),o.onSave({title:G,widgetType:e(m),config:k})}function xe(){i(!1),o.onCancel()}var P=v(),Z=n(P);s(Z,()=>vr,(j,G)=>{G(j,{get open(){return i()},set open(k){i(k)},children:(k,Ee)=>{var Be=v(),Oe=n(Be);s(Oe,()=>dr,(ne,we)=>{we(ne,{class:"max-w-xl",interactOutsideBehavior:"close",children:(Ve,ze)=>{var ot=No(),p=n(ot);s(p,()=>ir,(y,b)=>{b(y,{children:(I,te)=>{var J=v(),ye=n(J);s(ye,()=>ur,(Qe,qe)=>{qe(Qe,{children:(je,z)=>{c();var be=h();ae(()=>fe(be,u()?.id?"Edit Widget":"Add Widget")),t(je,be)},$$slots:{default:!0}})}),t(I,J)},$$slots:{default:!0}})});var W=l(p,2);{var q=y=>{var b=v(),I=n(b);s(I,()=>gr,(te,J)=>{J(te,{variant:"destructive",class:"bg-red-50 border-red-200",children:(ye,Qe)=>{var qe=bo(),je=n(qe);$r(je,{class:"h-4 w-4 text-red-700"});var z=l(je,2);s(z,()=>pr,(L,Se)=>{Se(L,{class:"text-red-800",children:(K,ke)=>{c();var pe=h("Error");t(K,pe)},$$slots:{default:!0}})});var be=l(z,2);s(be,()=>_r,(L,Se)=>{Se(L,{class:"text-red-700",children:(K,ke)=>{c();var pe=h();ae(()=>fe(pe,$())),t(K,pe)},$$slots:{default:!0}})}),t(ye,qe)},$$slots:{default:!0}})}),t(y,b)};ve(W,y=>{$()&&y(q)})}var Y=l(W,2),B=C(Y),se=l(C(B),2);Cr(se,{id:"widget-title",placeholder:"Defaults to metric name",get value(){return e(f)},set value(y){a(f,y,!0)}}),D(B);var $e=l(B,2),He=l(C($e),2);s(He,()=>Jt,(y,b)=>{b(y,{type:"single",get value(){return e(m)},onValueChange:I=>{I&&a(m,I,!0)},children:(I,te)=>{var J=Co(),ye=n(J);s(ye,()=>Yt,(qe,je)=>{je(qe,{children:(z,be)=>{c();var L=h();ae(()=>fe(L,{line_chart:"Line Chart",area_chart:"Area Chart",bar_chart:"Bar Chart",single_value:"Single Value",table:"Table"}[e(m)]??e(m))),t(z,L)},$$slots:{default:!0}})});var Qe=l(ye,2);s(Qe,()=>Xt,(qe,je)=>{je(qe,{children:(z,be)=>{var L=So(),Se=n(L);s(Se,()=>at,(V,le)=>{le(V,{value:"line_chart",children:(he,Q)=>{c();var Ce=h("Line Chart");t(he,Ce)},$$slots:{default:!0}})});var K=l(Se,2);s(K,()=>at,(V,le)=>{le(V,{value:"area_chart",children:(he,Q)=>{c();var Ce=h("Area Chart");t(he,Ce)},$$slots:{default:!0}})});var ke=l(K,2);s(ke,()=>at,(V,le)=>{le(V,{value:"bar_chart",children:(he,Q)=>{c();var Ce=h("Bar Chart");t(he,Ce)},$$slots:{default:!0}})});var pe=l(ke,2);s(pe,()=>at,(V,le)=>{le(V,{value:"single_value",children:(he,Q)=>{c();var Ce=h("Single Value");t(he,Ce)},$$slots:{default:!0}})});var Ue=l(pe,2);s(Ue,()=>at,(V,le)=>{le(V,{value:"table",children:(he,Q)=>{c();var Ce=h("Table");t(he,Ce)},$$slots:{default:!0}})}),t(z,L)},$$slots:{default:!0}})}),t(I,J)},$$slots:{default:!0}})}),D($e);var Pe=l($e,2),X=l(C(Pe),2);Cr(X,{id:"widget-unit",placeholder:"Auto-detected from metric",oninput:()=>{a(T,e(x).length>0)},get value(){return e(x)},set value(y){a(x,y,!0)}}),c(2),D(Pe);var me=l(Pe,2);Ft(me,17,()=>e(oe),tr,(y,b,I)=>{var te=Oo(),J=C(te),ye=C(J);s(ye,()=>Jt,(z,be)=>{be(z,{type:"single",get value(){return e(b).name},onValueChange:L=>{L&&Ne(I,L)},children:(L,Se)=>{var K=Do(),ke=n(K);s(ke,()=>Yt,(Ue,V)=>{V(Ue,{class:"flex-1",children:(le,he)=>{c();var Q=h();ae(()=>fe(Q,e(b).name||"Select metric")),t(le,Q)},$$slots:{default:!0}})});var pe=l(ke,2);s(pe,()=>Xt,(Ue,V)=>{V(Ue,{children:(le,he)=>{var Q=v(),Ce=n(Q);Ft(Ce,17,g,tr,(Ct,ct)=>{var Re=v(),Ze=n(Re);s(Ze,()=>at,(De,de)=>{de(De,{get value(){return e(ct).name},children:(Te,Ge)=>{c();var r=h();ae(()=>fe(r,e(ct).name)),t(Te,r)},$$slots:{default:!0}})}),t(Ct,Re)}),t(le,Q)},$$slots:{default:!0}})}),t(L,K)},$$slots:{default:!0}})});var Qe=l(ye,2);s(Qe,()=>Jt,(z,be)=>{be(z,{type:"single",get value(){return e(b).aggregation},onValueChange:L=>{L&&(e(oe)[I].aggregation=L)},children:(L,Se)=>{var K=Mo(),ke=n(K);s(ke,()=>Yt,(Ue,V)=>{V(Ue,{class:"w-20",children:(le,he)=>{c();var Q=h();ae(()=>fe(Q,e(b).aggregation)),t(le,Q)},$$slots:{default:!0}})});var pe=l(ke,2);s(pe,()=>Xt,(Ue,V)=>{V(Ue,{children:(le,he)=>{var Q=To(),Ce=n(Q);s(Ce,()=>at,(De,de)=>{de(De,{value:"avg",children:(Te,Ge)=>{c();var r=h("avg");t(Te,r)},$$slots:{default:!0}})});var Ct=l(Ce,2);s(Ct,()=>at,(De,de)=>{de(De,{value:"min",children:(Te,Ge)=>{c();var r=h("min");t(Te,r)},$$slots:{default:!0}})});var ct=l(Ct,2);s(ct,()=>at,(De,de)=>{de(De,{value:"max",children:(Te,Ge)=>{c();var r=h("max");t(Te,r)},$$slots:{default:!0}})});var Re=l(ct,2);s(Re,()=>at,(De,de)=>{de(De,{value:"sum",children:(Te,Ge)=>{c();var r=h("sum");t(Te,r)},$$slots:{default:!0}})});var Ze=l(Re,2);s(Ze,()=>at,(De,de)=>{de(De,{value:"count",children:(Te,Ge)=>{c();var r=h("count");t(Te,r)},$$slots:{default:!0}})}),t(le,Q)},$$slots:{default:!0}})}),t(L,K)},$$slots:{default:!0}})}),D(J);var qe=l(J,2);{var je=z=>{var be=Ao(),L=n(be),Se=l(C(L),2);{let pe=R(()=>ge(e(b).name)),Ue=R(()=>e(b).tagFilters??{});yo(Se,{get tagKeys(){return e(pe)},get activeFilters(){return e(Ue)},onFilterChange:V=>{e(oe)[I].tagFilters=Object.keys(V).length>0?V:void 0},onLoadTagValues:V=>F(e(b).name,V)})}D(L);var K=l(L,2),ke=l(C(K),2);{let pe=R(()=>e(b).groupBy??"");s(ke,()=>Jt,(Ue,V)=>{V(Ue,{type:"single",get value(){return e(pe)},onValueChange:le=>{e(oe)[I].groupBy=le||void 0},children:(le,he)=>{var Q=Wo(),Ce=n(Q);s(Ce,()=>Yt,(ct,Re)=>{Re(ct,{class:"h-7 w-[160px] text-xs",children:(Ze,De)=>{c();var de=h();ae(()=>fe(de,e(b).groupBy||"None")),t(Ze,de)},$$slots:{default:!0}})});var Ct=l(Ce,2);s(Ct,()=>Xt,(ct,Re)=>{Re(ct,{children:(Ze,De)=>{var de=Fo(),Te=n(de);s(Te,()=>at,(r,_)=>{_(r,{value:"",children:(M,Ie)=>{c();var Ye=h("None");t(M,Ye)},$$slots:{default:!0}})});var Ge=l(Te,2);Ft(Ge,17,()=>ge(e(b).name),tr,(r,_)=>{var M=v(),Ie=n(M);s(Ie,()=>at,(Ye,dt)=>{dt(Ye,{get value(){return e(_)},children:(it,wt)=>{c();var vt=h();ae(()=>fe(vt,e(_))),t(it,vt)},$$slots:{default:!0}})}),t(r,M)}),t(Ze,de)},$$slots:{default:!0}})}),t(le,Q)},$$slots:{default:!0}})})}D(K),t(z,be)};ve(qe,z=>{e(b).name&&ge(e(b).name).length>0&&z(je)})}D(te),t(y,te)}),D(Y);var ee=l(Y,2);s(ee,()=>cr,(y,b)=>{b(y,{children:(I,te)=>{var J=Io(),ye=n(J);ht(ye,{variant:"outline",onclick:xe,children:(qe,je)=>{c();var z=h("Cancel");t(qe,z)},$$slots:{default:!0}});var Qe=l(ye,2);ht(Qe,{onclick:O,children:(qe,je)=>{var z=v(),be=n(z);{var L=K=>{var ke=jo(),pe=n(ke);ja(pe,{class:"mr-1 h-4 w-4"}),c(),t(K,ke)},Se=K=>{var ke=ko(),pe=n(ke);nr(pe,{class:"mr-1 h-4 w-4"}),c(),t(K,ke)};ve(be,K=>{u()?.id?K(L):K(Se,!1)})}t(qe,z)},$$slots:{default:!0}}),t(I,J)},$$slots:{default:!0}})}),t(Ve,ot)},$$slots:{default:!0}})}),t(k,Be)},$$slots:{default:!0}})}),t(A,P),At()}var Bo=d('<div class="flex items-center justify-center py-20"><!></div>'),zo=d("<!> ",1),Ko=d("<!> Create your own Widget Group",1),Uo=d('<div class="flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center"><p class="mb-4 text-muted-foreground">No widget groups yet.</p> <div class="flex flex-wrap items-center justify-center gap-2"><!> <!></div></div>'),Ro=d("<!> <!>",1),Go=d("<span><!></span>"),Lo=d("<!> Delete Group",1),Vo=d("<!> <!>",1),Ho=d(" <!>",1),qo=d("<!> Delete Group",1),Yo=d("<!> <!>",1),Xo=d('<div class="ml-auto flex items-center gap-1"><span class="text-sm whitespace-nowrap text-muted-foreground"> </span> <!></div>'),Jo=d('<div class="flex items-center justify-center py-20"><!></div>'),Qo=d('<div class="flex items-center gap-2"><!> <div><!></div> <button class="inline-flex items-center justify-center rounded-md px-2 py-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"><!></button> <!> <!></div> <!>',1),Zo=d("<!> <!> <!>",1),en=d("<!> New Widget Group",1),tn=d("<!> <!>",1),rn=d('<!> <!> <div class="space-y-4"><div><label class="text-sm font-medium" for="new-group-name">Name</label> <!></div></div> <!>',1),an=d("<!> <!>",1),on=d("<!> <!> <!>",1),nn=d("<!> <!>",1),sn=d("<!> <!> <!>",1),ln=d("<!> <!>",1),dn=d("<!> <!> <!>",1),un=d("<!> <!>",1),cn=d("<!> <!> <!>",1),vn=d('<div class="space-y-4"><div class="mb-2 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"><h2 class="text-2xl font-bold tracking-tight">Metrics</h2> <div class="flex items-center gap-2"><!></div></div> <!></div> <!> <!> <!> <!>',1);function Vn(A,o){Wt(o,!0);const i=R(ka);let u=S(xt([])),g=S(""),$=S(!1),f=S(!1),m=S(!0),x=S(""),T=S(null),oe=S(!1),ge=S(!1),_e=S(""),F=S(!1),Ne=S(""),O=S(!1),xe=S(!1),P=S(""),Z=S(!1),j=S(null),G=S(xt([])),k=S(""),Ee=S(!1),Be=S(null),Oe=S(!1),ne=S(""),we=S(null),Ve=S(null),ze=S(!1);const ot=ya(e(i)),p=ba(ot,e(i));let W=S(xt(ot.preset??"24h")),q=S(xt(Et(p.from,e(i)))),Y=S(xt(Et(p.to,e(i)))),B=S(xt(Bt(p.from,e(i)))),se=S(xt(Bt(p.to,e(i)))),$e=S(null);const He=R(()=>e(we)?Ia(e(we),{timezone:e(i),format:"time"}):"");function Pe(){if(e(W)){const r=Sr(e(W),e(i));a(q,Et(r.from,e(i)),!0),a(Y,Et(r.to,e(i)),!0),a(B,Bt(r.from,e(i)),!0),a(se,Bt(r.to,e(i)),!0)}a($e,[new Date(me()),new Date(ee())],!0),e(x)&&te(e(x))}function X(){e(Ve)&&a(ze,e(Ve).scrollWidth>e(Ve).clientWidth)}Zt(()=>{if(!e(Ve))return;const r=new ResizeObserver(()=>X());return r.observe(e(Ve)),X(),()=>r.disconnect()}),Zt(()=>{e(u),e(Ve)&&requestAnimationFrame(()=>X())});function me(){const[r,_]=(e(B)||"00:00").split(":").map(Number),M=Rr({year:e(q).year,month:e(q).month,day:e(q).day,hour:r,minute:_},e(i));return Gr(M)}function ee(){const[r,_]=(e(se)||"23:59").split(":").map(Number),M=Rr({year:e(Y).year,month:e(Y).month,day:e(Y).day,hour:r,minute:_},e(i)).endOf("minute");return Gr(M)}async function y(){a(m,!0);try{const r=await $t.get("/widget-groups",{projectId:mt.currentProjectId??void 0});a(u,r.widgetGroups||[],!0),a(g,r.framework||"",!0),a($,!!r.canPopulateDefaults),e(u).length>0&&!e(x)&&a(x,String(e(u)[0].id),!0)}catch(r){console.error("Failed to load widget groups:",r)}finally{a(m,!1)}}async function b(){a(f,!0);try{await $t.post("/widget-groups/populate-defaults",{},{projectId:mt.currentProjectId??void 0}),qt.success("Successfully populated default charts",{position:"top-center"}),await y()}catch(r){qt.error(r?.message||"Failed to populate default charts",{position:"top-center"})}finally{a(f,!1)}}const I=R(()=>e(g)?Zr[e(g)]??e(g):"");async function te(r){a(oe,!0);try{const _=await $t.get(`/widget-groups/${r}`,{projectId:mt.currentProjectId??void 0});a(T,_,!0),a(we,new Date,!0)}catch(_){console.error("Failed to load widget group:",_),a(T,null)}finally{a(oe,!1)}}Zt(()=>{e(x)&&te(e(x))}),Zt(()=>{e(Z)||a(k,"")});function J(r){a(x,r,!0),a(Z,!1),a(j,null)}async function ye(){a(F,!0),a(Ne,"");try{const r=await $t.post("/widget-groups",{name:e(_e)},{projectId:mt.currentProjectId??void 0});qt.success("Successfully created a new Widget Group",{position:"top-center"}),a(ge,!1),a(_e,""),await y(),a(x,String(r.id),!0)}catch(r){r?.status===422?a(Ne,r.message,!0):console.error("Failed to create widget group:",r)}finally{a(F,!1)}}async function Qe(){if(e(T)){a(xe,!0),a(P,"");try{await $t.delete(`/widget-groups/${e(T).id}`,{projectId:mt.currentProjectId??void 0}),a(O,!1),a(x,""),a(T,null),await y(),e(u).length>0&&a(x,String(e(u)[0].id),!0)}catch(r){r?.status===422?a(P,r.message,!0):console.error("Failed to delete widget group:",r)}finally{a(xe,!1)}}}function qe(r,_,M){if(a(q,r.date,!0),a(B,r.time,!0),a(Y,_.date,!0),a(se,_.time,!0),a(W,M,!0),e(W)){const Ie=Sr(e(W),e(i));a(q,Et(Ie.from,e(i)),!0),a(Y,Et(Ie.to,e(i)),!0),a(B,Bt(Ie.from,e(i)),!0),a(se,Bt(Ie.to,e(i)),!0)}a($e,[new Date(me()),new Date(ee())],!0),Ca({preset:e(W)??void 0})}function je(r,_){a(W,null),a(q,new Ur(r.getFullYear(),r.getMonth()+1,r.getDate()),!0),a(B,`${String(r.getHours()).padStart(2,"0")}:${String(r.getMinutes()).padStart(2,"0")}`),a(Y,new Ur(_.getFullYear(),_.getMonth()+1,_.getDate()),!0),a(se,`${String(_.getHours()).padStart(2,"0")}:${String(_.getMinutes()).padStart(2,"0")}`),a($e,[r,_],!0)}async function z(){try{const r=await $t.get(`/metrics/discover?from=${me()}&to=${ee()}`,{projectId:mt.currentProjectId??void 0});a(G,r.metrics||[],!0)}catch{}}function be(){a(j,null),a(Z,!0),z()}function L(r){a(j,r,!0),a(Z,!0),z()}function Se(r){a(Be,r,!0),a(Ee,!0)}async function K(){if(!(!e(T)||!e(Be)?.id)){a(Oe,!0),a(ne,"");try{await $t.delete(`/widget-groups/${e(T).id}/widgets/${e(Be).id}`,{projectId:mt.currentProjectId??void 0}),a(Ee,!1),a(Be,null),await te(e(x))}catch(r){r?.status===422?a(ne,r.message,!0):console.error("Failed to delete widget:",r)}finally{a(Oe,!1)}}}async function ke(r){if(!e(T))return;const _=e(T).widgets?.find(Ie=>Ie.id===r.id);if(!_)return;const M=_.isStarred??!1;_.isStarred=!M;try{await $t.put(`/widget-groups/${e(T).id}/widgets/${r.id}/star`,{},{projectId:mt.currentProjectId??void 0})}catch(Ie){_.isStarred=M,qt.error(Ie?.message||"Failed to update star",{position:"top-center"})}}async function pe(r,_){if(e(T))try{await $t.put(`/widget-groups/${e(T).id}/widgets/${r}/move`,{offset:_},{projectId:mt.currentProjectId??void 0}),await te(e(x)),qt.success("Successfully moved the Widget",{position:"top-center"})}catch(M){console.error("Failed to move widget:",M)}}async function Ue(r){if(e(T)){a(k,"");try{e(j)?.id?(await $t.put(`/widget-groups/${e(T).id}/widgets/${e(j).id}`,r,{projectId:mt.currentProjectId??void 0}),qt.success("Successfully updated the Widget",{position:"top-center"})):(await $t.post(`/widget-groups/${e(T).id}/widgets`,r,{projectId:mt.currentProjectId??void 0}),qt.success("Successfully added the Widget",{position:"top-center"})),a(Z,!1),a(j,null),await te(e(x))}catch(_){_?.status===422?a(k,_.message,!0):console.error("Failed to save widget:",_)}}}const V=R(()=>e(u).find(r=>String(r.id)===e(x))?.name??"");ta(()=>{if(y(),e(W)){const r=Sr(e(W),e(i));a(q,Et(r.from,e(i)),!0),a(Y,Et(r.to,e(i)),!0),a(B,Bt(r.from,e(i)),!0),a(se,Bt(r.to,e(i)),!0)}a($e,[new Date(me()),new Date(ee())],!0)});var le=vn(),he=n(le),Q=C(he),Ce=l(C(Q),2),Ct=C(Ce);Sa(Ct,{onApply:qe,get fromDate(){return e(q)},set fromDate(r){a(q,r,!0)},get toDate(){return e(Y)},set toDate(r){a(Y,r,!0)},get fromTime(){return e(B)},set fromTime(r){a(B,r,!0)},get toTime(){return e(se)},set toTime(r){a(se,r,!0)},get preset(){return e(W)},set preset(r){a(W,r,!0)}}),D(Ce),D(Q);var ct=l(Q,2);{var Re=r=>{var _=Bo(),M=C(_);Br(M,{size:"xlg"}),D(_),t(r,_)},Ze=r=>{var _=v(),M=n(_);{var Ie=dt=>{var it=Uo(),wt=l(C(it),2),vt=C(wt);{var Qt=nt=>{ht(nt,{onclick:b,get disabled(){return e(f)},children:(ut,ft)=>{var st=zo(),Me=n(st);La(Me,{class:"mr-1 h-4 w-4"});var Fe=l(Me);ae(()=>fe(Fe,` ${e(f)?"Populating...":e(I)?`Populate default charts for ${e(I)}`:"Populate default charts"}`)),t(ut,st)},$$slots:{default:!0}})};ve(vt,nt=>{e($)&&nt(Qt)})}var _t=l(vt,2);ht(_t,{variant:"outline",onclick:()=>a(ge,!0),children:(nt,ut)=>{var ft=Ko(),st=n(ft);nr(st,{class:"mr-1 h-4 w-4"}),c(),t(nt,ft)},$$slots:{default:!0}}),D(wt),D(it),t(dt,it)},Ye=dt=>{var it=v(),wt=n(it);s(wt,()=>na,(vt,Qt)=>{Qt(vt,{get value(){return e(x)},onValueChange:J,children:(_t,nt)=>{var ut=Qo(),ft=n(ut),st=C(ft);{var Me=w=>{var N=v(),ue=n(N);s(ue,()=>Jt,(Je,ce)=>{ce(Je,{type:"single",get value(){return e(x)},onValueChange:Ae=>{Ae&&J(Ae)},children:(Ae,lt)=>{var Ke=Ro(),Ot=n(Ke);s(Ot,()=>Yt,(Pt,yt)=>{yt(Pt,{size:"sm",children:(bt,pt)=>{c();var rt=h();ae(()=>fe(rt,e(V))),t(bt,rt)},$$slots:{default:!0}})});var kt=l(Ot,2);s(kt,()=>Xt,(Pt,yt)=>{yt(Pt,{children:(bt,pt)=>{var rt=v(),Dt=n(rt);Ft(Dt,17,()=>e(u),Tt=>Tt.id,(Tt,Mt)=>{var It=v(),Nt=n(It);{let jt=R(()=>String(e(Mt).id));s(Nt,()=>at,(rr,mr)=>{mr(rr,{get value(){return e(jt)},children:(hr,Or)=>{c();var xr=h();ae(()=>fe(xr,e(Mt).name)),t(hr,xr)},$$slots:{default:!0}})})}t(Tt,It)}),t(bt,rt)},$$slots:{default:!0}})}),t(Ae,Ke)},$$slots:{default:!0}})}),t(w,N)};ve(st,w=>{e(ze)&&w(Me)})}var Fe=l(st,2);let et;var Le=C(Fe);s(Le,()=>aa,(w,N)=>{N(w,{children:(ue,Je)=>{var ce=v(),Ae=n(ce);Ft(Ae,17,()=>e(u),lt=>lt.id,(lt,Ke)=>{var Ot=v(),kt=n(Ot);{let Pt=R(()=>String(e(Ke).id));s(kt,()=>oa,(yt,bt)=>{bt(yt,{get value(){return e(Pt)},children:(pt,rt)=>{c();var Dt=Ho(),Tt=n(Dt),Mt=l(Tt);{var It=Nt=>{var jt=v(),rr=n(jt);s(rr,()=>Dr,(mr,hr)=>{hr(mr,{children:(Or,xr)=>{var jr=Vo(),kr=n(jr);{const wr=(ar,or)=>{let Ir=()=>or?.().props;var Vt=Go(),Pr=Ht=>Ht.stopPropagation(),yr=Ht=>{(Ht.key==="Enter"||Ht.key===" ")&&Ht.stopPropagation()};er(Vt,()=>({...Ir(),class:"-mr-1 ml-1 inline-flex h-5 w-5 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",role:"button",tabindex:0,onclick:Pr,onkeydown:yr}));var br=C(Vt);Fr(br,{class:"h-3.5 w-3.5"}),D(Vt),t(ar,Vt)};s(kr,()=>Tr,(ar,or)=>{or(ar,{child:wr,$$slots:{child:!0}})})}var Yr=l(kr,2);s(Yr,()=>Mr,(wr,ar)=>{ar(wr,{align:"start",children:(or,Ir)=>{var Vt=v(),Pr=n(Vt);s(Pr,()=>zt,(yr,br)=>{br(yr,{class:"text-destructive",onclick:()=>a(O,!0),children:(Ht,fn)=>{var Nr=Lo(),Xr=n(Nr);Wr(Xr,{class:"mr-2 h-4 w-4"}),c(),t(Ht,Nr)},$$slots:{default:!0}})}),t(or,Vt)},$$slots:{default:!0}})}),t(Or,jr)},$$slots:{default:!0}})}),t(Nt,jt)};ve(Mt,Nt=>{String(e(Ke).id)===e(x)&&Nt(It)})}ae(()=>fe(Tt,`${e(Ke).name??""} `)),t(pt,Dt)},$$slots:{default:!0}})})}t(lt,Ot)}),t(ue,ce)},$$slots:{default:!0}})}),D(Fe),ea(Fe,w=>a(Ve,w),()=>e(Ve));var re=l(Fe,2);re.__click=()=>a(ge,!0);var We=C(re);nr(We,{class:"h-4 w-4"}),D(re);var tt=l(re,2);{var U=w=>{var N=v(),ue=n(N);s(ue,()=>Dr,(Je,ce)=>{ce(Je,{children:(Ae,lt)=>{var Ke=Yo(),Ot=n(Ke);s(Ot,()=>Tr,(Pt,yt)=>{yt(Pt,{class:"inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:(bt,pt)=>{Fr(bt,{class:"h-4 w-4"})},$$slots:{default:!0}})});var kt=l(Ot,2);s(kt,()=>Mr,(Pt,yt)=>{yt(Pt,{align:"end",children:(bt,pt)=>{var rt=v(),Dt=n(rt);s(Dt,()=>zt,(Tt,Mt)=>{Mt(Tt,{class:"text-destructive",onclick:()=>a(O,!0),children:(It,Nt)=>{var jt=qo(),rr=n(jt);Wr(rr,{class:"mr-2 h-4 w-4"}),c(),t(It,jt)},$$slots:{default:!0}})}),t(bt,rt)},$$slots:{default:!0}})}),t(Ae,Ke)},$$slots:{default:!0}})}),t(w,N)};ve(tt,w=>{e(ze)&&e(x)&&w(U)})}var ie=l(tt,2);{var H=w=>{var N=Xo(),ue=C(N),Je=C(ue);D(ue);var ce=l(ue,2);ht(ce,{variant:"ghost",size:"sm",onclick:Pe,get disabled(){return e(oe)},children:(Ae,lt)=>{{let Ke=R(()=>e(oe)?"animate-spin":"");Ma(Ae,{get class(){return`h-4 w-4 ${e(Ke)??""}`}})}},$$slots:{default:!0}}),D(N),ae(()=>fe(Je,`Updated: ${e(He)??""}`)),t(w,N)};ve(ie,w=>{e(we)&&w(H)})}D(ft);var Xe=l(ft,2);Ft(Xe,17,()=>e(u),w=>w.id,(w,N)=>{var ue=v(),Je=n(ue);{let ce=R(()=>String(e(N).id));s(Je,()=>sa,(Ae,lt)=>{lt(Ae,{get value(){return e(ce)},children:(Ke,Ot)=>{var kt=v(),Pt=n(kt);{var yt=pt=>{var rt=Jo(),Dt=C(rt);Br(Dt,{size:"xlg"}),D(rt),t(pt,rt)},bt=pt=>{var rt=v(),Dt=n(rt);{var Tt=Mt=>{{let It=R(()=>e(T).widgets??[]),Nt=R(me),jt=R(ee);$o(Mt,{get widgets(){return e(It)},get fromDateUTC(){return e(Nt)},get toDateUTC(){return e(jt)},get timeDomain(){return e($e)},onEditWidget:L,onDeleteWidget:Se,onMoveWidget:pe,onAddWidget:be,onToggleStar:ke,onRangeSelect:je})}};ve(Dt,Mt=>{e(T)&&e(x)===String(e(N).id)&&Mt(Tt)},!0)}t(pt,rt)};ve(Pt,pt=>{e(oe)&&e(x)===String(e(N).id)?pt(yt):pt(bt,!1)})}t(Ke,kt)},$$slots:{default:!0}})})}t(w,ue)}),ae(()=>et=Hr(Fe,1,"flex min-w-0 items-center overflow-hidden",null,et,{invisible:e(ze),"h-0":e(ze),"w-0":e(ze)})),t(_t,ut)},$$slots:{default:!0}})}),t(dt,it)};ve(M,dt=>{e(u).length===0?dt(Ie):dt(Ye,!1)},!0)}t(r,_)};ve(ct,r=>{e(m)?r(Re):r(Ze,!1)})}D(he);var De=l(he,2);Eo(De,{get widget(){return e(j)},get availableMetrics(){return e(G)},get error(){return e(k)},onSave:Ue,onCancel:()=>{a(Z,!1),a(j,null),a(k,"")},get open(){return e(Z)},set open(r){a(Z,r,!0)}});var de=l(De,2);s(de,()=>vr,(r,_)=>{_(r,{onOpenChange:M=>{M||a(Ne,"")},get open(){return e(ge)},set open(M){a(ge,M,!0)},children:(M,Ie)=>{var Ye=v(),dt=n(Ye);s(dt,()=>dr,(it,wt)=>{wt(it,{interactOutsideBehavior:"close",children:(vt,Qt)=>{var _t=rn(),nt=n(_t);s(nt,()=>ir,(Le,re)=>{re(Le,{children:(We,tt)=>{var U=v(),ie=n(U);s(ie,()=>ur,(H,Xe)=>{Xe(H,{children:(w,N)=>{c();var ue=h("New Widget Group");t(w,ue)},$$slots:{default:!0}})}),t(We,U)},$$slots:{default:!0}})});var ut=l(nt,2);{var ft=Le=>{var re=v(),We=n(re);s(We,()=>gr,(tt,U)=>{U(tt,{variant:"destructive",class:"border-red-200 bg-red-50",children:(ie,H)=>{var Xe=Zo(),w=n(Xe);$r(w,{class:"h-4 w-4 text-red-700"});var N=l(w,2);s(N,()=>pr,(Je,ce)=>{ce(Je,{class:"text-red-800",children:(Ae,lt)=>{c();var Ke=h("Error");t(Ae,Ke)},$$slots:{default:!0}})});var ue=l(N,2);s(ue,()=>_r,(Je,ce)=>{ce(Je,{class:"text-red-700",children:(Ae,lt)=>{c();var Ke=h();ae(()=>fe(Ke,e(Ne))),t(Ae,Ke)},$$slots:{default:!0}})}),t(ie,Xe)},$$slots:{default:!0}})}),t(Le,re)};ve(ut,Le=>{e(Ne)&&Le(ft)})}var st=l(ut,2),Me=C(st),Fe=l(C(Me),2);Cr(Fe,{id:"new-group-name",placeholder:"My Group",maxlength:12,get value(){return e(_e)},set value(Le){a(_e,Le,!0)}}),D(Me),D(st);var et=l(st,2);s(et,()=>cr,(Le,re)=>{re(Le,{children:(We,tt)=>{var U=tn(),ie=n(U);ht(ie,{variant:"outline",onclick:()=>a(ge,!1),children:(Xe,w)=>{c();var N=h("Cancel");t(Xe,N)},$$slots:{default:!0}});var H=l(ie,2);ht(H,{onclick:ye,get disabled(){return e(F)},children:(Xe,w)=>{var N=v(),ue=n(N);{var Je=Ae=>{var lt=h("Creating...");t(Ae,lt)},ce=Ae=>{var lt=en(),Ke=n(lt);nr(Ke,{class:"mr-1 h-4 w-4"}),c(),t(Ae,lt)};ve(ue,Ae=>{e(F)?Ae(Je):Ae(ce,!1)})}t(Xe,N)},$$slots:{default:!0}}),t(We,U)},$$slots:{default:!0}})}),t(vt,_t)},$$slots:{default:!0}})}),t(M,Ye)},$$slots:{default:!0}})});var Te=l(de,2);s(Te,()=>vr,(r,_)=>{_(r,{onOpenChange:M=>{M||a(P,"")},get open(){return e(O)},set open(M){a(O,M,!0)},children:(M,Ie)=>{var Ye=v(),dt=n(Ye);s(dt,()=>dr,(it,wt)=>{wt(it,{interactOutsideBehavior:"close",children:(vt,Qt)=>{var _t=sn(),nt=n(_t);s(nt,()=>ir,(Me,Fe)=>{Fe(Me,{children:(et,Le)=>{var re=an(),We=n(re);s(We,()=>ur,(U,ie)=>{ie(U,{children:(H,Xe)=>{c();var w=h("Delete Widget Group");t(H,w)},$$slots:{default:!0}})});var tt=l(We,2);s(tt,()=>zr,(U,ie)=>{ie(U,{children:(H,Xe)=>{c();var w=h();ae(()=>fe(w,`Are you sure you want to delete "${e(T)?.name??""}"? This will remove all widgets in this
- group. This action cannot be undone.`)),t(H,w)},$$slots:{default:!0}})}),t(et,re)},$$slots:{default:!0}})});var ut=l(nt,2);{var ft=Me=>{var Fe=v(),et=n(Fe);s(et,()=>gr,(Le,re)=>{re(Le,{variant:"destructive",class:"border-red-200 bg-red-50",children:(We,tt)=>{var U=on(),ie=n(U);$r(ie,{class:"h-4 w-4 text-red-700"});var H=l(ie,2);s(H,()=>pr,(w,N)=>{N(w,{class:"text-red-800",children:(ue,Je)=>{c();var ce=h("Error");t(ue,ce)},$$slots:{default:!0}})});var Xe=l(H,2);s(Xe,()=>_r,(w,N)=>{N(w,{class:"text-red-700",children:(ue,Je)=>{c();var ce=h();ae(()=>fe(ce,e(P))),t(ue,ce)},$$slots:{default:!0}})}),t(We,U)},$$slots:{default:!0}})}),t(Me,Fe)};ve(ut,Me=>{e(P)&&Me(ft)})}var st=l(ut,2);s(st,()=>cr,(Me,Fe)=>{Fe(Me,{children:(et,Le)=>{var re=nn(),We=n(re);ht(We,{variant:"outline",onclick:()=>a(O,!1),get disabled(){return e(xe)},children:(U,ie)=>{c();var H=h("Cancel");t(U,H)},$$slots:{default:!0}});var tt=l(We,2);ht(tt,{variant:"destructive",onclick:Qe,get disabled(){return e(xe)},children:(U,ie)=>{c();var H=h();ae(()=>fe(H,e(xe)?"Deleting...":"Delete")),t(U,H)},$$slots:{default:!0}}),t(et,re)},$$slots:{default:!0}})}),t(vt,_t)},$$slots:{default:!0}})}),t(M,Ye)},$$slots:{default:!0}})});var Ge=l(Te,2);s(Ge,()=>vr,(r,_)=>{_(r,{onOpenChange:M=>{M||a(ne,"")},get open(){return e(Ee)},set open(M){a(Ee,M,!0)},children:(M,Ie)=>{var Ye=v(),dt=n(Ye);s(dt,()=>dr,(it,wt)=>{wt(it,{interactOutsideBehavior:"close",children:(vt,Qt)=>{var _t=cn(),nt=n(_t);s(nt,()=>ir,(Me,Fe)=>{Fe(Me,{children:(et,Le)=>{var re=ln(),We=n(re);s(We,()=>ur,(U,ie)=>{ie(U,{children:(H,Xe)=>{c();var w=h("Delete Widget");t(H,w)},$$slots:{default:!0}})});var tt=l(We,2);s(tt,()=>zr,(U,ie)=>{ie(U,{children:(H,Xe)=>{c();var w=h();ae(()=>fe(w,`Are you sure you want to delete "${e(Be)?.title??""}"? This action cannot be undone.`)),t(H,w)},$$slots:{default:!0}})}),t(et,re)},$$slots:{default:!0}})});var ut=l(nt,2);{var ft=Me=>{var Fe=v(),et=n(Fe);s(et,()=>gr,(Le,re)=>{re(Le,{variant:"destructive",class:"border-red-200 bg-red-50",children:(We,tt)=>{var U=dn(),ie=n(U);$r(ie,{class:"h-4 w-4 text-red-700"});var H=l(ie,2);s(H,()=>pr,(w,N)=>{N(w,{class:"text-red-800",children:(ue,Je)=>{c();var ce=h("Error");t(ue,ce)},$$slots:{default:!0}})});var Xe=l(H,2);s(Xe,()=>_r,(w,N)=>{N(w,{class:"text-red-700",children:(ue,Je)=>{c();var ce=h();ae(()=>fe(ce,e(ne))),t(ue,ce)},$$slots:{default:!0}})}),t(We,U)},$$slots:{default:!0}})}),t(Me,Fe)};ve(ut,Me=>{e(ne)&&Me(ft)})}var st=l(ut,2);s(st,()=>cr,(Me,Fe)=>{Fe(Me,{children:(et,Le)=>{var re=un(),We=n(re);ht(We,{variant:"outline",onclick:()=>a(Ee,!1),get disabled(){return e(Oe)},children:(U,ie)=>{c();var H=h("Cancel");t(U,H)},$$slots:{default:!0}});var tt=l(We,2);ht(tt,{variant:"destructive",onclick:K,get disabled(){return e(Oe)},children:(U,ie)=>{c();var H=h();ae(()=>fe(H,e(Oe)?"Deleting...":"Delete")),t(U,H)},$$slots:{default:!0}}),t(et,re)},$$slots:{default:!0}})}),t(vt,_t)},$$slots:{default:!0}})}),t(M,Ye)},$$slots:{default:!0}})}),t(A,le),At()}Ar(["click"]);export{Vn as component,Ln as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/20.Rf6Tmy2E.js.map b/backend/static/frontend/_app/immutable/nodes/20.Rf6Tmy2E.js.map
deleted file mode 100644
index b9e61d42..00000000
--- a/backend/static/frontend/_app/immutable/nodes/20.Rf6Tmy2E.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"20.Rf6Tmy2E.js","sources":["../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-sub.svelte","../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-sub-content.svelte","../../../../../../node_modules/bits-ui/dist/bits/menu/components/menu-sub-trigger.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/circle-alert.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/ellipsis-vertical.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/move.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/pencil.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/plus.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/sparkles.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/trash-2.svelte","../../../../../../node_modules/lucide-svelte/dist/icons/x.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-sub.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte","../../../../../../src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte","../../../../../../src/routes/metrics/+page.ts","../../../../../../src/lib/components/dashboard/widget-grid.svelte","../../../../../../src/lib/components/dashboard/tag-filter.svelte","../../../../../../src/lib/components/dashboard/widget-config-panel.svelte","../../../../../../src/routes/metrics/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith } from \"svelte-toolbelt\";\n\timport type { MenuSubProps } from \"../types.js\";\n\timport { MenuSubmenuState } from \"../menu.svelte.js\";\n\timport FloatingLayer from \"../../utilities/floating-layer/components/floating-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\n\tlet {\n\t\topen = $bindable(false),\n\t\tonOpenChange = noop,\n\t\tonOpenChangeComplete = noop,\n\t\tchildren,\n\t}: MenuSubProps = $props();\n\n\tMenuSubmenuState.create({\n\t\topen: boxWith(\n\t\t\t() => open,\n\t\t\t(v) => {\n\t\t\t\topen = v;\n\t\t\t\tonOpenChange?.(v);\n\t\t\t}\n\t\t),\n\t\tonOpenChangeComplete: boxWith(() => onOpenChangeComplete),\n\t});\n</script>\n\n<FloatingLayer>\n\t{@render children?.()}\n</FloatingLayer>\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuSubContentProps } from \"../types.js\";\n\timport { MenuOpenEvent, MenuContentState } from \"../menu.svelte.js\";\n\timport { SUB_CLOSE_KEYS } from \"../utils.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\timport PopperLayer from \"../../utilities/popper-layer/popper-layer.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { isHTMLElement } from \"../../../internal/is.js\";\n\timport { getFloatingContentCSSVars } from \"../../../internal/floating-svelte/floating-utils.svelte.js\";\n\timport PopperLayerForceMount from \"../../utilities/popper-layer/popper-layer-force-mount.svelte\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\tchildren,\n\t\tchild,\n\t\tloop = true,\n\t\tonInteractOutside = noop,\n\t\tforceMount = false,\n\t\tonEscapeKeydown = noop,\n\t\tinteractOutsideBehavior = \"defer-otherwise-close\",\n\t\tescapeKeydownBehavior = \"defer-otherwise-close\",\n\t\tonOpenAutoFocus: onOpenAutoFocusProp = noop,\n\t\tonCloseAutoFocus: onCloseAutoFocusProp = noop,\n\t\tonFocusOutside = noop,\n\t\tside = \"right\",\n\t\ttrapFocus = false,\n\t\t...restProps\n\t}: MenuSubContentProps = $props();\n\n\tconst subContentState = MenuContentState.create({\n\t\tid: boxWith(() => id),\n\t\tloop: boxWith(() => loop),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\tisSub: true,\n\t\tonCloseAutoFocus: boxWith(() => handleCloseAutoFocus),\n\t});\n\n\tfunction onkeydown(e: KeyboardEvent) {\n\t\tconst isKeyDownInside = (e.currentTarget as HTMLElement).contains(e.target as HTMLElement);\n\t\tconst isCloseKey = SUB_CLOSE_KEYS[\n\t\t\tsubContentState.parentMenu.root.opts.dir.current\n\t\t].includes(e.key);\n\t\tif (isKeyDownInside && isCloseKey) {\n\t\t\tsubContentState.parentMenu.onClose();\n\t\t\tconst triggerNode = subContentState.parentMenu.triggerNode;\n\t\t\ttriggerNode?.focus();\n\t\t\te.preventDefault();\n\t\t}\n\t}\n\n\tconst dataAttr = $derived(subContentState.parentMenu.root.getBitsAttr(\"sub-content\"));\n\n\tconst mergedProps = $derived(\n\t\tmergeProps(restProps, subContentState.props, {\n\t\t\tside,\n\t\t\tonkeydown,\n\t\t\t[dataAttr]: \"\",\n\t\t})\n\t);\n\n\tfunction handleOpenAutoFocus(e: Event) {\n\t\tonOpenAutoFocusProp(e);\n\t\tif (e.defaultPrevented) return;\n\t\te.preventDefault();\n\t\tif (\n\t\t\tsubContentState.parentMenu.root.isUsingKeyboard &&\n\t\t\tsubContentState.parentMenu.contentNode\n\t\t) {\n\t\t\tMenuOpenEvent.dispatch(subContentState.parentMenu.contentNode);\n\t\t}\n\t}\n\n\tfunction handleCloseAutoFocus(e: Event) {\n\t\tonCloseAutoFocusProp(e);\n\t\tif (e.defaultPrevented) return;\n\t\te.preventDefault();\n\t}\n\n\tfunction handleInteractOutside(e: PointerEvent) {\n\t\tonInteractOutside(e);\n\t\tif (e.defaultPrevented) return;\n\t\tsubContentState.parentMenu.onClose();\n\t}\n\n\tfunction handleEscapeKeydown(e: KeyboardEvent) {\n\t\tonEscapeKeydown(e);\n\t\tif (e.defaultPrevented) return;\n\t\tsubContentState.parentMenu.onClose();\n\t}\n\n\tfunction handleOnFocusOutside(e: FocusEvent) {\n\t\tonFocusOutside(e);\n\t\tif (e.defaultPrevented) return;\n\t\t// We prevent closing when the trigger is focused to avoid triggering a re-open animation\n\t\t// on pointer interaction.\n\t\tif (!isHTMLElement(e.target)) return;\n\t\tif (e.target.id !== subContentState.parentMenu.triggerNode?.id) {\n\t\t\tsubContentState.parentMenu.onClose();\n\t\t}\n\t}\n</script>\n\n{#if forceMount}\n\t<PopperLayerForceMount\n\t\t{...mergedProps}\n\t\tref={subContentState.opts.ref}\n\t\t{interactOutsideBehavior}\n\t\t{escapeKeydownBehavior}\n\t\tonOpenAutoFocus={handleOpenAutoFocus}\n\t\tenabled={subContentState.parentMenu.opts.open.current}\n\t\tonInteractOutside={handleInteractOutside}\n\t\tonEscapeKeydown={handleEscapeKeydown}\n\t\tonFocusOutside={handleOnFocusOutside}\n\t\tpreventScroll={false}\n\t\t{loop}\n\t\t{trapFocus}\n\t\tshouldRender={subContentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, mergedProps, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"menu\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({\n\t\t\t\t\tprops: finalProps,\n\t\t\t\t\twrapperProps,\n\t\t\t\t\t...subContentState.snippetProps,\n\t\t\t\t})}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayerForceMount>\n{:else if !forceMount}\n\t<PopperLayer\n\t\t{...mergedProps}\n\t\tref={subContentState.opts.ref}\n\t\t{interactOutsideBehavior}\n\t\t{escapeKeydownBehavior}\n\t\tonCloseAutoFocus={handleCloseAutoFocus}\n\t\tonOpenAutoFocus={handleOpenAutoFocus}\n\t\topen={subContentState.parentMenu.opts.open.current}\n\t\tonInteractOutside={handleInteractOutside}\n\t\tonEscapeKeydown={handleEscapeKeydown}\n\t\tonFocusOutside={handleOnFocusOutside}\n\t\tpreventScroll={false}\n\t\t{loop}\n\t\t{trapFocus}\n\t\tshouldRender={subContentState.shouldRender}\n\t>\n\t\t{#snippet popper({ props, wrapperProps })}\n\t\t\t{@const finalProps = mergeProps(props, mergedProps, {\n\t\t\t\tstyle: getFloatingContentCSSVars(\"menu\"),\n\t\t\t})}\n\t\t\t{#if child}\n\t\t\t\t{@render child({\n\t\t\t\t\tprops: finalProps,\n\t\t\t\t\twrapperProps,\n\t\t\t\t\t...subContentState.snippetProps,\n\t\t\t\t})}\n\t\t\t{:else}\n\t\t\t\t<div {...wrapperProps}>\n\t\t\t\t\t<div {...finalProps}>\n\t\t\t\t\t\t{@render children?.()}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\t\t{/snippet}\n\t</PopperLayer>\n{/if}\n","<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { MenuSubTriggerProps } from \"../types.js\";\n\timport { MenuSubTriggerState } from \"../menu.svelte.js\";\n\timport FloatingLayerAnchor from \"../../utilities/floating-layer/components/floating-layer-anchor.svelte\";\n\timport { noop } from \"../../../internal/noop.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tid = createId(uid),\n\t\tdisabled = false,\n\t\tref = $bindable(null),\n\t\tchildren,\n\t\tchild,\n\t\tonSelect = noop,\n\t\topenDelay = 100,\n\t\t...restProps\n\t}: MenuSubTriggerProps = $props();\n\n\tconst subTriggerState = MenuSubTriggerState.create({\n\t\tdisabled: boxWith(() => disabled),\n\t\tonSelect: boxWith(() => onSelect),\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t\topenDelay: boxWith(() => openDelay),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, subTriggerState.props));\n</script>\n\n<FloatingLayerAnchor {id} ref={subTriggerState.opts.ref}>\n\t{#if child}\n\t\t{@render child({ props: mergedProps })}\n\t{:else}\n\t\t<div {...mergedProps}>\n\t\t\t{@render children?.()}\n\t\t</div>\n\t{/if}\n</FloatingLayerAnchor>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"10\" }], [\"line\", { \"x1\": \"12\", \"x2\": \"12\", \"y1\": \"8\", \"y2\": \"12\" }], [\"line\", { \"x1\": \"12\", \"x2\": \"12.01\", \"y1\": \"16\", \"y2\": \"16\" }]];\n/**\n * @component @name CircleAlert\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgLz4KICA8bGluZSB4MT0iMTIiIHgyPSIxMiIgeTE9IjgiIHkyPSIxMiIgLz4KICA8bGluZSB4MT0iMTIiIHgyPSIxMi4wMSIgeTE9IjE2IiB5Mj0iMTYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/circle-alert\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"circle-alert\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"circle\", { \"cx\": \"12\", \"cy\": \"12\", \"r\": \"1\" }], [\"circle\", { \"cx\": \"12\", \"cy\": \"5\", \"r\": \"1\" }], [\"circle\", { \"cx\": \"12\", \"cy\": \"19\", \"r\": \"1\" }]];\n/**\n * @component @name EllipsisVertical\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxIiAvPgogIDxjaXJjbGUgY3g9IjEyIiBjeT0iNSIgcj0iMSIgLz4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjE5IiByPSIxIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/ellipsis-vertical\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"ellipsis-vertical\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M12 2v20\" }], [\"path\", { \"d\": \"m15 19-3 3-3-3\" }], [\"path\", { \"d\": \"m19 9 3 3-3 3\" }], [\"path\", { \"d\": \"M2 12h20\" }], [\"path\", { \"d\": \"m5 9-3 3 3 3\" }], [\"path\", { \"d\": \"m9 5 3-3 3 3\" }]];\n/**\n * @component @name Move\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTIgMnYyMCIgLz4KICA8cGF0aCBkPSJtMTUgMTktMyAzLTMtMyIgLz4KICA8cGF0aCBkPSJtMTkgOSAzIDMtMyAzIiAvPgogIDxwYXRoIGQ9Ik0yIDEyaDIwIiAvPgogIDxwYXRoIGQ9Im01IDktMyAzIDMgMyIgLz4KICA8cGF0aCBkPSJtOSA1IDMtMyAzIDMiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/move\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"move\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"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\" }], [\"path\", { \"d\": \"m15 5 4 4\" }]];\n/**\n * @component @name Pencil\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEuMTc0IDYuODEyYTEgMSAwIDAgMC0zLjk4Ni0zLjk4N0wzLjg0MiAxNi4xNzRhMiAyIDAgMCAwLS41LjgzbC0xLjMyMSA0LjM1MmEuNS41IDAgMCAwIC42MjMuNjIybDQuMzUzLTEuMzJhMiAyIDAgMCAwIC44My0uNDk3eiIgLz4KICA8cGF0aCBkPSJtMTUgNSA0IDQiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/pencil\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"pencil\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M5 12h14\" }], [\"path\", { \"d\": \"M12 5v14\" }]];\n/**\n * @component @name Plus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNSAxMmgxNCIgLz4KICA8cGF0aCBkPSJNMTIgNXYxNCIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/plus\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"plus\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"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\" }], [\"path\", { \"d\": \"M20 2v4\" }], [\"path\", { \"d\": \"M22 4h-4\" }], [\"circle\", { \"cx\": \"4\", \"cy\": \"20\", \"r\": \"2\" }]];\n/**\n * @component @name Sparkles\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTEuMDE3IDIuODE0YTEgMSAwIDAgMSAxLjk2NiAwbDEuMDUxIDUuNTU4YTIgMiAwIDAgMCAxLjU5NCAxLjU5NGw1LjU1OCAxLjA1MWExIDEgMCAwIDEgMCAxLjk2NmwtNS41NTggMS4wNTFhMiAyIDAgMCAwLTEuNTk0IDEuNTk0bC0xLjA1MSA1LjU1OGExIDEgMCAwIDEtMS45NjYgMGwtMS4wNTEtNS41NThhMiAyIDAgMCAwLTEuNTk0LTEuNTk0bC01LjU1OC0xLjA1MWExIDEgMCAwIDEgMC0xLjk2Nmw1LjU1OC0xLjA1MWEyIDIgMCAwIDAgMS41OTQtMS41OTR6IiAvPgogIDxwYXRoIGQ9Ik0yMCAydjQiIC8+CiAgPHBhdGggZD0iTTIyIDRoLTQiIC8+CiAgPGNpcmNsZSBjeD0iNCIgY3k9IjIwIiByPSIyIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/sparkles\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"sparkles\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M10 11v6\" }], [\"path\", { \"d\": \"M14 11v6\" }], [\"path\", { \"d\": \"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\" }], [\"path\", { \"d\": \"M3 6h18\" }], [\"path\", { \"d\": \"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\" }]];\n/**\n * @component @name Trash2\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTAgMTF2NiIgLz4KICA8cGF0aCBkPSJNMTQgMTF2NiIgLz4KICA8cGF0aCBkPSJNMTkgNnYxNGEyIDIgMCAwIDEtMiAySDdhMiAyIDAgMCAxLTItMlY2IiAvPgogIDxwYXRoIGQ9Ik0zIDZoMTgiIC8+CiAgPHBhdGggZD0iTTggNlY0YTIgMiAwIDAgMSAyLTJoNGEyIDIgMCAwIDEgMiAydjIiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/trash-2\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"trash-2\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M18 6 6 18\" }], [\"path\", { \"d\": \"m6 6 12 12\" }]];\n/**\n * @component @name X\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTggNiA2IDE4IiAvPgogIDxwYXRoIGQ9Im02IDYgMTIgMTIiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/x\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"x\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\n\tlet { open = $bindable(false), ...restProps }: DropdownMenuPrimitive.SubProps = $props();\n</script>\n\n<DropdownMenuPrimitive.Sub bind:open {...restProps} />\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: DropdownMenuPrimitive.SubContentProps = $props();\n</script>\n\n<DropdownMenuPrimitive.SubContent\n\tbind:ref\n\tdata-slot=\"dropdown-menu-sub-content\"\n\tclass={cn(\n\t\t\"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { DropdownMenu as DropdownMenuPrimitive } from \"bits-ui\";\n\timport ChevronRightIcon from \"@lucide/svelte/icons/chevron-right\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tinset,\n\t\tchildren,\n\t\t...restProps\n\t}: DropdownMenuPrimitive.SubTriggerProps & {\n\t\tinset?: boolean;\n\t} = $props();\n</script>\n\n<DropdownMenuPrimitive.SubTrigger\n\tbind:ref\n\tdata-slot=\"dropdown-menu-sub-trigger\"\n\tdata-inset={inset}\n\tclass={cn(\n\t\t\"data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:ps-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n\t<ChevronRightIcon class=\"ms-auto size-4\" />\n</DropdownMenuPrimitive.SubTrigger>\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n\timport * as Card from '$lib/components/ui/card';\n\timport * as DropdownMenu from '$lib/components/ui/dropdown-menu';\n\timport {\n\t\tPlus,\n\t\tEllipsisVertical,\n\t\tPencil,\n\t\tMove,\n\t\tArrowUp,\n\t\tArrowDown,\n\t\tArrowLeft,\n\t\tArrowRight,\n\t\tStar,\n\t\tTrash2\n\t} from 'lucide-svelte';\n\timport WidgetRenderer from './widget-renderer.svelte';\n\n\ttype Widget = {\n\t\tid: number;\n\t\ttitle: string;\n\t\twidgetType: string;\n\t\tconfig: any;\n\t\tposition: number;\n\t\tisStarred?: boolean;\n\t};\n\n\tlet {\n\t\twidgets = [],\n\t\tfromDateUTC,\n\t\ttoDateUTC,\n\t\ttimeDomain = null,\n\t\tonEditWidget,\n\t\tonDeleteWidget,\n\t\tonMoveWidget,\n\t\tonAddWidget,\n\t\tonToggleStar,\n\t\tonRangeSelect\n\t} = $props<{\n\t\twidgets: Widget[];\n\t\tfromDateUTC: string;\n\t\ttoDateUTC: string;\n\t\ttimeDomain: [Date, Date] | null;\n\t\tonEditWidget?: (widget: Widget) => void;\n\t\tonDeleteWidget?: (widget: Widget) => void;\n\t\tonMoveWidget?: (widgetId: number, offset: number) => void;\n\t\tonAddWidget?: () => void;\n\t\tonToggleStar?: (widget: Widget) => void;\n\t\tonRangeSelect?: (from: Date, to: Date) => void;\n\t}>();\n\n\tlet sharedHoverTime = $state<Date | null>(null);\n\tlet cols = $state(3);\n\n\t$effect(() => {\n\t\tconst mql = window.matchMedia('(min-width: 768px)');\n\t\tconst handler = (e: MediaQueryListEvent | MediaQueryList) => {\n\t\t\tcols = e.matches ? 3 : 1;\n\t\t};\n\t\thandler(mql);\n\t\tmql.addEventListener('change', handler);\n\t\treturn () => mql.removeEventListener('change', handler);\n\t});\n\n\tconst sortedWidgets = $derived([...widgets].sort((a, b) => a.position - b.position));\n</script>\n\n<div class=\"grid grid-cols-1 gap-4 md:grid-cols-3\">\n\t{#each sortedWidgets as widget, i (widget.id)}\n\t\t<div>\n\t\t\t<Card.Root class=\"h-full gap-0\">\n\t\t\t\t<Card.Header class=\"pr-2 pb-1\">\n\t\t\t\t\t<div class=\"flex items-center justify-between\">\n\t\t\t\t\t\t<Card.Title class=\"text-sm font-medium\">{widget.title}{#if widget.config?.unit}<span class=\"text-xs font-normal text-muted-foreground\"> ({widget.config.unit})</span>{/if}</Card.Title>\n\t\t\t\t\t\t<div class=\"flex items-center\">\n\t\t\t\t\t\t\t<button\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\taria-label={widget.isStarred ? 'Unstar widget' : 'Star widget'}\n\t\t\t\t\t\t\t\ttitle={widget.isStarred ? 'Unstar' : 'Star'}\n\t\t\t\t\t\t\t\tclass=\"inline-flex h-7 w-7 items-center justify-center rounded-md transition-colors hover:bg-muted {widget.isStarred ? 'text-yellow-500 hover:text-yellow-600' : 'text-muted-foreground hover:text-foreground'}\"\n\t\t\t\t\t\t\t\tonclick={() => onToggleStar?.(widget)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Star class=\"h-4 w-4 {widget.isStarred ? 'fill-current' : ''}\" />\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t<DropdownMenu.Root>\n\t\t\t\t\t\t\t<DropdownMenu.Trigger\n\t\t\t\t\t\t\t\tclass=\"inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<EllipsisVertical class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t</DropdownMenu.Trigger>\n\t\t\t\t\t\t\t<DropdownMenu.Content align=\"end\">\n\t\t\t\t\t\t\t\t<DropdownMenu.Item onclick={() => onEditWidget?.(widget)}>\n\t\t\t\t\t\t\t\t\t<Pencil class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tEdit\n\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t<DropdownMenu.Sub>\n\t\t\t\t\t\t\t\t\t<DropdownMenu.SubTrigger>\n\t\t\t\t\t\t\t\t\t\t<Move class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\tMove\n\t\t\t\t\t\t\t\t\t</DropdownMenu.SubTrigger>\n\t\t\t\t\t\t\t\t\t<DropdownMenu.SubContent>\n\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\tdisabled={i < cols}\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => onMoveWidget?.(widget.id, -cols)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<ArrowUp class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tUp\n\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\tdisabled={i > sortedWidgets.length - 1 - cols}\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => onMoveWidget?.(widget.id, cols)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<ArrowDown class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tDown\n\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t\t{#if cols > 1}\n\t\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled={i % cols === 0}\n\t\t\t\t\t\t\t\t\t\t\t\tonclick={() => onMoveWidget?.(widget.id, -1)}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<ArrowLeft class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t\tLeft\n\t\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\t\tdisabled={i % cols === cols - 1 || i + 1 >= sortedWidgets.length}\n\t\t\t\t\t\t\t\t\t\t\t\tonclick={() => onMoveWidget?.(widget.id, 1)}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<ArrowRight class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t\tRight\n\t\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</DropdownMenu.SubContent>\n\t\t\t\t\t\t\t\t</DropdownMenu.Sub>\n\t\t\t\t\t\t\t\t<DropdownMenu.Separator />\n\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\tclass=\"text-destructive\"\n\t\t\t\t\t\t\t\t\tonclick={() => onDeleteWidget?.(widget)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Trash2 class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tDelete\n\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t</DropdownMenu.Content>\n\t\t\t\t\t\t</DropdownMenu.Root>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content class=\"p-1\">\n\t\t\t\t\t<WidgetRenderer\n\t\t\t\t\t\t{widget}\n\t\t\t\t\t\t{fromDateUTC}\n\t\t\t\t\t\t{toDateUTC}\n\t\t\t\t\t\t{timeDomain}\n\t\t\t\t\t\t{onRangeSelect}\n\t\t\t\t\t\t{sharedHoverTime}\n\t\t\t\t\t\tonHoverTimeChange={(time) => (sharedHoverTime = time)}\n\t\t\t\t\t\tisSourceChart={false}\n\t\t\t\t\t/>\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t</div>\n\t{/each}\n\t<button\n\t\tclass=\"flex min-h-[240px] cursor-pointer items-center justify-center rounded-lg border border-dashed border-muted-foreground/25 text-muted-foreground transition-colors hover:border-primary hover:text-primary\"\n\t\tonclick={() => onAddWidget?.()}\n\t>\n\t\t<div class=\"flex flex-col items-center gap-2\">\n\t\t\t<Plus class=\"h-8 w-8\" />\n\t\t\t<span class=\"text-sm font-medium\">Add Metric Widget</span>\n\t\t</div>\n\t</button>\n</div>\n","<script lang=\"ts\">\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Select from '$lib/components/ui/select';\n\timport { X } from 'lucide-svelte';\n\n\tlet {\n\t\ttagKeys = [],\n\t\tactiveFilters = {},\n\t\tonFilterChange,\n\t\tonLoadTagValues\n\t} = $props<{\n\t\ttagKeys: string[];\n\t\tactiveFilters: Record<string, string>;\n\t\tonFilterChange: (filters: Record<string, string>) => void;\n\t\tonLoadTagValues: (key: string) => Promise<string[]>;\n\t}>();\n\n\tlet selectedKey = $state('');\n\tlet tagValueOptions = $state<Record<string, string[]>>({});\n\tlet loadingValues = $state(false);\n\n\tasync function handleKeySelect(key: string) {\n\t\tselectedKey = key;\n\t\tif (!tagValueOptions[key]) {\n\t\t\tloadingValues = true;\n\t\t\ttry {\n\t\t\t\ttagValueOptions[key] = await onLoadTagValues(key);\n\t\t\t} catch {\n\t\t\t\ttagValueOptions[key] = [];\n\t\t\t} finally {\n\t\t\t\tloadingValues = false;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction handleValueSelect(value: string) {\n\t\tif (!selectedKey) return;\n\t\tconst newFilters = { ...activeFilters, [selectedKey]: value };\n\t\tonFilterChange(newFilters);\n\t\tselectedKey = '';\n\t}\n\n\tfunction removeFilter(key: string) {\n\t\tconst newFilters = { ...activeFilters };\n\t\tdelete newFilters[key];\n\t\tonFilterChange(newFilters);\n\t}\n\n\tconst availableKeys = $derived(tagKeys.filter((k: string) => !(k in activeFilters)));\n</script>\n\n<div class=\"flex flex-wrap items-center gap-2\">\n\t{#each Object.entries(activeFilters) as [key, value]}\n\t\t<div\n\t\t\tclass=\"flex items-center gap-1 rounded-md border bg-muted/50 px-2 py-1 text-xs\"\n\t\t>\n\t\t\t<span class=\"font-medium\">{key}</span>\n\t\t\t<span class=\"text-muted-foreground\">=</span>\n\t\t\t<span>{value}</span>\n\t\t\t<button\n\t\t\t\tclass=\"ml-1 rounded hover:bg-muted\"\n\t\t\t\tonclick={() => removeFilter(key)}\n\t\t\t>\n\t\t\t\t<X class=\"h-3 w-3\" />\n\t\t\t</button>\n\t\t</div>\n\t{/each}\n\n\t{#if availableKeys.length > 0}\n\t\t{#if selectedKey}\n\t\t\t<Select.Root\n\t\t\t\ttype=\"single\"\n\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\tif (v) handleValueSelect(v);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Select.Trigger class=\"h-7 w-[140px] text-xs\">\n\t\t\t\t\t{#if loadingValues}\n\t\t\t\t\t\tLoading...\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tSelect value\n\t\t\t\t\t{/if}\n\t\t\t\t</Select.Trigger>\n\t\t\t\t<Select.Content>\n\t\t\t\t\t{#each tagValueOptions[selectedKey] ?? [] as val}\n\t\t\t\t\t\t<Select.Item value={val}>{val}</Select.Item>\n\t\t\t\t\t{/each}\n\t\t\t\t</Select.Content>\n\t\t\t</Select.Root>\n\t\t\t<Button variant=\"ghost\" size=\"sm\" class=\"h-7 px-2 text-xs\" onclick={() => (selectedKey = '')}>\n\t\t\t\tCancel\n\t\t\t</Button>\n\t\t{:else}\n\t\t\t<Select.Root\n\t\t\t\ttype=\"single\"\n\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\tif (v) handleKeySelect(v);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Select.Trigger class=\"h-7 w-[140px] text-xs\">\n\t\t\t\t\t+ Filter by tag\n\t\t\t\t</Select.Trigger>\n\t\t\t\t<Select.Content>\n\t\t\t\t\t{#each availableKeys as key}\n\t\t\t\t\t\t<Select.Item value={key}>{key}</Select.Item>\n\t\t\t\t\t{/each}\n\t\t\t\t</Select.Content>\n\t\t\t</Select.Root>\n\t\t{/if}\n\t{/if}\n</div>\n","<script lang=\"ts\">\n\timport { Button } from '$lib/components/ui/button';\n\timport { Input } from '$lib/components/ui/input';\n\timport * as Select from '$lib/components/ui/select';\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport TagFilter from './tag-filter.svelte';\n\timport { api } from '$lib/api';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { Plus, Check, CircleAlert } from 'lucide-svelte';\n\timport * as Alert from '$lib/components/ui/alert';\n\timport type { DiscoveredMetric } from '$lib/types/dashboard';\n\n\ttype WidgetSource = {\n\t\ttype: 'metric';\n\t\tname: string;\n\t\taggregation: string;\n\t\ttagFilters?: Record<string, string>;\n\t\tgroupBy?: string;\n\t};\n\n\tlet {\n\t\topen = $bindable(false),\n\t\twidget = null,\n\t\tavailableMetrics = [],\n\t\terror = '',\n\t\tonSave,\n\t\tonCancel\n\t} = $props<{\n\t\topen: boolean;\n\t\twidget: { id?: number; title: string; widgetType: string; config: any } | null;\n\t\tavailableMetrics: DiscoveredMetric[];\n\t\terror?: string;\n\t\tonSave: (data: { title: string; widgetType: string; config: any }) => void;\n\t\tonCancel: () => void;\n\t}>();\n\n\tlet title = $state(widget?.title ?? '');\n\tlet widgetType = $state(widget?.widgetType ?? 'line_chart');\n\tlet unit = $state(widget?.config?.unit ?? '');\n\tlet unitManuallySet = $state(!!widget?.config?.unit);\n\tlet sources = $state<WidgetSource[]>(\n\t\twidget?.config?.sources ?? [{ type: 'metric', name: '', aggregation: 'avg' }]\n\t);\n\n\t$effect(() => {\n\t\tif (open) {\n\t\t\ttitle = widget?.title ?? '';\n\t\t\twidgetType = widget?.widgetType ?? 'line_chart';\n\t\t\tunit = widget?.config?.unit ?? '';\n\t\t\tunitManuallySet = !!widget?.config?.unit;\n\t\t\tsources = widget?.config?.sources\n\t\t\t\t? [...widget.config.sources]\n\t\t\t\t: [{ type: 'metric', name: '', aggregation: 'avg' }];\n\t\t}\n\t});\n\n\tfunction getMetricTagKeys(metricName: string): string[] {\n\t\tconst m = availableMetrics.find((m: DiscoveredMetric) => m.name === metricName);\n\t\treturn m?.tagKeys ?? [];\n\t}\n\n\tfunction getMetricUnit(metricName: string): string {\n\t\tconst m = availableMetrics.find((m: DiscoveredMetric) => m.name === metricName);\n\t\treturn m?.unit ?? '';\n\t}\n\n\tasync function loadTagValues(metricName: string, key: string): Promise<string[]> {\n\t\ttry {\n\t\t\tconst response = await api.get(\n\t\t\t\t`/metrics/discover/tags?name=${encodeURIComponent(metricName)}&key=${encodeURIComponent(key)}`,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\treturn response.values || [];\n\t\t} catch {\n\t\t\treturn [];\n\t\t}\n\t}\n\n\tfunction handleMetricChange(index: number, value: string) {\n\t\tsources[index].name = value;\n\t\tif (!unitManuallySet) {\n\t\t\tunit = getMetricUnit(value);\n\t\t}\n\t}\n\n\tfunction handleSave() {\n\t\tconst validSources = sources.filter((s: WidgetSource) => s.name);\n\t\tconst displayTitle = title.trim() || validSources[0]?.name || '';\n\t\tconst config: Record<string, any> = { sources: validSources };\n\t\tif (unit) config.unit = unit;\n\t\tonSave({\n\t\t\ttitle: displayTitle,\n\t\t\twidgetType,\n\t\t\tconfig\n\t\t});\n\t}\n\n\tfunction handleClose() {\n\t\topen = false;\n\t\tonCancel();\n\t}\n</script>\n\n<AlertDialog.Root bind:open>\n\t<AlertDialog.Content class=\"max-w-xl\" interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>{widget?.id ? 'Edit Widget' : 'Add Widget'}</AlertDialog.Title>\n\t\t</AlertDialog.Header>\n\t\t{#if error}\n\t\t\t<Alert.Root variant=\"destructive\" class=\"bg-red-50 border-red-200\">\n\t\t\t\t<CircleAlert class=\"h-4 w-4 text-red-700\" />\n\t\t\t\t<Alert.Title class=\"text-red-800\">Error</Alert.Title>\n\t\t\t\t<Alert.Description class=\"text-red-700\">{error}</Alert.Description>\n\t\t\t</Alert.Root>\n\t\t{/if}\n\t\t<div class=\"space-y-4\">\n\t\t\t<div>\n\t\t\t\t<label class=\"text-sm font-medium\" for=\"widget-title\">Title (optional)</label>\n\t\t\t\t<Input id=\"widget-title\" bind:value={title} placeholder=\"Defaults to metric name\" />\n\t\t\t</div>\n\n\t\t\t<div>\n\t\t\t\t<label class=\"text-sm font-medium\">Widget Type</label>\n\t\t\t\t<Select.Root\n\t\t\t\t\ttype=\"single\"\n\t\t\t\t\tvalue={widgetType}\n\t\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\t\tif (v) widgetType = v;\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Select.Trigger>\n\t\t\t\t\t\t{({ line_chart: 'Line Chart', area_chart: 'Area Chart', bar_chart: 'Bar Chart', single_value: 'Single Value', table: 'Table' } as Record<string, string>)[widgetType] ?? widgetType}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t<Select.Item value=\"line_chart\">Line Chart</Select.Item>\n\t\t\t\t\t\t<Select.Item value=\"area_chart\">Area Chart</Select.Item>\n\t\t\t\t\t\t<Select.Item value=\"bar_chart\">Bar Chart</Select.Item>\n\t\t\t\t\t\t<Select.Item value=\"single_value\">Single Value</Select.Item>\n\t\t\t\t\t\t<Select.Item value=\"table\">Table</Select.Item>\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</div>\n\n\t\t\t<div>\n\t\t\t\t<label class=\"text-sm font-medium\" for=\"widget-unit\">Unit (optional)</label>\n\t\t\t\t<Input\n\t\t\t\t\tid=\"widget-unit\"\n\t\t\t\t\tbind:value={unit}\n\t\t\t\t\tplaceholder=\"Auto-detected from metric\"\n\t\t\t\t\toninput={() => { unitManuallySet = unit.length > 0; }}\n\t\t\t\t/>\n\t\t\t\t<p class=\"text-xs text-muted-foreground mt-1\">%, ms, s, MB, GB, bytes, count, ns</p>\n\t\t\t</div>\n\n\t\t\t{#each sources as source, i}\n\t\t\t\t<div class=\"space-y-2 rounded-md border p-3\">\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<Select.Root\n\t\t\t\t\t\t\ttype=\"single\"\n\t\t\t\t\t\t\tvalue={source.name}\n\t\t\t\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\t\t\t\tif (v) handleMetricChange(i, v);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Select.Trigger class=\"flex-1\">{source.name || 'Select metric'}</Select.Trigger>\n\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t{#each availableMetrics as m}\n\t\t\t\t\t\t\t\t\t<Select.Item value={m.name}>{m.name}</Select.Item>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t</Select.Root>\n\n\t\t\t\t\t\t<Select.Root\n\t\t\t\t\t\t\ttype=\"single\"\n\t\t\t\t\t\t\tvalue={source.aggregation}\n\t\t\t\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\t\t\t\tif (v) sources[i].aggregation = v;\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Select.Trigger class=\"w-20\">{source.aggregation}</Select.Trigger>\n\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t<Select.Item value=\"avg\">avg</Select.Item>\n\t\t\t\t\t\t\t\t<Select.Item value=\"min\">min</Select.Item>\n\t\t\t\t\t\t\t\t<Select.Item value=\"max\">max</Select.Item>\n\t\t\t\t\t\t\t\t<Select.Item value=\"sum\">sum</Select.Item>\n\t\t\t\t\t\t\t\t<Select.Item value=\"count\">count</Select.Item>\n\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t</Select.Root>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t{#if source.name && getMetricTagKeys(source.name).length > 0}\n\t\t\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">Tag Filters</span>\n\t\t\t\t\t\t\t<TagFilter\n\t\t\t\t\t\t\t\ttagKeys={getMetricTagKeys(source.name)}\n\t\t\t\t\t\t\t\tactiveFilters={source.tagFilters ?? {}}\n\t\t\t\t\t\t\t\tonFilterChange={(filters) => {\n\t\t\t\t\t\t\t\t\tsources[i].tagFilters = Object.keys(filters).length > 0 ? filters : undefined;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\tonLoadTagValues={(key) => loadTagValues(source.name, key)}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">Group By</span>\n\t\t\t\t\t\t\t<Select.Root\n\t\t\t\t\t\t\t\ttype=\"single\"\n\t\t\t\t\t\t\t\tvalue={source.groupBy ?? ''}\n\t\t\t\t\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\t\t\t\t\tsources[i].groupBy = v || undefined;\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Select.Trigger class=\"h-7 w-[160px] text-xs\"\n\t\t\t\t\t\t\t\t\t>{source.groupBy || 'None'}</Select.Trigger\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t\t<Select.Item value=\"\">None</Select.Item>\n\t\t\t\t\t\t\t\t\t{#each getMetricTagKeys(source.name) as key}\n\t\t\t\t\t\t\t\t\t\t<Select.Item value={key}>{key}</Select.Item>\n\t\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t\t</Select.Root>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/if}\n\t\t\t\t</div>\n\t\t\t{/each}\n\t\t</div>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={handleClose}>Cancel</Button>\n\t\t\t<Button onclick={handleSave}>\n\t\t\t\t{#if widget?.id}<Check class=\"mr-1 h-4 w-4\" /> Update Widget{:else}<Plus class=\"mr-1 h-4 w-4\" /> Add Widget{/if}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Input } from '$lib/components/ui/input';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport * as Select from '$lib/components/ui/select';\n\timport * as Tabs from '$lib/components/ui/tabs';\n\timport WidgetGrid from '$lib/components/dashboard/widget-grid.svelte';\n\timport WidgetConfigPanel from '$lib/components/dashboard/widget-config-panel.svelte';\n\timport { api } from '$lib/api';\n\timport { projectsState, FRAMEWORK_LABELS, type Framework } from '$lib/state/projects.svelte';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { toUTCISO, calendarDateTimeToLuxon, formatDateTime } from '$lib/utils/formatters';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport {\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tparseTimeRangeFromUrl,\n\t\tgetResolvedTimeRange,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport { CalendarDate } from '@internationalized/date';\n\timport { Trash2, Plus, RefreshCw, CircleAlert, EllipsisVertical, Sparkles } from 'lucide-svelte';\n\timport * as Alert from '$lib/components/ui/alert';\n\timport * as DropdownMenu from '$lib/components/ui/dropdown-menu';\n\timport { toast } from 'svelte-sonner';\n\timport type { DiscoveredMetric } from '$lib/types/dashboard';\n\n\tconst timezone = $derived(getTimezone());\n\n\ttype Widget = {\n\t\tid: number;\n\t\ttitle: string;\n\t\twidgetType: string;\n\t\tconfig: any;\n\t\tposition: number;\n\t\tisStarred?: boolean;\n\t};\n\n\ttype WidgetGroup = {\n\t\tid: number;\n\t\tname: string;\n\t\tdescription: string;\n\t\tisDefault: boolean;\n\t\tcreatedAt: string;\n\t};\n\n\ttype WidgetGroupWithWidgets = WidgetGroup & {\n\t\twidgets: Widget[];\n\t};\n\n\tlet widgetGroups = $state<WidgetGroup[]>([]);\n\tlet projectFramework = $state<Framework | ''>('');\n\tlet canPopulateDefaults = $state(false);\n\tlet populating = $state(false);\n\tlet loading = $state(true);\n\tlet activeTabId = $state<string>('');\n\tlet activeGroup = $state<WidgetGroupWithWidgets | null>(null);\n\tlet loadingGroup = $state(false);\n\n\tlet showCreateDialog = $state(false);\n\tlet newName = $state('');\n\tlet creating = $state(false);\n\tlet createError = $state('');\n\n\tlet showDeleteDialog = $state(false);\n\tlet deleting = $state(false);\n\tlet deleteError = $state('');\n\n\tlet showWidgetConfig = $state(false);\n\tlet editingWidget = $state<Widget | null>(null);\n\tlet availableMetrics = $state<DiscoveredMetric[]>([]);\n\tlet widgetConfigError = $state('');\n\n\tlet showDeleteWidgetDialog = $state(false);\n\tlet deletingWidget = $state<Widget | null>(null);\n\tlet deletingWidgetLoading = $state(false);\n\tlet deleteWidgetError = $state('');\n\n\tlet lastUpdated = $state<Date | null>(null);\n\n\tlet tabsListEl = $state<HTMLElement | null>(null);\n\tlet hasOverflow = $state(false);\n\n\tconst initialUrlParams = parseTimeRangeFromUrl(timezone);\n\tconst initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n\tlet selectedPreset = $state<string | null>(initialUrlParams.preset ?? '24h');\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\tlet sharedTimeDomain = $state<[Date, Date] | null>(null);\n\n\tconst lastUpdatedFormatted = $derived(\n\t\tlastUpdated ? formatDateTime(lastUpdated, { timezone, format: 'time' }) : ''\n\t);\n\n\tfunction reloadGroupWidgets() {\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\t\tsharedTimeDomain = [new Date(getFromDateTimeUTC()), new Date(getToDateTimeUTC())];\n\t\tif (activeTabId) loadGroupWidgets(activeTabId);\n\t}\n\n\tfunction checkOverflow() {\n\t\tif (tabsListEl) {\n\t\t\thasOverflow = tabsListEl.scrollWidth > tabsListEl.clientWidth;\n\t\t}\n\t}\n\n\t$effect(() => {\n\t\tif (!tabsListEl) return;\n\t\tconst observer = new ResizeObserver(() => checkOverflow());\n\t\tobserver.observe(tabsListEl);\n\t\tcheckOverflow();\n\t\treturn () => observer.disconnect();\n\t});\n\n\t$effect(() => {\n\t\twidgetGroups;\n\t\tif (tabsListEl) {\n\t\t\trequestAnimationFrame(() => checkOverflow());\n\t\t}\n\t});\n\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = (toTime || '23:59').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(dt);\n\t}\n\n\tasync function loadWidgetGroups() {\n\t\tloading = true;\n\t\ttry {\n\t\t\tconst response = await api.get('/widget-groups', {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\twidgetGroups = response.widgetGroups || [];\n\t\t\tprojectFramework = (response.framework as Framework) || '';\n\t\t\tcanPopulateDefaults = !!response.canPopulateDefaults;\n\t\t\tif (widgetGroups.length > 0 && !activeTabId) {\n\t\t\t\tactiveTabId = String(widgetGroups[0].id);\n\t\t\t}\n\t\t} catch (e) {\n\t\t\tconsole.error('Failed to load widget groups:', e);\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tasync function populateDefaults() {\n\t\tpopulating = true;\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t'/widget-groups/populate-defaults',\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Successfully populated default charts', { position: 'top-center' });\n\t\t\tawait loadWidgetGroups();\n\t\t} catch (e: any) {\n\t\t\ttoast.error(e?.message || 'Failed to populate default charts', { position: 'top-center' });\n\t\t} finally {\n\t\t\tpopulating = false;\n\t\t}\n\t}\n\n\tconst frameworkLabel = $derived(\n\t\tprojectFramework ? (FRAMEWORK_LABELS[projectFramework] ?? projectFramework) : ''\n\t);\n\n\tasync function loadGroupWidgets(groupId: string) {\n\t\tloadingGroup = true;\n\t\ttry {\n\t\t\tconst result = await api.get(`/widget-groups/${groupId}`, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\tactiveGroup = result;\n\t\t\tlastUpdated = new Date();\n\t\t} catch (e) {\n\t\t\tconsole.error('Failed to load widget group:', e);\n\t\t\tactiveGroup = null;\n\t\t} finally {\n\t\t\tloadingGroup = false;\n\t\t}\n\t}\n\n\t$effect(() => {\n\t\tif (activeTabId) {\n\t\t\tloadGroupWidgets(activeTabId);\n\t\t}\n\t});\n\n\t$effect(() => {\n\t\tif (!showWidgetConfig) {\n\t\t\twidgetConfigError = '';\n\t\t}\n\t});\n\n\tfunction handleTabChange(tab: string) {\n\t\tactiveTabId = tab;\n\t\tshowWidgetConfig = false;\n\t\teditingWidget = null;\n\t}\n\n\tasync function createWidgetGroup() {\n\t\tcreating = true;\n\t\tcreateError = '';\n\t\ttry {\n\t\t\tconst group = await api.post(\n\t\t\t\t'/widget-groups',\n\t\t\t\t{ name: newName },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Successfully created a new Widget Group', { position: 'top-center' });\n\t\t\tshowCreateDialog = false;\n\t\t\tnewName = '';\n\t\t\tawait loadWidgetGroups();\n\t\t\tactiveTabId = String(group.id);\n\t\t} catch (e: any) {\n\t\t\tif (e?.status === 422) {\n\t\t\t\tcreateError = e.message;\n\t\t\t} else {\n\t\t\t\tconsole.error('Failed to create widget group:', e);\n\t\t\t}\n\t\t} finally {\n\t\t\tcreating = false;\n\t\t}\n\t}\n\n\tasync function deleteWidgetGroup() {\n\t\tif (!activeGroup) return;\n\t\tdeleting = true;\n\t\tdeleteError = '';\n\t\ttry {\n\t\t\tawait api.delete(`/widget-groups/${activeGroup.id}`, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\tshowDeleteDialog = false;\n\t\t\tactiveTabId = '';\n\t\t\tactiveGroup = null;\n\t\t\tawait loadWidgetGroups();\n\t\t\tif (widgetGroups.length > 0) {\n\t\t\t\tactiveTabId = String(widgetGroups[0].id);\n\t\t\t}\n\t\t} catch (e: any) {\n\t\t\tif (e?.status === 422) {\n\t\t\t\tdeleteError = e.message;\n\t\t\t} else {\n\t\t\t\tconsole.error('Failed to delete widget group:', e);\n\t\t\t}\n\t\t} finally {\n\t\t\tdeleting = false;\n\t\t}\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\tfromTime = from.time;\n\t\ttoDate = to.date;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\n\t\tsharedTimeDomain = [new Date(getFromDateTimeUTC()), new Date(getToDateTimeUTC())];\n\t\tupdateUrl({ preset: selectedPreset ?? undefined });\n\t}\n\n\tfunction handleChartRangeSelect(from: Date, to: Date) {\n\t\tselectedPreset = null;\n\t\tfromDate = new CalendarDate(from.getFullYear(), from.getMonth() + 1, from.getDate());\n\t\tfromTime = `${String(from.getHours()).padStart(2, '0')}:${String(from.getMinutes()).padStart(2, '0')}`;\n\t\ttoDate = new CalendarDate(to.getFullYear(), to.getMonth() + 1, to.getDate());\n\t\ttoTime = `${String(to.getHours()).padStart(2, '0')}:${String(to.getMinutes()).padStart(2, '0')}`;\n\t\tsharedTimeDomain = [from, to];\n\t}\n\n\tasync function loadMetrics() {\n\t\ttry {\n\t\t\tconst discoverResponse = await api.get(\n\t\t\t\t`/metrics/discover?from=${getFromDateTimeUTC()}&to=${getToDateTimeUTC()}`,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\tavailableMetrics = discoverResponse.metrics || [];\n\t\t} catch {\n\t\t\t// ignore\n\t\t}\n\t}\n\n\tfunction openAddWidget() {\n\t\teditingWidget = null;\n\t\tshowWidgetConfig = true;\n\t\tloadMetrics();\n\t}\n\n\tfunction openEditWidget(widget: Widget) {\n\t\teditingWidget = widget;\n\t\tshowWidgetConfig = true;\n\t\tloadMetrics();\n\t}\n\n\tfunction openDeleteWidgetDialog(widget: Widget) {\n\t\tdeletingWidget = widget;\n\t\tshowDeleteWidgetDialog = true;\n\t}\n\n\tasync function confirmDeleteWidget() {\n\t\tif (!activeGroup || !deletingWidget?.id) return;\n\t\tdeletingWidgetLoading = true;\n\t\tdeleteWidgetError = '';\n\t\ttry {\n\t\t\tawait api.delete(`/widget-groups/${activeGroup.id}/widgets/${deletingWidget.id}`, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\tshowDeleteWidgetDialog = false;\n\t\t\tdeletingWidget = null;\n\t\t\tawait loadGroupWidgets(activeTabId);\n\t\t} catch (e: any) {\n\t\t\tif (e?.status === 422) {\n\t\t\t\tdeleteWidgetError = e.message;\n\t\t\t} else {\n\t\t\t\tconsole.error('Failed to delete widget:', e);\n\t\t\t}\n\t\t} finally {\n\t\t\tdeletingWidgetLoading = false;\n\t\t}\n\t}\n\n\tasync function handleToggleStar(widget: { id: number; isStarred?: boolean }) {\n\t\tif (!activeGroup) return;\n\t\tconst target = activeGroup.widgets?.find((w) => w.id === widget.id);\n\t\tif (!target) return;\n\t\tconst previous = target.isStarred ?? false;\n\t\ttarget.isStarred = !previous;\n\t\ttry {\n\t\t\tawait api.put(\n\t\t\t\t`/widget-groups/${activeGroup.id}/widgets/${widget.id}/star`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t} catch (e: any) {\n\t\t\ttarget.isStarred = previous;\n\t\t\ttoast.error(e?.message || 'Failed to update star', { position: 'top-center' });\n\t\t}\n\t}\n\n\tasync function handleMoveWidget(widgetId: number, offset: number) {\n\t\tif (!activeGroup) return;\n\t\ttry {\n\t\t\tawait api.put(\n\t\t\t\t`/widget-groups/${activeGroup.id}/widgets/${widgetId}/move`,\n\t\t\t\t{ offset },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\tawait loadGroupWidgets(activeTabId);\n\t\t\ttoast.success('Successfully moved the Widget', { position: 'top-center' });\n\t\t} catch (e) {\n\t\t\tconsole.error('Failed to move widget:', e);\n\t\t}\n\t}\n\n\tasync function handleWidgetSave(data: { title: string; widgetType: string; config: any }) {\n\t\tif (!activeGroup) return;\n\n\t\twidgetConfigError = '';\n\t\ttry {\n\t\t\tif (editingWidget?.id) {\n\t\t\t\tawait api.put(`/widget-groups/${activeGroup.id}/widgets/${editingWidget.id}`, data, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully updated the Widget', { position: 'top-center' });\n\t\t\t} else {\n\t\t\t\tawait api.post(`/widget-groups/${activeGroup.id}/widgets`, data, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully added the Widget', { position: 'top-center' });\n\t\t\t}\n\t\t\tshowWidgetConfig = false;\n\t\t\teditingWidget = null;\n\t\t\tawait loadGroupWidgets(activeTabId);\n\t\t} catch (e: any) {\n\t\t\tif (e?.status === 422) {\n\t\t\t\twidgetConfigError = e.message;\n\t\t\t} else {\n\t\t\t\tconsole.error('Failed to save widget:', e);\n\t\t\t}\n\t\t}\n\t}\n\n\tconst activeTabName = $derived(\n\t\twidgetGroups.find((g) => String(g.id) === activeTabId)?.name ?? ''\n\t);\n\n\tonMount(() => {\n\t\tloadWidgetGroups();\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\t\tsharedTimeDomain = [new Date(getFromDateTimeUTC()), new Date(getToDateTimeUTC())];\n\t});\n</script>\n\n<div class=\"space-y-4\">\n\t<div class=\"mb-2 flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between\">\n\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Metrics</h2>\n\t\t<div class=\"flex items-center gap-2\">\n\t\t\t<TimeRangePicker\n\t\t\t\tbind:fromDate\n\t\t\t\tbind:toDate\n\t\t\t\tbind:fromTime\n\t\t\t\tbind:toTime\n\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t/>\n\t\t</div>\n\t</div>\n\n\t{#if loading}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if widgetGroups.length === 0}\n\t\t<div\n\t\t\tclass=\"flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center\"\n\t\t>\n\t\t\t<p class=\"mb-4 text-muted-foreground\">No widget groups yet.</p>\n\t\t\t<div class=\"flex flex-wrap items-center justify-center gap-2\">\n\t\t\t\t{#if canPopulateDefaults}\n\t\t\t\t\t<Button onclick={populateDefaults} disabled={populating}>\n\t\t\t\t\t\t<Sparkles class=\"mr-1 h-4 w-4\" />\n\t\t\t\t\t\t{populating\n\t\t\t\t\t\t\t? 'Populating...'\n\t\t\t\t\t\t\t: frameworkLabel\n\t\t\t\t\t\t\t\t? `Populate default charts for ${frameworkLabel}`\n\t\t\t\t\t\t\t\t: 'Populate default charts'}\n\t\t\t\t\t</Button>\n\t\t\t\t{/if}\n\t\t\t\t<Button variant=\"outline\" onclick={() => (showCreateDialog = true)}>\n\t\t\t\t\t<Plus class=\"mr-1 h-4 w-4\" />\n\t\t\t\t\tCreate your own Widget Group\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t</div>\n\t{:else}\n\t\t<Tabs.Root value={activeTabId} onValueChange={handleTabChange}>\n\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t{#if hasOverflow}\n\t\t\t\t\t<Select.Root\n\t\t\t\t\t\ttype=\"single\"\n\t\t\t\t\t\tvalue={activeTabId}\n\t\t\t\t\t\tonValueChange={(v) => {\n\t\t\t\t\t\t\tif (v) handleTabChange(v);\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Select.Trigger size=\"sm\">{activeTabName}</Select.Trigger>\n\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t{#each widgetGroups as group (group.id)}\n\t\t\t\t\t\t\t\t<Select.Item value={String(group.id)}>{group.name}</Select.Item>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t</Select.Root>\n\t\t\t\t{/if}\n\t\t\t\t<div\n\t\t\t\t\tclass=\"flex min-w-0 items-center overflow-hidden\"\n\t\t\t\t\tclass:invisible={hasOverflow}\n\t\t\t\t\tclass:h-0={hasOverflow}\n\t\t\t\t\tclass:w-0={hasOverflow}\n\t\t\t\t\tbind:this={tabsListEl}\n\t\t\t\t>\n\t\t\t\t\t<Tabs.List>\n\t\t\t\t\t\t{#each widgetGroups as group (group.id)}\n\t\t\t\t\t\t\t<Tabs.Trigger value={String(group.id)}>\n\t\t\t\t\t\t\t\t{group.name}\n\t\t\t\t\t\t\t\t{#if String(group.id) === activeTabId}\n\t\t\t\t\t\t\t\t\t<DropdownMenu.Root>\n\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Trigger>\n\t\t\t\t\t\t\t\t\t\t\t{#snippet child({ props })}\n\t\t\t\t\t\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\t\t\t\t\t\t{...props}\n\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"-mr-1 ml-1 inline-flex h-5 w-5 items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted hover:text-foreground\"\n\t\t\t\t\t\t\t\t\t\t\t\t\trole=\"button\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttabindex={0}\n\t\t\t\t\t\t\t\t\t\t\t\t\tonclick={(e) => e.stopPropagation()}\n\t\t\t\t\t\t\t\t\t\t\t\t\tonkeydown={(e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.key === 'Enter' || e.key === ' ') e.stopPropagation();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<EllipsisVertical class=\"h-3.5 w-3.5\" />\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t{/snippet}\n\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Trigger>\n\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Content align=\"start\">\n\t\t\t\t\t\t\t\t\t\t\t<DropdownMenu.Item\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"text-destructive\"\n\t\t\t\t\t\t\t\t\t\t\t\tonclick={() => (showDeleteDialog = true)}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<Trash2 class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t\tDelete Group\n\t\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t\t\t\t\t</DropdownMenu.Content>\n\t\t\t\t\t\t\t\t\t</DropdownMenu.Root>\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Tabs.Trigger>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Tabs.List>\n\t\t\t\t</div>\n\t\t\t\t<button\n\t\t\t\t\tclass=\"inline-flex items-center justify-center rounded-md px-2 py-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground\"\n\t\t\t\t\tonclick={() => (showCreateDialog = true)}\n\t\t\t\t>\n\t\t\t\t\t<Plus class=\"h-4 w-4\" />\n\t\t\t\t</button>\n\t\t\t\t{#if hasOverflow && activeTabId}\n\t\t\t\t\t<DropdownMenu.Root>\n\t\t\t\t\t\t<DropdownMenu.Trigger\n\t\t\t\t\t\t\tclass=\"inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<EllipsisVertical class=\"h-4 w-4\" />\n\t\t\t\t\t\t</DropdownMenu.Trigger>\n\t\t\t\t\t\t<DropdownMenu.Content align=\"end\">\n\t\t\t\t\t\t\t<DropdownMenu.Item class=\"text-destructive\" onclick={() => (showDeleteDialog = true)}>\n\t\t\t\t\t\t\t\t<Trash2 class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\tDelete Group\n\t\t\t\t\t\t\t</DropdownMenu.Item>\n\t\t\t\t\t\t</DropdownMenu.Content>\n\t\t\t\t\t</DropdownMenu.Root>\n\t\t\t\t{/if}\n\t\t\t\t{#if lastUpdated}\n\t\t\t\t\t<div class=\"ml-auto flex items-center gap-1\">\n\t\t\t\t\t\t<span class=\"text-sm whitespace-nowrap text-muted-foreground\">\n\t\t\t\t\t\t\tUpdated: {lastUpdatedFormatted}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<Button variant=\"ghost\" size=\"sm\" onclick={reloadGroupWidgets} disabled={loadingGroup}>\n\t\t\t\t\t\t\t<RefreshCw class=\"h-4 w-4 {loadingGroup ? 'animate-spin' : ''}\" />\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t</div>\n\n\t\t\t{#each widgetGroups as group (group.id)}\n\t\t\t\t<Tabs.Content value={String(group.id)}>\n\t\t\t\t\t{#if loadingGroup && activeTabId === String(group.id)}\n\t\t\t\t\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t\t\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else if activeGroup && activeTabId === String(group.id)}\n\t\t\t\t\t\t<WidgetGrid\n\t\t\t\t\t\t\twidgets={activeGroup.widgets ?? []}\n\t\t\t\t\t\t\tfromDateUTC={getFromDateTimeUTC()}\n\t\t\t\t\t\t\ttoDateUTC={getToDateTimeUTC()}\n\t\t\t\t\t\t\ttimeDomain={sharedTimeDomain}\n\t\t\t\t\t\t\tonEditWidget={openEditWidget}\n\t\t\t\t\t\t\tonDeleteWidget={openDeleteWidgetDialog}\n\t\t\t\t\t\t\tonMoveWidget={handleMoveWidget}\n\t\t\t\t\t\t\tonAddWidget={openAddWidget}\n\t\t\t\t\t\t\tonToggleStar={handleToggleStar}\n\t\t\t\t\t\t\tonRangeSelect={handleChartRangeSelect}\n\t\t\t\t\t\t/>\n\t\t\t\t\t{/if}\n\t\t\t\t</Tabs.Content>\n\t\t\t{/each}\n\t\t</Tabs.Root>\n\t{/if}\n</div>\n\n<WidgetConfigPanel\n\tbind:open={showWidgetConfig}\n\twidget={editingWidget}\n\t{availableMetrics}\n\terror={widgetConfigError}\n\tonSave={handleWidgetSave}\n\tonCancel={() => {\n\t\tshowWidgetConfig = false;\n\t\teditingWidget = null;\n\t\twidgetConfigError = '';\n\t}}\n/>\n\n<AlertDialog.Root\n\tbind:open={showCreateDialog}\n\tonOpenChange={(o) => {\n\t\tif (!o) createError = '';\n\t}}\n>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>New Widget Group</AlertDialog.Title>\n\t\t</AlertDialog.Header>\n\t\t{#if createError}\n\t\t\t<Alert.Root variant=\"destructive\" class=\"border-red-200 bg-red-50\">\n\t\t\t\t<CircleAlert class=\"h-4 w-4 text-red-700\" />\n\t\t\t\t<Alert.Title class=\"text-red-800\">Error</Alert.Title>\n\t\t\t\t<Alert.Description class=\"text-red-700\">{createError}</Alert.Description>\n\t\t\t</Alert.Root>\n\t\t{/if}\n\t\t<div class=\"space-y-4\">\n\t\t\t<div>\n\t\t\t\t<label class=\"text-sm font-medium\" for=\"new-group-name\">Name</label>\n\t\t\t\t<Input id=\"new-group-name\" bind:value={newName} placeholder=\"My Group\" maxlength={12} />\n\t\t\t</div>\n\t\t</div>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showCreateDialog = false)}>Cancel</Button>\n\t\t\t<Button onclick={createWidgetGroup} disabled={creating}>\n\t\t\t\t{#if creating}Creating...{:else}<Plus class=\"mr-1 h-4 w-4\" /> New Widget Group{/if}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root\n\tbind:open={showDeleteDialog}\n\tonOpenChange={(o) => {\n\t\tif (!o) deleteError = '';\n\t}}\n>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Delete Widget Group</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to delete \"{activeGroup?.name}\"? This will remove all widgets in this\n\t\t\t\tgroup. This action cannot be undone.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t{#if deleteError}\n\t\t\t<Alert.Root variant=\"destructive\" class=\"border-red-200 bg-red-50\">\n\t\t\t\t<CircleAlert class=\"h-4 w-4 text-red-700\" />\n\t\t\t\t<Alert.Title class=\"text-red-800\">Error</Alert.Title>\n\t\t\t\t<Alert.Description class=\"text-red-700\">{deleteError}</Alert.Description>\n\t\t\t</Alert.Root>\n\t\t{/if}\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showDeleteDialog = false)} disabled={deleting}\n\t\t\t\t>Cancel</Button\n\t\t\t>\n\t\t\t<Button variant=\"destructive\" onclick={deleteWidgetGroup} disabled={deleting}>\n\t\t\t\t{deleting ? 'Deleting...' : 'Delete'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root\n\tbind:open={showDeleteWidgetDialog}\n\tonOpenChange={(o) => {\n\t\tif (!o) deleteWidgetError = '';\n\t}}\n>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Delete Widget</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to delete \"{deletingWidget?.title}\"? This action cannot be undone.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t{#if deleteWidgetError}\n\t\t\t<Alert.Root variant=\"destructive\" class=\"border-red-200 bg-red-50\">\n\t\t\t\t<CircleAlert class=\"h-4 w-4 text-red-700\" />\n\t\t\t\t<Alert.Title class=\"text-red-800\">Error</Alert.Title>\n\t\t\t\t<Alert.Description class=\"text-red-700\">{deleteWidgetError}</Alert.Description>\n\t\t\t</Alert.Root>\n\t\t{/if}\n\t\t<AlertDialog.Footer>\n\t\t\t<Button\n\t\t\t\tvariant=\"outline\"\n\t\t\t\tonclick={() => (showDeleteWidgetDialog = false)}\n\t\t\t\tdisabled={deletingWidgetLoading}>Cancel</Button\n\t\t\t>\n\t\t\t<Button variant=\"destructive\" onclick={confirmDeleteWidget} disabled={deletingWidgetLoading}>\n\t\t\t\t{deletingWidgetLoading ? 'Deleting...' : 'Delete'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n"],"names":["open","onOpenChange","noop","onOpenChangeComplete","MenuSubmenuState","boxWith","v","FloatingLayer","$$anchor","uid","$.props_id","id","$.prop","$$props","createId","ref","loop","onInteractOutside","forceMount","onEscapeKeydown","interactOutsideBehavior","escapeKeydownBehavior","onOpenAutoFocusProp","onCloseAutoFocusProp","onFocusOutside","side","trapFocus","restProps","$.rest_props","subContentState","MenuContentState","handleCloseAutoFocus","onkeydown","e","isKeyDownInside","isCloseKey","SUB_CLOSE_KEYS","dataAttr","$.derived","mergedProps","mergeProps","$.get","handleOpenAutoFocus","MenuOpenEvent","handleInteractOutside","handleEscapeKeydown","handleOnFocusOutside","isHTMLElement","PopperLayerForceMount","$.spread_props","$$arg0","props","wrapperProps","finalProps","getFloatingContentCSSVars","div","root_4","$.attribute_effect","div_1","PopperLayer","div_2","root_9","div_3","$$render","consequent_3","consequent_1","alternate_2","disabled","onSelect","openDelay","subTriggerState","MenuSubTriggerState","FloatingLayerAnchor","$.snippet","node_1","root_3","iconNode","Icon","$$sanitized_props","DropdownMenuPrimitive_Sub","$$value","$0","cn","DropdownMenuPrimitive_SubContent","DropdownMenuPrimitive_SubTrigger","ChevronRightIcon","node_2","load","authState","redirect","widgets","timeDomain","sharedHoverTime","$.state","cols","$.user_effect","mql","handler","$.set","sortedWidgets","a","b","root","$.each","node","widget","i","root_1","Card_Root","Card_Header","Card_Title","span","root_5","consequent","$.template_effect","$.set_text","text","$.sibling","node_3","button","$.child","node_5","Star","$.reset","node_6","DropdownMenu_Root","DropdownMenu_Trigger","EllipsisVertical","DropdownMenu_Content","DropdownMenu_Item","Pencil","node_10","DropdownMenu_Sub","DropdownMenu_SubTrigger","Move","node_13","DropdownMenu_SubContent","DropdownMenu_Item_1","ArrowUp","node_16","DropdownMenu_Item_2","ArrowDown","node_18","DropdownMenu_Item_3","ArrowLeft","node_21","DropdownMenu_Item_4","ArrowRight","node_23","DropdownMenu_Separator","DropdownMenu_Item_5","Trash2","node_26","$.set_attribute","Card_Content","WidgetRenderer","time","button_1","div_4","Plus","node_28","tagKeys","activeFilters","selectedKey","tagValueOptions","$.proxy","loadingValues","handleKeySelect","key","handleValueSelect","value","newFilters","removeFilter","availableKeys","k","$.index","$$item","$$array","span_1","X","$.append","Select_Root","Select_Trigger","alternate","Select_Content","val","Select_Item","Button","Select_Root_1","Select_Trigger_1","Select_Content_1","node_14","Select_Item_1","alternate_1","consequent_2","availableMetrics","error","title","widgetType","unit","unitManuallySet","sources","getMetricTagKeys","metricName","m","getMetricUnit","loadTagValues","api","projectsState","handleMetricChange","index","handleSave","validSources","s","displayTitle","config","handleClose","AlertDialog_Root","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","Alert_Root","CircleAlert","Alert_Title","Alert_Description","node_4","Input","node_9","Select_Item_2","Select_Item_3","Select_Item_4","node_19","source","root_17","div_5","Select_Item_5","text_10","Select_Root_2","Select_Trigger_2","text_11","Select_Content_2","Select_Item_6","Select_Item_7","Select_Item_8","Select_Item_9","Select_Item_10","div_6","$.first_child","fragment_19","$1","TagFilter","node_34","filters","div_7","Select_Root_3","Select_Trigger_3","Select_Content_3","Select_Item_11","node_39","Select_Item_12","AlertDialog_Footer","node_42","node_43","Check","node_45","node_46","timezone","getTimezone","widgetGroups","projectFramework","canPopulateDefaults","populating","loading","activeTabId","activeGroup","loadingGroup","showCreateDialog","newName","creating","createError","showDeleteDialog","deleting","deleteError","showWidgetConfig","editingWidget","widgetConfigError","showDeleteWidgetDialog","deletingWidget","deletingWidgetLoading","deleteWidgetError","lastUpdated","tabsListEl","hasOverflow","initialUrlParams","parseTimeRangeFromUrl","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","sharedTimeDomain","lastUpdatedFormatted","formatDateTime","reloadGroupWidgets","range","getTimeRangeFromPreset","getFromDateTimeUTC","getToDateTimeUTC","loadGroupWidgets","checkOverflow","observer","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","loadWidgetGroups","response","populateDefaults","toast","frameworkLabel","FRAMEWORK_LABELS","groupId","result","handleTabChange","tab","createWidgetGroup","group","deleteWidgetGroup","handleTimeRangeChange","from","to","preset","updateUrl","handleChartRangeSelect","CalendarDate","loadMetrics","discoverResponse","openAddWidget","openEditWidget","openDeleteWidgetDialog","confirmDeleteWidget","handleToggleStar","target","w","previous","handleMoveWidget","widgetId","offset","handleWidgetSave","data","activeTabName","g","onMount","fragment","TimeRangePicker","LoadingCircle","Sparkles","node_7","Tabs_Root","fragment_6","text_2","node_15","Tabs_List","Tabs_Trigger","child","root_20","event_handler_1","node_24","consequent_4","text_3","node_25","DropdownMenu_Root_1","DropdownMenu_Trigger_1","DropdownMenu_Content_1","node_31","consequent_5","div_8","root_28","node_33","RefreshCw","consequent_6","Tabs_Content","div_9","root_32","node_37","WidgetGrid","consequent_8","consequent_7","classes","$.set_class","WidgetConfigPanel","o","consequent_9","div_10","node_44","div_11","node_49","node_51","node_52","node_54","consequent_10","alternate_3","AlertDialog_Root_1","AlertDialog_Content_1","AlertDialog_Header_1","AlertDialog_Title_1","AlertDialog_Description","Alert_Root_1","node_62","Alert_Title_1","Alert_Description_1","consequent_11","AlertDialog_Footer_1","node_66","node_67","AlertDialog_Root_2","AlertDialog_Content_2","AlertDialog_Header_2","AlertDialog_Title_2","AlertDialog_Description_1","text_17","Alert_Root_2","node_75","Alert_Title_2","Alert_Description_2","consequent_12","AlertDialog_Footer_2","node_79","node_80"],"mappings":"07DAAA,UAQE,IAAAA,gBAAiB,EAAK,EACtBC,uBAAeC,EAAI,EACnBC,+BAAuBD,EAAI,EAI5BE,GAAiB,OAAM,CACtB,KAAMC,GAAO,IACNL,EAAI,EACTM,GAAM,CACNN,EAAOM,CAAC,EACRL,EAAY,IAAGK,CAAC,CACjB,CAAA,EAED,qBAAsBD,GAAO,IAAOF,EAAoB,CAAA,IAIzDI,GAAaC,EAAA,+FAFd,yFCxBA,OAYOC,EAAGC,GAAA,eAGRC,EAAEC,EAAAC,EAAA,KAAA,GAAA,IAAGC,GAASL,CAAG,CAAA,EACjBM,eAAgB,IAAI,EAGpBC,eAAO,EAAI,EACXC,4BAAoBf,EAAI,EACxBgB,qBAAa,EAAK,EAClBC,0BAAkBjB,EAAI,EACtBkB,kCAA0B,uBAAuB,EACjDC,iCAAwB,uBAAuB,EAC9BC,2BAAsBpB,EAAI,EACzBqB,4BAAuBrB,EAAI,EAC7CsB,yBAAiBtB,EAAI,EACrBuB,gBAAO,OAAO,EACdC,oBAAY,EAAK,EACdC,GAAAC,GAAAf,EAAA,4PAGEgB,EAAkBC,GAAiB,OAAM,CAC9C,GAAIzB,GAAO,IAAOM,GAAE,EACpB,KAAMN,GAAO,IAAOW,GAAI,EACxB,IAAKX,GAAO,IACLU,EAAG,EACRT,GAAOS,EAAMT,CAAC,CAAA,EAEhB,MAAO,GACP,iBAAkBD,GAAO,IAAO0B,EAAoB,aAG5CC,EAAUC,EAAkB,OAC9BC,EAAmBD,EAAE,cAA8B,SAASA,EAAE,MAAM,EACpEE,EAAaC,GAClBP,EAAgB,WAAW,KAAK,KAAK,IAAI,OAAA,EACxC,SAASI,EAAE,GAAG,EACZC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AAA,4IAIvD2I,GAAUla,GAAA,8FACTsN,GAAW6M,GAAA,CAAA,MAAA,sBAAA,CAAA,mCACXC,EAAWpa,EAAA,oIACXqa,EAAiBra,EAAA,uEAAuByR,EAAiB,CAAA,CAAA,8FAJvDA,EAAiB,GAAAlO,GAAA+W,EAAA,yCAOrBC,GAAkBva,GAAA,yCACjBmL,GAAAqP,GAAA,mBAEgB,QAAA,IAAA9U,EAAA4L,GAAyB,EAAK,0BACpCE,EAAqB,yFAE/BrG,GAAMsP,GAAA,+BAAgCxF,0BAA+BzD,EAAqB,iDACzFA,EAAqB,EAAG,cAAgB,QAAQ,CAAA,qJA7QrD","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/21.BrF4_UGb.js b/backend/static/frontend/_app/immutable/nodes/21.BrF4_UGb.js
deleted file mode 100644
index 5f0e2402..00000000
--- a/backend/static/frontend/_app/immutable/nodes/21.BrF4_UGb.js
+++ /dev/null
@@ -1 +0,0 @@
-import{s as Fr,r as Hr,p as ra,i as G}from"../chunks/DMODTt3n.js";import{o as fa,a as $a}from"../chunks/Dwk6gGSK.js";import{p as gr,d as v,c as o,m as Wr,o as Br,b as t,a as br,h as f,v as hr,F as ta,i as r,f as u,n as s,t as l,k as le,l as se,g as e,u as lr,s as a,e as c,r as _,j as ia}from"../chunks/B2WdN-7r.js";import{e as Yt,i as er}from"../chunks/CMyj8Fzw.js";import{c as n}from"../chunks/BAcG0-U_.js";import{r as ha,s as pa}from"../chunks/DH0tcjsQ.js";import{p as ma}from"../chunks/BG_QVry4.js";import{g as ga}from"../chunks/xR3pK9Ey.js";import{a as Xt,p as Ft,t as Ot,i as ba}from"../chunks/D6S6XYVy.js";import{g as Pa,c as oa,t as la}from"../chunks/DJdWGDax.js";import{L as Jr}from"../chunks/D0pIT200.js";import{B as Qe}from"../chunks/C1aqwstW.js";import{B as Jt}from"../chunks/Ci5jf6Wy.js";import{P as ya}from"../chunks/C8IsQj6C.js";import{T as Sr,b as Ur,a as At,c as Xr}from"../chunks/CeOjHHJH.js";import{T as Yr,a as zt}from"../chunks/CEJkX7WU.js";import{a as xa,b as ea,T as ka}from"../chunks/Btlz2xiW.js";import{A as ua,a as va}from"../chunks/CaHAoFtL.js";import{A as Rr,a as Ir,b as Mr,c as Dr,d as Ar,e as Nr}from"../chunks/CtIWnZub.js";import{S as wa}from"../chunks/DGXZzcqC.js";import{T as Ta}from"../chunks/xk30YnJ1.js";import{C as ca,g as sa,d as jr,a as Er,p as Ca,b as Sa,u as Ra,T as Ia}from"../chunks/xqPrLpfy.js";import{A as aa,T as Zr}from"../chunks/uoQG1kt6.js";import{I as Q}from"../chunks/D8CWOmhn.js";import{L as w}from"../chunks/Ba_8xUad.js";import{b as yr,S as xr,a as kr,c as mr}from"../chunks/CzIIBX62.js";import{C as _a}from"../chunks/DUJ_Z9AF.js";import{P as wr}from"../chunks/BUQRDnoX.js";import{c as Ma}from"../chunks/BuKxAPQs.js";import{I as Vr}from"../chunks/Bv_PbELb.js";import{I as Da}from"../chunks/CQ9AfEcR.js";function na(It,R){gr(R,!0);let et=Hr(R,["$$slots","$$events","$$legacy"]);const De=[["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"}],["path",{d:"m15 5 4 4"}]];Vr(It,Fr({name:"pencil"},()=>et,{get iconNode(){return De},children:(ye,L)=>{var je=v(),ce=o(je);Wr(ce,()=>R.children??Br),t(ye,je)},$$slots:{default:!0}})),br()}function da(It,R){gr(R,!0);let et=Hr(R,["$$slots","$$events","$$legacy"]);const De=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]];Vr(It,Fr({name:"send"},()=>et,{get iconNode(){return De},children:(ye,L)=>{var je=v(),ce=o(je);Wr(ce,()=>R.children??Br),t(ye,je)},$$slots:{default:!0}})),br()}function Aa(It,R){gr(R,!0);let et=Hr(R,["$$slots","$$events","$$legacy"]);const De=[["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"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]];Vr(It,Fr({name:"triangle-alert"},()=>et,{get iconNode(){return De},children:(ye,L)=>{var je=v(),ce=o(je);Wr(ce,()=>R.children??Br),t(ye,je)},$$slots:{default:!0}})),br()}function Na(It,R){gr(R,!0);let et=Hr(R,["$$slots","$$events","$$legacy"]);const De=[["path",{d:"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317"}],["path",{d:"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773"}],["path",{d:"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643"}],["path",{d:"m2 2 20 20"}]];Vr(It,Fr({name:"zap-off"},()=>et,{get iconNode(){return De},children:(ye,L)=>{var je=v(),ce=o(je);Wr(ce,()=>R.children??Br),t(ye,je)},$$slots:{default:!0}})),br()}function ja(It,R){gr(R,!0);let et=Hr(R,["$$slots","$$events","$$legacy"]);const De=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}]];Vr(It,Fr({name:"zap"},()=>et,{get iconNode(){return De},children:(ye,L)=>{var je=v(),ce=o(je);Wr(ce,()=>R.children??Br),t(ye,je)},$$slots:{default:!0}})),br()}var Ea=u("<!> <!>",1),za=u("<!> <!>",1),Oa=u('<div class="flex gap-2"><!> <!></div>'),La=u("<!> Add Recipient",1),qa=u('<div class="space-y-2"><!> <!> <!></div>'),Ua=u("<!> <!>",1),Fa=u("<!> <!>",1),Ha=u('<div class="flex gap-2"><!> <!> <!></div>'),Wa=u("<!> Add Header",1),Ba=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!> <!></div>',1),Va=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),Ga=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),Ka=u('<p class="text-sm text-destructive"> </p>'),Za=u("<!> <!>",1),Qa=u("<!> <!>",1),Ja=u("<!> <!>",1),Xa=u('<!> <form class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <!> <!></form> <!>',1);function Ya(It,R){gr(R,!0);let et=ra(R,"open",15),De=f(""),ye=f("email"),L=f(!1),je=f(""),ce=f(hr([""])),bt=f(""),ht=f("POST"),Pt=f(""),we=f(hr([])),B=f(""),Te=f(""),ot=f(""),pt=f(""),Nt=f(""),Mt=f(""),xe=f("");const Ht=lr(()=>R.channel!==null),jt=[{value:"email",label:"Email"},{value:"webhook",label:"Webhook"},{value:"slack",label:"Slack"},{value:"github",label:"GitHub"}];function yt(){r(De,""),r(ye,"email"),r(je,""),r(ce,[""],!0),r(bt,""),r(ht,"POST"),r(Pt,""),r(we,[],!0),r(B,""),r(Te,""),r(ot,""),r(pt,""),r(Nt,""),r(Mt,""),r(xe,"")}function ft(A){r(De,A.name,!0),r(ye,A.channelType,!0);const he=A.config||{};A.channelType==="email"?r(ce,he.recipients?.length?[...he.recipients]:[""],!0):A.channelType==="webhook"?(r(bt,he.url||"",!0),r(ht,he.method||"POST",!0),r(Pt,he.secret||"",!0),r(we,he.headers?Object.entries(he.headers).map(([Fe,Vt])=>({key:Fe,value:Vt})):[],!0)):A.channelType==="slack"?(r(B,he.webhookUrl||"",!0),r(Te,he.channel||"",!0),r(ot,he.username||"",!0)):A.channelType==="github"&&(r(pt,he.token||"",!0),r(Nt,he.owner||"",!0),r(Mt,he.repo||"",!0),r(xe,(he.labels||[]).join(", "),!0))}function xt(){if(e(ye)==="email")return{recipients:e(ce).filter(A=>A.trim()!=="")};if(e(ye)==="webhook"){const A={url:e(bt)};e(ht)!=="POST"&&(A.method=e(ht)),e(Pt)&&(A.secret=e(Pt));const he={};for(const Fe of e(we))Fe.key.trim()&&(he[Fe.key.trim()]=Fe.value);return Object.keys(he).length>0&&(A.headers=he),A}else if(e(ye)==="slack"){const A={webhookUrl:e(B)};return e(Te)&&(A.channel=e(Te)),e(ot)&&(A.username=e(ot)),A}else if(e(ye)==="github"){const A={token:e(pt),owner:e(Nt),repo:e(Mt)},he=e(xe).split(",").map(Fe=>Fe.trim()).filter(Fe=>Fe);return he.length>0&&(A.labels=he),A}return{}}function it(){r(ce,[...e(ce),""],!0)}function Et(A){r(ce,e(ce).filter((he,Fe)=>Fe!==A),!0),e(ce).length===0&&r(ce,[""],!0)}function ut(){r(we,[...e(we),{key:"",value:""}],!0)}function St(A){r(we,e(we).filter((he,Fe)=>Fe!==A),!0)}async function kt(){r(L,!0),r(je,"");try{const A={name:e(De),channelType:e(ye),config:xt()};e(Ht)?(await Xt.put(`/notification-channels/${R.channel.id}`,A,{projectId:Ft.currentProjectId??void 0}),Ot.success("Successfully updated the Channel",{position:"top-center"})):(await Xt.post("/notification-channels",A,{projectId:Ft.currentProjectId??void 0}),Ot.success("Successfully created the Channel",{position:"top-center"})),R.onSaved()}catch(A){r(je,A instanceof Error?A.message:"Failed to save channel",!0)}finally{r(L,!1)}}function tr(A){A&&R.channel?ft(R.channel):yt(),et(A)}ta(()=>{et()&&R.channel?ft(R.channel):et()&&!R.channel&&yt()});var lt=v(),wt=o(lt);n(wt,()=>Nr,(A,he)=>{he(A,{get open(){return et()},onOpenChange:tr,children:(Fe,Vt)=>{var Lt=v(),Wt=o(Lt);n(Wt,()=>Rr,(cr,_r)=>{_r(cr,{class:"max-w-md",children:(sr,Gt)=>{var nr=Xa(),rr=o(nr);n(rr,()=>Ir,(Oe,st)=>{st(Oe,{children:(tt,Zt)=>{var Rt=Ea(),$t=o(Rt);n($t,()=>Mr,(Ge,Xe)=>{Xe(Ge,{children:(Le,Ke)=>{s();var Ee=l();le(()=>se(Ee,e(Ht)?"Edit Channel":"New Channel")),t(Le,Ee)},$$slots:{default:!0}})});var Je=a($t,2);n(Je,()=>Dr,(Ge,Xe)=>{Xe(Ge,{children:(Le,Ke)=>{s();var Ee=l();le(()=>se(Ee,e(Ht)?"Update the notification channel configuration":"Configure a new notification channel")),t(Le,Ee)},$$slots:{default:!0}})}),t(tt,Rt)},$$slots:{default:!0}})});var Kt=a(rr,2),Bt=c(Kt),fr=c(Bt);w(fr,{for:"channel-name",children:(Oe,st)=>{s();var tt=l("Name");t(Oe,tt)},$$slots:{default:!0}});var Ve=a(fr,2);Q(Ve,{id:"channel-name",placeholder:"e.g. Team Slack",required:!0,get value(){return e(De)},set value(Oe){r(De,Oe,!0)}}),_(Bt);var I=a(Bt,2),ar=c(I);w(ar,{for:"channel-type",children:(Oe,st)=>{s();var tt=l("Type");t(Oe,tt)},$$slots:{default:!0}});var Gr=a(ar,2);n(Gr,()=>yr,(Oe,st)=>{st(Oe,{type:"single",get value(){return e(ye)},set value(tt){r(ye,tt,!0)},children:(tt,Zt)=>{var Rt=za(),$t=o(Rt);n($t,()=>xr,(Ge,Xe)=>{Xe(Ge,{class:"w-full",children:(Le,Ke)=>{s();var Ee=l();le(nt=>se(Ee,nt),[()=>jt.find(nt=>nt.value===e(ye))?.label||"Select type"]),t(Le,Ee)},$$slots:{default:!0}})});var Je=a($t,2);n(Je,()=>kr,(Ge,Xe)=>{Xe(Ge,{children:(Le,Ke)=>{var Ee=v(),nt=o(Ee);Yt(nt,17,()=>jt,er,(He,Ze)=>{var at=v(),mt=o(at);n(mt,()=>mr,(Dt,Tt)=>{Tt(Dt,{get value(){return e(Ze).value},children:(qe,Pe)=>{s();var ze=l();le(()=>se(ze,e(Ze).label)),t(qe,ze)},$$slots:{default:!0}})}),t(He,at)}),t(Le,Ee)},$$slots:{default:!0}})}),t(tt,Rt)},$$slots:{default:!0}})}),_(I);var Tr=a(I,2);{var zr=Oe=>{var st=qa(),tt=c(st);w(tt,{children:(Je,Ge)=>{s();var Xe=l("Recipients");t(Je,Xe)},$$slots:{default:!0}});var Zt=a(tt,2);Yt(Zt,17,()=>e(ce),er,(Je,Ge,Xe)=>{var Le=Oa(),Ke=c(Le);Q(Ke,{type:"email",placeholder:"[email protected]",get value(){return e(ce)[Xe]},set value(He){e(ce)[Xe]=He}});var Ee=a(Ke,2);{var nt=He=>{Qe(He,{variant:"ghost",size:"icon",type:"button",onclick:()=>Et(Xe),children:(Ze,at)=>{Zr(Ze,{class:"h-4 w-4"})},$$slots:{default:!0}})};G(Ee,He=>{e(ce).length>1&&He(nt)})}_(Le),t(Je,Le)});var Rt=a(Zt,2);{var $t=Je=>{Qe(Je,{variant:"outline",size:"sm",type:"button",onclick:it,children:(Ge,Xe)=>{var Le=La(),Ke=o(Le);wr(Ke,{class:"mr-1 h-3 w-3"}),s(),t(Ge,Le)},$$slots:{default:!0}})};G(Rt,Je=>{e(ce).length<10&&Je($t)})}_(st),t(Oe,st)},Or=Oe=>{var st=v(),tt=o(st);{var Zt=$t=>{var Je=Ba(),Ge=o(Je),Xe=c(Ge);w(Xe,{for:"webhook-url",children:(Pe,ze)=>{s();var Ie=l("URL");t(Pe,Ie)},$$slots:{default:!0}});var Le=a(Xe,2);Q(Le,{id:"webhook-url",placeholder:"https://example.com/webhook",required:!0,get value(){return e(bt)},set value(Pe){r(bt,Pe,!0)}}),_(Ge);var Ke=a(Ge,2),Ee=c(Ke);w(Ee,{for:"webhook-method",children:(Pe,ze)=>{s();var Ie=l("Method");t(Pe,Ie)},$$slots:{default:!0}});var nt=a(Ee,2);n(nt,()=>yr,(Pe,ze)=>{ze(Pe,{type:"single",get value(){return e(ht)},set value(Ie){r(ht,Ie,!0)},children:(Ie,Ct)=>{var or=Fa(),Qt=o(or);n(Qt,()=>xr,(T,q)=>{q(T,{class:"w-full",children:(Y,dt)=>{s();var d=l();le(()=>se(d,e(ht))),t(Y,d)},$$slots:{default:!0}})});var dr=a(Qt,2);n(dr,()=>kr,(T,q)=>{q(T,{children:(Y,dt)=>{var d=Ua(),i=o(d);n(i,()=>mr,(U,h)=>{h(U,{value:"POST",children:(p,M)=>{s();var $=l("POST");t(p,$)},$$slots:{default:!0}})});var x=a(i,2);n(x,()=>mr,(U,h)=>{h(U,{value:"PUT",children:(p,M)=>{s();var $=l("PUT");t(p,$)},$$slots:{default:!0}})}),t(Y,d)},$$slots:{default:!0}})}),t(Ie,or)},$$slots:{default:!0}})}),_(Ke);var He=a(Ke,2),Ze=c(He);w(Ze,{for:"webhook-secret",children:(Pe,ze)=>{s();var Ie=l("Secret (optional)");t(Pe,Ie)},$$slots:{default:!0}});var at=a(Ze,2);Q(at,{id:"webhook-secret",placeholder:"HMAC signing secret",get value(){return e(Pt)},set value(Pe){r(Pt,Pe,!0)}}),_(He);var mt=a(He,2),Dt=c(mt);w(Dt,{children:(Pe,ze)=>{s();var Ie=l("Headers (optional)");t(Pe,Ie)},$$slots:{default:!0}});var Tt=a(Dt,2);Yt(Tt,17,()=>e(we),er,(Pe,ze,Ie)=>{var Ct=Ha(),or=c(Ct);Q(or,{placeholder:"Header name",class:"flex-1",get value(){return e(we)[Ie].key},set value(T){e(we)[Ie].key=T}});var Qt=a(or,2);Q(Qt,{placeholder:"Value",class:"flex-1",get value(){return e(we)[Ie].value},set value(T){e(we)[Ie].value=T}});var dr=a(Qt,2);Qe(dr,{variant:"ghost",size:"icon",type:"button",onclick:()=>St(Ie),children:(T,q)=>{Zr(T,{class:"h-4 w-4"})},$$slots:{default:!0}}),_(Ct),t(Pe,Ct)});var qe=a(Tt,2);Qe(qe,{variant:"outline",size:"sm",type:"button",onclick:ut,children:(Pe,ze)=>{var Ie=Wa(),Ct=o(Ie);wr(Ct,{class:"mr-1 h-3 w-3"}),s(),t(Pe,Ie)},$$slots:{default:!0}}),_(mt),t($t,Je)},Rt=$t=>{var Je=v(),Ge=o(Je);{var Xe=Ke=>{var Ee=Va(),nt=o(Ee),He=c(nt);w(He,{for:"slack-url",children:(ze,Ie)=>{s();var Ct=l("Webhook URL");t(ze,Ct)},$$slots:{default:!0}});var Ze=a(He,2);Q(Ze,{id:"slack-url",placeholder:"https://hooks.slack.com/services/...",required:!0,get value(){return e(B)},set value(ze){r(B,ze,!0)}}),_(nt);var at=a(nt,2),mt=c(at);w(mt,{for:"slack-channel",children:(ze,Ie)=>{s();var Ct=l("Channel Override (optional)");t(ze,Ct)},$$slots:{default:!0}});var Dt=a(mt,2);Q(Dt,{id:"slack-channel",placeholder:"#alerts",get value(){return e(Te)},set value(ze){r(Te,ze,!0)}}),_(at);var Tt=a(at,2),qe=c(Tt);w(qe,{for:"slack-username",children:(ze,Ie)=>{s();var Ct=l("Username (optional)");t(ze,Ct)},$$slots:{default:!0}});var Pe=a(qe,2);Q(Pe,{id:"slack-username",placeholder:"Traceway",get value(){return e(ot)},set value(ze){r(ot,ze,!0)}}),_(Tt),t(Ke,Ee)},Le=Ke=>{var Ee=v(),nt=o(Ee);{var He=Ze=>{var at=Ga(),mt=o(at),Dt=c(mt);w(Dt,{for:"gh-token",children:(q,Y)=>{s();var dt=l("Personal Access Token");t(q,dt)},$$slots:{default:!0}});var Tt=a(Dt,2);Q(Tt,{id:"gh-token",type:"password",placeholder:"ghp_...",required:!0,get value(){return e(pt)},set value(q){r(pt,q,!0)}}),_(mt);var qe=a(mt,2),Pe=c(qe);w(Pe,{for:"gh-owner",children:(q,Y)=>{s();var dt=l("Repository Owner");t(q,dt)},$$slots:{default:!0}});var ze=a(Pe,2);Q(ze,{id:"gh-owner",placeholder:"owner",required:!0,get value(){return e(Nt)},set value(q){r(Nt,q,!0)}}),_(qe);var Ie=a(qe,2),Ct=c(Ie);w(Ct,{for:"gh-repo",children:(q,Y)=>{s();var dt=l("Repository Name");t(q,dt)},$$slots:{default:!0}});var or=a(Ct,2);Q(or,{id:"gh-repo",placeholder:"repo",required:!0,get value(){return e(Mt)},set value(q){r(Mt,q,!0)}}),_(Ie);var Qt=a(Ie,2),dr=c(Qt);w(dr,{for:"gh-labels",children:(q,Y)=>{s();var dt=l("Labels (optional, comma-separated)");t(q,dt)},$$slots:{default:!0}});var T=a(dr,2);Q(T,{id:"gh-labels",placeholder:"bug, traceway",get value(){return e(xe)},set value(q){r(xe,q,!0)}}),_(Qt),t(Ze,at)};G(nt,Ze=>{e(ye)==="github"&&Ze(He)},!0)}t(Ke,Ee)};G(Ge,Ke=>{e(ye)==="slack"?Ke(Xe):Ke(Le,!1)},!0)}t($t,Je)};G(tt,$t=>{e(ye)==="webhook"?$t(Zt):$t(Rt,!1)},!0)}t(Oe,st)};G(Tr,Oe=>{e(ye)==="email"?Oe(zr):Oe(Or,!1)})}var Lr=a(Tr,2);{var qr=Oe=>{var st=Ka(),tt=c(st,!0);_(st),le(()=>se(tt,e(je))),t(Oe,st)};G(Lr,Oe=>{e(je)&&Oe(qr)})}_(Kt);var Kr=a(Kt,2);n(Kr,()=>Ar,(Oe,st)=>{st(Oe,{children:(tt,Zt)=>{var Rt=Ja(),$t=o(Rt);n($t,()=>aa,(Ge,Xe)=>{Xe(Ge,{get disabled(){return e(L)},children:(Le,Ke)=>{s();var Ee=l("Cancel");t(Le,Ee)},$$slots:{default:!0}})});var Je=a($t,2);Qe(Je,{onclick:kt,get disabled(){return e(L)},children:(Ge,Xe)=>{var Le=v(),Ke=o(Le);{var Ee=He=>{var Ze=Za(),at=o(Ze);_a(at,{class:"mr-2 h-4 w-4"});var mt=a(at,2);{var Dt=qe=>{var Pe=l("Updating...");t(qe,Pe)},Tt=qe=>{var Pe=l("Update Channel");t(qe,Pe)};G(mt,qe=>{e(L)?qe(Dt):qe(Tt,!1)})}t(He,Ze)},nt=He=>{var Ze=Qa(),at=o(Ze);wr(at,{class:"mr-2 h-4 w-4"});var mt=a(at,2);{var Dt=qe=>{var Pe=l("Creating...");t(qe,Pe)},Tt=qe=>{var Pe=l("New Channel");t(qe,Pe)};G(mt,qe=>{e(L)?qe(Dt):qe(Tt,!1)})}t(He,Ze)};G(Ke,He=>{e(Ht)?He(Ee):He(nt,!1)})}t(Ge,Le)},$$slots:{default:!0}}),t(tt,Rt)},$$slots:{default:!0}})}),ia("submit",Kt,Oe=>{Oe.preventDefault(),kt()}),t(sr,nr)},$$slots:{default:!0}})}),t(Fe,Lt)},$$slots:{default:!0}})}),t(It,lt),br()}var eo=u("<!> <!>",1),to=u("<!> <!>",1),ro=u("<!> <!>",1),ao=u("<!> <!>",1),oo=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),lo=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),so=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),no=u("<!> <!>",1),io=u("<!> <!>",1),uo=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),vo=u("<!> <!>",1),co=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),_o=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),fo=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),$o=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),ho=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),po=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),mo=u('<div class="space-y-2"><!> <!></div>'),go=u('<div class="flex items-center gap-2"><input id="cfg-include-archived" type="checkbox" class="h-4 w-4 rounded border-border"/> <!></div>'),bo=u('<div class="space-y-2"><!> <!></div>'),Po=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),yo=u("<!> <!>",1),xo=u('<p class="text-sm text-destructive"> </p>'),ko=u("<!> <!>",1),wo=u("<!> <!>",1),To=u("<!> <!>",1),Co=u('<!> <form class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <!> <div class="rounded-md border p-3 space-y-3"><p class="text-sm font-medium text-muted-foreground">Rule Configuration</p> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <!></form> <!>',1);function So(It,R){gr(R,!0);let et=ra(R,"open",15),De=f(""),ye=f(""),L=f("new_error"),je=f(15),ce=f(""),bt=f(!1),ht=f("");const Pt=[{value:"",label:"Auto (default)"},{value:"critical",label:"Critical"},{value:"warning",label:"Warning"},{value:"info",label:"Info"}];let we=f(5),B=f(5),Te=f(10),ot=f("*"),pt=f(500),Nt=f(.85),Mt=f(""),xe=f("gt"),Ht=f(90),jt=f("avg"),yt=f("any"),ft=f(10),xt=f(100),it=f("*"),Et=f(5),ut=f(50),St=f(60),kt=f(""),tr=f(!0),lt=f("*"),wt=f(.5);const A=lr(()=>R.rule!==null),he=[{value:"new_error",label:"New Issue"},{value:"impact_score_critical",label:"Impact Score Critical"},{value:"impact_score_high",label:"Impact Score High"},{value:"impact_score_medium",label:"Impact Score Medium"},{value:"error_regression",label:"Error Regression"},{value:"error_rate_threshold",label:"Error Rate"},{value:"error_count_threshold",label:"Error Count"},{value:"endpoint_p95_threshold",label:"Endpoint P95"},{value:"endpoint_p99_threshold",label:"Endpoint P99"},{value:"endpoint_error_rate",label:"Endpoint Error Rate"},{value:"apdex_drop",label:"Apdex Drop"},{value:"metric_threshold",label:"Metric Threshold"},{value:"no_data",label:"No Data"},{value:"task_duration_threshold",label:"Task Duration"},{value:"task_failure_rate",label:"Task Failure Rate"},{value:"throughput_drop",label:"Throughput Drop"},{value:"ai_trace_cost",label:"AI Trace Cost"}],Fe=lr(()=>!!Ft.currentProject&&ba(Ft.currentProject.framework)),Vt=lr(()=>e(Fe)?[{value:"new_error",label:"New Issue"}]:[{value:"new_error",label:"New Issue"},{value:"impact_score_critical",label:"Impact Score Critical"},{value:"impact_score_high",label:"Impact Score High"},{value:"impact_score_medium",label:"Impact Score Medium"},{value:"ai_trace_cost",label:"AI Trace Cost"}]);ta(()=>{et()&&!e(Vt).some(Ve=>Ve.value===e(L))&&r(L,"new_error")});const Lt={new_error:"Fires when a completely new error type is detected for the first time in your project.",impact_score_critical:"Fires when an endpoint’s impact score reaches critical level (≥ 0.75), indicating severe performance or reliability degradation.",impact_score_high:"Fires when an endpoint’s impact score reaches high level (≥ 0.50), indicating significant performance or reliability issues.",impact_score_medium:"Fires when an endpoint’s impact score reaches medium level (≥ 0.25), an early warning of emerging performance or reliability issues.",ai_trace_cost:"Fires when an individual AI trace exceeds a cost threshold. Monitors per-call spending across AI providers."},Wt=[{value:"gt",label:"> Greater than"},{value:"gte",label:">= Greater or equal"},{value:"lt",label:"< Less than"},{value:"lte",label:"<= Less or equal"},{value:"eq",label:"= Equal"}],cr=[{value:"avg",label:"Average"},{value:"max",label:"Maximum"},{value:"min",label:"Minimum"},{value:"sum",label:"Sum"},{value:"p95",label:"P95"},{value:"p99",label:"P99"},{value:"last",label:"Last"}],_r=[{value:"any",label:"Any"},{value:"endpoints",label:"Endpoints"},{value:"exceptions",label:"Exceptions"},{value:"metrics",label:"Metrics"},{value:"tasks",label:"Tasks"}];function sr(){r(De,""),r(ye,""),r(L,"new_error"),r(je,15),r(ce,""),r(ht,""),r(we,5),r(B,5),r(Te,10),r(ot,"*"),r(pt,500),r(Nt,.85),r(Mt,""),r(xe,"gt"),r(Ht,90),r(jt,"avg"),r(yt,"any"),r(ft,10),r(xt,100),r(it,"*"),r(Et,5),r(ut,50),r(St,60),r(kt,""),r(tr,!0),r(lt,"*"),r(wt,.5)}function Gt(Ve){r(De,Ve.name,!0),r(ye,Ve.channelId.toString(),!0),r(L,Ve.ruleType,!0),r(je,Ve.cooldownMinutes,!0),r(ce,Ve.severity||"",!0);const I=Ve.config||{};switch(Ve.ruleType){case"error_rate_threshold":r(we,I.thresholdPercent??5,!0),r(B,I.lookbackMinutes??5,!0),r(Te,I.minRequests??10,!0);break;case"endpoint_p95_threshold":case"endpoint_p99_threshold":r(ot,I.endpoint??"*",!0),r(pt,I.thresholdMs??500,!0),r(B,I.lookbackMinutes??5,!0);break;case"apdex_drop":r(Nt,I.thresholdApdex??.85,!0),r(B,I.lookbackMinutes??15,!0),r(Te,I.minRequests??50,!0);break;case"metric_threshold":r(Mt,I.metricName??"",!0),r(xe,I.operator??"gt",!0),r(Ht,I.thresholdValue??90,!0),r(jt,I.aggregation??"avg",!0),r(B,I.lookbackMinutes??5,!0);break;case"no_data":r(yt,I.dataType??"any",!0),r(ft,I.silenceMinutes??10,!0);break;case"error_count_threshold":r(xt,I.thresholdCount??100,!0),r(B,I.lookbackMinutes??60,!0);break;case"task_duration_threshold":r(it,I.taskName??"*",!0),r(pt,I.thresholdMs??3e4,!0),r(B,I.lookbackMinutes??30,!0);break;case"task_failure_rate":r(it,I.taskName??"*",!0),r(we,I.thresholdPercent??10,!0),r(B,I.lookbackMinutes??60,!0),r(Et,I.minExecutions??5,!0);break;case"throughput_drop":r(ut,I.dropPercent??50,!0),r(B,I.lookbackMinutes??15,!0),r(St,I.baselineWindowMinutes??60,!0);break;case"endpoint_error_rate":r(ot,I.endpoint??"*",!0),r(we,I.thresholdPercent??2,!0),r(B,I.lookbackMinutes??10,!0),r(Te,I.minRequests??20,!0);break;case"new_error":r(kt,(I.ignorePatterns||[]).join(", "),!0);break;case"error_regression":r(tr,I.includeArchived??!0,!0);break;case"impact_score_critical":case"impact_score_high":case"impact_score_medium":r(Te,I.minRequests??50,!0);break;case"ai_trace_cost":r(lt,I.traceName??"*",!0),r(wt,I.thresholdCost??.5,!0);break}}function nr(){switch(e(L)){case"error_rate_threshold":return{thresholdPercent:e(we),lookbackMinutes:e(B),minRequests:e(Te)};case"endpoint_p95_threshold":case"endpoint_p99_threshold":return{endpoint:e(ot),thresholdMs:e(pt),lookbackMinutes:e(B)};case"apdex_drop":return{thresholdApdex:e(Nt),lookbackMinutes:e(B),minRequests:e(Te)};case"metric_threshold":return{metricName:e(Mt),operator:e(xe),thresholdValue:e(Ht),aggregation:e(jt),lookbackMinutes:e(B),tags:{}};case"no_data":return{dataType:e(yt),silenceMinutes:e(ft)};case"error_count_threshold":return{thresholdCount:e(xt),lookbackMinutes:e(B)};case"task_duration_threshold":return{taskName:e(it),thresholdMs:e(pt),lookbackMinutes:e(B)};case"task_failure_rate":return{taskName:e(it),thresholdPercent:e(we),lookbackMinutes:e(B),minExecutions:e(Et)};case"throughput_drop":return{dropPercent:e(ut),lookbackMinutes:e(B),baselineWindowMinutes:e(St)};case"endpoint_error_rate":return{endpoint:e(ot),thresholdPercent:e(we),lookbackMinutes:e(B),minRequests:e(Te)};case"new_error":return{ignorePatterns:e(kt).split(",").map(I=>I.trim()).filter(I=>I)};case"error_regression":return{includeArchived:e(tr)};case"impact_score_critical":case"impact_score_high":case"impact_score_medium":return{minRequests:e(Te)};case"ai_trace_cost":return{traceName:e(lt),thresholdCost:e(wt)};default:return{}}}async function rr(){r(bt,!0),r(ht,"");try{const Ve={channelId:parseInt(e(ye)),name:e(De),ruleType:e(L),config:nr(),cooldownMinutes:e(je),severity:e(ce)};e(A)?(await Xt.put(`/notification-rules/${R.rule.id}`,Ve,{projectId:Ft.currentProjectId??void 0}),Ot.success("Successfully updated the Rule",{position:"top-center"})):(await Xt.post("/notification-rules",Ve,{projectId:Ft.currentProjectId??void 0}),Ot.success("Successfully created the Rule",{position:"top-center"})),R.onSaved()}catch(Ve){r(ht,Ve instanceof Error?Ve.message:"Failed to save rule",!0)}finally{r(bt,!1)}}function Kt(Ve){Ve&&R.rule?Gt(R.rule):sr(),et(Ve)}ta(()=>{et()&&R.rule?Gt(R.rule):et()&&!R.rule&&sr()});var Bt=v(),fr=o(Bt);n(fr,()=>Nr,(Ve,I)=>{I(Ve,{get open(){return et()},onOpenChange:Kt,children:(ar,Gr)=>{var Tr=v(),zr=o(Tr);n(zr,()=>Rr,(Or,Lr)=>{Lr(Or,{class:"max-w-lg max-h-[85vh] overflow-y-auto",children:(qr,Kr)=>{var Oe=Co(),st=o(Oe);n(st,()=>Ir,(T,q)=>{q(T,{children:(Y,dt)=>{var d=eo(),i=o(d);n(i,()=>Mr,(U,h)=>{h(U,{children:(p,M)=>{s();var $=l();le(()=>se($,e(A)?"Edit Rule":"New Rule")),t(p,$)},$$slots:{default:!0}})});var x=a(i,2);n(x,()=>Dr,(U,h)=>{h(U,{children:(p,M)=>{s();var $=l();le(()=>se($,e(A)?"Update the notification rule configuration":"Configure a new notification rule")),t(p,$)},$$slots:{default:!0}})}),t(Y,d)},$$slots:{default:!0}})});var tt=a(st,2),Zt=c(tt),Rt=c(Zt);w(Rt,{for:"rule-name",children:(T,q)=>{s();var Y=l("Name");t(T,Y)},$$slots:{default:!0}});var $t=a(Rt,2);Q($t,{id:"rule-name",placeholder:"e.g. High Error Rate",required:!0,get value(){return e(De)},set value(T){r(De,T,!0)}}),_(Zt);var Je=a(Zt,2),Ge=c(Je);w(Ge,{for:"rule-channel",children:(T,q)=>{s();var Y=l("Channel");t(T,Y)},$$slots:{default:!0}});var Xe=a(Ge,2);n(Xe,()=>yr,(T,q)=>{q(T,{type:"single",get value(){return e(ye)},set value(Y){r(ye,Y,!0)},children:(Y,dt)=>{var d=to(),i=o(d);n(i,()=>xr,(U,h)=>{h(U,{class:"w-full",children:(p,M)=>{s();var $=l();le(j=>se($,j),[()=>R.channels.find(j=>j.id.toString()===e(ye))?.name||"Select channel"]),t(p,$)},$$slots:{default:!0}})});var x=a(i,2);n(x,()=>kr,(U,h)=>{h(U,{children:(p,M)=>{var $=v(),j=o($);Yt(j,17,()=>R.channels,er,(ae,C)=>{var y=v(),D=o(y);{let ee=lr(()=>e(C).id.toString());n(D,()=>mr,(K,b)=>{b(K,{get value(){return e(ee)},children:(N,g)=>{s();var P=l();le(()=>se(P,e(C).name)),t(N,P)},$$slots:{default:!0}})})}t(ae,y)}),t(p,$)},$$slots:{default:!0}})}),t(Y,d)},$$slots:{default:!0}})}),_(Je);var Le=a(Je,2),Ke=c(Le);w(Ke,{for:"rule-type",children:(T,q)=>{s();var Y=l("Rule Type");t(T,Y)},$$slots:{default:!0}});var Ee=a(Ke,2);n(Ee,()=>yr,(T,q)=>{q(T,{type:"single",get value(){return e(L)},set value(Y){r(L,Y,!0)},children:(Y,dt)=>{var d=ro(),i=o(d);n(i,()=>xr,(U,h)=>{h(U,{class:"w-full",children:(p,M)=>{s();var $=l();le(j=>se($,j),[()=>he.find(j=>j.value===e(L))?.label||"Select type"]),t(p,$)},$$slots:{default:!0}})});var x=a(i,2);n(x,()=>kr,(U,h)=>{h(U,{children:(p,M)=>{var $=v(),j=o($);Yt(j,17,()=>e(Vt),er,(ae,C)=>{var y=v(),D=o(y);n(D,()=>mr,(ee,K)=>{K(ee,{get value(){return e(C).value},children:(b,N)=>{s();var g=l();le(()=>se(g,e(C).label)),t(b,g)},$$slots:{default:!0}})}),t(ae,y)}),t(p,$)},$$slots:{default:!0}})}),t(Y,d)},$$slots:{default:!0}})}),_(Le);var nt=a(Le,2);{var He=T=>{var q=v(),Y=o(q);n(Y,()=>ua,(dt,d)=>{d(dt,{class:"bg-amber-50 border-amber-200 text-amber-900 dark:bg-amber-950/50 dark:border-amber-800 dark:text-amber-200 ",children:(i,x)=>{var U=ao(),h=o(U);Aa(h,{class:"text-amber-600 dark:text-amber-400"});var p=a(h,2);n(p,()=>va,(M,$)=>{$(M,{class:"text-amber-800 dark:text-amber-300",children:(j,ae)=>{s();var C=l();le(()=>se(C,Lt[e(L)])),t(j,C)},$$slots:{default:!0}})}),t(i,U)},$$slots:{default:!0}})}),t(T,q)};G(nt,T=>{Lt[e(L)]&&T(He)})}var Ze=a(nt,2),at=a(c(Ze),2);{var mt=T=>{var q=oo(),Y=o(q),dt=c(Y);w(dt,{for:"cfg-threshold",children:($,j)=>{s();var ae=l("Threshold (%)");t($,ae)},$$slots:{default:!0}});var d=a(dt,2);Q(d,{id:"cfg-threshold",type:"number",step:"0.1",min:"0",get value(){return e(we)},set value($){r(we,$,!0)}}),_(Y);var i=a(Y,2),x=c(i);w(x,{for:"cfg-lookback",children:($,j)=>{s();var ae=l("Lookback (minutes)");t($,ae)},$$slots:{default:!0}});var U=a(x,2);Q(U,{id:"cfg-lookback",type:"number",min:"1",get value(){return e(B)},set value($){r(B,$,!0)}}),_(i);var h=a(i,2),p=c(h);w(p,{for:"cfg-min-req",children:($,j)=>{s();var ae=l("Min Requests");t($,ae)},$$slots:{default:!0}});var M=a(p,2);Q(M,{id:"cfg-min-req",type:"number",min:"1",get value(){return e(Te)},set value($){r(Te,$,!0)}}),_(h),t(T,q)},Dt=T=>{var q=v(),Y=o(q);{var dt=i=>{var x=lo(),U=o(x),h=c(U);w(h,{for:"cfg-endpoint",children:(D,ee)=>{s();var K=l("Endpoint (* for all)");t(D,K)},$$slots:{default:!0}});var p=a(h,2);Q(p,{id:"cfg-endpoint",placeholder:"GET /api/users",get value(){return e(ot)},set value(D){r(ot,D,!0)}}),_(U);var M=a(U,2),$=c(M);w($,{for:"cfg-threshold-ms",children:(D,ee)=>{s();var K=l("Threshold (ms)");t(D,K)},$$slots:{default:!0}});var j=a($,2);Q(j,{id:"cfg-threshold-ms",type:"number",min:"1",get value(){return e(pt)},set value(D){r(pt,D,!0)}}),_(M);var ae=a(M,2),C=c(ae);w(C,{for:"cfg-lookback-p",children:(D,ee)=>{s();var K=l("Lookback (minutes)");t(D,K)},$$slots:{default:!0}});var y=a(C,2);Q(y,{id:"cfg-lookback-p",type:"number",min:"1",get value(){return e(B)},set value(D){r(B,D,!0)}}),_(ae),t(i,x)},d=i=>{var x=v(),U=o(x);{var h=M=>{var $=so(),j=o($),ae=c(j);w(ae,{for:"cfg-apdex",children:(g,P)=>{s();var ne=l("Apdex Threshold");t(g,ne)},$$slots:{default:!0}});var C=a(ae,2);Q(C,{id:"cfg-apdex",type:"number",step:"0.01",min:"0",max:"1",get value(){return e(Nt)},set value(g){r(Nt,g,!0)}}),_(j);var y=a(j,2),D=c(y);w(D,{for:"cfg-lookback-a",children:(g,P)=>{s();var ne=l("Lookback (minutes)");t(g,ne)},$$slots:{default:!0}});var ee=a(D,2);Q(ee,{id:"cfg-lookback-a",type:"number",min:"1",get value(){return e(B)},set value(g){r(B,g,!0)}}),_(y);var K=a(y,2),b=c(K);w(b,{for:"cfg-min-req-a",children:(g,P)=>{s();var ne=l("Min Requests");t(g,ne)},$$slots:{default:!0}});var N=a(b,2);Q(N,{id:"cfg-min-req-a",type:"number",min:"1",get value(){return e(Te)},set value(g){r(Te,g,!0)}}),_(K),t(M,$)},p=M=>{var $=v(),j=o($);{var ae=y=>{var D=uo(),ee=o(D),K=c(ee);w(K,{for:"cfg-metric",children:(Z,me)=>{s();var _e=l("Metric Name");t(Z,_e)},$$slots:{default:!0}});var b=a(K,2);Q(b,{id:"cfg-metric",placeholder:"cpu.used_pcnt",get value(){return e(Mt)},set value(Z){r(Mt,Z,!0)}}),_(ee);var N=a(ee,2),g=c(N);w(g,{for:"cfg-operator",children:(Z,me)=>{s();var _e=l("Operator");t(Z,_e)},$$slots:{default:!0}});var P=a(g,2);n(P,()=>yr,(Z,me)=>{me(Z,{type:"single",get value(){return e(xe)},set value(_e){r(xe,_e,!0)},children:(_e,fe)=>{var te=no(),ke=o(te);n(ke,()=>xr,($e,z)=>{z($e,{class:"w-full",children:(S,ge)=>{s();var H=l();le(W=>se(H,W),[()=>Wt.find(W=>W.value===e(xe))?.label||e(xe)]),t(S,H)},$$slots:{default:!0}})});var Be=a(ke,2);n(Be,()=>kr,($e,z)=>{z($e,{children:(S,ge)=>{var H=v(),W=o(H);Yt(W,17,()=>Wt,er,(J,k)=>{var oe=v(),ue=o(oe);n(ue,()=>mr,(m,re)=>{re(m,{get value(){return e(k).value},children:(O,Ce)=>{s();var X=l();le(()=>se(X,e(k).label)),t(O,X)},$$slots:{default:!0}})}),t(J,oe)}),t(S,H)},$$slots:{default:!0}})}),t(_e,te)},$$slots:{default:!0}})}),_(N);var ne=a(N,2),de=c(ne);w(de,{for:"cfg-value",children:(Z,me)=>{s();var _e=l("Threshold Value");t(Z,_e)},$$slots:{default:!0}});var ie=a(de,2);Q(ie,{id:"cfg-value",type:"number",step:"0.1",get value(){return e(Ht)},set value(Z){r(Ht,Z,!0)}}),_(ne);var E=a(ne,2),Ae=c(E);w(Ae,{for:"cfg-agg",children:(Z,me)=>{s();var _e=l("Aggregation");t(Z,_e)},$$slots:{default:!0}});var F=a(Ae,2);n(F,()=>yr,(Z,me)=>{me(Z,{type:"single",get value(){return e(jt)},set value(_e){r(jt,_e,!0)},children:(_e,fe)=>{var te=io(),ke=o(te);n(ke,()=>xr,($e,z)=>{z($e,{class:"w-full",children:(S,ge)=>{s();var H=l();le(W=>se(H,W),[()=>cr.find(W=>W.value===e(jt))?.label||e(jt)]),t(S,H)},$$slots:{default:!0}})});var Be=a(ke,2);n(Be,()=>kr,($e,z)=>{z($e,{children:(S,ge)=>{var H=v(),W=o(H);Yt(W,17,()=>cr,er,(J,k)=>{var oe=v(),ue=o(oe);n(ue,()=>mr,(m,re)=>{re(m,{get value(){return e(k).value},children:(O,Ce)=>{s();var X=l();le(()=>se(X,e(k).label)),t(O,X)},$$slots:{default:!0}})}),t(J,oe)}),t(S,H)},$$slots:{default:!0}})}),t(_e,te)},$$slots:{default:!0}})}),_(E);var We=a(E,2),V=c(We);w(V,{for:"cfg-lookback-m",children:(Z,me)=>{s();var _e=l("Lookback (minutes)");t(Z,_e)},$$slots:{default:!0}});var pe=a(V,2);Q(pe,{id:"cfg-lookback-m",type:"number",min:"1",get value(){return e(B)},set value(Z){r(B,Z,!0)}}),_(We),t(y,D)},C=y=>{var D=v(),ee=o(D);{var K=N=>{var g=co(),P=o(g),ne=c(P);w(ne,{for:"cfg-data-type",children:(F,We)=>{s();var V=l("Data Type");t(F,V)},$$slots:{default:!0}});var de=a(ne,2);n(de,()=>yr,(F,We)=>{We(F,{type:"single",get value(){return e(yt)},set value(V){r(yt,V,!0)},children:(V,pe)=>{var Z=vo(),me=o(Z);n(me,()=>xr,(fe,te)=>{te(fe,{class:"w-full",children:(ke,Be)=>{s();var $e=l();le(z=>se($e,z),[()=>_r.find(z=>z.value===e(yt))?.label||e(yt)]),t(ke,$e)},$$slots:{default:!0}})});var _e=a(me,2);n(_e,()=>kr,(fe,te)=>{te(fe,{children:(ke,Be)=>{var $e=v(),z=o($e);Yt(z,17,()=>_r,er,(S,ge)=>{var H=v(),W=o(H);n(W,()=>mr,(J,k)=>{k(J,{get value(){return e(ge).value},children:(oe,ue)=>{s();var m=l();le(()=>se(m,e(ge).label)),t(oe,m)},$$slots:{default:!0}})}),t(S,H)}),t(ke,$e)},$$slots:{default:!0}})}),t(V,Z)},$$slots:{default:!0}})}),_(P);var ie=a(P,2),E=c(ie);w(E,{for:"cfg-silence",children:(F,We)=>{s();var V=l("Silence (minutes)");t(F,V)},$$slots:{default:!0}});var Ae=a(E,2);Q(Ae,{id:"cfg-silence",type:"number",min:"1",get value(){return e(ft)},set value(F){r(ft,F,!0)}}),_(ie),t(N,g)},b=N=>{var g=v(),P=o(g);{var ne=ie=>{var E=_o(),Ae=o(E),F=c(Ae);w(F,{for:"cfg-count",children:(me,_e)=>{s();var fe=l("Threshold Count");t(me,fe)},$$slots:{default:!0}});var We=a(F,2);Q(We,{id:"cfg-count",type:"number",min:"1",get value(){return e(xt)},set value(me){r(xt,me,!0)}}),_(Ae);var V=a(Ae,2),pe=c(V);w(pe,{for:"cfg-lookback-ec",children:(me,_e)=>{s();var fe=l("Lookback (minutes)");t(me,fe)},$$slots:{default:!0}});var Z=a(pe,2);Q(Z,{id:"cfg-lookback-ec",type:"number",min:"1",get value(){return e(B)},set value(me){r(B,me,!0)}}),_(V),t(ie,E)},de=ie=>{var E=v(),Ae=o(E);{var F=V=>{var pe=fo(),Z=o(pe),me=c(Z);w(me,{for:"cfg-task",children:(S,ge)=>{s();var H=l("Task Name (* for all)");t(S,H)},$$slots:{default:!0}});var _e=a(me,2);Q(_e,{id:"cfg-task",placeholder:"sync_users",get value(){return e(it)},set value(S){r(it,S,!0)}}),_(Z);var fe=a(Z,2),te=c(fe);w(te,{for:"cfg-threshold-ms-t",children:(S,ge)=>{s();var H=l("Threshold (ms)");t(S,H)},$$slots:{default:!0}});var ke=a(te,2);Q(ke,{id:"cfg-threshold-ms-t",type:"number",min:"1",get value(){return e(pt)},set value(S){r(pt,S,!0)}}),_(fe);var Be=a(fe,2),$e=c(Be);w($e,{for:"cfg-lookback-td",children:(S,ge)=>{s();var H=l("Lookback (minutes)");t(S,H)},$$slots:{default:!0}});var z=a($e,2);Q(z,{id:"cfg-lookback-td",type:"number",min:"1",get value(){return e(B)},set value(S){r(B,S,!0)}}),_(Be),t(V,pe)},We=V=>{var pe=v(),Z=o(pe);{var me=fe=>{var te=$o(),ke=o(te),Be=c(ke);w(Be,{for:"cfg-task-f",children:(m,re)=>{s();var O=l("Task Name (* for all)");t(m,O)},$$slots:{default:!0}});var $e=a(Be,2);Q($e,{id:"cfg-task-f",placeholder:"sync_users",get value(){return e(it)},set value(m){r(it,m,!0)}}),_(ke);var z=a(ke,2),S=c(z);w(S,{for:"cfg-threshold-pct",children:(m,re)=>{s();var O=l("Threshold (%)");t(m,O)},$$slots:{default:!0}});var ge=a(S,2);Q(ge,{id:"cfg-threshold-pct",type:"number",step:"0.1",min:"0",get value(){return e(we)},set value(m){r(we,m,!0)}}),_(z);var H=a(z,2),W=c(H);w(W,{for:"cfg-lookback-tf",children:(m,re)=>{s();var O=l("Lookback (minutes)");t(m,O)},$$slots:{default:!0}});var J=a(W,2);Q(J,{id:"cfg-lookback-tf",type:"number",min:"1",get value(){return e(B)},set value(m){r(B,m,!0)}}),_(H);var k=a(H,2),oe=c(k);w(oe,{for:"cfg-min-exec",children:(m,re)=>{s();var O=l("Min Executions");t(m,O)},$$slots:{default:!0}});var ue=a(oe,2);Q(ue,{id:"cfg-min-exec",type:"number",min:"1",get value(){return e(Et)},set value(m){r(Et,m,!0)}}),_(k),t(fe,te)},_e=fe=>{var te=v(),ke=o(te);{var Be=z=>{var S=ho(),ge=o(S),H=c(ge);w(H,{for:"cfg-drop",children:(O,Ce)=>{s();var X=l("Drop (%)");t(O,X)},$$slots:{default:!0}});var W=a(H,2);Q(W,{id:"cfg-drop",type:"number",step:"0.1",min:"0",get value(){return e(ut)},set value(O){r(ut,O,!0)}}),_(ge);var J=a(ge,2),k=c(J);w(k,{for:"cfg-lookback-tp",children:(O,Ce)=>{s();var X=l("Lookback (minutes)");t(O,X)},$$slots:{default:!0}});var oe=a(k,2);Q(oe,{id:"cfg-lookback-tp",type:"number",min:"1",get value(){return e(B)},set value(O){r(B,O,!0)}}),_(J);var ue=a(J,2),m=c(ue);w(m,{for:"cfg-baseline",children:(O,Ce)=>{s();var X=l("Baseline Window (minutes)");t(O,X)},$$slots:{default:!0}});var re=a(m,2);Q(re,{id:"cfg-baseline",type:"number",min:"1",get value(){return e(St)},set value(O){r(St,O,!0)}}),_(ue),t(z,S)},$e=z=>{var S=v(),ge=o(S);{var H=J=>{var k=po(),oe=o(k),ue=c(oe);w(ue,{for:"cfg-endpoint-er",children:(be,ve)=>{s();var Re=l("Endpoint");t(be,Re)},$$slots:{default:!0}});var m=a(ue,2);Q(m,{id:"cfg-endpoint-er",placeholder:"POST /api/checkout",get value(){return e(ot)},set value(be){r(ot,be,!0)}}),_(oe);var re=a(oe,2),O=c(re);w(O,{for:"cfg-threshold-er",children:(be,ve)=>{s();var Re=l("Threshold (%)");t(be,Re)},$$slots:{default:!0}});var Ce=a(O,2);Q(Ce,{id:"cfg-threshold-er",type:"number",step:"0.1",min:"0",get value(){return e(we)},set value(be){r(we,be,!0)}}),_(re);var X=a(re,2),vt=c(X);w(vt,{for:"cfg-lookback-er",children:(be,ve)=>{s();var Re=l("Lookback (minutes)");t(be,Re)},$$slots:{default:!0}});var Ye=a(vt,2);Q(Ye,{id:"cfg-lookback-er",type:"number",min:"1",get value(){return e(B)},set value(be){r(B,be,!0)}}),_(X);var Ne=a(X,2),Me=c(Ne);w(Me,{for:"cfg-min-req-er",children:(be,ve)=>{s();var Re=l("Min Requests");t(be,Re)},$$slots:{default:!0}});var Se=a(Me,2);Q(Se,{id:"cfg-min-req-er",type:"number",min:"1",get value(){return e(Te)},set value(be){r(Te,be,!0)}}),_(Ne),t(J,k)},W=J=>{var k=v(),oe=o(k);{var ue=re=>{var O=mo(),Ce=c(O);w(Ce,{for:"cfg-ignore",children:(vt,Ye)=>{s();var Ne=l("Ignore Patterns (optional, comma-separated)");t(vt,Ne)},$$slots:{default:!0}});var X=a(Ce,2);Q(X,{id:"cfg-ignore",placeholder:"*timeout*, *context canceled*",get value(){return e(kt)},set value(vt){r(kt,vt,!0)}}),_(O),t(re,O)},m=re=>{var O=v(),Ce=o(O);{var X=Ye=>{var Ne=go(),Me=c(Ne);ha(Me);var Se=a(Me,2);w(Se,{for:"cfg-include-archived",children:(be,ve)=>{s();var Re=l("Include archived exceptions");t(be,Re)},$$slots:{default:!0}}),_(Ne),Ma(Me,()=>e(tr),be=>r(tr,be)),t(Ye,Ne)},vt=Ye=>{var Ne=v(),Me=o(Ne);{var Se=ve=>{var Re=bo(),rt=c(Re);w(rt,{for:"cfg-min-req-impact",children:(Ue,ct)=>{s();var ir=l("Min Requests");t(Ue,ir)},$$slots:{default:!0}});var qt=a(rt,2);Q(qt,{id:"cfg-min-req-impact",type:"number",min:"1",get value(){return e(Te)},set value(Ue){r(Te,Ue,!0)}}),_(Re),t(ve,Re)},be=ve=>{var Re=v(),rt=o(Re);{var qt=Ue=>{var ct=Po(),ir=o(ct),Pr=c(ir);w(Pr,{for:"cfg-trace-name",children:(ur,Ut)=>{s();var vr=l("Trace Name (* for all)");t(ur,vr)},$$slots:{default:!0}});var _t=a(Pr,2);Q(_t,{id:"cfg-trace-name",placeholder:"Customer Support Agent",get value(){return e(lt)},set value(ur){r(lt,ur,!0)}}),_(ir);var gt=a(ir,2),$r=c(gt);w($r,{for:"cfg-threshold-cost",children:(ur,Ut)=>{s();var vr=l("Cost Threshold ($)");t(ur,vr)},$$slots:{default:!0}});var pr=a($r,2);Q(pr,{id:"cfg-threshold-cost",type:"number",step:"0.01",min:"0",get value(){return e(wt)},set value(ur){r(wt,ur,!0)}}),_(gt),t(Ue,ct)};G(rt,Ue=>{e(L)==="ai_trace_cost"&&Ue(qt)},!0)}t(ve,Re)};G(Me,ve=>{e(L)==="impact_score_critical"||e(L)==="impact_score_high"||e(L)==="impact_score_medium"?ve(Se):ve(be,!1)},!0)}t(Ye,Ne)};G(Ce,Ye=>{e(L)==="error_regression"?Ye(X):Ye(vt,!1)},!0)}t(re,O)};G(oe,re=>{e(L)==="new_error"?re(ue):re(m,!1)},!0)}t(J,k)};G(ge,J=>{e(L)==="endpoint_error_rate"?J(H):J(W,!1)},!0)}t(z,S)};G(ke,z=>{e(L)==="throughput_drop"?z(Be):z($e,!1)},!0)}t(fe,te)};G(Z,fe=>{e(L)==="task_failure_rate"?fe(me):fe(_e,!1)},!0)}t(V,pe)};G(Ae,V=>{e(L)==="task_duration_threshold"?V(F):V(We,!1)},!0)}t(ie,E)};G(P,ie=>{e(L)==="error_count_threshold"?ie(ne):ie(de,!1)},!0)}t(N,g)};G(ee,N=>{e(L)==="no_data"?N(K):N(b,!1)},!0)}t(y,D)};G(j,y=>{e(L)==="metric_threshold"?y(ae):y(C,!1)},!0)}t(M,$)};G(U,M=>{e(L)==="apdex_drop"?M(h):M(p,!1)},!0)}t(i,x)};G(Y,i=>{e(L)==="endpoint_p95_threshold"||e(L)==="endpoint_p99_threshold"?i(dt):i(d,!1)},!0)}t(T,q)};G(at,T=>{e(L)==="error_rate_threshold"?T(mt):T(Dt,!1)})}_(Ze);var Tt=a(Ze,2),qe=c(Tt);w(qe,{for:"rule-cooldown",children:(T,q)=>{s();var Y=l("Cooldown (minutes)");t(T,Y)},$$slots:{default:!0}});var Pe=a(qe,2);Q(Pe,{id:"rule-cooldown",type:"number",min:"1",get value(){return e(je)},set value(T){r(je,T,!0)}}),_(Tt);var ze=a(Tt,2),Ie=c(ze);w(Ie,{for:"rule-severity",children:(T,q)=>{s();var Y=l("Severity");t(T,Y)},$$slots:{default:!0}});var Ct=a(Ie,2);n(Ct,()=>yr,(T,q)=>{q(T,{type:"single",get value(){return e(ce)},set value(Y){r(ce,Y,!0)},children:(Y,dt)=>{var d=yo(),i=o(d);n(i,()=>xr,(U,h)=>{h(U,{class:"w-full",children:(p,M)=>{s();var $=l();le(j=>se($,j),[()=>Pt.find(j=>j.value===e(ce))?.label||"Auto (default)"]),t(p,$)},$$slots:{default:!0}})});var x=a(i,2);n(x,()=>kr,(U,h)=>{h(U,{children:(p,M)=>{var $=v(),j=o($);Yt(j,17,()=>Pt,er,(ae,C)=>{var y=v(),D=o(y);n(D,()=>mr,(ee,K)=>{K(ee,{get value(){return e(C).value},children:(b,N)=>{s();var g=l();le(()=>se(g,e(C).label)),t(b,g)},$$slots:{default:!0}})}),t(ae,y)}),t(p,$)},$$slots:{default:!0}})}),t(Y,d)},$$slots:{default:!0}})}),_(ze);var or=a(ze,2);{var Qt=T=>{var q=xo(),Y=c(q,!0);_(q),le(()=>se(Y,e(ht))),t(T,q)};G(or,T=>{e(ht)&&T(Qt)})}_(tt);var dr=a(tt,2);n(dr,()=>Ar,(T,q)=>{q(T,{children:(Y,dt)=>{var d=To(),i=o(d);n(i,()=>aa,(U,h)=>{h(U,{get disabled(){return e(bt)},children:(p,M)=>{s();var $=l("Cancel");t(p,$)},$$slots:{default:!0}})});var x=a(i,2);Qe(x,{onclick:rr,get disabled(){return e(bt)},children:(U,h)=>{var p=v(),M=o(p);{var $=ae=>{var C=ko(),y=o(C);_a(y,{class:"mr-2 h-4 w-4"});var D=a(y,2);{var ee=b=>{var N=l("Updating...");t(b,N)},K=b=>{var N=l("Update Rule");t(b,N)};G(D,b=>{e(bt)?b(ee):b(K,!1)})}t(ae,C)},j=ae=>{var C=wo(),y=o(C);wr(y,{class:"mr-2 h-4 w-4"});var D=a(y,2);{var ee=b=>{var N=l("Creating...");t(b,N)},K=b=>{var N=l("New Rule");t(b,N)};G(D,b=>{e(bt)?b(ee):b(K,!1)})}t(ae,C)};G(M,ae=>{e(A)?ae($):ae(j,!1)})}t(U,p)},$$slots:{default:!0}}),t(Y,d)},$$slots:{default:!0}})}),ia("submit",tt,T=>{T.preventDefault(),rr()}),t(qr,Oe)},$$slots:{default:!0}})}),t(ar,Tr)},$$slots:{default:!0}})}),t(It,Bt),br()}var Ro=u("<!> <!>",1),Io=u("<!> ",1),Mo=u('<!> <div class="grid gap-2"><!> <!></div> <!>',1);function Do(It,R){gr(R,!0);let et=ra(R,"open",15),De=f(!1);const ye=[{label:"30 minutes",minutes:30},{label:"1 hour",minutes:60},{label:"4 hours",minutes:240},{label:"8 hours",minutes:480},{label:"24 hours",minutes:1440}];async function L(Pt){if(R.ruleId){r(De,!0);try{await Xt.post(`/notification-rules/${R.ruleId}/snooze`,{durationMinutes:Pt},{projectId:Ft.currentProjectId??void 0}),Ot.success("Rule snoozed",{position:"top-center"}),R.onSaved()}catch{Ot.error("Failed to snooze rule",{position:"top-center"})}finally{r(De,!1)}}}async function je(){if(R.ruleId){r(De,!0);try{await Xt.post(`/notification-rules/${R.ruleId}/snooze`,{durationMinutes:0},{projectId:Ft.currentProjectId??void 0}),Ot.success("Snooze cleared",{position:"top-center"}),R.onSaved()}catch{Ot.error("Failed to clear snooze",{position:"top-center"})}finally{r(De,!1)}}}function ce(Pt){et(Pt)}var bt=v(),ht=o(bt);n(ht,()=>Nr,(Pt,we)=>{we(Pt,{get open(){return et()},onOpenChange:ce,children:(B,Te)=>{var ot=v(),pt=o(ot);n(pt,()=>Rr,(Nt,Mt)=>{Mt(Nt,{class:"max-w-sm",children:(xe,Ht)=>{var jt=Mo(),yt=o(jt);n(yt,()=>Ir,(ut,St)=>{St(ut,{children:(kt,tr)=>{var lt=Ro(),wt=o(lt);n(wt,()=>Mr,(he,Fe)=>{Fe(he,{children:(Vt,Lt)=>{s();var Wt=l("Snooze Rule");t(Vt,Wt)},$$slots:{default:!0}})});var A=a(wt,2);n(A,()=>Dr,(he,Fe)=>{Fe(he,{children:(Vt,Lt)=>{s();var Wt=l("Temporarily silence this rule for a set duration");t(Vt,Wt)},$$slots:{default:!0}})}),t(kt,lt)},$$slots:{default:!0}})});var ft=a(yt,2),xt=c(ft);Yt(xt,17,()=>ye,er,(ut,St)=>{Qe(ut,{variant:"outline",class:"w-full justify-start",get disabled(){return e(De)},onclick:()=>L(e(St).minutes),children:(kt,tr)=>{var lt=Io(),wt=o(lt);ca(wt,{class:"mr-2 h-4 w-4"});var A=a(wt);le(()=>se(A,` ${e(St).label??""}`)),t(kt,lt)},$$slots:{default:!0}})});var it=a(xt,2);Qe(it,{variant:"ghost",class:"w-full justify-start text-muted-foreground",get disabled(){return e(De)},onclick:je,children:(ut,St)=>{s();var kt=l("Clear snooze");t(ut,kt)},$$slots:{default:!0}}),_(ft);var Et=a(ft,2);n(Et,()=>Ar,(ut,St)=>{St(ut,{children:(kt,tr)=>{var lt=v(),wt=o(lt);n(wt,()=>aa,(A,he)=>{he(A,{get disabled(){return e(De)},children:(Fe,Vt)=>{s();var Lt=l("Cancel");t(Fe,Lt)},$$slots:{default:!0}})}),t(kt,lt)},$$slots:{default:!0}})}),t(xe,jt)},$$slots:{default:!0}})}),t(B,ot)},$$slots:{default:!0}})}),t(It,bt),br()}var Ao=u("<!> <!> <!>",1),No=u("<!> New Channel",1),jo=u("<!> New Rule",1),Eo=u("<!> <!>",1),zo=u('<div class="flex justify-center py-12"><!></div>'),Oo=u("<!> Create your first Channel",1),Lo=u('<div class="flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground"><p class="mb-4">No channels yet. Create one to get started.</p> <!></div>'),qo=u("<!> <!> <!> <!> <!>",1),Uo=u('<div class="flex justify-end gap-1"><!> <!> <!></div>'),Fo=u("<!> <!> <!> <!> <!>",1),Ho=u("<!> <!>",1),Wo=u('<div class="overflow-hidden rounded-md border"><!></div>'),Bo=u('<div class="flex justify-center py-12"><!></div>'),Vo=u("<!> Create your first Rule",1),Go=u('<div class="flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground"><p class="mb-4">No rules yet. Create one to get started.</p> <!></div>'),Ko=u("<!> <!> <!> <!> <!>",1),Zo=u('<div class="flex justify-end gap-1"><!> <!> <!> <!></div>'),Qo=u("<!> <!> <!> <!> <!>",1),Jo=u("<!> <!>",1),Xo=u('<div class="overflow-hidden rounded-md border"><!></div>'),Yo=u('<div class="flex h-full items-center justify-center"><!></div>'),el=u("<!> <!> <!> <!> <!> <!>",1),tl=u('<a class="text-blue-600 hover:underline dark:text-blue-400"> </a>'),rl=u("<!> <!> <!> <!> <!> <!>",1),al=u("<!> <!>",1),ol=u('<div class="flex flex-col gap-2 pt-2 sm:flex-row sm:items-center sm:justify-between"><!> <div class="w-full sm:w-auto"><!></div></div> <div class="overflow-hidden rounded-md border"><!></div> <!>',1),ll=u("<!> <!>",1),sl=u("<!> <!>",1),nl=u("<!> <!>",1),dl=u("<!> <!>",1),il=u("<!> <!>",1),ul=u("<!> <!>",1),vl=u("<!> <!>",1),cl=u("<!> <!>",1),_l=u("<!> <!>",1),fl=u("<!> <!>",1),$l=u('<p class="text-sm text-destructive"> </p>'),hl=u("<!> ",1),pl=u("<!> <!>",1),ml=u("<!> <!> <!>",1),gl=u('<div class="space-y-2"><div><h1 class="text-2xl font-semibold tracking-tight">Alerts</h1></div> <div class="flex items-center justify-between"><!> <!></div> <!> <!></div> <!> <!> <!> <!> <!> <!> <!>',1);function Jl(It,R){gr(R,!0);const et={error_rate_threshold:"Error Rate",endpoint_p95_threshold:"Endpoint P95",endpoint_p99_threshold:"Endpoint P99",apdex_drop:"Apdex Drop",metric_threshold:"Metric Threshold",no_data:"No Data",error_count_threshold:"Error Count",task_duration_threshold:"Task Duration",task_failure_rate:"Task Failure Rate",throughput_drop:"Throughput Drop",endpoint_error_rate:"Endpoint Error Rate",new_error:"New Issue",error_regression:"Error Regression",impact_score_critical:"Impact Score Critical",impact_score_high:"Impact Score High",impact_score_medium:"Impact Score Medium"},De={email:"Email",webhook:"Webhook",slack:"Slack",github:"GitHub"},ye={channels:"Channels define where your notifications are delivered — such as Email, Slack, Webhooks, or GitHub Issues. Create a channel first, then attach it to a rule.",rules:"Rules define when notifications are triggered. Each rule monitors a specific condition and sends an alert through the attached channel when that condition is met.",history:"A log of all notifications that have been sent, including their status and the rule that triggered them."},L=lr(()=>ma.url.searchParams.get("tab")||"channels");function je(d){const i=new URL(window.location.href);i.searchParams.set("tab",d),d!=="history"&&(i.searchParams.delete("preset"),i.searchParams.delete("from"),i.searchParams.delete("to")),ga(i.toString(),{replaceState:!0,noScroll:!0}),d==="history"&&ar(!1)}let ce=f(hr([])),bt=f(!0),ht=f(hr([])),Pt=f(!0),we=f(hr([])),B=f(!0),Te=f(1),ot=f(25),pt=f(0),Nt=f(0),Mt=f("");const xe=lr(Pa);function Ht(){return Ca(e(xe),"7d")}const jt=Ht(),yt=sa(jt,e(xe));let ft=f(hr(jt.preset)),xt=f(hr(jr(yt.from,e(xe)))),it=f(hr(jr(yt.to,e(xe)))),Et=f(hr(Er(yt.from,e(xe)))),ut=f(hr(Er(yt.to,e(xe))));function St(){const[d,i]=e(Et).split(":").map(Number),x=oa({year:e(xt).year,month:e(xt).month,day:e(xt).day,hour:d,minute:i},e(xe));return la(x)}function kt(){const[d,i]=e(ut).split(":").map(Number),x=oa({year:e(it).year,month:e(it).month,day:e(it).day,hour:d,minute:i},e(xe)).endOf("minute");return la(x)}function tr(d=!0){const i={};i.tab="history",e(ft)?i.preset=e(ft):(i.from=St(),i.to=kt()),Ra(i,{pushToHistory:d})}let lt=f(!1),wt=f(null),A=f(!1),he=f(null),Fe=f(!1),Vt=f(null),Lt=f(!1),Wt=f(null),cr=f(!1),_r=f(null),sr=f(!1),Gt=f(null),nr=f(!1),rr=f(!1),Kt=f(null),Bt=f(!1),fr=f("");async function Ve(){r(bt,!0);try{const d=await Xt.get("/notification-channels",{projectId:Ft.currentProjectId??void 0});r(ce,d.channels||[],!0)}catch{r(ce,[],!0)}finally{r(bt,!1)}}async function I(){r(Pt,!0);try{const d=await Xt.get("/notification-rules",{projectId:Ft.currentProjectId??void 0});r(ht,d.rules||[],!0)}catch{r(ht,[],!0)}finally{r(Pt,!1)}}async function ar(d=!0){if(r(B,!0),e(ft)){const i=Sa(e(ft),e(xe));r(xt,jr(i.from,e(xe)),!0),r(it,jr(i.to,e(xe)),!0),r(Et,Er(i.from,e(xe)),!0),r(ut,Er(i.to,e(xe)),!0)}tr(d);try{const i=await Xt.post("/notification-history",{pagination:{page:e(Te),pageSize:e(ot)},search:e(Mt).trim(),fromDate:St(),toDate:kt()},{projectId:Ft.currentProjectId??void 0});r(we,i.data||[],!0),r(pt,i.pagination?.total||0,!0),r(Nt,i.pagination?.totalPages||0,!0)}catch{r(we,[],!0)}finally{r(B,!1)}}function Gr(){r(Te,1),ar(!0)}function Tr(d){r(Wt,d,!0),r(Lt,!0)}async function zr(){if(e(Wt))try{await Xt.delete(`/notification-channels/${e(Wt).id}`,{projectId:Ft.currentProjectId??void 0}),Ot.success("Successfully deleted the Channel",{position:"top-center"}),r(Lt,!1),r(Wt,null),Ve(),I()}catch{Ot.error("Failed to delete channel",{position:"top-center"})}}function Or(d){r(Kt,d,!0),r(fr,""),r(rr,!0)}async function Lr(){if(e(Kt)){r(Bt,!0),r(fr,"");try{await Xt.post(`/notification-channels/${e(Kt).id}/test`,{},{projectId:Ft.currentProjectId??void 0}),Ot.success("Test notification sent",{position:"top-center"}),r(rr,!1),r(Kt,null)}catch(d){d.status===422?r(fr,d.message||"Validation failed",!0):(Ot.error("An unexpected error has occurred",{position:"top-center"}),r(rr,!1),r(Kt,null))}finally{r(Bt,!1)}}}function qr(d){r(_r,d,!0),r(cr,!0)}async function Kr(){if(e(_r))try{await Xt.delete(`/notification-rules/${e(_r).id}`,{projectId:Ft.currentProjectId??void 0}),Ot.success("Successfully deleted the Rule",{position:"top-center"}),r(cr,!1),r(_r,null),I()}catch{Ot.error("Failed to delete rule",{position:"top-center"})}}function Oe(d){r(Gt,d,!0),r(sr,!0)}async function st(){if(e(Gt)){r(nr,!0);try{const d=e(Gt).enabled?"disabled":"enabled";await Xt.post(`/notification-rules/${e(Gt).id}/toggle`,{},{projectId:Ft.currentProjectId??void 0}),Ot.success(`Successfully ${d} the Rule`,{position:"top-center"}),r(sr,!1),r(Gt,null),I()}catch{Ot.error("Failed to toggle rule",{position:"top-center"})}finally{r(nr,!1)}}}function tt(d){r(Vt,d,!0),r(Fe,!0)}function Zt(d){r(wt,d,!0),r(lt,!0)}function Rt(){r(wt,null),r(lt,!0)}function $t(d){r(he,d,!0),r(A,!0)}function Je(){r(he,null),r(A,!0)}function Ge(d){const i=new Date(d),U=new Date().getTime()-i.getTime(),h=Math.floor(U/6e4);if(h<1)return"just now";if(h<60)return`${h}m ago`;const p=Math.floor(h/60);return p<24?`${p}h ago`:`${Math.floor(p/24)}d ago`}function Xe(d){return d.snoozedUntil&&new Date(d.snoozedUntil)>new Date}function Le(d){r(Te,d,!0),ar(!0)}function Ke(d){r(ot,d,!0),r(Te,1),ar(!0)}function Ee(d,i,x){r(xt,d.date,!0),r(it,i.date,!0),r(Et,d.time,!0),r(ut,i.time,!0),r(ft,x,!0),r(Te,1),ar(!0)}function nt(){const d=Ht(),i=sa(d,e(xe));r(ft,d.preset,!0),r(xt,jr(i.from,e(xe)),!0),r(it,jr(i.to,e(xe)),!0),r(Et,Er(i.from,e(xe)),!0),r(ut,Er(i.to,e(xe)),!0),r(Te,1),ar(!1)}fa(()=>{window.addEventListener("popstate",nt),Ve(),I(),e(L)==="history"&&ar(!1)}),$a(()=>{typeof window<"u"&&window.removeEventListener("popstate",nt)});var He=gl(),Ze=o(He),at=a(c(Ze),2),mt=c(at);n(mt,()=>ka,(d,i)=>{i(d,{get value(){return e(L)},onValueChange:x=>{x&&je(x)},children:(x,U)=>{var h=v(),p=o(h);n(p,()=>xa,(M,$)=>{$(M,{children:(j,ae)=>{var C=Ao(),y=o(C);n(y,()=>ea,(K,b)=>{b(K,{value:"channels",children:(N,g)=>{s();var P=l("Channels");t(N,P)},$$slots:{default:!0}})});var D=a(y,2);n(D,()=>ea,(K,b)=>{b(K,{value:"rules",children:(N,g)=>{s();var P=l("Rules");t(N,P)},$$slots:{default:!0}})});var ee=a(D,2);n(ee,()=>ea,(K,b)=>{b(K,{value:"history",children:(N,g)=>{s();var P=l("History");t(N,P)},$$slots:{default:!0}})}),t(j,C)},$$slots:{default:!0}})}),t(x,h)},$$slots:{default:!0}})});var Dt=a(mt,2);{var Tt=d=>{Qe(d,{size:"sm",onclick:Rt,children:(i,x)=>{var U=No(),h=o(U);wr(h,{class:"mr-1 h-4 w-4"}),s(),t(i,U)},$$slots:{default:!0}})},qe=d=>{var i=v(),x=o(i);{var U=h=>{Qe(h,{size:"sm",onclick:Je,children:(p,M)=>{var $=jo(),j=o($);wr(j,{class:"mr-1 h-4 w-4"}),s(),t(p,$)},$$slots:{default:!0}})};G(x,h=>{e(L)==="rules"&&h(U)},!0)}t(d,i)};G(Dt,d=>{e(L)==="channels"?d(Tt):d(qe,!1)})}_(at);var Pe=a(at,2);n(Pe,()=>ua,(d,i)=>{i(d,{class:"bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-950/50 dark:border-blue-800 dark:text-blue-200",children:(x,U)=>{var h=Eo(),p=o(h);Da(p,{class:"text-blue-600 dark:text-blue-400"});var M=a(p,2);n(M,()=>va,($,j)=>{j($,{class:"text-blue-800 dark:text-blue-300",children:(ae,C)=>{s();var y=l();le(()=>se(y,ye[e(L)])),t(ae,y)},$$slots:{default:!0}})}),t(x,h)},$$slots:{default:!0}})});var ze=a(Pe,2);{var Ie=d=>{var i=v(),x=o(i);{var U=p=>{var M=zo(),$=c(M);Jr($,{size:"xlg"}),_(M),t(p,M)},h=p=>{var M=v(),$=o(M);{var j=C=>{var y=Lo(),D=a(c(y),2);Qe(D,{onclick:Rt,children:(ee,K)=>{var b=Oo(),N=o(b);wr(N,{class:"mr-1 h-4 w-4"}),s(),t(ee,b)},$$slots:{default:!0}}),_(y),t(C,y)},ae=C=>{var y=Wo(),D=c(y);n(D,()=>Xr,(ee,K)=>{K(ee,{children:(b,N)=>{var g=Ho(),P=o(g);n(P,()=>Yr,(de,ie)=>{ie(de,{children:(E,Ae)=>{var F=v(),We=o(F);n(We,()=>Sr,(V,pe)=>{pe(V,{children:(Z,me)=>{var _e=qo(),fe=o(_e);n(fe,()=>zt,(z,S)=>{S(z,{children:(ge,H)=>{s();var W=l("Name");t(ge,W)},$$slots:{default:!0}})});var te=a(fe,2);n(te,()=>zt,(z,S)=>{S(z,{children:(ge,H)=>{s();var W=l("Type");t(ge,W)},$$slots:{default:!0}})});var ke=a(te,2);n(ke,()=>zt,(z,S)=>{S(z,{children:(ge,H)=>{s();var W=l("Enabled");t(ge,W)},$$slots:{default:!0}})});var Be=a(ke,2);n(Be,()=>zt,(z,S)=>{S(z,{children:(ge,H)=>{s();var W=l("Created");t(ge,W)},$$slots:{default:!0}})});var $e=a(Be,2);n($e,()=>zt,(z,S)=>{S(z,{class:"text-right",children:(ge,H)=>{s();var W=l("Actions");t(ge,W)},$$slots:{default:!0}})}),t(Z,_e)},$$slots:{default:!0}})}),t(E,F)},$$slots:{default:!0}})});var ne=a(P,2);n(ne,()=>Ur,(de,ie)=>{ie(de,{children:(E,Ae)=>{var F=v(),We=o(F);Yt(We,17,()=>e(ce),er,(V,pe)=>{var Z=v(),me=o(Z);n(me,()=>Sr,(_e,fe)=>{fe(_e,{children:(te,ke)=>{var Be=Fo(),$e=o(Be);n($e,()=>At,(W,J)=>{J(W,{class:"font-medium",children:(k,oe)=>{s();var ue=l();le(()=>se(ue,e(pe).name)),t(k,ue)},$$slots:{default:!0}})});var z=a($e,2);n(z,()=>At,(W,J)=>{J(W,{children:(k,oe)=>{Jt(k,{variant:"outline",children:(ue,m)=>{s();var re=l();le(()=>se(re,De[e(pe).channelType]||e(pe).channelType)),t(ue,re)},$$slots:{default:!0}})},$$slots:{default:!0}})});var S=a(z,2);n(S,()=>At,(W,J)=>{J(W,{children:(k,oe)=>{var ue=v(),m=o(ue);{var re=Ce=>{Jt(Ce,{variant:"default",class:"bg-green-600",children:(X,vt)=>{s();var Ye=l("On");t(X,Ye)},$$slots:{default:!0}})},O=Ce=>{Jt(Ce,{variant:"secondary",children:(X,vt)=>{s();var Ye=l("Off");t(X,Ye)},$$slots:{default:!0}})};G(m,Ce=>{e(pe).enabled?Ce(re):Ce(O,!1)})}t(k,ue)},$$slots:{default:!0}})});var ge=a(S,2);n(ge,()=>At,(W,J)=>{J(W,{class:"text-muted-foreground",children:(k,oe)=>{s();var ue=l();le(m=>se(ue,m),[()=>Ge(e(pe).createdAt)]),t(k,ue)},$$slots:{default:!0}})});var H=a(ge,2);n(H,()=>At,(W,J)=>{J(W,{class:"text-right",children:(k,oe)=>{var ue=Uo(),m=c(ue);Qe(m,{variant:"ghost",size:"icon",onclick:()=>Or(e(pe)),title:"Test",children:(Ce,X)=>{da(Ce,{class:"h-4 w-4"})},$$slots:{default:!0}});var re=a(m,2);Qe(re,{variant:"ghost",size:"icon",onclick:()=>Zt(e(pe)),title:"Edit",children:(Ce,X)=>{na(Ce,{class:"h-4 w-4"})},$$slots:{default:!0}});var O=a(re,2);Qe(O,{variant:"ghost",size:"icon",onclick:()=>Tr(e(pe)),title:"Delete",children:(Ce,X)=>{Zr(Ce,{class:"h-4 w-4"})},$$slots:{default:!0}}),_(ue),t(k,ue)},$$slots:{default:!0}})}),t(te,Be)},$$slots:{default:!0}})}),t(V,Z)}),t(E,F)},$$slots:{default:!0}})}),t(b,g)},$$slots:{default:!0}})}),_(y),t(C,y)};G($,C=>{e(ce).length===0?C(j):C(ae,!1)},!0)}t(p,M)};G(x,p=>{e(bt)?p(U):p(h,!1)})}t(d,i)},Ct=d=>{var i=v(),x=o(i);{var U=p=>{var M=v(),$=o(M);{var j=C=>{var y=Bo(),D=c(y);Jr(D,{size:"xlg"}),_(y),t(C,y)},ae=C=>{var y=v(),D=o(y);{var ee=b=>{var N=Go(),g=a(c(N),2);Qe(g,{onclick:Je,children:(P,ne)=>{var de=Vo(),ie=o(de);wr(ie,{class:"mr-1 h-4 w-4"}),s(),t(P,de)},$$slots:{default:!0}}),_(N),t(b,N)},K=b=>{var N=Xo(),g=c(N);n(g,()=>Xr,(P,ne)=>{ne(P,{children:(de,ie)=>{var E=Jo(),Ae=o(E);n(Ae,()=>Yr,(We,V)=>{V(We,{children:(pe,Z)=>{var me=v(),_e=o(me);n(_e,()=>Sr,(fe,te)=>{te(fe,{children:(ke,Be)=>{var $e=Ko(),z=o($e);n(z,()=>zt,(J,k)=>{k(J,{children:(oe,ue)=>{s();var m=l("Name");t(oe,m)},$$slots:{default:!0}})});var S=a(z,2);n(S,()=>zt,(J,k)=>{k(J,{children:(oe,ue)=>{s();var m=l("Type");t(oe,m)},$$slots:{default:!0}})});var ge=a(S,2);n(ge,()=>zt,(J,k)=>{k(J,{children:(oe,ue)=>{s();var m=l("Channel");t(oe,m)},$$slots:{default:!0}})});var H=a(ge,2);n(H,()=>zt,(J,k)=>{k(J,{children:(oe,ue)=>{s();var m=l("Status");t(oe,m)},$$slots:{default:!0}})});var W=a(H,2);n(W,()=>zt,(J,k)=>{k(J,{class:"text-right",children:(oe,ue)=>{s();var m=l("Actions");t(oe,m)},$$slots:{default:!0}})}),t(ke,$e)},$$slots:{default:!0}})}),t(pe,me)},$$slots:{default:!0}})});var F=a(Ae,2);n(F,()=>Ur,(We,V)=>{V(We,{children:(pe,Z)=>{var me=v(),_e=o(me);Yt(_e,17,()=>e(ht),er,(fe,te)=>{var ke=v(),Be=o(ke);n(Be,()=>Sr,($e,z)=>{z($e,{children:(S,ge)=>{var H=Qo(),W=o(H);n(W,()=>At,(m,re)=>{re(m,{class:"font-medium",children:(O,Ce)=>{s();var X=l();le(()=>se(X,e(te).name)),t(O,X)},$$slots:{default:!0}})});var J=a(W,2);n(J,()=>At,(m,re)=>{re(m,{children:(O,Ce)=>{s();var X=l();le(()=>se(X,et[e(te).ruleType]||e(te).ruleType)),t(O,X)},$$slots:{default:!0}})});var k=a(J,2);n(k,()=>At,(m,re)=>{re(m,{children:(O,Ce)=>{Jt(O,{variant:"outline",children:(X,vt)=>{s();var Ye=l();le(()=>se(Ye,e(te).channelName)),t(X,Ye)},$$slots:{default:!0}})},$$slots:{default:!0}})});var oe=a(k,2);n(oe,()=>At,(m,re)=>{re(m,{children:(O,Ce)=>{var X=v(),vt=o(X);{var Ye=Me=>{Jt(Me,{variant:"secondary",children:(Se,be)=>{s();var ve=l("Snoozed");t(Se,ve)},$$slots:{default:!0}})},Ne=Me=>{var Se=v(),be=o(Se);{var ve=rt=>{Jt(rt,{variant:"default",class:"bg-green-600",children:(qt,Ue)=>{s();var ct=l("On");t(qt,ct)},$$slots:{default:!0}})},Re=rt=>{Jt(rt,{variant:"secondary",children:(qt,Ue)=>{s();var ct=l("Off");t(qt,ct)},$$slots:{default:!0}})};G(be,rt=>{e(te).enabled?rt(ve):rt(Re,!1)},!0)}t(Me,Se)};G(vt,Me=>{Xe(e(te))?Me(Ye):Me(Ne,!1)})}t(O,X)},$$slots:{default:!0}})});var ue=a(oe,2);n(ue,()=>At,(m,re)=>{re(m,{class:"text-right",children:(O,Ce)=>{var X=Zo(),vt=c(X);Qe(vt,{variant:"ghost",size:"icon",onclick:()=>tt(e(te).id),title:"Snooze",children:(Se,be)=>{ca(Se,{class:"h-4 w-4"})},$$slots:{default:!0}});var Ye=a(vt,2);{let Se=lr(()=>e(te).enabled?"Disable":"Enable");Qe(Ye,{variant:"ghost",size:"icon",onclick:()=>Oe(e(te)),get title(){return e(Se)},children:(be,ve)=>{var Re=v(),rt=o(Re);{var qt=ct=>{Na(ct,{class:"h-4 w-4"})},Ue=ct=>{ja(ct,{class:"h-4 w-4"})};G(rt,ct=>{e(te).enabled?ct(qt):ct(Ue,!1)})}t(be,Re)},$$slots:{default:!0}})}var Ne=a(Ye,2);Qe(Ne,{variant:"ghost",size:"icon",onclick:()=>$t(e(te)),title:"Edit",children:(Se,be)=>{na(Se,{class:"h-4 w-4"})},$$slots:{default:!0}});var Me=a(Ne,2);Qe(Me,{variant:"ghost",size:"icon",onclick:()=>qr(e(te)),title:"Delete",children:(Se,be)=>{Zr(Se,{class:"h-4 w-4"})},$$slots:{default:!0}}),_(X),t(O,X)},$$slots:{default:!0}})}),t(S,H)},$$slots:{default:!0}})}),t(fe,ke)}),t(pe,me)},$$slots:{default:!0}})}),t(de,E)},$$slots:{default:!0}})}),_(N),t(b,N)};G(D,b=>{e(ht).length===0?b(ee):b(K,!1)},!0)}t(C,y)};G($,C=>{e(Pt)?C(j):C(ae,!1)})}t(p,M)},h=p=>{var M=v(),$=o(M);{var j=ae=>{var C=ol(),y=o(C),D=c(y);wa(D,{placeholder:"Search Historic Alerts...",onSearch:Gr,get disabled(){return e(B)},get value(){return e(Mt)},set value(P){r(Mt,P,!0)}});var ee=a(D,2),K=c(ee);Ia(K,{onApply:Ee,get fromDate(){return e(xt)},set fromDate(P){r(xt,P,!0)},get toDate(){return e(it)},set toDate(P){r(it,P,!0)},get fromTime(){return e(Et)},set fromTime(P){r(Et,P,!0)},get toTime(){return e(ut)},set toTime(P){r(ut,P,!0)},get preset(){return e(ft)},set preset(P){r(ft,P,!0)}}),_(ee),_(y);var b=a(y,2),N=c(b);n(N,()=>Xr,(P,ne)=>{ne(P,{children:(de,ie)=>{var E=v(),Ae=o(E);{var F=V=>{var pe=v(),Z=o(pe);n(Z,()=>Ur,(me,_e)=>{_e(me,{children:(fe,te)=>{var ke=v(),Be=o(ke);n(Be,()=>Sr,($e,z)=>{z($e,{children:(S,ge)=>{var H=v(),W=o(H);n(W,()=>At,(J,k)=>{k(J,{colspan:6,class:"h-48",children:(oe,ue)=>{var m=Yo(),re=c(m);Jr(re,{size:"xlg"}),_(m),t(oe,m)},$$slots:{default:!0}})}),t(S,H)},$$slots:{default:!0}})}),t(fe,ke)},$$slots:{default:!0}})}),t(V,pe)},We=V=>{var pe=v(),Z=o(pe);{var me=fe=>{var te=v(),ke=o(te);n(ke,()=>Ur,(Be,$e)=>{$e(Be,{children:(z,S)=>{Ta(z,{colspan:6,message:"No Historic Alerts found."})},$$slots:{default:!0}})}),t(fe,te)},_e=fe=>{var te=al(),ke=o(te);n(ke,()=>Yr,($e,z)=>{z($e,{children:(S,ge)=>{var H=v(),W=o(H);n(W,()=>Sr,(J,k)=>{k(J,{children:(oe,ue)=>{var m=el(),re=o(m);n(re,()=>zt,(Ne,Me)=>{Me(Ne,{children:(Se,be)=>{s();var ve=l("Severity");t(Se,ve)},$$slots:{default:!0}})});var O=a(re,2);n(O,()=>zt,(Ne,Me)=>{Me(Ne,{children:(Se,be)=>{s();var ve=l("Rule");t(Se,ve)},$$slots:{default:!0}})});var Ce=a(O,2);n(Ce,()=>zt,(Ne,Me)=>{Me(Ne,{children:(Se,be)=>{s();var ve=l("Subject");t(Se,ve)},$$slots:{default:!0}})});var X=a(Ce,2);n(X,()=>zt,(Ne,Me)=>{Me(Ne,{children:(Se,be)=>{s();var ve=l("Channel");t(Se,ve)},$$slots:{default:!0}})});var vt=a(X,2);n(vt,()=>zt,(Ne,Me)=>{Me(Ne,{children:(Se,be)=>{s();var ve=l("Status");t(Se,ve)},$$slots:{default:!0}})});var Ye=a(vt,2);n(Ye,()=>zt,(Ne,Me)=>{Me(Ne,{children:(Se,be)=>{s();var ve=l("Sent At");t(Se,ve)},$$slots:{default:!0}})}),t(oe,m)},$$slots:{default:!0}})}),t(S,H)},$$slots:{default:!0}})});var Be=a(ke,2);n(Be,()=>Ur,($e,z)=>{z($e,{children:(S,ge)=>{var H=v(),W=o(H);Yt(W,17,()=>e(we),er,(J,k)=>{var oe=v(),ue=o(oe);n(ue,()=>Sr,(m,re)=>{re(m,{children:(O,Ce)=>{var X=rl(),vt=o(X);n(vt,()=>At,(ve,Re)=>{Re(ve,{children:(rt,qt)=>{var Ue=v(),ct=o(Ue);{var ir=_t=>{Jt(_t,{variant:"destructive",children:(gt,$r)=>{s();var pr=l("Critical");t(gt,pr)},$$slots:{default:!0}})},Pr=_t=>{var gt=v(),$r=o(gt);{var pr=Ut=>{Jt(Ut,{class:"bg-amber-500 text-white",children:(vr,Qr)=>{s();var Cr=l("Warning");t(vr,Cr)},$$slots:{default:!0}})},ur=Ut=>{Jt(Ut,{variant:"secondary",children:(vr,Qr)=>{s();var Cr=l("Info");t(vr,Cr)},$$slots:{default:!0}})};G($r,Ut=>{e(k).severity==="warning"?Ut(pr):Ut(ur,!1)},!0)}t(_t,gt)};G(ct,_t=>{e(k).severity==="critical"?_t(ir):_t(Pr,!1)})}t(rt,Ue)},$$slots:{default:!0}})});var Ye=a(vt,2);n(Ye,()=>At,(ve,Re)=>{Re(ve,{class:"font-medium",children:(rt,qt)=>{s();var Ue=l();le(()=>se(Ue,e(k).ruleName)),t(rt,Ue)},$$slots:{default:!0}})});var Ne=a(Ye,2);n(Ne,()=>At,(ve,Re)=>{Re(ve,{class:"max-w-xs truncate",children:(rt,qt)=>{var Ue=v(),ct=o(Ue);{var ir=_t=>{var gt=tl(),$r=c(gt,!0);_(gt),le(()=>{pa(gt,"href",e(k).url),se($r,e(k).subject)}),t(_t,gt)},Pr=_t=>{var gt=l();le(()=>se(gt,e(k).subject)),t(_t,gt)};G(ct,_t=>{e(k).url?_t(ir):_t(Pr,!1)})}t(rt,Ue)},$$slots:{default:!0}})});var Me=a(Ne,2);n(Me,()=>At,(ve,Re)=>{Re(ve,{children:(rt,qt)=>{s();var Ue=l();le(()=>se(Ue,e(k).channelName)),t(rt,Ue)},$$slots:{default:!0}})});var Se=a(Me,2);n(Se,()=>At,(ve,Re)=>{Re(ve,{children:(rt,qt)=>{var Ue=v(),ct=o(Ue);{var ir=_t=>{Jt(_t,{class:"bg-green-600 text-white",children:(gt,$r)=>{s();var pr=l("Sent");t(gt,pr)},$$slots:{default:!0}})},Pr=_t=>{var gt=v(),$r=o(gt);{var pr=Ut=>{Jt(Ut,{variant:"destructive",children:(vr,Qr)=>{s();var Cr=l("Failed");t(vr,Cr)},$$slots:{default:!0}})},ur=Ut=>{Jt(Ut,{variant:"secondary",children:(vr,Qr)=>{s();var Cr=l("Skipped");t(vr,Cr)},$$slots:{default:!0}})};G($r,Ut=>{e(k).status==="failed"?Ut(pr):Ut(ur,!1)},!0)}t(_t,gt)};G(ct,_t=>{e(k).status==="sent"?_t(ir):_t(Pr,!1)})}t(rt,Ue)},$$slots:{default:!0}})});var be=a(Se,2);n(be,()=>At,(ve,Re)=>{Re(ve,{class:"text-muted-foreground",children:(rt,qt)=>{s();var Ue=l();le(ct=>se(Ue,ct),[()=>Ge(e(k).createdAt)]),t(rt,Ue)},$$slots:{default:!0}})}),t(O,X)},$$slots:{default:!0}})}),t(J,oe)}),t(S,H)},$$slots:{default:!0}})}),t(fe,te)};G(Z,fe=>{e(we).length===0?fe(me):fe(_e,!1)},!0)}t(V,pe)};G(Ae,V=>{e(B)?V(F):V(We,!1)})}t(de,E)},$$slots:{default:!0}})}),_(b);var g=a(b,2);ya(g,{get currentPage(){return e(Te)},get totalPages(){return e(Nt)},get pageSize(){return e(ot)},get totalItems(){return e(pt)},onPageChange:Le,onPageSizeChange:Ke,itemLabel:"notification"}),t(ae,C)};G($,ae=>{e(L)==="history"&&ae(j)},!0)}t(p,M)};G(x,p=>{e(L)==="rules"?p(U):p(h,!1)},!0)}t(d,i)};G(ze,d=>{e(L)==="channels"?d(Ie):d(Ct,!1)})}_(Ze);var or=a(Ze,2);Ya(or,{get channel(){return e(wt)},onSaved:()=>{Ve(),r(lt,!1)},get open(){return e(lt)},set open(d){r(lt,d,!0)}});var Qt=a(or,2);So(Qt,{get rule(){return e(he)},get channels(){return e(ce)},onSaved:()=>{I(),r(A,!1)},get open(){return e(A)},set open(d){r(A,d,!0)}});var dr=a(Qt,2);Do(dr,{get ruleId(){return e(Vt)},onSaved:()=>{I(),r(Fe,!1)},get open(){return e(Fe)},set open(d){r(Fe,d,!0)}});var T=a(dr,2);n(T,()=>Nr,(d,i)=>{i(d,{get open(){return e(Lt)},set open(x){r(Lt,x,!0)},children:(x,U)=>{var h=v(),p=o(h);n(p,()=>Rr,(M,$)=>{$(M,{interactOutsideBehavior:"close",children:(j,ae)=>{var C=nl(),y=o(C);n(y,()=>Ir,(ee,K)=>{K(ee,{children:(b,N)=>{var g=ll(),P=o(g);n(P,()=>Mr,(de,ie)=>{ie(de,{children:(E,Ae)=>{s();var F=l("Delete Channel");t(E,F)},$$slots:{default:!0}})});var ne=a(P,2);n(ne,()=>Dr,(de,ie)=>{ie(de,{children:(E,Ae)=>{s();var F=l();le(()=>se(F,`Are you sure you want to delete "${e(Wt)?.name??""}"? This action cannot be undone.`)),t(E,F)},$$slots:{default:!0}})}),t(b,g)},$$slots:{default:!0}})});var D=a(y,2);n(D,()=>Ar,(ee,K)=>{K(ee,{children:(b,N)=>{var g=sl(),P=o(g);Qe(P,{variant:"outline",onclick:()=>r(Lt,!1),children:(de,ie)=>{s();var E=l("Cancel");t(de,E)},$$slots:{default:!0}});var ne=a(P,2);Qe(ne,{variant:"destructive",onclick:zr,children:(de,ie)=>{s();var E=l("Delete");t(de,E)},$$slots:{default:!0}}),t(b,g)},$$slots:{default:!0}})}),t(j,C)},$$slots:{default:!0}})}),t(x,h)},$$slots:{default:!0}})});var q=a(T,2);n(q,()=>Nr,(d,i)=>{i(d,{get open(){return e(cr)},set open(x){r(cr,x,!0)},children:(x,U)=>{var h=v(),p=o(h);n(p,()=>Rr,(M,$)=>{$(M,{interactOutsideBehavior:"close",children:(j,ae)=>{var C=ul(),y=o(C);n(y,()=>Ir,(ee,K)=>{K(ee,{children:(b,N)=>{var g=dl(),P=o(g);n(P,()=>Mr,(de,ie)=>{ie(de,{children:(E,Ae)=>{s();var F=l("Delete Rule");t(E,F)},$$slots:{default:!0}})});var ne=a(P,2);n(ne,()=>Dr,(de,ie)=>{ie(de,{children:(E,Ae)=>{s();var F=l();le(()=>se(F,`Are you sure you want to delete "${e(_r)?.name??""}"? This action cannot be undone.`)),t(E,F)},$$slots:{default:!0}})}),t(b,g)},$$slots:{default:!0}})});var D=a(y,2);n(D,()=>Ar,(ee,K)=>{K(ee,{children:(b,N)=>{var g=il(),P=o(g);Qe(P,{variant:"outline",onclick:()=>r(cr,!1),children:(de,ie)=>{s();var E=l("Cancel");t(de,E)},$$slots:{default:!0}});var ne=a(P,2);Qe(ne,{variant:"destructive",onclick:Kr,children:(de,ie)=>{s();var E=l("Delete");t(de,E)},$$slots:{default:!0}}),t(b,g)},$$slots:{default:!0}})}),t(j,C)},$$slots:{default:!0}})}),t(x,h)},$$slots:{default:!0}})});var Y=a(q,2);n(Y,()=>Nr,(d,i)=>{i(d,{get open(){return e(sr)},set open(x){r(sr,x,!0)},children:(x,U)=>{var h=v(),p=o(h);{let M=lr(()=>e(nr)?"ignore":"close"),$=lr(()=>e(nr)?"ignore":"close");n(p,()=>Rr,(j,ae)=>{ae(j,{get interactOutsideBehavior(){return e(M)},get escapeKeydownBehavior(){return e($)},children:(C,y)=>{var D=_l(),ee=o(D);n(ee,()=>Ir,(b,N)=>{N(b,{children:(g,P)=>{var ne=vl(),de=o(ne);n(de,()=>Mr,(E,Ae)=>{Ae(E,{children:(F,We)=>{s();var V=l();le(()=>se(V,`${e(Gt)?.enabled?"Disable":"Enable"} Rule`)),t(F,V)},$$slots:{default:!0}})});var ie=a(de,2);n(ie,()=>Dr,(E,Ae)=>{Ae(E,{children:(F,We)=>{s();var V=l();le(()=>se(V,`Are you sure you want to ${e(Gt)?.enabled?"disable":"enable"} "${e(Gt)?.name??""}"?`)),t(F,V)},$$slots:{default:!0}})}),t(g,ne)},$$slots:{default:!0}})});var K=a(ee,2);n(K,()=>Ar,(b,N)=>{N(b,{children:(g,P)=>{var ne=cl(),de=o(ne);Qe(de,{variant:"outline",onclick:()=>r(sr,!1),get disabled(){return e(nr)},children:(E,Ae)=>{s();var F=l("Cancel");t(E,F)},$$slots:{default:!0}});var ie=a(de,2);Qe(ie,{onclick:st,get disabled(){return e(nr)},children:(E,Ae)=>{s();var F=l();le(()=>se(F,e(Gt)?.enabled?"Disable":"Enable")),t(E,F)},$$slots:{default:!0}}),t(g,ne)},$$slots:{default:!0}})}),t(C,D)},$$slots:{default:!0}})})}t(x,h)},$$slots:{default:!0}})});var dt=a(Y,2);n(dt,()=>Nr,(d,i)=>{i(d,{get open(){return e(rr)},set open(x){r(rr,x,!0)},children:(x,U)=>{var h=v(),p=o(h);{let M=lr(()=>e(Bt)?"ignore":"close"),$=lr(()=>e(Bt)?"ignore":"close");n(p,()=>Rr,(j,ae)=>{ae(j,{get interactOutsideBehavior(){return e(M)},get escapeKeydownBehavior(){return e($)},children:(C,y)=>{var D=ml(),ee=o(D);n(ee,()=>Ir,(g,P)=>{P(g,{children:(ne,de)=>{var ie=fl(),E=o(ie);n(E,()=>Mr,(F,We)=>{We(F,{children:(V,pe)=>{s();var Z=l("Test Channel");t(V,Z)},$$slots:{default:!0}})});var Ae=a(E,2);n(Ae,()=>Dr,(F,We)=>{We(F,{children:(V,pe)=>{s();var Z=l();le(()=>se(Z,`Send a test notification to "${e(Kt)?.name??""}"? This will deliver a test message through the configured channel.`)),t(V,Z)},$$slots:{default:!0}})}),t(ne,ie)},$$slots:{default:!0}})});var K=a(ee,2);{var b=g=>{var P=$l(),ne=c(P,!0);_(P),le(()=>se(ne,e(fr))),t(g,P)};G(K,g=>{e(fr)&&g(b)})}var N=a(K,2);n(N,()=>Ar,(g,P)=>{P(g,{children:(ne,de)=>{var ie=pl(),E=o(ie);Qe(E,{variant:"outline",onclick:()=>r(rr,!1),get disabled(){return e(Bt)},children:(F,We)=>{s();var V=l("Cancel");t(F,V)},$$slots:{default:!0}});var Ae=a(E,2);Qe(Ae,{onclick:Lr,get disabled(){return e(Bt)},children:(F,We)=>{var V=hl(),pe=o(V);da(pe,{class:"h-4 w-4"});var Z=a(pe);le(()=>se(Z,` ${e(Bt)?"Sending...":"Send Test"}`)),t(F,V)},$$slots:{default:!0}}),t(ne,ie)},$$slots:{default:!0}})}),t(C,D)},$$slots:{default:!0}})})}t(x,h)},$$slots:{default:!0}})}),t(It,He),br()}export{Jl as component};
diff --git a/backend/static/frontend/_app/immutable/nodes/21.BrF4_UGb.js.map b/backend/static/frontend/_app/immutable/nodes/21.BrF4_UGb.js.map
deleted file mode 100644
index b1787464..00000000
--- a/backend/static/frontend/_app/immutable/nodes/21.BrF4_UGb.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"21.BrF4_UGb.js","sources":["../../../../../../node_modules/@lucide/svelte/dist/icons/pencil.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/send.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/triangle-alert.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/zap-off.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/zap.svelte","../../../../../../src/routes/notifications/channel-dialog.svelte","../../../../../../src/routes/notifications/rule-dialog.svelte","../../../../../../src/routes/notifications/snooze-dialog.svelte","../../../../../../src/routes/notifications/+page.svelte"],"sourcesContent":["<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"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\" }], [\"path\", { \"d\": \"m15 5 4 4\" }]];\n/**\n * @component @name Pencil\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEuMTc0IDYuODEyYTEgMSAwIDAgMC0zLjk4Ni0zLjk4N0wzLjg0MiAxNi4xNzRhMiAyIDAgMCAwLS41LjgzbC0xLjMyMSA0LjM1MmEuNS41IDAgMCAwIC42MjMuNjIybDQuMzUzLTEuMzJhMiAyIDAgMCAwIC44My0uNDk3eiIgLz4KICA8cGF0aCBkPSJtMTUgNSA0IDQiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/pencil\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"pencil\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\" }], [\"path\", { \"d\": \"m21.854 2.147-10.94 10.939\" }]];\n/**\n * @component @name Send\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTQuNTM2IDIxLjY4NmEuNS41IDAgMCAwIC45MzctLjAyNGw2LjUtMTlhLjQ5Ni40OTYgMCAwIDAtLjYzNS0uNjM1bC0xOSA2LjVhLjUuNSAwIDAgMC0uMDI0LjkzN2w3LjkzIDMuMThhMiAyIDAgMCAxIDEuMTEyIDEuMTF6IiAvPgogIDxwYXRoIGQ9Im0yMS44NTQgMi4xNDctMTAuOTQgMTAuOTM5IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/send\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"send\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"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\" }], [\"path\", { \"d\": \"M12 9v4\" }], [\"path\", { \"d\": \"M12 17h.01\" }]];\n/**\n * @component @name TriangleAlert\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMjEuNzMgMTgtOC0xNGEyIDIgMCAwIDAtMy40OCAwbC04IDE0QTIgMiAwIDAgMCA0IDIxaDE2YTIgMiAwIDAgMCAxLjczLTMiIC8+CiAgPHBhdGggZD0iTTEyIDl2NCIgLz4KICA8cGF0aCBkPSJNMTIgMTdoLjAxIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/triangle-alert\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"triangle-alert\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317\" }], [\"path\", { \"d\": \"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773\" }], [\"path\", { \"d\": \"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643\" }], [\"path\", { \"d\": \"m2 2 20 20\" }]];\n/**\n * @component @name ZapOff\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTAuNTEzIDQuODU2IDEzLjEyIDIuMTdhLjUuNSAwIDAgMSAuODYuNDZsLTEuMzc3IDQuMzE3IiAvPgogIDxwYXRoIGQ9Ik0xNS42NTYgMTBIMjBhMSAxIDAgMCAxIC43OCAxLjYzbC0xLjcyIDEuNzczIiAvPgogIDxwYXRoIGQ9Ik0xNi4yNzMgMTYuMjczIDEwLjg4IDIxLjgzYS41LjUgMCAwIDEtLjg2LS40NmwxLjkyLTYuMDJBMSAxIDAgMCAwIDExIDE0SDRhMSAxIDAgMCAxLS43OC0xLjYzbDQuNTA3LTQuNjQzIiAvPgogIDxwYXRoIGQ9Im0yIDIgMjAgMjAiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/zap-off\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"zap-off\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z\" }]];\n/**\n * @component @name Zap\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNCAxNGExIDEgMCAwIDEtLjc4LTEuNjNsOS45LTEwLjJhLjUuNSAwIDAgMSAuODYuNDZsLTEuOTIgNi4wMkExIDEgMCAwIDAgMTMgMTBoN2ExIDEgMCAwIDEgLjc4IDEuNjNsLTkuOSAxMC4yYS41LjUgMCAwIDEtLjg2LS40NmwxLjkyLTYuMDJBMSAxIDAgMCAwIDExIDE0eiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/zap\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"zap\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Input } from '$lib/components/ui/input';\n\timport { Label } from '$lib/components/ui/label';\n\timport * as Select from '$lib/components/ui/select';\n\timport { Plus, Check, Trash2 } from '@lucide/svelte';\n\timport { toast } from 'svelte-sonner';\n\timport { api } from '$lib/api';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\n\tinterface NotificationChannel {\n\t\tid: number;\n\t\tprojectId: string;\n\t\tname: string;\n\t\tchannelType: string;\n\t\tconfig: any;\n\t\tenabled: boolean;\n\t\tcreatedAt: string;\n\t}\n\n\tinterface Props {\n\t\topen: boolean;\n\t\tchannel: NotificationChannel | null;\n\t\tonSaved: () => void;\n\t}\n\n\tlet { open = $bindable(), channel, onSaved }: Props = $props();\n\n\tlet name = $state('');\n\tlet channelType = $state('email');\n\tlet loading = $state(false);\n\tlet error = $state('');\n\n\tlet emailRecipients = $state<string[]>(['']);\n\tlet webhookUrl = $state('');\n\tlet webhookMethod = $state('POST');\n\tlet webhookSecret = $state('');\n\tlet webhookHeaders = $state<{ key: string; value: string }[]>([]);\n\tlet slackWebhookUrl = $state('');\n\tlet slackChannel = $state('');\n\tlet slackUsername = $state('');\n\tlet githubToken = $state('');\n\tlet githubOwner = $state('');\n\tlet githubRepo = $state('');\n\tlet githubLabels = $state('');\n\n\tconst isEditing = $derived(channel !== null);\n\n\tconst channelTypeOptions = [\n\t\t{ value: 'email', label: 'Email' },\n\t\t{ value: 'webhook', label: 'Webhook' },\n\t\t{ value: 'slack', label: 'Slack' },\n\t\t{ value: 'github', label: 'GitHub' }\n\t];\n\n\tfunction resetForm() {\n\t\tname = '';\n\t\tchannelType = 'email';\n\t\terror = '';\n\t\temailRecipients = [''];\n\t\twebhookUrl = '';\n\t\twebhookMethod = 'POST';\n\t\twebhookSecret = '';\n\t\twebhookHeaders = [];\n\t\tslackWebhookUrl = '';\n\t\tslackChannel = '';\n\t\tslackUsername = '';\n\t\tgithubToken = '';\n\t\tgithubOwner = '';\n\t\tgithubRepo = '';\n\t\tgithubLabels = '';\n\t}\n\n\tfunction populateFromChannel(ch: NotificationChannel) {\n\t\tname = ch.name;\n\t\tchannelType = ch.channelType;\n\t\tconst config = ch.config || {};\n\n\t\tif (ch.channelType === 'email') {\n\t\t\temailRecipients = config.recipients?.length ? [...config.recipients] : [''];\n\t\t} else if (ch.channelType === 'webhook') {\n\t\t\twebhookUrl = config.url || '';\n\t\t\twebhookMethod = config.method || 'POST';\n\t\t\twebhookSecret = config.secret || '';\n\t\t\twebhookHeaders = config.headers\n\t\t\t\t? Object.entries(config.headers).map(([key, value]) => ({\n\t\t\t\t\t\tkey,\n\t\t\t\t\t\tvalue: value as string\n\t\t\t\t\t}))\n\t\t\t\t: [];\n\t\t} else if (ch.channelType === 'slack') {\n\t\t\tslackWebhookUrl = config.webhookUrl || '';\n\t\t\tslackChannel = config.channel || '';\n\t\t\tslackUsername = config.username || '';\n\t\t} else if (ch.channelType === 'github') {\n\t\t\tgithubToken = config.token || '';\n\t\t\tgithubOwner = config.owner || '';\n\t\t\tgithubRepo = config.repo || '';\n\t\t\tgithubLabels = (config.labels || []).join(', ');\n\t\t}\n\t}\n\n\tfunction buildConfig(): any {\n\t\tif (channelType === 'email') {\n\t\t\treturn { recipients: emailRecipients.filter((e) => e.trim() !== '') };\n\t\t} else if (channelType === 'webhook') {\n\t\t\tconst config: any = { url: webhookUrl };\n\t\t\tif (webhookMethod !== 'POST') config.method = webhookMethod;\n\t\t\tif (webhookSecret) config.secret = webhookSecret;\n\t\t\tconst headers: Record<string, string> = {};\n\t\t\tfor (const h of webhookHeaders) {\n\t\t\t\tif (h.key.trim()) headers[h.key.trim()] = h.value;\n\t\t\t}\n\t\t\tif (Object.keys(headers).length > 0) config.headers = headers;\n\t\t\treturn config;\n\t\t} else if (channelType === 'slack') {\n\t\t\tconst config: any = { webhookUrl: slackWebhookUrl };\n\t\t\tif (slackChannel) config.channel = slackChannel;\n\t\t\tif (slackUsername) config.username = slackUsername;\n\t\t\treturn config;\n\t\t} else if (channelType === 'github') {\n\t\t\tconst config: any = {\n\t\t\t\ttoken: githubToken,\n\t\t\t\towner: githubOwner,\n\t\t\t\trepo: githubRepo\n\t\t\t};\n\t\t\tconst labels = githubLabels\n\t\t\t\t.split(',')\n\t\t\t\t.map((l) => l.trim())\n\t\t\t\t.filter((l) => l);\n\t\t\tif (labels.length > 0) config.labels = labels;\n\t\t\treturn config;\n\t\t}\n\t\treturn {};\n\t}\n\n\tfunction addEmailRecipient() {\n\t\temailRecipients = [...emailRecipients, ''];\n\t}\n\n\tfunction removeEmailRecipient(index: number) {\n\t\temailRecipients = emailRecipients.filter((_, i) => i !== index);\n\t\tif (emailRecipients.length === 0) emailRecipients = [''];\n\t}\n\n\tfunction addWebhookHeader() {\n\t\twebhookHeaders = [...webhookHeaders, { key: '', value: '' }];\n\t}\n\n\tfunction removeWebhookHeader(index: number) {\n\t\twebhookHeaders = webhookHeaders.filter((_, i) => i !== index);\n\t}\n\n\tasync function handleSubmit() {\n\t\tloading = true;\n\t\terror = '';\n\n\t\ttry {\n\t\t\tconst body = {\n\t\t\t\tname,\n\t\t\t\tchannelType,\n\t\t\t\tconfig: buildConfig()\n\t\t\t};\n\n\t\t\tif (isEditing) {\n\t\t\t\tawait api.put(`/notification-channels/${channel!.id}`, body, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully updated the Channel', { position: 'top-center' });\n\t\t\t} else {\n\t\t\t\tawait api.post('/notification-channels', body, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully created the Channel', { position: 'top-center' });\n\t\t\t}\n\t\t\tonSaved();\n\t\t} catch (e: unknown) {\n\t\t\terror = e instanceof Error ? e.message : 'Failed to save channel';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handleOpenChange(isOpen: boolean) {\n\t\tif (!isOpen) {\n\t\t\tresetForm();\n\t\t} else if (channel) {\n\t\t\tpopulateFromChannel(channel);\n\t\t} else {\n\t\t\tresetForm();\n\t\t}\n\t\topen = isOpen;\n\t}\n\n\t$effect(() => {\n\t\tif (open && channel) {\n\t\t\tpopulateFromChannel(channel);\n\t\t} else if (open && !channel) {\n\t\t\tresetForm();\n\t\t}\n\t});\n</script>\n\n<AlertDialog.Root {open} onOpenChange={handleOpenChange}>\n\t<AlertDialog.Content class=\"max-w-md\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>{isEditing ? 'Edit Channel' : 'New Channel'}</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\t{isEditing\n\t\t\t\t\t? 'Update the notification channel configuration'\n\t\t\t\t\t: 'Configure a new notification channel'}\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\n\t\t<form\n\t\t\tonsubmit={(e) => {\n\t\t\t\te.preventDefault();\n\t\t\t\thandleSubmit();\n\t\t\t}}\n\t\t\tclass=\"space-y-4\"\n\t\t>\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"channel-name\">Name</Label>\n\t\t\t\t<Input id=\"channel-name\" bind:value={name} placeholder=\"e.g. Team Slack\" required />\n\t\t\t</div>\n\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"channel-type\">Type</Label>\n\t\t\t\t<Select.Root type=\"single\" bind:value={channelType}>\n\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t{channelTypeOptions.find((o) => o.value === channelType)?.label ||\n\t\t\t\t\t\t\t'Select type'}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t{#each channelTypeOptions as option}\n\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</div>\n\n\t\t\t{#if channelType === 'email'}\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label>Recipients</Label>\n\t\t\t\t\t{#each emailRecipients as _, index}\n\t\t\t\t\t\t<div class=\"flex gap-2\">\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\ttype=\"email\"\n\t\t\t\t\t\t\t\tbind:value={emailRecipients[index]}\n\t\t\t\t\t\t\t\tplaceholder=\"[email protected]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{#if emailRecipients.length > 1}\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\tonclick={() => removeEmailRecipient(index)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Trash2 class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/each}\n\t\t\t\t\t{#if emailRecipients.length < 10}\n\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" type=\"button\" onclick={addEmailRecipient}>\n\t\t\t\t\t\t\t<Plus class=\"mr-1 h-3 w-3\" /> Add Recipient\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t{/if}\n\t\t\t\t</div>\n\t\t\t{:else if channelType === 'webhook'}\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"webhook-url\">URL</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"webhook-url\"\n\t\t\t\t\t\tbind:value={webhookUrl}\n\t\t\t\t\t\tplaceholder=\"https://example.com/webhook\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"webhook-method\">Method</Label>\n\t\t\t\t\t<Select.Root type=\"single\" bind:value={webhookMethod}>\n\t\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t\t{webhookMethod}\n\t\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t<Select.Item value=\"POST\">POST</Select.Item>\n\t\t\t\t\t\t\t<Select.Item value=\"PUT\">PUT</Select.Item>\n\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t</Select.Root>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"webhook-secret\">Secret (optional)</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"webhook-secret\"\n\t\t\t\t\t\tbind:value={webhookSecret}\n\t\t\t\t\t\tplaceholder=\"HMAC signing secret\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label>Headers (optional)</Label>\n\t\t\t\t\t{#each webhookHeaders as _, index}\n\t\t\t\t\t\t<div class=\"flex gap-2\">\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\tbind:value={webhookHeaders[index].key}\n\t\t\t\t\t\t\t\tplaceholder=\"Header name\"\n\t\t\t\t\t\t\t\tclass=\"flex-1\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\tbind:value={webhookHeaders[index].value}\n\t\t\t\t\t\t\t\tplaceholder=\"Value\"\n\t\t\t\t\t\t\t\tclass=\"flex-1\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\tonclick={() => removeWebhookHeader(index)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Trash2 class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/each}\n\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" type=\"button\" onclick={addWebhookHeader}>\n\t\t\t\t\t\t<Plus class=\"mr-1 h-3 w-3\" /> Add Header\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t{:else if channelType === 'slack'}\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"slack-url\">Webhook URL</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"slack-url\"\n\t\t\t\t\t\tbind:value={slackWebhookUrl}\n\t\t\t\t\t\tplaceholder=\"https://hooks.slack.com/services/...\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"slack-channel\">Channel Override (optional)</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"slack-channel\"\n\t\t\t\t\t\tbind:value={slackChannel}\n\t\t\t\t\t\tplaceholder=\"#alerts\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"slack-username\">Username (optional)</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"slack-username\"\n\t\t\t\t\t\tbind:value={slackUsername}\n\t\t\t\t\t\tplaceholder=\"Traceway\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t{:else if channelType === 'github'}\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"gh-token\">Personal Access Token</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"gh-token\"\n\t\t\t\t\t\ttype=\"password\"\n\t\t\t\t\t\tbind:value={githubToken}\n\t\t\t\t\t\tplaceholder=\"ghp_...\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"gh-owner\">Repository Owner</Label>\n\t\t\t\t\t<Input id=\"gh-owner\" bind:value={githubOwner} placeholder=\"owner\" required />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"gh-repo\">Repository Name</Label>\n\t\t\t\t\t<Input id=\"gh-repo\" bind:value={githubRepo} placeholder=\"repo\" required />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"gh-labels\">Labels (optional, comma-separated)</Label>\n\t\t\t\t\t<Input id=\"gh-labels\" bind:value={githubLabels} placeholder=\"bug, traceway\" />\n\t\t\t\t</div>\n\t\t\t{/if}\n\n\t\t\t{#if error}\n\t\t\t\t<p class=\"text-sm text-destructive\">{error}</p>\n\t\t\t{/if}\n\t\t</form>\n\n\t\t<AlertDialog.Footer>\n\t\t\t<AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>\n\t\t\t<Button onclick={handleSubmit} disabled={loading}>\n\t\t\t\t{#if isEditing}\n\t\t\t\t\t<Check class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\tUpdating...\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tUpdate Channel\n\t\t\t\t\t{/if}\n\t\t\t\t{:else}\n\t\t\t\t\t<Plus class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\tCreating...\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tNew Channel\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Input } from '$lib/components/ui/input';\n\timport { Label } from '$lib/components/ui/label';\n\timport * as Select from '$lib/components/ui/select';\n\timport { Plus, Check, TriangleAlert } from '@lucide/svelte';\n\timport * as Alert from '$lib/components/ui/alert';\n\timport { toast } from 'svelte-sonner';\n\timport { api } from '$lib/api';\n\timport { projectsState, isFrontendFramework } from '$lib/state/projects.svelte';\n\n\tinterface NotificationChannel {\n\t\tid: number;\n\t\tprojectId: string;\n\t\tname: string;\n\t\tchannelType: string;\n\t\tconfig: any;\n\t\tenabled: boolean;\n\t\tcreatedAt: string;\n\t}\n\n\tinterface NotificationRule {\n\t\tid: number;\n\t\tprojectId: string;\n\t\tchannelId: number;\n\t\tname: string;\n\t\truleType: string;\n\t\tconfig: any;\n\t\tenabled: boolean;\n\t\tcooldownMinutes: number;\n\t\tseverity: string;\n\t\tsnoozedUntil: string | null;\n\t\tchannelName: string;\n\t\tchannelType: string;\n\t\tcreatedAt: string;\n\t}\n\n\tinterface Props {\n\t\topen: boolean;\n\t\trule: NotificationRule | null;\n\t\tchannels: NotificationChannel[];\n\t\tonSaved: () => void;\n\t}\n\n\tlet { open = $bindable(), rule, channels, onSaved }: Props = $props();\n\n\tlet name = $state('');\n\tlet channelId = $state('');\n\tlet ruleType = $state('new_error');\n\tlet cooldownMinutes = $state(15);\n\tlet severity = $state('');\n\tlet loading = $state(false);\n\tlet error = $state('');\n\n\tconst severityOptions = [\n\t\t{ value: '', label: 'Auto (default)' },\n\t\t{ value: 'critical', label: 'Critical' },\n\t\t{ value: 'warning', label: 'Warning' },\n\t\t{ value: 'info', label: 'Info' }\n\t];\n\n\tlet thresholdPercent = $state(5);\n\tlet lookbackMinutes = $state(5);\n\tlet minRequests = $state(10);\n\tlet endpoint = $state('*');\n\tlet thresholdMs = $state(500);\n\tlet thresholdApdex = $state(0.85);\n\tlet metricName = $state('');\n\tlet operator = $state('gt');\n\tlet thresholdValue = $state(90);\n\tlet aggregation = $state('avg');\n\tlet dataType = $state('any');\n\tlet silenceMinutes = $state(10);\n\tlet thresholdCount = $state(100);\n\tlet taskName = $state('*');\n\tlet minExecutions = $state(5);\n\tlet dropPercent = $state(50);\n\tlet baselineWindowMinutes = $state(60);\n\tlet ignorePatterns = $state('');\n\tlet includeArchived = $state(true);\n\tlet traceName = $state('*');\n\tlet thresholdCost = $state(0.5);\n\n\tconst isEditing = $derived(rule !== null);\n\n\tconst ruleTypeOptions = [\n\t\t{ value: 'new_error', label: 'New Issue' },\n\t\t{ value: 'impact_score_critical', label: 'Impact Score Critical' },\n\t\t{ value: 'impact_score_high', label: 'Impact Score High' },\n\t\t{ value: 'impact_score_medium', label: 'Impact Score Medium' },\n\t\t{ value: 'error_regression', label: 'Error Regression' },\n\t\t{ value: 'error_rate_threshold', label: 'Error Rate' },\n\t\t{ value: 'error_count_threshold', label: 'Error Count' },\n\t\t{ value: 'endpoint_p95_threshold', label: 'Endpoint P95' },\n\t\t{ value: 'endpoint_p99_threshold', label: 'Endpoint P99' },\n\t\t{ value: 'endpoint_error_rate', label: 'Endpoint Error Rate' },\n\t\t{ value: 'apdex_drop', label: 'Apdex Drop' },\n\t\t{ value: 'metric_threshold', label: 'Metric Threshold' },\n\t\t{ value: 'no_data', label: 'No Data' },\n\t\t{ value: 'task_duration_threshold', label: 'Task Duration' },\n\t\t{ value: 'task_failure_rate', label: 'Task Failure Rate' },\n\t\t{ value: 'throughput_drop', label: 'Throughput Drop' },\n\t\t{ value: 'ai_trace_cost', label: 'AI Trace Cost' }\n\t];\n\n\tconst isFrontendProject = $derived(\n\t\t!!projectsState.currentProject &&\n\t\t\tisFrontendFramework(projectsState.currentProject.framework)\n\t);\n\n\tconst visibleRuleTypes = $derived(\n\t\tisFrontendProject\n\t\t\t? [{ value: 'new_error', label: 'New Issue' }]\n\t\t\t: [\n\t\t\t\t\t{ value: 'new_error', label: 'New Issue' },\n\t\t\t\t\t{ value: 'impact_score_critical', label: 'Impact Score Critical' },\n\t\t\t\t\t{ value: 'impact_score_high', label: 'Impact Score High' },\n\t\t\t\t\t{ value: 'impact_score_medium', label: 'Impact Score Medium' },\n\t\t\t\t\t{ value: 'ai_trace_cost', label: 'AI Trace Cost' }\n\t\t\t\t]\n\t);\n\n\t$effect(() => {\n\t\tif (open && !visibleRuleTypes.some((o) => o.value === ruleType)) {\n\t\t\truleType = 'new_error';\n\t\t}\n\t});\n\n\tconst ruleTypeDescriptions: Record<string, string> = {\n\t\tnew_error:\n\t\t\t'Fires when a completely new error type is detected for the first time in your project.',\n\t\timpact_score_critical:\n\t\t\t'Fires when an endpoint\\u2019s impact score reaches critical level (\\u2265 0.75), indicating severe performance or reliability degradation.',\n\t\timpact_score_high:\n\t\t\t'Fires when an endpoint\\u2019s impact score reaches high level (\\u2265 0.50), indicating significant performance or reliability issues.',\n\t\timpact_score_medium:\n\t\t\t'Fires when an endpoint\\u2019s impact score reaches medium level (\\u2265 0.25), an early warning of emerging performance or reliability issues.',\n\t\tai_trace_cost:\n\t\t\t'Fires when an individual AI trace exceeds a cost threshold. Monitors per-call spending across AI providers.'\n\t};\n\n\tconst operatorOptions = [\n\t\t{ value: 'gt', label: '> Greater than' },\n\t\t{ value: 'gte', label: '>= Greater or equal' },\n\t\t{ value: 'lt', label: '< Less than' },\n\t\t{ value: 'lte', label: '<= Less or equal' },\n\t\t{ value: 'eq', label: '= Equal' }\n\t];\n\n\tconst aggregationOptions = [\n\t\t{ value: 'avg', label: 'Average' },\n\t\t{ value: 'max', label: 'Maximum' },\n\t\t{ value: 'min', label: 'Minimum' },\n\t\t{ value: 'sum', label: 'Sum' },\n\t\t{ value: 'p95', label: 'P95' },\n\t\t{ value: 'p99', label: 'P99' },\n\t\t{ value: 'last', label: 'Last' }\n\t];\n\n\tconst dataTypeOptions = [\n\t\t{ value: 'any', label: 'Any' },\n\t\t{ value: 'endpoints', label: 'Endpoints' },\n\t\t{ value: 'exceptions', label: 'Exceptions' },\n\t\t{ value: 'metrics', label: 'Metrics' },\n\t\t{ value: 'tasks', label: 'Tasks' }\n\t];\n\n\tfunction resetForm() {\n\t\tname = '';\n\t\tchannelId = '';\n\t\truleType = 'new_error';\n\t\tcooldownMinutes = 15;\n\t\tseverity = '';\n\t\terror = '';\n\t\tthresholdPercent = 5;\n\t\tlookbackMinutes = 5;\n\t\tminRequests = 10;\n\t\tendpoint = '*';\n\t\tthresholdMs = 500;\n\t\tthresholdApdex = 0.85;\n\t\tmetricName = '';\n\t\toperator = 'gt';\n\t\tthresholdValue = 90;\n\t\taggregation = 'avg';\n\t\tdataType = 'any';\n\t\tsilenceMinutes = 10;\n\t\tthresholdCount = 100;\n\t\ttaskName = '*';\n\t\tminExecutions = 5;\n\t\tdropPercent = 50;\n\t\tbaselineWindowMinutes = 60;\n\t\tignorePatterns = '';\n\t\tincludeArchived = true;\n\t\ttraceName = '*';\n\t\tthresholdCost = 0.5;\n\t}\n\n\tfunction populateFromRule(r: NotificationRule) {\n\t\tname = r.name;\n\t\tchannelId = r.channelId.toString();\n\t\truleType = r.ruleType;\n\t\tcooldownMinutes = r.cooldownMinutes;\n\t\tseverity = r.severity || '';\n\t\tconst cfg = r.config || {};\n\n\t\tswitch (r.ruleType) {\n\t\t\tcase 'error_rate_threshold':\n\t\t\t\tthresholdPercent = cfg.thresholdPercent ?? 5;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 5;\n\t\t\t\tminRequests = cfg.minRequests ?? 10;\n\t\t\t\tbreak;\n\t\t\tcase 'endpoint_p95_threshold':\n\t\t\tcase 'endpoint_p99_threshold':\n\t\t\t\tendpoint = cfg.endpoint ?? '*';\n\t\t\t\tthresholdMs = cfg.thresholdMs ?? 500;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 5;\n\t\t\t\tbreak;\n\t\t\tcase 'apdex_drop':\n\t\t\t\tthresholdApdex = cfg.thresholdApdex ?? 0.85;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 15;\n\t\t\t\tminRequests = cfg.minRequests ?? 50;\n\t\t\t\tbreak;\n\t\t\tcase 'metric_threshold':\n\t\t\t\tmetricName = cfg.metricName ?? '';\n\t\t\t\toperator = cfg.operator ?? 'gt';\n\t\t\t\tthresholdValue = cfg.thresholdValue ?? 90;\n\t\t\t\taggregation = cfg.aggregation ?? 'avg';\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 5;\n\t\t\t\tbreak;\n\t\t\tcase 'no_data':\n\t\t\t\tdataType = cfg.dataType ?? 'any';\n\t\t\t\tsilenceMinutes = cfg.silenceMinutes ?? 10;\n\t\t\t\tbreak;\n\t\t\tcase 'error_count_threshold':\n\t\t\t\tthresholdCount = cfg.thresholdCount ?? 100;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 60;\n\t\t\t\tbreak;\n\t\t\tcase 'task_duration_threshold':\n\t\t\t\ttaskName = cfg.taskName ?? '*';\n\t\t\t\tthresholdMs = cfg.thresholdMs ?? 30000;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 30;\n\t\t\t\tbreak;\n\t\t\tcase 'task_failure_rate':\n\t\t\t\ttaskName = cfg.taskName ?? '*';\n\t\t\t\tthresholdPercent = cfg.thresholdPercent ?? 10;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 60;\n\t\t\t\tminExecutions = cfg.minExecutions ?? 5;\n\t\t\t\tbreak;\n\t\t\tcase 'throughput_drop':\n\t\t\t\tdropPercent = cfg.dropPercent ?? 50;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 15;\n\t\t\t\tbaselineWindowMinutes = cfg.baselineWindowMinutes ?? 60;\n\t\t\t\tbreak;\n\t\t\tcase 'endpoint_error_rate':\n\t\t\t\tendpoint = cfg.endpoint ?? '*';\n\t\t\t\tthresholdPercent = cfg.thresholdPercent ?? 2;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 10;\n\t\t\t\tminRequests = cfg.minRequests ?? 20;\n\t\t\t\tbreak;\n\t\t\tcase 'new_error':\n\t\t\t\tignorePatterns = (cfg.ignorePatterns || []).join(', ');\n\t\t\t\tbreak;\n\t\t\tcase 'error_regression':\n\t\t\t\tincludeArchived = cfg.includeArchived ?? true;\n\t\t\t\tbreak;\n\t\t\tcase 'impact_score_critical':\n\t\t\tcase 'impact_score_high':\n\t\t\tcase 'impact_score_medium':\n\t\t\t\tminRequests = cfg.minRequests ?? 50;\n\t\t\t\tbreak;\n\t\t\tcase 'ai_trace_cost':\n\t\t\t\ttraceName = cfg.traceName ?? '*';\n\t\t\t\tthresholdCost = cfg.thresholdCost ?? 0.5;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tfunction buildConfig(): any {\n\t\tswitch (ruleType) {\n\t\t\tcase 'error_rate_threshold':\n\t\t\t\treturn { thresholdPercent, lookbackMinutes, minRequests };\n\t\t\tcase 'endpoint_p95_threshold':\n\t\t\tcase 'endpoint_p99_threshold':\n\t\t\t\treturn { endpoint, thresholdMs, lookbackMinutes };\n\t\t\tcase 'apdex_drop':\n\t\t\t\treturn { thresholdApdex, lookbackMinutes, minRequests };\n\t\t\tcase 'metric_threshold':\n\t\t\t\treturn { metricName, operator, thresholdValue, aggregation, lookbackMinutes, tags: {} };\n\t\t\tcase 'no_data':\n\t\t\t\treturn { dataType, silenceMinutes };\n\t\t\tcase 'error_count_threshold':\n\t\t\t\treturn { thresholdCount, lookbackMinutes };\n\t\t\tcase 'task_duration_threshold':\n\t\t\t\treturn { taskName, thresholdMs, lookbackMinutes };\n\t\t\tcase 'task_failure_rate':\n\t\t\t\treturn { taskName, thresholdPercent, lookbackMinutes, minExecutions };\n\t\t\tcase 'throughput_drop':\n\t\t\t\treturn { dropPercent, lookbackMinutes, baselineWindowMinutes };\n\t\t\tcase 'endpoint_error_rate':\n\t\t\t\treturn { endpoint, thresholdPercent, lookbackMinutes, minRequests };\n\t\t\tcase 'new_error': {\n\t\t\t\tconst patterns = ignorePatterns\n\t\t\t\t\t.split(',')\n\t\t\t\t\t.map((p) => p.trim())\n\t\t\t\t\t.filter((p) => p);\n\t\t\t\treturn { ignorePatterns: patterns };\n\t\t\t}\n\t\t\tcase 'error_regression':\n\t\t\t\treturn { includeArchived };\n\t\t\tcase 'impact_score_critical':\n\t\t\tcase 'impact_score_high':\n\t\t\tcase 'impact_score_medium':\n\t\t\t\treturn { minRequests };\n\t\t\tcase 'ai_trace_cost':\n\t\t\t\treturn { traceName, thresholdCost };\n\t\t\tdefault:\n\t\t\t\treturn {};\n\t\t}\n\t}\n\n\tasync function handleSubmit() {\n\t\tloading = true;\n\t\terror = '';\n\n\t\ttry {\n\t\t\tconst body = {\n\t\t\t\tchannelId: parseInt(channelId),\n\t\t\t\tname,\n\t\t\t\truleType,\n\t\t\t\tconfig: buildConfig(),\n\t\t\t\tcooldownMinutes,\n\t\t\t\tseverity\n\t\t\t};\n\n\t\t\tif (isEditing) {\n\t\t\t\tawait api.put(`/notification-rules/${rule!.id}`, body, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully updated the Rule', { position: 'top-center' });\n\t\t\t} else {\n\t\t\t\tawait api.post('/notification-rules', body, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully created the Rule', { position: 'top-center' });\n\t\t\t}\n\t\t\tonSaved();\n\t\t} catch (e: unknown) {\n\t\t\terror = e instanceof Error ? e.message : 'Failed to save rule';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handleOpenChange(isOpen: boolean) {\n\t\tif (!isOpen) {\n\t\t\tresetForm();\n\t\t} else if (rule) {\n\t\t\tpopulateFromRule(rule);\n\t\t} else {\n\t\t\tresetForm();\n\t\t}\n\t\topen = isOpen;\n\t}\n\n\t$effect(() => {\n\t\tif (open && rule) {\n\t\t\tpopulateFromRule(rule);\n\t\t} else if (open && !rule) {\n\t\t\tresetForm();\n\t\t}\n\t});\n</script>\n\n<AlertDialog.Root {open} onOpenChange={handleOpenChange}>\n\t<AlertDialog.Content class=\"max-w-lg max-h-[85vh] overflow-y-auto\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>{isEditing ? 'Edit Rule' : 'New Rule'}</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\t{isEditing\n\t\t\t\t\t? 'Update the notification rule configuration'\n\t\t\t\t\t: 'Configure a new notification rule'}\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\n\t\t<form\n\t\t\tonsubmit={(e) => {\n\t\t\t\te.preventDefault();\n\t\t\t\thandleSubmit();\n\t\t\t}}\n\t\t\tclass=\"space-y-4\"\n\t\t>\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"rule-name\">Name</Label>\n\t\t\t\t<Input\n\t\t\t\t\tid=\"rule-name\"\n\t\t\t\t\tbind:value={name}\n\t\t\t\t\tplaceholder=\"e.g. High Error Rate\"\n\t\t\t\t\trequired\n\t\t\t\t/>\n\t\t\t</div>\n\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"rule-channel\">Channel</Label>\n\t\t\t\t<Select.Root type=\"single\" bind:value={channelId}>\n\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t{channels.find((c) => c.id.toString() === channelId)?.name ||\n\t\t\t\t\t\t\t'Select channel'}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t{#each channels as ch}\n\t\t\t\t\t\t\t<Select.Item value={ch.id.toString()}>{ch.name}</Select.Item>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</div>\n\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"rule-type\">Rule Type</Label>\n\t\t\t\t<Select.Root type=\"single\" bind:value={ruleType}>\n\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t{ruleTypeOptions.find((o) => o.value === ruleType)?.label || 'Select type'}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t{#each visibleRuleTypes as option}\n\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</div>\n\n\t\t\t{#if ruleTypeDescriptions[ruleType]}\n\t\t\t\t<Alert.Root class=\"bg-amber-50 border-amber-200 text-amber-900 dark:bg-amber-950/50 dark:border-amber-800 dark:text-amber-200 \">\n\t\t\t\t\t<TriangleAlert class=\"text-amber-600 dark:text-amber-400\" />\n\t\t\t\t\t<Alert.Description class=\"text-amber-800 dark:text-amber-300\">{ruleTypeDescriptions[ruleType]}</Alert.Description>\n\t\t\t\t</Alert.Root>\n\t\t\t{/if}\n\n\t\t\t<div class=\"rounded-md border p-3 space-y-3\">\n\t\t\t\t<p class=\"text-sm font-medium text-muted-foreground\">Rule Configuration</p>\n\n\t\t\t\t{#if ruleType === 'error_rate_threshold'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold\">Threshold (%)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdPercent}\n\t\t\t\t\t\t\tstep=\"0.1\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-min-req\">Min Requests</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-min-req\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={minRequests}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'endpoint_p95_threshold' || ruleType === 'endpoint_p99_threshold'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-endpoint\">Endpoint (* for all)</Label>\n\t\t\t\t\t\t<Input id=\"cfg-endpoint\" bind:value={endpoint} placeholder=\"GET /api/users\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold-ms\">Threshold (ms)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold-ms\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdMs}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-p\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-p\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'apdex_drop'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-apdex\">Apdex Threshold</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-apdex\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdApdex}\n\t\t\t\t\t\t\tstep=\"0.01\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t\tmax=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-a\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-a\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-min-req-a\">Min Requests</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-min-req-a\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={minRequests}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'metric_threshold'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-metric\">Metric Name</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-metric\"\n\t\t\t\t\t\t\tbind:value={metricName}\n\t\t\t\t\t\t\tplaceholder=\"cpu.used_pcnt\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-operator\">Operator</Label>\n\t\t\t\t\t\t<Select.Root type=\"single\" bind:value={operator}>\n\t\t\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t\t\t{operatorOptions.find((o) => o.value === operator)?.label || operator}\n\t\t\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t{#each operatorOptions as option}\n\t\t\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t</Select.Root>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-value\">Threshold Value</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-value\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdValue}\n\t\t\t\t\t\t\tstep=\"0.1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-agg\">Aggregation</Label>\n\t\t\t\t\t\t<Select.Root type=\"single\" bind:value={aggregation}>\n\t\t\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t\t\t{aggregationOptions.find((o) => o.value === aggregation)?.label ||\n\t\t\t\t\t\t\t\t\taggregation}\n\t\t\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t{#each aggregationOptions as option}\n\t\t\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t</Select.Root>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-m\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-m\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'no_data'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-data-type\">Data Type</Label>\n\t\t\t\t\t\t<Select.Root type=\"single\" bind:value={dataType}>\n\t\t\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t\t\t{dataTypeOptions.find((o) => o.value === dataType)?.label || dataType}\n\t\t\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t{#each dataTypeOptions as option}\n\t\t\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t</Select.Root>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-silence\">Silence (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-silence\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={silenceMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'error_count_threshold'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-count\">Threshold Count</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-count\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdCount}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-ec\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-ec\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'task_duration_threshold'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-task\">Task Name (* for all)</Label>\n\t\t\t\t\t\t<Input id=\"cfg-task\" bind:value={taskName} placeholder=\"sync_users\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold-ms-t\">Threshold (ms)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold-ms-t\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdMs}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-td\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-td\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'task_failure_rate'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-task-f\">Task Name (* for all)</Label>\n\t\t\t\t\t\t<Input id=\"cfg-task-f\" bind:value={taskName} placeholder=\"sync_users\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold-pct\">Threshold (%)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold-pct\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdPercent}\n\t\t\t\t\t\t\tstep=\"0.1\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-tf\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-tf\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-min-exec\">Min Executions</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-min-exec\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={minExecutions}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'throughput_drop'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-drop\">Drop (%)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-drop\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={dropPercent}\n\t\t\t\t\t\t\tstep=\"0.1\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-tp\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-tp\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-baseline\">Baseline Window (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-baseline\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={baselineWindowMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'endpoint_error_rate'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-endpoint-er\">Endpoint</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-endpoint-er\"\n\t\t\t\t\t\t\tbind:value={endpoint}\n\t\t\t\t\t\t\tplaceholder=\"POST /api/checkout\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold-er\">Threshold (%)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold-er\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdPercent}\n\t\t\t\t\t\t\tstep=\"0.1\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-er\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-er\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-min-req-er\">Min Requests</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-min-req-er\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={minRequests}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'new_error'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-ignore\">Ignore Patterns (optional, comma-separated)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-ignore\"\n\t\t\t\t\t\t\tbind:value={ignorePatterns}\n\t\t\t\t\t\t\tplaceholder=\"*timeout*, *context canceled*\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'error_regression'}\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tid=\"cfg-include-archived\"\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tbind:checked={includeArchived}\n\t\t\t\t\t\t\tclass=\"h-4 w-4 rounded border-border\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Label for=\"cfg-include-archived\">Include archived exceptions</Label>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'impact_score_critical' || ruleType === 'impact_score_high' || ruleType === 'impact_score_medium'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-min-req-impact\">Min Requests</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-min-req-impact\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={minRequests}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'ai_trace_cost'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-trace-name\">Trace Name (* for all)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-trace-name\"\n\t\t\t\t\t\t\tbind:value={traceName}\n\t\t\t\t\t\t\tplaceholder=\"Customer Support Agent\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold-cost\">Cost Threshold ($)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold-cost\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdCost}\n\t\t\t\t\t\t\tstep=\"0.01\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t</div>\n\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"rule-cooldown\">Cooldown (minutes)</Label>\n\t\t\t\t<Input\n\t\t\t\t\tid=\"rule-cooldown\"\n\t\t\t\t\ttype=\"number\"\n\t\t\t\t\tbind:value={cooldownMinutes}\n\t\t\t\t\tmin=\"1\"\n\t\t\t\t/>\n\t\t\t</div>\n\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"rule-severity\">Severity</Label>\n\t\t\t\t<Select.Root type=\"single\" bind:value={severity}>\n\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t{severityOptions.find((o) => o.value === severity)?.label || 'Auto (default)'}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t{#each severityOptions as option}\n\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</div>\n\n\t\t\t{#if error}\n\t\t\t\t<p class=\"text-sm text-destructive\">{error}</p>\n\t\t\t{/if}\n\t\t</form>\n\n\t\t<AlertDialog.Footer>\n\t\t\t<AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>\n\t\t\t<Button onclick={handleSubmit} disabled={loading}>\n\t\t\t\t{#if isEditing}\n\t\t\t\t\t<Check class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\tUpdating...\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tUpdate Rule\n\t\t\t\t\t{/if}\n\t\t\t\t{:else}\n\t\t\t\t\t<Plus class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\tCreating...\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tNew Rule\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Clock } from '@lucide/svelte';\n\timport { toast } from 'svelte-sonner';\n\timport { api } from '$lib/api';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\n\tinterface Props {\n\t\topen: boolean;\n\t\truleId: number | null;\n\t\tonSaved: () => void;\n\t}\n\n\tlet { open = $bindable(), ruleId, onSaved }: Props = $props();\n\n\tlet loading = $state(false);\n\n\tconst presets = [\n\t\t{ label: '30 minutes', minutes: 30 },\n\t\t{ label: '1 hour', minutes: 60 },\n\t\t{ label: '4 hours', minutes: 240 },\n\t\t{ label: '8 hours', minutes: 480 },\n\t\t{ label: '24 hours', minutes: 1440 }\n\t];\n\n\tasync function snooze(durationMinutes: number) {\n\t\tif (!ruleId) return;\n\t\tloading = true;\n\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t`/notification-rules/${ruleId}/snooze`,\n\t\t\t\t{ durationMinutes },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Rule snoozed', { position: 'top-center' });\n\t\t\tonSaved();\n\t\t} catch {\n\t\t\ttoast.error('Failed to snooze rule', { position: 'top-center' });\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tasync function clearSnooze() {\n\t\tif (!ruleId) return;\n\t\tloading = true;\n\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t`/notification-rules/${ruleId}/snooze`,\n\t\t\t\t{ durationMinutes: 0 },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Snooze cleared', { position: 'top-center' });\n\t\t\tonSaved();\n\t\t} catch {\n\t\t\ttoast.error('Failed to clear snooze', { position: 'top-center' });\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handleOpenChange(isOpen: boolean) {\n\t\topen = isOpen;\n\t}\n</script>\n\n<AlertDialog.Root {open} onOpenChange={handleOpenChange}>\n\t<AlertDialog.Content class=\"max-w-sm\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Snooze Rule</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tTemporarily silence this rule for a set duration\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\n\t\t<div class=\"grid gap-2\">\n\t\t\t{#each presets as preset}\n\t\t\t\t<Button\n\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\tclass=\"w-full justify-start\"\n\t\t\t\t\tdisabled={loading}\n\t\t\t\t\tonclick={() => snooze(preset.minutes)}\n\t\t\t\t>\n\t\t\t\t\t<Clock class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t{preset.label}\n\t\t\t\t</Button>\n\t\t\t{/each}\n\t\t\t<Button\n\t\t\t\tvariant=\"ghost\"\n\t\t\t\tclass=\"w-full justify-start text-muted-foreground\"\n\t\t\t\tdisabled={loading}\n\t\t\t\tonclick={clearSnooze}\n\t\t\t>\n\t\t\t\tClear snooze\n\t\t\t</Button>\n\t\t</div>\n\n\t\t<AlertDialog.Footer>\n\t\t\t<AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n\timport { onMount, onDestroy } from 'svelte';\n\timport { browser } from '$app/environment';\n\timport { page } from '$app/state';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Badge } from '$lib/components/ui/badge';\n\timport { PaginationFooter } from '$lib/components/ui/pagination-footer';\n\timport { toast } from 'svelte-sonner';\n\timport * as Table from '$lib/components/ui/table';\n\timport * as Tabs from '$lib/components/ui/tabs';\n\timport * as Alert from '$lib/components/ui/alert';\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport { Plus, Pencil, Trash2, Zap, ZapOff, Clock, Send, Info } from '@lucide/svelte';\n\timport { SearchBar } from '$lib/components/ui/search-bar';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { CalendarDate } from '@internationalized/date';\n\timport {\n\t\tparseTimeRangeFromUrl,\n\t\tgetResolvedTimeRange,\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport { calendarDateTimeToLuxon, toUTCISO } from '$lib/utils/formatters';\n\n\timport ChannelDialog from './channel-dialog.svelte';\n\timport RuleDialog from './rule-dialog.svelte';\n\timport SnoozeDialog from './snooze-dialog.svelte';\n\n\tinterface NotificationChannel {\n\t\tid: number;\n\t\tprojectId: string;\n\t\tname: string;\n\t\tchannelType: string;\n\t\tconfig: any;\n\t\tenabled: boolean;\n\t\tcreatedAt: string;\n\t}\n\n\tinterface NotificationRule {\n\t\tid: number;\n\t\tprojectId: string;\n\t\tchannelId: number;\n\t\tname: string;\n\t\truleType: string;\n\t\tconfig: any;\n\t\tenabled: boolean;\n\t\tcooldownMinutes: number;\n\t\tseverity: string;\n\t\tsnoozedUntil: string | null;\n\t\tchannelName: string;\n\t\tchannelType: string;\n\t\tcreatedAt: string;\n\t}\n\n\tinterface NotificationHistory {\n\t\tid: number;\n\t\truleType: string;\n\t\truleName: string;\n\t\tchannelName: string;\n\t\tseverity: string;\n\t\tsubject: string;\n\t\tbody: string;\n\t\tstatus: string;\n\t\terrorMessage: string | null;\n\t\turl: string;\n\t\tcreatedAt: string;\n\t}\n\n\tconst ruleTypeLabels: Record<string, string> = {\n\t\terror_rate_threshold: 'Error Rate',\n\t\tendpoint_p95_threshold: 'Endpoint P95',\n\t\tendpoint_p99_threshold: 'Endpoint P99',\n\t\tapdex_drop: 'Apdex Drop',\n\t\tmetric_threshold: 'Metric Threshold',\n\t\tno_data: 'No Data',\n\t\terror_count_threshold: 'Error Count',\n\t\ttask_duration_threshold: 'Task Duration',\n\t\ttask_failure_rate: 'Task Failure Rate',\n\t\tthroughput_drop: 'Throughput Drop',\n\t\tendpoint_error_rate: 'Endpoint Error Rate',\n\t\tnew_error: 'New Issue',\n\t\terror_regression: 'Error Regression',\n\t\timpact_score_critical: 'Impact Score Critical',\n\t\timpact_score_high: 'Impact Score High',\n\t\timpact_score_medium: 'Impact Score Medium'\n\t};\n\n\tconst channelTypeLabels: Record<string, string> = {\n\t\temail: 'Email',\n\t\twebhook: 'Webhook',\n\t\tslack: 'Slack',\n\t\tgithub: 'GitHub'\n\t};\n\n\tconst tabDescriptions: Record<string, string> = {\n\t\tchannels:\n\t\t\t'Channels define where your notifications are delivered — such as Email, Slack, Webhooks, or GitHub Issues. Create a channel first, then attach it to a rule.',\n\t\trules: 'Rules define when notifications are triggered. Each rule monitors a specific condition and sends an alert through the attached channel when that condition is met.',\n\t\thistory:\n\t\t\t'A log of all notifications that have been sent, including their status and the rule that triggered them.'\n\t};\n\n\tconst activeTab = $derived(page.url.searchParams.get('tab') || 'channels');\n\n\tfunction setTab(tab: string) {\n\t\tconst url = new URL(window.location.href);\n\t\turl.searchParams.set('tab', tab);\n\t\tif (tab !== 'history') {\n\t\t\turl.searchParams.delete('preset');\n\t\t\turl.searchParams.delete('from');\n\t\t\turl.searchParams.delete('to');\n\t\t}\n\t\tgoto(url.toString(), { replaceState: true, noScroll: true });\n\t\tif (tab === 'history') {\n\t\t\tloadHistory(false);\n\t\t}\n\t}\n\n\tlet channels = $state<NotificationChannel[]>([]);\n\tlet channelsLoading = $state(true);\n\n\tlet rules = $state<NotificationRule[]>([]);\n\tlet rulesLoading = $state(true);\n\n\tlet history = $state<NotificationHistory[]>([]);\n\tlet historyLoading = $state(true);\n\tlet historyPage = $state(1);\n\tlet historyPageSize = $state(25);\n\tlet historyTotal = $state(0);\n\tlet historyTotalPages = $state(0);\n\tlet searchQuery = $state('');\n\n\tconst timezone = $derived(getTimezone());\n\n\tfunction parseHistoryUrlParams() {\n\t\tif (!browser) return { preset: '7d', from: null, to: null };\n\t\treturn parseTimeRangeFromUrl(timezone, '7d');\n\t}\n\n\tconst initialUrlParams = parseHistoryUrlParams();\n\tconst initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n\tlet selectedPreset = $state<string | null>(initialUrlParams.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = fromTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = toTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction updateHistoryUrl(pushToHistory = true) {\n\t\tconst params: Record<string, string | null | undefined> = {};\n\t\tparams.tab = 'history';\n\t\tif (selectedPreset) {\n\t\t\tparams.preset = selectedPreset;\n\t\t} else {\n\t\t\tparams.from = getFromDateTimeUTC();\n\t\t\tparams.to = getToDateTimeUTC();\n\t\t}\n\t\tupdateUrl(params, { pushToHistory });\n\t}\n\n\tlet channelDialogOpen = $state(false);\n\tlet editingChannel = $state<NotificationChannel | null>(null);\n\tlet ruleDialogOpen = $state(false);\n\tlet editingRule = $state<NotificationRule | null>(null);\n\tlet snoozeDialogOpen = $state(false);\n\tlet snoozeRuleId = $state<number | null>(null);\n\n\tlet showDeleteChannelDialog = $state(false);\n\tlet deletingChannel = $state<NotificationChannel | null>(null);\n\n\tlet showDeleteRuleDialog = $state(false);\n\tlet deletingRule = $state<NotificationRule | null>(null);\n\n\tlet showToggleRuleDialog = $state(false);\n\tlet togglingRule = $state<NotificationRule | null>(null);\n\tlet togglingLoading = $state(false);\n\n\tlet showTestChannelDialog = $state(false);\n\tlet testingChannel = $state<NotificationChannel | null>(null);\n\tlet testingLoading = $state(false);\n\tlet testError = $state('');\n\n\tasync function loadChannels() {\n\t\tchannelsLoading = true;\n\t\ttry {\n\t\t\tconst res = await api.get('/notification-channels', {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\tchannels = res.channels || [];\n\t\t} catch {\n\t\t\tchannels = [];\n\t\t} finally {\n\t\t\tchannelsLoading = false;\n\t\t}\n\t}\n\n\tasync function loadRules() {\n\t\trulesLoading = true;\n\t\ttry {\n\t\t\tconst res = await api.get('/notification-rules', {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\trules = res.rules || [];\n\t\t} catch {\n\t\t\trules = [];\n\t\t} finally {\n\t\t\trulesLoading = false;\n\t\t}\n\t}\n\n\tasync function loadHistory(pushToHistory = true) {\n\t\thistoryLoading = true;\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\n\t\tupdateHistoryUrl(pushToHistory);\n\n\t\ttry {\n\t\t\tconst res = await api.post(\n\t\t\t\t'/notification-history',\n\t\t\t\t{\n\t\t\t\t\tpagination: { page: historyPage, pageSize: historyPageSize },\n\t\t\t\t\tsearch: searchQuery.trim(),\n\t\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\t\ttoDate: getToDateTimeUTC()\n\t\t\t\t},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\thistory = res.data || [];\n\t\t\thistoryTotal = res.pagination?.total || 0;\n\t\t\thistoryTotalPages = res.pagination?.totalPages || 0;\n\t\t} catch {\n\t\t\thistory = [];\n\t\t} finally {\n\t\t\thistoryLoading = false;\n\t\t}\n\t}\n\n\tfunction handleHistorySearch() {\n\t\thistoryPage = 1;\n\t\tloadHistory(true);\n\t}\n\n\tfunction openDeleteChannel(channel: NotificationChannel) {\n\t\tdeletingChannel = channel;\n\t\tshowDeleteChannelDialog = true;\n\t}\n\n\tasync function deleteChannel() {\n\t\tif (!deletingChannel) return;\n\t\ttry {\n\t\t\tawait api.delete(`/notification-channels/${deletingChannel.id}`, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\ttoast.success('Successfully deleted the Channel', { position: 'top-center' });\n\t\t\tshowDeleteChannelDialog = false;\n\t\t\tdeletingChannel = null;\n\t\t\tloadChannels();\n\t\t\tloadRules();\n\t\t} catch {\n\t\t\ttoast.error('Failed to delete channel', { position: 'top-center' });\n\t\t}\n\t}\n\n\tfunction openTestChannel(channel: NotificationChannel) {\n\t\ttestingChannel = channel;\n\t\ttestError = '';\n\t\tshowTestChannelDialog = true;\n\t}\n\n\tasync function confirmTestChannel() {\n\t\tif (!testingChannel) return;\n\t\ttestingLoading = true;\n\t\ttestError = '';\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t`/notification-channels/${testingChannel.id}/test`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Test notification sent', { position: 'top-center' });\n\t\t\tshowTestChannelDialog = false;\n\t\t\ttestingChannel = null;\n\t\t} catch (e: any) {\n\t\t\tif (e.status === 422) {\n\t\t\t\ttestError = e.message || 'Validation failed';\n\t\t\t} else {\n\t\t\t\ttoast.error('An unexpected error has occurred', { position: 'top-center' });\n\t\t\t\tshowTestChannelDialog = false;\n\t\t\t\ttestingChannel = null;\n\t\t\t}\n\t\t} finally {\n\t\t\ttestingLoading = false;\n\t\t}\n\t}\n\n\tfunction openDeleteRule(rule: NotificationRule) {\n\t\tdeletingRule = rule;\n\t\tshowDeleteRuleDialog = true;\n\t}\n\n\tasync function deleteRule() {\n\t\tif (!deletingRule) return;\n\t\ttry {\n\t\t\tawait api.delete(`/notification-rules/${deletingRule.id}`, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\ttoast.success('Successfully deleted the Rule', { position: 'top-center' });\n\t\t\tshowDeleteRuleDialog = false;\n\t\t\tdeletingRule = null;\n\t\t\tloadRules();\n\t\t} catch {\n\t\t\ttoast.error('Failed to delete rule', { position: 'top-center' });\n\t\t}\n\t}\n\n\tfunction openToggleRule(rule: NotificationRule) {\n\t\ttogglingRule = rule;\n\t\tshowToggleRuleDialog = true;\n\t}\n\n\tasync function confirmToggleRule() {\n\t\tif (!togglingRule) return;\n\t\ttogglingLoading = true;\n\t\ttry {\n\t\t\tconst action = togglingRule.enabled ? 'disabled' : 'enabled';\n\t\t\tawait api.post(\n\t\t\t\t`/notification-rules/${togglingRule.id}/toggle`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success(`Successfully ${action} the Rule`, { position: 'top-center' });\n\t\t\tshowToggleRuleDialog = false;\n\t\t\ttogglingRule = null;\n\t\t\tloadRules();\n\t\t} catch {\n\t\t\ttoast.error('Failed to toggle rule', { position: 'top-center' });\n\t\t} finally {\n\t\t\ttogglingLoading = false;\n\t\t}\n\t}\n\n\tfunction openSnooze(id: number) {\n\t\tsnoozeRuleId = id;\n\t\tsnoozeDialogOpen = true;\n\t}\n\n\tfunction openEditChannel(channel: NotificationChannel) {\n\t\teditingChannel = channel;\n\t\tchannelDialogOpen = true;\n\t}\n\n\tfunction openNewChannel() {\n\t\teditingChannel = null;\n\t\tchannelDialogOpen = true;\n\t}\n\n\tfunction openEditRule(rule: NotificationRule) {\n\t\teditingRule = rule;\n\t\truleDialogOpen = true;\n\t}\n\n\tfunction openNewRule() {\n\t\teditingRule = null;\n\t\truleDialogOpen = true;\n\t}\n\n\tfunction formatDate(dateStr: string) {\n\t\tconst date = new Date(dateStr);\n\t\tconst now = new Date();\n\t\tconst diff = now.getTime() - date.getTime();\n\t\tconst minutes = Math.floor(diff / 60000);\n\t\tif (minutes < 1) return 'just now';\n\t\tif (minutes < 60) return `${minutes}m ago`;\n\t\tconst hours = Math.floor(minutes / 60);\n\t\tif (hours < 24) return `${hours}h ago`;\n\t\tconst days = Math.floor(hours / 24);\n\t\treturn `${days}d ago`;\n\t}\n\n\tfunction isSnoozed(rule: NotificationRule) {\n\t\treturn rule.snoozedUntil && new Date(rule.snoozedUntil) > new Date();\n\t}\n\n\tfunction handleHistoryPageChange(newPage: number) {\n\t\thistoryPage = newPage;\n\t\tloadHistory(true);\n\t}\n\n\tfunction handleHistoryPageSizeChange(newSize: number) {\n\t\thistoryPageSize = newSize;\n\t\thistoryPage = 1;\n\t\tloadHistory(true);\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\ttoDate = to.date;\n\t\tfromTime = from.time;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\thistoryPage = 1;\n\t\tloadHistory(true);\n\t}\n\n\tfunction handlePopState() {\n\t\tconst urlParams = parseHistoryUrlParams();\n\t\tconst range = getResolvedTimeRange(urlParams, timezone);\n\t\tselectedPreset = urlParams.preset;\n\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\thistoryPage = 1;\n\t\tloadHistory(false);\n\t}\n\n\tonMount(() => {\n\t\twindow.addEventListener('popstate', handlePopState);\n\t\tloadChannels();\n\t\tloadRules();\n\t\tif (activeTab === 'history') {\n\t\t\tloadHistory(false);\n\t\t}\n\t});\n\n\tonDestroy(() => {\n\t\tif (typeof window !== 'undefined') {\n\t\t\twindow.removeEventListener('popstate', handlePopState);\n\t\t}\n\t});\n</script>\n\n<div class=\"space-y-2\">\n\t<div>\n\t\t<h1 class=\"text-2xl font-semibold tracking-tight\">Alerts</h1>\n\t</div>\n\n\t<div class=\"flex items-center justify-between\">\n\t\t<Tabs.Root value={activeTab} onValueChange={(v) => { if (v) setTab(v); }}>\n\t\t\t<Tabs.List>\n\t\t\t\t<Tabs.Trigger value=\"channels\">Channels</Tabs.Trigger>\n\t\t\t\t<Tabs.Trigger value=\"rules\">Rules</Tabs.Trigger>\n\t\t\t\t<Tabs.Trigger value=\"history\">History</Tabs.Trigger>\n\t\t\t</Tabs.List>\n\t\t</Tabs.Root>\n\t\t{#if activeTab === 'channels'}\n\t\t\t<Button size=\"sm\" onclick={openNewChannel}>\n\t\t\t\t<Plus class=\"mr-1 h-4 w-4\" /> New Channel\n\t\t\t</Button>\n\t\t{:else if activeTab === 'rules'}\n\t\t\t<Button size=\"sm\" onclick={openNewRule}>\n\t\t\t\t<Plus class=\"mr-1 h-4 w-4\" /> New Rule\n\t\t\t</Button>\n\t\t{/if}\n\t</div>\n\n\t<Alert.Root class=\"bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-950/50 dark:border-blue-800 dark:text-blue-200\">\n\t\t<Info class=\"text-blue-600 dark:text-blue-400\" />\n\t\t<Alert.Description class=\"text-blue-800 dark:text-blue-300\">{tabDescriptions[activeTab]}</Alert.Description>\n\t</Alert.Root>\n\n\t{#if activeTab === 'channels'}\n\t\t{#if channelsLoading}\n\t\t\t<div class=\"flex justify-center py-12\"><LoadingCircle size=\"xlg\" /></div>\n\t\t{:else if channels.length === 0}\n\t\t\t<div\n\t\t\t\tclass=\"flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground\"\n\t\t\t>\n\t\t\t\t<p class=\"mb-4\">No channels yet. Create one to get started.</p>\n\t\t\t\t<Button onclick={openNewChannel}>\n\t\t\t\t\t<Plus class=\"mr-1 h-4 w-4\" />\n\t\t\t\t\tCreate your first Channel\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t{:else}\n\t\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t\t<Table.Root>\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Head>Name</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Type</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Enabled</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Created</Table.Head>\n\t\t\t\t\t\t\t<Table.Head class=\"text-right\">Actions</Table.Head>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t{#each channels as channel}\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-medium\">{channel.name}</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t<Badge variant=\"outline\"\n\t\t\t\t\t\t\t\t\t\t>{channelTypeLabels[channel.channelType] ||\n\t\t\t\t\t\t\t\t\t\t\tchannel.channelType}</Badge\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t{#if channel.enabled}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"default\" class=\"bg-green-600\">On</Badge>\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"secondary\">Off</Badge>\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground\"\n\t\t\t\t\t\t\t\t\t>{formatDate(channel.createdAt)}</Table.Cell\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-right\">\n\t\t\t\t\t\t\t\t\t<div class=\"flex justify-end gap-1\">\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openTestChannel(channel)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Test\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Send class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openEditChannel(channel)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Edit\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Pencil class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openDeleteChannel(channel)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Delete\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Trash2 class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Table.Body>\n\t\t\t\t</Table.Root>\n\t\t\t</div>\n\t\t{/if}\n\t{:else if activeTab === 'rules'}\n\t\t{#if rulesLoading}\n\t\t\t<div class=\"flex justify-center py-12\"><LoadingCircle size=\"xlg\" /></div>\n\t\t{:else if rules.length === 0}\n\t\t\t<div\n\t\t\t\tclass=\"flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground\"\n\t\t\t>\n\t\t\t\t<p class=\"mb-4\">No rules yet. Create one to get started.</p>\n\t\t\t\t<Button onclick={openNewRule}>\n\t\t\t\t\t<Plus class=\"mr-1 h-4 w-4\" />\n\t\t\t\t\tCreate your first Rule\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t{:else}\n\t\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t\t<Table.Root>\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Head>Name</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Type</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Channel</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Status</Table.Head>\n\t\t\t\t\t\t\t<Table.Head class=\"text-right\">Actions</Table.Head>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t{#each rules as rule}\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-medium\">{rule.name}</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\t\t>{ruleTypeLabels[rule.ruleType] || rule.ruleType}</Table.Cell\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t<Badge variant=\"outline\">{rule.channelName}</Badge>\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t{#if isSnoozed(rule)}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"secondary\">Snoozed</Badge>\n\t\t\t\t\t\t\t\t\t{:else if rule.enabled}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"default\" class=\"bg-green-600\">On</Badge>\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"secondary\">Off</Badge>\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-right\">\n\t\t\t\t\t\t\t\t\t<div class=\"flex justify-end gap-1\">\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openSnooze(rule.id)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Snooze\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Clock class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openToggleRule(rule)}\n\t\t\t\t\t\t\t\t\t\t\ttitle={rule.enabled ? 'Disable' : 'Enable'}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{#if rule.enabled}\n\t\t\t\t\t\t\t\t\t\t\t\t<ZapOff class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t<Zap class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openEditRule(rule)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Edit\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Pencil class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openDeleteRule(rule)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Delete\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Trash2 class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Table.Body>\n\t\t\t\t</Table.Root>\n\t\t\t</div>\n\t\t{/if}\n\t{:else if activeTab === 'history'}\n\t\t<div class=\"flex flex-col gap-2 pt-2 sm:flex-row sm:items-center sm:justify-between\">\n\t\t\t<SearchBar\n\t\t\t\tplaceholder=\"Search Historic Alerts...\"\n\t\t\t\tbind:value={searchQuery}\n\t\t\t\tonSearch={handleHistorySearch}\n\t\t\t\tdisabled={historyLoading}\n\t\t\t/>\n\t\t\t<div class=\"w-full sm:w-auto\">\n\t\t\t\t<TimeRangePicker\n\t\t\t\t\tbind:fromDate\n\t\t\t\t\tbind:toDate\n\t\t\t\t\tbind:fromTime\n\t\t\t\t\tbind:toTime\n\t\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t<Table.Root>\n\t\t\t\t{#if historyLoading}\n\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Cell colspan={6} class=\"h-48\">\n\t\t\t\t\t\t\t\t<div class=\"flex h-full items-center justify-center\">\n\t\t\t\t\t\t\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Body>\n\t\t\t\t{:else if history.length === 0}\n\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t<TableEmptyState colspan={6} message=\"No Historic Alerts found.\" />\n\t\t\t\t\t</Table.Body>\n\t\t\t\t{:else}\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Head>Severity</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Rule</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Subject</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Channel</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Status</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Sent At</Table.Head>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t{#each history as item}\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t{#if item.severity === 'critical'}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"destructive\">Critical</Badge>\n\t\t\t\t\t\t\t\t\t{:else if item.severity === 'warning'}\n\t\t\t\t\t\t\t\t\t\t<Badge class=\"bg-amber-500 text-white\">Warning</Badge>\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"secondary\">Info</Badge>\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-medium\">{item.ruleName}</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"max-w-xs truncate\">\n\t\t\t\t\t\t\t\t\t{#if item.url}\n\t\t\t\t\t\t\t\t\t\t<a href={item.url} class=\"text-blue-600 hover:underline dark:text-blue-400\">{item.subject}</a>\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t{item.subject}\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>{item.channelName}</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t{#if item.status === 'sent'}\n\t\t\t\t\t\t\t\t\t\t<Badge class=\"bg-green-600 text-white\">Sent</Badge>\n\t\t\t\t\t\t\t\t\t{:else if item.status === 'failed'}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"destructive\">Failed</Badge>\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"secondary\">Skipped</Badge>\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground\"\n\t\t\t\t\t\t\t\t\t>{formatDate(item.createdAt)}</Table.Cell\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Table.Body>\n\t\t\t\t{/if}\n\t\t\t</Table.Root>\n\t\t</div>\n\n\t\t<PaginationFooter\n\t\t\tcurrentPage={historyPage}\n\t\t\ttotalPages={historyTotalPages}\n\t\t\tpageSize={historyPageSize}\n\t\t\ttotalItems={historyTotal}\n\t\t\tonPageChange={handleHistoryPageChange}\n\t\t\tonPageSizeChange={handleHistoryPageSizeChange}\n\t\t\titemLabel=\"notification\"\n\t\t/>\n\t{/if}\n</div>\n\n<ChannelDialog\n\tbind:open={channelDialogOpen}\n\tchannel={editingChannel}\n\tonSaved={() => {\n\t\tloadChannels();\n\t\tchannelDialogOpen = false;\n\t}}\n/>\n\n<RuleDialog\n\tbind:open={ruleDialogOpen}\n\trule={editingRule}\n\t{channels}\n\tonSaved={() => {\n\t\tloadRules();\n\t\truleDialogOpen = false;\n\t}}\n/>\n\n<SnoozeDialog\n\tbind:open={snoozeDialogOpen}\n\truleId={snoozeRuleId}\n\tonSaved={() => {\n\t\tloadRules();\n\t\tsnoozeDialogOpen = false;\n\t}}\n/>\n\n<AlertDialog.Root bind:open={showDeleteChannelDialog}>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Delete Channel</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to delete \"{deletingChannel?.name}\"? This action cannot be undone.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showDeleteChannelDialog = false)}>Cancel</Button>\n\t\t\t<Button variant=\"destructive\" onclick={deleteChannel}>Delete</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root bind:open={showDeleteRuleDialog}>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Delete Rule</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to delete \"{deletingRule?.name}\"? This action cannot be undone.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showDeleteRuleDialog = false)}>Cancel</Button>\n\t\t\t<Button variant=\"destructive\" onclick={deleteRule}>Delete</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root bind:open={showToggleRuleDialog}>\n\t<AlertDialog.Content\n\t\tinteractOutsideBehavior={togglingLoading ? 'ignore' : 'close'}\n\t\tescapeKeydownBehavior={togglingLoading ? 'ignore' : 'close'}\n\t>\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>{togglingRule?.enabled ? 'Disable' : 'Enable'} Rule</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to {togglingRule?.enabled ? 'disable' : 'enable'} \"{togglingRule?.name}\"?\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showToggleRuleDialog = false)} disabled={togglingLoading}>Cancel</Button>\n\t\t\t<Button onclick={confirmToggleRule} disabled={togglingLoading}>\n\t\t\t\t{togglingRule?.enabled ? 'Disable' : 'Enable'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root bind:open={showTestChannelDialog}>\n\t<AlertDialog.Content\n\t\tinteractOutsideBehavior={testingLoading ? 'ignore' : 'close'}\n\t\tescapeKeydownBehavior={testingLoading ? 'ignore' : 'close'}\n\t>\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Test Channel</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tSend a test notification to \"{testingChannel?.name}\"? This will deliver a test message through the configured channel.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t{#if testError}\n\t\t\t<p class=\"text-sm text-destructive\">{testError}</p>\n\t\t{/if}\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showTestChannelDialog = false)} disabled={testingLoading}>Cancel</Button>\n\t\t\t<Button onclick={confirmTestChannel} disabled={testingLoading}>\n\t\t\t\t<Send class=\"h-4 w-4\" /> {testingLoading ? 'Sending...' : 'Send Test'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n"],"names":["props","$.rest_props","$$props","iconNode","Icon","$.noop","open","$.prop","name","$.state","channelType","loading","error","emailRecipients","$.proxy","webhookUrl","webhookMethod","webhookSecret","webhookHeaders","slackWebhookUrl","slackChannel","slackUsername","githubToken","githubOwner","githubRepo","githubLabels","isEditing","channelTypeOptions","resetForm","$.set","populateFromChannel","ch","config","key","value","buildConfig","$.get","e","headers","h","labels","l","addEmailRecipient","removeEmailRecipient","index","_","i","addWebhookHeader","removeWebhookHeader","handleSubmit","body","api","projectsState","toast","handleOpenChange","isOpen","$.user_effect","AlertDialog_Root","$$anchor","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","$.template_effect","$.set_text","text_1","form","$.sibling","node_2","div","$.child","Label","node_5","Input","node_6","$$value","div_1","node_7","Select_Root","Select_Trigger","o","Select_Content","$.each","node_11","option","Select_Item","text_5","div_2","root_13","node_14","node_15","div_3","root_15","node_16","Button","Trash2","$$render","consequent","Plus","node_19","consequent_1","div_4","$.first_child","fragment_16","node_21","node_22","div_5","node_23","Select_Root_1","Select_Trigger_1","Select_Content_1","Select_Item_1","Select_Item_2","div_6","node_29","node_30","div_7","node_31","node_32","div_8","root_31","node_33","node_34","node_35","node_36","node_37","div_9","fragment_23","node_39","node_40","div_10","node_41","node_42","div_11","node_43","node_44","div_12","fragment_25","node_46","node_47","div_13","node_48","node_49","div_14","node_50","node_51","div_15","node_52","node_53","consequent_5","consequent_4","alternate","consequent_3","alternate_1","consequent_2","alternate_2","p","root_45","consequent_6","$.reset","node_55","AlertDialog_Footer","AlertDialog_Cancel","node_57","Check","node_59","consequent_7","alternate_3","node_61","consequent_9","alternate_4","consequent_8","alternate_5","$.event","channelId","ruleType","cooldownMinutes","severity","severityOptions","thresholdPercent","lookbackMinutes","minRequests","endpoint","thresholdMs","thresholdApdex","metricName","operator","thresholdValue","aggregation","dataType","silenceMinutes","thresholdCount","taskName","minExecutions","dropPercent","baselineWindowMinutes","ignorePatterns","includeArchived","traceName","thresholdCost","ruleTypeOptions","isFrontendProject","$.derived","isFrontendFramework","visibleRuleTypes","ruleTypeDescriptions","operatorOptions","aggregationOptions","dataTypeOptions","populateFromRule","r","cfg","c","node_13","node_17","text_8","Alert_Root","TriangleAlert","Alert_Description","text_9","fragment_19","node_24","node_25","node_26","node_27","node_28","fragment_21","node_38","node_45","Select_Root_2","Select_Trigger_2","Select_Content_2","text_22","node_54","div_16","Select_Root_3","Select_Trigger_3","Select_Content_3","Select_Item_3","text_26","div_17","node_62","div_18","fragment_37","node_64","Select_Root_4","Select_Trigger_4","Select_Content_4","node_68","Select_Item_4","text_30","div_19","node_70","node_71","div_20","fragment_44","node_73","node_74","div_21","node_75","node_76","div_22","fragment_46","node_78","node_79","div_23","node_80","node_81","div_24","node_82","node_83","div_25","fragment_48","node_85","node_86","div_26","node_87","node_88","div_27","node_89","node_90","div_28","node_91","node_92","div_29","fragment_50","node_94","node_95","div_30","node_96","node_97","div_31","node_98","node_99","div_32","fragment_52","node_101","node_102","div_33","node_103","node_104","div_34","node_105","node_106","div_35","node_107","node_108","div_36","root_89","node_110","node_111","div_37","root_92","input","$.remove_input_defaults","node_113","div_38","root_95","node_115","node_116","div_39","fragment_57","node_118","node_119","div_40","node_120","node_121","consequent_14","consequent_13","consequent_12","consequent_11","consequent_10","alternate_6","alternate_7","alternate_8","alternate_9","alternate_10","alternate_11","alternate_12","div_41","node_122","node_123","div_42","node_124","Select_Root_5","Select_Trigger_5","Select_Content_5","node_128","Select_Item_5","text_56","p_1","root_108","consequent_15","node_131","node_133","node_135","consequent_16","alternate_13","node_137","consequent_18","alternate_14","consequent_17","alternate_15","presets","snooze","durationMinutes","clearSnooze","preset","Clock","text_2","ruleTypeLabels","channelTypeLabels","tabDescriptions","activeTab","page","setTab","tab","url","goto","loadHistory","channels","channelsLoading","rules","rulesLoading","history","historyLoading","historyPage","historyPageSize","historyTotal","historyTotalPages","searchQuery","timezone","getTimezone","parseHistoryUrlParams","parseTimeRangeFromUrl","initialUrlParams","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","getFromDateTimeUTC","hour","minute","luxonDt","calendarDateTimeToLuxon","toUTCISO","getToDateTimeUTC","updateHistoryUrl","pushToHistory","params","updateUrl","channelDialogOpen","editingChannel","ruleDialogOpen","editingRule","snoozeDialogOpen","snoozeRuleId","showDeleteChannelDialog","deletingChannel","showDeleteRuleDialog","deletingRule","showToggleRuleDialog","togglingRule","togglingLoading","showTestChannelDialog","testingChannel","testingLoading","testError","loadChannels","res","loadRules","range","getTimeRangeFromPreset","handleHistorySearch","openDeleteChannel","channel","deleteChannel","openTestChannel","confirmTestChannel","openDeleteRule","rule","deleteRule","openToggleRule","confirmToggleRule","action","openSnooze","id","openEditChannel","openNewChannel","openEditRule","openNewRule","formatDate","dateStr","date","diff","minutes","hours","isSnoozed","handleHistoryPageChange","newPage","handleHistoryPageSizeChange","newSize","handleTimeRangeChange","from","to","handlePopState","urlParams","onMount","onDestroy","fragment","Tabs_Root","v","Tabs_List","Tabs_Trigger","Tabs_Trigger_1","Tabs_Trigger_2","node_8","Info","node_10","text_3","root_14","LoadingCircle","root_16","$.append","root_18","Table_Root","Table_Header","Table_Row","Table_Head","Table_Head_1","Table_Head_2","Table_Head_3","Table_Head_4","Table_Body","Table_Row_1","Table_Cell","Table_Cell_1","Badge","text_10","Table_Cell_2","Table_Cell_3","Table_Cell_4","root_39","Send","Pencil","root_47","root_49","Table_Root_1","Table_Header_1","Table_Row_2","Table_Head_5","Table_Head_6","Table_Head_7","Table_Head_8","Table_Head_9","Table_Body_1","Table_Row_3","Table_Cell_5","text_19","Table_Cell_6","text_20","Table_Cell_7","text_21","Table_Cell_8","Table_Cell_9","root_73","$0","node_63","ZapOff","Zap","node_65","node_66","fragment_55","SearchBar","TimeRangePicker","node_69","Table_Root_2","Table_Body_2","Table_Row_4","Table_Cell_10","root_86","Table_Body_3","TableEmptyState","Table_Header_2","Table_Row_5","Table_Head_10","Table_Head_11","Table_Head_12","Table_Head_13","Table_Head_14","Table_Head_15","Table_Body_4","item","Table_Row_6","Table_Cell_11","Table_Cell_12","text_34","Table_Cell_13","a","root_112","text_35","text_36","Table_Cell_14","text_37","Table_Cell_15","Table_Cell_16","PaginationFooter","node_100","consequent_19","alternate_16","alternate_17","ChannelDialog","RuleDialog","SnoozeDialog","text_43","AlertDialog_Root_1","AlertDialog_Content_1","AlertDialog_Header_1","AlertDialog_Title_1","AlertDialog_Description_1","text_47","AlertDialog_Footer_1","AlertDialog_Root_2","AlertDialog_Content_2","AlertDialog_Header_2","AlertDialog_Title_2","text_50","AlertDialog_Description_2","AlertDialog_Footer_2","node_126","node_127","text_53","AlertDialog_Root_3","AlertDialog_Content_3","AlertDialog_Header_3","AlertDialog_Title_3","AlertDialog_Description_3","text_55","root_153","consequent_20","AlertDialog_Footer_3","node_136"],"mappings":"8uDAAA,cA6CIA,GAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,GAAQ,EAAK,QAAU,EAAK,sIAAwI,OAAM,CAAI,EAAK,WAAW,CAAA,GAcnMC,6BAAuBJ,GAAK,uBAAYG,sDACxB,UAAQE,EAAA,wCAHzB,kBC1DA,cA6CIL,GAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,GAAQ,EAAK,QAAU,EAAK,qIAAuI,OAAM,CAAI,EAAK,4BAA4B,CAAA,GAcnNC,2BAAqBJ,GAAK,uBAAYG,sDACtB,UAAQE,EAAA,wCAHzB,kBC1DA,cA6CIL,GAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,GAAQ,EAAK,QAAU,EAAK,8EAAgF,OAAM,CAAI,EAAK,UAAS,GAAM,OAAM,CAAI,EAAK,YAAY,CAAA,GAc1KC,qCAA+BJ,GAAK,uBAAYG,sDAChC,UAAQE,EAAA,wCAHzB,kBC1DA,cA6CIL,GAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,GAAQ,EAAK,QAAU,EAAK,6DAA+D,OAAU,CAAA,EAAK,8CAA8C,IAAM,QAAU,EAAK,8GAAgH,OAAM,CAAI,EAAK,YAAY,CAAA,GAc7TC,8BAAwBJ,GAAK,uBAA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/backend/static/frontend/_app/immutable/nodes/21.D--2gUZI.js b/backend/static/frontend/_app/immutable/nodes/21.D--2gUZI.js
new file mode 100644
index 00000000..a1810fc6
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/21.D--2gUZI.js
@@ -0,0 +1 @@
+import{s as Br,r as Vr,p as ra,i as Z}from"../chunks/DMODTt3n.js";import{o as pa,a as ha}from"../chunks/Dwk6gGSK.js";import{p as gr,d as $,c as s,m as Gr,o as Kr,b as t,a as br,h as _,v as nr,F as ta,i as r,f as u,n as l,t as o,k as fe,l as $e,g as e,u as Qt,s as a,e as v,r as c,j as ia}from"../chunks/B2WdN-7r.js";import{e as Vt,i as Gt}from"../chunks/CMyj8Fzw.js";import{c as n}from"../chunks/BAcG0-U_.js";import{r as ua,s as ma}from"../chunks/DH0tcjsQ.js";import{p as ga}from"../chunks/CyRgFauW.js";import{g as ba}from"../chunks/BIF4_51j.js";import{a as Bt,p as zt,t as Mt,i as Pa}from"../chunks/qCQ2nSvO.js";import{g as ya,c as oa,t as la}from"../chunks/Dq-0lVru.js";import{L as Qr}from"../chunks/D0pIT200.js";import{B as Ke}from"../chunks/C1aqwstW.js";import{B as Wt}from"../chunks/Ci5jf6Wy.js";import{P as xa}from"../chunks/DByR3-93.js";import{T as Tr,b as Hr,a as St,c as Jr}from"../chunks/CeOjHHJH.js";import{T as Xr,a as It}from"../chunks/CEJkX7WU.js";import{a as ka,b as ea,T as wa}from"../chunks/CC8KIeOw.js";import{A as va,a as ca}from"../chunks/CaHAoFtL.js";import{A as Cr,a as Sr,b as Rr,c as Ir,d as Mr,e as Nr}from"../chunks/CmY6xZEr.js";import{S as Ta}from"../chunks/D4tSNflE.js";import{T as Ca}from"../chunks/xk30YnJ1.js";import{C as _a,g as sa,d as jr,a as zr,p as Sa,b as Ra,u as Ia,T as Ma}from"../chunks/DjEjtFrE.js";import{c as fa}from"../chunks/BuKxAPQs.js";import{A as aa,T as Wr}from"../chunks/DXxXPnVP.js";import{I as H}from"../chunks/D8CWOmhn.js";import{L as T}from"../chunks/Csh2s3-8.js";import{b as ur,S as vr,a as cr,c as Jt}from"../chunks/BgAHJuQl.js";import{C as $a}from"../chunks/DUJ_Z9AF.js";import{P as mr}from"../chunks/BUQRDnoX.js";import{I as Yr}from"../chunks/Bv_PbELb.js";import{I as Na}from"../chunks/CQ9AfEcR.js";import{P as na}from"../chunks/CM0V6MFA.js";function da(Nt,J){gr(J,!0);let rt=Vr(J,["$$slots","$$events","$$legacy"]);const je=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]];Yr(Nt,Br({name:"send"},()=>rt,{get iconNode(){return je},children:(Te,X)=>{var He=$(),ke=s(He);Gr(ke,()=>J.children??Kr),t(Te,He)},$$slots:{default:!0}})),br()}function Da(Nt,J){gr(J,!0);let rt=Vr(J,["$$slots","$$events","$$legacy"]);const je=[["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"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]];Yr(Nt,Br({name:"triangle-alert"},()=>rt,{get iconNode(){return je},children:(Te,X)=>{var He=$(),ke=s(He);Gr(ke,()=>J.children??Kr),t(Te,He)},$$slots:{default:!0}})),br()}function Aa(Nt,J){gr(J,!0);let rt=Vr(J,["$$slots","$$events","$$legacy"]);const je=[["path",{d:"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317"}],["path",{d:"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773"}],["path",{d:"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643"}],["path",{d:"m2 2 20 20"}]];Yr(Nt,Br({name:"zap-off"},()=>rt,{get iconNode(){return je},children:(Te,X)=>{var He=$(),ke=s(He);Gr(ke,()=>J.children??Kr),t(Te,He)},$$slots:{default:!0}})),br()}function Ea(Nt,J){gr(J,!0);let rt=Vr(J,["$$slots","$$events","$$legacy"]);const je=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"}]];Yr(Nt,Br({name:"zap"},()=>rt,{get iconNode(){return je},children:(Te,X)=>{var He=$(),ke=s(He);Gr(ke,()=>J.children??Kr),t(Te,He)},$$slots:{default:!0}})),br()}var ja=u("<!> <!>",1),za=u("<!> <!>",1),La=u('<div class="flex gap-2"><!> <!></div>'),Oa=u("<!> Add Recipient",1),qa=u('<div class="space-y-2"><!> <!> <!></div>'),Ua=u("<!> <!>",1),Ha=u("<!> <!>",1),Fa=u('<div class="flex gap-2"><!> <!> <!></div>'),Wa=u("<!> Add Header",1),Ba=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!> <!></div>',1),Va=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),Ga=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),Ka=u("<!> <!> <!>",1),Ya=u("<!> <!>",1),Za=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),Qa=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <!> <div class="space-y-2"><!> <!></div> <div class="flex items-center gap-2"><input id="po-html" type="checkbox" class="h-4 w-4"/> <!></div> <div class="space-y-2"><!> <!></div>',1),Ja=u('<p class="text-sm text-destructive"> </p>'),Xa=u("<!> <!>",1),eo=u("<!> <!>",1),to=u("<!> <!>",1),ro=u('<!> <form class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <!> <!></form> <!>',1);function ao(Nt,J){gr(J,!0);let rt=ra(J,"open",15),je=_(""),Te=_("email"),X=_(!1),He=_(""),ke=_(nr([""])),xt=_(""),gt=_("POST"),kt=_(""),Se=_(nr([])),ee=_(""),Re=_(""),at=_(""),bt=_(""),Rt=_(""),Ct=_(""),Ce=_(""),Dt=_(""),wt=_(""),it=_(""),ze=_("0"),ot=_(30),Ye=_(3600),ht=_(""),Fe=_(""),lt=_(!1),st=_(0);const At=Qt(()=>J.channel!==null),nt=[{value:"email",label:"Email"},{value:"webhook",label:"Webhook"},{value:"slack",label:"Slack"},{value:"github",label:"GitHub"},{value:"pushover",label:"Pushover"}];function mt(){r(je,""),r(Te,"email"),r(He,""),r(ke,[""],!0),r(xt,""),r(gt,"POST"),r(kt,""),r(Se,[],!0),r(ee,""),r(Re,""),r(at,""),r(bt,""),r(Rt,""),r(Ct,""),r(Ce,""),r(Dt,""),r(wt,""),r(it,""),r(ze,"0"),r(ot,30),r(Ye,3600),r(ht,""),r(Fe,""),r(lt,!1),r(st,0)}function Tt(U){r(je,U.name,!0),r(Te,U.channelType,!0);const ne=U.config||{};U.channelType==="email"?r(ke,ne.recipients?.length?[...ne.recipients]:[""],!0):U.channelType==="webhook"?(r(xt,ne.url||"",!0),r(gt,ne.method||"POST",!0),r(kt,ne.secret||"",!0),r(Se,ne.headers?Object.entries(ne.headers).map(([Xe,Ft])=>({key:Xe,value:Ft})):[],!0)):U.channelType==="slack"?(r(ee,ne.webhookUrl||"",!0),r(Re,ne.channel||"",!0),r(at,ne.username||"",!0)):U.channelType==="github"?(r(bt,ne.token||"",!0),r(Rt,ne.owner||"",!0),r(Ct,ne.repo||"",!0),r(Ce,(ne.labels||[]).join(", "),!0)):U.channelType==="pushover"&&(r(Dt,ne.userKey||"",!0),r(wt,ne.appToken||"",!0),r(it,ne.device||"",!0),r(ze,String(ne.priority??0),!0),r(ot,ne.retry??30,!0),r(Ye,ne.expire??3600,!0),r(ht,ne.callback||"",!0),r(Fe,ne.sound||"",!0),r(lt,ne.html??!1,!0),r(st,ne.ttl??0,!0))}function Ht(){if(e(Te)==="email")return{recipients:e(ke).filter(U=>U.trim()!=="")};if(e(Te)==="webhook"){const U={url:e(xt)};e(gt)!=="POST"&&(U.method=e(gt)),e(kt)&&(U.secret=e(kt));const ne={};for(const Xe of e(Se))Xe.key.trim()&&(ne[Xe.key.trim()]=Xe.value);return Object.keys(ne).length>0&&(U.headers=ne),U}else if(e(Te)==="slack"){const U={webhookUrl:e(ee)};return e(Re)&&(U.channel=e(Re)),e(at)&&(U.username=e(at)),U}else if(e(Te)==="github"){const U={token:e(bt),owner:e(Rt),repo:e(Ct)},ne=e(Ce).split(",").map(Xe=>Xe.trim()).filter(Xe=>Xe);return ne.length>0&&(U.labels=ne),U}else if(e(Te)==="pushover"){const U={userKey:e(Dt),appToken:e(wt)};return e(it)&&(U.device=e(it)),e(ze)!=="0"&&(U.priority=Number(e(ze))),e(ze)==="2"&&(U.retry=Number(e(ot)),U.expire=Number(e(Ye)),e(ht)&&(U.callback=e(ht))),e(Fe)&&(U.sound=e(Fe)),e(lt)&&(U.html=e(lt)),Number(e(st))>0&&(U.ttl=Number(e(st))),U}return{}}function Lt(){r(ke,[...e(ke),""],!0)}function Kt(U){r(ke,e(ke).filter((ne,Xe)=>Xe!==U),!0),e(ke).length===0&&r(ke,[""],!0)}function Ot(){r(Se,[...e(Se),{key:"",value:""}],!0)}function qt(U){r(Se,e(Se).filter((ne,Xe)=>Xe!==U),!0)}async function Xt(){r(X,!0),r(He,"");try{const U={name:e(je),channelType:e(Te),config:Ht()};e(At)?(await Bt.put(`/notification-channels/${J.channel.id}`,U,{projectId:zt.currentProjectId??void 0}),Mt.success("Successfully updated the Channel",{position:"top-center"})):(await Bt.post("/notification-channels",U,{projectId:zt.currentProjectId??void 0}),Mt.success("Successfully created the Channel",{position:"top-center"})),J.onSaved()}catch(U){r(He,U instanceof Error?U.message:"Failed to save channel",!0)}finally{r(X,!1)}}function or(U){U&&J.channel?Tt(J.channel):mt(),rt(U)}ta(()=>{rt()&&J.channel?Tt(J.channel):rt()&&!J.channel&&mt()});var Yt=$(),Ut=s(Yt);n(Ut,()=>Nr,(U,ne)=>{ne(U,{get open(){return rt()},onOpenChange:or,children:(Xe,Ft)=>{var lr=$(),We=s(lr);n(We,()=>Cr,(G,er)=>{er(G,{class:"max-w-md max-h-[90vh] overflow-y-auto",children:(Fr,Lr)=>{var Dr=ro(),Ar=s(Dr);n(Ar,()=>Sr,(Le,ut)=>{ut(Le,{children:(et,Zt)=>{var Pt=ja(),dt=s(Pt);n(dt,()=>Rr,(Qe,qe)=>{qe(Qe,{children:(Ue,Be)=>{l();var De=o();fe(()=>$e(De,e(At)?"Edit Channel":"New Channel")),t(Ue,De)},$$slots:{default:!0}})});var tt=a(dt,2);n(tt,()=>Ir,(Qe,qe)=>{qe(Qe,{children:(Ue,Be)=>{l();var De=o();fe(()=>$e(De,e(At)?"Update the notification channel configuration":"Configure a new notification channel")),t(Ue,De)},$$slots:{default:!0}})}),t(et,Pt)},$$slots:{default:!0}})});var _r=a(Ar,2),Pr=v(_r),Or=v(Pr);T(Or,{for:"channel-name",children:(Le,ut)=>{l();var et=o("Name");t(Le,et)},$$slots:{default:!0}});var Er=a(Or,2);H(Er,{id:"channel-name",placeholder:"e.g. Team Slack",required:!0,get value(){return e(je)},set value(Le){r(je,Le,!0)}}),c(Pr);var fr=a(Pr,2),dr=v(fr);T(dr,{for:"channel-type",children:(Le,ut)=>{l();var et=o("Type");t(Le,et)},$$slots:{default:!0}});var yr=a(dr,2);n(yr,()=>ur,(Le,ut)=>{ut(Le,{type:"single",get value(){return e(Te)},set value(et){r(Te,et,!0)},children:(et,Zt)=>{var Pt=za(),dt=s(Pt);n(dt,()=>vr,(Qe,qe)=>{qe(Qe,{class:"w-full",children:(Ue,Be)=>{l();var De=o();fe(vt=>$e(De,vt),[()=>nt.find(vt=>vt.value===e(Te))?.label||"Select type"]),t(Ue,De)},$$slots:{default:!0}})});var tt=a(dt,2);n(tt,()=>cr,(Qe,qe)=>{qe(Qe,{children:(Ue,Be)=>{var De=$(),vt=s(De);Vt(vt,17,()=>nt,Gt,(Ve,ct)=>{var Ge=$(),_t=s(Ge);n(_t,()=>Jt,(D,oe)=>{oe(D,{get value(){return e(ct).value},children:(C,ae)=>{l();var d=o();fe(()=>$e(d,e(ct).label)),t(C,d)},$$slots:{default:!0}})}),t(Ve,Ge)}),t(Ue,De)},$$slots:{default:!0}})}),t(et,Pt)},$$slots:{default:!0}})}),c(fr);var $r=a(fr,2);{var qr=Le=>{var ut=qa(),et=v(ut);T(et,{children:(tt,Qe)=>{l();var qe=o("Recipients");t(tt,qe)},$$slots:{default:!0}});var Zt=a(et,2);Vt(Zt,17,()=>e(ke),Gt,(tt,Qe,qe)=>{var Ue=La(),Be=v(Ue);H(Be,{type:"email",placeholder:"[email protected]",get value(){return e(ke)[qe]},set value(Ve){e(ke)[qe]=Ve}});var De=a(Be,2);{var vt=Ve=>{Ke(Ve,{variant:"ghost",size:"icon",type:"button",onclick:()=>Kt(qe),children:(ct,Ge)=>{Wr(ct,{class:"h-4 w-4"})},$$slots:{default:!0}})};Z(De,Ve=>{e(ke).length>1&&Ve(vt)})}c(Ue),t(tt,Ue)});var Pt=a(Zt,2);{var dt=tt=>{Ke(tt,{variant:"outline",size:"sm",type:"button",onclick:Lt,children:(Qe,qe)=>{var Ue=Oa(),Be=s(Ue);mr(Be,{class:"mr-1 h-3 w-3"}),l(),t(Qe,Ue)},$$slots:{default:!0}})};Z(Pt,tt=>{e(ke).length<10&&tt(dt)})}c(ut),t(Le,ut)},pr=Le=>{var ut=$(),et=s(ut);{var Zt=dt=>{var tt=Ba(),Qe=s(tt),qe=v(Qe);T(qe,{for:"webhook-url",children:(ae,d)=>{l();var i=o("URL");t(ae,i)},$$slots:{default:!0}});var Ue=a(qe,2);H(Ue,{id:"webhook-url",placeholder:"https://example.com/webhook",required:!0,get value(){return e(xt)},set value(ae){r(xt,ae,!0)}}),c(Qe);var Be=a(Qe,2),De=v(Be);T(De,{for:"webhook-method",children:(ae,d)=>{l();var i=o("Method");t(ae,i)},$$slots:{default:!0}});var vt=a(De,2);n(vt,()=>ur,(ae,d)=>{d(ae,{type:"single",get value(){return e(gt)},set value(i){r(gt,i,!0)},children:(i,p)=>{var A=Ha(),m=s(A);n(m,()=>vr,(y,f)=>{f(y,{class:"w-full",children:(h,W)=>{l();var g=o();fe(()=>$e(g,e(gt))),t(h,g)},$$slots:{default:!0}})});var b=a(m,2);n(b,()=>cr,(y,f)=>{f(y,{children:(h,W)=>{var g=Ua(),S=s(g);n(S,()=>Jt,(Q,j)=>{j(Q,{value:"POST",children:(x,z)=>{l();var P=o("POST");t(x,P)},$$slots:{default:!0}})});var E=a(S,2);n(E,()=>Jt,(Q,j)=>{j(Q,{value:"PUT",children:(x,z)=>{l();var P=o("PUT");t(x,P)},$$slots:{default:!0}})}),t(h,g)},$$slots:{default:!0}})}),t(i,A)},$$slots:{default:!0}})}),c(Be);var Ve=a(Be,2),ct=v(Ve);T(ct,{for:"webhook-secret",children:(ae,d)=>{l();var i=o("Secret (optional)");t(ae,i)},$$slots:{default:!0}});var Ge=a(ct,2);H(Ge,{id:"webhook-secret",placeholder:"HMAC signing secret",get value(){return e(kt)},set value(ae){r(kt,ae,!0)}}),c(Ve);var _t=a(Ve,2),D=v(_t);T(D,{children:(ae,d)=>{l();var i=o("Headers (optional)");t(ae,i)},$$slots:{default:!0}});var oe=a(D,2);Vt(oe,17,()=>e(Se),Gt,(ae,d,i)=>{var p=Fa(),A=v(p);H(A,{placeholder:"Header name",class:"flex-1",get value(){return e(Se)[i].key},set value(y){e(Se)[i].key=y}});var m=a(A,2);H(m,{placeholder:"Value",class:"flex-1",get value(){return e(Se)[i].value},set value(y){e(Se)[i].value=y}});var b=a(m,2);Ke(b,{variant:"ghost",size:"icon",type:"button",onclick:()=>qt(i),children:(y,f)=>{Wr(y,{class:"h-4 w-4"})},$$slots:{default:!0}}),c(p),t(ae,p)});var C=a(oe,2);Ke(C,{variant:"outline",size:"sm",type:"button",onclick:Ot,children:(ae,d)=>{var i=Wa(),p=s(i);mr(p,{class:"mr-1 h-3 w-3"}),l(),t(ae,i)},$$slots:{default:!0}}),c(_t),t(dt,tt)},Pt=dt=>{var tt=$(),Qe=s(tt);{var qe=Be=>{var De=Va(),vt=s(De),Ve=v(vt);T(Ve,{for:"slack-url",children:(d,i)=>{l();var p=o("Webhook URL");t(d,p)},$$slots:{default:!0}});var ct=a(Ve,2);H(ct,{id:"slack-url",placeholder:"https://hooks.slack.com/services/...",required:!0,get value(){return e(ee)},set value(d){r(ee,d,!0)}}),c(vt);var Ge=a(vt,2),_t=v(Ge);T(_t,{for:"slack-channel",children:(d,i)=>{l();var p=o("Channel Override (optional)");t(d,p)},$$slots:{default:!0}});var D=a(_t,2);H(D,{id:"slack-channel",placeholder:"#alerts",get value(){return e(Re)},set value(d){r(Re,d,!0)}}),c(Ge);var oe=a(Ge,2),C=v(oe);T(C,{for:"slack-username",children:(d,i)=>{l();var p=o("Username (optional)");t(d,p)},$$slots:{default:!0}});var ae=a(C,2);H(ae,{id:"slack-username",placeholder:"Traceway",get value(){return e(at)},set value(d){r(at,d,!0)}}),c(oe),t(Be,De)},Ue=Be=>{var De=$(),vt=s(De);{var Ve=Ge=>{var _t=Ga(),D=s(_t),oe=v(D);T(oe,{for:"gh-token",children:(h,W)=>{l();var g=o("Personal Access Token");t(h,g)},$$slots:{default:!0}});var C=a(oe,2);H(C,{id:"gh-token",type:"password",placeholder:"ghp_...",required:!0,get value(){return e(bt)},set value(h){r(bt,h,!0)}}),c(D);var ae=a(D,2),d=v(ae);T(d,{for:"gh-owner",children:(h,W)=>{l();var g=o("Repository Owner");t(h,g)},$$slots:{default:!0}});var i=a(d,2);H(i,{id:"gh-owner",placeholder:"owner",required:!0,get value(){return e(Rt)},set value(h){r(Rt,h,!0)}}),c(ae);var p=a(ae,2),A=v(p);T(A,{for:"gh-repo",children:(h,W)=>{l();var g=o("Repository Name");t(h,g)},$$slots:{default:!0}});var m=a(A,2);H(m,{id:"gh-repo",placeholder:"repo",required:!0,get value(){return e(Ct)},set value(h){r(Ct,h,!0)}}),c(p);var b=a(p,2),y=v(b);T(y,{for:"gh-labels",children:(h,W)=>{l();var g=o("Labels (optional, comma-separated)");t(h,g)},$$slots:{default:!0}});var f=a(y,2);H(f,{id:"gh-labels",placeholder:"bug, traceway",get value(){return e(Ce)},set value(h){r(Ce,h,!0)}}),c(b),t(Ge,_t)},ct=Ge=>{var _t=$(),D=s(_t);{var oe=C=>{var ae=Qa(),d=s(ae),i=v(d);T(i,{for:"po-user-key",children:(I,M)=>{l();var te=o("User Key");t(I,te)},$$slots:{default:!0}});var p=a(i,2);H(p,{id:"po-user-key",placeholder:"Your Pushover user key",required:!0,get value(){return e(Dt)},set value(I){r(Dt,I,!0)}}),c(d);var A=a(d,2),m=v(A);T(m,{for:"po-app-token",children:(I,M)=>{l();var te=o("App Token");t(I,te)},$$slots:{default:!0}});var b=a(m,2);H(b,{id:"po-app-token",type:"password",placeholder:"Your Pushover application token",required:!0,get value(){return e(wt)},set value(I){r(wt,I,!0)}}),c(A);var y=a(A,2),f=v(y);T(f,{for:"po-device",children:(I,M)=>{l();var te=o("Device (optional)");t(I,te)},$$slots:{default:!0}});var h=a(f,2);H(h,{id:"po-device",placeholder:"Leave empty for all devices",get value(){return e(it)},set value(I){r(it,I,!0)}}),c(y);var W=a(y,2),g=v(W);T(g,{for:"po-priority",children:(I,M)=>{l();var te=o("Priority");t(I,te)},$$slots:{default:!0}});var S=a(g,2);n(S,()=>ur,(I,M)=>{M(I,{type:"single",get value(){return e(ze)},set value(te){r(ze,te,!0)},children:(te,V)=>{var ge=Ya(),F=s(ge);n(F,()=>vr,(ce,de)=>{de(ce,{class:"w-full",children:(K,xe)=>{l();var se=o();fe(()=>$e(se,e(ze)==="0"?"Normal":e(ze)==="1"?"High":"Emergency")),t(K,se)},$$slots:{default:!0}})});var be=a(F,2);n(be,()=>cr,(ce,de)=>{de(ce,{children:(K,xe)=>{var se=Ka(),_e=s(se);n(_e,()=>Jt,(he,O)=>{O(he,{value:"0",children:(q,re)=>{l();var R=o("Normal");t(q,R)},$$slots:{default:!0}})});var N=a(_e,2);n(N,()=>Jt,(he,O)=>{O(he,{value:"1",children:(q,re)=>{l();var R=o("High");t(q,R)},$$slots:{default:!0}})});var L=a(N,2);n(L,()=>Jt,(he,O)=>{O(he,{value:"2",children:(q,re)=>{l();var R=o("Emergency");t(q,R)},$$slots:{default:!0}})}),t(K,se)},$$slots:{default:!0}})}),t(te,ge)},$$slots:{default:!0}})}),c(W);var E=a(W,2);{var Q=I=>{var M=Za(),te=s(M),V=v(te);T(V,{for:"po-retry",children:(se,_e)=>{l();var N=o("Retry Interval (seconds, min 30)");t(se,N)},$$slots:{default:!0}});var ge=a(V,2);H(ge,{id:"po-retry",type:"number",min:30,get value(){return e(ot)},set value(se){r(ot,se,!0)}}),c(te);var F=a(te,2),be=v(F);T(be,{for:"po-expire",children:(se,_e)=>{l();var N=o("Expiry (seconds, max 10800)");t(se,N)},$$slots:{default:!0}});var ce=a(be,2);H(ce,{id:"po-expire",type:"number",min:1,max:10800,get value(){return e(Ye)},set value(se){r(Ye,se,!0)}}),c(F);var de=a(F,2),K=v(de);T(K,{for:"po-callback",children:(se,_e)=>{l();var N=o("Callback URL (optional)");t(se,N)},$$slots:{default:!0}});var xe=a(K,2);H(xe,{id:"po-callback",placeholder:"https://hooks.example.com/acknowledged",get value(){return e(ht)},set value(se){r(ht,se,!0)}}),c(de),t(I,M)};Z(E,I=>{e(ze)==="2"&&I(Q)})}var j=a(E,2),x=v(j);T(x,{for:"po-sound",children:(I,M)=>{l();var te=o("Sound (optional)");t(I,te)},$$slots:{default:!0}});var z=a(x,2);H(z,{id:"po-sound",placeholder:"e.g. pushover, bike, bugle",get value(){return e(Fe)},set value(I){r(Fe,I,!0)}}),c(j);var P=a(j,2),k=v(P);ua(k);var pe=a(k,2);T(pe,{for:"po-html",children:(I,M)=>{l();var te=o("Enable HTML formatting");t(I,te)},$$slots:{default:!0}}),c(P);var ue=a(P,2),ve=v(ue);T(ve,{for:"po-ttl",children:(I,M)=>{l();var te=o("Time to Live (seconds, 0 = forever)");t(I,te)},$$slots:{default:!0}});var B=a(ve,2);H(B,{id:"po-ttl",type:"number",min:0,placeholder:"0",get value(){return e(st)},set value(I){r(st,I,!0)}}),c(ue),fa(k,()=>e(lt),I=>r(lt,I)),t(C,ae)};Z(D,C=>{e(Te)==="pushover"&&C(oe)},!0)}t(Ge,_t)};Z(vt,Ge=>{e(Te)==="github"?Ge(Ve):Ge(ct,!1)},!0)}t(Be,De)};Z(Qe,Be=>{e(Te)==="slack"?Be(qe):Be(Ue,!1)},!0)}t(dt,tt)};Z(et,dt=>{e(Te)==="webhook"?dt(Zt):dt(Pt,!1)},!0)}t(Le,ut)};Z($r,Le=>{e(Te)==="email"?Le(qr):Le(pr,!1)})}var xr=a($r,2);{var Ur=Le=>{var ut=Ja(),et=v(ut,!0);c(ut),fe(()=>$e(et,e(He))),t(Le,ut)};Z(xr,Le=>{e(He)&&Le(Ur)})}c(_r);var kr=a(_r,2);n(kr,()=>Mr,(Le,ut)=>{ut(Le,{children:(et,Zt)=>{var Pt=to(),dt=s(Pt);n(dt,()=>aa,(Qe,qe)=>{qe(Qe,{get disabled(){return e(X)},children:(Ue,Be)=>{l();var De=o("Cancel");t(Ue,De)},$$slots:{default:!0}})});var tt=a(dt,2);Ke(tt,{onclick:Xt,get disabled(){return e(X)},children:(Qe,qe)=>{var Ue=$(),Be=s(Ue);{var De=Ve=>{var ct=Xa(),Ge=s(ct);$a(Ge,{class:"mr-2 h-4 w-4"});var _t=a(Ge,2);{var D=C=>{var ae=o("Updating...");t(C,ae)},oe=C=>{var ae=o("Update Channel");t(C,ae)};Z(_t,C=>{e(X)?C(D):C(oe,!1)})}t(Ve,ct)},vt=Ve=>{var ct=eo(),Ge=s(ct);mr(Ge,{class:"mr-2 h-4 w-4"});var _t=a(Ge,2);{var D=C=>{var ae=o("Creating...");t(C,ae)},oe=C=>{var ae=o("New Channel");t(C,ae)};Z(_t,C=>{e(X)?C(D):C(oe,!1)})}t(Ve,ct)};Z(Be,Ve=>{e(At)?Ve(De):Ve(vt,!1)})}t(Qe,Ue)},$$slots:{default:!0}}),t(et,Pt)},$$slots:{default:!0}})}),ia("submit",_r,Le=>{Le.preventDefault(),Xt()}),t(Fr,Dr)},$$slots:{default:!0}})}),t(Xe,lr)},$$slots:{default:!0}})}),t(Nt,Yt),br()}var oo=u("<!> <!>",1),lo=u("<!> <!>",1),so=u("<!> <!>",1),no=u("<!> <!>",1),io=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),uo=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),vo=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),co=u("<!> <!>",1),_o=u("<!> <!>",1),fo=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),$o=u("<!> <!>",1),po=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),ho=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),mo=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),go=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),bo=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),Po=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),yo=u('<div class="space-y-2"><!> <!></div>'),xo=u('<div class="flex items-center gap-2"><input id="cfg-include-archived" type="checkbox" class="h-4 w-4 rounded border-border"/> <!></div>'),ko=u('<div class="space-y-2"><!> <!></div>'),wo=u('<div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div>',1),To=u("<!> <!>",1),Co=u('<p class="text-sm text-destructive"> </p>'),So=u("<!> <!>",1),Ro=u("<!> <!>",1),Io=u("<!> <!>",1),Mo=u('<!> <form class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <!> <div class="rounded-md border p-3 space-y-3"><p class="text-sm font-medium text-muted-foreground">Rule Configuration</p> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <!></form> <!>',1);function No(Nt,J){gr(J,!0);let rt=ra(J,"open",15),je=_(""),Te=_(""),X=_("new_error"),He=_(15),ke=_(""),xt=_(!1),gt=_("");const kt=[{value:"",label:"Auto (default)"},{value:"critical",label:"Critical"},{value:"warning",label:"Warning"},{value:"info",label:"Info"}];let Se=_(5),ee=_(5),Re=_(10),at=_("*"),bt=_(500),Rt=_(.85),Ct=_(""),Ce=_("gt"),Dt=_(90),wt=_("avg"),it=_("any"),ze=_(10),ot=_(100),Ye=_("*"),ht=_(5),Fe=_(50),lt=_(60),st=_(""),At=_(!0),nt=_("*"),mt=_(.5);const Tt=Qt(()=>J.rule!==null),Ht=[{value:"new_error",label:"New Issue"},{value:"impact_score_critical",label:"Impact Score Critical"},{value:"impact_score_high",label:"Impact Score High"},{value:"impact_score_medium",label:"Impact Score Medium"},{value:"error_regression",label:"Error Regression"},{value:"error_rate_threshold",label:"Error Rate"},{value:"error_count_threshold",label:"Error Count"},{value:"endpoint_p95_threshold",label:"Endpoint P95"},{value:"endpoint_p99_threshold",label:"Endpoint P99"},{value:"endpoint_error_rate",label:"Endpoint Error Rate"},{value:"apdex_drop",label:"Apdex Drop"},{value:"metric_threshold",label:"Metric Threshold"},{value:"no_data",label:"No Data"},{value:"task_duration_threshold",label:"Task Duration"},{value:"task_failure_rate",label:"Task Failure Rate"},{value:"throughput_drop",label:"Throughput Drop"},{value:"ai_trace_cost",label:"AI Trace Cost"}],Lt=Qt(()=>!!zt.currentProject&&Pa(zt.currentProject.framework)),Kt=Qt(()=>e(Lt)?[{value:"new_error",label:"New Issue"}]:[{value:"new_error",label:"New Issue"},{value:"impact_score_critical",label:"Impact Score Critical"},{value:"impact_score_high",label:"Impact Score High"},{value:"impact_score_medium",label:"Impact Score Medium"},{value:"ai_trace_cost",label:"AI Trace Cost"}]);ta(()=>{rt()&&!e(Kt).some(We=>We.value===e(X))&&r(X,"new_error")});const Ot={new_error:"Fires when a completely new error type is detected for the first time in your project.",impact_score_critical:"Fires when an endpoint’s impact score reaches critical level (≥ 0.75), indicating severe performance or reliability degradation.",impact_score_high:"Fires when an endpoint’s impact score reaches high level (≥ 0.50), indicating significant performance or reliability issues.",impact_score_medium:"Fires when an endpoint’s impact score reaches medium level (≥ 0.25), an early warning of emerging performance or reliability issues.",ai_trace_cost:"Fires when an individual AI trace exceeds a cost threshold. Monitors per-call spending across AI providers."},qt=[{value:"gt",label:"> Greater than"},{value:"gte",label:">= Greater or equal"},{value:"lt",label:"< Less than"},{value:"lte",label:"<= Less or equal"},{value:"eq",label:"= Equal"}],Xt=[{value:"avg",label:"Average"},{value:"max",label:"Maximum"},{value:"min",label:"Minimum"},{value:"sum",label:"Sum"},{value:"p95",label:"P95"},{value:"p99",label:"P99"},{value:"last",label:"Last"}],or=[{value:"any",label:"Any"},{value:"endpoints",label:"Endpoints"},{value:"exceptions",label:"Exceptions"},{value:"metrics",label:"Metrics"},{value:"tasks",label:"Tasks"}];function Yt(){r(je,""),r(Te,""),r(X,"new_error"),r(He,15),r(ke,""),r(gt,""),r(Se,5),r(ee,5),r(Re,10),r(at,"*"),r(bt,500),r(Rt,.85),r(Ct,""),r(Ce,"gt"),r(Dt,90),r(wt,"avg"),r(it,"any"),r(ze,10),r(ot,100),r(Ye,"*"),r(ht,5),r(Fe,50),r(lt,60),r(st,""),r(At,!0),r(nt,"*"),r(mt,.5)}function Ut(We){r(je,We.name,!0),r(Te,We.channelId.toString(),!0),r(X,We.ruleType,!0),r(He,We.cooldownMinutes,!0),r(ke,We.severity||"",!0);const G=We.config||{};switch(We.ruleType){case"error_rate_threshold":r(Se,G.thresholdPercent??5,!0),r(ee,G.lookbackMinutes??5,!0),r(Re,G.minRequests??10,!0);break;case"endpoint_p95_threshold":case"endpoint_p99_threshold":r(at,G.endpoint??"*",!0),r(bt,G.thresholdMs??500,!0),r(ee,G.lookbackMinutes??5,!0);break;case"apdex_drop":r(Rt,G.thresholdApdex??.85,!0),r(ee,G.lookbackMinutes??15,!0),r(Re,G.minRequests??50,!0);break;case"metric_threshold":r(Ct,G.metricName??"",!0),r(Ce,G.operator??"gt",!0),r(Dt,G.thresholdValue??90,!0),r(wt,G.aggregation??"avg",!0),r(ee,G.lookbackMinutes??5,!0);break;case"no_data":r(it,G.dataType??"any",!0),r(ze,G.silenceMinutes??10,!0);break;case"error_count_threshold":r(ot,G.thresholdCount??100,!0),r(ee,G.lookbackMinutes??60,!0);break;case"task_duration_threshold":r(Ye,G.taskName??"*",!0),r(bt,G.thresholdMs??3e4,!0),r(ee,G.lookbackMinutes??30,!0);break;case"task_failure_rate":r(Ye,G.taskName??"*",!0),r(Se,G.thresholdPercent??10,!0),r(ee,G.lookbackMinutes??60,!0),r(ht,G.minExecutions??5,!0);break;case"throughput_drop":r(Fe,G.dropPercent??50,!0),r(ee,G.lookbackMinutes??15,!0),r(lt,G.baselineWindowMinutes??60,!0);break;case"endpoint_error_rate":r(at,G.endpoint??"*",!0),r(Se,G.thresholdPercent??2,!0),r(ee,G.lookbackMinutes??10,!0),r(Re,G.minRequests??20,!0);break;case"new_error":r(st,(G.ignorePatterns||[]).join(", "),!0);break;case"error_regression":r(At,G.includeArchived??!0,!0);break;case"impact_score_critical":case"impact_score_high":case"impact_score_medium":r(Re,G.minRequests??50,!0);break;case"ai_trace_cost":r(nt,G.traceName??"*",!0),r(mt,G.thresholdCost??.5,!0);break}}function U(){switch(e(X)){case"error_rate_threshold":return{thresholdPercent:e(Se),lookbackMinutes:e(ee),minRequests:e(Re)};case"endpoint_p95_threshold":case"endpoint_p99_threshold":return{endpoint:e(at),thresholdMs:e(bt),lookbackMinutes:e(ee)};case"apdex_drop":return{thresholdApdex:e(Rt),lookbackMinutes:e(ee),minRequests:e(Re)};case"metric_threshold":return{metricName:e(Ct),operator:e(Ce),thresholdValue:e(Dt),aggregation:e(wt),lookbackMinutes:e(ee),tags:{}};case"no_data":return{dataType:e(it),silenceMinutes:e(ze)};case"error_count_threshold":return{thresholdCount:e(ot),lookbackMinutes:e(ee)};case"task_duration_threshold":return{taskName:e(Ye),thresholdMs:e(bt),lookbackMinutes:e(ee)};case"task_failure_rate":return{taskName:e(Ye),thresholdPercent:e(Se),lookbackMinutes:e(ee),minExecutions:e(ht)};case"throughput_drop":return{dropPercent:e(Fe),lookbackMinutes:e(ee),baselineWindowMinutes:e(lt)};case"endpoint_error_rate":return{endpoint:e(at),thresholdPercent:e(Se),lookbackMinutes:e(ee),minRequests:e(Re)};case"new_error":return{ignorePatterns:e(st).split(",").map(G=>G.trim()).filter(G=>G)};case"error_regression":return{includeArchived:e(At)};case"impact_score_critical":case"impact_score_high":case"impact_score_medium":return{minRequests:e(Re)};case"ai_trace_cost":return{traceName:e(nt),thresholdCost:e(mt)};default:return{}}}async function ne(){r(xt,!0),r(gt,"");try{const We={channelId:parseInt(e(Te)),name:e(je),ruleType:e(X),config:U(),cooldownMinutes:e(He),severity:e(ke)};e(Tt)?(await Bt.put(`/notification-rules/${J.rule.id}`,We,{projectId:zt.currentProjectId??void 0}),Mt.success("Successfully updated the Rule",{position:"top-center"})):(await Bt.post("/notification-rules",We,{projectId:zt.currentProjectId??void 0}),Mt.success("Successfully created the Rule",{position:"top-center"})),J.onSaved()}catch(We){r(gt,We instanceof Error?We.message:"Failed to save rule",!0)}finally{r(xt,!1)}}function Xe(We){We&&J.rule?Ut(J.rule):Yt(),rt(We)}ta(()=>{rt()&&J.rule?Ut(J.rule):rt()&&!J.rule&&Yt()});var Ft=$(),lr=s(Ft);n(lr,()=>Nr,(We,G)=>{G(We,{get open(){return rt()},onOpenChange:Xe,children:(er,Fr)=>{var Lr=$(),Dr=s(Lr);n(Dr,()=>Cr,(Ar,_r)=>{_r(Ar,{class:"max-w-lg max-h-[85vh] overflow-y-auto",children:(Pr,Or)=>{var Er=Mo(),fr=s(Er);n(fr,()=>Sr,(D,oe)=>{oe(D,{children:(C,ae)=>{var d=oo(),i=s(d);n(i,()=>Rr,(A,m)=>{m(A,{children:(b,y)=>{l();var f=o();fe(()=>$e(f,e(Tt)?"Edit Rule":"New Rule")),t(b,f)},$$slots:{default:!0}})});var p=a(i,2);n(p,()=>Ir,(A,m)=>{m(A,{children:(b,y)=>{l();var f=o();fe(()=>$e(f,e(Tt)?"Update the notification rule configuration":"Configure a new notification rule")),t(b,f)},$$slots:{default:!0}})}),t(C,d)},$$slots:{default:!0}})});var dr=a(fr,2),yr=v(dr),$r=v(yr);T($r,{for:"rule-name",children:(D,oe)=>{l();var C=o("Name");t(D,C)},$$slots:{default:!0}});var qr=a($r,2);H(qr,{id:"rule-name",placeholder:"e.g. High Error Rate",required:!0,get value(){return e(je)},set value(D){r(je,D,!0)}}),c(yr);var pr=a(yr,2),xr=v(pr);T(xr,{for:"rule-channel",children:(D,oe)=>{l();var C=o("Channel");t(D,C)},$$slots:{default:!0}});var Ur=a(xr,2);n(Ur,()=>ur,(D,oe)=>{oe(D,{type:"single",get value(){return e(Te)},set value(C){r(Te,C,!0)},children:(C,ae)=>{var d=lo(),i=s(d);n(i,()=>vr,(A,m)=>{m(A,{class:"w-full",children:(b,y)=>{l();var f=o();fe(h=>$e(f,h),[()=>J.channels.find(h=>h.id.toString()===e(Te))?.name||"Select channel"]),t(b,f)},$$slots:{default:!0}})});var p=a(i,2);n(p,()=>cr,(A,m)=>{m(A,{children:(b,y)=>{var f=$(),h=s(f);Vt(h,17,()=>J.channels,Gt,(W,g)=>{var S=$(),E=s(S);{let Q=Qt(()=>e(g).id.toString());n(E,()=>Jt,(j,x)=>{x(j,{get value(){return e(Q)},children:(z,P)=>{l();var k=o();fe(()=>$e(k,e(g).name)),t(z,k)},$$slots:{default:!0}})})}t(W,S)}),t(b,f)},$$slots:{default:!0}})}),t(C,d)},$$slots:{default:!0}})}),c(pr);var kr=a(pr,2),Le=v(kr);T(Le,{for:"rule-type",children:(D,oe)=>{l();var C=o("Rule Type");t(D,C)},$$slots:{default:!0}});var ut=a(Le,2);n(ut,()=>ur,(D,oe)=>{oe(D,{type:"single",get value(){return e(X)},set value(C){r(X,C,!0)},children:(C,ae)=>{var d=so(),i=s(d);n(i,()=>vr,(A,m)=>{m(A,{class:"w-full",children:(b,y)=>{l();var f=o();fe(h=>$e(f,h),[()=>Ht.find(h=>h.value===e(X))?.label||"Select type"]),t(b,f)},$$slots:{default:!0}})});var p=a(i,2);n(p,()=>cr,(A,m)=>{m(A,{children:(b,y)=>{var f=$(),h=s(f);Vt(h,17,()=>e(Kt),Gt,(W,g)=>{var S=$(),E=s(S);n(E,()=>Jt,(Q,j)=>{j(Q,{get value(){return e(g).value},children:(x,z)=>{l();var P=o();fe(()=>$e(P,e(g).label)),t(x,P)},$$slots:{default:!0}})}),t(W,S)}),t(b,f)},$$slots:{default:!0}})}),t(C,d)},$$slots:{default:!0}})}),c(kr);var et=a(kr,2);{var Zt=D=>{var oe=$(),C=s(oe);n(C,()=>va,(ae,d)=>{d(ae,{class:"bg-amber-50 border-amber-200 text-amber-900 dark:bg-amber-950/50 dark:border-amber-800 dark:text-amber-200 ",children:(i,p)=>{var A=no(),m=s(A);Da(m,{class:"text-amber-600 dark:text-amber-400"});var b=a(m,2);n(b,()=>ca,(y,f)=>{f(y,{class:"text-amber-800 dark:text-amber-300",children:(h,W)=>{l();var g=o();fe(()=>$e(g,Ot[e(X)])),t(h,g)},$$slots:{default:!0}})}),t(i,A)},$$slots:{default:!0}})}),t(D,oe)};Z(et,D=>{Ot[e(X)]&&D(Zt)})}var Pt=a(et,2),dt=a(v(Pt),2);{var tt=D=>{var oe=io(),C=s(oe),ae=v(C);T(ae,{for:"cfg-threshold",children:(f,h)=>{l();var W=o("Threshold (%)");t(f,W)},$$slots:{default:!0}});var d=a(ae,2);H(d,{id:"cfg-threshold",type:"number",step:"0.1",min:"0",get value(){return e(Se)},set value(f){r(Se,f,!0)}}),c(C);var i=a(C,2),p=v(i);T(p,{for:"cfg-lookback",children:(f,h)=>{l();var W=o("Lookback (minutes)");t(f,W)},$$slots:{default:!0}});var A=a(p,2);H(A,{id:"cfg-lookback",type:"number",min:"1",get value(){return e(ee)},set value(f){r(ee,f,!0)}}),c(i);var m=a(i,2),b=v(m);T(b,{for:"cfg-min-req",children:(f,h)=>{l();var W=o("Min Requests");t(f,W)},$$slots:{default:!0}});var y=a(b,2);H(y,{id:"cfg-min-req",type:"number",min:"1",get value(){return e(Re)},set value(f){r(Re,f,!0)}}),c(m),t(D,oe)},Qe=D=>{var oe=$(),C=s(oe);{var ae=i=>{var p=uo(),A=s(p),m=v(A);T(m,{for:"cfg-endpoint",children:(E,Q)=>{l();var j=o("Endpoint (* for all)");t(E,j)},$$slots:{default:!0}});var b=a(m,2);H(b,{id:"cfg-endpoint",placeholder:"GET /api/users",get value(){return e(at)},set value(E){r(at,E,!0)}}),c(A);var y=a(A,2),f=v(y);T(f,{for:"cfg-threshold-ms",children:(E,Q)=>{l();var j=o("Threshold (ms)");t(E,j)},$$slots:{default:!0}});var h=a(f,2);H(h,{id:"cfg-threshold-ms",type:"number",min:"1",get value(){return e(bt)},set value(E){r(bt,E,!0)}}),c(y);var W=a(y,2),g=v(W);T(g,{for:"cfg-lookback-p",children:(E,Q)=>{l();var j=o("Lookback (minutes)");t(E,j)},$$slots:{default:!0}});var S=a(g,2);H(S,{id:"cfg-lookback-p",type:"number",min:"1",get value(){return e(ee)},set value(E){r(ee,E,!0)}}),c(W),t(i,p)},d=i=>{var p=$(),A=s(p);{var m=y=>{var f=vo(),h=s(f),W=v(h);T(W,{for:"cfg-apdex",children:(P,k)=>{l();var pe=o("Apdex Threshold");t(P,pe)},$$slots:{default:!0}});var g=a(W,2);H(g,{id:"cfg-apdex",type:"number",step:"0.01",min:"0",max:"1",get value(){return e(Rt)},set value(P){r(Rt,P,!0)}}),c(h);var S=a(h,2),E=v(S);T(E,{for:"cfg-lookback-a",children:(P,k)=>{l();var pe=o("Lookback (minutes)");t(P,pe)},$$slots:{default:!0}});var Q=a(E,2);H(Q,{id:"cfg-lookback-a",type:"number",min:"1",get value(){return e(ee)},set value(P){r(ee,P,!0)}}),c(S);var j=a(S,2),x=v(j);T(x,{for:"cfg-min-req-a",children:(P,k)=>{l();var pe=o("Min Requests");t(P,pe)},$$slots:{default:!0}});var z=a(x,2);H(z,{id:"cfg-min-req-a",type:"number",min:"1",get value(){return e(Re)},set value(P){r(Re,P,!0)}}),c(j),t(y,f)},b=y=>{var f=$(),h=s(f);{var W=S=>{var E=fo(),Q=s(E),j=v(Q);T(j,{for:"cfg-metric",children:(F,be)=>{l();var ce=o("Metric Name");t(F,ce)},$$slots:{default:!0}});var x=a(j,2);H(x,{id:"cfg-metric",placeholder:"cpu.used_pcnt",get value(){return e(Ct)},set value(F){r(Ct,F,!0)}}),c(Q);var z=a(Q,2),P=v(z);T(P,{for:"cfg-operator",children:(F,be)=>{l();var ce=o("Operator");t(F,ce)},$$slots:{default:!0}});var k=a(P,2);n(k,()=>ur,(F,be)=>{be(F,{type:"single",get value(){return e(Ce)},set value(ce){r(Ce,ce,!0)},children:(ce,de)=>{var K=co(),xe=s(K);n(xe,()=>vr,(_e,N)=>{N(_e,{class:"w-full",children:(L,he)=>{l();var O=o();fe(q=>$e(O,q),[()=>qt.find(q=>q.value===e(Ce))?.label||e(Ce)]),t(L,O)},$$slots:{default:!0}})});var se=a(xe,2);n(se,()=>cr,(_e,N)=>{N(_e,{children:(L,he)=>{var O=$(),q=s(O);Vt(q,17,()=>qt,Gt,(re,R)=>{var me=$(),Pe=s(me);n(Pe,()=>Jt,(w,ie)=>{ie(w,{get value(){return e(R).value},children:(Y,Ie)=>{l();var le=o();fe(()=>$e(le,e(R).label)),t(Y,le)},$$slots:{default:!0}})}),t(re,me)}),t(L,O)},$$slots:{default:!0}})}),t(ce,K)},$$slots:{default:!0}})}),c(z);var pe=a(z,2),ue=v(pe);T(ue,{for:"cfg-value",children:(F,be)=>{l();var ce=o("Threshold Value");t(F,ce)},$$slots:{default:!0}});var ve=a(ue,2);H(ve,{id:"cfg-value",type:"number",step:"0.1",get value(){return e(Dt)},set value(F){r(Dt,F,!0)}}),c(pe);var B=a(pe,2),I=v(B);T(I,{for:"cfg-agg",children:(F,be)=>{l();var ce=o("Aggregation");t(F,ce)},$$slots:{default:!0}});var M=a(I,2);n(M,()=>ur,(F,be)=>{be(F,{type:"single",get value(){return e(wt)},set value(ce){r(wt,ce,!0)},children:(ce,de)=>{var K=_o(),xe=s(K);n(xe,()=>vr,(_e,N)=>{N(_e,{class:"w-full",children:(L,he)=>{l();var O=o();fe(q=>$e(O,q),[()=>Xt.find(q=>q.value===e(wt))?.label||e(wt)]),t(L,O)},$$slots:{default:!0}})});var se=a(xe,2);n(se,()=>cr,(_e,N)=>{N(_e,{children:(L,he)=>{var O=$(),q=s(O);Vt(q,17,()=>Xt,Gt,(re,R)=>{var me=$(),Pe=s(me);n(Pe,()=>Jt,(w,ie)=>{ie(w,{get value(){return e(R).value},children:(Y,Ie)=>{l();var le=o();fe(()=>$e(le,e(R).label)),t(Y,le)},$$slots:{default:!0}})}),t(re,me)}),t(L,O)},$$slots:{default:!0}})}),t(ce,K)},$$slots:{default:!0}})}),c(B);var te=a(B,2),V=v(te);T(V,{for:"cfg-lookback-m",children:(F,be)=>{l();var ce=o("Lookback (minutes)");t(F,ce)},$$slots:{default:!0}});var ge=a(V,2);H(ge,{id:"cfg-lookback-m",type:"number",min:"1",get value(){return e(ee)},set value(F){r(ee,F,!0)}}),c(te),t(S,E)},g=S=>{var E=$(),Q=s(E);{var j=z=>{var P=po(),k=s(P),pe=v(k);T(pe,{for:"cfg-data-type",children:(M,te)=>{l();var V=o("Data Type");t(M,V)},$$slots:{default:!0}});var ue=a(pe,2);n(ue,()=>ur,(M,te)=>{te(M,{type:"single",get value(){return e(it)},set value(V){r(it,V,!0)},children:(V,ge)=>{var F=$o(),be=s(F);n(be,()=>vr,(de,K)=>{K(de,{class:"w-full",children:(xe,se)=>{l();var _e=o();fe(N=>$e(_e,N),[()=>or.find(N=>N.value===e(it))?.label||e(it)]),t(xe,_e)},$$slots:{default:!0}})});var ce=a(be,2);n(ce,()=>cr,(de,K)=>{K(de,{children:(xe,se)=>{var _e=$(),N=s(_e);Vt(N,17,()=>or,Gt,(L,he)=>{var O=$(),q=s(O);n(q,()=>Jt,(re,R)=>{R(re,{get value(){return e(he).value},children:(me,Pe)=>{l();var w=o();fe(()=>$e(w,e(he).label)),t(me,w)},$$slots:{default:!0}})}),t(L,O)}),t(xe,_e)},$$slots:{default:!0}})}),t(V,F)},$$slots:{default:!0}})}),c(k);var ve=a(k,2),B=v(ve);T(B,{for:"cfg-silence",children:(M,te)=>{l();var V=o("Silence (minutes)");t(M,V)},$$slots:{default:!0}});var I=a(B,2);H(I,{id:"cfg-silence",type:"number",min:"1",get value(){return e(ze)},set value(M){r(ze,M,!0)}}),c(ve),t(z,P)},x=z=>{var P=$(),k=s(P);{var pe=ve=>{var B=ho(),I=s(B),M=v(I);T(M,{for:"cfg-count",children:(be,ce)=>{l();var de=o("Threshold Count");t(be,de)},$$slots:{default:!0}});var te=a(M,2);H(te,{id:"cfg-count",type:"number",min:"1",get value(){return e(ot)},set value(be){r(ot,be,!0)}}),c(I);var V=a(I,2),ge=v(V);T(ge,{for:"cfg-lookback-ec",children:(be,ce)=>{l();var de=o("Lookback (minutes)");t(be,de)},$$slots:{default:!0}});var F=a(ge,2);H(F,{id:"cfg-lookback-ec",type:"number",min:"1",get value(){return e(ee)},set value(be){r(ee,be,!0)}}),c(V),t(ve,B)},ue=ve=>{var B=$(),I=s(B);{var M=V=>{var ge=mo(),F=s(ge),be=v(F);T(be,{for:"cfg-task",children:(L,he)=>{l();var O=o("Task Name (* for all)");t(L,O)},$$slots:{default:!0}});var ce=a(be,2);H(ce,{id:"cfg-task",placeholder:"sync_users",get value(){return e(Ye)},set value(L){r(Ye,L,!0)}}),c(F);var de=a(F,2),K=v(de);T(K,{for:"cfg-threshold-ms-t",children:(L,he)=>{l();var O=o("Threshold (ms)");t(L,O)},$$slots:{default:!0}});var xe=a(K,2);H(xe,{id:"cfg-threshold-ms-t",type:"number",min:"1",get value(){return e(bt)},set value(L){r(bt,L,!0)}}),c(de);var se=a(de,2),_e=v(se);T(_e,{for:"cfg-lookback-td",children:(L,he)=>{l();var O=o("Lookback (minutes)");t(L,O)},$$slots:{default:!0}});var N=a(_e,2);H(N,{id:"cfg-lookback-td",type:"number",min:"1",get value(){return e(ee)},set value(L){r(ee,L,!0)}}),c(se),t(V,ge)},te=V=>{var ge=$(),F=s(ge);{var be=de=>{var K=go(),xe=s(K),se=v(xe);T(se,{for:"cfg-task-f",children:(w,ie)=>{l();var Y=o("Task Name (* for all)");t(w,Y)},$$slots:{default:!0}});var _e=a(se,2);H(_e,{id:"cfg-task-f",placeholder:"sync_users",get value(){return e(Ye)},set value(w){r(Ye,w,!0)}}),c(xe);var N=a(xe,2),L=v(N);T(L,{for:"cfg-threshold-pct",children:(w,ie)=>{l();var Y=o("Threshold (%)");t(w,Y)},$$slots:{default:!0}});var he=a(L,2);H(he,{id:"cfg-threshold-pct",type:"number",step:"0.1",min:"0",get value(){return e(Se)},set value(w){r(Se,w,!0)}}),c(N);var O=a(N,2),q=v(O);T(q,{for:"cfg-lookback-tf",children:(w,ie)=>{l();var Y=o("Lookback (minutes)");t(w,Y)},$$slots:{default:!0}});var re=a(q,2);H(re,{id:"cfg-lookback-tf",type:"number",min:"1",get value(){return e(ee)},set value(w){r(ee,w,!0)}}),c(O);var R=a(O,2),me=v(R);T(me,{for:"cfg-min-exec",children:(w,ie)=>{l();var Y=o("Min Executions");t(w,Y)},$$slots:{default:!0}});var Pe=a(me,2);H(Pe,{id:"cfg-min-exec",type:"number",min:"1",get value(){return e(ht)},set value(w){r(ht,w,!0)}}),c(R),t(de,K)},ce=de=>{var K=$(),xe=s(K);{var se=N=>{var L=bo(),he=s(L),O=v(he);T(O,{for:"cfg-drop",children:(Y,Ie)=>{l();var le=o("Drop (%)");t(Y,le)},$$slots:{default:!0}});var q=a(O,2);H(q,{id:"cfg-drop",type:"number",step:"0.1",min:"0",get value(){return e(Fe)},set value(Y){r(Fe,Y,!0)}}),c(he);var re=a(he,2),R=v(re);T(R,{for:"cfg-lookback-tp",children:(Y,Ie)=>{l();var le=o("Lookback (minutes)");t(Y,le)},$$slots:{default:!0}});var me=a(R,2);H(me,{id:"cfg-lookback-tp",type:"number",min:"1",get value(){return e(ee)},set value(Y){r(ee,Y,!0)}}),c(re);var Pe=a(re,2),w=v(Pe);T(w,{for:"cfg-baseline",children:(Y,Ie)=>{l();var le=o("Baseline Window (minutes)");t(Y,le)},$$slots:{default:!0}});var ie=a(w,2);H(ie,{id:"cfg-baseline",type:"number",min:"1",get value(){return e(lt)},set value(Y){r(lt,Y,!0)}}),c(Pe),t(N,L)},_e=N=>{var L=$(),he=s(L);{var O=re=>{var R=Po(),me=s(R),Pe=v(me);T(Pe,{for:"cfg-endpoint-er",children:(we,ye)=>{l();var Ne=o("Endpoint");t(we,Ne)},$$slots:{default:!0}});var w=a(Pe,2);H(w,{id:"cfg-endpoint-er",placeholder:"POST /api/checkout",get value(){return e(at)},set value(we){r(at,we,!0)}}),c(me);var ie=a(me,2),Y=v(ie);T(Y,{for:"cfg-threshold-er",children:(we,ye)=>{l();var Ne=o("Threshold (%)");t(we,Ne)},$$slots:{default:!0}});var Ie=a(Y,2);H(Ie,{id:"cfg-threshold-er",type:"number",step:"0.1",min:"0",get value(){return e(Se)},set value(we){r(Se,we,!0)}}),c(ie);var le=a(ie,2),ft=v(le);T(ft,{for:"cfg-lookback-er",children:(we,ye)=>{l();var Ne=o("Lookback (minutes)");t(we,Ne)},$$slots:{default:!0}});var Ze=a(ft,2);H(Ze,{id:"cfg-lookback-er",type:"number",min:"1",get value(){return e(ee)},set value(we){r(ee,we,!0)}}),c(le);var Ee=a(le,2),Ae=v(Ee);T(Ae,{for:"cfg-min-req-er",children:(we,ye)=>{l();var Ne=o("Min Requests");t(we,Ne)},$$slots:{default:!0}});var Me=a(Ae,2);H(Me,{id:"cfg-min-req-er",type:"number",min:"1",get value(){return e(Re)},set value(we){r(Re,we,!0)}}),c(Ee),t(re,R)},q=re=>{var R=$(),me=s(R);{var Pe=ie=>{var Y=yo(),Ie=v(Y);T(Ie,{for:"cfg-ignore",children:(ft,Ze)=>{l();var Ee=o("Ignore Patterns (optional, comma-separated)");t(ft,Ee)},$$slots:{default:!0}});var le=a(Ie,2);H(le,{id:"cfg-ignore",placeholder:"*timeout*, *context canceled*",get value(){return e(st)},set value(ft){r(st,ft,!0)}}),c(Y),t(ie,Y)},w=ie=>{var Y=$(),Ie=s(Y);{var le=Ze=>{var Ee=xo(),Ae=v(Ee);ua(Ae);var Me=a(Ae,2);T(Me,{for:"cfg-include-archived",children:(we,ye)=>{l();var Ne=o("Include archived exceptions");t(we,Ne)},$$slots:{default:!0}}),c(Ee),fa(Ae,()=>e(At),we=>r(At,we)),t(Ze,Ee)},ft=Ze=>{var Ee=$(),Ae=s(Ee);{var Me=ye=>{var Ne=ko(),Je=v(Ne);T(Je,{for:"cfg-min-req-impact",children:(Oe,$t)=>{l();var tr=o("Min Requests");t(Oe,tr)},$$slots:{default:!0}});var Et=a(Je,2);H(Et,{id:"cfg-min-req-impact",type:"number",min:"1",get value(){return e(Re)},set value(Oe){r(Re,Oe,!0)}}),c(Ne),t(ye,Ne)},we=ye=>{var Ne=$(),Je=s(Ne);{var Et=Oe=>{var $t=wo(),tr=s($t),hr=v(tr);T(hr,{for:"cfg-trace-name",children:(rr,jt)=>{l();var ar=o("Trace Name (* for all)");t(rr,ar)},$$slots:{default:!0}});var pt=a(hr,2);H(pt,{id:"cfg-trace-name",placeholder:"Customer Support Agent",get value(){return e(nt)},set value(rr){r(nt,rr,!0)}}),c(tr);var yt=a(tr,2),sr=v(yt);T(sr,{for:"cfg-threshold-cost",children:(rr,jt)=>{l();var ar=o("Cost Threshold ($)");t(rr,ar)},$$slots:{default:!0}});var ir=a(sr,2);H(ir,{id:"cfg-threshold-cost",type:"number",step:"0.01",min:"0",get value(){return e(mt)},set value(rr){r(mt,rr,!0)}}),c(yt),t(Oe,$t)};Z(Je,Oe=>{e(X)==="ai_trace_cost"&&Oe(Et)},!0)}t(ye,Ne)};Z(Ae,ye=>{e(X)==="impact_score_critical"||e(X)==="impact_score_high"||e(X)==="impact_score_medium"?ye(Me):ye(we,!1)},!0)}t(Ze,Ee)};Z(Ie,Ze=>{e(X)==="error_regression"?Ze(le):Ze(ft,!1)},!0)}t(ie,Y)};Z(me,ie=>{e(X)==="new_error"?ie(Pe):ie(w,!1)},!0)}t(re,R)};Z(he,re=>{e(X)==="endpoint_error_rate"?re(O):re(q,!1)},!0)}t(N,L)};Z(xe,N=>{e(X)==="throughput_drop"?N(se):N(_e,!1)},!0)}t(de,K)};Z(F,de=>{e(X)==="task_failure_rate"?de(be):de(ce,!1)},!0)}t(V,ge)};Z(I,V=>{e(X)==="task_duration_threshold"?V(M):V(te,!1)},!0)}t(ve,B)};Z(k,ve=>{e(X)==="error_count_threshold"?ve(pe):ve(ue,!1)},!0)}t(z,P)};Z(Q,z=>{e(X)==="no_data"?z(j):z(x,!1)},!0)}t(S,E)};Z(h,S=>{e(X)==="metric_threshold"?S(W):S(g,!1)},!0)}t(y,f)};Z(A,y=>{e(X)==="apdex_drop"?y(m):y(b,!1)},!0)}t(i,p)};Z(C,i=>{e(X)==="endpoint_p95_threshold"||e(X)==="endpoint_p99_threshold"?i(ae):i(d,!1)},!0)}t(D,oe)};Z(dt,D=>{e(X)==="error_rate_threshold"?D(tt):D(Qe,!1)})}c(Pt);var qe=a(Pt,2),Ue=v(qe);T(Ue,{for:"rule-cooldown",children:(D,oe)=>{l();var C=o("Cooldown (minutes)");t(D,C)},$$slots:{default:!0}});var Be=a(Ue,2);H(Be,{id:"rule-cooldown",type:"number",min:"1",get value(){return e(He)},set value(D){r(He,D,!0)}}),c(qe);var De=a(qe,2),vt=v(De);T(vt,{for:"rule-severity",children:(D,oe)=>{l();var C=o("Severity");t(D,C)},$$slots:{default:!0}});var Ve=a(vt,2);n(Ve,()=>ur,(D,oe)=>{oe(D,{type:"single",get value(){return e(ke)},set value(C){r(ke,C,!0)},children:(C,ae)=>{var d=To(),i=s(d);n(i,()=>vr,(A,m)=>{m(A,{class:"w-full",children:(b,y)=>{l();var f=o();fe(h=>$e(f,h),[()=>kt.find(h=>h.value===e(ke))?.label||"Auto (default)"]),t(b,f)},$$slots:{default:!0}})});var p=a(i,2);n(p,()=>cr,(A,m)=>{m(A,{children:(b,y)=>{var f=$(),h=s(f);Vt(h,17,()=>kt,Gt,(W,g)=>{var S=$(),E=s(S);n(E,()=>Jt,(Q,j)=>{j(Q,{get value(){return e(g).value},children:(x,z)=>{l();var P=o();fe(()=>$e(P,e(g).label)),t(x,P)},$$slots:{default:!0}})}),t(W,S)}),t(b,f)},$$slots:{default:!0}})}),t(C,d)},$$slots:{default:!0}})}),c(De);var ct=a(De,2);{var Ge=D=>{var oe=Co(),C=v(oe,!0);c(oe),fe(()=>$e(C,e(gt))),t(D,oe)};Z(ct,D=>{e(gt)&&D(Ge)})}c(dr);var _t=a(dr,2);n(_t,()=>Mr,(D,oe)=>{oe(D,{children:(C,ae)=>{var d=Io(),i=s(d);n(i,()=>aa,(A,m)=>{m(A,{get disabled(){return e(xt)},children:(b,y)=>{l();var f=o("Cancel");t(b,f)},$$slots:{default:!0}})});var p=a(i,2);Ke(p,{onclick:ne,get disabled(){return e(xt)},children:(A,m)=>{var b=$(),y=s(b);{var f=W=>{var g=So(),S=s(g);$a(S,{class:"mr-2 h-4 w-4"});var E=a(S,2);{var Q=x=>{var z=o("Updating...");t(x,z)},j=x=>{var z=o("Update Rule");t(x,z)};Z(E,x=>{e(xt)?x(Q):x(j,!1)})}t(W,g)},h=W=>{var g=Ro(),S=s(g);mr(S,{class:"mr-2 h-4 w-4"});var E=a(S,2);{var Q=x=>{var z=o("Creating...");t(x,z)},j=x=>{var z=o("New Rule");t(x,z)};Z(E,x=>{e(xt)?x(Q):x(j,!1)})}t(W,g)};Z(y,W=>{e(Tt)?W(f):W(h,!1)})}t(A,b)},$$slots:{default:!0}}),t(C,d)},$$slots:{default:!0}})}),ia("submit",dr,D=>{D.preventDefault(),ne()}),t(Pr,Er)},$$slots:{default:!0}})}),t(er,Lr)},$$slots:{default:!0}})}),t(Nt,Ft),br()}var Do=u("<!> <!>",1),Ao=u("<!> ",1),Eo=u('<!> <div class="grid gap-2"><!> <!></div> <!>',1);function jo(Nt,J){gr(J,!0);let rt=ra(J,"open",15),je=_(!1);const Te=[{label:"30 minutes",minutes:30},{label:"1 hour",minutes:60},{label:"4 hours",minutes:240},{label:"8 hours",minutes:480},{label:"24 hours",minutes:1440}];async function X(kt){if(J.ruleId){r(je,!0);try{await Bt.post(`/notification-rules/${J.ruleId}/snooze`,{durationMinutes:kt},{projectId:zt.currentProjectId??void 0}),Mt.success("Rule snoozed",{position:"top-center"}),J.onSaved()}catch{Mt.error("Failed to snooze rule",{position:"top-center"})}finally{r(je,!1)}}}async function He(){if(J.ruleId){r(je,!0);try{await Bt.post(`/notification-rules/${J.ruleId}/snooze`,{durationMinutes:0},{projectId:zt.currentProjectId??void 0}),Mt.success("Snooze cleared",{position:"top-center"}),J.onSaved()}catch{Mt.error("Failed to clear snooze",{position:"top-center"})}finally{r(je,!1)}}}function ke(kt){rt(kt)}var xt=$(),gt=s(xt);n(gt,()=>Nr,(kt,Se)=>{Se(kt,{get open(){return rt()},onOpenChange:ke,children:(ee,Re)=>{var at=$(),bt=s(at);n(bt,()=>Cr,(Rt,Ct)=>{Ct(Rt,{class:"max-w-sm",children:(Ce,Dt)=>{var wt=Eo(),it=s(wt);n(it,()=>Sr,(Fe,lt)=>{lt(Fe,{children:(st,At)=>{var nt=Do(),mt=s(nt);n(mt,()=>Rr,(Ht,Lt)=>{Lt(Ht,{children:(Kt,Ot)=>{l();var qt=o("Snooze Rule");t(Kt,qt)},$$slots:{default:!0}})});var Tt=a(mt,2);n(Tt,()=>Ir,(Ht,Lt)=>{Lt(Ht,{children:(Kt,Ot)=>{l();var qt=o("Temporarily silence this rule for a set duration");t(Kt,qt)},$$slots:{default:!0}})}),t(st,nt)},$$slots:{default:!0}})});var ze=a(it,2),ot=v(ze);Vt(ot,17,()=>Te,Gt,(Fe,lt)=>{Ke(Fe,{variant:"outline",class:"w-full justify-start",get disabled(){return e(je)},onclick:()=>X(e(lt).minutes),children:(st,At)=>{var nt=Ao(),mt=s(nt);_a(mt,{class:"mr-2 h-4 w-4"});var Tt=a(mt);fe(()=>$e(Tt,` ${e(lt).label??""}`)),t(st,nt)},$$slots:{default:!0}})});var Ye=a(ot,2);Ke(Ye,{variant:"ghost",class:"w-full justify-start text-muted-foreground",get disabled(){return e(je)},onclick:He,children:(Fe,lt)=>{l();var st=o("Clear snooze");t(Fe,st)},$$slots:{default:!0}}),c(ze);var ht=a(ze,2);n(ht,()=>Mr,(Fe,lt)=>{lt(Fe,{children:(st,At)=>{var nt=$(),mt=s(nt);n(mt,()=>aa,(Tt,Ht)=>{Ht(Tt,{get disabled(){return e(je)},children:(Lt,Kt)=>{l();var Ot=o("Cancel");t(Lt,Ot)},$$slots:{default:!0}})}),t(st,nt)},$$slots:{default:!0}})}),t(Ce,wt)},$$slots:{default:!0}})}),t(ee,at)},$$slots:{default:!0}})}),t(Nt,xt),br()}var zo=u("<!> <!> <!>",1),Lo=u("<!> New Channel",1),Oo=u("<!> New Rule",1),qo=u("<!> <!>",1),Uo=u('<div class="flex justify-center py-12"><!></div>'),Ho=u("<!> Create your first Channel",1),Fo=u('<div class="flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground"><p class="mb-4">No channels yet. Create one to get started.</p> <!></div>'),Wo=u("<!> <!> <!> <!> <!>",1),Bo=u('<div class="flex justify-end gap-1"><!> <!> <!></div>'),Vo=u("<!> <!> <!> <!> <!>",1),Go=u("<!> <!>",1),Ko=u('<div class="overflow-hidden rounded-md border"><!></div>'),Yo=u('<div class="flex justify-center py-12"><!></div>'),Zo=u("<!> Create your first Rule",1),Qo=u('<div class="flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground"><p class="mb-4">No rules yet. Create one to get started.</p> <!></div>'),Jo=u("<!> <!> <!> <!> <!>",1),Xo=u('<div class="flex justify-end gap-1"><!> <!> <!> <!></div>'),el=u("<!> <!> <!> <!> <!>",1),tl=u("<!> <!>",1),rl=u('<div class="overflow-hidden rounded-md border"><!></div>'),al=u('<div class="flex h-full items-center justify-center"><!></div>'),ol=u("<!> <!> <!> <!> <!> <!>",1),ll=u('<a class="text-blue-600 hover:underline dark:text-blue-400"> </a>'),sl=u("<!> <!> <!> <!> <!> <!>",1),nl=u("<!> <!>",1),dl=u('<div class="flex flex-col gap-2 pt-2 sm:flex-row sm:items-center sm:justify-between"><!> <div class="w-full sm:w-auto"><!></div></div> <div class="overflow-hidden rounded-md border"><!></div> <!>',1),il=u("<!> <!>",1),ul=u("<!> <!>",1),vl=u("<!> <!>",1),cl=u("<!> <!>",1),_l=u("<!> <!>",1),fl=u("<!> <!>",1),$l=u("<!> <!>",1),pl=u("<!> <!>",1),hl=u("<!> <!>",1),ml=u("<!> <!>",1),gl=u('<p class="text-sm text-destructive"> </p>'),bl=u("<!> ",1),Pl=u("<!> <!>",1),yl=u("<!> <!> <!>",1),xl=u('<div class="space-y-2"><div><h1 class="text-2xl font-semibold tracking-tight">Alerts</h1></div> <div class="flex items-center justify-between"><!> <!></div> <!> <!></div> <!> <!> <!> <!> <!> <!> <!>',1);function rs(Nt,J){gr(J,!0);const rt={error_rate_threshold:"Error Rate",endpoint_p95_threshold:"Endpoint P95",endpoint_p99_threshold:"Endpoint P99",apdex_drop:"Apdex Drop",metric_threshold:"Metric Threshold",no_data:"No Data",error_count_threshold:"Error Count",task_duration_threshold:"Task Duration",task_failure_rate:"Task Failure Rate",throughput_drop:"Throughput Drop",endpoint_error_rate:"Endpoint Error Rate",new_error:"New Issue",error_regression:"Error Regression",impact_score_critical:"Impact Score Critical",impact_score_high:"Impact Score High",impact_score_medium:"Impact Score Medium"},je={email:"Email",webhook:"Webhook",slack:"Slack",github:"GitHub",pushover:"Pushover"},Te={channels:"Channels define where your notifications are delivered — such as Email, Slack, Webhooks, GitHub Issues, or Pushover. Create a channel first, then attach it to a rule.",rules:"Rules define when notifications are triggered. Each rule monitors a specific condition and sends an alert through the attached channel when that condition is met.",history:"A log of all notifications that have been sent, including their status and the rule that triggered them."},X=Qt(()=>ga.url.searchParams.get("tab")||"channels");function He(d){const i=new URL(window.location.href);i.searchParams.set("tab",d),d!=="history"&&(i.searchParams.delete("preset"),i.searchParams.delete("from"),i.searchParams.delete("to")),ba(i.toString(),{replaceState:!0,noScroll:!0}),d==="history"&&er(!1)}let ke=_(nr([])),xt=_(!0),gt=_(nr([])),kt=_(!0),Se=_(nr([])),ee=_(!0),Re=_(1),at=_(25),bt=_(0),Rt=_(0),Ct=_("");const Ce=Qt(ya);function Dt(){return Sa(e(Ce),"7d")}const wt=Dt(),it=sa(wt,e(Ce));let ze=_(nr(wt.preset)),ot=_(nr(jr(it.from,e(Ce)))),Ye=_(nr(jr(it.to,e(Ce)))),ht=_(nr(zr(it.from,e(Ce)))),Fe=_(nr(zr(it.to,e(Ce))));function lt(){const[d,i]=e(ht).split(":").map(Number),p=oa({year:e(ot).year,month:e(ot).month,day:e(ot).day,hour:d,minute:i},e(Ce));return la(p)}function st(){const[d,i]=e(Fe).split(":").map(Number),p=oa({year:e(Ye).year,month:e(Ye).month,day:e(Ye).day,hour:d,minute:i},e(Ce)).endOf("minute");return la(p)}function At(d=!0){const i={};i.tab="history",e(ze)?i.preset=e(ze):(i.from=lt(),i.to=st()),Ia(i,{pushToHistory:d})}let nt=_(!1),mt=_(null),Tt=_(!1),Ht=_(null),Lt=_(!1),Kt=_(null),Ot=_(!1),qt=_(null),Xt=_(!1),or=_(null),Yt=_(!1),Ut=_(null),U=_(!1),ne=_(!1),Xe=_(null),Ft=_(!1),lr=_("");async function We(){r(xt,!0);try{const d=await Bt.get("/notification-channels",{projectId:zt.currentProjectId??void 0});r(ke,d.channels||[],!0)}catch{r(ke,[],!0)}finally{r(xt,!1)}}async function G(){r(kt,!0);try{const d=await Bt.get("/notification-rules",{projectId:zt.currentProjectId??void 0});r(gt,d.rules||[],!0)}catch{r(gt,[],!0)}finally{r(kt,!1)}}async function er(d=!0){if(r(ee,!0),e(ze)){const i=Ra(e(ze),e(Ce));r(ot,jr(i.from,e(Ce)),!0),r(Ye,jr(i.to,e(Ce)),!0),r(ht,zr(i.from,e(Ce)),!0),r(Fe,zr(i.to,e(Ce)),!0)}At(d);try{const i=await Bt.post("/notification-history",{pagination:{page:e(Re),pageSize:e(at)},search:e(Ct).trim(),fromDate:lt(),toDate:st()},{projectId:zt.currentProjectId??void 0});r(Se,i.data||[],!0),r(bt,i.pagination?.total||0,!0),r(Rt,i.pagination?.totalPages||0,!0)}catch{r(Se,[],!0)}finally{r(ee,!1)}}function Fr(){r(Re,1),er(!0)}function Lr(d){r(qt,d,!0),r(Ot,!0)}async function Dr(){if(e(qt))try{await Bt.delete(`/notification-channels/${e(qt).id}`,{projectId:zt.currentProjectId??void 0}),Mt.success("Successfully deleted the Channel",{position:"top-center"}),r(Ot,!1),r(qt,null),We(),G()}catch{Mt.error("Failed to delete channel",{position:"top-center"})}}function Ar(d){r(Xe,d,!0),r(lr,""),r(ne,!0)}async function _r(){if(e(Xe)){r(Ft,!0),r(lr,"");try{await Bt.post(`/notification-channels/${e(Xe).id}/test`,{},{projectId:zt.currentProjectId??void 0}),Mt.success("Test notification sent",{position:"top-center"}),r(ne,!1),r(Xe,null)}catch(d){d.status===422?r(lr,d.message||"Validation failed",!0):(Mt.error("An unexpected error has occurred",{position:"top-center"}),r(ne,!1),r(Xe,null))}finally{r(Ft,!1)}}}function Pr(d){r(or,d,!0),r(Xt,!0)}async function Or(){if(e(or))try{await Bt.delete(`/notification-rules/${e(or).id}`,{projectId:zt.currentProjectId??void 0}),Mt.success("Successfully deleted the Rule",{position:"top-center"}),r(Xt,!1),r(or,null),G()}catch{Mt.error("Failed to delete rule",{position:"top-center"})}}function Er(d){r(Ut,d,!0),r(Yt,!0)}async function fr(){if(e(Ut)){r(U,!0);try{const d=e(Ut).enabled?"disabled":"enabled";await Bt.post(`/notification-rules/${e(Ut).id}/toggle`,{},{projectId:zt.currentProjectId??void 0}),Mt.success(`Successfully ${d} the Rule`,{position:"top-center"}),r(Yt,!1),r(Ut,null),G()}catch{Mt.error("Failed to toggle rule",{position:"top-center"})}finally{r(U,!1)}}}function dr(d){r(Kt,d,!0),r(Lt,!0)}function yr(d){r(mt,d,!0),r(nt,!0)}function $r(){r(mt,null),r(nt,!0)}function qr(d){r(Ht,d,!0),r(Tt,!0)}function pr(){r(Ht,null),r(Tt,!0)}function xr(d){const i=new Date(d),A=new Date().getTime()-i.getTime(),m=Math.floor(A/6e4);if(m<1)return"just now";if(m<60)return`${m}m ago`;const b=Math.floor(m/60);return b<24?`${b}h ago`:`${Math.floor(b/24)}d ago`}function Ur(d){return d.snoozedUntil&&new Date(d.snoozedUntil)>new Date}function kr(d){r(Re,d,!0),er(!0)}function Le(d){r(at,d,!0),r(Re,1),er(!0)}function ut(d,i,p){r(ot,d.date,!0),r(Ye,i.date,!0),r(ht,d.time,!0),r(Fe,i.time,!0),r(ze,p,!0),r(Re,1),er(!0)}function et(){const d=Dt(),i=sa(d,e(Ce));r(ze,d.preset,!0),r(ot,jr(i.from,e(Ce)),!0),r(Ye,jr(i.to,e(Ce)),!0),r(ht,zr(i.from,e(Ce)),!0),r(Fe,zr(i.to,e(Ce)),!0),r(Re,1),er(!1)}pa(()=>{window.addEventListener("popstate",et),We(),G(),e(X)==="history"&&er(!1)}),ha(()=>{typeof window<"u"&&window.removeEventListener("popstate",et)});var Zt=xl(),Pt=s(Zt),dt=a(v(Pt),2),tt=v(dt);n(tt,()=>wa,(d,i)=>{i(d,{get value(){return e(X)},onValueChange:p=>{p&&He(p)},children:(p,A)=>{var m=$(),b=s(m);n(b,()=>ka,(y,f)=>{f(y,{children:(h,W)=>{var g=zo(),S=s(g);n(S,()=>ea,(j,x)=>{x(j,{value:"channels",children:(z,P)=>{l();var k=o("Channels");t(z,k)},$$slots:{default:!0}})});var E=a(S,2);n(E,()=>ea,(j,x)=>{x(j,{value:"rules",children:(z,P)=>{l();var k=o("Rules");t(z,k)},$$slots:{default:!0}})});var Q=a(E,2);n(Q,()=>ea,(j,x)=>{x(j,{value:"history",children:(z,P)=>{l();var k=o("History");t(z,k)},$$slots:{default:!0}})}),t(h,g)},$$slots:{default:!0}})}),t(p,m)},$$slots:{default:!0}})});var Qe=a(tt,2);{var qe=d=>{Ke(d,{size:"sm",onclick:$r,children:(i,p)=>{var A=Lo(),m=s(A);mr(m,{class:"mr-1 h-4 w-4"}),l(),t(i,A)},$$slots:{default:!0}})},Ue=d=>{var i=$(),p=s(i);{var A=m=>{Ke(m,{size:"sm",onclick:pr,children:(b,y)=>{var f=Oo(),h=s(f);mr(h,{class:"mr-1 h-4 w-4"}),l(),t(b,f)},$$slots:{default:!0}})};Z(p,m=>{e(X)==="rules"&&m(A)},!0)}t(d,i)};Z(Qe,d=>{e(X)==="channels"?d(qe):d(Ue,!1)})}c(dt);var Be=a(dt,2);n(Be,()=>va,(d,i)=>{i(d,{class:"bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-950/50 dark:border-blue-800 dark:text-blue-200",children:(p,A)=>{var m=qo(),b=s(m);Na(b,{class:"text-blue-600 dark:text-blue-400"});var y=a(b,2);n(y,()=>ca,(f,h)=>{h(f,{class:"text-blue-800 dark:text-blue-300",children:(W,g)=>{l();var S=o();fe(()=>$e(S,Te[e(X)])),t(W,S)},$$slots:{default:!0}})}),t(p,m)},$$slots:{default:!0}})});var De=a(Be,2);{var vt=d=>{var i=$(),p=s(i);{var A=b=>{var y=Uo(),f=v(y);Qr(f,{size:"xlg"}),c(y),t(b,y)},m=b=>{var y=$(),f=s(y);{var h=g=>{var S=Fo(),E=a(v(S),2);Ke(E,{onclick:$r,children:(Q,j)=>{var x=Ho(),z=s(x);mr(z,{class:"mr-1 h-4 w-4"}),l(),t(Q,x)},$$slots:{default:!0}}),c(S),t(g,S)},W=g=>{var S=Ko(),E=v(S);n(E,()=>Jr,(Q,j)=>{j(Q,{children:(x,z)=>{var P=Go(),k=s(P);n(k,()=>Xr,(ue,ve)=>{ve(ue,{children:(B,I)=>{var M=$(),te=s(M);n(te,()=>Tr,(V,ge)=>{ge(V,{children:(F,be)=>{var ce=Wo(),de=s(ce);n(de,()=>It,(N,L)=>{L(N,{children:(he,O)=>{l();var q=o("Name");t(he,q)},$$slots:{default:!0}})});var K=a(de,2);n(K,()=>It,(N,L)=>{L(N,{children:(he,O)=>{l();var q=o("Type");t(he,q)},$$slots:{default:!0}})});var xe=a(K,2);n(xe,()=>It,(N,L)=>{L(N,{children:(he,O)=>{l();var q=o("Enabled");t(he,q)},$$slots:{default:!0}})});var se=a(xe,2);n(se,()=>It,(N,L)=>{L(N,{children:(he,O)=>{l();var q=o("Created");t(he,q)},$$slots:{default:!0}})});var _e=a(se,2);n(_e,()=>It,(N,L)=>{L(N,{class:"text-right",children:(he,O)=>{l();var q=o("Actions");t(he,q)},$$slots:{default:!0}})}),t(F,ce)},$$slots:{default:!0}})}),t(B,M)},$$slots:{default:!0}})});var pe=a(k,2);n(pe,()=>Hr,(ue,ve)=>{ve(ue,{children:(B,I)=>{var M=$(),te=s(M);Vt(te,17,()=>e(ke),Gt,(V,ge)=>{var F=$(),be=s(F);n(be,()=>Tr,(ce,de)=>{de(ce,{children:(K,xe)=>{var se=Vo(),_e=s(se);n(_e,()=>St,(q,re)=>{re(q,{class:"font-medium",children:(R,me)=>{l();var Pe=o();fe(()=>$e(Pe,e(ge).name)),t(R,Pe)},$$slots:{default:!0}})});var N=a(_e,2);n(N,()=>St,(q,re)=>{re(q,{children:(R,me)=>{Wt(R,{variant:"outline",children:(Pe,w)=>{l();var ie=o();fe(()=>$e(ie,je[e(ge).channelType]||e(ge).channelType)),t(Pe,ie)},$$slots:{default:!0}})},$$slots:{default:!0}})});var L=a(N,2);n(L,()=>St,(q,re)=>{re(q,{children:(R,me)=>{var Pe=$(),w=s(Pe);{var ie=Ie=>{Wt(Ie,{variant:"default",class:"bg-green-600",children:(le,ft)=>{l();var Ze=o("On");t(le,Ze)},$$slots:{default:!0}})},Y=Ie=>{Wt(Ie,{variant:"secondary",children:(le,ft)=>{l();var Ze=o("Off");t(le,Ze)},$$slots:{default:!0}})};Z(w,Ie=>{e(ge).enabled?Ie(ie):Ie(Y,!1)})}t(R,Pe)},$$slots:{default:!0}})});var he=a(L,2);n(he,()=>St,(q,re)=>{re(q,{class:"text-muted-foreground",children:(R,me)=>{l();var Pe=o();fe(w=>$e(Pe,w),[()=>xr(e(ge).createdAt)]),t(R,Pe)},$$slots:{default:!0}})});var O=a(he,2);n(O,()=>St,(q,re)=>{re(q,{class:"text-right",children:(R,me)=>{var Pe=Bo(),w=v(Pe);Ke(w,{variant:"ghost",size:"icon",onclick:()=>Ar(e(ge)),title:"Test",children:(Ie,le)=>{da(Ie,{class:"h-4 w-4"})},$$slots:{default:!0}});var ie=a(w,2);Ke(ie,{variant:"ghost",size:"icon",onclick:()=>yr(e(ge)),title:"Edit",children:(Ie,le)=>{na(Ie,{class:"h-4 w-4"})},$$slots:{default:!0}});var Y=a(ie,2);Ke(Y,{variant:"ghost",size:"icon",onclick:()=>Lr(e(ge)),title:"Delete",children:(Ie,le)=>{Wr(Ie,{class:"h-4 w-4"})},$$slots:{default:!0}}),c(Pe),t(R,Pe)},$$slots:{default:!0}})}),t(K,se)},$$slots:{default:!0}})}),t(V,F)}),t(B,M)},$$slots:{default:!0}})}),t(x,P)},$$slots:{default:!0}})}),c(S),t(g,S)};Z(f,g=>{e(ke).length===0?g(h):g(W,!1)},!0)}t(b,y)};Z(p,b=>{e(xt)?b(A):b(m,!1)})}t(d,i)},Ve=d=>{var i=$(),p=s(i);{var A=b=>{var y=$(),f=s(y);{var h=g=>{var S=Yo(),E=v(S);Qr(E,{size:"xlg"}),c(S),t(g,S)},W=g=>{var S=$(),E=s(S);{var Q=x=>{var z=Qo(),P=a(v(z),2);Ke(P,{onclick:pr,children:(k,pe)=>{var ue=Zo(),ve=s(ue);mr(ve,{class:"mr-1 h-4 w-4"}),l(),t(k,ue)},$$slots:{default:!0}}),c(z),t(x,z)},j=x=>{var z=rl(),P=v(z);n(P,()=>Jr,(k,pe)=>{pe(k,{children:(ue,ve)=>{var B=tl(),I=s(B);n(I,()=>Xr,(te,V)=>{V(te,{children:(ge,F)=>{var be=$(),ce=s(be);n(ce,()=>Tr,(de,K)=>{K(de,{children:(xe,se)=>{var _e=Jo(),N=s(_e);n(N,()=>It,(re,R)=>{R(re,{children:(me,Pe)=>{l();var w=o("Name");t(me,w)},$$slots:{default:!0}})});var L=a(N,2);n(L,()=>It,(re,R)=>{R(re,{children:(me,Pe)=>{l();var w=o("Type");t(me,w)},$$slots:{default:!0}})});var he=a(L,2);n(he,()=>It,(re,R)=>{R(re,{children:(me,Pe)=>{l();var w=o("Channel");t(me,w)},$$slots:{default:!0}})});var O=a(he,2);n(O,()=>It,(re,R)=>{R(re,{children:(me,Pe)=>{l();var w=o("Status");t(me,w)},$$slots:{default:!0}})});var q=a(O,2);n(q,()=>It,(re,R)=>{R(re,{class:"text-right",children:(me,Pe)=>{l();var w=o("Actions");t(me,w)},$$slots:{default:!0}})}),t(xe,_e)},$$slots:{default:!0}})}),t(ge,be)},$$slots:{default:!0}})});var M=a(I,2);n(M,()=>Hr,(te,V)=>{V(te,{children:(ge,F)=>{var be=$(),ce=s(be);Vt(ce,17,()=>e(gt),Gt,(de,K)=>{var xe=$(),se=s(xe);n(se,()=>Tr,(_e,N)=>{N(_e,{children:(L,he)=>{var O=el(),q=s(O);n(q,()=>St,(w,ie)=>{ie(w,{class:"font-medium",children:(Y,Ie)=>{l();var le=o();fe(()=>$e(le,e(K).name)),t(Y,le)},$$slots:{default:!0}})});var re=a(q,2);n(re,()=>St,(w,ie)=>{ie(w,{children:(Y,Ie)=>{l();var le=o();fe(()=>$e(le,rt[e(K).ruleType]||e(K).ruleType)),t(Y,le)},$$slots:{default:!0}})});var R=a(re,2);n(R,()=>St,(w,ie)=>{ie(w,{children:(Y,Ie)=>{Wt(Y,{variant:"outline",children:(le,ft)=>{l();var Ze=o();fe(()=>$e(Ze,e(K).channelName)),t(le,Ze)},$$slots:{default:!0}})},$$slots:{default:!0}})});var me=a(R,2);n(me,()=>St,(w,ie)=>{ie(w,{children:(Y,Ie)=>{var le=$(),ft=s(le);{var Ze=Ae=>{Wt(Ae,{variant:"secondary",children:(Me,we)=>{l();var ye=o("Snoozed");t(Me,ye)},$$slots:{default:!0}})},Ee=Ae=>{var Me=$(),we=s(Me);{var ye=Je=>{Wt(Je,{variant:"default",class:"bg-green-600",children:(Et,Oe)=>{l();var $t=o("On");t(Et,$t)},$$slots:{default:!0}})},Ne=Je=>{Wt(Je,{variant:"secondary",children:(Et,Oe)=>{l();var $t=o("Off");t(Et,$t)},$$slots:{default:!0}})};Z(we,Je=>{e(K).enabled?Je(ye):Je(Ne,!1)},!0)}t(Ae,Me)};Z(ft,Ae=>{Ur(e(K))?Ae(Ze):Ae(Ee,!1)})}t(Y,le)},$$slots:{default:!0}})});var Pe=a(me,2);n(Pe,()=>St,(w,ie)=>{ie(w,{class:"text-right",children:(Y,Ie)=>{var le=Xo(),ft=v(le);Ke(ft,{variant:"ghost",size:"icon",onclick:()=>dr(e(K).id),title:"Snooze",children:(Me,we)=>{_a(Me,{class:"h-4 w-4"})},$$slots:{default:!0}});var Ze=a(ft,2);{let Me=Qt(()=>e(K).enabled?"Disable":"Enable");Ke(Ze,{variant:"ghost",size:"icon",onclick:()=>Er(e(K)),get title(){return e(Me)},children:(we,ye)=>{var Ne=$(),Je=s(Ne);{var Et=$t=>{Aa($t,{class:"h-4 w-4"})},Oe=$t=>{Ea($t,{class:"h-4 w-4"})};Z(Je,$t=>{e(K).enabled?$t(Et):$t(Oe,!1)})}t(we,Ne)},$$slots:{default:!0}})}var Ee=a(Ze,2);Ke(Ee,{variant:"ghost",size:"icon",onclick:()=>qr(e(K)),title:"Edit",children:(Me,we)=>{na(Me,{class:"h-4 w-4"})},$$slots:{default:!0}});var Ae=a(Ee,2);Ke(Ae,{variant:"ghost",size:"icon",onclick:()=>Pr(e(K)),title:"Delete",children:(Me,we)=>{Wr(Me,{class:"h-4 w-4"})},$$slots:{default:!0}}),c(le),t(Y,le)},$$slots:{default:!0}})}),t(L,O)},$$slots:{default:!0}})}),t(de,xe)}),t(ge,be)},$$slots:{default:!0}})}),t(ue,B)},$$slots:{default:!0}})}),c(z),t(x,z)};Z(E,x=>{e(gt).length===0?x(Q):x(j,!1)},!0)}t(g,S)};Z(f,g=>{e(kt)?g(h):g(W,!1)})}t(b,y)},m=b=>{var y=$(),f=s(y);{var h=W=>{var g=dl(),S=s(g),E=v(S);Ta(E,{placeholder:"Search Historic Alerts...",onSearch:Fr,get disabled(){return e(ee)},get value(){return e(Ct)},set value(k){r(Ct,k,!0)}});var Q=a(E,2),j=v(Q);Ma(j,{onApply:ut,get fromDate(){return e(ot)},set fromDate(k){r(ot,k,!0)},get toDate(){return e(Ye)},set toDate(k){r(Ye,k,!0)},get fromTime(){return e(ht)},set fromTime(k){r(ht,k,!0)},get toTime(){return e(Fe)},set toTime(k){r(Fe,k,!0)},get preset(){return e(ze)},set preset(k){r(ze,k,!0)}}),c(Q),c(S);var x=a(S,2),z=v(x);n(z,()=>Jr,(k,pe)=>{pe(k,{children:(ue,ve)=>{var B=$(),I=s(B);{var M=V=>{var ge=$(),F=s(ge);n(F,()=>Hr,(be,ce)=>{ce(be,{children:(de,K)=>{var xe=$(),se=s(xe);n(se,()=>Tr,(_e,N)=>{N(_e,{children:(L,he)=>{var O=$(),q=s(O);n(q,()=>St,(re,R)=>{R(re,{colspan:6,class:"h-48",children:(me,Pe)=>{var w=al(),ie=v(w);Qr(ie,{size:"xlg"}),c(w),t(me,w)},$$slots:{default:!0}})}),t(L,O)},$$slots:{default:!0}})}),t(de,xe)},$$slots:{default:!0}})}),t(V,ge)},te=V=>{var ge=$(),F=s(ge);{var be=de=>{var K=$(),xe=s(K);n(xe,()=>Hr,(se,_e)=>{_e(se,{children:(N,L)=>{Ca(N,{colspan:6,message:"No Historic Alerts found."})},$$slots:{default:!0}})}),t(de,K)},ce=de=>{var K=nl(),xe=s(K);n(xe,()=>Xr,(_e,N)=>{N(_e,{children:(L,he)=>{var O=$(),q=s(O);n(q,()=>Tr,(re,R)=>{R(re,{children:(me,Pe)=>{var w=ol(),ie=s(w);n(ie,()=>It,(Ee,Ae)=>{Ae(Ee,{children:(Me,we)=>{l();var ye=o("Severity");t(Me,ye)},$$slots:{default:!0}})});var Y=a(ie,2);n(Y,()=>It,(Ee,Ae)=>{Ae(Ee,{children:(Me,we)=>{l();var ye=o("Rule");t(Me,ye)},$$slots:{default:!0}})});var Ie=a(Y,2);n(Ie,()=>It,(Ee,Ae)=>{Ae(Ee,{children:(Me,we)=>{l();var ye=o("Subject");t(Me,ye)},$$slots:{default:!0}})});var le=a(Ie,2);n(le,()=>It,(Ee,Ae)=>{Ae(Ee,{children:(Me,we)=>{l();var ye=o("Channel");t(Me,ye)},$$slots:{default:!0}})});var ft=a(le,2);n(ft,()=>It,(Ee,Ae)=>{Ae(Ee,{children:(Me,we)=>{l();var ye=o("Status");t(Me,ye)},$$slots:{default:!0}})});var Ze=a(ft,2);n(Ze,()=>It,(Ee,Ae)=>{Ae(Ee,{children:(Me,we)=>{l();var ye=o("Sent At");t(Me,ye)},$$slots:{default:!0}})}),t(me,w)},$$slots:{default:!0}})}),t(L,O)},$$slots:{default:!0}})});var se=a(xe,2);n(se,()=>Hr,(_e,N)=>{N(_e,{children:(L,he)=>{var O=$(),q=s(O);Vt(q,17,()=>e(Se),Gt,(re,R)=>{var me=$(),Pe=s(me);n(Pe,()=>Tr,(w,ie)=>{ie(w,{children:(Y,Ie)=>{var le=sl(),ft=s(le);n(ft,()=>St,(ye,Ne)=>{Ne(ye,{children:(Je,Et)=>{var Oe=$(),$t=s(Oe);{var tr=pt=>{Wt(pt,{variant:"destructive",children:(yt,sr)=>{l();var ir=o("Critical");t(yt,ir)},$$slots:{default:!0}})},hr=pt=>{var yt=$(),sr=s(yt);{var ir=jt=>{Wt(jt,{class:"bg-amber-500 text-white",children:(ar,Zr)=>{l();var wr=o("Warning");t(ar,wr)},$$slots:{default:!0}})},rr=jt=>{Wt(jt,{variant:"secondary",children:(ar,Zr)=>{l();var wr=o("Info");t(ar,wr)},$$slots:{default:!0}})};Z(sr,jt=>{e(R).severity==="warning"?jt(ir):jt(rr,!1)},!0)}t(pt,yt)};Z($t,pt=>{e(R).severity==="critical"?pt(tr):pt(hr,!1)})}t(Je,Oe)},$$slots:{default:!0}})});var Ze=a(ft,2);n(Ze,()=>St,(ye,Ne)=>{Ne(ye,{class:"font-medium",children:(Je,Et)=>{l();var Oe=o();fe(()=>$e(Oe,e(R).ruleName)),t(Je,Oe)},$$slots:{default:!0}})});var Ee=a(Ze,2);n(Ee,()=>St,(ye,Ne)=>{Ne(ye,{class:"max-w-xs truncate",children:(Je,Et)=>{var Oe=$(),$t=s(Oe);{var tr=pt=>{var yt=ll(),sr=v(yt,!0);c(yt),fe(()=>{ma(yt,"href",e(R).url),$e(sr,e(R).subject)}),t(pt,yt)},hr=pt=>{var yt=o();fe(()=>$e(yt,e(R).subject)),t(pt,yt)};Z($t,pt=>{e(R).url?pt(tr):pt(hr,!1)})}t(Je,Oe)},$$slots:{default:!0}})});var Ae=a(Ee,2);n(Ae,()=>St,(ye,Ne)=>{Ne(ye,{children:(Je,Et)=>{l();var Oe=o();fe(()=>$e(Oe,e(R).channelName)),t(Je,Oe)},$$slots:{default:!0}})});var Me=a(Ae,2);n(Me,()=>St,(ye,Ne)=>{Ne(ye,{children:(Je,Et)=>{var Oe=$(),$t=s(Oe);{var tr=pt=>{Wt(pt,{class:"bg-green-600 text-white",children:(yt,sr)=>{l();var ir=o("Sent");t(yt,ir)},$$slots:{default:!0}})},hr=pt=>{var yt=$(),sr=s(yt);{var ir=jt=>{Wt(jt,{variant:"destructive",children:(ar,Zr)=>{l();var wr=o("Failed");t(ar,wr)},$$slots:{default:!0}})},rr=jt=>{Wt(jt,{variant:"secondary",children:(ar,Zr)=>{l();var wr=o("Skipped");t(ar,wr)},$$slots:{default:!0}})};Z(sr,jt=>{e(R).status==="failed"?jt(ir):jt(rr,!1)},!0)}t(pt,yt)};Z($t,pt=>{e(R).status==="sent"?pt(tr):pt(hr,!1)})}t(Je,Oe)},$$slots:{default:!0}})});var we=a(Me,2);n(we,()=>St,(ye,Ne)=>{Ne(ye,{class:"text-muted-foreground",children:(Je,Et)=>{l();var Oe=o();fe($t=>$e(Oe,$t),[()=>xr(e(R).createdAt)]),t(Je,Oe)},$$slots:{default:!0}})}),t(Y,le)},$$slots:{default:!0}})}),t(re,me)}),t(L,O)},$$slots:{default:!0}})}),t(de,K)};Z(F,de=>{e(Se).length===0?de(be):de(ce,!1)},!0)}t(V,ge)};Z(I,V=>{e(ee)?V(M):V(te,!1)})}t(ue,B)},$$slots:{default:!0}})}),c(x);var P=a(x,2);xa(P,{get currentPage(){return e(Re)},get totalPages(){return e(Rt)},get pageSize(){return e(at)},get totalItems(){return e(bt)},onPageChange:kr,onPageSizeChange:Le,itemLabel:"notification"}),t(W,g)};Z(f,W=>{e(X)==="history"&&W(h)},!0)}t(b,y)};Z(p,b=>{e(X)==="rules"?b(A):b(m,!1)},!0)}t(d,i)};Z(De,d=>{e(X)==="channels"?d(vt):d(Ve,!1)})}c(Pt);var ct=a(Pt,2);ao(ct,{get channel(){return e(mt)},onSaved:()=>{We(),r(nt,!1)},get open(){return e(nt)},set open(d){r(nt,d,!0)}});var Ge=a(ct,2);No(Ge,{get rule(){return e(Ht)},get channels(){return e(ke)},onSaved:()=>{G(),r(Tt,!1)},get open(){return e(Tt)},set open(d){r(Tt,d,!0)}});var _t=a(Ge,2);jo(_t,{get ruleId(){return e(Kt)},onSaved:()=>{G(),r(Lt,!1)},get open(){return e(Lt)},set open(d){r(Lt,d,!0)}});var D=a(_t,2);n(D,()=>Nr,(d,i)=>{i(d,{get open(){return e(Ot)},set open(p){r(Ot,p,!0)},children:(p,A)=>{var m=$(),b=s(m);n(b,()=>Cr,(y,f)=>{f(y,{interactOutsideBehavior:"close",children:(h,W)=>{var g=vl(),S=s(g);n(S,()=>Sr,(Q,j)=>{j(Q,{children:(x,z)=>{var P=il(),k=s(P);n(k,()=>Rr,(ue,ve)=>{ve(ue,{children:(B,I)=>{l();var M=o("Delete Channel");t(B,M)},$$slots:{default:!0}})});var pe=a(k,2);n(pe,()=>Ir,(ue,ve)=>{ve(ue,{children:(B,I)=>{l();var M=o();fe(()=>$e(M,`Are you sure you want to delete "${e(qt)?.name??""}"? This action cannot be undone.`)),t(B,M)},$$slots:{default:!0}})}),t(x,P)},$$slots:{default:!0}})});var E=a(S,2);n(E,()=>Mr,(Q,j)=>{j(Q,{children:(x,z)=>{var P=ul(),k=s(P);Ke(k,{variant:"outline",onclick:()=>r(Ot,!1),children:(ue,ve)=>{l();var B=o("Cancel");t(ue,B)},$$slots:{default:!0}});var pe=a(k,2);Ke(pe,{variant:"destructive",onclick:Dr,children:(ue,ve)=>{l();var B=o("Delete");t(ue,B)},$$slots:{default:!0}}),t(x,P)},$$slots:{default:!0}})}),t(h,g)},$$slots:{default:!0}})}),t(p,m)},$$slots:{default:!0}})});var oe=a(D,2);n(oe,()=>Nr,(d,i)=>{i(d,{get open(){return e(Xt)},set open(p){r(Xt,p,!0)},children:(p,A)=>{var m=$(),b=s(m);n(b,()=>Cr,(y,f)=>{f(y,{interactOutsideBehavior:"close",children:(h,W)=>{var g=fl(),S=s(g);n(S,()=>Sr,(Q,j)=>{j(Q,{children:(x,z)=>{var P=cl(),k=s(P);n(k,()=>Rr,(ue,ve)=>{ve(ue,{children:(B,I)=>{l();var M=o("Delete Rule");t(B,M)},$$slots:{default:!0}})});var pe=a(k,2);n(pe,()=>Ir,(ue,ve)=>{ve(ue,{children:(B,I)=>{l();var M=o();fe(()=>$e(M,`Are you sure you want to delete "${e(or)?.name??""}"? This action cannot be undone.`)),t(B,M)},$$slots:{default:!0}})}),t(x,P)},$$slots:{default:!0}})});var E=a(S,2);n(E,()=>Mr,(Q,j)=>{j(Q,{children:(x,z)=>{var P=_l(),k=s(P);Ke(k,{variant:"outline",onclick:()=>r(Xt,!1),children:(ue,ve)=>{l();var B=o("Cancel");t(ue,B)},$$slots:{default:!0}});var pe=a(k,2);Ke(pe,{variant:"destructive",onclick:Or,children:(ue,ve)=>{l();var B=o("Delete");t(ue,B)},$$slots:{default:!0}}),t(x,P)},$$slots:{default:!0}})}),t(h,g)},$$slots:{default:!0}})}),t(p,m)},$$slots:{default:!0}})});var C=a(oe,2);n(C,()=>Nr,(d,i)=>{i(d,{get open(){return e(Yt)},set open(p){r(Yt,p,!0)},children:(p,A)=>{var m=$(),b=s(m);{let y=Qt(()=>e(U)?"ignore":"close"),f=Qt(()=>e(U)?"ignore":"close");n(b,()=>Cr,(h,W)=>{W(h,{get interactOutsideBehavior(){return e(y)},get escapeKeydownBehavior(){return e(f)},children:(g,S)=>{var E=hl(),Q=s(E);n(Q,()=>Sr,(x,z)=>{z(x,{children:(P,k)=>{var pe=$l(),ue=s(pe);n(ue,()=>Rr,(B,I)=>{I(B,{children:(M,te)=>{l();var V=o();fe(()=>$e(V,`${e(Ut)?.enabled?"Disable":"Enable"} Rule`)),t(M,V)},$$slots:{default:!0}})});var ve=a(ue,2);n(ve,()=>Ir,(B,I)=>{I(B,{children:(M,te)=>{l();var V=o();fe(()=>$e(V,`Are you sure you want to ${e(Ut)?.enabled?"disable":"enable"} "${e(Ut)?.name??""}"?`)),t(M,V)},$$slots:{default:!0}})}),t(P,pe)},$$slots:{default:!0}})});var j=a(Q,2);n(j,()=>Mr,(x,z)=>{z(x,{children:(P,k)=>{var pe=pl(),ue=s(pe);Ke(ue,{variant:"outline",onclick:()=>r(Yt,!1),get disabled(){return e(U)},children:(B,I)=>{l();var M=o("Cancel");t(B,M)},$$slots:{default:!0}});var ve=a(ue,2);Ke(ve,{onclick:fr,get disabled(){return e(U)},children:(B,I)=>{l();var M=o();fe(()=>$e(M,e(Ut)?.enabled?"Disable":"Enable")),t(B,M)},$$slots:{default:!0}}),t(P,pe)},$$slots:{default:!0}})}),t(g,E)},$$slots:{default:!0}})})}t(p,m)},$$slots:{default:!0}})});var ae=a(C,2);n(ae,()=>Nr,(d,i)=>{i(d,{get open(){return e(ne)},set open(p){r(ne,p,!0)},children:(p,A)=>{var m=$(),b=s(m);{let y=Qt(()=>e(Ft)?"ignore":"close"),f=Qt(()=>e(Ft)?"ignore":"close");n(b,()=>Cr,(h,W)=>{W(h,{get interactOutsideBehavior(){return e(y)},get escapeKeydownBehavior(){return e(f)},children:(g,S)=>{var E=yl(),Q=s(E);n(Q,()=>Sr,(P,k)=>{k(P,{children:(pe,ue)=>{var ve=ml(),B=s(ve);n(B,()=>Rr,(M,te)=>{te(M,{children:(V,ge)=>{l();var F=o("Test Channel");t(V,F)},$$slots:{default:!0}})});var I=a(B,2);n(I,()=>Ir,(M,te)=>{te(M,{children:(V,ge)=>{l();var F=o();fe(()=>$e(F,`Send a test notification to "${e(Xe)?.name??""}"? This will deliver a test message through the configured channel.`)),t(V,F)},$$slots:{default:!0}})}),t(pe,ve)},$$slots:{default:!0}})});var j=a(Q,2);{var x=P=>{var k=gl(),pe=v(k,!0);c(k),fe(()=>$e(pe,e(lr))),t(P,k)};Z(j,P=>{e(lr)&&P(x)})}var z=a(j,2);n(z,()=>Mr,(P,k)=>{k(P,{children:(pe,ue)=>{var ve=Pl(),B=s(ve);Ke(B,{variant:"outline",onclick:()=>r(ne,!1),get disabled(){return e(Ft)},children:(M,te)=>{l();var V=o("Cancel");t(M,V)},$$slots:{default:!0}});var I=a(B,2);Ke(I,{onclick:_r,get disabled(){return e(Ft)},children:(M,te)=>{var V=bl(),ge=s(V);da(ge,{class:"h-4 w-4"});var F=a(ge);fe(()=>$e(F,` ${e(Ft)?"Sending...":"Send Test"}`)),t(M,V)},$$slots:{default:!0}}),t(pe,ve)},$$slots:{default:!0}})}),t(g,E)},$$slots:{default:!0}})})}t(p,m)},$$slots:{default:!0}})}),t(Nt,Zt),br()}export{rs as component};
diff --git a/backend/static/frontend/_app/immutable/nodes/21.D--2gUZI.js.map b/backend/static/frontend/_app/immutable/nodes/21.D--2gUZI.js.map
new file mode 100644
index 00000000..d789034d
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/21.D--2gUZI.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"21.D--2gUZI.js","sources":["../../../../../../node_modules/@lucide/svelte/dist/icons/send.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/triangle-alert.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/zap-off.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/zap.svelte","../../../../../../src/routes/notifications/channel-dialog.svelte","../../../../../../src/routes/notifications/rule-dialog.svelte","../../../../../../src/routes/notifications/snooze-dialog.svelte","../../../../../../src/routes/notifications/+page.svelte"],"sourcesContent":["<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\" }], [\"path\", { \"d\": \"m21.854 2.147-10.94 10.939\" }]];\n/**\n * @component @name Send\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTQuNTM2IDIxLjY4NmEuNS41IDAgMCAwIC45MzctLjAyNGw2LjUtMTlhLjQ5Ni40OTYgMCAwIDAtLjYzNS0uNjM1bC0xOSA2LjVhLjUuNSAwIDAgMC0uMDI0LjkzN2w3LjkzIDMuMThhMiAyIDAgMCAxIDEuMTEyIDEuMTF6IiAvPgogIDxwYXRoIGQ9Im0yMS44NTQgMi4xNDctMTAuOTQgMTAuOTM5IiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/send\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"send\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"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\" }], [\"path\", { \"d\": \"M12 9v4\" }], [\"path\", { \"d\": \"M12 17h.01\" }]];\n/**\n * @component @name TriangleAlert\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJtMjEuNzMgMTgtOC0xNGEyIDIgMCAwIDAtMy40OCAwbC04IDE0QTIgMiAwIDAgMCA0IDIxaDE2YTIgMiAwIDAgMCAxLjczLTMiIC8+CiAgPHBhdGggZD0iTTEyIDl2NCIgLz4KICA8cGF0aCBkPSJNMTIgMTdoLjAxIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/triangle-alert\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"triangle-alert\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M10.513 4.856 13.12 2.17a.5.5 0 0 1 .86.46l-1.377 4.317\" }], [\"path\", { \"d\": \"M15.656 10H20a1 1 0 0 1 .78 1.63l-1.72 1.773\" }], [\"path\", { \"d\": \"M16.273 16.273 10.88 21.83a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14H4a1 1 0 0 1-.78-1.63l4.507-4.643\" }], [\"path\", { \"d\": \"m2 2 20 20\" }]];\n/**\n * @component @name ZapOff\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTAuNTEzIDQuODU2IDEzLjEyIDIuMTdhLjUuNSAwIDAgMSAuODYuNDZsLTEuMzc3IDQuMzE3IiAvPgogIDxwYXRoIGQ9Ik0xNS42NTYgMTBIMjBhMSAxIDAgMCAxIC43OCAxLjYzbC0xLjcyIDEuNzczIiAvPgogIDxwYXRoIGQ9Ik0xNi4yNzMgMTYuMjczIDEwLjg4IDIxLjgzYS41LjUgMCAwIDEtLjg2LS40NmwxLjkyLTYuMDJBMSAxIDAgMCAwIDExIDE0SDRhMSAxIDAgMCAxLS43OC0xLjYzbDQuNTA3LTQuNjQzIiAvPgogIDxwYXRoIGQ9Im0yIDIgMjAgMjAiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/zap-off\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"zap-off\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z\" }]];\n/**\n * @component @name Zap\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNCAxNGExIDEgMCAwIDEtLjc4LTEuNjNsOS45LTEwLjJhLjUuNSAwIDAgMSAuODYuNDZsLTEuOTIgNi4wMkExIDEgMCAwIDAgMTMgMTBoN2ExIDEgMCAwIDEgLjc4IDEuNjNsLTkuOSAxMC4yYS41LjUgMCAwIDEtLjg2LS40NmwxLjkyLTYuMDJBMSAxIDAgMCAwIDExIDE0eiIgLz4KPC9zdmc+Cg==) - https://lucide.dev/icons/zap\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"zap\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Input } from '$lib/components/ui/input';\n\timport { Label } from '$lib/components/ui/label';\n\timport * as Select from '$lib/components/ui/select';\n\timport { Plus, Check, Trash2 } from '@lucide/svelte';\n\timport { toast } from 'svelte-sonner';\n\timport { api } from '$lib/api';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\n\tinterface NotificationChannel {\n\t\tid: number;\n\t\tprojectId: string;\n\t\tname: string;\n\t\tchannelType: string;\n\t\tconfig: any;\n\t\tenabled: boolean;\n\t\tcreatedAt: string;\n\t}\n\n\tinterface Props {\n\t\topen: boolean;\n\t\tchannel: NotificationChannel | null;\n\t\tonSaved: () => void;\n\t}\n\n\tlet { open = $bindable(), channel, onSaved }: Props = $props();\n\n\tlet name = $state('');\n\tlet channelType = $state('email');\n\tlet loading = $state(false);\n\tlet error = $state('');\n\n\tlet emailRecipients = $state<string[]>(['']);\n\tlet webhookUrl = $state('');\n\tlet webhookMethod = $state('POST');\n\tlet webhookSecret = $state('');\n\tlet webhookHeaders = $state<{ key: string; value: string }[]>([]);\n\tlet slackWebhookUrl = $state('');\n\tlet slackChannel = $state('');\n\tlet slackUsername = $state('');\n\tlet githubToken = $state('');\n\tlet githubOwner = $state('');\n\tlet githubRepo = $state('');\n\tlet githubLabels = $state('');\n\tlet pushoverUserKey = $state('');\n\tlet pushoverAppToken = $state('');\n\tlet pushoverDevice = $state('');\n\tlet pushoverPriority = $state('0');\n\tlet pushoverRetry = $state(30);\n\tlet pushoverExpire = $state(3600);\n\tlet pushoverCallback = $state('');\n\tlet pushoverSound = $state('');\n\tlet pushoverHtml = $state(false);\n\tlet pushoverTtl = $state(0);\n\n\tconst isEditing = $derived(channel !== null);\n\n\tconst channelTypeOptions = [\n\t\t{ value: 'email', label: 'Email' },\n\t\t{ value: 'webhook', label: 'Webhook' },\n\t\t{ value: 'slack', label: 'Slack' },\n\t\t{ value: 'github', label: 'GitHub' },\n\t\t{ value: 'pushover', label: 'Pushover' }\n\t];\n\n\tfunction resetForm() {\n\t\tname = '';\n\t\tchannelType = 'email';\n\t\terror = '';\n\t\temailRecipients = [''];\n\t\twebhookUrl = '';\n\t\twebhookMethod = 'POST';\n\t\twebhookSecret = '';\n\t\twebhookHeaders = [];\n\t\tslackWebhookUrl = '';\n\t\tslackChannel = '';\n\t\tslackUsername = '';\n\t\tgithubToken = '';\n\t\tgithubOwner = '';\n\t\tgithubRepo = '';\n\t\tgithubLabels = '';\n\t\tpushoverUserKey = '';\n\t\tpushoverAppToken = '';\n\t\tpushoverDevice = '';\n\t\tpushoverPriority = '0';\n\t\tpushoverRetry = 30;\n\t\tpushoverExpire = 3600;\n\t\tpushoverCallback = '';\n\t\tpushoverSound = '';\n\t\tpushoverHtml = false;\n\t\tpushoverTtl = 0;\n\t}\n\n\tfunction populateFromChannel(ch: NotificationChannel) {\n\t\tname = ch.name;\n\t\tchannelType = ch.channelType;\n\t\tconst config = ch.config || {};\n\n\t\tif (ch.channelType === 'email') {\n\t\t\temailRecipients = config.recipients?.length ? [...config.recipients] : [''];\n\t\t} else if (ch.channelType === 'webhook') {\n\t\t\twebhookUrl = config.url || '';\n\t\t\twebhookMethod = config.method || 'POST';\n\t\t\twebhookSecret = config.secret || '';\n\t\t\twebhookHeaders = config.headers\n\t\t\t\t? Object.entries(config.headers).map(([key, value]) => ({\n\t\t\t\t\t\tkey,\n\t\t\t\t\t\tvalue: value as string\n\t\t\t\t\t}))\n\t\t\t\t: [];\n\t\t} else if (ch.channelType === 'slack') {\n\t\t\tslackWebhookUrl = config.webhookUrl || '';\n\t\t\tslackChannel = config.channel || '';\n\t\t\tslackUsername = config.username || '';\n\t\t} else if (ch.channelType === 'github') {\n\t\t\tgithubToken = config.token || '';\n\t\t\tgithubOwner = config.owner || '';\n\t\t\tgithubRepo = config.repo || '';\n\t\t\tgithubLabels = (config.labels || []).join(', ');\n\t\t} else if (ch.channelType === 'pushover') {\n\t\t\tpushoverUserKey = config.userKey || '';\n\t\t\tpushoverAppToken = config.appToken || '';\n\t\t\tpushoverDevice = config.device || '';\n\t\t\tpushoverPriority = String(config.priority ?? 0);\n\t\t\tpushoverRetry = config.retry ?? 30;\n\t\t\tpushoverExpire = config.expire ?? 3600;\n\t\t\tpushoverCallback = config.callback || '';\n\t\t\tpushoverSound = config.sound || '';\n\t\t\tpushoverHtml = config.html ?? false;\n\t\t\tpushoverTtl = config.ttl ?? 0;\n\t\t}\n\t}\n\n\tfunction buildConfig(): any {\n\t\tif (channelType === 'email') {\n\t\t\treturn { recipients: emailRecipients.filter((e) => e.trim() !== '') };\n\t\t} else if (channelType === 'webhook') {\n\t\t\tconst config: any = { url: webhookUrl };\n\t\t\tif (webhookMethod !== 'POST') config.method = webhookMethod;\n\t\t\tif (webhookSecret) config.secret = webhookSecret;\n\t\t\tconst headers: Record<string, string> = {};\n\t\t\tfor (const h of webhookHeaders) {\n\t\t\t\tif (h.key.trim()) headers[h.key.trim()] = h.value;\n\t\t\t}\n\t\t\tif (Object.keys(headers).length > 0) config.headers = headers;\n\t\t\treturn config;\n\t\t} else if (channelType === 'slack') {\n\t\t\tconst config: any = { webhookUrl: slackWebhookUrl };\n\t\t\tif (slackChannel) config.channel = slackChannel;\n\t\t\tif (slackUsername) config.username = slackUsername;\n\t\t\treturn config;\n\t\t} else if (channelType === 'github') {\n\t\t\tconst config: any = {\n\t\t\t\ttoken: githubToken,\n\t\t\t\towner: githubOwner,\n\t\t\t\trepo: githubRepo\n\t\t\t};\n\t\t\tconst labels = githubLabels\n\t\t\t\t.split(',')\n\t\t\t\t.map((l) => l.trim())\n\t\t\t\t.filter((l) => l);\n\t\t\tif (labels.length > 0) config.labels = labels;\n\t\t\treturn config;\n\t\t} else if (channelType === 'pushover') {\n\t\t\tconst config: any = {\n\t\t\t\tuserKey: pushoverUserKey,\n\t\t\t\tappToken: pushoverAppToken\n\t\t\t};\n\t\t\tif (pushoverDevice) config.device = pushoverDevice;\n\t\t\tif (pushoverPriority !== '0') config.priority = Number(pushoverPriority);\n\t\t\tif (pushoverPriority === '2') {\n\t\t\t\tconfig.retry = Number(pushoverRetry);\n\t\t\t\tconfig.expire = Number(pushoverExpire);\n\t\t\t\tif (pushoverCallback) config.callback = pushoverCallback;\n\t\t\t}\n\t\t\tif (pushoverSound) config.sound = pushoverSound;\n\t\t\tif (pushoverHtml) config.html = pushoverHtml;\n\t\t\tif (Number(pushoverTtl) > 0) config.ttl = Number(pushoverTtl);\n\t\t\treturn config;\n\t\t}\n\t\treturn {};\n\t}\n\n\tfunction addEmailRecipient() {\n\t\temailRecipients = [...emailRecipients, ''];\n\t}\n\n\tfunction removeEmailRecipient(index: number) {\n\t\temailRecipients = emailRecipients.filter((_, i) => i !== index);\n\t\tif (emailRecipients.length === 0) emailRecipients = [''];\n\t}\n\n\tfunction addWebhookHeader() {\n\t\twebhookHeaders = [...webhookHeaders, { key: '', value: '' }];\n\t}\n\n\tfunction removeWebhookHeader(index: number) {\n\t\twebhookHeaders = webhookHeaders.filter((_, i) => i !== index);\n\t}\n\n\tasync function handleSubmit() {\n\t\tloading = true;\n\t\terror = '';\n\n\t\ttry {\n\t\t\tconst body = {\n\t\t\t\tname,\n\t\t\t\tchannelType,\n\t\t\t\tconfig: buildConfig()\n\t\t\t};\n\n\t\t\tif (isEditing) {\n\t\t\t\tawait api.put(`/notification-channels/${channel!.id}`, body, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully updated the Channel', { position: 'top-center' });\n\t\t\t} else {\n\t\t\t\tawait api.post('/notification-channels', body, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully created the Channel', { position: 'top-center' });\n\t\t\t}\n\t\t\tonSaved();\n\t\t} catch (e: unknown) {\n\t\t\terror = e instanceof Error ? e.message : 'Failed to save channel';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handleOpenChange(isOpen: boolean) {\n\t\tif (!isOpen) {\n\t\t\tresetForm();\n\t\t} else if (channel) {\n\t\t\tpopulateFromChannel(channel);\n\t\t} else {\n\t\t\tresetForm();\n\t\t}\n\t\topen = isOpen;\n\t}\n\n\t$effect(() => {\n\t\tif (open && channel) {\n\t\t\tpopulateFromChannel(channel);\n\t\t} else if (open && !channel) {\n\t\t\tresetForm();\n\t\t}\n\t});\n</script>\n\n<AlertDialog.Root {open} onOpenChange={handleOpenChange}>\n\t<AlertDialog.Content class=\"max-w-md max-h-[90vh] overflow-y-auto\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>{isEditing ? 'Edit Channel' : 'New Channel'}</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\t{isEditing\n\t\t\t\t\t? 'Update the notification channel configuration'\n\t\t\t\t\t: 'Configure a new notification channel'}\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\n\t\t<form\n\t\t\tonsubmit={(e) => {\n\t\t\t\te.preventDefault();\n\t\t\t\thandleSubmit();\n\t\t\t}}\n\t\t\tclass=\"space-y-4\"\n\t\t>\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"channel-name\">Name</Label>\n\t\t\t\t<Input id=\"channel-name\" bind:value={name} placeholder=\"e.g. Team Slack\" required />\n\t\t\t</div>\n\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"channel-type\">Type</Label>\n\t\t\t\t<Select.Root type=\"single\" bind:value={channelType}>\n\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t{channelTypeOptions.find((o) => o.value === channelType)?.label ||\n\t\t\t\t\t\t\t'Select type'}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t{#each channelTypeOptions as option}\n\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</div>\n\n\t\t\t{#if channelType === 'email'}\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label>Recipients</Label>\n\t\t\t\t\t{#each emailRecipients as _, index}\n\t\t\t\t\t\t<div class=\"flex gap-2\">\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\ttype=\"email\"\n\t\t\t\t\t\t\t\tbind:value={emailRecipients[index]}\n\t\t\t\t\t\t\t\tplaceholder=\"[email protected]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t{#if emailRecipients.length > 1}\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\t\tonclick={() => removeEmailRecipient(index)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Trash2 class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/each}\n\t\t\t\t\t{#if emailRecipients.length < 10}\n\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" type=\"button\" onclick={addEmailRecipient}>\n\t\t\t\t\t\t\t<Plus class=\"mr-1 h-3 w-3\" /> Add Recipient\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t{/if}\n\t\t\t\t</div>\n\t\t\t{:else if channelType === 'webhook'}\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"webhook-url\">URL</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"webhook-url\"\n\t\t\t\t\t\tbind:value={webhookUrl}\n\t\t\t\t\t\tplaceholder=\"https://example.com/webhook\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"webhook-method\">Method</Label>\n\t\t\t\t\t<Select.Root type=\"single\" bind:value={webhookMethod}>\n\t\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t\t{webhookMethod}\n\t\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t<Select.Item value=\"POST\">POST</Select.Item>\n\t\t\t\t\t\t\t<Select.Item value=\"PUT\">PUT</Select.Item>\n\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t</Select.Root>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"webhook-secret\">Secret (optional)</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"webhook-secret\"\n\t\t\t\t\t\tbind:value={webhookSecret}\n\t\t\t\t\t\tplaceholder=\"HMAC signing secret\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label>Headers (optional)</Label>\n\t\t\t\t\t{#each webhookHeaders as _, index}\n\t\t\t\t\t\t<div class=\"flex gap-2\">\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\tbind:value={webhookHeaders[index].key}\n\t\t\t\t\t\t\t\tplaceholder=\"Header name\"\n\t\t\t\t\t\t\t\tclass=\"flex-1\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\t\tbind:value={webhookHeaders[index].value}\n\t\t\t\t\t\t\t\tplaceholder=\"Value\"\n\t\t\t\t\t\t\t\tclass=\"flex-1\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\t\t\tonclick={() => removeWebhookHeader(index)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Trash2 class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/each}\n\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" type=\"button\" onclick={addWebhookHeader}>\n\t\t\t\t\t\t<Plus class=\"mr-1 h-3 w-3\" /> Add Header\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t{:else if channelType === 'slack'}\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"slack-url\">Webhook URL</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"slack-url\"\n\t\t\t\t\t\tbind:value={slackWebhookUrl}\n\t\t\t\t\t\tplaceholder=\"https://hooks.slack.com/services/...\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"slack-channel\">Channel Override (optional)</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"slack-channel\"\n\t\t\t\t\t\tbind:value={slackChannel}\n\t\t\t\t\t\tplaceholder=\"#alerts\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"slack-username\">Username (optional)</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"slack-username\"\n\t\t\t\t\t\tbind:value={slackUsername}\n\t\t\t\t\t\tplaceholder=\"Traceway\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t{:else if channelType === 'github'}\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"gh-token\">Personal Access Token</Label>\n\t\t\t\t\t<Input\n\t\t\t\t\t\tid=\"gh-token\"\n\t\t\t\t\t\ttype=\"password\"\n\t\t\t\t\t\tbind:value={githubToken}\n\t\t\t\t\t\tplaceholder=\"ghp_...\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"gh-owner\">Repository Owner</Label>\n\t\t\t\t\t<Input id=\"gh-owner\" bind:value={githubOwner} placeholder=\"owner\" required />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"gh-repo\">Repository Name</Label>\n\t\t\t\t\t<Input id=\"gh-repo\" bind:value={githubRepo} placeholder=\"repo\" required />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"gh-labels\">Labels (optional, comma-separated)</Label>\n\t\t\t\t\t<Input id=\"gh-labels\" bind:value={githubLabels} placeholder=\"bug, traceway\" />\n\t\t\t\t</div>\n\t\t\t{:else if channelType === 'pushover'}\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"po-user-key\">User Key</Label>\n\t\t\t\t\t<Input id=\"po-user-key\" bind:value={pushoverUserKey} placeholder=\"Your Pushover user key\" required />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"po-app-token\">App Token</Label>\n\t\t\t\t\t<Input id=\"po-app-token\" type=\"password\" bind:value={pushoverAppToken} placeholder=\"Your Pushover application token\" required />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"po-device\">Device (optional)</Label>\n\t\t\t\t\t<Input id=\"po-device\" bind:value={pushoverDevice} placeholder=\"Leave empty for all devices\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"po-priority\">Priority</Label>\n\t\t\t\t\t<Select.Root type=\"single\" bind:value={pushoverPriority}>\n\t\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t\t{pushoverPriority === '0' ? 'Normal' : pushoverPriority === '1' ? 'High' : 'Emergency'}\n\t\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t<Select.Item value=\"0\">Normal</Select.Item>\n\t\t\t\t\t\t\t<Select.Item value=\"1\">High</Select.Item>\n\t\t\t\t\t\t\t<Select.Item value=\"2\">Emergency</Select.Item>\n\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t</Select.Root>\n\t\t\t\t</div>\n\t\t\t\t{#if pushoverPriority === '2'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"po-retry\">Retry Interval (seconds, min 30)</Label>\n\t\t\t\t\t\t<Input id=\"po-retry\" type=\"number\" bind:value={pushoverRetry} min={30} />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"po-expire\">Expiry (seconds, max 10800)</Label>\n\t\t\t\t\t\t<Input id=\"po-expire\" type=\"number\" bind:value={pushoverExpire} min={1} max={10800} />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"po-callback\">Callback URL (optional)</Label>\n\t\t\t\t\t\t<Input id=\"po-callback\" bind:value={pushoverCallback} placeholder=\"https://hooks.example.com/acknowledged\" />\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"po-sound\">Sound (optional)</Label>\n\t\t\t\t\t<Input id=\"po-sound\" bind:value={pushoverSound} placeholder=\"e.g. pushover, bike, bugle\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t<input id=\"po-html\" type=\"checkbox\" bind:checked={pushoverHtml} class=\"h-4 w-4\" />\n\t\t\t\t\t<Label for=\"po-html\">Enable HTML formatting</Label>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t<Label for=\"po-ttl\">Time to Live (seconds, 0 = forever)</Label>\n\t\t\t\t\t<Input id=\"po-ttl\" type=\"number\" bind:value={pushoverTtl} min={0} placeholder=\"0\" />\n\t\t\t\t</div>\n\t\t\t{/if}\n\n\t\t\t{#if error}\n\t\t\t\t<p class=\"text-sm text-destructive\">{error}</p>\n\t\t\t{/if}\n\t\t</form>\n\n\t\t<AlertDialog.Footer>\n\t\t\t<AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>\n\t\t\t<Button onclick={handleSubmit} disabled={loading}>\n\t\t\t\t{#if isEditing}\n\t\t\t\t\t<Check class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\tUpdating...\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tUpdate Channel\n\t\t\t\t\t{/if}\n\t\t\t\t{:else}\n\t\t\t\t\t<Plus class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\tCreating...\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tNew Channel\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Input } from '$lib/components/ui/input';\n\timport { Label } from '$lib/components/ui/label';\n\timport * as Select from '$lib/components/ui/select';\n\timport { Plus, Check, TriangleAlert } from '@lucide/svelte';\n\timport * as Alert from '$lib/components/ui/alert';\n\timport { toast } from 'svelte-sonner';\n\timport { api } from '$lib/api';\n\timport { projectsState, isFrontendFramework } from '$lib/state/projects.svelte';\n\n\tinterface NotificationChannel {\n\t\tid: number;\n\t\tprojectId: string;\n\t\tname: string;\n\t\tchannelType: string;\n\t\tconfig: any;\n\t\tenabled: boolean;\n\t\tcreatedAt: string;\n\t}\n\n\tinterface NotificationRule {\n\t\tid: number;\n\t\tprojectId: string;\n\t\tchannelId: number;\n\t\tname: string;\n\t\truleType: string;\n\t\tconfig: any;\n\t\tenabled: boolean;\n\t\tcooldownMinutes: number;\n\t\tseverity: string;\n\t\tsnoozedUntil: string | null;\n\t\tchannelName: string;\n\t\tchannelType: string;\n\t\tcreatedAt: string;\n\t}\n\n\tinterface Props {\n\t\topen: boolean;\n\t\trule: NotificationRule | null;\n\t\tchannels: NotificationChannel[];\n\t\tonSaved: () => void;\n\t}\n\n\tlet { open = $bindable(), rule, channels, onSaved }: Props = $props();\n\n\tlet name = $state('');\n\tlet channelId = $state('');\n\tlet ruleType = $state('new_error');\n\tlet cooldownMinutes = $state(15);\n\tlet severity = $state('');\n\tlet loading = $state(false);\n\tlet error = $state('');\n\n\tconst severityOptions = [\n\t\t{ value: '', label: 'Auto (default)' },\n\t\t{ value: 'critical', label: 'Critical' },\n\t\t{ value: 'warning', label: 'Warning' },\n\t\t{ value: 'info', label: 'Info' }\n\t];\n\n\tlet thresholdPercent = $state(5);\n\tlet lookbackMinutes = $state(5);\n\tlet minRequests = $state(10);\n\tlet endpoint = $state('*');\n\tlet thresholdMs = $state(500);\n\tlet thresholdApdex = $state(0.85);\n\tlet metricName = $state('');\n\tlet operator = $state('gt');\n\tlet thresholdValue = $state(90);\n\tlet aggregation = $state('avg');\n\tlet dataType = $state('any');\n\tlet silenceMinutes = $state(10);\n\tlet thresholdCount = $state(100);\n\tlet taskName = $state('*');\n\tlet minExecutions = $state(5);\n\tlet dropPercent = $state(50);\n\tlet baselineWindowMinutes = $state(60);\n\tlet ignorePatterns = $state('');\n\tlet includeArchived = $state(true);\n\tlet traceName = $state('*');\n\tlet thresholdCost = $state(0.5);\n\n\tconst isEditing = $derived(rule !== null);\n\n\tconst ruleTypeOptions = [\n\t\t{ value: 'new_error', label: 'New Issue' },\n\t\t{ value: 'impact_score_critical', label: 'Impact Score Critical' },\n\t\t{ value: 'impact_score_high', label: 'Impact Score High' },\n\t\t{ value: 'impact_score_medium', label: 'Impact Score Medium' },\n\t\t{ value: 'error_regression', label: 'Error Regression' },\n\t\t{ value: 'error_rate_threshold', label: 'Error Rate' },\n\t\t{ value: 'error_count_threshold', label: 'Error Count' },\n\t\t{ value: 'endpoint_p95_threshold', label: 'Endpoint P95' },\n\t\t{ value: 'endpoint_p99_threshold', label: 'Endpoint P99' },\n\t\t{ value: 'endpoint_error_rate', label: 'Endpoint Error Rate' },\n\t\t{ value: 'apdex_drop', label: 'Apdex Drop' },\n\t\t{ value: 'metric_threshold', label: 'Metric Threshold' },\n\t\t{ value: 'no_data', label: 'No Data' },\n\t\t{ value: 'task_duration_threshold', label: 'Task Duration' },\n\t\t{ value: 'task_failure_rate', label: 'Task Failure Rate' },\n\t\t{ value: 'throughput_drop', label: 'Throughput Drop' },\n\t\t{ value: 'ai_trace_cost', label: 'AI Trace Cost' }\n\t];\n\n\tconst isFrontendProject = $derived(\n\t\t!!projectsState.currentProject &&\n\t\t\tisFrontendFramework(projectsState.currentProject.framework)\n\t);\n\n\tconst visibleRuleTypes = $derived(\n\t\tisFrontendProject\n\t\t\t? [{ value: 'new_error', label: 'New Issue' }]\n\t\t\t: [\n\t\t\t\t\t{ value: 'new_error', label: 'New Issue' },\n\t\t\t\t\t{ value: 'impact_score_critical', label: 'Impact Score Critical' },\n\t\t\t\t\t{ value: 'impact_score_high', label: 'Impact Score High' },\n\t\t\t\t\t{ value: 'impact_score_medium', label: 'Impact Score Medium' },\n\t\t\t\t\t{ value: 'ai_trace_cost', label: 'AI Trace Cost' }\n\t\t\t\t]\n\t);\n\n\t$effect(() => {\n\t\tif (open && !visibleRuleTypes.some((o) => o.value === ruleType)) {\n\t\t\truleType = 'new_error';\n\t\t}\n\t});\n\n\tconst ruleTypeDescriptions: Record<string, string> = {\n\t\tnew_error:\n\t\t\t'Fires when a completely new error type is detected for the first time in your project.',\n\t\timpact_score_critical:\n\t\t\t'Fires when an endpoint\\u2019s impact score reaches critical level (\\u2265 0.75), indicating severe performance or reliability degradation.',\n\t\timpact_score_high:\n\t\t\t'Fires when an endpoint\\u2019s impact score reaches high level (\\u2265 0.50), indicating significant performance or reliability issues.',\n\t\timpact_score_medium:\n\t\t\t'Fires when an endpoint\\u2019s impact score reaches medium level (\\u2265 0.25), an early warning of emerging performance or reliability issues.',\n\t\tai_trace_cost:\n\t\t\t'Fires when an individual AI trace exceeds a cost threshold. Monitors per-call spending across AI providers.'\n\t};\n\n\tconst operatorOptions = [\n\t\t{ value: 'gt', label: '> Greater than' },\n\t\t{ value: 'gte', label: '>= Greater or equal' },\n\t\t{ value: 'lt', label: '< Less than' },\n\t\t{ value: 'lte', label: '<= Less or equal' },\n\t\t{ value: 'eq', label: '= Equal' }\n\t];\n\n\tconst aggregationOptions = [\n\t\t{ value: 'avg', label: 'Average' },\n\t\t{ value: 'max', label: 'Maximum' },\n\t\t{ value: 'min', label: 'Minimum' },\n\t\t{ value: 'sum', label: 'Sum' },\n\t\t{ value: 'p95', label: 'P95' },\n\t\t{ value: 'p99', label: 'P99' },\n\t\t{ value: 'last', label: 'Last' }\n\t];\n\n\tconst dataTypeOptions = [\n\t\t{ value: 'any', label: 'Any' },\n\t\t{ value: 'endpoints', label: 'Endpoints' },\n\t\t{ value: 'exceptions', label: 'Exceptions' },\n\t\t{ value: 'metrics', label: 'Metrics' },\n\t\t{ value: 'tasks', label: 'Tasks' }\n\t];\n\n\tfunction resetForm() {\n\t\tname = '';\n\t\tchannelId = '';\n\t\truleType = 'new_error';\n\t\tcooldownMinutes = 15;\n\t\tseverity = '';\n\t\terror = '';\n\t\tthresholdPercent = 5;\n\t\tlookbackMinutes = 5;\n\t\tminRequests = 10;\n\t\tendpoint = '*';\n\t\tthresholdMs = 500;\n\t\tthresholdApdex = 0.85;\n\t\tmetricName = '';\n\t\toperator = 'gt';\n\t\tthresholdValue = 90;\n\t\taggregation = 'avg';\n\t\tdataType = 'any';\n\t\tsilenceMinutes = 10;\n\t\tthresholdCount = 100;\n\t\ttaskName = '*';\n\t\tminExecutions = 5;\n\t\tdropPercent = 50;\n\t\tbaselineWindowMinutes = 60;\n\t\tignorePatterns = '';\n\t\tincludeArchived = true;\n\t\ttraceName = '*';\n\t\tthresholdCost = 0.5;\n\t}\n\n\tfunction populateFromRule(r: NotificationRule) {\n\t\tname = r.name;\n\t\tchannelId = r.channelId.toString();\n\t\truleType = r.ruleType;\n\t\tcooldownMinutes = r.cooldownMinutes;\n\t\tseverity = r.severity || '';\n\t\tconst cfg = r.config || {};\n\n\t\tswitch (r.ruleType) {\n\t\t\tcase 'error_rate_threshold':\n\t\t\t\tthresholdPercent = cfg.thresholdPercent ?? 5;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 5;\n\t\t\t\tminRequests = cfg.minRequests ?? 10;\n\t\t\t\tbreak;\n\t\t\tcase 'endpoint_p95_threshold':\n\t\t\tcase 'endpoint_p99_threshold':\n\t\t\t\tendpoint = cfg.endpoint ?? '*';\n\t\t\t\tthresholdMs = cfg.thresholdMs ?? 500;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 5;\n\t\t\t\tbreak;\n\t\t\tcase 'apdex_drop':\n\t\t\t\tthresholdApdex = cfg.thresholdApdex ?? 0.85;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 15;\n\t\t\t\tminRequests = cfg.minRequests ?? 50;\n\t\t\t\tbreak;\n\t\t\tcase 'metric_threshold':\n\t\t\t\tmetricName = cfg.metricName ?? '';\n\t\t\t\toperator = cfg.operator ?? 'gt';\n\t\t\t\tthresholdValue = cfg.thresholdValue ?? 90;\n\t\t\t\taggregation = cfg.aggregation ?? 'avg';\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 5;\n\t\t\t\tbreak;\n\t\t\tcase 'no_data':\n\t\t\t\tdataType = cfg.dataType ?? 'any';\n\t\t\t\tsilenceMinutes = cfg.silenceMinutes ?? 10;\n\t\t\t\tbreak;\n\t\t\tcase 'error_count_threshold':\n\t\t\t\tthresholdCount = cfg.thresholdCount ?? 100;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 60;\n\t\t\t\tbreak;\n\t\t\tcase 'task_duration_threshold':\n\t\t\t\ttaskName = cfg.taskName ?? '*';\n\t\t\t\tthresholdMs = cfg.thresholdMs ?? 30000;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 30;\n\t\t\t\tbreak;\n\t\t\tcase 'task_failure_rate':\n\t\t\t\ttaskName = cfg.taskName ?? '*';\n\t\t\t\tthresholdPercent = cfg.thresholdPercent ?? 10;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 60;\n\t\t\t\tminExecutions = cfg.minExecutions ?? 5;\n\t\t\t\tbreak;\n\t\t\tcase 'throughput_drop':\n\t\t\t\tdropPercent = cfg.dropPercent ?? 50;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 15;\n\t\t\t\tbaselineWindowMinutes = cfg.baselineWindowMinutes ?? 60;\n\t\t\t\tbreak;\n\t\t\tcase 'endpoint_error_rate':\n\t\t\t\tendpoint = cfg.endpoint ?? '*';\n\t\t\t\tthresholdPercent = cfg.thresholdPercent ?? 2;\n\t\t\t\tlookbackMinutes = cfg.lookbackMinutes ?? 10;\n\t\t\t\tminRequests = cfg.minRequests ?? 20;\n\t\t\t\tbreak;\n\t\t\tcase 'new_error':\n\t\t\t\tignorePatterns = (cfg.ignorePatterns || []).join(', ');\n\t\t\t\tbreak;\n\t\t\tcase 'error_regression':\n\t\t\t\tincludeArchived = cfg.includeArchived ?? true;\n\t\t\t\tbreak;\n\t\t\tcase 'impact_score_critical':\n\t\t\tcase 'impact_score_high':\n\t\t\tcase 'impact_score_medium':\n\t\t\t\tminRequests = cfg.minRequests ?? 50;\n\t\t\t\tbreak;\n\t\t\tcase 'ai_trace_cost':\n\t\t\t\ttraceName = cfg.traceName ?? '*';\n\t\t\t\tthresholdCost = cfg.thresholdCost ?? 0.5;\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\tfunction buildConfig(): any {\n\t\tswitch (ruleType) {\n\t\t\tcase 'error_rate_threshold':\n\t\t\t\treturn { thresholdPercent, lookbackMinutes, minRequests };\n\t\t\tcase 'endpoint_p95_threshold':\n\t\t\tcase 'endpoint_p99_threshold':\n\t\t\t\treturn { endpoint, thresholdMs, lookbackMinutes };\n\t\t\tcase 'apdex_drop':\n\t\t\t\treturn { thresholdApdex, lookbackMinutes, minRequests };\n\t\t\tcase 'metric_threshold':\n\t\t\t\treturn { metricName, operator, thresholdValue, aggregation, lookbackMinutes, tags: {} };\n\t\t\tcase 'no_data':\n\t\t\t\treturn { dataType, silenceMinutes };\n\t\t\tcase 'error_count_threshold':\n\t\t\t\treturn { thresholdCount, lookbackMinutes };\n\t\t\tcase 'task_duration_threshold':\n\t\t\t\treturn { taskName, thresholdMs, lookbackMinutes };\n\t\t\tcase 'task_failure_rate':\n\t\t\t\treturn { taskName, thresholdPercent, lookbackMinutes, minExecutions };\n\t\t\tcase 'throughput_drop':\n\t\t\t\treturn { dropPercent, lookbackMinutes, baselineWindowMinutes };\n\t\t\tcase 'endpoint_error_rate':\n\t\t\t\treturn { endpoint, thresholdPercent, lookbackMinutes, minRequests };\n\t\t\tcase 'new_error': {\n\t\t\t\tconst patterns = ignorePatterns\n\t\t\t\t\t.split(',')\n\t\t\t\t\t.map((p) => p.trim())\n\t\t\t\t\t.filter((p) => p);\n\t\t\t\treturn { ignorePatterns: patterns };\n\t\t\t}\n\t\t\tcase 'error_regression':\n\t\t\t\treturn { includeArchived };\n\t\t\tcase 'impact_score_critical':\n\t\t\tcase 'impact_score_high':\n\t\t\tcase 'impact_score_medium':\n\t\t\t\treturn { minRequests };\n\t\t\tcase 'ai_trace_cost':\n\t\t\t\treturn { traceName, thresholdCost };\n\t\t\tdefault:\n\t\t\t\treturn {};\n\t\t}\n\t}\n\n\tasync function handleSubmit() {\n\t\tloading = true;\n\t\terror = '';\n\n\t\ttry {\n\t\t\tconst body = {\n\t\t\t\tchannelId: parseInt(channelId),\n\t\t\t\tname,\n\t\t\t\truleType,\n\t\t\t\tconfig: buildConfig(),\n\t\t\t\tcooldownMinutes,\n\t\t\t\tseverity\n\t\t\t};\n\n\t\t\tif (isEditing) {\n\t\t\t\tawait api.put(`/notification-rules/${rule!.id}`, body, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully updated the Rule', { position: 'top-center' });\n\t\t\t} else {\n\t\t\t\tawait api.post('/notification-rules', body, {\n\t\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t\t});\n\t\t\t\ttoast.success('Successfully created the Rule', { position: 'top-center' });\n\t\t\t}\n\t\t\tonSaved();\n\t\t} catch (e: unknown) {\n\t\t\terror = e instanceof Error ? e.message : 'Failed to save rule';\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handleOpenChange(isOpen: boolean) {\n\t\tif (!isOpen) {\n\t\t\tresetForm();\n\t\t} else if (rule) {\n\t\t\tpopulateFromRule(rule);\n\t\t} else {\n\t\t\tresetForm();\n\t\t}\n\t\topen = isOpen;\n\t}\n\n\t$effect(() => {\n\t\tif (open && rule) {\n\t\t\tpopulateFromRule(rule);\n\t\t} else if (open && !rule) {\n\t\t\tresetForm();\n\t\t}\n\t});\n</script>\n\n<AlertDialog.Root {open} onOpenChange={handleOpenChange}>\n\t<AlertDialog.Content class=\"max-w-lg max-h-[85vh] overflow-y-auto\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>{isEditing ? 'Edit Rule' : 'New Rule'}</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\t{isEditing\n\t\t\t\t\t? 'Update the notification rule configuration'\n\t\t\t\t\t: 'Configure a new notification rule'}\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\n\t\t<form\n\t\t\tonsubmit={(e) => {\n\t\t\t\te.preventDefault();\n\t\t\t\thandleSubmit();\n\t\t\t}}\n\t\t\tclass=\"space-y-4\"\n\t\t>\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"rule-name\">Name</Label>\n\t\t\t\t<Input\n\t\t\t\t\tid=\"rule-name\"\n\t\t\t\t\tbind:value={name}\n\t\t\t\t\tplaceholder=\"e.g. High Error Rate\"\n\t\t\t\t\trequired\n\t\t\t\t/>\n\t\t\t</div>\n\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"rule-channel\">Channel</Label>\n\t\t\t\t<Select.Root type=\"single\" bind:value={channelId}>\n\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t{channels.find((c) => c.id.toString() === channelId)?.name ||\n\t\t\t\t\t\t\t'Select channel'}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t{#each channels as ch}\n\t\t\t\t\t\t\t<Select.Item value={ch.id.toString()}>{ch.name}</Select.Item>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</div>\n\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"rule-type\">Rule Type</Label>\n\t\t\t\t<Select.Root type=\"single\" bind:value={ruleType}>\n\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t{ruleTypeOptions.find((o) => o.value === ruleType)?.label || 'Select type'}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t{#each visibleRuleTypes as option}\n\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</div>\n\n\t\t\t{#if ruleTypeDescriptions[ruleType]}\n\t\t\t\t<Alert.Root class=\"bg-amber-50 border-amber-200 text-amber-900 dark:bg-amber-950/50 dark:border-amber-800 dark:text-amber-200 \">\n\t\t\t\t\t<TriangleAlert class=\"text-amber-600 dark:text-amber-400\" />\n\t\t\t\t\t<Alert.Description class=\"text-amber-800 dark:text-amber-300\">{ruleTypeDescriptions[ruleType]}</Alert.Description>\n\t\t\t\t</Alert.Root>\n\t\t\t{/if}\n\n\t\t\t<div class=\"rounded-md border p-3 space-y-3\">\n\t\t\t\t<p class=\"text-sm font-medium text-muted-foreground\">Rule Configuration</p>\n\n\t\t\t\t{#if ruleType === 'error_rate_threshold'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold\">Threshold (%)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdPercent}\n\t\t\t\t\t\t\tstep=\"0.1\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-min-req\">Min Requests</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-min-req\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={minRequests}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'endpoint_p95_threshold' || ruleType === 'endpoint_p99_threshold'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-endpoint\">Endpoint (* for all)</Label>\n\t\t\t\t\t\t<Input id=\"cfg-endpoint\" bind:value={endpoint} placeholder=\"GET /api/users\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold-ms\">Threshold (ms)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold-ms\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdMs}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-p\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-p\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'apdex_drop'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-apdex\">Apdex Threshold</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-apdex\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdApdex}\n\t\t\t\t\t\t\tstep=\"0.01\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t\tmax=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-a\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-a\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-min-req-a\">Min Requests</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-min-req-a\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={minRequests}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'metric_threshold'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-metric\">Metric Name</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-metric\"\n\t\t\t\t\t\t\tbind:value={metricName}\n\t\t\t\t\t\t\tplaceholder=\"cpu.used_pcnt\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-operator\">Operator</Label>\n\t\t\t\t\t\t<Select.Root type=\"single\" bind:value={operator}>\n\t\t\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t\t\t{operatorOptions.find((o) => o.value === operator)?.label || operator}\n\t\t\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t{#each operatorOptions as option}\n\t\t\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t</Select.Root>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-value\">Threshold Value</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-value\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdValue}\n\t\t\t\t\t\t\tstep=\"0.1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-agg\">Aggregation</Label>\n\t\t\t\t\t\t<Select.Root type=\"single\" bind:value={aggregation}>\n\t\t\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t\t\t{aggregationOptions.find((o) => o.value === aggregation)?.label ||\n\t\t\t\t\t\t\t\t\taggregation}\n\t\t\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t{#each aggregationOptions as option}\n\t\t\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t</Select.Root>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-m\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-m\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'no_data'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-data-type\">Data Type</Label>\n\t\t\t\t\t\t<Select.Root type=\"single\" bind:value={dataType}>\n\t\t\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t\t\t{dataTypeOptions.find((o) => o.value === dataType)?.label || dataType}\n\t\t\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t\t\t{#each dataTypeOptions as option}\n\t\t\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t</Select.Content>\n\t\t\t\t\t\t</Select.Root>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-silence\">Silence (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-silence\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={silenceMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'error_count_threshold'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-count\">Threshold Count</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-count\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdCount}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-ec\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-ec\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'task_duration_threshold'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-task\">Task Name (* for all)</Label>\n\t\t\t\t\t\t<Input id=\"cfg-task\" bind:value={taskName} placeholder=\"sync_users\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold-ms-t\">Threshold (ms)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold-ms-t\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdMs}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-td\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-td\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'task_failure_rate'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-task-f\">Task Name (* for all)</Label>\n\t\t\t\t\t\t<Input id=\"cfg-task-f\" bind:value={taskName} placeholder=\"sync_users\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold-pct\">Threshold (%)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold-pct\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdPercent}\n\t\t\t\t\t\t\tstep=\"0.1\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-tf\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-tf\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-min-exec\">Min Executions</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-min-exec\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={minExecutions}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'throughput_drop'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-drop\">Drop (%)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-drop\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={dropPercent}\n\t\t\t\t\t\t\tstep=\"0.1\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-tp\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-tp\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-baseline\">Baseline Window (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-baseline\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={baselineWindowMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'endpoint_error_rate'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-endpoint-er\">Endpoint</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-endpoint-er\"\n\t\t\t\t\t\t\tbind:value={endpoint}\n\t\t\t\t\t\t\tplaceholder=\"POST /api/checkout\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold-er\">Threshold (%)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold-er\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdPercent}\n\t\t\t\t\t\t\tstep=\"0.1\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-lookback-er\">Lookback (minutes)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-lookback-er\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={lookbackMinutes}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-min-req-er\">Min Requests</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-min-req-er\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={minRequests}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'new_error'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-ignore\">Ignore Patterns (optional, comma-separated)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-ignore\"\n\t\t\t\t\t\t\tbind:value={ignorePatterns}\n\t\t\t\t\t\t\tplaceholder=\"*timeout*, *context canceled*\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'error_regression'}\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tid=\"cfg-include-archived\"\n\t\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\t\tbind:checked={includeArchived}\n\t\t\t\t\t\t\tclass=\"h-4 w-4 rounded border-border\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Label for=\"cfg-include-archived\">Include archived exceptions</Label>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'impact_score_critical' || ruleType === 'impact_score_high' || ruleType === 'impact_score_medium'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-min-req-impact\">Min Requests</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-min-req-impact\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={minRequests}\n\t\t\t\t\t\t\tmin=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{:else if ruleType === 'ai_trace_cost'}\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-trace-name\">Trace Name (* for all)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-trace-name\"\n\t\t\t\t\t\t\tbind:value={traceName}\n\t\t\t\t\t\t\tplaceholder=\"Customer Support Agent\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"space-y-2\">\n\t\t\t\t\t\t<Label for=\"cfg-threshold-cost\">Cost Threshold ($)</Label>\n\t\t\t\t\t\t<Input\n\t\t\t\t\t\t\tid=\"cfg-threshold-cost\"\n\t\t\t\t\t\t\ttype=\"number\"\n\t\t\t\t\t\t\tbind:value={thresholdCost}\n\t\t\t\t\t\t\tstep=\"0.01\"\n\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t</div>\n\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"rule-cooldown\">Cooldown (minutes)</Label>\n\t\t\t\t<Input\n\t\t\t\t\tid=\"rule-cooldown\"\n\t\t\t\t\ttype=\"number\"\n\t\t\t\t\tbind:value={cooldownMinutes}\n\t\t\t\t\tmin=\"1\"\n\t\t\t\t/>\n\t\t\t</div>\n\n\t\t\t<div class=\"space-y-2\">\n\t\t\t\t<Label for=\"rule-severity\">Severity</Label>\n\t\t\t\t<Select.Root type=\"single\" bind:value={severity}>\n\t\t\t\t\t<Select.Trigger class=\"w-full\">\n\t\t\t\t\t\t{severityOptions.find((o) => o.value === severity)?.label || 'Auto (default)'}\n\t\t\t\t\t</Select.Trigger>\n\t\t\t\t\t<Select.Content>\n\t\t\t\t\t\t{#each severityOptions as option}\n\t\t\t\t\t\t\t<Select.Item value={option.value}>{option.label}</Select.Item>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Select.Content>\n\t\t\t\t</Select.Root>\n\t\t\t</div>\n\n\t\t\t{#if error}\n\t\t\t\t<p class=\"text-sm text-destructive\">{error}</p>\n\t\t\t{/if}\n\t\t</form>\n\n\t\t<AlertDialog.Footer>\n\t\t\t<AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>\n\t\t\t<Button onclick={handleSubmit} disabled={loading}>\n\t\t\t\t{#if isEditing}\n\t\t\t\t\t<Check class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\tUpdating...\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tUpdate Rule\n\t\t\t\t\t{/if}\n\t\t\t\t{:else}\n\t\t\t\t\t<Plus class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\tCreating...\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tNew Rule\n\t\t\t\t\t{/if}\n\t\t\t\t{/if}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Clock } from '@lucide/svelte';\n\timport { toast } from 'svelte-sonner';\n\timport { api } from '$lib/api';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\n\tinterface Props {\n\t\topen: boolean;\n\t\truleId: number | null;\n\t\tonSaved: () => void;\n\t}\n\n\tlet { open = $bindable(), ruleId, onSaved }: Props = $props();\n\n\tlet loading = $state(false);\n\n\tconst presets = [\n\t\t{ label: '30 minutes', minutes: 30 },\n\t\t{ label: '1 hour', minutes: 60 },\n\t\t{ label: '4 hours', minutes: 240 },\n\t\t{ label: '8 hours', minutes: 480 },\n\t\t{ label: '24 hours', minutes: 1440 }\n\t];\n\n\tasync function snooze(durationMinutes: number) {\n\t\tif (!ruleId) return;\n\t\tloading = true;\n\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t`/notification-rules/${ruleId}/snooze`,\n\t\t\t\t{ durationMinutes },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Rule snoozed', { position: 'top-center' });\n\t\t\tonSaved();\n\t\t} catch {\n\t\t\ttoast.error('Failed to snooze rule', { position: 'top-center' });\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tasync function clearSnooze() {\n\t\tif (!ruleId) return;\n\t\tloading = true;\n\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t`/notification-rules/${ruleId}/snooze`,\n\t\t\t\t{ durationMinutes: 0 },\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Snooze cleared', { position: 'top-center' });\n\t\t\tonSaved();\n\t\t} catch {\n\t\t\ttoast.error('Failed to clear snooze', { position: 'top-center' });\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handleOpenChange(isOpen: boolean) {\n\t\topen = isOpen;\n\t}\n</script>\n\n<AlertDialog.Root {open} onOpenChange={handleOpenChange}>\n\t<AlertDialog.Content class=\"max-w-sm\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Snooze Rule</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tTemporarily silence this rule for a set duration\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\n\t\t<div class=\"grid gap-2\">\n\t\t\t{#each presets as preset}\n\t\t\t\t<Button\n\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\tclass=\"w-full justify-start\"\n\t\t\t\t\tdisabled={loading}\n\t\t\t\t\tonclick={() => snooze(preset.minutes)}\n\t\t\t\t>\n\t\t\t\t\t<Clock class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t{preset.label}\n\t\t\t\t</Button>\n\t\t\t{/each}\n\t\t\t<Button\n\t\t\t\tvariant=\"ghost\"\n\t\t\t\tclass=\"w-full justify-start text-muted-foreground\"\n\t\t\t\tdisabled={loading}\n\t\t\t\tonclick={clearSnooze}\n\t\t\t>\n\t\t\t\tClear snooze\n\t\t\t</Button>\n\t\t</div>\n\n\t\t<AlertDialog.Footer>\n\t\t\t<AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n\timport { onMount, onDestroy } from 'svelte';\n\timport { browser } from '$app/environment';\n\timport { page } from '$app/state';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Badge } from '$lib/components/ui/badge';\n\timport { PaginationFooter } from '$lib/components/ui/pagination-footer';\n\timport { toast } from 'svelte-sonner';\n\timport * as Table from '$lib/components/ui/table';\n\timport * as Tabs from '$lib/components/ui/tabs';\n\timport * as Alert from '$lib/components/ui/alert';\n\timport * as AlertDialog from '$lib/components/ui/alert-dialog';\n\timport { Plus, Pencil, Trash2, Zap, ZapOff, Clock, Send, Info } from '@lucide/svelte';\n\timport { SearchBar } from '$lib/components/ui/search-bar';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { CalendarDate } from '@internationalized/date';\n\timport {\n\t\tparseTimeRangeFromUrl,\n\t\tgetResolvedTimeRange,\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport { calendarDateTimeToLuxon, toUTCISO } from '$lib/utils/formatters';\n\n\timport ChannelDialog from './channel-dialog.svelte';\n\timport RuleDialog from './rule-dialog.svelte';\n\timport SnoozeDialog from './snooze-dialog.svelte';\n\n\tinterface NotificationChannel {\n\t\tid: number;\n\t\tprojectId: string;\n\t\tname: string;\n\t\tchannelType: string;\n\t\tconfig: any;\n\t\tenabled: boolean;\n\t\tcreatedAt: string;\n\t}\n\n\tinterface NotificationRule {\n\t\tid: number;\n\t\tprojectId: string;\n\t\tchannelId: number;\n\t\tname: string;\n\t\truleType: string;\n\t\tconfig: any;\n\t\tenabled: boolean;\n\t\tcooldownMinutes: number;\n\t\tseverity: string;\n\t\tsnoozedUntil: string | null;\n\t\tchannelName: string;\n\t\tchannelType: string;\n\t\tcreatedAt: string;\n\t}\n\n\tinterface NotificationHistory {\n\t\tid: number;\n\t\truleType: string;\n\t\truleName: string;\n\t\tchannelName: string;\n\t\tseverity: string;\n\t\tsubject: string;\n\t\tbody: string;\n\t\tstatus: string;\n\t\terrorMessage: string | null;\n\t\turl: string;\n\t\tcreatedAt: string;\n\t}\n\n\tconst ruleTypeLabels: Record<string, string> = {\n\t\terror_rate_threshold: 'Error Rate',\n\t\tendpoint_p95_threshold: 'Endpoint P95',\n\t\tendpoint_p99_threshold: 'Endpoint P99',\n\t\tapdex_drop: 'Apdex Drop',\n\t\tmetric_threshold: 'Metric Threshold',\n\t\tno_data: 'No Data',\n\t\terror_count_threshold: 'Error Count',\n\t\ttask_duration_threshold: 'Task Duration',\n\t\ttask_failure_rate: 'Task Failure Rate',\n\t\tthroughput_drop: 'Throughput Drop',\n\t\tendpoint_error_rate: 'Endpoint Error Rate',\n\t\tnew_error: 'New Issue',\n\t\terror_regression: 'Error Regression',\n\t\timpact_score_critical: 'Impact Score Critical',\n\t\timpact_score_high: 'Impact Score High',\n\t\timpact_score_medium: 'Impact Score Medium'\n\t};\n\n\tconst channelTypeLabels: Record<string, string> = {\n\t\temail: 'Email',\n\t\twebhook: 'Webhook',\n\t\tslack: 'Slack',\n\t\tgithub: 'GitHub',\n\t\tpushover: 'Pushover'\n\t};\n\n\tconst tabDescriptions: Record<string, string> = {\n\t\tchannels:\n\t\t\t'Channels define where your notifications are delivered — such as Email, Slack, Webhooks, GitHub Issues, or Pushover. Create a channel first, then attach it to a rule.',\n\t\trules: 'Rules define when notifications are triggered. Each rule monitors a specific condition and sends an alert through the attached channel when that condition is met.',\n\t\thistory:\n\t\t\t'A log of all notifications that have been sent, including their status and the rule that triggered them.'\n\t};\n\n\tconst activeTab = $derived(page.url.searchParams.get('tab') || 'channels');\n\n\tfunction setTab(tab: string) {\n\t\tconst url = new URL(window.location.href);\n\t\turl.searchParams.set('tab', tab);\n\t\tif (tab !== 'history') {\n\t\t\turl.searchParams.delete('preset');\n\t\t\turl.searchParams.delete('from');\n\t\t\turl.searchParams.delete('to');\n\t\t}\n\t\tgoto(url.toString(), { replaceState: true, noScroll: true });\n\t\tif (tab === 'history') {\n\t\t\tloadHistory(false);\n\t\t}\n\t}\n\n\tlet channels = $state<NotificationChannel[]>([]);\n\tlet channelsLoading = $state(true);\n\n\tlet rules = $state<NotificationRule[]>([]);\n\tlet rulesLoading = $state(true);\n\n\tlet history = $state<NotificationHistory[]>([]);\n\tlet historyLoading = $state(true);\n\tlet historyPage = $state(1);\n\tlet historyPageSize = $state(25);\n\tlet historyTotal = $state(0);\n\tlet historyTotalPages = $state(0);\n\tlet searchQuery = $state('');\n\n\tconst timezone = $derived(getTimezone());\n\n\tfunction parseHistoryUrlParams() {\n\t\tif (!browser) return { preset: '7d', from: null, to: null };\n\t\treturn parseTimeRangeFromUrl(timezone, '7d');\n\t}\n\n\tconst initialUrlParams = parseHistoryUrlParams();\n\tconst initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n\tlet selectedPreset = $state<string | null>(initialUrlParams.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = fromTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = toTime.split(':').map(Number);\n\t\tconst luxonDt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(luxonDt);\n\t}\n\n\tfunction updateHistoryUrl(pushToHistory = true) {\n\t\tconst params: Record<string, string | null | undefined> = {};\n\t\tparams.tab = 'history';\n\t\tif (selectedPreset) {\n\t\t\tparams.preset = selectedPreset;\n\t\t} else {\n\t\t\tparams.from = getFromDateTimeUTC();\n\t\t\tparams.to = getToDateTimeUTC();\n\t\t}\n\t\tupdateUrl(params, { pushToHistory });\n\t}\n\n\tlet channelDialogOpen = $state(false);\n\tlet editingChannel = $state<NotificationChannel | null>(null);\n\tlet ruleDialogOpen = $state(false);\n\tlet editingRule = $state<NotificationRule | null>(null);\n\tlet snoozeDialogOpen = $state(false);\n\tlet snoozeRuleId = $state<number | null>(null);\n\n\tlet showDeleteChannelDialog = $state(false);\n\tlet deletingChannel = $state<NotificationChannel | null>(null);\n\n\tlet showDeleteRuleDialog = $state(false);\n\tlet deletingRule = $state<NotificationRule | null>(null);\n\n\tlet showToggleRuleDialog = $state(false);\n\tlet togglingRule = $state<NotificationRule | null>(null);\n\tlet togglingLoading = $state(false);\n\n\tlet showTestChannelDialog = $state(false);\n\tlet testingChannel = $state<NotificationChannel | null>(null);\n\tlet testingLoading = $state(false);\n\tlet testError = $state('');\n\n\tasync function loadChannels() {\n\t\tchannelsLoading = true;\n\t\ttry {\n\t\t\tconst res = await api.get('/notification-channels', {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\tchannels = res.channels || [];\n\t\t} catch {\n\t\t\tchannels = [];\n\t\t} finally {\n\t\t\tchannelsLoading = false;\n\t\t}\n\t}\n\n\tasync function loadRules() {\n\t\trulesLoading = true;\n\t\ttry {\n\t\t\tconst res = await api.get('/notification-rules', {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\trules = res.rules || [];\n\t\t} catch {\n\t\t\trules = [];\n\t\t} finally {\n\t\t\trulesLoading = false;\n\t\t}\n\t}\n\n\tasync function loadHistory(pushToHistory = true) {\n\t\thistoryLoading = true;\n\n\t\tif (selectedPreset) {\n\t\t\tconst range = getTimeRangeFromPreset(selectedPreset, timezone);\n\t\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\t}\n\n\t\tupdateHistoryUrl(pushToHistory);\n\n\t\ttry {\n\t\t\tconst res = await api.post(\n\t\t\t\t'/notification-history',\n\t\t\t\t{\n\t\t\t\t\tpagination: { page: historyPage, pageSize: historyPageSize },\n\t\t\t\t\tsearch: searchQuery.trim(),\n\t\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\t\ttoDate: getToDateTimeUTC()\n\t\t\t\t},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\thistory = res.data || [];\n\t\t\thistoryTotal = res.pagination?.total || 0;\n\t\t\thistoryTotalPages = res.pagination?.totalPages || 0;\n\t\t} catch {\n\t\t\thistory = [];\n\t\t} finally {\n\t\t\thistoryLoading = false;\n\t\t}\n\t}\n\n\tfunction handleHistorySearch() {\n\t\thistoryPage = 1;\n\t\tloadHistory(true);\n\t}\n\n\tfunction openDeleteChannel(channel: NotificationChannel) {\n\t\tdeletingChannel = channel;\n\t\tshowDeleteChannelDialog = true;\n\t}\n\n\tasync function deleteChannel() {\n\t\tif (!deletingChannel) return;\n\t\ttry {\n\t\t\tawait api.delete(`/notification-channels/${deletingChannel.id}`, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\ttoast.success('Successfully deleted the Channel', { position: 'top-center' });\n\t\t\tshowDeleteChannelDialog = false;\n\t\t\tdeletingChannel = null;\n\t\t\tloadChannels();\n\t\t\tloadRules();\n\t\t} catch {\n\t\t\ttoast.error('Failed to delete channel', { position: 'top-center' });\n\t\t}\n\t}\n\n\tfunction openTestChannel(channel: NotificationChannel) {\n\t\ttestingChannel = channel;\n\t\ttestError = '';\n\t\tshowTestChannelDialog = true;\n\t}\n\n\tasync function confirmTestChannel() {\n\t\tif (!testingChannel) return;\n\t\ttestingLoading = true;\n\t\ttestError = '';\n\t\ttry {\n\t\t\tawait api.post(\n\t\t\t\t`/notification-channels/${testingChannel.id}/test`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success('Test notification sent', { position: 'top-center' });\n\t\t\tshowTestChannelDialog = false;\n\t\t\ttestingChannel = null;\n\t\t} catch (e: any) {\n\t\t\tif (e.status === 422) {\n\t\t\t\ttestError = e.message || 'Validation failed';\n\t\t\t} else {\n\t\t\t\ttoast.error('An unexpected error has occurred', { position: 'top-center' });\n\t\t\t\tshowTestChannelDialog = false;\n\t\t\t\ttestingChannel = null;\n\t\t\t}\n\t\t} finally {\n\t\t\ttestingLoading = false;\n\t\t}\n\t}\n\n\tfunction openDeleteRule(rule: NotificationRule) {\n\t\tdeletingRule = rule;\n\t\tshowDeleteRuleDialog = true;\n\t}\n\n\tasync function deleteRule() {\n\t\tif (!deletingRule) return;\n\t\ttry {\n\t\t\tawait api.delete(`/notification-rules/${deletingRule.id}`, {\n\t\t\t\tprojectId: projectsState.currentProjectId ?? undefined\n\t\t\t});\n\t\t\ttoast.success('Successfully deleted the Rule', { position: 'top-center' });\n\t\t\tshowDeleteRuleDialog = false;\n\t\t\tdeletingRule = null;\n\t\t\tloadRules();\n\t\t} catch {\n\t\t\ttoast.error('Failed to delete rule', { position: 'top-center' });\n\t\t}\n\t}\n\n\tfunction openToggleRule(rule: NotificationRule) {\n\t\ttogglingRule = rule;\n\t\tshowToggleRuleDialog = true;\n\t}\n\n\tasync function confirmToggleRule() {\n\t\tif (!togglingRule) return;\n\t\ttogglingLoading = true;\n\t\ttry {\n\t\t\tconst action = togglingRule.enabled ? 'disabled' : 'enabled';\n\t\t\tawait api.post(\n\t\t\t\t`/notification-rules/${togglingRule.id}/toggle`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\ttoast.success(`Successfully ${action} the Rule`, { position: 'top-center' });\n\t\t\tshowToggleRuleDialog = false;\n\t\t\ttogglingRule = null;\n\t\t\tloadRules();\n\t\t} catch {\n\t\t\ttoast.error('Failed to toggle rule', { position: 'top-center' });\n\t\t} finally {\n\t\t\ttogglingLoading = false;\n\t\t}\n\t}\n\n\tfunction openSnooze(id: number) {\n\t\tsnoozeRuleId = id;\n\t\tsnoozeDialogOpen = true;\n\t}\n\n\tfunction openEditChannel(channel: NotificationChannel) {\n\t\teditingChannel = channel;\n\t\tchannelDialogOpen = true;\n\t}\n\n\tfunction openNewChannel() {\n\t\teditingChannel = null;\n\t\tchannelDialogOpen = true;\n\t}\n\n\tfunction openEditRule(rule: NotificationRule) {\n\t\teditingRule = rule;\n\t\truleDialogOpen = true;\n\t}\n\n\tfunction openNewRule() {\n\t\teditingRule = null;\n\t\truleDialogOpen = true;\n\t}\n\n\tfunction formatDate(dateStr: string) {\n\t\tconst date = new Date(dateStr);\n\t\tconst now = new Date();\n\t\tconst diff = now.getTime() - date.getTime();\n\t\tconst minutes = Math.floor(diff / 60000);\n\t\tif (minutes < 1) return 'just now';\n\t\tif (minutes < 60) return `${minutes}m ago`;\n\t\tconst hours = Math.floor(minutes / 60);\n\t\tif (hours < 24) return `${hours}h ago`;\n\t\tconst days = Math.floor(hours / 24);\n\t\treturn `${days}d ago`;\n\t}\n\n\tfunction isSnoozed(rule: NotificationRule) {\n\t\treturn rule.snoozedUntil && new Date(rule.snoozedUntil) > new Date();\n\t}\n\n\tfunction handleHistoryPageChange(newPage: number) {\n\t\thistoryPage = newPage;\n\t\tloadHistory(true);\n\t}\n\n\tfunction handleHistoryPageSizeChange(newSize: number) {\n\t\thistoryPageSize = newSize;\n\t\thistoryPage = 1;\n\t\tloadHistory(true);\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\ttoDate = to.date;\n\t\tfromTime = from.time;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\thistoryPage = 1;\n\t\tloadHistory(true);\n\t}\n\n\tfunction handlePopState() {\n\t\tconst urlParams = parseHistoryUrlParams();\n\t\tconst range = getResolvedTimeRange(urlParams, timezone);\n\t\tselectedPreset = urlParams.preset;\n\t\tfromDate = dateToCalendarDate(range.from, timezone);\n\t\ttoDate = dateToCalendarDate(range.to, timezone);\n\t\tfromTime = dateToTimeString(range.from, timezone);\n\t\ttoTime = dateToTimeString(range.to, timezone);\n\t\thistoryPage = 1;\n\t\tloadHistory(false);\n\t}\n\n\tonMount(() => {\n\t\twindow.addEventListener('popstate', handlePopState);\n\t\tloadChannels();\n\t\tloadRules();\n\t\tif (activeTab === 'history') {\n\t\t\tloadHistory(false);\n\t\t}\n\t});\n\n\tonDestroy(() => {\n\t\tif (typeof window !== 'undefined') {\n\t\t\twindow.removeEventListener('popstate', handlePopState);\n\t\t}\n\t});\n</script>\n\n<div class=\"space-y-2\">\n\t<div>\n\t\t<h1 class=\"text-2xl font-semibold tracking-tight\">Alerts</h1>\n\t</div>\n\n\t<div class=\"flex items-center justify-between\">\n\t\t<Tabs.Root value={activeTab} onValueChange={(v) => { if (v) setTab(v); }}>\n\t\t\t<Tabs.List>\n\t\t\t\t<Tabs.Trigger value=\"channels\">Channels</Tabs.Trigger>\n\t\t\t\t<Tabs.Trigger value=\"rules\">Rules</Tabs.Trigger>\n\t\t\t\t<Tabs.Trigger value=\"history\">History</Tabs.Trigger>\n\t\t\t</Tabs.List>\n\t\t</Tabs.Root>\n\t\t{#if activeTab === 'channels'}\n\t\t\t<Button size=\"sm\" onclick={openNewChannel}>\n\t\t\t\t<Plus class=\"mr-1 h-4 w-4\" /> New Channel\n\t\t\t</Button>\n\t\t{:else if activeTab === 'rules'}\n\t\t\t<Button size=\"sm\" onclick={openNewRule}>\n\t\t\t\t<Plus class=\"mr-1 h-4 w-4\" /> New Rule\n\t\t\t</Button>\n\t\t{/if}\n\t</div>\n\n\t<Alert.Root class=\"bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-950/50 dark:border-blue-800 dark:text-blue-200\">\n\t\t<Info class=\"text-blue-600 dark:text-blue-400\" />\n\t\t<Alert.Description class=\"text-blue-800 dark:text-blue-300\">{tabDescriptions[activeTab]}</Alert.Description>\n\t</Alert.Root>\n\n\t{#if activeTab === 'channels'}\n\t\t{#if channelsLoading}\n\t\t\t<div class=\"flex justify-center py-12\"><LoadingCircle size=\"xlg\" /></div>\n\t\t{:else if channels.length === 0}\n\t\t\t<div\n\t\t\t\tclass=\"flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground\"\n\t\t\t>\n\t\t\t\t<p class=\"mb-4\">No channels yet. Create one to get started.</p>\n\t\t\t\t<Button onclick={openNewChannel}>\n\t\t\t\t\t<Plus class=\"mr-1 h-4 w-4\" />\n\t\t\t\t\tCreate your first Channel\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t{:else}\n\t\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t\t<Table.Root>\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Head>Name</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Type</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Enabled</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Created</Table.Head>\n\t\t\t\t\t\t\t<Table.Head class=\"text-right\">Actions</Table.Head>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t{#each channels as channel}\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-medium\">{channel.name}</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t<Badge variant=\"outline\"\n\t\t\t\t\t\t\t\t\t\t>{channelTypeLabels[channel.channelType] ||\n\t\t\t\t\t\t\t\t\t\t\tchannel.channelType}</Badge\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t{#if channel.enabled}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"default\" class=\"bg-green-600\">On</Badge>\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"secondary\">Off</Badge>\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground\"\n\t\t\t\t\t\t\t\t\t>{formatDate(channel.createdAt)}</Table.Cell\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-right\">\n\t\t\t\t\t\t\t\t\t<div class=\"flex justify-end gap-1\">\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openTestChannel(channel)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Test\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Send class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openEditChannel(channel)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Edit\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Pencil class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openDeleteChannel(channel)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Delete\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Trash2 class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Table.Body>\n\t\t\t\t</Table.Root>\n\t\t\t</div>\n\t\t{/if}\n\t{:else if activeTab === 'rules'}\n\t\t{#if rulesLoading}\n\t\t\t<div class=\"flex justify-center py-12\"><LoadingCircle size=\"xlg\" /></div>\n\t\t{:else if rules.length === 0}\n\t\t\t<div\n\t\t\t\tclass=\"flex flex-col items-center justify-center rounded-md bg-muted py-20 text-center text-muted-foreground\"\n\t\t\t>\n\t\t\t\t<p class=\"mb-4\">No rules yet. Create one to get started.</p>\n\t\t\t\t<Button onclick={openNewRule}>\n\t\t\t\t\t<Plus class=\"mr-1 h-4 w-4\" />\n\t\t\t\t\tCreate your first Rule\n\t\t\t\t</Button>\n\t\t\t</div>\n\t\t{:else}\n\t\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t\t<Table.Root>\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Head>Name</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Type</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Channel</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Status</Table.Head>\n\t\t\t\t\t\t\t<Table.Head class=\"text-right\">Actions</Table.Head>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t{#each rules as rule}\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-medium\">{rule.name}</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell\n\t\t\t\t\t\t\t\t\t>{ruleTypeLabels[rule.ruleType] || rule.ruleType}</Table.Cell\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t<Badge variant=\"outline\">{rule.channelName}</Badge>\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t{#if isSnoozed(rule)}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"secondary\">Snoozed</Badge>\n\t\t\t\t\t\t\t\t\t{:else if rule.enabled}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"default\" class=\"bg-green-600\">On</Badge>\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"secondary\">Off</Badge>\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-right\">\n\t\t\t\t\t\t\t\t\t<div class=\"flex justify-end gap-1\">\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openSnooze(rule.id)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Snooze\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Clock class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openToggleRule(rule)}\n\t\t\t\t\t\t\t\t\t\t\ttitle={rule.enabled ? 'Disable' : 'Enable'}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{#if rule.enabled}\n\t\t\t\t\t\t\t\t\t\t\t\t<ZapOff class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t<Zap class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openEditRule(rule)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Edit\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Pencil class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"ghost\"\n\t\t\t\t\t\t\t\t\t\t\tsize=\"icon\"\n\t\t\t\t\t\t\t\t\t\t\tonclick={() => openDeleteRule(rule)}\n\t\t\t\t\t\t\t\t\t\t\ttitle=\"Delete\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Trash2 class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Table.Body>\n\t\t\t\t</Table.Root>\n\t\t\t</div>\n\t\t{/if}\n\t{:else if activeTab === 'history'}\n\t\t<div class=\"flex flex-col gap-2 pt-2 sm:flex-row sm:items-center sm:justify-between\">\n\t\t\t<SearchBar\n\t\t\t\tplaceholder=\"Search Historic Alerts...\"\n\t\t\t\tbind:value={searchQuery}\n\t\t\t\tonSearch={handleHistorySearch}\n\t\t\t\tdisabled={historyLoading}\n\t\t\t/>\n\t\t\t<div class=\"w-full sm:w-auto\">\n\t\t\t\t<TimeRangePicker\n\t\t\t\t\tbind:fromDate\n\t\t\t\t\tbind:toDate\n\t\t\t\t\tbind:fromTime\n\t\t\t\t\tbind:toTime\n\t\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t<Table.Root>\n\t\t\t\t{#if historyLoading}\n\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Cell colspan={6} class=\"h-48\">\n\t\t\t\t\t\t\t\t<div class=\"flex h-full items-center justify-center\">\n\t\t\t\t\t\t\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Body>\n\t\t\t\t{:else if history.length === 0}\n\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t<TableEmptyState colspan={6} message=\"No Historic Alerts found.\" />\n\t\t\t\t\t</Table.Body>\n\t\t\t\t{:else}\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Head>Severity</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Rule</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Subject</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Channel</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Status</Table.Head>\n\t\t\t\t\t\t\t<Table.Head>Sent At</Table.Head>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t{#each history as item}\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t{#if item.severity === 'critical'}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"destructive\">Critical</Badge>\n\t\t\t\t\t\t\t\t\t{:else if item.severity === 'warning'}\n\t\t\t\t\t\t\t\t\t\t<Badge class=\"bg-amber-500 text-white\">Warning</Badge>\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"secondary\">Info</Badge>\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-medium\">{item.ruleName}</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"max-w-xs truncate\">\n\t\t\t\t\t\t\t\t\t{#if item.url}\n\t\t\t\t\t\t\t\t\t\t<a href={item.url} class=\"text-blue-600 hover:underline dark:text-blue-400\">{item.subject}</a>\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t{item.subject}\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>{item.channelName}</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t{#if item.status === 'sent'}\n\t\t\t\t\t\t\t\t\t\t<Badge class=\"bg-green-600 text-white\">Sent</Badge>\n\t\t\t\t\t\t\t\t\t{:else if item.status === 'failed'}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"destructive\">Failed</Badge>\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Badge variant=\"secondary\">Skipped</Badge>\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground\"\n\t\t\t\t\t\t\t\t\t>{formatDate(item.createdAt)}</Table.Cell\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</Table.Body>\n\t\t\t\t{/if}\n\t\t\t</Table.Root>\n\t\t</div>\n\n\t\t<PaginationFooter\n\t\t\tcurrentPage={historyPage}\n\t\t\ttotalPages={historyTotalPages}\n\t\t\tpageSize={historyPageSize}\n\t\t\ttotalItems={historyTotal}\n\t\t\tonPageChange={handleHistoryPageChange}\n\t\t\tonPageSizeChange={handleHistoryPageSizeChange}\n\t\t\titemLabel=\"notification\"\n\t\t/>\n\t{/if}\n</div>\n\n<ChannelDialog\n\tbind:open={channelDialogOpen}\n\tchannel={editingChannel}\n\tonSaved={() => {\n\t\tloadChannels();\n\t\tchannelDialogOpen = false;\n\t}}\n/>\n\n<RuleDialog\n\tbind:open={ruleDialogOpen}\n\trule={editingRule}\n\t{channels}\n\tonSaved={() => {\n\t\tloadRules();\n\t\truleDialogOpen = false;\n\t}}\n/>\n\n<SnoozeDialog\n\tbind:open={snoozeDialogOpen}\n\truleId={snoozeRuleId}\n\tonSaved={() => {\n\t\tloadRules();\n\t\tsnoozeDialogOpen = false;\n\t}}\n/>\n\n<AlertDialog.Root bind:open={showDeleteChannelDialog}>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Delete Channel</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to delete \"{deletingChannel?.name}\"? This action cannot be undone.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showDeleteChannelDialog = false)}>Cancel</Button>\n\t\t\t<Button variant=\"destructive\" onclick={deleteChannel}>Delete</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root bind:open={showDeleteRuleDialog}>\n\t<AlertDialog.Content interactOutsideBehavior=\"close\">\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Delete Rule</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to delete \"{deletingRule?.name}\"? This action cannot be undone.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showDeleteRuleDialog = false)}>Cancel</Button>\n\t\t\t<Button variant=\"destructive\" onclick={deleteRule}>Delete</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root bind:open={showToggleRuleDialog}>\n\t<AlertDialog.Content\n\t\tinteractOutsideBehavior={togglingLoading ? 'ignore' : 'close'}\n\t\tescapeKeydownBehavior={togglingLoading ? 'ignore' : 'close'}\n\t>\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>{togglingRule?.enabled ? 'Disable' : 'Enable'} Rule</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tAre you sure you want to {togglingRule?.enabled ? 'disable' : 'enable'} \"{togglingRule?.name}\"?\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showToggleRuleDialog = false)} disabled={togglingLoading}>Cancel</Button>\n\t\t\t<Button onclick={confirmToggleRule} disabled={togglingLoading}>\n\t\t\t\t{togglingRule?.enabled ? 'Disable' : 'Enable'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root bind:open={showTestChannelDialog}>\n\t<AlertDialog.Content\n\t\tinteractOutsideBehavior={testingLoading ? 'ignore' : 'close'}\n\t\tescapeKeydownBehavior={testingLoading ? 'ignore' : 'close'}\n\t>\n\t\t<AlertDialog.Header>\n\t\t\t<AlertDialog.Title>Test Channel</AlertDialog.Title>\n\t\t\t<AlertDialog.Description>\n\t\t\t\tSend a test notification to \"{testingChannel?.name}\"? This will deliver a test message through the configured channel.\n\t\t\t</AlertDialog.Description>\n\t\t</AlertDialog.Header>\n\t\t{#if testError}\n\t\t\t<p class=\"text-sm text-destructive\">{testError}</p>\n\t\t{/if}\n\t\t<AlertDialog.Footer>\n\t\t\t<Button variant=\"outline\" onclick={() => (showTestChannelDialog = false)} disabled={testingLoading}>Cancel</Button>\n\t\t\t<Button onclick={confirmTestChannel} disabled={testingLoading}>\n\t\t\t\t<Send class=\"h-4 w-4\" /> {testingLoading ? 'Sending...' : 'Send Test'}\n\t\t\t</Button>\n\t\t</AlertDialog.Footer>\n\t</AlertDialog.Content>\n</AlertDialog.Root>\n"],"names":["props","$.rest_props","$$props","iconNode","Icon","$.noop","open","$.prop","name","$.state","channelType","loading","error","emailRecipients","$.proxy","webhookUrl","webhookMethod","webhookSecret","webhookHeaders","slackWebhookUrl","slackChannel","slackUsername","githubToken","githubOwner","githubRepo","githubLabels","pushoverUserKey","pushoverAppToken","pushoverDevice","pushoverPriority","pushoverRetry","pushoverExpire","pushoverCallback","pushoverSound","pushoverHtml","pushoverTtl","isEditing","channelTypeOptions","resetForm","$.set","populateFromChannel","ch","config","key","value","buildConfig","$.get","e","headers","h","labels","l","addEmailRecipient","removeEmailRecipient","index","_","i","addWebhookHeader","removeWebhookHeader","handleSubmit","body","api","projectsState","toast","handleOpenChange","isOpen","$.user_effect","AlertDialog_Root","$$anchor","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","$.template_effect","$.set_text","text_1","form","$.sibling","node_2","div","$.child","Label","node_5","Input","node_6","$$value","div_1","node_7","Select_Root","Select_Trigger","o","Select_Content","$.each","node_11","option","Select_Item","text_5","div_2","root_13","node_14","node_15","div_3","root_15","node_16","Button","Trash2","$$render","consequent","Plus","node_19","consequent_1","div_4","$.first_child","fragment_16","node_21","node_22","div_5","node_23","Select_Root_1","Select_Trigger_1","Select_Content_1","Select_Item_1","Select_Item_2","div_6","node_29","node_30","div_7","node_31","node_32","div_8","root_31","node_33","node_34","node_35","node_36","node_37","div_9","fragment_23","node_39","node_40","div_10","node_41","node_42","div_11","node_43","node_44","div_12","fragment_25","node_46","node_47","div_13","node_48","node_49","div_14","node_50","node_51","div_15","node_52","node_53","div_16","fragment_27","node_55","node_56","div_17","node_57","node_58","div_18","node_59","node_60","div_19","node_61","Select_Root_2","Select_Trigger_2","text_25","Select_Content_2","Select_Item_3","Select_Item_4","Select_Item_5","div_20","fragment_31","node_69","node_70","div_21","node_71","node_72","div_22","node_73","node_74","consequent_6","div_23","node_68","node_75","node_76","div_24","input","node_77","div_25","node_78","node_79","consequent_7","consequent_5","alternate","consequent_4","alternate_1","consequent_3","alternate_2","consequent_2","alternate_3","p","root_64","consequent_8","$.reset","node_81","AlertDialog_Footer","AlertDialog_Cancel","node_83","Check","node_85","consequent_9","alternate_4","node_87","consequent_11","alternate_5","consequent_10","alternate_6","$.event","channelId","ruleType","cooldownMinutes","severity","severityOptions","thresholdPercent","lookbackMinutes","minRequests","endpoint","thresholdMs","thresholdApdex","metricName","operator","thresholdValue","aggregation","dataType","silenceMinutes","thresholdCount","taskName","minExecutions","dropPercent","baselineWindowMinutes","ignorePatterns","includeArchived","traceName","thresholdCost","ruleTypeOptions","isFrontendProject","$.derived","isFrontendFramework","visibleRuleTypes","ruleTypeDescriptions","operatorOptions","aggregationOptions","dataTypeOptions","populateFromRule","r","cfg","c","node_13","node_17","text_8","Alert_Root","TriangleAlert","Alert_Description","text_9","fragment_19","node_24","node_25","node_26","node_27","node_28","fragment_21","node_38","node_45","text_22","node_54","Select_Root_3","Select_Trigger_3","Select_Content_3","text_26","node_62","fragment_37","node_64","Select_Root_4","Select_Trigger_4","Select_Content_4","text_30","fragment_44","fragment_46","node_80","node_82","fragment_48","node_86","div_26","node_88","div_27","node_89","node_90","div_28","node_91","node_92","div_29","fragment_50","node_94","node_95","div_30","node_96","node_97","div_31","node_98","node_99","div_32","fragment_52","node_101","node_102","div_33","node_103","node_104","div_34","node_105","node_106","div_35","node_107","node_108","div_36","root_89","node_110","node_111","div_37","root_92","$.remove_input_defaults","node_113","div_38","root_95","node_115","node_116","div_39","fragment_57","node_118","node_119","div_40","node_120","node_121","consequent_14","consequent_13","consequent_12","alternate_7","alternate_8","alternate_9","alternate_10","alternate_11","alternate_12","div_41","node_122","node_123","div_42","node_124","Select_Root_5","Select_Trigger_5","Select_Content_5","node_128","text_56","p_1","root_108","consequent_15","node_131","node_133","node_135","consequent_16","alternate_13","node_137","consequent_18","alternate_14","consequent_17","alternate_15","presets","snooze","durationMinutes","clearSnooze","preset","Clock","text_2","ruleTypeLabels","channelTypeLabels","tabDescriptions","activeTab","page","setTab","tab","url","goto","loadHistory","channels","channelsLoading","rules","rulesLoading","history","historyLoading","historyPage","historyPageSize","historyTotal","historyTotalPages","searchQuery","timezone","getTimezone","parseHistoryUrlParams","parseTimeRangeFromUrl","initialUrlParams","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","getFromDateTimeUTC","hour","minute","luxonDt","calendarDateTimeToLuxon","toUTCISO","getToDateTimeUTC","updateHistoryUrl","pushToHistory","params","updateUrl","channelDialogOpen","editingChannel","ruleDialogOpen","editingRule","snoozeDialogOpen","snoozeRuleId","showDeleteChannelDialog","deletingChannel","showDeleteRuleDialog","deletingRule","showToggleRuleDialog","togglingRule","togglingLoading","showTestChannelDialog","testingChannel","testingLoading","testError","loadChannels","res","loadRules","range","getTimeRangeFromPreset","handleHistorySearch","openDeleteChannel","channel","deleteChannel","openTestChannel","confirmTestChannel","openDeleteRule","rule","deleteRule","openToggleRule","confirmToggleRule","action","openSnooze","id","openEditChannel","openNewChannel","openEditRule","openNewRule","formatDate","dateStr","date","diff","minutes","hours","isSnoozed","handleHistoryPageChange","newPage","handleHistoryPageSizeChange","newSize","handleTimeRangeChange","from","to","handlePopState","urlParams","onMount","onDestroy","fragment","Tabs_Root","v","Tabs_List","Tabs_Trigger","Tabs_Trigger_1","Tabs_Trigger_2","node_8","Info","node_10","text_3","root_14","LoadingCircle","root_16","$.append","root_18","Table_Root","Table_Header","Table_Row","Table_Head","Table_Head_1","Table_Head_2","Table_Head_3","Table_Head_4","Table_Body","Table_Row_1","Table_Cell","Table_Cell_1","Badge","text_10","Table_Cell_2","Table_Cell_3","Table_Cell_4","root_39","Send","Pencil","root_45","root_47","root_49","Table_Root_1","Table_Header_1","Table_Row_2","Table_Head_5","Table_Head_6","Table_Head_7","Table_Head_8","Table_Head_9","Table_Body_1","Table_Row_3","Table_Cell_5","text_19","Table_Cell_6","text_20","Table_Cell_7","text_21","Table_Cell_8","Table_Cell_9","root_73","$0","node_63","ZapOff","Zap","node_65","node_66","fragment_55","SearchBar","TimeRangePicker","Table_Root_2","Table_Body_2","Table_Row_4","Table_Cell_10","root_86","Table_Body_3","TableEmptyState","Table_Header_2","Table_Row_5","Table_Head_10","Table_Head_11","Table_Head_12","Table_Head_13","Table_Head_14","Table_Head_15","Table_Body_4","item","Table_Row_6","Table_Cell_11","Table_Cell_12","text_34","Table_Cell_13","a","root_112","text_35","text_36","Table_Cell_14","text_37","Table_Cell_15","Table_Cell_16","PaginationFooter","node_100","consequent_19","alternate_16","alternate_17","ChannelDialog","RuleDialog","SnoozeDialog","text_43","AlertDialog_Root_1","AlertDialog_Content_1","AlertDialog_Header_1","AlertDialog_Title_1","AlertDialog_Description_1","text_47","AlertDialog_Footer_1","AlertDialog_Root_2","AlertDialog_Content_2","AlertDialog_Header_2","AlertDialog_Title_2","text_50","AlertDialog_Description_2","AlertDialog_Footer_2","node_126","node_127","text_53","AlertDialog_Root_3","AlertDialog_Content_3","AlertDialog_Header_3","AlertDialog_Title_3","AlertDialog_Description_3","text_55","root_153","consequent_20","AlertDialog_Footer_3","node_136"],"mappings":"yxDAAA,cA6CIA,GAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,GAAQ,EAAK,QAAU,EAAK,qIAAuI,OAAM,CAAI,EAAK,4BAA4B,CAAA,GAcnNC,2BAAqBJ,GAAK,uBAAYG,sDACtB,UAAQE,EAAA,wCAHzB,kBC1DA,cA6CIL,GAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,GAAQ,EAAK,QAAU,EAAK,8EAAgF,OAAM,CAAI,EAAK,UAAS,GAAM,OAAM,CAAI,EAAK,YAAY,CAAA,GAc1KC,qCAA+BJ,GAAK,uBAAYG,sDAChC,UAAQE,EAAA,wCAHzB,kBC1DA,cA6CIL,GAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,GAAQ,EAAK,QAAU,EAAK,6DAA+D,OAAU,CAAA,EAAK,8CAA8C,IAAM,QAAU,EAAK,8GAAgH,OAAM,CAAI,EAAK,YAAY,CAAA,GAc7TC,8BAAwBJ,GAAK,uBAAYG,sDACzB,UAAQE,EAAA,wCAHzB,kBC1DA,cA6CIL,GAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,GAAQ,EAAK,QAAU,EAAK,iKAcjCC,0BAAoBJ,GAAK,uBAAYG,sDACrB,UAAQE,EAAA,wCAHzB,07CC1DA,cA2BOC,GAAIC,GAAAL,EAAA,OAAA,EAAA,EAENM,GAAOC,EAAO,EAAE,EAChBC,GAAcD,EAAO,OAAO,EAC5BE,EAAUF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ByE,EAAc,EAAG,aAAe,WAAW,EAAA,CAAA,mJA1YzE","x_google_ignoreList":[0,1,2,3]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/22.BcVOxonZ.js b/backend/static/frontend/_app/immutable/nodes/22.BcVOxonZ.js
new file mode 100644
index 00000000..34b355c6
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/22.BcVOxonZ.js
@@ -0,0 +1 @@
+import{r as sr}from"../chunks/B4VmGkxP.js";import{i as b}from"../chunks/DMODTt3n.js";import{p as lr,h as i,v as pe,F as nr,g as r,i as s,f,b as t,a as ir,c as $,t as d,s as a,e as c,r as v,n as p,k as _e,l as $e,d as ge,u as dr,j as cr}from"../chunks/B2WdN-7r.js";import{e as vr,i as ur}from"../chunks/CMyj8Fzw.js";import{c as Y}from"../chunks/BAcG0-U_.js";import{g as he}from"../chunks/BIF4_51j.js";import{p as Ae}from"../chunks/CyRgFauW.js";import{B as fr}from"../chunks/C1aqwstW.js";import{I as O}from"../chunks/D8CWOmhn.js";import{L as x}from"../chunks/Csh2s3-8.js";import{C as mr,a as pr,b as _r}from"../chunks/BHR29ZVu.js";import{C as $r}from"../chunks/BKHeGn2e.js";import{C as gr}from"../chunks/KAiF5-Ht.js";import{A as hr,a as xr}from"../chunks/CaHAoFtL.js";import{A as wr}from"../chunks/DxBI0u1e.js";import{S as yr,a as Pr,b as br,c as jr}from"../chunks/BgAHJuQl.js";import{t as kr,F as Cr,b as Ne,p as zr}from"../chunks/qCQ2nSvO.js";import{t as Sr}from"../chunks/BnbBSyGl.js";import{F as Tr}from"../chunks/DJPlLp0I.js";import{O as Or}from"../chunks/CRXNgefC.js";import{C as Er}from"../chunks/XxKcOLZH.js";import{C as Ar}from"../chunks/DUJ_Z9AF.js";const Nr=()=>{if(localStorage.getItem("AUTH_TOKEN"))throw sr(302,"/");return{}},_t=Object.freeze(Object.defineProperty({__proto__:null,load:Nr},Symbol.toStringTag,{value:"Module"}));var Lr=f('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),Fr=f('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),Rr=f('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),qr=f("<!> <!>",1),Ir=f("<!> <!> <!>",1),Kr=f("<span> </span>"),Dr=f("<span> </span> <!>",1),Mr=f("<!> <!>",1),Br=f('<form class="grid w-full items-center gap-4"><div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex items-center gap-3 mt-2"><div class="flex-1 border-t"></div> <p class="text-sm text-muted-foreground">Organization & Project</p> <div class="flex-1 border-t"></div></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <!> <!></form>'),Ur=f("<!> <!> <!>",1),Wr=f("<!> <!> <!>",1),Yr=f('<div class="flex min-h-screen w-full items-center justify-center px-4 py-8"><!></div>');function $t(xe,Le){lr(Le,!0);const we="gin";function Fe(l){return l&&l in Cr?l:we}let Z=i(pe(Ae.url.searchParams.get("email")??"")),G=i(""),E=i(""),H=i(""),J=i(""),R=i(pe(Intl.DateTimeFormat().resolvedOptions().timeZone)),V=i(""),Q=i(pe(Fe(Ae.url.searchParams.get("framework")))),j=i(""),k=i(!1),Re=i(""),q=i(!0),I=i(!1);const qe=""!=="",Ie=Intl.supportedValuesOf("timeZone");nr(()=>{if(r(I)){if(!r(q)){he("/login");return}s(k,!0),fetch("/api/has-organizations",{method:"GET"}).then(l=>l.json()).then(l=>{l.hasOrganizations&&he("/login"),s(k,!1)}).catch(()=>{kr.error("An unexpected error has occured. The page will refresh in 5 seconds."),setTimeout(()=>{window.location.reload()},5e3)})}});async function Ke(){if(r(E)!==r(H)){s(j,"Passwords do not match");return}if(r(E).length<8){s(j,"Password must be at least 8 characters");return}s(k,!0),s(j,"");try{const l=await fetch("/api/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r(Z),name:r(G),password:r(E),organizationName:r(J),timezone:r(R),projectName:r(V),framework:r(Q),captchaToken:r(Re)})});if(!l.ok){const D=await l.json();throw new Error(D.error||"Registration failed")}const K=await l.json();Ne.setToken(K.token),Ne.setOrganizations(K.organizations||[]),zr.setProjects(K.projects),he("/")}catch(l){s(j,l instanceof Error?l.message:"Registration failed",!0)}finally{s(k,!1)}}var X=Yr(),De=c(X);mr(De,{class:"w-[400px]",children:(l,K)=>{var D=Wr(),ye=$(D);pr(ye,{children:(M,Be)=>{var A=qr(),N=$(A);_r(N,{class:"text-2xl",children:(C,re)=>{var w=Rr(),n=c(w);{var g=u=>{var h=Lr();t(u,h)},z=u=>{var h=Fr();t(u,h)};b(n,u=>{Sr.isDark?u(g):u(z,!1)})}v(w),t(C,w)},$$slots:{default:!0}});var ee=a(N,2);gr(ee,{class:"text-center",children:(C,re)=>{p();var w=d("Create your account");t(C,w)},$$slots:{default:!0}}),t(M,A)},$$slots:{default:!0}});var Pe=a(ye,2);$r(Pe,{children:(M,Be)=>{var A=Ur(),N=$(A);{var ee=n=>{hr(n,{variant:"destructive",class:"mb-4 bg-red-50 border-red-200",children:(g,z)=>{var u=Ir(),h=$(u);Er(h,{class:"h-4 w-4 text-red-700"});var S=a(h,2);wr(S,{class:"text-red-800",children:(L,F)=>{p();var y=d("Error");t(L,y)},$$slots:{default:!0}});var B=a(S,2);xr(B,{class:"text-red-700",children:(L,F)=>{p();var y=d();_e(()=>$e(y,r(j))),t(L,y)},$$slots:{default:!0}}),t(g,u)},$$slots:{default:!0}})};b(N,n=>{r(j)&&n(ee)})}var C=a(N,2);Or(C,{get passwordLoginEnabled(){return r(q)},set passwordLoginEnabled(n){s(q,n,!0)},get loaded(){return r(I)},set loaded(n){s(I,n,!0)}});var re=a(C,2);{var w=n=>{var g=Br(),z=c(g),u=c(z);x(u,{for:"email",children:(e,m)=>{p();var o=d("Email");t(e,o)},$$slots:{default:!0}});var h=a(u,2);O(h,{id:"email",type:"email",placeholder:"[email protected]",required:!0,get value(){return r(Z)},set value(e){s(Z,e,!0)}}),v(z);var S=a(z,2),B=c(S);x(B,{for:"name",children:(e,m)=>{p();var o=d("Name");t(e,o)},$$slots:{default:!0}});var L=a(B,2);O(L,{id:"name",type:"text",placeholder:"Your name",required:!0,get value(){return r(G)},set value(e){s(G,e,!0)}}),v(S);var F=a(S,2),y=c(F);x(y,{for:"password",children:(e,m)=>{p();var o=d("Password");t(e,o)},$$slots:{default:!0}});var Ue=a(y,2);O(Ue,{id:"password",type:"password",placeholder:"Password (min 8 characters)",required:!0,get value(){return r(E)},set value(e){s(E,e,!0)}}),v(F);var te=a(F,2),be=c(te);x(be,{for:"confirmPassword",children:(e,m)=>{p();var o=d("Confirm Password");t(e,o)},$$slots:{default:!0}});var We=a(be,2);O(We,{id:"confirmPassword",type:"password",placeholder:"Confirm password",required:!0,get value(){return r(H)},set value(e){s(H,e,!0)}}),v(te);var ae=a(te,4),je=c(ae);x(je,{for:"organizationName",children:(e,m)=>{p();var o=d("Organization Name");t(e,o)},$$slots:{default:!0}});var Ye=a(je,2);O(Ye,{id:"organizationName",type:"text",placeholder:"Your company or team",required:!0,get value(){return r(J)},set value(e){s(J,e,!0)}}),v(ae);var oe=a(ae,2),ke=c(oe);x(ke,{for:"timezone",children:(e,m)=>{p();var o=d("Timezone");t(e,o)},$$slots:{default:!0}});var Ze=a(ke,2);Y(Ze,()=>br,(e,m)=>{m(e,{type:"single",get value(){return r(R)},set value(o){s(R,o,!0)},children:(o,ne)=>{var U=Mr(),W=$(U);Y(W,()=>yr,(_,P)=>{P(_,{class:"w-full",children:(de,Ve)=>{var T=Kr(),ce=c(T,!0);v(T),_e(()=>$e(ce,r(R))),t(de,T)},$$slots:{default:!0}})});var ie=a(W,2);Y(ie,()=>Pr,(_,P)=>{P(_,{class:"max-h-60",children:(de,Ve)=>{var T=ge(),ce=$(T);vr(ce,17,()=>Ie,ur,(Qe,Te)=>{var Oe=ge(),Xe=$(Oe);{const er=(ve,ue)=>{let rr=()=>ue?.().selected;var Ee=Dr(),fe=$(Ee),tr=c(fe,!0);v(fe);var ar=a(fe,2);{var or=me=>{Ar(me,{class:"absolute end-2 size-4"})};b(ar,me=>{rr()&&me(or)})}_e(()=>$e(tr,r(Te))),t(ve,Ee)};Y(Xe,()=>jr,(ve,ue)=>{ue(ve,{get value(){return r(Te)},children:er,$$slots:{default:!0}})})}t(Qe,Oe)}),t(de,T)},$$slots:{default:!0}})}),t(o,U)},$$slots:{default:!0}})}),v(oe);var se=a(oe,2),Ce=c(se);x(Ce,{for:"projectName",children:(e,m)=>{p();var o=d("Project Name");t(e,o)},$$slots:{default:!0}});var Ge=a(Ce,2);O(Ge,{id:"projectName",type:"text",placeholder:"My App",required:!0,get value(){return r(V)},set value(e){s(V,e,!0)}}),v(se);var le=a(se,2),ze=c(le);x(ze,{for:"framework",children:(e,m)=>{p();var o=d("Framework");t(e,o)},$$slots:{default:!0}});var He=a(ze,2);Tr(He,{get value(){return r(Q)},set value(e){s(Q,e,!0)}}),v(le);var Se=a(le,2);b(Se,e=>{});var Je=a(Se,2);{let e=dr(()=>r(k)||qe);fr(Je,{type:"submit",get disabled(){return r(e)},class:"w-full mt-2",children:(m,o)=>{var ne=ge(),U=$(ne);{var W=_=>{var P=d("Creating account...");t(_,P)},ie=_=>{var P=d("Create Account");t(_,P)};b(U,_=>{r(k)?_(W):_(ie,!1)})}t(m,ne)},$$slots:{default:!0}})}v(g),cr("submit",g,e=>{e.preventDefault(),Ke()}),t(n,g)};b(re,n=>{r(I)&&r(q)&&n(w)})}t(M,A)},$$slots:{default:!0}});var Me=a(Pe,2);b(Me,M=>{}),t(l,D)},$$slots:{default:!0}}),v(X),t(xe,X),ir()}export{$t as component,_t as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/22.BcVOxonZ.js.map b/backend/static/frontend/_app/immutable/nodes/22.BcVOxonZ.js.map
new file mode 100644
index 00000000..9549dcf5
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/22.BcVOxonZ.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"22.BcVOxonZ.js","sources":["../../../../../../src/routes/register/+page.ts","../../../../../../src/routes/register/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n // Check if user is already authenticated\n const token = localStorage.getItem('AUTH_TOKEN');\n if (token) {\n throw redirect(302, '/');\n }\n return {};\n};\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { page } from '$app/state';\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardFooter, CardHeader, CardTitle, CardDescription } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import * as Select from \"$lib/components/ui/select\";\n import { CircleAlert, Check } from \"@lucide/svelte\";\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState, FRAMEWORK_LABELS, type Framework } from '$lib/state/projects.svelte';\n import { themeState } from '$lib/state/theme.svelte';\n import { toast } from 'svelte-sonner';\n import FrameworkCombobox from '$lib/components/framework-combobox.svelte';\n import TurnstileWidget from '$lib/components/turnstile-widget.svelte';\n import OauthButtons from '$lib/components/oauth-buttons.svelte';\n\n const DEFAULT_FRAMEWORK: Framework = 'gin';\n\n function parseFrameworkParam(value: string | null): Framework {\n if (!value) return DEFAULT_FRAMEWORK;\n return (value in FRAMEWORK_LABELS ? value : DEFAULT_FRAMEWORK) as Framework;\n }\n\n let email = $state(page.url.searchParams.get('email') ?? '');\n let name = $state('');\n let password = $state('');\n let confirmPassword = $state('');\n let organizationName = $state('');\n let timezone = $state(Intl.DateTimeFormat().resolvedOptions().timeZone);\n let projectName = $state('');\n let framework = $state<Framework>(parseFrameworkParam(page.url.searchParams.get('framework')));\n let error = $state('');\n let loading = $state(false);\n let captchaToken = $state('');\n let passwordLoginEnabled = $state(true);\n let providersLoaded = $state(false);\n\n const turnstileSiteKey = __TURNSTILE_SITE_KEY__;\n const captchaEnabled = turnstileSiteKey !== '';\n\n const timezones = Intl.supportedValuesOf('timeZone');\n\n if (!__CLOUD_MODE__) {\n $effect(() => {\n if (!providersLoaded) return;\n\n // Password login is disabled — this page is inaccessible, send to login.\n if (!passwordLoginEnabled) {\n goto(\"/login\");\n return;\n }\n\n // if we're not in the cloud mode we have to check if an organization exists and if it does we should go to the login page\n loading = true;\n fetch('/api/has-organizations', {\n method: 'GET',\n })\n .then(response => response.json())\n .then((response) => {\n if (response.hasOrganizations) {\n goto(\"/login\")\n }\n loading = false\n }).catch(() => {\n toast.error(\"An unexpected error has occured. The page will refresh in 5 seconds.\")\n setTimeout(() => {\n window.location.reload()\n }, 5000)\n });\n })\n }\n\n async function handleRegister() {\n if (password !== confirmPassword) {\n error = 'Passwords do not match';\n return;\n }\n\n if (password.length < 8) {\n error = 'Password must be at least 8 characters';\n return;\n }\n\n if (captchaEnabled && !captchaToken) {\n error = 'Please complete the captcha';\n return;\n }\n\n loading = true;\n error = '';\n\n try {\n const response = await fetch('/api/register', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({\n email,\n name,\n password,\n organizationName,\n timezone,\n projectName,\n framework,\n captchaToken\n })\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Registration failed');\n }\n\n const data = await response.json();\n\n authState.setToken(data.token);\n authState.setOrganizations(data.organizations || []);\n projectsState.setProjects(data.projects);\n\n goto('/');\n } catch (e) {\n error = e instanceof Error ? e.message : 'Registration failed';\n } finally {\n loading = false;\n }\n }\n</script>\n\n<div class=\"flex min-h-screen w-full items-center justify-center px-4 py-8\">\n <Card class=\"w-[400px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n <CardDescription class=\"text-center\">\n Create your account\n </CardDescription>\n </CardHeader>\n <CardContent>\n {#if error}\n <Alert variant=\"destructive\" class=\"mb-4 bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n {/if}\n <OauthButtons bind:passwordLoginEnabled bind:loaded={providersLoaded} />\n {#if providersLoaded && passwordLoginEnabled}\n <form onsubmit={(e) => { e.preventDefault(); handleRegister(); }} class=\"grid w-full items-center gap-4\">\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" bind:value={email} placeholder=\"[email protected]\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"name\">Name</Label>\n <Input id=\"name\" type=\"text\" bind:value={name} placeholder=\"Your name\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"password\">Password</Label>\n <Input id=\"password\" type=\"password\" bind:value={password} placeholder=\"Password (min 8 characters)\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"confirmPassword\">Confirm Password</Label>\n <Input id=\"confirmPassword\" type=\"password\" bind:value={confirmPassword} placeholder=\"Confirm password\" required />\n </div>\n\n <div class=\"flex items-center gap-3 mt-2\">\n <div class=\"flex-1 border-t\"></div>\n <p class=\"text-sm text-muted-foreground\">Organization & Project</p>\n <div class=\"flex-1 border-t\"></div>\n </div>\n\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"organizationName\">Organization Name</Label>\n <Input id=\"organizationName\" type=\"text\" bind:value={organizationName} placeholder=\"Your company or team\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"timezone\">Timezone</Label>\n <Select.Root type=\"single\" bind:value={timezone}>\n <Select.Trigger class=\"w-full\">\n <span>{timezone}</span>\n </Select.Trigger>\n <Select.Content class=\"max-h-60\">\n {#each timezones as tz}\n <Select.Item value={tz}>\n {#snippet children({ selected })}\n <span>{tz}</span>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Select.Item>\n {/each}\n </Select.Content>\n </Select.Root>\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"projectName\">Project Name</Label>\n <Input id=\"projectName\" type=\"text\" bind:value={projectName} placeholder=\"My App\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"framework\">Framework</Label>\n <FrameworkCombobox bind:value={framework} />\n </div>\n\n {#if captchaEnabled}\n <div class=\"flex flex-col space-y-1.5 mt-2\">\n <TurnstileWidget\n siteKey={turnstileSiteKey}\n onVerify={(token) => captchaToken = token}\n onError={() => captchaToken = ''}\n />\n </div>\n {/if}\n\n <Button type=\"submit\" disabled={loading || (captchaEnabled && !captchaToken)} class=\"w-full mt-2\">\n {#if loading}\n Creating account...\n {:else}\n Create Account\n {/if}\n </Button>\n </form>\n {/if}\n </CardContent>\n\n {#if __CLOUD_MODE__}\n <CardFooter class=\"flex flex-col justify-center\">\n <p class=\"text-sm text-muted-foreground\">\n Already have an account? <a href=\"/login\" class=\"text-primary hover:underline\">Login</a>\n </p>\n </CardFooter>\n {/if}\n </Card>\n</div>\n"],"names":["load","redirect","DEFAULT_FRAMEWORK","parseFrameworkParam","value","FRAMEWORK_LABELS","email","$.state","$.proxy","page","name","password","confirmPassword","organizationName","timezone","projectName","framework","error","loading","captchaToken","passwordLoginEnabled","providersLoaded","captchaEnabled","timezones","$.user_effect","$.get","goto","$.set","response","toast","handleRegister","data","authState","projectsState","e","div","root","Card","node","CardHeader","node_1","CardTitle","node_2","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardDescription","node_4","CardContent","node_5","Alert","$$anchor","CircleAlert","node_7","AlertTitle","node_8","AlertDescription","node_9","consequent_1","OauthButtons","node_10","$$value","form","root_12","div_2","Label","node_12","Input","node_13","div_3","node_14","node_15","div_4","node_16","node_17","div_5","node_18","node_19","div_6","node_20","node_21","div_7","node_22","Select_Root","Select_Trigger","span","root_20","Select_Content","$.each","node_26","tz","children","$$arg0","selected","span_1","$.first_child","fragment_9","Check","consequent_2","Select_Item","div_8","node_29","node_30","div_9","node_31","FrameworkCombobox","node_32","Button","node_35","consequent_4","alternate_1","consequent_5"],"mappings":"soCAGO,MAAMA,GAAiB,IAAM,CAGhC,GADc,aAAa,QAAQ,YAAY,EAE3C,MAAMC,GAAS,IAAK,GAAG,EAE3B,MAAO,CAAA,CACX,ixCCVA,WAkBU,MAAAC,GAA+B,eAE5BC,GAAoBC,EAAiC,CACrD,OAAAA,GACGA,KAASC,GAAmBD,EADjBF,EAEvB,CAEI,IAAAI,EAAQC,EAAMC,GAACC,GAAK,IAAI,aAAa,IAAI,OAAO,GAAK,EAAE,CAAA,EACvDC,EAAOH,EAAO,EAAE,EAChBI,EAAWJ,EAAO,EAAE,EACpBK,EAAkBL,EAAO,EAAE,EAC3BM,EAAmBN,EAAO,EAAE,EAC5BO,EAAWP,EAAMC,GAAC,KAAK,iBAAiB,kBAAkB,QAAQ,CAAA,EAClEO,EAAcR,EAAO,EAAE,EACvBS,EAAYT,EAAMC,GAAYL,GAAoBM,GAAK,IAAI,aAAa,IAAI,WAAW,CAAA,CAAA,CAAA,EACvFQ,EAAQV,EAAO,EAAE,EACjBW,EAAUX,EAAO,EAAK,EACtBY,GAAeZ,EAAO,EAAE,EACxBa,EAAuBb,EAAO,EAAI,EAClCc,EAAkBd,EAAO,EAAK,QAG5Be,GADmB,KACmB,GAEtCC,GAAY,KAAK,kBAAkB,UAAU,EAG/CC,GAAO,IAAO,MACLH,CAAe,EAGf,IAAA,C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KAJAH,GAAG,CAAA,OAIHG,EAAG,EACCtC,EAAKuC,GAAA,yGACLC,GAAiBC,GAAA,KAAC,OAAU,UAAEjG,CAAS,OAArB,MAAUoD,EAAA,GAAEpD,EAASoD,EAAA,EAAA,OAF3C0C,EAAG,WAAHA,GAAG,CAAA,6CAe4B5F,CAAO,GAAKI,EAA+B,EAA1E4F,GAAMC,GAAA,yMACEjG,CAAO,IAAAkG,CAAA,EAAAlE,EAAAmE,GAAA,EAAA,sCApEnBhD,CAAI,cAAJA,EAAgB,GAAM,CAAE,EAAE,eAAA,EAAkBvC,GAAA,CAAkB,CAAC,MAA/DuC,CAAI,YADA5C,EAAAJ,CAAe,KAAID,CAAoB,GAAA8B,EAAAoE,CAAA,+FA3BvDnF,CAAG,OAAHA,CAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/22.DfFdFB47.js b/backend/static/frontend/_app/immutable/nodes/22.DfFdFB47.js
deleted file mode 100644
index b2c58264..00000000
--- a/backend/static/frontend/_app/immutable/nodes/22.DfFdFB47.js
+++ /dev/null
@@ -1 +0,0 @@
-import{r as er}from"../chunks/BJZ1igWb.js";import{i as z}from"../chunks/DMODTt3n.js";import{p as rr,h as u,v as de,F as tr,i as l,f,b as r,a as ar,c as g,t as d,s as a,e as c,g as t,d as ce,u as or,j as sr,r as v,n as m,k as ve,l as ue}from"../chunks/B2WdN-7r.js";import{e as lr,i as nr}from"../chunks/CMyj8Fzw.js";import{c as M}from"../chunks/BAcG0-U_.js";import{g as Ce}from"../chunks/xR3pK9Ey.js";import{p as ze}from"../chunks/BG_QVry4.js";import{B as ir}from"../chunks/C1aqwstW.js";import{I as S}from"../chunks/D8CWOmhn.js";import{L as x}from"../chunks/Ba_8xUad.js";import{C as dr,a as cr,b as vr}from"../chunks/BHR29ZVu.js";import{C as ur}from"../chunks/BKHeGn2e.js";import{C as mr}from"../chunks/KAiF5-Ht.js";import{A as fr,a as pr}from"../chunks/CaHAoFtL.js";import{A as _r}from"../chunks/DxBI0u1e.js";import{S as $r,a as gr,b as hr,c as xr}from"../chunks/CzIIBX62.js";import{t as wr,F as yr,b as Se,p as Pr}from"../chunks/D6S6XYVy.js";import{t as br}from"../chunks/BnbBSyGl.js";import{F as jr}from"../chunks/1yZ_tTJD.js";import{O as kr}from"../chunks/l7hcXazj.js";import{C as Cr}from"../chunks/XxKcOLZH.js";import{C as zr}from"../chunks/DUJ_Z9AF.js";const Sr=()=>{if(localStorage.getItem("AUTH_TOKEN"))throw er(302,"/");return{}},ct=Object.freeze(Object.defineProperty({__proto__:null,load:Sr},Symbol.toStringTag,{value:"Module"}));var Tr=f('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),Or=f('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),Ar=f('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),Nr=f("<!> <!>",1),Er=f("<!> <!> <!>",1),Fr=f("<span> </span>"),Lr=f("<span> </span> <!>",1),Rr=f("<!> <!>",1),qr=f('<!> <!> <form class="grid w-full items-center gap-4"><div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex items-center gap-3 mt-2"><div class="flex-1 border-t"></div> <p class="text-sm text-muted-foreground">Organization & Project</p> <div class="flex-1 border-t"></div></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <!> <!></form>',1),Ir=f("<!> <!> <!>",1),Kr=f('<div class="flex min-h-screen w-full items-center justify-center px-4 py-8"><!></div>');function vt(me,Te){rr(Te,!0);const fe="gin";function Oe(s){return s&&s in yr?s:fe}let B=u(de(ze.url.searchParams.get("email")??"")),U=u(""),T=u(""),W=u(""),Y=u(""),R=u(de(Intl.DateTimeFormat().resolvedOptions().timeZone)),Z=u(""),G=u(de(Oe(ze.url.searchParams.get("framework")))),P=u(""),b=u(!1),Ae=u("");const Ne=""!=="",Ee=Intl.supportedValuesOf("timeZone");tr(()=>{l(b,!0),fetch("/api/has-organizations",{method:"GET"}).then(s=>s.json()).then(s=>{s.hasOrganizations&&Ce("/login"),l(b,!1)}).catch(()=>{wr.error("An unexpected error has occured. The page will refresh in 5 seconds."),setTimeout(()=>{window.location.reload()},5e3)})});async function Fe(){if(t(T)!==t(W)){l(P,"Passwords do not match");return}if(t(T).length<8){l(P,"Password must be at least 8 characters");return}l(b,!0),l(P,"");try{const s=await fetch("/api/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t(B),name:t(U),password:t(T),organizationName:t(Y),timezone:t(R),projectName:t(Z),framework:t(G),captchaToken:t(Ae)})});if(!s.ok){const I=await s.json();throw new Error(I.error||"Registration failed")}const q=await s.json();Se.setToken(q.token),Se.setOrganizations(q.organizations||[]),Pr.setProjects(q.projects),Ce("/")}catch(s){l(P,s instanceof Error?s.message:"Registration failed",!0)}finally{l(b,!1)}}var H=Kr(),Le=c(H);dr(Le,{class:"w-[400px]",children:(s,q)=>{var I=Ir(),pe=g(I);cr(pe,{children:(K,qe)=>{var O=Nr(),A=g(O);vr(A,{class:"text-2xl",children:(j,N)=>{var p=Ar(),D=c(p);{var V=_=>{var F=Tr();r(_,F)},E=_=>{var F=Or();r(_,F)};z(D,_=>{br.isDark?_(V):_(E,!1)})}v(p),r(j,p)},$$slots:{default:!0}});var J=a(A,2);mr(J,{class:"text-center",children:(j,N)=>{m();var p=d("Create your account");r(j,p)},$$slots:{default:!0}}),r(K,O)},$$slots:{default:!0}});var _e=a(pe,2);ur(_e,{children:(K,qe)=>{var O=qr(),A=g(O);{var J=e=>{fr(e,{variant:"destructive",class:"mb-4 bg-red-50 border-red-200",children:(i,o)=>{var k=Er(),w=g(k);Cr(w,{class:"h-4 w-4 text-red-700"});var y=a(w,2);_r(y,{class:"text-red-800",children:(n,$)=>{m();var h=d("Error");r(n,h)},$$slots:{default:!0}});var L=a(y,2);pr(L,{class:"text-red-700",children:(n,$)=>{m();var h=d();ve(()=>ue(h,t(P))),r(n,h)},$$slots:{default:!0}}),r(i,k)},$$slots:{default:!0}})};z(A,e=>{t(P)&&e(J)})}var j=a(A,2);kr(j,{});var N=a(j,2),p=c(N),D=c(p);x(D,{for:"email",children:(e,i)=>{m();var o=d("Email");r(e,o)},$$slots:{default:!0}});var V=a(D,2);S(V,{id:"email",type:"email",placeholder:"[email protected]",required:!0,get value(){return t(B)},set value(e){l(B,e,!0)}}),v(p);var E=a(p,2),_=c(E);x(_,{for:"name",children:(e,i)=>{m();var o=d("Name");r(e,o)},$$slots:{default:!0}});var F=a(_,2);S(F,{id:"name",type:"text",placeholder:"Your name",required:!0,get value(){return t(U)},set value(e){l(U,e,!0)}}),v(E);var Q=a(E,2),$e=c(Q);x($e,{for:"password",children:(e,i)=>{m();var o=d("Password");r(e,o)},$$slots:{default:!0}});var Ie=a($e,2);S(Ie,{id:"password",type:"password",placeholder:"Password (min 8 characters)",required:!0,get value(){return t(T)},set value(e){l(T,e,!0)}}),v(Q);var X=a(Q,2),ge=c(X);x(ge,{for:"confirmPassword",children:(e,i)=>{m();var o=d("Confirm Password");r(e,o)},$$slots:{default:!0}});var Ke=a(ge,2);S(Ke,{id:"confirmPassword",type:"password",placeholder:"Confirm password",required:!0,get value(){return t(W)},set value(e){l(W,e,!0)}}),v(X);var ee=a(X,4),he=c(ee);x(he,{for:"organizationName",children:(e,i)=>{m();var o=d("Organization Name");r(e,o)},$$slots:{default:!0}});var De=a(he,2);S(De,{id:"organizationName",type:"text",placeholder:"Your company or team",required:!0,get value(){return t(Y)},set value(e){l(Y,e,!0)}}),v(ee);var re=a(ee,2),xe=c(re);x(xe,{for:"timezone",children:(e,i)=>{m();var o=d("Timezone");r(e,o)},$$slots:{default:!0}});var Me=a(xe,2);M(Me,()=>hr,(e,i)=>{i(e,{type:"single",get value(){return t(R)},set value(o){l(R,o,!0)},children:(o,k)=>{var w=Rr(),y=g(w);M(y,()=>$r,(n,$)=>{$(n,{class:"w-full",children:(h,Ye)=>{var C=Fr(),oe=c(C,!0);v(C),ve(()=>ue(oe,t(R))),r(h,C)},$$slots:{default:!0}})});var L=a(y,2);M(L,()=>gr,(n,$)=>{$(n,{class:"max-h-60",children:(h,Ye)=>{var C=ce(),oe=g(C);lr(oe,17,()=>Ee,nr,(Ze,be)=>{var je=ce(),Ge=g(je);{const He=(se,le)=>{let Je=()=>le?.().selected;var ke=Lr(),ne=g(ke),Ve=c(ne,!0);v(ne);var Qe=a(ne,2);{var Xe=ie=>{zr(ie,{class:"absolute end-2 size-4"})};z(Qe,ie=>{Je()&&ie(Xe)})}ve(()=>ue(Ve,t(be))),r(se,ke)};M(Ge,()=>xr,(se,le)=>{le(se,{get value(){return t(be)},children:He,$$slots:{default:!0}})})}r(Ze,je)}),r(h,C)},$$slots:{default:!0}})}),r(o,w)},$$slots:{default:!0}})}),v(re);var te=a(re,2),we=c(te);x(we,{for:"projectName",children:(e,i)=>{m();var o=d("Project Name");r(e,o)},$$slots:{default:!0}});var Be=a(we,2);S(Be,{id:"projectName",type:"text",placeholder:"My App",required:!0,get value(){return t(Z)},set value(e){l(Z,e,!0)}}),v(te);var ae=a(te,2),ye=c(ae);x(ye,{for:"framework",children:(e,i)=>{m();var o=d("Framework");r(e,o)},$$slots:{default:!0}});var Ue=a(ye,2);jr(Ue,{get value(){return t(G)},set value(e){l(G,e,!0)}}),v(ae);var Pe=a(ae,2);z(Pe,e=>{});var We=a(Pe,2);{let e=or(()=>t(b)||Ne);ir(We,{type:"submit",get disabled(){return t(e)},class:"w-full mt-2",children:(i,o)=>{var k=ce(),w=g(k);{var y=n=>{var $=d("Creating account...");r(n,$)},L=n=>{var $=d("Create Account");r(n,$)};z(w,n=>{t(b)?n(y):n(L,!1)})}r(i,k)},$$slots:{default:!0}})}v(N),sr("submit",N,e=>{e.preventDefault(),Fe()}),r(K,O)},$$slots:{default:!0}});var Re=a(_e,2);z(Re,K=>{}),r(s,I)},$$slots:{default:!0}}),v(H),r(me,H),ar()}export{vt as component,ct as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/22.DfFdFB47.js.map b/backend/static/frontend/_app/immutable/nodes/22.DfFdFB47.js.map
deleted file mode 100644
index 44dd7479..00000000
--- a/backend/static/frontend/_app/immutable/nodes/22.DfFdFB47.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"22.DfFdFB47.js","sources":["../../../../../../src/routes/register/+page.ts","../../../../../../src/routes/register/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n // Check if user is already authenticated\n const token = localStorage.getItem('AUTH_TOKEN');\n if (token) {\n throw redirect(302, '/');\n }\n return {};\n};\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { page } from '$app/state';\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardFooter, CardHeader, CardTitle, CardDescription } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import * as Select from \"$lib/components/ui/select\";\n import { CircleAlert, Check } from \"@lucide/svelte\";\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState, FRAMEWORK_LABELS, type Framework } from '$lib/state/projects.svelte';\n import { themeState } from '$lib/state/theme.svelte';\n import { toast } from 'svelte-sonner';\n import FrameworkCombobox from '$lib/components/framework-combobox.svelte';\n import TurnstileWidget from '$lib/components/turnstile-widget.svelte';\n import OauthButtons from '$lib/components/oauth-buttons.svelte';\n\n const DEFAULT_FRAMEWORK: Framework = 'gin';\n\n function parseFrameworkParam(value: string | null): Framework {\n if (!value) return DEFAULT_FRAMEWORK;\n return (value in FRAMEWORK_LABELS ? value : DEFAULT_FRAMEWORK) as Framework;\n }\n\n let email = $state(page.url.searchParams.get('email') ?? '');\n let name = $state('');\n let password = $state('');\n let confirmPassword = $state('');\n let organizationName = $state('');\n let timezone = $state(Intl.DateTimeFormat().resolvedOptions().timeZone);\n let projectName = $state('');\n let framework = $state<Framework>(parseFrameworkParam(page.url.searchParams.get('framework')));\n let error = $state('');\n let loading = $state(false);\n let captchaToken = $state('');\n\n const turnstileSiteKey = __TURNSTILE_SITE_KEY__;\n const captchaEnabled = turnstileSiteKey !== '';\n\n const timezones = Intl.supportedValuesOf('timeZone');\n\n if (!__CLOUD_MODE__) {\n $effect(() => {\n // if we're not in the cloud mode we have to check if an organization exists and if it does we should go to the login page\n\n loading = true;\n fetch('/api/has-organizations', {\n method: 'GET',\n })\n .then(response => response.json())\n .then((response) => {\n if (response.hasOrganizations) {\n goto(\"/login\")\n }\n loading = false\n }).catch(() => {\n toast.error(\"An unexpected error has occured. The page will refresh in 5 seconds.\")\n setTimeout(() => {\n window.location.reload()\n }, 5000)\n });\n })\n }\n\n async function handleRegister() {\n if (password !== confirmPassword) {\n error = 'Passwords do not match';\n return;\n }\n\n if (password.length < 8) {\n error = 'Password must be at least 8 characters';\n return;\n }\n\n if (captchaEnabled && !captchaToken) {\n error = 'Please complete the captcha';\n return;\n }\n\n loading = true;\n error = '';\n\n try {\n const response = await fetch('/api/register', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({\n email,\n name,\n password,\n organizationName,\n timezone,\n projectName,\n framework,\n captchaToken\n })\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Registration failed');\n }\n\n const data = await response.json();\n\n authState.setToken(data.token);\n authState.setOrganizations(data.organizations || []);\n projectsState.setProjects(data.projects);\n\n goto('/');\n } catch (e) {\n error = e instanceof Error ? e.message : 'Registration failed';\n } finally {\n loading = false;\n }\n }\n</script>\n\n<div class=\"flex min-h-screen w-full items-center justify-center px-4 py-8\">\n <Card class=\"w-[400px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n <CardDescription class=\"text-center\">\n Create your account\n </CardDescription>\n </CardHeader>\n <CardContent>\n {#if error}\n <Alert variant=\"destructive\" class=\"mb-4 bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n {/if}\n <OauthButtons />\n <form onsubmit={(e) => { e.preventDefault(); handleRegister(); }} class=\"grid w-full items-center gap-4\">\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" bind:value={email} placeholder=\"[email protected]\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"name\">Name</Label>\n <Input id=\"name\" type=\"text\" bind:value={name} placeholder=\"Your name\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"password\">Password</Label>\n <Input id=\"password\" type=\"password\" bind:value={password} placeholder=\"Password (min 8 characters)\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"confirmPassword\">Confirm Password</Label>\n <Input id=\"confirmPassword\" type=\"password\" bind:value={confirmPassword} placeholder=\"Confirm password\" required />\n </div>\n\n <div class=\"flex items-center gap-3 mt-2\">\n <div class=\"flex-1 border-t\"></div>\n <p class=\"text-sm text-muted-foreground\">Organization & Project</p>\n <div class=\"flex-1 border-t\"></div>\n </div>\n\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"organizationName\">Organization Name</Label>\n <Input id=\"organizationName\" type=\"text\" bind:value={organizationName} placeholder=\"Your company or team\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"timezone\">Timezone</Label>\n <Select.Root type=\"single\" bind:value={timezone}>\n <Select.Trigger class=\"w-full\">\n <span>{timezone}</span>\n </Select.Trigger>\n <Select.Content class=\"max-h-60\">\n {#each timezones as tz}\n <Select.Item value={tz}>\n {#snippet children({ selected })}\n <span>{tz}</span>\n {#if selected}\n <Check class=\"absolute end-2 size-4\" />\n {/if}\n {/snippet}\n </Select.Item>\n {/each}\n </Select.Content>\n </Select.Root>\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"projectName\">Project Name</Label>\n <Input id=\"projectName\" type=\"text\" bind:value={projectName} placeholder=\"My App\" required />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"framework\">Framework</Label>\n <FrameworkCombobox bind:value={framework} />\n </div>\n\n {#if captchaEnabled}\n <div class=\"flex flex-col space-y-1.5 mt-2\">\n <TurnstileWidget\n siteKey={turnstileSiteKey}\n onVerify={(token) => captchaToken = token}\n onError={() => captchaToken = ''}\n />\n </div>\n {/if}\n\n <Button type=\"submit\" disabled={loading || (captchaEnabled && !captchaToken)} class=\"w-full mt-2\">\n {#if loading}\n Creating account...\n {:else}\n Create Account\n {/if}\n </Button>\n </form>\n </CardContent>\n\n {#if __CLOUD_MODE__}\n <CardFooter class=\"flex flex-col justify-center\">\n <p class=\"text-sm text-muted-foreground\">\n Already have an account? <a href=\"/login\" class=\"text-primary hover:underline\">Login</a>\n </p>\n </CardFooter>\n {/if}\n </Card>\n</div>\n"],"names":["load","redirect","DEFAULT_FRAMEWORK","parseFrameworkParam","value","FRAMEWORK_LABELS","email","$.state","$.proxy","page","name","password","confirmPassword","organizationName","timezone","projectName","framework","error","loading","captchaToken","captchaEnabled","timezones","$.user_effect","$.set","response","goto","toast","handleRegister","$.get","data","authState","projectsState","e","div","root","Card","node","CardHeader","node_1","CardTitle","node_2","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardDescription","node_4","CardContent","node_5","Alert","$$anchor","CircleAlert","node_7","AlertTitle","node_8","AlertDescription","node_9","consequent_1","OauthButtons","node_10","form","$.sibling","div_2","Label","node_11","Input","node_12","$$value","div_3","node_13","node_14","div_4","node_15","node_16","div_5","node_17","node_18","div_6","node_19","node_20","div_7","node_21","Select_Root","Select_Trigger","span","root_19","Select_Content","$.each","node_25","tz","children","$$arg0","selected","span_1","$.first_child","fragment_9","Check","consequent_2","Select_Item","div_8","node_28","node_29","div_9","node_30","FrameworkCombobox","node_31","Button","node_34","consequent_4","alternate_1"],"mappings":"soCAGO,MAAMA,GAAiB,IAAM,CAGhC,GADc,aAAa,QAAQ,YAAY,EAE3C,MAAMC,GAAS,IAAK,GAAG,EAE3B,MAAO,CAAA,CACX,qwCCVA,WAkBU,MAAAC,GAA+B,eAE5BC,GAAoBC,EAAiC,CACrD,OAAAA,GACGA,KAASC,GAAmBD,EADjBF,EAEvB,CAEI,IAAAI,EAAQC,EAAMC,GAACC,GAAK,IAAI,aAAa,IAAI,OAAO,GAAK,EAAE,CAAA,EACvDC,EAAOH,EAAO,EAAE,EAChBI,EAAWJ,EAAO,EAAE,EACpBK,EAAkBL,EAAO,EAAE,EAC3BM,EAAmBN,EAAO,EAAE,EAC5BO,EAAWP,EAAMC,GAAC,KAAK,iBAAiB,kBAAkB,QAAQ,CAAA,EAClEO,EAAcR,EAAO,EAAE,EACvBS,EAAYT,EAAMC,GAAYL,GAAoBM,GAAK,IAAI,aAAa,IAAI,WAAW,CAAA,CAAA,CAAA,EACvFQ,EAAQV,EAAO,EAAE,EACjBW,EAAUX,EAAO,EAAK,EACtBY,GAAeZ,EAAO,EAAE,QAGtBa,GADmB,KACmB,GAEtCC,GAAY,KAAK,kBAAkB,UAAU,EAG/CC,GAAO,IAAO,CAGVC,EAAAL,EAAU,EAAI,EACd,MAAM,yBAAwB,CAC1B,OAAQ,KAAA,GAEX,KAAKM,GAAYA,EAAS,KAAA,GAC1B,KAAMA,GAAa,CACZA,EAAS,kBACT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EAAA,qCApEnBjD,CAAI,cAAJA,EAAgB,GAAM,CAAE,EAAE,eAAA,EAAkBvC,GAAA,CAAkB,CAAC,6FA3B3EM,CAAG,OAAHA,CAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/23.DtaH02zX.js b/backend/static/frontend/_app/immutable/nodes/23.eq98_a14.js
similarity index 95%
rename from backend/static/frontend/_app/immutable/nodes/23.DtaH02zX.js
rename to backend/static/frontend/_app/immutable/nodes/23.eq98_a14.js
index eabaf183..19ae465d 100644
--- a/backend/static/frontend/_app/immutable/nodes/23.DtaH02zX.js
+++ b/backend/static/frontend/_app/immutable/nodes/23.eq98_a14.js
@@ -1 +1 @@
-import{s as Te,r as Ae,i as A}from"../chunks/DMODTt3n.js";import{p as ge,d as Y,c,m as Ee,o as Ie,b as e,a as he,F as Ne,g as t,u as Re,i as s,h as g,f as l,s as a,e as P,r as y,n as i,t as o,j as Se,k as qe,l as Be}from"../chunks/B2WdN-7r.js";import{g as De}from"../chunks/xR3pK9Ey.js";import{p as Fe}from"../chunks/BG_QVry4.js";import{B as Oe}from"../chunks/C1aqwstW.js";import{I as oe}from"../chunks/D8CWOmhn.js";import{L as le}from"../chunks/Ba_8xUad.js";import{C as Ve,a as Je,b as Me}from"../chunks/BHR29ZVu.js";import{C as Ye}from"../chunks/BKHeGn2e.js";import{C as ze,a as Ge}from"../chunks/DTRXGXES.js";import{A as de,a as ne}from"../chunks/CaHAoFtL.js";import{A as ie}from"../chunks/DxBI0u1e.js";import{t as He}from"../chunks/BnbBSyGl.js";import{I as Ke}from"../chunks/Bv_PbELb.js";import{C as $e}from"../chunks/XxKcOLZH.js";function Qe(Z,E){ge(E,!0);let h=Ae(E,["$$slots","$$events","$$legacy"]);const I=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];Ke(Z,Te({name:"loader-circle"},()=>h,{get iconNode(){return I},children:(p,N)=>{var R=Y(),S=c(R);Ee(S,()=>E.children??Ie),e(p,R)},$$slots:{default:!0}})),he()}var Ue=l('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),We=l('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),Xe=l('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),Ze=l('<div class="flex flex-col items-center justify-center py-8"><!> <p class="mt-4 text-sm text-muted-foreground">Validating reset link...</p></div>'),er=l("<!> <!> <!>",1),rr=l("<!> <!> <!>",1),tr=l("<!> <!> <!>",1),sr=l('<!> <p class="text-sm text-muted-foreground mb-4">Enter a new password for your account.</p> <form class="grid w-full items-center gap-4"><div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <!></form>',1),ar=l('<p class="text-sm text-muted-foreground"><a href="/login" class="text-primary hover:underline">Back to Login</a></p>'),or=l("<!> <!> <!>",1),lr=l('<div class="flex h-screen w-full items-center justify-center px-4"><!></div>');function Pr(Z,E){ge(E,!0);let h=g(""),I=g(""),p=g(""),N=g(!1),R=g(!1),S=g(!0),q=g(!1),ce=g("");const ee=Re(()=>Fe.url.searchParams.get("token"));Ne(()=>{t(ee)?xe(t(ee)):(s(S,!1),s(q,!1))});async function xe(f){try{const B=await(await fetch(`/api/password-reset/${f}`)).json();B.valid?(s(q,!0),s(ce,B.email,!0)):s(q,!1)}catch{s(q,!1)}finally{s(S,!1)}}async function we(){if(t(h)!==t(I)){s(p,"Passwords do not match");return}if(t(h).length<8){s(p,"Password must be at least 8 characters");return}s(N,!0),s(p,"");try{const f=await fetch(`/api/password-reset/${t(ee)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:t(h)})});if(!f.ok){const te=await f.json();throw new Error(te.error||"Failed to reset password")}s(R,!0),setTimeout(()=>{De("/login")},2e3)}catch(f){s(p,f instanceof Error?f.message:"An unexpected error occurred",!0)}finally{s(N,!1)}}var re=lr(),Pe=P(re);Ve(Pe,{class:"w-[350px]",children:(f,te)=>{var B=or(),fe=c(B);Je(fe,{children:(D,ue)=>{Me(D,{class:"text-2xl",children:(b,pe)=>{var F=Xe(),se=P(F);{var m=d=>{var O=Ue();e(d,O)},_=d=>{var O=We();e(d,O)};A(se,d=>{He.isDark?d(m):d(_,!1)})}y(F),e(b,F)},$$slots:{default:!0}})},$$slots:{default:!0}});var ve=a(fe,2);Ye(ve,{children:(D,ue)=>{var b=Y(),pe=c(b);{var F=m=>{var _=Ze(),d=P(_);Qe(d,{class:"h-8 w-8 animate-spin text-muted-foreground"}),i(2),y(_),e(m,_)},se=m=>{var _=Y(),d=c(_);{var O=C=>{de(C,{variant:"destructive",class:"bg-red-50 border-red-200",children:(z,me)=>{var G=er(),H=c(G);$e(H,{class:"h-4 w-4 text-red-700"});var v=a(H,2);ie(v,{class:"text-red-800",children:(x,j)=>{i();var n=o("Invalid Link");e(x,n)},$$slots:{default:!0}});var k=a(v,2);ne(k,{class:"text-red-700",children:(x,j)=>{i();var n=o("This password reset link is invalid or has expired. Please request a new one.");e(x,n)},$$slots:{default:!0}}),e(z,G)},$$slots:{default:!0}})},be=C=>{var z=Y(),me=c(z);{var G=v=>{de(v,{class:"bg-green-50 border-green-200",children:(k,x)=>{var j=rr(),n=c(j);Ge(n,{class:"h-4 w-4 text-green-700"});var L=a(n,2);ie(L,{class:"text-green-800",children:(V,J)=>{i();var T=o("Password Reset");e(V,T)},$$slots:{default:!0}});var K=a(L,2);ne(K,{class:"text-green-700",children:(V,J)=>{i();var T=o("Your password has been reset successfully. Redirecting to login...");e(V,T)},$$slots:{default:!0}}),e(k,j)},$$slots:{default:!0}})},H=v=>{var k=sr(),x=c(k);{var j=r=>{de(r,{variant:"destructive",class:"mb-4 bg-red-50 border-red-200",children:(M,u)=>{var Q=tr(),U=c(Q);$e(U,{class:"h-4 w-4 text-red-700"});var W=a(U,2);ie(W,{class:"text-red-800",children:(w,Le)=>{i();var X=o("Error");e(w,X)},$$slots:{default:!0}});var $=a(W,2);ne($,{class:"text-red-700",children:(w,Le)=>{i();var X=o();qe(()=>Be(X,t(p))),e(w,X)},$$slots:{default:!0}}),e(M,Q)},$$slots:{default:!0}})};A(x,r=>{t(p)&&r(j)})}var n=a(x,4),L=P(n),K=P(L);le(K,{for:"email",children:(r,M)=>{i();var u=o("Email");e(r,u)},$$slots:{default:!0}});var V=a(K,2);oe(V,{id:"email",type:"email",get value(){return t(ce)},disabled:!0,class:"bg-muted"}),y(L);var J=a(L,2),T=P(J);le(T,{for:"password",children:(r,M)=>{i();var u=o("New Password");e(r,u)},$$slots:{default:!0}});var Ce=a(T,2);oe(Ce,{id:"password",type:"password",placeholder:"New password",required:!0,minlength:8,get value(){return t(h)},set value(r){s(h,r,!0)}}),y(J);var ae=a(J,2),_e=P(ae);le(_e,{for:"confirmPassword",children:(r,M)=>{i();var u=o("Confirm Password");e(r,u)},$$slots:{default:!0}});var ke=a(_e,2);oe(ke,{id:"confirmPassword",type:"password",placeholder:"Confirm password",required:!0,minlength:8,get value(){return t(I)},set value(r){s(I,r,!0)}}),y(ae);var je=a(ae,2);Oe(je,{type:"submit",get disabled(){return t(N)},class:"w-full",children:(r,M)=>{var u=Y(),Q=c(u);{var U=$=>{var w=o("Resetting...");e($,w)},W=$=>{var w=o("Reset Password");e($,w)};A(Q,$=>{t(N)?$(U):$(W,!1)})}e(r,u)},$$slots:{default:!0}}),y(n),Se("submit",n,r=>{r.preventDefault(),we()}),e(v,k)};A(me,v=>{t(R)?v(G):v(H,!1)},!0)}e(C,z)};A(d,C=>{t(q)?C(be,!1):C(O)},!0)}e(m,_)};A(pe,m=>{t(S)?m(F):m(se,!1)})}e(D,b)},$$slots:{default:!0}});var ye=a(ve,2);ze(ye,{class:"flex flex-col justify-center",children:(D,ue)=>{var b=ar();e(D,b)},$$slots:{default:!0}}),e(f,B)},$$slots:{default:!0}}),y(re),e(Z,re),he()}export{Pr as component};
+import{s as Te,r as Ae,i as A}from"../chunks/DMODTt3n.js";import{p as ge,d as Y,c,m as Ee,o as Ie,b as e,a as he,F as Ne,g as t,u as Re,i as s,h as g,f as l,s as a,e as P,r as y,n as i,t as o,j as Se,k as qe,l as Be}from"../chunks/B2WdN-7r.js";import{g as De}from"../chunks/BIF4_51j.js";import{p as Fe}from"../chunks/CyRgFauW.js";import{B as Oe}from"../chunks/C1aqwstW.js";import{I as oe}from"../chunks/D8CWOmhn.js";import{L as le}from"../chunks/Csh2s3-8.js";import{C as Ve,a as Je,b as Me}from"../chunks/BHR29ZVu.js";import{C as Ye}from"../chunks/BKHeGn2e.js";import{C as ze,a as Ge}from"../chunks/DTRXGXES.js";import{A as de,a as ne}from"../chunks/CaHAoFtL.js";import{A as ie}from"../chunks/DxBI0u1e.js";import{t as He}from"../chunks/BnbBSyGl.js";import{I as Ke}from"../chunks/Bv_PbELb.js";import{C as $e}from"../chunks/XxKcOLZH.js";function Qe(Z,E){ge(E,!0);let h=Ae(E,["$$slots","$$events","$$legacy"]);const I=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];Ke(Z,Te({name:"loader-circle"},()=>h,{get iconNode(){return I},children:(p,N)=>{var R=Y(),S=c(R);Ee(S,()=>E.children??Ie),e(p,R)},$$slots:{default:!0}})),he()}var Ue=l('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),We=l('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),Xe=l('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),Ze=l('<div class="flex flex-col items-center justify-center py-8"><!> <p class="mt-4 text-sm text-muted-foreground">Validating reset link...</p></div>'),er=l("<!> <!> <!>",1),rr=l("<!> <!> <!>",1),tr=l("<!> <!> <!>",1),sr=l('<!> <p class="text-sm text-muted-foreground mb-4">Enter a new password for your account.</p> <form class="grid w-full items-center gap-4"><div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <div class="flex flex-col space-y-1.5"><!> <!></div> <!></form>',1),ar=l('<p class="text-sm text-muted-foreground"><a href="/login" class="text-primary hover:underline">Back to Login</a></p>'),or=l("<!> <!> <!>",1),lr=l('<div class="flex h-screen w-full items-center justify-center px-4"><!></div>');function Pr(Z,E){ge(E,!0);let h=g(""),I=g(""),p=g(""),N=g(!1),R=g(!1),S=g(!0),q=g(!1),ce=g("");const ee=Re(()=>Fe.url.searchParams.get("token"));Ne(()=>{t(ee)?xe(t(ee)):(s(S,!1),s(q,!1))});async function xe(f){try{const B=await(await fetch(`/api/password-reset/${f}`)).json();B.valid?(s(q,!0),s(ce,B.email,!0)):s(q,!1)}catch{s(q,!1)}finally{s(S,!1)}}async function we(){if(t(h)!==t(I)){s(p,"Passwords do not match");return}if(t(h).length<8){s(p,"Password must be at least 8 characters");return}s(N,!0),s(p,"");try{const f=await fetch(`/api/password-reset/${t(ee)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:t(h)})});if(!f.ok){const te=await f.json();throw new Error(te.error||"Failed to reset password")}s(R,!0),setTimeout(()=>{De("/login")},2e3)}catch(f){s(p,f instanceof Error?f.message:"An unexpected error occurred",!0)}finally{s(N,!1)}}var re=lr(),Pe=P(re);Ve(Pe,{class:"w-[350px]",children:(f,te)=>{var B=or(),fe=c(B);Je(fe,{children:(D,ue)=>{Me(D,{class:"text-2xl",children:(b,pe)=>{var F=Xe(),se=P(F);{var m=d=>{var O=Ue();e(d,O)},_=d=>{var O=We();e(d,O)};A(se,d=>{He.isDark?d(m):d(_,!1)})}y(F),e(b,F)},$$slots:{default:!0}})},$$slots:{default:!0}});var ve=a(fe,2);Ye(ve,{children:(D,ue)=>{var b=Y(),pe=c(b);{var F=m=>{var _=Ze(),d=P(_);Qe(d,{class:"h-8 w-8 animate-spin text-muted-foreground"}),i(2),y(_),e(m,_)},se=m=>{var _=Y(),d=c(_);{var O=C=>{de(C,{variant:"destructive",class:"bg-red-50 border-red-200",children:(z,me)=>{var G=er(),H=c(G);$e(H,{class:"h-4 w-4 text-red-700"});var v=a(H,2);ie(v,{class:"text-red-800",children:(x,j)=>{i();var n=o("Invalid Link");e(x,n)},$$slots:{default:!0}});var k=a(v,2);ne(k,{class:"text-red-700",children:(x,j)=>{i();var n=o("This password reset link is invalid or has expired. Please request a new one.");e(x,n)},$$slots:{default:!0}}),e(z,G)},$$slots:{default:!0}})},be=C=>{var z=Y(),me=c(z);{var G=v=>{de(v,{class:"bg-green-50 border-green-200",children:(k,x)=>{var j=rr(),n=c(j);Ge(n,{class:"h-4 w-4 text-green-700"});var L=a(n,2);ie(L,{class:"text-green-800",children:(V,J)=>{i();var T=o("Password Reset");e(V,T)},$$slots:{default:!0}});var K=a(L,2);ne(K,{class:"text-green-700",children:(V,J)=>{i();var T=o("Your password has been reset successfully. Redirecting to login...");e(V,T)},$$slots:{default:!0}}),e(k,j)},$$slots:{default:!0}})},H=v=>{var k=sr(),x=c(k);{var j=r=>{de(r,{variant:"destructive",class:"mb-4 bg-red-50 border-red-200",children:(M,u)=>{var Q=tr(),U=c(Q);$e(U,{class:"h-4 w-4 text-red-700"});var W=a(U,2);ie(W,{class:"text-red-800",children:(w,Le)=>{i();var X=o("Error");e(w,X)},$$slots:{default:!0}});var $=a(W,2);ne($,{class:"text-red-700",children:(w,Le)=>{i();var X=o();qe(()=>Be(X,t(p))),e(w,X)},$$slots:{default:!0}}),e(M,Q)},$$slots:{default:!0}})};A(x,r=>{t(p)&&r(j)})}var n=a(x,4),L=P(n),K=P(L);le(K,{for:"email",children:(r,M)=>{i();var u=o("Email");e(r,u)},$$slots:{default:!0}});var V=a(K,2);oe(V,{id:"email",type:"email",get value(){return t(ce)},disabled:!0,class:"bg-muted"}),y(L);var J=a(L,2),T=P(J);le(T,{for:"password",children:(r,M)=>{i();var u=o("New Password");e(r,u)},$$slots:{default:!0}});var Ce=a(T,2);oe(Ce,{id:"password",type:"password",placeholder:"New password",required:!0,minlength:8,get value(){return t(h)},set value(r){s(h,r,!0)}}),y(J);var ae=a(J,2),_e=P(ae);le(_e,{for:"confirmPassword",children:(r,M)=>{i();var u=o("Confirm Password");e(r,u)},$$slots:{default:!0}});var ke=a(_e,2);oe(ke,{id:"confirmPassword",type:"password",placeholder:"Confirm password",required:!0,minlength:8,get value(){return t(I)},set value(r){s(I,r,!0)}}),y(ae);var je=a(ae,2);Oe(je,{type:"submit",get disabled(){return t(N)},class:"w-full",children:(r,M)=>{var u=Y(),Q=c(u);{var U=$=>{var w=o("Resetting...");e($,w)},W=$=>{var w=o("Reset Password");e($,w)};A(Q,$=>{t(N)?$(U):$(W,!1)})}e(r,u)},$$slots:{default:!0}}),y(n),Se("submit",n,r=>{r.preventDefault(),we()}),e(v,k)};A(me,v=>{t(R)?v(G):v(H,!1)},!0)}e(C,z)};A(d,C=>{t(q)?C(be,!1):C(O)},!0)}e(m,_)};A(pe,m=>{t(S)?m(F):m(se,!1)})}e(D,b)},$$slots:{default:!0}});var ye=a(ve,2);ze(ye,{class:"flex flex-col justify-center",children:(D,ue)=>{var b=ar();e(D,b)},$$slots:{default:!0}}),e(f,B)},$$slots:{default:!0}}),y(re),e(Z,re),he()}export{Pr as component};
diff --git a/backend/static/frontend/_app/immutable/nodes/23.DtaH02zX.js.map b/backend/static/frontend/_app/immutable/nodes/23.eq98_a14.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/23.DtaH02zX.js.map
rename to backend/static/frontend/_app/immutable/nodes/23.eq98_a14.js.map
index d45c28dc..e6e5a27f 100644
--- a/backend/static/frontend/_app/immutable/nodes/23.DtaH02zX.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/23.eq98_a14.js.map
@@ -1 +1 @@
-{"version":3,"file":"23.DtaH02zX.js","sources":["../../../../../../node_modules/@lucide/svelte/dist/icons/loader-circle.svelte","../../../../../../src/routes/reset-password/+page.svelte"],"sourcesContent":["<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M21 12a9 9 0 1 1-6.219-8.56\" }]];\n/**\n * @component @name LoaderCircle\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEgMTJhOSA5IDAgMSAxLTYuMjE5LTguNTYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/loader-circle\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"loader-circle\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { page } from '$app/state';\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardFooter, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import { CircleAlert, CircleCheck, Loader2 } from \"@lucide/svelte\";\n import { themeState } from '$lib/state/theme.svelte';\n\n let password = $state('');\n let confirmPassword = $state('');\n let error = $state('');\n let loading = $state(false);\n let success = $state(false);\n let validating = $state(true);\n let tokenValid = $state(false);\n let email = $state('');\n\n const token = $derived(page.url.searchParams.get('token'));\n\n $effect(() => {\n if (token) {\n validateToken(token);\n } else {\n validating = false;\n tokenValid = false;\n }\n });\n\n async function validateToken(token: string) {\n try {\n const response = await fetch(`/api/password-reset/${token}`);\n const data = await response.json();\n\n if (data.valid) {\n tokenValid = true;\n email = data.email;\n } else {\n tokenValid = false;\n }\n } catch {\n tokenValid = false;\n } finally {\n validating = false;\n }\n }\n\n async function handleSubmit() {\n if (password !== confirmPassword) {\n error = 'Passwords do not match';\n return;\n }\n\n if (password.length < 8) {\n error = 'Password must be at least 8 characters';\n return;\n }\n\n loading = true;\n error = '';\n\n try {\n const response = await fetch(`/api/password-reset/${token}`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({ password })\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to reset password');\n }\n\n success = true;\n setTimeout(() => {\n goto('/login');\n }, 2000);\n } catch (e) {\n error = e instanceof Error ? e.message : 'An unexpected error occurred';\n } finally {\n loading = false;\n }\n }\n</script>\n\n<div class=\"flex h-screen w-full items-center justify-center px-4\">\n <Card class=\"w-[350px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n </CardHeader>\n <CardContent>\n {#if validating}\n <div class=\"flex flex-col items-center justify-center py-8\">\n <Loader2 class=\"h-8 w-8 animate-spin text-muted-foreground\" />\n <p class=\"mt-4 text-sm text-muted-foreground\">Validating reset link...</p>\n </div>\n {:else if !tokenValid}\n <Alert variant=\"destructive\" class=\"bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Invalid Link</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n This password reset link is invalid or has expired. Please request a new one.\n </AlertDescription>\n </Alert>\n {:else if success}\n <Alert class=\"bg-green-50 border-green-200\">\n <CircleCheck class=\"h-4 w-4 text-green-700\" />\n <AlertTitle class=\"text-green-800\">Password Reset</AlertTitle>\n <AlertDescription class=\"text-green-700\">\n Your password has been reset successfully. Redirecting to login...\n </AlertDescription>\n </Alert>\n {:else}\n {#if error}\n <Alert variant=\"destructive\" class=\"mb-4 bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n {/if}\n <p class=\"text-sm text-muted-foreground mb-4\">\n Enter a new password for your account.\n </p>\n <form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class=\"grid w-full items-center gap-4\">\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" value={email} disabled class=\"bg-muted\" />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"password\">New Password</Label>\n <Input id=\"password\" type=\"password\" bind:value={password} placeholder=\"New password\" required minlength={8} />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"confirmPassword\">Confirm Password</Label>\n <Input id=\"confirmPassword\" type=\"password\" bind:value={confirmPassword} placeholder=\"Confirm password\" required minlength={8} />\n </div>\n <Button type=\"submit\" disabled={loading} class=\"w-full\">\n {#if loading}\n Resetting...\n {:else}\n Reset Password\n {/if}\n </Button>\n </form>\n {/if}\n </CardContent>\n <CardFooter class=\"flex flex-col justify-center\">\n <p class=\"text-sm text-muted-foreground\">\n <a href=\"/login\" class=\"text-primary hover:underline\">Back to Login</a>\n </p>\n </CardFooter>\n </Card>\n</div>\n"],"names":["props","$.rest_props","$$props","iconNode","Icon","$.noop","password","$.state","confirmPassword","error","loading","success","validating","tokenValid","email","token","$.derived","page","$.user_effect","$.get","validateToken","$.set","data","handleSubmit","response","goto","e","div","root","Card","node","CardHeader","node_1","CardTitle","$$anchor","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardContent","node_3","div_2","root_7","Loader2","node_5","Alert","CircleAlert","node_7","AlertTitle","node_8","AlertDescription","node_9","CircleCheck","node_11","node_12","node_13","node_15","node_16","node_17","consequent_4","form","$.sibling","node_14","div_3","Label","node_18","Input","node_19","div_4","node_20","node_21","$$value","div_5","node_22","node_23","Button","node_24","consequent_5","alternate_1","consequent_3","alternate_2","alternate_3","consequent_2","consequent_1","alternate_4","CardFooter","node_26","p","root_29"],"mappings":"m1BAAA,cA6CIA,EAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,EACH,MAAAC,EAAQ,CAAA,CAAK,OAAM,CAAI,EAAK,6BAA6B,CAAA,CAAA,EAc9DC,mCAA8BJ,EAAK,uBAAYG,gDAC/B,UAAQE,EAAA,sCAHzB,ygCC1DA,cAWQC,EAAWC,EAAO,EAAE,EACpBC,EAAkBD,EAAO,EAAE,EAC3BE,EAAQF,EAAO,EAAE,EACjBG,EAAUH,EAAO,EAAK,EACtBI,EAAUJ,EAAO,EAAK,EACtBK,EAAaL,EAAO,EAAI,EACxBM,EAAaN,EAAO,EAAK,EACzBO,GAAQP,EAAO,EAAE,QAEfQ,GAAKC,GAAA,IAAYC,GAAK,IAAI,aAAa,IAAI,OAAO,CAAA,EAExDC,GAAO,IAAO,CACNC,EAAAJ,EAAK,EACLK,KAAcL,EAAK,CAAA,GAEnBM,EAAAT,EAAa,EAAK,EAClBS,EAAAR,EAAa,EAAK,EAE1B,CAAC,iBAEcO,GAAcL,EAAe,CACpC,GAAA,OAEMO,EAAI,MADI,MAAS,MAAK,uBAAwBP,CAAK,EAAA,GAC7B,KAAI,EAE5BO,EAAK,OACLD,EAAAR,EAAa,EAAI,IACjBC,GAAQQ,EAAK,MAAK,EAAA,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AA,EAAA,EAAA7C,EAAA8C,CAAA,0BALhB5E,CAAU,EAAA8B,EAAA+C,CAAA,EAAA/C,EAAAgD,GAAA,EAAA,kDAyDlBC,GAAUC,GAAA,4DACNC,EAACC,GAAA,MAADD,CAAC,2DAxEblE,EAAG,MAAHA,EAAG,MAFJ","x_google_ignoreList":[0]}
\ No newline at end of file
+{"version":3,"file":"23.eq98_a14.js","sources":["../../../../../../node_modules/@lucide/svelte/dist/icons/loader-circle.svelte","../../../../../../src/routes/reset-password/+page.svelte"],"sourcesContent":["<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M21 12a9 9 0 1 1-6.219-8.56\" }]];\n/**\n * @component @name LoaderCircle\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjEgMTJhOSA5IDAgMSAxLTYuMjE5LTguNTYiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/loader-circle\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"loader-circle\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { page } from '$app/state';\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardFooter, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import { CircleAlert, CircleCheck, Loader2 } from \"@lucide/svelte\";\n import { themeState } from '$lib/state/theme.svelte';\n\n let password = $state('');\n let confirmPassword = $state('');\n let error = $state('');\n let loading = $state(false);\n let success = $state(false);\n let validating = $state(true);\n let tokenValid = $state(false);\n let email = $state('');\n\n const token = $derived(page.url.searchParams.get('token'));\n\n $effect(() => {\n if (token) {\n validateToken(token);\n } else {\n validating = false;\n tokenValid = false;\n }\n });\n\n async function validateToken(token: string) {\n try {\n const response = await fetch(`/api/password-reset/${token}`);\n const data = await response.json();\n\n if (data.valid) {\n tokenValid = true;\n email = data.email;\n } else {\n tokenValid = false;\n }\n } catch {\n tokenValid = false;\n } finally {\n validating = false;\n }\n }\n\n async function handleSubmit() {\n if (password !== confirmPassword) {\n error = 'Passwords do not match';\n return;\n }\n\n if (password.length < 8) {\n error = 'Password must be at least 8 characters';\n return;\n }\n\n loading = true;\n error = '';\n\n try {\n const response = await fetch(`/api/password-reset/${token}`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify({ password })\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to reset password');\n }\n\n success = true;\n setTimeout(() => {\n goto('/login');\n }, 2000);\n } catch (e) {\n error = e instanceof Error ? e.message : 'An unexpected error occurred';\n } finally {\n loading = false;\n }\n }\n</script>\n\n<div class=\"flex h-screen w-full items-center justify-center px-4\">\n <Card class=\"w-[350px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n </CardHeader>\n <CardContent>\n {#if validating}\n <div class=\"flex flex-col items-center justify-center py-8\">\n <Loader2 class=\"h-8 w-8 animate-spin text-muted-foreground\" />\n <p class=\"mt-4 text-sm text-muted-foreground\">Validating reset link...</p>\n </div>\n {:else if !tokenValid}\n <Alert variant=\"destructive\" class=\"bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Invalid Link</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n This password reset link is invalid or has expired. Please request a new one.\n </AlertDescription>\n </Alert>\n {:else if success}\n <Alert class=\"bg-green-50 border-green-200\">\n <CircleCheck class=\"h-4 w-4 text-green-700\" />\n <AlertTitle class=\"text-green-800\">Password Reset</AlertTitle>\n <AlertDescription class=\"text-green-700\">\n Your password has been reset successfully. Redirecting to login...\n </AlertDescription>\n </Alert>\n {:else}\n {#if error}\n <Alert variant=\"destructive\" class=\"mb-4 bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n {/if}\n <p class=\"text-sm text-muted-foreground mb-4\">\n Enter a new password for your account.\n </p>\n <form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class=\"grid w-full items-center gap-4\">\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" value={email} disabled class=\"bg-muted\" />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"password\">New Password</Label>\n <Input id=\"password\" type=\"password\" bind:value={password} placeholder=\"New password\" required minlength={8} />\n </div>\n <div class=\"flex flex-col space-y-1.5\">\n <Label for=\"confirmPassword\">Confirm Password</Label>\n <Input id=\"confirmPassword\" type=\"password\" bind:value={confirmPassword} placeholder=\"Confirm password\" required minlength={8} />\n </div>\n <Button type=\"submit\" disabled={loading} class=\"w-full\">\n {#if loading}\n Resetting...\n {:else}\n Reset Password\n {/if}\n </Button>\n </form>\n {/if}\n </CardContent>\n <CardFooter class=\"flex flex-col justify-center\">\n <p class=\"text-sm text-muted-foreground\">\n <a href=\"/login\" class=\"text-primary hover:underline\">Back to Login</a>\n </p>\n </CardFooter>\n </Card>\n</div>\n"],"names":["props","$.rest_props","$$props","iconNode","Icon","$.noop","password","$.state","confirmPassword","error","loading","success","validating","tokenValid","email","token","$.derived","page","$.user_effect","$.get","validateToken","$.set","data","handleSubmit","response","goto","e","div","root","Card","node","CardHeader","node_1","CardTitle","$$anchor","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardContent","node_3","div_2","root_7","Loader2","node_5","Alert","CircleAlert","node_7","AlertTitle","node_8","AlertDescription","node_9","CircleCheck","node_11","node_12","node_13","node_15","node_16","node_17","consequent_4","form","$.sibling","node_14","div_3","Label","node_18","Input","node_19","div_4","node_20","node_21","$$value","div_5","node_22","node_23","Button","node_24","consequent_5","alternate_1","consequent_3","alternate_2","alternate_3","consequent_2","consequent_1","alternate_4","CardFooter","node_26","p","root_29"],"mappings":"m1BAAA,cA6CIA,EAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,EACH,MAAAC,EAAQ,CAAA,CAAK,OAAM,CAAI,EAAK,6BAA6B,CAAA,CAAA,EAc9DC,mCAA8BJ,EAAK,uBAAYG,gDAC/B,UAAQE,EAAA,sCAHzB,ygCC1DA,cAWQC,EAAWC,EAAO,EAAE,EACpBC,EAAkBD,EAAO,EAAE,EAC3BE,EAAQF,EAAO,EAAE,EACjBG,EAAUH,EAAO,EAAK,EACtBI,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CAAA,OAIHI,EAAG,EACCR,GAAKS,GAAA,sHACLP,GAAKQ,GAAA,2FAAsH,MAAhF,OAAU,UAAExE,CAAe,OAA3B,MAAUqE,EAAA,GAAErE,EAAeqE,EAAA,EAAA,OAF1EC,EAAG,WAAHA,GAAG,CAAA,EAIHG,GAAMC,GAAA,uCAAyBxE,CAAO,iJAC9BA,CAAO,EAAAgC,EAAAyC,CAAA,EAAAzC,EAAA0C,EAAA,EAAA,qCAdnBlB,CAAI,cAAJA,EAAgBxC,GAAM,CAAEA,EAAE,eAAc,EAAIH,GAAY,CAAI,CAAC,qBArBxDZ,CAAO,EAAA+B,EAAA2C,CAAA,EAAA3C,EAAA4C,EAAA,EAAA,yBARNzE,CAAU,EAAA6B,EAAA6C,GAAA,EAAA,EAAA7C,EAAA8C,CAAA,0BALhB5E,CAAU,EAAA8B,EAAA+C,CAAA,EAAA/C,EAAAgD,GAAA,EAAA,kDAyDlBC,GAAUC,GAAA,4DACNC,EAACC,GAAA,MAADD,CAAC,2DAxEblE,EAAG,MAAHA,EAAG,MAFJ","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/24.CmXn2NPq.js b/backend/static/frontend/_app/immutable/nodes/24.Cj61BRme.js
similarity index 94%
rename from backend/static/frontend/_app/immutable/nodes/24.CmXn2NPq.js
rename to backend/static/frontend/_app/immutable/nodes/24.Cj61BRme.js
index 2eec5b52..f6255f63 100644
--- a/backend/static/frontend/_app/immutable/nodes/24.CmXn2NPq.js
+++ b/backend/static/frontend/_app/immutable/nodes/24.Cj61BRme.js
@@ -1,2 +1,2 @@
-import{i as Ae}from"../chunks/DMODTt3n.js";import{o as Ut,a as zt}from"../chunks/Dwk6gGSK.js";import{q as Lt,p as Ot,h as u,v as O,g as e,u as st,f as P,e as g,k as H,b as o,a as Et,i as a,s as n,c as i,r as h,n as R,d as y,t as se,l as Q}from"../chunks/B2WdN-7r.js";import{e as nt,i as lt}from"../chunks/CMyj8Fzw.js";import{c as l}from"../chunks/BAcG0-U_.js";import{a as Kt,p as Mt}from"../chunks/D6S6XYVy.js";import{c as it,t as dt,g as Bt,a as Nt,b as jt}from"../chunks/DJdWGDax.js";import{b as ke,T as Fe,a as ue,c as Vt}from"../chunks/CeOjHHJH.js";import{T as qt}from"../chunks/CEJkX7WU.js";import{L as Wt}from"../chunks/D0pIT200.js";import{T as Re}from"../chunks/BQmrPeqT.js";import{T as Xt}from"../chunks/xk30YnJ1.js";import{P as Gt}from"../chunks/C8IsQj6C.js";import{g as ut,d as ce,a as fe,T as Ht,p as Qt,b as Yt}from"../chunks/xqPrLpfy.js";import{S as Jt}from"../chunks/DGXZzcqC.js";import{A as Zt,a as er,b as tr,c as rr,d as ar,e as or}from"../chunks/CtIWnZub.js";import{B as ct}from"../chunks/C1aqwstW.js";import{T as sr,a as nr,b as lr}from"../chunks/2aB7Aq1L.js";import{I as ft}from"../chunks/D8CWOmhn.js";import{g as ir}from"../chunks/xR3pK9Ey.js";import{c as dr}from"../chunks/CyOblkUv.js";import{r as ur}from"../chunks/D_mqy6BL.js";import{P as cr}from"../chunks/BGqyWGxT.js";import{g as fr,h as mr,s as pr}from"../chunks/X-i49s3k.js";import{P as mt}from"../chunks/BUQRDnoX.js";import{I as vr}from"../chunks/CQ9AfEcR.js";import{X as _r}from"../chunks/CeufXW8P.js";var gr=P(`<p class="text-xs">Sessions are full recordings of user interactions and are only recorded when manually enabled
+import{i as Ae}from"../chunks/DMODTt3n.js";import{o as Ut,a as zt}from"../chunks/Dwk6gGSK.js";import{q as Lt,p as Ot,h as u,v as O,g as e,u as st,f as P,e as g,k as H,b as o,a as Et,i as a,s as n,c as i,r as h,n as R,d as y,t as se,l as Q}from"../chunks/B2WdN-7r.js";import{e as nt,i as lt}from"../chunks/CMyj8Fzw.js";import{c as l}from"../chunks/BAcG0-U_.js";import{a as Kt,p as Mt}from"../chunks/qCQ2nSvO.js";import{c as it,t as dt,g as Bt,a as Nt,b as jt}from"../chunks/Dq-0lVru.js";import{b as ke,T as Fe,a as ue,c as Vt}from"../chunks/CeOjHHJH.js";import{T as qt}from"../chunks/CEJkX7WU.js";import{L as Wt}from"../chunks/D0pIT200.js";import{T as Re}from"../chunks/CkVJuMBr.js";import{T as Xt}from"../chunks/xk30YnJ1.js";import{P as Gt}from"../chunks/DByR3-93.js";import{g as ut,d as ce,a as fe,T as Ht,p as Qt,b as Yt}from"../chunks/DjEjtFrE.js";import{S as Jt}from"../chunks/D4tSNflE.js";import{A as Zt,a as er,b as tr,c as rr,d as ar,e as or}from"../chunks/CmY6xZEr.js";import{B as ct}from"../chunks/C1aqwstW.js";import{T as sr,a as nr,b as lr}from"../chunks/5D-Broyu.js";import{I as ft}from"../chunks/D8CWOmhn.js";import{g as ir}from"../chunks/BIF4_51j.js";import{c as dr}from"../chunks/UIirCQWa.js";import{r as ur}from"../chunks/BGApn_8u.js";import{P as cr}from"../chunks/Cplpgpvt.js";import{g as fr,h as mr,s as pr}from"../chunks/X-i49s3k.js";import{P as mt}from"../chunks/BUQRDnoX.js";import{I as vr}from"../chunks/CQ9AfEcR.js";import{X as _r}from"../chunks/CeufXW8P.js";var gr=P(`<p class="text-xs">Sessions are full recordings of user interactions and are only recorded when manually enabled
(<code class="font-mono">recordAllSessions: true</code> in the SDK init options).</p>`),hr=P("<!> <!>",1),$r=P('<span class="inline-flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs font-mono"><span class="text-muted-foreground"> </span> <span>=</span> <span> </span> <button type="button" aria-label="Remove filter" class="ml-1 text-muted-foreground hover:text-foreground"><!></button></span>'),br=P('Match sessions by an exact attribute value. Keys come from what the SDK auto-collects (<code class="font-mono">url</code>, <code class="font-mono">userAgent</code>, <code class="font-mono">viewport</code>, <code class="font-mono">client.ip</code>, …) plus anything you attach yourself.',1),xr=P("<!> <!>",1),yr=P('<p class="text-xs text-red-500"> </p>'),Pr=P("<!> Add filter",1),Sr=P("<!> <!>",1),Tr=P('<!> <div class="flex flex-col gap-3"><label class="flex flex-col gap-1 text-sm"><span class="font-medium">Attribute key</span> <!></label> <label class="flex flex-col gap-1 text-sm"><span class="font-medium">Value</span> <!></label> <!></div> <!>',1),wr=P('<div class="flex justify-center items-center h-full"><!></div>'),Dr=P("<!> <!> <!> <!>",1),Ar=P("<!> <!> <!> <!>",1),kr=P("<!> <!>",1),Fr=P('<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><div class="flex items-start gap-2"><!> <!></div> <div class="flex flex-col"><!></div></div> <!> <div class="flex flex-wrap items-center gap-2"><button type="button" class="inline-flex items-center gap-1 rounded-full border border-dashed px-3 py-0.5 text-xs font-medium text-muted-foreground transition-colors hover:border-foreground/40 hover:text-foreground"><!> Add filter</button> <!></div> <!> <div class="rounded-md border overflow-hidden"><!></div> <!></div>');function oa(pt,vt){Ot(vt,!0);const c=st(Bt);let Ce=u(O([])),me=u(!0),$e=u(""),C=u(1),Ie=u(50),Be=u(0),Ue=u(0);function _t(t){const r=t.indexOf("=");if(r<=0)return null;const s=t.slice(0,r).trim(),p=t.slice(r+1);return s?{key:s,value:p}:null}function Ne(){const t=Qt(e(c)),r=new URLSearchParams(window.location.search),s=[];for(const p of r.getAll("attr")){const $=_t(p);$&&s.push($)}return{...t,search:r.get("search")??"",attributeFilters:s}}const be=Ne(),xe=ut(be,e(c));let N=u(O(be.preset)),j=u(O(ce(xe.from,e(c)))),V=u(O(ce(xe.to,e(c)))),ne=u(O(fe(xe.from,e(c)))),le=u(O(fe(xe.to,e(c)))),ie=u(O(be.search)),E=u(O(be.attributeFilters)),pe=u(!1),ye=u(""),Pe=u(""),Se=u("");function gt(){a(ye,""),a(Pe,""),a(Se,""),a(pe,!0)}function je(){const t=e(ye).trim();if(!t){a(Se,"Attribute key is required");return}const r=e(Pe);e(E).some(p=>p.key===t&&p.value===r)||a(E,[...e(E),{key:t,value:r}],!0),a(pe,!1),a(C,1),K(!0)}function Ve(t){t.key==="Enter"&&(t.preventDefault(),je())}function ht(t){a(E,e(E).filter((r,s)=>s!==t),!0),a(C,1),K(!0)}function $t(t=!0){const r=new URLSearchParams;e(N)?r.set("preset",e(N)):(r.set("from",Ge()),r.set("to",He())),e(ie).trim()&&r.set("search",e(ie).trim());for(const p of e(E))r.append("attr",`${p.key}=${p.value}`);const s=`${window.location.pathname}?${r.toString()}`;ir(s,{replaceState:!t,noScroll:!0,keepFocus:!0})}function qe(){const t=Ne(),r=ut(t,e(c));a(N,t.preset,!0),a(j,ce(r.from,e(c)),!0),a(ne,fe(r.from,e(c)),!0),a(V,ce(r.to,e(c)),!0),a(le,fe(r.to,e(c)),!0),a(ie,t.search,!0),a(E,t.attributeFilters,!0),a(C,1),K(!1)}function bt(){a(C,1),K(!0)}const We="sessions",Xe=fr(We,{field:"started_at",direction:"desc"});let ve=u(O(Xe.field)),_e=u(O(Xe.direction));function Ge(){const[t,r]=(e(ne)||"00:00").split(":").map(Number),s=it({year:e(j).year,month:e(j).month,day:e(j).day,hour:t,minute:r},e(c));return dt(s)}function He(){const[t,r]=(e(le)||"23:59").split(":").map(Number),s=it({year:e(V).year,month:e(V).month,day:e(V).day,hour:t,minute:r},e(c)).endOf("minute");return dt(s)}function xt(t,r,s){a(j,t.date,!0),a(ne,t.time,!0),a(V,r.date,!0),a(le,r.time,!0),a(N,s,!0),a(C,1),K(!0)}function yt(t){return t.split("-")[0]??t.slice(0,8)}const Pt=15*6e4;function St(t){if(t.endedAt)return jt(t.duration);const r=Date.parse(t.startedAt);return Number.isFinite(r)&&Date.now()-r>=Pt?"Abandoned":"in progress"}async function K(t=!0){if(a(me,!0),a($e,""),e(N)){const r=Yt(e(N),e(c));a(j,ce(r.from,e(c)),!0),a(V,ce(r.to,e(c)),!0),a(ne,fe(r.from,e(c)),!0),a(le,fe(r.to,e(c)),!0)}$t(t);try{const r={fromDate:Ge(),toDate:He(),orderBy:e(ve),sortDirection:e(_e),search:e(ie).trim(),attributeFilters:e(E),pagination:{page:e(C),pageSize:e(Ie)}},s=await Kt.post("/sessions",r,{projectId:Mt.currentProjectId??void 0});a(Ce,s.data||[],!0),a(Be,s.pagination.total,!0),a(Ue,s.pagination.totalPages,!0)}catch(r){console.error(r),a($e,r.message||"Failed to load data",!0)}finally{a(me,!1)}}function Tt(t){t>=1&&t<=e(Ue)&&(a(C,t,!0),K(!1))}function wt(t){a(Ie,t,!0),a(C,1),K(!1)}function Qe(t){const r=mr(t,e(ve),e(_e));a(ve,r.field,!0),a(_e,r.direction,!0),pr(We,r),a(C,1),K(!1)}Ut(()=>{window.addEventListener("popstate",qe),K(!1)}),zt(()=>{typeof window<"u"&&window.removeEventListener("popstate",qe)});var ze=Fr(),Le=g(ze),Oe=g(Le),Ye=g(Oe);cr(Ye,{title:"Sessions"});var Dt=n(Ye,2);l(Dt,()=>lr,(t,r)=>{r(t,{children:(s,p)=>{var $=hr(),q=i($);l(q,()=>sr,(B,v)=>{v(B,{class:"mt-2 text-muted-foreground/60 hover:text-muted-foreground",children:(w,W)=>{vr(w,{class:"h-4 w-4"})},$$slots:{default:!0}})});var M=n(q,2);l(M,()=>nr,(B,v)=>{v(B,{side:"right",class:"max-w-xs",children:(w,W)=>{var X=gr();o(w,X)},$$slots:{default:!0}})}),o(s,$)},$$slots:{default:!0}})}),h(Oe);var Je=n(Oe,2),At=g(Je);Ht(At,{onApply:xt,get fromDate(){return e(j)},set fromDate(t){a(j,t,!0)},get toDate(){return e(V)},set toDate(t){a(V,t,!0)},get fromTime(){return e(ne)},set fromTime(t){a(ne,t,!0)},get toTime(){return e(le)},set toTime(t){a(le,t,!0)},get preset(){return e(N)},set preset(t){a(N,t,!0)}}),h(Je),h(Le);var Ze=n(Le,2);Jt(Ze,{placeholder:"Search by session ID...",onSearch:bt,get value(){return e(ie)},set value(t){a(ie,t,!0)}});var Ee=n(Ze,2),ge=g(Ee);ge.__click=gt;var kt=g(ge);mt(kt,{class:"h-3 w-3"}),R(),h(ge);var Ft=n(ge,2);nt(Ft,17,()=>e(E),lt,(t,r,s)=>{var p=$r(),$=g(p),q=g($,!0);h($);var M=n($,4),B=g(M,!0);h(M);var v=n(M,2);v.__click=()=>ht(s);var w=g(v);_r(w,{class:"h-3 w-3"}),h(v),h(p),H(()=>{Q(q,e(r).key),Q(B,e(r).value||'""')}),o(t,p)}),h(Ee);var et=n(Ee,2);l(et,()=>or,(t,r)=>{r(t,{get open(){return e(pe)},onOpenChange:s=>a(pe,s,!0),children:(s,p)=>{var $=y(),q=i($);l(q,()=>Zt,(M,B)=>{B(M,{children:(v,w)=>{var W=Tr(),X=i(W);l(X,()=>er,(d,_)=>{_(d,{children:(b,k)=>{var x=xr(),z=i(x);l(z,()=>tr,(m,T)=>{T(m,{children:(f,L)=>{R();var ee=se("Add attribute filter");o(f,ee)},$$slots:{default:!0}})});var S=n(z,2);l(S,()=>rr,(m,T)=>{T(m,{children:(f,L)=>{R();var ee=br();R(8),o(f,ee)},$$slots:{default:!0}})}),o(b,x)},$$slots:{default:!0}})});var Y=n(X,2),D=g(Y),G=n(g(D),2);ft(G,{placeholder:"userAgent",onkeydown:Ve,get value(){return e(ye)},set value(d){a(ye,d,!0)}}),h(D);var I=n(D,2),J=n(g(I),2);ft(J,{placeholder:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)...",onkeydown:Ve,get value(){return e(Pe)},set value(d){a(Pe,d,!0)}}),h(I);var Z=n(I,2);{var A=d=>{var _=yr(),b=g(_,!0);h(_),H(()=>Q(b,e(Se))),o(d,_)};Ae(Z,d=>{e(Se)&&d(A)})}h(Y);var U=n(Y,2);l(U,()=>ar,(d,_)=>{_(d,{children:(b,k)=>{var x=Sr(),z=i(x);ct(z,{variant:"outline",onclick:()=>a(pe,!1),children:(m,T)=>{R();var f=se("Cancel");o(m,f)},$$slots:{default:!0}});var S=n(z,2);ct(S,{onclick:je,children:(m,T)=>{var f=Pr(),L=i(f);mt(L,{class:"h-4 w-4"}),R(),o(m,f)},$$slots:{default:!0}}),o(b,x)},$$slots:{default:!0}})}),o(v,W)},$$slots:{default:!0}})}),o(s,$)},$$slots:{default:!0}})});var Ke=n(et,2),Rt=g(Ke);l(Rt,()=>Vt,(t,r)=>{r(t,{children:(s,p)=>{var $=y(),q=i($);{var M=v=>{var w=y(),W=i(w);l(W,()=>ke,(X,Y)=>{Y(X,{children:(D,G)=>{var I=y(),J=i(I);l(J,()=>Fe,(Z,A)=>{A(Z,{children:(U,d)=>{var _=y(),b=i(_);l(b,()=>ue,(k,x)=>{x(k,{colspan:4,class:"h-48",children:(z,S)=>{var m=wr(),T=g(m);Wt(T,{size:"xlg"}),h(m),o(z,m)},$$slots:{default:!0}})}),o(U,_)},$$slots:{default:!0}})}),o(D,I)},$$slots:{default:!0}})}),o(v,w)},B=v=>{var w=y(),W=i(w);{var X=D=>{var G=y(),I=i(G);l(I,()=>ke,(J,Z)=>{Z(J,{children:(A,U)=>{var d=y(),_=i(d);l(_,()=>Fe,(b,k)=>{k(b,{children:(x,z)=>{var S=y(),m=i(S);l(m,()=>ue,(T,f)=>{f(T,{colspan:4,class:"h-24 text-center text-red-500",children:(L,ee)=>{R();var te=se();H(()=>Q(te,e($e))),o(L,te)},$$slots:{default:!0}})}),o(x,S)},$$slots:{default:!0}})}),o(A,d)},$$slots:{default:!0}})}),o(D,G)},Y=D=>{var G=y(),I=i(G);{var J=A=>{var U=y(),d=i(U);l(d,()=>ke,(_,b)=>{b(_,{children:(k,x)=>{Xt(k,{colspan:4,message:"No sessions recorded yet — enable recordAllSessions in the SDK to start capturing them."})},$$slots:{default:!0}})}),o(A,U)},Z=A=>{var U=kr(),d=i(U);l(d,()=>qt,(b,k)=>{k(b,{children:(x,z)=>{var S=y(),m=i(S);l(m,()=>Fe,(T,f)=>{f(T,{children:(L,ee)=>{var te=Dr(),Te=i(te);Re(Te,{label:"Session",tooltip:"Session UUID — open to play back the recording"});var we=n(Te,2);Re(we,{label:"Started",tooltip:"When the session began",sortField:"started_at",get currentSortField(){return e(ve)},get sortDirection(){return e(_e)},onSort:de=>Qe(de),class:"w-[160px]"});var De=n(we,2);Re(De,{label:"Duration",tooltip:"Wall-clock length of the session",sortField:"duration",get currentSortField(){return e(ve)},get sortDirection(){return e(_e)},onSort:de=>Qe(de),class:"w-[120px]"});var tt=n(De,2);Re(tt,{label:"Version",tooltip:"App version reported by the SDK",class:"w-[120px]"}),o(L,te)},$$slots:{default:!0}})}),o(x,S)},$$slots:{default:!0}})});var _=n(d,2);l(_,()=>ke,(b,k)=>{k(b,{children:(x,z)=>{var S=y(),m=i(S);nt(m,17,()=>e(Ce),lt,(T,f)=>{var L=y(),ee=i(L);{let te=st(()=>dr(ur(`/sessions/${e(f).id}`),"preset","from","to"));l(ee,()=>Fe,(Te,we)=>{we(Te,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return e(te)},children:(De,tt)=>{var de=Ar(),rt=i(de);l(rt,()=>ue,(re,ae)=>{ae(re,{class:"font-mono text-sm",children:(oe,Me)=>{R();var F=se();H(he=>Q(F,he),[()=>yt(e(f).id)]),o(oe,F)},$$slots:{default:!0}})});var at=n(rt,2);l(at,()=>ue,(re,ae)=>{ae(re,{class:"text-sm",children:(oe,Me)=>{R();var F=se();H(he=>Q(F,he),[()=>Nt(e(f).startedAt,e(c))]),o(oe,F)},$$slots:{default:!0}})});var ot=n(at,2);l(ot,()=>ue,(re,ae)=>{ae(re,{class:"font-mono text-sm tabular-nums",children:(oe,Me)=>{R();var F=se();H(he=>Q(F,he),[()=>St(e(f))]),o(oe,F)},$$slots:{default:!0}})});var It=n(ot,2);l(It,()=>ue,(re,ae)=>{ae(re,{class:"font-mono text-sm",children:(oe,Me)=>{R();var F=se();H(()=>Q(F,e(f).appVersion||"—")),o(oe,F)},$$slots:{default:!0}})}),o(De,de)},$$slots:{default:!0}})})}o(T,L)}),o(x,S)},$$slots:{default:!0}})}),o(A,U)};Ae(I,A=>{e(Ce).length===0?A(J):A(Z,!1)},!0)}o(D,G)};Ae(W,D=>{e($e)?D(X):D(Y,!1)},!0)}o(v,w)};Ae(q,v=>{e(me)?v(M):v(B,!1)})}o(s,$)},$$slots:{default:!0}})}),h(Ke);var Ct=n(Ke,2);Gt(Ct,{get currentPage(){return e(C)},get totalPages(){return e(Ue)},get pageSize(){return e(Ie)},get totalItems(){return e(Be)},onPageChange:Tt,onPageSizeChange:wt,get loading(){return e(me)},itemLabel:"session"}),h(ze),H(()=>ge.disabled=e(me)),o(pt,ze),Et()}Lt(["click"]);export{oa as component};
diff --git a/backend/static/frontend/_app/immutable/nodes/24.CmXn2NPq.js.map b/backend/static/frontend/_app/immutable/nodes/24.Cj61BRme.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/24.CmXn2NPq.js.map
rename to backend/static/frontend/_app/immutable/nodes/24.Cj61BRme.js.map
index 8cb20a44..c2689bfa 100644
--- a/backend/static/frontend/_app/immutable/nodes/24.CmXn2NPq.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/24.Cj61BRme.js.map
@@ -1 +1 @@
-{"version":3,"file":"24.CmXn2NPq.js","sources":["../../../../../../src/routes/sessions/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { onMount, onDestroy } from 'svelte';\n import { api } from '$lib/api';\n import { formatDuration, formatRelativeTime, toUTCISO, calendarDateTimeToLuxon } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import * as Table from \"$lib/components/ui/table\";\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { PaginationFooter } from \"$lib/components/ui/pagination-footer\";\n import { TimeRangePicker } from \"$lib/components/ui/time-range-picker\";\n import { SearchBar } from \"$lib/components/ui/search-bar\";\n import * as AlertDialog from '$lib/components/ui/alert-dialog';\n import * as Tooltip from '$lib/components/ui/tooltip';\n import { Button } from '$lib/components/ui/button';\n import { Input } from '$lib/components/ui/input';\n import Plus from '@lucide/svelte/icons/plus';\n import X from '@lucide/svelte/icons/x';\n import Info from '@lucide/svelte/icons/info';\n import { CalendarDate } from \"@internationalized/date\";\n import { browser } from '$app/environment';\n import { goto } from '$app/navigation';\n import { projectsState } from '$lib/state/projects.svelte';\n import { createRowClickHandler } from '$lib/utils/navigation';\n import { resolve } from '$app/paths';\n import PageHeader from '$lib/components/issues/page-header.svelte';\n import {\n getTimeRangeFromPreset,\n dateToCalendarDate,\n dateToTimeString,\n parseTimeRangeFromUrl,\n getResolvedTimeRange,\n updateUrl\n } from '$lib/utils/url-params';\n import {\n getSortState,\n setSortState,\n handleSortClick,\n type SortDirection\n } from '$lib/utils/sort-storage';\n\n const timezone = $derived(getTimezone());\n\n type Session = {\n id: string;\n startedAt: string;\n endedAt?: string | null;\n duration: number;\n clientIP: string;\n appVersion: string;\n serverName: string;\n };\n\n type SortField = 'started_at' | 'duration';\n\n let sessions = $state<Session[]>([]);\n let loading = $state(true);\n let error = $state('');\n\n let page = $state(1);\n let pageSize = $state(50);\n let total = $state(0);\n let totalPages = $state(0);\n\n type AttributeFilter = { key: string; value: string };\n\n function parseAttributeFilter(input: string): AttributeFilter | null {\n const idx = input.indexOf('=');\n if (idx <= 0) return null;\n const key = input.slice(0, idx).trim();\n const value = input.slice(idx + 1);\n if (!key) return null;\n return { key, value };\n }\n\n function parseSessionsUrlParams() {\n const timeParams = parseTimeRangeFromUrl(timezone);\n if (!browser) return { ...timeParams, search: '', attributeFilters: [] as AttributeFilter[] };\n const params = new URLSearchParams(window.location.search);\n const attrs: AttributeFilter[] = [];\n for (const raw of params.getAll('attr')) {\n const parsed = parseAttributeFilter(raw);\n if (parsed) attrs.push(parsed);\n }\n return {\n ...timeParams,\n search: params.get('search') ?? '',\n attributeFilters: attrs\n };\n }\n\n const initialUrlParams = parseSessionsUrlParams();\n const initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n let selectedPreset = $state<string | null>(initialUrlParams.preset);\n let fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n let toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n let fromTime = $state(dateToTimeString(initialRange.from, timezone));\n let toTime = $state(dateToTimeString(initialRange.to, timezone));\n let searchQuery = $state(initialUrlParams.search);\n let attributeFilters = $state<AttributeFilter[]>(initialUrlParams.attributeFilters);\n\n let addFilterOpen = $state(false);\n let dialogKey = $state('');\n let dialogValue = $state('');\n let dialogError = $state('');\n\n function openAddFilterDialog() {\n dialogKey = '';\n dialogValue = '';\n dialogError = '';\n addFilterOpen = true;\n }\n\n function submitDialogFilter() {\n const key = dialogKey.trim();\n if (!key) {\n dialogError = 'Attribute key is required';\n return;\n }\n const value = dialogValue;\n const dup = attributeFilters.some((f) => f.key === key && f.value === value);\n if (!dup) {\n attributeFilters = [...attributeFilters, { key, value }];\n }\n addFilterOpen = false;\n page = 1;\n loadData(true);\n }\n\n function handleDialogKeydown(e: KeyboardEvent) {\n if (e.key === 'Enter') {\n e.preventDefault();\n submitDialogFilter();\n }\n }\n\n function removeAttributeFilter(index: number) {\n attributeFilters = attributeFilters.filter((_, i) => i !== index);\n page = 1;\n loadData(true);\n }\n\n function updateTimeRangeUrl(pushToHistory = true) {\n if (!browser) return;\n const params = new URLSearchParams();\n if (selectedPreset) {\n params.set('preset', selectedPreset);\n } else {\n params.set('from', getFromDateTimeUTC());\n params.set('to', getToDateTimeUTC());\n }\n if (searchQuery.trim()) params.set('search', searchQuery.trim());\n for (const f of attributeFilters) {\n params.append('attr', `${f.key}=${f.value}`);\n }\n const newUrl = `${window.location.pathname}?${params.toString()}`;\n // eslint-disable-next-line svelte/no-navigation-without-resolve\n goto(newUrl, { replaceState: !pushToHistory, noScroll: true, keepFocus: true });\n }\n\n function handlePopState() {\n const urlParams = parseSessionsUrlParams();\n const range = getResolvedTimeRange(urlParams, timezone);\n selectedPreset = urlParams.preset;\n fromDate = dateToCalendarDate(range.from, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n toTime = dateToTimeString(range.to, timezone);\n searchQuery = urlParams.search;\n attributeFilters = urlParams.attributeFilters;\n page = 1;\n loadData(false);\n }\n\n function handleSearch() {\n page = 1;\n loadData(true);\n }\n\n const SORT_STORAGE_KEY = 'sessions';\n const initialSort = getSortState(SORT_STORAGE_KEY, { field: 'started_at', direction: 'desc' });\n let orderBy = $state<SortField>(initialSort.field as SortField);\n let sortDirection = $state<SortDirection>(initialSort.direction);\n\n function getFromDateTimeUTC(): string {\n const [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute }, timezone);\n return toUTCISO(dt);\n }\n\n function getToDateTimeUTC(): string {\n const [hour, minute] = (toTime || '23:59').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute }, timezone).endOf('minute');\n return toUTCISO(dt);\n }\n\n function handleTimeRangeChange(from: { date: CalendarDate; time: string }, to: { date: CalendarDate; time: string }, preset: string | null) {\n fromDate = from.date;\n fromTime = from.time;\n toDate = to.date;\n toTime = to.time;\n selectedPreset = preset;\n page = 1;\n loadData(true);\n }\n\n function shortId(id: string): string {\n return id.split('-')[0] ?? id.slice(0, 8);\n }\n\n const ABANDONED_AFTER_MS = 15 * 60_000;\n\n function durationLabel(s: Session): string {\n if (s.endedAt) return formatDuration(s.duration);\n const startedMs = Date.parse(s.startedAt);\n if (Number.isFinite(startedMs) && Date.now() - startedMs >= ABANDONED_AFTER_MS) {\n return 'Abandoned';\n }\n return 'in progress';\n }\n\n async function loadData(pushToHistory = true) {\n loading = true;\n error = '';\n\n if (selectedPreset) {\n const range = getTimeRangeFromPreset(selectedPreset, timezone);\n fromDate = dateToCalendarDate(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toTime = dateToTimeString(range.to, timezone);\n }\n\n updateTimeRangeUrl(pushToHistory);\n\n try {\n const requestBody = {\n fromDate: getFromDateTimeUTC(),\n toDate: getToDateTimeUTC(),\n orderBy,\n sortDirection,\n search: searchQuery.trim(),\n attributeFilters,\n pagination: { page, pageSize }\n };\n\n const response = await api.post('/sessions', requestBody, { projectId: projectsState.currentProjectId ?? undefined });\n\n sessions = response.data || [];\n total = response.pagination.total;\n totalPages = response.pagination.totalPages;\n } catch (e: any) {\n console.error(e);\n error = e.message || 'Failed to load data';\n } finally {\n loading = false;\n }\n }\n\n function handlePageChange(newPage: number) {\n if (newPage >= 1 && newPage <= totalPages) {\n page = newPage;\n loadData(false);\n }\n }\n\n function handlePageSizeChange(newPageSize: number) {\n pageSize = newPageSize;\n page = 1;\n loadData(false);\n }\n\n function handleSort(field: SortField) {\n const newSort = handleSortClick(field, orderBy, sortDirection);\n orderBy = newSort.field as SortField;\n sortDirection = newSort.direction;\n setSortState(SORT_STORAGE_KEY, newSort);\n page = 1;\n loadData(false);\n }\n\n onMount(() => {\n window.addEventListener('popstate', handlePopState);\n loadData(false);\n });\n\n onDestroy(() => {\n if (typeof window !== 'undefined') {\n window.removeEventListener('popstate', handlePopState);\n }\n });\n</script>\n\n<div class=\"space-y-4\">\n <div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n <div class=\"flex items-start gap-2\">\n <PageHeader title=\"Sessions\" />\n <Tooltip.Root>\n <Tooltip.Trigger class=\"mt-2 text-muted-foreground/60 hover:text-muted-foreground\">\n <Info class=\"h-4 w-4\" />\n </Tooltip.Trigger>\n <Tooltip.Content side=\"right\" class=\"max-w-xs\">\n <p class=\"text-xs\">\n Sessions are full recordings of user interactions and are only recorded when manually enabled\n (<code class=\"font-mono\">recordAllSessions: true</code> in the SDK init options).\n </p>\n </Tooltip.Content>\n </Tooltip.Root>\n </div>\n <div class=\"flex flex-col\">\n <TimeRangePicker\n bind:fromDate\n bind:toDate\n bind:fromTime\n bind:toTime\n bind:preset={selectedPreset}\n onApply={handleTimeRangeChange}\n />\n </div>\n </div>\n\n <SearchBar\n placeholder=\"Search by session ID...\"\n bind:value={searchQuery}\n onSearch={handleSearch}\n />\n\n <div class=\"flex flex-wrap items-center gap-2\">\n <button\n type=\"button\"\n class=\"inline-flex items-center gap-1 rounded-full border border-dashed px-3 py-0.5 text-xs font-medium text-muted-foreground transition-colors hover:border-foreground/40 hover:text-foreground\"\n onclick={openAddFilterDialog}\n disabled={loading}\n >\n <Plus class=\"h-3 w-3\" />\n Add filter\n </button>\n {#each attributeFilters as f, i (i)}\n <span class=\"inline-flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs font-mono\">\n <span class=\"text-muted-foreground\">{f.key}</span>\n <span>=</span>\n <span>{f.value || '\"\"'}</span>\n <button\n type=\"button\"\n aria-label=\"Remove filter\"\n class=\"ml-1 text-muted-foreground hover:text-foreground\"\n onclick={() => removeAttributeFilter(i)}\n >\n <X class=\"h-3 w-3\" />\n </button>\n </span>\n {/each}\n </div>\n\n <AlertDialog.Root open={addFilterOpen} onOpenChange={(open) => (addFilterOpen = open)}>\n <AlertDialog.Content>\n <AlertDialog.Header>\n <AlertDialog.Title>Add attribute filter</AlertDialog.Title>\n <AlertDialog.Description>\n Match sessions by an exact attribute value. Keys come from what the SDK auto-collects (<code class=\"font-mono\">url</code>, <code class=\"font-mono\">userAgent</code>, <code class=\"font-mono\">viewport</code>, <code class=\"font-mono\">client.ip</code>, …) plus anything you attach yourself.\n </AlertDialog.Description>\n </AlertDialog.Header>\n <div class=\"flex flex-col gap-3\">\n <label class=\"flex flex-col gap-1 text-sm\">\n <span class=\"font-medium\">Attribute key</span>\n <Input\n placeholder=\"userAgent\"\n bind:value={dialogKey}\n onkeydown={handleDialogKeydown}\n />\n </label>\n <label class=\"flex flex-col gap-1 text-sm\">\n <span class=\"font-medium\">Value</span>\n <Input\n placeholder=\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)...\"\n bind:value={dialogValue}\n onkeydown={handleDialogKeydown}\n />\n </label>\n {#if dialogError}\n <p class=\"text-xs text-red-500\">{dialogError}</p>\n {/if}\n </div>\n <AlertDialog.Footer>\n <Button variant=\"outline\" onclick={() => (addFilterOpen = false)}>Cancel</Button>\n <Button onclick={submitDialogFilter}>\n <Plus class=\"h-4 w-4\" /> Add filter\n </Button>\n </AlertDialog.Footer>\n </AlertDialog.Content>\n </AlertDialog.Root>\n\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if loading}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={4} class=\"h-48\">\n <div class=\"flex justify-center items-center h-full\">\n <LoadingCircle size=\"xlg\" />\n </div>\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if error}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={4} class=\"h-24 text-center text-red-500\">\n {error}\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if sessions.length === 0}\n <Table.Body>\n <TableEmptyState colspan={4} message=\"No sessions recorded yet — enable recordAllSessions in the SDK to start capturing them.\" />\n </Table.Body>\n {:else}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader label=\"Session\" tooltip=\"Session UUID — open to play back the recording\" />\n <TracewayTableHeader\n label=\"Started\"\n tooltip=\"When the session began\"\n sortField=\"started_at\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[160px]\"\n />\n <TracewayTableHeader\n label=\"Duration\"\n tooltip=\"Wall-clock length of the session\"\n sortField=\"duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[120px]\"\n />\n <TracewayTableHeader label=\"Version\" tooltip=\"App version reported by the SDK\" class=\"w-[120px]\" />\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each sessions as session}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50\"\n onclick={createRowClickHandler(resolve(`/sessions/${session.id}`), 'preset', 'from', 'to')}\n >\n <Table.Cell class=\"font-mono text-sm\">{shortId(session.id)}</Table.Cell>\n <Table.Cell class=\"text-sm\">{formatRelativeTime(session.startedAt, timezone)}</Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {durationLabel(session)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm\">{session.appVersion || '—'}</Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n {/if}\n </Table.Root>\n </div>\n\n <PaginationFooter\n currentPage={page}\n {totalPages}\n {pageSize}\n totalItems={total}\n onPageChange={handlePageChange}\n onPageSizeChange={handlePageSizeChange}\n {loading}\n itemLabel=\"session\"\n />\n</div>\n"],"names":["timezone","getTimezone","sessions","$.state","$.proxy","loading","error","page","pageSize","total","totalPages","parseAttributeFilter","input","idx","key","value","parseSessionsUrlParams","timeParams","parseTimeRangeFromUrl","$.get","params","attrs","raw","parsed","initialUrlParams","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","searchQuery","attributeFilters","addFilterOpen","dialogKey","dialogValue","dialogError","openAddFilterDialog","$.set","submitDialogFilter","f","loadData","handleDialogKeydown","e","removeAttributeFilter","index","_","i","updateTimeRangeUrl","pushToHistory","getFromDateTimeUTC","getToDateTimeUTC","newUrl","goto","handlePopState","urlParams","range","handleSearch","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","shortId","id","ABANDONED_AFTER_MS","durationLabel","s","formatDuration","startedMs","getTimeRangeFromPreset","requestBody","response","api","projectsState","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","onMount","onDestroy","div","root","div_1","div_2","PageHeader","node","Tooltip_Root","$$anchor","Tooltip_Trigger","Info","Tooltip_Content","p","root_3","div_3","TimeRangePicker","node_4","$$value","SearchBar","node_5","div_4","$.sibling","button","$.child","node_6","Plus","$.reset","node_7","$.each","span","root_4","span_1","span_2","button_1","node_8","X","$.set_text","text","AlertDialog_Root","open","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","div_5","node_11","label","Input","node_14","label_1","node_15","p_1","root_10","$$render","consequent","AlertDialog_Footer","Button","node_18","node_19","node_20","div_6","node_9","Table_Root","Table_Body","Table_Row","Table_Cell","div_7","root_18","LoadingCircle","node_26","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","TracewayTableHeader","node_35","node_36","node_37","node_38","Table_Body_3","node_40","session","createRowClickHandler","resolve","Table_Row_3","Table_Cell_2","Table_Cell_3","formatRelativeTime","Table_Cell_4","$.template_effect","$0","text_8","Table_Cell_5","consequent_3","alternate","consequent_2","alternate_1","consequent_1","alternate_2","PaginationFooter","node_46"],"mappings":";uxDAAA,WAyCU,MAAAA,KAAoBC,EAAW,EAcjC,IAAAC,GAAWC,EAAMC,EAAA,CAAA,CAAA,CAAA,EACjBC,GAAUF,EAAO,EAAI,EACrBG,GAAQH,EAAO,EAAE,EAEjBI,EAAOJ,EAAO,CAAC,EACfK,GAAWL,EAAO,EAAE,EACpBM,GAAQN,EAAO,CAAC,EAChBO,GAAaP,EAAO,CAAC,WAIhBQ,GAAqBC,EAAuC,CAC3D,MAAAC,EAAMD,EAAM,QAAQ,GAAG,KACzBC,GAAO,EAAC,OAAS,WACfC,EAAMF,EAAM,MAAM,EAAGC,CAAG,EAAE,KA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AAC,YAAc,GAAG,CAAA,oIAxClEnL,EAAQ,EAAC,SAAW,EAACoJ,EAAA2C,CAAA,EAAA3C,EAAA4C,EAAA,EAAA,0BARrB5L,EAAK,EAAAgJ,EAAA6C,CAAA,EAAA7C,EAAA8C,EAAA,EAAA,0BAVV/L,EAAO,EAAAiJ,EAAA+C,CAAA,EAAA/C,EAAAgD,EAAA,EAAA,uCAFnBzC,EAAG,WAAHA,GAAG,CAAA,EAoEH0C,GAAAC,GAAA,4BACgBjM,CAAI,6BAChBG,EAAU,2BACVF,EAAQ,6BACGC,EAAK,gBACH8E,oBACIE,0BACjBpF,EAAO,2BA9Kf6F,EAAG,EAmCK2F,EAAA,IAAAtE,GAAA,SAAApG,EAIad,EAAO,CAAA,OAvC5B6F,EAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"24.Cj61BRme.js","sources":["../../../../../../src/routes/sessions/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { onMount, onDestroy } from 'svelte';\n import { api } from '$lib/api';\n import { formatDuration, formatRelativeTime, toUTCISO, calendarDateTimeToLuxon } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import * as Table from \"$lib/components/ui/table\";\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { PaginationFooter } from \"$lib/components/ui/pagination-footer\";\n import { TimeRangePicker } from \"$lib/components/ui/time-range-picker\";\n import { SearchBar } from \"$lib/components/ui/search-bar\";\n import * as AlertDialog from '$lib/components/ui/alert-dialog';\n import * as Tooltip from '$lib/components/ui/tooltip';\n import { Button } from '$lib/components/ui/button';\n import { Input } from '$lib/components/ui/input';\n import Plus from '@lucide/svelte/icons/plus';\n import X from '@lucide/svelte/icons/x';\n import Info from '@lucide/svelte/icons/info';\n import { CalendarDate } from \"@internationalized/date\";\n import { browser } from '$app/environment';\n import { goto } from '$app/navigation';\n import { projectsState } from '$lib/state/projects.svelte';\n import { createRowClickHandler } from '$lib/utils/navigation';\n import { resolve } from '$app/paths';\n import PageHeader from '$lib/components/issues/page-header.svelte';\n import {\n getTimeRangeFromPreset,\n dateToCalendarDate,\n dateToTimeString,\n parseTimeRangeFromUrl,\n getResolvedTimeRange,\n updateUrl\n } from '$lib/utils/url-params';\n import {\n getSortState,\n setSortState,\n handleSortClick,\n type SortDirection\n } from '$lib/utils/sort-storage';\n\n const timezone = $derived(getTimezone());\n\n type Session = {\n id: string;\n startedAt: string;\n endedAt?: string | null;\n duration: number;\n clientIP: string;\n appVersion: string;\n serverName: string;\n };\n\n type SortField = 'started_at' | 'duration';\n\n let sessions = $state<Session[]>([]);\n let loading = $state(true);\n let error = $state('');\n\n let page = $state(1);\n let pageSize = $state(50);\n let total = $state(0);\n let totalPages = $state(0);\n\n type AttributeFilter = { key: string; value: string };\n\n function parseAttributeFilter(input: string): AttributeFilter | null {\n const idx = input.indexOf('=');\n if (idx <= 0) return null;\n const key = input.slice(0, idx).trim();\n const value = input.slice(idx + 1);\n if (!key) return null;\n return { key, value };\n }\n\n function parseSessionsUrlParams() {\n const timeParams = parseTimeRangeFromUrl(timezone);\n if (!browser) return { ...timeParams, search: '', attributeFilters: [] as AttributeFilter[] };\n const params = new URLSearchParams(window.location.search);\n const attrs: AttributeFilter[] = [];\n for (const raw of params.getAll('attr')) {\n const parsed = parseAttributeFilter(raw);\n if (parsed) attrs.push(parsed);\n }\n return {\n ...timeParams,\n search: params.get('search') ?? '',\n attributeFilters: attrs\n };\n }\n\n const initialUrlParams = parseSessionsUrlParams();\n const initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n let selectedPreset = $state<string | null>(initialUrlParams.preset);\n let fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n let toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n let fromTime = $state(dateToTimeString(initialRange.from, timezone));\n let toTime = $state(dateToTimeString(initialRange.to, timezone));\n let searchQuery = $state(initialUrlParams.search);\n let attributeFilters = $state<AttributeFilter[]>(initialUrlParams.attributeFilters);\n\n let addFilterOpen = $state(false);\n let dialogKey = $state('');\n let dialogValue = $state('');\n let dialogError = $state('');\n\n function openAddFilterDialog() {\n dialogKey = '';\n dialogValue = '';\n dialogError = '';\n addFilterOpen = true;\n }\n\n function submitDialogFilter() {\n const key = dialogKey.trim();\n if (!key) {\n dialogError = 'Attribute key is required';\n return;\n }\n const value = dialogValue;\n const dup = attributeFilters.some((f) => f.key === key && f.value === value);\n if (!dup) {\n attributeFilters = [...attributeFilters, { key, value }];\n }\n addFilterOpen = false;\n page = 1;\n loadData(true);\n }\n\n function handleDialogKeydown(e: KeyboardEvent) {\n if (e.key === 'Enter') {\n e.preventDefault();\n submitDialogFilter();\n }\n }\n\n function removeAttributeFilter(index: number) {\n attributeFilters = attributeFilters.filter((_, i) => i !== index);\n page = 1;\n loadData(true);\n }\n\n function updateTimeRangeUrl(pushToHistory = true) {\n if (!browser) return;\n const params = new URLSearchParams();\n if (selectedPreset) {\n params.set('preset', selectedPreset);\n } else {\n params.set('from', getFromDateTimeUTC());\n params.set('to', getToDateTimeUTC());\n }\n if (searchQuery.trim()) params.set('search', searchQuery.trim());\n for (const f of attributeFilters) {\n params.append('attr', `${f.key}=${f.value}`);\n }\n const newUrl = `${window.location.pathname}?${params.toString()}`;\n // eslint-disable-next-line svelte/no-navigation-without-resolve\n goto(newUrl, { replaceState: !pushToHistory, noScroll: true, keepFocus: true });\n }\n\n function handlePopState() {\n const urlParams = parseSessionsUrlParams();\n const range = getResolvedTimeRange(urlParams, timezone);\n selectedPreset = urlParams.preset;\n fromDate = dateToCalendarDate(range.from, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n toTime = dateToTimeString(range.to, timezone);\n searchQuery = urlParams.search;\n attributeFilters = urlParams.attributeFilters;\n page = 1;\n loadData(false);\n }\n\n function handleSearch() {\n page = 1;\n loadData(true);\n }\n\n const SORT_STORAGE_KEY = 'sessions';\n const initialSort = getSortState(SORT_STORAGE_KEY, { field: 'started_at', direction: 'desc' });\n let orderBy = $state<SortField>(initialSort.field as SortField);\n let sortDirection = $state<SortDirection>(initialSort.direction);\n\n function getFromDateTimeUTC(): string {\n const [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute }, timezone);\n return toUTCISO(dt);\n }\n\n function getToDateTimeUTC(): string {\n const [hour, minute] = (toTime || '23:59').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute }, timezone).endOf('minute');\n return toUTCISO(dt);\n }\n\n function handleTimeRangeChange(from: { date: CalendarDate; time: string }, to: { date: CalendarDate; time: string }, preset: string | null) {\n fromDate = from.date;\n fromTime = from.time;\n toDate = to.date;\n toTime = to.time;\n selectedPreset = preset;\n page = 1;\n loadData(true);\n }\n\n function shortId(id: string): string {\n return id.split('-')[0] ?? id.slice(0, 8);\n }\n\n const ABANDONED_AFTER_MS = 15 * 60_000;\n\n function durationLabel(s: Session): string {\n if (s.endedAt) return formatDuration(s.duration);\n const startedMs = Date.parse(s.startedAt);\n if (Number.isFinite(startedMs) && Date.now() - startedMs >= ABANDONED_AFTER_MS) {\n return 'Abandoned';\n }\n return 'in progress';\n }\n\n async function loadData(pushToHistory = true) {\n loading = true;\n error = '';\n\n if (selectedPreset) {\n const range = getTimeRangeFromPreset(selectedPreset, timezone);\n fromDate = dateToCalendarDate(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toTime = dateToTimeString(range.to, timezone);\n }\n\n updateTimeRangeUrl(pushToHistory);\n\n try {\n const requestBody = {\n fromDate: getFromDateTimeUTC(),\n toDate: getToDateTimeUTC(),\n orderBy,\n sortDirection,\n search: searchQuery.trim(),\n attributeFilters,\n pagination: { page, pageSize }\n };\n\n const response = await api.post('/sessions', requestBody, { projectId: projectsState.currentProjectId ?? undefined });\n\n sessions = response.data || [];\n total = response.pagination.total;\n totalPages = response.pagination.totalPages;\n } catch (e: any) {\n console.error(e);\n error = e.message || 'Failed to load data';\n } finally {\n loading = false;\n }\n }\n\n function handlePageChange(newPage: number) {\n if (newPage >= 1 && newPage <= totalPages) {\n page = newPage;\n loadData(false);\n }\n }\n\n function handlePageSizeChange(newPageSize: number) {\n pageSize = newPageSize;\n page = 1;\n loadData(false);\n }\n\n function handleSort(field: SortField) {\n const newSort = handleSortClick(field, orderBy, sortDirection);\n orderBy = newSort.field as SortField;\n sortDirection = newSort.direction;\n setSortState(SORT_STORAGE_KEY, newSort);\n page = 1;\n loadData(false);\n }\n\n onMount(() => {\n window.addEventListener('popstate', handlePopState);\n loadData(false);\n });\n\n onDestroy(() => {\n if (typeof window !== 'undefined') {\n window.removeEventListener('popstate', handlePopState);\n }\n });\n</script>\n\n<div class=\"space-y-4\">\n <div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n <div class=\"flex items-start gap-2\">\n <PageHeader title=\"Sessions\" />\n <Tooltip.Root>\n <Tooltip.Trigger class=\"mt-2 text-muted-foreground/60 hover:text-muted-foreground\">\n <Info class=\"h-4 w-4\" />\n </Tooltip.Trigger>\n <Tooltip.Content side=\"right\" class=\"max-w-xs\">\n <p class=\"text-xs\">\n Sessions are full recordings of user interactions and are only recorded when manually enabled\n (<code class=\"font-mono\">recordAllSessions: true</code> in the SDK init options).\n </p>\n </Tooltip.Content>\n </Tooltip.Root>\n </div>\n <div class=\"flex flex-col\">\n <TimeRangePicker\n bind:fromDate\n bind:toDate\n bind:fromTime\n bind:toTime\n bind:preset={selectedPreset}\n onApply={handleTimeRangeChange}\n />\n </div>\n </div>\n\n <SearchBar\n placeholder=\"Search by session ID...\"\n bind:value={searchQuery}\n onSearch={handleSearch}\n />\n\n <div class=\"flex flex-wrap items-center gap-2\">\n <button\n type=\"button\"\n class=\"inline-flex items-center gap-1 rounded-full border border-dashed px-3 py-0.5 text-xs font-medium text-muted-foreground transition-colors hover:border-foreground/40 hover:text-foreground\"\n onclick={openAddFilterDialog}\n disabled={loading}\n >\n <Plus class=\"h-3 w-3\" />\n Add filter\n </button>\n {#each attributeFilters as f, i (i)}\n <span class=\"inline-flex items-center gap-1 rounded-full bg-muted px-2 py-0.5 text-xs font-mono\">\n <span class=\"text-muted-foreground\">{f.key}</span>\n <span>=</span>\n <span>{f.value || '\"\"'}</span>\n <button\n type=\"button\"\n aria-label=\"Remove filter\"\n class=\"ml-1 text-muted-foreground hover:text-foreground\"\n onclick={() => removeAttributeFilter(i)}\n >\n <X class=\"h-3 w-3\" />\n </button>\n </span>\n {/each}\n </div>\n\n <AlertDialog.Root open={addFilterOpen} onOpenChange={(open) => (addFilterOpen = open)}>\n <AlertDialog.Content>\n <AlertDialog.Header>\n <AlertDialog.Title>Add attribute filter</AlertDialog.Title>\n <AlertDialog.Description>\n Match sessions by an exact attribute value. Keys come from what the SDK auto-collects (<code class=\"font-mono\">url</code>, <code class=\"font-mono\">userAgent</code>, <code class=\"font-mono\">viewport</code>, <code class=\"font-mono\">client.ip</code>, …) plus anything you attach yourself.\n </AlertDialog.Description>\n </AlertDialog.Header>\n <div class=\"flex flex-col gap-3\">\n <label class=\"flex flex-col gap-1 text-sm\">\n <span class=\"font-medium\">Attribute key</span>\n <Input\n placeholder=\"userAgent\"\n bind:value={dialogKey}\n onkeydown={handleDialogKeydown}\n />\n </label>\n <label class=\"flex flex-col gap-1 text-sm\">\n <span class=\"font-medium\">Value</span>\n <Input\n placeholder=\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)...\"\n bind:value={dialogValue}\n onkeydown={handleDialogKeydown}\n />\n </label>\n {#if dialogError}\n <p class=\"text-xs text-red-500\">{dialogError}</p>\n {/if}\n </div>\n <AlertDialog.Footer>\n <Button variant=\"outline\" onclick={() => (addFilterOpen = false)}>Cancel</Button>\n <Button onclick={submitDialogFilter}>\n <Plus class=\"h-4 w-4\" /> Add filter\n </Button>\n </AlertDialog.Footer>\n </AlertDialog.Content>\n </AlertDialog.Root>\n\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if loading}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={4} class=\"h-48\">\n <div class=\"flex justify-center items-center h-full\">\n <LoadingCircle size=\"xlg\" />\n </div>\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if error}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={4} class=\"h-24 text-center text-red-500\">\n {error}\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if sessions.length === 0}\n <Table.Body>\n <TableEmptyState colspan={4} message=\"No sessions recorded yet — enable recordAllSessions in the SDK to start capturing them.\" />\n </Table.Body>\n {:else}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader label=\"Session\" tooltip=\"Session UUID — open to play back the recording\" />\n <TracewayTableHeader\n label=\"Started\"\n tooltip=\"When the session began\"\n sortField=\"started_at\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[160px]\"\n />\n <TracewayTableHeader\n label=\"Duration\"\n tooltip=\"Wall-clock length of the session\"\n sortField=\"duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[120px]\"\n />\n <TracewayTableHeader label=\"Version\" tooltip=\"App version reported by the SDK\" class=\"w-[120px]\" />\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each sessions as session}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50\"\n onclick={createRowClickHandler(resolve(`/sessions/${session.id}`), 'preset', 'from', 'to')}\n >\n <Table.Cell class=\"font-mono text-sm\">{shortId(session.id)}</Table.Cell>\n <Table.Cell class=\"text-sm\">{formatRelativeTime(session.startedAt, timezone)}</Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {durationLabel(session)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm\">{session.appVersion || '—'}</Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n {/if}\n </Table.Root>\n </div>\n\n <PaginationFooter\n currentPage={page}\n {totalPages}\n {pageSize}\n totalItems={total}\n onPageChange={handlePageChange}\n onPageSizeChange={handlePageSizeChange}\n {loading}\n itemLabel=\"session\"\n />\n</div>\n"],"names":["timezone","getTimezone","sessions","$.state","$.proxy","loading","error","page","pageSize","total","totalPages","parseAttributeFilter","input","idx","key","value","parseSessionsUrlParams","timeParams","parseTimeRangeFromUrl","$.get","params","attrs","raw","parsed","initialUrlParams","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","searchQuery","attributeFilters","addFilterOpen","dialogKey","dialogValue","dialogError","openAddFilterDialog","$.set","submitDialogFilter","f","loadData","handleDialogKeydown","e","removeAttributeFilter","index","_","i","updateTimeRangeUrl","pushToHistory","getFromDateTimeUTC","getToDateTimeUTC","newUrl","goto","handlePopState","urlParams","range","handleSearch","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","shortId","id","ABANDONED_AFTER_MS","durationLabel","s","formatDuration","startedMs","getTimeRangeFromPreset","requestBody","response","api","projectsState","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","onMount","onDestroy","div","root","div_1","div_2","PageHeader","node","Tooltip_Root","$$anchor","Tooltip_Trigger","Info","Tooltip_Content","p","root_3","div_3","TimeRangePicker","node_4","$$value","SearchBar","node_5","div_4","$.sibling","button","$.child","node_6","Plus","$.reset","node_7","$.each","span","root_4","span_1","span_2","button_1","node_8","X","$.set_text","text","AlertDialog_Root","open","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","div_5","node_11","label","Input","node_14","label_1","node_15","p_1","root_10","$$render","consequent","AlertDialog_Footer","Button","node_18","node_19","node_20","div_6","node_9","Table_Root","Table_Body","Table_Row","Table_Cell","div_7","root_18","LoadingCircle","node_26","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","TracewayTableHeader","node_35","node_36","node_37","node_38","Table_Body_3","node_40","session","createRowClickHandler","resolve","Table_Row_3","Table_Cell_2","Table_Cell_3","formatRelativeTime","Table_Cell_4","$.template_effect","$0","text_8","Table_Cell_5","consequent_3","alternate","consequent_2","alternate_1","consequent_1","alternate_2","PaginationFooter","node_46"],"mappings":";uxDAAA,WAyCU,MAAAA,KAAoBC,EAAW,EAcjC,IAAAC,GAAWC,EAAMC,EAAA,CAAA,CAAA,CAAA,EACjBC,GAAUF,EAAO,EAAI,EACrBG,GAAQH,EAAO,EAAE,EAEjBI,EAAOJ,EAAO,CAAC,EACfK,GAAWL,EAAO,EAAE,EACpBM,GAAQN,EAAO,CAAC,EAChBO,GAAaP,EAAO,CAAC,WAIhBQ,GAAqBC,EAAuC,CAC3D,MAAAC,EAAMD,EAAM,QAAQ,GAAG,KACzBC,GAAO,EAAC,OAAS,WACfC,EAAMF,EAAM,MAAM,EAAGC,CAAG,EAAE,KAAI,EAC9BE,EAAQH,EAAM,MAAMC,EAAM,CAAC,EAC5B,OAAAC,EACI,CAAA,IAAAA,EAAK,MAAAC,CAAK,EADF,IAErB,CAES,SAAAC,IAAyB,OACxBC,EAAaC,GAAqBC,EAACnB,CAAQ,CAAA,EAE3CoB,MAAa,gBAAgB,OAAO,SAAS,MAAM,EACnDC,EAAwB,CAAA,EACnB,UAAAC,KAAOF,EAAO,OAAO,MAAM,EAAG,OAC/BG,EAASZ,GAAqBW,CAAG,EACnCC,GAAQF,EAAM,KAAKE,CAAM,CACjC,WAEON,EACH,OAAQG,EAAO,IAAI,QAAQ,GAAK,GAChC,iBAAkBC,EAE1B,CAEM,MAAAG,GAAmBR,GAAsB,EACzCS,GAAeC,GAAqBF,KAAkBxB,CAAQ,CAAA,EAEhE,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line at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/25.D2INCme4.js b/backend/static/frontend/_app/immutable/nodes/25.0zhNwC_l.js
similarity index 93%
rename from backend/static/frontend/_app/immutable/nodes/25.D2INCme4.js
rename to backend/static/frontend/_app/immutable/nodes/25.0zhNwC_l.js
index 8438ffb4..ca7c5339 100644
--- a/backend/static/frontend/_app/immutable/nodes/25.D2INCme4.js
+++ b/backend/static/frontend/_app/immutable/nodes/25.0zhNwC_l.js
@@ -1,2 +1,2 @@
-import{r as St}from"../chunks/BJZ1igWb.js";import{b as kt,a as Xe,p as Ye}from"../chunks/D6S6XYVy.js";import{i as E,b as wt}from"../chunks/DMODTt3n.js";import{o as Ct}from"../chunks/Dwk6gGSK.js";import{p as jt,h as H,v as Ee,f as m,b as e,a as It,e as Ze,s as u,g as t,r as et,i as C,u as X,d,c as s,n as x,t as T,k as xe,l as Te}from"../chunks/B2WdN-7r.js";import{k as zt}from"../chunks/CAQEdoSh.js";import{e as Lt,i as Dt}from"../chunks/CMyj8Fzw.js";import{c as r}from"../chunks/BAcG0-U_.js";import{r as Et}from"../chunks/D_mqy6BL.js";import{g as Mt}from"../chunks/xR3pK9Ey.js";import{p as Ot}from"../chunks/BG_QVry4.js";import{f as tt,g as Rt,b as Nt}from"../chunks/DJdWGDax.js";import{a as le,b as de,C as ie}from"../chunks/BHR29ZVu.js";import{C as ue}from"../chunks/BKHeGn2e.js";import{C as Ft}from"../chunks/KAiF5-Ht.js";import{c as Bt,b as rt,T as st,a as Me}from"../chunks/CeOjHHJH.js";import{T as Ht,a as Oe}from"../chunks/CEJkX7WU.js";import{T as Ut,a as Vt,b as at}from"../chunks/Btlz2xiW.js";import{T as ot}from"../chunks/BMae-b69.js";import{B as Wt}from"../chunks/C1aqwstW.js";import{L as qt}from"../chunks/D0pIT200.js";import{L as Re}from"../chunks/BCZTK7qK.js";import{A as Gt}from"../chunks/DW1P0xGN.js";import{T as Jt}from"../chunks/xk30YnJ1.js";import{S as Kt,a as Qt,b as Xt}from"../chunks/BOK8K7n_.js";import{E as nt}from"../chunks/B-KBEnoV.js";import{P as Yt}from"../chunks/BGqyWGxT.js";import{A as Zt}from"../chunks/Dt-hNsWv.js";const er=!1,tr=({params:Ae,url:ve})=>{if(!kt.isAuthenticated)throw St(302,"/login");return{sessionId:Ae.sessionId,preset:ve.searchParams.get("preset")||null,from:ve.searchParams.get("from")||null,to:ve.searchParams.get("to")||null}},qr=Object.freeze(Object.defineProperty({__proto__:null,load:tr,prerender:er},Symbol.toStringTag,{value:"Module"}));var rr=m('<div class="flex justify-center items-center h-64"><!></div>'),sr=m("<!> <!> <!>",1),ar=m("<!> <!>",1),or=m("<!> <!>",1),nr=m("<!> <!>",1),lr=m("<!> <!>",1),dr=m("<!> <!>",1),ir=m("<!> <!>",1),ur=m("<!> <!> <!>",1),vr=m("<!> <!>",1),$r=m("<!> <!> <!>",1),_r=m("<!> <!> <!>",1),fr=m("<!> <!>",1),cr=m("<!> <!>",1),pr=m("<!> <!> <!> <!> <!>",1),mr=m('<div class="space-y-4"><!> <!></div>');function Gr(Ae,ve){jt(ve,!0);const Ne=X(Rt),Fe=X(()=>Ot.params.sessionId);let O=H(null),ye=H(Ee([])),$e=H(null),pe=H(Ee([])),me=H(Ee([])),Se=H(!0),ge=H(""),ke=H(!1),we=H(0),Ce=H(null);function Be(v){t(Ce)?.seek(v)}const he=X(()=>t(pe).length>0),je=X(()=>t(me).length>0),lt=X(()=>t(he)?"logs":"actions"),dt=15*6e4;function it(v){if(!v)return"—";if(v.endedAt)return Nt(v.duration);const A=Date.parse(v.startedAt);return Number.isFinite(A)&&Date.now()-A>=dt?"Abandoned":"in progress"}async function Ie(){C(Se,!0),C(ge,""),C(ke,!1);try{const v=await Xe.post(`/sessions/${t(Fe)}`,{},{projectId:Ye.currentProjectId??void 0});C(O,v.session,!0),C(ye,v.exceptions||[],!0);const A=await Xe.get(`/sessions/${t(Fe)}/recording`,{projectId:Ye.currentProjectId??void 0});C($e,A?.events??[],!0),C(pe,A?.logs??[],!0),C(me,A?.actions??[],!0)}catch(v){v?.status===404?C(ke,!0):C(ge,v?.message||"Failed to load session",!0)}finally{C(Se,!1)}}Ct(()=>{Ie()});function ut(v){Mt(Et(`/issues/${v}`))}var ze=mr(),He=Ze(ze);Yt(He,{title:"Session"});var vt=u(He,2);{var $t=v=>{var A=rr(),Le=Ze(A);qt(Le,{size:"xlg"}),et(A),e(v,A)},_t=v=>{var A=d(),Le=s(A);{var ft=re=>{nt(re,{status:404,title:"Session not found",description:"This session does not exist or has been pruned.",onRetry:Ie})},ct=re=>{var Ue=d(),pt=s(Ue);{var mt=se=>{nt(se,{status:500,title:"Error",get description(){return t(ge)},onRetry:Ie})},gt=se=>{var Ve=d(),ht=s(Ve);{var Pt=De=>{var We=pr(),qe=s(We);r(qe,()=>ie,(c,g)=>{g(c,{children:(M,U)=>{var y=ar(),S=s(y);r(S,()=>le,($,_)=>{_($,{children:(h,f)=>{var a=d(),n=s(a);r(n,()=>de,(p,o)=>{o(p,{children:(l,b)=>{x();var i=T("Overview");e(l,i)},$$slots:{default:!0}})}),e(h,a)},$$slots:{default:!0}})});var Y=u(S,2);r(Y,()=>ue,($,_)=>{_($,{class:"grid grid-cols-2 gap-4 sm:grid-cols-3",children:(h,f)=>{var a=sr(),n=s(a);{let l=X(()=>tt(t(O).startedAt,{timezone:t(Ne)}));Re(n,{label:"Started",get value(){return t(l)}})}var p=u(n,2);{let l=X(()=>it(t(O)));Re(p,{label:"Duration",get value(){return t(l)}})}var o=u(p,2);{let l=X(()=>t(O).appVersion||"—");Re(o,{label:"App version",get value(){return t(l)}})}e(h,a)},$$slots:{default:!0}})}),e(M,y)},$$slots:{default:!0}})});var Ge=u(qe,2);{var bt=c=>{var g=d(),M=s(g);r(M,()=>ie,(U,y)=>{y(U,{children:(S,Y)=>{var $=or(),_=s($);r(_,()=>le,(f,a)=>{a(f,{children:(n,p)=>{var o=d(),l=s(o);r(l,()=>de,(b,i)=>{i(b,{children:(k,V)=>{x();var j=T("Attributes");e(k,j)},$$slots:{default:!0}})}),e(n,o)},$$slots:{default:!0}})});var h=u(_,2);r(h,()=>ue,(f,a)=>{a(f,{children:(n,p)=>{Gt(n,{get attributes(){return t(O).attributes},collapsedCount:6})},$$slots:{default:!0}})}),e(S,$)},$$slots:{default:!0}})}),e(c,g)};E(Ge,c=>{t(O).attributes&&Object.keys(t(O).attributes).length>0&&c(bt)})}var Je=u(Ge,2);{var xt=c=>{var g=d(),M=s(g);r(M,()=>ie,(U,y)=>{y(U,{class:"pb-0",children:(S,Y)=>{var $=nr(),_=s($);r(_,()=>le,(f,a)=>{a(f,{class:"gap-0",children:(n,p)=>{var o=d(),l=s(o);r(l,()=>de,(b,i)=>{i(b,{children:(k,V)=>{x();var j=T("Session Replay");e(k,j)},$$slots:{default:!0}})}),e(n,o)},$$slots:{default:!0}})});var h=u(_,2);r(h,()=>ue,(f,a)=>{a(f,{class:"p-0",children:(n,p)=>{var o=d(),l=s(o);zt(l,()=>t($e),b=>{wt(Kt(b,{get events(){return t($e)},onTimeUpdate:i=>C(we,i,!0)}),i=>C(Ce,i,!0),()=>t(Ce))}),e(n,o)},$$slots:{default:!0}})}),e(S,$)},$$slots:{default:!0}})}),e(c,g)},Tt=c=>{var g=d(),M=s(g);r(M,()=>ie,(U,y)=>{y(U,{children:(S,Y)=>{var $=lr(),_=s($);r(_,()=>le,(f,a)=>{a(f,{children:(n,p)=>{var o=d(),l=s(o);r(l,()=>de,(b,i)=>{i(b,{children:(k,V)=>{x();var j=T("Session Replay");e(k,j)},$$slots:{default:!0}})}),e(n,o)},$$slots:{default:!0}})});var h=u(_,2);r(h,()=>ue,(f,a)=>{a(f,{class:"text-sm text-muted-foreground",children:(n,p)=>{x();var o=T("No replay data has been uploaded for this session yet.");e(n,o)},$$slots:{default:!0}})}),e(S,$)},$$slots:{default:!0}})}),e(c,g)};E(Je,c=>{t($e)&&t($e).length>0?c(xt):c(Tt,!1)})}var Ke=u(Je,2);{var At=c=>{var g=d(),M=s(g);r(M,()=>ie,(U,y)=>{y(U,{children:(S,Y)=>{var $=vr(),_=s($);r(_,()=>le,(f,a)=>{a(f,{children:(n,p)=>{var o=dr(),l=s(o);r(l,()=>de,(i,k)=>{k(i,{children:(V,j)=>{x();var w=T("Session Context");e(V,w)},$$slots:{default:!0}})});var b=u(l,2);r(b,()=>Ft,(i,k)=>{k(i,{children:(V,j)=>{x();var w=T("Console output and recorded actions across the session. Times are offsets from session start.");e(V,w)},$$slots:{default:!0}})}),e(n,o)},$$slots:{default:!0}})});var h=u(_,2);r(h,()=>ue,(f,a)=>{a(f,{children:(n,p)=>{var o=d(),l=s(o);r(l,()=>Ut,(b,i)=>{i(b,{get value(){return t(lt)},children:(k,V)=>{var j=ur(),w=s(j);r(w,()=>Vt,(P,I)=>{I(P,{class:"mb-4",children:(ee,R)=>{var N=ir(),F=s(N);{var W=z=>{var B=d(),K=s(B);r(K,()=>at,(ne,L)=>{L(ne,{value:"logs",children:(D,Q)=>{x();var q=T();xe(()=>Te(q,`Logs (${t(pe).length??""})`)),e(D,q)},$$slots:{default:!0}})}),e(z,B)};E(F,z=>{t(he)&&z(W)})}var oe=u(F,2);{var Pe=z=>{var B=d(),K=s(B);r(K,()=>at,(ne,L)=>{L(ne,{value:"actions",children:(D,Q)=>{x();var q=T();xe(()=>Te(q,`Actions (${t(me).length??""})`)),e(D,q)},$$slots:{default:!0}})}),e(z,B)};E(oe,z=>{t(je)&&z(Pe)})}e(ee,N)},$$slots:{default:!0}})});var J=u(w,2);{var ae=P=>{var I=d(),ee=s(I);r(ee,()=>ot,(R,N)=>{N(R,{value:"logs",children:(F,W)=>{Qt(F,{get logs(){return t(pe)},get startedAt(){return t(O).startedAt},get currentTimeMs(){return t(we)},onSeek:Be})},$$slots:{default:!0}})}),e(P,I)};E(J,P=>{t(he)&&P(ae)})}var _e=u(J,2);{var Z=P=>{var I=d(),ee=s(I);r(ee,()=>ot,(R,N)=>{N(R,{value:"actions",children:(F,W)=>{Xt(F,{get actions(){return t(me)},get startedAt(){return t(O).startedAt},get currentTimeMs(){return t(we)},onSeek:Be})},$$slots:{default:!0}})}),e(P,I)};E(_e,P=>{t(je)&&P(Z)})}e(k,j)},$$slots:{default:!0}})}),e(n,o)},$$slots:{default:!0}})}),e(S,$)},$$slots:{default:!0}})}),e(c,g)};E(Ke,c=>{(t(he)||t(je))&&c(At)})}var yt=u(Ke,2);r(yt,()=>ie,(c,g)=>{g(c,{children:(M,U)=>{var y=cr(),S=s(y);r(S,()=>le,($,_)=>{_($,{children:(h,f)=>{var a=d(),n=s(a);r(n,()=>de,(p,o)=>{o(p,{children:(l,b)=>{x();var i=T("Exceptions in this session");e(l,i)},$$slots:{default:!0}})}),e(h,a)},$$slots:{default:!0}})});var Y=u(S,2);r(Y,()=>ue,($,_)=>{_($,{class:"p-0",children:(h,f)=>{var a=d(),n=s(a);r(n,()=>Bt,(p,o)=>{o(p,{children:(l,b)=>{var i=d(),k=s(i);{var V=w=>{var J=d(),ae=s(J);r(ae,()=>rt,(_e,Z)=>{Z(_e,{children:(P,I)=>{Jt(P,{colspan:3,message:"No exceptions captured during this session."})},$$slots:{default:!0}})}),e(w,J)},j=w=>{var J=fr(),ae=s(J);r(ae,()=>Ht,(Z,P)=>{P(Z,{children:(I,ee)=>{var R=d(),N=s(R);r(N,()=>st,(F,W)=>{W(F,{children:(oe,Pe)=>{var z=$r(),B=s(z);r(B,()=>Oe,(L,D)=>{D(L,{children:(Q,q)=>{x();var G=T("When");e(Q,G)},$$slots:{default:!0}})});var K=u(B,2);r(K,()=>Oe,(L,D)=>{D(L,{children:(Q,q)=>{x();var G=T("Stack trace");e(Q,G)},$$slots:{default:!0}})});var ne=u(K,2);r(ne,()=>Oe,(L,D)=>{D(L,{class:"w-[60px]"})}),e(oe,z)},$$slots:{default:!0}})}),e(I,R)},$$slots:{default:!0}})});var _e=u(ae,2);r(_e,()=>rt,(Z,P)=>{P(Z,{children:(I,ee)=>{var R=d(),N=s(R);Lt(N,17,()=>t(ye),Dt,(F,W)=>{var oe=d(),Pe=s(oe);r(Pe,()=>st,(z,B)=>{B(z,{class:"cursor-pointer hover:bg-muted/50",onclick:()=>ut(t(W).exceptionHash),children:(K,ne)=>{var L=_r(),D=s(L);r(D,()=>Me,(G,fe)=>{fe(G,{class:"text-sm whitespace-nowrap",children:(ce,Qe)=>{x();var te=T();xe(be=>Te(te,be),[()=>tt(t(W).recordedAt,{timezone:t(Ne)})]),e(ce,te)},$$slots:{default:!0}})});var Q=u(D,2);r(Q,()=>Me,(G,fe)=>{fe(G,{class:"font-mono text-xs truncate max-w-md",children:(ce,Qe)=>{x();var te=T();xe(be=>Te(te,be),[()=>t(W).stackTrace.split(`
+import{r as St}from"../chunks/B4VmGkxP.js";import{b as kt,a as Xe,p as Ye}from"../chunks/qCQ2nSvO.js";import{i as E,b as wt}from"../chunks/DMODTt3n.js";import{o as Ct}from"../chunks/Dwk6gGSK.js";import{p as jt,h as H,v as Ee,f as m,b as e,a as It,e as Ze,s as u,g as t,r as et,i as C,u as X,d,c as s,n as x,t as T,k as xe,l as Te}from"../chunks/B2WdN-7r.js";import{k as zt}from"../chunks/CjLH05gQ.js";import{e as Lt,i as Dt}from"../chunks/CMyj8Fzw.js";import{c as r}from"../chunks/BAcG0-U_.js";import{r as Et}from"../chunks/BGApn_8u.js";import{g as Mt}from"../chunks/BIF4_51j.js";import{p as Ot}from"../chunks/CyRgFauW.js";import{f as tt,g as Rt,b as Nt}from"../chunks/Dq-0lVru.js";import{a as le,b as de,C as ie}from"../chunks/BHR29ZVu.js";import{C as ue}from"../chunks/BKHeGn2e.js";import{C as Ft}from"../chunks/KAiF5-Ht.js";import{c as Bt,b as rt,T as st,a as Me}from"../chunks/CeOjHHJH.js";import{T as Ht,a as Oe}from"../chunks/CEJkX7WU.js";import{T as Ut,a as Vt,b as at}from"../chunks/CC8KIeOw.js";import{T as ot}from"../chunks/CItL7JvW.js";import{B as Wt}from"../chunks/C1aqwstW.js";import{L as qt}from"../chunks/D0pIT200.js";import{L as Re}from"../chunks/BCZTK7qK.js";import{A as Gt}from"../chunks/DW1P0xGN.js";import{T as Jt}from"../chunks/xk30YnJ1.js";import{S as Kt,a as Qt,b as Xt}from"../chunks/BpQ9RPzK.js";import{E as nt}from"../chunks/CFZS-Ydw.js";import{P as Yt}from"../chunks/Cplpgpvt.js";import{A as Zt}from"../chunks/Dt-hNsWv.js";const er=!1,tr=({params:Ae,url:ve})=>{if(!kt.isAuthenticated)throw St(302,"/login");return{sessionId:Ae.sessionId,preset:ve.searchParams.get("preset")||null,from:ve.searchParams.get("from")||null,to:ve.searchParams.get("to")||null}},qr=Object.freeze(Object.defineProperty({__proto__:null,load:tr,prerender:er},Symbol.toStringTag,{value:"Module"}));var rr=m('<div class="flex justify-center items-center h-64"><!></div>'),sr=m("<!> <!> <!>",1),ar=m("<!> <!>",1),or=m("<!> <!>",1),nr=m("<!> <!>",1),lr=m("<!> <!>",1),dr=m("<!> <!>",1),ir=m("<!> <!>",1),ur=m("<!> <!> <!>",1),vr=m("<!> <!>",1),$r=m("<!> <!> <!>",1),_r=m("<!> <!> <!>",1),fr=m("<!> <!>",1),cr=m("<!> <!>",1),pr=m("<!> <!> <!> <!> <!>",1),mr=m('<div class="space-y-4"><!> <!></div>');function Gr(Ae,ve){jt(ve,!0);const Ne=X(Rt),Fe=X(()=>Ot.params.sessionId);let O=H(null),ye=H(Ee([])),$e=H(null),pe=H(Ee([])),me=H(Ee([])),Se=H(!0),ge=H(""),ke=H(!1),we=H(0),Ce=H(null);function Be(v){t(Ce)?.seek(v)}const he=X(()=>t(pe).length>0),je=X(()=>t(me).length>0),lt=X(()=>t(he)?"logs":"actions"),dt=15*6e4;function it(v){if(!v)return"—";if(v.endedAt)return Nt(v.duration);const A=Date.parse(v.startedAt);return Number.isFinite(A)&&Date.now()-A>=dt?"Abandoned":"in progress"}async function Ie(){C(Se,!0),C(ge,""),C(ke,!1);try{const v=await Xe.post(`/sessions/${t(Fe)}`,{},{projectId:Ye.currentProjectId??void 0});C(O,v.session,!0),C(ye,v.exceptions||[],!0);const A=await Xe.get(`/sessions/${t(Fe)}/recording`,{projectId:Ye.currentProjectId??void 0});C($e,A?.events??[],!0),C(pe,A?.logs??[],!0),C(me,A?.actions??[],!0)}catch(v){v?.status===404?C(ke,!0):C(ge,v?.message||"Failed to load session",!0)}finally{C(Se,!1)}}Ct(()=>{Ie()});function ut(v){Mt(Et(`/issues/${v}`))}var ze=mr(),He=Ze(ze);Yt(He,{title:"Session"});var vt=u(He,2);{var $t=v=>{var A=rr(),Le=Ze(A);qt(Le,{size:"xlg"}),et(A),e(v,A)},_t=v=>{var A=d(),Le=s(A);{var ft=re=>{nt(re,{status:404,title:"Session not found",description:"This session does not exist or has been pruned.",onRetry:Ie})},ct=re=>{var Ue=d(),pt=s(Ue);{var mt=se=>{nt(se,{status:500,title:"Error",get description(){return t(ge)},onRetry:Ie})},gt=se=>{var Ve=d(),ht=s(Ve);{var Pt=De=>{var We=pr(),qe=s(We);r(qe,()=>ie,(c,g)=>{g(c,{children:(M,U)=>{var y=ar(),S=s(y);r(S,()=>le,($,_)=>{_($,{children:(h,f)=>{var a=d(),n=s(a);r(n,()=>de,(p,o)=>{o(p,{children:(l,b)=>{x();var i=T("Overview");e(l,i)},$$slots:{default:!0}})}),e(h,a)},$$slots:{default:!0}})});var Y=u(S,2);r(Y,()=>ue,($,_)=>{_($,{class:"grid grid-cols-2 gap-4 sm:grid-cols-3",children:(h,f)=>{var a=sr(),n=s(a);{let l=X(()=>tt(t(O).startedAt,{timezone:t(Ne)}));Re(n,{label:"Started",get value(){return t(l)}})}var p=u(n,2);{let l=X(()=>it(t(O)));Re(p,{label:"Duration",get value(){return t(l)}})}var o=u(p,2);{let l=X(()=>t(O).appVersion||"—");Re(o,{label:"App version",get value(){return t(l)}})}e(h,a)},$$slots:{default:!0}})}),e(M,y)},$$slots:{default:!0}})});var Ge=u(qe,2);{var bt=c=>{var g=d(),M=s(g);r(M,()=>ie,(U,y)=>{y(U,{children:(S,Y)=>{var $=or(),_=s($);r(_,()=>le,(f,a)=>{a(f,{children:(n,p)=>{var o=d(),l=s(o);r(l,()=>de,(b,i)=>{i(b,{children:(k,V)=>{x();var j=T("Attributes");e(k,j)},$$slots:{default:!0}})}),e(n,o)},$$slots:{default:!0}})});var h=u(_,2);r(h,()=>ue,(f,a)=>{a(f,{children:(n,p)=>{Gt(n,{get attributes(){return t(O).attributes},collapsedCount:6})},$$slots:{default:!0}})}),e(S,$)},$$slots:{default:!0}})}),e(c,g)};E(Ge,c=>{t(O).attributes&&Object.keys(t(O).attributes).length>0&&c(bt)})}var Je=u(Ge,2);{var xt=c=>{var g=d(),M=s(g);r(M,()=>ie,(U,y)=>{y(U,{class:"pb-0",children:(S,Y)=>{var $=nr(),_=s($);r(_,()=>le,(f,a)=>{a(f,{class:"gap-0",children:(n,p)=>{var o=d(),l=s(o);r(l,()=>de,(b,i)=>{i(b,{children:(k,V)=>{x();var j=T("Session Replay");e(k,j)},$$slots:{default:!0}})}),e(n,o)},$$slots:{default:!0}})});var h=u(_,2);r(h,()=>ue,(f,a)=>{a(f,{class:"p-0",children:(n,p)=>{var o=d(),l=s(o);zt(l,()=>t($e),b=>{wt(Kt(b,{get events(){return t($e)},onTimeUpdate:i=>C(we,i,!0)}),i=>C(Ce,i,!0),()=>t(Ce))}),e(n,o)},$$slots:{default:!0}})}),e(S,$)},$$slots:{default:!0}})}),e(c,g)},Tt=c=>{var g=d(),M=s(g);r(M,()=>ie,(U,y)=>{y(U,{children:(S,Y)=>{var $=lr(),_=s($);r(_,()=>le,(f,a)=>{a(f,{children:(n,p)=>{var o=d(),l=s(o);r(l,()=>de,(b,i)=>{i(b,{children:(k,V)=>{x();var j=T("Session Replay");e(k,j)},$$slots:{default:!0}})}),e(n,o)},$$slots:{default:!0}})});var h=u(_,2);r(h,()=>ue,(f,a)=>{a(f,{class:"text-sm text-muted-foreground",children:(n,p)=>{x();var o=T("No replay data has been uploaded for this session yet.");e(n,o)},$$slots:{default:!0}})}),e(S,$)},$$slots:{default:!0}})}),e(c,g)};E(Je,c=>{t($e)&&t($e).length>0?c(xt):c(Tt,!1)})}var Ke=u(Je,2);{var At=c=>{var g=d(),M=s(g);r(M,()=>ie,(U,y)=>{y(U,{children:(S,Y)=>{var $=vr(),_=s($);r(_,()=>le,(f,a)=>{a(f,{children:(n,p)=>{var o=dr(),l=s(o);r(l,()=>de,(i,k)=>{k(i,{children:(V,j)=>{x();var w=T("Session Context");e(V,w)},$$slots:{default:!0}})});var b=u(l,2);r(b,()=>Ft,(i,k)=>{k(i,{children:(V,j)=>{x();var w=T("Console output and recorded actions across the session. Times are offsets from session start.");e(V,w)},$$slots:{default:!0}})}),e(n,o)},$$slots:{default:!0}})});var h=u(_,2);r(h,()=>ue,(f,a)=>{a(f,{children:(n,p)=>{var o=d(),l=s(o);r(l,()=>Ut,(b,i)=>{i(b,{get value(){return t(lt)},children:(k,V)=>{var j=ur(),w=s(j);r(w,()=>Vt,(P,I)=>{I(P,{class:"mb-4",children:(ee,R)=>{var N=ir(),F=s(N);{var W=z=>{var B=d(),K=s(B);r(K,()=>at,(ne,L)=>{L(ne,{value:"logs",children:(D,Q)=>{x();var q=T();xe(()=>Te(q,`Logs (${t(pe).length??""})`)),e(D,q)},$$slots:{default:!0}})}),e(z,B)};E(F,z=>{t(he)&&z(W)})}var oe=u(F,2);{var Pe=z=>{var B=d(),K=s(B);r(K,()=>at,(ne,L)=>{L(ne,{value:"actions",children:(D,Q)=>{x();var q=T();xe(()=>Te(q,`Actions (${t(me).length??""})`)),e(D,q)},$$slots:{default:!0}})}),e(z,B)};E(oe,z=>{t(je)&&z(Pe)})}e(ee,N)},$$slots:{default:!0}})});var J=u(w,2);{var ae=P=>{var I=d(),ee=s(I);r(ee,()=>ot,(R,N)=>{N(R,{value:"logs",children:(F,W)=>{Qt(F,{get logs(){return t(pe)},get startedAt(){return t(O).startedAt},get currentTimeMs(){return t(we)},onSeek:Be})},$$slots:{default:!0}})}),e(P,I)};E(J,P=>{t(he)&&P(ae)})}var _e=u(J,2);{var Z=P=>{var I=d(),ee=s(I);r(ee,()=>ot,(R,N)=>{N(R,{value:"actions",children:(F,W)=>{Xt(F,{get actions(){return t(me)},get startedAt(){return t(O).startedAt},get currentTimeMs(){return t(we)},onSeek:Be})},$$slots:{default:!0}})}),e(P,I)};E(_e,P=>{t(je)&&P(Z)})}e(k,j)},$$slots:{default:!0}})}),e(n,o)},$$slots:{default:!0}})}),e(S,$)},$$slots:{default:!0}})}),e(c,g)};E(Ke,c=>{(t(he)||t(je))&&c(At)})}var yt=u(Ke,2);r(yt,()=>ie,(c,g)=>{g(c,{children:(M,U)=>{var y=cr(),S=s(y);r(S,()=>le,($,_)=>{_($,{children:(h,f)=>{var a=d(),n=s(a);r(n,()=>de,(p,o)=>{o(p,{children:(l,b)=>{x();var i=T("Exceptions in this session");e(l,i)},$$slots:{default:!0}})}),e(h,a)},$$slots:{default:!0}})});var Y=u(S,2);r(Y,()=>ue,($,_)=>{_($,{class:"p-0",children:(h,f)=>{var a=d(),n=s(a);r(n,()=>Bt,(p,o)=>{o(p,{children:(l,b)=>{var i=d(),k=s(i);{var V=w=>{var J=d(),ae=s(J);r(ae,()=>rt,(_e,Z)=>{Z(_e,{children:(P,I)=>{Jt(P,{colspan:3,message:"No exceptions captured during this session."})},$$slots:{default:!0}})}),e(w,J)},j=w=>{var J=fr(),ae=s(J);r(ae,()=>Ht,(Z,P)=>{P(Z,{children:(I,ee)=>{var R=d(),N=s(R);r(N,()=>st,(F,W)=>{W(F,{children:(oe,Pe)=>{var z=$r(),B=s(z);r(B,()=>Oe,(L,D)=>{D(L,{children:(Q,q)=>{x();var G=T("When");e(Q,G)},$$slots:{default:!0}})});var K=u(B,2);r(K,()=>Oe,(L,D)=>{D(L,{children:(Q,q)=>{x();var G=T("Stack trace");e(Q,G)},$$slots:{default:!0}})});var ne=u(K,2);r(ne,()=>Oe,(L,D)=>{D(L,{class:"w-[60px]"})}),e(oe,z)},$$slots:{default:!0}})}),e(I,R)},$$slots:{default:!0}})});var _e=u(ae,2);r(_e,()=>rt,(Z,P)=>{P(Z,{children:(I,ee)=>{var R=d(),N=s(R);Lt(N,17,()=>t(ye),Dt,(F,W)=>{var oe=d(),Pe=s(oe);r(Pe,()=>st,(z,B)=>{B(z,{class:"cursor-pointer hover:bg-muted/50",onclick:()=>ut(t(W).exceptionHash),children:(K,ne)=>{var L=_r(),D=s(L);r(D,()=>Me,(G,fe)=>{fe(G,{class:"text-sm whitespace-nowrap",children:(ce,Qe)=>{x();var te=T();xe(be=>Te(te,be),[()=>tt(t(W).recordedAt,{timezone:t(Ne)})]),e(ce,te)},$$slots:{default:!0}})});var Q=u(D,2);r(Q,()=>Me,(G,fe)=>{fe(G,{class:"font-mono text-xs truncate max-w-md",children:(ce,Qe)=>{x();var te=T();xe(be=>Te(te,be),[()=>t(W).stackTrace.split(`
`)[0]]),e(ce,te)},$$slots:{default:!0}})});var q=u(Q,2);r(q,()=>Me,(G,fe)=>{fe(G,{children:(ce,Qe)=>{Wt(ce,{variant:"ghost",size:"icon","aria-label":"Open issue",children:(te,be)=>{Zt(te,{class:"size-4"})},$$slots:{default:!0}})},$$slots:{default:!0}})}),e(K,L)},$$slots:{default:!0}})}),e(F,oe)}),e(I,R)},$$slots:{default:!0}})}),e(w,J)};E(k,w=>{t(ye).length===0?w(V):w(j,!1)})}e(l,i)},$$slots:{default:!0}})}),e(h,a)},$$slots:{default:!0}})}),e(M,y)},$$slots:{default:!0}})}),e(De,We)};E(ht,De=>{t(O)&&De(Pt)},!0)}e(se,Ve)};E(pt,se=>{t(ge)?se(mt):se(gt,!1)},!0)}e(re,Ue)};E(Le,re=>{t(ke)?re(ft):re(ct,!1)},!0)}e(v,A)};E(vt,v=>{t(Se)?v($t):v(_t,!1)})}et(ze),e(Ae,ze),It()}export{Gr as component,qr as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/25.D2INCme4.js.map b/backend/static/frontend/_app/immutable/nodes/25.0zhNwC_l.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/25.D2INCme4.js.map
rename to backend/static/frontend/_app/immutable/nodes/25.0zhNwC_l.js.map
index ae01228e..f4e48602 100644
--- a/backend/static/frontend/_app/immutable/nodes/25.D2INCme4.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/25.0zhNwC_l.js.map
@@ -1 +1 @@
-{"version":3,"file":"25.D2INCme4.js","sources":["../../../../../../src/routes/sessions/[sessionId]/+page.ts","../../../../../../src/routes/sessions/[sessionId]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\tsessionId: params.sessionId,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","<script lang=\"ts\">\n import { onMount } from 'svelte';\n import { resolve } from '$app/paths';\n import { goto } from '$app/navigation';\n import { page as pageState } from '$app/state';\n import { api } from '$lib/api';\n import { projectsState } from '$lib/state/projects.svelte';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import { formatDuration, formatDateTime } from '$lib/utils/formatters';\n import * as Card from '$lib/components/ui/card';\n import * as Table from '$lib/components/ui/table';\n import * as Tabs from '$lib/components/ui/tabs';\n import { Button } from '$lib/components/ui/button';\n import { LoadingCircle } from '$lib/components/ui/loading-circle';\n import { LabelValue } from '$lib/components/ui/label-value';\n import { AttributesGrid } from '$lib/components/ui/attributes-grid';\n import { TableEmptyState } from '$lib/components/ui/table-empty-state';\n import SessionReplay from '$lib/components/issues/session-replay.svelte';\n import SessionLogsTable from '$lib/components/issues/session-logs-table.svelte';\n import SessionActionsTable from '$lib/components/issues/session-actions-table.svelte';\n import { ErrorDisplay } from '$lib/components/ui/error-display';\n import PageHeader from '$lib/components/issues/page-header.svelte';\n import { ArrowRight } from 'lucide-svelte';\n\n type Session = {\n id: string;\n startedAt: string;\n endedAt?: string | null;\n duration: number;\n clientIP: string;\n appVersion: string;\n serverName: string;\n attributes?: Record<string, string> | null;\n };\n\n type SessionException = {\n id: string;\n exceptionHash: string;\n stackTrace: string;\n recordedAt: string;\n isMessage: boolean;\n };\n\n const timezone = $derived(getTimezone());\n const sessionId = $derived(pageState.params.sessionId);\n\n let session = $state<Session | null>(null);\n let exceptions = $state<SessionException[]>([]);\n let recordingEvents = $state<unknown[] | null>(null);\n let recordingLogs = $state<any[]>([]);\n let recordingActions = $state<any[]>([]);\n let loading = $state(true);\n let error = $state('');\n let notFound = $state(false);\n\n let currentTimeMs = $state(0);\n let replayRef = $state<{ seek: (ms: number) => void } | null>(null);\n\n function handleSeek(offsetMs: number) {\n replayRef?.seek(offsetMs);\n }\n\n const hasLogs = $derived(recordingLogs.length > 0);\n const hasActions = $derived(recordingActions.length > 0);\n const defaultTab = $derived(hasLogs ? 'logs' : 'actions');\n\n const ABANDONED_AFTER_MS = 15 * 60_000;\n\n function durationLabel(s: Session | null): string {\n if (!s) return '—';\n if (s.endedAt) return formatDuration(s.duration);\n const startedMs = Date.parse(s.startedAt);\n if (Number.isFinite(startedMs) && Date.now() - startedMs >= ABANDONED_AFTER_MS) {\n return 'Abandoned';\n }\n return 'in progress';\n }\n\n async function loadAll() {\n loading = true;\n error = '';\n notFound = false;\n\n try {\n const detail = await api.post(`/sessions/${sessionId}`, {}, {\n projectId: projectsState.currentProjectId ?? undefined\n });\n session = detail.session;\n exceptions = detail.exceptions || [];\n\n const recording = await api.get(`/sessions/${sessionId}/recording`, {\n projectId: projectsState.currentProjectId ?? undefined\n });\n recordingEvents = recording?.events ?? [];\n recordingLogs = recording?.logs ?? [];\n recordingActions = recording?.actions ?? [];\n } catch (e: any) {\n if (e?.status === 404) {\n notFound = true;\n } else {\n error = e?.message || 'Failed to load session';\n }\n } finally {\n loading = false;\n }\n }\n\n onMount(() => {\n loadAll();\n });\n\n function gotoIssue(hash: string) {\n goto(resolve(`/issues/${hash}`));\n }\n</script>\n\n<div class=\"space-y-4\">\n <PageHeader title=\"Session\" />\n\n {#if loading}\n <div class=\"flex justify-center items-center h-64\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else if notFound}\n <ErrorDisplay status={404} title=\"Session not found\" description=\"This session does not exist or has been pruned.\" onRetry={loadAll} />\n {:else if error}\n <ErrorDisplay status={500} title=\"Error\" description={error} onRetry={loadAll} />\n {:else if session}\n <Card.Root>\n <Card.Header>\n <Card.Title>Overview</Card.Title>\n </Card.Header>\n <Card.Content class=\"grid grid-cols-2 gap-4 sm:grid-cols-3\">\n <LabelValue label=\"Started\" value={formatDateTime(session.startedAt, { timezone })} />\n <LabelValue label=\"Duration\" value={durationLabel(session)} />\n <LabelValue label=\"App version\" value={session.appVersion || '—'} />\n </Card.Content>\n </Card.Root>\n\n {#if session.attributes && Object.keys(session.attributes).length > 0}\n <Card.Root>\n <Card.Header>\n <Card.Title>Attributes</Card.Title>\n </Card.Header>\n <Card.Content>\n <AttributesGrid attributes={session.attributes} collapsedCount={6} />\n </Card.Content>\n </Card.Root>\n {/if}\n\n {#if recordingEvents && recordingEvents.length > 0}\n <Card.Root class=\"pb-0\">\n <Card.Header class=\"gap-0\">\n <Card.Title>Session Replay</Card.Title>\n </Card.Header>\n <Card.Content class=\"p-0\">\n {#key recordingEvents}\n <SessionReplay\n bind:this={replayRef}\n events={recordingEvents as any}\n onTimeUpdate={(ms) => (currentTimeMs = ms)}\n />\n {/key}\n </Card.Content>\n </Card.Root>\n {:else}\n <Card.Root>\n <Card.Header>\n <Card.Title>Session Replay</Card.Title>\n </Card.Header>\n <Card.Content class=\"text-sm text-muted-foreground\">\n No replay data has been uploaded for this session yet.\n </Card.Content>\n </Card.Root>\n {/if}\n\n {#if hasLogs || hasActions}\n <Card.Root>\n <Card.Header>\n <Card.Title>Session Context</Card.Title>\n <Card.Description>\n Console output and recorded actions across the session. Times are offsets from session start.\n </Card.Description>\n </Card.Header>\n <Card.Content>\n <Tabs.Root value={defaultTab}>\n <Tabs.List class=\"mb-4\">\n {#if hasLogs}\n <Tabs.Trigger value=\"logs\">Logs ({recordingLogs.length})</Tabs.Trigger>\n {/if}\n {#if hasActions}\n <Tabs.Trigger value=\"actions\">Actions ({recordingActions.length})</Tabs.Trigger>\n {/if}\n </Tabs.List>\n {#if hasLogs}\n <Tabs.Content value=\"logs\">\n <SessionLogsTable\n logs={recordingLogs}\n startedAt={session.startedAt}\n {currentTimeMs}\n onSeek={handleSeek}\n />\n </Tabs.Content>\n {/if}\n {#if hasActions}\n <Tabs.Content value=\"actions\">\n <SessionActionsTable\n actions={recordingActions}\n startedAt={session.startedAt}\n {currentTimeMs}\n onSeek={handleSeek}\n />\n </Tabs.Content>\n {/if}\n </Tabs.Root>\n </Card.Content>\n </Card.Root>\n {/if}\n\n <Card.Root>\n <Card.Header>\n <Card.Title>Exceptions in this session</Card.Title>\n </Card.Header>\n <Card.Content class=\"p-0\">\n <Table.Root>\n {#if exceptions.length === 0}\n <Table.Body>\n <TableEmptyState colspan={3} message=\"No exceptions captured during this session.\" />\n </Table.Body>\n {:else}\n <Table.Header>\n <Table.Row>\n <Table.Head>When</Table.Head>\n <Table.Head>Stack trace</Table.Head>\n <Table.Head class=\"w-[60px]\"></Table.Head>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each exceptions as exc}\n <Table.Row class=\"cursor-pointer hover:bg-muted/50\" onclick={() => gotoIssue(exc.exceptionHash)}>\n <Table.Cell class=\"text-sm whitespace-nowrap\">{formatDateTime(exc.recordedAt, { timezone })}</Table.Cell>\n <Table.Cell class=\"font-mono text-xs truncate max-w-md\">\n {exc.stackTrace.split('\\n')[0]}\n </Table.Cell>\n <Table.Cell>\n <Button variant=\"ghost\" size=\"icon\" aria-label=\"Open issue\">\n <ArrowRight class=\"size-4\" />\n </Button>\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n {/if}\n </Table.Root>\n </Card.Content>\n </Card.Root>\n {/if}\n</div>\n"],"names":["prerender","load","params","url","authState","redirect","timezone","getTimezone","sessionId","$.derived","pageState","session","$.state","exceptions","$.proxy","recordingEvents","recordingLogs","recordingActions","loading","error","notFound","currentTimeMs","replayRef","handleSeek","offsetMs","hasLogs","$.get","hasActions","defaultTab","ABANDONED_AFTER_MS","durationLabel","s","formatDuration","startedMs","loadAll","$.set","detail","api","projectsState","recording","e","onMount","gotoIssue","hash","goto","resolve","div","root","PageHeader","node","div_1","root_1","LoadingCircle","node_2","ErrorDisplay","$$anchor","Card_Root","Card_Header","Card_Title","Card_Content","$0","formatDateTime","LabelValue","node_10","node_11","node_12","Card_Root_1","Card_Header_1","Card_Title_1","Card_Content_1","AttributesGrid","$$render","consequent_3","Card_Root_2","Card_Header_2","Card_Title_2","Card_Content_2","SessionReplay","ms","$$value","Card_Root_3","Card_Header_3","Card_Title_3","Card_Content_3","consequent_4","alternate","Card_Root_4","Card_Header_4","Card_Title_4","Card_Description","Card_Content_4","Tabs_Root","Tabs_List","Tabs_Trigger","$.template_effect","$.set_text","text_7","consequent_5","Tabs_Trigger_1","text_8","consequent_6","Tabs_Content","SessionLogsTable","consequent_7","Tabs_Content_1","SessionActionsTable","consequent_8","consequent_9","Card_Root_5","Card_Header_5","Card_Title_5","Card_Content_5","Table_Root","Table_Body","TableEmptyState","Table_Header","Table_Row","Table_Head","Table_Head_1","Table_Head_2","Table_Body_1","$.each","node_57","exc","Table_Row_1","Table_Cell","Table_Cell_1","text_13","Table_Cell_2","Button","ArrowRight","consequent_10","alternate_1","consequent_11","consequent_2","alternate_2","consequent_1","alternate_3","consequent","alternate_4"],"mappings":"06CAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,GAAQ,IAAAC,MAAU,CAClD,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAG7B,MAAO,CACN,UAAWH,GAAO,UAClB,OAAQC,GA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AAA4D,CAAA,EAAA5D,EAAA6D,EAAA,EAAA,6HAlGlCzH,CAAO,GAAA4D,GAAA8D,EAAA,6BAFPlH,EAAK,EAAAoD,GAAA+D,EAAA,EAAA/D,GAAAgE,GAAA,EAAA,6BAFLnH,EAAQ,EAAAmD,GAAAiE,EAAA,EAAAjE,GAAAkE,GAAA,EAAA,0BAJbvH,EAAO,EAAAqD,EAAAmE,EAAA,EAAAnE,EAAAoE,GAAA,EAAA,OAHf7F,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"25.0zhNwC_l.js","sources":["../../../../../../src/routes/sessions/[sessionId]/+page.ts","../../../../../../src/routes/sessions/[sessionId]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\tsessionId: params.sessionId,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","<script lang=\"ts\">\n import { onMount } from 'svelte';\n import { resolve } from '$app/paths';\n import { goto } from '$app/navigation';\n import { page as pageState } from '$app/state';\n import { api } from '$lib/api';\n import { projectsState } from '$lib/state/projects.svelte';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import { formatDuration, formatDateTime } from '$lib/utils/formatters';\n import * as Card from '$lib/components/ui/card';\n import * as Table from '$lib/components/ui/table';\n import * as Tabs from '$lib/components/ui/tabs';\n import { Button } from '$lib/components/ui/button';\n import { LoadingCircle } from '$lib/components/ui/loading-circle';\n import { LabelValue } from '$lib/components/ui/label-value';\n import { AttributesGrid } from '$lib/components/ui/attributes-grid';\n import { TableEmptyState } from '$lib/components/ui/table-empty-state';\n import SessionReplay from '$lib/components/issues/session-replay.svelte';\n import SessionLogsTable from '$lib/components/issues/session-logs-table.svelte';\n import SessionActionsTable from '$lib/components/issues/session-actions-table.svelte';\n import { ErrorDisplay } from '$lib/components/ui/error-display';\n import PageHeader from '$lib/components/issues/page-header.svelte';\n import { ArrowRight } from 'lucide-svelte';\n\n type Session = {\n id: string;\n startedAt: string;\n endedAt?: string | null;\n duration: number;\n clientIP: string;\n appVersion: string;\n serverName: string;\n attributes?: Record<string, string> | null;\n };\n\n type SessionException = {\n id: string;\n exceptionHash: string;\n stackTrace: string;\n recordedAt: string;\n isMessage: boolean;\n };\n\n const timezone = $derived(getTimezone());\n const sessionId = $derived(pageState.params.sessionId);\n\n let session = $state<Session | null>(null);\n let exceptions = $state<SessionException[]>([]);\n let recordingEvents = $state<unknown[] | null>(null);\n let recordingLogs = $state<any[]>([]);\n let recordingActions = $state<any[]>([]);\n let loading = $state(true);\n let error = $state('');\n let notFound = $state(false);\n\n let currentTimeMs = $state(0);\n let replayRef = $state<{ seek: (ms: number) => void } | null>(null);\n\n function handleSeek(offsetMs: number) {\n replayRef?.seek(offsetMs);\n }\n\n const hasLogs = $derived(recordingLogs.length > 0);\n const hasActions = $derived(recordingActions.length > 0);\n const defaultTab = $derived(hasLogs ? 'logs' : 'actions');\n\n const ABANDONED_AFTER_MS = 15 * 60_000;\n\n function durationLabel(s: Session | null): string {\n if (!s) return '—';\n if (s.endedAt) return formatDuration(s.duration);\n const startedMs = Date.parse(s.startedAt);\n if (Number.isFinite(startedMs) && Date.now() - startedMs >= ABANDONED_AFTER_MS) {\n return 'Abandoned';\n }\n return 'in progress';\n }\n\n async function loadAll() {\n loading = true;\n error = '';\n notFound = false;\n\n try {\n const detail = await api.post(`/sessions/${sessionId}`, {}, {\n projectId: projectsState.currentProjectId ?? undefined\n });\n session = detail.session;\n exceptions = detail.exceptions || [];\n\n const recording = await api.get(`/sessions/${sessionId}/recording`, {\n projectId: projectsState.currentProjectId ?? undefined\n });\n recordingEvents = recording?.events ?? [];\n recordingLogs = recording?.logs ?? [];\n recordingActions = recording?.actions ?? [];\n } catch (e: any) {\n if (e?.status === 404) {\n notFound = true;\n } else {\n error = e?.message || 'Failed to load session';\n }\n } finally {\n loading = false;\n }\n }\n\n onMount(() => {\n loadAll();\n });\n\n function gotoIssue(hash: string) {\n goto(resolve(`/issues/${hash}`));\n }\n</script>\n\n<div class=\"space-y-4\">\n <PageHeader title=\"Session\" />\n\n {#if loading}\n <div class=\"flex justify-center items-center h-64\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else if notFound}\n <ErrorDisplay status={404} title=\"Session not found\" description=\"This session does not exist or has been pruned.\" onRetry={loadAll} />\n {:else if error}\n <ErrorDisplay status={500} title=\"Error\" description={error} onRetry={loadAll} />\n {:else if session}\n <Card.Root>\n <Card.Header>\n <Card.Title>Overview</Card.Title>\n </Card.Header>\n <Card.Content class=\"grid grid-cols-2 gap-4 sm:grid-cols-3\">\n <LabelValue label=\"Started\" value={formatDateTime(session.startedAt, { timezone })} />\n <LabelValue label=\"Duration\" value={durationLabel(session)} />\n <LabelValue label=\"App version\" value={session.appVersion || '—'} />\n </Card.Content>\n </Card.Root>\n\n {#if session.attributes && Object.keys(session.attributes).length > 0}\n <Card.Root>\n <Card.Header>\n <Card.Title>Attributes</Card.Title>\n </Card.Header>\n <Card.Content>\n <AttributesGrid attributes={session.attributes} collapsedCount={6} />\n </Card.Content>\n </Card.Root>\n {/if}\n\n {#if recordingEvents && recordingEvents.length > 0}\n <Card.Root class=\"pb-0\">\n <Card.Header class=\"gap-0\">\n <Card.Title>Session Replay</Card.Title>\n </Card.Header>\n <Card.Content class=\"p-0\">\n {#key recordingEvents}\n <SessionReplay\n bind:this={replayRef}\n events={recordingEvents as any}\n onTimeUpdate={(ms) => (currentTimeMs = ms)}\n />\n {/key}\n </Card.Content>\n </Card.Root>\n {:else}\n <Card.Root>\n <Card.Header>\n <Card.Title>Session Replay</Card.Title>\n </Card.Header>\n <Card.Content class=\"text-sm text-muted-foreground\">\n No replay data has been uploaded for this session yet.\n </Card.Content>\n </Card.Root>\n {/if}\n\n {#if hasLogs || hasActions}\n <Card.Root>\n <Card.Header>\n <Card.Title>Session Context</Card.Title>\n <Card.Description>\n Console output and recorded actions across the session. Times are offsets from session start.\n </Card.Description>\n </Card.Header>\n <Card.Content>\n <Tabs.Root value={defaultTab}>\n <Tabs.List class=\"mb-4\">\n {#if hasLogs}\n <Tabs.Trigger value=\"logs\">Logs ({recordingLogs.length})</Tabs.Trigger>\n {/if}\n {#if hasActions}\n <Tabs.Trigger value=\"actions\">Actions ({recordingActions.length})</Tabs.Trigger>\n {/if}\n </Tabs.List>\n {#if hasLogs}\n <Tabs.Content value=\"logs\">\n <SessionLogsTable\n logs={recordingLogs}\n startedAt={session.startedAt}\n {currentTimeMs}\n onSeek={handleSeek}\n />\n </Tabs.Content>\n {/if}\n {#if hasActions}\n <Tabs.Content value=\"actions\">\n <SessionActionsTable\n actions={recordingActions}\n startedAt={session.startedAt}\n {currentTimeMs}\n onSeek={handleSeek}\n />\n </Tabs.Content>\n {/if}\n </Tabs.Root>\n </Card.Content>\n </Card.Root>\n {/if}\n\n <Card.Root>\n <Card.Header>\n <Card.Title>Exceptions in this session</Card.Title>\n </Card.Header>\n <Card.Content class=\"p-0\">\n <Table.Root>\n {#if exceptions.length === 0}\n <Table.Body>\n <TableEmptyState colspan={3} message=\"No exceptions captured during this session.\" />\n </Table.Body>\n {:else}\n <Table.Header>\n <Table.Row>\n <Table.Head>When</Table.Head>\n <Table.Head>Stack trace</Table.Head>\n <Table.Head class=\"w-[60px]\"></Table.Head>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each exceptions as exc}\n <Table.Row class=\"cursor-pointer hover:bg-muted/50\" onclick={() => gotoIssue(exc.exceptionHash)}>\n <Table.Cell class=\"text-sm whitespace-nowrap\">{formatDateTime(exc.recordedAt, { timezone })}</Table.Cell>\n <Table.Cell class=\"font-mono text-xs truncate max-w-md\">\n {exc.stackTrace.split('\\n')[0]}\n </Table.Cell>\n <Table.Cell>\n <Button variant=\"ghost\" size=\"icon\" aria-label=\"Open issue\">\n <ArrowRight class=\"size-4\" />\n </Button>\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n {/if}\n </Table.Root>\n </Card.Content>\n </Card.Root>\n {/if}\n</div>\n"],"names":["prerender","load","params","url","authState","redirect","timezone","getTimezone","sessionId","$.derived","pageState","session","$.state","exceptions","$.proxy","recordingEvents","recordingLogs","recordingActions","loading","error","notFound","currentTimeMs","replayRef","handleSeek","offsetMs","hasLogs","$.get","hasActions","defaultTab","ABANDONED_AFTER_MS","durationLabel","s","formatDuration","startedMs","loadAll","$.set","detail","api","projectsState","recording","e","onMount","gotoIssue","hash","goto","resolve","div","root","PageHeader","node","div_1","root_1","LoadingCircle","node_2","ErrorDisplay","$$anchor","Card_Root","Card_Header","Card_Title","Card_Content","$0","formatDateTime","LabelValue","node_10","node_11","node_12","Card_Root_1","Card_Header_1","Card_Title_1","Card_Content_1","AttributesGrid","$$render","consequent_3","Card_Root_2","Card_Header_2","Card_Title_2","Card_Content_2","SessionReplay","ms","$$value","Card_Root_3","Card_Header_3","Card_Title_3","Card_Content_3","consequent_4","alternate","Card_Root_4","Card_Header_4","Card_Title_4","Card_Description","Card_Content_4","Tabs_Root","Tabs_List","Tabs_Trigger","$.template_effect","$.set_text","text_7","consequent_5","Tabs_Trigger_1","text_8","consequent_6","Tabs_Content","SessionLogsTable","consequent_7","Tabs_Content_1","SessionActionsTable","consequent_8","consequent_9","Card_Root_5","Card_Header_5","Card_Title_5","Card_Content_5","Table_Root","Table_Body","TableEmptyState","Table_Header","Table_Row","Table_Head","Table_Head_1","Table_Head_2","Table_Body_1","$.each","node_57","exc","Table_Row_1","Table_Cell","Table_Cell_1","text_13","Table_Cell_2","Button","ArrowRight","consequent_10","alternate_1","consequent_11","consequent_2","alternate_2","consequent_1","alternate_3","consequent","alternate_4"],"mappings":"06CAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,GAAQ,I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,EAAA,oBACN0E,GAAM1E,GAAA,0EACF2E,GAAU3E,GAAA,CAAA,MAAA,QAAA,CAAA,kJArB9B1C,EAAU,EAAC,SAAW,EAAC0D,EAAA4D,CAAA,EAAA5D,EAAA6D,EAAA,EAAA,6HAlGlCzH,CAAO,GAAA4D,GAAA8D,EAAA,6BAFPlH,EAAK,EAAAoD,GAAA+D,EAAA,EAAA/D,GAAAgE,GAAA,EAAA,6BAFLnH,EAAQ,EAAAmD,GAAAiE,EAAA,EAAAjE,GAAAkE,GAAA,EAAA,0BAJbvH,EAAO,EAAAqD,EAAAmE,EAAA,EAAAnE,EAAAoE,GAAA,EAAA,OAHf7F,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/26.C8KWbgUk.js b/backend/static/frontend/_app/immutable/nodes/26.C8KWbgUk.js
new file mode 100644
index 00000000..353b6fd6
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/26.C8KWbgUk.js
@@ -0,0 +1,2 @@
+import{_ as Wt}from"../chunks/PPVm8Dsz.js";import{p as Ve,i as Se,r as qe,s as rt}from"../chunks/DMODTt3n.js";import{K as Qt,p as Oe,d as x,c as o,b as e,a as Ue,m as et,g as t,u as N,f as $,e as Z,o as Pt,r as q,h as te,i as v,v as it,F as Xe,n as i,t as d,s,k as W,l as H,j as Xt}from"../chunks/B2WdN-7r.js";import{c as a}from"../chunks/BAcG0-U_.js";import{g as er}from"../chunks/BIF4_51j.js";import{a as Fe,b as jt,t as ke,p as tr}from"../chunks/qCQ2nSvO.js";import{e as Ne,i as Ke}from"../chunks/CMyj8Fzw.js";import{C as dt,a as ut,b as vt}from"../chunks/BHR29ZVu.js";import{C as ct}from"../chunks/BKHeGn2e.js";import{C as $t}from"../chunks/KAiF5-Ht.js";import{L as tt}from"../chunks/Csh2s3-8.js";import{b as rr,B as Ze}from"../chunks/C1aqwstW.js";import{S as xt,a as yt,c as St,b as Tt}from"../chunks/BgAHJuQl.js";import{b as ar,d as At}from"../chunks/DH0tcjsQ.js";import{S as or,a as sr}from"../chunks/sjIDPxFh.js";import{T as We,b as Mt,a as Ie,c as kt}from"../chunks/CeOjHHJH.js";import{T as Ot,a as Me}from"../chunks/CEJkX7WU.js";import{D as lr,A as ft,a as _t,b as gt,c as mt,d as pt,e as ht}from"../chunks/CmY6xZEr.js";import{c as nr,b as Ut,m as ir}from"../chunks/BDd6-VcB.js";import{A as bt,T as Bt}from"../chunks/DXxXPnVP.js";import{B as Qe}from"../chunks/Ci5jf6Wy.js";import{I as dr}from"../chunks/D8CWOmhn.js";import{I as ur}from"../chunks/Bv_PbELb.js";import{L as vr}from"../chunks/D0pIT200.js";var cr=$("<button><!></button>");function $r(re,r){const l=Qt();Oe(r,!0);let m=Ve(r,"id",19,()=>nr(l)),u=Ve(r,"ref",15,null),B=qe(r,["$$slots","$$events","$$legacy","children","child","id","ref"]);const A=lr.create({id:Ut(()=>m()),ref:Ut(()=>u(),f=>u(f))}),K=N(()=>ir(B,A.props));var Y=x(),ae=o(Y);{var oe=f=>{var j=x(),ge=o(j);et(ge,()=>r.child,()=>({props:t(K)})),e(f,j)},ue=f=>{var j=cr();ar(j,()=>({...t(K)}));var ge=Z(j);et(ge,()=>r.children??Pt),q(j),e(f,j)};Se(ae,f=>{r.child?f(oe):f(ue,!1)})}e(re,Y),Ue()}function Lt(re,r){Oe(r,!0);let l=qe(r,["$$slots","$$events","$$legacy"]);const m=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["circle",{cx:"9",cy:"7",r:"4"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11"}]];ur(re,rt({name:"user-plus"},()=>l,{get iconNode(){return m},children:(u,B)=>{var A=x(),K=o(A);et(K,()=>r.children??Pt),e(u,A)},$$slots:{default:!0}})),Ue()}function Dt(re,r){Oe(r,!0);let l=Ve(r,"ref",15,null),m=qe(r,["$$slots","$$events","$$legacy","ref","class"]);var u=x(),B=o(u);{let A=N(()=>At(rr(),r.class));a(B,()=>$r,(K,Y)=>{Y(K,rt({get class(){return t(A)}},()=>m,{get ref(){return l()},set ref(ae){l(ae)}}))})}e(re,u),Ue()}function fr(re,r){Oe(r,!0);let l=Ve(r,"ref",15,null),m=qe(r,["$$slots","$$events","$$legacy","ref","class"]);var u=x(),B=o(u);{let A=N(()=>At("[&:not(:first-child)]:mt-1 [&:not(:first-child)]:border-t [&:not(:first-child)]:border-hair [&:not(:first-child)]:pt-1",r.class));a(B,()=>or,(K,Y)=>{Y(K,rt({"data-slot":"select-group",get class(){return t(A)}},()=>m,{get ref(){return l()},set ref(ae){l(ae)}}))})}e(re,u),Ue()}function _r(re,r){Oe(r,!0);let l=Ve(r,"ref",15,null),m=qe(r,["$$slots","$$events","$$legacy","ref","class","children"]);var u=x(),B=o(u);{let A=N(()=>At("text-muted-foreground px-2 py-1.5 text-[11px] font-medium uppercase tracking-wider",r.class));a(B,()=>sr,(K,Y)=>{Y(K,rt({"data-slot":"select-group-heading",get class(){return t(A)}},()=>m,{get ref(){return l()},set ref(ae){l(ae)},children:(ae,oe)=>{var ue=x(),f=o(ue);et(f,()=>r.children??Pt),e(ae,ue)},$$slots:{default:!0}}))})}e(re,u),Ue()}const gr=!1,Ra=Object.freeze(Object.defineProperty({__proto__:null,prerender:gr},Symbol.toStringTag,{value:"Module"}));class mr{#e=te(null);get currentOrganization(){return t(this.#e)}set currentOrganization(r){v(this.#e,r,!0)}#t=te(it([]));get members(){return t(this.#t)}set members(r){v(this.#t,r,!0)}#r=te(it([]));get invitations(){return t(this.#r)}set invitations(r){v(this.#r,r,!0)}#a=te(!1);get loading(){return t(this.#a)}set loading(r){v(this.#a,r,!0)}#o=te(null);get error(){return t(this.#o)}set error(r){v(this.#o,r,!0)}#s=te(null);get userRole(){return t(this.#s)}set userRole(r){v(this.#s,r,!0)}#l=N(()=>this.userRole==="owner");get isOwner(){return t(this.#l)}set isOwner(r){v(this.#l,r)}#n=N(()=>this.userRole==="admin");get isAdmin(){return t(this.#n)}set isAdmin(r){v(this.#n,r)}#i=N(()=>this.userRole==="owner"||this.userRole==="admin");get canManage(){return t(this.#i)}set canManage(r){v(this.#i,r)}#d=N(()=>this.members.length+this.invitations.filter(r=>r.status==="pending").length);get memberCount(){return t(this.#d)}set memberCount(r){v(this.#d,r)}#u=N(()=>this.memberCount<10);get canInvite(){return t(this.#u)}set canInvite(r){v(this.#u,r)}async loadSettings(r){this.loading=!0,this.error=null;try{const l=await Fe.get(`/organizations/${r}/settings`);this.currentOrganization=l.organization,this.members=l.members,this.invitations=l.invitations,this.userRole=l.userRole}catch(l){const m=l instanceof Error?l.message:"Failed to load settings";this.error=m}finally{this.loading=!1}}async inviteUser(r,l,m){const u=await Fe.post(`/organizations/${r}/invitations`,{email:l,role:m});return await this.loadSettings(r),u}async revokeInvitation(r,l){await Fe.delete(`/organizations/${r}/invitations/${l}`),await this.loadSettings(r)}async updateMemberRole(r,l,m){await Fe.put(`/organizations/${r}/members/${l}`,{role:m}),await this.loadSettings(r)}async removeMember(r,l){await Fe.delete(`/organizations/${r}/members/${l}`),await this.loadSettings(r)}async updateTimezone(r,l){await Fe.put(`/organizations/${r}/settings`,{timezone:l}),this.currentOrganization&&(this.currentOrganization={...this.currentOrganization,timezone:l})}clear(){this.currentOrganization=null,this.members=[],this.invitations=[],this.userRole=null,this.error=null}}const Ee=new mr;var pr=$("<!> <!>",1),hr=$("<!> <!>",1),br=$("<!> <!>",1),Pr=$('<div class="flex items-center gap-2"><!> <!></div> <p class="text-xs text-muted-foreground mt-1">All team members will see timestamps in this timezone</p>',1),xr=$("<span> </span>"),yr=$('<div class="grid gap-4"><div class="grid grid-cols-4 items-center gap-4"><!> <div class="col-span-3"> </div></div> <div class="grid grid-cols-4 items-center gap-4"><!> <div class="col-span-3"><!></div></div></div>'),Sr=$('<p class="text-muted-foreground">Organization information not available</p>'),Tr=$("<!> <!>",1);function Ar(re,r){Oe(r,!0);const l=N(()=>Ee.currentOrganization),m=N(()=>Ee.canManage);let u=te(it(t(l)?.timezone||"UTC")),B=te(!1);Xe(()=>{t(l)?.timezone&&v(u,t(l).timezone,!0)});const A=N(()=>t(u)!==t(l)?.timezone),K=[{label:"Common",timezones:[{value:"UTC",label:"UTC (Coordinated Universal Time)"},{value:"America/New_York",label:"US Eastern (New York)"},{value:"America/Chicago",label:"US Central (Chicago)"},{value:"America/Denver",label:"US Mountain (Denver)"},{value:"America/Los_Angeles",label:"US Pacific (Los Angeles)"}]},{label:"Europe",timezones:[{value:"Europe/London",label:"London (GMT/BST)"},{value:"Europe/Paris",label:"Paris (CET/CEST)"},{value:"Europe/Berlin",label:"Berlin (CET/CEST)"},{value:"Europe/Belgrade",label:"Belgrade (CET/CEST)"},{value:"Europe/Amsterdam",label:"Amsterdam (CET/CEST)"},{value:"Europe/Stockholm",label:"Stockholm (CET/CEST)"},{value:"Europe/Zurich",label:"Zurich (CET/CEST)"},{value:"Europe/Madrid",label:"Madrid (CET/CEST)"},{value:"Europe/Rome",label:"Rome (CET/CEST)"},{value:"Europe/Athens",label:"Athens (EET/EEST)"},{value:"Europe/Moscow",label:"Moscow (MSK)"}]},{label:"Asia & Pacific",timezones:[{value:"Asia/Dubai",label:"Dubai (GST)"},{value:"Asia/Kolkata",label:"India (IST)"},{value:"Asia/Singapore",label:"Singapore (SGT)"},{value:"Asia/Hong_Kong",label:"Hong Kong (HKT)"},{value:"Asia/Shanghai",label:"Shanghai (CST)"},{value:"Asia/Tokyo",label:"Tokyo (JST)"},{value:"Asia/Seoul",label:"Seoul (KST)"},{value:"Australia/Sydney",label:"Sydney (AEST/AEDT)"},{value:"Australia/Melbourne",label:"Melbourne (AEST/AEDT)"},{value:"Pacific/Auckland",label:"Auckland (NZST/NZDT)"}]},{label:"Americas",timezones:[{value:"America/Toronto",label:"Toronto (EST/EDT)"},{value:"America/Vancouver",label:"Vancouver (PST/PDT)"},{value:"America/Mexico_City",label:"Mexico City (CST/CDT)"},{value:"America/Sao_Paulo",label:"São Paulo (BRT)"},{value:"America/Buenos_Aires",label:"Buenos Aires (ART)"}]}];function Y(oe){for(const ue of K){const f=ue.timezones.find(j=>j.value===oe);if(f)return f.label}return oe}async function ae(){if(t(l)){v(B,!0);try{await Ee.updateTimezone(t(l).id,t(u)),jt.updateOrganizationTimezone(t(l).id,t(u)),ke.success("Successfully updated the Timezone",{position:"top-center"})}catch(oe){const ue=oe instanceof Error?oe.message:"Failed to update timezone";ke.error(ue)}finally{v(B,!1)}}}dt(re,{children:(oe,ue)=>{var f=Tr(),j=o(f);ut(j,{children:(Be,De)=>{var le=pr(),se=o(le);vt(se,{children:(Te,pe)=>{i();var ne=d("Organization Details");e(Te,ne)},$$slots:{default:!0}});var me=s(se,2);$t(me,{children:(Te,pe)=>{i();var ne=d("Information about your organization");e(Te,ne)},$$slots:{default:!0}}),e(Be,le)},$$slots:{default:!0}});var ge=s(j,2);ct(ge,{class:"space-y-4",children:(Be,De)=>{var le=x(),se=o(le);{var me=pe=>{var ne=yr(),he=Z(ne),Ae=Z(he);tt(Ae,{class:"text-right text-muted-foreground",children:(R,c)=>{i();var w=d("Name");e(R,w)},$$slots:{default:!0}});var _=s(Ae,2),ve=Z(_,!0);q(_),q(he);var ie=s(he,2),J=Z(ie);tt(J,{class:"text-right text-muted-foreground",children:(R,c)=>{i();var w=d("Timezone");e(R,w)},$$slots:{default:!0}});var we=s(J,2),ce=Z(we);{var be=R=>{var c=Pr(),w=o(c),h=Z(w);a(h,()=>Tt,(b,D)=>{D(b,{type:"single",get value(){return t(u)},set value(y){v(u,y,!0)},children:(y,k)=>{var p=br(),I=o(p);a(I,()=>xt,(g,T)=>{T(g,{class:"w-[280px]",children:(n,C)=>{i();var P=d();W(Pe=>H(P,Pe),[()=>Y(t(u))]),e(n,P)},$$slots:{default:!0}})});var S=s(I,2);a(S,()=>yt,(g,T)=>{T(g,{class:"max-h-[300px]",children:(n,C)=>{var P=x(),Pe=o(P);Ne(Pe,17,()=>K,Ke,(xe,_e)=>{var ze=x(),fe=o(ze);a(fe,()=>fr,(de,G)=>{G(de,{children:(z,O)=>{var Q=hr(),U=o(Q);a(U,()=>_r,(L,X)=>{X(L,{children:(F,ee)=>{i();var ye=d();W(()=>H(ye,t(_e).label)),e(F,ye)},$$slots:{default:!0}})});var E=s(U,2);Ne(E,17,()=>t(_e).timezones,Ke,(L,X)=>{var F=x(),ee=o(F);a(ee,()=>St,(ye,Ce)=>{Ce(ye,{get value(){return t(X).value},children:(Re,je)=>{i();var Le=d();W(()=>H(Le,t(X).label)),e(Re,Le)},$$slots:{default:!0}})}),e(L,F)}),e(z,Q)},$$slots:{default:!0}})}),e(xe,ze)}),e(n,P)},$$slots:{default:!0}})}),e(y,p)},$$slots:{default:!0}})});var V=s(h,2);{var M=b=>{Ze(b,{onclick:ae,get disabled(){return t(B)},size:"sm",children:(D,y)=>{i();var k=d();W(()=>H(k,t(B)?"Saving...":"Save")),e(D,k)},$$slots:{default:!0}})};Se(V,b=>{t(A)&&b(M)})}q(w),i(2),e(R,c)},$e=R=>{var c=xr(),w=Z(c,!0);q(c),W(h=>H(w,h),[()=>Y(t(l).timezone)]),e(R,c)};Se(ce,R=>{t(m)?R(be):R($e,!1)})}q(we),q(ie),q(ne),W(()=>H(ve,t(l).name)),e(pe,ne)},Te=pe=>{var ne=Sr();e(pe,ne)};Se(se,pe=>{t(l)?pe(me):pe(Te,!1)})}e(Be,le)},$$slots:{default:!0}}),e(oe,f)},$$slots:{default:!0}}),Ue()}var wr=$("<!> <!>",1),zr=$('<div class="flex flex-col"><span> </span> <span class="text-xs text-muted-foreground"> </span></div>'),Cr=$("<!> <!>",1),Er=$('<p class="text-sm text-destructive"> </p>'),Rr=$("<!> <!>",1),Ir=$("<!> <!>",1),Mr=$('<!> <form class="space-y-4 py-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <!></form> <!>',1);function kr(re,r){Oe(r,!0);let l=Ve(r,"open",15),m=te(""),u=te("user"),B=te(!1),A=te("");const K=[{value:"admin",label:"Admin",description:"Full access to projects and settings"},{value:"user",label:"User",description:"Can view and modify projects"},{value:"readonly",label:"Read Only",description:"Can only view projects"}];async function Y(){if(!t(m)){v(A,"Email is required");return}v(B,!0),v(A,"");try{await Ee.inviteUser(r.organizationId,t(m),t(u)),ke.success("Invitation sent",{position:"top-center"}),v(m,""),v(u,"user"),l(!1)}catch(f){v(A,f instanceof Error?f.message:"Failed to send invitation",!0),ke.error(t(A))}finally{v(B,!1)}}function ae(f){f||(v(m,""),v(u,"user"),v(A,"")),l(f)}var oe=x(),ue=o(oe);a(ue,()=>ht,(f,j)=>{j(f,{get open(){return l()},onOpenChange:ae,children:(ge,Be)=>{var De=x(),le=o(De);a(le,()=>ft,(se,me)=>{me(se,{class:"max-w-md",children:(Te,pe)=>{var ne=Mr(),he=o(ne);a(he,()=>_t,(c,w)=>{w(c,{children:(h,V)=>{var M=wr(),b=o(M);a(b,()=>gt,(y,k)=>{k(y,{children:(p,I)=>{i();var S=d("Invite Team Member");e(p,S)},$$slots:{default:!0}})});var D=s(b,2);a(D,()=>mt,(y,k)=>{k(y,{children:(p,I)=>{i();var S=d("Send an invitation to join your organization");e(p,S)},$$slots:{default:!0}})}),e(h,M)},$$slots:{default:!0}})});var Ae=s(he,2),_=Z(Ae),ve=Z(_);tt(ve,{for:"email",children:(c,w)=>{i();var h=d("Email Address");e(c,h)},$$slots:{default:!0}});var ie=s(ve,2);dr(ie,{id:"email",type:"email",placeholder:"[email protected]",required:!0,get value(){return t(m)},set value(c){v(m,c,!0)}}),q(_);var J=s(_,2),we=Z(J);tt(we,{for:"role",children:(c,w)=>{i();var h=d("Role");e(c,h)},$$slots:{default:!0}});var ce=s(we,2);a(ce,()=>Tt,(c,w)=>{w(c,{type:"single",get value(){return t(u)},set value(h){v(u,h,!0)},children:(h,V)=>{var M=Cr(),b=o(M);a(b,()=>xt,(y,k)=>{k(y,{class:"w-full",children:(p,I)=>{i();var S=d();W(g=>H(S,g),[()=>K.find(g=>g.value===t(u))?.label||"Select role"]),e(p,S)},$$slots:{default:!0}})});var D=s(b,2);a(D,()=>yt,(y,k)=>{k(y,{children:(p,I)=>{var S=x(),g=o(S);Ne(g,17,()=>K,Ke,(T,n)=>{var C=x(),P=o(C);a(P,()=>St,(Pe,xe)=>{xe(Pe,{get value(){return t(n).value},children:(_e,ze)=>{var fe=zr(),de=Z(fe),G=Z(de,!0);q(de);var z=s(de,2),O=Z(z,!0);q(z),q(fe),W(()=>{H(G,t(n).label),H(O,t(n).description)}),e(_e,fe)},$$slots:{default:!0}})}),e(T,C)}),e(p,S)},$$slots:{default:!0}})}),e(h,M)},$$slots:{default:!0}})}),q(J);var be=s(J,2);{var $e=c=>{var w=Er(),h=Z(w,!0);q(w),W(()=>H(h,t(A))),e(c,w)};Se(be,c=>{t(A)&&c($e)})}q(Ae);var R=s(Ae,2);a(R,()=>pt,(c,w)=>{w(c,{children:(h,V)=>{var M=Ir(),b=o(M);a(b,()=>bt,(y,k)=>{k(y,{get disabled(){return t(B)},children:(p,I)=>{i();var S=d("Cancel");e(p,S)},$$slots:{default:!0}})});var D=s(b,2);Ze(D,{onclick:Y,get disabled(){return t(B)},children:(y,k)=>{var p=Rr(),I=o(p);Lt(I,{class:"mr-2 h-4 w-4"});var S=s(I,2);{var g=n=>{var C=d("Inviting...");e(n,C)},T=n=>{var C=d("Invite User");e(n,C)};Se(S,n=>{t(B)?n(g):n(T,!1)})}e(y,p)},$$slots:{default:!0}}),e(h,M)},$$slots:{default:!0}})}),Xt("submit",Ae,c=>{c.preventDefault(),Y()}),e(Te,ne)},$$slots:{default:!0}})}),e(ge,De)},$$slots:{default:!0}})}),e(re,oe),Ue()}var Or=$("<!> Invite User",1),Ur=$("<div><!> <!></div> <!>",1),Br=$("<!> <!> <!> <!> <!>",1),Dr=$("<!> <!>",1),jr=$("<!> <!> <!> <!> <!>",1),Lr=$("<!> <!>",1),Fr=$("<!> <!>",1),Nr=$("<!> <!>",1),Kr=$("<!> <!> <!> <!> <!>",1),Vr=$("<!> <!> <!> <!> <!>",1),Gr=$("<!> <!>",1),Hr=$("<!> <!>",1),Zr=$("<!> <!>",1),qr=$("<!> <!>",1),Yr=$("<!> <!>",1),Jr=$("<!> <!>",1),Wr=$("<!> <!>",1),Qr=$("<!> <!>",1),Xr=$('<div class="space-y-6"><!> <!></div> <!> <!> <!>',1);function ea(re,r){Oe(r,!0);let l=te(!1),m=te(null),u=te(null),B=te(null);const A=N(()=>Ee.members),K=N(()=>Ee.invitations.filter(_=>_.status==="pending")),Y=N(()=>Ee.canInvite),ae=N(()=>Ee.isOwner),oe=[{value:"admin",label:"Admin"},{value:"user",label:"User"},{value:"readonly",label:"Read Only"}];async function ue(_,ve){v(B,_,!0);try{await Ee.updateMemberRole(r.organizationId,_,ve),ke.success("Role updated",{position:"top-center"})}catch(ie){ke.error(ie instanceof Error?ie.message:"Failed to update role",{position:"top-center"})}finally{v(B,null)}}async function f(){if(t(m))try{await Ee.removeMember(r.organizationId,t(m).id),ke.success("Successfully removed the Member",{position:"top-center"})}catch(_){ke.error(_ instanceof Error?_.message:"Failed to remove member")}finally{v(m,null)}}async function j(){if(t(u))try{await Ee.revokeInvitation(r.organizationId,t(u).id),ke.success("Successfully revoked the Invitation",{position:"top-center"})}catch(_){ke.error(_ instanceof Error?_.message:"Failed to revoke invitation")}finally{v(u,null)}}function ge(_){return _.role!=="owner"}function Be(_){return _.role!=="owner"}function De(_){switch(_){case"owner":return"default";case"admin":return"secondary";case"readonly":return"outline";default:return"outline"}}var le=Xr(),se=o(le),me=Z(se);dt(me,{class:"pb-0",children:(_,ve)=>{var ie=Fr(),J=o(ie);ut(J,{class:"flex flex-row items-center justify-between space-y-0 pb-4",children:(ce,be)=>{var $e=Ur(),R=o($e),c=Z(R);vt(c,{children:(V,M)=>{i();var b=d("Team Members");e(V,b)},$$slots:{default:!0}});var w=s(c,2);$t(w,{children:(V,M)=>{i();var b=d("Manage your organization's team members");e(V,b)},$$slots:{default:!0}}),q(R);var h=s(R,2);{let V=N(()=>!t(Y));Ze(h,{variant:"outline",onclick:()=>v(l,!0),get disabled(){return t(V)},children:(M,b)=>{var D=Or(),y=o(D);Lt(y,{class:"mr-2 h-4 w-4"}),i(),e(M,D)},$$slots:{default:!0}})}e(ce,$e)},$$slots:{default:!0}});var we=s(J,2);ct(we,{class:"p-0",children:(ce,be)=>{var $e=x(),R=o($e);a(R,()=>kt,(c,w)=>{w(c,{children:(h,V)=>{var M=Lr(),b=o(M);a(b,()=>Ot,(y,k)=>{k(y,{children:(p,I)=>{var S=x(),g=o(S);a(g,()=>We,(T,n)=>{n(T,{class:"hover:bg-transparent",children:(C,P)=>{var Pe=Br(),xe=o(Pe);a(xe,()=>Me,(G,z)=>{z(G,{children:(O,Q)=>{i();var U=d("Name");e(O,U)},$$slots:{default:!0}})});var _e=s(xe,2);a(_e,()=>Me,(G,z)=>{z(G,{children:(O,Q)=>{i();var U=d("Email");e(O,U)},$$slots:{default:!0}})});var ze=s(_e,2);a(ze,()=>Me,(G,z)=>{z(G,{children:(O,Q)=>{i();var U=d("Role");e(O,U)},$$slots:{default:!0}})});var fe=s(ze,2);a(fe,()=>Me,(G,z)=>{z(G,{children:(O,Q)=>{i();var U=d("Status");e(O,U)},$$slots:{default:!0}})});var de=s(fe,2);a(de,()=>Me,(G,z)=>{z(G,{class:"w-[100px]"})}),e(C,Pe)},$$slots:{default:!0}})}),e(p,S)},$$slots:{default:!0}})});var D=s(b,2);a(D,()=>Mt,(y,k)=>{k(y,{children:(p,I)=>{var S=x(),g=o(S);Ne(g,17,()=>t(A),Ke,(T,n)=>{var C=x(),P=o(C);a(P,()=>We,(Pe,xe)=>{xe(Pe,{children:(_e,ze)=>{var fe=jr(),de=o(fe);a(de,()=>Ie,(U,E)=>{E(U,{class:"font-medium",children:(L,X)=>{i();var F=d();W(()=>H(F,t(n).name)),e(L,F)},$$slots:{default:!0}})});var G=s(de,2);a(G,()=>Ie,(U,E)=>{E(U,{children:(L,X)=>{i();var F=d();W(()=>H(F,t(n).email)),e(L,F)},$$slots:{default:!0}})});var z=s(G,2);a(z,()=>Ie,(U,E)=>{E(U,{children:(L,X)=>{var F=x(),ee=o(F);{var ye=Re=>{var je=x(),Le=o(je);{let wt=N(()=>t(B)===t(n).id||!t(ae)&&t(n).role==="admin");a(Le,()=>Tt,(Ye,Ft)=>{Ft(Ye,{type:"single",get value(){return t(n).role},onValueChange:Je=>Je&&ue(t(n).id,Je),get disabled(){return t(wt)},children:(Je,sa)=>{var zt=Dr(),Ct=o(zt);a(Ct,()=>xt,(at,ot)=>{ot(at,{class:"w-[130px]",children:(st,Kt)=>{i();var Ge=d();W(He=>H(Ge,He),[()=>oe.find(He=>He.value===t(n).role)?.label||t(n).role]),e(st,Ge)},$$slots:{default:!0}})});var Nt=s(Ct,2);a(Nt,()=>yt,(at,ot)=>{ot(at,{children:(st,Kt)=>{var Ge=x(),He=o(Ge);Ne(He,17,()=>oe,Ke,(Vt,lt)=>{var Et=x(),Gt=o(Et);{var Ht=nt=>{var Rt=x(),Zt=o(Rt);a(Zt,()=>St,(qt,Yt)=>{Yt(qt,{get value(){return t(lt).value},children:(Jt,la)=>{i();var It=d();W(()=>H(It,t(lt).label)),e(Jt,It)},$$slots:{default:!0}})}),e(nt,Rt)};Se(Gt,nt=>{(t(ae)||t(lt).value!=="admin")&&nt(Ht)})}e(Vt,Et)}),e(st,Ge)},$$slots:{default:!0}})}),e(Je,zt)},$$slots:{default:!0}})})}e(Re,je)},Ce=Re=>{{let je=N(()=>De(t(n).role));Qe(Re,{get variant(){return t(je)},children:(Le,wt)=>{i();var Ye=d();W(()=>H(Ye,t(n).role==="owner"?"Owner":t(n).role==="admin"?"Admin":t(n).role==="readonly"?"Read Only":"User")),e(Le,Ye)},$$slots:{default:!0}})}};Se(ee,Re=>{ge(t(n))&&t(n).role!=="owner"?Re(ye):Re(Ce,!1)})}e(L,F)},$$slots:{default:!0}})});var O=s(z,2);a(O,()=>Ie,(U,E)=>{E(U,{children:(L,X)=>{Qe(L,{variant:"outline",class:"bg-green-50 text-green-700 border-green-200 dark:bg-green-950 dark:text-green-400 dark:border-green-900",children:(F,ee)=>{i();var ye=d("Active");e(F,ye)},$$slots:{default:!0}})},$$slots:{default:!0}})});var Q=s(O,2);a(Q,()=>Ie,(U,E)=>{E(U,{children:(L,X)=>{var F=x(),ee=o(F);{var ye=Ce=>{Ze(Ce,{variant:"ghost",size:"icon",onclick:()=>v(m,t(n),!0),children:(Re,je)=>{Bt(Re,{class:"h-4 w-4 text-destructive"})},$$slots:{default:!0}})};Se(ee,Ce=>{Be(t(n))&&Ce(ye)})}e(L,F)},$$slots:{default:!0}})}),e(_e,fe)},$$slots:{default:!0}})}),e(T,C)}),e(p,S)},$$slots:{default:!0}})}),e(h,M)},$$slots:{default:!0}})}),e(ce,$e)},$$slots:{default:!0}}),e(_,ie)},$$slots:{default:!0}});var Te=s(me,2);{var pe=_=>{dt(_,{class:"pb-0",children:(ve,ie)=>{var J=Hr(),we=o(J);ut(we,{children:(be,$e)=>{var R=Nr(),c=o(R);vt(c,{children:(h,V)=>{i();var M=d("Pending Invitations");e(h,M)},$$slots:{default:!0}});var w=s(c,2);$t(w,{children:(h,V)=>{i();var M=d("Invitations that have not yet been accepted");e(h,M)},$$slots:{default:!0}}),e(be,R)},$$slots:{default:!0}});var ce=s(we,2);ct(ce,{class:"p-0",children:(be,$e)=>{var R=x(),c=o(R);a(c,()=>kt,(w,h)=>{h(w,{children:(V,M)=>{var b=Gr(),D=o(b);a(D,()=>Ot,(k,p)=>{p(k,{children:(I,S)=>{var g=x(),T=o(g);a(T,()=>We,(n,C)=>{C(n,{class:"hover:bg-transparent",children:(P,Pe)=>{var xe=Kr(),_e=o(xe);a(_e,()=>Me,(z,O)=>{O(z,{children:(Q,U)=>{i();var E=d("Email");e(Q,E)},$$slots:{default:!0}})});var ze=s(_e,2);a(ze,()=>Me,(z,O)=>{O(z,{children:(Q,U)=>{i();var E=d("Role");e(Q,E)},$$slots:{default:!0}})});var fe=s(ze,2);a(fe,()=>Me,(z,O)=>{O(z,{children:(Q,U)=>{i();var E=d("Invited By");e(Q,E)},$$slots:{default:!0}})});var de=s(fe,2);a(de,()=>Me,(z,O)=>{O(z,{children:(Q,U)=>{i();var E=d("Status");e(Q,E)},$$slots:{default:!0}})});var G=s(de,2);a(G,()=>Me,(z,O)=>{O(z,{class:"w-[100px]"})}),e(P,xe)},$$slots:{default:!0}})}),e(I,g)},$$slots:{default:!0}})});var y=s(D,2);a(y,()=>Mt,(k,p)=>{p(k,{children:(I,S)=>{var g=x(),T=o(g);Ne(T,17,()=>t(K),Ke,(n,C)=>{var P=x(),Pe=o(P);a(Pe,()=>We,(xe,_e)=>{_e(xe,{children:(ze,fe)=>{var de=Vr(),G=o(de);a(G,()=>Ie,(E,L)=>{L(E,{class:"font-medium",children:(X,F)=>{i();var ee=d();W(()=>H(ee,t(C).email)),e(X,ee)},$$slots:{default:!0}})});var z=s(G,2);a(z,()=>Ie,(E,L)=>{L(E,{children:(X,F)=>{Qe(X,{variant:"outline",children:(ee,ye)=>{i();var Ce=d();W(()=>H(Ce,t(C).role==="admin"?"Admin":t(C).role==="readonly"?"Read Only":"User")),e(ee,Ce)},$$slots:{default:!0}})},$$slots:{default:!0}})});var O=s(z,2);a(O,()=>Ie,(E,L)=>{L(E,{children:(X,F)=>{i();var ee=d();W(()=>H(ee,t(C).inviterName)),e(X,ee)},$$slots:{default:!0}})});var Q=s(O,2);a(Q,()=>Ie,(E,L)=>{L(E,{children:(X,F)=>{Qe(X,{variant:"outline",class:"bg-yellow-50 text-yellow-700 border-yellow-200",children:(ee,ye)=>{i();var Ce=d("Invited");e(ee,Ce)},$$slots:{default:!0}})},$$slots:{default:!0}})});var U=s(Q,2);a(U,()=>Ie,(E,L)=>{L(E,{children:(X,F)=>{Ze(X,{variant:"ghost",size:"icon",onclick:()=>v(u,t(C),!0),children:(ee,ye)=>{Bt(ee,{class:"h-4 w-4 text-destructive"})},$$slots:{default:!0}})},$$slots:{default:!0}})}),e(ze,de)},$$slots:{default:!0}})}),e(n,P)}),e(I,g)},$$slots:{default:!0}})}),e(V,b)},$$slots:{default:!0}})}),e(be,R)},$$slots:{default:!0}}),e(ve,J)},$$slots:{default:!0}})};Se(Te,_=>{t(K).length>0&&_(pe)})}q(se);var ne=s(se,2);kr(ne,{get organizationId(){return r.organizationId},get open(){return t(l)},set open(_){v(l,_,!0)}});var he=s(ne,2);{let _=N(()=>t(m)!==null);a(he,()=>ht,(ve,ie)=>{ie(ve,{get open(){return t(_)},onOpenChange:J=>{J||v(m,null)},children:(J,we)=>{var ce=x(),be=o(ce);a(be,()=>ft,($e,R)=>{R($e,{children:(c,w)=>{var h=Yr(),V=o(h);a(V,()=>_t,(b,D)=>{D(b,{children:(y,k)=>{var p=Zr(),I=o(p);a(I,()=>gt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d("Remove Team Member");e(n,P)},$$slots:{default:!0}})});var S=s(I,2);a(S,()=>mt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d();W(()=>H(P,`Are you sure you want to remove ${t(m)?.name??""} from this organization?
+ They will lose access to all projects.`)),e(n,P)},$$slots:{default:!0}})}),e(y,p)},$$slots:{default:!0}})});var M=s(V,2);a(M,()=>pt,(b,D)=>{D(b,{children:(y,k)=>{var p=qr(),I=o(p);a(I,()=>bt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d("Cancel");e(n,P)},$$slots:{default:!0}})});var S=s(I,2);a(S,()=>Dt,(g,T)=>{T(g,{onclick:f,children:(n,C)=>{i();var P=d("Remove");e(n,P)},$$slots:{default:!0}})}),e(y,p)},$$slots:{default:!0}})}),e(c,h)},$$slots:{default:!0}})}),e(J,ce)},$$slots:{default:!0}})})}var Ae=s(he,2);{let _=N(()=>t(u)!==null);a(Ae,()=>ht,(ve,ie)=>{ie(ve,{get open(){return t(_)},onOpenChange:J=>{J||v(u,null)},children:(J,we)=>{var ce=x(),be=o(ce);a(be,()=>ft,($e,R)=>{R($e,{children:(c,w)=>{var h=Qr(),V=o(h);a(V,()=>_t,(b,D)=>{D(b,{children:(y,k)=>{var p=Jr(),I=o(p);a(I,()=>gt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d("Revoke Invitation");e(n,P)},$$slots:{default:!0}})});var S=s(I,2);a(S,()=>mt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d();W(()=>H(P,`Are you sure you want to revoke the invitation for ${t(u)?.email??""}?`)),e(n,P)},$$slots:{default:!0}})}),e(y,p)},$$slots:{default:!0}})});var M=s(V,2);a(M,()=>pt,(b,D)=>{D(b,{children:(y,k)=>{var p=Wr(),I=o(p);a(I,()=>bt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d("Cancel");e(n,P)},$$slots:{default:!0}})});var S=s(I,2);a(S,()=>Dt,(g,T)=>{T(g,{onclick:j,children:(n,C)=>{i();var P=d("Revoke");e(n,P)},$$slots:{default:!0}})}),e(y,p)},$$slots:{default:!0}})}),e(c,h)},$$slots:{default:!0}})}),e(J,ce)},$$slots:{default:!0}})})}e(re,le),Ue()}var ta=$('<div class="flex items-center justify-center py-12"><!></div>'),ra=$('<div class="text-center py-12 text-destructive"> </div>'),aa=$('<div class="space-y-6"><!> <!> <!></div>'),oa=$('<div class="space-y-6"><div><h1 class="text-2xl font-semibold tracking-tight">Settings</h1></div> <!></div>');function Ia(re,r){Oe(r,!0);let l=te(!0),m=te(null),u=te(null);async function B(){try{const f=await Wt(()=>import("../chunks/DdlwFQz5.js"),[],import.meta.url);v(u,f.default,!0)}catch{}}Xe(()=>{B()});const A=N(()=>tr.currentProject?.organizationId),K=N(()=>t(A)!==null&&t(A)!==void 0&&jt.canManageOrganization(t(A)));Xe(()=>{!t(K)&&!t(l)&&er("/")}),Xe(()=>{t(A)&&t(K)&&(v(l,!0),Ee.loadSettings(t(A)).catch(f=>{v(m,f instanceof Error?f.message:"Failed to load settings",!0)}).finally(()=>{v(l,!1)}))});var Y=oa(),ae=s(Z(Y),2);{var oe=f=>{var j=ta(),ge=Z(j);vr(ge,{size:"xlg"}),q(j),e(f,j)},ue=f=>{var j=x(),ge=o(j);{var Be=le=>{var se=ra(),me=Z(se,!0);q(se),W(()=>H(me,t(m))),e(le,se)},De=le=>{var se=aa(),me=Z(se);Ar(me,{});var Te=s(me,2);ea(Te,{get organizationId(){return t(A)}});var pe=s(Te,2);{var ne=he=>{var Ae=x(),_=o(Ae);a(_,()=>t(u),(ve,ie)=>{ie(ve,{get organizationId(){return t(A)}})}),e(he,Ae)};Se(pe,he=>{t(u)&&he(ne)})}q(se),e(le,se)};Se(ge,le=>{t(m)?le(Be):le(De,!1)},!0)}e(f,j)};Se(ae,f=>{t(l)?f(oe):f(ue,!1)})}q(Y),e(re,Y),Ue()}export{Ia as component,Ra as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/26.DBjX66dN.js.map b/backend/static/frontend/_app/immutable/nodes/26.C8KWbgUk.js.map
similarity index 87%
rename from backend/static/frontend/_app/immutable/nodes/26.DBjX66dN.js.map
rename to backend/static/frontend/_app/immutable/nodes/26.C8KWbgUk.js.map
index a97c65a2..0134d822 100644
--- a/backend/static/frontend/_app/immutable/nodes/26.DBjX66dN.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/26.C8KWbgUk.js.map
@@ -1 +1 @@
-{"version":3,"mappings":"y9CAAA,OAMOA,EAAGC,GAAA,eAKRC,EAAEC,GAAAC,EAAA,YAAGC,GAASL,CAAG,GACjBM,gBAAgB,IAAI,EACjBC,EAAAC,GAAAJ,EAAA,uEAGEK,EAAcC,GAAkB,OAAM,CAC3C,GAAIC,GAAO,IAAOT,GAAE,EACpB,IAAKS,GAAO,IACLL,EAAG,EACRM,GAAON,EAAMM,CAAC,KAIXC,QAAuBC,GAAWP,EAAWE,EAAY,KAAK,mDAInDM,GAAAC,GAAA,IAAAZ,EAAA,oBAAOS,CAAW,wBAElCI,EAAMC,GAAA,EAANC,GAAAF,aAAWJ,CAAW,cAAtBI,CAAM,8BAANA,CAAM,MAANA,CAA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,CACnB,CAAC,EAEb,CAAC,MAGJxC,EAAGmJ,GAAA,SAAHnJ,CAAG,qBAMKE,EAAGkJ,GAAA,OAAHlJ,CAAG,EACCmJ,GAAarN,GAAA,gBADjBkE,CAAG,MAAHA,CAAG,6CAIHG,GAAGiJ,GAAA,OAAHjJ,GAAG,MAAHA,EAAG,eACCoC,CAAK,SADTpC,EAAG,eAIHE,GAAGgJ,GAAA,OAAHhJ,EAAG,EACCiJ,GAAezJ,GAAA,mBACf0J,GAAQvE,GAAA,+BAAiB6D,CAAqB,2EAE1CW,GAAU9M,GAAA,+BAAiBmM,CAAqB,8BADhDH,CAAU,GAAAhH,GAAAS,EAAA,MAHlB9B,EAAG,OAAHA,EAAG,gBALEkC,CAAK,EAAAb,GAAAI,EAAA,EAAAJ,GAAAK,GAAA,6BAJVO,CAAO,EAAAZ,EAAAC,EAAA,EAAAD,EAAAU,GAAA,QALftC,CAAG,OAAHA,CAAG,MAFJ","names":["uid","$.props_id","id","$.prop","$$props","createId","ref","restProps","$.rest_props","actionState","DialogActionState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","button","root_2","$.attribute_effect","props","iconNode","Icon","$.noop","$0","$.derived","cn","SelectPrimitive_Group","$$anchor","$.spread_props","$$value","SelectPrimitive_GroupHeading","buttonVariants","AlertDialogPrimitive_Action","prerender","OrganizationState","#currentOrganization","$.state","value","$.proxy","#loading","#error","#userRole","#memberCount","i","organizationId","response","api","e","errorMessage","email","role","invitationId","userId","timezone","organizationState","organization","canManage","selectedTimezone","$.get","saving","$.user_effect","hasChanges","timezoneGroups","getTimezoneLabel","group","tz","t","handleSave","$.set","authState","toast","Card","CardHeader","node","CardTitle","CardDescription","node_2","CardContent","node_3","div","root_6","div_1","Label","node_5","div_2","$.sibling","div_3","node_6","div_4","div_5","$.first_child","fragment_4","Select_Root","Select_Trigger","$.template_effect","$.set_text","text_5","Select_Content","$.each","node_11","Select_Group","Select_GroupHeading","text_6","$.index","Select_Item","text_7","Button","$$render","consequent","span","root_20","consequent_1","alternate","text_3","p","root_21","consequent_2","alternate_1","open","loading","error","roleOptions","handleSubmit","handleOpenChange","isOpen","AlertDialog_Root","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","form","Input","node_7","r","roleOption","root_12","span_1","root_13","AlertDialog_Footer","AlertDialog_Cancel","node_16","UserPlus","node_17","showInviteDialog","memberToRemove","invitationToRevoke","processingRoleChange","members","invitations","canInvite","isOwner","handleRoleChange","newRole","handleRemoveMember","handleRevokeInvitation","canChangeRole","member","canRemoveMember","getRoleBadgeVariant","fragment","fragment_2","node_4","Table_Root","Table_Header","Table_Row","Table_Head","Table_Head_1","Table_Head_2","Table_Head_3","Table_Head_4","Table_Body","Table_Row_1","Table_Cell","Table_Cell_1","Table_Cell_2","val","node_25","text_9","Badge","Table_Cell_3","Table_Cell_4","Trash2","node_32","node_33","node_34","node_35","Table_Root_1","Table_Header_1","Table_Row_2","Table_Head_5","Table_Head_6","Table_Head_7","Table_Head_8","Table_Head_9","Table_Body_1","node_45","invitation","Table_Row_3","Table_Cell_5","text_18","Table_Cell_6","Table_Cell_7","text_20","Table_Cell_8","Table_Cell_9","consequent_3","InviteUserDialog","node_52","text_23","AlertDialog_Action","AlertDialog_Root_1","AlertDialog_Content_1","AlertDialog_Header_1","AlertDialog_Title_1","AlertDialog_Description_1","text_27","AlertDialog_Footer_1","AlertDialog_Cancel_1","AlertDialog_Action_1","BillingTab","loadBillingModule","module","currentOrganizationId","projectsState","hasAccess","goto","root","root_1","LoadingCircle","root_3","root_4","OrganizationTab","UsersTab","BillingTab_1"],"ignoreList":[0,1],"sources":["../../../../../../node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-action.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/user-plus.svelte","../../../../../../src/lib/components/ui/select/select-group.svelte","../../../../../../src/lib/components/ui/select/select-group-heading.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-action.svelte","../../../../../../src/routes/settings/+page.ts","../../../../../../src/lib/state/organization.svelte.ts","../../../../../../src/routes/settings/organization-tab.svelte","../../../../../../src/routes/settings/invite-user-dialog.svelte","../../../../../../src/routes/settings/users-tab.svelte","../../../../../../src/routes/settings/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { AlertDialogActionProps } from \"../types.js\";\n\timport { DialogActionState } from \"../../dialog/dialog.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: AlertDialogActionProps = $props();\n\n\tconst actionState = DialogActionState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, actionState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" }], [\"circle\", { \"cx\": \"9\", \"cy\": \"7\", \"r\": \"4\" }], [\"line\", { \"x1\": \"19\", \"x2\": \"19\", \"y1\": \"8\", \"y2\": \"14\" }], [\"line\", { \"x1\": \"22\", \"x2\": \"16\", \"y1\": \"11\", \"y2\": \"11\" }]];\n/**\n * @component @name UserPlus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTYgMjF2LTJhNCA0IDAgMCAwLTQtNEg2YTQgNCAwIDAgMC00IDR2MiIgLz4KICA8Y2lyY2xlIGN4PSI5IiBjeT0iNyIgcj0iNCIgLz4KICA8bGluZSB4MT0iMTkiIHgyPSIxOSIgeTE9IjgiIHkyPSIxNCIgLz4KICA8bGluZSB4MT0iMjIiIHgyPSIxNiIgeTE9IjExIiB5Mj0iMTEiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/user-plus\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"user-plus\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: SelectPrimitive.GroupProps = $props();\n</script>\n\n<SelectPrimitive.Group\n\tbind:ref\n\tdata-slot=\"select-group\"\n\tclass={cn(\n\t\t\"[&:not(:first-child)]:mt-1 [&:not(:first-child)]:border-t [&:not(:first-child)]:border-hair [&:not(:first-child)]:pt-1\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\timport type { ComponentProps } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: ComponentProps<typeof SelectPrimitive.GroupHeading> = $props();\n</script>\n\n<SelectPrimitive.GroupHeading\n\tbind:ref\n\tdata-slot=\"select-group-heading\"\n\tclass={cn(\n\t\t\"text-muted-foreground px-2 py-1.5 text-[11px] font-medium uppercase tracking-wider\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</SelectPrimitive.GroupHeading>\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport { buttonVariants } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: AlertDialogPrimitive.ActionProps = $props();\n</script>\n\n<AlertDialogPrimitive.Action\n\tbind:ref\n\tclass={cn(buttonVariants(), className)}\n\t{...restProps}\n/>\n","export const prerender = false;\n","import { api } from '$lib/api';\n\nexport interface Organization {\n id: number;\n name: string;\n timezone: string;\n createdAt: string;\n}\n\nexport interface OrganizationMember {\n id: number;\n email: string;\n name: string;\n role: string;\n createdAt: string;\n}\n\nexport interface Invitation {\n id: number;\n organizationId: number;\n email: string;\n role: string;\n invitedBy: number;\n inviterName: string;\n status: string;\n expiresAt: string;\n acceptedAt?: string;\n createdAt: string;\n}\n\nexport interface OrganizationSettings {\n organization: Organization;\n members: OrganizationMember[];\n invitations: Invitation[];\n userRole: string;\n}\n\nclass OrganizationState {\n currentOrganization = $state<Organization | null>(null);\n members = $state<OrganizationMember[]>([]);\n invitations = $state<Invitation[]>([]);\n loading = $state(false);\n error = $state<string | null>(null);\n userRole = $state<string | null>(null);\n\n isOwner = $derived(this.userRole === 'owner');\n isAdmin = $derived(this.userRole === 'admin');\n canManage = $derived(this.userRole === 'owner' || this.userRole === 'admin');\n memberCount = $derived(this.members.length + this.invitations.filter(i => i.status === 'pending').length);\n canInvite = $derived(this.memberCount < 10);\n\n async loadSettings(organizationId: number) {\n this.loading = true;\n this.error = null;\n\n try {\n const response: OrganizationSettings = await api.get(`/organizations/${organizationId}/settings`);\n this.currentOrganization = response.organization;\n this.members = response.members;\n this.invitations = response.invitations;\n this.userRole = response.userRole;\n } catch (e: unknown) {\n const errorMessage = e instanceof Error ? e.message : 'Failed to load settings';\n this.error = errorMessage;\n } finally {\n this.loading = false;\n }\n }\n\n async inviteUser(organizationId: number, email: string, role: string) {\n const response = await api.post(`/organizations/${organizationId}/invitations`, { email, role });\n await this.loadSettings(organizationId);\n return response;\n }\n\n async revokeInvitation(organizationId: number, invitationId: number) {\n await api.delete(`/organizations/${organizationId}/invitations/${invitationId}`);\n await this.loadSettings(organizationId);\n }\n\n async updateMemberRole(organizationId: number, userId: number, role: string) {\n await api.put(`/organizations/${organizationId}/members/${userId}`, { role });\n await this.loadSettings(organizationId);\n }\n\n async removeMember(organizationId: number, userId: number) {\n await api.delete(`/organizations/${organizationId}/members/${userId}`);\n await this.loadSettings(organizationId);\n }\n\n async updateTimezone(organizationId: number, timezone: string) {\n await api.put(`/organizations/${organizationId}/settings`, { timezone });\n if (this.currentOrganization) {\n this.currentOrganization = { ...this.currentOrganization, timezone };\n }\n }\n\n clear() {\n this.currentOrganization = null;\n this.members = [];\n this.invitations = [];\n this.userRole = null;\n this.error = null;\n }\n}\n\nexport const organizationState = new OrganizationState();\n","<script lang=\"ts\">\n import { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Label } from \"$lib/components/ui/label\";\n import { Button } from \"$lib/components/ui/button\";\n import * as Select from \"$lib/components/ui/select\";\n import { organizationState } from '$lib/state/organization.svelte';\n import { authState } from '$lib/state/auth.svelte';\n import { toast } from 'svelte-sonner';\n\n const organization = $derived(organizationState.currentOrganization);\n const canManage = $derived(organizationState.canManage);\n\n let selectedTimezone = $state(organization?.timezone || 'UTC');\n let saving = $state(false);\n\n $effect(() => {\n if (organization?.timezone) {\n selectedTimezone = organization.timezone;\n }\n });\n\n const hasChanges = $derived(selectedTimezone !== organization?.timezone);\n\n const timezoneGroups = [\n {\n label: 'Common',\n timezones: [\n { value: 'UTC', label: 'UTC (Coordinated Universal Time)' },\n { value: 'America/New_York', label: 'US Eastern (New York)' },\n { value: 'America/Chicago', label: 'US Central (Chicago)' },\n { value: 'America/Denver', label: 'US Mountain (Denver)' },\n { value: 'America/Los_Angeles', label: 'US Pacific (Los Angeles)' },\n ]\n },\n {\n label: 'Europe',\n timezones: [\n { value: 'Europe/London', label: 'London (GMT/BST)' },\n { value: 'Europe/Paris', label: 'Paris (CET/CEST)' },\n { value: 'Europe/Berlin', label: 'Berlin (CET/CEST)' },\n { value: 'Europe/Belgrade', label: 'Belgrade (CET/CEST)' },\n { value: 'Europe/Amsterdam', label: 'Amsterdam (CET/CEST)' },\n { value: 'Europe/Stockholm', label: 'Stockholm (CET/CEST)' },\n { value: 'Europe/Zurich', label: 'Zurich (CET/CEST)' },\n { value: 'Europe/Madrid', label: 'Madrid (CET/CEST)' },\n { value: 'Europe/Rome', label: 'Rome (CET/CEST)' },\n { value: 'Europe/Athens', label: 'Athens (EET/EEST)' },\n { value: 'Europe/Moscow', label: 'Moscow (MSK)' },\n ]\n },\n {\n label: 'Asia & Pacific',\n timezones: [\n { value: 'Asia/Dubai', label: 'Dubai (GST)' },\n { value: 'Asia/Kolkata', label: 'India (IST)' },\n { value: 'Asia/Singapore', label: 'Singapore (SGT)' },\n { value: 'Asia/Hong_Kong', label: 'Hong Kong (HKT)' },\n { value: 'Asia/Shanghai', label: 'Shanghai (CST)' },\n { value: 'Asia/Tokyo', label: 'Tokyo (JST)' },\n { value: 'Asia/Seoul', label: 'Seoul (KST)' },\n { value: 'Australia/Sydney', label: 'Sydney (AEST/AEDT)' },\n { value: 'Australia/Melbourne', label: 'Melbourne (AEST/AEDT)' },\n { value: 'Pacific/Auckland', label: 'Auckland (NZST/NZDT)' },\n ]\n },\n {\n label: 'Americas',\n timezones: [\n { value: 'America/Toronto', label: 'Toronto (EST/EDT)' },\n { value: 'America/Vancouver', label: 'Vancouver (PST/PDT)' },\n { value: 'America/Mexico_City', label: 'Mexico City (CST/CDT)' },\n { value: 'America/Sao_Paulo', label: 'São Paulo (BRT)' },\n { value: 'America/Buenos_Aires', label: 'Buenos Aires (ART)' },\n ]\n }\n ];\n\n function getTimezoneLabel(value: string): string {\n for (const group of timezoneGroups) {\n const tz = group.timezones.find(t => t.value === value);\n if (tz) return tz.label;\n }\n return value;\n }\n\n async function handleSave() {\n if (!organization) return;\n\n saving = true;\n try {\n await organizationState.updateTimezone(organization.id, selectedTimezone);\n authState.updateOrganizationTimezone(organization.id, selectedTimezone);\n toast.success('Successfully updated the Timezone', { position: 'top-center' });\n } catch (e: unknown) {\n const errorMessage = e instanceof Error ? e.message : 'Failed to update timezone';\n toast.error(errorMessage);\n } finally {\n saving = false;\n }\n }\n</script>\n\n<Card>\n <CardHeader>\n <CardTitle>Organization Details</CardTitle>\n <CardDescription>Information about your organization</CardDescription>\n </CardHeader>\n <CardContent class=\"space-y-4\">\n {#if organization}\n <div class=\"grid gap-4\">\n <div class=\"grid grid-cols-4 items-center gap-4\">\n <Label class=\"text-right text-muted-foreground\">Name</Label>\n <div class=\"col-span-3\">{organization.name}</div>\n </div>\n <div class=\"grid grid-cols-4 items-center gap-4\">\n <Label class=\"text-right text-muted-foreground\">Timezone</Label>\n <div class=\"col-span-3\">\n {#if canManage}\n <div class=\"flex items-center gap-2\">\n <Select.Root type=\"single\" bind:value={selectedTimezone}>\n <Select.Trigger class=\"w-[280px]\">\n {getTimezoneLabel(selectedTimezone)}\n </Select.Trigger>\n <Select.Content class=\"max-h-[300px]\">\n {#each timezoneGroups as group}\n <Select.Group>\n <Select.GroupHeading>{group.label}</Select.GroupHeading>\n {#each group.timezones as tz}\n <Select.Item value={tz.value}>{tz.label}</Select.Item>\n {/each}\n </Select.Group>\n {/each}\n </Select.Content>\n </Select.Root>\n {#if hasChanges}\n <Button onclick={handleSave} disabled={saving} size=\"sm\">\n {saving ? 'Saving...' : 'Save'}\n </Button>\n {/if}\n </div>\n <p class=\"text-xs text-muted-foreground mt-1\">\n All team members will see timestamps in this timezone\n </p>\n {:else}\n <span>{getTimezoneLabel(organization.timezone)}</span>\n {/if}\n </div>\n </div>\n </div>\n {:else}\n <p class=\"text-muted-foreground\">Organization information not available</p>\n {/if}\n </CardContent>\n</Card>\n","<script lang=\"ts\">\n import * as AlertDialog from \"$lib/components/ui/alert-dialog\";\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import * as Select from \"$lib/components/ui/select\";\n import { UserPlus } from \"@lucide/svelte\";\n import { toast } from 'svelte-sonner';\n import { organizationState } from '$lib/state/organization.svelte';\n\n interface Props {\n open: boolean;\n organizationId: number;\n }\n\n let { open = $bindable(), organizationId }: Props = $props();\n\n let email = $state('');\n let role = $state('user');\n let loading = $state(false);\n let error = $state('');\n\n const roleOptions = [\n { value: 'admin', label: 'Admin', description: 'Full access to projects and settings' },\n { value: 'user', label: 'User', description: 'Can view and modify projects' },\n { value: 'readonly', label: 'Read Only', description: 'Can only view projects' }\n ];\n\n async function handleSubmit() {\n if (!email) {\n error = 'Email is required';\n return;\n }\n\n loading = true;\n error = '';\n\n try {\n await organizationState.inviteUser(organizationId, email, role);\n toast.success('Invitation sent', { position: 'top-center' });\n email = '';\n role = 'user';\n open = false;\n } catch (e: unknown) {\n error = e instanceof Error ? e.message : 'Failed to send invitation';\n toast.error(error);\n } finally {\n loading = false;\n }\n }\n\n function handleOpenChange(isOpen: boolean) {\n if (!isOpen) {\n email = '';\n role = 'user';\n error = '';\n }\n open = isOpen;\n }\n</script>\n\n<AlertDialog.Root {open} onOpenChange={handleOpenChange}>\n <AlertDialog.Content class=\"max-w-md\">\n <AlertDialog.Header>\n <AlertDialog.Title>Invite Team Member</AlertDialog.Title>\n <AlertDialog.Description>\n Send an invitation to join your organization\n </AlertDialog.Description>\n </AlertDialog.Header>\n\n <form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class=\"space-y-4 py-4\">\n <div class=\"space-y-2\">\n <Label for=\"email\">Email Address</Label>\n <Input\n id=\"email\"\n type=\"email\"\n bind:value={email}\n placeholder=\"[email protected]\"\n required\n />\n </div>\n\n <div class=\"space-y-2\">\n <Label for=\"role\">Role</Label>\n <Select.Root type=\"single\" bind:value={role}>\n <Select.Trigger class=\"w-full\">\n {roleOptions.find(r => r.value === role)?.label || 'Select role'}\n </Select.Trigger>\n <Select.Content>\n {#each roleOptions as roleOption}\n <Select.Item value={roleOption.value}>\n <div class=\"flex flex-col\">\n <span>{roleOption.label}</span>\n <span class=\"text-xs text-muted-foreground\">{roleOption.description}</span>\n </div>\n </Select.Item>\n {/each}\n </Select.Content>\n </Select.Root>\n </div>\n\n {#if error}\n <p class=\"text-sm text-destructive\">{error}</p>\n {/if}\n </form>\n\n <AlertDialog.Footer>\n <AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>\n <Button onclick={handleSubmit} disabled={loading}>\n <UserPlus class=\"mr-2 h-4 w-4\" />\n {#if loading}\n Inviting...\n {:else}\n Invite User\n {/if}\n </Button>\n </AlertDialog.Footer>\n </AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n import { Button } from \"$lib/components/ui/button\";\n import { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import * as Table from \"$lib/components/ui/table\";\n import * as Select from \"$lib/components/ui/select\";\n import * as AlertDialog from \"$lib/components/ui/alert-dialog\";\n import { Badge } from \"$lib/components/ui/badge\";\n import { UserPlus, Trash2 } from \"@lucide/svelte\";\n import { toast } from 'svelte-sonner';\n import { organizationState, type OrganizationMember, type Invitation } from '$lib/state/organization.svelte';\n import { authState } from '$lib/state/auth.svelte';\n import InviteUserDialog from './invite-user-dialog.svelte';\n\n interface Props {\n organizationId: number;\n }\n\n let { organizationId }: Props = $props();\n\n let showInviteDialog = $state(false);\n let memberToRemove = $state<OrganizationMember | null>(null);\n let invitationToRevoke = $state<Invitation | null>(null);\n let processingRoleChange = $state<number | null>(null);\n\n const members = $derived(organizationState.members);\n const invitations = $derived(organizationState.invitations.filter(i => i.status === 'pending'));\n const canInvite = $derived(organizationState.canInvite);\n const isOwner = $derived(organizationState.isOwner);\n\n const roleOptions = [\n { value: 'admin', label: 'Admin' },\n { value: 'user', label: 'User' },\n { value: 'readonly', label: 'Read Only' }\n ];\n\n async function handleRoleChange(userId: number, newRole: string) {\n processingRoleChange = userId;\n try {\n await organizationState.updateMemberRole(organizationId, userId, newRole);\n toast.success('Role updated', { position: 'top-center' });\n } catch (e) {\n toast.error(e instanceof Error ? e.message : 'Failed to update role', { position: 'top-center' });\n } finally {\n processingRoleChange = null;\n }\n }\n\n async function handleRemoveMember() {\n if (!memberToRemove) return;\n\n try {\n await organizationState.removeMember(organizationId, memberToRemove.id);\n toast.success('Successfully removed the Member', { position: 'top-center' });\n } catch (e) {\n toast.error(e instanceof Error ? e.message : 'Failed to remove member');\n } finally {\n memberToRemove = null;\n }\n }\n\n async function handleRevokeInvitation() {\n if (!invitationToRevoke) return;\n\n try {\n await organizationState.revokeInvitation(organizationId, invitationToRevoke.id);\n toast.success('Successfully revoked the Invitation', { position: 'top-center' });\n } catch (e) {\n toast.error(e instanceof Error ? e.message : 'Failed to revoke invitation');\n } finally {\n invitationToRevoke = null;\n }\n }\n\n function canChangeRole(member: OrganizationMember): boolean {\n if (member.role === 'owner') return false;\n return true;\n }\n\n function canRemoveMember(member: OrganizationMember): boolean {\n return member.role !== 'owner';\n }\n\n function getRoleBadgeVariant(role: string): 'default' | 'secondary' | 'destructive' | 'outline' {\n switch (role) {\n case 'owner': return 'default';\n case 'admin': return 'secondary';\n case 'readonly': return 'outline';\n default: return 'outline';\n }\n }\n</script>\n\n<div class=\"space-y-6\">\n <Card class=\"pb-0\">\n <CardHeader class=\"flex flex-row items-center justify-between space-y-0 pb-4\">\n <div>\n <CardTitle>Team Members</CardTitle>\n <CardDescription>Manage your organization's team members</CardDescription>\n </div>\n <Button variant=\"outline\" onclick={() => showInviteDialog = true} disabled={!canInvite}>\n <UserPlus class=\"mr-2 h-4 w-4\" />\n Invite User\n </Button>\n </CardHeader>\n <CardContent class=\"p-0\">\n <Table.Root>\n <Table.Header>\n <Table.Row class=\"hover:bg-transparent\">\n <Table.Head>Name</Table.Head>\n <Table.Head>Email</Table.Head>\n <Table.Head>Role</Table.Head>\n <Table.Head>Status</Table.Head>\n <Table.Head class=\"w-[100px]\"></Table.Head>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each members as member}\n <Table.Row>\n <Table.Cell class=\"font-medium\">{member.name}</Table.Cell>\n <Table.Cell>{member.email}</Table.Cell>\n <Table.Cell>\n {#if canChangeRole(member) && member.role !== 'owner'}\n <Select.Root\n type=\"single\"\n value={member.role}\n onValueChange={(val) => val && handleRoleChange(member.id, val)}\n disabled={processingRoleChange === member.id || (!isOwner && member.role === 'admin')}\n >\n <Select.Trigger class=\"w-[130px]\">\n {roleOptions.find(r => r.value === member.role)?.label || member.role}\n </Select.Trigger>\n <Select.Content>\n {#each roleOptions as role}\n {#if isOwner || role.value !== 'admin'}\n <Select.Item value={role.value}>\n {role.label}\n </Select.Item>\n {/if}\n {/each}\n </Select.Content>\n </Select.Root>\n {:else}\n <Badge variant={getRoleBadgeVariant(member.role)}>\n {member.role === 'owner' ? 'Owner' :\n member.role === 'admin' ? 'Admin' :\n member.role === 'readonly' ? 'Read Only' : 'User'}\n </Badge>\n {/if}\n </Table.Cell>\n <Table.Cell>\n <Badge variant=\"outline\" class=\"bg-green-50 text-green-700 border-green-200 dark:bg-green-950 dark:text-green-400 dark:border-green-900\">\n Active\n </Badge>\n </Table.Cell>\n <Table.Cell>\n {#if canRemoveMember(member)}\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onclick={() => memberToRemove = member}\n >\n <Trash2 class=\"h-4 w-4 text-destructive\" />\n </Button>\n {/if}\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n </Table.Root>\n </CardContent>\n </Card>\n\n {#if invitations.length > 0}\n <Card class=\"pb-0\">\n <CardHeader>\n <CardTitle>Pending Invitations</CardTitle>\n <CardDescription>Invitations that have not yet been accepted</CardDescription>\n </CardHeader>\n <CardContent class=\"p-0\">\n <Table.Root>\n <Table.Header>\n <Table.Row class=\"hover:bg-transparent\">\n <Table.Head>Email</Table.Head>\n <Table.Head>Role</Table.Head>\n <Table.Head>Invited By</Table.Head>\n <Table.Head>Status</Table.Head>\n <Table.Head class=\"w-[100px]\"></Table.Head>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each invitations as invitation}\n <Table.Row>\n <Table.Cell class=\"font-medium\">{invitation.email}</Table.Cell>\n <Table.Cell>\n <Badge variant=\"outline\">\n {invitation.role === 'admin' ? 'Admin' :\n invitation.role === 'readonly' ? 'Read Only' : 'User'}\n </Badge>\n </Table.Cell>\n <Table.Cell>{invitation.inviterName}</Table.Cell>\n <Table.Cell>\n <Badge variant=\"outline\" class=\"bg-yellow-50 text-yellow-700 border-yellow-200\">\n Invited\n </Badge>\n </Table.Cell>\n <Table.Cell>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onclick={() => invitationToRevoke = invitation}\n >\n <Trash2 class=\"h-4 w-4 text-destructive\" />\n </Button>\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n </Table.Root>\n </CardContent>\n </Card>\n {/if}\n</div>\n\n<InviteUserDialog\n bind:open={showInviteDialog}\n {organizationId}\n/>\n\n<AlertDialog.Root open={memberToRemove !== null} onOpenChange={(open) => { if (!open) memberToRemove = null; }}>\n <AlertDialog.Content>\n <AlertDialog.Header>\n <AlertDialog.Title>Remove Team Member</AlertDialog.Title>\n <AlertDialog.Description>\n Are you sure you want to remove {memberToRemove?.name} from this organization?\n They will lose access to all projects.\n </AlertDialog.Description>\n </AlertDialog.Header>\n <AlertDialog.Footer>\n <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>\n <AlertDialog.Action onclick={handleRemoveMember}>\n Remove\n </AlertDialog.Action>\n </AlertDialog.Footer>\n </AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root open={invitationToRevoke !== null} onOpenChange={(open) => { if (!open) invitationToRevoke = null; }}>\n <AlertDialog.Content>\n <AlertDialog.Header>\n <AlertDialog.Title>Revoke Invitation</AlertDialog.Title>\n <AlertDialog.Description>\n Are you sure you want to revoke the invitation for {invitationToRevoke?.email}?\n </AlertDialog.Description>\n </AlertDialog.Header>\n <AlertDialog.Footer>\n <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>\n <AlertDialog.Action onclick={handleRevokeInvitation}>\n Revoke\n </AlertDialog.Action>\n </AlertDialog.Footer>\n </AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState } from '$lib/state/projects.svelte';\n import { organizationState } from '$lib/state/organization.svelte';\n import OrganizationTab from './organization-tab.svelte';\n import UsersTab from './users-tab.svelte';\n import type { Component } from 'svelte';\n import { LoadingCircle } from '$lib/components/ui/loading-circle';\n\n let loading = $state(true);\n let error = $state<string | null>(null);\n let BillingTab = $state<Component<{ organizationId: number }> | null>(null);\n\n async function loadBillingModule() {\n try {\n // @ts-ignore - $billing alias only exists when billing extension is available\n const module = await import('$billing/billing-tab.svelte');\n BillingTab = module.default;\n } catch {\n // Billing extension not available - this is expected for open source builds\n }\n }\n\n $effect(() => {\n loadBillingModule();\n });\n\n const currentOrganizationId = $derived(projectsState.currentProject?.organizationId);\n\n const hasAccess = $derived(\n currentOrganizationId !== null &&\n currentOrganizationId !== undefined &&\n authState.canManageOrganization(currentOrganizationId)\n );\n\n $effect(() => {\n if (!hasAccess && !loading) {\n goto('/');\n }\n });\n\n $effect(() => {\n if (currentOrganizationId && hasAccess) {\n loading = true;\n organizationState.loadSettings(currentOrganizationId)\n .catch(e => {\n error = e instanceof Error ? e.message : 'Failed to load settings';\n })\n .finally(() => {\n loading = false;\n });\n }\n });\n</script>\n\n<div class=\"space-y-6\">\n <div>\n <h1 class=\"text-2xl font-semibold tracking-tight\">Settings</h1>\n </div>\n\n {#if loading}\n <div class=\"flex items-center justify-center py-12\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else if error}\n <div class=\"text-center py-12 text-destructive\">\n {error}\n </div>\n {:else}\n <div class=\"space-y-6\">\n <OrganizationTab />\n <UsersTab organizationId={currentOrganizationId!} />\n {#if BillingTab}\n <BillingTab organizationId={currentOrganizationId!} />\n {/if}\n </div>\n {/if}\n</div>\n"],"file":"26.DBjX66dN.js"}
\ No newline at end of file
+{"version":3,"mappings":"s7CAAA,OAMOA,EAAGC,GAAA,eAKRC,EAAEC,GAAAC,EAAA,YAAGC,GAASL,CAAG,GACjBM,gBAAgB,IAAI,EACjBC,EAAAC,GAAAJ,EAAA,uEAGEK,EAAcC,GAAkB,OAAM,CAC3C,GAAIC,GAAO,IAAOT,GAAE,EACpB,IAAKS,GAAO,IACLL,EAAG,EACRM,GAAON,EAAMM,CAAC,KAIXC,QAAuBC,GAAWP,EAAWE,EAAY,KAAK,mDAInDM,GAAAC,GAAA,IAAAZ,EAAA,oBAAOS,CAAW,wBAElCI,EAAMC,GAAA,EAANC,GAAAF,aAAWJ,CAAW,cAAtBI,CAAM,8BAANA,CAAM,MAANA,CAAM,kDALR,kBCzBA,cA6CIG,EAAKZ,GAAAJ,EAAA,yCACHiB,EAAQ,EAAK,OAAM,CAAI,EAAK,4CAA2C,GAAM,SAAQ,CAAI,GAAM,IAAK,GAAM,IAAK,EAAK,IAAG,EAAM,QAAM,CAAI,GAAM,KAAM,GAAM,KAAM,GAAM,IAAK,GAAM,KAAI,EAAM,QAAM,CAAI,GAAM,KAAM,GAAM,KAAM,GAAM,KAAM,GAAM,IAAI,IAcvPC,gCAA0BF,EAAK,uBAAY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J,GAAQvE,GAAA,+BAAiB6D,CAAqB,2EAE1CW,GAAU7M,GAAA,+BAAiBkM,CAAqB,8BADhDH,CAAU,GAAAhH,GAAAS,EAAA,MAHlB9B,EAAG,OAAHA,EAAG,gBALEkC,CAAK,EAAAb,GAAAI,EAAA,EAAAJ,GAAAK,GAAA,6BAJVO,CAAO,EAAAZ,EAAAC,EAAA,EAAAD,EAAAU,GAAA,QALftC,CAAG,OAAHA,CAAG,MAFJ","names":["uid","$.props_id","id","$.prop","$$props","createId","ref","restProps","$.rest_props","actionState","DialogActionState","boxWith","v","mergedProps","mergeProps","$.snippet","node_1","button","root_2","$.attribute_effect","props","iconNode","Icon","$.noop","$0","$.derived","cn","buttonVariants","AlertDialogPrimitive_Action","$$anchor","$.spread_props","$$value","SelectPrimitive_Group","SelectPrimitive_GroupHeading","prerender","OrganizationState","#currentOrganization","$.state","value","$.proxy","#loading","#error","#userRole","#memberCount","i","organizationId","response","api","e","errorMessage","email","role","invitationId","userId","timezone","organizationState","organization","canManage","selectedTimezone","$.get","saving","$.user_effect","hasChanges","timezoneGroups","getTimezoneLabel","group","tz","t","handleSave","$.set","authState","toast","Card","CardHeader","node","CardTitle","CardDescription","node_2","CardContent","node_3","div","root_6","div_1","Label","node_5","div_2","$.sibling","div_3","node_6","div_4","div_5","$.first_child","fragment_4","Select_Root","Select_Trigger","$.template_effect","$.set_text","text_5","Select_Content","$.each","node_11","Select_Group","Select_GroupHeading","text_6","$.index","Select_Item","text_7","Button","$$render","consequent","span","root_20","consequent_1","alternate","text_3","p","root_21","consequent_2","alternate_1","open","loading","error","roleOptions","handleSubmit","handleOpenChange","isOpen","AlertDialog_Root","AlertDialog_Content","AlertDialog_Header","AlertDialog_Title","AlertDialog_Description","form","Input","node_7","r","roleOption","root_12","span_1","root_13","AlertDialog_Footer","AlertDialog_Cancel","node_16","UserPlus","node_17","showInviteDialog","memberToRemove","invitationToRevoke","processingRoleChange","members","invitations","canInvite","isOwner","handleRoleChange","newRole","handleRemoveMember","handleRevokeInvitation","canChangeRole","member","canRemoveMember","getRoleBadgeVariant","fragment","fragment_2","node_4","Table_Root","Table_Header","Table_Row","Table_Head","Table_Head_1","Table_Head_2","Table_Head_3","Table_Head_4","Table_Body","Table_Row_1","Table_Cell","Table_Cell_1","Table_Cell_2","val","node_25","text_9","Badge","Table_Cell_3","Table_Cell_4","Trash2","node_32","node_33","node_34","node_35","Table_Root_1","Table_Header_1","Table_Row_2","Table_Head_5","Table_Head_6","Table_Head_7","Table_Head_8","Table_Head_9","Table_Body_1","node_45","invitation","Table_Row_3","Table_Cell_5","text_18","Table_Cell_6","Table_Cell_7","text_20","Table_Cell_8","Table_Cell_9","consequent_3","InviteUserDialog","node_52","text_23","AlertDialog_Action","AlertDialog_Root_1","AlertDialog_Content_1","AlertDialog_Header_1","AlertDialog_Title_1","AlertDialog_Description_1","text_27","AlertDialog_Footer_1","AlertDialog_Cancel_1","AlertDialog_Action_1","BillingTab","loadBillingModule","module","currentOrganizationId","projectsState","hasAccess","goto","root","root_1","LoadingCircle","root_3","root_4","OrganizationTab","UsersTab","BillingTab_1"],"ignoreList":[0,1],"sources":["../../../../../../node_modules/bits-ui/dist/bits/alert-dialog/components/alert-dialog-action.svelte","../../../../../../node_modules/@lucide/svelte/dist/icons/user-plus.svelte","../../../../../../src/lib/components/ui/alert-dialog/alert-dialog-action.svelte","../../../../../../src/lib/components/ui/select/select-group.svelte","../../../../../../src/lib/components/ui/select/select-group-heading.svelte","../../../../../../src/routes/settings/+page.ts","../../../../../../src/lib/state/organization.svelte.ts","../../../../../../src/routes/settings/organization-tab.svelte","../../../../../../src/routes/settings/invite-user-dialog.svelte","../../../../../../src/routes/settings/users-tab.svelte","../../../../../../src/routes/settings/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n\timport { boxWith, mergeProps } from \"svelte-toolbelt\";\n\timport type { AlertDialogActionProps } from \"../types.js\";\n\timport { DialogActionState } from \"../../dialog/dialog.svelte.js\";\n\timport { createId } from \"../../../internal/create-id.js\";\n\n\tconst uid = $props.id();\n\n\tlet {\n\t\tchildren,\n\t\tchild,\n\t\tid = createId(uid),\n\t\tref = $bindable(null),\n\t\t...restProps\n\t}: AlertDialogActionProps = $props();\n\n\tconst actionState = DialogActionState.create({\n\t\tid: boxWith(() => id),\n\t\tref: boxWith(\n\t\t\t() => ref,\n\t\t\t(v) => (ref = v)\n\t\t),\n\t});\n\n\tconst mergedProps = $derived(mergeProps(restProps, actionState.props));\n</script>\n\n{#if child}\n\t{@render child({ props: mergedProps })}\n{:else}\n\t<button {...mergedProps}>\n\t\t{@render children?.()}\n\t</button>\n{/if}\n","<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\" }], [\"circle\", { \"cx\": \"9\", \"cy\": \"7\", \"r\": \"4\" }], [\"line\", { \"x1\": \"19\", \"x2\": \"19\", \"y1\": \"8\", \"y2\": \"14\" }], [\"line\", { \"x1\": \"22\", \"x2\": \"16\", \"y1\": \"11\", \"y2\": \"11\" }]];\n/**\n * @component @name UserPlus\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMTYgMjF2LTJhNCA0IDAgMCAwLTQtNEg2YTQgNCAwIDAgMC00IDR2MiIgLz4KICA8Y2lyY2xlIGN4PSI5IiBjeT0iNyIgcj0iNCIgLz4KICA8bGluZSB4MT0iMTkiIHgyPSIxOSIgeTE9IjgiIHkyPSIxNCIgLz4KICA8bGluZSB4MT0iMjIiIHgyPSIxNiIgeTE9IjExIiB5Mj0iMTEiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/user-plus\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"user-plus\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","<script lang=\"ts\">\n\timport { AlertDialog as AlertDialogPrimitive } from \"bits-ui\";\n\timport { buttonVariants } from \"$lib/components/ui/button/index.js\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: AlertDialogPrimitive.ActionProps = $props();\n</script>\n\n<AlertDialogPrimitive.Action\n\tbind:ref\n\tclass={cn(buttonVariants(), className)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\t...restProps\n\t}: SelectPrimitive.GroupProps = $props();\n</script>\n\n<SelectPrimitive.Group\n\tbind:ref\n\tdata-slot=\"select-group\"\n\tclass={cn(\n\t\t\"[&:not(:first-child)]:mt-1 [&:not(:first-child)]:border-t [&:not(:first-child)]:border-hair [&:not(:first-child)]:pt-1\",\n\t\tclassName\n\t)}\n\t{...restProps}\n/>\n","<script lang=\"ts\">\n\timport { Select as SelectPrimitive } from \"bits-ui\";\n\timport { cn } from \"$lib/utils.js\";\n\timport type { ComponentProps } from \"svelte\";\n\n\tlet {\n\t\tref = $bindable(null),\n\t\tclass: className,\n\t\tchildren,\n\t\t...restProps\n\t}: ComponentProps<typeof SelectPrimitive.GroupHeading> = $props();\n</script>\n\n<SelectPrimitive.GroupHeading\n\tbind:ref\n\tdata-slot=\"select-group-heading\"\n\tclass={cn(\n\t\t\"text-muted-foreground px-2 py-1.5 text-[11px] font-medium uppercase tracking-wider\",\n\t\tclassName\n\t)}\n\t{...restProps}\n>\n\t{@render children?.()}\n</SelectPrimitive.GroupHeading>\n","export const prerender = false;\n","import { api } from '$lib/api';\n\nexport interface Organization {\n id: number;\n name: string;\n timezone: string;\n createdAt: string;\n}\n\nexport interface OrganizationMember {\n id: number;\n email: string;\n name: string;\n role: string;\n createdAt: string;\n}\n\nexport interface Invitation {\n id: number;\n organizationId: number;\n email: string;\n role: string;\n invitedBy: number;\n inviterName: string;\n status: string;\n expiresAt: string;\n acceptedAt?: string;\n createdAt: string;\n}\n\nexport interface OrganizationSettings {\n organization: Organization;\n members: OrganizationMember[];\n invitations: Invitation[];\n userRole: string;\n}\n\nclass OrganizationState {\n currentOrganization = $state<Organization | null>(null);\n members = $state<OrganizationMember[]>([]);\n invitations = $state<Invitation[]>([]);\n loading = $state(false);\n error = $state<string | null>(null);\n userRole = $state<string | null>(null);\n\n isOwner = $derived(this.userRole === 'owner');\n isAdmin = $derived(this.userRole === 'admin');\n canManage = $derived(this.userRole === 'owner' || this.userRole === 'admin');\n memberCount = $derived(this.members.length + this.invitations.filter(i => i.status === 'pending').length);\n canInvite = $derived(this.memberCount < 10);\n\n async loadSettings(organizationId: number) {\n this.loading = true;\n this.error = null;\n\n try {\n const response: OrganizationSettings = await api.get(`/organizations/${organizationId}/settings`);\n this.currentOrganization = response.organization;\n this.members = response.members;\n this.invitations = response.invitations;\n this.userRole = response.userRole;\n } catch (e: unknown) {\n const errorMessage = e instanceof Error ? e.message : 'Failed to load settings';\n this.error = errorMessage;\n } finally {\n this.loading = false;\n }\n }\n\n async inviteUser(organizationId: number, email: string, role: string) {\n const response = await api.post(`/organizations/${organizationId}/invitations`, { email, role });\n await this.loadSettings(organizationId);\n return response;\n }\n\n async revokeInvitation(organizationId: number, invitationId: number) {\n await api.delete(`/organizations/${organizationId}/invitations/${invitationId}`);\n await this.loadSettings(organizationId);\n }\n\n async updateMemberRole(organizationId: number, userId: number, role: string) {\n await api.put(`/organizations/${organizationId}/members/${userId}`, { role });\n await this.loadSettings(organizationId);\n }\n\n async removeMember(organizationId: number, userId: number) {\n await api.delete(`/organizations/${organizationId}/members/${userId}`);\n await this.loadSettings(organizationId);\n }\n\n async updateTimezone(organizationId: number, timezone: string) {\n await api.put(`/organizations/${organizationId}/settings`, { timezone });\n if (this.currentOrganization) {\n this.currentOrganization = { ...this.currentOrganization, timezone };\n }\n }\n\n clear() {\n this.currentOrganization = null;\n this.members = [];\n this.invitations = [];\n this.userRole = null;\n this.error = null;\n }\n}\n\nexport const organizationState = new OrganizationState();\n","<script lang=\"ts\">\n import { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Label } from \"$lib/components/ui/label\";\n import { Button } from \"$lib/components/ui/button\";\n import * as Select from \"$lib/components/ui/select\";\n import { organizationState } from '$lib/state/organization.svelte';\n import { authState } from '$lib/state/auth.svelte';\n import { toast } from 'svelte-sonner';\n\n const organization = $derived(organizationState.currentOrganization);\n const canManage = $derived(organizationState.canManage);\n\n let selectedTimezone = $state(organization?.timezone || 'UTC');\n let saving = $state(false);\n\n $effect(() => {\n if (organization?.timezone) {\n selectedTimezone = organization.timezone;\n }\n });\n\n const hasChanges = $derived(selectedTimezone !== organization?.timezone);\n\n const timezoneGroups = [\n {\n label: 'Common',\n timezones: [\n { value: 'UTC', label: 'UTC (Coordinated Universal Time)' },\n { value: 'America/New_York', label: 'US Eastern (New York)' },\n { value: 'America/Chicago', label: 'US Central (Chicago)' },\n { value: 'America/Denver', label: 'US Mountain (Denver)' },\n { value: 'America/Los_Angeles', label: 'US Pacific (Los Angeles)' },\n ]\n },\n {\n label: 'Europe',\n timezones: [\n { value: 'Europe/London', label: 'London (GMT/BST)' },\n { value: 'Europe/Paris', label: 'Paris (CET/CEST)' },\n { value: 'Europe/Berlin', label: 'Berlin (CET/CEST)' },\n { value: 'Europe/Belgrade', label: 'Belgrade (CET/CEST)' },\n { value: 'Europe/Amsterdam', label: 'Amsterdam (CET/CEST)' },\n { value: 'Europe/Stockholm', label: 'Stockholm (CET/CEST)' },\n { value: 'Europe/Zurich', label: 'Zurich (CET/CEST)' },\n { value: 'Europe/Madrid', label: 'Madrid (CET/CEST)' },\n { value: 'Europe/Rome', label: 'Rome (CET/CEST)' },\n { value: 'Europe/Athens', label: 'Athens (EET/EEST)' },\n { value: 'Europe/Moscow', label: 'Moscow (MSK)' },\n ]\n },\n {\n label: 'Asia & Pacific',\n timezones: [\n { value: 'Asia/Dubai', label: 'Dubai (GST)' },\n { value: 'Asia/Kolkata', label: 'India (IST)' },\n { value: 'Asia/Singapore', label: 'Singapore (SGT)' },\n { value: 'Asia/Hong_Kong', label: 'Hong Kong (HKT)' },\n { value: 'Asia/Shanghai', label: 'Shanghai (CST)' },\n { value: 'Asia/Tokyo', label: 'Tokyo (JST)' },\n { value: 'Asia/Seoul', label: 'Seoul (KST)' },\n { value: 'Australia/Sydney', label: 'Sydney (AEST/AEDT)' },\n { value: 'Australia/Melbourne', label: 'Melbourne (AEST/AEDT)' },\n { value: 'Pacific/Auckland', label: 'Auckland (NZST/NZDT)' },\n ]\n },\n {\n label: 'Americas',\n timezones: [\n { value: 'America/Toronto', label: 'Toronto (EST/EDT)' },\n { value: 'America/Vancouver', label: 'Vancouver (PST/PDT)' },\n { value: 'America/Mexico_City', label: 'Mexico City (CST/CDT)' },\n { value: 'America/Sao_Paulo', label: 'São Paulo (BRT)' },\n { value: 'America/Buenos_Aires', label: 'Buenos Aires (ART)' },\n ]\n }\n ];\n\n function getTimezoneLabel(value: string): string {\n for (const group of timezoneGroups) {\n const tz = group.timezones.find(t => t.value === value);\n if (tz) return tz.label;\n }\n return value;\n }\n\n async function handleSave() {\n if (!organization) return;\n\n saving = true;\n try {\n await organizationState.updateTimezone(organization.id, selectedTimezone);\n authState.updateOrganizationTimezone(organization.id, selectedTimezone);\n toast.success('Successfully updated the Timezone', { position: 'top-center' });\n } catch (e: unknown) {\n const errorMessage = e instanceof Error ? e.message : 'Failed to update timezone';\n toast.error(errorMessage);\n } finally {\n saving = false;\n }\n }\n</script>\n\n<Card>\n <CardHeader>\n <CardTitle>Organization Details</CardTitle>\n <CardDescription>Information about your organization</CardDescription>\n </CardHeader>\n <CardContent class=\"space-y-4\">\n {#if organization}\n <div class=\"grid gap-4\">\n <div class=\"grid grid-cols-4 items-center gap-4\">\n <Label class=\"text-right text-muted-foreground\">Name</Label>\n <div class=\"col-span-3\">{organization.name}</div>\n </div>\n <div class=\"grid grid-cols-4 items-center gap-4\">\n <Label class=\"text-right text-muted-foreground\">Timezone</Label>\n <div class=\"col-span-3\">\n {#if canManage}\n <div class=\"flex items-center gap-2\">\n <Select.Root type=\"single\" bind:value={selectedTimezone}>\n <Select.Trigger class=\"w-[280px]\">\n {getTimezoneLabel(selectedTimezone)}\n </Select.Trigger>\n <Select.Content class=\"max-h-[300px]\">\n {#each timezoneGroups as group}\n <Select.Group>\n <Select.GroupHeading>{group.label}</Select.GroupHeading>\n {#each group.timezones as tz}\n <Select.Item value={tz.value}>{tz.label}</Select.Item>\n {/each}\n </Select.Group>\n {/each}\n </Select.Content>\n </Select.Root>\n {#if hasChanges}\n <Button onclick={handleSave} disabled={saving} size=\"sm\">\n {saving ? 'Saving...' : 'Save'}\n </Button>\n {/if}\n </div>\n <p class=\"text-xs text-muted-foreground mt-1\">\n All team members will see timestamps in this timezone\n </p>\n {:else}\n <span>{getTimezoneLabel(organization.timezone)}</span>\n {/if}\n </div>\n </div>\n </div>\n {:else}\n <p class=\"text-muted-foreground\">Organization information not available</p>\n {/if}\n </CardContent>\n</Card>\n","<script lang=\"ts\">\n import * as AlertDialog from \"$lib/components/ui/alert-dialog\";\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import * as Select from \"$lib/components/ui/select\";\n import { UserPlus } from \"@lucide/svelte\";\n import { toast } from 'svelte-sonner';\n import { organizationState } from '$lib/state/organization.svelte';\n\n interface Props {\n open: boolean;\n organizationId: number;\n }\n\n let { open = $bindable(), organizationId }: Props = $props();\n\n let email = $state('');\n let role = $state('user');\n let loading = $state(false);\n let error = $state('');\n\n const roleOptions = [\n { value: 'admin', label: 'Admin', description: 'Full access to projects and settings' },\n { value: 'user', label: 'User', description: 'Can view and modify projects' },\n { value: 'readonly', label: 'Read Only', description: 'Can only view projects' }\n ];\n\n async function handleSubmit() {\n if (!email) {\n error = 'Email is required';\n return;\n }\n\n loading = true;\n error = '';\n\n try {\n await organizationState.inviteUser(organizationId, email, role);\n toast.success('Invitation sent', { position: 'top-center' });\n email = '';\n role = 'user';\n open = false;\n } catch (e: unknown) {\n error = e instanceof Error ? e.message : 'Failed to send invitation';\n toast.error(error);\n } finally {\n loading = false;\n }\n }\n\n function handleOpenChange(isOpen: boolean) {\n if (!isOpen) {\n email = '';\n role = 'user';\n error = '';\n }\n open = isOpen;\n }\n</script>\n\n<AlertDialog.Root {open} onOpenChange={handleOpenChange}>\n <AlertDialog.Content class=\"max-w-md\">\n <AlertDialog.Header>\n <AlertDialog.Title>Invite Team Member</AlertDialog.Title>\n <AlertDialog.Description>\n Send an invitation to join your organization\n </AlertDialog.Description>\n </AlertDialog.Header>\n\n <form onsubmit={(e) => { e.preventDefault(); handleSubmit(); }} class=\"space-y-4 py-4\">\n <div class=\"space-y-2\">\n <Label for=\"email\">Email Address</Label>\n <Input\n id=\"email\"\n type=\"email\"\n bind:value={email}\n placeholder=\"[email protected]\"\n required\n />\n </div>\n\n <div class=\"space-y-2\">\n <Label for=\"role\">Role</Label>\n <Select.Root type=\"single\" bind:value={role}>\n <Select.Trigger class=\"w-full\">\n {roleOptions.find(r => r.value === role)?.label || 'Select role'}\n </Select.Trigger>\n <Select.Content>\n {#each roleOptions as roleOption}\n <Select.Item value={roleOption.value}>\n <div class=\"flex flex-col\">\n <span>{roleOption.label}</span>\n <span class=\"text-xs text-muted-foreground\">{roleOption.description}</span>\n </div>\n </Select.Item>\n {/each}\n </Select.Content>\n </Select.Root>\n </div>\n\n {#if error}\n <p class=\"text-sm text-destructive\">{error}</p>\n {/if}\n </form>\n\n <AlertDialog.Footer>\n <AlertDialog.Cancel disabled={loading}>Cancel</AlertDialog.Cancel>\n <Button onclick={handleSubmit} disabled={loading}>\n <UserPlus class=\"mr-2 h-4 w-4\" />\n {#if loading}\n Inviting...\n {:else}\n Invite User\n {/if}\n </Button>\n </AlertDialog.Footer>\n </AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n import { Button } from \"$lib/components/ui/button\";\n import { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import * as Table from \"$lib/components/ui/table\";\n import * as Select from \"$lib/components/ui/select\";\n import * as AlertDialog from \"$lib/components/ui/alert-dialog\";\n import { Badge } from \"$lib/components/ui/badge\";\n import { UserPlus, Trash2 } from \"@lucide/svelte\";\n import { toast } from 'svelte-sonner';\n import { organizationState, type OrganizationMember, type Invitation } from '$lib/state/organization.svelte';\n import { authState } from '$lib/state/auth.svelte';\n import InviteUserDialog from './invite-user-dialog.svelte';\n\n interface Props {\n organizationId: number;\n }\n\n let { organizationId }: Props = $props();\n\n let showInviteDialog = $state(false);\n let memberToRemove = $state<OrganizationMember | null>(null);\n let invitationToRevoke = $state<Invitation | null>(null);\n let processingRoleChange = $state<number | null>(null);\n\n const members = $derived(organizationState.members);\n const invitations = $derived(organizationState.invitations.filter(i => i.status === 'pending'));\n const canInvite = $derived(organizationState.canInvite);\n const isOwner = $derived(organizationState.isOwner);\n\n const roleOptions = [\n { value: 'admin', label: 'Admin' },\n { value: 'user', label: 'User' },\n { value: 'readonly', label: 'Read Only' }\n ];\n\n async function handleRoleChange(userId: number, newRole: string) {\n processingRoleChange = userId;\n try {\n await organizationState.updateMemberRole(organizationId, userId, newRole);\n toast.success('Role updated', { position: 'top-center' });\n } catch (e) {\n toast.error(e instanceof Error ? e.message : 'Failed to update role', { position: 'top-center' });\n } finally {\n processingRoleChange = null;\n }\n }\n\n async function handleRemoveMember() {\n if (!memberToRemove) return;\n\n try {\n await organizationState.removeMember(organizationId, memberToRemove.id);\n toast.success('Successfully removed the Member', { position: 'top-center' });\n } catch (e) {\n toast.error(e instanceof Error ? e.message : 'Failed to remove member');\n } finally {\n memberToRemove = null;\n }\n }\n\n async function handleRevokeInvitation() {\n if (!invitationToRevoke) return;\n\n try {\n await organizationState.revokeInvitation(organizationId, invitationToRevoke.id);\n toast.success('Successfully revoked the Invitation', { position: 'top-center' });\n } catch (e) {\n toast.error(e instanceof Error ? e.message : 'Failed to revoke invitation');\n } finally {\n invitationToRevoke = null;\n }\n }\n\n function canChangeRole(member: OrganizationMember): boolean {\n if (member.role === 'owner') return false;\n return true;\n }\n\n function canRemoveMember(member: OrganizationMember): boolean {\n return member.role !== 'owner';\n }\n\n function getRoleBadgeVariant(role: string): 'default' | 'secondary' | 'destructive' | 'outline' {\n switch (role) {\n case 'owner': return 'default';\n case 'admin': return 'secondary';\n case 'readonly': return 'outline';\n default: return 'outline';\n }\n }\n</script>\n\n<div class=\"space-y-6\">\n <Card class=\"pb-0\">\n <CardHeader class=\"flex flex-row items-center justify-between space-y-0 pb-4\">\n <div>\n <CardTitle>Team Members</CardTitle>\n <CardDescription>Manage your organization's team members</CardDescription>\n </div>\n <Button variant=\"outline\" onclick={() => showInviteDialog = true} disabled={!canInvite}>\n <UserPlus class=\"mr-2 h-4 w-4\" />\n Invite User\n </Button>\n </CardHeader>\n <CardContent class=\"p-0\">\n <Table.Root>\n <Table.Header>\n <Table.Row class=\"hover:bg-transparent\">\n <Table.Head>Name</Table.Head>\n <Table.Head>Email</Table.Head>\n <Table.Head>Role</Table.Head>\n <Table.Head>Status</Table.Head>\n <Table.Head class=\"w-[100px]\"></Table.Head>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each members as member}\n <Table.Row>\n <Table.Cell class=\"font-medium\">{member.name}</Table.Cell>\n <Table.Cell>{member.email}</Table.Cell>\n <Table.Cell>\n {#if canChangeRole(member) && member.role !== 'owner'}\n <Select.Root\n type=\"single\"\n value={member.role}\n onValueChange={(val) => val && handleRoleChange(member.id, val)}\n disabled={processingRoleChange === member.id || (!isOwner && member.role === 'admin')}\n >\n <Select.Trigger class=\"w-[130px]\">\n {roleOptions.find(r => r.value === member.role)?.label || member.role}\n </Select.Trigger>\n <Select.Content>\n {#each roleOptions as role}\n {#if isOwner || role.value !== 'admin'}\n <Select.Item value={role.value}>\n {role.label}\n </Select.Item>\n {/if}\n {/each}\n </Select.Content>\n </Select.Root>\n {:else}\n <Badge variant={getRoleBadgeVariant(member.role)}>\n {member.role === 'owner' ? 'Owner' :\n member.role === 'admin' ? 'Admin' :\n member.role === 'readonly' ? 'Read Only' : 'User'}\n </Badge>\n {/if}\n </Table.Cell>\n <Table.Cell>\n <Badge variant=\"outline\" class=\"bg-green-50 text-green-700 border-green-200 dark:bg-green-950 dark:text-green-400 dark:border-green-900\">\n Active\n </Badge>\n </Table.Cell>\n <Table.Cell>\n {#if canRemoveMember(member)}\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onclick={() => memberToRemove = member}\n >\n <Trash2 class=\"h-4 w-4 text-destructive\" />\n </Button>\n {/if}\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n </Table.Root>\n </CardContent>\n </Card>\n\n {#if invitations.length > 0}\n <Card class=\"pb-0\">\n <CardHeader>\n <CardTitle>Pending Invitations</CardTitle>\n <CardDescription>Invitations that have not yet been accepted</CardDescription>\n </CardHeader>\n <CardContent class=\"p-0\">\n <Table.Root>\n <Table.Header>\n <Table.Row class=\"hover:bg-transparent\">\n <Table.Head>Email</Table.Head>\n <Table.Head>Role</Table.Head>\n <Table.Head>Invited By</Table.Head>\n <Table.Head>Status</Table.Head>\n <Table.Head class=\"w-[100px]\"></Table.Head>\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each invitations as invitation}\n <Table.Row>\n <Table.Cell class=\"font-medium\">{invitation.email}</Table.Cell>\n <Table.Cell>\n <Badge variant=\"outline\">\n {invitation.role === 'admin' ? 'Admin' :\n invitation.role === 'readonly' ? 'Read Only' : 'User'}\n </Badge>\n </Table.Cell>\n <Table.Cell>{invitation.inviterName}</Table.Cell>\n <Table.Cell>\n <Badge variant=\"outline\" class=\"bg-yellow-50 text-yellow-700 border-yellow-200\">\n Invited\n </Badge>\n </Table.Cell>\n <Table.Cell>\n <Button\n variant=\"ghost\"\n size=\"icon\"\n onclick={() => invitationToRevoke = invitation}\n >\n <Trash2 class=\"h-4 w-4 text-destructive\" />\n </Button>\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n </Table.Root>\n </CardContent>\n </Card>\n {/if}\n</div>\n\n<InviteUserDialog\n bind:open={showInviteDialog}\n {organizationId}\n/>\n\n<AlertDialog.Root open={memberToRemove !== null} onOpenChange={(open) => { if (!open) memberToRemove = null; }}>\n <AlertDialog.Content>\n <AlertDialog.Header>\n <AlertDialog.Title>Remove Team Member</AlertDialog.Title>\n <AlertDialog.Description>\n Are you sure you want to remove {memberToRemove?.name} from this organization?\n They will lose access to all projects.\n </AlertDialog.Description>\n </AlertDialog.Header>\n <AlertDialog.Footer>\n <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>\n <AlertDialog.Action onclick={handleRemoveMember}>\n Remove\n </AlertDialog.Action>\n </AlertDialog.Footer>\n </AlertDialog.Content>\n</AlertDialog.Root>\n\n<AlertDialog.Root open={invitationToRevoke !== null} onOpenChange={(open) => { if (!open) invitationToRevoke = null; }}>\n <AlertDialog.Content>\n <AlertDialog.Header>\n <AlertDialog.Title>Revoke Invitation</AlertDialog.Title>\n <AlertDialog.Description>\n Are you sure you want to revoke the invitation for {invitationToRevoke?.email}?\n </AlertDialog.Description>\n </AlertDialog.Header>\n <AlertDialog.Footer>\n <AlertDialog.Cancel>Cancel</AlertDialog.Cancel>\n <AlertDialog.Action onclick={handleRevokeInvitation}>\n Revoke\n </AlertDialog.Action>\n </AlertDialog.Footer>\n </AlertDialog.Content>\n</AlertDialog.Root>\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState } from '$lib/state/projects.svelte';\n import { organizationState } from '$lib/state/organization.svelte';\n import OrganizationTab from './organization-tab.svelte';\n import UsersTab from './users-tab.svelte';\n import type { Component } from 'svelte';\n import { LoadingCircle } from '$lib/components/ui/loading-circle';\n\n let loading = $state(true);\n let error = $state<string | null>(null);\n let BillingTab = $state<Component<{ organizationId: number }> | null>(null);\n\n async function loadBillingModule() {\n try {\n // @ts-ignore - $billing alias only exists when billing extension is available\n const module = await import('$billing/billing-tab.svelte');\n BillingTab = module.default;\n } catch {\n // Billing extension not available - this is expected for open source builds\n }\n }\n\n $effect(() => {\n loadBillingModule();\n });\n\n const currentOrganizationId = $derived(projectsState.currentProject?.organizationId);\n\n const hasAccess = $derived(\n currentOrganizationId !== null &&\n currentOrganizationId !== undefined &&\n authState.canManageOrganization(currentOrganizationId)\n );\n\n $effect(() => {\n if (!hasAccess && !loading) {\n goto('/');\n }\n });\n\n $effect(() => {\n if (currentOrganizationId && hasAccess) {\n loading = true;\n organizationState.loadSettings(currentOrganizationId)\n .catch(e => {\n error = e instanceof Error ? e.message : 'Failed to load settings';\n })\n .finally(() => {\n loading = false;\n });\n }\n });\n</script>\n\n<div class=\"space-y-6\">\n <div>\n <h1 class=\"text-2xl font-semibold tracking-tight\">Settings</h1>\n </div>\n\n {#if loading}\n <div class=\"flex items-center justify-center py-12\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else if error}\n <div class=\"text-center py-12 text-destructive\">\n {error}\n </div>\n {:else}\n <div class=\"space-y-6\">\n <OrganizationTab />\n <UsersTab organizationId={currentOrganizationId!} />\n {#if BillingTab}\n <BillingTab organizationId={currentOrganizationId!} />\n {/if}\n </div>\n {/if}\n</div>\n"],"file":"26.C8KWbgUk.js"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/26.DBjX66dN.js b/backend/static/frontend/_app/immutable/nodes/26.DBjX66dN.js
deleted file mode 100644
index a1304214..00000000
--- a/backend/static/frontend/_app/immutable/nodes/26.DBjX66dN.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import{_ as Wt}from"../chunks/PPVm8Dsz.js";import{p as Ve,i as Se,r as qe,s as rt}from"../chunks/DMODTt3n.js";import{K as Qt,p as Oe,d as x,c as o,b as e,a as Ue,m as et,g as t,u as N,f as $,e as Z,o as Pt,r as q,h as te,i as v,v as it,F as Xe,n as i,t as d,s,k as W,l as H,j as Xt}from"../chunks/B2WdN-7r.js";import{c as a}from"../chunks/BAcG0-U_.js";import{g as er}from"../chunks/xR3pK9Ey.js";import{a as Fe,b as jt,t as ke,p as tr}from"../chunks/D6S6XYVy.js";import{e as Ne,i as Ke}from"../chunks/CMyj8Fzw.js";import{C as dt,a as ut,b as vt}from"../chunks/BHR29ZVu.js";import{C as ct}from"../chunks/BKHeGn2e.js";import{C as $t}from"../chunks/KAiF5-Ht.js";import{L as tt}from"../chunks/Ba_8xUad.js";import{b as rr,B as Ze}from"../chunks/C1aqwstW.js";import{S as xt,a as yt,c as St,b as Tt}from"../chunks/CzIIBX62.js";import{b as ar,d as At}from"../chunks/DH0tcjsQ.js";import{S as or,a as sr}from"../chunks/DCLDG_bE.js";import{T as We,b as Mt,a as Ie,c as kt}from"../chunks/CeOjHHJH.js";import{T as Ot,a as Me}from"../chunks/CEJkX7WU.js";import{A as ft,a as _t,b as gt,c as mt,d as pt,e as ht}from"../chunks/CtIWnZub.js";import{e as lr}from"../chunks/m9wcLEvn.js";import{c as nr,b as Ut,m as ir}from"../chunks/DWAABZDo.js";import{A as bt,T as Bt}from"../chunks/uoQG1kt6.js";import{B as Qe}from"../chunks/Ci5jf6Wy.js";import{I as dr}from"../chunks/D8CWOmhn.js";import{I as ur}from"../chunks/Bv_PbELb.js";import{L as vr}from"../chunks/D0pIT200.js";var cr=$("<button><!></button>");function $r(re,r){const l=Qt();Oe(r,!0);let m=Ve(r,"id",19,()=>nr(l)),u=Ve(r,"ref",15,null),B=qe(r,["$$slots","$$events","$$legacy","children","child","id","ref"]);const A=lr.create({id:Ut(()=>m()),ref:Ut(()=>u(),f=>u(f))}),K=N(()=>ir(B,A.props));var Y=x(),ae=o(Y);{var oe=f=>{var j=x(),ge=o(j);et(ge,()=>r.child,()=>({props:t(K)})),e(f,j)},ue=f=>{var j=cr();ar(j,()=>({...t(K)}));var ge=Z(j);et(ge,()=>r.children??Pt),q(j),e(f,j)};Se(ae,f=>{r.child?f(oe):f(ue,!1)})}e(re,Y),Ue()}function Lt(re,r){Oe(r,!0);let l=qe(r,["$$slots","$$events","$$legacy"]);const m=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["circle",{cx:"9",cy:"7",r:"4"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11"}]];ur(re,rt({name:"user-plus"},()=>l,{get iconNode(){return m},children:(u,B)=>{var A=x(),K=o(A);et(K,()=>r.children??Pt),e(u,A)},$$slots:{default:!0}})),Ue()}function fr(re,r){Oe(r,!0);let l=Ve(r,"ref",15,null),m=qe(r,["$$slots","$$events","$$legacy","ref","class"]);var u=x(),B=o(u);{let A=N(()=>At("[&:not(:first-child)]:mt-1 [&:not(:first-child)]:border-t [&:not(:first-child)]:border-hair [&:not(:first-child)]:pt-1",r.class));a(B,()=>or,(K,Y)=>{Y(K,rt({"data-slot":"select-group",get class(){return t(A)}},()=>m,{get ref(){return l()},set ref(ae){l(ae)}}))})}e(re,u),Ue()}function _r(re,r){Oe(r,!0);let l=Ve(r,"ref",15,null),m=qe(r,["$$slots","$$events","$$legacy","ref","class","children"]);var u=x(),B=o(u);{let A=N(()=>At("text-muted-foreground px-2 py-1.5 text-[11px] font-medium uppercase tracking-wider",r.class));a(B,()=>sr,(K,Y)=>{Y(K,rt({"data-slot":"select-group-heading",get class(){return t(A)}},()=>m,{get ref(){return l()},set ref(ae){l(ae)},children:(ae,oe)=>{var ue=x(),f=o(ue);et(f,()=>r.children??Pt),e(ae,ue)},$$slots:{default:!0}}))})}e(re,u),Ue()}function Dt(re,r){Oe(r,!0);let l=Ve(r,"ref",15,null),m=qe(r,["$$slots","$$events","$$legacy","ref","class"]);var u=x(),B=o(u);{let A=N(()=>At(rr(),r.class));a(B,()=>$r,(K,Y)=>{Y(K,rt({get class(){return t(A)}},()=>m,{get ref(){return l()},set ref(ae){l(ae)}}))})}e(re,u),Ue()}const gr=!1,Ia=Object.freeze(Object.defineProperty({__proto__:null,prerender:gr},Symbol.toStringTag,{value:"Module"}));class mr{#e=te(null);get currentOrganization(){return t(this.#e)}set currentOrganization(r){v(this.#e,r,!0)}#t=te(it([]));get members(){return t(this.#t)}set members(r){v(this.#t,r,!0)}#r=te(it([]));get invitations(){return t(this.#r)}set invitations(r){v(this.#r,r,!0)}#a=te(!1);get loading(){return t(this.#a)}set loading(r){v(this.#a,r,!0)}#o=te(null);get error(){return t(this.#o)}set error(r){v(this.#o,r,!0)}#s=te(null);get userRole(){return t(this.#s)}set userRole(r){v(this.#s,r,!0)}#l=N(()=>this.userRole==="owner");get isOwner(){return t(this.#l)}set isOwner(r){v(this.#l,r)}#n=N(()=>this.userRole==="admin");get isAdmin(){return t(this.#n)}set isAdmin(r){v(this.#n,r)}#i=N(()=>this.userRole==="owner"||this.userRole==="admin");get canManage(){return t(this.#i)}set canManage(r){v(this.#i,r)}#d=N(()=>this.members.length+this.invitations.filter(r=>r.status==="pending").length);get memberCount(){return t(this.#d)}set memberCount(r){v(this.#d,r)}#u=N(()=>this.memberCount<10);get canInvite(){return t(this.#u)}set canInvite(r){v(this.#u,r)}async loadSettings(r){this.loading=!0,this.error=null;try{const l=await Fe.get(`/organizations/${r}/settings`);this.currentOrganization=l.organization,this.members=l.members,this.invitations=l.invitations,this.userRole=l.userRole}catch(l){const m=l instanceof Error?l.message:"Failed to load settings";this.error=m}finally{this.loading=!1}}async inviteUser(r,l,m){const u=await Fe.post(`/organizations/${r}/invitations`,{email:l,role:m});return await this.loadSettings(r),u}async revokeInvitation(r,l){await Fe.delete(`/organizations/${r}/invitations/${l}`),await this.loadSettings(r)}async updateMemberRole(r,l,m){await Fe.put(`/organizations/${r}/members/${l}`,{role:m}),await this.loadSettings(r)}async removeMember(r,l){await Fe.delete(`/organizations/${r}/members/${l}`),await this.loadSettings(r)}async updateTimezone(r,l){await Fe.put(`/organizations/${r}/settings`,{timezone:l}),this.currentOrganization&&(this.currentOrganization={...this.currentOrganization,timezone:l})}clear(){this.currentOrganization=null,this.members=[],this.invitations=[],this.userRole=null,this.error=null}}const Ee=new mr;var pr=$("<!> <!>",1),hr=$("<!> <!>",1),br=$("<!> <!>",1),Pr=$('<div class="flex items-center gap-2"><!> <!></div> <p class="text-xs text-muted-foreground mt-1">All team members will see timestamps in this timezone</p>',1),xr=$("<span> </span>"),yr=$('<div class="grid gap-4"><div class="grid grid-cols-4 items-center gap-4"><!> <div class="col-span-3"> </div></div> <div class="grid grid-cols-4 items-center gap-4"><!> <div class="col-span-3"><!></div></div></div>'),Sr=$('<p class="text-muted-foreground">Organization information not available</p>'),Tr=$("<!> <!>",1);function Ar(re,r){Oe(r,!0);const l=N(()=>Ee.currentOrganization),m=N(()=>Ee.canManage);let u=te(it(t(l)?.timezone||"UTC")),B=te(!1);Xe(()=>{t(l)?.timezone&&v(u,t(l).timezone,!0)});const A=N(()=>t(u)!==t(l)?.timezone),K=[{label:"Common",timezones:[{value:"UTC",label:"UTC (Coordinated Universal Time)"},{value:"America/New_York",label:"US Eastern (New York)"},{value:"America/Chicago",label:"US Central (Chicago)"},{value:"America/Denver",label:"US Mountain (Denver)"},{value:"America/Los_Angeles",label:"US Pacific (Los Angeles)"}]},{label:"Europe",timezones:[{value:"Europe/London",label:"London (GMT/BST)"},{value:"Europe/Paris",label:"Paris (CET/CEST)"},{value:"Europe/Berlin",label:"Berlin (CET/CEST)"},{value:"Europe/Belgrade",label:"Belgrade (CET/CEST)"},{value:"Europe/Amsterdam",label:"Amsterdam (CET/CEST)"},{value:"Europe/Stockholm",label:"Stockholm (CET/CEST)"},{value:"Europe/Zurich",label:"Zurich (CET/CEST)"},{value:"Europe/Madrid",label:"Madrid (CET/CEST)"},{value:"Europe/Rome",label:"Rome (CET/CEST)"},{value:"Europe/Athens",label:"Athens (EET/EEST)"},{value:"Europe/Moscow",label:"Moscow (MSK)"}]},{label:"Asia & Pacific",timezones:[{value:"Asia/Dubai",label:"Dubai (GST)"},{value:"Asia/Kolkata",label:"India (IST)"},{value:"Asia/Singapore",label:"Singapore (SGT)"},{value:"Asia/Hong_Kong",label:"Hong Kong (HKT)"},{value:"Asia/Shanghai",label:"Shanghai (CST)"},{value:"Asia/Tokyo",label:"Tokyo (JST)"},{value:"Asia/Seoul",label:"Seoul (KST)"},{value:"Australia/Sydney",label:"Sydney (AEST/AEDT)"},{value:"Australia/Melbourne",label:"Melbourne (AEST/AEDT)"},{value:"Pacific/Auckland",label:"Auckland (NZST/NZDT)"}]},{label:"Americas",timezones:[{value:"America/Toronto",label:"Toronto (EST/EDT)"},{value:"America/Vancouver",label:"Vancouver (PST/PDT)"},{value:"America/Mexico_City",label:"Mexico City (CST/CDT)"},{value:"America/Sao_Paulo",label:"São Paulo (BRT)"},{value:"America/Buenos_Aires",label:"Buenos Aires (ART)"}]}];function Y(oe){for(const ue of K){const f=ue.timezones.find(j=>j.value===oe);if(f)return f.label}return oe}async function ae(){if(t(l)){v(B,!0);try{await Ee.updateTimezone(t(l).id,t(u)),jt.updateOrganizationTimezone(t(l).id,t(u)),ke.success("Successfully updated the Timezone",{position:"top-center"})}catch(oe){const ue=oe instanceof Error?oe.message:"Failed to update timezone";ke.error(ue)}finally{v(B,!1)}}}dt(re,{children:(oe,ue)=>{var f=Tr(),j=o(f);ut(j,{children:(Be,De)=>{var le=pr(),se=o(le);vt(se,{children:(Te,pe)=>{i();var ne=d("Organization Details");e(Te,ne)},$$slots:{default:!0}});var me=s(se,2);$t(me,{children:(Te,pe)=>{i();var ne=d("Information about your organization");e(Te,ne)},$$slots:{default:!0}}),e(Be,le)},$$slots:{default:!0}});var ge=s(j,2);ct(ge,{class:"space-y-4",children:(Be,De)=>{var le=x(),se=o(le);{var me=pe=>{var ne=yr(),he=Z(ne),Ae=Z(he);tt(Ae,{class:"text-right text-muted-foreground",children:(R,c)=>{i();var w=d("Name");e(R,w)},$$slots:{default:!0}});var _=s(Ae,2),ve=Z(_,!0);q(_),q(he);var ie=s(he,2),J=Z(ie);tt(J,{class:"text-right text-muted-foreground",children:(R,c)=>{i();var w=d("Timezone");e(R,w)},$$slots:{default:!0}});var we=s(J,2),ce=Z(we);{var be=R=>{var c=Pr(),w=o(c),h=Z(w);a(h,()=>Tt,(b,D)=>{D(b,{type:"single",get value(){return t(u)},set value(y){v(u,y,!0)},children:(y,k)=>{var p=br(),I=o(p);a(I,()=>xt,(g,T)=>{T(g,{class:"w-[280px]",children:(n,C)=>{i();var P=d();W(Pe=>H(P,Pe),[()=>Y(t(u))]),e(n,P)},$$slots:{default:!0}})});var S=s(I,2);a(S,()=>yt,(g,T)=>{T(g,{class:"max-h-[300px]",children:(n,C)=>{var P=x(),Pe=o(P);Ne(Pe,17,()=>K,Ke,(xe,_e)=>{var ze=x(),fe=o(ze);a(fe,()=>fr,(de,G)=>{G(de,{children:(z,O)=>{var Q=hr(),U=o(Q);a(U,()=>_r,(L,X)=>{X(L,{children:(F,ee)=>{i();var ye=d();W(()=>H(ye,t(_e).label)),e(F,ye)},$$slots:{default:!0}})});var E=s(U,2);Ne(E,17,()=>t(_e).timezones,Ke,(L,X)=>{var F=x(),ee=o(F);a(ee,()=>St,(ye,Ce)=>{Ce(ye,{get value(){return t(X).value},children:(Re,je)=>{i();var Le=d();W(()=>H(Le,t(X).label)),e(Re,Le)},$$slots:{default:!0}})}),e(L,F)}),e(z,Q)},$$slots:{default:!0}})}),e(xe,ze)}),e(n,P)},$$slots:{default:!0}})}),e(y,p)},$$slots:{default:!0}})});var V=s(h,2);{var M=b=>{Ze(b,{onclick:ae,get disabled(){return t(B)},size:"sm",children:(D,y)=>{i();var k=d();W(()=>H(k,t(B)?"Saving...":"Save")),e(D,k)},$$slots:{default:!0}})};Se(V,b=>{t(A)&&b(M)})}q(w),i(2),e(R,c)},$e=R=>{var c=xr(),w=Z(c,!0);q(c),W(h=>H(w,h),[()=>Y(t(l).timezone)]),e(R,c)};Se(ce,R=>{t(m)?R(be):R($e,!1)})}q(we),q(ie),q(ne),W(()=>H(ve,t(l).name)),e(pe,ne)},Te=pe=>{var ne=Sr();e(pe,ne)};Se(se,pe=>{t(l)?pe(me):pe(Te,!1)})}e(Be,le)},$$slots:{default:!0}}),e(oe,f)},$$slots:{default:!0}}),Ue()}var wr=$("<!> <!>",1),zr=$('<div class="flex flex-col"><span> </span> <span class="text-xs text-muted-foreground"> </span></div>'),Cr=$("<!> <!>",1),Er=$('<p class="text-sm text-destructive"> </p>'),Rr=$("<!> <!>",1),Ir=$("<!> <!>",1),Mr=$('<!> <form class="space-y-4 py-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <!></form> <!>',1);function kr(re,r){Oe(r,!0);let l=Ve(r,"open",15),m=te(""),u=te("user"),B=te(!1),A=te("");const K=[{value:"admin",label:"Admin",description:"Full access to projects and settings"},{value:"user",label:"User",description:"Can view and modify projects"},{value:"readonly",label:"Read Only",description:"Can only view projects"}];async function Y(){if(!t(m)){v(A,"Email is required");return}v(B,!0),v(A,"");try{await Ee.inviteUser(r.organizationId,t(m),t(u)),ke.success("Invitation sent",{position:"top-center"}),v(m,""),v(u,"user"),l(!1)}catch(f){v(A,f instanceof Error?f.message:"Failed to send invitation",!0),ke.error(t(A))}finally{v(B,!1)}}function ae(f){f||(v(m,""),v(u,"user"),v(A,"")),l(f)}var oe=x(),ue=o(oe);a(ue,()=>ht,(f,j)=>{j(f,{get open(){return l()},onOpenChange:ae,children:(ge,Be)=>{var De=x(),le=o(De);a(le,()=>ft,(se,me)=>{me(se,{class:"max-w-md",children:(Te,pe)=>{var ne=Mr(),he=o(ne);a(he,()=>_t,(c,w)=>{w(c,{children:(h,V)=>{var M=wr(),b=o(M);a(b,()=>gt,(y,k)=>{k(y,{children:(p,I)=>{i();var S=d("Invite Team Member");e(p,S)},$$slots:{default:!0}})});var D=s(b,2);a(D,()=>mt,(y,k)=>{k(y,{children:(p,I)=>{i();var S=d("Send an invitation to join your organization");e(p,S)},$$slots:{default:!0}})}),e(h,M)},$$slots:{default:!0}})});var Ae=s(he,2),_=Z(Ae),ve=Z(_);tt(ve,{for:"email",children:(c,w)=>{i();var h=d("Email Address");e(c,h)},$$slots:{default:!0}});var ie=s(ve,2);dr(ie,{id:"email",type:"email",placeholder:"[email protected]",required:!0,get value(){return t(m)},set value(c){v(m,c,!0)}}),q(_);var J=s(_,2),we=Z(J);tt(we,{for:"role",children:(c,w)=>{i();var h=d("Role");e(c,h)},$$slots:{default:!0}});var ce=s(we,2);a(ce,()=>Tt,(c,w)=>{w(c,{type:"single",get value(){return t(u)},set value(h){v(u,h,!0)},children:(h,V)=>{var M=Cr(),b=o(M);a(b,()=>xt,(y,k)=>{k(y,{class:"w-full",children:(p,I)=>{i();var S=d();W(g=>H(S,g),[()=>K.find(g=>g.value===t(u))?.label||"Select role"]),e(p,S)},$$slots:{default:!0}})});var D=s(b,2);a(D,()=>yt,(y,k)=>{k(y,{children:(p,I)=>{var S=x(),g=o(S);Ne(g,17,()=>K,Ke,(T,n)=>{var C=x(),P=o(C);a(P,()=>St,(Pe,xe)=>{xe(Pe,{get value(){return t(n).value},children:(_e,ze)=>{var fe=zr(),de=Z(fe),G=Z(de,!0);q(de);var z=s(de,2),O=Z(z,!0);q(z),q(fe),W(()=>{H(G,t(n).label),H(O,t(n).description)}),e(_e,fe)},$$slots:{default:!0}})}),e(T,C)}),e(p,S)},$$slots:{default:!0}})}),e(h,M)},$$slots:{default:!0}})}),q(J);var be=s(J,2);{var $e=c=>{var w=Er(),h=Z(w,!0);q(w),W(()=>H(h,t(A))),e(c,w)};Se(be,c=>{t(A)&&c($e)})}q(Ae);var R=s(Ae,2);a(R,()=>pt,(c,w)=>{w(c,{children:(h,V)=>{var M=Ir(),b=o(M);a(b,()=>bt,(y,k)=>{k(y,{get disabled(){return t(B)},children:(p,I)=>{i();var S=d("Cancel");e(p,S)},$$slots:{default:!0}})});var D=s(b,2);Ze(D,{onclick:Y,get disabled(){return t(B)},children:(y,k)=>{var p=Rr(),I=o(p);Lt(I,{class:"mr-2 h-4 w-4"});var S=s(I,2);{var g=n=>{var C=d("Inviting...");e(n,C)},T=n=>{var C=d("Invite User");e(n,C)};Se(S,n=>{t(B)?n(g):n(T,!1)})}e(y,p)},$$slots:{default:!0}}),e(h,M)},$$slots:{default:!0}})}),Xt("submit",Ae,c=>{c.preventDefault(),Y()}),e(Te,ne)},$$slots:{default:!0}})}),e(ge,De)},$$slots:{default:!0}})}),e(re,oe),Ue()}var Or=$("<!> Invite User",1),Ur=$("<div><!> <!></div> <!>",1),Br=$("<!> <!> <!> <!> <!>",1),Dr=$("<!> <!>",1),jr=$("<!> <!> <!> <!> <!>",1),Lr=$("<!> <!>",1),Fr=$("<!> <!>",1),Nr=$("<!> <!>",1),Kr=$("<!> <!> <!> <!> <!>",1),Vr=$("<!> <!> <!> <!> <!>",1),Gr=$("<!> <!>",1),Hr=$("<!> <!>",1),Zr=$("<!> <!>",1),qr=$("<!> <!>",1),Yr=$("<!> <!>",1),Jr=$("<!> <!>",1),Wr=$("<!> <!>",1),Qr=$("<!> <!>",1),Xr=$('<div class="space-y-6"><!> <!></div> <!> <!> <!>',1);function ea(re,r){Oe(r,!0);let l=te(!1),m=te(null),u=te(null),B=te(null);const A=N(()=>Ee.members),K=N(()=>Ee.invitations.filter(_=>_.status==="pending")),Y=N(()=>Ee.canInvite),ae=N(()=>Ee.isOwner),oe=[{value:"admin",label:"Admin"},{value:"user",label:"User"},{value:"readonly",label:"Read Only"}];async function ue(_,ve){v(B,_,!0);try{await Ee.updateMemberRole(r.organizationId,_,ve),ke.success("Role updated",{position:"top-center"})}catch(ie){ke.error(ie instanceof Error?ie.message:"Failed to update role",{position:"top-center"})}finally{v(B,null)}}async function f(){if(t(m))try{await Ee.removeMember(r.organizationId,t(m).id),ke.success("Successfully removed the Member",{position:"top-center"})}catch(_){ke.error(_ instanceof Error?_.message:"Failed to remove member")}finally{v(m,null)}}async function j(){if(t(u))try{await Ee.revokeInvitation(r.organizationId,t(u).id),ke.success("Successfully revoked the Invitation",{position:"top-center"})}catch(_){ke.error(_ instanceof Error?_.message:"Failed to revoke invitation")}finally{v(u,null)}}function ge(_){return _.role!=="owner"}function Be(_){return _.role!=="owner"}function De(_){switch(_){case"owner":return"default";case"admin":return"secondary";case"readonly":return"outline";default:return"outline"}}var le=Xr(),se=o(le),me=Z(se);dt(me,{class:"pb-0",children:(_,ve)=>{var ie=Fr(),J=o(ie);ut(J,{class:"flex flex-row items-center justify-between space-y-0 pb-4",children:(ce,be)=>{var $e=Ur(),R=o($e),c=Z(R);vt(c,{children:(V,M)=>{i();var b=d("Team Members");e(V,b)},$$slots:{default:!0}});var w=s(c,2);$t(w,{children:(V,M)=>{i();var b=d("Manage your organization's team members");e(V,b)},$$slots:{default:!0}}),q(R);var h=s(R,2);{let V=N(()=>!t(Y));Ze(h,{variant:"outline",onclick:()=>v(l,!0),get disabled(){return t(V)},children:(M,b)=>{var D=Or(),y=o(D);Lt(y,{class:"mr-2 h-4 w-4"}),i(),e(M,D)},$$slots:{default:!0}})}e(ce,$e)},$$slots:{default:!0}});var we=s(J,2);ct(we,{class:"p-0",children:(ce,be)=>{var $e=x(),R=o($e);a(R,()=>kt,(c,w)=>{w(c,{children:(h,V)=>{var M=Lr(),b=o(M);a(b,()=>Ot,(y,k)=>{k(y,{children:(p,I)=>{var S=x(),g=o(S);a(g,()=>We,(T,n)=>{n(T,{class:"hover:bg-transparent",children:(C,P)=>{var Pe=Br(),xe=o(Pe);a(xe,()=>Me,(G,z)=>{z(G,{children:(O,Q)=>{i();var U=d("Name");e(O,U)},$$slots:{default:!0}})});var _e=s(xe,2);a(_e,()=>Me,(G,z)=>{z(G,{children:(O,Q)=>{i();var U=d("Email");e(O,U)},$$slots:{default:!0}})});var ze=s(_e,2);a(ze,()=>Me,(G,z)=>{z(G,{children:(O,Q)=>{i();var U=d("Role");e(O,U)},$$slots:{default:!0}})});var fe=s(ze,2);a(fe,()=>Me,(G,z)=>{z(G,{children:(O,Q)=>{i();var U=d("Status");e(O,U)},$$slots:{default:!0}})});var de=s(fe,2);a(de,()=>Me,(G,z)=>{z(G,{class:"w-[100px]"})}),e(C,Pe)},$$slots:{default:!0}})}),e(p,S)},$$slots:{default:!0}})});var D=s(b,2);a(D,()=>Mt,(y,k)=>{k(y,{children:(p,I)=>{var S=x(),g=o(S);Ne(g,17,()=>t(A),Ke,(T,n)=>{var C=x(),P=o(C);a(P,()=>We,(Pe,xe)=>{xe(Pe,{children:(_e,ze)=>{var fe=jr(),de=o(fe);a(de,()=>Ie,(U,E)=>{E(U,{class:"font-medium",children:(L,X)=>{i();var F=d();W(()=>H(F,t(n).name)),e(L,F)},$$slots:{default:!0}})});var G=s(de,2);a(G,()=>Ie,(U,E)=>{E(U,{children:(L,X)=>{i();var F=d();W(()=>H(F,t(n).email)),e(L,F)},$$slots:{default:!0}})});var z=s(G,2);a(z,()=>Ie,(U,E)=>{E(U,{children:(L,X)=>{var F=x(),ee=o(F);{var ye=Re=>{var je=x(),Le=o(je);{let wt=N(()=>t(B)===t(n).id||!t(ae)&&t(n).role==="admin");a(Le,()=>Tt,(Ye,Ft)=>{Ft(Ye,{type:"single",get value(){return t(n).role},onValueChange:Je=>Je&&ue(t(n).id,Je),get disabled(){return t(wt)},children:(Je,sa)=>{var zt=Dr(),Ct=o(zt);a(Ct,()=>xt,(at,ot)=>{ot(at,{class:"w-[130px]",children:(st,Kt)=>{i();var Ge=d();W(He=>H(Ge,He),[()=>oe.find(He=>He.value===t(n).role)?.label||t(n).role]),e(st,Ge)},$$slots:{default:!0}})});var Nt=s(Ct,2);a(Nt,()=>yt,(at,ot)=>{ot(at,{children:(st,Kt)=>{var Ge=x(),He=o(Ge);Ne(He,17,()=>oe,Ke,(Vt,lt)=>{var Et=x(),Gt=o(Et);{var Ht=nt=>{var Rt=x(),Zt=o(Rt);a(Zt,()=>St,(qt,Yt)=>{Yt(qt,{get value(){return t(lt).value},children:(Jt,la)=>{i();var It=d();W(()=>H(It,t(lt).label)),e(Jt,It)},$$slots:{default:!0}})}),e(nt,Rt)};Se(Gt,nt=>{(t(ae)||t(lt).value!=="admin")&&nt(Ht)})}e(Vt,Et)}),e(st,Ge)},$$slots:{default:!0}})}),e(Je,zt)},$$slots:{default:!0}})})}e(Re,je)},Ce=Re=>{{let je=N(()=>De(t(n).role));Qe(Re,{get variant(){return t(je)},children:(Le,wt)=>{i();var Ye=d();W(()=>H(Ye,t(n).role==="owner"?"Owner":t(n).role==="admin"?"Admin":t(n).role==="readonly"?"Read Only":"User")),e(Le,Ye)},$$slots:{default:!0}})}};Se(ee,Re=>{ge(t(n))&&t(n).role!=="owner"?Re(ye):Re(Ce,!1)})}e(L,F)},$$slots:{default:!0}})});var O=s(z,2);a(O,()=>Ie,(U,E)=>{E(U,{children:(L,X)=>{Qe(L,{variant:"outline",class:"bg-green-50 text-green-700 border-green-200 dark:bg-green-950 dark:text-green-400 dark:border-green-900",children:(F,ee)=>{i();var ye=d("Active");e(F,ye)},$$slots:{default:!0}})},$$slots:{default:!0}})});var Q=s(O,2);a(Q,()=>Ie,(U,E)=>{E(U,{children:(L,X)=>{var F=x(),ee=o(F);{var ye=Ce=>{Ze(Ce,{variant:"ghost",size:"icon",onclick:()=>v(m,t(n),!0),children:(Re,je)=>{Bt(Re,{class:"h-4 w-4 text-destructive"})},$$slots:{default:!0}})};Se(ee,Ce=>{Be(t(n))&&Ce(ye)})}e(L,F)},$$slots:{default:!0}})}),e(_e,fe)},$$slots:{default:!0}})}),e(T,C)}),e(p,S)},$$slots:{default:!0}})}),e(h,M)},$$slots:{default:!0}})}),e(ce,$e)},$$slots:{default:!0}}),e(_,ie)},$$slots:{default:!0}});var Te=s(me,2);{var pe=_=>{dt(_,{class:"pb-0",children:(ve,ie)=>{var J=Hr(),we=o(J);ut(we,{children:(be,$e)=>{var R=Nr(),c=o(R);vt(c,{children:(h,V)=>{i();var M=d("Pending Invitations");e(h,M)},$$slots:{default:!0}});var w=s(c,2);$t(w,{children:(h,V)=>{i();var M=d("Invitations that have not yet been accepted");e(h,M)},$$slots:{default:!0}}),e(be,R)},$$slots:{default:!0}});var ce=s(we,2);ct(ce,{class:"p-0",children:(be,$e)=>{var R=x(),c=o(R);a(c,()=>kt,(w,h)=>{h(w,{children:(V,M)=>{var b=Gr(),D=o(b);a(D,()=>Ot,(k,p)=>{p(k,{children:(I,S)=>{var g=x(),T=o(g);a(T,()=>We,(n,C)=>{C(n,{class:"hover:bg-transparent",children:(P,Pe)=>{var xe=Kr(),_e=o(xe);a(_e,()=>Me,(z,O)=>{O(z,{children:(Q,U)=>{i();var E=d("Email");e(Q,E)},$$slots:{default:!0}})});var ze=s(_e,2);a(ze,()=>Me,(z,O)=>{O(z,{children:(Q,U)=>{i();var E=d("Role");e(Q,E)},$$slots:{default:!0}})});var fe=s(ze,2);a(fe,()=>Me,(z,O)=>{O(z,{children:(Q,U)=>{i();var E=d("Invited By");e(Q,E)},$$slots:{default:!0}})});var de=s(fe,2);a(de,()=>Me,(z,O)=>{O(z,{children:(Q,U)=>{i();var E=d("Status");e(Q,E)},$$slots:{default:!0}})});var G=s(de,2);a(G,()=>Me,(z,O)=>{O(z,{class:"w-[100px]"})}),e(P,xe)},$$slots:{default:!0}})}),e(I,g)},$$slots:{default:!0}})});var y=s(D,2);a(y,()=>Mt,(k,p)=>{p(k,{children:(I,S)=>{var g=x(),T=o(g);Ne(T,17,()=>t(K),Ke,(n,C)=>{var P=x(),Pe=o(P);a(Pe,()=>We,(xe,_e)=>{_e(xe,{children:(ze,fe)=>{var de=Vr(),G=o(de);a(G,()=>Ie,(E,L)=>{L(E,{class:"font-medium",children:(X,F)=>{i();var ee=d();W(()=>H(ee,t(C).email)),e(X,ee)},$$slots:{default:!0}})});var z=s(G,2);a(z,()=>Ie,(E,L)=>{L(E,{children:(X,F)=>{Qe(X,{variant:"outline",children:(ee,ye)=>{i();var Ce=d();W(()=>H(Ce,t(C).role==="admin"?"Admin":t(C).role==="readonly"?"Read Only":"User")),e(ee,Ce)},$$slots:{default:!0}})},$$slots:{default:!0}})});var O=s(z,2);a(O,()=>Ie,(E,L)=>{L(E,{children:(X,F)=>{i();var ee=d();W(()=>H(ee,t(C).inviterName)),e(X,ee)},$$slots:{default:!0}})});var Q=s(O,2);a(Q,()=>Ie,(E,L)=>{L(E,{children:(X,F)=>{Qe(X,{variant:"outline",class:"bg-yellow-50 text-yellow-700 border-yellow-200",children:(ee,ye)=>{i();var Ce=d("Invited");e(ee,Ce)},$$slots:{default:!0}})},$$slots:{default:!0}})});var U=s(Q,2);a(U,()=>Ie,(E,L)=>{L(E,{children:(X,F)=>{Ze(X,{variant:"ghost",size:"icon",onclick:()=>v(u,t(C),!0),children:(ee,ye)=>{Bt(ee,{class:"h-4 w-4 text-destructive"})},$$slots:{default:!0}})},$$slots:{default:!0}})}),e(ze,de)},$$slots:{default:!0}})}),e(n,P)}),e(I,g)},$$slots:{default:!0}})}),e(V,b)},$$slots:{default:!0}})}),e(be,R)},$$slots:{default:!0}}),e(ve,J)},$$slots:{default:!0}})};Se(Te,_=>{t(K).length>0&&_(pe)})}q(se);var ne=s(se,2);kr(ne,{get organizationId(){return r.organizationId},get open(){return t(l)},set open(_){v(l,_,!0)}});var he=s(ne,2);{let _=N(()=>t(m)!==null);a(he,()=>ht,(ve,ie)=>{ie(ve,{get open(){return t(_)},onOpenChange:J=>{J||v(m,null)},children:(J,we)=>{var ce=x(),be=o(ce);a(be,()=>ft,($e,R)=>{R($e,{children:(c,w)=>{var h=Yr(),V=o(h);a(V,()=>_t,(b,D)=>{D(b,{children:(y,k)=>{var p=Zr(),I=o(p);a(I,()=>gt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d("Remove Team Member");e(n,P)},$$slots:{default:!0}})});var S=s(I,2);a(S,()=>mt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d();W(()=>H(P,`Are you sure you want to remove ${t(m)?.name??""} from this organization?
- They will lose access to all projects.`)),e(n,P)},$$slots:{default:!0}})}),e(y,p)},$$slots:{default:!0}})});var M=s(V,2);a(M,()=>pt,(b,D)=>{D(b,{children:(y,k)=>{var p=qr(),I=o(p);a(I,()=>bt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d("Cancel");e(n,P)},$$slots:{default:!0}})});var S=s(I,2);a(S,()=>Dt,(g,T)=>{T(g,{onclick:f,children:(n,C)=>{i();var P=d("Remove");e(n,P)},$$slots:{default:!0}})}),e(y,p)},$$slots:{default:!0}})}),e(c,h)},$$slots:{default:!0}})}),e(J,ce)},$$slots:{default:!0}})})}var Ae=s(he,2);{let _=N(()=>t(u)!==null);a(Ae,()=>ht,(ve,ie)=>{ie(ve,{get open(){return t(_)},onOpenChange:J=>{J||v(u,null)},children:(J,we)=>{var ce=x(),be=o(ce);a(be,()=>ft,($e,R)=>{R($e,{children:(c,w)=>{var h=Qr(),V=o(h);a(V,()=>_t,(b,D)=>{D(b,{children:(y,k)=>{var p=Jr(),I=o(p);a(I,()=>gt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d("Revoke Invitation");e(n,P)},$$slots:{default:!0}})});var S=s(I,2);a(S,()=>mt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d();W(()=>H(P,`Are you sure you want to revoke the invitation for ${t(u)?.email??""}?`)),e(n,P)},$$slots:{default:!0}})}),e(y,p)},$$slots:{default:!0}})});var M=s(V,2);a(M,()=>pt,(b,D)=>{D(b,{children:(y,k)=>{var p=Wr(),I=o(p);a(I,()=>bt,(g,T)=>{T(g,{children:(n,C)=>{i();var P=d("Cancel");e(n,P)},$$slots:{default:!0}})});var S=s(I,2);a(S,()=>Dt,(g,T)=>{T(g,{onclick:j,children:(n,C)=>{i();var P=d("Revoke");e(n,P)},$$slots:{default:!0}})}),e(y,p)},$$slots:{default:!0}})}),e(c,h)},$$slots:{default:!0}})}),e(J,ce)},$$slots:{default:!0}})})}e(re,le),Ue()}var ta=$('<div class="flex items-center justify-center py-12"><!></div>'),ra=$('<div class="text-center py-12 text-destructive"> </div>'),aa=$('<div class="space-y-6"><!> <!> <!></div>'),oa=$('<div class="space-y-6"><div><h1 class="text-2xl font-semibold tracking-tight">Settings</h1></div> <!></div>');function Ma(re,r){Oe(r,!0);let l=te(!0),m=te(null),u=te(null);async function B(){try{const f=await Wt(()=>import("../chunks/DdlwFQz5.js"),[],import.meta.url);v(u,f.default,!0)}catch{}}Xe(()=>{B()});const A=N(()=>tr.currentProject?.organizationId),K=N(()=>t(A)!==null&&t(A)!==void 0&&jt.canManageOrganization(t(A)));Xe(()=>{!t(K)&&!t(l)&&er("/")}),Xe(()=>{t(A)&&t(K)&&(v(l,!0),Ee.loadSettings(t(A)).catch(f=>{v(m,f instanceof Error?f.message:"Failed to load settings",!0)}).finally(()=>{v(l,!1)}))});var Y=oa(),ae=s(Z(Y),2);{var oe=f=>{var j=ta(),ge=Z(j);vr(ge,{size:"xlg"}),q(j),e(f,j)},ue=f=>{var j=x(),ge=o(j);{var Be=le=>{var se=ra(),me=Z(se,!0);q(se),W(()=>H(me,t(m))),e(le,se)},De=le=>{var se=aa(),me=Z(se);Ar(me,{});var Te=s(me,2);ea(Te,{get organizationId(){return t(A)}});var pe=s(Te,2);{var ne=he=>{var Ae=x(),_=o(Ae);a(_,()=>t(u),(ve,ie)=>{ie(ve,{get organizationId(){return t(A)}})}),e(he,Ae)};Se(pe,he=>{t(u)&&he(ne)})}q(se),e(le,se)};Se(ge,le=>{t(m)?le(Be):le(De,!1)},!0)}e(f,j)};Se(ae,f=>{t(l)?f(oe):f(ue,!1)})}q(Y),e(re,Y),Ue()}export{Ma as component,Ia as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/27.BXW3Qpei.js b/backend/static/frontend/_app/immutable/nodes/27.DwmKNf9L.js
similarity index 91%
rename from backend/static/frontend/_app/immutable/nodes/27.BXW3Qpei.js
rename to backend/static/frontend/_app/immutable/nodes/27.DwmKNf9L.js
index e6a5430f..d9659f1c 100644
--- a/backend/static/frontend/_app/immutable/nodes/27.BXW3Qpei.js
+++ b/backend/static/frontend/_app/immutable/nodes/27.DwmKNf9L.js
@@ -1 +1 @@
-import{r as lt}from"../chunks/BJZ1igWb.js";import{b as it,a as dt,p as ut}from"../chunks/D6S6XYVy.js";import{i as De}from"../chunks/DMODTt3n.js";import{o as mt,a as ft}from"../chunks/Dwk6gGSK.js";import{p as ct,h as i,v as k,g as e,u as Be,f as ae,b as o,a as pt,e as W,i as r,s as c,r as X,d,c as n,n as Z,t as ee,k as te,l as re}from"../chunks/B2WdN-7r.js";import{e as gt,i as vt}from"../chunks/CMyj8Fzw.js";import{c as l}from"../chunks/BAcG0-U_.js";import{c as Me,t as qe,g as _t,b as Ge}from"../chunks/DJdWGDax.js";import{b as me,T as fe,a as G,c as $t}from"../chunks/CeOjHHJH.js";import{T as ht}from"../chunks/CEJkX7WU.js";import{L as Tt}from"../chunks/D0pIT200.js";import{T as ce}from"../chunks/BQmrPeqT.js";import{T as bt}from"../chunks/xk30YnJ1.js";import{P as Pt}from"../chunks/C8IsQj6C.js";import{p as He,g as Ke,d as H,a as K,T as xt,b as St,u as yt}from"../chunks/xqPrLpfy.js";import{c as Dt}from"../chunks/CyOblkUv.js";import{r as wt}from"../chunks/D_mqy6BL.js";import{P as kt}from"../chunks/BGqyWGxT.js";import{g as Ct,h as Ft,s as Rt}from"../chunks/X-i49s3k.js";const zt=()=>{if(!it.isAuthenticated)throw lt(302,"/login")},or=Object.freeze(Object.defineProperty({__proto__:null,load:zt},Symbol.toStringTag,{value:"Module"}));var jt=ae('<div class="flex justify-center items-center h-full"><!></div>'),Ut=ae("<!> <!> <!> <!>",1),Lt=ae("<!> <!> <!> <!>",1),Ot=ae("<!> <!>",1),It=ae('<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex flex-col"><!></div></div> <div class="rounded-md border overflow-hidden"><!></div> <!></div>');function sr(Ye,Je){ct(Je,!0);const s=Be(_t);let pe=i(k([])),oe=i(!0),se=i(""),C=i(1),ge=i(50),we=i(0),ve=i(0);const ke=He(e(s)),ne=Ke(ke,e(s));let h=i(k(ke.preset)),T=i(k(H(ne.from,e(s)))),b=i(k(H(ne.to,e(s)))),L=i(k(K(ne.from,e(s)))),O=i(k(K(ne.to,e(s))));function Qe(t=!0){yt(e(h)?{preset:e(h)}:{from:ze(),to:je()},{pushToHistory:t})}function Ce(){const t=He(e(s)),a=Ke(t,e(s));r(h,t.preset,!0),r(T,H(a.from,e(s)),!0),r(L,K(a.from,e(s)),!0),r(b,H(a.to,e(s)),!0),r(O,K(a.to,e(s)),!0),r(C,1),E(!1)}const Fe="tasks",Re=Ct(Fe,{field:"count",direction:"desc"});let I=i(k(Re.field)),N=i(k(Re.direction));function ze(){const[t,a]=(e(L)||"00:00").split(":").map(Number),u=Me({year:e(T).year,month:e(T).month,day:e(T).day,hour:t,minute:a},e(s));return qe(u)}function je(){const[t,a]=(e(O)||"23:59").split(":").map(Number),u=Me({year:e(b).year,month:e(b).month,day:e(b).day,hour:t,minute:a},e(s)).endOf("minute");return qe(u)}function Ve(t,a,u){r(T,t.date,!0),r(L,t.time,!0),r(b,a.date,!0),r(O,a.time,!0),r(h,u,!0),r(C,1),E(!0)}function We(t){return t>=1e6?`${(t/1e6).toFixed(1)}m`:t>=1e3?`${(t/1e3).toFixed(1)}k`:t.toLocaleString()}async function E(t=!0){if(r(oe,!0),r(se,""),e(h)){const a=St(e(h),e(s));r(T,H(a.from,e(s)),!0),r(b,H(a.to,e(s)),!0),r(L,K(a.from,e(s)),!0),r(O,K(a.to,e(s)),!0)}Qe(t);try{const a={fromDate:ze(),toDate:je(),orderBy:e(I),sortDirection:e(N),pagination:{page:e(C),pageSize:e(ge)}},u=await dt.post("/tasks/grouped",a,{projectId:ut.currentProjectId??void 0});r(pe,u.data||[],!0),r(we,u.pagination.total,!0),r(ve,u.pagination.totalPages,!0)}catch(a){console.error(a),r(se,a.message||"Failed to load data",!0)}finally{r(oe,!1)}}function Xe(t){t>=1&&t<=e(ve)&&(r(C,t,!0),E(!1))}function Ze(t){r(ge,t,!0),r(C,1),E(!1)}function _e(t){const a=Ft(t,e(I),e(N));r(I,a.field,!0),r(N,a.direction,!0),Rt(Fe,a),r(C,1),E(!1)}mt(()=>{window.addEventListener("popstate",Ce),E(!1)}),ft(()=>{typeof window<"u"&&window.removeEventListener("popstate",Ce)});var $e=It(),he=W($e),Ue=W(he);kt(Ue,{title:"Tasks"});var Le=c(Ue,2),et=W(Le);xt(et,{onApply:Ve,get fromDate(){return e(T)},set fromDate(t){r(T,t,!0)},get toDate(){return e(b)},set toDate(t){r(b,t,!0)},get fromTime(){return e(L)},set fromTime(t){r(L,t,!0)},get toTime(){return e(O)},set toTime(t){r(O,t,!0)},get preset(){return e(h)},set preset(t){r(h,t,!0)}}),X(Le),X(he);var Te=c(he,2),tt=W(Te);l(tt,()=>$t,(t,a)=>{a(t,{children:(u,Nt)=>{var Oe=d(),at=n(Oe);{var ot=A=>{var Y=d(),be=n(Y);l(be,()=>me,(Pe,xe)=>{xe(Pe,{children:(P,B)=>{var M=d(),J=n(M);l(J,()=>fe,(Q,f)=>{f(Q,{children:(x,S)=>{var y=d(),p=n(y);l(p,()=>G,(g,D)=>{D(g,{colspan:4,class:"h-48",children:(le,v)=>{var _=jt(),F=W(_);Tt(F,{size:"xlg"}),X(_),o(le,_)},$$slots:{default:!0}})}),o(x,y)},$$slots:{default:!0}})}),o(P,M)},$$slots:{default:!0}})}),o(A,Y)},st=A=>{var Y=d(),be=n(Y);{var Pe=P=>{var B=d(),M=n(B);l(M,()=>me,(J,Q)=>{Q(J,{children:(f,x)=>{var S=d(),y=n(S);l(y,()=>fe,(p,g)=>{g(p,{children:(D,le)=>{var v=d(),_=n(v);l(_,()=>G,(F,$)=>{$(F,{colspan:4,class:"h-24 text-center text-red-500",children:(q,Se)=>{Z();var R=ee();te(()=>re(R,e(se))),o(q,R)},$$slots:{default:!0}})}),o(D,v)},$$slots:{default:!0}})}),o(f,S)},$$slots:{default:!0}})}),o(P,B)},xe=P=>{var B=d(),M=n(B);{var J=f=>{var x=d(),S=n(x);l(S,()=>me,(y,p)=>{p(y,{children:(g,D)=>{bt(g,{colspan:4,message:"No task data received yet"})},$$slots:{default:!0}})}),o(f,x)},Q=f=>{var x=Ot(),S=n(x);l(S,()=>ht,(p,g)=>{g(p,{children:(D,le)=>{var v=d(),_=n(v);l(_,()=>fe,(F,$)=>{$(F,{children:(q,Se)=>{var R=Ut(),ie=n(R);ce(ie,{label:"Task",tooltip:"The background job or task name"});var de=c(ie,2);ce(de,{label:"Runs",tooltip:"Total number of task executions",sortField:"count",get currentSortField(){return e(I)},get sortDirection(){return e(N)},onSort:w=>_e(w),class:"w-[100px]"});var ue=c(de,2);ce(ue,{label:"Typical",tooltip:"Median duration (P50)",sortField:"p50_duration",get currentSortField(){return e(I)},get sortDirection(){return e(N)},onSort:w=>_e(w),class:"w-[100px]"});var Ie=c(ue,2);ce(Ie,{label:"Slow",tooltip:"95th percentile - slowest 5% of executions",sortField:"p95_duration",get currentSortField(){return e(I)},get sortDirection(){return e(N)},onSort:w=>_e(w),class:"w-[100px]"}),o(q,R)},$$slots:{default:!0}})}),o(D,v)},$$slots:{default:!0}})});var y=c(S,2);l(y,()=>me,(p,g)=>{g(p,{children:(D,le)=>{var v=d(),_=n(v);gt(_,17,()=>e(pe),vt,(F,$)=>{var q=d(),Se=n(q);{let R=Be(()=>Dt(wt(`/tasks/${encodeURIComponent(e($).taskName)}`),"preset","from","to"));l(Se,()=>fe,(ie,de)=>{de(ie,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return e(R)},children:(ue,Ie)=>{var w=Lt(),Ne=n(w);l(Ne,()=>G,(z,j)=>{j(z,{class:"font-mono text-sm",children:(U,ye)=>{Z();var m=ee();te(()=>re(m,e($).taskName)),o(U,m)},$$slots:{default:!0}})});var Ee=c(Ne,2);l(Ee,()=>G,(z,j)=>{j(z,{class:"tabular-nums",children:(U,ye)=>{Z();var m=ee();te(V=>re(m,V),[()=>We(e($).count)]),o(U,m)},$$slots:{default:!0}})});var Ae=c(Ee,2);l(Ae,()=>G,(z,j)=>{j(z,{class:"font-mono text-sm tabular-nums",children:(U,ye)=>{Z();var m=ee();te(V=>re(m,V),[()=>Ge(e($).p50Duration)]),o(U,m)},$$slots:{default:!0}})});var nt=c(Ae,2);l(nt,()=>G,(z,j)=>{j(z,{class:"font-mono text-sm tabular-nums",children:(U,ye)=>{Z();var m=ee();te(V=>re(m,V),[()=>Ge(e($).p95Duration)]),o(U,m)},$$slots:{default:!0}})}),o(ue,w)},$$slots:{default:!0}})})}o(F,q)}),o(D,v)},$$slots:{default:!0}})}),o(f,x)};De(M,f=>{e(pe).length===0?f(J):f(Q,!1)},!0)}o(P,B)};De(be,P=>{e(se)?P(Pe):P(xe,!1)},!0)}o(A,Y)};De(at,A=>{e(oe)?A(ot):A(st,!1)})}o(u,Oe)},$$slots:{default:!0}})}),X(Te);var rt=c(Te,2);Pt(rt,{get currentPage(){return e(C)},get totalPages(){return e(ve)},get pageSize(){return e(ge)},get totalItems(){return e(we)},onPageChange:Xe,onPageSizeChange:Ze,get loading(){return e(oe)},itemLabel:"task"}),X($e),o(Ye,$e),pt()}export{sr as component,or as universal};
+import{r as lt}from"../chunks/B4VmGkxP.js";import{b as it,a as dt,p as ut}from"../chunks/qCQ2nSvO.js";import{i as De}from"../chunks/DMODTt3n.js";import{o as mt,a as ft}from"../chunks/Dwk6gGSK.js";import{p as ct,h as i,v as k,g as e,u as Be,f as ae,b as o,a as pt,e as W,i as r,s as c,r as X,d,c as n,n as Z,t as ee,k as te,l as re}from"../chunks/B2WdN-7r.js";import{e as gt,i as vt}from"../chunks/CMyj8Fzw.js";import{c as l}from"../chunks/BAcG0-U_.js";import{c as Me,t as qe,g as _t,b as Ge}from"../chunks/Dq-0lVru.js";import{b as me,T as fe,a as G,c as $t}from"../chunks/CeOjHHJH.js";import{T as ht}from"../chunks/CEJkX7WU.js";import{L as Tt}from"../chunks/D0pIT200.js";import{T as ce}from"../chunks/CkVJuMBr.js";import{T as bt}from"../chunks/xk30YnJ1.js";import{P as Pt}from"../chunks/DByR3-93.js";import{p as He,g as Ke,d as H,a as K,T as xt,b as St,u as yt}from"../chunks/DjEjtFrE.js";import{c as Dt}from"../chunks/UIirCQWa.js";import{r as wt}from"../chunks/BGApn_8u.js";import{P as kt}from"../chunks/Cplpgpvt.js";import{g as Ct,h as Ft,s as Rt}from"../chunks/X-i49s3k.js";const zt=()=>{if(!it.isAuthenticated)throw lt(302,"/login")},or=Object.freeze(Object.defineProperty({__proto__:null,load:zt},Symbol.toStringTag,{value:"Module"}));var jt=ae('<div class="flex justify-center items-center h-full"><!></div>'),Ut=ae("<!> <!> <!> <!>",1),Lt=ae("<!> <!> <!> <!>",1),Ot=ae("<!> <!>",1),It=ae('<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex flex-col"><!></div></div> <div class="rounded-md border overflow-hidden"><!></div> <!></div>');function sr(Ye,Je){ct(Je,!0);const s=Be(_t);let pe=i(k([])),oe=i(!0),se=i(""),C=i(1),ge=i(50),we=i(0),ve=i(0);const ke=He(e(s)),ne=Ke(ke,e(s));let h=i(k(ke.preset)),T=i(k(H(ne.from,e(s)))),b=i(k(H(ne.to,e(s)))),L=i(k(K(ne.from,e(s)))),O=i(k(K(ne.to,e(s))));function Qe(t=!0){yt(e(h)?{preset:e(h)}:{from:ze(),to:je()},{pushToHistory:t})}function Ce(){const t=He(e(s)),a=Ke(t,e(s));r(h,t.preset,!0),r(T,H(a.from,e(s)),!0),r(L,K(a.from,e(s)),!0),r(b,H(a.to,e(s)),!0),r(O,K(a.to,e(s)),!0),r(C,1),E(!1)}const Fe="tasks",Re=Ct(Fe,{field:"count",direction:"desc"});let I=i(k(Re.field)),N=i(k(Re.direction));function ze(){const[t,a]=(e(L)||"00:00").split(":").map(Number),u=Me({year:e(T).year,month:e(T).month,day:e(T).day,hour:t,minute:a},e(s));return qe(u)}function je(){const[t,a]=(e(O)||"23:59").split(":").map(Number),u=Me({year:e(b).year,month:e(b).month,day:e(b).day,hour:t,minute:a},e(s)).endOf("minute");return qe(u)}function Ve(t,a,u){r(T,t.date,!0),r(L,t.time,!0),r(b,a.date,!0),r(O,a.time,!0),r(h,u,!0),r(C,1),E(!0)}function We(t){return t>=1e6?`${(t/1e6).toFixed(1)}m`:t>=1e3?`${(t/1e3).toFixed(1)}k`:t.toLocaleString()}async function E(t=!0){if(r(oe,!0),r(se,""),e(h)){const a=St(e(h),e(s));r(T,H(a.from,e(s)),!0),r(b,H(a.to,e(s)),!0),r(L,K(a.from,e(s)),!0),r(O,K(a.to,e(s)),!0)}Qe(t);try{const a={fromDate:ze(),toDate:je(),orderBy:e(I),sortDirection:e(N),pagination:{page:e(C),pageSize:e(ge)}},u=await dt.post("/tasks/grouped",a,{projectId:ut.currentProjectId??void 0});r(pe,u.data||[],!0),r(we,u.pagination.total,!0),r(ve,u.pagination.totalPages,!0)}catch(a){console.error(a),r(se,a.message||"Failed to load data",!0)}finally{r(oe,!1)}}function Xe(t){t>=1&&t<=e(ve)&&(r(C,t,!0),E(!1))}function Ze(t){r(ge,t,!0),r(C,1),E(!1)}function _e(t){const a=Ft(t,e(I),e(N));r(I,a.field,!0),r(N,a.direction,!0),Rt(Fe,a),r(C,1),E(!1)}mt(()=>{window.addEventListener("popstate",Ce),E(!1)}),ft(()=>{typeof window<"u"&&window.removeEventListener("popstate",Ce)});var $e=It(),he=W($e),Ue=W(he);kt(Ue,{title:"Tasks"});var Le=c(Ue,2),et=W(Le);xt(et,{onApply:Ve,get fromDate(){return e(T)},set fromDate(t){r(T,t,!0)},get toDate(){return e(b)},set toDate(t){r(b,t,!0)},get fromTime(){return e(L)},set fromTime(t){r(L,t,!0)},get toTime(){return e(O)},set toTime(t){r(O,t,!0)},get preset(){return e(h)},set preset(t){r(h,t,!0)}}),X(Le),X(he);var Te=c(he,2),tt=W(Te);l(tt,()=>$t,(t,a)=>{a(t,{children:(u,Nt)=>{var Oe=d(),at=n(Oe);{var ot=A=>{var Y=d(),be=n(Y);l(be,()=>me,(Pe,xe)=>{xe(Pe,{children:(P,B)=>{var M=d(),J=n(M);l(J,()=>fe,(Q,f)=>{f(Q,{children:(x,S)=>{var y=d(),p=n(y);l(p,()=>G,(g,D)=>{D(g,{colspan:4,class:"h-48",children:(le,v)=>{var _=jt(),F=W(_);Tt(F,{size:"xlg"}),X(_),o(le,_)},$$slots:{default:!0}})}),o(x,y)},$$slots:{default:!0}})}),o(P,M)},$$slots:{default:!0}})}),o(A,Y)},st=A=>{var Y=d(),be=n(Y);{var Pe=P=>{var B=d(),M=n(B);l(M,()=>me,(J,Q)=>{Q(J,{children:(f,x)=>{var S=d(),y=n(S);l(y,()=>fe,(p,g)=>{g(p,{children:(D,le)=>{var v=d(),_=n(v);l(_,()=>G,(F,$)=>{$(F,{colspan:4,class:"h-24 text-center text-red-500",children:(q,Se)=>{Z();var R=ee();te(()=>re(R,e(se))),o(q,R)},$$slots:{default:!0}})}),o(D,v)},$$slots:{default:!0}})}),o(f,S)},$$slots:{default:!0}})}),o(P,B)},xe=P=>{var B=d(),M=n(B);{var J=f=>{var x=d(),S=n(x);l(S,()=>me,(y,p)=>{p(y,{children:(g,D)=>{bt(g,{colspan:4,message:"No task data received yet"})},$$slots:{default:!0}})}),o(f,x)},Q=f=>{var x=Ot(),S=n(x);l(S,()=>ht,(p,g)=>{g(p,{children:(D,le)=>{var v=d(),_=n(v);l(_,()=>fe,(F,$)=>{$(F,{children:(q,Se)=>{var R=Ut(),ie=n(R);ce(ie,{label:"Task",tooltip:"The background job or task name"});var de=c(ie,2);ce(de,{label:"Runs",tooltip:"Total number of task executions",sortField:"count",get currentSortField(){return e(I)},get sortDirection(){return e(N)},onSort:w=>_e(w),class:"w-[100px]"});var ue=c(de,2);ce(ue,{label:"Typical",tooltip:"Median duration (P50)",sortField:"p50_duration",get currentSortField(){return e(I)},get sortDirection(){return e(N)},onSort:w=>_e(w),class:"w-[100px]"});var Ie=c(ue,2);ce(Ie,{label:"Slow",tooltip:"95th percentile - slowest 5% of executions",sortField:"p95_duration",get currentSortField(){return e(I)},get sortDirection(){return e(N)},onSort:w=>_e(w),class:"w-[100px]"}),o(q,R)},$$slots:{default:!0}})}),o(D,v)},$$slots:{default:!0}})});var y=c(S,2);l(y,()=>me,(p,g)=>{g(p,{children:(D,le)=>{var v=d(),_=n(v);gt(_,17,()=>e(pe),vt,(F,$)=>{var q=d(),Se=n(q);{let R=Be(()=>Dt(wt(`/tasks/${encodeURIComponent(e($).taskName)}`),"preset","from","to"));l(Se,()=>fe,(ie,de)=>{de(ie,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return e(R)},children:(ue,Ie)=>{var w=Lt(),Ne=n(w);l(Ne,()=>G,(z,j)=>{j(z,{class:"font-mono text-sm",children:(U,ye)=>{Z();var m=ee();te(()=>re(m,e($).taskName)),o(U,m)},$$slots:{default:!0}})});var Ee=c(Ne,2);l(Ee,()=>G,(z,j)=>{j(z,{class:"tabular-nums",children:(U,ye)=>{Z();var m=ee();te(V=>re(m,V),[()=>We(e($).count)]),o(U,m)},$$slots:{default:!0}})});var Ae=c(Ee,2);l(Ae,()=>G,(z,j)=>{j(z,{class:"font-mono text-sm tabular-nums",children:(U,ye)=>{Z();var m=ee();te(V=>re(m,V),[()=>Ge(e($).p50Duration)]),o(U,m)},$$slots:{default:!0}})});var nt=c(Ae,2);l(nt,()=>G,(z,j)=>{j(z,{class:"font-mono text-sm tabular-nums",children:(U,ye)=>{Z();var m=ee();te(V=>re(m,V),[()=>Ge(e($).p95Duration)]),o(U,m)},$$slots:{default:!0}})}),o(ue,w)},$$slots:{default:!0}})})}o(F,q)}),o(D,v)},$$slots:{default:!0}})}),o(f,x)};De(M,f=>{e(pe).length===0?f(J):f(Q,!1)},!0)}o(P,B)};De(be,P=>{e(se)?P(Pe):P(xe,!1)},!0)}o(A,Y)};De(at,A=>{e(oe)?A(ot):A(st,!1)})}o(u,Oe)},$$slots:{default:!0}})}),X(Te);var rt=c(Te,2);Pt(rt,{get currentPage(){return e(C)},get totalPages(){return e(ve)},get pageSize(){return e(ge)},get totalItems(){return e(we)},onPageChange:Xe,onPageSizeChange:Ze,get loading(){return e(oe)},itemLabel:"task"}),X($e),o(Ye,$e),pt()}export{sr as component,or as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/27.BXW3Qpei.js.map b/backend/static/frontend/_app/immutable/nodes/27.DwmKNf9L.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/27.BXW3Qpei.js.map
rename to backend/static/frontend/_app/immutable/nodes/27.DwmKNf9L.js.map
index 006024c0..0e54f8e5 100644
--- a/backend/static/frontend/_app/immutable/nodes/27.BXW3Qpei.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/27.DwmKNf9L.js.map
@@ -1 +1 @@
-{"version":3,"file":"27.BXW3Qpei.js","sources":["../../../../../../src/routes/tasks/+page.ts","../../../../../../src/routes/tasks/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n import { onMount, onDestroy } from 'svelte';\n import { api } from '$lib/api';\n import { formatDuration, toUTCISO, calendarDateTimeToLuxon } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import * as Table from \"$lib/components/ui/table\";\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { PaginationFooter } from \"$lib/components/ui/pagination-footer\";\n import { TimeRangePicker } from \"$lib/components/ui/time-range-picker\";\n import { CalendarDate } from \"@internationalized/date\";\n import { projectsState } from '$lib/state/projects.svelte';\n import { createRowClickHandler } from '$lib/utils/navigation';\n import { resolve } from '$app/paths';\n import PageHeader from '$lib/components/issues/page-header.svelte';\n import {\n presetMinutes,\n getTimeRangeFromPreset,\n dateToCalendarDate,\n dateToTimeString,\n parseTimeRangeFromUrl,\n getResolvedTimeRange,\n updateUrl\n } from '$lib/utils/url-params';\n import {\n getSortState,\n setSortState,\n handleSortClick,\n type SortDirection\n } from '$lib/utils/sort-storage';\n\n const timezone = $derived(getTimezone());\n\n type TaskStats = {\n taskName: string;\n count: number;\n p50Duration: number;\n p95Duration: number;\n avgDuration: number;\n lastSeen: string;\n };\n\n type SortField = 'count' | 'p50_duration' | 'p95_duration' | 'last_seen';\n\n let tasks = $state<TaskStats[]>([]);\n let loading = $state(true);\n let error = $state('');\n\n // Pagination State\n let page = $state(1);\n let pageSize = $state(50);\n let total = $state(0);\n let totalPages = $state(0);\n\n // Initialize from URL\n const initialUrlParams = parseTimeRangeFromUrl(timezone);\n const initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n // Date Range State\n let selectedPreset = $state<string | null>(initialUrlParams.preset);\n let fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n let toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n let fromTime = $state(dateToTimeString(initialRange.from, timezone));\n let toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n // Update URL with current time range\n function updateTimeRangeUrl(pushToHistory = true) {\n updateUrl(\n selectedPreset\n ? { preset: selectedPreset }\n : { from: getFromDateTimeUTC(), to: getToDateTimeUTC() },\n { pushToHistory }\n );\n }\n\n // Handle browser back/forward navigation\n function handlePopState() {\n const urlParams = parseTimeRangeFromUrl(timezone);\n const range = getResolvedTimeRange(urlParams, timezone);\n\n selectedPreset = urlParams.preset;\n fromDate = dateToCalendarDate(range.from, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n toTime = dateToTimeString(range.to, timezone);\n\n page = 1;\n loadData(false);\n }\n\n // Sorting - persisted to localStorage\n const SORT_STORAGE_KEY = 'tasks';\n const initialSort = getSortState(SORT_STORAGE_KEY, { field: 'count', direction: 'desc' });\n let orderBy = $state<SortField>(initialSort.field as SortField);\n let sortDirection = $state<SortDirection>(initialSort.direction);\n\n // Combine date and time into UTC ISO datetime string\n function getFromDateTimeUTC(): string {\n const [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute }, timezone);\n return toUTCISO(dt);\n }\n\n function getToDateTimeUTC(): string {\n const [hour, minute] = (toTime || '23:59').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute }, timezone).endOf('minute');\n return toUTCISO(dt);\n }\n\n function handleTimeRangeChange(from: { date: CalendarDate; time: string }, to: { date: CalendarDate; time: string }, preset: string | null) {\n fromDate = from.date;\n fromTime = from.time;\n toDate = to.date;\n toTime = to.time;\n selectedPreset = preset;\n page = 1;\n loadData(true);\n }\n\n // Format count with k/m suffixes\n function formatCount(count: number): string {\n if (count >= 1_000_000) {\n return `${(count / 1_000_000).toFixed(1)}m`;\n } else if (count >= 1_000) {\n return `${(count / 1_000).toFixed(1)}k`;\n }\n return count.toLocaleString();\n }\n\n async function loadData(pushToHistory = true) {\n loading = true;\n error = '';\n\n if (selectedPreset) {\n const range = getTimeRangeFromPreset(selectedPreset, timezone);\n fromDate = dateToCalendarDate(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toTime = dateToTimeString(range.to, timezone);\n }\n\n // Update URL\n updateTimeRangeUrl(pushToHistory);\n\n try {\n const requestBody = {\n fromDate: getFromDateTimeUTC(),\n toDate: getToDateTimeUTC(),\n orderBy: orderBy,\n sortDirection: sortDirection,\n pagination: {\n page: page,\n pageSize: pageSize\n }\n };\n\n const response = await api.post('/tasks/grouped', requestBody, { projectId: projectsState.currentProjectId ?? undefined });\n\n tasks = response.data || [];\n total = response.pagination.total;\n totalPages = response.pagination.totalPages;\n } catch (e: any) {\n console.error(e);\n error = e.message || 'Failed to load data';\n } finally {\n loading = false;\n }\n }\n\n function handlePageChange(newPage: number) {\n if (newPage >= 1 && newPage <= totalPages) {\n page = newPage;\n loadData(false); // Don't push to history for pagination\n }\n }\n\n function handlePageSizeChange(newPageSize: number) {\n pageSize = newPageSize;\n page = 1;\n loadData(false); // Don't push to history for pagination\n }\n\n function handleSort(field: SortField) {\n const newSort = handleSortClick(field, orderBy, sortDirection);\n orderBy = newSort.field as SortField;\n sortDirection = newSort.direction;\n setSortState(SORT_STORAGE_KEY, newSort);\n page = 1;\n loadData(false);\n }\n\n onMount(() => {\n // Add popstate listener for back/forward navigation\n window.addEventListener('popstate', handlePopState);\n\n // Initial load with replaceState (don't push to history)\n loadData(false);\n });\n\n onDestroy(() => {\n if (typeof window !== 'undefined') {\n window.removeEventListener('popstate', handlePopState);\n }\n });\n</script>\n\n<div class=\"space-y-4\">\n <!-- Header with Title and Time Range Filter -->\n <div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n\n <PageHeader title=\"Tasks\" />\n\n <div class=\"flex flex-col\">\n <TimeRangePicker\n bind:fromDate\n bind:toDate\n bind:fromTime\n bind:toTime\n bind:preset={selectedPreset}\n onApply={handleTimeRangeChange}\n />\n </div>\n </div>\n\n <!-- Tasks Table -->\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if loading}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={4} class=\"h-48\">\n <div class=\"flex justify-center items-center h-full\">\n <LoadingCircle size=\"xlg\" />\n </div>\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if error}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={4} class=\"h-24 text-center text-red-500\">\n {error}\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if tasks.length === 0}\n <Table.Body>\n <TableEmptyState colspan={4} message=\"No task data received yet\" />\n </Table.Body>\n {:else}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader\n label=\"Task\"\n tooltip=\"The background job or task name\"\n />\n <TracewayTableHeader\n label=\"Runs\"\n tooltip=\"Total number of task executions\"\n sortField=\"count\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Typical\"\n tooltip=\"Median duration (P50)\"\n sortField=\"p50_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Slow\"\n tooltip=\"95th percentile - slowest 5% of executions\"\n sortField=\"p95_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each tasks as task}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50\"\n onclick={createRowClickHandler(resolve(`/tasks/${encodeURIComponent(task.taskName)}`), 'preset', 'from', 'to')}\n >\n <Table.Cell class=\"font-mono text-sm\">\n {task.taskName}\n </Table.Cell>\n <Table.Cell class=\"tabular-nums\">\n {formatCount(task.count)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(task.p50Duration)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(task.p95Duration)}\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n {/if}\n </Table.Root>\n </div>\n\n <!-- Pagination Footer -->\n <PaginationFooter\n currentPage={page}\n {totalPages}\n {pageSize}\n totalItems={total}\n onPageChange={handlePageChange}\n onPageSizeChange={handlePageSizeChange}\n {loading}\n itemLabel=\"task\"\n />\n</div>\n"],"names":["load","authState","redirect","timezone","getTimezone","tasks","$.state","$.proxy","loading","error","page","pageSize","total","totalPages","initialUrlParams","parseTimeRangeFromUrl","$.get","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","updateUrl","getFromDateTimeUTC","getToDateTimeUTC","handlePopState","urlParams","range","$.set","loadData","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","formatCount","count","getTimeRangeFromPreset","requestBody","response","api","projectsState","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","onMount","onDestroy","div","root","div_1","PageHeader","node","div_2","$.sibling","TimeRangePicker","node_1","$$value","div_3","Table_Root","$$anchor","Table_Body","Table_Row","Table_Cell","div_4","root_5","LoadingCircle","node_7","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","TracewayTableHeader","node_16","node_17","node_18","node_19","Table_Body_3","$.each","node_21","task","$0","$.derived","createRowClickHandler","resolve","Table_Row_3","Table_Cell_2","$.template_effect","$.set_text","text_1","Table_Cell_3","Table_Cell_4","formatDuration","Table_Cell_5","$$render","consequent_2","alternate","consequent_1","alternate_1","consequent","alternate_2","PaginationFooter","node_27"],"mappings":"qjCAIO,MAAMA,GAAiB,IAAM,CACnC,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,I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,SAAW,EAACiH,EAAAC,CAAA,EAAAD,EAAAE,EAAA,EAAA,2BARlB/G,EAAK,EAAA6G,EAAAG,EAAA,EAAAH,EAAAI,GAAA,EAAA,2BAVVlH,EAAO,EAAA8G,EAAAK,EAAA,EAAAL,EAAAM,GAAA,EAAA,wCAFnB7C,EAAG,WAAHA,GAAG,CAAA,EAsFH8C,GAAAC,GAAA,4BACgBpH,CAAI,6BAChBG,EAAU,2BACVF,EAAQ,6BACGC,EAAK,gBACH8C,oBACIE,0BACjBpD,EAAO,wBAhHf6D,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"27.DwmKNf9L.js","sources":["../../../../../../src/routes/tasks/+page.ts","../../../../../../src/routes/tasks/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n import { onMount, onDestroy } from 'svelte';\n import { api } from '$lib/api';\n import { formatDuration, toUTCISO, calendarDateTimeToLuxon } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import * as Table from \"$lib/components/ui/table\";\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { PaginationFooter } from \"$lib/components/ui/pagination-footer\";\n import { TimeRangePicker } from \"$lib/components/ui/time-range-picker\";\n import { CalendarDate } from \"@internationalized/date\";\n import { projectsState } from '$lib/state/projects.svelte';\n import { createRowClickHandler } from '$lib/utils/navigation';\n import { resolve } from '$app/paths';\n import PageHeader from '$lib/components/issues/page-header.svelte';\n import {\n presetMinutes,\n getTimeRangeFromPreset,\n dateToCalendarDate,\n dateToTimeString,\n parseTimeRangeFromUrl,\n getResolvedTimeRange,\n updateUrl\n } from '$lib/utils/url-params';\n import {\n getSortState,\n setSortState,\n handleSortClick,\n type SortDirection\n } from '$lib/utils/sort-storage';\n\n const timezone = $derived(getTimezone());\n\n type TaskStats = {\n taskName: string;\n count: number;\n p50Duration: number;\n p95Duration: number;\n avgDuration: number;\n lastSeen: string;\n };\n\n type SortField = 'count' | 'p50_duration' | 'p95_duration' | 'last_seen';\n\n let tasks = $state<TaskStats[]>([]);\n let loading = $state(true);\n let error = $state('');\n\n // Pagination State\n let page = $state(1);\n let pageSize = $state(50);\n let total = $state(0);\n let totalPages = $state(0);\n\n // Initialize from URL\n const initialUrlParams = parseTimeRangeFromUrl(timezone);\n const initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n // Date Range State\n let selectedPreset = $state<string | null>(initialUrlParams.preset);\n let fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n let toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n let fromTime = $state(dateToTimeString(initialRange.from, timezone));\n let toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n // Update URL with current time range\n function updateTimeRangeUrl(pushToHistory = true) {\n updateUrl(\n selectedPreset\n ? { preset: selectedPreset }\n : { from: getFromDateTimeUTC(), to: getToDateTimeUTC() },\n { pushToHistory }\n );\n }\n\n // Handle browser back/forward navigation\n function handlePopState() {\n const urlParams = parseTimeRangeFromUrl(timezone);\n const range = getResolvedTimeRange(urlParams, timezone);\n\n selectedPreset = urlParams.preset;\n fromDate = dateToCalendarDate(range.from, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n toTime = dateToTimeString(range.to, timezone);\n\n page = 1;\n loadData(false);\n }\n\n // Sorting - persisted to localStorage\n const SORT_STORAGE_KEY = 'tasks';\n const initialSort = getSortState(SORT_STORAGE_KEY, { field: 'count', direction: 'desc' });\n let orderBy = $state<SortField>(initialSort.field as SortField);\n let sortDirection = $state<SortDirection>(initialSort.direction);\n\n // Combine date and time into UTC ISO datetime string\n function getFromDateTimeUTC(): string {\n const [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute }, timezone);\n return toUTCISO(dt);\n }\n\n function getToDateTimeUTC(): string {\n const [hour, minute] = (toTime || '23:59').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute }, timezone).endOf('minute');\n return toUTCISO(dt);\n }\n\n function handleTimeRangeChange(from: { date: CalendarDate; time: string }, to: { date: CalendarDate; time: string }, preset: string | null) {\n fromDate = from.date;\n fromTime = from.time;\n toDate = to.date;\n toTime = to.time;\n selectedPreset = preset;\n page = 1;\n loadData(true);\n }\n\n // Format count with k/m suffixes\n function formatCount(count: number): string {\n if (count >= 1_000_000) {\n return `${(count / 1_000_000).toFixed(1)}m`;\n } else if (count >= 1_000) {\n return `${(count / 1_000).toFixed(1)}k`;\n }\n return count.toLocaleString();\n }\n\n async function loadData(pushToHistory = true) {\n loading = true;\n error = '';\n\n if (selectedPreset) {\n const range = getTimeRangeFromPreset(selectedPreset, timezone);\n fromDate = dateToCalendarDate(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toTime = dateToTimeString(range.to, timezone);\n }\n\n // Update URL\n updateTimeRangeUrl(pushToHistory);\n\n try {\n const requestBody = {\n fromDate: getFromDateTimeUTC(),\n toDate: getToDateTimeUTC(),\n orderBy: orderBy,\n sortDirection: sortDirection,\n pagination: {\n page: page,\n pageSize: pageSize\n }\n };\n\n const response = await api.post('/tasks/grouped', requestBody, { projectId: projectsState.currentProjectId ?? undefined });\n\n tasks = response.data || [];\n total = response.pagination.total;\n totalPages = response.pagination.totalPages;\n } catch (e: any) {\n console.error(e);\n error = e.message || 'Failed to load data';\n } finally {\n loading = false;\n }\n }\n\n function handlePageChange(newPage: number) {\n if (newPage >= 1 && newPage <= totalPages) {\n page = newPage;\n loadData(false); // Don't push to history for pagination\n }\n }\n\n function handlePageSizeChange(newPageSize: number) {\n pageSize = newPageSize;\n page = 1;\n loadData(false); // Don't push to history for pagination\n }\n\n function handleSort(field: SortField) {\n const newSort = handleSortClick(field, orderBy, sortDirection);\n orderBy = newSort.field as SortField;\n sortDirection = newSort.direction;\n setSortState(SORT_STORAGE_KEY, newSort);\n page = 1;\n loadData(false);\n }\n\n onMount(() => {\n // Add popstate listener for back/forward navigation\n window.addEventListener('popstate', handlePopState);\n\n // Initial load with replaceState (don't push to history)\n loadData(false);\n });\n\n onDestroy(() => {\n if (typeof window !== 'undefined') {\n window.removeEventListener('popstate', handlePopState);\n }\n });\n</script>\n\n<div class=\"space-y-4\">\n <!-- Header with Title and Time Range Filter -->\n <div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n\n <PageHeader title=\"Tasks\" />\n\n <div class=\"flex flex-col\">\n <TimeRangePicker\n bind:fromDate\n bind:toDate\n bind:fromTime\n bind:toTime\n bind:preset={selectedPreset}\n onApply={handleTimeRangeChange}\n />\n </div>\n </div>\n\n <!-- Tasks Table -->\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if loading}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={4} class=\"h-48\">\n <div class=\"flex justify-center items-center h-full\">\n <LoadingCircle size=\"xlg\" />\n </div>\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if error}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={4} class=\"h-24 text-center text-red-500\">\n {error}\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if tasks.length === 0}\n <Table.Body>\n <TableEmptyState colspan={4} message=\"No task data received yet\" />\n </Table.Body>\n {:else}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader\n label=\"Task\"\n tooltip=\"The background job or task name\"\n />\n <TracewayTableHeader\n label=\"Runs\"\n tooltip=\"Total number of task executions\"\n sortField=\"count\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Typical\"\n tooltip=\"Median duration (P50)\"\n sortField=\"p50_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Slow\"\n tooltip=\"95th percentile - slowest 5% of executions\"\n sortField=\"p95_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each tasks as task}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50\"\n onclick={createRowClickHandler(resolve(`/tasks/${encodeURIComponent(task.taskName)}`), 'preset', 'from', 'to')}\n >\n <Table.Cell class=\"font-mono text-sm\">\n {task.taskName}\n </Table.Cell>\n <Table.Cell class=\"tabular-nums\">\n {formatCount(task.count)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(task.p50Duration)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(task.p95Duration)}\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n {/if}\n </Table.Root>\n </div>\n\n <!-- Pagination Footer -->\n <PaginationFooter\n currentPage={page}\n {totalPages}\n {pageSize}\n totalItems={total}\n onPageChange={handlePageChange}\n onPageSizeChange={handlePageSizeChange}\n {loading}\n itemLabel=\"task\"\n />\n</div>\n"],"names":["load","authState","redirect","timezone","getTimezone","tasks","$.state","$.proxy","loading","error","page","pageSize","total","totalPages","initialUrlParams","parseTimeRangeFromUrl","$.get","initialRange","getResolvedTimeRange","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","updateUrl","getFromDateTimeUTC","getToDateTimeUTC","handlePopState","urlParams","range","$.set","loadData","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","formatCount","count","getTimeRangeFromPreset","requestBody","response","api","projectsState","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","onMount","onDestroy","div","root","div_1","PageHeader","node","div_2","$.sibling","TimeRangePicker","node_1","$$value","div_3","Table_Root","$$anchor","Table_Body","Table_Row","Table_Cell","div_4","root_5","LoadingCircle","node_7","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","TracewayTableHeader","node_16","node_17","node_18","node_19","Table_Body_3","$.each","node_21","task","$0","$.derived","createRowClickHandler","resolve","Table_Row_3","Table_Cell_2","$.template_effect","$.set_text","text_1","Table_Cell_3","Table_Cell_4","formatDuration","Table_Cell_5","$$render","consequent_2","alternate","consequent_1","alternate_1","consequent","alternate_2","PaginationFooter","node_27"],"mappings":"qjCAIO,MAAMA,GAAiB,IAAM,CACnC,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,CAE9B,ieCRA,WAgCU,MAAAC,KAAoBC,EAAW,EAajC,IAAAC,GAAQC,EAAMC,EAAA,CAAA,CAAA,CAAA,EACdC,GAAUF,EAAO,EAAI,EACrBG,GAAQH,EAAO,EAAE,EAGjBI,EAAOJ,EAAO,CAAC,EACfK,GAAWL,EAAO,EAAE,EACpBM,GAAQN,EAAO,CAAC,EAChBO,GAAaP,EAAO,CAAC,QAGnBQ,GAAmBC,GAAqBC,EAACb,CAAQ,CAAA,EACjDc,GAAeC,GAAqBJ,KAAkBX,CAAQ,CAAA,EAGhE,IAAAgB,EAAiBb,EAAMC,EAAgBO,GAAiB,MAAM,CAAA,EAC9DM,EAAWd,EAAMC,EAAec,EAAmBJ,GAAa,KAAID,EAAEb,CAAQ,CAAA,CAAA,CAAA,EAC9EmB,EAAShB,EAAMC,EAAec,EAAmBJ,GAAa,GAAED,EAAEb,CA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AAAI,GAAA,4HAIqB7D,CAAO,gCACxBC,CAAa,UACLuB,GAAUD,GAAWC,CAAK,wHAK9CsC,EAAUpB,EAAA,oCACAqB,GAAAC,EAAA,GAAA,IAAAvF,EAAAX,EAAK,QAAImG,IAAI,oBAGH,IAAAC,EAAAC,GAAA,IAAAC,GAAsBC,GAAO,UAAW,mBAAkB5F,EAACwF,CAAI,EAAC,QAAQ,CAAA,EAAA,EAAM,SAAU,OAAQ,IAAI,CAAA,wBAFhHK,GAAM5B,GAAA,8HAIF6B,EAAU7B,EAAA,4DACN8B,GAAA,IAAAC,GAAAC,EAAAjG,EAAAwF,CAAI,EAAC,QAAQ,CAAA,qEAEjBU,EAAUjC,EAAA,0EACN/B,GAAWlC,EAACwF,CAAI,EAAC,KAAK,CAAA,CAAA,qEAE1BW,EAAUlC,EAAA,4FACNmC,GAAcpG,EAACwF,CAAI,EAAC,WAAW,CAAA,CAAA,qEAEnCa,EAAUpC,EAAA,4FACNmC,GAAcpG,EAACwF,CAAI,EAAC,WAAW,CAAA,CAAA,kIAxDtCnG,EAAK,EAAC,SAAW,EAACiH,EAAAC,CAAA,EAAAD,EAAAE,EAAA,EAAA,2BARlB/G,EAAK,EAAA6G,EAAAG,EAAA,EAAAH,EAAAI,GAAA,EAAA,2BAVVlH,EAAO,EAAA8G,EAAAK,EAAA,EAAAL,EAAAM,GAAA,EAAA,wCAFnB7C,EAAG,WAAHA,GAAG,CAAA,EAsFH8C,GAAAC,GAAA,4BACgBpH,CAAI,6BAChBG,EAAU,2BACVF,EAAQ,6BACGC,EAAK,gBACH8C,oBACIE,0BACjBpD,EAAO,wBAhHf6D,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/28.Bz5w7sEt.js b/backend/static/frontend/_app/immutable/nodes/28.DSjeiQY_.js
similarity index 93%
rename from backend/static/frontend/_app/immutable/nodes/28.Bz5w7sEt.js
rename to backend/static/frontend/_app/immutable/nodes/28.DSjeiQY_.js
index 44a29825..71bf9ffe 100644
--- a/backend/static/frontend/_app/immutable/nodes/28.Bz5w7sEt.js
+++ b/backend/static/frontend/_app/immutable/nodes/28.DSjeiQY_.js
@@ -1 +1 @@
-import{r as ke}from"../chunks/BJZ1igWb.js";import{b as ye,a as Pe,p as Se,c as Ft}from"../chunks/D6S6XYVy.js";import{i as H}from"../chunks/DMODTt3n.js";import{o as $e}from"../chunks/Dwk6gGSK.js";import{p as De,h as d,v as I,g as t,u as w,f as z,b as o,a as Ce,e as u,r as c,i as e,d as P,c as f,s as n,n as S,k as at,l as $,t as pt}from"../chunks/B2WdN-7r.js";import{e as Re,i as Ie}from"../chunks/CMyj8Fzw.js";import{c as g}from"../chunks/BAcG0-U_.js";import{p as Wt,g as we,c as Xt,t as Zt,d as yt,f as ze,b as Fe}from"../chunks/DJdWGDax.js";import{b as Ae,T as At,a as J,c as Ue}from"../chunks/CeOjHHJH.js";import{T as Be}from"../chunks/CEJkX7WU.js";import{L as te}from"../chunks/D0pIT200.js";import{d as ee,a as ae,c as je,b as re,u as Le,T as Oe}from"../chunks/xqPrLpfy.js";import{T as rt}from"../chunks/BQmrPeqT.js";import{T as Me}from"../chunks/xk30YnJ1.js";import{E as oe}from"../chunks/B-KBEnoV.js";import{A as Ne}from"../chunks/C202V9ED.js";import{c as Ee}from"../chunks/CyOblkUv.js";import{P as Ve}from"../chunks/C8IsQj6C.js";import{P as He}from"../chunks/BGqyWGxT.js";import{r as Ut}from"../chunks/D_mqy6BL.js";import{g as Je,h as qe,s as Ge}from"../chunks/X-i49s3k.js";const Ke=!1,Ye=({params:Pt,url:l})=>{if(!ye.isAuthenticated)throw ke(302,"/login");return{task:Pt.task,preset:l.searchParams.get("preset")||null,from:l.searchParams.get("from")||null,to:l.searchParams.get("to")||null}},$a=Object.freeze(Object.defineProperty({__proto__:null,load:Ye,prerender:Ke},Symbol.toStringTag,{value:"Module"}));var Qe=z('<div class="grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5"><div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average duration</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Median duration</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">95th percentile</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">99th percentile</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average throughput</p></div></div>'),We=z('<div class="flex items-center justify-center py-8"><!></div>'),Xe=z("<!> <!> <!> <!> <!> <!>",1),Ze=z('<div class="flex items-center justify-center"><!></div>'),ta=z("<!> <!> <!> <!> <!> <!>",1),ea=z("<!> <!>",1),aa=z('<div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex flex-col"><!></div></div> <!> <div class="overflow-hidden rounded-md border"><!></div> <!>',1),ra=z('<div class="space-y-6"><!></div>');function Da(Pt,l){De(l,!0);const _=w(we);let _t=d(I([])),F=d(null),A=d(!0),ht=d(""),St=d(!1),xt=d(0),q=d(1),$t=d(50),Bt=d(0),Dt=d(0);function se(){if(l.data.preset&&je[l.data.preset]){const r=re(l.data.preset,t(_));return{preset:l.data.preset,from:r.from,to:r.to}}if(l.data.from&&l.data.to){const r=Wt(l.data.from,t(_)),i=Wt(l.data.to,t(_));if(r.isValid&&i.isValid)return{preset:null,from:r.toJSDate(),to:i.toJSDate()}}const a=re("24h",t(_));return{preset:"24h",from:a.from,to:a.to}}const ot=se();let st=d(I(ot.preset)),G=d(I(ee(ot.from,t(_)))),K=d(I(ee(ot.to,t(_)))),bt=d(I(ae(ot.from,t(_)))),Tt=d(I(ae(ot.to,t(_))));function ne(a=!0){Le(t(st)?{preset:t(st)}:{from:Ot(),to:Mt()},{pushToHistory:a})}const jt="task_detail",Lt=Je(jt,{field:"recorded_at",direction:"desc"});let nt=d(I(Lt.field)),lt=d(I(Lt.direction));function Ot(){const[a,r]=(t(bt)||"00:00").split(":").map(Number),i=Xt({year:t(G).year,month:t(G).month,day:t(G).day,hour:a,minute:r},t(_));return Zt(i)}function Mt(){const[a,r]=(t(Tt)||"23:59").split(":").map(Number),i=Xt({year:t(K).year,month:t(K).month,day:t(K).day,hour:a,minute:r},t(_)).endOf("minute");return Zt(i)}function le(a,r,i){e(G,a.date,!0),e(bt,a.time,!0),e(K,r.date,!0),e(Tt,r.time,!0),e(st,i,!0),e(q,1),U()}async function U(a=!0){e(A,!0),e(ht,""),e(St,!1),e(xt,0),ne(a);try{const r={fromDate:Ot(),toDate:Mt(),orderBy:t(nt),sortDirection:t(lt),pagination:{page:t(q),pageSize:t($t)}},i=await Pe.post(`/tasks/task?task=${encodeURIComponent(l.data.task)}`,r,{projectId:Se.currentProjectId??void 0});e(_t,i.data||[],!0),e(F,i.stats||null,!0),e(Bt,i.pagination.total,!0),e(Dt,i.pagination.totalPages,!0)}catch(r){console.error(r),e(xt,r.status||0,!0),r.status===404?e(St,!0):e(ht,r.message||"Failed to load data",!0)}finally{e(A,!1)}}function ie(a){a>=1&&a<=t(Dt)&&(e(q,a,!0),U(!1))}function de(a){e($t,a,!0),e(q,1),U(!1)}function Nt(a){const r=qe(a,t(nt),t(lt));e(nt,r.field,!0),e(lt,r.direction,!0),Ge(jt,r),e(q,1),U(!1)}$e(()=>{U(!1)});var Ct=ra(),ue=u(Ct);{var ce=a=>{{let r=w(()=>Ft({fallbackPath:Ut("/tasks")})),i=w(()=>decodeURIComponent(l.data.task));oe(a,{status:404,title:"Task Not Found",description:"The task you're looking for doesn't exist or has no recorded executions.",get onBack(){return t(r)},backLabel:"Back to Tasks",onRetry:()=>U(!1),get identifier(){return t(i)}})}},me=a=>{var r=P(),i=f(r);{var fe=Y=>{{let kt=w(()=>t(xt)===400?400:t(xt)===422?422:400),it=w(()=>Ft({fallbackPath:Ut("/tasks")}));oe(Y,{get status(){return t(kt)},title:"Failed to Load Tasks",get description(){return t(ht)},get onBack(){return t(it)},backLabel:"Back to Tasks",onRetry:()=>U(!1)})}},ve=Y=>{var kt=aa(),it=f(kt),Et=u(it);{let s=w(()=>decodeURIComponent(l.data.task)),T=w(()=>Ft({fallbackPath:Ut("/tasks")}));He(Et,{get title(){return t(s)},subtitle:"Task instances",get onBack(){return t(T)}})}var Vt=n(Et,2),ge=u(Vt);Oe(ge,{onApply:le,get fromDate(){return t(G)},set fromDate(s){e(G,s,!0)},get toDate(){return t(K)},set toDate(s){e(K,s,!0)},get fromTime(){return t(bt)},set fromTime(s){e(bt,s,!0)},get toTime(){return t(Tt)},set toTime(s){e(Tt,s,!0)},get preset(){return t(st)},set preset(s){e(st,s,!0)}}),c(Vt),c(it);var Ht=n(it,2);{var pe=s=>{var T=Qe(),B=u(T),dt=u(B),R=u(dt,!0);c(dt),S(2),c(B);var k=n(B,2),Q=u(k),It=u(Q,!0);c(Q),S(2),c(k);var D=n(k,2),j=u(D),ut=u(j,!0);c(j),S(2),c(D);var W=n(D,2),L=u(W),ct=u(L,!0);c(L),S(2),c(W);var mt=n(W,2),O=u(mt),y=u(O);c(O),S(2),c(mt),c(T),at((C,M,N,X,v)=>{$(R,C),$(It,M),$(ut,N),$(ct,X),$(y,`${v??""} rpm`)},[()=>yt(t(F).avgDuration),()=>yt(t(F).medianDuration),()=>yt(t(F).p95Duration),()=>yt(t(F).p99Duration),()=>t(F).throughput.toFixed(0)]),o(s,T)},_e=s=>{var T=P(),B=f(T);{var dt=R=>{var k=We(),Q=u(k);te(Q,{size:"lg"}),c(k),o(R,k)};H(B,R=>{t(A)&&R(dt)},!0)}o(s,T)};H(Ht,s=>{t(F)?s(pe):s(_e,!1)})}var Rt=n(Ht,2),he=u(Rt);g(he,()=>Ue,(s,T)=>{T(s,{children:(B,dt)=>{var R=ea(),k=f(R);{var Q=D=>{var j=P(),ut=f(j);g(ut,()=>Be,(W,L)=>{L(W,{children:(ct,mt)=>{var O=P(),y=f(O);g(y,()=>At,(C,M)=>{M(C,{children:(N,X)=>{var v=Xe(),Z=f(v);rt(Z,{label:"Recorded At",sortField:"recorded_at",get currentSortField(){return t(nt)},get sortDirection(){return t(lt)},onSort:et=>Nt(et),class:"w-[180px]"});var E=n(Z,2);rt(E,{label:"Duration",sortField:"duration",get currentSortField(){return t(nt)},get sortDirection(){return t(lt)},onSort:et=>Nt(et),class:"w-[120px]"});var tt=n(E,2);rt(tt,{label:"Client IP",class:"w-[140px]"});var p=n(tt,2);rt(p,{label:"Server",class:"w-[120px]"});var V=n(p,2);rt(V,{label:"Version",class:"w-[100px]"});var ft=n(V,2);rt(ft,{label:"Attributes"}),o(N,v)},$$slots:{default:!0}})}),o(ct,O)},$$slots:{default:!0}})}),o(D,j)};H(k,D=>{(t(A)||t(_t).length>0)&&D(Q)})}var It=n(k,2);g(It,()=>Ae,(D,j)=>{j(D,{children:(ut,W)=>{var L=P(),ct=f(L);{var mt=y=>{var C=P(),M=f(C);g(M,()=>At,(N,X)=>{X(N,{children:(v,Z)=>{var E=P(),tt=f(E);g(tt,()=>J,(p,V)=>{V(p,{colspan:6,class:"h-48",children:(ft,et)=>{var vt=Ze(),wt=u(vt);te(wt,{size:"lg"}),c(vt),o(ft,vt)},$$slots:{default:!0}})}),o(v,E)},$$slots:{default:!0}})}),o(y,C)},O=y=>{var C=P(),M=f(C);{var N=v=>{Me(v,{colspan:6,message:"No tasks found in this time range."})},X=v=>{var Z=P(),E=f(Z);Re(E,17,()=>t(_t),Ie,(tt,p)=>{var V=P(),ft=f(V);{let et=w(()=>Ee(`/tasks/${encodeURIComponent(decodeURIComponent(l.data.task))}/${t(p).id}`,"preset","from","to"));g(ft,()=>At,(vt,wt)=>{wt(vt,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return t(et)},children:(be,oa)=>{var Jt=ta(),qt=f(Jt);g(qt,()=>J,(h,x)=>{x(h,{class:"text-muted-foreground",children:(b,gt)=>{S();var m=pt();at(zt=>$(m,zt),[()=>ze(t(p).recordedAt,{timezone:t(_)})]),o(b,m)},$$slots:{default:!0}})});var Gt=n(qt,2);g(Gt,()=>J,(h,x)=>{x(h,{class:"font-mono text-sm",children:(b,gt)=>{S();var m=pt();at(zt=>$(m,zt),[()=>Fe(t(p).duration)]),o(b,m)},$$slots:{default:!0}})});var Kt=n(Gt,2);g(Kt,()=>J,(h,x)=>{x(h,{class:"font-mono text-sm text-muted-foreground",children:(b,gt)=>{S();var m=pt();at(()=>$(m,t(p).clientIP)),o(b,m)},$$slots:{default:!0}})});var Yt=n(Kt,2);g(Yt,()=>J,(h,x)=>{x(h,{class:"font-mono text-sm text-muted-foreground",children:(b,gt)=>{S();var m=pt();at(()=>$(m,t(p).serverName||"-")),o(b,m)},$$slots:{default:!0}})});var Qt=n(Yt,2);g(Qt,()=>J,(h,x)=>{x(h,{class:"font-mono text-sm text-muted-foreground",children:(b,gt)=>{S();var m=pt();at(()=>$(m,t(p).appVersion||"-")),o(b,m)},$$slots:{default:!0}})});var Te=n(Qt,2);g(Te,()=>J,(h,x)=>{x(h,{children:(b,gt)=>{Ne(b,{get attributes(){return t(p).attributes}})},$$slots:{default:!0}})}),o(be,Jt)},$$slots:{default:!0}})})}o(tt,V)}),o(v,Z)};H(M,v=>{t(_t).length===0?v(N):v(X,!1)},!0)}o(y,C)};H(ct,y=>{t(A)?y(mt):y(O,!1)})}o(ut,L)},$$slots:{default:!0}})}),o(B,R)},$$slots:{default:!0}})}),c(Rt);var xe=n(Rt,2);Ve(xe,{get currentPage(){return t(q)},get totalPages(){return t(Dt)},get pageSize(){return t($t)},get totalItems(){return t(Bt)},onPageChange:ie,onPageSizeChange:de,get loading(){return t(A)},itemLabel:"task"}),o(Y,kt)};H(i,Y=>{t(ht)&&!t(A)?Y(fe):Y(ve,!1)},!0)}o(a,r)};H(ue,a=>{t(St)?a(ce):a(me,!1)})}c(Ct),o(Pt,Ct),Ce()}export{Da as component,$a as universal};
+import{r as ke}from"../chunks/B4VmGkxP.js";import{b as ye,a as Pe,p as Se,c as Ft}from"../chunks/qCQ2nSvO.js";import{i as H}from"../chunks/DMODTt3n.js";import{o as $e}from"../chunks/Dwk6gGSK.js";import{p as De,h as d,v as I,g as t,u as w,f as z,b as o,a as Ce,e as u,r as c,i as e,d as P,c as f,s as n,n as S,k as at,l as $,t as pt}from"../chunks/B2WdN-7r.js";import{e as Re,i as Ie}from"../chunks/CMyj8Fzw.js";import{c as g}from"../chunks/BAcG0-U_.js";import{p as Wt,g as we,c as Xt,t as Zt,d as yt,f as ze,b as Fe}from"../chunks/Dq-0lVru.js";import{b as Ae,T as At,a as J,c as Ue}from"../chunks/CeOjHHJH.js";import{T as Be}from"../chunks/CEJkX7WU.js";import{L as te}from"../chunks/D0pIT200.js";import{d as ee,a as ae,c as je,b as re,u as Le,T as Oe}from"../chunks/DjEjtFrE.js";import{T as rt}from"../chunks/CkVJuMBr.js";import{T as Me}from"../chunks/xk30YnJ1.js";import{E as oe}from"../chunks/CFZS-Ydw.js";import{A as Ne}from"../chunks/Dtb4566M.js";import{c as Ee}from"../chunks/UIirCQWa.js";import{P as Ve}from"../chunks/DByR3-93.js";import{P as He}from"../chunks/Cplpgpvt.js";import{r as Ut}from"../chunks/BGApn_8u.js";import{g as Je,h as qe,s as Ge}from"../chunks/X-i49s3k.js";const Ke=!1,Ye=({params:Pt,url:l})=>{if(!ye.isAuthenticated)throw ke(302,"/login");return{task:Pt.task,preset:l.searchParams.get("preset")||null,from:l.searchParams.get("from")||null,to:l.searchParams.get("to")||null}},$a=Object.freeze(Object.defineProperty({__proto__:null,load:Ye,prerender:Ke},Symbol.toStringTag,{value:"Module"}));var Qe=z('<div class="grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5"><div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average duration</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Median duration</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">95th percentile</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">99th percentile</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average throughput</p></div></div>'),We=z('<div class="flex items-center justify-center py-8"><!></div>'),Xe=z("<!> <!> <!> <!> <!> <!>",1),Ze=z('<div class="flex items-center justify-center"><!></div>'),ta=z("<!> <!> <!> <!> <!> <!>",1),ea=z("<!> <!>",1),aa=z('<div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex flex-col"><!></div></div> <!> <div class="overflow-hidden rounded-md border"><!></div> <!>',1),ra=z('<div class="space-y-6"><!></div>');function Da(Pt,l){De(l,!0);const _=w(we);let _t=d(I([])),F=d(null),A=d(!0),ht=d(""),St=d(!1),xt=d(0),q=d(1),$t=d(50),Bt=d(0),Dt=d(0);function se(){if(l.data.preset&&je[l.data.preset]){const r=re(l.data.preset,t(_));return{preset:l.data.preset,from:r.from,to:r.to}}if(l.data.from&&l.data.to){const r=Wt(l.data.from,t(_)),i=Wt(l.data.to,t(_));if(r.isValid&&i.isValid)return{preset:null,from:r.toJSDate(),to:i.toJSDate()}}const a=re("24h",t(_));return{preset:"24h",from:a.from,to:a.to}}const ot=se();let st=d(I(ot.preset)),G=d(I(ee(ot.from,t(_)))),K=d(I(ee(ot.to,t(_)))),bt=d(I(ae(ot.from,t(_)))),Tt=d(I(ae(ot.to,t(_))));function ne(a=!0){Le(t(st)?{preset:t(st)}:{from:Ot(),to:Mt()},{pushToHistory:a})}const jt="task_detail",Lt=Je(jt,{field:"recorded_at",direction:"desc"});let nt=d(I(Lt.field)),lt=d(I(Lt.direction));function Ot(){const[a,r]=(t(bt)||"00:00").split(":").map(Number),i=Xt({year:t(G).year,month:t(G).month,day:t(G).day,hour:a,minute:r},t(_));return Zt(i)}function Mt(){const[a,r]=(t(Tt)||"23:59").split(":").map(Number),i=Xt({year:t(K).year,month:t(K).month,day:t(K).day,hour:a,minute:r},t(_)).endOf("minute");return Zt(i)}function le(a,r,i){e(G,a.date,!0),e(bt,a.time,!0),e(K,r.date,!0),e(Tt,r.time,!0),e(st,i,!0),e(q,1),U()}async function U(a=!0){e(A,!0),e(ht,""),e(St,!1),e(xt,0),ne(a);try{const r={fromDate:Ot(),toDate:Mt(),orderBy:t(nt),sortDirection:t(lt),pagination:{page:t(q),pageSize:t($t)}},i=await Pe.post(`/tasks/task?task=${encodeURIComponent(l.data.task)}`,r,{projectId:Se.currentProjectId??void 0});e(_t,i.data||[],!0),e(F,i.stats||null,!0),e(Bt,i.pagination.total,!0),e(Dt,i.pagination.totalPages,!0)}catch(r){console.error(r),e(xt,r.status||0,!0),r.status===404?e(St,!0):e(ht,r.message||"Failed to load data",!0)}finally{e(A,!1)}}function ie(a){a>=1&&a<=t(Dt)&&(e(q,a,!0),U(!1))}function de(a){e($t,a,!0),e(q,1),U(!1)}function Nt(a){const r=qe(a,t(nt),t(lt));e(nt,r.field,!0),e(lt,r.direction,!0),Ge(jt,r),e(q,1),U(!1)}$e(()=>{U(!1)});var Ct=ra(),ue=u(Ct);{var ce=a=>{{let r=w(()=>Ft({fallbackPath:Ut("/tasks")})),i=w(()=>decodeURIComponent(l.data.task));oe(a,{status:404,title:"Task Not Found",description:"The task you're looking for doesn't exist or has no recorded executions.",get onBack(){return t(r)},backLabel:"Back to Tasks",onRetry:()=>U(!1),get identifier(){return t(i)}})}},me=a=>{var r=P(),i=f(r);{var fe=Y=>{{let kt=w(()=>t(xt)===400?400:t(xt)===422?422:400),it=w(()=>Ft({fallbackPath:Ut("/tasks")}));oe(Y,{get status(){return t(kt)},title:"Failed to Load Tasks",get description(){return t(ht)},get onBack(){return t(it)},backLabel:"Back to Tasks",onRetry:()=>U(!1)})}},ve=Y=>{var kt=aa(),it=f(kt),Et=u(it);{let s=w(()=>decodeURIComponent(l.data.task)),T=w(()=>Ft({fallbackPath:Ut("/tasks")}));He(Et,{get title(){return t(s)},subtitle:"Task instances",get onBack(){return t(T)}})}var Vt=n(Et,2),ge=u(Vt);Oe(ge,{onApply:le,get fromDate(){return t(G)},set fromDate(s){e(G,s,!0)},get toDate(){return t(K)},set toDate(s){e(K,s,!0)},get fromTime(){return t(bt)},set fromTime(s){e(bt,s,!0)},get toTime(){return t(Tt)},set toTime(s){e(Tt,s,!0)},get preset(){return t(st)},set preset(s){e(st,s,!0)}}),c(Vt),c(it);var Ht=n(it,2);{var pe=s=>{var T=Qe(),B=u(T),dt=u(B),R=u(dt,!0);c(dt),S(2),c(B);var k=n(B,2),Q=u(k),It=u(Q,!0);c(Q),S(2),c(k);var D=n(k,2),j=u(D),ut=u(j,!0);c(j),S(2),c(D);var W=n(D,2),L=u(W),ct=u(L,!0);c(L),S(2),c(W);var mt=n(W,2),O=u(mt),y=u(O);c(O),S(2),c(mt),c(T),at((C,M,N,X,v)=>{$(R,C),$(It,M),$(ut,N),$(ct,X),$(y,`${v??""} rpm`)},[()=>yt(t(F).avgDuration),()=>yt(t(F).medianDuration),()=>yt(t(F).p95Duration),()=>yt(t(F).p99Duration),()=>t(F).throughput.toFixed(0)]),o(s,T)},_e=s=>{var T=P(),B=f(T);{var dt=R=>{var k=We(),Q=u(k);te(Q,{size:"lg"}),c(k),o(R,k)};H(B,R=>{t(A)&&R(dt)},!0)}o(s,T)};H(Ht,s=>{t(F)?s(pe):s(_e,!1)})}var Rt=n(Ht,2),he=u(Rt);g(he,()=>Ue,(s,T)=>{T(s,{children:(B,dt)=>{var R=ea(),k=f(R);{var Q=D=>{var j=P(),ut=f(j);g(ut,()=>Be,(W,L)=>{L(W,{children:(ct,mt)=>{var O=P(),y=f(O);g(y,()=>At,(C,M)=>{M(C,{children:(N,X)=>{var v=Xe(),Z=f(v);rt(Z,{label:"Recorded At",sortField:"recorded_at",get currentSortField(){return t(nt)},get sortDirection(){return t(lt)},onSort:et=>Nt(et),class:"w-[180px]"});var E=n(Z,2);rt(E,{label:"Duration",sortField:"duration",get currentSortField(){return t(nt)},get sortDirection(){return t(lt)},onSort:et=>Nt(et),class:"w-[120px]"});var tt=n(E,2);rt(tt,{label:"Client IP",class:"w-[140px]"});var p=n(tt,2);rt(p,{label:"Server",class:"w-[120px]"});var V=n(p,2);rt(V,{label:"Version",class:"w-[100px]"});var ft=n(V,2);rt(ft,{label:"Attributes"}),o(N,v)},$$slots:{default:!0}})}),o(ct,O)},$$slots:{default:!0}})}),o(D,j)};H(k,D=>{(t(A)||t(_t).length>0)&&D(Q)})}var It=n(k,2);g(It,()=>Ae,(D,j)=>{j(D,{children:(ut,W)=>{var L=P(),ct=f(L);{var mt=y=>{var C=P(),M=f(C);g(M,()=>At,(N,X)=>{X(N,{children:(v,Z)=>{var E=P(),tt=f(E);g(tt,()=>J,(p,V)=>{V(p,{colspan:6,class:"h-48",children:(ft,et)=>{var vt=Ze(),wt=u(vt);te(wt,{size:"lg"}),c(vt),o(ft,vt)},$$slots:{default:!0}})}),o(v,E)},$$slots:{default:!0}})}),o(y,C)},O=y=>{var C=P(),M=f(C);{var N=v=>{Me(v,{colspan:6,message:"No tasks found in this time range."})},X=v=>{var Z=P(),E=f(Z);Re(E,17,()=>t(_t),Ie,(tt,p)=>{var V=P(),ft=f(V);{let et=w(()=>Ee(`/tasks/${encodeURIComponent(decodeURIComponent(l.data.task))}/${t(p).id}`,"preset","from","to"));g(ft,()=>At,(vt,wt)=>{wt(vt,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return t(et)},children:(be,oa)=>{var Jt=ta(),qt=f(Jt);g(qt,()=>J,(h,x)=>{x(h,{class:"text-muted-foreground",children:(b,gt)=>{S();var m=pt();at(zt=>$(m,zt),[()=>ze(t(p).recordedAt,{timezone:t(_)})]),o(b,m)},$$slots:{default:!0}})});var Gt=n(qt,2);g(Gt,()=>J,(h,x)=>{x(h,{class:"font-mono text-sm",children:(b,gt)=>{S();var m=pt();at(zt=>$(m,zt),[()=>Fe(t(p).duration)]),o(b,m)},$$slots:{default:!0}})});var Kt=n(Gt,2);g(Kt,()=>J,(h,x)=>{x(h,{class:"font-mono text-sm text-muted-foreground",children:(b,gt)=>{S();var m=pt();at(()=>$(m,t(p).clientIP)),o(b,m)},$$slots:{default:!0}})});var Yt=n(Kt,2);g(Yt,()=>J,(h,x)=>{x(h,{class:"font-mono text-sm text-muted-foreground",children:(b,gt)=>{S();var m=pt();at(()=>$(m,t(p).serverName||"-")),o(b,m)},$$slots:{default:!0}})});var Qt=n(Yt,2);g(Qt,()=>J,(h,x)=>{x(h,{class:"font-mono text-sm text-muted-foreground",children:(b,gt)=>{S();var m=pt();at(()=>$(m,t(p).appVersion||"-")),o(b,m)},$$slots:{default:!0}})});var Te=n(Qt,2);g(Te,()=>J,(h,x)=>{x(h,{children:(b,gt)=>{Ne(b,{get attributes(){return t(p).attributes}})},$$slots:{default:!0}})}),o(be,Jt)},$$slots:{default:!0}})})}o(tt,V)}),o(v,Z)};H(M,v=>{t(_t).length===0?v(N):v(X,!1)},!0)}o(y,C)};H(ct,y=>{t(A)?y(mt):y(O,!1)})}o(ut,L)},$$slots:{default:!0}})}),o(B,R)},$$slots:{default:!0}})}),c(Rt);var xe=n(Rt,2);Ve(xe,{get currentPage(){return t(q)},get totalPages(){return t(Dt)},get pageSize(){return t($t)},get totalItems(){return t(Bt)},onPageChange:ie,onPageSizeChange:de,get loading(){return t(A)},itemLabel:"task"}),o(Y,kt)};H(i,Y=>{t(ht)&&!t(A)?Y(fe):Y(ve,!1)},!0)}o(a,r)};H(ue,a=>{t(St)?a(ce):a(me,!1)})}c(Ct),o(Pt,Ct),Ce()}export{Da as component,$a as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/28.Bz5w7sEt.js.map b/backend/static/frontend/_app/immutable/nodes/28.DSjeiQY_.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/28.Bz5w7sEt.js.map
rename to backend/static/frontend/_app/immutable/nodes/28.DSjeiQY_.js.map
index 7f1b21c8..6c561d4e 100644
--- a/backend/static/frontend/_app/immutable/nodes/28.Bz5w7sEt.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/28.DSjeiQY_.js.map
@@ -1 +1 @@
-{"version":3,"file":"28.Bz5w7sEt.js","sources":["../../../../../../src/routes/tasks/[task]/+page.ts","../../../../../../src/routes/tasks/[task]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\ttask: params.task,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { api } from '$lib/api';\n\timport {\n\t\tformatDuration,\n\t\tformatDurationMs,\n\t\tformatDateTime,\n\t\tparseISO,\n\t\ttoUTCISO,\n\t\tcalendarDateTimeToLuxon\n\t} from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport * as Table from '$lib/components/ui/table';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { CalendarDate } from '@internationalized/date';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport AttributesDisplay from '$lib/components/attributes-display.svelte';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport PaginationFooter from '$lib/components/ui/pagination-footer/pagination-footer.svelte';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { resolve } from '$app/paths';\n\timport {\n\t\tpresetMinutes,\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport {\n\t\tgetSortState,\n\t\tsetSortState,\n\t\thandleSortClick,\n\t\ttype SortDirection\n\t} from '$lib/utils/sort-storage';\n\n\tconst timezone = $derived(getTimezone());\n\n\ttype Task = {\n\t\tid: string;\n\t\ttaskName: string;\n\t\tduration: number;\n\t\trecordedAt: string;\n\t\tclientIP: string;\n\t\tattributes: Record<string, string> | null;\n\t\tserverName: string;\n\t\tappVersion: string;\n\t};\n\n\ttype TaskStats = {\n\t\tcount: number;\n\t\tavgDuration: number;\n\t\tmedianDuration: number;\n\t\tp95Duration: number;\n\t\tp99Duration: number;\n\t\tthroughput: number;\n\t};\n\n\ttype SortField = 'recorded_at' | 'duration';\n\n\tlet { data } = $props();\n\n\tlet tasks = $state<Task[]>([]);\n\tlet stats = $state<TaskStats | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\tlet errorStatus = $state<number>(0);\n\n\t// Pagination State\n\tlet page = $state(1);\n\tlet pageSize = $state(50);\n\tlet total = $state(0);\n\tlet totalPages = $state(0);\n\n\t// Initialize from URL params (from page data)\n\tfunction getInitialRange(): { preset: string | null; from: Date; to: Date } {\n\t\t// If preset is provided, use it\n\t\tif (data.preset && presetMinutes[data.preset]) {\n\t\t\tconst range = getTimeRangeFromPreset(data.preset, timezone);\n\t\t\treturn { preset: data.preset, from: range.from, to: range.to };\n\t\t}\n\n\t\t// If custom from/to provided\n\t\tif (data.from && data.to) {\n\t\t\tconst fromDt = parseISO(data.from, timezone);\n\t\t\tconst toDt = parseISO(data.to, timezone);\n\t\t\tif (fromDt.isValid && toDt.isValid) {\n\t\t\t\treturn { preset: null, from: fromDt.toJSDate(), to: toDt.toJSDate() };\n\t\t\t}\n\t\t}\n\n\t\t// Default to 24h preset\n\t\tconst range = getTimeRangeFromPreset('24h', timezone);\n\t\treturn { preset: '24h', from: range.from, to: range.to };\n\t}\n\n\tconst initialRange = getInitialRange();\n\n\t// Date Range State\n\tlet selectedPreset = $state<string | null>(initialRange.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\tfunction updateTimeRangeUrl(pushToHistory = true) {\n\t\tupdateUrl(\n\t\t\tselectedPreset\n\t\t\t\t? { preset: selectedPreset }\n\t\t\t\t: { from: getFromDateTimeUTC(), to: getToDateTimeUTC() },\n\t\t\t{ pushToHistory }\n\t\t);\n\t}\n\n\t// Sorting State - persisted to localStorage\n\tconst SORT_STORAGE_KEY = 'task_detail';\n\tconst initialSort = getSortState(SORT_STORAGE_KEY, { field: 'recorded_at', direction: 'desc' });\n\tlet orderBy = $state<SortField>(initialSort.field as SortField);\n\tlet sortDirection = $state<SortDirection>(initialSort.direction);\n\n\t// Combine date and time into UTC ISO datetime string\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = (toTime || '23:59').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\tfromTime = from.time;\n\t\ttoDate = to.date;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\tpage = 1;\n\t\tloadData();\n\t}\n\n\tasync function loadData(pushToHistory = true) {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\t\terrorStatus = 0;\n\n\t\tupdateTimeRangeUrl(pushToHistory);\n\n\t\ttry {\n\t\t\tconst requestBody = {\n\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\ttoDate: getToDateTimeUTC(),\n\t\t\t\torderBy: orderBy,\n\t\t\t\tsortDirection: sortDirection,\n\t\t\t\tpagination: {\n\t\t\t\t\tpage: page,\n\t\t\t\t\tpageSize: pageSize\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tconst response = await api.post(\n\t\t\t\t`/tasks/task?task=${encodeURIComponent(data.task)}`,\n\t\t\t\trequestBody,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\ttasks = response.data || [];\n\t\t\tstats = response.stats || null;\n\t\t\ttotal = response.pagination.total;\n\t\t\ttotalPages = response.pagination.totalPages;\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\terrorStatus = e.status || 0;\n\t\t\tif (e.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = e.message || 'Failed to load data';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handlePageChange(newPage: number) {\n\t\tif (newPage >= 1 && newPage <= totalPages) {\n\t\t\tpage = newPage;\n\t\t\tloadData(false);\n\t\t}\n\t}\n\n\tfunction handlePageSizeChange(newPageSize: number) {\n\t\tpageSize = newPageSize;\n\t\tpage = 1;\n\t\tloadData(false); // Don't push to history for pagination\n\t}\n\n\tfunction handleSort(field: SortField) {\n\t\tconst newSort = handleSortClick(field, orderBy, sortDirection);\n\t\torderBy = newSort.field as SortField;\n\t\tsortDirection = newSort.direction;\n\t\tsetSortState(SORT_STORAGE_KEY, newSort);\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tonMount(() => {\n\t\tloadData(false);\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t{#if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"Task Not Found\"\n\t\t\tdescription=\"The task you're looking for doesn't exist or has no recorded executions.\"\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/tasks') })}\n\t\t\tbackLabel=\"Back to Tasks\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t\tidentifier={decodeURIComponent(data.task)}\n\t\t/>\n\t{:else if error && !loading}\n\t\t<ErrorDisplay\n\t\t\tstatus={errorStatus === 400 ? 400 : errorStatus === 422 ? 422 : 400}\n\t\t\ttitle=\"Failed to Load Tasks\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/tasks') })}\n\t\t\tbackLabel=\"Back to Tasks\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t/>\n\t{:else}\n\t\t<!-- Header with Title and Time Range Filter -->\n\t\t<div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n\t\t\t<PageHeader\n\t\t\t\ttitle={decodeURIComponent(data.task)}\n\t\t\t\tsubtitle=\"Task instances\"\n\t\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/tasks') })}\n\t\t\t/>\n\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<TimeRangePicker\n\t\t\t\t\tbind:fromDate\n\t\t\t\t\tbind:toDate\n\t\t\t\t\tbind:fromTime\n\t\t\t\t\tbind:toTime\n\t\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<!-- Task Stats -->\n\t\t{#if stats}\n\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5\">\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.avgDuration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average duration</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">\n\t\t\t\t\t\t{formatDurationMs(stats.medianDuration)}\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Median duration</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.p95Duration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">95th percentile</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.p99Duration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">99th percentile</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{stats.throughput.toFixed(0)} rpm</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average throughput</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{:else if loading}\n\t\t\t<div class=\"flex items-center justify-center py-8\">\n\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Tasks Table -->\n\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t<Table.Root>\n\t\t\t\t{#if loading || tasks.length > 0}\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\t\t\tsortField=\"recorded_at\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[180px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Duration\"\n\t\t\t\t\t\t\t\tsortField=\"duration\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[120px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Client IP\" class=\"w-[140px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Server\" class=\"w-[120px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Version\" class=\"w-[100px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Attributes\" />\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t{/if}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Cell colspan={6} class=\"h-48\">\n\t\t\t\t\t\t\t\t<div class=\"flex items-center justify-center\">\n\t\t\t\t\t\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t{:else if tasks.length === 0}\n\t\t\t\t\t\t<TableEmptyState colspan={6} message=\"No tasks found in this time range.\" />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{#each tasks as task}\n\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/tasks/${encodeURIComponent(decodeURIComponent(data.task))}/${task.id}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{formatDateTime(task.recordedAt, { timezone })}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t{formatDuration(task.duration)}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{task.clientIP}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{task.serverName || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{task.appVersion || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t<AttributesDisplay attributes={task.attributes} />\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t{/if}\n\t\t\t\t</Table.Body>\n\t\t\t</Table.Root>\n\t\t</div>\n\n\t\t<!-- Pagination Footer -->\n\t\t<PaginationFooter\n\t\t\tcurrentPage={page}\n\t\t\t{totalPages}\n\t\t\t{pageSize}\n\t\t\ttotalItems={total}\n\t\t\tonPageChange={handlePageChange}\n\t\t\tonPageSizeChange={handlePageSizeChange}\n\t\t\t{loading}\n\t\t\titemLabel=\"task\"\n\t\t/>\n\t{/if}\n</div>\n"],"names":["prerender","load","params","url","authState","redirect","timezone","getTimezone","tasks","$.state","$.proxy","stats","loading","error","notFound","errorStatus","page","pageSize","total","totalPages","getInitialRange","$$props","presetMinutes","range","getTimeRangeFromPreset","fromDt","parseISO","toDt","initialRange","selectedPreset","fromDate","dateToCalendarDate","$.get","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","updateUrl","getFromDateTimeUTC","getToDateTimeUTC","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","$.set","loadData","requestBody","response","api","projectsState","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","onMount","div","root","$0","$.derived","createSmartBackHandler","resolve","$1","ErrorDisplay","$$anchor","div_1","$.first_child","fragment_3","PageHeader","node_2","div_2","$.sibling","TimeRangePicker","node_3","$$value","div_3","root_5","div_4","p","div_5","p_1","div_6","p_2","div_7","p_3","div_8","p_4","formatDurationMs","div_9","root_7","LoadingCircle","node_6","$$render","consequent_3","consequent_2","alternate","div_10","node_4","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_11","node_12","node_13","node_14","node_15","node_16","consequent_4","Table_Body","Table_Row_1","Table_Cell","div_11","root_15","node_21","TableEmptyState","$.each","node_23","task","createRowClickHandler","Table_Row_2","Table_Cell_1","formatDateTime","Table_Cell_2","formatDuration","Table_Cell_3","$.template_effect","$.set_text","text_7","Table_Cell_4","Table_Cell_5","Table_Cell_6","AttributesDisplay","consequent_6","alternate_1","consequent_5","alternate_2","PaginationFooter","node_31","consequent_1","alternate_3","consequent","alternate_4"],"mappings":"8pCAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,GAAQ,IAAAC,KAAU,CAClD,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAG7B,MAAO,CACN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7D,EAAA,kFACT8D,GAAA,IAAAC,EAAAC,EAAAjH,EAAAuG,CAAI,EAAC,QAAQ,CAAA,qEAEdW,EAAUjE,EAAA,+FACTsD,CAAI,EAAC,YAAc,GAAG,CAAA,qEAEvBY,EAAUlE,EAAA,+FACTsD,CAAI,EAAC,YAAc,GAAG,CAAA,qEAEvBa,EAAUnE,EAAA,mBACToE,GAAiBpE,EAAA,kBAAa,OAAAjD,EAAAuG,CAAI,EAAC,uGA7B9B/H,EAAK,EAAC,SAAW,EAACqG,EAAAyC,CAAA,EAAAzC,EAAA0C,EAAA,EAAA,0BARvB3I,CAAO,EAAAiG,EAAA2C,EAAA,EAAA3C,EAAA4C,EAAA,EAAA,yEA7BdxC,EAAG,WAAHA,GAAG,CAAA,EA4EHyC,GAAAC,GAAA,4BACa3I,CAAI,6BAChBG,EAAU,2BACVF,EAAQ,6BACGC,EAAK,gBACH6C,oBACIE,0BACjBrD,CAAO,uCAlJAoB,EAAAnB,EAAK,MAAKD,CAAO,EAAAiG,EAAA+C,EAAA,EAAA/C,EAAAgD,GAAA,EAAA,0BAVtB/I,EAAQ,EAAA+F,EAAAiD,EAAA,EAAAjD,EAAAkD,GAAA,EAAA,MADbtF,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"28.DSjeiQY_.js","sources":["../../../../../../src/routes/tasks/[task]/+page.ts","../../../../../../src/routes/tasks/[task]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\ttask: params.task,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { api } from '$lib/api';\n\timport {\n\t\tformatDuration,\n\t\tformatDurationMs,\n\t\tformatDateTime,\n\t\tparseISO,\n\t\ttoUTCISO,\n\t\tcalendarDateTimeToLuxon\n\t} from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport * as Table from '$lib/components/ui/table';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { CalendarDate } from '@internationalized/date';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport AttributesDisplay from '$lib/components/attributes-display.svelte';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport PaginationFooter from '$lib/components/ui/pagination-footer/pagination-footer.svelte';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { resolve } from '$app/paths';\n\timport {\n\t\tpresetMinutes,\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport {\n\t\tgetSortState,\n\t\tsetSortState,\n\t\thandleSortClick,\n\t\ttype SortDirection\n\t} from '$lib/utils/sort-storage';\n\n\tconst timezone = $derived(getTimezone());\n\n\ttype Task = {\n\t\tid: string;\n\t\ttaskName: string;\n\t\tduration: number;\n\t\trecordedAt: string;\n\t\tclientIP: string;\n\t\tattributes: Record<string, string> | null;\n\t\tserverName: string;\n\t\tappVersion: string;\n\t};\n\n\ttype TaskStats = {\n\t\tcount: number;\n\t\tavgDuration: number;\n\t\tmedianDuration: number;\n\t\tp95Duration: number;\n\t\tp99Duration: number;\n\t\tthroughput: number;\n\t};\n\n\ttype SortField = 'recorded_at' | 'duration';\n\n\tlet { data } = $props();\n\n\tlet tasks = $state<Task[]>([]);\n\tlet stats = $state<TaskStats | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\tlet errorStatus = $state<number>(0);\n\n\t// Pagination State\n\tlet page = $state(1);\n\tlet pageSize = $state(50);\n\tlet total = $state(0);\n\tlet totalPages = $state(0);\n\n\t// Initialize from URL params (from page data)\n\tfunction getInitialRange(): { preset: string | null; from: Date; to: Date } {\n\t\t// If preset is provided, use it\n\t\tif (data.preset && presetMinutes[data.preset]) {\n\t\t\tconst range = getTimeRangeFromPreset(data.preset, timezone);\n\t\t\treturn { preset: data.preset, from: range.from, to: range.to };\n\t\t}\n\n\t\t// If custom from/to provided\n\t\tif (data.from && data.to) {\n\t\t\tconst fromDt = parseISO(data.from, timezone);\n\t\t\tconst toDt = parseISO(data.to, timezone);\n\t\t\tif (fromDt.isValid && toDt.isValid) {\n\t\t\t\treturn { preset: null, from: fromDt.toJSDate(), to: toDt.toJSDate() };\n\t\t\t}\n\t\t}\n\n\t\t// Default to 24h preset\n\t\tconst range = getTimeRangeFromPreset('24h', timezone);\n\t\treturn { preset: '24h', from: range.from, to: range.to };\n\t}\n\n\tconst initialRange = getInitialRange();\n\n\t// Date Range State\n\tlet selectedPreset = $state<string | null>(initialRange.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\tfunction updateTimeRangeUrl(pushToHistory = true) {\n\t\tupdateUrl(\n\t\t\tselectedPreset\n\t\t\t\t? { preset: selectedPreset }\n\t\t\t\t: { from: getFromDateTimeUTC(), to: getToDateTimeUTC() },\n\t\t\t{ pushToHistory }\n\t\t);\n\t}\n\n\t// Sorting State - persisted to localStorage\n\tconst SORT_STORAGE_KEY = 'task_detail';\n\tconst initialSort = getSortState(SORT_STORAGE_KEY, { field: 'recorded_at', direction: 'desc' });\n\tlet orderBy = $state<SortField>(initialSort.field as SortField);\n\tlet sortDirection = $state<SortDirection>(initialSort.direction);\n\n\t// Combine date and time into UTC ISO datetime string\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = (toTime || '23:59').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\tfromTime = from.time;\n\t\ttoDate = to.date;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\tpage = 1;\n\t\tloadData();\n\t}\n\n\tasync function loadData(pushToHistory = true) {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\t\terrorStatus = 0;\n\n\t\tupdateTimeRangeUrl(pushToHistory);\n\n\t\ttry {\n\t\t\tconst requestBody = {\n\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\ttoDate: getToDateTimeUTC(),\n\t\t\t\torderBy: orderBy,\n\t\t\t\tsortDirection: sortDirection,\n\t\t\t\tpagination: {\n\t\t\t\t\tpage: page,\n\t\t\t\t\tpageSize: pageSize\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tconst response = await api.post(\n\t\t\t\t`/tasks/task?task=${encodeURIComponent(data.task)}`,\n\t\t\t\trequestBody,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\ttasks = response.data || [];\n\t\t\tstats = response.stats || null;\n\t\t\ttotal = response.pagination.total;\n\t\t\ttotalPages = response.pagination.totalPages;\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\terrorStatus = e.status || 0;\n\t\t\tif (e.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = e.message || 'Failed to load data';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handlePageChange(newPage: number) {\n\t\tif (newPage >= 1 && newPage <= totalPages) {\n\t\t\tpage = newPage;\n\t\t\tloadData(false);\n\t\t}\n\t}\n\n\tfunction handlePageSizeChange(newPageSize: number) {\n\t\tpageSize = newPageSize;\n\t\tpage = 1;\n\t\tloadData(false); // Don't push to history for pagination\n\t}\n\n\tfunction handleSort(field: SortField) {\n\t\tconst newSort = handleSortClick(field, orderBy, sortDirection);\n\t\torderBy = newSort.field as SortField;\n\t\tsortDirection = newSort.direction;\n\t\tsetSortState(SORT_STORAGE_KEY, newSort);\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tonMount(() => {\n\t\tloadData(false);\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t{#if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"Task Not Found\"\n\t\t\tdescription=\"The task you're looking for doesn't exist or has no recorded executions.\"\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/tasks') })}\n\t\t\tbackLabel=\"Back to Tasks\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t\tidentifier={decodeURIComponent(data.task)}\n\t\t/>\n\t{:else if error && !loading}\n\t\t<ErrorDisplay\n\t\t\tstatus={errorStatus === 400 ? 400 : errorStatus === 422 ? 422 : 400}\n\t\t\ttitle=\"Failed to Load Tasks\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/tasks') })}\n\t\t\tbackLabel=\"Back to Tasks\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t/>\n\t{:else}\n\t\t<!-- Header with Title and Time Range Filter -->\n\t\t<div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n\t\t\t<PageHeader\n\t\t\t\ttitle={decodeURIComponent(data.task)}\n\t\t\t\tsubtitle=\"Task instances\"\n\t\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/tasks') })}\n\t\t\t/>\n\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<TimeRangePicker\n\t\t\t\t\tbind:fromDate\n\t\t\t\t\tbind:toDate\n\t\t\t\t\tbind:fromTime\n\t\t\t\t\tbind:toTime\n\t\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<!-- Task Stats -->\n\t\t{#if stats}\n\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5\">\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.avgDuration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average duration</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">\n\t\t\t\t\t\t{formatDurationMs(stats.medianDuration)}\n\t\t\t\t\t</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Median duration</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.p95Duration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">95th percentile</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.p99Duration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">99th percentile</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{stats.throughput.toFixed(0)} rpm</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average throughput</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{:else if loading}\n\t\t\t<div class=\"flex items-center justify-center py-8\">\n\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Tasks Table -->\n\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t<Table.Root>\n\t\t\t\t{#if loading || tasks.length > 0}\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\t\t\tsortField=\"recorded_at\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[180px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Duration\"\n\t\t\t\t\t\t\t\tsortField=\"duration\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[120px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Client IP\" class=\"w-[140px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Server\" class=\"w-[120px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Version\" class=\"w-[100px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Attributes\" />\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t{/if}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Cell colspan={6} class=\"h-48\">\n\t\t\t\t\t\t\t\t<div class=\"flex items-center justify-center\">\n\t\t\t\t\t\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t{:else if tasks.length === 0}\n\t\t\t\t\t\t<TableEmptyState colspan={6} message=\"No tasks found in this time range.\" />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{#each tasks as task}\n\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/tasks/${encodeURIComponent(decodeURIComponent(data.task))}/${task.id}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{formatDateTime(task.recordedAt, { timezone })}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t{formatDuration(task.duration)}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{task.clientIP}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{task.serverName || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{task.appVersion || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell>\n\t\t\t\t\t\t\t\t\t<AttributesDisplay attributes={task.attributes} />\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t{/if}\n\t\t\t\t</Table.Body>\n\t\t\t</Table.Root>\n\t\t</div>\n\n\t\t<!-- Pagination Footer -->\n\t\t<PaginationFooter\n\t\t\tcurrentPage={page}\n\t\t\t{totalPages}\n\t\t\t{pageSize}\n\t\t\ttotalItems={total}\n\t\t\tonPageChange={handlePageChange}\n\t\t\tonPageSizeChange={handlePageSizeChange}\n\t\t\t{loading}\n\t\t\titemLabel=\"task\"\n\t\t/>\n\t{/if}\n</div>\n"],"names":["prerender","load","params","url","authState","redirect","timezone","getTimezone","tasks","$.state","$.proxy","stats","loading","error","notFound","errorStatus","page","pageSize","total","totalPages","getInitialRange","$$props","presetMinutes","range","getTimeRangeFromPreset","fromDt","parseISO","toDt","initialRange","selectedPreset","fromDate","dateToCalendarDate","$.get","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","updateUrl","getFromDateTimeUTC","getToDateTimeUTC","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","$.set","loadData","requestBody","response","api","projectsState","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","onMount","div","root","$0","$.derived","createSmartBackHandler","resolve","$1","ErrorDisplay","$$anchor","div_1","$.first_child","fragment_3","PageHeader","node_2","div_2","$.sibling","TimeRangePicker","node_3","$$value","div_3","root_5","div_4","p","div_5","p_1","div_6","p_2","div_7","p_3","div_8","p_4","formatDurationMs","div_9","root_7","LoadingCircle","node_6","$$render","consequent_3","consequent_2","alternate","div_10","node_4","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_11","node_12","node_13","node_14","node_15","node_16","consequent_4","Table_Body","Table_Row_1","Table_Cell","div_11","root_15","node_21","TableEmptyState","$.each","node_23","task","createRowClickHandler","Table_Row_2","Table_Cell_1","formatDateTime","Table_Cell_2","formatDuration","Table_Cell_3","$.template_effect","$.set_text","text_7","Table_Cell_4","Table_Cell_5","Table_Cell_6","AttributesDisplay","consequent_6","alternate_1","consequent_5","alternate_2","PaginationFooter","node_31","consequent_1","alternate_3","consequent","alternate_4"],"mappings":"8pCAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,GAAQ,IAAAC,KAAU,CAClD,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAG7B,MAAO,CACN,KAAMH,GAAO,KACb,OAAQC,EAAI,aAAa,IAAI,QAAQ,GAAK,KAC1C,KAAMA,EAAI,aAAa,IAAI,MAAM,GAAK,KACtC,GAAIA,EAAI,aAAa,IAAI,IAAI,GAAK,IAAA,CAEpC,i3CCjBA,UAwCO,MAAAG,IAAoBC,EAAW,EA0BjC,IAAAC,GAAQC,EAAMC,EAAA,CAAA,CAAA,CAAA,EACdC,EAAQF,EAAyB,IAAI,EACrCG,EAAUH,EAAO,EAAI,EACrBI,GAAQJ,EAAO,EAAE,EACjBK,GAAWL,EAAO,EAAK,EACvBM,GAAcN,EAAe,CAAC,EAG9BO,EAAOP,EAAO,CAAC,EACfQ,GAAWR,EAAO,EAAE,EACpBS,GAAQT,EAAO,CAAC,EAChBU,GAAaV,EAAO,CAAC,EAGhB,SAAAW,IAAmE,CAElE,GAAAC,EAAA,KAAA,QAAUC,GAAaD,EAAA,KAA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IE,0BACjBrD,CAAO,uCAlJAoB,EAAAnB,EAAK,MAAKD,CAAO,EAAAiG,EAAA+C,EAAA,EAAA/C,EAAAgD,GAAA,EAAA,0BAVtB/I,EAAQ,EAAA+F,EAAAiD,EAAA,EAAAjD,EAAAkD,GAAA,EAAA,MADbtF,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/29.CGGFH12S.js b/backend/static/frontend/_app/immutable/nodes/29.D1lVEb9A.js
similarity index 95%
rename from backend/static/frontend/_app/immutable/nodes/29.CGGFH12S.js
rename to backend/static/frontend/_app/immutable/nodes/29.D1lVEb9A.js
index 12f1c6f7..fdcb0f68 100644
--- a/backend/static/frontend/_app/immutable/nodes/29.CGGFH12S.js
+++ b/backend/static/frontend/_app/immutable/nodes/29.D1lVEb9A.js
@@ -1,4 +1,4 @@
-import{r as me}from"../chunks/BJZ1igWb.js";import{b as pe,a as $e,p as qt,c as At}from"../chunks/D6S6XYVy.js";import{i as D}from"../chunks/DMODTt3n.js";import{o as ge}from"../chunks/Dwk6gGSK.js";import{p as he,f as v,b as e,a as ke,e as z,g as t,u as R,s,h as mt,r as L,i as q,d as w,c as o,n as I,t as T,k as at,l as st}from"../chunks/B2WdN-7r.js";import{e as be,i as xe}from"../chunks/CMyj8Fzw.js";import{c as a}from"../chunks/BAcG0-U_.js";import{g as Gt}from"../chunks/xR3pK9Ey.js";import{b as Pe,f as Jt,g as Te}from"../chunks/DJdWGDax.js";import{B as ye}from"../chunks/C1aqwstW.js";import{a as pt,b as $t,C as gt}from"../chunks/BHR29ZVu.js";import{C as ht}from"../chunks/BKHeGn2e.js";import{C as kt}from"../chunks/KAiF5-Ht.js";import{c as we,T as Kt,b as Ie,a as Dt}from"../chunks/CeOjHHJH.js";import{T as Ce,a as Rt}from"../chunks/CEJkX7WU.js";import{L as Se}from"../chunks/D0pIT200.js";import{E as Qt}from"../chunks/B-KBEnoV.js";import{L as ot}from"../chunks/BCZTK7qK.js";import{A as je}from"../chunks/DW1P0xGN.js";import{S as Ae,a as De,C as Re}from"../chunks/DNre5-OF.js";import{P as Be}from"../chunks/BGqyWGxT.js";import{r as Bt}from"../chunks/D_mqy6BL.js";import{D as ze}from"../chunks/NF-n962K.js";import{T as Le}from"../chunks/B4mGfC0Z.js";import{A as Oe}from"../chunks/Dt-hNsWv.js";const Fe=!1,Ue=({params:lt,url:h})=>{if(!pe.isAuthenticated)throw me(302,"/login");return{task:lt.task,taskId:lt.taskId,preset:h.searchParams.get("preset")||null,from:h.searchParams.get("from")||null,to:h.searchParams.get("to")||null}},Dr=Object.freeze(Object.defineProperty({__proto__:null,load:Ue,prerender:Fe},Symbol.toStringTag,{value:"Module"}));var Ee=v('<div class="flex items-center justify-center py-20"><!></div>'),Me=v("<!> <!>",1),He=v('<hr class="border-border"/> <div><p class="mb-3 text-sm font-medium">Attributes</p> <!></div>',1),Ne=v('<div class="grid grid-cols-2 gap-4 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5"><!> <!> <!> <!> <!></div> <!>',1),Ve=v("<!> <!>",1),qe=v('<div class="flex items-center gap-2"><!> <!></div> <!>',1),Ge=v("View Full Exception <!>",1),Je=v('<div class="mb-4 max-h-32 overflow-x-auto rounded-md bg-muted p-3"><pre class="font-mono text-sm whitespace-pre-wrap"> </pre></div> <!>',1),Ke=v("<!> <!>",1),Qe=v('<div class="flex items-center gap-2"><!> <!></div> <!>',1),We=v("<!> <!> <!>",1),Xe=v('<div class="max-w-md truncate font-mono text-sm"> </div>'),Ye=v('<span class="text-xs text-muted-foreground"> </span>'),Ze=v('<span class="text-xs text-muted-foreground">-</span>'),tr=v("<!> <!> <!>",1),er=v("<!> <!>",1),rr=v("<!> <!>",1),ar=v("<!> <!>",1),sr=v("<!> <!>",1),or=v("<!> <!> <!> <!> <!>",1),lr=v('<div class="space-y-6"><!> <!></div>');function Rr(lt,h){he(h,!0);const zt=R(Te);let n=mt(null),bt=mt(!0),nt=mt(""),xt=mt(!1);async function Pt(){q(bt,!0),q(nt,""),q(xt,!1);try{const k=await $e.post(`/tasks/${h.data.taskId}`,{},{projectId:qt.currentProjectId??void 0});q(n,k,!0)}catch(k){console.error(k);const C=k;C.status===404?q(xt,!0):q(nt,C.message||"Failed to load task details",!0)}finally{q(bt,!1)}}ge(()=>{Pt()});var Tt=lr(),Lt=z(Tt);{let k=R(()=>decodeURIComponent(h.data.task)),C=R(()=>`Task ID: ${h.data.taskId}`),Q=R(()=>At({fallbackPath:Bt("/tasks/[task]",{task:encodeURIComponent(h.data.task)})}));Be(Lt,{get title(){return t(k)},get subtitle(){return t(C)},get onBack(){return t(Q)}})}var Wt=s(Lt,2);{var Xt=k=>{var C=Ee(),Q=z(C);Se(Q,{size:"xlg"}),L(C),e(k,C)},Yt=k=>{var C=w(),Q=o(C);{var Zt=G=>{{let dt=R(()=>At({fallbackPath:Bt("/tasks/[task]",{task:encodeURIComponent(h.data.task)})}));Qt(G,{status:404,title:"Task Not Found",description:"The task instance you're looking for doesn't exist or may have expired.",get onBack(){return t(dt)},backLabel:"Back to Task",onRetry:Pt,get identifier(){return h.data.taskId}})}},te=G=>{var dt=w(),ee=o(dt);{var re=J=>{{let it=R(()=>At({fallbackPath:Bt("/tasks/[task]",{task:encodeURIComponent(h.data.task)})}));Qt(J,{status:400,title:"Failed to Load Task",get description(){return t(nt)},get onBack(){return t(it)},backLabel:"Back to Task",onRetry:Pt})}},ae=J=>{var it=w(),se=o(it);{var oe=yt=>{var Ot=or(),Ft=o(Ot);a(Ft,()=>gt,(g,O)=>{O(g,{children:(V,W)=>{var F=Ve(),U=o(F);a(U,()=>pt,(b,x)=>{x(b,{children:(S,j)=>{var c=Me(),u=o(c);a(u,()=>$t,(d,r)=>{r(d,{children:(i,P)=>{I();var _=T("Task Details");e(i,_)},$$slots:{default:!0}})});var y=s(u,2);a(y,()=>kt,(d,r)=>{r(d,{children:(i,P)=>{I();var _=T("Details of this specific task execution");e(i,_)},$$slots:{default:!0}})}),e(S,c)},$$slots:{default:!0}})});var X=s(U,2);a(X,()=>ht,(b,x)=>{x(b,{class:"space-y-6",children:(S,j)=>{var c=Ne(),u=o(c),y=z(u);{let l=R(()=>decodeURIComponent(h.data.task));ot(y,{label:"Task",get value(){return t(l)},mono:!0})}var d=s(y,2);{let l=R(()=>Pe(t(n).task.duration));ot(d,{label:"Duration",get value(){return t(l)},mono:!0,large:!0})}var r=s(d,2);{let l=R(()=>Jt(t(n).task.recordedAt,{timezone:t(zt)}));ot(r,{label:"Recorded At",get value(){return t(l)},mono:!0})}var i=s(r,2);ot(i,{label:"Server",get value(){return t(n).task.serverName},mono:!0});var P=s(i,2);{let l=R(()=>t(n).task.appVersion||"-");ot(P,{label:"Version",get value(){return t(l)},mono:!0})}L(u);var _=s(u,2);{var $=l=>{var f=He(),p=s(o(f),2),m=s(z(p),2);je(m,{get attributes(){return t(n).task.attributes}}),L(p),e(l,f)};D(_,l=>{t(n).task.attributes&&Object.keys(t(n).task.attributes).length>0&&l($)})}e(S,c)},$$slots:{default:!0}})}),e(V,F)},$$slots:{default:!0}})});var Ut=s(Ft,2);{var le=g=>{var O=w(),V=o(O);a(V,()=>gt,(W,F)=>{F(W,{class:"border-red-500/30 bg-red-500/5",children:(U,X)=>{var b=Ke(),x=o(b);a(x,()=>pt,(j,c)=>{c(j,{children:(u,y)=>{var d=qe(),r=o(d),i=z(r);Le(i,{class:"h-5 w-5 text-red-500"});var P=s(i,2);a(P,()=>$t,($,l)=>{l($,{class:"text-red-600 dark:text-red-400",children:(f,p)=>{I();var m=T("Exception Occurred");e(f,m)},$$slots:{default:!0}})}),L(r);var _=s(r,2);a(_,()=>kt,($,l)=>{l($,{children:(f,p)=>{I();var m=T("This task execution resulted in an exception");e(f,m)},$$slots:{default:!0}})}),e(u,d)},$$slots:{default:!0}})});var S=s(x,2);a(S,()=>ht,(j,c)=>{c(j,{children:(u,y)=>{var d=Je(),r=o(d),i=z(r),P=z(i);L(i),L(r);var _=s(r,2);ye(_,{variant:"outline",size:"sm",onclick:()=>Gt(`/issues/${t(n).exception.exceptionHash}`),children:($,l)=>{I();var f=Ge(),p=s(o(f));Oe(p,{class:"ml-2 h-4 w-4"}),e($,f)},$$slots:{default:!0}}),at(($,l)=>st(P,`${$??""}${l??""}`),[()=>t(n).exception.stackTrace.split(`
+import{r as me}from"../chunks/B4VmGkxP.js";import{b as pe,a as $e,p as qt,c as At}from"../chunks/qCQ2nSvO.js";import{i as D}from"../chunks/DMODTt3n.js";import{o as ge}from"../chunks/Dwk6gGSK.js";import{p as he,f as v,b as e,a as ke,e as z,g as t,u as R,s,h as mt,r as L,i as q,d as w,c as o,n as I,t as T,k as at,l as st}from"../chunks/B2WdN-7r.js";import{e as be,i as xe}from"../chunks/CMyj8Fzw.js";import{c as a}from"../chunks/BAcG0-U_.js";import{g as Gt}from"../chunks/BIF4_51j.js";import{b as Pe,f as Jt,g as Te}from"../chunks/Dq-0lVru.js";import{B as ye}from"../chunks/C1aqwstW.js";import{a as pt,b as $t,C as gt}from"../chunks/BHR29ZVu.js";import{C as ht}from"../chunks/BKHeGn2e.js";import{C as kt}from"../chunks/KAiF5-Ht.js";import{c as we,T as Kt,b as Ie,a as Dt}from"../chunks/CeOjHHJH.js";import{T as Ce,a as Rt}from"../chunks/CEJkX7WU.js";import{L as Se}from"../chunks/D0pIT200.js";import{E as Qt}from"../chunks/CFZS-Ydw.js";import{L as ot}from"../chunks/BCZTK7qK.js";import{A as je}from"../chunks/DW1P0xGN.js";import{S as Ae,a as De,C as Re}from"../chunks/DWCgVx1V.js";import{P as Be}from"../chunks/Cplpgpvt.js";import{r as Bt}from"../chunks/BGApn_8u.js";import{D as ze}from"../chunks/lEFYSxvE.js";import{T as Le}from"../chunks/B4mGfC0Z.js";import{A as Oe}from"../chunks/Dt-hNsWv.js";const Fe=!1,Ue=({params:lt,url:h})=>{if(!pe.isAuthenticated)throw me(302,"/login");return{task:lt.task,taskId:lt.taskId,preset:h.searchParams.get("preset")||null,from:h.searchParams.get("from")||null,to:h.searchParams.get("to")||null}},Dr=Object.freeze(Object.defineProperty({__proto__:null,load:Ue,prerender:Fe},Symbol.toStringTag,{value:"Module"}));var Ee=v('<div class="flex items-center justify-center py-20"><!></div>'),Me=v("<!> <!>",1),He=v('<hr class="border-border"/> <div><p class="mb-3 text-sm font-medium">Attributes</p> <!></div>',1),Ne=v('<div class="grid grid-cols-2 gap-4 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5"><!> <!> <!> <!> <!></div> <!>',1),Ve=v("<!> <!>",1),qe=v('<div class="flex items-center gap-2"><!> <!></div> <!>',1),Ge=v("View Full Exception <!>",1),Je=v('<div class="mb-4 max-h-32 overflow-x-auto rounded-md bg-muted p-3"><pre class="font-mono text-sm whitespace-pre-wrap"> </pre></div> <!>',1),Ke=v("<!> <!>",1),Qe=v('<div class="flex items-center gap-2"><!> <!></div> <!>',1),We=v("<!> <!> <!>",1),Xe=v('<div class="max-w-md truncate font-mono text-sm"> </div>'),Ye=v('<span class="text-xs text-muted-foreground"> </span>'),Ze=v('<span class="text-xs text-muted-foreground">-</span>'),tr=v("<!> <!> <!>",1),er=v("<!> <!>",1),rr=v("<!> <!>",1),ar=v("<!> <!>",1),sr=v("<!> <!>",1),or=v("<!> <!> <!> <!> <!>",1),lr=v('<div class="space-y-6"><!> <!></div>');function Rr(lt,h){he(h,!0);const zt=R(Te);let n=mt(null),bt=mt(!0),nt=mt(""),xt=mt(!1);async function Pt(){q(bt,!0),q(nt,""),q(xt,!1);try{const k=await $e.post(`/tasks/${h.data.taskId}`,{},{projectId:qt.currentProjectId??void 0});q(n,k,!0)}catch(k){console.error(k);const C=k;C.status===404?q(xt,!0):q(nt,C.message||"Failed to load task details",!0)}finally{q(bt,!1)}}ge(()=>{Pt()});var Tt=lr(),Lt=z(Tt);{let k=R(()=>decodeURIComponent(h.data.task)),C=R(()=>`Task ID: ${h.data.taskId}`),Q=R(()=>At({fallbackPath:Bt("/tasks/[task]",{task:encodeURIComponent(h.data.task)})}));Be(Lt,{get title(){return t(k)},get subtitle(){return t(C)},get onBack(){return t(Q)}})}var Wt=s(Lt,2);{var Xt=k=>{var C=Ee(),Q=z(C);Se(Q,{size:"xlg"}),L(C),e(k,C)},Yt=k=>{var C=w(),Q=o(C);{var Zt=G=>{{let dt=R(()=>At({fallbackPath:Bt("/tasks/[task]",{task:encodeURIComponent(h.data.task)})}));Qt(G,{status:404,title:"Task Not Found",description:"The task instance you're looking for doesn't exist or may have expired.",get onBack(){return t(dt)},backLabel:"Back to Task",onRetry:Pt,get identifier(){return h.data.taskId}})}},te=G=>{var dt=w(),ee=o(dt);{var re=J=>{{let it=R(()=>At({fallbackPath:Bt("/tasks/[task]",{task:encodeURIComponent(h.data.task)})}));Qt(J,{status:400,title:"Failed to Load Task",get description(){return t(nt)},get onBack(){return t(it)},backLabel:"Back to Task",onRetry:Pt})}},ae=J=>{var it=w(),se=o(it);{var oe=yt=>{var Ot=or(),Ft=o(Ot);a(Ft,()=>gt,(g,O)=>{O(g,{children:(V,W)=>{var F=Ve(),U=o(F);a(U,()=>pt,(b,x)=>{x(b,{children:(S,j)=>{var c=Me(),u=o(c);a(u,()=>$t,(d,r)=>{r(d,{children:(i,P)=>{I();var _=T("Task Details");e(i,_)},$$slots:{default:!0}})});var y=s(u,2);a(y,()=>kt,(d,r)=>{r(d,{children:(i,P)=>{I();var _=T("Details of this specific task execution");e(i,_)},$$slots:{default:!0}})}),e(S,c)},$$slots:{default:!0}})});var X=s(U,2);a(X,()=>ht,(b,x)=>{x(b,{class:"space-y-6",children:(S,j)=>{var c=Ne(),u=o(c),y=z(u);{let l=R(()=>decodeURIComponent(h.data.task));ot(y,{label:"Task",get value(){return t(l)},mono:!0})}var d=s(y,2);{let l=R(()=>Pe(t(n).task.duration));ot(d,{label:"Duration",get value(){return t(l)},mono:!0,large:!0})}var r=s(d,2);{let l=R(()=>Jt(t(n).task.recordedAt,{timezone:t(zt)}));ot(r,{label:"Recorded At",get value(){return t(l)},mono:!0})}var i=s(r,2);ot(i,{label:"Server",get value(){return t(n).task.serverName},mono:!0});var P=s(i,2);{let l=R(()=>t(n).task.appVersion||"-");ot(P,{label:"Version",get value(){return t(l)},mono:!0})}L(u);var _=s(u,2);{var $=l=>{var f=He(),p=s(o(f),2),m=s(z(p),2);je(m,{get attributes(){return t(n).task.attributes}}),L(p),e(l,f)};D(_,l=>{t(n).task.attributes&&Object.keys(t(n).task.attributes).length>0&&l($)})}e(S,c)},$$slots:{default:!0}})}),e(V,F)},$$slots:{default:!0}})});var Ut=s(Ft,2);{var le=g=>{var O=w(),V=o(O);a(V,()=>gt,(W,F)=>{F(W,{class:"border-red-500/30 bg-red-500/5",children:(U,X)=>{var b=Ke(),x=o(b);a(x,()=>pt,(j,c)=>{c(j,{children:(u,y)=>{var d=qe(),r=o(d),i=z(r);Le(i,{class:"h-5 w-5 text-red-500"});var P=s(i,2);a(P,()=>$t,($,l)=>{l($,{class:"text-red-600 dark:text-red-400",children:(f,p)=>{I();var m=T("Exception Occurred");e(f,m)},$$slots:{default:!0}})}),L(r);var _=s(r,2);a(_,()=>kt,($,l)=>{l($,{children:(f,p)=>{I();var m=T("This task execution resulted in an exception");e(f,m)},$$slots:{default:!0}})}),e(u,d)},$$slots:{default:!0}})});var S=s(x,2);a(S,()=>ht,(j,c)=>{c(j,{children:(u,y)=>{var d=Je(),r=o(d),i=z(r),P=z(i);L(i),L(r);var _=s(r,2);ye(_,{variant:"outline",size:"sm",onclick:()=>Gt(`/issues/${t(n).exception.exceptionHash}`),children:($,l)=>{I();var f=Ge(),p=s(o(f));Oe(p,{class:"ml-2 h-4 w-4"}),e($,f)},$$slots:{default:!0}}),at(($,l)=>st(P,`${$??""}${l??""}`),[()=>t(n).exception.stackTrace.split(`
`).slice(0,4).join(`
`),()=>t(n).exception.stackTrace.split(`
`).length>4?`
diff --git a/backend/static/frontend/_app/immutable/nodes/29.CGGFH12S.js.map b/backend/static/frontend/_app/immutable/nodes/29.D1lVEb9A.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/29.CGGFH12S.js.map
rename to backend/static/frontend/_app/immutable/nodes/29.D1lVEb9A.js.map
index da246a3a..7aa733e1 100644
--- a/backend/static/frontend/_app/immutable/nodes/29.CGGFH12S.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/29.D1lVEb9A.js.map
@@ -1 +1 @@
-{"version":3,"file":"29.CGGFH12S.js","sources":["../../../../../../src/routes/tasks/[task]/[taskId]/+page.ts","../../../../../../src/routes/tasks/[task]/[taskId]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\ttask: params.task,\n\t\ttaskId: params.taskId,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport { formatDuration, formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Card from '$lib/components/ui/card';\n\timport * as Table from '$lib/components/ui/table';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { ArrowRight, TriangleAlert, ClipboardList } from 'lucide-svelte';\n\timport { LabelValue } from '$lib/components/ui/label-value';\n\timport { AttributesGrid } from '$lib/components/ui/attributes-grid/index.js';\n\timport SpanWaterfall from '$lib/components/spans/span-waterfall.svelte';\n\timport SpanEmptyState from '$lib/components/spans/span-empty-state.svelte';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport { resolve } from '$app/paths';\n\timport DistributedTraceCard from '$lib/components/distributed-trace/distributed-trace-card.svelte';\n\n\ttype TaskDetailResponse = {\n\t\ttask: {\n\t\t\tid: string;\n\t\t\ttaskName: string;\n\t\t\tduration: number;\n\t\t\trecordedAt: string;\n\t\t\tclientIP: string;\n\t\t\tattributes: Record<string, string> | null;\n\t\t\tserverName: string;\n\t\t\tappVersion: string;\n\t\t\tdistributedTraceId?: string;\n\t\t};\n\t\texception?: {\n\t\t\texceptionHash: string;\n\t\t\tstackTrace: string;\n\t\t};\n\t\tmessages: {\n\t\t\tid: string;\n\t\t\texceptionHash: string;\n\t\t\tstackTrace: string;\n\t\t\trecordedAt: string;\n\t\t\tattributes?: Record<string, string>;\n\t\t}[];\n\t\tspans: any[];\n\t\thasSpans: boolean;\n\t};\n\n\tlet { data } = $props();\n\n\tconst timezone = $derived(getTimezone());\n\n\tlet response = $state<TaskDetailResponse | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\n\tasync function loadData() {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\n\t\ttry {\n\t\t\tconst result = await api.post(\n\t\t\t\t`/tasks/${data.taskId}`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\tresponse = result;\n\t\t} catch (e: unknown) {\n\t\t\tconsole.error(e);\n\t\t\tconst err = e as { status?: number; message?: string };\n\t\t\tif (err.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = err.message || 'Failed to load task details';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\tloadData();\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t<PageHeader\n\t\ttitle={decodeURIComponent(data.task)}\n\t\tsubtitle={`Task ID: ${data.taskId}`}\n\t\tonBack={createSmartBackHandler({\n\t\t\tfallbackPath: resolve('/tasks/[task]', { task: encodeURIComponent(data.task) })\n\t\t})}\n\t/>\n\n\t{#if loading}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"Task Not Found\"\n\t\t\tdescription=\"The task instance you're looking for doesn't exist or may have expired.\"\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/tasks/[task]', { task: encodeURIComponent(data.task) })\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Task\"\n\t\t\tonRetry={loadData}\n\t\t\tidentifier={data.taskId}\n\t\t/>\n\t{:else if error}\n\t\t<ErrorDisplay\n\t\t\tstatus={400}\n\t\t\ttitle=\"Failed to Load Task\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/tasks/[task]', { task: encodeURIComponent(data.task) })\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Task\"\n\t\t\tonRetry={loadData}\n\t\t/>\n\t{:else if response}\n\t\t<!-- Task Details Card -->\n\t\t<Card.Root>\n\t\t\t<Card.Header>\n\t\t\t\t<Card.Title>Task Details</Card.Title>\n\t\t\t\t<Card.Description>Details of this specific task execution</Card.Description>\n\t\t\t</Card.Header>\n\t\t\t<Card.Content class=\"space-y-6\">\n\t\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5\">\n\t\t\t\t\t<LabelValue label=\"Task\" value={decodeURIComponent(data.task)} mono />\n\t\t\t\t\t<LabelValue label=\"Duration\" value={formatDuration(response.task.duration)} mono large />\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\tvalue={formatDateTime(response.task.recordedAt, { timezone })}\n\t\t\t\t\t\tmono\n\t\t\t\t\t/>\n\t\t\t\t\t<LabelValue label=\"Server\" value={response.task.serverName} mono />\n\t\t\t\t\t<LabelValue label=\"Version\" value={response.task.appVersion || '-'} mono />\n\t\t\t\t</div>\n\n\t\t\t\t{#if response.task.attributes && Object.keys(response.task.attributes).length > 0}\n\t\t\t\t\t<hr class=\"border-border\" />\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<p class=\"mb-3 text-sm font-medium\">Attributes</p>\n\t\t\t\t\t\t<AttributesGrid attributes={response.task.attributes} />\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t</Card.Content>\n\t\t</Card.Root>\n\n\t\t<!-- Exception Card (if exception exists) -->\n\t\t{#if response.exception}\n\t\t\t<Card.Root class=\"border-red-500/30 bg-red-500/5\">\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<TriangleAlert class=\"h-5 w-5 text-red-500\" />\n\t\t\t\t\t\t<Card.Title class=\"text-red-600 dark:text-red-400\">Exception Occurred</Card.Title>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Card.Description>This task execution resulted in an exception</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content>\n\t\t\t\t\t<div class=\"mb-4 max-h-32 overflow-x-auto rounded-md bg-muted p-3\">\n\t\t\t\t\t\t<pre class=\"font-mono text-sm whitespace-pre-wrap\">{response.exception.stackTrace\n\t\t\t\t\t\t\t\t.split('\\n')\n\t\t\t\t\t\t\t\t.slice(0, 4)\n\t\t\t\t\t\t\t\t.join('\\n')}{response.exception.stackTrace.split('\\n').length > 4\n\t\t\t\t\t\t\t\t? '\\n...'\n\t\t\t\t\t\t\t\t: ''}</pre>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\tonclick={() => goto(`/issues/${response!.exception!.exceptionHash}`)}\n\t\t\t\t\t>\n\t\t\t\t\t\tView Full Exception\n\t\t\t\t\t\t<ArrowRight class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t</Button>\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\n\t\t<!-- Messages Section (if messages exist) -->\n\t\t{#if response.messages.length > 0}\n\t\t\t<Card.Root>\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<ClipboardList class=\"h-5 w-5 text-muted-foreground\" />\n\t\t\t\t\t\t<Card.Title>Messages</Card.Title>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Card.Description>\n\t\t\t\t\t\t{response.messages.length} message{response.messages.length === 1 ? '' : 's'} logged during\n\t\t\t\t\t\tthis task\n\t\t\t\t\t</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content class=\"px-0 pb-0\">\n\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Head class=\"pl-6\">Message</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"w-[180px]\">Recorded At</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"w-[100px] pr-6\">Attributes</Table.Head>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t{#each response.messages as message}\n\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\tonclick={() => goto(`/issues/${message.exceptionHash}/${message.id}`)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"pl-6\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"max-w-md truncate font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t\t\t{message.stackTrace.split('\\n')[0]}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t{formatDateTime(message.recordedAt, { timezone })}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"pr-6\">\n\t\t\t\t\t\t\t\t\t\t{#if message.attributes && Object.keys(message.attributes).length > 0}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(message.attributes).length} key{Object.keys(message.attributes)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.length === 1\n\t\t\t\t\t\t\t\t\t\t\t\t\t? ''\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 's'}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">-</span>\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t</Table.Root>\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\n\t\t<!-- Spans Section -->\n\t\t<Card.Root>\n\t\t\t<Card.Header>\n\t\t\t\t<Card.Title>Spans</Card.Title>\n\t\t\t\t<Card.Description>\n\t\t\t\t\t{#if response.hasSpans}\n\t\t\t\t\t\tTiming breakdown of operations within this task\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tNo spans recorded for this task\n\t\t\t\t\t{/if}\n\t\t\t\t</Card.Description>\n\t\t\t</Card.Header>\n\t\t\t<Card.Content>\n\t\t\t\t{#if response.hasSpans}\n\t\t\t\t\t<SpanWaterfall\n\t\t\t\t\t\tspans={response.spans}\n\t\t\t\t\t\ttraceDuration={response.task.duration}\n\t\t\t\t\t\ttraceStartTime={response.task.recordedAt}\n\t\t\t\t\t/>\n\t\t\t\t{:else}\n\t\t\t\t\t<SpanEmptyState framework={projectsState.currentProject?.framework ?? 'gin'} />\n\t\t\t\t{/if}\n\t\t\t</Card.Content>\n\t\t</Card.Root>\n\n\t\t{#if response.task.distributedTraceId}\n\t\t\t<DistributedTraceCard distributedTraceId={response.task.distributedTraceId} />\n\t\t{/if}\n\t{/if}\n</div>\n"],"names":["prerender","load","params","url","authState","redirect","timezone","getTimezone","response","$.state","loading","error","notFound","loadData","$.set","result","api","$$props","projectsState","e","err","onMount","div","root","$0","$.derived","createSmartBackHandler","resolve","PageHeader","node","div_1","root_1","LoadingCircle","node_2","ErrorDisplay","$$anchor","Card_Root","Card_Header","Card_Title","Card_Description","Card_Content","div_2","$.first_child","fragment_8","LabelValue","node_11","formatDuration","$.get","node_12","formatDateTime","node_13","node_14","node_15","div_3","$.sibling","fragment_9","AttributesGrid","node_17","$$render","consequent_3","Card_Root_1","Card_Header_1","div_4","fragment_12","TriangleAlert","node_21","Card_Title_1","Card_Description_1","Card_Content_1","div_5","fragment_13","pre","Button","node_25","goto","ArrowRight","node_26","consequent_4","Card_Root_2","Card_Header_2","div_6","fragment_17","ClipboardList","node_30","Card_Title_2","Card_Description_2","$.template_effect","$.set_text","text_6","Card_Content_2","Table_Root","Table_Header","Table_Row","Table_Head","Table_Head_1","Table_Head_2","Table_Body","$.index","message","Table_Row_1","Table_Cell","div_7","root_36","text_10","Table_Cell_1","Table_Cell_2","span","root_39","span_1","root_40","consequent_5","alternate","consequent_6","Card_Root_3","Card_Header_3","Card_Title_3","Card_Description_3","consequent_7","alternate_1","Card_Content_3","SpanWaterfall","SpanEmptyState","consequent_8","alternate_2","DistributedTraceCard","consequent_9","consequent_10","consequent_2","alternate_3","consequent_1","alternate_4","consequent","alternate_5"],"mappings":"gxCAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,GAAQ,IA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K,wCACbA,CAAQ,EAAC,KAAK,sBAGJ,IAAAgB,EAAAC,EAAA,IAAAP,GAAc,gBAAgB,WAAa,KAAK,EAA1EuG,GAActF,EAAA,0CAPXY,EAAAvC,CAAQ,EAAC,SAAQkD,EAAAgE,CAAA,EAAAhE,EAAAiE,EAAA,EAAA,iGAatBC,GAAoBzF,EAAA,mCAAqB3B,CAAQ,EAAC,KAAK,kCADpDA,CAAQ,EAAC,KAAK,oBAAkBkD,EAAAmE,EAAA,0BA9I5BrH,CAAQ,GAAAkD,GAAAoE,EAAA,2BAXRnH,EAAK,EAAA+C,EAAAqE,EAAA,EAAArE,EAAAsE,GAAA,EAAA,0BAZLpH,EAAQ,EAAA8C,EAAAuE,EAAA,EAAAvE,EAAAwE,GAAA,EAAA,0BAJbxH,EAAO,EAAAgD,EAAAyE,EAAA,EAAAzE,EAAA0E,GAAA,EAAA,MATZ9G,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"29.D1lVEb9A.js","sources":["../../../../../../src/routes/tasks/[task]/[taskId]/+page.ts","../../../../../../src/routes/tasks/[task]/[taskId]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\ttask: params.task,\n\t\ttaskId: params.taskId,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { goto } from '$app/navigation';\n\timport { api } from '$lib/api';\n\timport { formatDuration, formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport { Button } from '$lib/components/ui/button';\n\timport * as Card from '$lib/components/ui/card';\n\timport * as Table from '$lib/components/ui/table';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { ArrowRight, TriangleAlert, ClipboardList } from 'lucide-svelte';\n\timport { LabelValue } from '$lib/components/ui/label-value';\n\timport { AttributesGrid } from '$lib/components/ui/attributes-grid/index.js';\n\timport SpanWaterfall from '$lib/components/spans/span-waterfall.svelte';\n\timport SpanEmptyState from '$lib/components/spans/span-empty-state.svelte';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport { resolve } from '$app/paths';\n\timport DistributedTraceCard from '$lib/components/distributed-trace/distributed-trace-card.svelte';\n\n\ttype TaskDetailResponse = {\n\t\ttask: {\n\t\t\tid: string;\n\t\t\ttaskName: string;\n\t\t\tduration: number;\n\t\t\trecordedAt: string;\n\t\t\tclientIP: string;\n\t\t\tattributes: Record<string, string> | null;\n\t\t\tserverName: string;\n\t\t\tappVersion: string;\n\t\t\tdistributedTraceId?: string;\n\t\t};\n\t\texception?: {\n\t\t\texceptionHash: string;\n\t\t\tstackTrace: string;\n\t\t};\n\t\tmessages: {\n\t\t\tid: string;\n\t\t\texceptionHash: string;\n\t\t\tstackTrace: string;\n\t\t\trecordedAt: string;\n\t\t\tattributes?: Record<string, string>;\n\t\t}[];\n\t\tspans: any[];\n\t\thasSpans: boolean;\n\t};\n\n\tlet { data } = $props();\n\n\tconst timezone = $derived(getTimezone());\n\n\tlet response = $state<TaskDetailResponse | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\n\tasync function loadData() {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\n\t\ttry {\n\t\t\tconst result = await api.post(\n\t\t\t\t`/tasks/${data.taskId}`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\tresponse = result;\n\t\t} catch (e: unknown) {\n\t\t\tconsole.error(e);\n\t\t\tconst err = e as { status?: number; message?: string };\n\t\t\tif (err.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = err.message || 'Failed to load task details';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\tloadData();\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t<PageHeader\n\t\ttitle={decodeURIComponent(data.task)}\n\t\tsubtitle={`Task ID: ${data.taskId}`}\n\t\tonBack={createSmartBackHandler({\n\t\t\tfallbackPath: resolve('/tasks/[task]', { task: encodeURIComponent(data.task) })\n\t\t})}\n\t/>\n\n\t{#if loading}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"Task Not Found\"\n\t\t\tdescription=\"The task instance you're looking for doesn't exist or may have expired.\"\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/tasks/[task]', { task: encodeURIComponent(data.task) })\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Task\"\n\t\t\tonRetry={loadData}\n\t\t\tidentifier={data.taskId}\n\t\t/>\n\t{:else if error}\n\t\t<ErrorDisplay\n\t\t\tstatus={400}\n\t\t\ttitle=\"Failed to Load Task\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/tasks/[task]', { task: encodeURIComponent(data.task) })\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Task\"\n\t\t\tonRetry={loadData}\n\t\t/>\n\t{:else if response}\n\t\t<!-- Task Details Card -->\n\t\t<Card.Root>\n\t\t\t<Card.Header>\n\t\t\t\t<Card.Title>Task Details</Card.Title>\n\t\t\t\t<Card.Description>Details of this specific task execution</Card.Description>\n\t\t\t</Card.Header>\n\t\t\t<Card.Content class=\"space-y-6\">\n\t\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5\">\n\t\t\t\t\t<LabelValue label=\"Task\" value={decodeURIComponent(data.task)} mono />\n\t\t\t\t\t<LabelValue label=\"Duration\" value={formatDuration(response.task.duration)} mono large />\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\tvalue={formatDateTime(response.task.recordedAt, { timezone })}\n\t\t\t\t\t\tmono\n\t\t\t\t\t/>\n\t\t\t\t\t<LabelValue label=\"Server\" value={response.task.serverName} mono />\n\t\t\t\t\t<LabelValue label=\"Version\" value={response.task.appVersion || '-'} mono />\n\t\t\t\t</div>\n\n\t\t\t\t{#if response.task.attributes && Object.keys(response.task.attributes).length > 0}\n\t\t\t\t\t<hr class=\"border-border\" />\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<p class=\"mb-3 text-sm font-medium\">Attributes</p>\n\t\t\t\t\t\t<AttributesGrid attributes={response.task.attributes} />\n\t\t\t\t\t</div>\n\t\t\t\t{/if}\n\t\t\t</Card.Content>\n\t\t</Card.Root>\n\n\t\t<!-- Exception Card (if exception exists) -->\n\t\t{#if response.exception}\n\t\t\t<Card.Root class=\"border-red-500/30 bg-red-500/5\">\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<TriangleAlert class=\"h-5 w-5 text-red-500\" />\n\t\t\t\t\t\t<Card.Title class=\"text-red-600 dark:text-red-400\">Exception Occurred</Card.Title>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Card.Description>This task execution resulted in an exception</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content>\n\t\t\t\t\t<div class=\"mb-4 max-h-32 overflow-x-auto rounded-md bg-muted p-3\">\n\t\t\t\t\t\t<pre class=\"font-mono text-sm whitespace-pre-wrap\">{response.exception.stackTrace\n\t\t\t\t\t\t\t\t.split('\\n')\n\t\t\t\t\t\t\t\t.slice(0, 4)\n\t\t\t\t\t\t\t\t.join('\\n')}{response.exception.stackTrace.split('\\n').length > 4\n\t\t\t\t\t\t\t\t? '\\n...'\n\t\t\t\t\t\t\t\t: ''}</pre>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Button\n\t\t\t\t\t\tvariant=\"outline\"\n\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\tonclick={() => goto(`/issues/${response!.exception!.exceptionHash}`)}\n\t\t\t\t\t>\n\t\t\t\t\t\tView Full Exception\n\t\t\t\t\t\t<ArrowRight class=\"ml-2 h-4 w-4\" />\n\t\t\t\t\t</Button>\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\n\t\t<!-- Messages Section (if messages exist) -->\n\t\t{#if response.messages.length > 0}\n\t\t\t<Card.Root>\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<ClipboardList class=\"h-5 w-5 text-muted-foreground\" />\n\t\t\t\t\t\t<Card.Title>Messages</Card.Title>\n\t\t\t\t\t</div>\n\t\t\t\t\t<Card.Description>\n\t\t\t\t\t\t{response.messages.length} message{response.messages.length === 1 ? '' : 's'} logged during\n\t\t\t\t\t\tthis task\n\t\t\t\t\t</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content class=\"px-0 pb-0\">\n\t\t\t\t\t<Table.Root>\n\t\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t\t<Table.Head class=\"pl-6\">Message</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"w-[180px]\">Recorded At</Table.Head>\n\t\t\t\t\t\t\t\t<Table.Head class=\"w-[100px] pr-6\">Attributes</Table.Head>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t</Table.Header>\n\t\t\t\t\t\t<Table.Body>\n\t\t\t\t\t\t\t{#each response.messages as message}\n\t\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\t\tonclick={() => goto(`/issues/${message.exceptionHash}/${message.id}`)}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"pl-6\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"max-w-md truncate font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t\t\t{message.stackTrace.split('\\n')[0]}\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t{formatDateTime(message.recordedAt, { timezone })}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t\t<Table.Cell class=\"pr-6\">\n\t\t\t\t\t\t\t\t\t\t{#if message.attributes && Object.keys(message.attributes).length > 0}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t\t\t{Object.keys(message.attributes).length} key{Object.keys(message.attributes)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.length === 1\n\t\t\t\t\t\t\t\t\t\t\t\t\t? ''\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 's'}\n\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"text-xs text-muted-foreground\">-</span>\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</Table.Body>\n\t\t\t\t\t</Table.Root>\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\n\t\t<!-- Spans Section -->\n\t\t<Card.Root>\n\t\t\t<Card.Header>\n\t\t\t\t<Card.Title>Spans</Card.Title>\n\t\t\t\t<Card.Description>\n\t\t\t\t\t{#if response.hasSpans}\n\t\t\t\t\t\tTiming breakdown of operations within this task\n\t\t\t\t\t{:else}\n\t\t\t\t\t\tNo spans recorded for this task\n\t\t\t\t\t{/if}\n\t\t\t\t</Card.Description>\n\t\t\t</Card.Header>\n\t\t\t<Card.Content>\n\t\t\t\t{#if response.hasSpans}\n\t\t\t\t\t<SpanWaterfall\n\t\t\t\t\t\tspans={response.spans}\n\t\t\t\t\t\ttraceDuration={response.task.duration}\n\t\t\t\t\t\ttraceStartTime={response.task.recordedAt}\n\t\t\t\t\t/>\n\t\t\t\t{:else}\n\t\t\t\t\t<SpanEmptyState framework={projectsState.currentProject?.framework ?? 'gin'} />\n\t\t\t\t{/if}\n\t\t\t</Card.Content>\n\t\t</Card.Root>\n\n\t\t{#if response.task.distributedTraceId}\n\t\t\t<DistributedTraceCard distributedTraceId={response.task.distributedTraceId} />\n\t\t{/if}\n\t{/if}\n</div>\n"],"names":["prerender","load","params","url","authState","redirect","timezone","getTimezone","response","$.state","loading","error","notFound","loadData","$.set","result","api","$$props","projectsState","e","err","onMount","div","root","$0","$.derived","createSmartBackHandler","resolve","PageHeader","node","div_1","root_1","LoadingCircle","node_2","ErrorDisplay","$$anchor","Card_Root","Card_Header","Card_Title","Card_Description","Card_Content","div_2","$.first_child","fragment_8","LabelValue","node_11","formatDuration","$.get","node_12","formatDateTime","node_13","node_14","node_15","div_3","$.sibling","fragment_9","AttributesGrid","node_17","$$render","consequent_3","Card_Root_1","Card_Header_1","div_4","fragment_12","TriangleAlert","node_21","Card_Title_1","Card_Description_1","Card_Content_1","div_5","fragment_13","pre","Button","node_25","goto","ArrowRight","node_26","consequent_4","Card_Root_2","Card_Header_2","div_6","fragment_17","ClipboardList","node_30","Card_Title_2","Card_Description_2","$.template_effect","$.set_text","text_6","Card_Content_2","Table_Root","Table_Header","Table_Row","Table_Head","Table_Head_1","Table_Head_2","Table_Body","$.index","message","Table_Row_1","Table_Cell","div_7","root_36","text_10","Table_Cell_1","Table_Cell_2","span","root_39","span_1","root_40","consequent_5","alternate","consequent_6","Card_Root_3","Card_Header_3","Card_Title_3","Card_Description_3","consequent_7","alternate_1","Card_Content_3","SpanWaterfall","SpanEmptyState","consequent_8","alternate_2","DistributedTraceCard","consequent_9","consequent_10","consequent_2","alternate_3","consequent_1","alternate_4","consequent","alternate_5"],"mappings":"gxCAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,GAAQ,IAAAC,KAAU,CAClD,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAG7B,MAAO,CACN,KAAMH,GAAO,KACb,OAAQA,GAAO,OACf,OAAQC,EAAI,aAAa,IAAI,QAAQ,GAAK,KAC1C,KAAMA,EAAI,aAAa,IAAI,MAAM,GAAK,KACtC,GAAIA,EAAI,aAAa,IAAI,IAAI,GAAK,IAAA,CAEpC,upCClBA,UAmDO,MAAAG,KAAoBC,EAAW,MAEjCC,EAAWC,GAAkC,IAAI,EACjDC,GAAUD,GAAO,EAAI,EACrBE,GAAQF,GAAO,EAAE,EACjBG,GAAWH,GAAO,EAAK,EAEZ,eAAAI,IAAW,CACzBC,EAAAJ,GAAU,EAAI,EACdI,EAAAH,GAAQ,EAAE,EACVG,EAAAF,GAAW,EAAK,EAEZ,GAAA,CACG,MAAAG,EAAM,MAASC,GAAI,KAAI,UAAAC,EAAA,KACb,MAAM,GAAA,CAAA,EAAA,CAEnB,UAAWC,GAAc,kBAAoB,OAAS,EAEzDJ,EAAAN,EAAWO,EAAM,EAAA,CAClB,OAASI,EAAY,CACpB,QAAQ,MAAMA,CAAC,EACT,MAAAC,EAAMD,EACRC,EAAI,SAAW,IAClBN,EAAAF,GAAW,EAAI,EAEfE,EAAAH,GAAQS,EAAI,SAAW,8BAA6B,EAAA,CAEtD,QAAC,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EAACxC,EAAAoD,EAAA,EAAApD,EAAAqD,GAAA,EAAA,yOApCxEhE,EAAAvC,CAAQ,EAAC,SAAS,OAAS,GAACkD,EAAAsD,EAAA,uCAwDhCC,EAAS9E,EAAA,uDACR+E,EAAW/E,EAAA,uDACVgF,EAAUhF,EAAA,wGACViF,EAAgBjF,EAAA,kLACXY,EAAAvC,CAAQ,EAAC,SAAQkD,EAAA2D,CAAA,EAAA3D,EAAA4D,EAAA,EAAA,sGAOvBC,EAAYpF,EAAA,8CAEVqF,GAAArF,EAAA,aACO,OAAAY,EAAAvC,CAAQ,EAAC,oCACDA,CAAQ,EAAC,KAAK,wCACbA,CAAQ,EAAC,KAAK,sBAGJ,IAAAgB,EAAAC,EAAA,IAAAP,GAAc,gBAAgB,WAAa,KAAK,EAA1EuG,GAActF,EAAA,0CAPXY,EAAAvC,CAAQ,EAAC,SAAQkD,EAAAgE,CAAA,EAAAhE,EAAAiE,EAAA,EAAA,iGAatBC,GAAoBzF,EAAA,mCAAqB3B,CAAQ,EAAC,KAAK,kCADpDA,CAAQ,EAAC,KAAK,oBAAkBkD,EAAAmE,EAAA,0BA9I5BrH,CAAQ,GAAAkD,GAAAoE,EAAA,2BAXRnH,EAAK,EAAA+C,EAAAqE,EAAA,EAAArE,EAAAsE,GAAA,EAAA,0BAZLpH,EAAQ,EAAA8C,EAAAuE,EAAA,EAAAvE,EAAAwE,GAAA,EAAA,0BAJbxH,EAAO,EAAAgD,EAAAyE,EAAA,EAAAzE,EAAA0E,GAAA,EAAA,MATZ9G,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/3.Cyvwl6f8.js b/backend/static/frontend/_app/immutable/nodes/3.DsKkyZbg.js
similarity index 97%
rename from backend/static/frontend/_app/immutable/nodes/3.Cyvwl6f8.js
rename to backend/static/frontend/_app/immutable/nodes/3.DsKkyZbg.js
index 34de50d9..6fc0fd7c 100644
--- a/backend/static/frontend/_app/immutable/nodes/3.Cyvwl6f8.js
+++ b/backend/static/frontend/_app/immutable/nodes/3.DsKkyZbg.js
@@ -1 +1 @@
-import{i as g}from"../chunks/DMODTt3n.js";import{o as We}from"../chunks/Dwk6gGSK.js";import{p as Ke,f as l,b as e,a as Qe,g as t,u as Ve,i as s,h as T,e as n,c as d,r as i,s as o,n as _,k as te,l as G,d as I,t as c,j as Xe}from"../chunks/B2WdN-7r.js";import{g as fe}from"../chunks/xR3pK9Ey.js";import{p as Ze}from"../chunks/BG_QVry4.js";import{B as pe}from"../chunks/C1aqwstW.js";import{I as me}from"../chunks/D8CWOmhn.js";import{L as _e}from"../chunks/Ba_8xUad.js";import{C as et,a as tt,b as rt}from"../chunks/BHR29ZVu.js";import{C as at}from"../chunks/BKHeGn2e.js";import{C as ot}from"../chunks/KAiF5-Ht.js";import{A as Te,a as Ee}from"../chunks/CaHAoFtL.js";import{A as st}from"../chunks/DxBI0u1e.js";import{b as ge,p as Le}from"../chunks/D6S6XYVy.js";import{t as nt}from"../chunks/BnbBSyGl.js";import{C as it}from"../chunks/DUJ_Z9AF.js";import{C as Se}from"../chunks/XxKcOLZH.js";const lt=!1,qt=Object.freeze(Object.defineProperty({__proto__:null,prerender:lt},Symbol.toStringTag,{value:"Module"}));var dt=l('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),vt=l('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),ct=l('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),ut=l("You've been invited to join <strong> </strong>",1),ft=l("<!> <!>",1),pt=l('<div class="flex items-center justify-center py-8"><div class="animate-spin rounded-full h-8 w-8 border-b-2 border-primary"></div></div>'),mt=l('<div class="flex flex-col items-center justify-center py-8 gap-4"><div class="rounded-full bg-green-100 p-3"><!></div> <p class="text-center text-lg font-medium"> </p> <p class="text-center text-muted-foreground">Redirecting to dashboard...</p></div>'),_t=l("<!> <!> <!>",1),gt=l('<!> <div class="mt-4 text-center"><!></div>',1),ht=l("<!> <!>",1),$t=l('<p class="text-center text-muted-foreground">Click below to join the organization</p> <!> <div><p class="text-sm text-muted-foreground">To go to the Login page <a href="/login" class="text-primary hover:underline">Click Here</a></p></div>',1),xt=l('<p class="text-center text-muted-foreground">You already have an account. Please log in to accept this invitation.</p> <!>',1),wt=l('<form class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <!></form>'),yt=l('<div class="space-y-4"><div class="bg-muted/50 rounded-lg p-4 text-sm"><p><strong> </strong> invited you to join as a <strong> </strong></p></div> <!> <!></div>'),bt=l("<!> <!>",1),Pt=l('<div class="flex min-h-screen w-full items-center justify-center px-4 py-8"><!></div>');function Bt(ze,Ie){Ke(Ie,!0);let he=T(!0),j=T(!1),u=T(""),h=T(null),$e=T(""),H=T(""),xe=T(""),re=T(!1);const W=Ve(()=>Ze.url.searchParams.get("token"));We(async()=>{if(!t(W)){s(u,"Invalid invitation link"),s(he,!1);return}try{const r=await fetch(`/api/invitations/${t(W)}`);if(!r.ok){const C=await r.json();throw new Error(C.error||"Invalid or expired invitation")}s(h,await r.json(),!0)}catch(r){s(u,r instanceof Error?r.message:"Failed to load invitation",!0)}finally{s(he,!1)}});async function Oe(){if(t(H)!==t(xe)){s(u,"Passwords do not match");return}if(t(H).length<8){s(u,"Password must be at least 8 characters");return}s(j,!0),s(u,"");try{const r=await fetch(`/api/invitations/${t(W)}/accept`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t($e),password:t(H)})});if(!r.ok){const O=await r.json();throw new Error(O.error||"Failed to accept invitation")}const C=await r.json();ge.setToken(C.token),ge.setOrganizations(C.organizations||[]),Le.setProjects(C.projects),s(re,!0),setTimeout(()=>fe("/"),1500)}catch(r){s(u,r instanceof Error?r.message:"Failed to accept invitation",!0)}finally{s(j,!1)}}async function Ne(){s(j,!0),s(u,"");try{const r=await fetch(`/api/invitations/${t(W)}/accept-existing`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ge.token}`}});if(!r.ok){const O=await r.json();throw new Error(O.error||"Failed to accept invitation")}const C=await r.json();Le.setProjects(C.projects),s(re,!0),setTimeout(()=>fe("/"),1500)}catch(r){s(u,r instanceof Error?r.message:"Failed to accept invitation",!0)}finally{s(j,!1)}}function Fe(){const r=encodeURIComponent(`/accept-invitation?token=${t(W)}`);fe(`/login?returnTo=${r}`)}function Re(r){switch(r){case"admin":return"Admin";case"readonly":return"Read Only";default:return"Member"}}var we=Pt(),Me=n(we);et(Me,{class:"w-[400px]",children:(r,C)=>{var O=bt(),Ae=d(O);tt(Ae,{children:(ye,Ye)=>{var K=ft(),ae=d(K);rt(ae,{class:"text-2xl",children:(f,E)=>{var N=ct(),F=n(N);{var R=v=>{var b=dt();e(v,b)},$=v=>{var b=vt();e(v,b)};g(F,v=>{nt.isDark?v(R):v($,!1)})}i(N),e(f,N)},$$slots:{default:!0}});var be=o(ae,2);{var Pe=f=>{ot(f,{class:"text-center",children:(E,N)=>{_();var F=ut(),R=o(d(F)),$=n(R,!0);i(R),te(()=>G($,t(h).organizationName)),e(E,F)},$$slots:{default:!0}})};g(be,f=>{t(h)&&!t(re)&&f(Pe)})}e(ye,K)},$$slots:{default:!0}});var Ue=o(Ae,2);at(Ue,{children:(ye,Ye)=>{var K=I(),ae=d(K);{var be=f=>{var E=pt();e(f,E)},Pe=f=>{var E=I(),N=d(E);{var F=$=>{var v=mt(),b=n(v),je=n(b);it(je,{class:"h-8 w-8 text-green-600"}),i(b);var oe=o(b,2),k=n(oe);i(oe),_(2),i(v),te(()=>G(k,`Welcome to ${t(h)?.organizationName??""}!`)),e($,v)},R=$=>{var v=I(),b=d(v);{var je=k=>{var Q=gt(),se=d(Q);Te(se,{variant:"destructive",class:"bg-red-50 border-red-200",children:(L,X)=>{var S=_t(),M=d(S);Se(M,{class:"h-4 w-4 text-red-700"});var ie=o(M,2);st(ie,{class:"text-red-800",children:(Z,de)=>{_();var U=c("Error");e(Z,U)},$$slots:{default:!0}});var le=o(ie,2);Ee(le,{class:"text-red-700",children:(Z,de)=>{_();var U=c();te(()=>G(U,t(u))),e(Z,U)},$$slots:{default:!0}}),e(L,S)},$$slots:{default:!0}});var ne=o(se,2),V=n(ne);pe(V,{variant:"outline",onclick:()=>fe("/login"),children:(L,X)=>{_();var S=c("Go to Login");e(L,S)},$$slots:{default:!0}}),i(ne),e(k,Q)},oe=k=>{var Q=I(),se=d(Q);{var ne=V=>{var L=yt(),X=n(L),S=n(X),M=n(S),ie=n(M,!0);i(M);var le=o(M,2),Z=n(le,!0);i(le),i(S),i(X);var de=o(X,2);{var U=p=>{Te(p,{variant:"destructive",class:"bg-red-50 border-red-200",children:(P,Y)=>{var z=ht(),q=d(z);Se(q,{class:"h-4 w-4 text-red-700"});var m=o(q,2);Ee(m,{class:"text-red-700",children:(x,B)=>{_();var w=c();te(()=>G(w,t(u))),e(x,w)},$$slots:{default:!0}}),e(P,z)},$$slots:{default:!0}})};g(de,p=>{t(u)&&p(U)})}var qe=o(de,2);{var Be=p=>{var P=I(),Y=d(P);{var z=m=>{var x=$t(),B=o(d(x),2);pe(B,{class:"w-full",onclick:Ne,get disabled(){return t(j)},children:(w,ve)=>{var J=I(),ee=d(J);{var ce=A=>{var a=c("Joining...");e(A,a)},Ce=A=>{var a=c("Accept Invitation");e(A,a)};g(ee,A=>{t(j)?A(ce):A(Ce,!1)})}e(w,J)},$$slots:{default:!0}}),_(2),e(m,x)},q=m=>{var x=xt(),B=o(d(x),2);pe(B,{class:"w-full",onclick:Fe,children:(w,ve)=>{_();var J=c("Login to Accept");e(w,J)},$$slots:{default:!0}}),e(m,x)};g(Y,m=>{ge.isAuthenticated?m(z):m(q,!1)})}e(p,P)},Je=p=>{var P=wt(),Y=n(P),z=n(Y);_e(z,{for:"email",children:(a,ue)=>{_();var y=c("Email");e(a,y)},$$slots:{default:!0}});var q=o(z,2);me(q,{id:"email",type:"email",get value(){return t(h).email},disabled:!0}),i(Y);var m=o(Y,2),x=n(m);_e(x,{for:"name",children:(a,ue)=>{_();var y=c("Your Name");e(a,y)},$$slots:{default:!0}});var B=o(x,2);me(B,{id:"name",type:"text",placeholder:"Your name",required:!0,get value(){return t($e)},set value(a){s($e,a,!0)}}),i(m);var w=o(m,2),ve=n(w);_e(ve,{for:"password",children:(a,ue)=>{_();var y=c("Password");e(a,y)},$$slots:{default:!0}});var J=o(ve,2);me(J,{id:"password",type:"password",placeholder:"Min 8 characters",required:!0,get value(){return t(H)},set value(a){s(H,a,!0)}}),i(w);var ee=o(w,2),ce=n(ee);_e(ce,{for:"confirmPassword",children:(a,ue)=>{_();var y=c("Confirm Password");e(a,y)},$$slots:{default:!0}});var Ce=o(ce,2);me(Ce,{id:"confirmPassword",type:"password",placeholder:"Confirm password",required:!0,get value(){return t(xe)},set value(a){s(xe,a,!0)}}),i(ee);var A=o(ee,2);pe(A,{type:"submit",class:"w-full",get disabled(){return t(j)},children:(a,ue)=>{var y=I(),De=d(y);{var Ge=D=>{var ke=c("Creating account...");e(D,ke)},He=D=>{var ke=c("Create Account & Join");e(D,ke)};g(De,D=>{t(j)?D(Ge):D(He,!1)})}e(a,y)},$$slots:{default:!0}}),i(P),Xe("submit",P,a=>{a.preventDefault(),Oe()}),e(p,P)};g(qe,p=>{t(h).existsAsUser?p(Be):p(Je,!1)})}i(L),te(p=>{G(ie,t(h).inviterName),G(Z,p)},[()=>Re(t(h).role)]),e(V,L)};g(se,V=>{t(h)&&V(ne)},!0)}e(k,Q)};g(b,k=>{t(u)&&!t(h)?k(je):k(oe,!1)},!0)}e($,v)};g(N,$=>{t(re)?$(F):$(R,!1)},!0)}e(f,E)};g(ae,f=>{t(he)?f(be):f(Pe,!1)})}e(ye,K)},$$slots:{default:!0}}),e(r,O)},$$slots:{default:!0}}),i(we),e(ze,we),Qe()}export{Bt as component,qt as universal};
+import{i as g}from"../chunks/DMODTt3n.js";import{o as We}from"../chunks/Dwk6gGSK.js";import{p as Ke,f as l,b as e,a as Qe,g as t,u as Ve,i as s,h as T,e as n,c as d,r as i,s as o,n as _,k as te,l as G,d as I,t as c,j as Xe}from"../chunks/B2WdN-7r.js";import{g as fe}from"../chunks/BIF4_51j.js";import{p as Ze}from"../chunks/CyRgFauW.js";import{B as pe}from"../chunks/C1aqwstW.js";import{I as me}from"../chunks/D8CWOmhn.js";import{L as _e}from"../chunks/Csh2s3-8.js";import{C as et,a as tt,b as rt}from"../chunks/BHR29ZVu.js";import{C as at}from"../chunks/BKHeGn2e.js";import{C as ot}from"../chunks/KAiF5-Ht.js";import{A as Te,a as Ee}from"../chunks/CaHAoFtL.js";import{A as st}from"../chunks/DxBI0u1e.js";import{b as ge,p as Le}from"../chunks/qCQ2nSvO.js";import{t as nt}from"../chunks/BnbBSyGl.js";import{C as it}from"../chunks/DUJ_Z9AF.js";import{C as Se}from"../chunks/XxKcOLZH.js";const lt=!1,qt=Object.freeze(Object.defineProperty({__proto__:null,prerender:lt},Symbol.toStringTag,{value:"Module"}));var dt=l('<img src="/traceway-logo-white.svg" alt="Traceway Logo" class="h-8 w-auto"/>'),vt=l('<img src="/traceway-logo.png" alt="Traceway Logo" class="h-8 w-auto"/>'),ct=l('<div class="flex flex-row items-center justify-center gap-2"><!></div>'),ut=l("You've been invited to join <strong> </strong>",1),ft=l("<!> <!>",1),pt=l('<div class="flex items-center justify-center py-8"><div class="animate-spin rounded-full h-8 w-8 border-b-2 border-primary"></div></div>'),mt=l('<div class="flex flex-col items-center justify-center py-8 gap-4"><div class="rounded-full bg-green-100 p-3"><!></div> <p class="text-center text-lg font-medium"> </p> <p class="text-center text-muted-foreground">Redirecting to dashboard...</p></div>'),_t=l("<!> <!> <!>",1),gt=l('<!> <div class="mt-4 text-center"><!></div>',1),ht=l("<!> <!>",1),$t=l('<p class="text-center text-muted-foreground">Click below to join the organization</p> <!> <div><p class="text-sm text-muted-foreground">To go to the Login page <a href="/login" class="text-primary hover:underline">Click Here</a></p></div>',1),xt=l('<p class="text-center text-muted-foreground">You already have an account. Please log in to accept this invitation.</p> <!>',1),wt=l('<form class="space-y-4"><div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <div class="space-y-2"><!> <!></div> <!></form>'),yt=l('<div class="space-y-4"><div class="bg-muted/50 rounded-lg p-4 text-sm"><p><strong> </strong> invited you to join as a <strong> </strong></p></div> <!> <!></div>'),bt=l("<!> <!>",1),Pt=l('<div class="flex min-h-screen w-full items-center justify-center px-4 py-8"><!></div>');function Bt(ze,Ie){Ke(Ie,!0);let he=T(!0),j=T(!1),u=T(""),h=T(null),$e=T(""),H=T(""),xe=T(""),re=T(!1);const W=Ve(()=>Ze.url.searchParams.get("token"));We(async()=>{if(!t(W)){s(u,"Invalid invitation link"),s(he,!1);return}try{const r=await fetch(`/api/invitations/${t(W)}`);if(!r.ok){const C=await r.json();throw new Error(C.error||"Invalid or expired invitation")}s(h,await r.json(),!0)}catch(r){s(u,r instanceof Error?r.message:"Failed to load invitation",!0)}finally{s(he,!1)}});async function Oe(){if(t(H)!==t(xe)){s(u,"Passwords do not match");return}if(t(H).length<8){s(u,"Password must be at least 8 characters");return}s(j,!0),s(u,"");try{const r=await fetch(`/api/invitations/${t(W)}/accept`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:t($e),password:t(H)})});if(!r.ok){const O=await r.json();throw new Error(O.error||"Failed to accept invitation")}const C=await r.json();ge.setToken(C.token),ge.setOrganizations(C.organizations||[]),Le.setProjects(C.projects),s(re,!0),setTimeout(()=>fe("/"),1500)}catch(r){s(u,r instanceof Error?r.message:"Failed to accept invitation",!0)}finally{s(j,!1)}}async function Ne(){s(j,!0),s(u,"");try{const r=await fetch(`/api/invitations/${t(W)}/accept-existing`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${ge.token}`}});if(!r.ok){const O=await r.json();throw new Error(O.error||"Failed to accept invitation")}const C=await r.json();Le.setProjects(C.projects),s(re,!0),setTimeout(()=>fe("/"),1500)}catch(r){s(u,r instanceof Error?r.message:"Failed to accept invitation",!0)}finally{s(j,!1)}}function Fe(){const r=encodeURIComponent(`/accept-invitation?token=${t(W)}`);fe(`/login?returnTo=${r}`)}function Re(r){switch(r){case"admin":return"Admin";case"readonly":return"Read Only";default:return"Member"}}var we=Pt(),Me=n(we);et(Me,{class:"w-[400px]",children:(r,C)=>{var O=bt(),Ae=d(O);tt(Ae,{children:(ye,Ye)=>{var K=ft(),ae=d(K);rt(ae,{class:"text-2xl",children:(f,E)=>{var N=ct(),F=n(N);{var R=v=>{var b=dt();e(v,b)},$=v=>{var b=vt();e(v,b)};g(F,v=>{nt.isDark?v(R):v($,!1)})}i(N),e(f,N)},$$slots:{default:!0}});var be=o(ae,2);{var Pe=f=>{ot(f,{class:"text-center",children:(E,N)=>{_();var F=ut(),R=o(d(F)),$=n(R,!0);i(R),te(()=>G($,t(h).organizationName)),e(E,F)},$$slots:{default:!0}})};g(be,f=>{t(h)&&!t(re)&&f(Pe)})}e(ye,K)},$$slots:{default:!0}});var Ue=o(Ae,2);at(Ue,{children:(ye,Ye)=>{var K=I(),ae=d(K);{var be=f=>{var E=pt();e(f,E)},Pe=f=>{var E=I(),N=d(E);{var F=$=>{var v=mt(),b=n(v),je=n(b);it(je,{class:"h-8 w-8 text-green-600"}),i(b);var oe=o(b,2),k=n(oe);i(oe),_(2),i(v),te(()=>G(k,`Welcome to ${t(h)?.organizationName??""}!`)),e($,v)},R=$=>{var v=I(),b=d(v);{var je=k=>{var Q=gt(),se=d(Q);Te(se,{variant:"destructive",class:"bg-red-50 border-red-200",children:(L,X)=>{var S=_t(),M=d(S);Se(M,{class:"h-4 w-4 text-red-700"});var ie=o(M,2);st(ie,{class:"text-red-800",children:(Z,de)=>{_();var U=c("Error");e(Z,U)},$$slots:{default:!0}});var le=o(ie,2);Ee(le,{class:"text-red-700",children:(Z,de)=>{_();var U=c();te(()=>G(U,t(u))),e(Z,U)},$$slots:{default:!0}}),e(L,S)},$$slots:{default:!0}});var ne=o(se,2),V=n(ne);pe(V,{variant:"outline",onclick:()=>fe("/login"),children:(L,X)=>{_();var S=c("Go to Login");e(L,S)},$$slots:{default:!0}}),i(ne),e(k,Q)},oe=k=>{var Q=I(),se=d(Q);{var ne=V=>{var L=yt(),X=n(L),S=n(X),M=n(S),ie=n(M,!0);i(M);var le=o(M,2),Z=n(le,!0);i(le),i(S),i(X);var de=o(X,2);{var U=p=>{Te(p,{variant:"destructive",class:"bg-red-50 border-red-200",children:(P,Y)=>{var z=ht(),q=d(z);Se(q,{class:"h-4 w-4 text-red-700"});var m=o(q,2);Ee(m,{class:"text-red-700",children:(x,B)=>{_();var w=c();te(()=>G(w,t(u))),e(x,w)},$$slots:{default:!0}}),e(P,z)},$$slots:{default:!0}})};g(de,p=>{t(u)&&p(U)})}var qe=o(de,2);{var Be=p=>{var P=I(),Y=d(P);{var z=m=>{var x=$t(),B=o(d(x),2);pe(B,{class:"w-full",onclick:Ne,get disabled(){return t(j)},children:(w,ve)=>{var J=I(),ee=d(J);{var ce=A=>{var a=c("Joining...");e(A,a)},Ce=A=>{var a=c("Accept Invitation");e(A,a)};g(ee,A=>{t(j)?A(ce):A(Ce,!1)})}e(w,J)},$$slots:{default:!0}}),_(2),e(m,x)},q=m=>{var x=xt(),B=o(d(x),2);pe(B,{class:"w-full",onclick:Fe,children:(w,ve)=>{_();var J=c("Login to Accept");e(w,J)},$$slots:{default:!0}}),e(m,x)};g(Y,m=>{ge.isAuthenticated?m(z):m(q,!1)})}e(p,P)},Je=p=>{var P=wt(),Y=n(P),z=n(Y);_e(z,{for:"email",children:(a,ue)=>{_();var y=c("Email");e(a,y)},$$slots:{default:!0}});var q=o(z,2);me(q,{id:"email",type:"email",get value(){return t(h).email},disabled:!0}),i(Y);var m=o(Y,2),x=n(m);_e(x,{for:"name",children:(a,ue)=>{_();var y=c("Your Name");e(a,y)},$$slots:{default:!0}});var B=o(x,2);me(B,{id:"name",type:"text",placeholder:"Your name",required:!0,get value(){return t($e)},set value(a){s($e,a,!0)}}),i(m);var w=o(m,2),ve=n(w);_e(ve,{for:"password",children:(a,ue)=>{_();var y=c("Password");e(a,y)},$$slots:{default:!0}});var J=o(ve,2);me(J,{id:"password",type:"password",placeholder:"Min 8 characters",required:!0,get value(){return t(H)},set value(a){s(H,a,!0)}}),i(w);var ee=o(w,2),ce=n(ee);_e(ce,{for:"confirmPassword",children:(a,ue)=>{_();var y=c("Confirm Password");e(a,y)},$$slots:{default:!0}});var Ce=o(ce,2);me(Ce,{id:"confirmPassword",type:"password",placeholder:"Confirm password",required:!0,get value(){return t(xe)},set value(a){s(xe,a,!0)}}),i(ee);var A=o(ee,2);pe(A,{type:"submit",class:"w-full",get disabled(){return t(j)},children:(a,ue)=>{var y=I(),De=d(y);{var Ge=D=>{var ke=c("Creating account...");e(D,ke)},He=D=>{var ke=c("Create Account & Join");e(D,ke)};g(De,D=>{t(j)?D(Ge):D(He,!1)})}e(a,y)},$$slots:{default:!0}}),i(P),Xe("submit",P,a=>{a.preventDefault(),Oe()}),e(p,P)};g(qe,p=>{t(h).existsAsUser?p(Be):p(Je,!1)})}i(L),te(p=>{G(ie,t(h).inviterName),G(Z,p)},[()=>Re(t(h).role)]),e(V,L)};g(se,V=>{t(h)&&V(ne)},!0)}e(k,Q)};g(b,k=>{t(u)&&!t(h)?k(je):k(oe,!1)},!0)}e($,v)};g(N,$=>{t(re)?$(F):$(R,!1)},!0)}e(f,E)};g(ae,f=>{t(he)?f(be):f(Pe,!1)})}e(ye,K)},$$slots:{default:!0}}),e(r,O)},$$slots:{default:!0}}),i(we),e(ze,we),Qe()}export{Bt as component,qt as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/3.Cyvwl6f8.js.map b/backend/static/frontend/_app/immutable/nodes/3.DsKkyZbg.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/3.Cyvwl6f8.js.map
rename to backend/static/frontend/_app/immutable/nodes/3.DsKkyZbg.js.map
index 06588ca4..b2543c67 100644
--- a/backend/static/frontend/_app/immutable/nodes/3.Cyvwl6f8.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/3.DsKkyZbg.js.map
@@ -1 +1 @@
-{"version":3,"file":"3.Cyvwl6f8.js","sources":["../../../../../../src/routes/accept-invitation/+page.ts","../../../../../../src/routes/accept-invitation/+page.svelte"],"sourcesContent":["export const prerender = false;\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { page } from '$app/state';\n import { onMount } from 'svelte';\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import { CircleAlert, Check } from \"@lucide/svelte\";\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState } from '$lib/state/projects.svelte';\n import { themeState } from '$lib/state/theme.svelte';\n\n interface InvitationInfo {\n email: string;\n organizationName: string;\n inviterName: string;\n existsAsUser: boolean;\n role: string;\n }\n\n let loading = $state(true);\n let submitting = $state(false);\n let error = $state('');\n let invitationInfo = $state<InvitationInfo | null>(null);\n let name = $state('');\n let password = $state('');\n let confirmPassword = $state('');\n let success = $state(false);\n\n const token = $derived(page.url.searchParams.get('token'));\n\n onMount(async () => {\n if (!token) {\n error = 'Invalid invitation link';\n loading = false;\n return;\n }\n\n try {\n const response = await fetch(`/api/invitations/${token}`);\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Invalid or expired invitation');\n }\n\n invitationInfo = await response.json();\n } catch (e) {\n error = e instanceof Error ? e.message : 'Failed to load invitation';\n } finally {\n loading = false;\n }\n });\n\n async function handleNewUserSubmit() {\n if (password !== confirmPassword) {\n error = 'Passwords do not match';\n return;\n }\n\n if (password.length < 8) {\n error = 'Password must be at least 8 characters';\n return;\n }\n\n submitting = true;\n error = '';\n\n try {\n const response = await fetch(`/api/invitations/${token}/accept`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ name, password })\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to accept invitation');\n }\n\n const data = await response.json();\n\n authState.setToken(data.token);\n authState.setOrganizations(data.organizations || []);\n projectsState.setProjects(data.projects);\n\n success = true;\n setTimeout(() => goto('/'), 1500);\n } catch (e) {\n error = e instanceof Error ? e.message : 'Failed to accept invitation';\n } finally {\n submitting = false;\n }\n }\n\n async function handleExistingUserAccept() {\n submitting = true;\n error = '';\n\n try {\n const response = await fetch(`/api/invitations/${token}/accept-existing`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${authState.token}`\n }\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to accept invitation');\n }\n\n const data = await response.json();\n projectsState.setProjects(data.projects);\n success = true;\n setTimeout(() => goto('/'), 1500);\n } catch (e) {\n error = e instanceof Error ? e.message : 'Failed to accept invitation';\n } finally {\n submitting = false;\n }\n }\n\n function handleLoginRedirect() {\n const returnTo = encodeURIComponent(`/accept-invitation?token=${token}`);\n goto(`/login?returnTo=${returnTo}`);\n }\n\n function getRoleLabel(role: string): string {\n switch (role) {\n case 'admin': return 'Admin';\n case 'readonly': return 'Read Only';\n default: return 'Member';\n }\n }\n</script>\n\n<div class=\"flex min-h-screen w-full items-center justify-center px-4 py-8\">\n <Card class=\"w-[400px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n {#if invitationInfo && !success}\n <CardDescription class=\"text-center\">\n You've been invited to join <strong>{invitationInfo.organizationName}</strong>\n </CardDescription>\n {/if}\n </CardHeader>\n <CardContent>\n {#if loading}\n <div class=\"flex items-center justify-center py-8\">\n <div class=\"animate-spin rounded-full h-8 w-8 border-b-2 border-primary\"></div>\n </div>\n {:else if success}\n <div class=\"flex flex-col items-center justify-center py-8 gap-4\">\n <div class=\"rounded-full bg-green-100 p-3\">\n <Check class=\"h-8 w-8 text-green-600\" />\n </div>\n <p class=\"text-center text-lg font-medium\">Welcome to {invitationInfo?.organizationName}!</p>\n <p class=\"text-center text-muted-foreground\">Redirecting to dashboard...</p>\n </div>\n {:else if error && !invitationInfo}\n <Alert variant=\"destructive\" class=\"bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n <div class=\"mt-4 text-center\">\n <Button variant=\"outline\" onclick={() => goto('/login')}>\n Go to Login\n </Button>\n </div>\n {:else if invitationInfo}\n <div class=\"space-y-4\">\n <div class=\"bg-muted/50 rounded-lg p-4 text-sm\">\n <p><strong>{invitationInfo.inviterName}</strong> invited you to join as a <strong>{getRoleLabel(invitationInfo.role)}</strong></p>\n </div>\n\n {#if error}\n <Alert variant=\"destructive\" class=\"bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n {/if}\n\n {#if invitationInfo.existsAsUser}\n {#if authState.isAuthenticated}\n <p class=\"text-center text-muted-foreground\">\n Click below to join the organization\n </p>\n <Button class=\"w-full\" onclick={handleExistingUserAccept} disabled={submitting}>\n {#if submitting}\n Joining...\n {:else}\n Accept Invitation\n {/if}\n </Button>\n <div>\n <p class=\"text-sm text-muted-foreground\">\n To go to the Login page <a href=\"/login\" class=\"text-primary hover:underline\">Click Here</a>\n </p>\n </div>\n {:else}\n <p class=\"text-center text-muted-foreground\">\n You already have an account. Please log in to accept this invitation.\n </p>\n <Button class=\"w-full\" onclick={handleLoginRedirect}>\n Login to Accept\n </Button>\n {/if}\n {:else}\n <form onsubmit={(e) => { e.preventDefault(); handleNewUserSubmit(); }} class=\"space-y-4\">\n <div class=\"space-y-2\">\n <Label for=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" value={invitationInfo.email} disabled />\n </div>\n <div class=\"space-y-2\">\n <Label for=\"name\">Your Name</Label>\n <Input id=\"name\" type=\"text\" bind:value={name} placeholder=\"Your name\" required />\n </div>\n <div class=\"space-y-2\">\n <Label for=\"password\">Password</Label>\n <Input id=\"password\" type=\"password\" bind:value={password} placeholder=\"Min 8 characters\" required />\n </div>\n <div class=\"space-y-2\">\n <Label for=\"confirmPassword\">Confirm Password</Label>\n <Input id=\"confirmPassword\" type=\"password\" bind:value={confirmPassword} placeholder=\"Confirm password\" required />\n </div>\n <Button type=\"submit\" class=\"w-full\" disabled={submitting}>\n {#if submitting}\n Creating account...\n {:else}\n Create Account & Join\n {/if}\n </Button>\n </form>\n {/if}\n </div>\n {/if}\n </CardContent>\n </Card>\n</div>\n"],"names":["prerender","loading","$.state","submitting","error","invitationInfo","name","password","confirmPassword","success","token","$.derived","page","onMount","$.get","$.set","response","data","e","handleNewUserSubmit","authState","projectsState","goto","handleExistingUserAccept","handleLoginRedirect","returnTo","getRoleLabel","role","div","root","Card","node","CardHeader","node_1","CardTitle","node_2","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardDescription","$$anchor","strong","$.sibling","$.first_child","fragment_3","$.template_effect","$.set_text","text","consequent_1","CardContent","node_5","div_2","root_9","div_3","root_11","div_4","Check","node_8","p","text_1","Alert","node_10","CircleAlert","node_11","AlertTitle","node_12","AlertDescription","node_13","div_5","Button","node_14","div_6","root_19","div_7","p_1","strong_1","strong_2","node_17","node_18","consequent_5","node_21","consequent_6","alternate_1","node_23","consequent_7","alternate_2","form","root_30","div_8","Label","node_24","Input","node_25","div_9","node_26","node_27","$$value","div_10","node_28","node_29","div_11","node_30","node_31","node_32","consequent_9","alternate_3","cons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IH/B,GAAMkC,EAAA,sDAAwC3G,CAAU,yJAChDA,CAAU,EAAAwC,EAAAoE,EAAA,EAAApE,EAAAqE,GAAA,EAAA,qCAlBtBnB,CAAI,cAAJA,EAAgB3E,GAAM,CAAEA,EAAE,eAAc,EAAIC,GAAmB,CAAI,CAAC,MAApE0E,CAAI,YA1BJ/E,EAAAT,CAAc,EAAC,aAAYsC,EAAAsE,EAAA,EAAAtE,EAAAuE,GAAA,EAAA,MAdnCpC,CAAG,SAEgBzB,EAAA8D,GAAArG,EAAAT,CAAc,EAAC,WAAW,eAA6CqB,GAAYZ,EAACT,CAAc,EAAC,IAAI,CAAA,OAF1HyE,CAAG,cADEzE,CAAc,GAAAsC,EAAAyE,EAAA,uBAbdtG,EAAAV,CAAK,MAAKC,CAAc,EAAAsC,EAAA0E,EAAA,EAAA1E,EAAA2E,GAAA,EAAA,yBARxB7G,EAAO,EAAAkC,EAAA4E,CAAA,EAAA5E,EAAA6E,EAAA,EAAA,0BAJZvH,EAAO,EAAA0C,EAAA8E,EAAA,EAAA9E,EAAA+E,GAAA,EAAA,qEAnBvB9F,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"3.DsKkyZbg.js","sources":["../../../../../../src/routes/accept-invitation/+page.ts","../../../../../../src/routes/accept-invitation/+page.svelte"],"sourcesContent":["export const prerender = false;\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { page } from '$app/state';\n import { onMount } from 'svelte';\n import { Button } from \"$lib/components/ui/button\";\n import { Input } from \"$lib/components/ui/input\";\n import { Label } from \"$lib/components/ui/label\";\n import { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"$lib/components/ui/card\";\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import { CircleAlert, Check } from \"@lucide/svelte\";\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState } from '$lib/state/projects.svelte';\n import { themeState } from '$lib/state/theme.svelte';\n\n interface InvitationInfo {\n email: string;\n organizationName: string;\n inviterName: string;\n existsAsUser: boolean;\n role: string;\n }\n\n let loading = $state(true);\n let submitting = $state(false);\n let error = $state('');\n let invitationInfo = $state<InvitationInfo | null>(null);\n let name = $state('');\n let password = $state('');\n let confirmPassword = $state('');\n let success = $state(false);\n\n const token = $derived(page.url.searchParams.get('token'));\n\n onMount(async () => {\n if (!token) {\n error = 'Invalid invitation link';\n loading = false;\n return;\n }\n\n try {\n const response = await fetch(`/api/invitations/${token}`);\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Invalid or expired invitation');\n }\n\n invitationInfo = await response.json();\n } catch (e) {\n error = e instanceof Error ? e.message : 'Failed to load invitation';\n } finally {\n loading = false;\n }\n });\n\n async function handleNewUserSubmit() {\n if (password !== confirmPassword) {\n error = 'Passwords do not match';\n return;\n }\n\n if (password.length < 8) {\n error = 'Password must be at least 8 characters';\n return;\n }\n\n submitting = true;\n error = '';\n\n try {\n const response = await fetch(`/api/invitations/${token}/accept`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ name, password })\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to accept invitation');\n }\n\n const data = await response.json();\n\n authState.setToken(data.token);\n authState.setOrganizations(data.organizations || []);\n projectsState.setProjects(data.projects);\n\n success = true;\n setTimeout(() => goto('/'), 1500);\n } catch (e) {\n error = e instanceof Error ? e.message : 'Failed to accept invitation';\n } finally {\n submitting = false;\n }\n }\n\n async function handleExistingUserAccept() {\n submitting = true;\n error = '';\n\n try {\n const response = await fetch(`/api/invitations/${token}/accept-existing`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${authState.token}`\n }\n });\n\n if (!response.ok) {\n const data = await response.json();\n throw new Error(data.error || 'Failed to accept invitation');\n }\n\n const data = await response.json();\n projectsState.setProjects(data.projects);\n success = true;\n setTimeout(() => goto('/'), 1500);\n } catch (e) {\n error = e instanceof Error ? e.message : 'Failed to accept invitation';\n } finally {\n submitting = false;\n }\n }\n\n function handleLoginRedirect() {\n const returnTo = encodeURIComponent(`/accept-invitation?token=${token}`);\n goto(`/login?returnTo=${returnTo}`);\n }\n\n function getRoleLabel(role: string): string {\n switch (role) {\n case 'admin': return 'Admin';\n case 'readonly': return 'Read Only';\n default: return 'Member';\n }\n }\n</script>\n\n<div class=\"flex min-h-screen w-full items-center justify-center px-4 py-8\">\n <Card class=\"w-[400px]\">\n <CardHeader>\n <CardTitle class=\"text-2xl\">\n <div class=\"flex flex-row items-center justify-center gap-2\">\n {#if themeState.isDark}\n <img src=\"/traceway-logo-white.svg\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {:else}\n <img src=\"/traceway-logo.png\" alt=\"Traceway Logo\" class=\"h-8 w-auto\" />\n {/if}\n </div>\n </CardTitle>\n {#if invitationInfo && !success}\n <CardDescription class=\"text-center\">\n You've been invited to join <strong>{invitationInfo.organizationName}</strong>\n </CardDescription>\n {/if}\n </CardHeader>\n <CardContent>\n {#if loading}\n <div class=\"flex items-center justify-center py-8\">\n <div class=\"animate-spin rounded-full h-8 w-8 border-b-2 border-primary\"></div>\n </div>\n {:else if success}\n <div class=\"flex flex-col items-center justify-center py-8 gap-4\">\n <div class=\"rounded-full bg-green-100 p-3\">\n <Check class=\"h-8 w-8 text-green-600\" />\n </div>\n <p class=\"text-center text-lg font-medium\">Welcome to {invitationInfo?.organizationName}!</p>\n <p class=\"text-center text-muted-foreground\">Redirecting to dashboard...</p>\n </div>\n {:else if error && !invitationInfo}\n <Alert variant=\"destructive\" class=\"bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n <div class=\"mt-4 text-center\">\n <Button variant=\"outline\" onclick={() => goto('/login')}>\n Go to Login\n </Button>\n </div>\n {:else if invitationInfo}\n <div class=\"space-y-4\">\n <div class=\"bg-muted/50 rounded-lg p-4 text-sm\">\n <p><strong>{invitationInfo.inviterName}</strong> invited you to join as a <strong>{getRoleLabel(invitationInfo.role)}</strong></p>\n </div>\n\n {#if error}\n <Alert variant=\"destructive\" class=\"bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertDescription class=\"text-red-700\">\n {error}\n </AlertDescription>\n </Alert>\n {/if}\n\n {#if invitationInfo.existsAsUser}\n {#if authState.isAuthenticated}\n <p class=\"text-center text-muted-foreground\">\n Click below to join the organization\n </p>\n <Button class=\"w-full\" onclick={handleExistingUserAccept} disabled={submitting}>\n {#if submitting}\n Joining...\n {:else}\n Accept Invitation\n {/if}\n </Button>\n <div>\n <p class=\"text-sm text-muted-foreground\">\n To go to the Login page <a href=\"/login\" class=\"text-primary hover:underline\">Click Here</a>\n </p>\n </div>\n {:else}\n <p class=\"text-center text-muted-foreground\">\n You already have an account. Please log in to accept this invitation.\n </p>\n <Button class=\"w-full\" onclick={handleLoginRedirect}>\n Login to Accept\n </Button>\n {/if}\n {:else}\n <form onsubmit={(e) => { e.preventDefault(); handleNewUserSubmit(); }} class=\"space-y-4\">\n <div class=\"space-y-2\">\n <Label for=\"email\">Email</Label>\n <Input id=\"email\" type=\"email\" value={invitationInfo.email} disabled />\n </div>\n <div class=\"space-y-2\">\n <Label for=\"name\">Your Name</Label>\n <Input id=\"name\" type=\"text\" bind:value={name} placeholder=\"Your name\" required />\n </div>\n <div class=\"space-y-2\">\n <Label for=\"password\">Password</Label>\n <Input id=\"password\" type=\"password\" bind:value={password} placeholder=\"Min 8 characters\" required />\n </div>\n <div class=\"space-y-2\">\n <Label for=\"confirmPassword\">Confirm Password</Label>\n <Input id=\"confirmPassword\" type=\"password\" bind:value={confirmPassword} placeholder=\"Confirm password\" required />\n </div>\n <Button type=\"submit\" class=\"w-full\" disabled={submitting}>\n {#if submitting}\n Creating account...\n {:else}\n Create Account & Join\n {/if}\n </Button>\n </form>\n {/if}\n </div>\n {/if}\n </CardContent>\n </Card>\n</div>\n"],"names":["prerender","loading","$.state","submitting","error","invitationInfo","name","password","confirmPassword","success","token","$.derived","page","onMount","$.get","$.set","response","data","e","handleNewUserSubmit","authState","projectsState","goto","handleExistingUserAccept","handleLoginRedirect","returnTo","getRoleLabel","role","div","root","Card","node","CardHeader","node_1","CardTitle","node_2","div_1","root_3","img","root_4","img_1","root_5","themeState","$$render","consequent","alternate","CardDescription","$$anchor","strong","$.sibling","$.first_child","fragment_3","$.template_effect","$.set_text","text","consequent_1","CardContent","node_5","div_2","root_9","div_3","root_11","div_4","Check","node_8","p","text_1","Alert","node_10","CircleAlert","node_11","AlertTitle","node_12","AlertDescription","node_13","div_5","Button","node_14","div_6","root_19","div_7","p_1","strong_1","strong_2","node_17","node_18","consequent_5","node_21","consequent_6","alternate_1","node_23","consequent_7","alternate_2","form","root_30","div_8","Label","node_24","Input","node_25","div_9","node_26","node_27","$$value","div_10","node_28","node_29","div_11","node_30","node_31","node_32","consequent_9","alternate_3","consequent_8","alternate_4","text_5","consequent_10","consequent_4","alternate_5","consequent_3","alternate_6","consequent_2","alternate_7"],"mappings":"q3BAAO,MAAMA,GAAY,0wDCAzB,eAsBQC,GAAUC,EAAO,EAAI,EACrBC,EAAaD,EAAO,EAAK,EACzBE,EAAQF,EAAO,EAAE,EACjBG,EAAiBH,EAA8B,IAAI,EACnDI,GAAOJ,EAAO,EAAE,EAChBK,EAAWL,EAAO,EAAE,EACpBM,GAAkBN,EAAO,EAAE,EAC3BO,GAAUP,EAAO,EAAK,QAEpBQ,EAAKC,GAAA,IAAYC,GAAK,IAAI,aAAa,IAAI,OAAO,CAAA,EAExDC,GAAO,SAAa,CACX,GAAA,CAAAC,EAAAJ,CAAK,EAAE,CACRK,EAAAX,EAAQ,yBAAyB,EACjCW,EAAAd,GAAU,EAAK,QAEnB,CAEI,GAAA,OACMe,EAAQ,MAAS,MAAK,oBAAAF,EAAqBJ,CAAK,CAAA,EAAA,MAEjDM,EAAS,GAAI,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BAJZvH,EAAO,EAAA0C,EAAA8E,EAAA,EAAA9E,EAAA+E,GAAA,EAAA,qEAnBvB9F,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/4.H2hD8gEo.js b/backend/static/frontend/_app/immutable/nodes/4.ngE2ZybA.js
similarity index 93%
rename from backend/static/frontend/_app/immutable/nodes/4.H2hD8gEo.js
rename to backend/static/frontend/_app/immutable/nodes/4.ngE2ZybA.js
index 2be7fe01..2a45b152 100644
--- a/backend/static/frontend/_app/immutable/nodes/4.H2hD8gEo.js
+++ b/backend/static/frontend/_app/immutable/nodes/4.ngE2ZybA.js
@@ -1 +1 @@
-import{r as _t}from"../chunks/BJZ1igWb.js";import{b as gt,a as vt,p as $t}from"../chunks/D6S6XYVy.js";import{i as ke}from"../chunks/DMODTt3n.js";import{o as ht,a as Tt}from"../chunks/Dwk6gGSK.js";import{p as St,h as u,v as D,g as e,u as Qe,f as ue,b as o,a as xt,e as ie,s as i,i as r,r as de,d as _,c as d,n as j,t as N,k as O,l as E}from"../chunks/B2WdN-7r.js";import{e as Pt,i as bt}from"../chunks/CMyj8Fzw.js";import{c as n}from"../chunks/BAcG0-U_.js";import{g as yt,c as We,t as Ye,b as Je}from"../chunks/DJdWGDax.js";import{b as $e,T as he,a as w,c as Dt}from"../chunks/CeOjHHJH.js";import{T as wt}from"../chunks/CEJkX7WU.js";import{L as Ft}from"../chunks/D0pIT200.js";import{T as G}from"../chunks/BQmrPeqT.js";import{T as Ct}from"../chunks/xk30YnJ1.js";import{P as Rt}from"../chunks/C8IsQj6C.js";import{g as Ve,d as ee,a as te,T as Lt,p as kt,b as Ut,u as zt}from"../chunks/xqPrLpfy.js";import{S as It}from"../chunks/DGXZzcqC.js";import{c as At}from"../chunks/CyOblkUv.js";import{r as jt}from"../chunks/D_mqy6BL.js";import{P as Nt}from"../chunks/BGqyWGxT.js";import{g as Ot,h as Et,s as Mt}from"../chunks/X-i49s3k.js";const Bt=()=>{if(!gt.isAuthenticated)throw _t(302,"/login")},_r=Object.freeze(Object.defineProperty({__proto__:null,load:Bt},Symbol.toStringTag,{value:"Module"}));var qt=ue('<div class="flex justify-center items-center h-full"><!></div>'),Gt=ue("<!> <!> <!> <!> <!> <!> <!>",1),Ht=ue("<!> <!> <!> <!> <!> <!> <!>",1),Kt=ue("<!> <!>",1),Qt=ue('<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex flex-col"><!></div></div> <!> <div class="rounded-md border overflow-hidden"><!></div> <!></div>');function gr(Xe,Ze){St(Ze,!0);const l=Qe(yt);let Te=u(D([])),re=u(!0),ce=u(""),F=u(1),Se=u(50),Ue=u(0),xe=u(0);function ze(){const t=new URLSearchParams(window.location.search);return{...kt(e(l),"24h"),search:t.get("search")||""}}const Pe=ze(),me=Ve(Pe,e(l));let H=u(D(Pe.search)),C=u(D(Pe.preset)),R=u(D(ee(me.from,e(l)))),L=u(D(ee(me.to,e(l)))),K=u(D(te(me.from,e(l)))),Q=u(D(te(me.to,e(l))));function et(t=!0){const a={};e(C)?a.preset=e(C):(a.from=Ne(),a.to=Oe()),e(H).trim()&&(a.search=e(H).trim()),zt(a,{pushToHistory:t})}function Ie(){const t=ze(),a=Ve(t,e(l));r(C,t.preset,!0),r(R,ee(a.from,e(l)),!0),r(K,te(a.from,e(l)),!0),r(L,ee(a.to,e(l)),!0),r(Q,te(a.to,e(l)),!0),r(H,t.search,!0),r(F,1),M(!1)}const Ae="ai-traces",je=Ot(Ae,{field:"total_cost",direction:"desc"});let T=u(D(je.field)),S=u(D(je.direction));function Ne(){const[t,a]=(e(K)||"00:00").split(":").map(Number),v=We({year:e(R).year,month:e(R).month,day:e(R).day,hour:t,minute:a},e(l));return Ye(v)}function Oe(){const[t,a]=(e(Q)||"23:59").split(":").map(Number),v=We({year:e(L).year,month:e(L).month,day:e(L).day,hour:t,minute:a},e(l)).endOf("minute");return Ye(v)}function tt(t,a,v){r(R,t.date,!0),r(K,t.time,!0),r(L,a.date,!0),r(Q,a.time,!0),r(C,v,!0),r(F,1),M(!1)}function rt(t){return t===0?"$0":t<.001?`$${t.toFixed(6)}`:t<.01?`$${t.toFixed(4)}`:t<1?`$${t.toFixed(3)}`:`$${t.toFixed(2)}`}function at(t){return t>=1e6?`${(t/1e6).toFixed(1)}m`:t>=1e3?`${(t/1e3).toFixed(1)}k`:t.toLocaleString()}function ot(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:t.toLocaleString()}async function M(t=!0){if(r(re,!0),r(ce,""),e(C)){const a=Ut(e(C),e(l));r(R,ee(a.from,e(l)),!0),r(L,ee(a.to,e(l)),!0),r(K,te(a.from,e(l)),!0),r(Q,te(a.to,e(l)),!0)}et(t);try{const a={fromDate:Ne(),toDate:Oe(),orderBy:e(T),sortDirection:e(S),pagination:{page:e(F),pageSize:e(Se)},search:e(H).trim()},v=await vt.post("/ai-traces/grouped",a,{projectId:$t.currentProjectId??void 0});r(Te,v.data||[],!0),r(Ue,v.pagination.total,!0),r(xe,v.pagination.totalPages,!0)}catch(a){console.error(a),r(ce,a.message||"Failed to load data",!0)}finally{r(re,!1)}}function st(t){t>=1&&t<=e(xe)&&(r(F,t,!0),M(!1))}function nt(t){r(Se,t,!0),r(F,1),M(!1)}function W(t){const a=Et(t,e(T),e(S));r(T,a.field,!0),r(S,a.direction,!0),Mt(Ae,a),r(F,1),M(!1)}function lt(){r(F,1),M(!0)}ht(()=>{window.addEventListener("popstate",Ie),M(!1)}),Tt(()=>{typeof window<"u"&&window.removeEventListener("popstate",Ie)});var be=Qt(),ye=ie(be),Ee=ie(ye);Nt(Ee,{title:"AI Traces"});var Me=i(Ee,2),it=ie(Me);Lt(it,{onApply:tt,get fromDate(){return e(R)},set fromDate(t){r(R,t,!0)},get toDate(){return e(L)},set toDate(t){r(L,t,!0)},get fromTime(){return e(K)},set fromTime(t){r(K,t,!0)},get toTime(){return e(Q)},set toTime(t){r(Q,t,!0)},get preset(){return e(C)},set preset(t){r(C,t,!0)}}),de(Me),de(ye);var Be=i(ye,2);It(Be,{placeholder:"Search traces...",onSearch:lt,get disabled(){return e(re)},get value(){return e(H)},set value(t){r(H,t,!0)}});var De=i(Be,2),dt=ie(De);n(dt,()=>Dt,(t,a)=>{a(t,{children:(v,Wt)=>{var qe=_(),ct=d(qe);{var mt=Y=>{var ae=_(),we=d(ae);n(we,()=>$e,(Fe,Ce)=>{Ce(Fe,{children:(k,J)=>{var V=_(),oe=d(V);n(oe,()=>he,(se,h)=>{h(se,{children:(U,z)=>{var I=_(),x=d(I);n(x,()=>w,(P,A)=>{A(P,{colspan:7,class:"h-48",children:(fe,b)=>{var y=qt(),B=ie(y);Ft(B,{size:"xlg"}),de(y),o(fe,y)},$$slots:{default:!0}})}),o(U,I)},$$slots:{default:!0}})}),o(k,V)},$$slots:{default:!0}})}),o(Y,ae)},ft=Y=>{var ae=_(),we=d(ae);{var Fe=k=>{var J=_(),V=d(J);n(V,()=>$e,(oe,se)=>{se(oe,{children:(h,U)=>{var z=_(),I=d(z);n(I,()=>he,(x,P)=>{P(x,{children:(A,fe)=>{var b=_(),y=d(b);n(y,()=>w,(B,g)=>{g(B,{colspan:7,class:"h-24 text-center text-red-500",children:(X,Re)=>{j();var q=N();O(()=>E(q,e(ce))),o(X,q)},$$slots:{default:!0}})}),o(A,b)},$$slots:{default:!0}})}),o(h,z)},$$slots:{default:!0}})}),o(k,J)},Ce=k=>{var J=_(),V=d(J);{var oe=h=>{var U=_(),z=d(U);n(z,()=>$e,(I,x)=>{x(I,{children:(P,A)=>{Ct(P,{colspan:7,message:"No AI trace data available for your search parameters"})},$$slots:{default:!0}})}),o(h,U)},se=h=>{var U=Kt(),z=d(U);n(z,()=>wt,(x,P)=>{P(x,{children:(A,fe)=>{var b=_(),y=d(b);n(y,()=>he,(B,g)=>{g(B,{children:(X,Re)=>{var q=Gt(),pe=d(q);G(pe,{label:"Trace Name",tooltip:"The AI agent or workflow name"});var _e=i(pe,2);G(_e,{label:"Calls",tooltip:"Total number of AI calls",sortField:"count",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[80px]"});var ge=i(_e,2);G(ge,{label:"Typical",tooltip:"Median duration (P50)",sortField:"p50_duration",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[100px]"});var Le=i(ge,2);G(Le,{label:"Slow",tooltip:"95th percentile duration",sortField:"p95_duration",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[100px]"});var ne=i(Le,2);G(ne,{label:"Total Tokens",tooltip:"Total tokens consumed",sortField:"total_tokens",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[110px]"});var le=i(ne,2);G(le,{label:"Total Cost",tooltip:"Total cost across all calls",sortField:"total_cost",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[100px]"});var ve=i(le,2);G(ve,{label:"Last Seen",tooltip:"When the last call occurred",sortField:"last_seen",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[100px]"}),o(X,q)},$$slots:{default:!0}})}),o(A,b)},$$slots:{default:!0}})});var I=i(z,2);n(I,()=>$e,(x,P)=>{P(x,{children:(A,fe)=>{var b=_(),y=d(b);Pt(y,17,()=>e(Te),bt,(B,g)=>{var X=_(),Re=d(X);{let q=Qe(()=>At(jt(`/ai-traces/${encodeURIComponent(e(g).traceName)}`),"preset","from","to"));n(Re,()=>he,(pe,_e)=>{_e(pe,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return e(q)},children:(ge,Le)=>{var ne=Ht(),le=d(ne);n(le,()=>w,(m,f)=>{f(m,{class:"font-mono text-sm",children:(p,Z)=>{j();var s=N();O(()=>E(s,e(g).traceName)),o(p,s)},$$slots:{default:!0}})});var ve=i(le,2);n(ve,()=>w,(m,f)=>{f(m,{class:"tabular-nums",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>at(e(g).count)]),o(p,s)},$$slots:{default:!0}})});var c=i(ve,2);n(c,()=>w,(m,f)=>{f(m,{class:"font-mono text-sm tabular-nums",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>Je(e(g).p50Duration)]),o(p,s)},$$slots:{default:!0}})});var Ge=i(c,2);n(Ge,()=>w,(m,f)=>{f(m,{class:"font-mono text-sm tabular-nums",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>Je(e(g).p95Duration)]),o(p,s)},$$slots:{default:!0}})});var He=i(Ge,2);n(He,()=>w,(m,f)=>{f(m,{class:"font-mono text-sm tabular-nums",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>ot(e(g).totalTokens)]),o(p,s)},$$slots:{default:!0}})});var Ke=i(He,2);n(Ke,()=>w,(m,f)=>{f(m,{class:"font-mono text-sm tabular-nums",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>rt(e(g).totalCost)]),o(p,s)},$$slots:{default:!0}})});var pt=i(Ke,2);n(pt,()=>w,(m,f)=>{f(m,{class:"text-muted-foreground text-sm",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>new Date(e(g).lastSeen).toLocaleDateString()]),o(p,s)},$$slots:{default:!0}})}),o(ge,ne)},$$slots:{default:!0}})})}o(B,X)}),o(A,b)},$$slots:{default:!0}})}),o(h,U)};ke(V,h=>{e(Te).length===0?h(oe):h(se,!1)},!0)}o(k,J)};ke(we,k=>{e(ce)?k(Fe):k(Ce,!1)},!0)}o(Y,ae)};ke(ct,Y=>{e(re)?Y(mt):Y(ft,!1)})}o(v,qe)},$$slots:{default:!0}})}),de(De);var ut=i(De,2);Rt(ut,{get currentPage(){return e(F)},get totalPages(){return e(xe)},get pageSize(){return e(Se)},get totalItems(){return e(Ue)},onPageChange:st,onPageSizeChange:nt,get loading(){return e(re)},itemLabel:"trace"}),de(be),o(Xe,be),xt()}export{gr as component,_r as universal};
+import{r as _t}from"../chunks/B4VmGkxP.js";import{b as gt,a as vt,p as $t}from"../chunks/qCQ2nSvO.js";import{i as ke}from"../chunks/DMODTt3n.js";import{o as ht,a as Tt}from"../chunks/Dwk6gGSK.js";import{p as St,h as u,v as D,g as e,u as Qe,f as ue,b as o,a as xt,e as ie,s as i,i as r,r as de,d as _,c as d,n as j,t as N,k as O,l as E}from"../chunks/B2WdN-7r.js";import{e as Pt,i as bt}from"../chunks/CMyj8Fzw.js";import{c as n}from"../chunks/BAcG0-U_.js";import{g as yt,c as We,t as Ye,b as Je}from"../chunks/Dq-0lVru.js";import{b as $e,T as he,a as w,c as Dt}from"../chunks/CeOjHHJH.js";import{T as wt}from"../chunks/CEJkX7WU.js";import{L as Ft}from"../chunks/D0pIT200.js";import{T as G}from"../chunks/CkVJuMBr.js";import{T as Ct}from"../chunks/xk30YnJ1.js";import{P as Rt}from"../chunks/DByR3-93.js";import{g as Ve,d as ee,a as te,T as Lt,p as kt,b as Ut,u as zt}from"../chunks/DjEjtFrE.js";import{S as It}from"../chunks/D4tSNflE.js";import{c as At}from"../chunks/UIirCQWa.js";import{r as jt}from"../chunks/BGApn_8u.js";import{P as Nt}from"../chunks/Cplpgpvt.js";import{g as Ot,h as Et,s as Mt}from"../chunks/X-i49s3k.js";const Bt=()=>{if(!gt.isAuthenticated)throw _t(302,"/login")},_r=Object.freeze(Object.defineProperty({__proto__:null,load:Bt},Symbol.toStringTag,{value:"Module"}));var qt=ue('<div class="flex justify-center items-center h-full"><!></div>'),Gt=ue("<!> <!> <!> <!> <!> <!> <!>",1),Ht=ue("<!> <!> <!> <!> <!> <!> <!>",1),Kt=ue("<!> <!>",1),Qt=ue('<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex flex-col"><!></div></div> <!> <div class="rounded-md border overflow-hidden"><!></div> <!></div>');function gr(Xe,Ze){St(Ze,!0);const l=Qe(yt);let Te=u(D([])),re=u(!0),ce=u(""),F=u(1),Se=u(50),Ue=u(0),xe=u(0);function ze(){const t=new URLSearchParams(window.location.search);return{...kt(e(l),"24h"),search:t.get("search")||""}}const Pe=ze(),me=Ve(Pe,e(l));let H=u(D(Pe.search)),C=u(D(Pe.preset)),R=u(D(ee(me.from,e(l)))),L=u(D(ee(me.to,e(l)))),K=u(D(te(me.from,e(l)))),Q=u(D(te(me.to,e(l))));function et(t=!0){const a={};e(C)?a.preset=e(C):(a.from=Ne(),a.to=Oe()),e(H).trim()&&(a.search=e(H).trim()),zt(a,{pushToHistory:t})}function Ie(){const t=ze(),a=Ve(t,e(l));r(C,t.preset,!0),r(R,ee(a.from,e(l)),!0),r(K,te(a.from,e(l)),!0),r(L,ee(a.to,e(l)),!0),r(Q,te(a.to,e(l)),!0),r(H,t.search,!0),r(F,1),M(!1)}const Ae="ai-traces",je=Ot(Ae,{field:"total_cost",direction:"desc"});let T=u(D(je.field)),S=u(D(je.direction));function Ne(){const[t,a]=(e(K)||"00:00").split(":").map(Number),v=We({year:e(R).year,month:e(R).month,day:e(R).day,hour:t,minute:a},e(l));return Ye(v)}function Oe(){const[t,a]=(e(Q)||"23:59").split(":").map(Number),v=We({year:e(L).year,month:e(L).month,day:e(L).day,hour:t,minute:a},e(l)).endOf("minute");return Ye(v)}function tt(t,a,v){r(R,t.date,!0),r(K,t.time,!0),r(L,a.date,!0),r(Q,a.time,!0),r(C,v,!0),r(F,1),M(!1)}function rt(t){return t===0?"$0":t<.001?`$${t.toFixed(6)}`:t<.01?`$${t.toFixed(4)}`:t<1?`$${t.toFixed(3)}`:`$${t.toFixed(2)}`}function at(t){return t>=1e6?`${(t/1e6).toFixed(1)}m`:t>=1e3?`${(t/1e3).toFixed(1)}k`:t.toLocaleString()}function ot(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:t.toLocaleString()}async function M(t=!0){if(r(re,!0),r(ce,""),e(C)){const a=Ut(e(C),e(l));r(R,ee(a.from,e(l)),!0),r(L,ee(a.to,e(l)),!0),r(K,te(a.from,e(l)),!0),r(Q,te(a.to,e(l)),!0)}et(t);try{const a={fromDate:Ne(),toDate:Oe(),orderBy:e(T),sortDirection:e(S),pagination:{page:e(F),pageSize:e(Se)},search:e(H).trim()},v=await vt.post("/ai-traces/grouped",a,{projectId:$t.currentProjectId??void 0});r(Te,v.data||[],!0),r(Ue,v.pagination.total,!0),r(xe,v.pagination.totalPages,!0)}catch(a){console.error(a),r(ce,a.message||"Failed to load data",!0)}finally{r(re,!1)}}function st(t){t>=1&&t<=e(xe)&&(r(F,t,!0),M(!1))}function nt(t){r(Se,t,!0),r(F,1),M(!1)}function W(t){const a=Et(t,e(T),e(S));r(T,a.field,!0),r(S,a.direction,!0),Mt(Ae,a),r(F,1),M(!1)}function lt(){r(F,1),M(!0)}ht(()=>{window.addEventListener("popstate",Ie),M(!1)}),Tt(()=>{typeof window<"u"&&window.removeEventListener("popstate",Ie)});var be=Qt(),ye=ie(be),Ee=ie(ye);Nt(Ee,{title:"AI Traces"});var Me=i(Ee,2),it=ie(Me);Lt(it,{onApply:tt,get fromDate(){return e(R)},set fromDate(t){r(R,t,!0)},get toDate(){return e(L)},set toDate(t){r(L,t,!0)},get fromTime(){return e(K)},set fromTime(t){r(K,t,!0)},get toTime(){return e(Q)},set toTime(t){r(Q,t,!0)},get preset(){return e(C)},set preset(t){r(C,t,!0)}}),de(Me),de(ye);var Be=i(ye,2);It(Be,{placeholder:"Search traces...",onSearch:lt,get disabled(){return e(re)},get value(){return e(H)},set value(t){r(H,t,!0)}});var De=i(Be,2),dt=ie(De);n(dt,()=>Dt,(t,a)=>{a(t,{children:(v,Wt)=>{var qe=_(),ct=d(qe);{var mt=Y=>{var ae=_(),we=d(ae);n(we,()=>$e,(Fe,Ce)=>{Ce(Fe,{children:(k,J)=>{var V=_(),oe=d(V);n(oe,()=>he,(se,h)=>{h(se,{children:(U,z)=>{var I=_(),x=d(I);n(x,()=>w,(P,A)=>{A(P,{colspan:7,class:"h-48",children:(fe,b)=>{var y=qt(),B=ie(y);Ft(B,{size:"xlg"}),de(y),o(fe,y)},$$slots:{default:!0}})}),o(U,I)},$$slots:{default:!0}})}),o(k,V)},$$slots:{default:!0}})}),o(Y,ae)},ft=Y=>{var ae=_(),we=d(ae);{var Fe=k=>{var J=_(),V=d(J);n(V,()=>$e,(oe,se)=>{se(oe,{children:(h,U)=>{var z=_(),I=d(z);n(I,()=>he,(x,P)=>{P(x,{children:(A,fe)=>{var b=_(),y=d(b);n(y,()=>w,(B,g)=>{g(B,{colspan:7,class:"h-24 text-center text-red-500",children:(X,Re)=>{j();var q=N();O(()=>E(q,e(ce))),o(X,q)},$$slots:{default:!0}})}),o(A,b)},$$slots:{default:!0}})}),o(h,z)},$$slots:{default:!0}})}),o(k,J)},Ce=k=>{var J=_(),V=d(J);{var oe=h=>{var U=_(),z=d(U);n(z,()=>$e,(I,x)=>{x(I,{children:(P,A)=>{Ct(P,{colspan:7,message:"No AI trace data available for your search parameters"})},$$slots:{default:!0}})}),o(h,U)},se=h=>{var U=Kt(),z=d(U);n(z,()=>wt,(x,P)=>{P(x,{children:(A,fe)=>{var b=_(),y=d(b);n(y,()=>he,(B,g)=>{g(B,{children:(X,Re)=>{var q=Gt(),pe=d(q);G(pe,{label:"Trace Name",tooltip:"The AI agent or workflow name"});var _e=i(pe,2);G(_e,{label:"Calls",tooltip:"Total number of AI calls",sortField:"count",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[80px]"});var ge=i(_e,2);G(ge,{label:"Typical",tooltip:"Median duration (P50)",sortField:"p50_duration",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[100px]"});var Le=i(ge,2);G(Le,{label:"Slow",tooltip:"95th percentile duration",sortField:"p95_duration",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[100px]"});var ne=i(Le,2);G(ne,{label:"Total Tokens",tooltip:"Total tokens consumed",sortField:"total_tokens",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[110px]"});var le=i(ne,2);G(le,{label:"Total Cost",tooltip:"Total cost across all calls",sortField:"total_cost",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[100px]"});var ve=i(le,2);G(ve,{label:"Last Seen",tooltip:"When the last call occurred",sortField:"last_seen",get currentSortField(){return e(T)},get sortDirection(){return e(S)},onSort:c=>W(c),class:"w-[100px]"}),o(X,q)},$$slots:{default:!0}})}),o(A,b)},$$slots:{default:!0}})});var I=i(z,2);n(I,()=>$e,(x,P)=>{P(x,{children:(A,fe)=>{var b=_(),y=d(b);Pt(y,17,()=>e(Te),bt,(B,g)=>{var X=_(),Re=d(X);{let q=Qe(()=>At(jt(`/ai-traces/${encodeURIComponent(e(g).traceName)}`),"preset","from","to"));n(Re,()=>he,(pe,_e)=>{_e(pe,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return e(q)},children:(ge,Le)=>{var ne=Ht(),le=d(ne);n(le,()=>w,(m,f)=>{f(m,{class:"font-mono text-sm",children:(p,Z)=>{j();var s=N();O(()=>E(s,e(g).traceName)),o(p,s)},$$slots:{default:!0}})});var ve=i(le,2);n(ve,()=>w,(m,f)=>{f(m,{class:"tabular-nums",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>at(e(g).count)]),o(p,s)},$$slots:{default:!0}})});var c=i(ve,2);n(c,()=>w,(m,f)=>{f(m,{class:"font-mono text-sm tabular-nums",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>Je(e(g).p50Duration)]),o(p,s)},$$slots:{default:!0}})});var Ge=i(c,2);n(Ge,()=>w,(m,f)=>{f(m,{class:"font-mono text-sm tabular-nums",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>Je(e(g).p95Duration)]),o(p,s)},$$slots:{default:!0}})});var He=i(Ge,2);n(He,()=>w,(m,f)=>{f(m,{class:"font-mono text-sm tabular-nums",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>ot(e(g).totalTokens)]),o(p,s)},$$slots:{default:!0}})});var Ke=i(He,2);n(Ke,()=>w,(m,f)=>{f(m,{class:"font-mono text-sm tabular-nums",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>rt(e(g).totalCost)]),o(p,s)},$$slots:{default:!0}})});var pt=i(Ke,2);n(pt,()=>w,(m,f)=>{f(m,{class:"text-muted-foreground text-sm",children:(p,Z)=>{j();var s=N();O($=>E(s,$),[()=>new Date(e(g).lastSeen).toLocaleDateString()]),o(p,s)},$$slots:{default:!0}})}),o(ge,ne)},$$slots:{default:!0}})})}o(B,X)}),o(A,b)},$$slots:{default:!0}})}),o(h,U)};ke(V,h=>{e(Te).length===0?h(oe):h(se,!1)},!0)}o(k,J)};ke(we,k=>{e(ce)?k(Fe):k(Ce,!1)},!0)}o(Y,ae)};ke(ct,Y=>{e(re)?Y(mt):Y(ft,!1)})}o(v,qe)},$$slots:{default:!0}})}),de(De);var ut=i(De,2);Rt(ut,{get currentPage(){return e(F)},get totalPages(){return e(xe)},get pageSize(){return e(Se)},get totalItems(){return e(Ue)},onPageChange:st,onPageSizeChange:nt,get loading(){return e(re)},itemLabel:"trace"}),de(be),o(Xe,be),xt()}export{gr as component,_r as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/4.H2hD8gEo.js.map b/backend/static/frontend/_app/immutable/nodes/4.ngE2ZybA.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/4.H2hD8gEo.js.map
rename to backend/static/frontend/_app/immutable/nodes/4.ngE2ZybA.js.map
index fc0c670e..9fd009ab 100644
--- a/backend/static/frontend/_app/immutable/nodes/4.H2hD8gEo.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/4.ngE2ZybA.js.map
@@ -1 +1 @@
-{"version":3,"file":"4.H2hD8gEo.js","sources":["../../../../../../src/routes/ai-traces/+page.ts","../../../../../../src/routes/ai-traces/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n import { onMount, onDestroy } from 'svelte';\n import { api } from '$lib/api';\n import { formatDuration, toUTCISO, calendarDateTimeToLuxon } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import * as Table from \"$lib/components/ui/table\";\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { PaginationFooter } from \"$lib/components/ui/pagination-footer\";\n import { TimeRangePicker } from \"$lib/components/ui/time-range-picker\";\n import { SearchBar } from \"$lib/components/ui/search-bar\";\n import { browser } from '$app/environment';\n import { CalendarDate } from \"@internationalized/date\";\n import { projectsState } from '$lib/state/projects.svelte';\n import { createRowClickHandler } from '$lib/utils/navigation';\n import { resolve } from '$app/paths';\n import PageHeader from '$lib/components/issues/page-header.svelte';\n import {\n presetMinutes,\n getTimeRangeFromPreset,\n dateToCalendarDate,\n dateToTimeString,\n parseTimeRangeFromUrl,\n getResolvedTimeRange,\n updateUrl\n } from '$lib/utils/url-params';\n import {\n getSortState,\n setSortState,\n handleSortClick,\n type SortDirection\n } from '$lib/utils/sort-storage';\n\n const timezone = $derived(getTimezone());\n\n type AiTraceStats = {\n traceName: string;\n count: number;\n p50Duration: number;\n p95Duration: number;\n avgDuration: number;\n totalTokens: number;\n totalCost: number;\n avgInputTokens: number;\n avgOutputTokens: number;\n lastSeen: string;\n };\n\n type SortField = 'count' | 'p50_duration' | 'p95_duration' | 'total_tokens' | 'total_cost' | 'last_seen';\n\n let traces = $state<AiTraceStats[]>([]);\n let loading = $state(true);\n let error = $state('');\n\n // Pagination State\n let page = $state(1);\n let pageSize = $state(50);\n let total = $state(0);\n let totalPages = $state(0);\n\n // Parse URL params including search\n function parseAiTracesUrlParams() {\n if (!browser) return { preset: '24h', from: null, to: null, search: '' };\n const params = new URLSearchParams(window.location.search);\n const timeParams = parseTimeRangeFromUrl(timezone, '24h');\n return {\n ...timeParams,\n search: params.get('search') || ''\n };\n }\n\n // Initialize from URL\n const initialUrlParams = parseAiTracesUrlParams();\n const initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n // Search state\n let searchQuery = $state(initialUrlParams.search);\n\n // Date Range State\n let selectedPreset = $state<string | null>(initialUrlParams.preset);\n let fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n let toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n let fromTime = $state(dateToTimeString(initialRange.from, timezone));\n let toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n // Update URL with current time range and search\n function updateTimeRangeUrl(pushToHistory = true) {\n const params: Record<string, string | null | undefined> = {};\n if (selectedPreset) {\n params.preset = selectedPreset;\n } else {\n params.from = getFromDateTimeUTC();\n params.to = getToDateTimeUTC();\n }\n if (searchQuery.trim()) {\n params.search = searchQuery.trim();\n }\n updateUrl(params, { pushToHistory });\n }\n\n // Handle browser back/forward navigation\n function handlePopState() {\n const urlParams = parseAiTracesUrlParams();\n const range = getResolvedTimeRange(urlParams, timezone);\n\n selectedPreset = urlParams.preset;\n fromDate = dateToCalendarDate(range.from, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n toTime = dateToTimeString(range.to, timezone);\n searchQuery = urlParams.search;\n\n page = 1;\n loadData(false);\n }\n\n // Sorting - persisted to localStorage\n const SORT_STORAGE_KEY = 'ai-traces';\n const initialSort = getSortState(SORT_STORAGE_KEY, { field: 'total_cost', direction: 'desc' });\n let orderBy = $state<SortField>(initialSort.field as SortField);\n let sortDirection = $state<SortDirection>(initialSort.direction);\n\n // Combine date and time into UTC ISO datetime string\n function getFromDateTimeUTC(): string {\n const [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute }, timezone);\n return toUTCISO(dt);\n }\n\n function getToDateTimeUTC(): string {\n const [hour, minute] = (toTime || '23:59').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute }, timezone).endOf('minute');\n return toUTCISO(dt);\n }\n\n function handleTimeRangeChange(from: { date: CalendarDate; time: string }, to: { date: CalendarDate; time: string }, preset: string | null) {\n fromDate = from.date;\n fromTime = from.time;\n toDate = to.date;\n toTime = to.time;\n selectedPreset = preset;\n page = 1;\n loadData(false);\n }\n\n function formatCost(cost: number): string {\n if (cost === 0) return '$0';\n if (cost < 0.001) return `$${cost.toFixed(6)}`;\n if (cost < 0.01) return `$${cost.toFixed(4)}`;\n if (cost < 1) return `$${cost.toFixed(3)}`;\n return `$${cost.toFixed(2)}`;\n }\n\n function formatCount(count: number): string {\n if (count >= 1_000_000) return `${(count / 1_000_000).toFixed(1)}m`;\n if (count >= 1_000) return `${(count / 1_000).toFixed(1)}k`;\n return count.toLocaleString();\n }\n\n function formatTokens(tokens: number): string {\n if (tokens >= 1_000_000) return `${(tokens / 1_000_000).toFixed(1)}M`;\n if (tokens >= 1_000) return `${(tokens / 1_000).toFixed(1)}k`;\n return tokens.toLocaleString();\n }\n\n async function loadData(pushToHistory = true) {\n loading = true;\n error = '';\n\n if (selectedPreset) {\n const range = getTimeRangeFromPreset(selectedPreset, timezone);\n fromDate = dateToCalendarDate(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toTime = dateToTimeString(range.to, timezone);\n }\n\n // Update URL\n updateTimeRangeUrl(pushToHistory);\n\n try {\n const requestBody = {\n fromDate: getFromDateTimeUTC(),\n toDate: getToDateTimeUTC(),\n orderBy: orderBy,\n sortDirection: sortDirection,\n pagination: {\n page: page,\n pageSize: pageSize\n },\n search: searchQuery.trim()\n };\n\n const response = await api.post('/ai-traces/grouped', requestBody, { projectId: projectsState.currentProjectId ?? undefined });\n\n traces = response.data || [];\n total = response.pagination.total;\n totalPages = response.pagination.totalPages;\n } catch (e: any) {\n console.error(e);\n error = e.message || 'Failed to load data';\n } finally {\n loading = false;\n }\n }\n\n function handlePageChange(newPage: number) {\n if (newPage >= 1 && newPage <= totalPages) {\n page = newPage;\n loadData(false);\n }\n }\n\n function handlePageSizeChange(newPageSize: number) {\n pageSize = newPageSize;\n page = 1;\n loadData(false);\n }\n\n function handleSort(field: SortField) {\n const newSort = handleSortClick(field, orderBy, sortDirection);\n orderBy = newSort.field as SortField;\n sortDirection = newSort.direction;\n setSortState(SORT_STORAGE_KEY, newSort);\n page = 1;\n loadData(false);\n }\n\n function handleSearch() {\n page = 1;\n loadData(true);\n }\n\n onMount(() => {\n // Add popstate listener for back/forward navigation\n window.addEventListener('popstate', handlePopState);\n\n // Initial load with replaceState (don't push to history)\n loadData(false);\n });\n\n onDestroy(() => {\n if (typeof window !== 'undefined') {\n window.removeEventListener('popstate', handlePopState);\n }\n });\n</script>\n\n<div class=\"space-y-4\">\n <!-- Header with Title and Time Range Filter -->\n <div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n <PageHeader title=\"AI Traces\" />\n <div class=\"flex flex-col\">\n <TimeRangePicker\n bind:fromDate\n bind:toDate\n bind:fromTime\n bind:toTime\n bind:preset={selectedPreset}\n onApply={handleTimeRangeChange}\n />\n </div>\n </div>\n\n <!-- Search -->\n <SearchBar\n placeholder=\"Search traces...\"\n bind:value={searchQuery}\n onSearch={handleSearch}\n disabled={loading}\n />\n\n <!-- AI Traces Table -->\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if loading}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={7} class=\"h-48\">\n <div class=\"flex justify-center items-center h-full\">\n <LoadingCircle size=\"xlg\" />\n </div>\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if error}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={7} class=\"h-24 text-center text-red-500\">\n {error}\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if traces.length === 0}\n <Table.Body>\n <TableEmptyState colspan={7} message=\"No AI trace data available for your search parameters\" />\n </Table.Body>\n {:else}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader\n label=\"Trace Name\"\n tooltip=\"The AI agent or workflow name\"\n />\n <TracewayTableHeader\n label=\"Calls\"\n tooltip=\"Total number of AI calls\"\n sortField=\"count\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[80px]\"\n />\n <TracewayTableHeader\n label=\"Typical\"\n tooltip=\"Median duration (P50)\"\n sortField=\"p50_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Slow\"\n tooltip=\"95th percentile duration\"\n sortField=\"p95_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Total Tokens\"\n tooltip=\"Total tokens consumed\"\n sortField=\"total_tokens\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[110px]\"\n />\n <TracewayTableHeader\n label=\"Total Cost\"\n tooltip=\"Total cost across all calls\"\n sortField=\"total_cost\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Last Seen\"\n tooltip=\"When the last call occurred\"\n sortField=\"last_seen\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each traces as trace}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50\"\n onclick={createRowClickHandler(resolve(`/ai-traces/${encodeURIComponent(trace.traceName)}`), 'preset', 'from', 'to')}\n >\n <Table.Cell class=\"font-mono text-sm\">\n {trace.traceName}\n </Table.Cell>\n <Table.Cell class=\"tabular-nums\">\n {formatCount(trace.count)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(trace.p50Duration)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(trace.p95Duration)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatTokens(trace.totalTokens)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatCost(trace.totalCost)}\n </Table.Cell>\n <Table.Cell class=\"text-muted-foreground text-sm\">\n {new Date(trace.lastSeen).toLocaleDateString()}\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n {/if}\n </Table.Root>\n </div>\n\n <!-- Pagination Footer -->\n <PaginationFooter\n currentPage={page}\n {totalPages}\n {pageSize}\n totalItems={total}\n onPageChange={handlePageChange}\n onPageSizeChange={handlePageSizeChange}\n {loading}\n itemLabel=\"trace\"\n />\n</div>\n"],"names":["load","authState","redirect","timezone","getTimezone","traces","$.state","$.proxy","loading","error","page","pageSize","total","totalPages","parseAiTracesUrlParams","params","parseTimeRangeFromUrl","$.get","initialUrlParams","initialRange","getResolvedTimeRange","searchQuery","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","getFromDateTimeUTC","getToDateTimeUTC","updateUrl","handlePopState","urlParams","range","$.set","loadData","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","formatCost","cost","formatCount","count","formatTokens","tokens","getTimeRangeFromPreset","requestBody","response","api","projectsState","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","handleSearch","onMount","onDestroy","div","root","div_1","PageHeader","node","div_2","$.sibling","TimeRangePicker","node_1","$$value","SearchBar","node_2","div_3","Table_Root","$$anchor","Table_Body","Table_Row","Table_Cell","div_4","root_5","LoadingCircle","node_8","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","TracewayTableHeader","node_17","node_18","node_19","node_20","node_21","node_22","node_23","Table_Body_3","$.each","node_25","trace","$0","$.derived","createRowClickHandler","resolve","Table_Row_3","Table_Cell_2","$.template_effect","$.set_text","text_1","Table_Cell_3","Table_Cell_4","formatDuration","Table_Cell_5","Table_Cell_6","Table_Cell_7","Table_Cell_8","text_7","$$render","consequent_2","alternate","consequent_1","alternate_1","consequent","alternate_2","PaginationFooter","node_34"],"mappings":"qmCAIO,MAAMA,GAAiB,IAAM,CACnC,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,CAE9B,6fCRA,WAkCU,MAAAC,KAAoBC,EAAW,EAiBjC,IAAAC,GAASC,EAAMC,EAAA,CAAA,CAAA,CAAA,EACfC,GAAUF,EAAO,EAAI,EACrBG,GAAQH,EAAO,EAAE,EAGjBI,EAAOJ,EAAO,CAAC,EACfK,GAAWL,EAAO,EAAE,EACpBM,GAAQN,EAAO,CAAC,EAChBO,GAAaP,EAAO,CAAC,EAGhB,SAAAQ,IAAyB,CAExB,MAAAC,MAAa,gBAAgB,OAAO,SAAS,MAAM,YACtCC,GAAqBC,EAACd,CAAQ,EAAE,KAAK,EAGpD,OAAQY,EAAO,IAAI,QAAQ,GAAK,EAAC,CAEzC,CAGM,MAAAG,GAAmBJ,GAAsB,EACzCK,GAAeC,GAAqBF,KAAkBf,CAAQ,CAAA,EAGhE,IAAAkB,EAAcf,EAAMC,EAACW,GAAiB,MAAM,CAAA,EAG5CI,EAAiBhB,EAAMC,EAAgBW,GAAiB,MAAM,CAAA,EAC9DK,EAAWjB,EAAMC,EAAeiB,GAAmBL,GAAa,KAAIF,EAAEd,CAAQ,CAAA,CAAA,CAAA,EAC9EsB,EAASnB,EAAMC,E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e,mBAAkBxG,EAACoG,CAAK,EAAC,SAAS,CAAA,EAAA,EAAM,SAAU,OAAQ,IAAI,CAAA,wBAFtHK,GAAM/B,GAAA,gIAIFgC,EAAUhC,EAAA,0DACNiC,EAAA,IAAAC,EAAAC,EAAA7G,EAAAoG,CAAK,EAAC,SAAS,CAAA,qEAEnBU,EAAUpC,EAAA,sEACNpC,GAAWtC,EAACoG,CAAK,EAAC,KAAK,CAAA,CAAA,mEAE3BW,EAAUrC,EAAA,wFACNsC,GAAchH,EAACoG,CAAK,EAAC,WAAW,CAAA,CAAA,oEAEpCa,EAAUvC,EAAA,wFACNsC,GAAchH,EAACoG,CAAK,EAAC,WAAW,CAAA,CAAA,qEAEpCc,EAAUxC,EAAA,wFACNlC,GAAYxC,EAACoG,CAAK,EAAC,WAAW,CAAA,CAAA,qEAElCe,EAAUzC,EAAA,wFACNtC,GAAUpC,EAACoG,CAAK,EAAC,SAAS,CAAA,CAAA,qEAE9BgB,EAAU1C,EAAA,sEACFiC,EAAAN,GAAAO,EAAAS,EAAAhB,CAAA,EAAA,CAAA,IAAA,IAAA,KAAIrG,EAACoG,CAAK,EAAC,QAAQ,EAAE,mBAAkB,CAAA,CAAA,mIA5FlDhH,EAAM,EAAC,SAAW,EAACkI,EAAAC,EAAA,EAAAD,EAAAE,GAAA,EAAA,2BARnBhI,EAAK,EAAA8H,EAAAG,EAAA,EAAAH,EAAAI,GAAA,EAAA,4BAVVnI,EAAO,EAAA+H,EAAAK,EAAA,EAAAL,EAAAM,GAAA,EAAA,yCAFnBpD,EAAG,WAAHA,GAAG,CAAA,EA0HHqD,GAAAC,GAAA,4BACgBrI,CAAI,6BAChBG,EAAU,2BACVF,EAAQ,6BACGC,EAAK,gBACHqD,oBACIE,0BACjB3D,EAAO,0BA1JfqE,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"4.ngE2ZybA.js","sources":["../../../../../../src/routes/ai-traces/+page.ts","../../../../../../src/routes/ai-traces/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n import { onMount, onDestroy } from 'svelte';\n import { api } from '$lib/api';\n import { formatDuration, toUTCISO, calendarDateTimeToLuxon } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import * as Table from \"$lib/components/ui/table\";\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { PaginationFooter } from \"$lib/components/ui/pagination-footer\";\n import { TimeRangePicker } from \"$lib/components/ui/time-range-picker\";\n import { SearchBar } from \"$lib/components/ui/search-bar\";\n import { browser } from '$app/environment';\n import { CalendarDate } from \"@internationalized/date\";\n import { projectsState } from '$lib/state/projects.svelte';\n import { createRowClickHandler } from '$lib/utils/navigation';\n import { resolve } from '$app/paths';\n import PageHeader from '$lib/components/issues/page-header.svelte';\n import {\n presetMinutes,\n getTimeRangeFromPreset,\n dateToCalendarDate,\n dateToTimeString,\n parseTimeRangeFromUrl,\n getResolvedTimeRange,\n updateUrl\n } from '$lib/utils/url-params';\n import {\n getSortState,\n setSortState,\n handleSortClick,\n type SortDirection\n } from '$lib/utils/sort-storage';\n\n const timezone = $derived(getTimezone());\n\n type AiTraceStats = {\n traceName: string;\n count: number;\n p50Duration: number;\n p95Duration: number;\n avgDuration: number;\n totalTokens: number;\n totalCost: number;\n avgInputTokens: number;\n avgOutputTokens: number;\n lastSeen: string;\n };\n\n type SortField = 'count' | 'p50_duration' | 'p95_duration' | 'total_tokens' | 'total_cost' | 'last_seen';\n\n let traces = $state<AiTraceStats[]>([]);\n let loading = $state(true);\n let error = $state('');\n\n // Pagination State\n let page = $state(1);\n let pageSize = $state(50);\n let total = $state(0);\n let totalPages = $state(0);\n\n // Parse URL params including search\n function parseAiTracesUrlParams() {\n if (!browser) return { preset: '24h', from: null, to: null, search: '' };\n const params = new URLSearchParams(window.location.search);\n const timeParams = parseTimeRangeFromUrl(timezone, '24h');\n return {\n ...timeParams,\n search: params.get('search') || ''\n };\n }\n\n // Initialize from URL\n const initialUrlParams = parseAiTracesUrlParams();\n const initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n // Search state\n let searchQuery = $state(initialUrlParams.search);\n\n // Date Range State\n let selectedPreset = $state<string | null>(initialUrlParams.preset);\n let fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n let toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n let fromTime = $state(dateToTimeString(initialRange.from, timezone));\n let toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n // Update URL with current time range and search\n function updateTimeRangeUrl(pushToHistory = true) {\n const params: Record<string, string | null | undefined> = {};\n if (selectedPreset) {\n params.preset = selectedPreset;\n } else {\n params.from = getFromDateTimeUTC();\n params.to = getToDateTimeUTC();\n }\n if (searchQuery.trim()) {\n params.search = searchQuery.trim();\n }\n updateUrl(params, { pushToHistory });\n }\n\n // Handle browser back/forward navigation\n function handlePopState() {\n const urlParams = parseAiTracesUrlParams();\n const range = getResolvedTimeRange(urlParams, timezone);\n\n selectedPreset = urlParams.preset;\n fromDate = dateToCalendarDate(range.from, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n toTime = dateToTimeString(range.to, timezone);\n searchQuery = urlParams.search;\n\n page = 1;\n loadData(false);\n }\n\n // Sorting - persisted to localStorage\n const SORT_STORAGE_KEY = 'ai-traces';\n const initialSort = getSortState(SORT_STORAGE_KEY, { field: 'total_cost', direction: 'desc' });\n let orderBy = $state<SortField>(initialSort.field as SortField);\n let sortDirection = $state<SortDirection>(initialSort.direction);\n\n // Combine date and time into UTC ISO datetime string\n function getFromDateTimeUTC(): string {\n const [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute }, timezone);\n return toUTCISO(dt);\n }\n\n function getToDateTimeUTC(): string {\n const [hour, minute] = (toTime || '23:59').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute }, timezone).endOf('minute');\n return toUTCISO(dt);\n }\n\n function handleTimeRangeChange(from: { date: CalendarDate; time: string }, to: { date: CalendarDate; time: string }, preset: string | null) {\n fromDate = from.date;\n fromTime = from.time;\n toDate = to.date;\n toTime = to.time;\n selectedPreset = preset;\n page = 1;\n loadData(false);\n }\n\n function formatCost(cost: number): string {\n if (cost === 0) return '$0';\n if (cost < 0.001) return `$${cost.toFixed(6)}`;\n if (cost < 0.01) return `$${cost.toFixed(4)}`;\n if (cost < 1) return `$${cost.toFixed(3)}`;\n return `$${cost.toFixed(2)}`;\n }\n\n function formatCount(count: number): string {\n if (count >= 1_000_000) return `${(count / 1_000_000).toFixed(1)}m`;\n if (count >= 1_000) return `${(count / 1_000).toFixed(1)}k`;\n return count.toLocaleString();\n }\n\n function formatTokens(tokens: number): string {\n if (tokens >= 1_000_000) return `${(tokens / 1_000_000).toFixed(1)}M`;\n if (tokens >= 1_000) return `${(tokens / 1_000).toFixed(1)}k`;\n return tokens.toLocaleString();\n }\n\n async function loadData(pushToHistory = true) {\n loading = true;\n error = '';\n\n if (selectedPreset) {\n const range = getTimeRangeFromPreset(selectedPreset, timezone);\n fromDate = dateToCalendarDate(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toTime = dateToTimeString(range.to, timezone);\n }\n\n // Update URL\n updateTimeRangeUrl(pushToHistory);\n\n try {\n const requestBody = {\n fromDate: getFromDateTimeUTC(),\n toDate: getToDateTimeUTC(),\n orderBy: orderBy,\n sortDirection: sortDirection,\n pagination: {\n page: page,\n pageSize: pageSize\n },\n search: searchQuery.trim()\n };\n\n const response = await api.post('/ai-traces/grouped', requestBody, { projectId: projectsState.currentProjectId ?? undefined });\n\n traces = response.data || [];\n total = response.pagination.total;\n totalPages = response.pagination.totalPages;\n } catch (e: any) {\n console.error(e);\n error = e.message || 'Failed to load data';\n } finally {\n loading = false;\n }\n }\n\n function handlePageChange(newPage: number) {\n if (newPage >= 1 && newPage <= totalPages) {\n page = newPage;\n loadData(false);\n }\n }\n\n function handlePageSizeChange(newPageSize: number) {\n pageSize = newPageSize;\n page = 1;\n loadData(false);\n }\n\n function handleSort(field: SortField) {\n const newSort = handleSortClick(field, orderBy, sortDirection);\n orderBy = newSort.field as SortField;\n sortDirection = newSort.direction;\n setSortState(SORT_STORAGE_KEY, newSort);\n page = 1;\n loadData(false);\n }\n\n function handleSearch() {\n page = 1;\n loadData(true);\n }\n\n onMount(() => {\n // Add popstate listener for back/forward navigation\n window.addEventListener('popstate', handlePopState);\n\n // Initial load with replaceState (don't push to history)\n loadData(false);\n });\n\n onDestroy(() => {\n if (typeof window !== 'undefined') {\n window.removeEventListener('popstate', handlePopState);\n }\n });\n</script>\n\n<div class=\"space-y-4\">\n <!-- Header with Title and Time Range Filter -->\n <div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n <PageHeader title=\"AI Traces\" />\n <div class=\"flex flex-col\">\n <TimeRangePicker\n bind:fromDate\n bind:toDate\n bind:fromTime\n bind:toTime\n bind:preset={selectedPreset}\n onApply={handleTimeRangeChange}\n />\n </div>\n </div>\n\n <!-- Search -->\n <SearchBar\n placeholder=\"Search traces...\"\n bind:value={searchQuery}\n onSearch={handleSearch}\n disabled={loading}\n />\n\n <!-- AI Traces Table -->\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if loading}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={7} class=\"h-48\">\n <div class=\"flex justify-center items-center h-full\">\n <LoadingCircle size=\"xlg\" />\n </div>\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if error}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={7} class=\"h-24 text-center text-red-500\">\n {error}\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if traces.length === 0}\n <Table.Body>\n <TableEmptyState colspan={7} message=\"No AI trace data available for your search parameters\" />\n </Table.Body>\n {:else}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader\n label=\"Trace Name\"\n tooltip=\"The AI agent or workflow name\"\n />\n <TracewayTableHeader\n label=\"Calls\"\n tooltip=\"Total number of AI calls\"\n sortField=\"count\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[80px]\"\n />\n <TracewayTableHeader\n label=\"Typical\"\n tooltip=\"Median duration (P50)\"\n sortField=\"p50_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Slow\"\n tooltip=\"95th percentile duration\"\n sortField=\"p95_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Total Tokens\"\n tooltip=\"Total tokens consumed\"\n sortField=\"total_tokens\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[110px]\"\n />\n <TracewayTableHeader\n label=\"Total Cost\"\n tooltip=\"Total cost across all calls\"\n sortField=\"total_cost\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Last Seen\"\n tooltip=\"When the last call occurred\"\n sortField=\"last_seen\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each traces as trace}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50\"\n onclick={createRowClickHandler(resolve(`/ai-traces/${encodeURIComponent(trace.traceName)}`), 'preset', 'from', 'to')}\n >\n <Table.Cell class=\"font-mono text-sm\">\n {trace.traceName}\n </Table.Cell>\n <Table.Cell class=\"tabular-nums\">\n {formatCount(trace.count)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(trace.p50Duration)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(trace.p95Duration)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatTokens(trace.totalTokens)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatCost(trace.totalCost)}\n </Table.Cell>\n <Table.Cell class=\"text-muted-foreground text-sm\">\n {new Date(trace.lastSeen).toLocaleDateString()}\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n {/if}\n </Table.Root>\n </div>\n\n <!-- Pagination Footer -->\n <PaginationFooter\n currentPage={page}\n {totalPages}\n {pageSize}\n totalItems={total}\n onPageChange={handlePageChange}\n onPageSizeChange={handlePageSizeChange}\n {loading}\n itemLabel=\"trace\"\n />\n</div>\n"],"names":["load","authState","redirect","timezone","getTimezone","traces","$.state","$.proxy","loading","error","page","pageSize","total","totalPages","parseAiTracesUrlParams","params","parseTimeRangeFromUrl","$.get","initialUrlParams","initialRange","getResolvedTimeRange","searchQuery","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","getFromDateTimeUTC","getToDateTimeUTC","updateUrl","handlePopState","urlParams","range","$.set","loadData","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","formatCost","cost","formatCount","count","formatTokens","tokens","getTimeRangeFromPreset","requestBody","response","api","projectsState","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","handleSearch","onMount","onDestroy","div","root","div_1","PageHeader","node","div_2","$.sibling","TimeRangePicker","node_1","$$value","SearchBar","node_2","div_3","Table_Root","$$anchor","Table_Body","Table_Row","Table_Cell","div_4","root_5","LoadingCircle","node_8","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","TracewayTableHeader","node_17","node_18","node_19","node_20","node_21","node_22","node_23","Table_Body_3","$.each","node_25","trace","$0","$.derived","createRowClickHandler","resolve","Table_Row_3","Table_Cell_2","$.template_effect","$.set_text","text_1","Table_Cell_3","Table_Cell_4","formatDuration","Table_Cell_5","Table_Cell_6","Table_Cell_7","Table_Cell_8","text_7","$$render","consequent_2","alternate","consequent_1","alternate_1","consequent","alternate_2","PaginationFooter","node_34"],"mappings":"qmCAIO,MAAMA,GAAiB,IAAM,CACnC,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,CAE9B,6fCRA,WAkCU,MAAAC,KAAoBC,EAAW,EAiBjC,IAAAC,GAASC,EAAMC,EAAA,CAAA,CAAA,CAAA,EACfC,GAAUF,EAAO,EAAI,EACrBG,GAAQH,EAAO,EAAE,EAGjBI,EAAOJ,EAAO,CAAC,EACfK,GAAWL,EAAO,EAAE,EACpBM,GAAQN,EAAO,CAAC,EAChBO,GAAaP,EAAO,CAAC,EAGhB,SAAAQ,IAAyB,CAExB,MAAAC,MAAa,gBAAgB,OAAO,SAAS,MAAM,YACtCC,GAAqBC,EAACd,CAAQ,EAAE,KAAK,EAGpD,OAAQY,EAAO,IAAI,QAAQ,GAAK,EAAC,CAEzC,CAGM,MAAAG,GAAmBJ,GAAsB,EACzCK,GAAeC,GAAqBF,KAAkBf,CAAQ,CAAA,EAGhE,IAAAkB,EAAcf,EAAMC,EAACW,GAAiB,MAAM,CAAA,EAG5CI,EAAiBhB,EAAMC,EAAgBW,GAAiB,MAAM,CAAA,EAC9DK,EAAWjB,EAAMC,EAAeiB,GAAmBL,GAAa,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/immutable/nodes/5.CGdMiy4Y.js b/backend/static/frontend/_app/immutable/nodes/5.DI8RCFuZ.js
similarity index 94%
rename from backend/static/frontend/_app/immutable/nodes/5.CGdMiy4Y.js
rename to backend/static/frontend/_app/immutable/nodes/5.DI8RCFuZ.js
index 74cd116b..3d22ac42 100644
--- a/backend/static/frontend/_app/immutable/nodes/5.CGdMiy4Y.js
+++ b/backend/static/frontend/_app/immutable/nodes/5.DI8RCFuZ.js
@@ -1 +1 @@
-import{r as Se}from"../chunks/BJZ1igWb.js";import{b as De,a as ke,p as Ce,c as At}from"../chunks/D6S6XYVy.js";import{i as K}from"../chunks/DMODTt3n.js";import{o as Ie}from"../chunks/Dwk6gGSK.js";import{p as Fe,h as c,v as w,g as t,u as A,f as L,b as o,a as Re,e as u,r as m,i as r,d as k,c as f,s,n as T,k as z,l as b,t as Y}from"../chunks/B2WdN-7r.js";import{e as we,i as Ae}from"../chunks/CMyj8Fzw.js";import{c as v}from"../chunks/BAcG0-U_.js";import{p as Zt,g as ze,c as te,t as ee,d as zt,f as Ne,b as Le}from"../chunks/DJdWGDax.js";import{b as Ue,T as Nt,a as N,c as Be}from"../chunks/CeOjHHJH.js";import{T as je}from"../chunks/CEJkX7WU.js";import{L as re}from"../chunks/D0pIT200.js";import{d as ae,a as oe,c as Oe,b as se,u as Me,T as Ee}from"../chunks/xqPrLpfy.js";import{T as Q}from"../chunks/BQmrPeqT.js";import{T as He}from"../chunks/xk30YnJ1.js";import{E as ne}from"../chunks/B-KBEnoV.js";import{c as Je}from"../chunks/CyOblkUv.js";import{P as Ve}from"../chunks/C8IsQj6C.js";import{P as qe}from"../chunks/BGqyWGxT.js";import{r as Lt}from"../chunks/D_mqy6BL.js";import{g as Ge,h as Ke,s as Ye}from"../chunks/X-i49s3k.js";const Qe=!1,We=({params:yt,url:i})=>{if(!De.isAuthenticated)throw Se(302,"/login");return{traceName:yt.traceName,preset:i.searchParams.get("preset")||null,from:i.searchParams.get("from")||null,to:i.searchParams.get("to")||null}},kr=Object.freeze(Object.defineProperty({__proto__:null,load:We,prerender:Qe},Symbol.toStringTag,{value:"Module"}));var Xe=L('<div class="grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5"><div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average duration</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Median duration</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">95th percentile</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Total cost</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Total tokens</p></div></div>'),Ze=L('<div class="flex items-center justify-center py-8"><!></div>'),tr=L("<!> <!> <!> <!> <!> <!> <!>",1),er=L('<div class="flex items-center justify-center"><!></div>'),rr=L("<!> <!> <!> <!> <!> <!> <!>",1),ar=L("<!> <!>",1),or=L('<div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex flex-col"><!></div></div> <!> <div class="overflow-hidden rounded-md border"><!></div> <!>',1),sr=L('<div class="space-y-6"><!></div>');function Cr(yt,i){Fe(i,!0);const $=A(ze);let _t=c(w([])),U=c(null),B=c(!0),xt=c(""),Pt=c(!1),St=c(0),W=c(1),Dt=c(50),Ut=c(0),kt=c(0);function le(){if(i.data.preset&&Oe[i.data.preset]){const a=se(i.data.preset,t($));return{preset:i.data.preset,from:a.from,to:a.to}}if(i.data.from&&i.data.to){const a=Zt(i.data.from,t($)),d=Zt(i.data.to,t($));if(a.isValid&&d.isValid)return{preset:null,from:a.toJSDate(),to:d.toJSDate()}}const e=se("24h",t($));return{preset:"24h",from:e.from,to:e.to}}const ct=le();let ut=c(w(ct.preset)),X=c(w(ae(ct.from,t($)))),Z=c(w(ae(ct.to,t($)))),ht=c(w(oe(ct.from,t($)))),Tt=c(w(oe(ct.to,t($))));function ie(e=!0){Me(t(ut)?{preset:t(ut)}:{from:Ot(),to:Mt()},{pushToHistory:e})}const Bt="ai_trace_detail",jt=Ge(Bt,{field:"recorded_at",direction:"desc"});let tt=c(w(jt.field)),et=c(w(jt.direction));function Ot(){const[e,a]=(t(ht)||"00:00").split(":").map(Number),d=te({year:t(X).year,month:t(X).month,day:t(X).day,hour:e,minute:a},t($));return ee(d)}function Mt(){const[e,a]=(t(Tt)||"23:59").split(":").map(Number),d=te({year:t(Z).year,month:t(Z).month,day:t(Z).day,hour:e,minute:a},t($)).endOf("minute");return ee(d)}function de(e,a,d){r(X,e.date,!0),r(ht,e.time,!0),r(Z,a.date,!0),r(Tt,a.time,!0),r(ut,d,!0),r(W,1),j()}function Et(e){return e===0?"$0":e<.001?`$${e.toFixed(6)}`:e<.01?`$${e.toFixed(4)}`:e<1?`$${e.toFixed(3)}`:`$${e.toFixed(2)}`}function ce(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toLocaleString()}async function j(e=!0){r(B,!0),r(xt,""),r(Pt,!1),r(St,0),ie(e);try{const a={fromDate:Ot(),toDate:Mt(),orderBy:t(tt),sortDirection:t(et),pagination:{page:t(W),pageSize:t(Dt)}},d=await ke.post(`/ai-traces/trace?traceName=${encodeURIComponent(i.data.traceName)}`,a,{projectId:Ce.currentProjectId??void 0});r(_t,d.data||[],!0),r(U,d.stats||null,!0),r(Ut,d.pagination.total,!0),r(kt,d.pagination.totalPages,!0)}catch(a){console.error(a),r(St,a.status||0,!0),a.status===404?r(Pt,!0):r(xt,a.message||"Failed to load data",!0)}finally{r(B,!1)}}function ue(e){e>=1&&e<=t(kt)&&(r(W,e,!0),j(!1))}function me(e){r(Dt,e,!0),r(W,1),j(!1)}function Ct(e){const a=Ke(e,t(tt),t(et));r(tt,a.field,!0),r(et,a.direction,!0),Ye(Bt,a),r(W,1),j(!1)}Ie(()=>{j(!1)});var It=sr(),fe=u(It);{var ve=e=>{{let a=A(()=>At({fallbackPath:Lt("/ai-traces")})),d=A(()=>decodeURIComponent(i.data.traceName));ne(e,{status:404,title:"AI Trace Not Found",description:"The AI trace you're looking for doesn't exist or has no recorded calls.",get onBack(){return t(a)},backLabel:"Back to AI Traces",onRetry:()=>j(!1),get identifier(){return t(d)}})}},ge=e=>{var a=k(),d=f(a);{var pe=rt=>{{let bt=A(()=>(t(St)===400,400)),mt=A(()=>At({fallbackPath:Lt("/ai-traces")}));ne(rt,{get status(){return t(bt)},title:"Failed to Load AI Traces",get description(){return t(xt)},get onBack(){return t(mt)},backLabel:"Back to AI Traces",onRetry:()=>j(!1)})}},_e=rt=>{var bt=or(),mt=f(bt),Ht=u(mt);{let n=A(()=>decodeURIComponent(i.data.traceName)),P=A(()=>At({fallbackPath:Lt("/ai-traces")}));qe(Ht,{get title(){return t(n)},subtitle:"AI trace instances",get onBack(){return t(P)}})}var Jt=s(Ht,2),xe=u(Jt);Ee(xe,{onApply:de,get fromDate(){return t(X)},set fromDate(n){r(X,n,!0)},get toDate(){return t(Z)},set toDate(n){r(Z,n,!0)},get fromTime(){return t(ht)},set fromTime(n){r(ht,n,!0)},get toTime(){return t(Tt)},set toTime(n){r(Tt,n,!0)},get preset(){return t(ut)},set preset(n){r(ut,n,!0)}}),m(Jt),m(mt);var Vt=s(mt,2);{var he=n=>{var P=Xe(),O=u(P),ft=u(O),R=u(ft,!0);m(ft),T(2),m(O);var S=s(O,2),at=u(S),Rt=u(at,!0);m(at),T(2),m(S);var C=s(S,2),M=u(C),vt=u(M,!0);m(M),T(2),m(C);var ot=s(C,2),E=u(ot),gt=u(E,!0);m(E),T(2),m(ot);var pt=s(ot,2),H=u(pt),D=u(H,!0);m(H),T(2),m(pt),m(P),z((I,J,V,st,g)=>{b(R,I),b(Rt,J),b(vt,V),b(gt,st),b(D,g)},[()=>zt(t(U).avgDuration),()=>zt(t(U).medianDuration),()=>zt(t(U).p95Duration),()=>Et(t(U).totalCost),()=>ce(t(U).totalTokens)]),o(n,P)},Te=n=>{var P=k(),O=f(P);{var ft=R=>{var S=Ze(),at=u(S);re(at,{size:"lg"}),m(S),o(R,S)};K(O,R=>{t(B)&&R(ft)},!0)}o(n,P)};K(Vt,n=>{t(U)?n(he):n(Te,!1)})}var Ft=s(Vt,2),be=u(Ft);v(be,()=>Be,(n,P)=>{P(n,{children:(O,ft)=>{var R=ar(),S=f(R);{var at=C=>{var M=k(),vt=f(M);v(vt,()=>je,(ot,E)=>{E(ot,{children:(gt,pt)=>{var H=k(),D=f(H);v(D,()=>Nt,(I,J)=>{J(I,{children:(V,st)=>{var g=tr(),nt=f(g);Q(nt,{label:"Recorded At",sortField:"recorded_at",get currentSortField(){return t(tt)},get sortDirection(){return t(et)},onSort:y=>Ct(y),class:"w-[180px]"});var q=s(nt,2);Q(q,{label:"Duration",sortField:"duration",get currentSortField(){return t(tt)},get sortDirection(){return t(et)},onSort:y=>Ct(y),class:"w-[100px]"});var lt=s(q,2);Q(lt,{label:"Model",class:"w-[200px]"});var p=s(lt,2);Q(p,{label:"Tokens In",class:"w-[90px]"});var G=s(p,2);Q(G,{label:"Tokens Out",class:"w-[90px]"});var it=s(G,2);Q(it,{label:"Cost",sortField:"total_cost",get currentSortField(){return t(tt)},get sortDirection(){return t(et)},onSort:y=>Ct(y),class:"w-[90px]"});var $t=s(it,2);Q($t,{label:"Provider",class:"w-[100px]"}),o(V,g)},$$slots:{default:!0}})}),o(gt,H)},$$slots:{default:!0}})}),o(C,M)};K(S,C=>{(t(B)||t(_t).length>0)&&C(at)})}var Rt=s(S,2);v(Rt,()=>Ue,(C,M)=>{M(C,{children:(vt,ot)=>{var E=k(),gt=f(E);{var pt=D=>{var I=k(),J=f(I);v(J,()=>Nt,(V,st)=>{st(V,{children:(g,nt)=>{var q=k(),lt=f(q);v(lt,()=>N,(p,G)=>{G(p,{colspan:7,class:"h-48",children:(it,$t)=>{var y=er(),wt=u(y);re(wt,{size:"lg"}),m(y),o(it,y)},$$slots:{default:!0}})}),o(g,q)},$$slots:{default:!0}})}),o(D,I)},H=D=>{var I=k(),J=f(I);{var V=g=>{He(g,{colspan:7,message:"No AI traces found in this time range."})},st=g=>{var nt=k(),q=f(nt);we(q,17,()=>t(_t),Ae,(lt,p)=>{var G=k(),it=f(G);{let $t=A(()=>Je(`/ai-traces/${encodeURIComponent(decodeURIComponent(i.data.traceName))}/${t(p).id}`,"preset","from","to"));v(it,()=>Nt,(y,wt)=>{wt(y,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return t($t)},children:(ye,nr)=>{var qt=rr(),Gt=f(qt);v(Gt,()=>N,(_,x)=>{x(_,{class:"text-muted-foreground",children:(h,dt)=>{T();var l=Y();z(F=>b(l,F),[()=>Ne(t(p).recordedAt,{timezone:t($)})]),o(h,l)},$$slots:{default:!0}})});var Kt=s(Gt,2);v(Kt,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm",children:(h,dt)=>{T();var l=Y();z(F=>b(l,F),[()=>Le(t(p).duration)]),o(h,l)},$$slots:{default:!0}})});var Yt=s(Kt,2);v(Yt,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm",children:(h,dt)=>{T();var l=Y();z(()=>b(l,t(p).model||"-")),o(h,l)},$$slots:{default:!0}})});var Qt=s(Yt,2);v(Qt,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm tabular-nums",children:(h,dt)=>{T();var l=Y();z(F=>b(l,F),[()=>t(p).inputTokens.toLocaleString()]),o(h,l)},$$slots:{default:!0}})});var Wt=s(Qt,2);v(Wt,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm tabular-nums",children:(h,dt)=>{T();var l=Y();z(F=>b(l,F),[()=>t(p).outputTokens.toLocaleString()]),o(h,l)},$$slots:{default:!0}})});var Xt=s(Wt,2);v(Xt,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm tabular-nums",children:(h,dt)=>{T();var l=Y();z(F=>b(l,F),[()=>Et(t(p).totalCost)]),o(h,l)},$$slots:{default:!0}})});var Pe=s(Xt,2);v(Pe,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm text-muted-foreground",children:(h,dt)=>{T();var l=Y();z(()=>b(l,t(p).provider||"-")),o(h,l)},$$slots:{default:!0}})}),o(ye,qt)},$$slots:{default:!0}})})}o(lt,G)}),o(g,nt)};K(J,g=>{t(_t).length===0?g(V):g(st,!1)},!0)}o(D,I)};K(gt,D=>{t(B)?D(pt):D(H,!1)})}o(vt,E)},$$slots:{default:!0}})}),o(O,R)},$$slots:{default:!0}})}),m(Ft);var $e=s(Ft,2);Ve($e,{get currentPage(){return t(W)},get totalPages(){return t(kt)},get pageSize(){return t(Dt)},get totalItems(){return t(Ut)},onPageChange:ue,onPageSizeChange:me,get loading(){return t(B)},itemLabel:"trace"}),o(rt,bt)};K(d,rt=>{t(xt)&&!t(B)?rt(pe):rt(_e,!1)},!0)}o(e,a)};K(fe,e=>{t(Pt)?e(ve):e(ge,!1)})}m(It),o(yt,It),Re()}export{Cr as component,kr as universal};
+import{r as Se}from"../chunks/B4VmGkxP.js";import{b as De,a as ke,p as Ce,c as At}from"../chunks/qCQ2nSvO.js";import{i as K}from"../chunks/DMODTt3n.js";import{o as Ie}from"../chunks/Dwk6gGSK.js";import{p as Fe,h as c,v as w,g as t,u as A,f as L,b as o,a as Re,e as u,r as m,i as r,d as k,c as f,s,n as T,k as z,l as b,t as Y}from"../chunks/B2WdN-7r.js";import{e as we,i as Ae}from"../chunks/CMyj8Fzw.js";import{c as v}from"../chunks/BAcG0-U_.js";import{p as Zt,g as ze,c as te,t as ee,d as zt,f as Ne,b as Le}from"../chunks/Dq-0lVru.js";import{b as Ue,T as Nt,a as N,c as Be}from"../chunks/CeOjHHJH.js";import{T as je}from"../chunks/CEJkX7WU.js";import{L as re}from"../chunks/D0pIT200.js";import{d as ae,a as oe,c as Oe,b as se,u as Me,T as Ee}from"../chunks/DjEjtFrE.js";import{T as Q}from"../chunks/CkVJuMBr.js";import{T as He}from"../chunks/xk30YnJ1.js";import{E as ne}from"../chunks/CFZS-Ydw.js";import{c as Je}from"../chunks/UIirCQWa.js";import{P as Ve}from"../chunks/DByR3-93.js";import{P as qe}from"../chunks/Cplpgpvt.js";import{r as Lt}from"../chunks/BGApn_8u.js";import{g as Ge,h as Ke,s as Ye}from"../chunks/X-i49s3k.js";const Qe=!1,We=({params:yt,url:i})=>{if(!De.isAuthenticated)throw Se(302,"/login");return{traceName:yt.traceName,preset:i.searchParams.get("preset")||null,from:i.searchParams.get("from")||null,to:i.searchParams.get("to")||null}},kr=Object.freeze(Object.defineProperty({__proto__:null,load:We,prerender:Qe},Symbol.toStringTag,{value:"Module"}));var Xe=L('<div class="grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5"><div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Average duration</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Median duration</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">95th percentile</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Total cost</p></div> <div class="space-y-1"><p class="text-2xl font-semibold tracking-tight"> </p> <p class="text-xs text-muted-foreground">Total tokens</p></div></div>'),Ze=L('<div class="flex items-center justify-center py-8"><!></div>'),tr=L("<!> <!> <!> <!> <!> <!> <!>",1),er=L('<div class="flex items-center justify-center"><!></div>'),rr=L("<!> <!> <!> <!> <!> <!> <!>",1),ar=L("<!> <!>",1),or=L('<div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex flex-col"><!></div></div> <!> <div class="overflow-hidden rounded-md border"><!></div> <!>',1),sr=L('<div class="space-y-6"><!></div>');function Cr(yt,i){Fe(i,!0);const $=A(ze);let _t=c(w([])),U=c(null),B=c(!0),xt=c(""),Pt=c(!1),St=c(0),W=c(1),Dt=c(50),Ut=c(0),kt=c(0);function le(){if(i.data.preset&&Oe[i.data.preset]){const a=se(i.data.preset,t($));return{preset:i.data.preset,from:a.from,to:a.to}}if(i.data.from&&i.data.to){const a=Zt(i.data.from,t($)),d=Zt(i.data.to,t($));if(a.isValid&&d.isValid)return{preset:null,from:a.toJSDate(),to:d.toJSDate()}}const e=se("24h",t($));return{preset:"24h",from:e.from,to:e.to}}const ct=le();let ut=c(w(ct.preset)),X=c(w(ae(ct.from,t($)))),Z=c(w(ae(ct.to,t($)))),ht=c(w(oe(ct.from,t($)))),Tt=c(w(oe(ct.to,t($))));function ie(e=!0){Me(t(ut)?{preset:t(ut)}:{from:Ot(),to:Mt()},{pushToHistory:e})}const Bt="ai_trace_detail",jt=Ge(Bt,{field:"recorded_at",direction:"desc"});let tt=c(w(jt.field)),et=c(w(jt.direction));function Ot(){const[e,a]=(t(ht)||"00:00").split(":").map(Number),d=te({year:t(X).year,month:t(X).month,day:t(X).day,hour:e,minute:a},t($));return ee(d)}function Mt(){const[e,a]=(t(Tt)||"23:59").split(":").map(Number),d=te({year:t(Z).year,month:t(Z).month,day:t(Z).day,hour:e,minute:a},t($)).endOf("minute");return ee(d)}function de(e,a,d){r(X,e.date,!0),r(ht,e.time,!0),r(Z,a.date,!0),r(Tt,a.time,!0),r(ut,d,!0),r(W,1),j()}function Et(e){return e===0?"$0":e<.001?`$${e.toFixed(6)}`:e<.01?`$${e.toFixed(4)}`:e<1?`$${e.toFixed(3)}`:`$${e.toFixed(2)}`}function ce(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toLocaleString()}async function j(e=!0){r(B,!0),r(xt,""),r(Pt,!1),r(St,0),ie(e);try{const a={fromDate:Ot(),toDate:Mt(),orderBy:t(tt),sortDirection:t(et),pagination:{page:t(W),pageSize:t(Dt)}},d=await ke.post(`/ai-traces/trace?traceName=${encodeURIComponent(i.data.traceName)}`,a,{projectId:Ce.currentProjectId??void 0});r(_t,d.data||[],!0),r(U,d.stats||null,!0),r(Ut,d.pagination.total,!0),r(kt,d.pagination.totalPages,!0)}catch(a){console.error(a),r(St,a.status||0,!0),a.status===404?r(Pt,!0):r(xt,a.message||"Failed to load data",!0)}finally{r(B,!1)}}function ue(e){e>=1&&e<=t(kt)&&(r(W,e,!0),j(!1))}function me(e){r(Dt,e,!0),r(W,1),j(!1)}function Ct(e){const a=Ke(e,t(tt),t(et));r(tt,a.field,!0),r(et,a.direction,!0),Ye(Bt,a),r(W,1),j(!1)}Ie(()=>{j(!1)});var It=sr(),fe=u(It);{var ve=e=>{{let a=A(()=>At({fallbackPath:Lt("/ai-traces")})),d=A(()=>decodeURIComponent(i.data.traceName));ne(e,{status:404,title:"AI Trace Not Found",description:"The AI trace you're looking for doesn't exist or has no recorded calls.",get onBack(){return t(a)},backLabel:"Back to AI Traces",onRetry:()=>j(!1),get identifier(){return t(d)}})}},ge=e=>{var a=k(),d=f(a);{var pe=rt=>{{let bt=A(()=>(t(St)===400,400)),mt=A(()=>At({fallbackPath:Lt("/ai-traces")}));ne(rt,{get status(){return t(bt)},title:"Failed to Load AI Traces",get description(){return t(xt)},get onBack(){return t(mt)},backLabel:"Back to AI Traces",onRetry:()=>j(!1)})}},_e=rt=>{var bt=or(),mt=f(bt),Ht=u(mt);{let n=A(()=>decodeURIComponent(i.data.traceName)),P=A(()=>At({fallbackPath:Lt("/ai-traces")}));qe(Ht,{get title(){return t(n)},subtitle:"AI trace instances",get onBack(){return t(P)}})}var Jt=s(Ht,2),xe=u(Jt);Ee(xe,{onApply:de,get fromDate(){return t(X)},set fromDate(n){r(X,n,!0)},get toDate(){return t(Z)},set toDate(n){r(Z,n,!0)},get fromTime(){return t(ht)},set fromTime(n){r(ht,n,!0)},get toTime(){return t(Tt)},set toTime(n){r(Tt,n,!0)},get preset(){return t(ut)},set preset(n){r(ut,n,!0)}}),m(Jt),m(mt);var Vt=s(mt,2);{var he=n=>{var P=Xe(),O=u(P),ft=u(O),R=u(ft,!0);m(ft),T(2),m(O);var S=s(O,2),at=u(S),Rt=u(at,!0);m(at),T(2),m(S);var C=s(S,2),M=u(C),vt=u(M,!0);m(M),T(2),m(C);var ot=s(C,2),E=u(ot),gt=u(E,!0);m(E),T(2),m(ot);var pt=s(ot,2),H=u(pt),D=u(H,!0);m(H),T(2),m(pt),m(P),z((I,J,V,st,g)=>{b(R,I),b(Rt,J),b(vt,V),b(gt,st),b(D,g)},[()=>zt(t(U).avgDuration),()=>zt(t(U).medianDuration),()=>zt(t(U).p95Duration),()=>Et(t(U).totalCost),()=>ce(t(U).totalTokens)]),o(n,P)},Te=n=>{var P=k(),O=f(P);{var ft=R=>{var S=Ze(),at=u(S);re(at,{size:"lg"}),m(S),o(R,S)};K(O,R=>{t(B)&&R(ft)},!0)}o(n,P)};K(Vt,n=>{t(U)?n(he):n(Te,!1)})}var Ft=s(Vt,2),be=u(Ft);v(be,()=>Be,(n,P)=>{P(n,{children:(O,ft)=>{var R=ar(),S=f(R);{var at=C=>{var M=k(),vt=f(M);v(vt,()=>je,(ot,E)=>{E(ot,{children:(gt,pt)=>{var H=k(),D=f(H);v(D,()=>Nt,(I,J)=>{J(I,{children:(V,st)=>{var g=tr(),nt=f(g);Q(nt,{label:"Recorded At",sortField:"recorded_at",get currentSortField(){return t(tt)},get sortDirection(){return t(et)},onSort:y=>Ct(y),class:"w-[180px]"});var q=s(nt,2);Q(q,{label:"Duration",sortField:"duration",get currentSortField(){return t(tt)},get sortDirection(){return t(et)},onSort:y=>Ct(y),class:"w-[100px]"});var lt=s(q,2);Q(lt,{label:"Model",class:"w-[200px]"});var p=s(lt,2);Q(p,{label:"Tokens In",class:"w-[90px]"});var G=s(p,2);Q(G,{label:"Tokens Out",class:"w-[90px]"});var it=s(G,2);Q(it,{label:"Cost",sortField:"total_cost",get currentSortField(){return t(tt)},get sortDirection(){return t(et)},onSort:y=>Ct(y),class:"w-[90px]"});var $t=s(it,2);Q($t,{label:"Provider",class:"w-[100px]"}),o(V,g)},$$slots:{default:!0}})}),o(gt,H)},$$slots:{default:!0}})}),o(C,M)};K(S,C=>{(t(B)||t(_t).length>0)&&C(at)})}var Rt=s(S,2);v(Rt,()=>Ue,(C,M)=>{M(C,{children:(vt,ot)=>{var E=k(),gt=f(E);{var pt=D=>{var I=k(),J=f(I);v(J,()=>Nt,(V,st)=>{st(V,{children:(g,nt)=>{var q=k(),lt=f(q);v(lt,()=>N,(p,G)=>{G(p,{colspan:7,class:"h-48",children:(it,$t)=>{var y=er(),wt=u(y);re(wt,{size:"lg"}),m(y),o(it,y)},$$slots:{default:!0}})}),o(g,q)},$$slots:{default:!0}})}),o(D,I)},H=D=>{var I=k(),J=f(I);{var V=g=>{He(g,{colspan:7,message:"No AI traces found in this time range."})},st=g=>{var nt=k(),q=f(nt);we(q,17,()=>t(_t),Ae,(lt,p)=>{var G=k(),it=f(G);{let $t=A(()=>Je(`/ai-traces/${encodeURIComponent(decodeURIComponent(i.data.traceName))}/${t(p).id}`,"preset","from","to"));v(it,()=>Nt,(y,wt)=>{wt(y,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return t($t)},children:(ye,nr)=>{var qt=rr(),Gt=f(qt);v(Gt,()=>N,(_,x)=>{x(_,{class:"text-muted-foreground",children:(h,dt)=>{T();var l=Y();z(F=>b(l,F),[()=>Ne(t(p).recordedAt,{timezone:t($)})]),o(h,l)},$$slots:{default:!0}})});var Kt=s(Gt,2);v(Kt,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm",children:(h,dt)=>{T();var l=Y();z(F=>b(l,F),[()=>Le(t(p).duration)]),o(h,l)},$$slots:{default:!0}})});var Yt=s(Kt,2);v(Yt,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm",children:(h,dt)=>{T();var l=Y();z(()=>b(l,t(p).model||"-")),o(h,l)},$$slots:{default:!0}})});var Qt=s(Yt,2);v(Qt,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm tabular-nums",children:(h,dt)=>{T();var l=Y();z(F=>b(l,F),[()=>t(p).inputTokens.toLocaleString()]),o(h,l)},$$slots:{default:!0}})});var Wt=s(Qt,2);v(Wt,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm tabular-nums",children:(h,dt)=>{T();var l=Y();z(F=>b(l,F),[()=>t(p).outputTokens.toLocaleString()]),o(h,l)},$$slots:{default:!0}})});var Xt=s(Wt,2);v(Xt,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm tabular-nums",children:(h,dt)=>{T();var l=Y();z(F=>b(l,F),[()=>Et(t(p).totalCost)]),o(h,l)},$$slots:{default:!0}})});var Pe=s(Xt,2);v(Pe,()=>N,(_,x)=>{x(_,{class:"font-mono text-sm text-muted-foreground",children:(h,dt)=>{T();var l=Y();z(()=>b(l,t(p).provider||"-")),o(h,l)},$$slots:{default:!0}})}),o(ye,qt)},$$slots:{default:!0}})})}o(lt,G)}),o(g,nt)};K(J,g=>{t(_t).length===0?g(V):g(st,!1)},!0)}o(D,I)};K(gt,D=>{t(B)?D(pt):D(H,!1)})}o(vt,E)},$$slots:{default:!0}})}),o(O,R)},$$slots:{default:!0}})}),m(Ft);var $e=s(Ft,2);Ve($e,{get currentPage(){return t(W)},get totalPages(){return t(kt)},get pageSize(){return t(Dt)},get totalItems(){return t(Ut)},onPageChange:ue,onPageSizeChange:me,get loading(){return t(B)},itemLabel:"trace"}),o(rt,bt)};K(d,rt=>{t(xt)&&!t(B)?rt(pe):rt(_e,!1)},!0)}o(e,a)};K(fe,e=>{t(Pt)?e(ve):e(ge,!1)})}m(It),o(yt,It),Re()}export{Cr as component,kr as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/5.CGdMiy4Y.js.map b/backend/static/frontend/_app/immutable/nodes/5.DI8RCFuZ.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/5.CGdMiy4Y.js.map
rename to backend/static/frontend/_app/immutable/nodes/5.DI8RCFuZ.js.map
index 49eaef98..e11b5b23 100644
--- a/backend/static/frontend/_app/immutable/nodes/5.CGdMiy4Y.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/5.DI8RCFuZ.js.map
@@ -1 +1 @@
-{"version":3,"file":"5.CGdMiy4Y.js","sources":["../../../../../../src/routes/ai-traces/[traceName]/+page.ts","../../../../../../src/routes/ai-traces/[traceName]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\ttraceName: params.traceName,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { api } from '$lib/api';\n\timport {\n\t\tformatDuration,\n\t\tformatDurationMs,\n\t\tformatDateTime,\n\t\tparseISO,\n\t\ttoUTCISO,\n\t\tcalendarDateTimeToLuxon\n\t} from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport * as Table from '$lib/components/ui/table';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { CalendarDate } from '@internationalized/date';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport PaginationFooter from '$lib/components/ui/pagination-footer/pagination-footer.svelte';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { resolve } from '$app/paths';\n\timport {\n\t\tpresetMinutes,\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport {\n\t\tgetSortState,\n\t\tsetSortState,\n\t\thandleSortClick,\n\t\ttype SortDirection\n\t} from '$lib/utils/sort-storage';\n\n\tconst timezone = $derived(getTimezone());\n\n\ttype AiTrace = {\n\t\tid: string;\n\t\trecordedAt: string;\n\t\tduration: number;\n\t\tmodel: string;\n\t\tprovider: string;\n\t\tinputTokens: number;\n\t\toutputTokens: number;\n\t\ttotalTokens: number;\n\t\ttotalCost: number;\n\t\tstatusCode: number;\n\t};\n\n\ttype AiTraceDetailStats = {\n\t\tcount: number;\n\t\tavgDuration: number;\n\t\tmedianDuration: number;\n\t\tp95Duration: number;\n\t\ttotalTokens: number;\n\t\ttotalCost: number;\n\t\tavgInputTokens: number;\n\t\tavgOutputTokens: number;\n\t\tthroughput: number;\n\t};\n\n\ttype SortField = 'recorded_at' | 'duration' | 'total_tokens' | 'total_cost';\n\n\tlet { data } = $props();\n\n\tlet traces = $state<AiTrace[]>([]);\n\tlet stats = $state<AiTraceDetailStats | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\tlet errorStatus = $state<number>(0);\n\n\tlet page = $state(1);\n\tlet pageSize = $state(50);\n\tlet total = $state(0);\n\tlet totalPages = $state(0);\n\n\tfunction getInitialRange(): { preset: string | null; from: Date; to: Date } {\n\t\tif (data.preset && presetMinutes[data.preset]) {\n\t\t\tconst range = getTimeRangeFromPreset(data.preset, timezone);\n\t\t\treturn { preset: data.preset, from: range.from, to: range.to };\n\t\t}\n\t\tif (data.from && data.to) {\n\t\t\tconst fromDt = parseISO(data.from, timezone);\n\t\t\tconst toDt = parseISO(data.to, timezone);\n\t\t\tif (fromDt.isValid && toDt.isValid) {\n\t\t\t\treturn { preset: null, from: fromDt.toJSDate(), to: toDt.toJSDate() };\n\t\t\t}\n\t\t}\n\t\tconst range = getTimeRangeFromPreset('24h', timezone);\n\t\treturn { preset: '24h', from: range.from, to: range.to };\n\t}\n\n\tconst initialRange = getInitialRange();\n\n\tlet selectedPreset = $state<string | null>(initialRange.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\tfunction updateTimeRangeUrl(pushToHistory = true) {\n\t\tupdateUrl(\n\t\t\tselectedPreset\n\t\t\t\t? { preset: selectedPreset }\n\t\t\t\t: { from: getFromDateTimeUTC(), to: getToDateTimeUTC() },\n\t\t\t{ pushToHistory }\n\t\t);\n\t}\n\n\tconst SORT_STORAGE_KEY = 'ai_trace_detail';\n\tconst initialSort = getSortState(SORT_STORAGE_KEY, { field: 'recorded_at', direction: 'desc' });\n\tlet orderBy = $state<SortField>(initialSort.field as SortField);\n\tlet sortDirection = $state<SortDirection>(initialSort.direction);\n\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = (toTime || '23:59').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\tfromTime = from.time;\n\t\ttoDate = to.date;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\tpage = 1;\n\t\tloadData();\n\t}\n\n\tfunction formatCost(cost: number): string {\n\t\tif (cost === 0) return '$0';\n\t\tif (cost < 0.001) return `$${cost.toFixed(6)}`;\n\t\tif (cost < 0.01) return `$${cost.toFixed(4)}`;\n\t\tif (cost < 1) return `$${cost.toFixed(3)}`;\n\t\treturn `$${cost.toFixed(2)}`;\n\t}\n\n\tfunction formatTokens(tokens: number): string {\n\t\tif (tokens >= 1_000_000) return `${(tokens / 1_000_000).toFixed(1)}M`;\n\t\tif (tokens >= 1_000) return `${(tokens / 1_000).toFixed(1)}k`;\n\t\treturn tokens.toLocaleString();\n\t}\n\n\tasync function loadData(pushToHistory = true) {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\t\terrorStatus = 0;\n\n\t\tupdateTimeRangeUrl(pushToHistory);\n\n\t\ttry {\n\t\t\tconst requestBody = {\n\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\ttoDate: getToDateTimeUTC(),\n\t\t\t\torderBy: orderBy,\n\t\t\t\tsortDirection: sortDirection,\n\t\t\t\tpagination: { page, pageSize }\n\t\t\t};\n\n\t\t\tconst response = await api.post(\n\t\t\t\t`/ai-traces/trace?traceName=${encodeURIComponent(data.traceName)}`,\n\t\t\t\trequestBody,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\ttraces = response.data || [];\n\t\t\tstats = response.stats || null;\n\t\t\ttotal = response.pagination.total;\n\t\t\ttotalPages = response.pagination.totalPages;\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\terrorStatus = e.status || 0;\n\t\t\tif (e.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = e.message || 'Failed to load data';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handlePageChange(newPage: number) {\n\t\tif (newPage >= 1 && newPage <= totalPages) {\n\t\t\tpage = newPage;\n\t\t\tloadData(false);\n\t\t}\n\t}\n\n\tfunction handlePageSizeChange(newPageSize: number) {\n\t\tpageSize = newPageSize;\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tfunction handleSort(field: SortField) {\n\t\tconst newSort = handleSortClick(field, orderBy, sortDirection);\n\t\torderBy = newSort.field as SortField;\n\t\tsortDirection = newSort.direction;\n\t\tsetSortState(SORT_STORAGE_KEY, newSort);\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tonMount(() => {\n\t\tloadData(false);\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t{#if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"AI Trace Not Found\"\n\t\t\tdescription=\"The AI trace you're looking for doesn't exist or has no recorded calls.\"\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/ai-traces') })}\n\t\t\tbackLabel=\"Back to AI Traces\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t\tidentifier={decodeURIComponent(data.traceName)}\n\t\t/>\n\t{:else if error && !loading}\n\t\t<ErrorDisplay\n\t\t\tstatus={errorStatus === 400 ? 400 : 400}\n\t\t\ttitle=\"Failed to Load AI Traces\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/ai-traces') })}\n\t\t\tbackLabel=\"Back to AI Traces\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t/>\n\t{:else}\n\t\t<div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n\t\t\t<PageHeader\n\t\t\t\ttitle={decodeURIComponent(data.traceName)}\n\t\t\t\tsubtitle=\"AI trace instances\"\n\t\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/ai-traces') })}\n\t\t\t/>\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<TimeRangePicker\n\t\t\t\t\tbind:fromDate\n\t\t\t\t\tbind:toDate\n\t\t\t\t\tbind:fromTime\n\t\t\t\t\tbind:toTime\n\t\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\n\t\t{#if stats}\n\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5\">\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.avgDuration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average duration</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.medianDuration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Median duration</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.p95Duration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">95th percentile</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatCost(stats.totalCost)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Total cost</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatTokens(stats.totalTokens)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Total tokens</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{:else if loading}\n\t\t\t<div class=\"flex items-center justify-center py-8\">\n\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t<Table.Root>\n\t\t\t\t{#if loading || traces.length > 0}\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\t\t\tsortField=\"recorded_at\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[180px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Duration\"\n\t\t\t\t\t\t\t\tsortField=\"duration\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[100px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Model\" class=\"w-[200px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Tokens In\" class=\"w-[90px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Tokens Out\" class=\"w-[90px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Cost\"\n\t\t\t\t\t\t\t\tsortField=\"total_cost\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[90px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Provider\" class=\"w-[100px]\" />\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t{/if}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Cell colspan={7} class=\"h-48\">\n\t\t\t\t\t\t\t\t<div class=\"flex items-center justify-center\">\n\t\t\t\t\t\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t{:else if traces.length === 0}\n\t\t\t\t\t\t<TableEmptyState colspan={7} message=\"No AI traces found in this time range.\" />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{#each traces as trace}\n\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/ai-traces/${encodeURIComponent(decodeURIComponent(data.traceName))}/${trace.id}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{formatDateTime(trace.recordedAt, { timezone })}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t{formatDuration(trace.duration)}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t{trace.model || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm tabular-nums\">\n\t\t\t\t\t\t\t\t\t{trace.inputTokens.toLocaleString()}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm tabular-nums\">\n\t\t\t\t\t\t\t\t\t{trace.outputTokens.toLocaleString()}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm tabular-nums\">\n\t\t\t\t\t\t\t\t\t{formatCost(trace.totalCost)}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{trace.provider || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t{/if}\n\t\t\t\t</Table.Body>\n\t\t\t</Table.Root>\n\t\t</div>\n\n\t\t<PaginationFooter\n\t\t\tcurrentPage={page}\n\t\t\t{totalPages}\n\t\t\t{pageSize}\n\t\t\ttotalItems={total}\n\t\t\tonPageChange={handlePageChange}\n\t\t\tonPageSizeChange={handlePageSizeChange}\n\t\t\t{loading}\n\t\t\titemLabel=\"trace\"\n\t\t/>\n\t{/if}\n</div>\n"],"names":["prerender","load","params","url","authState","redirect","timezone","getTimezone","traces","$.state","$.proxy","stats","loading","error","notFound","errorStatus","page","pageSize","total","totalPages","getInitialRange","$$props","presetMinutes","range","getTimeRangeFromPreset","fromDt","parseISO","toDt","initialRange","selectedPreset","fromDate","dateToCalendarDate","$.get","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","updateUrl","getFromDateTimeUTC","getToDateTimeUTC","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","$.set","loadData","formatCost","cost","formatTokens","tokens","requestBody","response","api","projectsState","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","onMount","div","root","$0","$.derived","createSmartBackHandler","resolve","$1","ErrorDisplay","$$anchor","div_1","$.first_child","fragment_3","PageHeader","node_2","div_2","$.sibling","TimeRangePicker","node_3","$$value","div_3","root_5","div_4","p","div_5","p_1","div_6","p_2","div_7","p_3","div_8","p_4","formatDurationMs","div_9","root_7","LoadingCircle","node_6","$$render","consequent_3","consequent_2","alternate","div_10","node_4","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_11","node_12","node_13","node_14","node_15","node_16","node_17","consequent_4","Table_Body","Table_Row_1","Table_Cell","div_11","root_15","node_22","TableEmptyState","$.each","node_24","trace","createRowClickHandler","Table_Row_2","Table_Cell_1","formatDateTime","Table_Cell_2","formatDuration","Table_Cell_3","Table_Cell_4","Table_Cell_5","Table_Cell_6","Table_Cell_7","consequent_6","alternate_1","consequent_5","alternate_2","PaginationFooter","node_33","consequent_1","alternate_3","consequent","alternate_4"],"mappings":"2mCAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,GAAQ,IAAAC,KAAU,CAClD,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAG7B,MAAO,CACN,UAAWH,GAAO,UAClB,OAAQC,EAAI,aAAa,IAAI,QAAQ,GAAK,KAC1C,KAAMA,EAAI,aAAa,IAAI,MAAM,GAAK,KACtC,GAAIA,EAAI,aAAa,IAAI,IAAI,GAAK,IAAA,CAEpC,82CCjBA,UAuCO,MAAAG,IAAoBC,EAAW,EA+BjC,IAAAC,GAASC,EAAMC,EAAA,CAAA,CAAA,CAAA,EACfC,EAAQF,EAAkC,IAAI,EAC9CG,EAAUH,EAAO,EAAI,EACrBI,GAAQJ,EAAO,EAAE,EACjBK,GAAWL,EAAO,EAAK,EACvBM,GAAcN,EAAe,CAAC,EAE9BO,EAAOP,EAAO,CAAC,EACfQ,GAAWR,EAAO,EAAE,EACpBS,GAAQT,EAAO,CAAC,EAChBU,GAAaV,EAAO,CAAC,EAEhB,SAAAW,IAAmE,CAClE,GAAAC,EAAA,KAAA,QAAUC,GAAaD,EAAA,KAAM,MAAM,EAAG,CACxC,MAAAE,EAAQC,GAAsBH,EAAA,KAAM,SAAQf,CAAQ,CAAA,EACjD,MAAA,CAAA,OAAMe,EAAA,KAAO,OAAQ,KAAME,EAAM,KAAM,GAAIA,EAAM,EAAE,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AA,CAAA,qEAE3BW,EAAUlE,EAAA,6FACTuD,CAAK,EAAC,UAAY,GAAG,CAAA,mGAhChBpI,EAAM,EAAC,SAAW,EAACyG,EAAAuC,CAAA,EAAAvC,EAAAwC,GAAA,EAAA,0BARxB7I,CAAO,EAAAqG,EAAAyC,EAAA,EAAAzC,EAAA0C,EAAA,EAAA,yEArCdtC,EAAG,WAAHA,GAAG,CAAA,EAsFHuC,GAAAC,GAAA,4BACa7I,CAAI,6BAChBG,EAAU,2BACVF,EAAQ,6BACGC,EAAK,gBACHiD,oBACIE,0BACjBzD,CAAO,0CAtJAoB,EAAAnB,EAAK,MAAKD,CAAO,EAAAqG,GAAA6C,EAAA,EAAA7C,GAAA8C,GAAA,EAAA,0BAVtBjJ,EAAQ,EAAAmG,EAAA+C,EAAA,EAAA/C,EAAAgD,GAAA,EAAA,MADbpF,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"5.DI8RCFuZ.js","sources":["../../../../../../src/routes/ai-traces/[traceName]/+page.ts","../../../../../../src/routes/ai-traces/[traceName]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params, url }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\ttraceName: params.traceName,\n\t\tpreset: url.searchParams.get('preset') || null,\n\t\tfrom: url.searchParams.get('from') || null,\n\t\tto: url.searchParams.get('to') || null\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { api } from '$lib/api';\n\timport {\n\t\tformatDuration,\n\t\tformatDurationMs,\n\t\tformatDateTime,\n\t\tparseISO,\n\t\ttoUTCISO,\n\t\tcalendarDateTimeToLuxon\n\t} from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport * as Table from '$lib/components/ui/table';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { TimeRangePicker } from '$lib/components/ui/time-range-picker';\n\timport { TracewayTableHeader } from '$lib/components/ui/traceway-table-header';\n\timport { TableEmptyState } from '$lib/components/ui/table-empty-state';\n\timport { CalendarDate } from '@internationalized/date';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { createRowClickHandler } from '$lib/utils/navigation';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport PaginationFooter from '$lib/components/ui/pagination-footer/pagination-footer.svelte';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { resolve } from '$app/paths';\n\timport {\n\t\tpresetMinutes,\n\t\tgetTimeRangeFromPreset,\n\t\tdateToCalendarDate,\n\t\tdateToTimeString,\n\t\tupdateUrl\n\t} from '$lib/utils/url-params';\n\timport {\n\t\tgetSortState,\n\t\tsetSortState,\n\t\thandleSortClick,\n\t\ttype SortDirection\n\t} from '$lib/utils/sort-storage';\n\n\tconst timezone = $derived(getTimezone());\n\n\ttype AiTrace = {\n\t\tid: string;\n\t\trecordedAt: string;\n\t\tduration: number;\n\t\tmodel: string;\n\t\tprovider: string;\n\t\tinputTokens: number;\n\t\toutputTokens: number;\n\t\ttotalTokens: number;\n\t\ttotalCost: number;\n\t\tstatusCode: number;\n\t};\n\n\ttype AiTraceDetailStats = {\n\t\tcount: number;\n\t\tavgDuration: number;\n\t\tmedianDuration: number;\n\t\tp95Duration: number;\n\t\ttotalTokens: number;\n\t\ttotalCost: number;\n\t\tavgInputTokens: number;\n\t\tavgOutputTokens: number;\n\t\tthroughput: number;\n\t};\n\n\ttype SortField = 'recorded_at' | 'duration' | 'total_tokens' | 'total_cost';\n\n\tlet { data } = $props();\n\n\tlet traces = $state<AiTrace[]>([]);\n\tlet stats = $state<AiTraceDetailStats | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\tlet errorStatus = $state<number>(0);\n\n\tlet page = $state(1);\n\tlet pageSize = $state(50);\n\tlet total = $state(0);\n\tlet totalPages = $state(0);\n\n\tfunction getInitialRange(): { preset: string | null; from: Date; to: Date } {\n\t\tif (data.preset && presetMinutes[data.preset]) {\n\t\t\tconst range = getTimeRangeFromPreset(data.preset, timezone);\n\t\t\treturn { preset: data.preset, from: range.from, to: range.to };\n\t\t}\n\t\tif (data.from && data.to) {\n\t\t\tconst fromDt = parseISO(data.from, timezone);\n\t\t\tconst toDt = parseISO(data.to, timezone);\n\t\t\tif (fromDt.isValid && toDt.isValid) {\n\t\t\t\treturn { preset: null, from: fromDt.toJSDate(), to: toDt.toJSDate() };\n\t\t\t}\n\t\t}\n\t\tconst range = getTimeRangeFromPreset('24h', timezone);\n\t\treturn { preset: '24h', from: range.from, to: range.to };\n\t}\n\n\tconst initialRange = getInitialRange();\n\n\tlet selectedPreset = $state<string | null>(initialRange.preset);\n\tlet fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n\tlet toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n\tlet fromTime = $state(dateToTimeString(initialRange.from, timezone));\n\tlet toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n\tfunction updateTimeRangeUrl(pushToHistory = true) {\n\t\tupdateUrl(\n\t\t\tselectedPreset\n\t\t\t\t? { preset: selectedPreset }\n\t\t\t\t: { from: getFromDateTimeUTC(), to: getToDateTimeUTC() },\n\t\t\t{ pushToHistory }\n\t\t);\n\t}\n\n\tconst SORT_STORAGE_KEY = 'ai_trace_detail';\n\tconst initialSort = getSortState(SORT_STORAGE_KEY, { field: 'recorded_at', direction: 'desc' });\n\tlet orderBy = $state<SortField>(initialSort.field as SortField);\n\tlet sortDirection = $state<SortDirection>(initialSort.direction);\n\n\tfunction getFromDateTimeUTC(): string {\n\t\tconst [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute },\n\t\t\ttimezone\n\t\t);\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction getToDateTimeUTC(): string {\n\t\tconst [hour, minute] = (toTime || '23:59').split(':').map(Number);\n\t\tconst dt = calendarDateTimeToLuxon(\n\t\t\t{ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute },\n\t\t\ttimezone\n\t\t).endOf('minute');\n\t\treturn toUTCISO(dt);\n\t}\n\n\tfunction handleTimeRangeChange(\n\t\tfrom: { date: CalendarDate; time: string },\n\t\tto: { date: CalendarDate; time: string },\n\t\tpreset: string | null\n\t) {\n\t\tfromDate = from.date;\n\t\tfromTime = from.time;\n\t\ttoDate = to.date;\n\t\ttoTime = to.time;\n\t\tselectedPreset = preset;\n\t\tpage = 1;\n\t\tloadData();\n\t}\n\n\tfunction formatCost(cost: number): string {\n\t\tif (cost === 0) return '$0';\n\t\tif (cost < 0.001) return `$${cost.toFixed(6)}`;\n\t\tif (cost < 0.01) return `$${cost.toFixed(4)}`;\n\t\tif (cost < 1) return `$${cost.toFixed(3)}`;\n\t\treturn `$${cost.toFixed(2)}`;\n\t}\n\n\tfunction formatTokens(tokens: number): string {\n\t\tif (tokens >= 1_000_000) return `${(tokens / 1_000_000).toFixed(1)}M`;\n\t\tif (tokens >= 1_000) return `${(tokens / 1_000).toFixed(1)}k`;\n\t\treturn tokens.toLocaleString();\n\t}\n\n\tasync function loadData(pushToHistory = true) {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\t\terrorStatus = 0;\n\n\t\tupdateTimeRangeUrl(pushToHistory);\n\n\t\ttry {\n\t\t\tconst requestBody = {\n\t\t\t\tfromDate: getFromDateTimeUTC(),\n\t\t\t\ttoDate: getToDateTimeUTC(),\n\t\t\t\torderBy: orderBy,\n\t\t\t\tsortDirection: sortDirection,\n\t\t\t\tpagination: { page, pageSize }\n\t\t\t};\n\n\t\t\tconst response = await api.post(\n\t\t\t\t`/ai-traces/trace?traceName=${encodeURIComponent(data.traceName)}`,\n\t\t\t\trequestBody,\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\n\t\t\ttraces = response.data || [];\n\t\t\tstats = response.stats || null;\n\t\t\ttotal = response.pagination.total;\n\t\t\ttotalPages = response.pagination.totalPages;\n\t\t} catch (e: any) {\n\t\t\tconsole.error(e);\n\t\t\terrorStatus = e.status || 0;\n\t\t\tif (e.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = e.message || 'Failed to load data';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tfunction handlePageChange(newPage: number) {\n\t\tif (newPage >= 1 && newPage <= totalPages) {\n\t\t\tpage = newPage;\n\t\t\tloadData(false);\n\t\t}\n\t}\n\n\tfunction handlePageSizeChange(newPageSize: number) {\n\t\tpageSize = newPageSize;\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tfunction handleSort(field: SortField) {\n\t\tconst newSort = handleSortClick(field, orderBy, sortDirection);\n\t\torderBy = newSort.field as SortField;\n\t\tsortDirection = newSort.direction;\n\t\tsetSortState(SORT_STORAGE_KEY, newSort);\n\t\tpage = 1;\n\t\tloadData(false);\n\t}\n\n\tonMount(() => {\n\t\tloadData(false);\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t{#if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"AI Trace Not Found\"\n\t\t\tdescription=\"The AI trace you're looking for doesn't exist or has no recorded calls.\"\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/ai-traces') })}\n\t\t\tbackLabel=\"Back to AI Traces\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t\tidentifier={decodeURIComponent(data.traceName)}\n\t\t/>\n\t{:else if error && !loading}\n\t\t<ErrorDisplay\n\t\t\tstatus={errorStatus === 400 ? 400 : 400}\n\t\t\ttitle=\"Failed to Load AI Traces\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/ai-traces') })}\n\t\t\tbackLabel=\"Back to AI Traces\"\n\t\t\tonRetry={() => loadData(false)}\n\t\t/>\n\t{:else}\n\t\t<div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n\t\t\t<PageHeader\n\t\t\t\ttitle={decodeURIComponent(data.traceName)}\n\t\t\t\tsubtitle=\"AI trace instances\"\n\t\t\t\tonBack={createSmartBackHandler({ fallbackPath: resolve('/ai-traces') })}\n\t\t\t/>\n\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t<TimeRangePicker\n\t\t\t\t\tbind:fromDate\n\t\t\t\t\tbind:toDate\n\t\t\t\t\tbind:fromTime\n\t\t\t\t\tbind:toTime\n\t\t\t\t\tbind:preset={selectedPreset}\n\t\t\t\t\tonApply={handleTimeRangeChange}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\n\t\t{#if stats}\n\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5\">\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.avgDuration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Average duration</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.medianDuration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Median duration</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatDurationMs(stats.p95Duration)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">95th percentile</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatCost(stats.totalCost)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Total cost</p>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"space-y-1\">\n\t\t\t\t\t<p class=\"text-2xl font-semibold tracking-tight\">{formatTokens(stats.totalTokens)}</p>\n\t\t\t\t\t<p class=\"text-xs text-muted-foreground\">Total tokens</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{:else if loading}\n\t\t\t<div class=\"flex items-center justify-center py-8\">\n\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<div class=\"overflow-hidden rounded-md border\">\n\t\t\t<Table.Root>\n\t\t\t\t{#if loading || traces.length > 0}\n\t\t\t\t\t<Table.Header>\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\t\t\tsortField=\"recorded_at\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[180px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Duration\"\n\t\t\t\t\t\t\t\tsortField=\"duration\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[100px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Model\" class=\"w-[200px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Tokens In\" class=\"w-[90px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Tokens Out\" class=\"w-[90px]\" />\n\t\t\t\t\t\t\t<TracewayTableHeader\n\t\t\t\t\t\t\t\tlabel=\"Cost\"\n\t\t\t\t\t\t\t\tsortField=\"total_cost\"\n\t\t\t\t\t\t\t\tcurrentSortField={orderBy}\n\t\t\t\t\t\t\t\t{sortDirection}\n\t\t\t\t\t\t\t\tonSort={(field) => handleSort(field as SortField)}\n\t\t\t\t\t\t\t\tclass=\"w-[90px]\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<TracewayTableHeader label=\"Provider\" class=\"w-[100px]\" />\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t</Table.Header>\n\t\t\t\t{/if}\n\t\t\t\t<Table.Body>\n\t\t\t\t\t{#if loading}\n\t\t\t\t\t\t<Table.Row>\n\t\t\t\t\t\t\t<Table.Cell colspan={7} class=\"h-48\">\n\t\t\t\t\t\t\t\t<div class=\"flex items-center justify-center\">\n\t\t\t\t\t\t\t\t\t<LoadingCircle size=\"lg\" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t{:else if traces.length === 0}\n\t\t\t\t\t\t<TableEmptyState colspan={7} message=\"No AI traces found in this time range.\" />\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t{#each traces as trace}\n\t\t\t\t\t\t\t<Table.Row\n\t\t\t\t\t\t\t\tclass=\"cursor-pointer hover:bg-muted/50\"\n\t\t\t\t\t\t\t\tonclick={createRowClickHandler(\n\t\t\t\t\t\t\t\t\t`/ai-traces/${encodeURIComponent(decodeURIComponent(data.traceName))}/${trace.id}`,\n\t\t\t\t\t\t\t\t\t'preset',\n\t\t\t\t\t\t\t\t\t'from',\n\t\t\t\t\t\t\t\t\t'to'\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{formatDateTime(trace.recordedAt, { timezone })}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t{formatDuration(trace.duration)}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm\">\n\t\t\t\t\t\t\t\t\t{trace.model || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm tabular-nums\">\n\t\t\t\t\t\t\t\t\t{trace.inputTokens.toLocaleString()}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm tabular-nums\">\n\t\t\t\t\t\t\t\t\t{trace.outputTokens.toLocaleString()}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm tabular-nums\">\n\t\t\t\t\t\t\t\t\t{formatCost(trace.totalCost)}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t\t<Table.Cell class=\"font-mono text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t{trace.provider || '-'}\n\t\t\t\t\t\t\t\t</Table.Cell>\n\t\t\t\t\t\t\t</Table.Row>\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t{/if}\n\t\t\t\t</Table.Body>\n\t\t\t</Table.Root>\n\t\t</div>\n\n\t\t<PaginationFooter\n\t\t\tcurrentPage={page}\n\t\t\t{totalPages}\n\t\t\t{pageSize}\n\t\t\ttotalItems={total}\n\t\t\tonPageChange={handlePageChange}\n\t\t\tonPageSizeChange={handlePageSizeChange}\n\t\t\t{loading}\n\t\t\titemLabel=\"trace\"\n\t\t/>\n\t{/if}\n</div>\n"],"names":["prerender","load","params","url","authState","redirect","timezone","getTimezone","traces","$.state","$.proxy","stats","loading","error","notFound","errorStatus","page","pageSize","total","totalPages","getInitialRange","$$props","presetMinutes","range","getTimeRangeFromPreset","fromDt","parseISO","toDt","initialRange","selectedPreset","fromDate","dateToCalendarDate","$.get","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","updateUrl","getFromDateTimeUTC","getToDateTimeUTC","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","$.set","loadData","formatCost","cost","formatTokens","tokens","requestBody","response","api","projectsState","e","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","onMount","div","root","$0","$.derived","createSmartBackHandler","resolve","$1","ErrorDisplay","$$anchor","div_1","$.first_child","fragment_3","PageHeader","node_2","div_2","$.sibling","TimeRangePicker","node_3","$$value","div_3","root_5","div_4","p","div_5","p_1","div_6","p_2","div_7","p_3","div_8","p_4","formatDurationMs","div_9","root_7","LoadingCircle","node_6","$$render","consequent_3","consequent_2","alternate","div_10","node_4","Table_Root","Table_Header","Table_Row","TracewayTableHeader","node_11","node_12","node_13","node_14","node_15","node_16","node_17","consequent_4","Table_Body","Table_Row_1","Table_Cell","div_11","root_15","node_22","TableEmptyState","$.each","node_24","trace","createRowClickHandler","Table_Row_2","Table_Cell_1","formatDateTime","Table_Cell_2","formatDuration","Table_Cell_3","Table_Cell_4","Table_Cell_5","Table_Cell_6","Table_Cell_7","consequent_6","alternate_1","consequent_5","alternate_2","PaginationFooter","node_33","consequent_1","alternate_3","consequent","alternate_4"],"mappings":"2mCAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,GAAQ,IAAAC,KAAU,CAClD,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAG7B,MAAO,CACN,UAAWH,GAAO,UAClB,OAAQC,EAAI,aAAa,IAAI,QAAQ,GAAK,KAC1C,KAAMA,EAAI,aAAa,IAAI,MAAM,GAAK,KACtC,GAAIA,EAAI,aAAa,IAAI,IAAI,GAAK,IAAA,CAEpC,82CCjBA,UAuCO,MAAAG,IAAoBC,EAAW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,EAAM4G,CAAK,EAAC,EAAE,GAChF,SACA,OACA,IAAG,CAAA,uBANJE,GAAMzD,EAAA,iIASL0D,EAAU1D,EAAA,4EACT,IAAA2D,KAAeJ,CAAK,EAAC,WAAU,CAAI,WAAAtI,CAAQ,CAAA,CAAA,uEAE5C2I,EAAU5D,EAAA,4EACT6D,GAAclH,EAAC4G,CAAK,EAAC,QAAQ,CAAA,CAAA,qEAE9BO,EAAU9D,EAAA,uEACTuD,CAAK,EAAC,OAAS,GAAG,CAAA,qEAEnBQ,EAAU/D,EAAA,2FACTuD,CAAK,EAAC,YAAY,eAAc,CAAA,CAAA,qEAEjCS,EAAUhE,EAAA,2FACTuD,CAAK,EAAC,aAAa,eAAc,CAAA,CAAA,qEAElCU,EAAUjE,EAAA,yFACT3B,GAAU1B,EAAC4G,CAAK,EAAC,SAAS,CAAA,CAAA,qEAE3BW,EAAUlE,EAAA,6FACTuD,CAAK,EAAC,UAAY,GAAG,CAAA,mGAhChBpI,EAAM,EAAC,SAAW,EAACyG,EAAAuC,CAAA,EAAAvC,EAAAwC,GAAA,EAAA,0BARxB7I,CAAO,EAAAqG,EAAAyC,EAAA,EAAAzC,EAAA0C,EAAA,EAAA,yEArCdtC,EAAG,WAAHA,GAAG,CAAA,EAsFHuC,GAAAC,GAAA,4BACa7I,CAAI,6BAChBG,EAAU,2BACVF,EAAQ,6BACGC,EAAK,gBACHiD,oBACIE,0BACjBzD,CAAO,0CAtJAoB,EAAAnB,EAAK,MAAKD,CAAO,EAAAqG,GAAA6C,EAAA,EAAA7C,GAAA8C,GAAA,EAAA,0BAVtBjJ,EAAQ,EAAAmG,EAAA+C,EAAA,EAAA/C,EAAAgD,GAAA,EAAA,MADbpF,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/6.D9BoS297.js b/backend/static/frontend/_app/immutable/nodes/6.eKPg085I.js
similarity index 96%
rename from backend/static/frontend/_app/immutable/nodes/6.D9BoS297.js
rename to backend/static/frontend/_app/immutable/nodes/6.eKPg085I.js
index 92f0f3a6..cc1ce3c1 100644
--- a/backend/static/frontend/_app/immutable/nodes/6.D9BoS297.js
+++ b/backend/static/frontend/_app/immutable/nodes/6.eKPg085I.js
@@ -1,4 +1,4 @@
-import{r as nt}from"../chunks/BJZ1igWb.js";import{b as st,a as lt,p as it,c as we}from"../chunks/D6S6XYVy.js";import{i as h}from"../chunks/DMODTt3n.js";import{o as ut}from"../chunks/Dwk6gGSK.js";import{q as dt,p as ct,f as v,b as o,a as vt,e as d,g as e,u as s,s as a,h as ue,r as u,i as G,d as X,c as x,n as re,t as ae,k as oe,l as ne}from"../chunks/B2WdN-7r.js";import{e as Ee,i as Ue}from"../chunks/CMyj8Fzw.js";import{c as g}from"../chunks/BAcG0-U_.js";import{a as Ce,s as mt}from"../chunks/DH0tcjsQ.js";import{b as ft,f as _t,g as pt}from"../chunks/DJdWGDax.js";import{a as Ie,b as Ne,C as Se}from"../chunks/BHR29ZVu.js";import{C as Re}from"../chunks/BKHeGn2e.js";import{C as Le}from"../chunks/KAiF5-Ht.js";import{L as gt}from"../chunks/D0pIT200.js";import{E as Ve}from"../chunks/B-KBEnoV.js";import{L as c}from"../chunks/BCZTK7qK.js";import{A as $t}from"../chunks/DW1P0xGN.js";import{P as bt}from"../chunks/BGqyWGxT.js";import{r as je}from"../chunks/D_mqy6BL.js";const ht=!1,xt=({params:de})=>{if(!st.isAuthenticated)throw nt(302,"/login");return{traceName:de.traceName,traceId:de.traceId}},ar=Object.freeze(Object.defineProperty({__proto__:null,load:xt,prerender:ht},Symbol.toStringTag,{value:"Module"}));var yt=v('<div class="flex items-center justify-center py-20"><!></div>'),kt=v("<!> <!>",1),At=v('<div class="grid grid-cols-2 gap-4 md:grid-cols-4"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div>'),Tt=v("<!> <!>",1),Pt=v("<!> <!>",1),wt=v("<!> <!>",1),Ct=v('<div><!> <!></div> <button class="text-xs text-muted-foreground transition-colors hover:text-foreground"> </button>',1),It=v('<div><p class="mb-2 text-xs font-medium tracking-wide text-muted-foreground uppercase">Input</p> <div class="max-h-96 overflow-auto rounded-md bg-muted p-4"><pre class="font-mono text-sm break-words whitespace-pre-wrap"> </pre></div></div>'),Nt=v('<div><p class="mb-2 text-xs font-medium tracking-wide text-muted-foreground uppercase">Output</p> <div class="max-h-96 overflow-auto rounded-md bg-muted p-4"><pre class="font-mono text-sm break-words whitespace-pre-wrap"> </pre></div></div>'),St=v('<div class="space-y-4"><!> <!></div>'),Rt=v('<div class="mb-2 max-w-sm"><img alt="Attached image" class="max-h-64 rounded-md border object-contain"/></div>'),Lt=v("<div> </div>"),jt=v('<div><div> </div> <div class="min-w-0 flex-1"><p class="mb-1 text-xs font-medium text-muted-foreground"> </p> <!> <!></div></div>'),Dt=v('<div class="space-y-3"></div>'),Ft=v("<!> <!>",1),Ot=v("<!> <!> <!>",1),Mt=v('<div class="space-y-6"><!> <!></div>');function or(de,U){ct(U,!0);const qe=s(pt);let se=ue(null),ge=ue(!0),ce=ue(""),$e=ue(!1);function be(r){return r===0?"$0":r<.001?`$${r.toFixed(6)}`:r<.01?`$${r.toFixed(4)}`:r<1?`$${r.toFixed(3)}`:`$${r.toFixed(2)}`}function he(r){try{return JSON.parse(r)}catch{return null}}function He(r,n){const j=he(r);if(!j)return null;const K=[],me=j?.messages??(Array.isArray(j)?j:null);if(!Array.isArray(me))return null;for(const y of me)y.role&&y.content!==void 0&&K.push({role:y.role,content:y.content});const P=he(n);if(P){const y=P?.choices;if(Array.isArray(y)&&y.length>0){const B=y[0]?.message;B?.content&&K.push({role:B.role||"assistant",content:B.content})}else if(Array.isArray(P?.content)){const le=P.content.filter(B=>B.type==="text").map(B=>B.text).join("");le&&K.push({role:P.role||"assistant",content:le})}}return K.length>0?K:null}function De(r){return typeof r=="string"?r:Array.isArray(r)?r.filter(n=>n.type==="text"&&n.text).map(n=>n.text).join(`
+import{r as nt}from"../chunks/B4VmGkxP.js";import{b as st,a as lt,p as it,c as we}from"../chunks/qCQ2nSvO.js";import{i as h}from"../chunks/DMODTt3n.js";import{o as ut}from"../chunks/Dwk6gGSK.js";import{q as dt,p as ct,f as v,b as o,a as vt,e as d,g as e,u as s,s as a,h as ue,r as u,i as G,d as X,c as x,n as re,t as ae,k as oe,l as ne}from"../chunks/B2WdN-7r.js";import{e as Ee,i as Ue}from"../chunks/CMyj8Fzw.js";import{c as g}from"../chunks/BAcG0-U_.js";import{a as Ce,s as mt}from"../chunks/DH0tcjsQ.js";import{b as ft,f as _t,g as pt}from"../chunks/Dq-0lVru.js";import{a as Ie,b as Ne,C as Se}from"../chunks/BHR29ZVu.js";import{C as Re}from"../chunks/BKHeGn2e.js";import{C as Le}from"../chunks/KAiF5-Ht.js";import{L as gt}from"../chunks/D0pIT200.js";import{E as Ve}from"../chunks/CFZS-Ydw.js";import{L as c}from"../chunks/BCZTK7qK.js";import{A as $t}from"../chunks/DW1P0xGN.js";import{P as bt}from"../chunks/Cplpgpvt.js";import{r as je}from"../chunks/BGApn_8u.js";const ht=!1,xt=({params:de})=>{if(!st.isAuthenticated)throw nt(302,"/login");return{traceName:de.traceName,traceId:de.traceId}},ar=Object.freeze(Object.defineProperty({__proto__:null,load:xt,prerender:ht},Symbol.toStringTag,{value:"Module"}));var yt=v('<div class="flex items-center justify-center py-20"><!></div>'),kt=v("<!> <!>",1),At=v('<div class="grid grid-cols-2 gap-4 md:grid-cols-4"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div>'),Tt=v("<!> <!>",1),Pt=v("<!> <!>",1),wt=v("<!> <!>",1),Ct=v('<div><!> <!></div> <button class="text-xs text-muted-foreground transition-colors hover:text-foreground"> </button>',1),It=v('<div><p class="mb-2 text-xs font-medium tracking-wide text-muted-foreground uppercase">Input</p> <div class="max-h-96 overflow-auto rounded-md bg-muted p-4"><pre class="font-mono text-sm break-words whitespace-pre-wrap"> </pre></div></div>'),Nt=v('<div><p class="mb-2 text-xs font-medium tracking-wide text-muted-foreground uppercase">Output</p> <div class="max-h-96 overflow-auto rounded-md bg-muted p-4"><pre class="font-mono text-sm break-words whitespace-pre-wrap"> </pre></div></div>'),St=v('<div class="space-y-4"><!> <!></div>'),Rt=v('<div class="mb-2 max-w-sm"><img alt="Attached image" class="max-h-64 rounded-md border object-contain"/></div>'),Lt=v("<div> </div>"),jt=v('<div><div> </div> <div class="min-w-0 flex-1"><p class="mb-1 text-xs font-medium text-muted-foreground"> </p> <!> <!></div></div>'),Dt=v('<div class="space-y-3"></div>'),Ft=v("<!> <!>",1),Ot=v("<!> <!> <!>",1),Mt=v('<div class="space-y-6"><!> <!></div>');function or(de,U){ct(U,!0);const qe=s(pt);let se=ue(null),ge=ue(!0),ce=ue(""),$e=ue(!1);function be(r){return r===0?"$0":r<.001?`$${r.toFixed(6)}`:r<.01?`$${r.toFixed(4)}`:r<1?`$${r.toFixed(3)}`:`$${r.toFixed(2)}`}function he(r){try{return JSON.parse(r)}catch{return null}}function He(r,n){const j=he(r);if(!j)return null;const K=[],me=j?.messages??(Array.isArray(j)?j:null);if(!Array.isArray(me))return null;for(const y of me)y.role&&y.content!==void 0&&K.push({role:y.role,content:y.content});const P=he(n);if(P){const y=P?.choices;if(Array.isArray(y)&&y.length>0){const B=y[0]?.message;B?.content&&K.push({role:B.role||"assistant",content:B.content})}else if(Array.isArray(P?.content)){const le=P.content.filter(B=>B.type==="text").map(B=>B.text).join("");le&&K.push({role:P.role||"assistant",content:le})}}return K.length>0?K:null}function De(r){return typeof r=="string"?r:Array.isArray(r)?r.filter(n=>n.type==="text"&&n.text).map(n=>n.text).join(`
`):""}function Ge(r){return Array.isArray(r)?r.filter(n=>n.type==="image_url"&&n.image_url?.url).map(n=>n.image_url.url):[]}function Fe(r){switch(r){case"system":return"System";case"user":return"User";case"assistant":return"Assistant";case"tool":return"Tool";case"function":return"Function";default:return r}}function Oe(r){const n=he(r);return n?JSON.stringify(n,null,2):r}let ve=ue(!1);async function xe(){G(ge,!0),G(ce,""),G($e,!1);try{const r=await lt.post(`/ai-traces/${U.data.traceId}`,{},{projectId:it.currentProjectId??void 0});G(se,r,!0)}catch(r){console.error(r);const n=r;n.status===404?G($e,!0):G(ce,n.message||"Failed to load AI trace details",!0)}finally{G(ge,!1)}}ut(()=>{xe()});var ye=Mt(),Me=d(ye);{let r=s(()=>decodeURIComponent(U.data.traceName)),n=s(()=>`Trace ID: ${U.data.traceId}`),j=s(()=>we({fallbackPath:je("/ai-traces/[traceName]",{traceName:encodeURIComponent(U.data.traceName)})}));bt(Me,{get title(){return e(r)},get subtitle(){return e(n)},get onBack(){return e(j)}})}var Ke=a(Me,2);{var Qe=r=>{var n=yt(),j=d(n);gt(j,{size:"xlg"}),u(n),o(r,n)},We=r=>{var n=X(),j=x(n);{var K=P=>{{let y=s(()=>we({fallbackPath:je("/ai-traces/[traceName]",{traceName:encodeURIComponent(U.data.traceName)})}));Ve(P,{status:404,title:"AI Trace Not Found",description:"The AI trace you're looking for doesn't exist or may have expired.",get onBack(){return e(y)},backLabel:"Back to Trace",onRetry:xe,get identifier(){return U.data.traceId}})}},me=P=>{var y=X(),le=x(y);{var B=Y=>{{let fe=s(()=>we({fallbackPath:je("/ai-traces/[traceName]",{traceName:encodeURIComponent(U.data.traceName)})}));Ve(Y,{status:400,title:"Failed to Load AI Trace",get description(){return e(ce)},get onBack(){return e(fe)},backLabel:"Back to Trace",onRetry:xe})}},Xe=Y=>{var fe=X(),Ye=x(fe);{var Ze=ke=>{const l=s(()=>e(se).aiTrace);var Be=Ot(),ze=x(Be);g(ze,()=>Se,(z,N)=>{N(z,{children:(Z,ie)=>{var ee=Tt(),te=x(ee);g(te,()=>Ie,(V,Q)=>{Q(V,{children:(q,H)=>{var w=kt(),k=x(w);g(k,()=>Ne,(A,S)=>{S(A,{children:($,b)=>{re();var _=ae("Trace Details");o($,_)},$$slots:{default:!0}})});var D=a(k,2);g(D,()=>Le,(A,S)=>{S(A,{children:($,b)=>{re();var _=ae("Details of this specific AI trace");o($,_)},$$slots:{default:!0}})}),o(q,w)},$$slots:{default:!0}})});var _e=a(te,2);g(_e,()=>Re,(V,Q)=>{Q(V,{children:(q,H)=>{var w=At(),k=d(w);{let t=s(()=>e(l).model||"-");c(k,{label:"Model",get value(){return e(t)},mono:!0})}var D=a(k,2);{let t=s(()=>e(l).provider||"-");c(D,{label:"Provider",get value(){return e(t)},mono:!0})}var A=a(D,2);{let t=s(()=>ft(e(l).duration));c(A,{label:"Duration",get value(){return e(t)},mono:!0,large:!0})}var S=a(A,2);{let t=s(()=>_t(e(l).recordedAt,{timezone:e(qe)}));c(S,{label:"Recorded At",get value(){return e(t)},mono:!0})}var $=a(S,2);{let t=s(()=>e(l).inputTokens.toLocaleString());c($,{label:"Input Tokens",get value(){return e(t)},mono:!0})}var b=a($,2);{let t=s(()=>e(l).outputTokens.toLocaleString());c(b,{label:"Output Tokens",get value(){return e(t)},mono:!0})}var _=a(b,2);{let t=s(()=>e(l).totalTokens.toLocaleString());c(_,{label:"Total Tokens",get value(){return e(t)},mono:!0})}var F=a(_,2);{let t=s(()=>be(e(l).totalCost));c(F,{label:"Total Cost",get value(){return e(t)},mono:!0,large:!0})}var p=a(F,2);{let t=s(()=>be(e(l).inputCost));c(p,{label:"Input Cost",get value(){return e(t)},mono:!0})}var m=a(p,2);{let t=s(()=>be(e(l).outputCost));c(m,{label:"Output Cost",get value(){return e(t)},mono:!0})}var R=a(m,2);{let t=s(()=>e(l).finishReason||"-");c(R,{label:"Finish Reason",get value(){return e(t)},mono:!0})}var i=a(R,2);{let t=s(()=>e(l).operation||"-");c(i,{label:"Operation",get value(){return e(t)},mono:!0})}var T=a(i,2);{var O=t=>{{let L=s(()=>e(l).cachedTokens.toLocaleString());c(t,{label:"Cached Tokens",get value(){return e(L)},mono:!0})}};h(T,t=>{e(l).cachedTokens>0&&t(O)})}var f=a(T,2);{var C=t=>{{let L=s(()=>e(l).reasoningTokens.toLocaleString());c(t,{label:"Reasoning Tokens",get value(){return e(L)},mono:!0})}};h(f,t=>{e(l).reasoningTokens>0&&t(C)})}var I=a(f,2);{var J=t=>{c(t,{label:"User ID",get value(){return e(l).userId},mono:!0})};h(I,t=>{e(l).userId&&t(J)})}var E=a(I,2);{let t=s(()=>e(l).serverName||"-");c(E,{label:"Server",get value(){return e(t)},mono:!0})}var W=a(E,2);{let t=s(()=>e(l).appVersion||"-");c(W,{label:"Version",get value(){return e(t)},mono:!0})}u(w),o(q,w)},$$slots:{default:!0}})}),o(Z,ee)},$$slots:{default:!0}})});var Je=a(ze,2);{var et=z=>{var N=X(),Z=x(N);g(Z,()=>Se,(ie,ee)=>{ee(ie,{children:(te,_e)=>{var V=wt(),Q=x(V);g(Q,()=>Ie,(H,w)=>{w(H,{children:(k,D)=>{var A=Pt(),S=x(A);g(S,()=>Ne,(b,_)=>{_(b,{children:(F,p)=>{re();var m=ae("Attributes");o(F,m)},$$slots:{default:!0}})});var $=a(S,2);g($,()=>Le,(b,_)=>{_(b,{children:(F,p)=>{re();var m=ae("Additional metadata attached to this trace");o(F,m)},$$slots:{default:!0}})}),o(k,A)},$$slots:{default:!0}})});var q=a(Q,2);g(q,()=>Re,(H,w)=>{w(H,{children:(k,D)=>{$t(k,{get attributes(){return e(l).attributes}})},$$slots:{default:!0}})}),o(te,V)},$$slots:{default:!0}})}),o(z,N)};h(Je,z=>{e(l).attributes&&Object.keys(e(l).attributes).length>0&&z(et)})}var tt=a(Je,2);{var rt=z=>{const N=s(()=>e(se).conversation),Z=s(()=>He(e(N).input,e(N).output));var ie=X(),ee=x(ie);g(ee,()=>Se,(te,_e)=>{_e(te,{children:(V,Q)=>{var q=Ft(),H=x(q);g(H,()=>Ie,(k,D)=>{D(k,{class:"flex flex-row items-center justify-between",children:(A,S)=>{var $=Ct(),b=x($),_=d(b);g(_,()=>Ne,(R,i)=>{i(R,{children:(T,O)=>{re();var f=ae("Conversation");o(T,f)},$$slots:{default:!0}})});var F=a(_,2);g(F,()=>Le,(R,i)=>{i(R,{children:(T,O)=>{re();var f=ae("Messages exchanged with the model");o(T,f)},$$slots:{default:!0}})}),u(b);var p=a(b,2);p.__click=()=>G(ve,!e(ve));var m=d(p,!0);u(p),oe(()=>ne(m,e(ve)?"Chat view":"Raw JSON")),o(A,$)},$$slots:{default:!0}})});var w=a(H,2);g(w,()=>Re,(k,D)=>{D(k,{children:(A,S)=>{var $=X(),b=x($);{var _=p=>{var m=St(),R=d(m);{var i=f=>{var C=It(),I=a(d(C),2),J=d(I),E=d(J,!0);u(J),u(I),u(C),oe(W=>ne(E,W),[()=>Oe(e(N).input)]),o(f,C)};h(R,f=>{e(N).input&&f(i)})}var T=a(R,2);{var O=f=>{var C=Nt(),I=a(d(C),2),J=d(I),E=d(J,!0);u(J),u(I),u(C),oe(W=>ne(E,W),[()=>Oe(e(N).output)]),o(f,C)};h(T,f=>{e(N).output&&f(O)})}u(m),o(p,m)},F=p=>{var m=Dt();Ee(m,21,()=>e(Z),Ue,(R,i)=>{var T=jt();Ce(T,1,"flex gap-3 ");var O=d(T),f=d(O,!0);u(O);var C=a(O,2),I=d(C),J=d(I,!0);u(I);var E=a(I,2);Ee(E,17,()=>Ge(e(i).content),Ue,(L,M)=>{var pe=X(),Ae=x(pe);{var at=Te=>{var Pe=Rt(),ot=d(Pe);u(Pe),oe(()=>mt(ot,"src",e(M))),o(Te,Pe)};h(Ae,Te=>{e(M)&&!e(M).includes("REDACTED")&&Te(at)})}o(L,pe)});var W=a(E,2);{var t=L=>{var M=Lt(),pe=d(M,!0);u(M),oe(Ae=>{Ce(M,1,`rounded-lg px-3 py-2 text-sm break-words whitespace-pre-wrap
${e(i).role==="user"?"bg-primary/10":e(i).role==="system"?"bg-amber-500/10 font-mono text-xs":"bg-muted"}`),ne(pe,Ae)},[()=>De(e(i).content)]),o(L,M)};h(W,L=>{De(e(i).content)&&L(t)})}u(C),u(T),oe((L,M)=>{Ce(O,1,`flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-medium
${e(i).role==="user"?"bg-primary text-primary-foreground":e(i).role==="assistant"?"border bg-muted text-muted-foreground":e(i).role==="system"?"bg-amber-500/15 text-amber-700 dark:text-amber-400":"bg-muted text-muted-foreground"}`),ne(f,L),ne(J,M)},[()=>Fe(e(i).role).charAt(0),()=>Fe(e(i).role)]),o(R,T)}),u(m),o(p,m)};h(b,p=>{e(ve)||!e(Z)?p(_):p(F,!1)})}o(A,$)},$$slots:{default:!0}})}),o(V,q)},$$slots:{default:!0}})}),o(z,ie)};h(tt,z=>{e(se).conversation&&z(rt)})}o(ke,Be)};h(Ye,ke=>{e(se)&&ke(Ze)},!0)}o(Y,fe)};h(le,Y=>{e(ce)?Y(B):Y(Xe,!1)},!0)}o(P,y)};h(j,P=>{e($e)?P(K):P(me,!1)},!0)}o(r,n)};h(Ke,r=>{e(ge)?r(Qe):r(We,!1)})}u(ye),o(de,ye),vt()}dt(["click"]);export{or as component,ar as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/6.D9BoS297.js.map b/backend/static/frontend/_app/immutable/nodes/6.eKPg085I.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/6.D9BoS297.js.map
rename to backend/static/frontend/_app/immutable/nodes/6.eKPg085I.js.map
index 60541f6e..6efba1d7 100644
--- a/backend/static/frontend/_app/immutable/nodes/6.D9BoS297.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/6.eKPg085I.js.map
@@ -1 +1 @@
-{"version":3,"file":"6.D9BoS297.js","sources":["../../../../../../src/routes/ai-traces/[traceName]/[traceId]/+page.ts","../../../../../../src/routes/ai-traces/[traceName]/[traceId]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\ttraceName: params.traceName,\n\t\ttraceId: params.traceId\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { api } from '$lib/api';\n\timport { formatDuration, formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport * as Card from '$lib/components/ui/card';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { LabelValue } from '$lib/components/ui/label-value';\n\timport { AttributesGrid } from '$lib/components/ui/attributes-grid/index.js';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport { resolve } from '$app/paths';\n\n\ttype AiTrace = {\n\t\tid: string;\n\t\trecordedAt: string;\n\t\tduration: number;\n\t\tstatusCode: number;\n\t\tmodel: string;\n\t\tresponseModel: string;\n\t\tprovider: string;\n\t\toperation: string;\n\t\tinputTokens: number;\n\t\toutputTokens: number;\n\t\ttotalTokens: number;\n\t\tcachedTokens: number;\n\t\treasoningTokens: number;\n\t\tinputCost: number;\n\t\toutputCost: number;\n\t\ttotalCost: number;\n\t\ttraceName: string;\n\t\tuserId: string;\n\t\tfinishReason: string;\n\t\tserverName: string;\n\t\tappVersion: string;\n\t\tattributes: Record<string, string> | null;\n\t};\n\n\ttype AiTraceDetailResponse = {\n\t\taiTrace: AiTrace;\n\t\tconversation?: {\n\t\t\tinput: string;\n\t\t\toutput: string;\n\t\t};\n\t};\n\n\tlet { data } = $props();\n\n\tconst timezone = $derived(getTimezone());\n\n\tlet response = $state<AiTraceDetailResponse | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\n\tfunction formatCost(cost: number): string {\n\t\tif (cost === 0) return '$0';\n\t\tif (cost < 0.001) return `$${cost.toFixed(6)}`;\n\t\tif (cost < 0.01) return `$${cost.toFixed(4)}`;\n\t\tif (cost < 1) return `$${cost.toFixed(3)}`;\n\t\treturn `$${cost.toFixed(2)}`;\n\t}\n\n\ttype ChatMessage = {\n\t\trole: string;\n\t\tcontent: string | ContentPart[];\n\t};\n\n\ttype ContentPart = {\n\t\ttype: string;\n\t\ttext?: string;\n\t\timage_url?: { url: string };\n\t};\n\n\tfunction tryParseJson(str: string): any {\n\t\ttry {\n\t\t\treturn JSON.parse(str);\n\t\t} catch {\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tfunction extractMessages(input: string, output: string): ChatMessage[] | null {\n\t\tconst inputParsed = tryParseJson(input);\n\t\tif (!inputParsed) return null;\n\n\t\tconst messages: ChatMessage[] = [];\n\n\t\t// Extract input messages — could be {messages: [...]} or just [...]\n\t\tconst inputMessages =\n\t\t\tinputParsed?.messages ?? (Array.isArray(inputParsed) ? inputParsed : null);\n\t\tif (!Array.isArray(inputMessages)) return null;\n\n\t\tfor (const msg of inputMessages) {\n\t\t\tif (msg.role && msg.content !== undefined) {\n\t\t\t\tmessages.push({ role: msg.role, content: msg.content });\n\t\t\t}\n\t\t}\n\n\t\t// Extract assistant response from output\n\t\tconst outputParsed = tryParseJson(output);\n\t\tif (outputParsed) {\n\t\t\t// OpenAI-style: {choices: [{message: {role, content}}]}\n\t\t\tconst choices = outputParsed?.choices;\n\t\t\tif (Array.isArray(choices) && choices.length > 0) {\n\t\t\t\tconst choice = choices[0];\n\t\t\t\tconst msg = choice?.message;\n\t\t\t\tif (msg?.content) {\n\t\t\t\t\tmessages.push({ role: msg.role || 'assistant', content: msg.content });\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Anthropic-style: {content: [{type: \"text\", text: \"...\"}]}\n\t\t\telse if (Array.isArray(outputParsed?.content)) {\n\t\t\t\tconst text = outputParsed.content\n\t\t\t\t\t.filter((c: any) => c.type === 'text')\n\t\t\t\t\t.map((c: any) => c.text)\n\t\t\t\t\t.join('');\n\t\t\t\tif (text) {\n\t\t\t\t\tmessages.push({ role: outputParsed.role || 'assistant', content: text });\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn messages.length > 0 ? messages : null;\n\t}\n\n\tfunction getMessageText(content: string | ContentPart[]): string {\n\t\tif (typeof content === 'string') return content;\n\t\tif (Array.isArray(content)) {\n\t\t\treturn content\n\t\t\t\t.filter((p) => p.type === 'text' && p.text)\n\t\t\t\t.map((p) => p.text!)\n\t\t\t\t.join('\\n');\n\t\t}\n\t\treturn '';\n\t}\n\n\tfunction getMessageImages(content: string | ContentPart[]): string[] {\n\t\tif (!Array.isArray(content)) return [];\n\t\treturn content\n\t\t\t.filter((p) => p.type === 'image_url' && p.image_url?.url)\n\t\t\t.map((p) => p.image_url!.url);\n\t}\n\n\tfunction getRoleLabel(role: string): string {\n\t\tswitch (role) {\n\t\t\tcase 'system':\n\t\t\t\treturn 'System';\n\t\t\tcase 'user':\n\t\t\t\treturn 'User';\n\t\t\tcase 'assistant':\n\t\t\t\treturn 'Assistant';\n\t\t\tcase 'tool':\n\t\t\t\treturn 'Tool';\n\t\t\tcase 'function':\n\t\t\t\treturn 'Function';\n\t\t\tdefault:\n\t\t\t\treturn role;\n\t\t}\n\t}\n\n\tfunction formatConversationContent(raw: string): string {\n\t\tconst parsed = tryParseJson(raw);\n\t\tif (parsed) {\n\t\t\treturn JSON.stringify(parsed, null, 2);\n\t\t}\n\t\treturn raw;\n\t}\n\n\tlet showRawJson = $state(false);\n\n\tasync function loadData() {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\n\t\ttry {\n\t\t\tconst result = await api.post(\n\t\t\t\t`/ai-traces/${data.traceId}`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\tresponse = result;\n\t\t} catch (e: unknown) {\n\t\t\tconsole.error(e);\n\t\t\tconst err = e as { status?: number; message?: string };\n\t\t\tif (err.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = err.message || 'Failed to load AI trace details';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\tloadData();\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t<PageHeader\n\t\ttitle={decodeURIComponent(data.traceName)}\n\t\tsubtitle={`Trace ID: ${data.traceId}`}\n\t\tonBack={createSmartBackHandler({\n\t\t\tfallbackPath: resolve('/ai-traces/[traceName]', {\n\t\t\t\ttraceName: encodeURIComponent(data.traceName)\n\t\t\t})\n\t\t})}\n\t/>\n\n\t{#if loading}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"AI Trace Not Found\"\n\t\t\tdescription=\"The AI trace you're looking for doesn't exist or may have expired.\"\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/ai-traces/[traceName]', {\n\t\t\t\t\ttraceName: encodeURIComponent(data.traceName)\n\t\t\t\t})\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Trace\"\n\t\t\tonRetry={loadData}\n\t\t\tidentifier={data.traceId}\n\t\t/>\n\t{:else if error}\n\t\t<ErrorDisplay\n\t\t\tstatus={400}\n\t\t\ttitle=\"Failed to Load AI Trace\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/ai-traces/[traceName]', {\n\t\t\t\t\ttraceName: encodeURIComponent(data.traceName)\n\t\t\t\t})\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Trace\"\n\t\t\tonRetry={loadData}\n\t\t/>\n\t{:else if response}\n\t\t{@const trace = response.aiTrace}\n\n\t\t<Card.Root>\n\t\t\t<Card.Header>\n\t\t\t\t<Card.Title>Trace Details</Card.Title>\n\t\t\t\t<Card.Description>Details of this specific AI trace</Card.Description>\n\t\t\t</Card.Header>\n\t\t\t<Card.Content>\n\t\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-4\">\n\t\t\t\t\t<LabelValue label=\"Model\" value={trace.model || '-'} mono />\n\t\t\t\t\t<LabelValue label=\"Provider\" value={trace.provider || '-'} mono />\n\t\t\t\t\t<LabelValue label=\"Duration\" value={formatDuration(trace.duration)} mono large />\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\tvalue={formatDateTime(trace.recordedAt, { timezone })}\n\t\t\t\t\t\tmono\n\t\t\t\t\t/>\n\t\t\t\t\t<LabelValue label=\"Input Tokens\" value={trace.inputTokens.toLocaleString()} mono />\n\t\t\t\t\t<LabelValue label=\"Output Tokens\" value={trace.outputTokens.toLocaleString()} mono />\n\t\t\t\t\t<LabelValue label=\"Total Tokens\" value={trace.totalTokens.toLocaleString()} mono />\n\t\t\t\t\t<LabelValue label=\"Total Cost\" value={formatCost(trace.totalCost)} mono large />\n\t\t\t\t\t<LabelValue label=\"Input Cost\" value={formatCost(trace.inputCost)} mono />\n\t\t\t\t\t<LabelValue label=\"Output Cost\" value={formatCost(trace.outputCost)} mono />\n\t\t\t\t\t<LabelValue label=\"Finish Reason\" value={trace.finishReason || '-'} mono />\n\t\t\t\t\t<LabelValue label=\"Operation\" value={trace.operation || '-'} mono />\n\t\t\t\t\t{#if trace.cachedTokens > 0}\n\t\t\t\t\t\t<LabelValue label=\"Cached Tokens\" value={trace.cachedTokens.toLocaleString()} mono />\n\t\t\t\t\t{/if}\n\t\t\t\t\t{#if trace.reasoningTokens > 0}\n\t\t\t\t\t\t<LabelValue\n\t\t\t\t\t\t\tlabel=\"Reasoning Tokens\"\n\t\t\t\t\t\t\tvalue={trace.reasoningTokens.toLocaleString()}\n\t\t\t\t\t\t\tmono\n\t\t\t\t\t\t/>\n\t\t\t\t\t{/if}\n\t\t\t\t\t{#if trace.userId}\n\t\t\t\t\t\t<LabelValue label=\"User ID\" value={trace.userId} mono />\n\t\t\t\t\t{/if}\n\t\t\t\t\t<LabelValue label=\"Server\" value={trace.serverName || '-'} mono />\n\t\t\t\t\t<LabelValue label=\"Version\" value={trace.appVersion || '-'} mono />\n\t\t\t\t</div>\n\t\t\t</Card.Content>\n\t\t</Card.Root>\n\n\t\t{#if trace.attributes && Object.keys(trace.attributes).length > 0}\n\t\t\t<Card.Root>\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<Card.Title>Attributes</Card.Title>\n\t\t\t\t\t<Card.Description>Additional metadata attached to this trace</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content>\n\t\t\t\t\t<AttributesGrid attributes={trace.attributes} />\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\n\t\t{#if response.conversation}\n\t\t\t{@const conv = response.conversation}\n\t\t\t{@const chatMessages = extractMessages(conv.input, conv.output)}\n\n\t\t\t<Card.Root>\n\t\t\t\t<Card.Header class=\"flex flex-row items-center justify-between\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<Card.Title>Conversation</Card.Title>\n\t\t\t\t\t\t<Card.Description>Messages exchanged with the model</Card.Description>\n\t\t\t\t\t</div>\n\t\t\t\t\t<button\n\t\t\t\t\t\tclass=\"text-xs text-muted-foreground transition-colors hover:text-foreground\"\n\t\t\t\t\t\tonclick={() => (showRawJson = !showRawJson)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{showRawJson ? 'Chat view' : 'Raw JSON'}\n\t\t\t\t\t</button>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content>\n\t\t\t\t\t{#if showRawJson || !chatMessages}\n\t\t\t\t\t\t<div class=\"space-y-4\">\n\t\t\t\t\t\t\t{#if conv.input}\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<p class=\"mb-2 text-xs font-medium tracking-wide text-muted-foreground uppercase\">\n\t\t\t\t\t\t\t\t\t\tInput\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t<div class=\"max-h-96 overflow-auto rounded-md bg-muted p-4\">\n\t\t\t\t\t\t\t\t\t\t<pre\n\t\t\t\t\t\t\t\t\t\t\tclass=\"font-mono text-sm break-words whitespace-pre-wrap\">{formatConversationContent(\n\t\t\t\t\t\t\t\t\t\t\t\tconv.input\n\t\t\t\t\t\t\t\t\t\t\t)}</pre>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{#if conv.output}\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<p class=\"mb-2 text-xs font-medium tracking-wide text-muted-foreground uppercase\">\n\t\t\t\t\t\t\t\t\t\tOutput\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t<div class=\"max-h-96 overflow-auto rounded-md bg-muted p-4\">\n\t\t\t\t\t\t\t\t\t\t<pre\n\t\t\t\t\t\t\t\t\t\t\tclass=\"font-mono text-sm break-words whitespace-pre-wrap\">{formatConversationContent(\n\t\t\t\t\t\t\t\t\t\t\t\tconv.output\n\t\t\t\t\t\t\t\t\t\t\t)}</pre>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<div class=\"space-y-3\">\n\t\t\t\t\t\t\t{#each chatMessages as msg}\n\t\t\t\t\t\t\t\t<div class=\"flex gap-3 {msg.role === 'assistant' ? '' : ''}\">\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tclass=\"flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-medium\n\t\t\t\t\t\t\t\t\t\t{msg.role === 'user'\n\t\t\t\t\t\t\t\t\t\t\t? 'bg-primary text-primary-foreground'\n\t\t\t\t\t\t\t\t\t\t\t: msg.role === 'assistant'\n\t\t\t\t\t\t\t\t\t\t\t\t? 'border bg-muted text-muted-foreground'\n\t\t\t\t\t\t\t\t\t\t\t\t: msg.role === 'system'\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 'bg-amber-500/15 text-amber-700 dark:text-amber-400'\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 'bg-muted text-muted-foreground'}\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{getRoleLabel(msg.role).charAt(0)}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t\t\t\t\t\t\t\t<p class=\"mb-1 text-xs font-medium text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t\t{getRoleLabel(msg.role)}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t{#each getMessageImages(msg.content) as imageUrl}\n\t\t\t\t\t\t\t\t\t\t\t{#if imageUrl && !imageUrl.includes('REDACTED')}\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"mb-2 max-w-sm\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc={imageUrl}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\talt=\"Attached image\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"max-h-64 rounded-md border object-contain\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t\t\t{#if getMessageText(msg.content)}\n\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"rounded-lg px-3 py-2 text-sm break-words whitespace-pre-wrap\n\t\t\t\t\t\t\t\t\t\t\t\t{msg.role === 'user'\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 'bg-primary/10'\n\t\t\t\t\t\t\t\t\t\t\t\t\t: msg.role === 'system'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 'bg-amber-500/10 font-mono text-xs'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'bg-muted'}\"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{getMessageText(msg.content)}\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/if}\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\t{/if}\n</div>\n"],"names":["prerender","load","params","authState","redirect","timezone","getTimezone","response","$.state","loading","error","notFound","formatCost","cost","tryParseJson","str","extractMessages","input","output","inputParsed","messages","inputMessages","msg","outputParsed","choices","text","c","getMessageText","content","p","getMessageImages","getRoleLabel","role","formatConversationContent","raw","parsed","showRawJson","loadData","$.set","result","api","$$props","projectsState","e","err","onMount","div","root","$0","$.derived","createSmartBackHandler","resolve","PageHeader","node","div_1","root_1","LoadingCircle","node_2","ErrorDisplay","$$anchor","trace","$.get","Card_Root","Card_Header","Card_Title","Card_Description","Card_Content","div_2","root_12","LabelValue","node_11","node_12","formatDuration","node_13","formatDateTime","node_14","node_15","node_16","node_17","node_18","node_19","node_20","node_21","node_22","$$render","consequent_3","consequent_4","consequent_5","node_26","node_27","Card_Root_1","Card_Header_1","Card_Title_1","Card_Description_1","Card_Content_1","AttributesGrid","consequent_6","conv","chatMessages","Card_Root_2","Card_Header_2","div_3","$.first_child","fragment_17","Card_Title_2","Card_Description_2","button","$.sibling","text_7","$.child","$.reset","Card_Content_2","div_4","root_28","div_5","root_29","div_6","pre","text_8","consequent_7","div_7","root_30","div_8","pre_1","text_9","consequent_8","div_9","root_31","$.index","div_10","root_32","div_11","text_10","div_12","p_1","$.each","node_43","imageUrl","div_13","root_34","img","$.template_effect","$.set_attribute","consequent_10","div_14","root_35","text_12","$.set_class","$.append","consequent_11","consequent_9","alternate","consequent_12","consequent_13","consequent_2","alternate_1","consequent_1","alternate_2","consequent","alternate_3"],"mappings":"y8BAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,MAAa,CAC7C,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAG7B,MAAO,CACN,UAAWF,GAAO,UAClB,QAASA,GAAO,OAAA,CAElB,08CCfA,UAkDO,MAAAG,KAAoBC,EAAW,MAEjCC,GAAWC,GAAqC,IAAI,EACpDC,GAAUD,GAAO,EAAI,EACrBE,GAAQF,GAAO,EAAE,EACjBG,GAAWH,GAAO,EAAK,WAElBI,GAAWC,EAAsB,QACrCA,IAAS,EAAU,KACnBA,EAAO,KAAK,IAAaA,EAAK,QAAQ,CAAC,CAAA,GACvCA,EAAO,IAAI,IAAaA,EAAK,QAAQ,CAAC,CAAA,GACtCA,EAAO,EAAC,IAAaA,EAAK,QAAQ,CAAC,CAAA,OAC5BA,EAAK,QAAQ,CAAC,CAAA,EAC1B,UAaSC,GAAaC,EAAkB,CACnC,GAAA,QACI,KAAK,MAAMA,CAAG,CACtB,MAAQ,QACA,IACR,CACD,CAES,SAAAC,GAAgBC,EAAeC,EAAsC,OACvEC,EAAcL,GAAaG,CAAK,EACjC,GAAA,CAAAE,SAAoB,WAEnBC,EAAuB,CAAA,EAGvBC,GACLF,GAAa,WAAa,MAAM,QAAQA,CAAW,EAAIA,EAAc,MACjE,GAAA,CAAA,MAAM,QAAQE,EAAa,SAAU,eAE/BC,KAAOD,GACbC,EAAI,MAAQA,EAAI,UAAY,QAC/BF,EAAS,KAAI,CAAG,KAAME,EAAI,KAAM,QAASA,EAAI,QAAO,QAKhDC,EAAeT,GAAaI,CAAM,EACpC,GAAAK,EAAc,OAEXC,EAAUD,GAAc,WAC1B,MAAM,QAAQC,CAAO,GAAKA,EAAQ,OAAS,EAAG,OAE3CF,EADSE,EAAQ,CAAC,GACJ,QAChBF,G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,OAAS,SACZ,qDACA,gCAAgC,EAAA,oBAEpC,IAAAS,KAAaT,CAAG,EAAC,IAAI,EAAE,OAAO,CAAC,MAI9BS,GAAY8B,EAACvC,CAAG,EAAC,IAAI,QAfxB2G,CAAG,MAFLH,CAAG,MAAHA,CAAG,WA9BAjE,EAAAzB,EAAW,MAAK8D,CAAY,EAAAd,EAAAkE,CAAA,EAAAlE,EAAAmE,EAAA,EAAA,wFAlB/B1F,EAAAtD,EAAQ,EAAC,cAAY6E,EAAAoE,EAAA,0BAzDjBjJ,EAAQ,GAAA6E,GAAAqE,EAAA,2BAbR/I,EAAK,EAAA0E,EAAAsE,CAAA,EAAAtE,EAAAuE,GAAA,EAAA,yBAdLhJ,EAAQ,EAAAyE,EAAAwE,CAAA,EAAAxE,EAAAyE,GAAA,EAAA,0BAJbpJ,EAAO,EAAA2E,EAAA0E,EAAA,EAAA1E,EAAA2E,GAAA,EAAA,MAXZjH,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
+{"version":3,"file":"6.eKPg085I.js","sources":["../../../../../../src/routes/ai-traces/[traceName]/[traceId]/+page.ts","../../../../../../src/routes/ai-traces/[traceName]/[traceId]/+page.svelte"],"sourcesContent":["import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const prerender = false;\n\nexport const load: PageLoad = ({ params }) => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n\n\treturn {\n\t\ttraceName: params.traceName,\n\t\ttraceId: params.traceId\n\t};\n};\n","<script lang=\"ts\">\n\timport { onMount } from 'svelte';\n\timport { api } from '$lib/api';\n\timport { formatDuration, formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\timport * as Card from '$lib/components/ui/card';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport { ErrorDisplay } from '$lib/components/ui/error-display';\n\timport { projectsState } from '$lib/state/projects.svelte';\n\timport { LabelValue } from '$lib/components/ui/label-value';\n\timport { AttributesGrid } from '$lib/components/ui/attributes-grid/index.js';\n\timport PageHeader from '$lib/components/issues/page-header.svelte';\n\timport { createSmartBackHandler } from '$lib/utils/back-navigation';\n\timport { resolve } from '$app/paths';\n\n\ttype AiTrace = {\n\t\tid: string;\n\t\trecordedAt: string;\n\t\tduration: number;\n\t\tstatusCode: number;\n\t\tmodel: string;\n\t\tresponseModel: string;\n\t\tprovider: string;\n\t\toperation: string;\n\t\tinputTokens: number;\n\t\toutputTokens: number;\n\t\ttotalTokens: number;\n\t\tcachedTokens: number;\n\t\treasoningTokens: number;\n\t\tinputCost: number;\n\t\toutputCost: number;\n\t\ttotalCost: number;\n\t\ttraceName: string;\n\t\tuserId: string;\n\t\tfinishReason: string;\n\t\tserverName: string;\n\t\tappVersion: string;\n\t\tattributes: Record<string, string> | null;\n\t};\n\n\ttype AiTraceDetailResponse = {\n\t\taiTrace: AiTrace;\n\t\tconversation?: {\n\t\t\tinput: string;\n\t\t\toutput: string;\n\t\t};\n\t};\n\n\tlet { data } = $props();\n\n\tconst timezone = $derived(getTimezone());\n\n\tlet response = $state<AiTraceDetailResponse | null>(null);\n\tlet loading = $state(true);\n\tlet error = $state('');\n\tlet notFound = $state(false);\n\n\tfunction formatCost(cost: number): string {\n\t\tif (cost === 0) return '$0';\n\t\tif (cost < 0.001) return `$${cost.toFixed(6)}`;\n\t\tif (cost < 0.01) return `$${cost.toFixed(4)}`;\n\t\tif (cost < 1) return `$${cost.toFixed(3)}`;\n\t\treturn `$${cost.toFixed(2)}`;\n\t}\n\n\ttype ChatMessage = {\n\t\trole: string;\n\t\tcontent: string | ContentPart[];\n\t};\n\n\ttype ContentPart = {\n\t\ttype: string;\n\t\ttext?: string;\n\t\timage_url?: { url: string };\n\t};\n\n\tfunction tryParseJson(str: string): any {\n\t\ttry {\n\t\t\treturn JSON.parse(str);\n\t\t} catch {\n\t\t\treturn null;\n\t\t}\n\t}\n\n\tfunction extractMessages(input: string, output: string): ChatMessage[] | null {\n\t\tconst inputParsed = tryParseJson(input);\n\t\tif (!inputParsed) return null;\n\n\t\tconst messages: ChatMessage[] = [];\n\n\t\t// Extract input messages — could be {messages: [...]} or just [...]\n\t\tconst inputMessages =\n\t\t\tinputParsed?.messages ?? (Array.isArray(inputParsed) ? inputParsed : null);\n\t\tif (!Array.isArray(inputMessages)) return null;\n\n\t\tfor (const msg of inputMessages) {\n\t\t\tif (msg.role && msg.content !== undefined) {\n\t\t\t\tmessages.push({ role: msg.role, content: msg.content });\n\t\t\t}\n\t\t}\n\n\t\t// Extract assistant response from output\n\t\tconst outputParsed = tryParseJson(output);\n\t\tif (outputParsed) {\n\t\t\t// OpenAI-style: {choices: [{message: {role, content}}]}\n\t\t\tconst choices = outputParsed?.choices;\n\t\t\tif (Array.isArray(choices) && choices.length > 0) {\n\t\t\t\tconst choice = choices[0];\n\t\t\t\tconst msg = choice?.message;\n\t\t\t\tif (msg?.content) {\n\t\t\t\t\tmessages.push({ role: msg.role || 'assistant', content: msg.content });\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Anthropic-style: {content: [{type: \"text\", text: \"...\"}]}\n\t\t\telse if (Array.isArray(outputParsed?.content)) {\n\t\t\t\tconst text = outputParsed.content\n\t\t\t\t\t.filter((c: any) => c.type === 'text')\n\t\t\t\t\t.map((c: any) => c.text)\n\t\t\t\t\t.join('');\n\t\t\t\tif (text) {\n\t\t\t\t\tmessages.push({ role: outputParsed.role || 'assistant', content: text });\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn messages.length > 0 ? messages : null;\n\t}\n\n\tfunction getMessageText(content: string | ContentPart[]): string {\n\t\tif (typeof content === 'string') return content;\n\t\tif (Array.isArray(content)) {\n\t\t\treturn content\n\t\t\t\t.filter((p) => p.type === 'text' && p.text)\n\t\t\t\t.map((p) => p.text!)\n\t\t\t\t.join('\\n');\n\t\t}\n\t\treturn '';\n\t}\n\n\tfunction getMessageImages(content: string | ContentPart[]): string[] {\n\t\tif (!Array.isArray(content)) return [];\n\t\treturn content\n\t\t\t.filter((p) => p.type === 'image_url' && p.image_url?.url)\n\t\t\t.map((p) => p.image_url!.url);\n\t}\n\n\tfunction getRoleLabel(role: string): string {\n\t\tswitch (role) {\n\t\t\tcase 'system':\n\t\t\t\treturn 'System';\n\t\t\tcase 'user':\n\t\t\t\treturn 'User';\n\t\t\tcase 'assistant':\n\t\t\t\treturn 'Assistant';\n\t\t\tcase 'tool':\n\t\t\t\treturn 'Tool';\n\t\t\tcase 'function':\n\t\t\t\treturn 'Function';\n\t\t\tdefault:\n\t\t\t\treturn role;\n\t\t}\n\t}\n\n\tfunction formatConversationContent(raw: string): string {\n\t\tconst parsed = tryParseJson(raw);\n\t\tif (parsed) {\n\t\t\treturn JSON.stringify(parsed, null, 2);\n\t\t}\n\t\treturn raw;\n\t}\n\n\tlet showRawJson = $state(false);\n\n\tasync function loadData() {\n\t\tloading = true;\n\t\terror = '';\n\t\tnotFound = false;\n\n\t\ttry {\n\t\t\tconst result = await api.post(\n\t\t\t\t`/ai-traces/${data.traceId}`,\n\t\t\t\t{},\n\t\t\t\t{ projectId: projectsState.currentProjectId ?? undefined }\n\t\t\t);\n\t\t\tresponse = result;\n\t\t} catch (e: unknown) {\n\t\t\tconsole.error(e);\n\t\t\tconst err = e as { status?: number; message?: string };\n\t\t\tif (err.status === 404) {\n\t\t\t\tnotFound = true;\n\t\t\t} else {\n\t\t\t\terror = err.message || 'Failed to load AI trace details';\n\t\t\t}\n\t\t} finally {\n\t\t\tloading = false;\n\t\t}\n\t}\n\n\tonMount(() => {\n\t\tloadData();\n\t});\n</script>\n\n<div class=\"space-y-6\">\n\t<PageHeader\n\t\ttitle={decodeURIComponent(data.traceName)}\n\t\tsubtitle={`Trace ID: ${data.traceId}`}\n\t\tonBack={createSmartBackHandler({\n\t\t\tfallbackPath: resolve('/ai-traces/[traceName]', {\n\t\t\t\ttraceName: encodeURIComponent(data.traceName)\n\t\t\t})\n\t\t})}\n\t/>\n\n\t{#if loading}\n\t\t<div class=\"flex items-center justify-center py-20\">\n\t\t\t<LoadingCircle size=\"xlg\" />\n\t\t</div>\n\t{:else if notFound}\n\t\t<ErrorDisplay\n\t\t\tstatus={404}\n\t\t\ttitle=\"AI Trace Not Found\"\n\t\t\tdescription=\"The AI trace you're looking for doesn't exist or may have expired.\"\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/ai-traces/[traceName]', {\n\t\t\t\t\ttraceName: encodeURIComponent(data.traceName)\n\t\t\t\t})\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Trace\"\n\t\t\tonRetry={loadData}\n\t\t\tidentifier={data.traceId}\n\t\t/>\n\t{:else if error}\n\t\t<ErrorDisplay\n\t\t\tstatus={400}\n\t\t\ttitle=\"Failed to Load AI Trace\"\n\t\t\tdescription={error}\n\t\t\tonBack={createSmartBackHandler({\n\t\t\t\tfallbackPath: resolve('/ai-traces/[traceName]', {\n\t\t\t\t\ttraceName: encodeURIComponent(data.traceName)\n\t\t\t\t})\n\t\t\t})}\n\t\t\tbackLabel=\"Back to Trace\"\n\t\t\tonRetry={loadData}\n\t\t/>\n\t{:else if response}\n\t\t{@const trace = response.aiTrace}\n\n\t\t<Card.Root>\n\t\t\t<Card.Header>\n\t\t\t\t<Card.Title>Trace Details</Card.Title>\n\t\t\t\t<Card.Description>Details of this specific AI trace</Card.Description>\n\t\t\t</Card.Header>\n\t\t\t<Card.Content>\n\t\t\t\t<div class=\"grid grid-cols-2 gap-4 md:grid-cols-4\">\n\t\t\t\t\t<LabelValue label=\"Model\" value={trace.model || '-'} mono />\n\t\t\t\t\t<LabelValue label=\"Provider\" value={trace.provider || '-'} mono />\n\t\t\t\t\t<LabelValue label=\"Duration\" value={formatDuration(trace.duration)} mono large />\n\t\t\t\t\t<LabelValue\n\t\t\t\t\t\tlabel=\"Recorded At\"\n\t\t\t\t\t\tvalue={formatDateTime(trace.recordedAt, { timezone })}\n\t\t\t\t\t\tmono\n\t\t\t\t\t/>\n\t\t\t\t\t<LabelValue label=\"Input Tokens\" value={trace.inputTokens.toLocaleString()} mono />\n\t\t\t\t\t<LabelValue label=\"Output Tokens\" value={trace.outputTokens.toLocaleString()} mono />\n\t\t\t\t\t<LabelValue label=\"Total Tokens\" value={trace.totalTokens.toLocaleString()} mono />\n\t\t\t\t\t<LabelValue label=\"Total Cost\" value={formatCost(trace.totalCost)} mono large />\n\t\t\t\t\t<LabelValue label=\"Input Cost\" value={formatCost(trace.inputCost)} mono />\n\t\t\t\t\t<LabelValue label=\"Output Cost\" value={formatCost(trace.outputCost)} mono />\n\t\t\t\t\t<LabelValue label=\"Finish Reason\" value={trace.finishReason || '-'} mono />\n\t\t\t\t\t<LabelValue label=\"Operation\" value={trace.operation || '-'} mono />\n\t\t\t\t\t{#if trace.cachedTokens > 0}\n\t\t\t\t\t\t<LabelValue label=\"Cached Tokens\" value={trace.cachedTokens.toLocaleString()} mono />\n\t\t\t\t\t{/if}\n\t\t\t\t\t{#if trace.reasoningTokens > 0}\n\t\t\t\t\t\t<LabelValue\n\t\t\t\t\t\t\tlabel=\"Reasoning Tokens\"\n\t\t\t\t\t\t\tvalue={trace.reasoningTokens.toLocaleString()}\n\t\t\t\t\t\t\tmono\n\t\t\t\t\t\t/>\n\t\t\t\t\t{/if}\n\t\t\t\t\t{#if trace.userId}\n\t\t\t\t\t\t<LabelValue label=\"User ID\" value={trace.userId} mono />\n\t\t\t\t\t{/if}\n\t\t\t\t\t<LabelValue label=\"Server\" value={trace.serverName || '-'} mono />\n\t\t\t\t\t<LabelValue label=\"Version\" value={trace.appVersion || '-'} mono />\n\t\t\t\t</div>\n\t\t\t</Card.Content>\n\t\t</Card.Root>\n\n\t\t{#if trace.attributes && Object.keys(trace.attributes).length > 0}\n\t\t\t<Card.Root>\n\t\t\t\t<Card.Header>\n\t\t\t\t\t<Card.Title>Attributes</Card.Title>\n\t\t\t\t\t<Card.Description>Additional metadata attached to this trace</Card.Description>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content>\n\t\t\t\t\t<AttributesGrid attributes={trace.attributes} />\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\n\t\t{#if response.conversation}\n\t\t\t{@const conv = response.conversation}\n\t\t\t{@const chatMessages = extractMessages(conv.input, conv.output)}\n\n\t\t\t<Card.Root>\n\t\t\t\t<Card.Header class=\"flex flex-row items-center justify-between\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<Card.Title>Conversation</Card.Title>\n\t\t\t\t\t\t<Card.Description>Messages exchanged with the model</Card.Description>\n\t\t\t\t\t</div>\n\t\t\t\t\t<button\n\t\t\t\t\t\tclass=\"text-xs text-muted-foreground transition-colors hover:text-foreground\"\n\t\t\t\t\t\tonclick={() => (showRawJson = !showRawJson)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{showRawJson ? 'Chat view' : 'Raw JSON'}\n\t\t\t\t\t</button>\n\t\t\t\t</Card.Header>\n\t\t\t\t<Card.Content>\n\t\t\t\t\t{#if showRawJson || !chatMessages}\n\t\t\t\t\t\t<div class=\"space-y-4\">\n\t\t\t\t\t\t\t{#if conv.input}\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<p class=\"mb-2 text-xs font-medium tracking-wide text-muted-foreground uppercase\">\n\t\t\t\t\t\t\t\t\t\tInput\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t<div class=\"max-h-96 overflow-auto rounded-md bg-muted p-4\">\n\t\t\t\t\t\t\t\t\t\t<pre\n\t\t\t\t\t\t\t\t\t\t\tclass=\"font-mono text-sm break-words whitespace-pre-wrap\">{formatConversationContent(\n\t\t\t\t\t\t\t\t\t\t\t\tconv.input\n\t\t\t\t\t\t\t\t\t\t\t)}</pre>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t{#if conv.output}\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<p class=\"mb-2 text-xs font-medium tracking-wide text-muted-foreground uppercase\">\n\t\t\t\t\t\t\t\t\t\tOutput\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t<div class=\"max-h-96 overflow-auto rounded-md bg-muted p-4\">\n\t\t\t\t\t\t\t\t\t\t<pre\n\t\t\t\t\t\t\t\t\t\t\tclass=\"font-mono text-sm break-words whitespace-pre-wrap\">{formatConversationContent(\n\t\t\t\t\t\t\t\t\t\t\t\tconv.output\n\t\t\t\t\t\t\t\t\t\t\t)}</pre>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{:else}\n\t\t\t\t\t\t<div class=\"space-y-3\">\n\t\t\t\t\t\t\t{#each chatMessages as msg}\n\t\t\t\t\t\t\t\t<div class=\"flex gap-3 {msg.role === 'assistant' ? '' : ''}\">\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\tclass=\"flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-medium\n\t\t\t\t\t\t\t\t\t\t{msg.role === 'user'\n\t\t\t\t\t\t\t\t\t\t\t? 'bg-primary text-primary-foreground'\n\t\t\t\t\t\t\t\t\t\t\t: msg.role === 'assistant'\n\t\t\t\t\t\t\t\t\t\t\t\t? 'border bg-muted text-muted-foreground'\n\t\t\t\t\t\t\t\t\t\t\t\t: msg.role === 'system'\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 'bg-amber-500/15 text-amber-700 dark:text-amber-400'\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 'bg-muted text-muted-foreground'}\"\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{getRoleLabel(msg.role).charAt(0)}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-0 flex-1\">\n\t\t\t\t\t\t\t\t\t\t<p class=\"mb-1 text-xs font-medium text-muted-foreground\">\n\t\t\t\t\t\t\t\t\t\t\t{getRoleLabel(msg.role)}\n\t\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t\t{#each getMessageImages(msg.content) as imageUrl}\n\t\t\t\t\t\t\t\t\t\t\t{#if imageUrl && !imageUrl.includes('REDACTED')}\n\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"mb-2 max-w-sm\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc={imageUrl}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\talt=\"Attached image\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclass=\"max-h-64 rounded-md border object-contain\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t\t\t\t\t{#if getMessageText(msg.content)}\n\t\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\t\tclass=\"rounded-lg px-3 py-2 text-sm break-words whitespace-pre-wrap\n\t\t\t\t\t\t\t\t\t\t\t\t{msg.role === 'user'\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 'bg-primary/10'\n\t\t\t\t\t\t\t\t\t\t\t\t\t: msg.role === 'system'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 'bg-amber-500/10 font-mono text-xs'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'bg-muted'}\"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{getMessageText(msg.content)}\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t{/if}\n\t\t\t\t</Card.Content>\n\t\t\t</Card.Root>\n\t\t{/if}\n\t{/if}\n</div>\n"],"names":["prerender","load","params","authState","redirect","timezone","getTimezone","response","$.state","loading","error","notFound","formatCost","cost","tryParseJson","str","extractMessages","input","output","inputParsed","messages","inputMessages","msg","outputParsed","choices","text","c","getMessageText","content","p","getMessageImages","getRoleLabel","role","formatConversationContent","raw","parsed","showRawJson","loadData","$.set","result","api","$$props","projectsState","e","err","onMount","div","root","$0","$.derived","createSmartBackHandler","resolve","PageHeader","node","div_1","root_1","LoadingCircle","node_2","ErrorDisplay","$$anchor","trace","$.get","Card_Root","Card_Header","Card_Title","Card_Description","Card_Content","div_2","root_12","LabelValue","node_11","node_12","formatDuration","node_13","formatDateTime","node_14","node_15","node_16","node_17","node_18","node_19","node_20","node_21","node_22","$$render","consequent_3","consequent_4","consequent_5","node_26","node_27","Card_Root_1","Card_Header_1","Card_Title_1","Card_Description_1","Card_Content_1","AttributesGrid","consequent_6","conv","chatMessages","Card_Root_2","Card_Header_2","div_3","$.first_child","fragment_17","Card_Title_2","Card_Description_2","button","$.sibling","text_7","$.child","$.reset","Card_Content_2","div_4","root_28","div_5","root_29","div_6","pre","text_8","consequent_7","div_7","root_30","div_8","pre_1","text_9","consequent_8","div_9","root_31","$.index","div_10","root_32","div_11","text_10","div_12","p_1","$.each","node_43","imageUrl","div_13","root_34","img","$.template_effect","$.set_attribute","consequent_10","div_14","root_35","text_12","$.set_class","$.append","consequent_11","consequent_9","alternate","consequent_12","consequent_13","consequent_2","alternate_1","consequent_1","alternate_2","consequent","alternate_3"],"mappings":"y8BAIO,MAAMA,GAAY,GAEZC,GAAiB,CAAC,CAAE,OAAAC,MAAa,CAC7C,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,EAG7B,MAAO,CACN,UAAWF,GAAO,UAClB,QAASA,GAAO,OAAA,CAEl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,EAAAtD,EAAQ,EAAC,cAAY6E,EAAAoE,EAAA,0BAzDjBjJ,EAAQ,GAAA6E,GAAAqE,EAAA,2BAbR/I,EAAK,EAAA0E,EAAAsE,CAAA,EAAAtE,EAAAuE,GAAA,EAAA,yBAdLhJ,EAAQ,EAAAyE,EAAAwE,CAAA,EAAAxE,EAAAyE,GAAA,EAAA,0BAJbpJ,EAAO,EAAA2E,EAAA0E,EAAA,EAAA1E,EAAA2E,GAAA,EAAA,MAXZjH,EAAG,OAAHA,EAAG,MAFJ"}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/7.CmYotEvC.js b/backend/static/frontend/_app/immutable/nodes/7.bOLVYdNV.js
similarity index 93%
rename from backend/static/frontend/_app/immutable/nodes/7.CmYotEvC.js
rename to backend/static/frontend/_app/immutable/nodes/7.bOLVYdNV.js
index 0e680a9c..2b518795 100644
--- a/backend/static/frontend/_app/immutable/nodes/7.CmYotEvC.js
+++ b/backend/static/frontend/_app/immutable/nodes/7.bOLVYdNV.js
@@ -1 +1 @@
-import{i as k}from"../chunks/DMODTt3n.js";import{o as P}from"../chunks/Dwk6gGSK.js";import{p as A,f as v,b as l,a as z,i as u,h as T,e as L,g as m,r as M,c as O,s as h,n as g,t as _,k as C,l as E}from"../chunks/B2WdN-7r.js";import{g as c}from"../chunks/xR3pK9Ey.js";import{b as f,p as F}from"../chunks/D6S6XYVy.js";import{A as B,a as R}from"../chunks/CaHAoFtL.js";import{A as U}from"../chunks/DxBI0u1e.js";import{L as W}from"../chunks/D0pIT200.js";import{C as q}from"../chunks/XxKcOLZH.js";const D=!1,tt=Object.freeze(Object.defineProperty({__proto__:null,ssr:D},Symbol.toStringTag,{value:"Module"}));var G=v("<!> <!> <!>",1),H=v('<div class="flex h-screen w-full items-center justify-center px-4"><!></div>');function et(w,x){A(x,!0);let o=T("");P(async()=>{const t=window.location.hash.startsWith("#")?window.location.hash.slice(1):"",r=new URLSearchParams(t),s=r.get("token"),i=r.get("needsSetup")==="true";if(history.replaceState(null,"",window.location.pathname),!s){u(o,"Missing authentication token."),setTimeout(()=>c("/login?error=oauth_failed"),1500);return}if(f.setToken(s),i){c("/finish-setup");return}try{const e=await fetch("/api/me/login-bundle",{headers:{Authorization:`Bearer ${s}`}});if(!e.ok)throw new Error("Failed to load account");const a=await e.json();f.setOrganizations(a.organizations||[]),F.setProjects(a.projects||[]),c("/")}catch{f.logout(),u(o,"Failed to load your account. Please try logging in again."),setTimeout(()=>c("/login?error=oauth_failed"),1500)}});var d=H(),$=L(d);{var b=t=>{B(t,{variant:"destructive",class:"max-w-md bg-red-50 border-red-200",children:(r,s)=>{var i=G(),e=O(i);q(e,{class:"h-4 w-4 text-red-700"});var a=h(e,2);U(a,{class:"text-red-800",children:(p,j)=>{g();var n=_("Error");l(p,n)},$$slots:{default:!0}});var S=h(a,2);R(S,{class:"text-red-700",children:(p,j)=>{g();var n=_();C(()=>E(n,m(o))),l(p,n)},$$slots:{default:!0}}),l(r,i)},$$slots:{default:!0}})},y=t=>{W(t,{size:"xlg"})};k($,t=>{m(o)?t(b):t(y,!1)})}M(d),l(w,d),z()}export{et as component,tt as universal};
+import{i as k}from"../chunks/DMODTt3n.js";import{o as P}from"../chunks/Dwk6gGSK.js";import{p as A,f as v,b as l,a as z,i as u,h as T,e as L,g as m,r as M,c as O,s as h,n as g,t as _,k as C,l as E}from"../chunks/B2WdN-7r.js";import{g as c}from"../chunks/BIF4_51j.js";import{b as f,p as F}from"../chunks/qCQ2nSvO.js";import{A as B,a as R}from"../chunks/CaHAoFtL.js";import{A as U}from"../chunks/DxBI0u1e.js";import{L as W}from"../chunks/D0pIT200.js";import{C as q}from"../chunks/XxKcOLZH.js";const D=!1,tt=Object.freeze(Object.defineProperty({__proto__:null,ssr:D},Symbol.toStringTag,{value:"Module"}));var G=v("<!> <!> <!>",1),H=v('<div class="flex h-screen w-full items-center justify-center px-4"><!></div>');function et(w,x){A(x,!0);let o=T("");P(async()=>{const t=window.location.hash.startsWith("#")?window.location.hash.slice(1):"",r=new URLSearchParams(t),s=r.get("token"),i=r.get("needsSetup")==="true";if(history.replaceState(null,"",window.location.pathname),!s){u(o,"Missing authentication token."),setTimeout(()=>c("/login?error=oauth_failed"),1500);return}if(f.setToken(s),i){c("/finish-setup");return}try{const e=await fetch("/api/me/login-bundle",{headers:{Authorization:`Bearer ${s}`}});if(!e.ok)throw new Error("Failed to load account");const a=await e.json();f.setOrganizations(a.organizations||[]),F.setProjects(a.projects||[]),c("/")}catch{f.logout(),u(o,"Failed to load your account. Please try logging in again."),setTimeout(()=>c("/login?error=oauth_failed"),1500)}});var d=H(),$=L(d);{var b=t=>{B(t,{variant:"destructive",class:"max-w-md bg-red-50 border-red-200",children:(r,s)=>{var i=G(),e=O(i);q(e,{class:"h-4 w-4 text-red-700"});var a=h(e,2);U(a,{class:"text-red-800",children:(p,j)=>{g();var n=_("Error");l(p,n)},$$slots:{default:!0}});var S=h(a,2);R(S,{class:"text-red-700",children:(p,j)=>{g();var n=_();C(()=>E(n,m(o))),l(p,n)},$$slots:{default:!0}}),l(r,i)},$$slots:{default:!0}})},y=t=>{W(t,{size:"xlg"})};k($,t=>{m(o)?t(b):t(y,!1)})}M(d),l(w,d),z()}export{et as component,tt as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/7.CmYotEvC.js.map b/backend/static/frontend/_app/immutable/nodes/7.bOLVYdNV.js.map
similarity index 96%
rename from backend/static/frontend/_app/immutable/nodes/7.CmYotEvC.js.map
rename to backend/static/frontend/_app/immutable/nodes/7.bOLVYdNV.js.map
index fbca0d40..6bb4f872 100644
--- a/backend/static/frontend/_app/immutable/nodes/7.CmYotEvC.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/7.bOLVYdNV.js.map
@@ -1 +1 @@
-{"version":3,"file":"7.CmYotEvC.js","sources":["../../../../../../src/routes/auth/callback/+page.ts","../../../../../../src/routes/auth/callback/+page.svelte"],"sourcesContent":["export const ssr = false;\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { onMount } from 'svelte';\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState } from '$lib/state/projects.svelte';\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import { CircleAlert } from \"@lucide/svelte\";\n import { LoadingCircle } from '$lib/components/ui/loading-circle';\n\n let error = $state('');\n\n onMount(async () => {\n const fragment = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : '';\n const params = new URLSearchParams(fragment);\n const token = params.get('token');\n const needsSetup = params.get('needsSetup') === 'true';\n\n history.replaceState(null, '', window.location.pathname);\n\n if (!token) {\n error = 'Missing authentication token.';\n setTimeout(() => goto('/login?error=oauth_failed'), 1500);\n return;\n }\n\n authState.setToken(token);\n\n if (needsSetup) {\n goto('/finish-setup');\n return;\n }\n\n try {\n const response = await fetch('/api/me/login-bundle', {\n headers: { 'Authorization': `Bearer ${token}` }\n });\n if (!response.ok) {\n throw new Error('Failed to load account');\n }\n const data = await response.json();\n authState.setOrganizations(data.organizations || []);\n projectsState.setProjects(data.projects || []);\n goto('/');\n } catch {\n authState.logout();\n error = 'Failed to load your account. Please try logging in again.';\n setTimeout(() => goto('/login?error=oauth_failed'), 1500);\n }\n });\n</script>\n\n<div class=\"flex h-screen w-full items-center justify-center px-4\">\n {#if error}\n <Alert variant=\"destructive\" class=\"max-w-md bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">{error}</AlertDescription>\n </Alert>\n {:else}\n <LoadingCircle size=\"xlg\" />\n {/if}\n</div>\n"],"names":["ssr","error","$.state","onMount","fragment","params","token","needsSetup","$.set","goto","authState","response","data","projectsState","div","root","Alert","$$anchor","CircleAlert","node_1","AlertTitle","node_2","AlertDescription","node_3","LoadingCircle","$$render","consequent","alternate"],"mappings":"0eAAO,MAAMA,EAAM,oOCAnB,aASQC,EAAQC,EAAO,EAAE,EAErBC,EAAO,SAAa,OACVC,EAAW,OAAO,SAAS,KAAK,WAAW,GAAG,EAAI,OAAO,SAAS,KAAK,MAAM,CAAC,EAAI,GAClFC,EAAM,IAAO,gBAAgBD,CAAQ,EACrCE,EAAQD,EAAO,IAAI,OAAO,EAC1BE,EAAaF,EAAO,IAAI,YAAY,IAAM,OAI3C,GAFL,QAAQ,aAAa,KAAM,GAAI,OAAO,SAAS,QAAQ,EAElD,CAAAC,EAAO,CACRE,EAAAP,EAAQ,+BAA+B,EACvC,WAAU,IAAOQ,EAAK,2BAA2B,EAAG,IAAI,QAE5D,CAII,GAFJC,EAAU,SAASJ,CAAK,EAEpBC,EAAY,CACZE,EAAK,eAAe,QAExB,CAEI,GAAA,OACME,EAAQ,MAAS,MAAM,wBACzB,QAAO,CAAI,cAAe,UAAYL,CAAK,EAAA,CAAA,CAAA,MAE1CK,EAAS,GACA,MAAA,IAAA,MAAM,wBAAwB,QAEtCC,EAAI,MAASD,EAAS,KAAI,EAChCD,EAAU,iBAAiBE,EAAK,eAAa,CAAA,CAAA,EAC7CC,EAAc,YAAYD,EAAK,UAAQ,CAAA,CAAA,EACvCH,EAAK,GAAG,CACZ,MAAQ,CACJC,EAAU,OAAM,EAChBF,EAAAP,EAAQ,2DAA2D,EACnE,WAAU,IAAOQ,EAAK,2BAA2B,EAAG,IAAI,CAC5D,CACJ,CAAC,MAGJK,EAAGC,EAAA,MAAHD,CAAG,aAEKE,EAAKC,EAAA,mGACDC,EAAWC,EAAA,CAAA,MAAA,sBAAA,CAAA,eACXC,EAAUC,EAAA,wGACVC,EAAgBC,EAAA,iEAAuBtB,CAAK,CAAA,CAAA,uEAGhDuB,EAAaP,EAAA,CAAA,KAAA,KAAA,CAAA,aAPbhB,CAAK,EAAAwB,EAAAC,CAAA,EAAAD,EAAAE,EAAA,EAAA,MADbb,CAAG,MAAHA,CAAG,KAFJ"}
\ No newline at end of file
+{"version":3,"file":"7.bOLVYdNV.js","sources":["../../../../../../src/routes/auth/callback/+page.ts","../../../../../../src/routes/auth/callback/+page.svelte"],"sourcesContent":["export const ssr = false;\n","<script lang=\"ts\">\n import { goto } from '$app/navigation';\n import { onMount } from 'svelte';\n import { authState } from '$lib/state/auth.svelte';\n import { projectsState } from '$lib/state/projects.svelte';\n import { Alert, AlertDescription, AlertTitle } from \"$lib/components/ui/alert\";\n import { CircleAlert } from \"@lucide/svelte\";\n import { LoadingCircle } from '$lib/components/ui/loading-circle';\n\n let error = $state('');\n\n onMount(async () => {\n const fragment = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : '';\n const params = new URLSearchParams(fragment);\n const token = params.get('token');\n const needsSetup = params.get('needsSetup') === 'true';\n\n history.replaceState(null, '', window.location.pathname);\n\n if (!token) {\n error = 'Missing authentication token.';\n setTimeout(() => goto('/login?error=oauth_failed'), 1500);\n return;\n }\n\n authState.setToken(token);\n\n if (needsSetup) {\n goto('/finish-setup');\n return;\n }\n\n try {\n const response = await fetch('/api/me/login-bundle', {\n headers: { 'Authorization': `Bearer ${token}` }\n });\n if (!response.ok) {\n throw new Error('Failed to load account');\n }\n const data = await response.json();\n authState.setOrganizations(data.organizations || []);\n projectsState.setProjects(data.projects || []);\n goto('/');\n } catch {\n authState.logout();\n error = 'Failed to load your account. Please try logging in again.';\n setTimeout(() => goto('/login?error=oauth_failed'), 1500);\n }\n });\n</script>\n\n<div class=\"flex h-screen w-full items-center justify-center px-4\">\n {#if error}\n <Alert variant=\"destructive\" class=\"max-w-md bg-red-50 border-red-200\">\n <CircleAlert class=\"h-4 w-4 text-red-700\" />\n <AlertTitle class=\"text-red-800\">Error</AlertTitle>\n <AlertDescription class=\"text-red-700\">{error}</AlertDescription>\n </Alert>\n {:else}\n <LoadingCircle size=\"xlg\" />\n {/if}\n</div>\n"],"names":["ssr","error","$.state","onMount","fragment","params","token","needsSetup","$.set","goto","authState","response","data","projectsState","div","root","Alert","$$anchor","CircleAlert","node_1","AlertTitle","node_2","AlertDescription","node_3","LoadingCircle","$$render","consequent","alternate"],"mappings":"0eAAO,MAAMA,EAA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end/_app/immutable/nodes/8.Dh8h0C3k.js b/backend/static/frontend/_app/immutable/nodes/8.Dh8h0C3k.js
deleted file mode 100644
index b431f3c9..00000000
--- a/backend/static/frontend/_app/immutable/nodes/8.Dh8h0C3k.js
+++ /dev/null
@@ -1,27 +0,0 @@
-import{r as kt}from"../chunks/BJZ1igWb.js";import{b as rt,p as Le,d as bt,e as Ct,f as Xe}from"../chunks/D6S6XYVy.js";import{l as Pt,s as Tt,i as U}from"../chunks/DMODTt3n.js";import{d as A,c as a,b as t,p as zt,f as i,a as Ot,s as r,e as o,g as e,u as j,r as s,n as w,t as ne,h as M,k as te,l as ae,i as g}from"../chunks/B2WdN-7r.js";import{a as pe}from"../chunks/DH0tcjsQ.js";import{C as ie,a as me,b as _e}from"../chunks/BHR29ZVu.js";import{C as de}from"../chunks/BKHeGn2e.js";import{C as ge}from"../chunks/KAiF5-Ht.js";import{B}from"../chunks/C1aqwstW.js";import{L as St}from"../chunks/D0pIT200.js";import{F as Fe}from"../chunks/DwGghOhY.js";import{H as $e,g as Ze}from"../chunks/D9j1Uorr.js";import{y as Ut,j as et,g as jt,b as tt,a as At,p as Et,c as Dt}from"../chunks/BvDoo-7I.js";import{t as he}from"../chunks/BnbBSyGl.js";import{C as G}from"../chunks/BISlaXSK.js";import{C as K}from"../chunks/lk4DWutj.js";import{I as It,s as Lt}from"../chunks/CQWqWi6p.js";function at(Pe,xe){const l=Pt(xe,["children","$$slots","$$events","$$legacy"]);const ve=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"}]];It(Pe,Tt({name:"key-round"},()=>l,{get iconNode(){return ve},children:(ce,we)=>{var re=A(),oe=a(re);Lt(oe,xe,"default",{},null),t(ce,re)},$$slots:{default:!0}}))}const Ft=()=>{if(!rt.isAuthenticated)throw kt(302,"/login")},La=Object.freeze(Object.defineProperty({__proto__:null,load:Ft},Symbol.toStringTag,{value:"Module"}));var Ht=i("<!> Configure the OTLP Exporter",1),Mt=i("<!> <!>",1),Bt=i("<!> Copied!",1),Rt=i("<!> Copy",1),Nt=i('<div class="space-y-6"><div><p class="mb-1 text-sm font-medium">OTLP Endpoint</p> <p class="mb-2 text-xs text-muted-foreground">Your SDK or Collector will append <code class="text-xs">/v1/traces</code> and <code class="text-xs">/v1/metrics</code> automatically.</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Authorization Header</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Example: OTel Collector (optional)</p> <div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div></div></div>'),Wt=i("<!> <!>",1),Gt=i("<!> Cloudflare Workers Integration",1),Kt=i("<!> <!>",1),Jt=i("<!> Copied!",1),Vt=i("<!> Copy",1),Yt=i('<div class="space-y-6"><div><p class="mb-2 text-sm font-medium">Step 1 — OTLP Traces Endpoint</p> <p class="mb-2 text-xs text-muted-foreground">Enter this URL when creating your OTLP destination in the Cloudflare dashboard.</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Step 2 — Authorization Header</p> <p class="mb-2 text-xs text-muted-foreground">Add this as an authorization header in your OTLP destination settings.</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Step 3 — wrangler.jsonc</p> <p class="mb-2 text-xs text-muted-foreground">Enable observability traces in your wrangler.jsonc configuration file.</p> <div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div></div> <div><p class="mb-2 text-sm font-medium">Step 4 — Deploy</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all">npx wrangler deploy</code> <!></div></div></div>'),qt=i("<!> <!>",1),Qt=i("<!> ",1),Xt=i("<!> <!>",1),Zt=i("<!> Copied!",1),ea=i("<!> Copy",1),ta=i('<div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div>'),aa=i("<!> <!>",1),ra=i("<!> <!>",1),oa=i("<!> Copied!",1),sa=i("<!> Copy",1),la=i('<div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div>'),na=i("<!> <!>",1),ia=i("<!> Source Map Upload",1),da=i("<!> <!>",1),va=i("<!> Copied!",1),ca=i("<!> Copy",1),fa=i('<div class="space-y-4"><div><p class="mb-2 text-sm font-medium">Upload Token</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Usage</p> <div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div></div></div>'),ua=i("<!> Generating...",1),pa=i("<!> Generate Upload Token",1),ma=i(`<p class="mb-4 text-sm text-muted-foreground">Generate an upload token to start uploading source maps as part of your build
- process.</p> <!>`,1),_a=i("<!> <!>",1),ga=i("<!> <!> <!>",1),$a=i('<p class="text-muted-foreground">No project selected. Please select or create a project from the dropdown above.</p>'),ha=i('<div class="space-y-4"><div><h2 class="text-2xl font-bold tracking-tight">Connection</h2> <p class="text-muted-foreground">Connect your application to Traceway using the SDK</p></div> <!></div>');function Fa(Pe,xe){zt(xe,!0);let l=j(()=>Le.currentProject),ve=M(!1),ce=M(!1),we=M(!1),re=M(!1),oe=M(!1),Te=M(!1),ze=M(!1),Oe=M(!1),Se=M(!1),Ue=M(!1),je=M(!1),Ae=M(!1);const ot=j(()=>e(l)?bt(e(l).framework):!1),st=j(()=>e(l)?Ct(e(l).framework):!1),He=j(()=>e(l)?`${e(l).backendUrl}/api/otel`:""),Me=j(()=>e(l)?`Bearer ${e(l).token}`:""),Be=j(()=>e(l)?`exporters:
- otlphttp:
- endpoint: "${e(l).backendUrl}/api/otel"
- headers:
- Authorization: "Bearer ${e(l).token}"
-
-service:
- pipelines:
- traces:
- exporters: [otlphttp]
- metrics:
- exporters: [otlphttp]`:""),Re=j(()=>e(l)?`${e(l).backendUrl}/api/otel/v1/traces`:""),Ne=j(()=>e(l)?`Bearer ${e(l).token}`:""),We=j(()=>e(l)?`{
- "observability": {
- "traces": {
- "enabled": true,
- "head_sample_rate": 1,
- "destinations": [
- {
- "name": "traceway",
- "type": "otlp"
- }
- ]
- }
- }
-}`:""),Ge=j(()=>e(l)?At(e(l).framework,e(l).token,e(l).backendUrl):""),Ke=j(()=>e(l)?Dt(e(l).framework):"go get go.tracewayapp.com"),lt=j(()=>e(l)?e(l).framework==="symfony"?Et:Xe(e(l).framework)?et:Ze:Ze),Je=j(()=>e(l)?Xe(e(l).framework):!1),nt=j(()=>rt.getRoleForOrganization(Le.currentProject?.organizationId??0)==="readonly"),se=j(()=>e(l)?.sourceMapToken??null),Ve=j(()=>e(l)&&e(se)?`npx @tracewayapp/sourcemap-upload --url ${e(l).backendUrl} --token ${e(se)} --version YOUR_VERSION --directory dist/assets`:"");async function it(){await navigator.clipboard.writeText(e(Ge)),g(ve,!0),setTimeout(()=>g(ve,!1),2e3)}async function dt(){await navigator.clipboard.writeText(e(Ke)),g(ce,!0),setTimeout(()=>g(ce,!1),2e3)}async function vt(){g(oe,!0);try{await Le.generateSourceMapToken()}finally{g(oe,!1)}}async function ct(){e(se)&&(await navigator.clipboard.writeText(e(se)),g(we,!0),setTimeout(()=>g(we,!1),2e3))}async function ft(){await navigator.clipboard.writeText(e(Ve)),g(re,!0),setTimeout(()=>g(re,!1),2e3)}async function ut(){await navigator.clipboard.writeText(e(Re)),g(Se,!0),setTimeout(()=>g(Se,!1),2e3)}async function pt(){await navigator.clipboard.writeText(e(Ne)),g(Ue,!0),setTimeout(()=>g(Ue,!1),2e3)}async function mt(){await navigator.clipboard.writeText(e(We)),g(je,!0),setTimeout(()=>g(je,!1),2e3)}async function _t(){await navigator.clipboard.writeText("npx wrangler deploy"),g(Ae,!0),setTimeout(()=>g(Ae,!1),2e3)}async function gt(){await navigator.clipboard.writeText(e(He)),g(Te,!0),setTimeout(()=>g(Te,!1),2e3)}async function $t(){await navigator.clipboard.writeText(e(Me)),g(ze,!0),setTimeout(()=>g(ze,!1),2e3)}async function ht(){await navigator.clipboard.writeText(e(Be)),g(Oe,!0),setTimeout(()=>g(Oe,!1),2e3)}var Ee=ha(),xt=r(o(Ee),2);{var wt=le=>{var ye=A(),Ye=a(ye);{var De=q=>{ie(q,{children:(ke,Qe)=>{var be=Wt(),Ce=a(be);me(Ce,{children:(X,fe)=>{var H=Mt(),R=a(H);_e(R,{class:"flex items-center gap-2",children:(k,J)=>{var y=Ht(),h=a(y);Fe(h,{get framework(){return e(l).framework}}),w(),t(k,y)},$$slots:{default:!0}});var Z=r(R,2);ge(Z,{children:(k,J)=>{w();var y=ne("Point your OTLP/HTTP exporter at Traceway using the endpoint and token below.");t(k,y)},$$slots:{default:!0}}),t(X,H)},$$slots:{default:!0}});var Q=r(Ce,2);de(Q,{children:(X,fe)=>{var H=Nt(),R=o(H),Z=r(o(R),4),k=o(Z),J=o(k,!0);s(k);var y=r(k,2);B(y,{variant:"outline",size:"sm",onclick:gt,children:(_,S)=>{var b=A(),T=a(b);{var u=n=>{G(n,{class:"h-4 w-4 text-green-500"})},p=n=>{K(n,{class:"h-4 w-4"})};U(T,n=>{e(Te)?n(u):n(p,!1)})}t(_,b)},$$slots:{default:!0}}),s(Z),s(R);var h=r(R,2),E=r(o(h),2),x=o(E),D=o(x,!0);s(x);var m=r(x,2);B(m,{variant:"outline",size:"sm",onclick:$t,children:(_,S)=>{var b=A(),T=a(b);{var u=n=>{G(n,{class:"h-4 w-4 text-green-500"})},p=n=>{K(n,{class:"h-4 w-4"})};U(T,n=>{e(ze)?n(u):n(p,!1)})}t(_,b)},$$slots:{default:!0}}),s(E),s(h);var v=r(h,2),P=r(o(v),2),f=o(P),O=o(f);B(O,{variant:"outline",size:"sm",onclick:ht,children:(_,S)=>{var b=A(),T=a(b);{var u=n=>{var z=Bt(),C=a(z);G(C,{class:"mr-2 h-4 w-4 text-green-500"}),w(),t(n,z)},p=n=>{var z=Rt(),C=a(z);K(C,{class:"mr-2 h-4 w-4"}),w(),t(n,z)};U(T,n=>{e(Oe)?n(u):n(p,!1)})}t(_,b)},$$slots:{default:!0}}),s(f);var c=r(f,2),$=o(c);$e($,{get language(){return Ut},get code(){return e(Be)}}),s(c),s(P),s(v),s(H),te(()=>{ae(J,e(He)),ae(D,e(Me)),pe(c,1,`overflow-x-auto rounded-lg text-sm ${he.isDark?"dark-code":"light-code"}`)}),t(X,H)},$$slots:{default:!0}}),t(ke,be)},$$slots:{default:!0}})},qe=q=>{var ke=A(),Qe=a(ke);{var be=Q=>{ie(Q,{children:(X,fe)=>{var H=qt(),R=a(H);me(R,{children:(k,J)=>{var y=Kt(),h=a(y);_e(h,{class:"flex items-center gap-2",children:(x,D)=>{var m=Gt(),v=a(m);Fe(v,{get framework(){return e(l).framework}}),w(),t(x,m)},$$slots:{default:!0}});var E=r(h,2);ge(E,{children:(x,D)=>{w();var m=ne("Use Cloudflare's native Observability Destinations to send traces to Traceway");t(x,m)},$$slots:{default:!0}}),t(k,y)},$$slots:{default:!0}});var Z=r(R,2);de(Z,{children:(k,J)=>{var y=Yt(),h=o(y),E=r(o(h),4),x=o(E),D=o(x,!0);s(x);var m=r(x,2);B(m,{variant:"outline",size:"sm",onclick:ut,children:(C,N)=>{var I=A(),W=a(I);{var V=d=>{G(d,{class:"h-4 w-4 text-green-500"})},L=d=>{K(d,{class:"h-4 w-4"})};U(W,d=>{e(Se)?d(V):d(L,!1)})}t(C,I)},$$slots:{default:!0}}),s(E),s(h);var v=r(h,2),P=r(o(v),4),f=o(P),O=o(f,!0);s(f);var c=r(f,2);B(c,{variant:"outline",size:"sm",onclick:pt,children:(C,N)=>{var I=A(),W=a(I);{var V=d=>{G(d,{class:"h-4 w-4 text-green-500"})},L=d=>{K(d,{class:"h-4 w-4"})};U(W,d=>{e(Ue)?d(V):d(L,!1)})}t(C,I)},$$slots:{default:!0}}),s(P),s(v);var $=r(v,2),_=r(o($),4),S=o(_),b=o(S);B(b,{variant:"outline",size:"sm",onclick:mt,children:(C,N)=>{var I=A(),W=a(I);{var V=d=>{var Y=Jt(),ee=a(Y);G(ee,{class:"mr-2 h-4 w-4 text-green-500"}),w(),t(d,Y)},L=d=>{var Y=Vt(),ee=a(Y);K(ee,{class:"mr-2 h-4 w-4"}),w(),t(d,Y)};U(W,d=>{e(je)?d(V):d(L,!1)})}t(C,I)},$$slots:{default:!0}}),s(S);var T=r(S,2),u=o(T);$e(u,{get language(){return et},get code(){return e(We)}}),s(T),s(_),s($);var p=r($,2),n=r(o(p),2),z=r(o(n),2);B(z,{variant:"outline",size:"sm",onclick:_t,children:(C,N)=>{var I=A(),W=a(I);{var V=d=>{G(d,{class:"h-4 w-4 text-green-500"})},L=d=>{K(d,{class:"h-4 w-4"})};U(W,d=>{e(Ae)?d(V):d(L,!1)})}t(C,I)},$$slots:{default:!0}}),s(n),s(p),s(y),te(()=>{ae(D,e(Re)),ae(O,e(Ne)),pe(T,1,`overflow-x-auto rounded-lg text-sm ${he.isDark?"dark-code":"light-code"}`)}),t(k,y)},$$slots:{default:!0}}),t(X,H)},$$slots:{default:!0}})},Ce=Q=>{var X=ga(),fe=a(X);ie(fe,{children:(k,J)=>{var y=aa(),h=a(y);me(h,{children:(x,D)=>{var m=Xt(),v=a(m);_e(v,{class:"flex items-center gap-2",children:(f,O)=>{var c=Qt(),$=a(c);Fe($,{get framework(){return e(l).framework}});var _=r($);te(S=>ae(_,` ${S??""} Integration`),[()=>jt(e(l).framework)]),t(f,c)},$$slots:{default:!0}});var P=r(v,2);ge(P,{children:(f,O)=>{w();var c=ne("Add Traceway to your application with just a few lines of code.");t(f,c)},$$slots:{default:!0}}),t(x,m)},$$slots:{default:!0}});var E=r(h,2);de(E,{children:(x,D)=>{var m=ta(),v=o(m),P=o(v);B(P,{variant:"outline",size:"sm",onclick:it,children:(c,$)=>{var _=A(),S=a(_);{var b=u=>{var p=Zt(),n=a(p);G(n,{class:"mr-2 h-4 w-4 text-green-500"}),w(),t(u,p)},T=u=>{var p=ea(),n=a(p);K(n,{class:"mr-2 h-4 w-4"}),w(),t(u,p)};U(S,u=>{e(ve)?u(b):u(T,!1)})}t(c,_)},$$slots:{default:!0}}),s(v);var f=r(v,2),O=o(f);$e(O,{get language(){return e(lt)},get code(){return e(Ge)}}),s(f),s(m),te(()=>pe(f,1,`overflow-x-auto rounded-lg text-sm ${he.isDark?"dark-code":"light-code"}`)),t(x,m)},$$slots:{default:!0}}),t(k,y)},$$slots:{default:!0}});var H=r(fe,2);ie(H,{children:(k,J)=>{var y=na(),h=a(y);me(h,{children:(x,D)=>{var m=ra(),v=a(m);_e(v,{children:(f,O)=>{w();var c=ne("Installation");t(f,c)},$$slots:{default:!0}});var P=r(v,2);ge(P,{children:(f,O)=>{w();var c=ne();te(()=>ae(c,`Install the required packages${e(Je)?"":e(l)?.framework==="symfony"?" using composer":" using go get"}.`)),t(f,c)},$$slots:{default:!0}}),t(x,m)},$$slots:{default:!0}});var E=r(h,2);de(E,{children:(x,D)=>{var m=la(),v=o(m),P=o(v);B(P,{variant:"outline",size:"sm",onclick:dt,children:(c,$)=>{var _=A(),S=a(_);{var b=u=>{var p=oa(),n=a(p);G(n,{class:"mr-2 h-4 w-4 text-green-500"}),w(),t(u,p)},T=u=>{var p=sa(),n=a(p);K(n,{class:"mr-2 h-4 w-4"}),w(),t(u,p)};U(S,u=>{e(ce)?u(b):u(T,!1)})}t(c,_)},$$slots:{default:!0}}),s(v);var f=r(v,2),O=o(f);$e(O,{get language(){return tt},get code(){return e(Ke)}}),s(f),s(m),te(()=>pe(f,1,`overflow-x-auto rounded-lg text-sm ${he.isDark?"dark-code":"light-code"}`)),t(x,m)},$$slots:{default:!0}}),t(k,y)},$$slots:{default:!0}});var R=r(H,2);{var Z=k=>{ie(k,{children:(J,y)=>{var h=_a(),E=a(h);me(E,{children:(D,m)=>{var v=da(),P=a(v);_e(P,{class:"flex items-center gap-2",children:(O,c)=>{var $=ia(),_=a($);at(_,{class:"h-5 w-5"}),w(),t(O,$)},$$slots:{default:!0}});var f=r(P,2);ge(f,{children:(O,c)=>{w();var $=ne(`Upload source maps to see original file names and line numbers in stack traces from
- minified code.`);t(O,$)},$$slots:{default:!0}}),t(D,v)},$$slots:{default:!0}});var x=r(E,2);de(x,{children:(D,m)=>{var v=A(),P=a(v);{var f=c=>{var $=fa(),_=o($),S=r(o(_),2),b=o(S),T=o(b,!0);s(b);var u=r(b,2);B(u,{variant:"outline",size:"sm",onclick:ct,children:(W,V)=>{var L=A(),d=a(L);{var Y=F=>{G(F,{class:"h-4 w-4 text-green-500"})},ee=F=>{K(F,{class:"h-4 w-4"})};U(d,F=>{e(we)?F(Y):F(ee,!1)})}t(W,L)},$$slots:{default:!0}}),s(S),s(_);var p=r(_,2),n=r(o(p),2),z=o(n),C=o(z);B(C,{variant:"outline",size:"sm",onclick:ft,children:(W,V)=>{var L=A(),d=a(L);{var Y=F=>{var ue=va(),Ie=a(ue);G(Ie,{class:"mr-2 h-4 w-4 text-green-500"}),w(),t(F,ue)},ee=F=>{var ue=ca(),Ie=a(ue);K(Ie,{class:"mr-2 h-4 w-4"}),w(),t(F,ue)};U(d,F=>{e(re)?F(Y):F(ee,!1)})}t(W,L)},$$slots:{default:!0}}),s(z);var N=r(z,2),I=o(N);$e(I,{get language(){return tt},get code(){return e(Ve)}}),s(N),s(n),s(p),s($),te(()=>{ae(T,e(se)),pe(N,1,`overflow-x-auto rounded-lg text-sm ${he.isDark?"dark-code":"light-code"}`)}),t(c,$)},O=c=>{var $=ma(),_=r(a($),2);B(_,{onclick:vt,get disabled(){return e(oe)},children:(S,b)=>{var T=A(),u=a(T);{var p=z=>{var C=ua(),N=a(C);St(N,{class:"mr-2 h-4 w-4"}),w(),t(z,C)},n=z=>{var C=pa(),N=a(C);at(N,{class:"mr-2 h-4 w-4"}),w(),t(z,C)};U(u,z=>{e(oe)?z(p):z(n,!1)})}t(S,T)},$$slots:{default:!0}}),t(c,$)};U(P,c=>{e(se)?c(f):c(O,!1)})}t(D,v)},$$slots:{default:!0}}),t(J,h)},$$slots:{default:!0}})};U(R,k=>{e(Je)&&!e(nt)&&k(Z)})}t(Q,X)};U(Qe,Q=>{e(st)?Q(be):Q(Ce,!1)},!0)}t(q,ke)};U(Ye,q=>{e(ot)?q(De):q(qe,!1)})}t(le,ye)},yt=le=>{ie(le,{children:(ye,Ye)=>{de(ye,{class:"p-6 text-center",children:(De,qe)=>{var q=$a();t(De,q)},$$slots:{default:!0}})},$$slots:{default:!0}})};U(xt,le=>{e(l)?le(wt):le(yt,!1)})}s(Ee),t(Pe,Ee),Ot()}export{Fa as component,La as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/8.Dh8h0C3k.js.map b/backend/static/frontend/_app/immutable/nodes/8.Dh8h0C3k.js.map
deleted file mode 100644
index 72abfdcb..00000000
--- a/backend/static/frontend/_app/immutable/nodes/8.Dh8h0C3k.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"8.Dh8h0C3k.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/key-round.svelte","../../../../../../src/routes/connection/+page.ts","../../../../../../src/routes/connection/+page.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z\" }], [\"circle\", { \"cx\": \"16.5\", \"cy\": \"7.5\", \"r\": \".5\", \"fill\": \"currentColor\" }]];\n/**\n * @component @name KeyRound\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMi41ODYgMTcuNDE0QTIgMiAwIDAgMCAyIDE4LjgyOFYyMWExIDEgMCAwIDAgMSAxaDNhMSAxIDAgMCAwIDEtMXYtMWExIDEgMCAwIDEgMS0xaDFhMSAxIDAgMCAwIDEtMXYtMWExIDEgMCAwIDEgMS0xaC4xNzJhMiAyIDAgMCAwIDEuNDE0LS41ODZsLjgxNC0uODE0YTYuNSA2LjUgMCAxIDAtNC00eiIgLz4KICA8Y2lyY2xlIGN4PSIxNi41IiBjeT0iNy41IiByPSIuNSIgZmlsbD0iY3VycmVudENvbG9yIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/key-round\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"key-round\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n\timport {\n\t\tCard,\n\t\tCardContent,\n\t\tCardDescription,\n\t\tCardHeader,\n\t\tCardTitle\n\t} from '$lib/components/ui/card';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Copy, Check, KeyRound } from 'lucide-svelte';\n\timport {\n\t\tprojectsState,\n\t\ttype ProjectWithToken,\n\t\tisJsFramework,\n\t\tisOtelFramework,\n\t\tisCloudflareFramework\n\t} from '$lib/state/projects.svelte';\n\timport { authState } from '$lib/state/auth.svelte';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport FrameworkIcon from '$lib/components/framework-icon.svelte';\n\timport Highlight from 'svelte-highlight';\n\timport go from 'svelte-highlight/languages/go';\n\timport javascript from 'svelte-highlight/languages/javascript';\n\timport bash from 'svelte-highlight/languages/bash';\n\timport php from 'svelte-highlight/languages/php';\n\timport yaml from 'svelte-highlight/languages/yaml';\n\timport { themeState } from '$lib/state/theme.svelte';\n\timport 'svelte-highlight/styles/github-dark.css';\n\timport {\n\t\tgetFrameworkCode,\n\t\tgetInstallCommand,\n\t\tgetFrameworkLabel\n\t} from '$lib/utils/framework-code';\n\n\tlet projectWithToken = $derived(projectsState.currentProject);\n\tlet copiedCode = $state(false);\n\tlet copiedInstall = $state(false);\n\tlet copiedToken = $state(false);\n\tlet copiedCommand = $state(false);\n\tlet generatingToken = $state(false);\n\tlet copiedOtelEndpoint = $state(false);\n\tlet copiedOtelAuth = $state(false);\n\tlet copiedOtelCollector = $state(false);\n\tlet copiedCfEndpoint = $state(false);\n\tlet copiedCfAuth = $state(false);\n\tlet copiedCfWrangler = $state(false);\n\tlet copiedCfDeploy = $state(false);\n\n\tconst isOtel = $derived(projectWithToken ? isOtelFramework(projectWithToken.framework) : false);\n\tconst isCloudflare = $derived(\n\t\tprojectWithToken ? isCloudflareFramework(projectWithToken.framework) : false\n\t);\n\tconst otelEndpoint = $derived(projectWithToken ? `${projectWithToken.backendUrl}/api/otel` : '');\n\tconst otelAuthHeader = $derived(projectWithToken ? `Bearer ${projectWithToken.token}` : '');\n\tconst otelCollectorConfig = $derived(\n\t\tprojectWithToken\n\t\t\t? `exporters:\n otlphttp:\n endpoint: \"${projectWithToken.backendUrl}/api/otel\"\n headers:\n Authorization: \"Bearer ${projectWithToken.token}\"\n\nservice:\n pipelines:\n traces:\n exporters: [otlphttp]\n metrics:\n exporters: [otlphttp]`\n\t\t\t: ''\n\t);\n\tconst cloudflareOtelEndpoint = $derived(\n\t\tprojectWithToken ? `${projectWithToken.backendUrl}/api/otel/v1/traces` : ''\n\t);\n\tconst cloudflareAuthHeader = $derived(projectWithToken ? `Bearer ${projectWithToken.token}` : '');\n\tconst wranglerConfig = $derived(\n\t\tprojectWithToken\n\t\t\t? `{\n \"observability\": {\n \"traces\": {\n \"enabled\": true,\n \"head_sample_rate\": 1,\n \"destinations\": [\n {\n \"name\": \"traceway\",\n \"type\": \"otlp\"\n }\n ]\n }\n }\n}`\n\t\t\t: ''\n\t);\n\n\tconst sdkCode = $derived(\n\t\tprojectWithToken\n\t\t\t? getFrameworkCode(\n\t\t\t\t\tprojectWithToken.framework,\n\t\t\t\t\tprojectWithToken.token,\n\t\t\t\t\tprojectWithToken.backendUrl\n\t\t\t\t)\n\t\t\t: ''\n\t);\n\n\tconst installCommand = $derived(\n\t\tprojectWithToken ? getInstallCommand(projectWithToken.framework) : 'go get go.tracewayapp.com'\n\t);\n\n\tconst highlightLanguage = $derived.by(() => {\n\t\tif (!projectWithToken) return go;\n\t\tif (projectWithToken.framework === 'symfony') return php;\n\t\tif (isJsFramework(projectWithToken.framework)) return javascript;\n\t\treturn go;\n\t});\n\n\tconst isJs = $derived(projectWithToken ? isJsFramework(projectWithToken.framework) : false);\n\tconst isReadonly = $derived(\n\t\tauthState.getRoleForOrganization(projectsState.currentProject?.organizationId ?? 0) ===\n\t\t\t'readonly'\n\t);\n\tconst sourceMapToken = $derived(projectWithToken?.sourceMapToken ?? null);\n\n\tconst uploadCommand = $derived(\n\t\tprojectWithToken && sourceMapToken\n\t\t\t? `npx @tracewayapp/sourcemap-upload --url ${projectWithToken.backendUrl} --token ${sourceMapToken} --version YOUR_VERSION --directory dist/assets`\n\t\t\t: ''\n\t);\n\n\tasync function copyCode() {\n\t\tawait navigator.clipboard.writeText(sdkCode);\n\t\tcopiedCode = true;\n\t\tsetTimeout(() => (copiedCode = false), 2000);\n\t}\n\n\tasync function copyInstall() {\n\t\tawait navigator.clipboard.writeText(installCommand);\n\t\tcopiedInstall = true;\n\t\tsetTimeout(() => (copiedInstall = false), 2000);\n\t}\n\n\tasync function generateToken() {\n\t\tgeneratingToken = true;\n\t\ttry {\n\t\t\tawait projectsState.generateSourceMapToken();\n\t\t} finally {\n\t\t\tgeneratingToken = false;\n\t\t}\n\t}\n\n\tasync function copyToken() {\n\t\tif (!sourceMapToken) return;\n\t\tawait navigator.clipboard.writeText(sourceMapToken);\n\t\tcopiedToken = true;\n\t\tsetTimeout(() => (copiedToken = false), 2000);\n\t}\n\n\tasync function copyUploadCommand() {\n\t\tawait navigator.clipboard.writeText(uploadCommand);\n\t\tcopiedCommand = true;\n\t\tsetTimeout(() => (copiedCommand = false), 2000);\n\t}\n\n\tasync function copyCfEndpoint() {\n\t\tawait navigator.clipboard.writeText(cloudflareOtelEndpoint);\n\t\tcopiedCfEndpoint = true;\n\t\tsetTimeout(() => (copiedCfEndpoint = false), 2000);\n\t}\n\n\tasync function copyCfAuth() {\n\t\tawait navigator.clipboard.writeText(cloudflareAuthHeader);\n\t\tcopiedCfAuth = true;\n\t\tsetTimeout(() => (copiedCfAuth = false), 2000);\n\t}\n\n\tasync function copyCfWrangler() {\n\t\tawait navigator.clipboard.writeText(wranglerConfig);\n\t\tcopiedCfWrangler = true;\n\t\tsetTimeout(() => (copiedCfWrangler = false), 2000);\n\t}\n\n\tasync function copyCfDeploy() {\n\t\tawait navigator.clipboard.writeText('npx wrangler deploy');\n\t\tcopiedCfDeploy = true;\n\t\tsetTimeout(() => (copiedCfDeploy = false), 2000);\n\t}\n\n\tasync function copyOtelEndpoint() {\n\t\tawait navigator.clipboard.writeText(otelEndpoint);\n\t\tcopiedOtelEndpoint = true;\n\t\tsetTimeout(() => (copiedOtelEndpoint = false), 2000);\n\t}\n\n\tasync function copyOtelAuth() {\n\t\tawait navigator.clipboard.writeText(otelAuthHeader);\n\t\tcopiedOtelAuth = true;\n\t\tsetTimeout(() => (copiedOtelAuth = false), 2000);\n\t}\n\n\tasync function copyOtelCollector() {\n\t\tawait navigator.clipboard.writeText(otelCollectorConfig);\n\t\tcopiedOtelCollector = true;\n\t\tsetTimeout(() => (copiedOtelCollector = false), 2000);\n\t}\n</script>\n\n<div class=\"space-y-4\">\n\t<div>\n\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Connection</h2>\n\t\t<p class=\"text-muted-foreground\">Connect your application to Traceway using the SDK</p>\n\t</div>\n\n\t{#if projectWithToken}\n\t\t{#if isOtel}\n\t\t\t<Card>\n\t\t\t\t<CardHeader>\n\t\t\t\t\t<CardTitle class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<FrameworkIcon framework={projectWithToken.framework} />\n\t\t\t\t\t\tConfigure the OTLP Exporter\n\t\t\t\t\t</CardTitle>\n\t\t\t\t\t<CardDescription>\n\t\t\t\t\t\tPoint your OTLP/HTTP exporter at Traceway using the endpoint and token below.\n\t\t\t\t\t</CardDescription>\n\t\t\t\t</CardHeader>\n\t\t\t\t<CardContent>\n\t\t\t\t\t<div class=\"space-y-6\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-1 text-sm font-medium\">OTLP Endpoint</p>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\tYour SDK or Collector will append <code class=\"text-xs\">/v1/traces</code> and\n\t\t\t\t\t\t\t\t<code class=\"text-xs\">/v1/metrics</code> automatically.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>{otelEndpoint}</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelEndpoint}>\n\t\t\t\t\t\t\t\t\t{#if copiedOtelEndpoint}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Authorization Header</p>\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>{otelAuthHeader}</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelAuth}>\n\t\t\t\t\t\t\t\t\t{#if copiedOtelAuth}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Example: OTel Collector (optional)</p>\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelCollector}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedOtelCollector}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={yaml} code={otelCollectorConfig} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</CardContent>\n\t\t\t</Card>\n\t\t{:else if isCloudflare}\n\t\t\t<Card>\n\t\t\t\t<CardHeader>\n\t\t\t\t\t<CardTitle class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<FrameworkIcon framework={projectWithToken.framework} />\n\t\t\t\t\t\tCloudflare Workers Integration\n\t\t\t\t\t</CardTitle>\n\t\t\t\t\t<CardDescription>\n\t\t\t\t\t\tUse Cloudflare's native Observability Destinations to send traces to Traceway\n\t\t\t\t\t</CardDescription>\n\t\t\t\t</CardHeader>\n\t\t\t\t<CardContent>\n\t\t\t\t\t<div class=\"space-y-6\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Step 1 — OTLP Traces Endpoint</p>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\tEnter this URL when creating your OTLP destination in the Cloudflare dashboard.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>{cloudflareOtelEndpoint}</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfEndpoint}>\n\t\t\t\t\t\t\t\t\t{#if copiedCfEndpoint}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Step 2 — Authorization Header</p>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\tAdd this as an authorization header in your OTLP destination settings.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>{cloudflareAuthHeader}</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfAuth}>\n\t\t\t\t\t\t\t\t\t{#if copiedCfAuth}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Step 3 — wrangler.jsonc</p>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\tEnable observability traces in your wrangler.jsonc configuration file.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfWrangler}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedCfWrangler}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={javascript} code={wranglerConfig} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Step 4 — Deploy</p>\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>npx wrangler deploy</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfDeploy}>\n\t\t\t\t\t\t\t\t\t{#if copiedCfDeploy}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</CardContent>\n\t\t\t</Card>\n\t\t{:else}\n\t\t\t<Card>\n\t\t\t\t<CardHeader>\n\t\t\t\t\t<CardTitle class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<FrameworkIcon framework={projectWithToken.framework} />\n\t\t\t\t\t\t{getFrameworkLabel(projectWithToken.framework)} Integration\n\t\t\t\t\t</CardTitle>\n\t\t\t\t\t<CardDescription>\n\t\t\t\t\t\tAdd Traceway to your application with just a few lines of code.\n\t\t\t\t\t</CardDescription>\n\t\t\t\t</CardHeader>\n\t\t\t\t<CardContent>\n\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCode}>\n\t\t\t\t\t\t\t\t{#if copiedCode}\n\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Highlight language={highlightLanguage} code={sdkCode} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</CardContent>\n\t\t\t</Card>\n\n\t\t\t<Card>\n\t\t\t\t<CardHeader>\n\t\t\t\t\t<CardTitle>Installation</CardTitle>\n\t\t\t\t\t<CardDescription\n\t\t\t\t\t\t>Install the required packages{isJs ? '' : projectWithToken?.framework === 'symfony' ? ' using composer' : ' using go get'}.</CardDescription\n\t\t\t\t\t>\n\t\t\t\t</CardHeader>\n\t\t\t\t<CardContent>\n\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyInstall}>\n\t\t\t\t\t\t\t\t{#if copiedInstall}\n\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Highlight language={bash} code={installCommand} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</CardContent>\n\t\t\t</Card>\n\t\t\t{#if isJs && !isReadonly}\n\t\t\t\t<Card>\n\t\t\t\t\t<CardHeader>\n\t\t\t\t\t\t<CardTitle class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t<KeyRound class=\"h-5 w-5\" />\n\t\t\t\t\t\t\tSource Map Upload\n\t\t\t\t\t\t</CardTitle>\n\t\t\t\t\t\t<CardDescription>\n\t\t\t\t\t\t\tUpload source maps to see original file names and line numbers in stack traces from\n\t\t\t\t\t\t\tminified code.\n\t\t\t\t\t\t</CardDescription>\n\t\t\t\t\t</CardHeader>\n\t\t\t\t\t<CardContent>\n\t\t\t\t\t\t{#if sourceMapToken}\n\t\t\t\t\t\t\t<div class=\"space-y-4\">\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Upload Token</p>\n\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t\t\t>{sourceMapToken}</code\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyToken}>\n\t\t\t\t\t\t\t\t\t\t\t{#if copiedToken}\n\t\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Usage</p>\n\t\t\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyUploadCommand}>\n\t\t\t\t\t\t\t\t\t\t\t\t{#if copiedCommand}\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Highlight language={bash} code={uploadCommand} />\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t<p class=\"mb-4 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tGenerate an upload token to start uploading source maps as part of your build\n\t\t\t\t\t\t\t\tprocess.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<Button onclick={generateToken} disabled={generatingToken}>\n\t\t\t\t\t\t\t\t{#if generatingToken}\n\t\t\t\t\t\t\t\t\t<LoadingCircle class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tGenerating...\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t<KeyRound class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tGenerate Upload Token\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t</CardContent>\n\t\t\t\t</Card>\n\t\t\t{/if}\n\t\t{/if}\n\t{:else}\n\t\t<Card>\n\t\t\t<CardContent class=\"p-6 text-center\">\n\t\t\t\t<p class=\"text-muted-foreground\">\n\t\t\t\t\tNo project selected. Please select or create a project from the dropdown above.\n\t\t\t\t</p>\n\t\t\t</CardContent>\n\t\t</Card>\n\t{/if}\n</div>\n\n<style>\n\t/* Light theme - override dark theme defaults */\n\t:global(.light-code .hljs-name) {\n\t\tcolor: #4ba3f7;\n\t}\n\t:global(.light-code .hljs) {\n\t\tbackground: #f6f8fa;\n\t\tcolor: #24292e;\n\t}\n\t:global(.light-code .hljs-keyword),\n\t:global(.light-code .hljs-selector-tag) {\n\t\tcolor: #d73a49;\n\t}\n\t:global(.light-code .hljs-string),\n\t:global(.light-code .hljs-attr) {\n\t\tcolor: #032f62;\n\t}\n\t:global(.light-code .hljs-function),\n\t:global(.light-code .hljs-title) {\n\t\tcolor: #6f42c1;\n\t}\n\t:global(.light-code .hljs-comment) {\n\t\tcolor: #6a737d;\n\t}\n\t:global(.light-code .hljs-built_in) {\n\t\tcolor: #005cc5;\n\t}\n\t:global(.light-code .hljs-meta) {\n\t\tcolor: #d73a49;\n\t}\n\t:global(.light-code .hljs-variable) {\n\t\tcolor: #24292e;\n\t}\n\n\t/* Dark theme - ensure dark styles apply */\n\t:global(.dark-code .hljs) {\n\t\tbackground: #0d1117;\n\t\tcolor: #c9d1d9;\n\t}\n\t:global(.dark-code .hljs-keyword),\n\t:global(.dark-code .hljs-selector-tag) {\n\t\tcolor: #ff7b72;\n\t}\n\t:global(.dark-code .hljs-string),\n\t:global(.dark-code .hljs-attr) {\n\t\tcolor: #a5d6ff;\n\t}\n\t:global(.dark-code .hljs-function),\n\t:global(.dark-code .hljs-title) {\n\t\tcolor: #d2a8ff;\n\t}\n\t:global(.dark-code .hljs-comment) {\n\t\tcolor: #8b949e;\n\t}\n\t:global(.dark-code .hljs-built_in) {\n\t\tcolor: #79c0ff;\n\t}\n\t:global(.dark-code .hljs-meta) {\n\t\tcolor: #ff7b72;\n\t}\n</style>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","load","authState","redirect","projectWithToken","$.derived","projectsState","copiedCode","$.state","copiedInstall","copiedToken","copiedCommand","generatingToken","copiedOtelEndpoint","copiedOtelAuth","copiedOtelCollector","copiedCfEndpoint","copiedCfAuth","copiedCfWrangler","copiedCfDeploy","isOtel","isOtelFramework","$.get","isCloudflare","isCloudflareFramework","otelEndpoint","otelAuthHeader","otelCollectorConfig","cloudflareOtelEndpoint","cloudflareAuthHeader","wranglerConfig","sdkCode","getFrameworkCode","installCommand","getInstallCommand","highlightLanguage","php","isJsFramework","javascript","go","isJs","isReadonly","sourceMapToken","uploadCommand","copyCode","$.set","copyInstall","generateToken","copyToken","copyUploadCommand","copyCfEndpoint","copyCfAuth","copyCfWrangler","copyCfDeploy","copyOtelEndpoint","copyOtelAuth","copyOtelCollector","div","root","Card","CardHeader","node_2","CardTitle","node_3","FrameworkIcon","node_4","CardDescription","node_5","CardContent","node_6","div_1","root_7","div_2","div_3","code","Button","node_7","Check","Copy","$$render","consequent","alternate","div_4","div_5","code_1","node_9","consequent_1","alternate_1","div_6","div_7","div_8","node_11","node_13","node_14","consequent_2","alternate_2","div_9","$.sibling","node_15","$.child","Highlight","yaml","$.reset","$.set_class","themeState","node_17","node_18","node_19","node_20","node_21","div_10","root_23","div_11","div_12","code_2","node_22","consequent_4","alternate_3","div_13","div_14","code_3","node_24","consequent_5","alternate_4","div_15","div_16","div_17","node_26","node_28","node_29","consequent_6","alternate_5","div_18","node_30","div_19","div_20","node_31","consequent_7","alternate_6","node_33","node_34","node_35","node_36","getFrameworkLabel","node_37","node_38","div_21","root_41","div_22","node_39","node_41","node_42","consequent_9","alternate_7","div_23","node_43","$.template_effect","node_44","node_45","node_46","node_47","node_48","div_24","root_49","div_25","node_49","node_51","node_52","consequent_10","alternate_8","div_26","node_53","bash","node_55","node_56","KeyRound","node_57","node_58","node_59","div_27","root_59","div_28","div_29","code_4","node_61","consequent_11","alternate_9","div_30","div_31","div_32","node_63","node_65","node_66","consequent_12","alternate_10","div_33","node_67","node_68","LoadingCircle","node_70","node_71","consequent_14","alternate_11","consequent_13","alternate_12","consequent_15","consequent_8","alternate_13","consequent_3","alternate_14","p","root_72","consequent_16","alternate_15"],"mappings":"w9BAAA,mEA6CMA,GAAQ,EAAK,QAAU,EAAK,gLAAkL,SAAY,CAAA,GAAM,OAAQ,GAAM,MAAO,EAAK,KAAM,KAAQ,cAAc,IAc3RC,GAAIC,GAAAC,GAAA,CAAA,KAAA,WAAA,EAAA,IAAAC,EAAA,uBAAyCJ,wGAF9C,CCrDO,MAAMK,GAAiB,IAAM,CACnC,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,CAE9B;8ZCRA,eAkCKC,EAAgBC,EAAA,IAAYC,GAAc,cAAc,EACxDC,GAAaC,EAAO,EAAK,EACzBC,GAAgBD,EAAO,EAAK,EAC5BE,GAAcF,EAAO,EAAK,EAC1BG,GAAgBH,EAAO,EAAK,EAC5BI,GAAkBJ,EAAO,EAAK,EAC9BK,GAAqBL,EAAO,EAAK,EACjCM,GAAiBN,EAAO,EAAK,EAC7BO,GAAsBP,EAAO,EAAK,EAClCQ,GAAmBR,EAAO,EAAK,EAC/BS,GAAeT,EAAO,EAAK,EAC3BU,GAAmBV,EAAO,EAAK,EAC/BW,GAAiBX,EAAO,EAAK,EAE3B,MAAAY,WAAkBhB,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AA,EAAA,sBAiTVtJ,GAAI7D,GAAA,oBACHsE,GAAWtE,GAAA,gDACVoN,EAACC,GAAA,OAADD,CAAC,+DApTA9M,CAAgB,EAAA2E,GAAAqI,EAAA,EAAArI,GAAAsI,GAAA,EAAA,MANrB5J,EAAG,OAAHA,EAAG,MAFJ","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/8.DoG9Wvpa.js b/backend/static/frontend/_app/immutable/nodes/8.DoG9Wvpa.js
new file mode 100644
index 00000000..e15f4e63
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/8.DoG9Wvpa.js
@@ -0,0 +1,27 @@
+import{r as bt}from"../chunks/B4VmGkxP.js";import{b as ot,p as Le,d as Ct,e as Pt,f as Xe}from"../chunks/qCQ2nSvO.js";import{l as Tt,s as zt,i as U}from"../chunks/DMODTt3n.js";import{d as A,c as a,b as t,p as Ot,f as i,a as St,s as r,e as s,g as e,u as j,r as l,n as w,t as ne,h as M,k as te,l as ae,i as g}from"../chunks/B2WdN-7r.js";import{a as pe}from"../chunks/DH0tcjsQ.js";import{C as ie,a as me,b as _e}from"../chunks/BHR29ZVu.js";import{C as de}from"../chunks/BKHeGn2e.js";import{C as ge}from"../chunks/KAiF5-Ht.js";import{B}from"../chunks/C1aqwstW.js";import{L as Ut}from"../chunks/D0pIT200.js";import{F as Fe}from"../chunks/FmJ3F5-k.js";import{H as $e,g as Ze}from"../chunks/D9j1Uorr.js";import{y as jt,j as et,g as At,b as tt,a as Et,p as at,c as Dt}from"../chunks/BApWZWbV.js";import{t as he}from"../chunks/BnbBSyGl.js";import{C as G}from"../chunks/BISlaXSK.js";import{C as K}from"../chunks/lk4DWutj.js";import{I as It,s as Lt}from"../chunks/CQWqWi6p.js";function rt(Pe,xe){const o=Tt(xe,["children","$$slots","$$events","$$legacy"]);const ve=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor"}]];It(Pe,zt({name:"key-round"},()=>o,{get iconNode(){return ve},children:(ce,we)=>{var re=A(),oe=a(re);Lt(oe,xe,"default",{},null),t(ce,re)},$$slots:{default:!0}}))}const Ft=()=>{if(!ot.isAuthenticated)throw bt(302,"/login")},La=Object.freeze(Object.defineProperty({__proto__:null,load:Ft},Symbol.toStringTag,{value:"Module"}));var Ht=i("<!> Configure the OTLP Exporter",1),Mt=i("<!> <!>",1),Bt=i("<!> Copied!",1),Rt=i("<!> Copy",1),Nt=i('<div class="space-y-6"><div><p class="mb-1 text-sm font-medium">OTLP Endpoint</p> <p class="mb-2 text-xs text-muted-foreground">Your SDK or Collector will append <code class="text-xs">/v1/traces</code> and <code class="text-xs">/v1/metrics</code> automatically.</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Authorization Header</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Example: OTel Collector (optional)</p> <div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div></div></div>'),Wt=i("<!> <!>",1),Gt=i("<!> Cloudflare Workers Integration",1),Kt=i("<!> <!>",1),Jt=i("<!> Copied!",1),Vt=i("<!> Copy",1),Yt=i('<div class="space-y-6"><div><p class="mb-2 text-sm font-medium">Step 1 — OTLP Traces Endpoint</p> <p class="mb-2 text-xs text-muted-foreground">Enter this URL when creating your OTLP destination in the Cloudflare dashboard.</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Step 2 — Authorization Header</p> <p class="mb-2 text-xs text-muted-foreground">Add this as an authorization header in your OTLP destination settings.</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Step 3 — wrangler.jsonc</p> <p class="mb-2 text-xs text-muted-foreground">Enable observability traces in your wrangler.jsonc configuration file.</p> <div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div></div> <div><p class="mb-2 text-sm font-medium">Step 4 — Deploy</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all">npx wrangler deploy</code> <!></div></div></div>'),qt=i("<!> <!>",1),Qt=i("<!> ",1),Xt=i("<!> <!>",1),Zt=i("<!> Copied!",1),ea=i("<!> Copy",1),ta=i('<div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div>'),aa=i("<!> <!>",1),ra=i("<!> <!>",1),oa=i("<!> Copied!",1),sa=i("<!> Copy",1),la=i('<div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div>'),na=i("<!> <!>",1),ia=i("<!> Source Map Upload",1),da=i("<!> <!>",1),va=i("<!> Copied!",1),ca=i("<!> Copy",1),fa=i('<div class="space-y-4"><div><p class="mb-2 text-sm font-medium">Upload Token</p> <div class="flex items-center gap-2"><code class="flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all"> </code> <!></div></div> <div><p class="mb-2 text-sm font-medium">Usage</p> <div class="relative"><div class="absolute top-2 right-2 z-10"><!></div> <div><!></div></div></div></div>'),ua=i("<!> Generating...",1),pa=i("<!> Generate Upload Token",1),ma=i(`<p class="mb-4 text-sm text-muted-foreground">Generate an upload token to start uploading source maps as part of your build
+ process.</p> <!>`,1),_a=i("<!> <!>",1),ga=i("<!> <!> <!>",1),$a=i('<p class="text-muted-foreground">No project selected. Please select or create a project from the dropdown above.</p>'),ha=i('<div class="space-y-4"><div><h2 class="text-2xl font-bold tracking-tight">Connection</h2> <p class="text-muted-foreground">Connect your application to Traceway using the SDK</p></div> <!></div>');function Fa(Pe,xe){Ot(xe,!0);let o=j(()=>Le.currentProject),ve=M(!1),ce=M(!1),we=M(!1),re=M(!1),oe=M(!1),Te=M(!1),ze=M(!1),Oe=M(!1),Se=M(!1),Ue=M(!1),je=M(!1),Ae=M(!1);const st=j(()=>e(o)?Ct(e(o).framework):!1),lt=j(()=>e(o)?Pt(e(o).framework):!1),He=j(()=>e(o)?`${e(o).backendUrl}/api/otel`:""),Me=j(()=>e(o)?`Bearer ${e(o).token}`:""),Be=j(()=>e(o)?`exporters:
+ otlphttp:
+ endpoint: "${e(o).backendUrl}/api/otel"
+ headers:
+ Authorization: "Bearer ${e(o).token}"
+
+service:
+ pipelines:
+ traces:
+ exporters: [otlphttp]
+ metrics:
+ exporters: [otlphttp]`:""),Re=j(()=>e(o)?`${e(o).backendUrl}/api/otel/v1/traces`:""),Ne=j(()=>e(o)?`Bearer ${e(o).token}`:""),We=j(()=>e(o)?`{
+ "observability": {
+ "traces": {
+ "enabled": true,
+ "head_sample_rate": 1,
+ "destinations": [
+ {
+ "name": "traceway",
+ "type": "otlp"
+ }
+ ]
+ }
+ }
+}`:""),Ge=j(()=>e(o)?Et(e(o).framework,e(o).token,e(o).backendUrl):""),Ke=j(()=>e(o)?Dt(e(o).framework):"go get go.tracewayapp.com"),nt=j(()=>e(o)?e(o).framework==="symfony"?at:e(o).framework==="laravel"?at:Xe(e(o).framework)?et:Ze:Ze),Je=j(()=>e(o)?Xe(e(o).framework):!1),it=j(()=>ot.getRoleForOrganization(Le.currentProject?.organizationId??0)==="readonly"),se=j(()=>e(o)?.sourceMapToken??null),Ve=j(()=>e(o)&&e(se)?`npx @tracewayapp/sourcemap-upload --url ${e(o).backendUrl} --token ${e(se)} --version YOUR_VERSION --directory dist/assets`:"");async function dt(){await navigator.clipboard.writeText(e(Ge)),g(ve,!0),setTimeout(()=>g(ve,!1),2e3)}async function vt(){await navigator.clipboard.writeText(e(Ke)),g(ce,!0),setTimeout(()=>g(ce,!1),2e3)}async function ct(){g(oe,!0);try{await Le.generateSourceMapToken()}finally{g(oe,!1)}}async function ft(){e(se)&&(await navigator.clipboard.writeText(e(se)),g(we,!0),setTimeout(()=>g(we,!1),2e3))}async function ut(){await navigator.clipboard.writeText(e(Ve)),g(re,!0),setTimeout(()=>g(re,!1),2e3)}async function pt(){await navigator.clipboard.writeText(e(Re)),g(Se,!0),setTimeout(()=>g(Se,!1),2e3)}async function mt(){await navigator.clipboard.writeText(e(Ne)),g(Ue,!0),setTimeout(()=>g(Ue,!1),2e3)}async function _t(){await navigator.clipboard.writeText(e(We)),g(je,!0),setTimeout(()=>g(je,!1),2e3)}async function gt(){await navigator.clipboard.writeText("npx wrangler deploy"),g(Ae,!0),setTimeout(()=>g(Ae,!1),2e3)}async function $t(){await navigator.clipboard.writeText(e(He)),g(Te,!0),setTimeout(()=>g(Te,!1),2e3)}async function ht(){await navigator.clipboard.writeText(e(Me)),g(ze,!0),setTimeout(()=>g(ze,!1),2e3)}async function xt(){await navigator.clipboard.writeText(e(Be)),g(Oe,!0),setTimeout(()=>g(Oe,!1),2e3)}var Ee=ha(),wt=r(s(Ee),2);{var kt=le=>{var ke=A(),Ye=a(ke);{var De=q=>{ie(q,{children:(ye,Qe)=>{var be=Wt(),Ce=a(be);me(Ce,{children:(X,fe)=>{var H=Mt(),R=a(H);_e(R,{class:"flex items-center gap-2",children:(y,J)=>{var k=Ht(),h=a(k);Fe(h,{get framework(){return e(o).framework}}),w(),t(y,k)},$$slots:{default:!0}});var Z=r(R,2);ge(Z,{children:(y,J)=>{w();var k=ne("Point your OTLP/HTTP exporter at Traceway using the endpoint and token below.");t(y,k)},$$slots:{default:!0}}),t(X,H)},$$slots:{default:!0}});var Q=r(Ce,2);de(Q,{children:(X,fe)=>{var H=Nt(),R=s(H),Z=r(s(R),4),y=s(Z),J=s(y,!0);l(y);var k=r(y,2);B(k,{variant:"outline",size:"sm",onclick:$t,children:(_,S)=>{var b=A(),T=a(b);{var u=n=>{G(n,{class:"h-4 w-4 text-green-500"})},p=n=>{K(n,{class:"h-4 w-4"})};U(T,n=>{e(Te)?n(u):n(p,!1)})}t(_,b)},$$slots:{default:!0}}),l(Z),l(R);var h=r(R,2),E=r(s(h),2),x=s(E),D=s(x,!0);l(x);var m=r(x,2);B(m,{variant:"outline",size:"sm",onclick:ht,children:(_,S)=>{var b=A(),T=a(b);{var u=n=>{G(n,{class:"h-4 w-4 text-green-500"})},p=n=>{K(n,{class:"h-4 w-4"})};U(T,n=>{e(ze)?n(u):n(p,!1)})}t(_,b)},$$slots:{default:!0}}),l(E),l(h);var v=r(h,2),P=r(s(v),2),f=s(P),O=s(f);B(O,{variant:"outline",size:"sm",onclick:xt,children:(_,S)=>{var b=A(),T=a(b);{var u=n=>{var z=Bt(),C=a(z);G(C,{class:"mr-2 h-4 w-4 text-green-500"}),w(),t(n,z)},p=n=>{var z=Rt(),C=a(z);K(C,{class:"mr-2 h-4 w-4"}),w(),t(n,z)};U(T,n=>{e(Oe)?n(u):n(p,!1)})}t(_,b)},$$slots:{default:!0}}),l(f);var c=r(f,2),$=s(c);$e($,{get language(){return jt},get code(){return e(Be)}}),l(c),l(P),l(v),l(H),te(()=>{ae(J,e(He)),ae(D,e(Me)),pe(c,1,`overflow-x-auto rounded-lg text-sm ${he.isDark?"dark-code":"light-code"}`)}),t(X,H)},$$slots:{default:!0}}),t(ye,be)},$$slots:{default:!0}})},qe=q=>{var ye=A(),Qe=a(ye);{var be=Q=>{ie(Q,{children:(X,fe)=>{var H=qt(),R=a(H);me(R,{children:(y,J)=>{var k=Kt(),h=a(k);_e(h,{class:"flex items-center gap-2",children:(x,D)=>{var m=Gt(),v=a(m);Fe(v,{get framework(){return e(o).framework}}),w(),t(x,m)},$$slots:{default:!0}});var E=r(h,2);ge(E,{children:(x,D)=>{w();var m=ne("Use Cloudflare's native Observability Destinations to send traces to Traceway");t(x,m)},$$slots:{default:!0}}),t(y,k)},$$slots:{default:!0}});var Z=r(R,2);de(Z,{children:(y,J)=>{var k=Yt(),h=s(k),E=r(s(h),4),x=s(E),D=s(x,!0);l(x);var m=r(x,2);B(m,{variant:"outline",size:"sm",onclick:pt,children:(C,N)=>{var I=A(),W=a(I);{var V=d=>{G(d,{class:"h-4 w-4 text-green-500"})},L=d=>{K(d,{class:"h-4 w-4"})};U(W,d=>{e(Se)?d(V):d(L,!1)})}t(C,I)},$$slots:{default:!0}}),l(E),l(h);var v=r(h,2),P=r(s(v),4),f=s(P),O=s(f,!0);l(f);var c=r(f,2);B(c,{variant:"outline",size:"sm",onclick:mt,children:(C,N)=>{var I=A(),W=a(I);{var V=d=>{G(d,{class:"h-4 w-4 text-green-500"})},L=d=>{K(d,{class:"h-4 w-4"})};U(W,d=>{e(Ue)?d(V):d(L,!1)})}t(C,I)},$$slots:{default:!0}}),l(P),l(v);var $=r(v,2),_=r(s($),4),S=s(_),b=s(S);B(b,{variant:"outline",size:"sm",onclick:_t,children:(C,N)=>{var I=A(),W=a(I);{var V=d=>{var Y=Jt(),ee=a(Y);G(ee,{class:"mr-2 h-4 w-4 text-green-500"}),w(),t(d,Y)},L=d=>{var Y=Vt(),ee=a(Y);K(ee,{class:"mr-2 h-4 w-4"}),w(),t(d,Y)};U(W,d=>{e(je)?d(V):d(L,!1)})}t(C,I)},$$slots:{default:!0}}),l(S);var T=r(S,2),u=s(T);$e(u,{get language(){return et},get code(){return e(We)}}),l(T),l(_),l($);var p=r($,2),n=r(s(p),2),z=r(s(n),2);B(z,{variant:"outline",size:"sm",onclick:gt,children:(C,N)=>{var I=A(),W=a(I);{var V=d=>{G(d,{class:"h-4 w-4 text-green-500"})},L=d=>{K(d,{class:"h-4 w-4"})};U(W,d=>{e(Ae)?d(V):d(L,!1)})}t(C,I)},$$slots:{default:!0}}),l(n),l(p),l(k),te(()=>{ae(D,e(Re)),ae(O,e(Ne)),pe(T,1,`overflow-x-auto rounded-lg text-sm ${he.isDark?"dark-code":"light-code"}`)}),t(y,k)},$$slots:{default:!0}}),t(X,H)},$$slots:{default:!0}})},Ce=Q=>{var X=ga(),fe=a(X);ie(fe,{children:(y,J)=>{var k=aa(),h=a(k);me(h,{children:(x,D)=>{var m=Xt(),v=a(m);_e(v,{class:"flex items-center gap-2",children:(f,O)=>{var c=Qt(),$=a(c);Fe($,{get framework(){return e(o).framework}});var _=r($);te(S=>ae(_,` ${S??""} Integration`),[()=>At(e(o).framework)]),t(f,c)},$$slots:{default:!0}});var P=r(v,2);ge(P,{children:(f,O)=>{w();var c=ne("Add Traceway to your application with just a few lines of code.");t(f,c)},$$slots:{default:!0}}),t(x,m)},$$slots:{default:!0}});var E=r(h,2);de(E,{children:(x,D)=>{var m=ta(),v=s(m),P=s(v);B(P,{variant:"outline",size:"sm",onclick:dt,children:(c,$)=>{var _=A(),S=a(_);{var b=u=>{var p=Zt(),n=a(p);G(n,{class:"mr-2 h-4 w-4 text-green-500"}),w(),t(u,p)},T=u=>{var p=ea(),n=a(p);K(n,{class:"mr-2 h-4 w-4"}),w(),t(u,p)};U(S,u=>{e(ve)?u(b):u(T,!1)})}t(c,_)},$$slots:{default:!0}}),l(v);var f=r(v,2),O=s(f);$e(O,{get language(){return e(nt)},get code(){return e(Ge)}}),l(f),l(m),te(()=>pe(f,1,`overflow-x-auto rounded-lg text-sm ${he.isDark?"dark-code":"light-code"}`)),t(x,m)},$$slots:{default:!0}}),t(y,k)},$$slots:{default:!0}});var H=r(fe,2);ie(H,{children:(y,J)=>{var k=na(),h=a(k);me(h,{children:(x,D)=>{var m=ra(),v=a(m);_e(v,{children:(f,O)=>{w();var c=ne("Installation");t(f,c)},$$slots:{default:!0}});var P=r(v,2);ge(P,{children:(f,O)=>{w();var c=ne();te(()=>ae(c,`Install the required packages${e(Je)?"":e(o)?.framework==="symfony"||e(o)?.framework==="laravel"?" using composer":" using go get"}.`)),t(f,c)},$$slots:{default:!0}}),t(x,m)},$$slots:{default:!0}});var E=r(h,2);de(E,{children:(x,D)=>{var m=la(),v=s(m),P=s(v);B(P,{variant:"outline",size:"sm",onclick:vt,children:(c,$)=>{var _=A(),S=a(_);{var b=u=>{var p=oa(),n=a(p);G(n,{class:"mr-2 h-4 w-4 text-green-500"}),w(),t(u,p)},T=u=>{var p=sa(),n=a(p);K(n,{class:"mr-2 h-4 w-4"}),w(),t(u,p)};U(S,u=>{e(ce)?u(b):u(T,!1)})}t(c,_)},$$slots:{default:!0}}),l(v);var f=r(v,2),O=s(f);$e(O,{get language(){return tt},get code(){return e(Ke)}}),l(f),l(m),te(()=>pe(f,1,`overflow-x-auto rounded-lg text-sm ${he.isDark?"dark-code":"light-code"}`)),t(x,m)},$$slots:{default:!0}}),t(y,k)},$$slots:{default:!0}});var R=r(H,2);{var Z=y=>{ie(y,{children:(J,k)=>{var h=_a(),E=a(h);me(E,{children:(D,m)=>{var v=da(),P=a(v);_e(P,{class:"flex items-center gap-2",children:(O,c)=>{var $=ia(),_=a($);rt(_,{class:"h-5 w-5"}),w(),t(O,$)},$$slots:{default:!0}});var f=r(P,2);ge(f,{children:(O,c)=>{w();var $=ne(`Upload source maps to see original file names and line numbers in stack traces from
+ minified code.`);t(O,$)},$$slots:{default:!0}}),t(D,v)},$$slots:{default:!0}});var x=r(E,2);de(x,{children:(D,m)=>{var v=A(),P=a(v);{var f=c=>{var $=fa(),_=s($),S=r(s(_),2),b=s(S),T=s(b,!0);l(b);var u=r(b,2);B(u,{variant:"outline",size:"sm",onclick:ft,children:(W,V)=>{var L=A(),d=a(L);{var Y=F=>{G(F,{class:"h-4 w-4 text-green-500"})},ee=F=>{K(F,{class:"h-4 w-4"})};U(d,F=>{e(we)?F(Y):F(ee,!1)})}t(W,L)},$$slots:{default:!0}}),l(S),l(_);var p=r(_,2),n=r(s(p),2),z=s(n),C=s(z);B(C,{variant:"outline",size:"sm",onclick:ut,children:(W,V)=>{var L=A(),d=a(L);{var Y=F=>{var ue=va(),Ie=a(ue);G(Ie,{class:"mr-2 h-4 w-4 text-green-500"}),w(),t(F,ue)},ee=F=>{var ue=ca(),Ie=a(ue);K(Ie,{class:"mr-2 h-4 w-4"}),w(),t(F,ue)};U(d,F=>{e(re)?F(Y):F(ee,!1)})}t(W,L)},$$slots:{default:!0}}),l(z);var N=r(z,2),I=s(N);$e(I,{get language(){return tt},get code(){return e(Ve)}}),l(N),l(n),l(p),l($),te(()=>{ae(T,e(se)),pe(N,1,`overflow-x-auto rounded-lg text-sm ${he.isDark?"dark-code":"light-code"}`)}),t(c,$)},O=c=>{var $=ma(),_=r(a($),2);B(_,{onclick:ct,get disabled(){return e(oe)},children:(S,b)=>{var T=A(),u=a(T);{var p=z=>{var C=ua(),N=a(C);Ut(N,{class:"mr-2 h-4 w-4"}),w(),t(z,C)},n=z=>{var C=pa(),N=a(C);rt(N,{class:"mr-2 h-4 w-4"}),w(),t(z,C)};U(u,z=>{e(oe)?z(p):z(n,!1)})}t(S,T)},$$slots:{default:!0}}),t(c,$)};U(P,c=>{e(se)?c(f):c(O,!1)})}t(D,v)},$$slots:{default:!0}}),t(J,h)},$$slots:{default:!0}})};U(R,y=>{e(Je)&&!e(it)&&y(Z)})}t(Q,X)};U(Qe,Q=>{e(lt)?Q(be):Q(Ce,!1)},!0)}t(q,ye)};U(Ye,q=>{e(st)?q(De):q(qe,!1)})}t(le,ke)},yt=le=>{ie(le,{children:(ke,Ye)=>{de(ke,{class:"p-6 text-center",children:(De,qe)=>{var q=$a();t(De,q)},$$slots:{default:!0}})},$$slots:{default:!0}})};U(wt,le=>{e(o)?le(kt):le(yt,!1)})}l(Ee),t(Pe,Ee),St()}export{Fa as component,La as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/8.DoG9Wvpa.js.map b/backend/static/frontend/_app/immutable/nodes/8.DoG9Wvpa.js.map
new file mode 100644
index 00000000..bc26ec08
--- /dev/null
+++ b/backend/static/frontend/_app/immutable/nodes/8.DoG9Wvpa.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"8.DoG9Wvpa.js","sources":["../../../../../../node_modules/lucide-svelte/dist/icons/key-round.svelte","../../../../../../src/routes/connection/+page.ts","../../../../../../src/routes/connection/+page.svelte"],"sourcesContent":["<script>/**\n * @license lucide-svelte v0.562.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nconst iconNode = [[\"path\", { \"d\": \"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z\" }], [\"circle\", { \"cx\": \"16.5\", \"cy\": \"7.5\", \"r\": \".5\", \"fill\": \"currentColor\" }]];\n/**\n * @component @name KeyRound\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMi41ODYgMTcuNDE0QTIgMiAwIDAgMCAyIDE4LjgyOFYyMWExIDEgMCAwIDAgMSAxaDNhMSAxIDAgMCAwIDEtMXYtMWExIDEgMCAwIDEgMS0xaDFhMSAxIDAgMCAwIDEtMXYtMWExIDEgMCAwIDEgMS0xaC4xNzJhMiAyIDAgMCAwIDEuNDE0LS41ODZsLjgxNC0uODE0YTYuNSA2LjUgMCAxIDAtNC00eiIgLz4KICA8Y2lyY2xlIGN4PSIxNi41IiBjeT0iNy41IiByPSIuNSIgZmlsbD0iY3VycmVudENvbG9yIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/key-round\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"key-round\" {...$$props} iconNode={iconNode}>\n <slot/>\n</Icon>\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n\timport {\n\t\tCard,\n\t\tCardContent,\n\t\tCardDescription,\n\t\tCardHeader,\n\t\tCardTitle\n\t} from '$lib/components/ui/card';\n\timport { Button } from '$lib/components/ui/button';\n\timport { Copy, Check, KeyRound } from 'lucide-svelte';\n\timport {\n\t\tprojectsState,\n\t\ttype ProjectWithToken,\n\t\tisJsFramework,\n\t\tisOtelFramework,\n\t\tisCloudflareFramework\n\t} from '$lib/state/projects.svelte';\n\timport { authState } from '$lib/state/auth.svelte';\n\timport { LoadingCircle } from '$lib/components/ui/loading-circle';\n\timport FrameworkIcon from '$lib/components/framework-icon.svelte';\n\timport Highlight from 'svelte-highlight';\n\timport go from 'svelte-highlight/languages/go';\n\timport javascript from 'svelte-highlight/languages/javascript';\n\timport bash from 'svelte-highlight/languages/bash';\n\timport php from 'svelte-highlight/languages/php';\n\timport yaml from 'svelte-highlight/languages/yaml';\n\timport { themeState } from '$lib/state/theme.svelte';\n\timport 'svelte-highlight/styles/github-dark.css';\n\timport {\n\t\tgetFrameworkCode,\n\t\tgetInstallCommand,\n\t\tgetFrameworkLabel\n\t} from '$lib/utils/framework-code';\n\n\tlet projectWithToken = $derived(projectsState.currentProject);\n\tlet copiedCode = $state(false);\n\tlet copiedInstall = $state(false);\n\tlet copiedToken = $state(false);\n\tlet copiedCommand = $state(false);\n\tlet generatingToken = $state(false);\n\tlet copiedOtelEndpoint = $state(false);\n\tlet copiedOtelAuth = $state(false);\n\tlet copiedOtelCollector = $state(false);\n\tlet copiedCfEndpoint = $state(false);\n\tlet copiedCfAuth = $state(false);\n\tlet copiedCfWrangler = $state(false);\n\tlet copiedCfDeploy = $state(false);\n\n\tconst isOtel = $derived(projectWithToken ? isOtelFramework(projectWithToken.framework) : false);\n\tconst isCloudflare = $derived(\n\t\tprojectWithToken ? isCloudflareFramework(projectWithToken.framework) : false\n\t);\n\tconst otelEndpoint = $derived(projectWithToken ? `${projectWithToken.backendUrl}/api/otel` : '');\n\tconst otelAuthHeader = $derived(projectWithToken ? `Bearer ${projectWithToken.token}` : '');\n\tconst otelCollectorConfig = $derived(\n\t\tprojectWithToken\n\t\t\t? `exporters:\n otlphttp:\n endpoint: \"${projectWithToken.backendUrl}/api/otel\"\n headers:\n Authorization: \"Bearer ${projectWithToken.token}\"\n\nservice:\n pipelines:\n traces:\n exporters: [otlphttp]\n metrics:\n exporters: [otlphttp]`\n\t\t\t: ''\n\t);\n\tconst cloudflareOtelEndpoint = $derived(\n\t\tprojectWithToken ? `${projectWithToken.backendUrl}/api/otel/v1/traces` : ''\n\t);\n\tconst cloudflareAuthHeader = $derived(projectWithToken ? `Bearer ${projectWithToken.token}` : '');\n\tconst wranglerConfig = $derived(\n\t\tprojectWithToken\n\t\t\t? `{\n \"observability\": {\n \"traces\": {\n \"enabled\": true,\n \"head_sample_rate\": 1,\n \"destinations\": [\n {\n \"name\": \"traceway\",\n \"type\": \"otlp\"\n }\n ]\n }\n }\n}`\n\t\t\t: ''\n\t);\n\n\tconst sdkCode = $derived(\n\t\tprojectWithToken\n\t\t\t? getFrameworkCode(\n\t\t\t\t\tprojectWithToken.framework,\n\t\t\t\t\tprojectWithToken.token,\n\t\t\t\t\tprojectWithToken.backendUrl\n\t\t\t\t)\n\t\t\t: ''\n\t);\n\n\tconst installCommand = $derived(\n\t\tprojectWithToken ? getInstallCommand(projectWithToken.framework) : 'go get go.tracewayapp.com'\n\t);\n\n\tconst highlightLanguage = $derived.by(() => {\n\t\tif (!projectWithToken) return go;\n\t\tif (projectWithToken.framework === 'symfony') return php;\n\t\tif (projectWithToken.framework === 'laravel') return php;\n\t\tif (isJsFramework(projectWithToken.framework)) return javascript;\n\t\treturn go;\n\t});\n\n\tconst isJs = $derived(projectWithToken ? isJsFramework(projectWithToken.framework) : false);\n\tconst isReadonly = $derived(\n\t\tauthState.getRoleForOrganization(projectsState.currentProject?.organizationId ?? 0) ===\n\t\t\t'readonly'\n\t);\n\tconst sourceMapToken = $derived(projectWithToken?.sourceMapToken ?? null);\n\n\tconst uploadCommand = $derived(\n\t\tprojectWithToken && sourceMapToken\n\t\t\t? `npx @tracewayapp/sourcemap-upload --url ${projectWithToken.backendUrl} --token ${sourceMapToken} --version YOUR_VERSION --directory dist/assets`\n\t\t\t: ''\n\t);\n\n\tasync function copyCode() {\n\t\tawait navigator.clipboard.writeText(sdkCode);\n\t\tcopiedCode = true;\n\t\tsetTimeout(() => (copiedCode = false), 2000);\n\t}\n\n\tasync function copyInstall() {\n\t\tawait navigator.clipboard.writeText(installCommand);\n\t\tcopiedInstall = true;\n\t\tsetTimeout(() => (copiedInstall = false), 2000);\n\t}\n\n\tasync function generateToken() {\n\t\tgeneratingToken = true;\n\t\ttry {\n\t\t\tawait projectsState.generateSourceMapToken();\n\t\t} finally {\n\t\t\tgeneratingToken = false;\n\t\t}\n\t}\n\n\tasync function copyToken() {\n\t\tif (!sourceMapToken) return;\n\t\tawait navigator.clipboard.writeText(sourceMapToken);\n\t\tcopiedToken = true;\n\t\tsetTimeout(() => (copiedToken = false), 2000);\n\t}\n\n\tasync function copyUploadCommand() {\n\t\tawait navigator.clipboard.writeText(uploadCommand);\n\t\tcopiedCommand = true;\n\t\tsetTimeout(() => (copiedCommand = false), 2000);\n\t}\n\n\tasync function copyCfEndpoint() {\n\t\tawait navigator.clipboard.writeText(cloudflareOtelEndpoint);\n\t\tcopiedCfEndpoint = true;\n\t\tsetTimeout(() => (copiedCfEndpoint = false), 2000);\n\t}\n\n\tasync function copyCfAuth() {\n\t\tawait navigator.clipboard.writeText(cloudflareAuthHeader);\n\t\tcopiedCfAuth = true;\n\t\tsetTimeout(() => (copiedCfAuth = false), 2000);\n\t}\n\n\tasync function copyCfWrangler() {\n\t\tawait navigator.clipboard.writeText(wranglerConfig);\n\t\tcopiedCfWrangler = true;\n\t\tsetTimeout(() => (copiedCfWrangler = false), 2000);\n\t}\n\n\tasync function copyCfDeploy() {\n\t\tawait navigator.clipboard.writeText('npx wrangler deploy');\n\t\tcopiedCfDeploy = true;\n\t\tsetTimeout(() => (copiedCfDeploy = false), 2000);\n\t}\n\n\tasync function copyOtelEndpoint() {\n\t\tawait navigator.clipboard.writeText(otelEndpoint);\n\t\tcopiedOtelEndpoint = true;\n\t\tsetTimeout(() => (copiedOtelEndpoint = false), 2000);\n\t}\n\n\tasync function copyOtelAuth() {\n\t\tawait navigator.clipboard.writeText(otelAuthHeader);\n\t\tcopiedOtelAuth = true;\n\t\tsetTimeout(() => (copiedOtelAuth = false), 2000);\n\t}\n\n\tasync function copyOtelCollector() {\n\t\tawait navigator.clipboard.writeText(otelCollectorConfig);\n\t\tcopiedOtelCollector = true;\n\t\tsetTimeout(() => (copiedOtelCollector = false), 2000);\n\t}\n</script>\n\n<div class=\"space-y-4\">\n\t<div>\n\t\t<h2 class=\"text-2xl font-bold tracking-tight\">Connection</h2>\n\t\t<p class=\"text-muted-foreground\">Connect your application to Traceway using the SDK</p>\n\t</div>\n\n\t{#if projectWithToken}\n\t\t{#if isOtel}\n\t\t\t<Card>\n\t\t\t\t<CardHeader>\n\t\t\t\t\t<CardTitle class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<FrameworkIcon framework={projectWithToken.framework} />\n\t\t\t\t\t\tConfigure the OTLP Exporter\n\t\t\t\t\t</CardTitle>\n\t\t\t\t\t<CardDescription>\n\t\t\t\t\t\tPoint your OTLP/HTTP exporter at Traceway using the endpoint and token below.\n\t\t\t\t\t</CardDescription>\n\t\t\t\t</CardHeader>\n\t\t\t\t<CardContent>\n\t\t\t\t\t<div class=\"space-y-6\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-1 text-sm font-medium\">OTLP Endpoint</p>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\tYour SDK or Collector will append <code class=\"text-xs\">/v1/traces</code> and\n\t\t\t\t\t\t\t\t<code class=\"text-xs\">/v1/metrics</code> automatically.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>{otelEndpoint}</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelEndpoint}>\n\t\t\t\t\t\t\t\t\t{#if copiedOtelEndpoint}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Authorization Header</p>\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>{otelAuthHeader}</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelAuth}>\n\t\t\t\t\t\t\t\t\t{#if copiedOtelAuth}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Example: OTel Collector (optional)</p>\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyOtelCollector}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedOtelCollector}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={yaml} code={otelCollectorConfig} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</CardContent>\n\t\t\t</Card>\n\t\t{:else if isCloudflare}\n\t\t\t<Card>\n\t\t\t\t<CardHeader>\n\t\t\t\t\t<CardTitle class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<FrameworkIcon framework={projectWithToken.framework} />\n\t\t\t\t\t\tCloudflare Workers Integration\n\t\t\t\t\t</CardTitle>\n\t\t\t\t\t<CardDescription>\n\t\t\t\t\t\tUse Cloudflare's native Observability Destinations to send traces to Traceway\n\t\t\t\t\t</CardDescription>\n\t\t\t\t</CardHeader>\n\t\t\t\t<CardContent>\n\t\t\t\t\t<div class=\"space-y-6\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Step 1 — OTLP Traces Endpoint</p>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\tEnter this URL when creating your OTLP destination in the Cloudflare dashboard.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>{cloudflareOtelEndpoint}</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfEndpoint}>\n\t\t\t\t\t\t\t\t\t{#if copiedCfEndpoint}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Step 2 — Authorization Header</p>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\tAdd this as an authorization header in your OTLP destination settings.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>{cloudflareAuthHeader}</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfAuth}>\n\t\t\t\t\t\t\t\t\t{#if copiedCfAuth}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Step 3 — wrangler.jsonc</p>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-xs text-muted-foreground\">\n\t\t\t\t\t\t\t\tEnable observability traces in your wrangler.jsonc configuration file.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfWrangler}>\n\t\t\t\t\t\t\t\t\t\t{#if copiedCfWrangler}\n\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Highlight language={javascript} code={wranglerConfig} />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Step 4 — Deploy</p>\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t>npx wrangler deploy</code\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCfDeploy}>\n\t\t\t\t\t\t\t\t\t{#if copiedCfDeploy}\n\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</CardContent>\n\t\t\t</Card>\n\t\t{:else}\n\t\t\t<Card>\n\t\t\t\t<CardHeader>\n\t\t\t\t\t<CardTitle class=\"flex items-center gap-2\">\n\t\t\t\t\t\t<FrameworkIcon framework={projectWithToken.framework} />\n\t\t\t\t\t\t{getFrameworkLabel(projectWithToken.framework)} Integration\n\t\t\t\t\t</CardTitle>\n\t\t\t\t\t<CardDescription>\n\t\t\t\t\t\tAdd Traceway to your application with just a few lines of code.\n\t\t\t\t\t</CardDescription>\n\t\t\t\t</CardHeader>\n\t\t\t\t<CardContent>\n\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyCode}>\n\t\t\t\t\t\t\t\t{#if copiedCode}\n\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Highlight language={highlightLanguage} code={sdkCode} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</CardContent>\n\t\t\t</Card>\n\n\t\t\t<Card>\n\t\t\t\t<CardHeader>\n\t\t\t\t\t<CardTitle>Installation</CardTitle>\n\t\t\t\t\t<CardDescription\n\t\t\t\t\t\t>Install the required packages{isJs ? '' : projectWithToken?.framework === 'symfony' || projectWithToken?.framework === 'laravel' ? ' using composer' : ' using go get'}.</CardDescription\n\t\t\t\t\t>\n\t\t\t\t</CardHeader>\n\t\t\t\t<CardContent>\n\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyInstall}>\n\t\t\t\t\t\t\t\t{#if copiedInstall}\n\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Highlight language={bash} code={installCommand} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</CardContent>\n\t\t\t</Card>\n\t\t\t{#if isJs && !isReadonly}\n\t\t\t\t<Card>\n\t\t\t\t\t<CardHeader>\n\t\t\t\t\t\t<CardTitle class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t<KeyRound class=\"h-5 w-5\" />\n\t\t\t\t\t\t\tSource Map Upload\n\t\t\t\t\t\t</CardTitle>\n\t\t\t\t\t\t<CardDescription>\n\t\t\t\t\t\t\tUpload source maps to see original file names and line numbers in stack traces from\n\t\t\t\t\t\t\tminified code.\n\t\t\t\t\t\t</CardDescription>\n\t\t\t\t\t</CardHeader>\n\t\t\t\t\t<CardContent>\n\t\t\t\t\t\t{#if sourceMapToken}\n\t\t\t\t\t\t\t<div class=\"space-y-4\">\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Upload Token</p>\n\t\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-2\">\n\t\t\t\t\t\t\t\t\t\t<code class=\"flex-1 rounded-md bg-muted px-3 py-2 font-mono text-sm break-all\"\n\t\t\t\t\t\t\t\t\t\t\t>{sourceMapToken}</code\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyToken}>\n\t\t\t\t\t\t\t\t\t\t\t{#if copiedToken}\n\t\t\t\t\t\t\t\t\t\t\t\t<Check class=\"h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t<p class=\"mb-2 text-sm font-medium\">Usage</p>\n\t\t\t\t\t\t\t\t\t<div class=\"relative\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"absolute top-2 right-2 z-10\">\n\t\t\t\t\t\t\t\t\t\t\t<Button variant=\"outline\" size=\"sm\" onclick={copyUploadCommand}>\n\t\t\t\t\t\t\t\t\t\t\t\t{#if copiedCommand}\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Check class=\"mr-2 h-4 w-4 text-green-500\" />\n\t\t\t\t\t\t\t\t\t\t\t\t\tCopied!\n\t\t\t\t\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t\t\t\t\t<Copy class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\t\t\t\t\tCopy\n\t\t\t\t\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\t\t\t\tclass=\"overflow-x-auto rounded-lg text-sm {themeState.isDark\n\t\t\t\t\t\t\t\t\t\t\t\t? 'dark-code'\n\t\t\t\t\t\t\t\t\t\t\t\t: 'light-code'}\"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<Highlight language={bash} code={uploadCommand} />\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t<p class=\"mb-4 text-sm text-muted-foreground\">\n\t\t\t\t\t\t\t\tGenerate an upload token to start uploading source maps as part of your build\n\t\t\t\t\t\t\t\tprocess.\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<Button onclick={generateToken} disabled={generatingToken}>\n\t\t\t\t\t\t\t\t{#if generatingToken}\n\t\t\t\t\t\t\t\t\t<LoadingCircle class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tGenerating...\n\t\t\t\t\t\t\t\t{:else}\n\t\t\t\t\t\t\t\t\t<KeyRound class=\"mr-2 h-4 w-4\" />\n\t\t\t\t\t\t\t\t\tGenerate Upload Token\n\t\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t{/if}\n\t\t\t\t\t</CardContent>\n\t\t\t\t</Card>\n\t\t\t{/if}\n\t\t{/if}\n\t{:else}\n\t\t<Card>\n\t\t\t<CardContent class=\"p-6 text-center\">\n\t\t\t\t<p class=\"text-muted-foreground\">\n\t\t\t\t\tNo project selected. Please select or create a project from the dropdown above.\n\t\t\t\t</p>\n\t\t\t</CardContent>\n\t\t</Card>\n\t{/if}\n</div>\n\n<style>\n\t/* Light theme - override dark theme defaults */\n\t:global(.light-code .hljs-name) {\n\t\tcolor: #4ba3f7;\n\t}\n\t:global(.light-code .hljs) {\n\t\tbackground: #f6f8fa;\n\t\tcolor: #24292e;\n\t}\n\t:global(.light-code .hljs-keyword),\n\t:global(.light-code .hljs-selector-tag) {\n\t\tcolor: #d73a49;\n\t}\n\t:global(.light-code .hljs-string),\n\t:global(.light-code .hljs-attr) {\n\t\tcolor: #032f62;\n\t}\n\t:global(.light-code .hljs-function),\n\t:global(.light-code .hljs-title) {\n\t\tcolor: #6f42c1;\n\t}\n\t:global(.light-code .hljs-comment) {\n\t\tcolor: #6a737d;\n\t}\n\t:global(.light-code .hljs-built_in) {\n\t\tcolor: #005cc5;\n\t}\n\t:global(.light-code .hljs-meta) {\n\t\tcolor: #d73a49;\n\t}\n\t:global(.light-code .hljs-variable) {\n\t\tcolor: #24292e;\n\t}\n\n\t/* Dark theme - ensure dark styles apply */\n\t:global(.dark-code .hljs) {\n\t\tbackground: #0d1117;\n\t\tcolor: #c9d1d9;\n\t}\n\t:global(.dark-code .hljs-keyword),\n\t:global(.dark-code .hljs-selector-tag) {\n\t\tcolor: #ff7b72;\n\t}\n\t:global(.dark-code .hljs-string),\n\t:global(.dark-code .hljs-attr) {\n\t\tcolor: #a5d6ff;\n\t}\n\t:global(.dark-code .hljs-function),\n\t:global(.dark-code .hljs-title) {\n\t\tcolor: #d2a8ff;\n\t}\n\t:global(.dark-code .hljs-comment) {\n\t\tcolor: #8b949e;\n\t}\n\t:global(.dark-code .hljs-built_in) {\n\t\tcolor: #79c0ff;\n\t}\n\t:global(.dark-code .hljs-meta) {\n\t\tcolor: #ff7b72;\n\t}\n</style>\n"],"names":["iconNode","Icon","$$anchor","$.spread_props","$$sanitized_props","load","authState","redirect","projectWithToken","$.derived","projectsState","copiedCode","$.state","copiedInstall","copiedToken","copiedCommand","generatingToken","copiedOtelEndpoint","copiedOtelAuth","copiedOtelCollector","copiedCfEndpoint","copiedCfAuth","copiedCfWrangler","copiedCfDeploy","isOtel","isOtelFramework","$.get","isCloudflare","isCloudflareFramework","otelEndpoint","otelAuthHeader","otelCollectorConfig","cloudflareOtelEndpoint","cloudflareAuthHeader","wranglerConfig","sdkCode","getFrameworkCode","installCommand","getInstallCommand","highlightLanguage","php","isJsFramework","javascript","go","isJs","isReadonly","sourceMapToken","uploadCommand","copyCode","$.set","copyInstall","generateToken","copyToken","copyUploadCommand","copyCfEndpoint","copyCfAuth","copyCfWrangler","copyCfDeploy","copyOtelEndpoint","copyOtelAuth","copyOtelCollector","div","root","Card","CardHeader","node_2","CardTitle","node_3","FrameworkIcon","node_4","CardDescription","node_5","CardContent","node_6","div_1","root_7","div_2","div_3","code","Button","node_7","Check","Copy","$$render","consequent","alternate","div_4","div_5","code_1","node_9","consequent_1","alternate_1","div_6","div_7","div_8","node_11","node_13","node_14","consequent_2","alternate_2","div_9","$.sibling","node_15","$.child","Highlight","yaml","$.reset","$.set_class","themeState","node_17","node_18","node_19","node_20","node_21","div_10","root_23","div_11","div_12","code_2","node_22","consequent_4","alternate_3","div_13","div_14","code_3","node_24","consequent_5","alternate_4","div_15","div_16","div_17","node_26","node_28","node_29","consequent_6","alternate_5","div_18","node_30","div_19","div_20","node_31","consequent_7","alternate_6","node_33","node_34","node_35","node_36","getFrameworkLabel","node_37","node_38","div_21","root_41","div_22","node_39","node_41","node_42","consequent_9","alternate_7","div_23","node_43","$.template_effect","node_44","node_45","node_46","node_47","node_48","div_24","root_49","div_25","node_49","node_51","node_52","consequent_10","alternate_8","div_26","node_53","bash","node_55","node_56","KeyRound","node_57","node_58","node_59","div_27","root_59","div_28","div_29","code_4","node_61","consequent_11","alternate_9","div_30","div_31","div_32","node_63","node_65","node_66","consequent_12","alternate_10","div_33","node_67","node_68","LoadingCircle","node_70","node_71","consequent_14","alternate_11","consequent_13","alternate_12","consequent_15","consequent_8","alternate_13","consequent_3","alternate_14","p","root_72","consequent_16","alternate_15"],"mappings":"w9BAAA,mEA6CMA,GAAQ,EAAK,QAAU,EAAK,gLAAkL,SAAY,CAAA,GAAM,OAAQ,GAAM,MAAO,EAAK,KAAM,KAAQ,cAAc,IAc3RC,GAAIC,GAAAC,GAAA,CAAA,KAAA,WAAA,EAAA,IAAAC,EAAA,uBAAyCJ,wGAF9C,CCrDO,MAAMK,GAAiB,IAAM,CACnC,GAAI,CAACC,GAAU,gBACd,MAAMC,GAAS,IAAK,QAAQ,CAE9B;8ZCRA,eAkCKC,EAAgBC,EAAA,IAAYC,GAAc,cAAc,EACxDC,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AAyBnC,EAAe,kEAEtD0L,GAAaC,EAAA,CAAA,MAAA,cAAA,CAAA,sCAGbxB,GAAQyB,EAAA,CAAA,MAAA,cAAA,CAAA,wBAJL5L,EAAe,EAAAmE,EAAA0H,CAAA,EAAA1H,EAAA2H,EAAA,EAAA,qDA/CjBhK,EAAc,EAAAqC,EAAA4H,CAAA,EAAA5H,EAAA6H,EAAA,EAAA,2EAbjBtL,EAAAkB,EAAI,MAAKC,EAAU,GAAAsC,EAAA8H,CAAA,uBA9JftL,EAAY,EAAAwD,EAAA+H,EAAA,EAAA/H,EAAAgI,GAAA,EAAA,2BAzEjB3L,EAAM,EAAA2D,EAAAiI,EAAA,EAAAjI,EAAAkI,GAAA,EAAA,sBAiTVtJ,GAAI7D,GAAA,oBACHsE,GAAWtE,GAAA,gDACVoN,EAACC,GAAA,OAADD,CAAC,+DApTA9M,CAAgB,EAAA2E,GAAAqI,EAAA,EAAArI,GAAAsI,GAAA,EAAA,MANrB5J,EAAG,OAAHA,EAAG,MAFJ","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/immutable/nodes/9.BUJKpYei.js b/backend/static/frontend/_app/immutable/nodes/9._aK9M2Us.js
similarity index 97%
rename from backend/static/frontend/_app/immutable/nodes/9.BUJKpYei.js
rename to backend/static/frontend/_app/immutable/nodes/9._aK9M2Us.js
index 510ccced..d8e4350e 100644
--- a/backend/static/frontend/_app/immutable/nodes/9.BUJKpYei.js
+++ b/backend/static/frontend/_app/immutable/nodes/9._aK9M2Us.js
@@ -1 +1 @@
-import{r as Be}from"../chunks/BJZ1igWb.js";import{b as He,a as Ae,p as Ee}from"../chunks/D6S6XYVy.js";import{s as Ge,r as Ye,p as le,i as ct,b as Ke}from"../chunks/DMODTt3n.js";import{o as We,a as Qe}from"../chunks/Dwk6gGSK.js";import{p as ze,d as F,c as v,m as Je,o as Ze,b as s,a as Ie,q as tr,F as Le,g as t,h as b,i as a,f as N,e as S,u as h,s as f,r as y,k as V,j as Ne,w as xe,l as rt,v as ht,n as Ut,t as Kt}from"../chunks/B2WdN-7r.js";import{e as jt,i as Vt}from"../chunks/CMyj8Fzw.js";import{c as $}from"../chunks/BAcG0-U_.js";import{f as er,g as qe,c as Ue,t as Oe,b as pe}from"../chunks/DJdWGDax.js";import{b as ge,T as he,a as It,c as rr}from"../chunks/CeOjHHJH.js";import{T as ar}from"../chunks/CEJkX7WU.js";import{a as or,b as nr,C as sr}from"../chunks/BHR29ZVu.js";import{C as ir}from"../chunks/BKHeGn2e.js";import"../chunks/C1aqwstW.js";import{L as Fe}from"../chunks/D0pIT200.js";import{D as lr,a as ur,b as dr,c as cr}from"../chunks/BLztqFjH.js";import{T as Wt}from"../chunks/BQmrPeqT.js";import{I as fr}from"../chunks/CK7m5hvD.js";import{T as mr}from"../chunks/xk30YnJ1.js";import{P as vr}from"../chunks/C8IsQj6C.js";import{g as je,d as Qt,a as Jt,T as pr,p as gr,b as hr,u as _r,$ as Ve}from"../chunks/xqPrLpfy.js";import{S as xr}from"../chunks/DGXZzcqC.js";import{c as $r}from"../chunks/CyOblkUv.js";import{r as br}from"../chunks/D_mqy6BL.js";import{P as yr}from"../chunks/BGqyWGxT.js";import{e as Ot,s as D}from"../chunks/DH0tcjsQ.js";import{d as _e,e as wr,l as Tr,c as Sr,m as Dr,a as Pr,u as kr,D as Mr}from"../chunks/Dj0-793h.js";import{g as Cr,h as Fr,s as Rr}from"../chunks/X-i49s3k.js";import{I as zr}from"../chunks/Bv_PbELb.js";import{C as Ir}from"../chunks/RIbCUOxE.js";import{C as Ar}from"../chunks/BISlaXSK.js";function Er(P,c){ze(c,!0);let l=Ye(c,["$$slots","$$events","$$legacy"]);const R=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16"}],["path",{d:"m19 9-5 5-4-4-3 3"}]];zr(P,Ge({name:"chart-line"},()=>l,{get iconNode(){return R},children:(_,i)=>{var k=F(),z=v(k);Je(z,()=>c.children??Ze),s(_,k)},$$slots:{default:!0}})),Ie()}function Xe(P,c){if((k=P.length)>1)for(var l=1,R,_,i=P[c[0]],k,z=i.length;l<k;++l)for(_=i,i=P[c[l]],R=0;R<z;++R)i[R][1]+=i[R][0]=isNaN(_[R][1])?_[R][0]:_[R][1]}function Re(P){for(var c=P.length,l=new Array(c);--c>=0;)l[c]=c;return l}function Lr(P,c){return P[c]}function Nr(P){const c=[];return c.key=P,c}function Ur(){var P=_e([]),c=Re,l=Xe,R=Lr;function _(i){var k=Array.from(P.apply(this,arguments),Nr),z,W=k.length,G=-1,U;for(const X of i)for(z=0,++G;z<W;++z)(k[z][G]=[0,+R(X,k[z].key,G,i)]).data=X;for(z=0,U=wr(c(k));z<W;++z)k[U[z]].index=z;return l(k,U),k}return _.keys=function(i){return arguments.length?(P=typeof i=="function"?i:_e(Array.from(i)),_):P},_.value=function(i){return arguments.length?(R=typeof i=="function"?i:_e(+i),_):R},_.order=function(i){return arguments.length?(c=i==null?Re:typeof i=="function"?i:_e(Array.from(i)),_):c},_.offset=function(i){return arguments.length?(l=i??Xe,_):l},_}function Or(P){return Re(P).reverse()}const jr=()=>{if(!He.isAuthenticated)throw Be(302,"/login")},Xa=Object.freeze(Object.defineProperty({__proto__:null,load:jr},Symbol.toStringTag,{value:"Module"}));var Vr=xe('<line stroke="currentColor" class="text-border" stroke-width="1" stroke-dasharray="4 4"></line>'),Xr=xe('<text text-anchor="end" dominant-baseline="middle" fill="currentColor" class="text-muted-foreground" font-size="10"> </text>'),qr=xe('<path fill-opacity="0.7" stroke-width="1"></path>'),Br=xe('<svg><g><!><!><line stroke="currentColor" class="text-border" stroke-width="1"></line><line stroke="currentColor" class="text-border" stroke-width="1"></line><!></g></svg>'),Hr=N('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data in this period</div>'),Gr=N('<div class="absolute top-0 bottom-0 bg-primary/20 border-x border-primary/40 pointer-events-none"><div class="absolute -top-5 left-0 -translate-x-full text-[9px] font-medium text-primary whitespace-nowrap"> </div> <div class="absolute -top-5 right-0 translate-x-full text-[9px] font-medium text-primary whitespace-nowrap"> </div></div>'),Yr=N('<div class="flex items-center gap-1.5"><span class="h-2 w-2 rounded-full flex-shrink-0"></span> <span class="truncate max-w-[200px]"> </span> <span class="ml-auto tabular-nums"> </span></div>'),Kr=N('<div class="absolute -translate-x-1/2 -translate-y-full pointer-events-none z-10"><div class="bg-background text-foreground border border-border rounded px-2 py-1.5 text-xs font-medium whitespace-nowrap mb-1 flex flex-col gap-0.5"></div></div>'),Wr=N('<div class="absolute top-0 bottom-0 w-px bg-muted-foreground/50 pointer-events-none"></div> <!> <div class="absolute bottom-0 -translate-x-1/2 translate-y-full pointer-events-none"><div class="bg-background border border-border rounded px-1.5 py-0.5 text-[10px] text-muted-foreground whitespace-nowrap shadow-sm mt-1"> </div></div>',1),Qr=N('<div class="flex items-center gap-1.5"><span class="h-2 w-2 rounded-full flex-shrink-0"></span> <span class="truncate max-w-[180px]"> </span></div>'),Jr=N('<div class="flex flex-wrap gap-x-4 gap-y-1 px-2 text-xs text-muted-foreground"></div>'),Zr=N('<div class="flex flex-col gap-2"><div class="relative select-none w-full" role="application" aria-label="Stacked area chart with drag-to-zoom"><!> <!> <!></div> <!></div>');function ta(P,c){ze(c,!0);let l=le(c,"endpoints",19,()=>[]),R=le(c,"series",19,()=>[]),_=le(c,"height",3,220),i=le(c,"padding",19,()=>({top:10,right:4,bottom:20,left:55})),k=le(c,"unit",3,"ms");const z=h(qe),W=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)","var(--muted-foreground)"];let G=b(null),U=b(300),X=b(!1),_t=b(0),Q=b(!1),xt=b(0),$t=b(0);Le(()=>{if(!t(G))return;const e=new ResizeObserver(o=>{for(const u of o)a(U,u.contentRect.width,!0)});return e.observe(t(G)),()=>e.disconnect()});const bt=h(()=>Math.max(0,t(U)-i().left-i().right)),Dt=h(()=>Math.max(0,_()-i().top-i().bottom)),lt=h(()=>()=>{if(R().length===0||l().length===0)return[];const e=new Map;for(const o of R()){const u=o.timestamp.getTime();if(!e.has(u)){const d={timestamp:o.timestamp};for(const m of l())d[m]=0;e.set(u,d)}const g=e.get(u);g[o.endpoint]=o.value}return Array.from(e.values()).sort((o,u)=>o.timestamp.getTime()-u.timestamp.getTime())}),at=h(()=>()=>{const e=t(lt)();return e.length===0?new Date:Dr(e,o=>o.timestamp)??new Date}),ft=h(()=>()=>{const e=t(lt)();return e.length===0?new Date:Pr(e,o=>o.timestamp)??new Date});function mt(e,o){const u=e[o];return typeof u=="number"?u:0}const Pt=h(()=>()=>{const e=t(lt)();if(e.length===0||l().length===0)return 0;let o=0;for(const u of e){let g=0;for(const d of l())g+=mt(u,d);o=Math.max(o,g)}return o}),kt=h(()=>t(Pt)()*1.1||1),$e=h(()=>kr().domain([t(at)(),t(ft)()]).range([0,t(bt)])),Mt=h(()=>Tr().domain([0,t(kt)]).range([t(Dt),0])),Zt=h(()=>()=>t(Mt).ticks(4));function ue(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":Number.isInteger(e)?e.toString():e.toFixed(1)}const yt=h(()=>()=>{const e=t(lt)();if(e.length===0||l().length===0)return[];const u=Ur().keys(l()).order(Or)(e),g=Sr().x((d,m)=>t($e)(e[m].timestamp)).y0(d=>t(Mt)(d[0])).y1(d=>t(Mt)(d[1]));return u.map((d,m)=>({key:d.key,path:g(d)||"",color:W[m%W.length]}))}),pt=h(()=>t(lt)().length>0&&l().length>0);function Xt(){return t(_t)>=i().left&&t(_t)<=t(U)-i().right}function Ct(e){if(t(bt)<=0)return t(at)();const o=e-i().left,u=Math.max(0,Math.min(1,o/t(bt))),g=t(ft)().getTime()-t(at)().getTime();return new Date(t(at)().getTime()+g*u)}const qt=h(()=>Math.max(i().left,Math.min(t(xt),t($t)))),be=h(()=>Math.min(t(U)-i().right,Math.max(t(xt),t($t)))),Bt=h(()=>t(be)-t(qt)),de=h(()=>Ct(t(qt))),wt=h(()=>Ct(t(qt)+t(Bt)));function ye(e){const o=t(lt)();if(o.length===0)return null;const u=e.getTime();let g=null,d=1/0;for(const m of o){const M=Math.abs(m.timestamp.getTime()-u);M<d&&(d=M,g=m)}return g}const ce=h(()=>()=>t(X)?Ct(t(_t)):null),Ft=h(()=>()=>{const e=t(ce)();return e?ye(e):null});function we(e){return c.formatValue?c.formatValue(e):Number.isInteger(e)?e.toString():Math.abs(e)<.01?e.toFixed(4):Math.abs(e)<1?e.toFixed(2):Math.abs(e)<10?e.toFixed(1):Math.round(e).toString()}function Te(e){if(!t(G))return;const o=t(G).getBoundingClientRect();a(_t,e.clientX-o.left),t(Q)&&a($t,t(_t),!0)}function Se(){a(X,!0)}function De(){a(X,!1),t(Q)&&a(Q,!1)}function Pe(e){if(!t(G)||e.button!==0)return;const o=t(G).getBoundingClientRect(),u=e.clientX-o.left;u<i().left||u>o.width-i().right||(a(Q,!0),a(xt,u),a($t,u),e.preventDefault())}function te(){if(t(Q)&&(a(Q,!1),t(Bt)>10&&c.onRangeSelect)){const e=Ct(Math.min(t(xt),t($t))),o=Ct(Math.max(t(xt),t($t)));c.onRangeSelect(e,o)}}function fe(e){e.key==="Escape"&&t(Q)&&(a(Q,!1),a(xt,0),a($t,0))}Le(()=>{if(t(Q))return window.addEventListener("keydown",fe),()=>window.removeEventListener("keydown",fe)});function At(e){return e?er(e,{timezone:t(z),format:"time"}):""}function ee(e){const o=l().indexOf(e);return o===-1?W[W.length-1]:W[o%W.length]}function re(e,o=30){return e.length<=o?e:e.slice(0,o-3)+"..."}var Ht=Zr(),vt=S(Ht);vt.__mousemove=Te,vt.__mousedown=Pe,vt.__mouseup=te;var ae=S(vt);{var me=e=>{var o=Br(),u=S(o),g=S(u);jt(g,17,()=>t(Zt)(),Vt,(O,x)=>{var p=Vr();D(p,"x1",0),V((w,T)=>{D(p,"y1",w),D(p,"x2",t(bt)),D(p,"y2",T)},[()=>t(Mt)(t(x)),()=>t(Mt)(t(x))]),s(O,p)});var d=f(g);jt(d,17,()=>t(Zt)(),Vt,(O,x)=>{var p=Xr();D(p,"x",-8);var w=S(p,!0);y(p),V((T,Y)=>{D(p,"y",T),rt(w,Y)},[()=>t(Mt)(t(x)),()=>ue(t(x))]),s(O,p)});var m=f(d);D(m,"x1",0);var M=f(m);D(M,"x1",0),D(M,"y1",0),D(M,"x2",0);var C=f(M);jt(C,17,()=>t(yt)(),Vt,(O,x,p,w)=>{var T=qr();V(()=>{D(T,"d",t(x).path),D(T,"fill",t(x).color),D(T,"stroke",t(x).color)}),s(O,T)}),y(u),y(o),V(()=>{D(o,"width",t(U)),D(o,"height",_()),D(u,"transform",`translate(${i().left??""}, ${i().top??""})`),D(m,"y1",t(Dt)),D(m,"x2",t(bt)),D(m,"y2",t(Dt)),D(M,"y2",t(Dt))}),s(e,o)},oe=e=>{var o=Hr();s(e,o)};ct(ae,e=>{t(pt)&&t(bt)>0?e(me):e(oe,!1)})}var ve=f(ae,2);{var ke=e=>{var o=Gr(),u=S(o),g=S(u,!0);y(u);var d=f(u,2),m=S(d,!0);y(d),y(o),V((M,C)=>{Ot(o,`left: ${t(qt)??""}px; width: ${t(Bt)??""}px;`),rt(g,M),rt(m,C)},[()=>At(t(de)),()=>At(t(wt))]),s(e,o)};ct(ve,e=>{t(Q)&&t(Bt)>0&&e(ke)})}var r=f(ve,2);{var n=e=>{const o=h(()=>Math.max(i().left,Math.min(t(_t),t(U)-i().right))),u=h(()=>t(Ft)());var g=Wr(),d=v(g),m=f(d,2);{var M=p=>{var w=Kr(),T=S(w);jt(T,21,l,Vt,(Y,A)=>{const J=h(()=>mt(t(u),t(A)));var E=F(),Z=v(E);{var tt=K=>{var q=Yr(),B=S(q),L=f(B,2),H=S(L,!0);y(L);var ot=f(L,2),j=S(ot);y(ot),y(q),V((St,gt,nt)=>{Ot(B,`background-color: ${St??""};`),D(L,"title",t(A)),rt(H,gt),rt(j,`${nt??""}${!c.formatValue&&k()?` ${k()}`:""}`)},[()=>ee(t(A)),()=>re(t(A),25),()=>we(t(J))]),s(K,q)};ct(Z,K=>{t(J)>0&&K(tt)})}s(Y,E)}),y(T),y(w),V(()=>Ot(w,`left: ${t(o)??""}px; top: 10px;`)),s(p,w)};ct(m,p=>{t(u)&&p(M)})}var C=f(m,2),O=S(C),x=S(O,!0);y(O),y(C),V(p=>{Ot(d,`left: ${t(o)??""}px;`),Ot(C,`left: ${t(o)??""}px;`),rt(x,p)},[()=>At(t(ce)())]),s(e,g)};ct(r,e=>{t(X)&&!t(Q)&&Xt()&&t(Ft)()&&e(n)})}y(vt),Ke(vt,e=>a(G,e),()=>t(G));var I=f(vt,2);{var Tt=e=>{var o=Jr();jt(o,21,l,Vt,(u,g,d)=>{var m=Qr(),M=S(m),C=f(M,2),O=S(C,!0);y(C),y(m),V(x=>{Ot(M,`background-color: ${W[d%W.length]??""};`),D(C,"title",t(g)),rt(O,x)},[()=>re(t(g),25)]),s(u,m)}),y(o),s(e,o)};ct(I,e=>{t(pt)&&e(Tt)})}y(Ht),V(e=>Ot(vt,`height: ${_()??""}px; cursor: ${e??""};`),[()=>t(Q)?"col-resize":Xt()?"crosshair":"default"]),Ne("mouseenter",vt,Se),Ne("mouseleave",vt,De),s(P,Ht),Ie()}tr(["mousemove","mousedown","mouseup"]);var ea=N(" <!>",1),ra=N("<span> </span> <!>",1),aa=N("<!> <!>",1),oa=N("<!> <!>",1),na=N('<div class="flex justify-center items-center h-[220px]"><!></div>'),sa=N('<div class="flex justify-center items-center h-[220px]"><!></div>'),ia=N("<!> <!>",1),la=N('<div class="flex justify-center items-center h-full"><!></div>'),ua=N("<!> <!> <!> <!> <!> <!>",1),da=N("<!> <!> <!> <!> <!> <!>",1),ca=N("<!> <!>",1),fa=N('<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex flex-col"><!></div></div> <!> <!> <div class="rounded-md border overflow-hidden"><!></div> <!></div>');function qa(P,c){ze(c,!0);const l=h(qe),R=[{value:"total_time",label:"Total time"},{value:"p50",label:"Average response time"},{value:"p95",label:"Slow response time"},{value:"p99",label:"Awful response time"}];let _=b(ht([])),i=b(!0),k=b(""),z=b(ht([])),W=b(ht([])),G=b(!0),U=b("total_time"),X=b(1),_t=b(50),Q=b(0),xt=b(0);function $t(){const r=new URLSearchParams(window.location.search);return{...gr(t(l),"24h"),search:r.get("search")||""}}const bt=$t(),Dt=je(bt,t(l));let lt=b(ht(bt.search)),at=b(ht(bt.preset)),ft=b(ht(Qt(Dt.from,t(l)))),mt=b(ht(Qt(Dt.to,t(l)))),Pt=b(ht(Jt(Dt.from,t(l)))),kt=b(ht(Jt(Dt.to,t(l))));function $e(r=!0){const n={};t(at)?n.preset=t(at):(n.from=Xt(),n.to=Ct()),t(lt).trim()&&(n.search=t(lt).trim()),_r(n,{pushToHistory:r})}function Mt(){const r=$t(),n=je(r,t(l));a(at,r.preset,!0),a(ft,Qt(n.from,t(l)),!0),a(Pt,Jt(n.from,t(l)),!0),a(mt,Qt(n.to,t(l)),!0),a(kt,Jt(n.to,t(l)),!0),a(lt,r.search,!0),a(X,1),wt(!1)}const Zt="endpoints",ue=Cr(Zt,{field:"impact",direction:"desc"});let yt=b(ht(ue.field)),pt=b(ht(ue.direction));function Xt(){const[r,n]=(t(Pt)||"00:00").split(":").map(Number),I=Ue({year:t(ft).year,month:t(ft).month,day:t(ft).day,hour:r,minute:n},t(l));return Oe(I)}function Ct(){const[r,n]=(t(kt)||"23:59").split(":").map(Number),I=Ue({year:t(mt).year,month:t(mt).month,day:t(mt).day,hour:r,minute:n},t(l)).endOf("minute");return Oe(I)}function qt(r,n,I){a(ft,r.date,!0),a(Pt,r.time,!0),a(mt,n.date,!0),a(kt,n.time,!0),a(at,I,!0),a(X,1),wt(!1)}function be(r){return r>=1e6?`${(r/1e6).toFixed(1)}m`:r>=1e3?`${(r/1e3).toFixed(1)}k`:r.toLocaleString()}function Bt(r,n){const Tt=(n.getTime()-r.getTime())/(1e3*60*60);return Tt<=1?1:Tt<=6?5:Tt<=168?60:240}async function de(){a(G,!0);try{const r=Xt(),n=Ct(),I=Bt(new Date(r),new Date(n)),Tt=await Ae.post("/endpoints/chart",{fromDate:r,toDate:n,metricType:t(U),intervalMinutes:I},{projectId:Ee.currentProjectId??void 0});a(z,Tt.endpoints||[],!0),a(W,(Tt.series||[]).map(e=>({timestamp:new Date(e.timestamp),endpoint:e.endpoint,value:e.value})),!0)}catch(r){console.error("Failed to load chart data:",r),a(z,[],!0),a(W,[],!0)}finally{a(G,!1)}}async function wt(r=!0){if(a(i,!0),a(k,""),t(at)){const n=hr(t(at),t(l));a(ft,Qt(n.from,t(l)),!0),a(mt,Qt(n.to,t(l)),!0),a(Pt,Jt(n.from,t(l)),!0),a(kt,Jt(n.to,t(l)),!0)}$e(r);try{const n={fromDate:Xt(),toDate:Ct(),orderBy:t(yt),sortDirection:t(pt),pagination:{page:t(X),pageSize:t(_t)},search:t(lt).trim()},I=await Ae.post("/endpoints/grouped",n,{projectId:Ee.currentProjectId??void 0});a(_,I.data||[],!0),a(Q,I.pagination.total,!0),a(xt,I.pagination.totalPages,!0)}catch(n){console.error(n),a(k,n.message||"Failed to load data",!0)}finally{a(i,!1)}de()}function ye(r){r>=1&&r<=t(xt)&&(a(X,r,!0),wt(!1))}function ce(r){a(_t,r,!0),a(X,1),wt(!1)}function Ft(r){const n=Fr(r,t(yt),t(pt));a(yt,n.field,!0),a(pt,n.direction,!0),Rr(Zt,n),a(X,1),wt(!1)}function we(r){a(U,r,!0),de()}function Te(){a(X,1),wt(!0)}function Se(r,n){a(at,null),a(ft,new Ve(r.getFullYear(),r.getMonth()+1,r.getDate()),!0),a(Pt,`${String(r.getHours()).padStart(2,"0")}:${String(r.getMinutes()).padStart(2,"0")}`),a(mt,new Ve(n.getFullYear(),n.getMonth()+1,n.getDate()),!0),a(kt,`${String(n.getHours()).padStart(2,"0")}:${String(n.getMinutes()).padStart(2,"0")}`),a(X,1),wt(!0)}const De=h(()=>R.find(r=>r.value===t(U))?.label??"Total time");function Pe(r){return r>=36e5?`${(r/36e5).toFixed(1)}h`:r>=6e4?`${(r/6e4).toFixed(1)}m`:r>=1e3?`${(r/1e3).toFixed(1)}s`:r<1?`${(r*1e3).toFixed(0)}µs`:`${Math.round(r)}ms`}const te=h(()=>t(U)!=="total_time"),fe=h(()=>{if(!t(te)||t(_).length===0)return[];const r=t(U)==="p50"?"p50Duration":t(U)==="p95"?"p95Duration":"p99Duration";return[...t(_)].sort((n,I)=>I[r]-n[r]).slice(0,8).map(n=>({endpoint:n.endpoint,value:n[r]}))});We(()=>{window.addEventListener("popstate",Mt),wt(!1)}),Qe(()=>{typeof window<"u"&&window.removeEventListener("popstate",Mt)});var At=fa(),ee=S(At),re=S(ee);yr(re,{title:"Endpoints"});var Ht=f(re,2),vt=S(Ht);pr(vt,{onApply:qt,get fromDate(){return t(ft)},set fromDate(r){a(ft,r,!0)},get toDate(){return t(mt)},set toDate(r){a(mt,r,!0)},get fromTime(){return t(Pt)},set fromTime(r){a(Pt,r,!0)},get toTime(){return t(kt)},set toTime(r){a(kt,r,!0)},get preset(){return t(at)},set preset(r){a(at,r,!0)}}),y(Ht),y(ee);var ae=f(ee,2);xr(ae,{placeholder:"Search endpoints...",onSearch:Te,get disabled(){return t(i)},get value(){return t(lt)},set value(r){a(lt,r,!0)}});var me=f(ae,2);$(me,()=>sr,(r,n)=>{n(r,{class:"pt-2",children:(I,Tt)=>{var e=ia(),o=v(e);$(o,()=>or,(g,d)=>{d(g,{class:"flex flex-row items-center justify-between space-y-0 border-b [.border-b]:pb-2 pl-3",children:(m,M)=>{var C=F(),O=v(C);$(O,()=>nr,(x,p)=>{p(x,{class:"text-base font-medium flex items-center gap-2",children:(w,T)=>{var Y=oa(),A=v(Y);Er(A,{class:"h-3.5 w-3.5 text-muted-foreground"});var J=f(A,2);$(J,()=>lr,(E,Z)=>{Z(E,{children:(tt,K)=>{var q=aa(),B=v(q);$(B,()=>ur,(H,ot)=>{ot(H,{class:"flex items-center text-sm gap-0.5 font-[400] text-muted-foreground",children:(j,St)=>{Ut();var gt=ea(),nt=v(gt),Rt=f(nt);Ir(Rt,{class:"h-3 w-3 text-muted-foreground"}),V(()=>rt(nt,`${t(De)??""} `)),s(j,gt)},$$slots:{default:!0}})});var L=f(B,2);$(L,()=>dr,(H,ot)=>{ot(H,{align:"start",class:"w-[200px]",children:(j,St)=>{var gt=F(),nt=v(gt);jt(nt,17,()=>R,Vt,(Rt,zt)=>{var Et=F(),ne=v(Et);$(ne,()=>cr,(Lt,Gt)=>{Gt(Lt,{onclick:()=>we(t(zt).value),class:"flex items-center justify-between cursor-pointer",children:(st,Me)=>{var se=ra(),Yt=v(se),Ce=S(Yt,!0);y(Yt);var ut=f(Yt,2);{var dt=et=>{Ar(et,{class:"h-4 w-4"})};ct(ut,et=>{t(zt).value===t(U)&&et(dt)})}V(()=>rt(Ce,t(zt).label)),s(st,se)},$$slots:{default:!0}})}),s(Rt,Et)}),s(j,gt)},$$slots:{default:!0}})}),s(tt,q)},$$slots:{default:!0}})}),s(w,Y)},$$slots:{default:!0}})}),s(m,C)},$$slots:{default:!0}})});var u=f(o,2);$(u,()=>ir,(g,d)=>{d(g,{children:(m,M)=>{var C=F(),O=v(C);{var x=w=>{var T=na(),Y=S(T);Fe(Y,{size:"xlg"}),y(T),s(w,T)},p=w=>{var T=F(),Y=v(T);{var A=E=>{var Z=F(),tt=v(Z);{var K=B=>{var L=sa(),H=S(L);Fe(H,{size:"xlg"}),y(L),s(B,L)},q=B=>{Mr(B,{get data(){return t(fe)},get formatValue(){return pe}})};ct(tt,B=>{t(i)?B(K):B(q,!1)})}s(E,Z)},J=E=>{ta(E,{get endpoints(){return t(z)},get series(){return t(W)},formatValue:Pe,onRangeSelect:Se})};ct(Y,E=>{t(te)?E(A):E(J,!1)},!0)}s(w,T)};ct(O,w=>{t(G)&&!t(te)?w(x):w(p,!1)})}s(m,C)},$$slots:{default:!0}})}),s(I,e)},$$slots:{default:!0}})});var oe=f(me,2),ve=S(oe);$(ve,()=>rr,(r,n)=>{n(r,{children:(I,Tt)=>{var e=F(),o=v(e);{var u=d=>{var m=F(),M=v(m);$(M,()=>ge,(C,O)=>{O(C,{children:(x,p)=>{var w=F(),T=v(w);$(T,()=>he,(Y,A)=>{A(Y,{children:(J,E)=>{var Z=F(),tt=v(Z);$(tt,()=>It,(K,q)=>{q(K,{colspan:6,class:"h-48",children:(B,L)=>{var H=la(),ot=S(H);Fe(ot,{size:"xlg"}),y(H),s(B,H)},$$slots:{default:!0}})}),s(J,Z)},$$slots:{default:!0}})}),s(x,w)},$$slots:{default:!0}})}),s(d,m)},g=d=>{var m=F(),M=v(m);{var C=x=>{var p=F(),w=v(p);$(w,()=>ge,(T,Y)=>{Y(T,{children:(A,J)=>{var E=F(),Z=v(E);$(Z,()=>he,(tt,K)=>{K(tt,{children:(q,B)=>{var L=F(),H=v(L);$(H,()=>It,(ot,j)=>{j(ot,{colspan:6,class:"h-24 text-center text-red-500",children:(St,gt)=>{Ut();var nt=Kt();V(()=>rt(nt,t(k))),s(St,nt)},$$slots:{default:!0}})}),s(q,L)},$$slots:{default:!0}})}),s(A,E)},$$slots:{default:!0}})}),s(x,p)},O=x=>{var p=F(),w=v(p);{var T=A=>{var J=F(),E=v(J);$(E,()=>ge,(Z,tt)=>{tt(Z,{children:(K,q)=>{mr(K,{colspan:6,message:"No endpoint data available for your search parameters"})},$$slots:{default:!0}})}),s(A,J)},Y=A=>{var J=ca(),E=v(J);$(E,()=>ar,(tt,K)=>{K(tt,{children:(q,B)=>{var L=F(),H=v(L);$(H,()=>he,(ot,j)=>{j(ot,{children:(St,gt)=>{var nt=ua(),Rt=v(nt);Wt(Rt,{label:"Endpoint",tooltip:"The API route or page being accessed",class:"max-w-[50%]"});var zt=f(Rt,2);Wt(zt,{label:"Calls",tooltip:"Total number of requests",sortField:"count",get currentSortField(){return t(yt)},get sortDirection(){return t(pt)},onSort:st=>Ft(st),class:"w-[100px]"});var Et=f(zt,2);Wt(Et,{label:"Typical",tooltip:"Median response time (P50)",sortField:"p50_duration",get currentSortField(){return t(yt)},get sortDirection(){return t(pt)},onSort:st=>Ft(st),class:"w-[100px]"});var ne=f(Et,2);Wt(ne,{label:"Slow",tooltip:"95th percentile - slowest 5% of requests",sortField:"p95_duration",get currentSortField(){return t(yt)},get sortDirection(){return t(pt)},onSort:st=>Ft(st),class:"w-[100px]"});var Lt=f(ne,2);Wt(Lt,{label:"Awful",tooltip:"99th percentile - slowest 1% of requests",sortField:"p99_duration",get currentSortField(){return t(yt)},get sortDirection(){return t(pt)},onSort:st=>Ft(st),class:"w-[100px]"});var Gt=f(Lt,2);Wt(Gt,{label:"Impact",tooltip:"Impact score based on Apdex, error rates, P99 latency, and request volume",sortField:"impact",get currentSortField(){return t(yt)},get sortDirection(){return t(pt)},onSort:st=>Ft(st),align:"right",class:"w-[120px]"}),s(St,nt)},$$slots:{default:!0}})}),s(q,L)},$$slots:{default:!0}})});var Z=f(E,2);$(Z,()=>ge,(tt,K)=>{K(tt,{children:(q,B)=>{var L=F(),H=v(L);jt(H,17,()=>t(_),Vt,(ot,j)=>{var St=F(),gt=v(St);{let nt=h(()=>$r(br(`/endpoints/${encodeURIComponent(t(j).endpoint)}`),"preset","from","to"));$(gt,()=>he,(Rt,zt)=>{zt(Rt,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return t(nt)},children:(Et,ne)=>{var Lt=da(),Gt=v(Lt);$(Gt,()=>It,(ut,dt)=>{dt(ut,{class:"font-mono text-sm max-w-[50%] break-all whitespace-normal",children:(et,ie)=>{Ut();var it=Kt();V(()=>rt(it,t(j).endpoint)),s(et,it)},$$slots:{default:!0}})});var st=f(Gt,2);$(st,()=>It,(ut,dt)=>{dt(ut,{class:"tabular-nums",children:(et,ie)=>{Ut();var it=Kt();V(Nt=>rt(it,Nt),[()=>be(t(j).count)]),s(et,it)},$$slots:{default:!0}})});var Me=f(st,2);$(Me,()=>It,(ut,dt)=>{dt(ut,{class:"font-mono text-sm tabular-nums",children:(et,ie)=>{Ut();var it=Kt();V(Nt=>rt(it,Nt),[()=>pe(t(j).p50Duration)]),s(et,it)},$$slots:{default:!0}})});var se=f(Me,2);$(se,()=>It,(ut,dt)=>{dt(ut,{class:"font-mono text-sm tabular-nums",children:(et,ie)=>{Ut();var it=Kt();V(Nt=>rt(it,Nt),[()=>pe(t(j).p95Duration)]),s(et,it)},$$slots:{default:!0}})});var Yt=f(se,2);$(Yt,()=>It,(ut,dt)=>{dt(ut,{class:"font-mono text-sm tabular-nums",children:(et,ie)=>{Ut();var it=Kt();V(Nt=>rt(it,Nt),[()=>pe(t(j).p99Duration)]),s(et,it)},$$slots:{default:!0}})});var Ce=f(Yt,2);$(Ce,()=>It,(ut,dt)=>{dt(ut,{class:"text-right",children:(et,ie)=>{fr(et,{get score(){return t(j).impact},get reason(){return t(j).impactReason}})},$$slots:{default:!0}})}),s(Et,Lt)},$$slots:{default:!0}})})}s(ot,St)}),s(q,L)},$$slots:{default:!0}})}),s(A,J)};ct(w,A=>{t(_).length===0?A(T):A(Y,!1)},!0)}s(x,p)};ct(M,x=>{t(k)?x(C):x(O,!1)},!0)}s(d,m)};ct(o,d=>{t(i)?d(u):d(g,!1)})}s(I,e)},$$slots:{default:!0}})}),y(oe);var ke=f(oe,2);vr(ke,{get currentPage(){return t(X)},get totalPages(){return t(xt)},get pageSize(){return t(_t)},get totalItems(){return t(Q)},onPageChange:ye,onPageSizeChange:ce,get loading(){return t(i)},itemLabel:"endpoint"}),y(At),s(P,At),Ie()}export{qa as component,Xa as universal};
+import{r as Be}from"../chunks/B4VmGkxP.js";import{b as He,a as Ae,p as Ee}from"../chunks/qCQ2nSvO.js";import{s as Ge,r as Ye,p as le,i as ct,b as Ke}from"../chunks/DMODTt3n.js";import{o as We,a as Qe}from"../chunks/Dwk6gGSK.js";import{p as ze,d as F,c as v,m as Je,o as Ze,b as s,a as Ie,q as tr,F as Le,g as t,h as b,i as a,f as N,e as S,u as h,s as f,r as y,k as V,j as Ne,w as xe,l as rt,v as ht,n as Ut,t as Kt}from"../chunks/B2WdN-7r.js";import{e as jt,i as Vt}from"../chunks/CMyj8Fzw.js";import{c as $}from"../chunks/BAcG0-U_.js";import{f as er,g as qe,c as Ue,t as Oe,b as pe}from"../chunks/Dq-0lVru.js";import{b as ge,T as he,a as It,c as rr}from"../chunks/CeOjHHJH.js";import{T as ar}from"../chunks/CEJkX7WU.js";import{a as or,b as nr,C as sr}from"../chunks/BHR29ZVu.js";import{C as ir}from"../chunks/BKHeGn2e.js";import"../chunks/C1aqwstW.js";import{L as Fe}from"../chunks/D0pIT200.js";import{D as lr,a as ur,b as dr,c as cr}from"../chunks/Cjl85b3B.js";import{T as Wt}from"../chunks/CkVJuMBr.js";import{I as fr}from"../chunks/DuUGLGtW.js";import{T as mr}from"../chunks/xk30YnJ1.js";import{P as vr}from"../chunks/DByR3-93.js";import{g as je,d as Qt,a as Jt,T as pr,p as gr,b as hr,u as _r,$ as Ve}from"../chunks/DjEjtFrE.js";import{S as xr}from"../chunks/D4tSNflE.js";import{c as $r}from"../chunks/UIirCQWa.js";import{r as br}from"../chunks/BGApn_8u.js";import{P as yr}from"../chunks/Cplpgpvt.js";import{e as Ot,s as D}from"../chunks/DH0tcjsQ.js";import{d as _e,e as wr,l as Tr,c as Sr,m as Dr,a as Pr,u as kr,D as Mr}from"../chunks/Dj0-793h.js";import{g as Cr,h as Fr,s as Rr}from"../chunks/X-i49s3k.js";import{I as zr}from"../chunks/Bv_PbELb.js";import{C as Ir}from"../chunks/RIbCUOxE.js";import{C as Ar}from"../chunks/BISlaXSK.js";function Er(P,c){ze(c,!0);let l=Ye(c,["$$slots","$$events","$$legacy"]);const R=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16"}],["path",{d:"m19 9-5 5-4-4-3 3"}]];zr(P,Ge({name:"chart-line"},()=>l,{get iconNode(){return R},children:(_,i)=>{var k=F(),z=v(k);Je(z,()=>c.children??Ze),s(_,k)},$$slots:{default:!0}})),Ie()}function Xe(P,c){if((k=P.length)>1)for(var l=1,R,_,i=P[c[0]],k,z=i.length;l<k;++l)for(_=i,i=P[c[l]],R=0;R<z;++R)i[R][1]+=i[R][0]=isNaN(_[R][1])?_[R][0]:_[R][1]}function Re(P){for(var c=P.length,l=new Array(c);--c>=0;)l[c]=c;return l}function Lr(P,c){return P[c]}function Nr(P){const c=[];return c.key=P,c}function Ur(){var P=_e([]),c=Re,l=Xe,R=Lr;function _(i){var k=Array.from(P.apply(this,arguments),Nr),z,W=k.length,G=-1,U;for(const X of i)for(z=0,++G;z<W;++z)(k[z][G]=[0,+R(X,k[z].key,G,i)]).data=X;for(z=0,U=wr(c(k));z<W;++z)k[U[z]].index=z;return l(k,U),k}return _.keys=function(i){return arguments.length?(P=typeof i=="function"?i:_e(Array.from(i)),_):P},_.value=function(i){return arguments.length?(R=typeof i=="function"?i:_e(+i),_):R},_.order=function(i){return arguments.length?(c=i==null?Re:typeof i=="function"?i:_e(Array.from(i)),_):c},_.offset=function(i){return arguments.length?(l=i??Xe,_):l},_}function Or(P){return Re(P).reverse()}const jr=()=>{if(!He.isAuthenticated)throw Be(302,"/login")},Xa=Object.freeze(Object.defineProperty({__proto__:null,load:jr},Symbol.toStringTag,{value:"Module"}));var Vr=xe('<line stroke="currentColor" class="text-border" stroke-width="1" stroke-dasharray="4 4"></line>'),Xr=xe('<text text-anchor="end" dominant-baseline="middle" fill="currentColor" class="text-muted-foreground" font-size="10"> </text>'),qr=xe('<path fill-opacity="0.7" stroke-width="1"></path>'),Br=xe('<svg><g><!><!><line stroke="currentColor" class="text-border" stroke-width="1"></line><line stroke="currentColor" class="text-border" stroke-width="1"></line><!></g></svg>'),Hr=N('<div class="flex h-full items-center justify-center text-sm text-muted-foreground">No data in this period</div>'),Gr=N('<div class="absolute top-0 bottom-0 bg-primary/20 border-x border-primary/40 pointer-events-none"><div class="absolute -top-5 left-0 -translate-x-full text-[9px] font-medium text-primary whitespace-nowrap"> </div> <div class="absolute -top-5 right-0 translate-x-full text-[9px] font-medium text-primary whitespace-nowrap"> </div></div>'),Yr=N('<div class="flex items-center gap-1.5"><span class="h-2 w-2 rounded-full flex-shrink-0"></span> <span class="truncate max-w-[200px]"> </span> <span class="ml-auto tabular-nums"> </span></div>'),Kr=N('<div class="absolute -translate-x-1/2 -translate-y-full pointer-events-none z-10"><div class="bg-background text-foreground border border-border rounded px-2 py-1.5 text-xs font-medium whitespace-nowrap mb-1 flex flex-col gap-0.5"></div></div>'),Wr=N('<div class="absolute top-0 bottom-0 w-px bg-muted-foreground/50 pointer-events-none"></div> <!> <div class="absolute bottom-0 -translate-x-1/2 translate-y-full pointer-events-none"><div class="bg-background border border-border rounded px-1.5 py-0.5 text-[10px] text-muted-foreground whitespace-nowrap shadow-sm mt-1"> </div></div>',1),Qr=N('<div class="flex items-center gap-1.5"><span class="h-2 w-2 rounded-full flex-shrink-0"></span> <span class="truncate max-w-[180px]"> </span></div>'),Jr=N('<div class="flex flex-wrap gap-x-4 gap-y-1 px-2 text-xs text-muted-foreground"></div>'),Zr=N('<div class="flex flex-col gap-2"><div class="relative select-none w-full" role="application" aria-label="Stacked area chart with drag-to-zoom"><!> <!> <!></div> <!></div>');function ta(P,c){ze(c,!0);let l=le(c,"endpoints",19,()=>[]),R=le(c,"series",19,()=>[]),_=le(c,"height",3,220),i=le(c,"padding",19,()=>({top:10,right:4,bottom:20,left:55})),k=le(c,"unit",3,"ms");const z=h(qe),W=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)","var(--muted-foreground)"];let G=b(null),U=b(300),X=b(!1),_t=b(0),Q=b(!1),xt=b(0),$t=b(0);Le(()=>{if(!t(G))return;const e=new ResizeObserver(o=>{for(const u of o)a(U,u.contentRect.width,!0)});return e.observe(t(G)),()=>e.disconnect()});const bt=h(()=>Math.max(0,t(U)-i().left-i().right)),Dt=h(()=>Math.max(0,_()-i().top-i().bottom)),lt=h(()=>()=>{if(R().length===0||l().length===0)return[];const e=new Map;for(const o of R()){const u=o.timestamp.getTime();if(!e.has(u)){const d={timestamp:o.timestamp};for(const m of l())d[m]=0;e.set(u,d)}const g=e.get(u);g[o.endpoint]=o.value}return Array.from(e.values()).sort((o,u)=>o.timestamp.getTime()-u.timestamp.getTime())}),at=h(()=>()=>{const e=t(lt)();return e.length===0?new Date:Dr(e,o=>o.timestamp)??new Date}),ft=h(()=>()=>{const e=t(lt)();return e.length===0?new Date:Pr(e,o=>o.timestamp)??new Date});function mt(e,o){const u=e[o];return typeof u=="number"?u:0}const Pt=h(()=>()=>{const e=t(lt)();if(e.length===0||l().length===0)return 0;let o=0;for(const u of e){let g=0;for(const d of l())g+=mt(u,d);o=Math.max(o,g)}return o}),kt=h(()=>t(Pt)()*1.1||1),$e=h(()=>kr().domain([t(at)(),t(ft)()]).range([0,t(bt)])),Mt=h(()=>Tr().domain([0,t(kt)]).range([t(Dt),0])),Zt=h(()=>()=>t(Mt).ticks(4));function ue(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"k":Number.isInteger(e)?e.toString():e.toFixed(1)}const yt=h(()=>()=>{const e=t(lt)();if(e.length===0||l().length===0)return[];const u=Ur().keys(l()).order(Or)(e),g=Sr().x((d,m)=>t($e)(e[m].timestamp)).y0(d=>t(Mt)(d[0])).y1(d=>t(Mt)(d[1]));return u.map((d,m)=>({key:d.key,path:g(d)||"",color:W[m%W.length]}))}),pt=h(()=>t(lt)().length>0&&l().length>0);function Xt(){return t(_t)>=i().left&&t(_t)<=t(U)-i().right}function Ct(e){if(t(bt)<=0)return t(at)();const o=e-i().left,u=Math.max(0,Math.min(1,o/t(bt))),g=t(ft)().getTime()-t(at)().getTime();return new Date(t(at)().getTime()+g*u)}const qt=h(()=>Math.max(i().left,Math.min(t(xt),t($t)))),be=h(()=>Math.min(t(U)-i().right,Math.max(t(xt),t($t)))),Bt=h(()=>t(be)-t(qt)),de=h(()=>Ct(t(qt))),wt=h(()=>Ct(t(qt)+t(Bt)));function ye(e){const o=t(lt)();if(o.length===0)return null;const u=e.getTime();let g=null,d=1/0;for(const m of o){const M=Math.abs(m.timestamp.getTime()-u);M<d&&(d=M,g=m)}return g}const ce=h(()=>()=>t(X)?Ct(t(_t)):null),Ft=h(()=>()=>{const e=t(ce)();return e?ye(e):null});function we(e){return c.formatValue?c.formatValue(e):Number.isInteger(e)?e.toString():Math.abs(e)<.01?e.toFixed(4):Math.abs(e)<1?e.toFixed(2):Math.abs(e)<10?e.toFixed(1):Math.round(e).toString()}function Te(e){if(!t(G))return;const o=t(G).getBoundingClientRect();a(_t,e.clientX-o.left),t(Q)&&a($t,t(_t),!0)}function Se(){a(X,!0)}function De(){a(X,!1),t(Q)&&a(Q,!1)}function Pe(e){if(!t(G)||e.button!==0)return;const o=t(G).getBoundingClientRect(),u=e.clientX-o.left;u<i().left||u>o.width-i().right||(a(Q,!0),a(xt,u),a($t,u),e.preventDefault())}function te(){if(t(Q)&&(a(Q,!1),t(Bt)>10&&c.onRangeSelect)){const e=Ct(Math.min(t(xt),t($t))),o=Ct(Math.max(t(xt),t($t)));c.onRangeSelect(e,o)}}function fe(e){e.key==="Escape"&&t(Q)&&(a(Q,!1),a(xt,0),a($t,0))}Le(()=>{if(t(Q))return window.addEventListener("keydown",fe),()=>window.removeEventListener("keydown",fe)});function At(e){return e?er(e,{timezone:t(z),format:"time"}):""}function ee(e){const o=l().indexOf(e);return o===-1?W[W.length-1]:W[o%W.length]}function re(e,o=30){return e.length<=o?e:e.slice(0,o-3)+"..."}var Ht=Zr(),vt=S(Ht);vt.__mousemove=Te,vt.__mousedown=Pe,vt.__mouseup=te;var ae=S(vt);{var me=e=>{var o=Br(),u=S(o),g=S(u);jt(g,17,()=>t(Zt)(),Vt,(O,x)=>{var p=Vr();D(p,"x1",0),V((w,T)=>{D(p,"y1",w),D(p,"x2",t(bt)),D(p,"y2",T)},[()=>t(Mt)(t(x)),()=>t(Mt)(t(x))]),s(O,p)});var d=f(g);jt(d,17,()=>t(Zt)(),Vt,(O,x)=>{var p=Xr();D(p,"x",-8);var w=S(p,!0);y(p),V((T,Y)=>{D(p,"y",T),rt(w,Y)},[()=>t(Mt)(t(x)),()=>ue(t(x))]),s(O,p)});var m=f(d);D(m,"x1",0);var M=f(m);D(M,"x1",0),D(M,"y1",0),D(M,"x2",0);var C=f(M);jt(C,17,()=>t(yt)(),Vt,(O,x,p,w)=>{var T=qr();V(()=>{D(T,"d",t(x).path),D(T,"fill",t(x).color),D(T,"stroke",t(x).color)}),s(O,T)}),y(u),y(o),V(()=>{D(o,"width",t(U)),D(o,"height",_()),D(u,"transform",`translate(${i().left??""}, ${i().top??""})`),D(m,"y1",t(Dt)),D(m,"x2",t(bt)),D(m,"y2",t(Dt)),D(M,"y2",t(Dt))}),s(e,o)},oe=e=>{var o=Hr();s(e,o)};ct(ae,e=>{t(pt)&&t(bt)>0?e(me):e(oe,!1)})}var ve=f(ae,2);{var ke=e=>{var o=Gr(),u=S(o),g=S(u,!0);y(u);var d=f(u,2),m=S(d,!0);y(d),y(o),V((M,C)=>{Ot(o,`left: ${t(qt)??""}px; width: ${t(Bt)??""}px;`),rt(g,M),rt(m,C)},[()=>At(t(de)),()=>At(t(wt))]),s(e,o)};ct(ve,e=>{t(Q)&&t(Bt)>0&&e(ke)})}var r=f(ve,2);{var n=e=>{const o=h(()=>Math.max(i().left,Math.min(t(_t),t(U)-i().right))),u=h(()=>t(Ft)());var g=Wr(),d=v(g),m=f(d,2);{var M=p=>{var w=Kr(),T=S(w);jt(T,21,l,Vt,(Y,A)=>{const J=h(()=>mt(t(u),t(A)));var E=F(),Z=v(E);{var tt=K=>{var q=Yr(),B=S(q),L=f(B,2),H=S(L,!0);y(L);var ot=f(L,2),j=S(ot);y(ot),y(q),V((St,gt,nt)=>{Ot(B,`background-color: ${St??""};`),D(L,"title",t(A)),rt(H,gt),rt(j,`${nt??""}${!c.formatValue&&k()?` ${k()}`:""}`)},[()=>ee(t(A)),()=>re(t(A),25),()=>we(t(J))]),s(K,q)};ct(Z,K=>{t(J)>0&&K(tt)})}s(Y,E)}),y(T),y(w),V(()=>Ot(w,`left: ${t(o)??""}px; top: 10px;`)),s(p,w)};ct(m,p=>{t(u)&&p(M)})}var C=f(m,2),O=S(C),x=S(O,!0);y(O),y(C),V(p=>{Ot(d,`left: ${t(o)??""}px;`),Ot(C,`left: ${t(o)??""}px;`),rt(x,p)},[()=>At(t(ce)())]),s(e,g)};ct(r,e=>{t(X)&&!t(Q)&&Xt()&&t(Ft)()&&e(n)})}y(vt),Ke(vt,e=>a(G,e),()=>t(G));var I=f(vt,2);{var Tt=e=>{var o=Jr();jt(o,21,l,Vt,(u,g,d)=>{var m=Qr(),M=S(m),C=f(M,2),O=S(C,!0);y(C),y(m),V(x=>{Ot(M,`background-color: ${W[d%W.length]??""};`),D(C,"title",t(g)),rt(O,x)},[()=>re(t(g),25)]),s(u,m)}),y(o),s(e,o)};ct(I,e=>{t(pt)&&e(Tt)})}y(Ht),V(e=>Ot(vt,`height: ${_()??""}px; cursor: ${e??""};`),[()=>t(Q)?"col-resize":Xt()?"crosshair":"default"]),Ne("mouseenter",vt,Se),Ne("mouseleave",vt,De),s(P,Ht),Ie()}tr(["mousemove","mousedown","mouseup"]);var ea=N(" <!>",1),ra=N("<span> </span> <!>",1),aa=N("<!> <!>",1),oa=N("<!> <!>",1),na=N('<div class="flex justify-center items-center h-[220px]"><!></div>'),sa=N('<div class="flex justify-center items-center h-[220px]"><!></div>'),ia=N("<!> <!>",1),la=N('<div class="flex justify-center items-center h-full"><!></div>'),ua=N("<!> <!> <!> <!> <!> <!>",1),da=N("<!> <!> <!> <!> <!> <!>",1),ca=N("<!> <!>",1),fa=N('<div class="space-y-4"><div class="flex flex-col gap-4 sm:flex-row sm:justify-between"><!> <div class="flex flex-col"><!></div></div> <!> <!> <div class="rounded-md border overflow-hidden"><!></div> <!></div>');function qa(P,c){ze(c,!0);const l=h(qe),R=[{value:"total_time",label:"Total time"},{value:"p50",label:"Average response time"},{value:"p95",label:"Slow response time"},{value:"p99",label:"Awful response time"}];let _=b(ht([])),i=b(!0),k=b(""),z=b(ht([])),W=b(ht([])),G=b(!0),U=b("total_time"),X=b(1),_t=b(50),Q=b(0),xt=b(0);function $t(){const r=new URLSearchParams(window.location.search);return{...gr(t(l),"24h"),search:r.get("search")||""}}const bt=$t(),Dt=je(bt,t(l));let lt=b(ht(bt.search)),at=b(ht(bt.preset)),ft=b(ht(Qt(Dt.from,t(l)))),mt=b(ht(Qt(Dt.to,t(l)))),Pt=b(ht(Jt(Dt.from,t(l)))),kt=b(ht(Jt(Dt.to,t(l))));function $e(r=!0){const n={};t(at)?n.preset=t(at):(n.from=Xt(),n.to=Ct()),t(lt).trim()&&(n.search=t(lt).trim()),_r(n,{pushToHistory:r})}function Mt(){const r=$t(),n=je(r,t(l));a(at,r.preset,!0),a(ft,Qt(n.from,t(l)),!0),a(Pt,Jt(n.from,t(l)),!0),a(mt,Qt(n.to,t(l)),!0),a(kt,Jt(n.to,t(l)),!0),a(lt,r.search,!0),a(X,1),wt(!1)}const Zt="endpoints",ue=Cr(Zt,{field:"impact",direction:"desc"});let yt=b(ht(ue.field)),pt=b(ht(ue.direction));function Xt(){const[r,n]=(t(Pt)||"00:00").split(":").map(Number),I=Ue({year:t(ft).year,month:t(ft).month,day:t(ft).day,hour:r,minute:n},t(l));return Oe(I)}function Ct(){const[r,n]=(t(kt)||"23:59").split(":").map(Number),I=Ue({year:t(mt).year,month:t(mt).month,day:t(mt).day,hour:r,minute:n},t(l)).endOf("minute");return Oe(I)}function qt(r,n,I){a(ft,r.date,!0),a(Pt,r.time,!0),a(mt,n.date,!0),a(kt,n.time,!0),a(at,I,!0),a(X,1),wt(!1)}function be(r){return r>=1e6?`${(r/1e6).toFixed(1)}m`:r>=1e3?`${(r/1e3).toFixed(1)}k`:r.toLocaleString()}function Bt(r,n){const Tt=(n.getTime()-r.getTime())/(1e3*60*60);return Tt<=1?1:Tt<=6?5:Tt<=168?60:240}async function de(){a(G,!0);try{const r=Xt(),n=Ct(),I=Bt(new Date(r),new Date(n)),Tt=await Ae.post("/endpoints/chart",{fromDate:r,toDate:n,metricType:t(U),intervalMinutes:I},{projectId:Ee.currentProjectId??void 0});a(z,Tt.endpoints||[],!0),a(W,(Tt.series||[]).map(e=>({timestamp:new Date(e.timestamp),endpoint:e.endpoint,value:e.value})),!0)}catch(r){console.error("Failed to load chart data:",r),a(z,[],!0),a(W,[],!0)}finally{a(G,!1)}}async function wt(r=!0){if(a(i,!0),a(k,""),t(at)){const n=hr(t(at),t(l));a(ft,Qt(n.from,t(l)),!0),a(mt,Qt(n.to,t(l)),!0),a(Pt,Jt(n.from,t(l)),!0),a(kt,Jt(n.to,t(l)),!0)}$e(r);try{const n={fromDate:Xt(),toDate:Ct(),orderBy:t(yt),sortDirection:t(pt),pagination:{page:t(X),pageSize:t(_t)},search:t(lt).trim()},I=await Ae.post("/endpoints/grouped",n,{projectId:Ee.currentProjectId??void 0});a(_,I.data||[],!0),a(Q,I.pagination.total,!0),a(xt,I.pagination.totalPages,!0)}catch(n){console.error(n),a(k,n.message||"Failed to load data",!0)}finally{a(i,!1)}de()}function ye(r){r>=1&&r<=t(xt)&&(a(X,r,!0),wt(!1))}function ce(r){a(_t,r,!0),a(X,1),wt(!1)}function Ft(r){const n=Fr(r,t(yt),t(pt));a(yt,n.field,!0),a(pt,n.direction,!0),Rr(Zt,n),a(X,1),wt(!1)}function we(r){a(U,r,!0),de()}function Te(){a(X,1),wt(!0)}function Se(r,n){a(at,null),a(ft,new Ve(r.getFullYear(),r.getMonth()+1,r.getDate()),!0),a(Pt,`${String(r.getHours()).padStart(2,"0")}:${String(r.getMinutes()).padStart(2,"0")}`),a(mt,new Ve(n.getFullYear(),n.getMonth()+1,n.getDate()),!0),a(kt,`${String(n.getHours()).padStart(2,"0")}:${String(n.getMinutes()).padStart(2,"0")}`),a(X,1),wt(!0)}const De=h(()=>R.find(r=>r.value===t(U))?.label??"Total time");function Pe(r){return r>=36e5?`${(r/36e5).toFixed(1)}h`:r>=6e4?`${(r/6e4).toFixed(1)}m`:r>=1e3?`${(r/1e3).toFixed(1)}s`:r<1?`${(r*1e3).toFixed(0)}µs`:`${Math.round(r)}ms`}const te=h(()=>t(U)!=="total_time"),fe=h(()=>{if(!t(te)||t(_).length===0)return[];const r=t(U)==="p50"?"p50Duration":t(U)==="p95"?"p95Duration":"p99Duration";return[...t(_)].sort((n,I)=>I[r]-n[r]).slice(0,8).map(n=>({endpoint:n.endpoint,value:n[r]}))});We(()=>{window.addEventListener("popstate",Mt),wt(!1)}),Qe(()=>{typeof window<"u"&&window.removeEventListener("popstate",Mt)});var At=fa(),ee=S(At),re=S(ee);yr(re,{title:"Endpoints"});var Ht=f(re,2),vt=S(Ht);pr(vt,{onApply:qt,get fromDate(){return t(ft)},set fromDate(r){a(ft,r,!0)},get toDate(){return t(mt)},set toDate(r){a(mt,r,!0)},get fromTime(){return t(Pt)},set fromTime(r){a(Pt,r,!0)},get toTime(){return t(kt)},set toTime(r){a(kt,r,!0)},get preset(){return t(at)},set preset(r){a(at,r,!0)}}),y(Ht),y(ee);var ae=f(ee,2);xr(ae,{placeholder:"Search endpoints...",onSearch:Te,get disabled(){return t(i)},get value(){return t(lt)},set value(r){a(lt,r,!0)}});var me=f(ae,2);$(me,()=>sr,(r,n)=>{n(r,{class:"pt-2",children:(I,Tt)=>{var e=ia(),o=v(e);$(o,()=>or,(g,d)=>{d(g,{class:"flex flex-row items-center justify-between space-y-0 border-b [.border-b]:pb-2 pl-3",children:(m,M)=>{var C=F(),O=v(C);$(O,()=>nr,(x,p)=>{p(x,{class:"text-base font-medium flex items-center gap-2",children:(w,T)=>{var Y=oa(),A=v(Y);Er(A,{class:"h-3.5 w-3.5 text-muted-foreground"});var J=f(A,2);$(J,()=>lr,(E,Z)=>{Z(E,{children:(tt,K)=>{var q=aa(),B=v(q);$(B,()=>ur,(H,ot)=>{ot(H,{class:"flex items-center text-sm gap-0.5 font-[400] text-muted-foreground",children:(j,St)=>{Ut();var gt=ea(),nt=v(gt),Rt=f(nt);Ir(Rt,{class:"h-3 w-3 text-muted-foreground"}),V(()=>rt(nt,`${t(De)??""} `)),s(j,gt)},$$slots:{default:!0}})});var L=f(B,2);$(L,()=>dr,(H,ot)=>{ot(H,{align:"start",class:"w-[200px]",children:(j,St)=>{var gt=F(),nt=v(gt);jt(nt,17,()=>R,Vt,(Rt,zt)=>{var Et=F(),ne=v(Et);$(ne,()=>cr,(Lt,Gt)=>{Gt(Lt,{onclick:()=>we(t(zt).value),class:"flex items-center justify-between cursor-pointer",children:(st,Me)=>{var se=ra(),Yt=v(se),Ce=S(Yt,!0);y(Yt);var ut=f(Yt,2);{var dt=et=>{Ar(et,{class:"h-4 w-4"})};ct(ut,et=>{t(zt).value===t(U)&&et(dt)})}V(()=>rt(Ce,t(zt).label)),s(st,se)},$$slots:{default:!0}})}),s(Rt,Et)}),s(j,gt)},$$slots:{default:!0}})}),s(tt,q)},$$slots:{default:!0}})}),s(w,Y)},$$slots:{default:!0}})}),s(m,C)},$$slots:{default:!0}})});var u=f(o,2);$(u,()=>ir,(g,d)=>{d(g,{children:(m,M)=>{var C=F(),O=v(C);{var x=w=>{var T=na(),Y=S(T);Fe(Y,{size:"xlg"}),y(T),s(w,T)},p=w=>{var T=F(),Y=v(T);{var A=E=>{var Z=F(),tt=v(Z);{var K=B=>{var L=sa(),H=S(L);Fe(H,{size:"xlg"}),y(L),s(B,L)},q=B=>{Mr(B,{get data(){return t(fe)},get formatValue(){return pe}})};ct(tt,B=>{t(i)?B(K):B(q,!1)})}s(E,Z)},J=E=>{ta(E,{get endpoints(){return t(z)},get series(){return t(W)},formatValue:Pe,onRangeSelect:Se})};ct(Y,E=>{t(te)?E(A):E(J,!1)},!0)}s(w,T)};ct(O,w=>{t(G)&&!t(te)?w(x):w(p,!1)})}s(m,C)},$$slots:{default:!0}})}),s(I,e)},$$slots:{default:!0}})});var oe=f(me,2),ve=S(oe);$(ve,()=>rr,(r,n)=>{n(r,{children:(I,Tt)=>{var e=F(),o=v(e);{var u=d=>{var m=F(),M=v(m);$(M,()=>ge,(C,O)=>{O(C,{children:(x,p)=>{var w=F(),T=v(w);$(T,()=>he,(Y,A)=>{A(Y,{children:(J,E)=>{var Z=F(),tt=v(Z);$(tt,()=>It,(K,q)=>{q(K,{colspan:6,class:"h-48",children:(B,L)=>{var H=la(),ot=S(H);Fe(ot,{size:"xlg"}),y(H),s(B,H)},$$slots:{default:!0}})}),s(J,Z)},$$slots:{default:!0}})}),s(x,w)},$$slots:{default:!0}})}),s(d,m)},g=d=>{var m=F(),M=v(m);{var C=x=>{var p=F(),w=v(p);$(w,()=>ge,(T,Y)=>{Y(T,{children:(A,J)=>{var E=F(),Z=v(E);$(Z,()=>he,(tt,K)=>{K(tt,{children:(q,B)=>{var L=F(),H=v(L);$(H,()=>It,(ot,j)=>{j(ot,{colspan:6,class:"h-24 text-center text-red-500",children:(St,gt)=>{Ut();var nt=Kt();V(()=>rt(nt,t(k))),s(St,nt)},$$slots:{default:!0}})}),s(q,L)},$$slots:{default:!0}})}),s(A,E)},$$slots:{default:!0}})}),s(x,p)},O=x=>{var p=F(),w=v(p);{var T=A=>{var J=F(),E=v(J);$(E,()=>ge,(Z,tt)=>{tt(Z,{children:(K,q)=>{mr(K,{colspan:6,message:"No endpoint data available for your search parameters"})},$$slots:{default:!0}})}),s(A,J)},Y=A=>{var J=ca(),E=v(J);$(E,()=>ar,(tt,K)=>{K(tt,{children:(q,B)=>{var L=F(),H=v(L);$(H,()=>he,(ot,j)=>{j(ot,{children:(St,gt)=>{var nt=ua(),Rt=v(nt);Wt(Rt,{label:"Endpoint",tooltip:"The API route or page being accessed",class:"max-w-[50%]"});var zt=f(Rt,2);Wt(zt,{label:"Calls",tooltip:"Total number of requests",sortField:"count",get currentSortField(){return t(yt)},get sortDirection(){return t(pt)},onSort:st=>Ft(st),class:"w-[100px]"});var Et=f(zt,2);Wt(Et,{label:"Typical",tooltip:"Median response time (P50)",sortField:"p50_duration",get currentSortField(){return t(yt)},get sortDirection(){return t(pt)},onSort:st=>Ft(st),class:"w-[100px]"});var ne=f(Et,2);Wt(ne,{label:"Slow",tooltip:"95th percentile - slowest 5% of requests",sortField:"p95_duration",get currentSortField(){return t(yt)},get sortDirection(){return t(pt)},onSort:st=>Ft(st),class:"w-[100px]"});var Lt=f(ne,2);Wt(Lt,{label:"Awful",tooltip:"99th percentile - slowest 1% of requests",sortField:"p99_duration",get currentSortField(){return t(yt)},get sortDirection(){return t(pt)},onSort:st=>Ft(st),class:"w-[100px]"});var Gt=f(Lt,2);Wt(Gt,{label:"Impact",tooltip:"Impact score based on Apdex, error rates, P99 latency, and request volume",sortField:"impact",get currentSortField(){return t(yt)},get sortDirection(){return t(pt)},onSort:st=>Ft(st),align:"right",class:"w-[120px]"}),s(St,nt)},$$slots:{default:!0}})}),s(q,L)},$$slots:{default:!0}})});var Z=f(E,2);$(Z,()=>ge,(tt,K)=>{K(tt,{children:(q,B)=>{var L=F(),H=v(L);jt(H,17,()=>t(_),Vt,(ot,j)=>{var St=F(),gt=v(St);{let nt=h(()=>$r(br(`/endpoints/${encodeURIComponent(t(j).endpoint)}`),"preset","from","to"));$(gt,()=>he,(Rt,zt)=>{zt(Rt,{class:"cursor-pointer hover:bg-muted/50",get onclick(){return t(nt)},children:(Et,ne)=>{var Lt=da(),Gt=v(Lt);$(Gt,()=>It,(ut,dt)=>{dt(ut,{class:"font-mono text-sm max-w-[50%] break-all whitespace-normal",children:(et,ie)=>{Ut();var it=Kt();V(()=>rt(it,t(j).endpoint)),s(et,it)},$$slots:{default:!0}})});var st=f(Gt,2);$(st,()=>It,(ut,dt)=>{dt(ut,{class:"tabular-nums",children:(et,ie)=>{Ut();var it=Kt();V(Nt=>rt(it,Nt),[()=>be(t(j).count)]),s(et,it)},$$slots:{default:!0}})});var Me=f(st,2);$(Me,()=>It,(ut,dt)=>{dt(ut,{class:"font-mono text-sm tabular-nums",children:(et,ie)=>{Ut();var it=Kt();V(Nt=>rt(it,Nt),[()=>pe(t(j).p50Duration)]),s(et,it)},$$slots:{default:!0}})});var se=f(Me,2);$(se,()=>It,(ut,dt)=>{dt(ut,{class:"font-mono text-sm tabular-nums",children:(et,ie)=>{Ut();var it=Kt();V(Nt=>rt(it,Nt),[()=>pe(t(j).p95Duration)]),s(et,it)},$$slots:{default:!0}})});var Yt=f(se,2);$(Yt,()=>It,(ut,dt)=>{dt(ut,{class:"font-mono text-sm tabular-nums",children:(et,ie)=>{Ut();var it=Kt();V(Nt=>rt(it,Nt),[()=>pe(t(j).p99Duration)]),s(et,it)},$$slots:{default:!0}})});var Ce=f(Yt,2);$(Ce,()=>It,(ut,dt)=>{dt(ut,{class:"text-right",children:(et,ie)=>{fr(et,{get score(){return t(j).impact},get reason(){return t(j).impactReason}})},$$slots:{default:!0}})}),s(Et,Lt)},$$slots:{default:!0}})})}s(ot,St)}),s(q,L)},$$slots:{default:!0}})}),s(A,J)};ct(w,A=>{t(_).length===0?A(T):A(Y,!1)},!0)}s(x,p)};ct(M,x=>{t(k)?x(C):x(O,!1)},!0)}s(d,m)};ct(o,d=>{t(i)?d(u):d(g,!1)})}s(I,e)},$$slots:{default:!0}})}),y(oe);var ke=f(oe,2);vr(ke,{get currentPage(){return t(X)},get totalPages(){return t(xt)},get pageSize(){return t(_t)},get totalItems(){return t(Q)},onPageChange:ye,onPageSizeChange:ce,get loading(){return t(i)},itemLabel:"endpoint"}),y(At),s(P,At),Ie()}export{qa as component,Xa as universal};
diff --git a/backend/static/frontend/_app/immutable/nodes/9.BUJKpYei.js.map b/backend/static/frontend/_app/immutable/nodes/9._aK9M2Us.js.map
similarity index 99%
rename from backend/static/frontend/_app/immutable/nodes/9.BUJKpYei.js.map
rename to backend/static/frontend/_app/immutable/nodes/9._aK9M2Us.js.map
index 505a89da..cb4213d2 100644
--- a/backend/static/frontend/_app/immutable/nodes/9.BUJKpYei.js.map
+++ b/backend/static/frontend/_app/immutable/nodes/9._aK9M2Us.js.map
@@ -1 +1 @@
-{"version":3,"file":"9.BUJKpYei.js","sources":["../../../../../../node_modules/@lucide/svelte/dist/icons/chart-line.svelte","../../../../../../node_modules/d3-shape/src/offset/none.js","../../../../../../node_modules/d3-shape/src/order/none.js","../../../../../../node_modules/d3-shape/src/stack.js","../../../../../../node_modules/d3-shape/src/order/reverse.js","../../../../../../src/routes/endpoints/+page.ts","../../../../../../src/lib/components/dashboard/d3-stacked-area-chart.svelte","../../../../../../src/routes/endpoints/+page.svelte"],"sourcesContent":["<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M3 3v16a2 2 0 0 0 2 2h16\" }], [\"path\", { \"d\": \"m19 9-5 5-4-4-3 3\" }]];\n/**\n * @component @name ChartLine\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMyAzdjE2YTIgMiAwIDAgMCAyIDJoMTYiIC8+CiAgPHBhdGggZD0ibTE5IDktNSA1LTQtNC0zIDMiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/chart-line\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chart-line\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","export default function(series, order) {\n if (!((n = series.length) > 1)) return;\n for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {\n s0 = s1, s1 = series[order[i]];\n for (j = 0; j < m; ++j) {\n s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];\n }\n }\n}\n","export default function(series) {\n var n = series.length, o = new Array(n);\n while (--n >= 0) o[n] = n;\n return o;\n}\n","import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport offsetNone from \"./offset/none.js\";\nimport orderNone from \"./order/none.js\";\n\nfunction stackValue(d, key) {\n return d[key];\n}\n\nfunction stackSeries(key) {\n const series = [];\n series.key = key;\n return series;\n}\n\nexport default function() {\n var keys = constant([]),\n order = orderNone,\n offset = offsetNone,\n value = stackValue;\n\n function stack(data) {\n var sz = Array.from(keys.apply(this, arguments), stackSeries),\n i, n = sz.length, j = -1,\n oz;\n\n for (const d of data) {\n for (i = 0, ++j; i < n; ++i) {\n (sz[i][j] = [0, +value(d, sz[i].key, j, data)]).data = d;\n }\n }\n\n for (i = 0, oz = array(order(sz)); i < n; ++i) {\n sz[oz[i]].index = i;\n }\n\n offset(sz, oz);\n return sz;\n }\n\n stack.keys = function(_) {\n return arguments.length ? (keys = typeof _ === \"function\" ? _ : constant(Array.from(_)), stack) : keys;\n };\n\n stack.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), stack) : value;\n };\n\n stack.order = function(_) {\n return arguments.length ? (order = _ == null ? orderNone : typeof _ === \"function\" ? _ : constant(Array.from(_)), stack) : order;\n };\n\n stack.offset = function(_) {\n return arguments.length ? (offset = _ == null ? offsetNone : _, stack) : offset;\n };\n\n return stack;\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n return none(series).reverse();\n}\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n\timport { scaleUtc, scaleLinear } from 'd3-scale';\n\timport { stack, area, stackOrderReverse } from 'd3-shape';\n\timport { min, max } from 'd3-array';\n\timport { formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\n\ttype DataPoint = {\n\t\ttimestamp: Date;\n\t\tendpoint: string;\n\t\tvalue: number;\n\t};\n\n\ttype StackedData = {\n\t\t[key: string]: number | Date;\n\t\ttimestamp: Date;\n\t};\n\n\tlet {\n\t\tendpoints = [],\n\t\tseries = [],\n\t\theight = 220,\n\t\tpadding = { top: 10, right: 4, bottom: 20, left: 55 },\n\t\tunit = 'ms',\n\t\tformatValue,\n\t\tonRangeSelect\n\t} = $props<{\n\t\tendpoints: string[];\n\t\tseries: DataPoint[];\n\t\theight?: number;\n\t\tpadding?: { top: number; right: number; bottom: number; left: number };\n\t\tunit?: string;\n\t\tformatValue?: (value: number) => string;\n\t\tonRangeSelect?: (from: Date, to: Date) => void;\n\t}>();\n\n\tconst tz = $derived(getTimezone());\n\n\t// Chart colors using CSS variables\n\tconst chartColors = [\n\t\t'var(--chart-1)',\n\t\t'var(--chart-2)',\n\t\t'var(--chart-3)',\n\t\t'var(--chart-4)',\n\t\t'var(--chart-5)',\n\t\t'var(--muted-foreground)' // For \"Other\"\n\t];\n\n\tlet containerRef = $state<HTMLDivElement | null>(null);\n\tlet width = $state(300);\n\n\t// Hover state\n\tlet isHovering = $state(false);\n\tlet mouseX = $state(0);\n\n\t// Drag selection state\n\tlet isDragging = $state(false);\n\tlet dragStartX = $state(0);\n\tlet dragEndX = $state(0);\n\n\t// Observe container width\n\t$effect(() => {\n\t\tif (!containerRef) return;\n\n\t\tconst observer = new ResizeObserver((entries) => {\n\t\t\tfor (const entry of entries) {\n\t\t\t\twidth = entry.contentRect.width;\n\t\t\t}\n\t\t});\n\n\t\tobserver.observe(containerRef);\n\t\treturn () => observer.disconnect();\n\t});\n\n\t// Chart dimensions\n\tconst chartWidth = $derived(Math.max(0, width - padding.left - padding.right));\n\tconst chartHeight = $derived(Math.max(0, height - padding.top - padding.bottom));\n\n\t// Transform series data to stacked format\n\tconst stackedData = $derived(() => {\n\t\tif (series.length === 0 || endpoints.length === 0) return [];\n\n\t\t// Group by timestamp\n\t\tconst byTimestamp = new Map<number, StackedData>();\n\n\t\tfor (const point of series) {\n\t\t\tconst ts = point.timestamp.getTime();\n\t\t\tif (!byTimestamp.has(ts)) {\n\t\t\t\tconst entry: StackedData = { timestamp: point.timestamp };\n\t\t\t\t// Initialize all endpoints to 0\n\t\t\t\tfor (const ep of endpoints) {\n\t\t\t\t\tentry[ep] = 0;\n\t\t\t\t}\n\t\t\t\tbyTimestamp.set(ts, entry);\n\t\t\t}\n\t\t\tconst entry = byTimestamp.get(ts)!;\n\t\t\tentry[point.endpoint] = point.value;\n\t\t}\n\n\t\t// Sort by timestamp\n\t\treturn Array.from(byTimestamp.values()).sort(\n\t\t\t(a, b) => a.timestamp.getTime() - b.timestamp.getTime()\n\t\t);\n\t});\n\n\t// Calculate domains\n\tconst xMin = $derived(() => {\n\t\tconst data = stackedData();\n\t\tif (data.length === 0) return new Date();\n\t\treturn min(data, (d) => d.timestamp) ?? new Date();\n\t});\n\n\tconst xMax = $derived(() => {\n\t\tconst data = stackedData();\n\t\tif (data.length === 0) return new Date();\n\t\treturn max(data, (d) => d.timestamp) ?? new Date();\n\t});\n\n\t// Helper to get numeric value from StackedData\n\tfunction getNumericValue(d: StackedData, key: string): number {\n\t\tconst val = d[key];\n\t\treturn typeof val === 'number' ? val : 0;\n\t}\n\n\t// Calculate max stacked value\n\tconst yMax = $derived(() => {\n\t\tconst data = stackedData();\n\t\tif (data.length === 0 || endpoints.length === 0) return 0;\n\n\t\tlet maxSum = 0;\n\t\tfor (const d of data) {\n\t\t\tlet sum = 0;\n\t\t\tfor (const ep of endpoints) {\n\t\t\t\tsum += getNumericValue(d, ep);\n\t\t\t}\n\t\t\tmaxSum = Math.max(maxSum, sum);\n\t\t}\n\t\treturn maxSum;\n\t});\n\n\t// Add padding to y domain\n\tconst yDomainMax = $derived(yMax() * 1.1 || 1);\n\n\t// Scales\n\tconst xScale = $derived(\n\t\tscaleUtc()\n\t\t\t.domain([xMin(), xMax()])\n\t\t\t.range([0, chartWidth])\n\t);\n\n\tconst yScale = $derived(\n\t\tscaleLinear()\n\t\t\t.domain([0, yDomainMax])\n\t\t\t.range([chartHeight, 0])\n\t);\n\n\t// Generate Y axis ticks\n\tconst yTicks = $derived(() => yScale.ticks(4));\n\n\t// Format Y axis label\n\tfunction formatYLabel(value: number): string {\n\t\tif (value >= 1000000) return (value / 1000000).toFixed(1) + 'M';\n\t\tif (value >= 1000) return (value / 1000).toFixed(1) + 'k';\n\t\tif (Number.isInteger(value)) return value.toString();\n\t\treturn value.toFixed(1);\n\t}\n\n\t// Generate stacked area paths\n\tconst stackedAreas = $derived(() => {\n\t\tconst data = stackedData();\n\t\tif (data.length === 0 || endpoints.length === 0) return [];\n\n\t\tconst stackGen = stack<StackedData>()\n\t\t\t.keys(endpoints)\n\t\t\t.order(stackOrderReverse);\n\n\t\tconst stackedSeries = stackGen(data);\n\n\t\tconst areaGen = area<[number, number]>()\n\t\t\t.x((d, i) => xScale(data[i].timestamp))\n\t\t\t.y0((d) => yScale(d[0]))\n\t\t\t.y1((d) => yScale(d[1]));\n\n\t\treturn stackedSeries.map((s, i) => ({\n\t\t\tkey: s.key,\n\t\t\tpath: areaGen(s as unknown as [number, number][]) || '',\n\t\t\tcolor: chartColors[i % chartColors.length]\n\t\t}));\n\t});\n\n\tconst hasData = $derived(stackedData().length > 0 && endpoints.length > 0);\n\n\t// Check if mouse X is within the chart area\n\tfunction isInChartArea(): boolean {\n\t\treturn mouseX >= padding.left && mouseX <= width - padding.right;\n\t}\n\n\t// Calculate time based on X position\n\tfunction getTimeAtPosition(x: number): Date {\n\t\tif (chartWidth <= 0) return xMin();\n\t\tconst chartX = x - padding.left;\n\t\tconst percentage = Math.max(0, Math.min(1, chartX / chartWidth));\n\t\tconst timeDiff = xMax().getTime() - xMin().getTime();\n\t\treturn new Date(xMin().getTime() + timeDiff * percentage);\n\t}\n\n\t// Selection region computed values\n\tconst selectionLeft = $derived(Math.max(padding.left, Math.min(dragStartX, dragEndX)));\n\tconst selectionRight = $derived(Math.min(width - padding.right, Math.max(dragStartX, dragEndX)));\n\tconst selectionWidth = $derived(selectionRight - selectionLeft);\n\tconst selectionStartTime = $derived(getTimeAtPosition(selectionLeft));\n\tconst selectionEndTime = $derived(getTimeAtPosition(selectionLeft + selectionWidth));\n\n\t// Find the closest data point to a given time\n\tfunction getDataAtTime(time: Date): StackedData | null {\n\t\tconst data = stackedData();\n\t\tif (data.length === 0) return null;\n\n\t\tconst targetMs = time.getTime();\n\t\tlet closest: StackedData | null = null;\n\t\tlet minDiff = Infinity;\n\n\t\tfor (const d of data) {\n\t\t\tconst diff = Math.abs(d.timestamp.getTime() - targetMs);\n\t\t\tif (diff < minDiff) {\n\t\t\t\tminDiff = diff;\n\t\t\t\tclosest = d;\n\t\t\t}\n\t\t}\n\n\t\treturn closest;\n\t}\n\n\t// Calculate time based on mouse X position\n\tconst calculatedTime = $derived(() => {\n\t\tif (!isHovering) return null;\n\t\treturn getTimeAtPosition(mouseX);\n\t});\n\n\t// Calculate the data point at the current hover position\n\tconst calculatedData = $derived(() => {\n\t\tconst time = calculatedTime();\n\t\tif (!time) return null;\n\t\treturn getDataAtTime(time);\n\t});\n\n\t// Format value for display\n\tfunction formatDisplayValue(value: number): string {\n\t\tif (formatValue) return formatValue(value);\n\t\tif (Number.isInteger(value)) return value.toString();\n\t\tif (Math.abs(value) < 0.01) return value.toFixed(4);\n\t\tif (Math.abs(value) < 1) return value.toFixed(2);\n\t\tif (Math.abs(value) < 10) return value.toFixed(1);\n\t\treturn Math.round(value).toString();\n\t}\n\n\tfunction handleMouseMove(e: MouseEvent) {\n\t\tif (!containerRef) return;\n\t\tconst rect = containerRef.getBoundingClientRect();\n\t\tmouseX = e.clientX - rect.left;\n\n\t\tif (isDragging) {\n\t\t\tdragEndX = mouseX;\n\t\t}\n\t}\n\n\tfunction handleMouseEnter() {\n\t\tisHovering = true;\n\t}\n\n\tfunction handleMouseLeave() {\n\t\tisHovering = false;\n\t\tif (isDragging) isDragging = false;\n\t}\n\n\tfunction handleMouseDown(e: MouseEvent) {\n\t\tif (!containerRef || e.button !== 0) return;\n\t\tconst rect = containerRef.getBoundingClientRect();\n\t\tconst x = e.clientX - rect.left;\n\n\t\tif (x < padding.left || x > rect.width - padding.right) return;\n\n\t\tisDragging = true;\n\t\tdragStartX = x;\n\t\tdragEndX = x;\n\t\te.preventDefault();\n\t}\n\n\tfunction handleMouseUp() {\n\t\tif (!isDragging) return;\n\n\t\tisDragging = false;\n\n\t\tif (selectionWidth > 10 && onRangeSelect) {\n\t\t\tconst startTime = getTimeAtPosition(Math.min(dragStartX, dragEndX));\n\t\t\tconst endTime = getTimeAtPosition(Math.max(dragStartX, dragEndX));\n\t\t\tonRangeSelect(startTime, endTime);\n\t\t}\n\t}\n\n\tfunction handleKeydown(e: KeyboardEvent) {\n\t\tif (e.key === 'Escape' && isDragging) {\n\t\t\tisDragging = false;\n\t\t\tdragStartX = 0;\n\t\t\tdragEndX = 0;\n\t\t}\n\t}\n\n\t$effect(() => {\n\t\tif (isDragging) {\n\t\t\twindow.addEventListener('keydown', handleKeydown);\n\t\t\treturn () => window.removeEventListener('keydown', handleKeydown);\n\t\t}\n\t});\n\n\tfunction formatTime(date: Date | null): string {\n\t\tif (!date) return '';\n\t\treturn formatDateTime(date, { timezone: tz, format: 'time' });\n\t}\n\n\t// Get color for an endpoint\n\tfunction getEndpointColor(endpoint: string): string {\n\t\tconst idx = endpoints.indexOf(endpoint);\n\t\tif (idx === -1) return chartColors[chartColors.length - 1];\n\t\treturn chartColors[idx % chartColors.length];\n\t}\n\n\t// Truncate long endpoint names for legend\n\tfunction truncateEndpoint(endpoint: string, maxLen: number = 30): string {\n\t\tif (endpoint.length <= maxLen) return endpoint;\n\t\treturn endpoint.slice(0, maxLen - 3) + '...';\n\t}\n</script>\n\n<div class=\"flex flex-col gap-2\">\n\t<div\n\t\tbind:this={containerRef}\n\t\tclass=\"relative select-none w-full\"\n\t\tstyle=\"height: {height}px; cursor: {isDragging ? 'col-resize' : (isInChartArea() ? 'crosshair' : 'default')};\"\n\t\tonmouseenter={handleMouseEnter}\n\t\tonmouseleave={handleMouseLeave}\n\t\tonmousemove={handleMouseMove}\n\t\tonmousedown={handleMouseDown}\n\t\tonmouseup={handleMouseUp}\n\t\trole=\"application\"\n\t\taria-label=\"Stacked area chart with drag-to-zoom\"\n\t>\n\t\t{#if hasData && chartWidth > 0}\n\t\t\t<svg {width} {height}>\n\t\t\t\t<g transform=\"translate({padding.left}, {padding.top})\">\n\t\t\t\t\t<!-- Y axis grid lines -->\n\t\t\t\t\t{#each yTicks() as tick}\n\t\t\t\t\t\t<line\n\t\t\t\t\t\t\tx1={0}\n\t\t\t\t\t\t\ty1={yScale(tick)}\n\t\t\t\t\t\t\tx2={chartWidth}\n\t\t\t\t\t\t\ty2={yScale(tick)}\n\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\tclass=\"text-border\"\n\t\t\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t\t\t\tstroke-dasharray=\"4 4\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t{/each}\n\n\t\t\t\t\t<!-- Y axis labels -->\n\t\t\t\t\t{#each yTicks() as tick}\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\tx={-8}\n\t\t\t\t\t\t\ty={yScale(tick)}\n\t\t\t\t\t\t\ttext-anchor=\"end\"\n\t\t\t\t\t\t\tdominant-baseline=\"middle\"\n\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t\tclass=\"text-muted-foreground\"\n\t\t\t\t\t\t\tfont-size=\"10\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{formatYLabel(tick)}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t{/each}\n\n\t\t\t\t\t<!-- X axis line -->\n\t\t\t\t\t<line\n\t\t\t\t\t\tx1={0}\n\t\t\t\t\t\ty1={chartHeight}\n\t\t\t\t\t\tx2={chartWidth}\n\t\t\t\t\t\ty2={chartHeight}\n\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\tclass=\"text-border\"\n\t\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t\t/>\n\n\t\t\t\t\t<!-- Y axis line -->\n\t\t\t\t\t<line\n\t\t\t\t\t\tx1={0}\n\t\t\t\t\t\ty1={0}\n\t\t\t\t\t\tx2={0}\n\t\t\t\t\t\ty2={chartHeight}\n\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\tclass=\"text-border\"\n\t\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t\t/>\n\n\t\t\t\t\t<!-- Stacked areas -->\n\t\t\t\t\t{#each stackedAreas() as area}\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td={area.path}\n\t\t\t\t\t\t\tfill={area.color}\n\t\t\t\t\t\t\tfill-opacity=\"0.7\"\n\t\t\t\t\t\t\tstroke={area.color}\n\t\t\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t{/each}\n\t\t\t\t</g>\n\t\t\t</svg>\n\t\t{:else}\n\t\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\tNo data in this period\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Drag selection overlay -->\n\t\t{#if isDragging && selectionWidth > 0}\n\t\t\t<div\n\t\t\t\tclass=\"absolute top-0 bottom-0 bg-primary/20 border-x border-primary/40 pointer-events-none\"\n\t\t\t\tstyle=\"left: {selectionLeft}px; width: {selectionWidth}px;\"\n\t\t\t>\n\t\t\t\t<div class=\"absolute -top-5 left-0 -translate-x-full text-[9px] font-medium text-primary whitespace-nowrap\">\n\t\t\t\t\t{formatTime(selectionStartTime)}\n\t\t\t\t</div>\n\t\t\t\t<div class=\"absolute -top-5 right-0 translate-x-full text-[9px] font-medium text-primary whitespace-nowrap\">\n\t\t\t\t\t{formatTime(selectionEndTime)}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Hover tooltip -->\n\t\t{#if isHovering && !isDragging && isInChartArea() && calculatedData()}\n\t\t\t{@const clampedX = Math.max(padding.left, Math.min(mouseX, width - padding.right))}\n\t\t\t{@const data = calculatedData()}\n\n\t\t\t<!-- Vertical line -->\n\t\t\t<div\n\t\t\t\tclass=\"absolute top-0 bottom-0 w-px bg-muted-foreground/50 pointer-events-none\"\n\t\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t\t></div>\n\n\t\t\t<!-- Value tooltip -->\n\t\t\t{#if data}\n\t\t\t\t<div\n\t\t\t\t\tclass=\"absolute -translate-x-1/2 -translate-y-full pointer-events-none z-10\"\n\t\t\t\t\tstyle=\"left: {clampedX}px; top: 10px;\"\n\t\t\t\t>\n\t\t\t\t\t<div class=\"bg-background text-foreground border border-border rounded px-2 py-1.5 text-xs font-medium whitespace-nowrap mb-1 flex flex-col gap-0.5\">\n\t\t\t\t\t\t{#each endpoints as endpoint}\n\t\t\t\t\t\t\t{@const value = getNumericValue(data, endpoint)}\n\t\t\t\t\t\t\t{#if value > 0}\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-1.5\">\n\t\t\t\t\t\t\t\t\t<span class=\"h-2 w-2 rounded-full flex-shrink-0\" style=\"background-color: {getEndpointColor(endpoint)};\"></span>\n\t\t\t\t\t\t\t\t\t<span class=\"truncate max-w-[200px]\" title={endpoint}>{truncateEndpoint(endpoint, 25)}</span>\n\t\t\t\t\t\t\t\t\t<span class=\"ml-auto tabular-nums\">{formatDisplayValue(value)}{!formatValue && unit ? ` ${unit}` : ''}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\n\t\t\t<!-- Time label -->\n\t\t\t<div\n\t\t\t\tclass=\"absolute bottom-0 -translate-x-1/2 translate-y-full pointer-events-none\"\n\t\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t\t>\n\t\t\t\t<div class=\"bg-background border border-border rounded px-1.5 py-0.5 text-[10px] text-muted-foreground whitespace-nowrap shadow-sm mt-1\">\n\t\t\t\t\t{formatTime(calculatedTime())}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{/if}\n\t</div>\n\n\t<!-- Legend -->\n\t{#if hasData}\n\t\t<div class=\"flex flex-wrap gap-x-4 gap-y-1 px-2 text-xs text-muted-foreground\">\n\t\t\t{#each endpoints as endpoint, i}\n\t\t\t\t<div class=\"flex items-center gap-1.5\">\n\t\t\t\t\t<span class=\"h-2 w-2 rounded-full flex-shrink-0\" style=\"background-color: {chartColors[i % chartColors.length]};\"></span>\n\t\t\t\t\t<span class=\"truncate max-w-[180px]\" title={endpoint}>{truncateEndpoint(endpoint, 25)}</span>\n\t\t\t\t</div>\n\t\t\t{/each}\n\t\t</div>\n\t{/if}\n</div>\n","<script lang=\"ts\">\n import { onMount, onDestroy } from 'svelte';\n import { api } from '$lib/api';\n import { formatDuration, toUTCISO, calendarDateTimeToLuxon } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import * as Table from \"$lib/components/ui/table\";\n import * as Card from \"$lib/components/ui/card\";\n import { Button } from \"$lib/components/ui/button\";\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import * as DropdownMenu from \"$lib/components/ui/dropdown-menu/index.js\";\n import { ChevronDown, Check } from 'lucide-svelte';\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { ImpactBadge } from \"$lib/components/ui/impact-badge\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { PaginationFooter } from \"$lib/components/ui/pagination-footer\";\n import { TimeRangePicker } from \"$lib/components/ui/time-range-picker\";\n import { SearchBar } from \"$lib/components/ui/search-bar\";\n import { browser } from '$app/environment';\n import { CalendarDate } from \"@internationalized/date\";\n import { projectsState } from '$lib/state/projects.svelte';\n import { createRowClickHandler } from '$lib/utils/navigation';\n import { resolve } from '$app/paths';\n import PageHeader from '$lib/components/issues/page-header.svelte';\n import D3StackedAreaChart from '$lib/components/dashboard/d3-stacked-area-chart.svelte';\n import D3HorizontalBarChart from '$lib/components/dashboard/d3-horizontal-bar-chart.svelte';\n import {\n presetMinutes,\n getTimeRangeFromPreset,\n dateToCalendarDate,\n dateToTimeString,\n parseTimeRangeFromUrl,\n getResolvedTimeRange,\n updateUrl\n } from '$lib/utils/url-params';\n import {\n getSortState,\n setSortState,\n handleSortClick,\n type SortDirection\n } from '$lib/utils/sort-storage';\n\timport { ChartLine } from '@lucide/svelte';\n\n const timezone = $derived(getTimezone());\n\n type EndpointStats = {\n endpoint: string;\n count: number;\n p50Duration: number;\n p95Duration: number;\n p99Duration: number;\n avgDuration: number;\n lastSeen: string;\n impact: number;\n impactReason: string;\n };\n\n type SortField = 'count' | 'p50_duration' | 'p95_duration' | 'p99_duration' | 'last_seen' | 'impact';\n\n type ChartDataPoint = {\n timestamp: Date;\n endpoint: string;\n value: number;\n };\n\n type ChartResponse = {\n endpoints: string[];\n series: { timestamp: string; endpoint: string; value: number }[];\n };\n\n // Metric options for the chart\n const metricOptions = [\n { value: 'total_time', label: 'Total time' },\n { value: 'p50', label: 'Average response time' },\n { value: 'p95', label: 'Slow response time' },\n { value: 'p99', label: 'Awful response time' }\n ];\n\n let endpoints = $state<EndpointStats[]>([]);\n let loading = $state(true);\n let error = $state('');\n\n // Chart state\n let chartEndpoints = $state<string[]>([]);\n let chartSeries = $state<ChartDataPoint[]>([]);\n let chartLoading = $state(true);\n let selectedMetric = $state('total_time');\n\n // Pagination State\n let page = $state(1);\n let pageSize = $state(50);\n let total = $state(0);\n let totalPages = $state(0);\n\n // Parse URL params including search\n function parseEndpointsUrlParams() {\n if (!browser) return { preset: '24h', from: null, to: null, search: '' };\n const params = new URLSearchParams(window.location.search);\n const timeParams = parseTimeRangeFromUrl(timezone, '24h');\n return {\n ...timeParams,\n search: params.get('search') || ''\n };\n }\n\n // Initialize from URL\n const initialUrlParams = parseEndpointsUrlParams();\n const initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n // Search state\n let searchQuery = $state(initialUrlParams.search);\n\n // Date Range State\n let selectedPreset = $state<string | null>(initialUrlParams.preset);\n let fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n let toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n let fromTime = $state(dateToTimeString(initialRange.from, timezone));\n let toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n // Update URL with current time range and search\n function updateTimeRangeUrl(pushToHistory = true) {\n const params: Record<string, string | null | undefined> = {};\n if (selectedPreset) {\n params.preset = selectedPreset;\n } else {\n params.from = getFromDateTimeUTC();\n params.to = getToDateTimeUTC();\n }\n if (searchQuery.trim()) {\n params.search = searchQuery.trim();\n }\n updateUrl(params, { pushToHistory });\n }\n\n // Handle browser back/forward navigation\n function handlePopState() {\n const urlParams = parseEndpointsUrlParams();\n const range = getResolvedTimeRange(urlParams, timezone);\n\n selectedPreset = urlParams.preset;\n fromDate = dateToCalendarDate(range.from, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n toTime = dateToTimeString(range.to, timezone);\n searchQuery = urlParams.search;\n\n page = 1;\n loadData(false);\n }\n\n // Sorting - persisted to localStorage\n const SORT_STORAGE_KEY = 'endpoints';\n const initialSort = getSortState(SORT_STORAGE_KEY, { field: 'impact', direction: 'desc' });\n let orderBy = $state<SortField>(initialSort.field as SortField);\n let sortDirection = $state<SortDirection>(initialSort.direction);\n\n // Page size options\n const pageSizeOptions = [\n { value: \"10\", label: \"10\" },\n { value: \"20\", label: \"20\" },\n { value: \"50\", label: \"50\" },\n { value: \"100\", label: \"100\" }\n ];\n\n const pageSizeLabel = $derived(pageSizeOptions.find(o => o.value === pageSize.toString())?.label ?? pageSize.toString());\n\n // Combine date and time into UTC ISO datetime string\n function getFromDateTimeUTC(): string {\n const [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute }, timezone);\n return toUTCISO(dt);\n }\n\n function getToDateTimeUTC(): string {\n const [hour, minute] = (toTime || '23:59').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute }, timezone).endOf('minute');\n return toUTCISO(dt);\n }\n\n function handleTimeRangeChange(from: { date: CalendarDate; time: string }, to: { date: CalendarDate; time: string }, preset: string | null) {\n fromDate = from.date;\n fromTime = from.time;\n toDate = to.date;\n toTime = to.time;\n selectedPreset = preset;\n page = 1;\n loadData(false);\n }\n\n // Format count with k/m suffixes\n function formatCount(count: number): string {\n if (count >= 1_000_000) {\n return `${(count / 1_000_000).toFixed(1)}m`;\n } else if (count >= 1_000) {\n return `${(count / 1_000).toFixed(1)}k`;\n }\n return count.toLocaleString();\n }\n\n // Calculate interval based on time range\n function calculateInterval(from: Date, to: Date): number {\n const diffMs = to.getTime() - from.getTime();\n const diffHours = diffMs / (1000 * 60 * 60);\n\n if (diffHours <= 1) return 1; // 1 minute\n if (diffHours <= 6) return 5; // 5 minutes\n if (diffHours <= 24 * 7) return 60; // 1 hour\n return 240; // 4 hours\n }\n\n async function loadChartData() {\n chartLoading = true;\n\n try {\n const fromStr = getFromDateTimeUTC();\n const toStr = getToDateTimeUTC();\n const interval = calculateInterval(new Date(fromStr), new Date(toStr));\n\n const response = await api.post('/endpoints/chart', {\n fromDate: fromStr,\n toDate: toStr,\n metricType: selectedMetric,\n intervalMinutes: interval\n }, { projectId: projectsState.currentProjectId ?? undefined }) as ChartResponse;\n\n chartEndpoints = response.endpoints || [];\n chartSeries = (response.series || []).map((s: { timestamp: string; endpoint: string; value: number }) => ({\n timestamp: new Date(s.timestamp),\n endpoint: s.endpoint,\n value: s.value\n }));\n } catch (e: any) {\n console.error('Failed to load chart data:', e);\n chartEndpoints = [];\n chartSeries = [];\n } finally {\n chartLoading = false;\n }\n }\n\n async function loadData(pushToHistory = true) {\n loading = true;\n error = '';\n\n if (selectedPreset) {\n const range = getTimeRangeFromPreset(selectedPreset, timezone);\n fromDate = dateToCalendarDate(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toTime = dateToTimeString(range.to, timezone);\n }\n\n // Update URL\n updateTimeRangeUrl(pushToHistory);\n\n try {\n const requestBody = {\n fromDate: getFromDateTimeUTC(),\n toDate: getToDateTimeUTC(),\n orderBy: orderBy,\n sortDirection: sortDirection,\n pagination: {\n page: page,\n pageSize: pageSize\n },\n search: searchQuery.trim()\n };\n\n const response = await api.post('/endpoints/grouped', requestBody, { projectId: projectsState.currentProjectId ?? undefined });\n\n endpoints = response.data || [];\n total = response.pagination.total;\n totalPages = response.pagination.totalPages;\n } catch (e: any) {\n console.error(e);\n error = e.message || 'Failed to load data';\n } finally {\n loading = false;\n }\n\n // Also load chart data\n loadChartData();\n }\n\n function handlePageChange(newPage: number) {\n if (newPage >= 1 && newPage <= totalPages) {\n page = newPage;\n loadData(false); // Don't push to history for pagination\n }\n }\n\n function handlePageSizeChange(newPageSize: number) {\n pageSize = newPageSize;\n page = 1;\n loadData(false); // Don't push to history for pagination\n }\n\n function handleSort(field: SortField) {\n const newSort = handleSortClick(field, orderBy, sortDirection);\n orderBy = newSort.field as SortField;\n sortDirection = newSort.direction;\n setSortState(SORT_STORAGE_KEY, newSort);\n page = 1;\n loadData(false);\n }\n\n function handleMetricChange(value: string) {\n selectedMetric = value;\n loadChartData();\n }\n\n function handleSearch() {\n page = 1;\n loadData(true);\n }\n\n function handleChartRangeSelect(from: Date, to: Date) {\n selectedPreset = null;\n fromDate = new CalendarDate(from.getFullYear(), from.getMonth() + 1, from.getDate());\n fromTime = `${String(from.getHours()).padStart(2, '0')}:${String(from.getMinutes()).padStart(2, '0')}`;\n toDate = new CalendarDate(to.getFullYear(), to.getMonth() + 1, to.getDate());\n toTime = `${String(to.getHours()).padStart(2, '0')}:${String(to.getMinutes()).padStart(2, '0')}`;\n page = 1;\n loadData(true);\n }\n\n const selectedMetricLabel = $derived(metricOptions.find(o => o.value === selectedMetric)?.label ?? 'Total time');\n\n // Format total time (input is milliseconds, not nanoseconds)\n function formatTotalTime(ms: number): string {\n if (ms >= 3600000) { // >= 1 hour\n return `${(ms / 3600000).toFixed(1)}h`;\n } else if (ms >= 60000) { // >= 1 minute\n return `${(ms / 60000).toFixed(1)}m`;\n } else if (ms >= 1000) { // >= 1 second\n return `${(ms / 1000).toFixed(1)}s`;\n } else if (ms < 1) {\n return `${(ms * 1000).toFixed(0)}µs`;\n }\n return `${Math.round(ms)}ms`;\n }\n\n // Check if we should use bar chart (for percentile metrics)\n const useBarChart = $derived(selectedMetric !== 'total_time');\n\n // Get top 8 endpoints for bar chart based on selected metric\n // Sort by the selected metric to show the worst (slowest) endpoints first\n const barChartData = $derived.by(() => {\n if (!useBarChart || endpoints.length === 0) return [];\n\n const metricKey = selectedMetric === 'p50' ? 'p50Duration'\n : selectedMetric === 'p95' ? 'p95Duration'\n : 'p99Duration';\n\n return [...endpoints]\n .sort((a, b) => b[metricKey] - a[metricKey])\n .slice(0, 8)\n .map(ep => ({\n endpoint: ep.endpoint,\n value: ep[metricKey]\n }));\n });\n\n\n onMount(() => {\n // Add popstate listener for back/forward navigation\n window.addEventListener('popstate', handlePopState);\n\n // Initial load with replaceState (don't push to history)\n loadData(false);\n });\n\n onDestroy(() => {\n if (typeof window !== 'undefined') {\n window.removeEventListener('popstate', handlePopState);\n }\n });\n</script>\n\n<div class=\"space-y-4\">\n <!-- Header with Title and Time Range Filter -->\n <div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n\n <PageHeader title=\"Endpoints\" />\n\n <div class=\"flex flex-col\">\n <TimeRangePicker\n bind:fromDate\n bind:toDate\n bind:fromTime\n bind:toTime\n bind:preset={selectedPreset}\n onApply={handleTimeRangeChange}\n />\n </div>\n </div>\n\n <!-- Search -->\n <SearchBar\n placeholder=\"Search endpoints...\"\n bind:value={searchQuery}\n onSearch={handleSearch}\n disabled={loading}\n />\n\n <!-- Performance Chart -->\n <Card.Root class=\"pt-2\">\n <Card.Header class=\"flex flex-row items-center justify-between space-y-0 border-b [.border-b]:pb-2 pl-3\">\n <Card.Title class=\"text-base font-medium flex items-center gap-2\">\n <ChartLine class=\"h-3.5 w-3.5 text-muted-foreground\" />\n <DropdownMenu.Root>\n <DropdownMenu.Trigger class=\"flex items-center text-sm gap-0.5 font-[400] text-muted-foreground\">\n {selectedMetricLabel}\n <ChevronDown class=\"h-3 w-3 text-muted-foreground\" />\n </DropdownMenu.Trigger>\n <DropdownMenu.Content align=\"start\" class=\"w-[200px]\">\n {#each metricOptions as option}\n <DropdownMenu.Item\n onclick={() => handleMetricChange(option.value)}\n class=\"flex items-center justify-between cursor-pointer\"\n >\n <span>{option.label}</span>\n {#if option.value === selectedMetric}\n <Check class=\"h-4 w-4\" />\n {/if}\n </DropdownMenu.Item>\n {/each}\n </DropdownMenu.Content>\n </DropdownMenu.Root>\n </Card.Title>\n </Card.Header>\n <Card.Content>\n {#if chartLoading && !useBarChart}\n <div class=\"flex justify-center items-center h-[220px]\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else if useBarChart}\n {#if loading}\n <div class=\"flex justify-center items-center h-[220px]\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else}\n <D3HorizontalBarChart\n data={barChartData}\n formatValue={formatDuration}\n />\n {/if}\n {:else}\n <D3StackedAreaChart\n endpoints={chartEndpoints}\n series={chartSeries}\n formatValue={formatTotalTime}\n onRangeSelect={handleChartRangeSelect}\n />\n {/if}\n </Card.Content>\n </Card.Root>\n\n <!-- Endpoints Table -->\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if loading}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={6} class=\"h-48\">\n <div class=\"flex justify-center items-center h-full\">\n <LoadingCircle size=\"xlg\" />\n </div>\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if error}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={6} class=\"h-24 text-center text-red-500\">\n {error}\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if endpoints.length === 0}\n <Table.Body>\n <TableEmptyState colspan={6} message=\"No endpoint data available for your search parameters\" />\n </Table.Body>\n {:else}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader\n label=\"Endpoint\"\n tooltip=\"The API route or page being accessed\"\n class=\"max-w-[50%]\"\n />\n <TracewayTableHeader\n label=\"Calls\"\n tooltip=\"Total number of requests\"\n sortField=\"count\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Typical\"\n tooltip=\"Median response time (P50)\"\n sortField=\"p50_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Slow\"\n tooltip=\"95th percentile - slowest 5% of requests\"\n sortField=\"p95_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Awful\"\n tooltip=\"99th percentile - slowest 1% of requests\"\n sortField=\"p99_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Impact\"\n tooltip=\"Impact score based on Apdex, error rates, P99 latency, and request volume\"\n sortField=\"impact\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n align=\"right\"\n class=\"w-[120px]\"\n />\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each endpoints as endpoint}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50\"\n onclick={createRowClickHandler(resolve(`/endpoints/${encodeURIComponent(endpoint.endpoint)}`), 'preset', 'from', 'to')}\n >\n <Table.Cell class=\"font-mono text-sm max-w-[50%] break-all whitespace-normal\">\n {endpoint.endpoint}\n </Table.Cell>\n <Table.Cell class=\"tabular-nums\">\n {formatCount(endpoint.count)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(endpoint.p50Duration)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(endpoint.p95Duration)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(endpoint.p99Duration)}\n </Table.Cell>\n <Table.Cell class=\"text-right\">\n <ImpactBadge score={endpoint.impact} reason={endpoint.impactReason} />\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n {/if}\n </Table.Root>\n </div>\n\n <!-- Pagination Footer -->\n <PaginationFooter\n currentPage={page}\n {totalPages}\n {pageSize}\n totalItems={total}\n onPageChange={handlePageChange}\n onPageSizeChange={handlePageSizeChange}\n {loading}\n itemLabel=\"endpoint\"\n />\n</div>\n"],"names":["props","$.rest_props","$$props","iconNode","Icon","$.noop","none$1","series","order","n","i","j","s0","s1","m","none","o","stackValue","d","key","stackSeries","stack","keys","constant","orderNone","offset","offsetNone","value","data","sz","oz","array","_","stackOrderReverse","load","authState","redirect","endpoints","$.prop","height","padding","unit","tz","getTimezone","chartColors","containerRef","$.state","width","isHovering","mouseX","isDragging","dragStartX","dragEndX","$.user_effect","observer","entries","entry","$.set","$.get","chartWidth","$.derived","chartHeight","stackedData","byTimestamp","point","ts","ep","a","b","xMin","min","xMax","max","getNumericValue","val","yMax","maxSum","sum","yDomainMax","xScale","scaleUtc","yScale","scaleLinear","yTicks","formatYLabel","stackedAreas","stackedSeries","areaGen","area","s","hasData","isInChartArea","getTimeAtPosition","x","chartX","percentage","timeDiff","selectionLeft","selectionRight","selectionWidth","selectionStartTime","selectionEndTime","getDataAtTime","time","targetMs","closest","minDiff","diff","calculatedTime","calculatedData","formatDisplayValue","handleMouseMove","rect","handleMouseEnter","handleMouseLeave","handleMouseDown","handleMouseUp","startTime","endTime","handleKeydown","formatTime","date","formatDateTime","getEndpointColor","endpoint","idx","truncateEndpoint","maxLen","div","root","div_1","$.child","node","svg","root_1","g","$.each","node_1","tick","line","root_2","$.set_attribute","$0","$1","$.append","$$anchor","node_2","text","root_3","text_1","$.reset","line_1","$.sibling","line_2","node_3","$$index_2","$$array","path","root_4","div_2","root_5","$$render","consequent","alternate","div_3","root_6","div_4","div_5","consequent_1","clampedX","div_6","$.first_child","fragment","node_6","div_7","root_8","div_8","$.index","div_9","root_10","span","span_1","span_2","consequent_2","$.template_effect","$.set_style","consequent_3","div_10","div_11","consequent_4","$$value","node_8","div_12","root_11","div_13","root_12","span_3","span_4","consequent_5","$.event","timezone","metricOptions","$.proxy","loading","error","chartEndpoints","chartSeries","chartLoading","selectedMetric","page","pageSize","total","totalPages","parseEndpointsUrlParams","params","parseTimeRangeFromUrl","initialUrlParams","initialRange","getResolvedTimeRange","searchQuery","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","getFromDateTimeUTC","getToDateTimeUTC","updateUrl","handlePopState","urlParams","range","loadData","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","formatCount","count","calculateInterval","diffHours","loadChartData","fromStr","toStr","interval","response","api","projectsState","e","getTimeRangeFromPreset","requestBody","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","handleMetricChange","handleSearch","handleChartRangeSelect","CalendarDate","selectedMetricLabel","formatTotalTime","ms","useBarChart","barChartData","metricKey","onMount","onDestroy","PageHeader","TimeRangePicker","SearchBar","Card_Root","Card_Header","Card_Title","ChartLine","DropdownMenu_Root","DropdownMenu_Trigger","ChevronDown","node_9","DropdownMenu_Content","node_11","option","DropdownMenu_Item","fragment_7","Check","$.set_text","Card_Content","LoadingCircle","node_16","root_14","node_19","D3HorizontalBarChart","formatDuration","D3StackedAreaChart","alternate_1","alternate_2","Table_Root","Table_Body","Table_Row","Table_Cell","root_21","node_25","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","TracewayTableHeader","node_34","node_35","node_36","node_37","node_38","node_39","Table_Body_3","node_41","createRowClickHandler","resolve","Table_Row_3","Table_Cell_2","text_3","Table_Cell_3","Table_Cell_4","Table_Cell_5","Table_Cell_6","Table_Cell_7","ImpactBadge","consequent_6","alternate_3","alternate_4","alternate_5","PaginationFooter","node_49"],"mappings":"+tDAAA,cA6CIA,EAAKC,GAAAC,EAAA,CAAA,UAAA,WAAA,UAAA,CAAA,QACHC,EAAQ,EAAK,OAAM,CAAI,EAAK,2BAA0B,GAAM,OAAM,CAAI,EAAK,mBAAmB,CAAA,GAcnGC,gCAA2BJ,EAAK,uBAAYG,gDAC5B,UAAQE,EAAA,sCAHzB,CC1De,SAAAC,GAASC,EAAQC,EAAO,CACrC,IAAOC,EAAIF,EAAO,QAAU,EAC5B,QAASG,EAAI,EAAGC,EAAGC,EAAIC,EAAKN,EAAOC,EAAM,CAAC,CAAC,EAAGC,EAAGK,EAAID,EAAG,OAAQH,EAAID,EAAG,EAAEC,EAEvE,IADAE,EAAKC,EAAIA,EAAKN,EAAOC,EAAME,CAAC,CAAC,EACxBC,EAAI,EAAGA,EAAIG,EAAG,EAAEH,EACnBE,EAAGF,CAAC,EAAE,CAAC,GAAKE,EAAGF,CAAC,EAAE,CAAC,EAAI,MAAMC,EAAGD,CAAC,EAAE,CAAC,CAAC,EAAIC,EAAGD,CAAC,EAAE,CAAC,EAAIC,EA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,EAAC,WAAW,CAAA,CAAA,0EAEvC4N,GAAUvM,GAAA,uCACNwM,GAAWxM,GAAA,aAAQ,OAAAvF,EAAAkE,CAAQ,EAAC,qBAAgB,OAAAlE,EAAAkE,CAAQ,EAAC,4IAlF5DvF,CAAS,EAAC,SAAW,EAAC4H,EAAAyL,CAAA,EAAAzL,EAAA0L,EAAA,EAAA,0BARtB/I,CAAK,EAAA3C,EAAAqC,CAAA,EAAArC,EAAA2L,EAAA,EAAA,0BAVVjJ,CAAO,EAAA1C,EAAA4B,CAAA,EAAA5B,EAAA4L,EAAA,EAAA,uCAFnBtL,EAAG,WAAHA,GAAG,CAAA,EAgHHuL,GAAAC,GAAA,4BACgB9I,CAAI,6BAChBG,EAAU,2BACVF,EAAQ,6BACGC,CAAK,gBACHqD,oBACIE,0BACjB/D,CAAO,4BAvMf3E,EAAG,MAAHA,EAAG,MAFJ","x_google_ignoreList":[0,1,2,3,4]}
\ No newline at end of file
+{"version":3,"file":"9._aK9M2Us.js","sources":["../../../../../../node_modules/@lucide/svelte/dist/icons/chart-line.svelte","../../../../../../node_modules/d3-shape/src/offset/none.js","../../../../../../node_modules/d3-shape/src/order/none.js","../../../../../../node_modules/d3-shape/src/stack.js","../../../../../../node_modules/d3-shape/src/order/reverse.js","../../../../../../src/routes/endpoints/+page.ts","../../../../../../src/lib/components/dashboard/d3-stacked-area-chart.svelte","../../../../../../src/routes/endpoints/+page.svelte"],"sourcesContent":["<script lang=\"ts\">/**\n * @license @lucide/svelte v0.561.0 - ISC\n *\n * ISC License\n *\n * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.\n *\n * Permission to use, copy, modify, and/or distribute this software for any\n * purpose with or without fee is hereby granted, provided that the above\n * copyright notice and this permission notice appear in all copies.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n *\n * ---\n *\n * The MIT License (MIT) (for portions derived from Feather)\n *\n * Copyright (c) 2013-2023 Cole Bemis\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n *\n */\nimport Icon from '../Icon.svelte';\nlet props = $props();\nconst iconNode = [[\"path\", { \"d\": \"M3 3v16a2 2 0 0 0 2 2h16\" }], [\"path\", { \"d\": \"m19 9-5 5-4-4-3 3\" }]];\n/**\n * @component @name ChartLine\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMyAzdjE2YTIgMiAwIDAgMCAyIDJoMTYiIC8+CiAgPHBhdGggZD0ibTE5IDktNSA1LTQtNC0zIDMiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/chart-line\n * @see https://lucide.dev/guide/packages/lucide-svelte - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {FunctionalComponent} Svelte component\n *\n */\n</script>\n\n<Icon name=\"chart-line\" {...props} iconNode={iconNode}>\n {@render props.children?.()}\n</Icon>\n","export default function(series, order) {\n if (!((n = series.length) > 1)) return;\n for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {\n s0 = s1, s1 = series[order[i]];\n for (j = 0; j < m; ++j) {\n s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];\n }\n }\n}\n","export default function(series) {\n var n = series.length, o = new Array(n);\n while (--n >= 0) o[n] = n;\n return o;\n}\n","import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport offsetNone from \"./offset/none.js\";\nimport orderNone from \"./order/none.js\";\n\nfunction stackValue(d, key) {\n return d[key];\n}\n\nfunction stackSeries(key) {\n const series = [];\n series.key = key;\n return series;\n}\n\nexport default function() {\n var keys = constant([]),\n order = orderNone,\n offset = offsetNone,\n value = stackValue;\n\n function stack(data) {\n var sz = Array.from(keys.apply(this, arguments), stackSeries),\n i, n = sz.length, j = -1,\n oz;\n\n for (const d of data) {\n for (i = 0, ++j; i < n; ++i) {\n (sz[i][j] = [0, +value(d, sz[i].key, j, data)]).data = d;\n }\n }\n\n for (i = 0, oz = array(order(sz)); i < n; ++i) {\n sz[oz[i]].index = i;\n }\n\n offset(sz, oz);\n return sz;\n }\n\n stack.keys = function(_) {\n return arguments.length ? (keys = typeof _ === \"function\" ? _ : constant(Array.from(_)), stack) : keys;\n };\n\n stack.value = function(_) {\n return arguments.length ? (value = typeof _ === \"function\" ? _ : constant(+_), stack) : value;\n };\n\n stack.order = function(_) {\n return arguments.length ? (order = _ == null ? orderNone : typeof _ === \"function\" ? _ : constant(Array.from(_)), stack) : order;\n };\n\n stack.offset = function(_) {\n return arguments.length ? (offset = _ == null ? offsetNone : _, stack) : offset;\n };\n\n return stack;\n}\n","import none from \"./none.js\";\n\nexport default function(series) {\n return none(series).reverse();\n}\n","import { redirect } from '@sveltejs/kit';\nimport { authState } from '$lib/state/auth.svelte';\nimport type { PageLoad } from './$types';\n\nexport const load: PageLoad = () => {\n\tif (!authState.isAuthenticated) {\n\t\tthrow redirect(302, '/login');\n\t}\n};\n","<script lang=\"ts\">\n\timport { scaleUtc, scaleLinear } from 'd3-scale';\n\timport { stack, area, stackOrderReverse } from 'd3-shape';\n\timport { min, max } from 'd3-array';\n\timport { formatDateTime } from '$lib/utils/formatters';\n\timport { getTimezone } from '$lib/state/timezone.svelte';\n\n\ttype DataPoint = {\n\t\ttimestamp: Date;\n\t\tendpoint: string;\n\t\tvalue: number;\n\t};\n\n\ttype StackedData = {\n\t\t[key: string]: number | Date;\n\t\ttimestamp: Date;\n\t};\n\n\tlet {\n\t\tendpoints = [],\n\t\tseries = [],\n\t\theight = 220,\n\t\tpadding = { top: 10, right: 4, bottom: 20, left: 55 },\n\t\tunit = 'ms',\n\t\tformatValue,\n\t\tonRangeSelect\n\t} = $props<{\n\t\tendpoints: string[];\n\t\tseries: DataPoint[];\n\t\theight?: number;\n\t\tpadding?: { top: number; right: number; bottom: number; left: number };\n\t\tunit?: string;\n\t\tformatValue?: (value: number) => string;\n\t\tonRangeSelect?: (from: Date, to: Date) => void;\n\t}>();\n\n\tconst tz = $derived(getTimezone());\n\n\t// Chart colors using CSS variables\n\tconst chartColors = [\n\t\t'var(--chart-1)',\n\t\t'var(--chart-2)',\n\t\t'var(--chart-3)',\n\t\t'var(--chart-4)',\n\t\t'var(--chart-5)',\n\t\t'var(--muted-foreground)' // For \"Other\"\n\t];\n\n\tlet containerRef = $state<HTMLDivElement | null>(null);\n\tlet width = $state(300);\n\n\t// Hover state\n\tlet isHovering = $state(false);\n\tlet mouseX = $state(0);\n\n\t// Drag selection state\n\tlet isDragging = $state(false);\n\tlet dragStartX = $state(0);\n\tlet dragEndX = $state(0);\n\n\t// Observe container width\n\t$effect(() => {\n\t\tif (!containerRef) return;\n\n\t\tconst observer = new ResizeObserver((entries) => {\n\t\t\tfor (const entry of entries) {\n\t\t\t\twidth = entry.contentRect.width;\n\t\t\t}\n\t\t});\n\n\t\tobserver.observe(containerRef);\n\t\treturn () => observer.disconnect();\n\t});\n\n\t// Chart dimensions\n\tconst chartWidth = $derived(Math.max(0, width - padding.left - padding.right));\n\tconst chartHeight = $derived(Math.max(0, height - padding.top - padding.bottom));\n\n\t// Transform series data to stacked format\n\tconst stackedData = $derived(() => {\n\t\tif (series.length === 0 || endpoints.length === 0) return [];\n\n\t\t// Group by timestamp\n\t\tconst byTimestamp = new Map<number, StackedData>();\n\n\t\tfor (const point of series) {\n\t\t\tconst ts = point.timestamp.getTime();\n\t\t\tif (!byTimestamp.has(ts)) {\n\t\t\t\tconst entry: StackedData = { timestamp: point.timestamp };\n\t\t\t\t// Initialize all endpoints to 0\n\t\t\t\tfor (const ep of endpoints) {\n\t\t\t\t\tentry[ep] = 0;\n\t\t\t\t}\n\t\t\t\tbyTimestamp.set(ts, entry);\n\t\t\t}\n\t\t\tconst entry = byTimestamp.get(ts)!;\n\t\t\tentry[point.endpoint] = point.value;\n\t\t}\n\n\t\t// Sort by timestamp\n\t\treturn Array.from(byTimestamp.values()).sort(\n\t\t\t(a, b) => a.timestamp.getTime() - b.timestamp.getTime()\n\t\t);\n\t});\n\n\t// Calculate domains\n\tconst xMin = $derived(() => {\n\t\tconst data = stackedData();\n\t\tif (data.length === 0) return new Date();\n\t\treturn min(data, (d) => d.timestamp) ?? new Date();\n\t});\n\n\tconst xMax = $derived(() => {\n\t\tconst data = stackedData();\n\t\tif (data.length === 0) return new Date();\n\t\treturn max(data, (d) => d.timestamp) ?? new Date();\n\t});\n\n\t// Helper to get numeric value from StackedData\n\tfunction getNumericValue(d: StackedData, key: string): number {\n\t\tconst val = d[key];\n\t\treturn typeof val === 'number' ? val : 0;\n\t}\n\n\t// Calculate max stacked value\n\tconst yMax = $derived(() => {\n\t\tconst data = stackedData();\n\t\tif (data.length === 0 || endpoints.length === 0) return 0;\n\n\t\tlet maxSum = 0;\n\t\tfor (const d of data) {\n\t\t\tlet sum = 0;\n\t\t\tfor (const ep of endpoints) {\n\t\t\t\tsum += getNumericValue(d, ep);\n\t\t\t}\n\t\t\tmaxSum = Math.max(maxSum, sum);\n\t\t}\n\t\treturn maxSum;\n\t});\n\n\t// Add padding to y domain\n\tconst yDomainMax = $derived(yMax() * 1.1 || 1);\n\n\t// Scales\n\tconst xScale = $derived(\n\t\tscaleUtc()\n\t\t\t.domain([xMin(), xMax()])\n\t\t\t.range([0, chartWidth])\n\t);\n\n\tconst yScale = $derived(\n\t\tscaleLinear()\n\t\t\t.domain([0, yDomainMax])\n\t\t\t.range([chartHeight, 0])\n\t);\n\n\t// Generate Y axis ticks\n\tconst yTicks = $derived(() => yScale.ticks(4));\n\n\t// Format Y axis label\n\tfunction formatYLabel(value: number): string {\n\t\tif (value >= 1000000) return (value / 1000000).toFixed(1) + 'M';\n\t\tif (value >= 1000) return (value / 1000).toFixed(1) + 'k';\n\t\tif (Number.isInteger(value)) return value.toString();\n\t\treturn value.toFixed(1);\n\t}\n\n\t// Generate stacked area paths\n\tconst stackedAreas = $derived(() => {\n\t\tconst data = stackedData();\n\t\tif (data.length === 0 || endpoints.length === 0) return [];\n\n\t\tconst stackGen = stack<StackedData>()\n\t\t\t.keys(endpoints)\n\t\t\t.order(stackOrderReverse);\n\n\t\tconst stackedSeries = stackGen(data);\n\n\t\tconst areaGen = area<[number, number]>()\n\t\t\t.x((d, i) => xScale(data[i].timestamp))\n\t\t\t.y0((d) => yScale(d[0]))\n\t\t\t.y1((d) => yScale(d[1]));\n\n\t\treturn stackedSeries.map((s, i) => ({\n\t\t\tkey: s.key,\n\t\t\tpath: areaGen(s as unknown as [number, number][]) || '',\n\t\t\tcolor: chartColors[i % chartColors.length]\n\t\t}));\n\t});\n\n\tconst hasData = $derived(stackedData().length > 0 && endpoints.length > 0);\n\n\t// Check if mouse X is within the chart area\n\tfunction isInChartArea(): boolean {\n\t\treturn mouseX >= padding.left && mouseX <= width - padding.right;\n\t}\n\n\t// Calculate time based on X position\n\tfunction getTimeAtPosition(x: number): Date {\n\t\tif (chartWidth <= 0) return xMin();\n\t\tconst chartX = x - padding.left;\n\t\tconst percentage = Math.max(0, Math.min(1, chartX / chartWidth));\n\t\tconst timeDiff = xMax().getTime() - xMin().getTime();\n\t\treturn new Date(xMin().getTime() + timeDiff * percentage);\n\t}\n\n\t// Selection region computed values\n\tconst selectionLeft = $derived(Math.max(padding.left, Math.min(dragStartX, dragEndX)));\n\tconst selectionRight = $derived(Math.min(width - padding.right, Math.max(dragStartX, dragEndX)));\n\tconst selectionWidth = $derived(selectionRight - selectionLeft);\n\tconst selectionStartTime = $derived(getTimeAtPosition(selectionLeft));\n\tconst selectionEndTime = $derived(getTimeAtPosition(selectionLeft + selectionWidth));\n\n\t// Find the closest data point to a given time\n\tfunction getDataAtTime(time: Date): StackedData | null {\n\t\tconst data = stackedData();\n\t\tif (data.length === 0) return null;\n\n\t\tconst targetMs = time.getTime();\n\t\tlet closest: StackedData | null = null;\n\t\tlet minDiff = Infinity;\n\n\t\tfor (const d of data) {\n\t\t\tconst diff = Math.abs(d.timestamp.getTime() - targetMs);\n\t\t\tif (diff < minDiff) {\n\t\t\t\tminDiff = diff;\n\t\t\t\tclosest = d;\n\t\t\t}\n\t\t}\n\n\t\treturn closest;\n\t}\n\n\t// Calculate time based on mouse X position\n\tconst calculatedTime = $derived(() => {\n\t\tif (!isHovering) return null;\n\t\treturn getTimeAtPosition(mouseX);\n\t});\n\n\t// Calculate the data point at the current hover position\n\tconst calculatedData = $derived(() => {\n\t\tconst time = calculatedTime();\n\t\tif (!time) return null;\n\t\treturn getDataAtTime(time);\n\t});\n\n\t// Format value for display\n\tfunction formatDisplayValue(value: number): string {\n\t\tif (formatValue) return formatValue(value);\n\t\tif (Number.isInteger(value)) return value.toString();\n\t\tif (Math.abs(value) < 0.01) return value.toFixed(4);\n\t\tif (Math.abs(value) < 1) return value.toFixed(2);\n\t\tif (Math.abs(value) < 10) return value.toFixed(1);\n\t\treturn Math.round(value).toString();\n\t}\n\n\tfunction handleMouseMove(e: MouseEvent) {\n\t\tif (!containerRef) return;\n\t\tconst rect = containerRef.getBoundingClientRect();\n\t\tmouseX = e.clientX - rect.left;\n\n\t\tif (isDragging) {\n\t\t\tdragEndX = mouseX;\n\t\t}\n\t}\n\n\tfunction handleMouseEnter() {\n\t\tisHovering = true;\n\t}\n\n\tfunction handleMouseLeave() {\n\t\tisHovering = false;\n\t\tif (isDragging) isDragging = false;\n\t}\n\n\tfunction handleMouseDown(e: MouseEvent) {\n\t\tif (!containerRef || e.button !== 0) return;\n\t\tconst rect = containerRef.getBoundingClientRect();\n\t\tconst x = e.clientX - rect.left;\n\n\t\tif (x < padding.left || x > rect.width - padding.right) return;\n\n\t\tisDragging = true;\n\t\tdragStartX = x;\n\t\tdragEndX = x;\n\t\te.preventDefault();\n\t}\n\n\tfunction handleMouseUp() {\n\t\tif (!isDragging) return;\n\n\t\tisDragging = false;\n\n\t\tif (selectionWidth > 10 && onRangeSelect) {\n\t\t\tconst startTime = getTimeAtPosition(Math.min(dragStartX, dragEndX));\n\t\t\tconst endTime = getTimeAtPosition(Math.max(dragStartX, dragEndX));\n\t\t\tonRangeSelect(startTime, endTime);\n\t\t}\n\t}\n\n\tfunction handleKeydown(e: KeyboardEvent) {\n\t\tif (e.key === 'Escape' && isDragging) {\n\t\t\tisDragging = false;\n\t\t\tdragStartX = 0;\n\t\t\tdragEndX = 0;\n\t\t}\n\t}\n\n\t$effect(() => {\n\t\tif (isDragging) {\n\t\t\twindow.addEventListener('keydown', handleKeydown);\n\t\t\treturn () => window.removeEventListener('keydown', handleKeydown);\n\t\t}\n\t});\n\n\tfunction formatTime(date: Date | null): string {\n\t\tif (!date) return '';\n\t\treturn formatDateTime(date, { timezone: tz, format: 'time' });\n\t}\n\n\t// Get color for an endpoint\n\tfunction getEndpointColor(endpoint: string): string {\n\t\tconst idx = endpoints.indexOf(endpoint);\n\t\tif (idx === -1) return chartColors[chartColors.length - 1];\n\t\treturn chartColors[idx % chartColors.length];\n\t}\n\n\t// Truncate long endpoint names for legend\n\tfunction truncateEndpoint(endpoint: string, maxLen: number = 30): string {\n\t\tif (endpoint.length <= maxLen) return endpoint;\n\t\treturn endpoint.slice(0, maxLen - 3) + '...';\n\t}\n</script>\n\n<div class=\"flex flex-col gap-2\">\n\t<div\n\t\tbind:this={containerRef}\n\t\tclass=\"relative select-none w-full\"\n\t\tstyle=\"height: {height}px; cursor: {isDragging ? 'col-resize' : (isInChartArea() ? 'crosshair' : 'default')};\"\n\t\tonmouseenter={handleMouseEnter}\n\t\tonmouseleave={handleMouseLeave}\n\t\tonmousemove={handleMouseMove}\n\t\tonmousedown={handleMouseDown}\n\t\tonmouseup={handleMouseUp}\n\t\trole=\"application\"\n\t\taria-label=\"Stacked area chart with drag-to-zoom\"\n\t>\n\t\t{#if hasData && chartWidth > 0}\n\t\t\t<svg {width} {height}>\n\t\t\t\t<g transform=\"translate({padding.left}, {padding.top})\">\n\t\t\t\t\t<!-- Y axis grid lines -->\n\t\t\t\t\t{#each yTicks() as tick}\n\t\t\t\t\t\t<line\n\t\t\t\t\t\t\tx1={0}\n\t\t\t\t\t\t\ty1={yScale(tick)}\n\t\t\t\t\t\t\tx2={chartWidth}\n\t\t\t\t\t\t\ty2={yScale(tick)}\n\t\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\t\tclass=\"text-border\"\n\t\t\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t\t\t\tstroke-dasharray=\"4 4\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t{/each}\n\n\t\t\t\t\t<!-- Y axis labels -->\n\t\t\t\t\t{#each yTicks() as tick}\n\t\t\t\t\t\t<text\n\t\t\t\t\t\t\tx={-8}\n\t\t\t\t\t\t\ty={yScale(tick)}\n\t\t\t\t\t\t\ttext-anchor=\"end\"\n\t\t\t\t\t\t\tdominant-baseline=\"middle\"\n\t\t\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\t\t\tclass=\"text-muted-foreground\"\n\t\t\t\t\t\t\tfont-size=\"10\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{formatYLabel(tick)}\n\t\t\t\t\t\t</text>\n\t\t\t\t\t{/each}\n\n\t\t\t\t\t<!-- X axis line -->\n\t\t\t\t\t<line\n\t\t\t\t\t\tx1={0}\n\t\t\t\t\t\ty1={chartHeight}\n\t\t\t\t\t\tx2={chartWidth}\n\t\t\t\t\t\ty2={chartHeight}\n\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\tclass=\"text-border\"\n\t\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t\t/>\n\n\t\t\t\t\t<!-- Y axis line -->\n\t\t\t\t\t<line\n\t\t\t\t\t\tx1={0}\n\t\t\t\t\t\ty1={0}\n\t\t\t\t\t\tx2={0}\n\t\t\t\t\t\ty2={chartHeight}\n\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\tclass=\"text-border\"\n\t\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t\t/>\n\n\t\t\t\t\t<!-- Stacked areas -->\n\t\t\t\t\t{#each stackedAreas() as area}\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td={area.path}\n\t\t\t\t\t\t\tfill={area.color}\n\t\t\t\t\t\t\tfill-opacity=\"0.7\"\n\t\t\t\t\t\t\tstroke={area.color}\n\t\t\t\t\t\t\tstroke-width=\"1\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t{/each}\n\t\t\t\t</g>\n\t\t\t</svg>\n\t\t{:else}\n\t\t\t<div class=\"flex h-full items-center justify-center text-sm text-muted-foreground\">\n\t\t\t\tNo data in this period\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Drag selection overlay -->\n\t\t{#if isDragging && selectionWidth > 0}\n\t\t\t<div\n\t\t\t\tclass=\"absolute top-0 bottom-0 bg-primary/20 border-x border-primary/40 pointer-events-none\"\n\t\t\t\tstyle=\"left: {selectionLeft}px; width: {selectionWidth}px;\"\n\t\t\t>\n\t\t\t\t<div class=\"absolute -top-5 left-0 -translate-x-full text-[9px] font-medium text-primary whitespace-nowrap\">\n\t\t\t\t\t{formatTime(selectionStartTime)}\n\t\t\t\t</div>\n\t\t\t\t<div class=\"absolute -top-5 right-0 translate-x-full text-[9px] font-medium text-primary whitespace-nowrap\">\n\t\t\t\t\t{formatTime(selectionEndTime)}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Hover tooltip -->\n\t\t{#if isHovering && !isDragging && isInChartArea() && calculatedData()}\n\t\t\t{@const clampedX = Math.max(padding.left, Math.min(mouseX, width - padding.right))}\n\t\t\t{@const data = calculatedData()}\n\n\t\t\t<!-- Vertical line -->\n\t\t\t<div\n\t\t\t\tclass=\"absolute top-0 bottom-0 w-px bg-muted-foreground/50 pointer-events-none\"\n\t\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t\t></div>\n\n\t\t\t<!-- Value tooltip -->\n\t\t\t{#if data}\n\t\t\t\t<div\n\t\t\t\t\tclass=\"absolute -translate-x-1/2 -translate-y-full pointer-events-none z-10\"\n\t\t\t\t\tstyle=\"left: {clampedX}px; top: 10px;\"\n\t\t\t\t>\n\t\t\t\t\t<div class=\"bg-background text-foreground border border-border rounded px-2 py-1.5 text-xs font-medium whitespace-nowrap mb-1 flex flex-col gap-0.5\">\n\t\t\t\t\t\t{#each endpoints as endpoint}\n\t\t\t\t\t\t\t{@const value = getNumericValue(data, endpoint)}\n\t\t\t\t\t\t\t{#if value > 0}\n\t\t\t\t\t\t\t\t<div class=\"flex items-center gap-1.5\">\n\t\t\t\t\t\t\t\t\t<span class=\"h-2 w-2 rounded-full flex-shrink-0\" style=\"background-color: {getEndpointColor(endpoint)};\"></span>\n\t\t\t\t\t\t\t\t\t<span class=\"truncate max-w-[200px]\" title={endpoint}>{truncateEndpoint(endpoint, 25)}</span>\n\t\t\t\t\t\t\t\t\t<span class=\"ml-auto tabular-nums\">{formatDisplayValue(value)}{!formatValue && unit ? ` ${unit}` : ''}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{/if}\n\t\t\t\t\t\t{/each}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t{/if}\n\n\t\t\t<!-- Time label -->\n\t\t\t<div\n\t\t\t\tclass=\"absolute bottom-0 -translate-x-1/2 translate-y-full pointer-events-none\"\n\t\t\t\tstyle=\"left: {clampedX}px;\"\n\t\t\t>\n\t\t\t\t<div class=\"bg-background border border-border rounded px-1.5 py-0.5 text-[10px] text-muted-foreground whitespace-nowrap shadow-sm mt-1\">\n\t\t\t\t\t{formatTime(calculatedTime())}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t{/if}\n\t</div>\n\n\t<!-- Legend -->\n\t{#if hasData}\n\t\t<div class=\"flex flex-wrap gap-x-4 gap-y-1 px-2 text-xs text-muted-foreground\">\n\t\t\t{#each endpoints as endpoint, i}\n\t\t\t\t<div class=\"flex items-center gap-1.5\">\n\t\t\t\t\t<span class=\"h-2 w-2 rounded-full flex-shrink-0\" style=\"background-color: {chartColors[i % chartColors.length]};\"></span>\n\t\t\t\t\t<span class=\"truncate max-w-[180px]\" title={endpoint}>{truncateEndpoint(endpoint, 25)}</span>\n\t\t\t\t</div>\n\t\t\t{/each}\n\t\t</div>\n\t{/if}\n</div>\n","<script lang=\"ts\">\n import { onMount, onDestroy } from 'svelte';\n import { api } from '$lib/api';\n import { formatDuration, toUTCISO, calendarDateTimeToLuxon } from '$lib/utils/formatters';\n import { getTimezone } from '$lib/state/timezone.svelte';\n import * as Table from \"$lib/components/ui/table\";\n import * as Card from \"$lib/components/ui/card\";\n import { Button } from \"$lib/components/ui/button\";\n import { LoadingCircle } from \"$lib/components/ui/loading-circle\";\n import * as DropdownMenu from \"$lib/components/ui/dropdown-menu/index.js\";\n import { ChevronDown, Check } from 'lucide-svelte';\n import { TracewayTableHeader } from \"$lib/components/ui/traceway-table-header\";\n import { ImpactBadge } from \"$lib/components/ui/impact-badge\";\n import { TableEmptyState } from \"$lib/components/ui/table-empty-state\";\n import { PaginationFooter } from \"$lib/components/ui/pagination-footer\";\n import { TimeRangePicker } from \"$lib/components/ui/time-range-picker\";\n import { SearchBar } from \"$lib/components/ui/search-bar\";\n import { browser } from '$app/environment';\n import { CalendarDate } from \"@internationalized/date\";\n import { projectsState } from '$lib/state/projects.svelte';\n import { createRowClickHandler } from '$lib/utils/navigation';\n import { resolve } from '$app/paths';\n import PageHeader from '$lib/components/issues/page-header.svelte';\n import D3StackedAreaChart from '$lib/components/dashboard/d3-stacked-area-chart.svelte';\n import D3HorizontalBarChart from '$lib/components/dashboard/d3-horizontal-bar-chart.svelte';\n import {\n presetMinutes,\n getTimeRangeFromPreset,\n dateToCalendarDate,\n dateToTimeString,\n parseTimeRangeFromUrl,\n getResolvedTimeRange,\n updateUrl\n } from '$lib/utils/url-params';\n import {\n getSortState,\n setSortState,\n handleSortClick,\n type SortDirection\n } from '$lib/utils/sort-storage';\n\timport { ChartLine } from '@lucide/svelte';\n\n const timezone = $derived(getTimezone());\n\n type EndpointStats = {\n endpoint: string;\n count: number;\n p50Duration: number;\n p95Duration: number;\n p99Duration: number;\n avgDuration: number;\n lastSeen: string;\n impact: number;\n impactReason: string;\n };\n\n type SortField = 'count' | 'p50_duration' | 'p95_duration' | 'p99_duration' | 'last_seen' | 'impact';\n\n type ChartDataPoint = {\n timestamp: Date;\n endpoint: string;\n value: number;\n };\n\n type ChartResponse = {\n endpoints: string[];\n series: { timestamp: string; endpoint: string; value: number }[];\n };\n\n // Metric options for the chart\n const metricOptions = [\n { value: 'total_time', label: 'Total time' },\n { value: 'p50', label: 'Average response time' },\n { value: 'p95', label: 'Slow response time' },\n { value: 'p99', label: 'Awful response time' }\n ];\n\n let endpoints = $state<EndpointStats[]>([]);\n let loading = $state(true);\n let error = $state('');\n\n // Chart state\n let chartEndpoints = $state<string[]>([]);\n let chartSeries = $state<ChartDataPoint[]>([]);\n let chartLoading = $state(true);\n let selectedMetric = $state('total_time');\n\n // Pagination State\n let page = $state(1);\n let pageSize = $state(50);\n let total = $state(0);\n let totalPages = $state(0);\n\n // Parse URL params including search\n function parseEndpointsUrlParams() {\n if (!browser) return { preset: '24h', from: null, to: null, search: '' };\n const params = new URLSearchParams(window.location.search);\n const timeParams = parseTimeRangeFromUrl(timezone, '24h');\n return {\n ...timeParams,\n search: params.get('search') || ''\n };\n }\n\n // Initialize from URL\n const initialUrlParams = parseEndpointsUrlParams();\n const initialRange = getResolvedTimeRange(initialUrlParams, timezone);\n\n // Search state\n let searchQuery = $state(initialUrlParams.search);\n\n // Date Range State\n let selectedPreset = $state<string | null>(initialUrlParams.preset);\n let fromDate = $state<CalendarDate>(dateToCalendarDate(initialRange.from, timezone));\n let toDate = $state<CalendarDate>(dateToCalendarDate(initialRange.to, timezone));\n let fromTime = $state(dateToTimeString(initialRange.from, timezone));\n let toTime = $state(dateToTimeString(initialRange.to, timezone));\n\n // Update URL with current time range and search\n function updateTimeRangeUrl(pushToHistory = true) {\n const params: Record<string, string | null | undefined> = {};\n if (selectedPreset) {\n params.preset = selectedPreset;\n } else {\n params.from = getFromDateTimeUTC();\n params.to = getToDateTimeUTC();\n }\n if (searchQuery.trim()) {\n params.search = searchQuery.trim();\n }\n updateUrl(params, { pushToHistory });\n }\n\n // Handle browser back/forward navigation\n function handlePopState() {\n const urlParams = parseEndpointsUrlParams();\n const range = getResolvedTimeRange(urlParams, timezone);\n\n selectedPreset = urlParams.preset;\n fromDate = dateToCalendarDate(range.from, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n toTime = dateToTimeString(range.to, timezone);\n searchQuery = urlParams.search;\n\n page = 1;\n loadData(false);\n }\n\n // Sorting - persisted to localStorage\n const SORT_STORAGE_KEY = 'endpoints';\n const initialSort = getSortState(SORT_STORAGE_KEY, { field: 'impact', direction: 'desc' });\n let orderBy = $state<SortField>(initialSort.field as SortField);\n let sortDirection = $state<SortDirection>(initialSort.direction);\n\n // Page size options\n const pageSizeOptions = [\n { value: \"10\", label: \"10\" },\n { value: \"20\", label: \"20\" },\n { value: \"50\", label: \"50\" },\n { value: \"100\", label: \"100\" }\n ];\n\n const pageSizeLabel = $derived(pageSizeOptions.find(o => o.value === pageSize.toString())?.label ?? pageSize.toString());\n\n // Combine date and time into UTC ISO datetime string\n function getFromDateTimeUTC(): string {\n const [hour, minute] = (fromTime || '00:00').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: fromDate.year, month: fromDate.month, day: fromDate.day, hour, minute }, timezone);\n return toUTCISO(dt);\n }\n\n function getToDateTimeUTC(): string {\n const [hour, minute] = (toTime || '23:59').split(':').map(Number);\n const dt = calendarDateTimeToLuxon({ year: toDate.year, month: toDate.month, day: toDate.day, hour, minute }, timezone).endOf('minute');\n return toUTCISO(dt);\n }\n\n function handleTimeRangeChange(from: { date: CalendarDate; time: string }, to: { date: CalendarDate; time: string }, preset: string | null) {\n fromDate = from.date;\n fromTime = from.time;\n toDate = to.date;\n toTime = to.time;\n selectedPreset = preset;\n page = 1;\n loadData(false);\n }\n\n // Format count with k/m suffixes\n function formatCount(count: number): string {\n if (count >= 1_000_000) {\n return `${(count / 1_000_000).toFixed(1)}m`;\n } else if (count >= 1_000) {\n return `${(count / 1_000).toFixed(1)}k`;\n }\n return count.toLocaleString();\n }\n\n // Calculate interval based on time range\n function calculateInterval(from: Date, to: Date): number {\n const diffMs = to.getTime() - from.getTime();\n const diffHours = diffMs / (1000 * 60 * 60);\n\n if (diffHours <= 1) return 1; // 1 minute\n if (diffHours <= 6) return 5; // 5 minutes\n if (diffHours <= 24 * 7) return 60; // 1 hour\n return 240; // 4 hours\n }\n\n async function loadChartData() {\n chartLoading = true;\n\n try {\n const fromStr = getFromDateTimeUTC();\n const toStr = getToDateTimeUTC();\n const interval = calculateInterval(new Date(fromStr), new Date(toStr));\n\n const response = await api.post('/endpoints/chart', {\n fromDate: fromStr,\n toDate: toStr,\n metricType: selectedMetric,\n intervalMinutes: interval\n }, { projectId: projectsState.currentProjectId ?? undefined }) as ChartResponse;\n\n chartEndpoints = response.endpoints || [];\n chartSeries = (response.series || []).map((s: { timestamp: string; endpoint: string; value: number }) => ({\n timestamp: new Date(s.timestamp),\n endpoint: s.endpoint,\n value: s.value\n }));\n } catch (e: any) {\n console.error('Failed to load chart data:', e);\n chartEndpoints = [];\n chartSeries = [];\n } finally {\n chartLoading = false;\n }\n }\n\n async function loadData(pushToHistory = true) {\n loading = true;\n error = '';\n\n if (selectedPreset) {\n const range = getTimeRangeFromPreset(selectedPreset, timezone);\n fromDate = dateToCalendarDate(range.from, timezone);\n toDate = dateToCalendarDate(range.to, timezone);\n fromTime = dateToTimeString(range.from, timezone);\n toTime = dateToTimeString(range.to, timezone);\n }\n\n // Update URL\n updateTimeRangeUrl(pushToHistory);\n\n try {\n const requestBody = {\n fromDate: getFromDateTimeUTC(),\n toDate: getToDateTimeUTC(),\n orderBy: orderBy,\n sortDirection: sortDirection,\n pagination: {\n page: page,\n pageSize: pageSize\n },\n search: searchQuery.trim()\n };\n\n const response = await api.post('/endpoints/grouped', requestBody, { projectId: projectsState.currentProjectId ?? undefined });\n\n endpoints = response.data || [];\n total = response.pagination.total;\n totalPages = response.pagination.totalPages;\n } catch (e: any) {\n console.error(e);\n error = e.message || 'Failed to load data';\n } finally {\n loading = false;\n }\n\n // Also load chart data\n loadChartData();\n }\n\n function handlePageChange(newPage: number) {\n if (newPage >= 1 && newPage <= totalPages) {\n page = newPage;\n loadData(false); // Don't push to history for pagination\n }\n }\n\n function handlePageSizeChange(newPageSize: number) {\n pageSize = newPageSize;\n page = 1;\n loadData(false); // Don't push to history for pagination\n }\n\n function handleSort(field: SortField) {\n const newSort = handleSortClick(field, orderBy, sortDirection);\n orderBy = newSort.field as SortField;\n sortDirection = newSort.direction;\n setSortState(SORT_STORAGE_KEY, newSort);\n page = 1;\n loadData(false);\n }\n\n function handleMetricChange(value: string) {\n selectedMetric = value;\n loadChartData();\n }\n\n function handleSearch() {\n page = 1;\n loadData(true);\n }\n\n function handleChartRangeSelect(from: Date, to: Date) {\n selectedPreset = null;\n fromDate = new CalendarDate(from.getFullYear(), from.getMonth() + 1, from.getDate());\n fromTime = `${String(from.getHours()).padStart(2, '0')}:${String(from.getMinutes()).padStart(2, '0')}`;\n toDate = new CalendarDate(to.getFullYear(), to.getMonth() + 1, to.getDate());\n toTime = `${String(to.getHours()).padStart(2, '0')}:${String(to.getMinutes()).padStart(2, '0')}`;\n page = 1;\n loadData(true);\n }\n\n const selectedMetricLabel = $derived(metricOptions.find(o => o.value === selectedMetric)?.label ?? 'Total time');\n\n // Format total time (input is milliseconds, not nanoseconds)\n function formatTotalTime(ms: number): string {\n if (ms >= 3600000) { // >= 1 hour\n return `${(ms / 3600000).toFixed(1)}h`;\n } else if (ms >= 60000) { // >= 1 minute\n return `${(ms / 60000).toFixed(1)}m`;\n } else if (ms >= 1000) { // >= 1 second\n return `${(ms / 1000).toFixed(1)}s`;\n } else if (ms < 1) {\n return `${(ms * 1000).toFixed(0)}µs`;\n }\n return `${Math.round(ms)}ms`;\n }\n\n // Check if we should use bar chart (for percentile metrics)\n const useBarChart = $derived(selectedMetric !== 'total_time');\n\n // Get top 8 endpoints for bar chart based on selected metric\n // Sort by the selected metric to show the worst (slowest) endpoints first\n const barChartData = $derived.by(() => {\n if (!useBarChart || endpoints.length === 0) return [];\n\n const metricKey = selectedMetric === 'p50' ? 'p50Duration'\n : selectedMetric === 'p95' ? 'p95Duration'\n : 'p99Duration';\n\n return [...endpoints]\n .sort((a, b) => b[metricKey] - a[metricKey])\n .slice(0, 8)\n .map(ep => ({\n endpoint: ep.endpoint,\n value: ep[metricKey]\n }));\n });\n\n\n onMount(() => {\n // Add popstate listener for back/forward navigation\n window.addEventListener('popstate', handlePopState);\n\n // Initial load with replaceState (don't push to history)\n loadData(false);\n });\n\n onDestroy(() => {\n if (typeof window !== 'undefined') {\n window.removeEventListener('popstate', handlePopState);\n }\n });\n</script>\n\n<div class=\"space-y-4\">\n <!-- Header with Title and Time Range Filter -->\n <div class=\"flex flex-col gap-4 sm:flex-row sm:justify-between\">\n\n <PageHeader title=\"Endpoints\" />\n\n <div class=\"flex flex-col\">\n <TimeRangePicker\n bind:fromDate\n bind:toDate\n bind:fromTime\n bind:toTime\n bind:preset={selectedPreset}\n onApply={handleTimeRangeChange}\n />\n </div>\n </div>\n\n <!-- Search -->\n <SearchBar\n placeholder=\"Search endpoints...\"\n bind:value={searchQuery}\n onSearch={handleSearch}\n disabled={loading}\n />\n\n <!-- Performance Chart -->\n <Card.Root class=\"pt-2\">\n <Card.Header class=\"flex flex-row items-center justify-between space-y-0 border-b [.border-b]:pb-2 pl-3\">\n <Card.Title class=\"text-base font-medium flex items-center gap-2\">\n <ChartLine class=\"h-3.5 w-3.5 text-muted-foreground\" />\n <DropdownMenu.Root>\n <DropdownMenu.Trigger class=\"flex items-center text-sm gap-0.5 font-[400] text-muted-foreground\">\n {selectedMetricLabel}\n <ChevronDown class=\"h-3 w-3 text-muted-foreground\" />\n </DropdownMenu.Trigger>\n <DropdownMenu.Content align=\"start\" class=\"w-[200px]\">\n {#each metricOptions as option}\n <DropdownMenu.Item\n onclick={() => handleMetricChange(option.value)}\n class=\"flex items-center justify-between cursor-pointer\"\n >\n <span>{option.label}</span>\n {#if option.value === selectedMetric}\n <Check class=\"h-4 w-4\" />\n {/if}\n </DropdownMenu.Item>\n {/each}\n </DropdownMenu.Content>\n </DropdownMenu.Root>\n </Card.Title>\n </Card.Header>\n <Card.Content>\n {#if chartLoading && !useBarChart}\n <div class=\"flex justify-center items-center h-[220px]\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else if useBarChart}\n {#if loading}\n <div class=\"flex justify-center items-center h-[220px]\">\n <LoadingCircle size=\"xlg\" />\n </div>\n {:else}\n <D3HorizontalBarChart\n data={barChartData}\n formatValue={formatDuration}\n />\n {/if}\n {:else}\n <D3StackedAreaChart\n endpoints={chartEndpoints}\n series={chartSeries}\n formatValue={formatTotalTime}\n onRangeSelect={handleChartRangeSelect}\n />\n {/if}\n </Card.Content>\n </Card.Root>\n\n <!-- Endpoints Table -->\n <div class=\"rounded-md border overflow-hidden\">\n <Table.Root>\n {#if loading}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={6} class=\"h-48\">\n <div class=\"flex justify-center items-center h-full\">\n <LoadingCircle size=\"xlg\" />\n </div>\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if error}\n <Table.Body>\n <Table.Row>\n <Table.Cell colspan={6} class=\"h-24 text-center text-red-500\">\n {error}\n </Table.Cell>\n </Table.Row>\n </Table.Body>\n {:else if endpoints.length === 0}\n <Table.Body>\n <TableEmptyState colspan={6} message=\"No endpoint data available for your search parameters\" />\n </Table.Body>\n {:else}\n <Table.Header>\n <Table.Row>\n <TracewayTableHeader\n label=\"Endpoint\"\n tooltip=\"The API route or page being accessed\"\n class=\"max-w-[50%]\"\n />\n <TracewayTableHeader\n label=\"Calls\"\n tooltip=\"Total number of requests\"\n sortField=\"count\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Typical\"\n tooltip=\"Median response time (P50)\"\n sortField=\"p50_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Slow\"\n tooltip=\"95th percentile - slowest 5% of requests\"\n sortField=\"p95_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Awful\"\n tooltip=\"99th percentile - slowest 1% of requests\"\n sortField=\"p99_duration\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n class=\"w-[100px]\"\n />\n <TracewayTableHeader\n label=\"Impact\"\n tooltip=\"Impact score based on Apdex, error rates, P99 latency, and request volume\"\n sortField=\"impact\"\n currentSortField={orderBy}\n {sortDirection}\n onSort={(field) => handleSort(field as SortField)}\n align=\"right\"\n class=\"w-[120px]\"\n />\n </Table.Row>\n </Table.Header>\n <Table.Body>\n {#each endpoints as endpoint}\n <Table.Row\n class=\"cursor-pointer hover:bg-muted/50\"\n onclick={createRowClickHandler(resolve(`/endpoints/${encodeURIComponent(endpoint.endpoint)}`), 'preset', 'from', 'to')}\n >\n <Table.Cell class=\"font-mono text-sm max-w-[50%] break-all whitespace-normal\">\n {endpoint.endpoint}\n </Table.Cell>\n <Table.Cell class=\"tabular-nums\">\n {formatCount(endpoint.count)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(endpoint.p50Duration)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(endpoint.p95Duration)}\n </Table.Cell>\n <Table.Cell class=\"font-mono text-sm tabular-nums\">\n {formatDuration(endpoint.p99Duration)}\n </Table.Cell>\n <Table.Cell class=\"text-right\">\n <ImpactBadge score={endpoint.impact} reason={endpoint.impactReason} />\n </Table.Cell>\n </Table.Row>\n {/each}\n </Table.Body>\n {/if}\n </Table.Root>\n </div>\n\n <!-- Pagination Footer -->\n <PaginationFooter\n currentPage={page}\n {totalPages}\n {pageSize}\n totalItems={total}\n onPageChange={handlePageChange}\n onPageSizeChange={handlePageSizeChange}\n {loading}\n itemLabel=\"endpoint\"\n />\n</div>\n"],"names":["props","$.rest_props","$$props","iconNode","Icon","$.noop","none$1","series","order","n","i","j","s0","s1","m","none","o","stackValue","d","key","stackSeries","stack","keys","constant","orderNone","offset","offsetNone","value","data","sz","oz","array","_","stackOrderReverse","load","authState","redirect","endpoints","$.prop","height","padding","unit","tz","getTimezone","chartColors","containerRef","$.state","width","isHovering","mouseX","isDragging","dragStartX","dragEndX","$.user_effect","observer","entries","entry","$.set","$.get","chartWidth","$.derived","chartHeight","stackedData","byTimestamp","point","ts","ep","a","b","xMin","min","xMax","max","getNumericValue","val","yMax","maxSum","sum","yDomainMax","xScale","scaleUtc","yScale","scaleLinear","yTicks","formatYLabel","stackedAreas","stackedSeries","areaGen","area","s","hasData","isInChartArea","getTimeAtPosition","x","chartX","percentage","timeDiff","selectionLeft","selectionRight","selectionWidth","selectionStartTime","selectionEndTime","getDataAtTime","time","targetMs","closest","minDiff","diff","calculatedTime","calculatedData","formatDisplayValue","handleMouseMove","rect","handleMouseEnter","handleMouseLeave","handleMouseDown","handleMouseUp","startTime","endTime","handleKeydown","formatTime","date","formatDateTime","getEndpointColor","endpoint","idx","truncateEndpoint","maxLen","div","root","div_1","$.child","node","svg","root_1","g","$.each","node_1","tick","line","root_2","$.set_attribute","$0","$1","$.append","$$anchor","node_2","text","root_3","text_1","$.reset","line_1","$.sibling","line_2","node_3","$$index_2","$$array","path","root_4","div_2","root_5","$$render","consequent","alternate","div_3","root_6","div_4","div_5","consequent_1","clampedX","div_6","$.first_child","fragment","node_6","div_7","root_8","div_8","$.index","div_9","root_10","span","span_1","span_2","consequent_2","$.template_effect","$.set_style","consequent_3","div_10","div_11","consequent_4","$$value","node_8","div_12","root_11","div_13","root_12","span_3","span_4","consequent_5","$.event","timezone","metricOptions","$.proxy","loading","error","chartEndpoints","chartSeries","chartLoading","selectedMetric","page","pageSize","total","totalPages","parseEndpointsUrlParams","params","parseTimeRangeFromUrl","initialUrlParams","initialRange","getResolvedTimeRange","searchQuery","selectedPreset","fromDate","dateToCalendarDate","toDate","fromTime","dateToTimeString","toTime","updateTimeRangeUrl","pushToHistory","getFromDateTimeUTC","getToDateTimeUTC","updateUrl","handlePopState","urlParams","range","loadData","SORT_STORAGE_KEY","initialSort","getSortState","orderBy","sortDirection","hour","minute","dt","calendarDateTimeToLuxon","toUTCISO","handleTimeRangeChange","from","to","preset","formatCount","count","calculateInterval","diffHours","loadChartData","fromStr","toStr","interval","response","api","projectsState","e","getTimeRangeFromPreset","requestBody","handlePageChange","newPage","handlePageSizeChange","newPageSize","handleSort","field","newSort","handleSortClick","setSortState","handleMetricChange","handleSearch","handleChartRangeSelect","CalendarDate","selectedMetricLabel","formatTotalTime","ms","useBarChart","barChartData","metricKey","onMount","onDestroy","PageHeader","TimeRangePicker","SearchBar","Card_Root","Card_Header","Card_Title","ChartLine","DropdownMenu_Root","DropdownMenu_Trigger","ChevronDown","node_9","DropdownMenu_Content","node_11","option","DropdownMenu_Item","fragment_7","Check","$.set_text","Card_Content","LoadingCircle","node_16","root_14","node_19","D3HorizontalBarChart","formatDuration","D3StackedAreaChart","alternate_1","alternate_2","Table_Root","Table_Body","Table_Row","Table_Cell","root_21","node_25","Table_Body_1","Table_Row_1","Table_Cell_1","Table_Body_2","TableEmptyState","Table_Header","Table_Row_2","TracewayTableHeader","node_34","node_35","node_36","node_37","node_38","node_39","Table_Body_3","node_41","createRowClickHandler","resolve","Table_Row_3","Table_Cell_2","text_3","Table_Cell_3","Table_Cell_4","Table_Cell_5","Table_Cell_6","Table_Cell_7","ImpactBadge","consequent_6","alternate_3","alternate_4","alternate_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J","x_google_ignoreList":[0,1,2,3,4]}
\ No newline at end of file
diff --git a/backend/static/frontend/_app/version.json b/backend/static/frontend/_app/version.json
index 2f26ef6e..5c543a5c 100644
--- a/backend/static/frontend/_app/version.json
+++ b/backend/static/frontend/_app/version.json
@@ -1 +1 @@
-{"version":"1778812241543"}
\ No newline at end of file
+{"version":"1779171087681"}
\ No newline at end of file
diff --git a/backend/static/frontend/ai-traces.html b/backend/static/frontend/ai-traces.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/ai-traces.html
+++ b/backend/static/frontend/ai-traces.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/auth/callback.html b/backend/static/frontend/auth/callback.html
index 50ad583a..590c18c4 100644
--- a/backend/static/frontend/auth/callback.html
+++ b/backend/static/frontend/auth/callback.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="../_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="../_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="../_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="../_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="../_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="../_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="../_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="../_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="../_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="../_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="../_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL("..", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("../_app/immutable/entry/start.DJzipVz-.js"),
- import("../_app/immutable/entry/app.BGmAdRKN.js")
+ import("../_app/immutable/entry/start.VR9kvLf_.js"),
+ import("../_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/connection.html b/backend/static/frontend/connection.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/connection.html
+++ b/backend/static/frontend/connection.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/endpoints.html b/backend/static/frontend/endpoints.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/endpoints.html
+++ b/backend/static/frontend/endpoints.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/finish-setup.html b/backend/static/frontend/finish-setup.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/finish-setup.html
+++ b/backend/static/frontend/finish-setup.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/forgot-password.html b/backend/static/frontend/forgot-password.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/forgot-password.html
+++ b/backend/static/frontend/forgot-password.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/index.html b/backend/static/frontend/index.html
index ef591764..570d3772 100644
--- a/backend/static/frontend/index.html
+++ b/backend/static/frontend/index.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="/_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="/_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="/_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="/_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="/_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="/_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="/_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="/_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="/_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="/_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="/_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: ""
};
const element = document.currentScript.parentElement;
Promise.all([
- import("/_app/immutable/entry/start.DJzipVz-.js"),
- import("/_app/immutable/entry/app.BGmAdRKN.js")
+ import("/_app/immutable/entry/start.VR9kvLf_.js"),
+ import("/_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/issues.html b/backend/static/frontend/issues.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/issues.html
+++ b/backend/static/frontend/issues.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/laravel.png b/backend/static/frontend/laravel.png
new file mode 100644
index 00000000..994dd33c
Binary files /dev/null and b/backend/static/frontend/laravel.png differ
diff --git a/backend/static/frontend/login.html b/backend/static/frontend/login.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/login.html
+++ b/backend/static/frontend/login.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/logs.html b/backend/static/frontend/logs.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/logs.html
+++ b/backend/static/frontend/logs.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/metrics.html b/backend/static/frontend/metrics.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/metrics.html
+++ b/backend/static/frontend/metrics.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/notifications.html b/backend/static/frontend/notifications.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/notifications.html
+++ b/backend/static/frontend/notifications.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/register.html b/backend/static/frontend/register.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/register.html
+++ b/backend/static/frontend/register.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/reset-password.html b/backend/static/frontend/reset-password.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/reset-password.html
+++ b/backend/static/frontend/reset-password.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/sessions.html b/backend/static/frontend/sessions.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/sessions.html
+++ b/backend/static/frontend/sessions.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/backend/static/frontend/tasks.html b/backend/static/frontend/tasks.html
index 34af828d..0d4812b1 100644
--- a/backend/static/frontend/tasks.html
+++ b/backend/static/frontend/tasks.html
@@ -15,11 +15,11 @@
} catch (e) {}
</script>
- <link rel="modulepreload" href="./_app/immutable/entry/start.DJzipVz-.js">
- <link rel="modulepreload" href="./_app/immutable/chunks/xR3pK9Ey.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/start.VR9kvLf_.js">
+ <link rel="modulepreload" href="./_app/immutable/chunks/BIF4_51j.js">
<link rel="modulepreload" href="./_app/immutable/chunks/Dwk6gGSK.js">
<link rel="modulepreload" href="./_app/immutable/chunks/B2WdN-7r.js">
- <link rel="modulepreload" href="./_app/immutable/entry/app.BGmAdRKN.js">
+ <link rel="modulepreload" href="./_app/immutable/entry/app.BLwhCE1c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/PPVm8Dsz.js">
<link rel="modulepreload" href="./_app/immutable/chunks/DMODTt3n.js">
<link rel="modulepreload" href="./_app/immutable/chunks/BAcG0-U_.js">
@@ -28,15 +28,15 @@
<div style="display: contents">
<script>
{
- __sveltekit_3aus1e = {
+ __sveltekit_mf5umy = {
base: new URL(".", location).pathname.slice(0, -1)
};
const element = document.currentScript.parentElement;
Promise.all([
- import("./_app/immutable/entry/start.DJzipVz-.js"),
- import("./_app/immutable/entry/app.BGmAdRKN.js")
+ import("./_app/immutable/entry/start.VR9kvLf_.js"),
+ import("./_app/immutable/entry/app.BLwhCE1c.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
diff --git a/website/content/blog/v1.7.22.mdx b/website/content/blog/v1.7.22.mdx
new file mode 100644
index 00000000..e52e60d6
--- /dev/null
+++ b/website/content/blog/v1.7.22.mdx
@@ -0,0 +1,11 @@
+---
+title: "Backend v1.7.22"
+date: "2026-05-19"
+version: "1.7.22"
+---
+
+- generic OIDC SSO and password-login disable flag
+- Spring Boot OTel exception handling
+- add Pushover notification channel
+- add project rename, recategorization, and deletion
+- add cryptographically signed Docker images with Cosign