diff --git a/assets/package-lock.json b/assets/package-lock.json
index 312724c..a82686a 100644
--- a/assets/package-lock.json
+++ b/assets/package-lock.json
@@ -2146,10 +2146,9 @@
}
},
"node_modules/micromatch": {
- "version": "4.0.7",
- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz",
- "integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==",
- "license": "MIT",
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
"peer": true,
"dependencies": {
"braces": "^3.0.3",
diff --git a/assets/react/components/DeviceChart.tsx b/assets/react/components/DeviceChart.tsx
index fe760b4..b3f2030 100644
--- a/assets/react/components/DeviceChart.tsx
+++ b/assets/react/components/DeviceChart.tsx
@@ -79,7 +79,7 @@ export function DeviceChart({
}
/>
diff --git a/assets/react/components/PopularChart.tsx b/assets/react/components/PopularChart.tsx
index d00c38c..5a1c178 100644
--- a/assets/react/components/PopularChart.tsx
+++ b/assets/react/components/PopularChart.tsx
@@ -88,7 +88,7 @@ export function PopularChart({
+
}
/>
{
return new Date(value).toLocaleDateString("en-US", {
month: "short",
diff --git a/assets/react/components/ResChart.tsx b/assets/react/components/ResChart.tsx
index b9b853e..7ca1e10 100644
--- a/assets/react/components/ResChart.tsx
+++ b/assets/react/components/ResChart.tsx
@@ -89,7 +89,7 @@ export function ResChart({
+
}
/>
}
/>
diff --git a/assets/react/components/VisitsChart.tsx b/assets/react/components/VisitsChart.tsx
index df92bcc..4a9705e 100644
--- a/assets/react/components/VisitsChart.tsx
+++ b/assets/react/components/VisitsChart.tsx
@@ -167,7 +167,7 @@ export function VisitsChart({
...(interval === "hour" && { hour: "numeric" }),
});
}}
- indicator="dashed"
+ indicator="dot"
/>
}
/>
diff --git a/config/dev.exs b/config/dev.exs
index dbf0f53..06b854b 100644
--- a/config/dev.exs
+++ b/config/dev.exs
@@ -3,7 +3,7 @@ import Config
config :phoenix_analytics, duckdb_path: System.get_env("DUCKDB_PATH") || "analytics.duckdb"
config :esbuild, :version, "0.17.11"
-config :tailwind, :version, "3.2.7"
+config :tailwind, :version, "3.4.13"
# Configure esbuild (the version is required)
config :esbuild,
diff --git a/priv/static/assets/app.css b/priv/static/assets/app.css
index e087af5..ca81357 100644
--- a/priv/static/assets/app.css
+++ b/priv/static/assets/app.css
@@ -1 +1 @@
-/*! tailwindcss v3.2.7 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;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;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:221.2 83.2% 53.3%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 44%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 72% 51%;--destructive-foreground:210 40% 98%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:221.2 83.2% 53.3%;--radius:0.5rem;--chart-1:221.2 83.2% 53.3%;--chart-2:212 95% 68%;--chart-3:216 92% 60%;--chart-4:210 98% 78%;--chart-5:212 97% 87%}.dark{--background:240 10% 3.9%;--foreground:0 0% 98%;--card:240 10% 3.9%;--card-foreground:0 0% 98%;--popover:240 10% 3.9%;--popover-foreground:0 0% 98%;--primary:221.2 83.2% 53.3%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:240 3.7% 15.9%;--muted-foreground:240 5% 64.9%;--accent:240 3.7% 15.9%;--accent-foreground:0 0% 98%;--destructive:0 72% 51%;--destructive-foreground:210 40% 98%;--border:240 3.7% 15.9%;--input:240 3.7% 15.9%;--ring:221.2 83.2% 53.3%;--chart-1:221.2 83.2% 53.3%;--chart-2:212 95% 68%;--chart-3:216 92% 60%;--chart-4:210 98% 78%;--chart-5:212 97% 87%}*{border-color:hsl(var(--border))}body{font-feature-settings:"rlig" 1,"calt" 1;background-color:hsl(var(--background));color:hsl(var(--foreground))}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{margin-left:auto;margin-right:auto;padding-left:2rem;padding-right:2rem;width:100%}@media (min-width:1400px){.container{max-width:1400px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.invisible{visibility:hidden}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.-inset-y-px{bottom:-1px;top:-1px}.-left-4{left:-1rem}.-right-4{right:-1rem}.left-0{left:0}.left-1{left:.25rem}.left-2{left:.5rem}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-5{right:1.25rem}.top-1{top:.25rem}.top-2{top:.5rem}.top-6{top:1.5rem}.z-50{z-index:50}.-m-3{margin:-.75rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-my-4{margin-bottom:-1rem;margin-top:-1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-bottom:0;margin-top:0}.my-0\.5{margin-bottom:.125rem;margin-top:.125rem}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-20{margin-top:5rem}.mb-20,.my-20{margin-bottom:5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-10{margin-top:2.5rem}.mt-11{margin-top:2.75rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.aspect-video{aspect-ratio:16/9}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[250px\]{height:250px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-px{height:1px}.max-h-96{max-height:24rem}.max-h-\[250px\]{max-height:250px}.min-h-\[6rem\]{min-height:6rem}.min-h-full{min-height:100%}.w-0{width:0}.w-1{width:.25rem}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[150px\]{width:150px}.w-\[160px\]{width:160px}.w-\[170px\]{width:170px}.w-\[175px\]{width:175px}.w-\[200px\]{width:200px}.w-\[276px\]{width:276px}.w-\[40rem\]{width:40rem}.w-\[72px\]{width:72px}.w-auto{width:auto}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-3xl{max-width:48rem}.max-w-screen-lg{max-width:1024px}.max-w-screen-sm{max-width:640px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y:1rem}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.scroll-mt-20{scroll-margin-top:5rem}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-zinc-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(244 244 245/var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[2px\]{border-radius:2px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:--color-border}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-rose-400{--tw-border-opacity:1;border-color:rgb(251 113 133/var(--tw-border-opacity))}.border-zinc-100{--tw-border-opacity:1;border-color:rgb(244 244 245/var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity))}.border-zinc-300{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity))}.bg-\[--color-bg\]{background-color:--color-bg}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-50{--tw-bg-opacity:1;background-color:rgb(236 253 245/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-rose-50{--tw-bg-opacity:1;background-color:rgb(255 241 242/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-zinc-50\/90{background-color:#fafafae6}.bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity))}.fill-current{fill:currentColor}.fill-cyan-900{fill:#164e63}.fill-foreground{fill:hsl(var(--foreground))}.fill-muted-foreground{fill:hsl(var(--muted-foreground))}.fill-rose-900{fill:#881337}.p-0{padding:0}.p-1{padding:.25rem}.p-14{padding:3.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-20{padding-bottom:5rem;padding-top:5rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.pb-0{padding-bottom:0}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-800{--tw-text-opacity:1;color:rgb(6 95 70/var(--tw-text-opacity))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-rose-900{--tw-text-opacity:1;color:rgb(136 19 55/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity))}.text-zinc-600{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity))}.text-zinc-700{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity))}.text-zinc-800{--tw-text-opacity:1;color:rgb(39 39 42/var(--tw-text-opacity))}.text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.shadow-zinc-700\/10{--tw-shadow-color:#3f3f461a;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid #0000;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-emerald-500{--tw-ring-opacity:1;--tw-ring-color:rgb(16 185 129/var(--tw-ring-opacity))}.ring-rose-500{--tw-ring-opacity:1;--tw-ring-color:rgb(244 63 94/var(--tw-ring-opacity))}.ring-zinc-700\/10{--tw-ring-color:#3f3f461a}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in{animation-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\[scrollbar-gutter\:stable\]{scrollbar-gutter:stable}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-zinc-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.hover\:bg-zinc-700:hover{--tw-bg-opacity:1;background-color:rgb(63 63 70/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:text-zinc-700:hover{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-40:hover{opacity:.4}.focus\:border-rose-400:focus{--tw-border-opacity:1;border-color:rgb(251 113 133/var(--tw-border-opacity))}.focus\:border-zinc-400:focus{--tw-border-opacity:1;border-color:rgb(161 161 170/var(--tw-border-opacity))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid #0000;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.active\:text-white\/80:active{color:#fffc}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.group:hover .group-hover\:opacity-70{opacity:.7}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:bg-accent\/50[aria-selected=true]{background-color:hsl(var(--accent)/.5)}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.aria-selected\:opacity-30[aria-selected=true]{opacity:.3}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial;animation-duration:.15s;animation-name:enter}.data-\[state\=closed\]\:animate-out[data-state=closed]{--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial;animation-duration:.15s;animation-name:exit}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.dark .dark\:-rotate-90{--tw-rotate:-90deg}.dark .dark\:-rotate-90,.dark .dark\:rotate-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark .dark\:rotate-0{--tw-rotate:0deg}.dark .dark\:scale-0{--tw-scale-x:0;--tw-scale-y:0}.dark .dark\:scale-0,.dark .dark\:scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark .dark\:scale-100{--tw-scale-x:1;--tw-scale-y:1}@media (min-width:640px){.sm\:ml-auto{margin-left:auto}.sm\:block{display:block}.sm\:w-96{width:24rem}.sm\:w-full{width:100%}.sm\:translate-y-0{--tw-translate-y:0px}.sm\:scale-100,.sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}.sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:flex-row{flex-direction:row}.sm\:gap-8{gap:2rem}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.sm\:overflow-visible{overflow:visible}.sm\:rounded-l-xl{border-bottom-left-radius:.75rem;border-top-left-radius:.75rem}.sm\:rounded-r-xl{border-bottom-right-radius:.75rem;border-top-right-radius:.75rem}.sm\:p-6{padding:1.5rem}.sm\:px-0{padding-left:0;padding-right:0}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:pt-6{padding-top:1.5rem}.sm\:text-left{text-align:left}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-6{line-height:1.5rem}}@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:gap-6{gap:1.5rem}}@media (min-width:1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-2{padding-left:.5rem;padding-right:.5rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-8{padding-bottom:2rem;padding-top:2rem}}@media (min-width:1280px){.xl\:gap-10{gap:2.5rem}}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-bottom-left-radius:calc(var(--radius) - 2px);border-top-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-bottom-right-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent)/.5)}.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end){border-bottom-right-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border)/.5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:#0000}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid #0000;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:#0000}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid #0000;outline-offset:2px}
\ No newline at end of file
+*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root{--background:0 0% 100%;--foreground:222.2 84% 4.9%;--card:0 0% 100%;--card-foreground:222.2 84% 4.9%;--popover:0 0% 100%;--popover-foreground:222.2 84% 4.9%;--primary:221.2 83.2% 53.3%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:210 40% 96.1%;--muted-foreground:215.4 16.3% 44%;--accent:210 40% 96.1%;--accent-foreground:222.2 47.4% 11.2%;--destructive:0 72% 51%;--destructive-foreground:210 40% 98%;--border:214.3 31.8% 91.4%;--input:214.3 31.8% 91.4%;--ring:221.2 83.2% 53.3%;--radius:0.5rem;--chart-1:221.2 83.2% 53.3%;--chart-2:212 95% 68%;--chart-3:216 92% 60%;--chart-4:210 98% 78%;--chart-5:212 97% 87%}.dark{--background:240 10% 3.9%;--foreground:0 0% 98%;--card:240 10% 3.9%;--card-foreground:0 0% 98%;--popover:240 10% 3.9%;--popover-foreground:0 0% 98%;--primary:221.2 83.2% 53.3%;--primary-foreground:210 40% 98%;--secondary:210 40% 96.1%;--secondary-foreground:222.2 47.4% 11.2%;--muted:240 3.7% 15.9%;--muted-foreground:240 5% 64.9%;--accent:240 3.7% 15.9%;--accent-foreground:0 0% 98%;--destructive:0 72% 51%;--destructive-foreground:210 40% 98%;--border:240 3.7% 15.9%;--input:240 3.7% 15.9%;--ring:221.2 83.2% 53.3%;--chart-1:221.2 83.2% 53.3%;--chart-2:212 95% 68%;--chart-3:216 92% 60%;--chart-4:210 98% 78%;--chart-5:212 97% 87%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}.container{margin-left:auto;margin-right:auto;padding-left:2rem;padding-right:2rem;width:100%}@media (min-width:1400px){.container{max-width:1400px}}.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-inset-y-px{bottom:-1px;top:-1px}.-left-4{left:-1rem}.-right-4{right:-1rem}.left-0{left:0}.left-1{left:.25rem}.left-2{left:.5rem}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-5{right:1.25rem}.top-1{top:.25rem}.top-2{top:.5rem}.top-6{top:1.5rem}.z-50{z-index:50}.-m-3{margin:-.75rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-my-4{margin-bottom:-1rem;margin-top:-1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-bottom:.125rem;margin-top:.125rem}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-20{margin-top:5rem}.mb-20,.my-20{margin-bottom:5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-10{margin-top:2.5rem}.mt-11{margin-top:2.75rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.aspect-video{aspect-ratio:16/9}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-9{height:2.25rem}.h-\[1\.2rem\]{height:1.2rem}.h-\[250px\]{height:250px}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-px{height:1px}.max-h-96{max-height:24rem}.max-h-\[250px\]{max-height:250px}.min-h-\[6rem\]{min-height:6rem}.min-h-full{min-height:100%}.w-0{width:0}.w-1{width:.25rem}.w-1\/4{width:25%}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[1\.2rem\]{width:1.2rem}.w-\[150px\]{width:150px}.w-\[160px\]{width:160px}.w-\[170px\]{width:170px}.w-\[175px\]{width:175px}.w-\[200px\]{width:200px}.w-\[276px\]{width:276px}.w-\[40rem\]{width:40rem}.w-\[72px\]{width:72px}.w-auto{width:auto}.w-full{width:100%}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-3xl{max-width:48rem}.max-w-screen-lg{max-width:1024px}.max-w-screen-sm{max-width:640px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.translate-y-0{--tw-translate-y:0px}.translate-y-0,.translate-y-4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y:1rem}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-90{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-0,.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.scroll-mt-20{scroll-margin-top:5rem}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.375rem*var(--tw-space-y-reverse));margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0;border-bottom-width:calc(1px*var(--tw-divide-y-reverse));border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))}.divide-zinc-100>:not([hidden])~:not([hidden]){--tw-divide-opacity:1;border-color:rgb(244 244 245/var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[2px\]{border-radius:2px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-border\/50{border-color:hsl(var(--border)/.5)}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-rose-400{--tw-border-opacity:1;border-color:rgb(251 113 133/var(--tw-border-opacity))}.border-zinc-100{--tw-border-opacity:1;border-color:rgb(244 244 245/var(--tw-border-opacity))}.border-zinc-200{--tw-border-opacity:1;border-color:rgb(228 228 231/var(--tw-border-opacity))}.border-zinc-300{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity))}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-background{background-color:hsl(var(--background))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-50{--tw-bg-opacity:1;background-color:rgb(236 253 245/var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-rose-50{--tw-bg-opacity:1;background-color:rgb(255 241 242/var(--tw-bg-opacity))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-zinc-50\/90{background-color:hsla(0,0%,98%,.9)}.bg-zinc-900{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity))}.fill-current{fill:currentColor}.fill-cyan-900{fill:#164e63}.fill-foreground{fill:hsl(var(--foreground))}.fill-muted-foreground{fill:hsl(var(--muted-foreground))}.fill-rose-900{fill:#881337}.p-0{padding:0}.p-1{padding:.25rem}.p-14{padding:3.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-20{padding-bottom:5rem;padding-top:5rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.pb-0{padding-bottom:0}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-6{padding-right:1.5rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.8rem\]{font-size:.8rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-800{--tw-text-opacity:1;color:rgb(6 95 70/var(--tw-text-opacity))}.text-foreground{color:hsl(var(--foreground))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-rose-600{--tw-text-opacity:1;color:rgb(225 29 72/var(--tw-text-opacity))}.text-rose-900{--tw-text-opacity:1;color:rgb(136 19 55/var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-zinc-500{--tw-text-opacity:1;color:rgb(113 113 122/var(--tw-text-opacity))}.text-zinc-600{--tw-text-opacity:1;color:rgb(82 82 91/var(--tw-text-opacity))}.text-zinc-700{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity))}.text-zinc-800{--tw-text-opacity:1;color:rgb(39 39 42/var(--tw-text-opacity))}.text-zinc-900{--tw-text-opacity:1;color:rgb(24 24 27/var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.shadow-zinc-700\/10{--tw-shadow-color:rgba(63,63,70,.1);--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-emerald-500{--tw-ring-opacity:1;--tw-ring-color:rgb(16 185 129/var(--tw-ring-opacity))}.ring-rose-500{--tw-ring-opacity:1;--tw-ring-color:rgb(244 63 94/var(--tw-ring-opacity))}.ring-zinc-700\/10{--tw-ring-color:rgba(63,63,70,.1)}.ring-offset-background{--tw-ring-offset-color:hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in{animation-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\[scrollbar-gutter\:stable\]{scrollbar-gutter:stable}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive)/.9)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary)/.9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary)/.8)}.hover\:bg-zinc-50:hover{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.hover\:bg-zinc-700:hover{--tw-bg-opacity:1;background-color:rgb(63 63 70/var(--tw-bg-opacity))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:text-zinc-700:hover{--tw-text-opacity:1;color:rgb(63 63 70/var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-40:hover{opacity:.4}.focus\:border-rose-400:focus{--tw-border-opacity:1;border-color:rgb(251 113 133/var(--tw-border-opacity))}.focus\:border-zinc-400:focus{--tw-border-opacity:1;border-color:rgb(161 161 170/var(--tw-border-opacity))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-0:focus,.focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-ring:focus{--tw-ring-color:hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.active\:text-white\/80:active{color:hsla(0,0%,100%,.8)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:bg-zinc-50{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity))}.group:hover .group-hover\:opacity-70{opacity:.7}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:bg-accent\/50[aria-selected=true]{background-color:hsl(var(--accent)/.5)}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.aria-selected\:opacity-30[aria-selected=true]{opacity:.3}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom],.data-\[side\=left\]\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.data-\[side\=right\]\:translate-x-1[data-side=right],.data-\[side\=top\]\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:animate-in[data-state=open]{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation-duration:.15s;animation-name:exit;--tw-exit-opacity:initial;--tw-exit-scale:initial;--tw-exit-rotate:initial;--tw-exit-translate-x:initial;--tw-exit-translate-y:initial}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:-0.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:0.5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:-0.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:0.5rem}.dark\:-rotate-90:is(.dark *){--tw-rotate:-90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:rotate-0:is(.dark *){--tw-rotate:0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-0:is(.dark *){--tw-scale-x:0;--tw-scale-y:0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.dark\:scale-100:is(.dark *){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width:640px){.sm\:ml-auto{margin-left:auto}.sm\:block{display:block}.sm\:w-96{width:24rem}.sm\:w-full{width:100%}.sm\:translate-y-0{--tw-translate-y:0px}.sm\:scale-100,.sm\:translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scale-100{--tw-scale-x:1;--tw-scale-y:1}.sm\:scale-95{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:flex-row{flex-direction:row}.sm\:gap-8{gap:2rem}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1rem*var(--tw-space-x-reverse))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px*var(--tw-space-y-reverse));margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))}.sm\:overflow-visible{overflow:visible}.sm\:rounded-l-xl{border-bottom-left-radius:.75rem;border-top-left-radius:.75rem}.sm\:rounded-r-xl{border-bottom-right-radius:.75rem;border-top-right-radius:.75rem}.sm\:p-6{padding:1.5rem}.sm\:px-0{padding-left:0;padding-right:0}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:pt-6{padding-top:1.5rem}.sm\:text-left{text-align:left}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\:leading-6{line-height:1.5rem}}@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:gap-6{gap:1.5rem}}@media (min-width:1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-2{padding-left:.5rem;padding-right:.5rem}.lg\:px-8{padding-left:2rem;padding-right:2rem}.lg\:py-8{padding-bottom:2rem;padding-top:2rem}}@media (min-width:1280px){.xl\:gap-10{gap:2.5rem}}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-bottom-left-radius:calc(var(--radius) - 2px);border-top-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-bottom-right-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent)/.5)}.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end){border-bottom-right-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.\[\&\>span\]\:line-clamp-1>span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border)/.5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}
\ No newline at end of file
diff --git a/priv/static/assets/app.js b/priv/static/assets/app.js
index 99d465c..9612a3e 100644
--- a/priv/static/assets/app.js
+++ b/priv/static/assets/app.js
@@ -126,7 +126,7 @@ ${r.map(([o,i])=>{var l;let s=((l=i.theme)==null?void 0:l[n])||i.color;return s?
`)}
}
`).join(`
-`)}}):null},ma=Cn,Rn=Pe.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:a=!1,hideIndicator:o=!1,label:i,labelFormatter:s,labelClassName:l,formatter:u,color:f,nameKey:c,labelKey:d},p)=>{let{config:h}=H$(),m=Pe.useMemo(()=>{var y;if(a||!(t!=null&&t.length))return null;let[g]=t,v=`${d||g.dataKey||g.name||"value"}`,w=QA(h,g,v),b=!d&&typeof i=="string"?((y=h[i])==null?void 0:y.label)||i:w==null?void 0:w.label;return s?Pe.createElement("div",{className:ve("font-medium",l)},s(b,t)):b?Pe.createElement("div",{className:ve("font-medium",l)},b):null},[i,s,t,a,l,h,d]);if(!e||!(t!=null&&t.length))return null;let x=t.length===1&&n!=="dot";return Pe.createElement("div",{ref:p,className:ve("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r)},x?null:m,Pe.createElement("div",{className:"grid gap-1.5"},t.map((g,v)=>{let w=`${c||g.name||g.dataKey||"value"}`,b=QA(h,g,w),y=f||g.payload.fill||g.color;return Pe.createElement("div",{key:g.dataKey,className:ve("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center")},u&&(g==null?void 0:g.value)!==void 0&&g.name?u(g.value,g.name,g,v,g.payload):Pe.createElement(Pe.Fragment,null,b!=null&&b.icon?Pe.createElement(b.icon,null):!o&&Pe.createElement("div",{className:ve("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":x&&n==="dashed"}),style:{"--color-bg":y,"--color-border":y}}),Pe.createElement("div",{className:ve("flex flex-1 justify-between leading-none",x?"items-end":"items-center")},Pe.createElement("div",{className:"grid gap-1.5"},x?m:null,Pe.createElement("span",{className:"text-muted-foreground"},(b==null?void 0:b.label)||g.name)),g.value&&Pe.createElement("span",{className:"font-mono font-medium tabular-nums text-foreground"},g.value.toLocaleString()))))})))});Rn.displayName="ChartTooltip";var kb=ao,Gm=Pe.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:a},o)=>{let{config:i}=H$();return r!=null&&r.length?Pe.createElement("div",{ref:o,className:ve("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e)},r.map(s=>{let l=`${a||s.dataKey||"value"}`,u=QA(i,s,l);return Pe.createElement("div",{key:s.value,className:ve("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground")},u!=null&&u.icon&&!t?Pe.createElement(u.icon,null):Pe.createElement("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),u==null?void 0:u.label)})):null});Gm.displayName="ChartLegend";function QA(e,t,r){if(typeof t!="object"||t===null)return;let n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0,a=r;return r in t&&typeof t[r]=="string"?a=t[r]:n&&r in n&&typeof n[r]=="string"&&(a=n[r]),a in e?e[a]:e[r]}var We=R(G());var ne=R(G(),1),iO=R(Ti(),1);function ZA(e,[t,r]){return Math.min(r,Math.max(t,e))}var Eb=R(G(),1);function W$(e){let t=Eb.useRef({value:e,previous:e});return Eb.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var z$=R(G(),1);var V$=R(_t(),1),Iwe="VisuallyHidden",eO=z$.forwardRef((e,t)=>(0,V$.jsx)(xe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));eO.displayName=Iwe;var ce=R(_t(),1),Lwe=[" ","Enter","ArrowUp","ArrowDown"],Awe=[" ","Enter"],Xm="Select",[Rb,_b,Owe]=yu(Xm),[ff,JVe]=Xr(Xm,[Owe,No]),Mb=No(),[kwe,es]=ff(Xm),[Ewe,Twe]=ff(Xm),$$=e=>{let{__scopeSelect:t,children:r,open:n,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:l,dir:u,name:f,autoComplete:c,disabled:d,required:p}=e,h=Mb(t),[m,x]=ne.useState(null),[g,v]=ne.useState(null),[w,b]=ne.useState(!1),y=xu(u),[S=!1,P]=So({prop:n,defaultProp:a,onChange:o}),[A,_]=So({prop:i,defaultProp:s,onChange:l}),T=ne.useRef(null),D=m?!!m.closest("form"):!0,[N,j]=ne.useState(new Set),B=Array.from(N).map(H=>H.props.value).join(";");return(0,ce.jsx)(js,{...h,children:(0,ce.jsxs)(kwe,{required:p,scope:t,trigger:m,onTriggerChange:x,valueNode:g,onValueNodeChange:v,valueNodeHasChildren:w,onValueNodeHasChildrenChange:b,contentId:tn(),value:A,onValueChange:_,open:S,onOpenChange:P,dir:y,triggerPointerDownPosRef:T,disabled:d,children:[(0,ce.jsx)(Rb.Provider,{scope:t,children:(0,ce.jsx)(Ewe,{scope:e.__scopeSelect,onNativeOptionAdd:ne.useCallback(H=>{j(I=>new Set(I).add(H))},[]),onNativeOptionRemove:ne.useCallback(H=>{j(I=>{let C=new Set(I);return C.delete(H),C})},[]),children:r})}),D?(0,ce.jsxs)(g8,{"aria-hidden":!0,required:p,tabIndex:-1,name:f,autoComplete:c,value:A,onChange:H=>_(H.target.value),disabled:d,children:[A===void 0?(0,ce.jsx)("option",{value:""}):null,Array.from(N)]},B):null]})})};$$.displayName=Xm;var G$="SelectTrigger",K$=ne.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:n=!1,...a}=e,o=Mb(r),i=es(G$,r),s=i.disabled||n,l=Le(t,i.onTriggerChange),u=_b(r),[f,c,d]=y8(h=>{let m=u().filter(v=>!v.disabled),x=m.find(v=>v.value===i.value),g=x8(m,h,x);g!==void 0&&i.onValueChange(g.value)}),p=()=>{s||(i.onOpenChange(!0),d())};return(0,ce.jsx)(qs,{asChild:!0,...o,children:(0,ce.jsx)(xe.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":v8(i.value)?"":void 0,...a,ref:l,onClick:le(a.onClick,h=>{h.currentTarget.focus()}),onPointerDown:le(a.onPointerDown,h=>{let m=h.target;m.hasPointerCapture(h.pointerId)&&m.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(p(),i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:le(a.onKeyDown,h=>{let m=f.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&c(h.key),!(m&&h.key===" ")&&Lwe.includes(h.key)&&(p(),h.preventDefault())})})})});K$.displayName=G$;var X$="SelectValue",Y$=ne.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:a,children:o,placeholder:i="",...s}=e,l=es(X$,r),{onValueNodeHasChildrenChange:u}=l,f=o!==void 0,c=Le(t,l.onValueNodeChange);return Ct(()=>{u(f)},[u,f]),(0,ce.jsx)(xe.span,{...s,ref:c,style:{pointerEvents:"none"},children:v8(l.value)?(0,ce.jsx)(ce.Fragment,{children:i}):o})});Y$.displayName=X$;var Rwe="SelectIcon",J$=ne.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...a}=e;return(0,ce.jsx)(xe.span,{"aria-hidden":!0,...a,ref:t,children:n||"\u25BC"})});J$.displayName=Rwe;var _we="SelectPortal",Q$=e=>(0,ce.jsx)(Us,{asChild:!0,...e});Q$.displayName=_we;var Tl="SelectContent",Z$=ne.forwardRef((e,t)=>{let r=es(Tl,e.__scopeSelect),[n,a]=ne.useState();if(Ct(()=>{a(new DocumentFragment)},[]),!r.open){let o=n;return o?iO.createPortal((0,ce.jsx)(e8,{scope:e.__scopeSelect,children:(0,ce.jsx)(Rb.Slot,{scope:e.__scopeSelect,children:(0,ce.jsx)("div",{children:e.children})})}),o):null}return(0,ce.jsx)(t8,{...e,ref:t})});Z$.displayName=Tl;var ei=10,[e8,ts]=ff(Tl),Mwe="SelectContentImpl",t8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:x,...g}=e,v=es(Tl,r),[w,b]=ne.useState(null),[y,S]=ne.useState(null),P=Le(t,W=>b(W)),[A,_]=ne.useState(null),[T,D]=ne.useState(null),N=_b(r),[j,B]=ne.useState(!1),H=ne.useRef(!1);ne.useEffect(()=>{if(w)return Au(w)},[w]),bu();let I=ne.useCallback(W=>{let[ie,...V]=N().map(U=>U.ref.current),[re]=V.slice(-1),Q=document.activeElement;for(let U of W)if(U===Q||(U?.scrollIntoView({block:"nearest"}),U===ie&&y&&(y.scrollTop=0),U===re&&y&&(y.scrollTop=y.scrollHeight),U?.focus(),document.activeElement!==Q))return},[N,y]),C=ne.useCallback(()=>I([A,w]),[I,A,w]);ne.useEffect(()=>{j&&C()},[j,C]);let{onOpenChange:L,triggerPointerDownPosRef:O}=v;ne.useEffect(()=>{if(w){let W={x:0,y:0},ie=re=>{W={x:Math.abs(Math.round(re.pageX)-(O.current?.x??0)),y:Math.abs(Math.round(re.pageY)-(O.current?.y??0))}},V=re=>{W.x<=10&&W.y<=10?re.preventDefault():w.contains(re.target)||L(!1),document.removeEventListener("pointermove",ie),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",V,{capture:!0})}}},[w,L,O]),ne.useEffect(()=>{let W=()=>L(!1);return window.addEventListener("blur",W),window.addEventListener("resize",W),()=>{window.removeEventListener("blur",W),window.removeEventListener("resize",W)}},[L]);let[E,k]=y8(W=>{let ie=N().filter(Q=>!Q.disabled),V=ie.find(Q=>Q.ref.current===document.activeElement),re=x8(ie,W,V);re&&setTimeout(()=>re.ref.current.focus())}),F=ne.useCallback((W,ie,V)=>{let re=!H.current&&!V;(v.value!==void 0&&v.value===ie||re)&&(_(W),re&&(H.current=!0))},[v.value]),q=ne.useCallback(()=>w?.focus(),[w]),$=ne.useCallback((W,ie,V)=>{let re=!H.current&&!V;(v.value!==void 0&&v.value===ie||re)&&D(W)},[v.value]),ee=n==="popper"?tO:r8,J=ee===tO?{side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:x}:{};return(0,ce.jsx)(e8,{scope:r,content:w,viewport:y,onViewportChange:S,itemRefCallback:F,selectedItem:A,onItemLeave:q,itemTextRefCallback:$,focusSelectedItem:C,selectedItemText:T,position:n,isPositioned:j,searchRef:E,children:(0,ce.jsx)(Vs,{as:Kr,allowPinchZoom:!0,children:(0,ce.jsx)(Rs,{asChild:!0,trapped:v.open,onMountAutoFocus:W=>{W.preventDefault()},onUnmountAutoFocus:le(a,W=>{v.trigger?.focus({preventScroll:!0}),W.preventDefault()}),children:(0,ce.jsx)(Ts,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:W=>W.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,ce.jsx)(ee,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:W=>W.preventDefault(),...g,...J,onPlaced:()=>B(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:le(g.onKeyDown,W=>{let ie=W.ctrlKey||W.altKey||W.metaKey;if(W.key==="Tab"&&W.preventDefault(),!ie&&W.key.length===1&&k(W.key),["ArrowUp","ArrowDown","Home","End"].includes(W.key)){let re=N().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(W.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(W.key)){let Q=W.target,U=re.indexOf(Q);re=re.slice(U+1)}setTimeout(()=>I(re)),W.preventDefault()}})})})})})})});t8.displayName=Mwe;var Dwe="SelectItemAlignedPosition",r8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:n,...a}=e,o=es(Tl,r),i=ts(Tl,r),[s,l]=ne.useState(null),[u,f]=ne.useState(null),c=Le(t,P=>f(P)),d=_b(r),p=ne.useRef(!1),h=ne.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:g,focusSelectedItem:v}=i,w=ne.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&u&&m&&x&&g){let P=o.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),_=o.valueNode.getBoundingClientRect(),T=g.getBoundingClientRect();if(o.dir!=="rtl"){let Q=T.left-A.left,U=_.left-Q,be=P.left-U,de=P.width+be,ze=Math.max(de,A.width),Be=window.innerWidth-ei,yt=ZA(U,[ei,Be-ze]);s.style.minWidth=de+"px",s.style.left=yt+"px"}else{let Q=A.right-T.right,U=window.innerWidth-_.right-Q,be=window.innerWidth-P.right-U,de=P.width+be,ze=Math.max(de,A.width),Be=window.innerWidth-ei,yt=ZA(U,[ei,Be-ze]);s.style.minWidth=de+"px",s.style.right=yt+"px"}let D=d(),N=window.innerHeight-ei*2,j=m.scrollHeight,B=window.getComputedStyle(u),H=parseInt(B.borderTopWidth,10),I=parseInt(B.paddingTop,10),C=parseInt(B.borderBottomWidth,10),L=parseInt(B.paddingBottom,10),O=H+I+j+L+C,E=Math.min(x.offsetHeight*5,O),k=window.getComputedStyle(m),F=parseInt(k.paddingTop,10),q=parseInt(k.paddingBottom,10),$=P.top+P.height/2-ei,ee=N-$,J=x.offsetHeight/2,W=x.offsetTop+J,ie=H+I+W,V=O-ie;if(ie<=$){let Q=x===D[D.length-1].ref.current;s.style.bottom="0px";let U=u.clientHeight-m.offsetTop-m.offsetHeight,be=Math.max(ee,J+(Q?q:0)+U+C),de=ie+be;s.style.height=de+"px"}else{let Q=x===D[0].ref.current;s.style.top="0px";let be=Math.max($,H+m.offsetTop+(Q?F:0)+J)+V;s.style.height=be+"px",m.scrollTop=ie-$+m.offsetTop}s.style.margin=`${ei}px 0`,s.style.minHeight=E+"px",s.style.maxHeight=N+"px",n?.(),requestAnimationFrame(()=>p.current=!0)}},[d,o.trigger,o.valueNode,s,u,m,x,g,o.dir,n]);Ct(()=>w(),[w]);let[b,y]=ne.useState();Ct(()=>{u&&y(window.getComputedStyle(u).zIndex)},[u]);let S=ne.useCallback(P=>{P&&h.current===!0&&(w(),v?.(),h.current=!1)},[w,v]);return(0,ce.jsx)(Fwe,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:(0,ce.jsx)("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:(0,ce.jsx)(xe.div,{...a,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});r8.displayName=Dwe;var Nwe="SelectPopperPosition",tO=ne.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:a=ei,...o}=e,i=Mb(r);return(0,ce.jsx)(Pu,{...i,...o,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tO.displayName=Nwe;var[Fwe,sO]=ff(Tl,{}),rO="SelectViewport",n8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:n,...a}=e,o=ts(rO,r),i=sO(rO,r),s=Le(t,o.onViewportChange),l=ne.useRef(0);return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,ce.jsx)(Rb.Slot,{scope:r,children:(0,ce.jsx)(xe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"auto",...a.style},onScroll:le(a.onScroll,u=>{let f=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:d}=i;if(d?.current&&c){let p=Math.abs(l.current-f.scrollTop);if(p>0){let h=window.innerHeight-ei*2,m=parseFloat(c.style.minHeight),x=parseFloat(c.style.height),g=Math.max(m,x);if(g0?b:0,c.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});n8.displayName=rO;var a8="SelectGroup",[Bwe,jwe]=ff(a8),qwe=ne.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=tn();return(0,ce.jsx)(Bwe,{scope:r,id:a,children:(0,ce.jsx)(xe.div,{role:"group","aria-labelledby":a,...n,ref:t})})});qwe.displayName=a8;var o8="SelectLabel",i8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=jwe(o8,r);return(0,ce.jsx)(xe.div,{id:a.id,...n,ref:t})});i8.displayName=o8;var Tb="SelectItem",[Uwe,s8]=ff(Tb),l8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,disabled:a=!1,textValue:o,...i}=e,s=es(Tb,r),l=ts(Tb,r),u=s.value===n,[f,c]=ne.useState(o??""),[d,p]=ne.useState(!1),h=Le(t,g=>l.itemRefCallback?.(g,n,a)),m=tn(),x=()=>{a||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,ce.jsx)(Uwe,{scope:r,value:n,disabled:a,textId:m,isSelected:u,onItemTextChange:ne.useCallback(g=>{c(v=>v||(g?.textContent??"").trim())},[]),children:(0,ce.jsx)(Rb.ItemSlot,{scope:r,value:n,disabled:a,textValue:f,children:(0,ce.jsx)(xe.div,{role:"option","aria-labelledby":m,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:h,onFocus:le(i.onFocus,()=>p(!0)),onBlur:le(i.onBlur,()=>p(!1)),onPointerUp:le(i.onPointerUp,x),onPointerMove:le(i.onPointerMove,g=>{a?l.onItemLeave?.():g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:le(i.onPointerLeave,g=>{g.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:le(i.onKeyDown,g=>{l.searchRef?.current!==""&&g.key===" "||(Awe.includes(g.key)&&x(),g.key===" "&&g.preventDefault())})})})})});l8.displayName=Tb;var Km="SelectItemText",u8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:a,...o}=e,i=es(Km,r),s=ts(Km,r),l=s8(Km,r),u=Twe(Km,r),[f,c]=ne.useState(null),d=Le(t,g=>c(g),l.onItemTextChange,g=>s.itemTextRefCallback?.(g,l.value,l.disabled)),p=f?.textContent,h=ne.useMemo(()=>(0,ce.jsx)("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=u;return Ct(()=>(m(h),()=>x(h)),[m,x,h]),(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(xe.span,{id:l.textId,...o,ref:d}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?iO.createPortal(o.children,i.valueNode):null]})});u8.displayName=Km;var c8="SelectItemIndicator",f8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return s8(c8,r).isSelected?(0,ce.jsx)(xe.span,{"aria-hidden":!0,...n,ref:t}):null});f8.displayName=c8;var nO="SelectScrollUpButton",d8=ne.forwardRef((e,t)=>{let r=ts(nO,e.__scopeSelect),n=sO(nO,e.__scopeSelect),[a,o]=ne.useState(!1),i=Le(t,n.onScrollButtonChange);return Ct(()=>{if(r.viewport&&r.isPositioned){let l=function(){let f=u.scrollTop>0;o(f)};var s=l;let u=r.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?(0,ce.jsx)(m8,{...e,ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});d8.displayName=nO;var aO="SelectScrollDownButton",p8=ne.forwardRef((e,t)=>{let r=ts(aO,e.__scopeSelect),n=sO(aO,e.__scopeSelect),[a,o]=ne.useState(!1),i=Le(t,n.onScrollButtonChange);return Ct(()=>{if(r.viewport&&r.isPositioned){let l=function(){let f=u.scrollHeight-u.clientHeight,c=Math.ceil(u.scrollTop)u.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?(0,ce.jsx)(m8,{...e,ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});p8.displayName=aO;var m8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:n,...a}=e,o=ts("SelectScrollButton",r),i=ne.useRef(null),s=_b(r),l=ne.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return ne.useEffect(()=>()=>l(),[l]),Ct(()=>{s().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),(0,ce.jsx)(xe.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:le(a.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:le(a.onPointerMove,()=>{o.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:le(a.onPointerLeave,()=>{l()})})}),Hwe="SelectSeparator",h8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,ce.jsx)(xe.div,{"aria-hidden":!0,...n,ref:t})});h8.displayName=Hwe;var oO="SelectArrow",Wwe=ne.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=Mb(r),o=es(oO,r),i=ts(oO,r);return o.open&&i.position==="popper"?(0,ce.jsx)(Iu,{...a,...n,ref:t}):null});Wwe.displayName=oO;function v8(e){return e===""||e===void 0}var g8=ne.forwardRef((e,t)=>{let{value:r,...n}=e,a=ne.useRef(null),o=Le(t,a),i=W$(r);return ne.useEffect(()=>{let s=a.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==r&&f){let c=new Event("change",{bubbles:!0});f.call(s,r),s.dispatchEvent(c)}},[i,r]),(0,ce.jsx)(eO,{asChild:!0,children:(0,ce.jsx)("select",{...n,ref:o,defaultValue:r})})});g8.displayName="BubbleSelect";function y8(e){let t=wt(e),r=ne.useRef(""),n=ne.useRef(0),a=ne.useCallback(i=>{let s=r.current+i;t(s),function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),o=ne.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return ne.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,o]}function x8(e,t,r){let a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1,i=zwe(e,Math.max(o,0));a.length===1&&(i=i.filter(u=>u!==r));let l=i.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}function zwe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var b8=$$,lO=K$,w8=Y$,S8=J$,C8=Q$,uO=Z$,P8=n8;var cO=i8,fO=l8,I8=u8,L8=f8,dO=d8,pO=p8,mO=h8;var rs=b8;var ns=w8,ti=We.forwardRef((a,n)=>{var o=a,{className:e,children:t}=o,r=Ie(o,["className","children"]);return We.createElement(lO,fe({ref:n,className:ve("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e)},r),t,We.createElement(S8,{asChild:!0},We.createElement(Bl,{className:"h-4 w-4 opacity-50"})))});ti.displayName=lO.displayName;var A8=We.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ie(a,["className"]);return We.createElement(dO,fe({ref:r,className:ve("flex cursor-default items-center justify-center py-1",e)},t),We.createElement(_f,{className:"h-4 w-4"}))});A8.displayName=dO.displayName;var O8=We.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ie(a,["className"]);return We.createElement(pO,fe({ref:r,className:ve("flex cursor-default items-center justify-center py-1",e)},t),We.createElement(Bl,{className:"h-4 w-4"}))});O8.displayName=pO.displayName;var ri=We.forwardRef((o,a)=>{var i=o,{className:e,children:t,position:r="popper"}=i,n=Ie(i,["className","children","position"]);return We.createElement(C8,null,We.createElement(uO,fe({ref:a,className:ve("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"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),position:r},n),We.createElement(A8,null),We.createElement(P8,{className:ve("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},t),We.createElement(O8,null)))});ri.displayName=uO.displayName;var $we=We.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ie(a,["className"]);return We.createElement(cO,fe({ref:r,className:ve("py-1.5 pl-8 pr-2 text-sm font-semibold",e)},t))});$we.displayName=cO.displayName;var gt=We.forwardRef((a,n)=>{var o=a,{className:e,children:t}=o,r=Ie(o,["className","children"]);return We.createElement(fO,fe({ref:n,className:ve("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e)},r),We.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},We.createElement(L8,null,We.createElement(ps,{className:"h-4 w-4"}))),We.createElement(I8,null,t))});gt.displayName=fO.displayName;var Ym=We.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ie(a,["className"]);return We.createElement(mO,fe({ref:r,className:ve("-mx-1 my-1 h-px bg-muted",e)},t))});Ym.displayName=mO.displayName;var _8=R(G());var E8=R(G()),eh=R(G()),Gwe=E8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hO=Gwe.ReactCurrentDispatcher,Kwe=()=>(0,eh.useReducer)(()=>({}))[1],Xwe=e=>()=>{let t=`Hook "${e}" no possible to using inside useBetween scope.`;throw console.error(t),new Error(t)},gO=(e,t)=>Object.is(e,t),Jm=(e,t)=>!e||!t||e.length!==t.length||e.some((r,n)=>!gO(r,t[n])),Ywe=()=>typeof window>"u",k8=new Map,Qm=[],Db=0,df=[],os=[],Zm=()=>{},vO=Ywe(),Jwe,as=()=>{let e=Db++;return Qm[e]=Qm[e]||{}},T8={useState(e){let t=as(),r=Zm;return t.initialized||(t.state=typeof e=="function"?e():e,t.set=n=>{if(typeof n=="function")return t.set(n(t.state));gO(n,t.state)||(t.state=n,r())},t.initialized=!0),[t.state,t.set]},useReducer(e,t,r){let n=as(),a=Zm;return n.initialized||(n.state=r?r(t):t,n.dispatch=o=>{let i=e(n.state,o);gO(i,n.state)||(n.state=i,a())},n.initialized=!0),[n.state,n.dispatch]},useEffect(e,t){if(vO)return;let r=as();r.initialized?Jm(r.deps,t)&&(r.deps=t,df.push([r,t,e])):(r.deps=t,r.initialized=!0,df.push([r,t,e]))},useLayoutEffect(e,t){if(vO)return;let r=as();r.initialized?Jm(r.deps,t)&&(r.deps=t,os.push([r,t,e])):(r.deps=t,r.initialized=!0,os.push([r,t,e]))},useCallback(e,t){let r=as();return r.initialized?Jm(r.deps,t)&&(r.deps=t,r.fn=e):(r.fn=e,r.deps=t,r.initialized=!0),r.fn},useMemo(e,t){let r=as();return r.initialized?Jm(r.deps,t)&&(r.deps=t,r.state=e()):(r.deps=t,r.state=e(),r.initialized=!0),r.state},useRef(e){let t=as();return t.initialized||(t.state={current:e},t.initialized=!0),t.state},useImperativeHandle(e,t,r){if(vO)return;let n=as();n.initialized?Jm(n.deps,r)&&(n.deps=r,os.push([n,r,()=>{typeof e=="function"?e(t()):e.current=t()}])):(n.deps=r,n.initialized=!0,os.push([n,r,()=>{typeof e=="function"?e(t()):e.current=t()}]))}};["readContext","useContext","useDebugValue","useResponder","useDeferredValue","useTransition"].forEach(e=>T8[e]=Xwe(e));var Qwe=(e,t)=>{let r=[],n=[],a,o=[],i=!1;t&&t.mock&&(a=t.mock,i=!0);let s=()=>{n.slice().forEach(p=>p())},l=()=>{if(i)return;let p=hO.current,h=[Db,df,os,Qm,Zm],m=!1,x=!0;if(Db=0,df=[],os=[],Qm=r,Zm=()=>{x?m=!0:l()},hO.current=T8,a=e(Jwe),[os,df].forEach(g=>g.forEach(([v,w,b])=>{if(v.deps=w,v.unsub){let S=v.unsub;o=o.filter(P=>P!==S),S()}let y=b();typeof y=="function"?(o.push(y),v.unsub=y):v.unsub=null})),[Db,df,os,Qm,Zm]=h,hO.current=p,x=!1,!m){s();return}l()};return{init:()=>l(),get:()=>a,sub:p=>{n.indexOf(p)===-1&&n.push(p)},unsub:p=>{n=n.filter(h=>h!==p)},unsubs:()=>o,mock:p=>{i=!0,a=p,s()},unmock:()=>{i=!1,l()}}},Zwe=e=>{let t=k8.get(e);return t||(t=Qwe(e),k8.set(e,t),t.init()),t},R8=e=>{let t=Kwe(),r=Zwe(e);return r.sub(t),(0,eh.useEffect)(()=>(r.sub(t),()=>r.unsub(t)),[r,t]),r.get()};var e0e=()=>{let[e,t]=(0,_8.useState)("day");return{interval:e,setInterval:t}},pf=()=>R8(e0e);var t0e={visitors:{label:"Visitors"},total:{label:"Total",color:"hsl(var(--chart-1))"},unique:{label:"Unique",color:"hsl(var(--chart-2))"}};function M8({chartData:e,dateRange:t,pushEvent:r}){let{interval:n,setInterval:a}=pf(),o=i=>{a(i),r("set_interval",{value:{interval:i}})};return Me.createElement(Ur,null,Me.createElement(Hr,{className:"flex items-center gap-2 py-5 space-y-0 border-b sm:flex-row"},Me.createElement("div",{className:"grid flex-1 gap-1 text-center sm:text-left"},Me.createElement(Wr,null,"Total visits"),Me.createElement(zr,null,"Showing total visits for ",Ce(t.from,"dd LLL, y")," -"," ",Ce(t.to,"dd LLL, y"))),Me.createElement(rs,{value:n,onValueChange:o},Me.createElement(ti,{className:"w-[160px] rounded-lg sm:ml-auto","aria-label":"Select a value"},Me.createElement(ns,{placeholder:"Interval"})),Me.createElement(ri,{className:"rounded-xl"},Me.createElement(gt,{value:"hour",className:"rounded-lg"},"Per hour"),Me.createElement(gt,{value:"day",className:"rounded-lg"},"Per day"),Me.createElement(gt,{value:"month",className:"rounded-lg"},"Per month")))),Me.createElement(Vr,{className:"px-2 pt-4 sm:px-6 sm:pt-6"},Me.createElement($r,{config:t0e,className:"aspect-auto h-[250px] w-full"},Me.createElement($m,{data:e},Me.createElement("defs",null,Me.createElement("linearGradient",{id:"fillTotal",x1:"0",y1:"0",x2:"0",y2:"1"},Me.createElement("stop",{offset:"5%",stopColor:"var(--color-total)",stopOpacity:.8}),Me.createElement("stop",{offset:"95%",stopColor:"var(--color-total)",stopOpacity:.1})),Me.createElement("linearGradient",{id:"fillUnique",x1:"0",y1:"0",x2:"0",y2:"1"},Me.createElement("stop",{offset:"5%",stopColor:"var(--color-unique)",stopOpacity:.8}),Me.createElement("stop",{offset:"95%",stopColor:"var(--color-unique)",stopOpacity:.1}))),Me.createElement(pa,{vertical:!1}),Me.createElement(qt,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short"},n!=="month"&&{day:"numeric"}),n==="month"&&{year:"numeric"}))}),Me.createElement(ma,{cursor:!1,content:Me.createElement(Rn,{labelFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short",year:"numeric"},n!=="month"&&{day:"numeric"}),n==="hour"&&{hour:"numeric"})),indicator:"dashed"})}),Me.createElement(ur,{dataKey:"total",type:"natural",fill:"url(#fillTotal)",stroke:"var(--color-total)",stackId:"a"}),Me.createElement(ur,{dataKey:"unique",type:"natural",fill:"url(#fillUnique)",stroke:"var(--color-unique)",stackId:"b"}),Me.createElement(kb,{content:Me.createElement(Gm,null)})))))}var cr=R(G());var r0e={duration:{label:"Duration",color:"hsl(var(--chart-3))"},label:{color:"hsl(var(--foreground))"}};function D8({chartData:e,chartTitle:t,dateRange:r}){return cr.createElement(Ur,null,cr.createElement(Hr,null,cr.createElement(Wr,null,t),cr.createElement(zr,null,Ce(r.from,"dd LLL, y")," -"," ",Ce(r.to,"dd LLL, y"))),cr.createElement(Vr,{className:"flex-1 pb-0"},cr.createElement($r,{config:r0e,className:"mx-auto aspect-square max-h-[250px]"},cr.createElement(Zo,{accessibilityLayer:!0,data:e,layout:"vertical",margin:{right:16}},cr.createElement(pa,{horizontal:!1}),cr.createElement(Ba,{dataKey:"path",type:"category",tickLine:!1,tickMargin:10,axisLine:!1,tickFormatter:n=>n.slice(0,3),hide:!0}),cr.createElement(qt,{dataKey:"duration",type:"number",hide:!0}),cr.createElement(ma,{cursor:!1,content:cr.createElement(Rn,{className:"w-[175px]",indicator:"line"})}),cr.createElement(sr,{dataKey:"duration",layout:"vertical",fill:"var(--color-duration)",radius:4},cr.createElement(ar,{dataKey:"path",position:"insideLeft",fill:"var(--color-label)",offset:8,fontSize:12}))))),cr.createElement(El,{className:"flex-col items-start gap-2 text-sm mt-2"},cr.createElement("div",{className:"leading-none text-muted-foreground"},"Request duration for ",t.toLowerCase())))}var fr=R(G());var n0e={visits:{label:"Visits"},desktop:{label:"Desktop",color:"hsl(var(--chart-1))"},tablet:{label:"Tablet",color:"hsl(var(--chart-2))"},mobile:{label:"Mobile",color:"hsl(var(--chart-3))"}};function N8({chartData:e,dateRange:t}){return e.forEach(r=>{r.fill=`var(--color-${r.device})`}),fr.createElement(Ur,{className:"flex flex-col"},fr.createElement(Hr,null,fr.createElement(Wr,null,"Device Usage"),fr.createElement(zr,null,Ce(t.from,"dd LLL, y")," -"," ",Ce(t.to,"dd LLL, y"))),fr.createElement(Vr,{className:"flex-1 pb-0"},fr.createElement($r,{config:n0e,className:"mx-auto aspect-square max-h-[250px]"},fr.createElement(JA,null,fr.createElement(ma,{cursor:!1,content:fr.createElement(Rn,{className:"w-[150px]",hideLabel:!0,indicator:"dashed"})}),fr.createElement(da,{data:e,dataKey:"visits",nameKey:"device",innerRadius:60,strokeWidth:5},fr.createElement(Ue,{content:({viewBox:r})=>{if(r&&"cx"in r&&"cy"in r)return fr.createElement("text",{x:r.cx,y:r.cy,textAnchor:"middle",dominantBaseline:"middle"},fr.createElement("tspan",{x:r.cx,y:r.cy,className:"fill-foreground text-3xl font-bold"},kh(e.reduce((n,a)=>n+a.visits,0),1)),fr.createElement("tspan",{x:r.cx,y:(r.cy||0)+24,className:"fill-muted-foreground"},"Visits"))}}))))),fr.createElement(El,{className:"flex-col items-start gap-2 text-sm mt-2"},fr.createElement("div",{className:"leading-none text-muted-foreground"},"Showing total visits split by device type")))}var we=R(G());var a0e={oks:{label:"200s",color:"hsl(var(--chart-5))"},redirs:{label:"300s",color:"hsl(var(--chart-4))"},errors:{label:"400s",color:"hsl(var(--chart-2))"},fails:{label:"500s",color:"hsl(var(--chart-1))"}};function F8({chartData:e,dateRange:t,pushEvent:r}){let{interval:n,setInterval:a}=pf(),o=i=>{a(i),r("set_interval",{value:{interval:i}})};return we.createElement(Ur,null,we.createElement(Hr,{className:"flex items-center gap-2 py-5 space-y-0 border-b sm:flex-row"},we.createElement("div",{className:"grid flex-1 gap-1 text-center sm:text-left"},we.createElement(Wr,null,"HTTP Statuses"),we.createElement(zr,null,"Showing HTTP statuses for the ",Ce(t.from,"dd LLL, y")," ","- ",Ce(t.to,"dd LLL, y"))),we.createElement(rs,{value:n,onValueChange:o},we.createElement(ti,{className:"w-[160px] rounded-lg sm:ml-auto","aria-label":"Select a value"},we.createElement(ns,{placeholder:"Interval"})),we.createElement(ri,{className:"rounded-xl"},we.createElement(gt,{value:"hour",className:"rounded-lg"},"Per hour"),we.createElement(gt,{value:"day",className:"rounded-lg"},"Per day"),we.createElement(gt,{value:"month",className:"rounded-lg"},"Per month")))),we.createElement(Vr,{className:"px-2 pt-4 sm:px-6 sm:pt-6"},we.createElement($r,{config:a0e,className:"aspect-auto h-[250px] w-full"},we.createElement($m,{data:e},we.createElement("defs",null,we.createElement("linearGradient",{id:"fillOks",x1:"0",y1:"0",x2:"0",y2:"1"},we.createElement("stop",{offset:"5%",stopColor:"var(--color-oks)",stopOpacity:.8}),we.createElement("stop",{offset:"95%",stopColor:"var(--color-oks)",stopOpacity:.1})),we.createElement("linearGradient",{id:"fillRedirs",x1:"0",y1:"0",x2:"0",y2:"1"},we.createElement("stop",{offset:"5%",stopColor:"var(--color-redirs)",stopOpacity:.8}),we.createElement("stop",{offset:"95%",stopColor:"var(--color-redirs)",stopOpacity:.1})),we.createElement("linearGradient",{id:"fillErrors",x1:"0",y1:"0",x2:"0",y2:"1"},we.createElement("stop",{offset:"5%",stopColor:"var(--color-errors)",stopOpacity:.8}),we.createElement("stop",{offset:"95%",stopColor:"var(--color-errors)",stopOpacity:.1})),we.createElement("linearGradient",{id:"fillFails",x1:"0",y1:"0",x2:"0",y2:"1"},we.createElement("stop",{offset:"5%",stopColor:"var(--color-fails)",stopOpacity:.8}),we.createElement("stop",{offset:"95%",stopColor:"var(--color-fails)",stopOpacity:.1}))),we.createElement(pa,{vertical:!1}),we.createElement(qt,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short"},n!=="month"&&{day:"numeric"}),n==="month"&&{year:"numeric"}))}),we.createElement(ma,{cursor:!1,content:we.createElement(Rn,{labelFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short",year:"numeric"},n!=="month"&&{day:"numeric"}),n==="hour"&&{hour:"numeric"})),indicator:"dashed"})}),we.createElement(ur,{dataKey:"oks",type:"natural",fill:"url(#fillOks)",stroke:"var(--color-oks)",stackId:"a"}),we.createElement(ur,{dataKey:"redirs",type:"natural",fill:"url(#fillRedirs)",stroke:"var(--color-redirs)",stackId:"b"}),we.createElement(ur,{dataKey:"errors",type:"natural",fill:"url(#fillErrors)",stroke:"var(--color-errors)",stackId:"c"}),we.createElement(ur,{dataKey:"fails",type:"natural",fill:"url(#fillFails)",stroke:"var(--color-fails)",stackId:"d"}),we.createElement(kb,{content:we.createElement(Gm,null)})))))}var dr=R(G());var o0e={visits:{label:"Visits",color:"hsl(var(--chart-3))"},label:{color:"hsl(var(--foreground))"}};function B8({chartData:e,chartTitle:t,dateRange:r}){return dr.createElement(Ur,null,dr.createElement(Hr,null,dr.createElement(Wr,null,t),dr.createElement(zr,null,Ce(r.from,"dd LLL, y")," -"," ",Ce(r.to,"dd LLL, y"))),dr.createElement(Vr,{className:"flex-1 pb-0"},dr.createElement($r,{config:o0e,className:"mx-auto aspect-square max-h-[250px]"},dr.createElement(Zo,{accessibilityLayer:!0,data:e,layout:"vertical",margin:{right:16}},dr.createElement(pa,{horizontal:!1}),dr.createElement(Ba,{dataKey:"source",type:"category",tickLine:!1,tickMargin:10,axisLine:!1,tickFormatter:n=>n.slice(0,3),hide:!0}),dr.createElement(qt,{dataKey:"visits",type:"number",hide:!0}),dr.createElement(ma,{cursor:!1,content:dr.createElement(Rn,{className:"w-[200px]",indicator:"line"})}),dr.createElement(sr,{dataKey:"visits",layout:"vertical",fill:"var(--color-visits)",radius:4},dr.createElement(ar,{dataKey:"source",position:"insideLeft",fill:"var(--color-label)",offset:8,fontSize:12}))))),dr.createElement(El,{className:"flex-col items-start gap-2 text-sm mt-2"},dr.createElement("div",{className:"leading-none text-muted-foreground"},"Showing total visits for ",t.toLowerCase())))}var Fe=R(G());var jb=R(G());var X=R(_t()),Ee=R(G());var he=function(){return he=Object.assign||function(t){for(var r,n=1,a=arguments.length;n1&&(l||!u),c=t>1&&(u||!l),d=function(){n&&o(n)},p=function(){a&&o(a)};return(0,X.jsx)(B0e,{displayMonth:e.displayMonth,hideNext:f,hidePrevious:c,nextMonth:a,previousMonth:n,onPreviousClick:d,onNextClick:p})}function j0e(e){var t,r=Qe(),n=r.classNames,a=r.disableNavigation,o=r.styles,i=r.captionLayout,s=r.components,l=(t=s?.CaptionLabel)!==null&&t!==void 0?t:V8,u;return a?u=(0,X.jsx)(l,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?u=(0,X.jsx)(j8,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?u=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(j8,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),(0,X.jsx)(q8,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,X.jsx)(q8,{displayMonth:e.displayMonth,id:e.id})]}),(0,X.jsx)("div",{className:n.caption,style:o.caption,children:u})}function q0e(e){var t=Qe(),r=t.footer,n=t.styles,a=t.classNames.tfoot;return r?(0,X.jsx)("tfoot",{className:a,style:n.tfoot,children:(0,X.jsx)("tr",{children:(0,X.jsx)("td",{colSpan:8,children:r})})}):(0,X.jsx)(X.Fragment,{})}function U0e(e,t,r){for(var n=r?Oa(new Date):wr(new Date,{locale:e,weekStartsOn:t}),a=[],o=0;o<7;o++){var i=Xe(n,o);a.push(i)}return a}function H0e(){var e=Qe(),t=e.classNames,r=e.styles,n=e.showWeekNumber,a=e.locale,o=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,u=U0e(a,o,i);return(0,X.jsxs)("tr",{style:r.head_row,className:t.head_row,children:[n&&(0,X.jsx)("td",{style:r.head_cell,className:t.head_cell}),u.map(function(f,c){return(0,X.jsx)("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(f,{locale:a}),children:s(f,{locale:a})},c)})]})}function W0e(){var e,t=Qe(),r=t.classNames,n=t.styles,a=t.components,o=(e=a?.HeadRow)!==null&&e!==void 0?e:H0e;return(0,X.jsx)("thead",{style:n.head,className:r.head,children:(0,X.jsx)(o,{})})}function z0e(e){var t=Qe(),r=t.locale,n=t.formatters.formatDay;return(0,X.jsx)(X.Fragment,{children:n(e.date,{locale:r})})}var SO=(0,Ee.createContext)(void 0);function V0e(e){if(!th(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return(0,X.jsx)(SO.Provider,{value:t,children:e.children})}return(0,X.jsx)($0e,{initialProps:e.initialProps,children:e.children})}function $0e(e){var t=e.initialProps,r=e.children,n=t.selected,a=t.min,o=t.max,i=function(u,f,c){var d,p;(d=t.onDayClick)===null||d===void 0||d.call(t,u,f,c);var h=!!(f.selected&&a&&n?.length===a);if(!h){var m=!!(!f.selected&&o&&n?.length===o);if(!m){var x=n?W8([],n,!0):[];if(f.selected){var g=x.findIndex(function(v){return Mr(u,v)});x.splice(g,1)}else x.push(u);(p=t.onSelect)===null||p===void 0||p.call(t,x,u,f,c)}}},s={disabled:[]};n&&s.disabled.push(function(u){var f=o&&n.length>o-1,c=n.some(function(d){return Mr(d,u)});return!!(f&&!c)});var l={selected:n,onDayClick:i,modifiers:s};return(0,X.jsx)(SO.Provider,{value:l,children:r})}function CO(){var e=(0,Ee.useContext)(SO);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function G0e(e,t){var r=t||{},n=r.from,a=r.to;return n&&a?Mr(a,e)&&Mr(n,e)?void 0:Mr(a,e)?{from:a,to:void 0}:Mr(n,e)?void 0:_g(n,e)?{from:e,to:a}:{from:n,to:e}:a?_g(e,a)?{from:a,to:e}:{from:e,to:a}:n?TC(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var PO=(0,Ee.createContext)(void 0);function K0e(e){if(!rh(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return(0,X.jsx)(PO.Provider,{value:t,children:e.children})}return(0,X.jsx)(X0e,{initialProps:e.initialProps,children:e.children})}function X0e(e){var t=e.initialProps,r=e.children,n=t.selected,a=n||{},o=a.from,i=a.to,s=t.min,l=t.max,u=function(p,h,m){var x,g;(x=t.onDayClick)===null||x===void 0||x.call(t,p,h,m);var v=G0e(p,n);(g=t.onSelect)===null||g===void 0||g.call(t,v,p,h,m)},f={range_start:[],range_end:[],range_middle:[],disabled:[]};if(o?(f.range_start=[o],i?(f.range_end=[i],Mr(o,i)||(f.range_middle=[{after:o,before:i}])):f.range_end=[o]):i&&(f.range_start=[i],f.range_end=[i]),s&&(o&&!i&&f.disabled.push({after:Dg(o,s-1),before:Xe(o,s-1)}),o&&i&&f.disabled.push({after:o,before:Xe(o,s-1)}),!o&&i&&f.disabled.push({after:Dg(i,s-1),before:Xe(i,s-1)})),l){if(o&&!i&&(f.disabled.push({before:Xe(o,-l+1)}),f.disabled.push({after:Xe(o,l-1)})),o&&i){var c=Xn(i,o)+1,d=l-c;f.disabled.push({before:Dg(o,d)}),f.disabled.push({after:Xe(i,d)})}!o&&i&&(f.disabled.push({before:Xe(i,-l+1)}),f.disabled.push({after:Xe(i,l-1)}))}return(0,X.jsx)(PO.Provider,{value:{selected:n,onDayClick:u,modifiers:f},children:r})}function IO(){var e=(0,Ee.useContext)(PO);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Nb(e){return Array.isArray(e)?W8([],e,!0):e!==void 0?[e]:[]}function Y0e(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],a=r[1];t[n]=Nb(a)}),t}var ja;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(ja||(ja={}));var J0e=ja.Selected,ni=ja.Disabled,Q0e=ja.Hidden,Z0e=ja.Today,yO=ja.RangeEnd,xO=ja.RangeMiddle,bO=ja.RangeStart,eSe=ja.Outside;function tSe(e,t,r){var n,a=(n={},n[J0e]=Nb(e.selected),n[ni]=Nb(e.disabled),n[Q0e]=Nb(e.hidden),n[Z0e]=[e.today],n[yO]=[],n[xO]=[],n[bO]=[],n[eSe]=[],n);return e.fromDate&&a[ni].push({before:e.fromDate}),e.toDate&&a[ni].push({after:e.toDate}),th(e)?a[ni]=a[ni].concat(t.modifiers[ni]):rh(e)&&(a[ni]=a[ni].concat(r.modifiers[ni]),a[bO]=r.modifiers[bO],a[xO]=r.modifiers[xO],a[yO]=r.modifiers[yO]),a}var K8=(0,Ee.createContext)(void 0);function rSe(e){var t=Qe(),r=CO(),n=IO(),a=tSe(t,r,n),o=Y0e(t.modifiers),i=he(he({},a),o);return(0,X.jsx)(K8.Provider,{value:i,children:e.children})}function X8(){var e=(0,Ee.useContext)(K8);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function nSe(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function aSe(e){return!!(e&&typeof e=="object"&&"from"in e)}function oSe(e){return!!(e&&typeof e=="object"&&"after"in e)}function iSe(e){return!!(e&&typeof e=="object"&&"before"in e)}function sSe(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function lSe(e,t){var r,n=t.from,a=t.to;if(n&&a){var o=Xn(a,n)<0;o&&(r=[a,n],n=r[0],a=r[1]);var i=Xn(e,n)>=0&&Xn(a,e)>=0;return i}return a?Mr(a,e):n?Mr(n,e):!1}function uSe(e){return $d(e)}function cSe(e){return Array.isArray(e)&&e.every($d)}function fSe(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(uSe(r))return Mr(e,r);if(cSe(r))return r.includes(e);if(aSe(r))return lSe(e,r);if(sSe(r))return r.dayOfWeek.includes(e.getDay());if(nSe(r)){var n=Xn(r.before,e),a=Xn(r.after,e),o=n>0,i=a<0,s=_g(r.before,r.after);return s?i&&o:o||i}return oSe(r)?Xn(e,r.after)>0:iSe(r)?Xn(r.before,e)>0:typeof r=="function"?r(e):!1})}function LO(e,t,r){var n=Object.keys(t).reduce(function(o,i){var s=t[i];return fSe(e,s)&&o.push(i),o},[]),a={};return n.forEach(function(o){return a[o]=!0}),r&&!Mg(e,r)&&(a.outside=!0),a}function dSe(e,t){for(var r=Sr(e[0]),n=Ag(e[e.length-1]),a,o,i=r;i<=n;){var s=LO(i,t),l=!s.disabled&&!s.hidden;if(!l){i=Xe(i,1);continue}if(s.selected)return i;s.today&&!o&&(o=i),a||(a=i),i=Xe(i,1)}return o||a}var pSe=365;function Y8(e,t){var r=t.moveBy,n=t.direction,a=t.context,o=t.modifiers,i=t.retry,s=i===void 0?{count:0,lastFocused:e}:i,l=a.weekStartsOn,u=a.fromDate,f=a.toDate,c=a.locale,d={day:Xe,week:Lg,month:xn,year:HD,startOfWeek:function(x){return a.ISOWeek?Oa(x):wr(x,{locale:c,weekStartsOn:l})},endOfWeek:function(x){return a.ISOWeek?kC(x):Gd(x,{locale:c,weekStartsOn:l})}},p=d[r](e,n==="after"?1:-1);n==="before"&&u?p=WD([u,p]):n==="after"&&f&&(p=zD([f,p]));var h=!0;if(o){var m=LO(p,o);h=!m.disabled&&!m.hidden}return h?p:s.count>pSe?s.lastFocused:Y8(p,{moveBy:r,direction:n,context:a,modifiers:o,retry:he(he({},s),{count:s.count+1})})}var J8=(0,Ee.createContext)(void 0);function mSe(e){var t=nh(),r=X8(),n=(0,Ee.useState)(),a=n[0],o=n[1],i=(0,Ee.useState)(),s=i[0],l=i[1],u=dSe(t.displayMonths,r),f=a??(s&&t.isDateDisplayed(s))?s:u,c=function(){l(a),o(void 0)},d=function(x){o(x)},p=Qe(),h=function(x,g){if(a){var v=Y8(a,{moveBy:x,direction:g,context:p,modifiers:r});Mr(a,v)||(t.goToDate(v,a),d(v))}},m={focusedDay:a,focusTarget:f,blur:c,focus:d,focusDayAfter:function(){return h("day","after")},focusDayBefore:function(){return h("day","before")},focusWeekAfter:function(){return h("week","after")},focusWeekBefore:function(){return h("week","before")},focusMonthBefore:function(){return h("month","before")},focusMonthAfter:function(){return h("month","after")},focusYearBefore:function(){return h("year","before")},focusYearAfter:function(){return h("year","after")},focusStartOfWeek:function(){return h("startOfWeek","before")},focusEndOfWeek:function(){return h("endOfWeek","after")}};return(0,X.jsx)(J8.Provider,{value:m,children:e.children})}function AO(){var e=(0,Ee.useContext)(J8);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function hSe(e,t){var r=X8(),n=LO(e,r,t);return n}var OO=(0,Ee.createContext)(void 0);function vSe(e){if(!Bb(e.initialProps)){var t={selected:void 0};return(0,X.jsx)(OO.Provider,{value:t,children:e.children})}return(0,X.jsx)(gSe,{initialProps:e.initialProps,children:e.children})}function gSe(e){var t=e.initialProps,r=e.children,n=function(o,i,s){var l,u,f;if((l=t.onDayClick)===null||l===void 0||l.call(t,o,i,s),i.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,o,i,s);return}(f=t.onSelect)===null||f===void 0||f.call(t,o,o,i,s)},a={selected:t.selected,onDayClick:n};return(0,X.jsx)(OO.Provider,{value:a,children:r})}function Q8(){var e=(0,Ee.useContext)(OO);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function ySe(e,t){var r=Qe(),n=Q8(),a=CO(),o=IO(),i=AO(),s=i.focusDayAfter,l=i.focusDayBefore,u=i.focusWeekAfter,f=i.focusWeekBefore,c=i.blur,d=i.focus,p=i.focusMonthBefore,h=i.focusMonthAfter,m=i.focusYearBefore,x=i.focusYearAfter,g=i.focusStartOfWeek,v=i.focusEndOfWeek,w=function(C){var L,O,E,k;Bb(r)?(L=n.onDayClick)===null||L===void 0||L.call(n,e,t,C):th(r)?(O=a.onDayClick)===null||O===void 0||O.call(a,e,t,C):rh(r)?(E=o.onDayClick)===null||E===void 0||E.call(o,e,t,C):(k=r.onDayClick)===null||k===void 0||k.call(r,e,t,C)},b=function(C){var L;d(e),(L=r.onDayFocus)===null||L===void 0||L.call(r,e,t,C)},y=function(C){var L;c(),(L=r.onDayBlur)===null||L===void 0||L.call(r,e,t,C)},S=function(C){var L;(L=r.onDayMouseEnter)===null||L===void 0||L.call(r,e,t,C)},P=function(C){var L;(L=r.onDayMouseLeave)===null||L===void 0||L.call(r,e,t,C)},A=function(C){var L;(L=r.onDayPointerEnter)===null||L===void 0||L.call(r,e,t,C)},_=function(C){var L;(L=r.onDayPointerLeave)===null||L===void 0||L.call(r,e,t,C)},T=function(C){var L;(L=r.onDayTouchCancel)===null||L===void 0||L.call(r,e,t,C)},D=function(C){var L;(L=r.onDayTouchEnd)===null||L===void 0||L.call(r,e,t,C)},N=function(C){var L;(L=r.onDayTouchMove)===null||L===void 0||L.call(r,e,t,C)},j=function(C){var L;(L=r.onDayTouchStart)===null||L===void 0||L.call(r,e,t,C)},B=function(C){var L;(L=r.onDayKeyUp)===null||L===void 0||L.call(r,e,t,C)},H=function(C){var L;switch(C.key){case"ArrowLeft":C.preventDefault(),C.stopPropagation(),r.dir==="rtl"?s():l();break;case"ArrowRight":C.preventDefault(),C.stopPropagation(),r.dir==="rtl"?l():s();break;case"ArrowDown":C.preventDefault(),C.stopPropagation(),u();break;case"ArrowUp":C.preventDefault(),C.stopPropagation(),f();break;case"PageUp":C.preventDefault(),C.stopPropagation(),C.shiftKey?m():p();break;case"PageDown":C.preventDefault(),C.stopPropagation(),C.shiftKey?x():h();break;case"Home":C.preventDefault(),C.stopPropagation(),g();break;case"End":C.preventDefault(),C.stopPropagation(),v();break}(L=r.onDayKeyDown)===null||L===void 0||L.call(r,e,t,C)},I={onClick:w,onFocus:b,onBlur:y,onKeyDown:H,onKeyUp:B,onMouseEnter:S,onMouseLeave:P,onPointerEnter:A,onPointerLeave:_,onTouchCancel:T,onTouchEnd:D,onTouchMove:N,onTouchStart:j};return I}function xSe(){var e=Qe(),t=Q8(),r=CO(),n=IO(),a=Bb(e)?t.selected:th(e)?r.selected:rh(e)?n.selected:void 0;return a}function bSe(e){return Object.values(ja).includes(e)}function wSe(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var a=e.modifiersClassNames[n];if(a)r.push(a);else if(bSe(n)){var o=e.classNames["day_".concat(n)];o&&r.push(o)}}),r}function SSe(e,t){var r=he({},e.styles.day);return Object.keys(t).forEach(function(n){var a;r=he(he({},r),(a=e.modifiersStyles)===null||a===void 0?void 0:a[n])}),r}function CSe(e,t,r){var n,a,o,i=Qe(),s=AO(),l=hSe(e,t),u=ySe(e,l),f=xSe(),c=!!(i.onDayClick||i.mode!=="default");(0,Ee.useEffect)(function(){var S;l.outside||s.focusedDay&&c&&Mr(s.focusedDay,e)&&((S=r.current)===null||S===void 0||S.focus())},[s.focusedDay,e,r,c,l.outside]);var d=wSe(i,l).join(" "),p=SSe(i,l),h=!!(l.outside&&!i.showOutsideDays||l.hidden),m=(o=(a=i.components)===null||a===void 0?void 0:a.DayContent)!==null&&o!==void 0?o:z0e,x=(0,X.jsx)(m,{date:e,displayMonth:t,activeModifiers:l}),g={style:p,className:d,children:x,role:"gridcell"},v=s.focusTarget&&Mr(s.focusTarget,e)&&!l.outside,w=s.focusedDay&&Mr(s.focusedDay,e),b=he(he(he({},g),(n={disabled:l.disabled,role:"gridcell"},n["aria-selected"]=l.selected,n.tabIndex=w||v?0:-1,n)),u),y={isButton:c,isHidden:h,activeModifiers:l,selectedDays:f,buttonProps:b,divProps:g};return y}function PSe(e){var t=(0,Ee.useRef)(null),r=CSe(e.date,e.displayMonth,t);return r.isHidden?(0,X.jsx)("div",{role:"gridcell"}):r.isButton?(0,X.jsx)(Fb,he({name:"day",ref:t},r.buttonProps)):(0,X.jsx)("div",he({},r.divProps))}function ISe(e){var t=e.number,r=e.dates,n=Qe(),a=n.onWeekNumberClick,o=n.styles,i=n.classNames,s=n.locale,l=n.labels.labelWeekNumber,u=n.formatters.formatWeekNumber,f=u(Number(t),{locale:s});if(!a)return(0,X.jsx)("span",{className:i.weeknumber,style:o.weeknumber,children:f});var c=l(Number(t),{locale:s}),d=function(p){a(t,r,p)};return(0,X.jsx)(Fb,{name:"week-number","aria-label":c,className:i.weeknumber,style:o.weeknumber,onClick:d,children:f})}function LSe(e){var t,r,n=Qe(),a=n.styles,o=n.classNames,i=n.showWeekNumber,s=n.components,l=(t=s?.Day)!==null&&t!==void 0?t:PSe,u=(r=s?.WeekNumber)!==null&&r!==void 0?r:ISe,f;return i&&(f=(0,X.jsx)("td",{className:o.cell,style:a.cell,children:(0,X.jsx)(u,{number:e.weekNumber,dates:e.dates})})),(0,X.jsxs)("tr",{className:o.row,style:a.row,children:[f,e.dates.map(function(c){return(0,X.jsx)("td",{className:o.cell,style:a.cell,role:"presentation",children:(0,X.jsx)(l,{displayMonth:e.displayMonth,date:c})},cN(c))})]})}function U8(e,t,r){for(var n=r?.ISOWeek?kC(t):Gd(t,r),a=r?.ISOWeek?Oa(e):wr(e,r),o=Xn(n,a),i=[],s=0;s<=o;s++)i.push(Xe(a,s));var l=i.reduce(function(u,f){var c=r?.ISOWeek?Eg(f):Rg(f,r),d=u.find(function(p){return p.weekNumber===c});return d?(d.dates.push(f),u):(u.push({weekNumber:c,dates:[f]}),u)},[]);return l}function ASe(e,t){var r=U8(Sr(e),Ag(e),t);if(t?.useFixedWeeks){var n=dN(e,t);if(n<6){var a=r[r.length-1],o=a.dates[a.dates.length-1],i=Lg(o,6-n),s=U8(Lg(o,1),i,t);r.push.apply(r,s)}}return r}function OSe(e){var t,r,n,a=Qe(),o=a.locale,i=a.classNames,s=a.styles,l=a.hideHead,u=a.fixedWeeks,f=a.components,c=a.weekStartsOn,d=a.firstWeekContainsDate,p=a.ISOWeek,h=ASe(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:p,locale:o,weekStartsOn:c,firstWeekContainsDate:d}),m=(t=f?.Head)!==null&&t!==void 0?t:W0e,x=(r=f?.Row)!==null&&r!==void 0?r:LSe,g=(n=f?.Footer)!==null&&n!==void 0?n:q0e;return(0,X.jsxs)("table",{id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&(0,X.jsx)(m,{}),(0,X.jsx)("tbody",{className:i.tbody,style:s.tbody,children:h.map(function(v){return(0,X.jsx)(x,{displayMonth:e.displayMonth,dates:v.dates,weekNumber:v.weekNumber},v.weekNumber)})}),(0,X.jsx)(g,{displayMonth:e.displayMonth})]})}function kSe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var ESe=kSe()?Ee.useLayoutEffect:Ee.useEffect,wO=!1,TSe=0;function H8(){return"react-day-picker-".concat(++TSe)}function RSe(e){var t,r=e??(wO?H8():null),n=(0,Ee.useState)(r),a=n[0],o=n[1];return ESe(function(){a===null&&o(H8())},[]),(0,Ee.useEffect)(function(){wO===!1&&(wO=!0)},[]),(t=e??a)!==null&&t!==void 0?t:void 0}function _Se(e){var t,r,n=Qe(),a=n.dir,o=n.classNames,i=n.styles,s=n.components,l=nh().displayMonths,u=RSe(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),f=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,c=[o.month],d=i.month,p=e.displayIndex===0,h=e.displayIndex===l.length-1,m=!p&&!h;a==="rtl"&&(t=[p,h],h=t[0],p=t[1]),p&&(c.push(o.caption_start),d=he(he({},d),i.caption_start)),h&&(c.push(o.caption_end),d=he(he({},d),i.caption_end)),m&&(c.push(o.caption_between),d=he(he({},d),i.caption_between));var x=(r=s?.Caption)!==null&&r!==void 0?r:j0e;return(0,X.jsxs)("div",{className:c.join(" "),style:d,children:[(0,X.jsx)(x,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,X.jsx)(OSe,{id:f,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function MSe(e){var t=Qe(),r=t.classNames,n=t.styles;return(0,X.jsx)("div",{className:r.months,style:n.months,children:e.children})}function DSe(e){var t,r,n=e.initialProps,a=Qe(),o=AO(),i=nh(),s=(0,Ee.useState)(!1),l=s[0],u=s[1];(0,Ee.useEffect)(function(){a.initialFocus&&o.focusTarget&&(l||(o.focus(o.focusTarget),u(!0)))},[a.initialFocus,l,o.focus,o.focusTarget,o]);var f=[a.classNames.root,a.className];a.numberOfMonths>1&&f.push(a.classNames.multiple_months),a.showWeekNumber&&f.push(a.classNames.with_weeknumber);var c=he(he({},a.styles.root),a.style),d=Object.keys(n).filter(function(h){return h.startsWith("data-")}).reduce(function(h,m){var x;return he(he({},h),(x={},x[m]=n[m],x))},{}),p=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:MSe;return(0,X.jsx)("div",he({className:f.join(" "),style:c,dir:a.dir,id:a.id,nonce:n.nonce,title:n.title,lang:n.lang},d,{children:(0,X.jsx)(p,{children:i.displayMonths.map(function(h,m){return(0,X.jsx)(_Se,{displayIndex:m,displayMonth:h},m)})})}))}function NSe(e){var t=e.children,r=i0e(e,["children"]);return(0,X.jsx)(I0e,{initialProps:r,children:(0,X.jsx)(D0e,{children:(0,X.jsx)(vSe,{initialProps:r,children:(0,X.jsx)(V0e,{initialProps:r,children:(0,X.jsx)(K0e,{initialProps:r,children:(0,X.jsx)(rSe,{children:(0,X.jsx)(mSe,{children:t})})})})})})})}function Z8(e){return(0,X.jsx)(NSe,he({},e,{children:(0,X.jsx)(DSe,{initialProps:e})}))}function kO(a){var o=a,{className:e,classNames:t,showOutsideDays:r=!0}=o,n=Ie(o,["className","classNames","showOutsideDays"]);return jb.createElement(Z8,fe({showOutsideDays:r,className:ve("p-3",e),classNames:fe({months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:ve(Th({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:ve(Th({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible"},t),components:{IconLeft:s=>{var i=Ie(s,[]);return jb.createElement(Rf,{className:"h-4 w-4"})},IconRight:s=>{var i=Ie(s,[]);return jb.createElement(ms,{className:"h-4 w-4"})}}},n))}kO.displayName="Calendar";var oh=R(G());var ft=R(G(),1);var Rt=R(_t(),1),EO="Popover",[eG,m$e]=Xr(EO,[No]),ah=No(),[FSe,is]=eG(EO),tG=e=>{let{__scopePopover:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,s=ah(t),l=ft.useRef(null),[u,f]=ft.useState(!1),[c=!1,d]=So({prop:n,defaultProp:a,onChange:o});return(0,Rt.jsx)(js,{...s,children:(0,Rt.jsx)(FSe,{scope:t,contentId:tn(),triggerRef:l,open:c,onOpenChange:d,onOpenToggle:ft.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:ft.useCallback(()=>f(!0),[]),onCustomAnchorRemove:ft.useCallback(()=>f(!1),[]),modal:i,children:r})})};tG.displayName=EO;var rG="PopoverAnchor",BSe=ft.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=is(rG,r),o=ah(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=a;return ft.useEffect(()=>(i(),()=>s()),[i,s]),(0,Rt.jsx)(qs,{...o,...n,ref:t})});BSe.displayName=rG;var nG="PopoverTrigger",aG=ft.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=is(nG,r),o=ah(r),i=Le(t,a.triggerRef),s=(0,Rt.jsx)(xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":uG(a.open),...n,ref:i,onClick:le(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?s:(0,Rt.jsx)(qs,{asChild:!0,...o,children:s})});aG.displayName=nG;var TO="PopoverPortal",[jSe,qSe]=eG(TO,{forceMount:void 0}),oG=e=>{let{__scopePopover:t,forceMount:r,children:n,container:a}=e,o=is(TO,t);return(0,Rt.jsx)(jSe,{scope:t,forceMount:r,children:(0,Rt.jsx)(Fo,{present:r||o.open,children:(0,Rt.jsx)(Us,{asChild:!0,container:a,children:n})})})};oG.displayName=TO;var mf="PopoverContent",iG=ft.forwardRef((e,t)=>{let r=qSe(mf,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,o=is(mf,e.__scopePopover);return(0,Rt.jsx)(Fo,{present:n||o.open,children:o.modal?(0,Rt.jsx)(USe,{...a,ref:t}):(0,Rt.jsx)(HSe,{...a,ref:t})})});iG.displayName=mf;var USe=ft.forwardRef((e,t)=>{let r=is(mf,e.__scopePopover),n=ft.useRef(null),a=Le(t,n),o=ft.useRef(!1);return ft.useEffect(()=>{let i=n.current;if(i)return Au(i)},[]),(0,Rt.jsx)(Vs,{as:Kr,allowPinchZoom:!0,children:(0,Rt.jsx)(sG,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,i=>{i.preventDefault(),o.current||r.triggerRef.current?.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,i=>{let s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,u=s.button===2||l;o.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:le(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),HSe=ft.forwardRef((e,t)=>{let r=is(mf,e.__scopePopover),n=ft.useRef(!1),a=ft.useRef(!1);return(0,Rt.jsx)(sG,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(n.current||r.triggerRef.current?.focus(),o.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));let i=o.target;r.triggerRef.current?.contains(i)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),sG=ft.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...c}=e,d=is(mf,r),p=ah(r);return bu(),(0,Rt.jsx)(Rs,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,Rt.jsx)(Ts,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1),children:(0,Rt.jsx)(Pu,{"data-state":uG(d.open),role:"dialog",id:d.contentId,...p,...c,ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),lG="PopoverClose",WSe=ft.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=is(lG,r);return(0,Rt.jsx)(xe.button,{type:"button",...n,ref:t,onClick:le(e.onClick,()=>a.onOpenChange(!1))})});WSe.displayName=lG;var zSe="PopoverArrow",VSe=ft.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=ah(r);return(0,Rt.jsx)(Iu,{...a,...n,ref:t})});VSe.displayName=zSe;function uG(e){return e?"open":"closed"}var cG=tG;var fG=aG,dG=oG,RO=iG;var pG=cG,mG=fG,_O=oh.forwardRef((o,a)=>{var i=o,{className:e,align:t="center",sideOffset:r=4}=i,n=Ie(i,["className","align","sideOffset"]);return oh.createElement(dG,null,oh.createElement(RO,fe({ref:a,align:t,sideOffset:r,className:ve("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},n)))});_O.displayName=RO.displayName;var Jt=R(G()),GSe=R(_t());function NO(){return NO=Object.assign?Object.assign.bind():function(e){for(var t=1;t'),!0):t?e.some(function(r){return t.includes(r)})||e.includes("*"):!0}var tCe=function(t,r,n){n===void 0&&(n=!1);var a=r.alt,o=r.meta,i=r.mod,s=r.shift,l=r.ctrl,u=r.keys,f=t.key,c=t.code,d=t.ctrlKey,p=t.metaKey,h=t.shiftKey,m=t.altKey,x=ss(c),g=f.toLowerCase();if(!(u!=null&&u.includes(x))&&!(u!=null&&u.includes(g))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(x))return!1;if(!n){if(a===!m&&g!=="alt"||s===!h&&g!=="shift")return!1;if(i){if(!p&&!d)return!1}else if(o===!p&&g!=="meta"&&g!=="os"||l===!d&&g!=="ctrl"&&g!=="control")return!1}return u&&u.length===1&&(u.includes(g)||u.includes(x))?!0:u?YSe(u):!u},rCe=(0,Jt.createContext)(void 0),nCe=function(){return(0,Jt.useContext)(rCe)};function bG(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(r,n){return r&&bG(e[n],t[n])},!0):e===t}var aCe=(0,Jt.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),oCe=function(){return(0,Jt.useContext)(aCe)};function iCe(e){var t=(0,Jt.useRef)(void 0);return bG(t.current,e)||(t.current=e),t.current}var hG=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},sCe=typeof window<"u"?Jt.useLayoutEffect:Jt.useEffect;function ha(e,t,r,n){var a=(0,Jt.useRef)(null),o=(0,Jt.useRef)(!1),i=r instanceof Array?n instanceof Array?void 0:n:r,s=FO(e)?e.join(i?.splitKey):e,l=r instanceof Array?r:n instanceof Array?n:void 0,u=(0,Jt.useCallback)(t,l??[]),f=(0,Jt.useRef)(u);l?f.current=u:f.current=t;var c=iCe(i),d=oCe(),p=d.enabledScopes,h=nCe();return sCe(function(){if(!(c?.enabled===!1||!eCe(p,c?.scopes))){var m=function(b,y){var S;if(y===void 0&&(y=!1),!(ZSe(b)&&!xG(b,c?.enableOnFormTags))){if(a.current!==null){var P=a.current.getRootNode();if((P instanceof Document||P instanceof ShadowRoot)&&P.activeElement!==a.current&&!a.current.contains(P.activeElement)){hG(b);return}}(S=b.target)!=null&&S.isContentEditable&&!(c!=null&&c.enableOnContentEditable)||MO(s,c?.splitKey).forEach(function(A){var _,T=DO(A,c?.combinationKey);if(tCe(b,T,c?.ignoreModifiers)||(_=T.keys)!=null&&_.includes("*")){if(c!=null&&c.ignoreEventWhen!=null&&c.ignoreEventWhen(b)||y&&o.current)return;if(JSe(b,T,c?.preventDefault),!QSe(b,T,c?.enabled)){hG(b);return}f.current(b,T),y||(o.current=!0)}})}},x=function(b){b.key!==void 0&&(gG(ss(b.code)),(c?.keydown===void 0&&c?.keyup!==!0||c!=null&&c.keydown)&&m(b))},g=function(b){b.key!==void 0&&(yG(ss(b.code)),o.current=!1,c!=null&&c.keyup&&m(b,!0))},v=a.current||i?.document||document;return v.addEventListener("keyup",g),v.addEventListener("keydown",x),h&&MO(s,c?.splitKey).forEach(function(w){return h.addHotkey(DO(w,c?.combinationKey,c?.description))}),function(){v.removeEventListener("keyup",g),v.removeEventListener("keydown",x),h&&MO(s,c?.splitKey).forEach(function(w){return h.removeHotkey(DO(w,c?.combinationKey,c?.description))})}}},[s,c,p]),a}var lCe=e=>{let t=new Date,r,n;switch(e){case"today":r=n=t;break;case"yesterday":n=t,r=Xe(t,-1);break;case"last_week":n=t,r=Xe(t,-7);break;case"last_30_days":n=t,r=Xe(t,-30);break;case"last_90_days":n=t,r=Xe(t,-90);break;case"last_12_month":n=t,r=Xe(t,-365);break;case"previous_week":n=Xe(t,-7),r=Xe(t,-14);break;case"previous_month":n=new Date(t.getFullYear(),t.getMonth(),0),r=new Date(t.getFullYear(),t.getMonth()-1,1);break;case"previous_quarter":let a=Math.floor(t.getMonth()/3);n=new Date(t.getFullYear(),a*3,0),r=new Date(t.getFullYear(),(a-1)*3,1);break;case"previous_year":n=new Date(t.getFullYear()-1,11,31),r=new Date(t.getFullYear()-1,0,1);break;case"all_time":r=new Date(0),n=t;break;default:r=n=t}return{from:r,to:n}};function wG({dateRange:e,pushEvent:t}){let[r,n]=Fe.useState({from:e.from,to:e.to}),a=o=>{let{from:i,to:s}=lCe(o);n({from:i,to:s}),t("set_date",{value:{from:Ce(i,"yyyy-MM-dd 00:00:00"),to:Ce(s,"yyyy-MM-dd 23:59:59")}})};return ha("t",()=>a("today"),[]),ha("ctrl+t",()=>a("yesterday"),[]),ha("w",()=>a("last_week"),[]),ha("m",()=>a("last_30_days"),[]),ha("q",()=>a("last_90_days"),[]),ha("y",()=>a("last_12_month"),[]),ha("ctrl+w",()=>a("previous_week"),[]),ha("ctrl+m",()=>a("previous_month"),[]),ha("ctrl+q",()=>a("previous_quarter"),[]),ha("ctrl+y",()=>a("previous_year"),[]),ha("a",()=>a("all_time"),[]),Fe.createElement("div",{className:ve("grid gap-2")},Fe.createElement(pG,null,Fe.createElement(mG,{asChild:!0},Fe.createElement(jf,{id:"date",variant:"outline",className:ve("w-[276px] justify-start text-left font-normal",!r&&"text-muted-foreground")},Fe.createElement(Tf,{className:"mr-2 h-4 w-4"}),r!=null&&r.from?r.to?Fe.createElement(Fe.Fragment,null,Ce(r.from,"dd LLL, y")," -"," ",Ce(r.to,"dd LLL, y")):Ce(r.from,"dd LLL, y"):Fe.createElement("span",null,"Pick a date"))),Fe.createElement(_O,{className:"w-auto p-0",align:"end"},Fe.createElement(rs,{onValueChange:o=>{a(o)}},Fe.createElement(ti,null,Fe.createElement(ns,{placeholder:"Select"})),Fe.createElement(ri,{position:"popper"},Fe.createElement(gt,{value:"today"},"Today"),Fe.createElement(gt,{value:"yesterday"},"Yesterday"),Fe.createElement(gt,{value:"last_week"},"Last week"),Fe.createElement(Ym,{className:"my-2"}),Fe.createElement(gt,{value:"last_30_days"},"Last 30 days"),Fe.createElement(gt,{value:"last_90_days"},"Last 90 days"),Fe.createElement(gt,{value:"last_12_month"},"Last 12 month"),Fe.createElement(Ym,{className:"my-2"}),Fe.createElement(gt,{value:"previous_month"},"Previous month"),Fe.createElement(gt,{value:"previous_quarter"},"Previous quarter"),Fe.createElement(Ym,{className:"my-2"}),Fe.createElement(gt,{value:"all_time"},"All time"))),Fe.createElement(kO,{initialFocus:!0,mode:"range",defaultMonth:r==null?void 0:r.from,selected:r,onSelect:o=>{if(n(o),o!=null&&o.from&&(o!=null&&o.to)){let i=Ce(o.from,"yyyy-MM-dd 00:00:00"),s=Ce(o.to,"yyyy-MM-dd 23:59:59");t("set_date",{value:{from:i,to:s}})}},numberOfMonths:1}))))}var _n=R(G());var uCe={hits:{label:"Hits",color:"hsl(var(--chart-1))"}};function SG({statData:e,statUnit:t,statTitle:r,chartData:n,dateRange:a}){return _n.createElement(Ur,null,_n.createElement(Hr,{className:"p-4 pb-0"},_n.createElement(Wr,null,r),_n.createElement(zr,null,Ce(a.from,"dd LLL, y")," -"," ",Ce(a.to,"dd LLL, y"))),_n.createElement(Vr,{className:"flex flex-row items-baseline gap-4 p-4 pt-0"},_n.createElement("div",{className:"flex items-baseline gap-1 text-xl font-bold tabular-nums leading-none"},t==="time"?e<6e4?`${(e/1e3).toFixed(2)}s`:`${(e/6e4).toFixed(2)}m`:kh(e,2),_n.createElement("span",{className:"text-sm font-normal text-muted-foreground"},t,"/period")),_n.createElement($r,{config:uCe,className:"ml-auto w-[72px]"},_n.createElement(Zo,{accessibilityLayer:!0,margin:{left:0,right:0,top:0,bottom:0},data:n},_n.createElement(sr,{dataKey:"hits",fill:"var(--color-hits)",radius:2,fillOpacity:.2,activeIndex:n.length-1,activeBar:_n.createElement(Yo,{fillOpacity:.8})}),_n.createElement(qt,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:4,hide:!0})))))}var At=R(G());var cCe={views:{label:"Total requests"},hits:{label:"Total requests",color:"hsl(var(--chart-1))"}};function CG({chartData:e,dateRange:t,pushEvent:r}){let{interval:n,setInterval:a}=pf(),o=i=>{a(i),r("set_interval",{value:{interval:i}})};return At.createElement(Ur,null,At.createElement(Hr,{className:"flex items-center gap-2 py-5 space-y-0 border-b sm:flex-row"},At.createElement("div",{className:"grid flex-1 gap-1 text-center sm:text-left"},At.createElement(Wr,null,"Total requests"),At.createElement(zr,null,"Showing total requests for ",Ce(t.from,"dd LLL, y")," -"," ",Ce(t.to,"dd LLL, y"))),At.createElement(rs,{value:n,onValueChange:o},At.createElement(ti,{className:"w-[160px] rounded-lg sm:ml-auto","aria-label":"Select a value"},At.createElement(ns,{placeholder:"Interval"})),At.createElement(ri,{className:"rounded-xl"},At.createElement(gt,{value:"hour",className:"rounded-lg"},"Per hour"),At.createElement(gt,{value:"day",className:"rounded-lg"},"Per day"),At.createElement(gt,{value:"month",className:"rounded-lg"},"Per month")))),At.createElement(Vr,{className:"px-2 sm:p-6"},At.createElement($r,{config:cCe,className:"aspect-auto h-[250px] w-full"},At.createElement(Zo,{accessibilityLayer:!0,data:e,margin:{left:12,right:12}},At.createElement(pa,{vertical:!1}),At.createElement(qt,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short"},n!=="month"&&{day:"numeric"}),n==="month"&&{year:"numeric"}))}),At.createElement(ma,{content:At.createElement(Rn,{className:"w-[170px]",nameKey:"views",labelFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short",year:"numeric"},n!=="month"&&{day:"numeric"}),n==="hour"&&{hour:"numeric"}))})}),At.createElement(sr,{dataKey:"hits",fill:"var(--color-hits)"})))))}var PG={ThemeToggle:BD,VisitsChart:M8,ResChart:D8,DeviceChart:N8,StatusChart:F8,PopularChart:B8,DateRangePicker:wG,SingleStat:SG,RequestsChart:CG};var AG=R(G()),OG=R(LG());function fCe(e,t){let r=e.getAttribute(t);return r?JSON.parse(r):{}}function dCe(e){return{...fCe(e.el,"data-props"),pushEvent:e.pushEvent.bind(e),pushEventTo:e.pushEventTo.bind(e),handleEvent:e.handleEvent.bind(e),upload:e.upload.bind(e),uploadTo:e.uploadTo.bind(e)}}function jO(e){return{ReactHook:{_render(){this._root.render(AG.default.createElement(this._Component,dCe(this)))},mounted(){let r=this.el.getAttribute("data-name");if(!r)throw new Error("Component name must be provided");this._Component=e[r],this._root=OG.default.createRoot(this.el),this._render()},updated(){this._root&&this._render()},destroyed(){this._root&&window.addEventListener("phx:page-loading-stop",()=>this._root.unmount(),{once:!0})}}}}var pCe=fe({},jO(PG)),mCe=document.querySelector("meta[name='csrf-token']").getAttribute("content"),kG=new Ek("/live",$O,{longPollFallbackMs:2500,params:{_csrf_token:mCe},hooks:pCe});qb.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",e=>qb.default.show(300));window.addEventListener("phx:page-loading-stop",e=>qb.default.hide());kG.connect();window.liveSocket=kG;var hCe=()=>typeof localStorage!="undefined"&&localStorage.getItem("theme")?localStorage.getItem("theme"):window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",vCe=hCe()==="dark";document.documentElement.classList[vCe?"add":"remove"]("dark");typeof localStorage!="undefined"&&new MutationObserver(()=>{let t=document.documentElement.classList.contains("dark");localStorage.setItem("theme",t?"dark":"light")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]});})();
+`)}}):null},ma=Cn,Rn=Pe.forwardRef(({active:e,payload:t,className:r,indicator:n="dot",hideLabel:a=!1,hideIndicator:o=!1,label:i,labelFormatter:s,labelClassName:l,formatter:u,color:f,nameKey:c,labelKey:d},p)=>{let{config:h}=H$(),m=Pe.useMemo(()=>{var y;if(a||!(t!=null&&t.length))return null;let[g]=t,v=`${d||g.dataKey||g.name||"value"}`,w=QA(h,g,v),b=!d&&typeof i=="string"?((y=h[i])==null?void 0:y.label)||i:w==null?void 0:w.label;return s?Pe.createElement("div",{className:ve("font-medium",l)},s(b,t)):b?Pe.createElement("div",{className:ve("font-medium",l)},b):null},[i,s,t,a,l,h,d]);if(!e||!(t!=null&&t.length))return null;let x=t.length===1&&n!=="dot";return Pe.createElement("div",{ref:p,className:ve("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",r)},x?null:m,Pe.createElement("div",{className:"grid gap-1.5"},t.map((g,v)=>{let w=`${c||g.name||g.dataKey||"value"}`,b=QA(h,g,w),y=f||g.payload.fill||g.color;return Pe.createElement("div",{key:g.dataKey,className:ve("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center")},u&&(g==null?void 0:g.value)!==void 0&&g.name?u(g.value,g.name,g,v,g.payload):Pe.createElement(Pe.Fragment,null,b!=null&&b.icon?Pe.createElement(b.icon,null):!o&&Pe.createElement("div",{className:ve("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":x&&n==="dashed"}),style:{"--color-bg":y,"--color-border":y}}),Pe.createElement("div",{className:ve("flex flex-1 justify-between leading-none",x?"items-end":"items-center")},Pe.createElement("div",{className:"grid gap-1.5"},x?m:null,Pe.createElement("span",{className:"text-muted-foreground"},(b==null?void 0:b.label)||g.name)),g.value&&Pe.createElement("span",{className:"font-mono font-medium tabular-nums text-foreground"},g.value.toLocaleString()))))})))});Rn.displayName="ChartTooltip";var kb=ao,Gm=Pe.forwardRef(({className:e,hideIcon:t=!1,payload:r,verticalAlign:n="bottom",nameKey:a},o)=>{let{config:i}=H$();return r!=null&&r.length?Pe.createElement("div",{ref:o,className:ve("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",e)},r.map(s=>{let l=`${a||s.dataKey||"value"}`,u=QA(i,s,l);return Pe.createElement("div",{key:s.value,className:ve("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground")},u!=null&&u.icon&&!t?Pe.createElement(u.icon,null):Pe.createElement("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),u==null?void 0:u.label)})):null});Gm.displayName="ChartLegend";function QA(e,t,r){if(typeof t!="object"||t===null)return;let n="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0,a=r;return r in t&&typeof t[r]=="string"?a=t[r]:n&&r in n&&typeof n[r]=="string"&&(a=n[r]),a in e?e[a]:e[r]}var We=R(G());var ne=R(G(),1),iO=R(Ti(),1);function ZA(e,[t,r]){return Math.min(r,Math.max(t,e))}var Eb=R(G(),1);function W$(e){let t=Eb.useRef({value:e,previous:e});return Eb.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var z$=R(G(),1);var V$=R(_t(),1),Iwe="VisuallyHidden",eO=z$.forwardRef((e,t)=>(0,V$.jsx)(xe.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));eO.displayName=Iwe;var ce=R(_t(),1),Lwe=[" ","Enter","ArrowUp","ArrowDown"],Awe=[" ","Enter"],Xm="Select",[Rb,_b,Owe]=yu(Xm),[ff,JVe]=Xr(Xm,[Owe,No]),Mb=No(),[kwe,es]=ff(Xm),[Ewe,Twe]=ff(Xm),$$=e=>{let{__scopeSelect:t,children:r,open:n,defaultOpen:a,onOpenChange:o,value:i,defaultValue:s,onValueChange:l,dir:u,name:f,autoComplete:c,disabled:d,required:p}=e,h=Mb(t),[m,x]=ne.useState(null),[g,v]=ne.useState(null),[w,b]=ne.useState(!1),y=xu(u),[S=!1,P]=So({prop:n,defaultProp:a,onChange:o}),[A,_]=So({prop:i,defaultProp:s,onChange:l}),T=ne.useRef(null),D=m?!!m.closest("form"):!0,[N,j]=ne.useState(new Set),B=Array.from(N).map(H=>H.props.value).join(";");return(0,ce.jsx)(js,{...h,children:(0,ce.jsxs)(kwe,{required:p,scope:t,trigger:m,onTriggerChange:x,valueNode:g,onValueNodeChange:v,valueNodeHasChildren:w,onValueNodeHasChildrenChange:b,contentId:tn(),value:A,onValueChange:_,open:S,onOpenChange:P,dir:y,triggerPointerDownPosRef:T,disabled:d,children:[(0,ce.jsx)(Rb.Provider,{scope:t,children:(0,ce.jsx)(Ewe,{scope:e.__scopeSelect,onNativeOptionAdd:ne.useCallback(H=>{j(I=>new Set(I).add(H))},[]),onNativeOptionRemove:ne.useCallback(H=>{j(I=>{let C=new Set(I);return C.delete(H),C})},[]),children:r})}),D?(0,ce.jsxs)(g8,{"aria-hidden":!0,required:p,tabIndex:-1,name:f,autoComplete:c,value:A,onChange:H=>_(H.target.value),disabled:d,children:[A===void 0?(0,ce.jsx)("option",{value:""}):null,Array.from(N)]},B):null]})})};$$.displayName=Xm;var G$="SelectTrigger",K$=ne.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:n=!1,...a}=e,o=Mb(r),i=es(G$,r),s=i.disabled||n,l=Le(t,i.onTriggerChange),u=_b(r),[f,c,d]=y8(h=>{let m=u().filter(v=>!v.disabled),x=m.find(v=>v.value===i.value),g=x8(m,h,x);g!==void 0&&i.onValueChange(g.value)}),p=()=>{s||(i.onOpenChange(!0),d())};return(0,ce.jsx)(qs,{asChild:!0,...o,children:(0,ce.jsx)(xe.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":v8(i.value)?"":void 0,...a,ref:l,onClick:le(a.onClick,h=>{h.currentTarget.focus()}),onPointerDown:le(a.onPointerDown,h=>{let m=h.target;m.hasPointerCapture(h.pointerId)&&m.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(p(),i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:le(a.onKeyDown,h=>{let m=f.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&c(h.key),!(m&&h.key===" ")&&Lwe.includes(h.key)&&(p(),h.preventDefault())})})})});K$.displayName=G$;var X$="SelectValue",Y$=ne.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:a,children:o,placeholder:i="",...s}=e,l=es(X$,r),{onValueNodeHasChildrenChange:u}=l,f=o!==void 0,c=Le(t,l.onValueNodeChange);return Ct(()=>{u(f)},[u,f]),(0,ce.jsx)(xe.span,{...s,ref:c,style:{pointerEvents:"none"},children:v8(l.value)?(0,ce.jsx)(ce.Fragment,{children:i}):o})});Y$.displayName=X$;var Rwe="SelectIcon",J$=ne.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...a}=e;return(0,ce.jsx)(xe.span,{"aria-hidden":!0,...a,ref:t,children:n||"\u25BC"})});J$.displayName=Rwe;var _we="SelectPortal",Q$=e=>(0,ce.jsx)(Us,{asChild:!0,...e});Q$.displayName=_we;var Tl="SelectContent",Z$=ne.forwardRef((e,t)=>{let r=es(Tl,e.__scopeSelect),[n,a]=ne.useState();if(Ct(()=>{a(new DocumentFragment)},[]),!r.open){let o=n;return o?iO.createPortal((0,ce.jsx)(e8,{scope:e.__scopeSelect,children:(0,ce.jsx)(Rb.Slot,{scope:e.__scopeSelect,children:(0,ce.jsx)("div",{children:e.children})})}),o):null}return(0,ce.jsx)(t8,{...e,ref:t})});Z$.displayName=Tl;var ei=10,[e8,ts]=ff(Tl),Mwe="SelectContentImpl",t8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:x,...g}=e,v=es(Tl,r),[w,b]=ne.useState(null),[y,S]=ne.useState(null),P=Le(t,W=>b(W)),[A,_]=ne.useState(null),[T,D]=ne.useState(null),N=_b(r),[j,B]=ne.useState(!1),H=ne.useRef(!1);ne.useEffect(()=>{if(w)return Au(w)},[w]),bu();let I=ne.useCallback(W=>{let[ie,...V]=N().map(U=>U.ref.current),[re]=V.slice(-1),Q=document.activeElement;for(let U of W)if(U===Q||(U?.scrollIntoView({block:"nearest"}),U===ie&&y&&(y.scrollTop=0),U===re&&y&&(y.scrollTop=y.scrollHeight),U?.focus(),document.activeElement!==Q))return},[N,y]),C=ne.useCallback(()=>I([A,w]),[I,A,w]);ne.useEffect(()=>{j&&C()},[j,C]);let{onOpenChange:L,triggerPointerDownPosRef:O}=v;ne.useEffect(()=>{if(w){let W={x:0,y:0},ie=re=>{W={x:Math.abs(Math.round(re.pageX)-(O.current?.x??0)),y:Math.abs(Math.round(re.pageY)-(O.current?.y??0))}},V=re=>{W.x<=10&&W.y<=10?re.preventDefault():w.contains(re.target)||L(!1),document.removeEventListener("pointermove",ie),O.current=null};return O.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",V,{capture:!0})}}},[w,L,O]),ne.useEffect(()=>{let W=()=>L(!1);return window.addEventListener("blur",W),window.addEventListener("resize",W),()=>{window.removeEventListener("blur",W),window.removeEventListener("resize",W)}},[L]);let[E,k]=y8(W=>{let ie=N().filter(Q=>!Q.disabled),V=ie.find(Q=>Q.ref.current===document.activeElement),re=x8(ie,W,V);re&&setTimeout(()=>re.ref.current.focus())}),F=ne.useCallback((W,ie,V)=>{let re=!H.current&&!V;(v.value!==void 0&&v.value===ie||re)&&(_(W),re&&(H.current=!0))},[v.value]),q=ne.useCallback(()=>w?.focus(),[w]),$=ne.useCallback((W,ie,V)=>{let re=!H.current&&!V;(v.value!==void 0&&v.value===ie||re)&&D(W)},[v.value]),ee=n==="popper"?tO:r8,J=ee===tO?{side:s,sideOffset:l,align:u,alignOffset:f,arrowPadding:c,collisionBoundary:d,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:x}:{};return(0,ce.jsx)(e8,{scope:r,content:w,viewport:y,onViewportChange:S,itemRefCallback:F,selectedItem:A,onItemLeave:q,itemTextRefCallback:$,focusSelectedItem:C,selectedItemText:T,position:n,isPositioned:j,searchRef:E,children:(0,ce.jsx)(Vs,{as:Kr,allowPinchZoom:!0,children:(0,ce.jsx)(Rs,{asChild:!0,trapped:v.open,onMountAutoFocus:W=>{W.preventDefault()},onUnmountAutoFocus:le(a,W=>{v.trigger?.focus({preventScroll:!0}),W.preventDefault()}),children:(0,ce.jsx)(Ts,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:W=>W.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,ce.jsx)(ee,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:W=>W.preventDefault(),...g,...J,onPlaced:()=>B(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:le(g.onKeyDown,W=>{let ie=W.ctrlKey||W.altKey||W.metaKey;if(W.key==="Tab"&&W.preventDefault(),!ie&&W.key.length===1&&k(W.key),["ArrowUp","ArrowDown","Home","End"].includes(W.key)){let re=N().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(W.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(W.key)){let Q=W.target,U=re.indexOf(Q);re=re.slice(U+1)}setTimeout(()=>I(re)),W.preventDefault()}})})})})})})});t8.displayName=Mwe;var Dwe="SelectItemAlignedPosition",r8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:n,...a}=e,o=es(Tl,r),i=ts(Tl,r),[s,l]=ne.useState(null),[u,f]=ne.useState(null),c=Le(t,P=>f(P)),d=_b(r),p=ne.useRef(!1),h=ne.useRef(!0),{viewport:m,selectedItem:x,selectedItemText:g,focusSelectedItem:v}=i,w=ne.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&u&&m&&x&&g){let P=o.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),_=o.valueNode.getBoundingClientRect(),T=g.getBoundingClientRect();if(o.dir!=="rtl"){let Q=T.left-A.left,U=_.left-Q,be=P.left-U,de=P.width+be,ze=Math.max(de,A.width),Be=window.innerWidth-ei,yt=ZA(U,[ei,Be-ze]);s.style.minWidth=de+"px",s.style.left=yt+"px"}else{let Q=A.right-T.right,U=window.innerWidth-_.right-Q,be=window.innerWidth-P.right-U,de=P.width+be,ze=Math.max(de,A.width),Be=window.innerWidth-ei,yt=ZA(U,[ei,Be-ze]);s.style.minWidth=de+"px",s.style.right=yt+"px"}let D=d(),N=window.innerHeight-ei*2,j=m.scrollHeight,B=window.getComputedStyle(u),H=parseInt(B.borderTopWidth,10),I=parseInt(B.paddingTop,10),C=parseInt(B.borderBottomWidth,10),L=parseInt(B.paddingBottom,10),O=H+I+j+L+C,E=Math.min(x.offsetHeight*5,O),k=window.getComputedStyle(m),F=parseInt(k.paddingTop,10),q=parseInt(k.paddingBottom,10),$=P.top+P.height/2-ei,ee=N-$,J=x.offsetHeight/2,W=x.offsetTop+J,ie=H+I+W,V=O-ie;if(ie<=$){let Q=x===D[D.length-1].ref.current;s.style.bottom="0px";let U=u.clientHeight-m.offsetTop-m.offsetHeight,be=Math.max(ee,J+(Q?q:0)+U+C),de=ie+be;s.style.height=de+"px"}else{let Q=x===D[0].ref.current;s.style.top="0px";let be=Math.max($,H+m.offsetTop+(Q?F:0)+J)+V;s.style.height=be+"px",m.scrollTop=ie-$+m.offsetTop}s.style.margin=`${ei}px 0`,s.style.minHeight=E+"px",s.style.maxHeight=N+"px",n?.(),requestAnimationFrame(()=>p.current=!0)}},[d,o.trigger,o.valueNode,s,u,m,x,g,o.dir,n]);Ct(()=>w(),[w]);let[b,y]=ne.useState();Ct(()=>{u&&y(window.getComputedStyle(u).zIndex)},[u]);let S=ne.useCallback(P=>{P&&h.current===!0&&(w(),v?.(),h.current=!1)},[w,v]);return(0,ce.jsx)(Fwe,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:(0,ce.jsx)("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:(0,ce.jsx)(xe.div,{...a,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});r8.displayName=Dwe;var Nwe="SelectPopperPosition",tO=ne.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:a=ei,...o}=e,i=Mb(r);return(0,ce.jsx)(Pu,{...i,...o,ref:t,align:n,collisionPadding:a,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tO.displayName=Nwe;var[Fwe,sO]=ff(Tl,{}),rO="SelectViewport",n8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:n,...a}=e,o=ts(rO,r),i=sO(rO,r),s=Le(t,o.onViewportChange),l=ne.useRef(0);return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,ce.jsx)(Rb.Slot,{scope:r,children:(0,ce.jsx)(xe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"auto",...a.style},onScroll:le(a.onScroll,u=>{let f=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:d}=i;if(d?.current&&c){let p=Math.abs(l.current-f.scrollTop);if(p>0){let h=window.innerHeight-ei*2,m=parseFloat(c.style.minHeight),x=parseFloat(c.style.height),g=Math.max(m,x);if(g0?b:0,c.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});n8.displayName=rO;var a8="SelectGroup",[Bwe,jwe]=ff(a8),qwe=ne.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=tn();return(0,ce.jsx)(Bwe,{scope:r,id:a,children:(0,ce.jsx)(xe.div,{role:"group","aria-labelledby":a,...n,ref:t})})});qwe.displayName=a8;var o8="SelectLabel",i8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=jwe(o8,r);return(0,ce.jsx)(xe.div,{id:a.id,...n,ref:t})});i8.displayName=o8;var Tb="SelectItem",[Uwe,s8]=ff(Tb),l8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,disabled:a=!1,textValue:o,...i}=e,s=es(Tb,r),l=ts(Tb,r),u=s.value===n,[f,c]=ne.useState(o??""),[d,p]=ne.useState(!1),h=Le(t,g=>l.itemRefCallback?.(g,n,a)),m=tn(),x=()=>{a||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,ce.jsx)(Uwe,{scope:r,value:n,disabled:a,textId:m,isSelected:u,onItemTextChange:ne.useCallback(g=>{c(v=>v||(g?.textContent??"").trim())},[]),children:(0,ce.jsx)(Rb.ItemSlot,{scope:r,value:n,disabled:a,textValue:f,children:(0,ce.jsx)(xe.div,{role:"option","aria-labelledby":m,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...i,ref:h,onFocus:le(i.onFocus,()=>p(!0)),onBlur:le(i.onBlur,()=>p(!1)),onPointerUp:le(i.onPointerUp,x),onPointerMove:le(i.onPointerMove,g=>{a?l.onItemLeave?.():g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:le(i.onPointerLeave,g=>{g.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:le(i.onKeyDown,g=>{l.searchRef?.current!==""&&g.key===" "||(Awe.includes(g.key)&&x(),g.key===" "&&g.preventDefault())})})})})});l8.displayName=Tb;var Km="SelectItemText",u8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:a,...o}=e,i=es(Km,r),s=ts(Km,r),l=s8(Km,r),u=Twe(Km,r),[f,c]=ne.useState(null),d=Le(t,g=>c(g),l.onItemTextChange,g=>s.itemTextRefCallback?.(g,l.value,l.disabled)),p=f?.textContent,h=ne.useMemo(()=>(0,ce.jsx)("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:x}=u;return Ct(()=>(m(h),()=>x(h)),[m,x,h]),(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(xe.span,{id:l.textId,...o,ref:d}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?iO.createPortal(o.children,i.valueNode):null]})});u8.displayName=Km;var c8="SelectItemIndicator",f8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return s8(c8,r).isSelected?(0,ce.jsx)(xe.span,{"aria-hidden":!0,...n,ref:t}):null});f8.displayName=c8;var nO="SelectScrollUpButton",d8=ne.forwardRef((e,t)=>{let r=ts(nO,e.__scopeSelect),n=sO(nO,e.__scopeSelect),[a,o]=ne.useState(!1),i=Le(t,n.onScrollButtonChange);return Ct(()=>{if(r.viewport&&r.isPositioned){let l=function(){let f=u.scrollTop>0;o(f)};var s=l;let u=r.viewport;return l(),u.addEventListener("scroll",l),()=>u.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?(0,ce.jsx)(m8,{...e,ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});d8.displayName=nO;var aO="SelectScrollDownButton",p8=ne.forwardRef((e,t)=>{let r=ts(aO,e.__scopeSelect),n=sO(aO,e.__scopeSelect),[a,o]=ne.useState(!1),i=Le(t,n.onScrollButtonChange);return Ct(()=>{if(r.viewport&&r.isPositioned){let l=function(){let f=u.scrollHeight-u.clientHeight,c=Math.ceil(u.scrollTop)u.removeEventListener("scroll",l)}},[r.viewport,r.isPositioned]),a?(0,ce.jsx)(m8,{...e,ref:i,onAutoScroll:()=>{let{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});p8.displayName=aO;var m8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:n,...a}=e,o=ts("SelectScrollButton",r),i=ne.useRef(null),s=_b(r),l=ne.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return ne.useEffect(()=>()=>l(),[l]),Ct(()=>{s().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),(0,ce.jsx)(xe.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:le(a.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:le(a.onPointerMove,()=>{o.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:le(a.onPointerLeave,()=>{l()})})}),Hwe="SelectSeparator",h8=ne.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,ce.jsx)(xe.div,{"aria-hidden":!0,...n,ref:t})});h8.displayName=Hwe;var oO="SelectArrow",Wwe=ne.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,a=Mb(r),o=es(oO,r),i=ts(oO,r);return o.open&&i.position==="popper"?(0,ce.jsx)(Iu,{...a,...n,ref:t}):null});Wwe.displayName=oO;function v8(e){return e===""||e===void 0}var g8=ne.forwardRef((e,t)=>{let{value:r,...n}=e,a=ne.useRef(null),o=Le(t,a),i=W$(r);return ne.useEffect(()=>{let s=a.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==r&&f){let c=new Event("change",{bubbles:!0});f.call(s,r),s.dispatchEvent(c)}},[i,r]),(0,ce.jsx)(eO,{asChild:!0,children:(0,ce.jsx)("select",{...n,ref:o,defaultValue:r})})});g8.displayName="BubbleSelect";function y8(e){let t=wt(e),r=ne.useRef(""),n=ne.useRef(0),a=ne.useCallback(i=>{let s=r.current+i;t(s),function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),o=ne.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return ne.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,o]}function x8(e,t,r){let a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1,i=zwe(e,Math.max(o,0));a.length===1&&(i=i.filter(u=>u!==r));let l=i.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}function zwe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var b8=$$,lO=K$,w8=Y$,S8=J$,C8=Q$,uO=Z$,P8=n8;var cO=i8,fO=l8,I8=u8,L8=f8,dO=d8,pO=p8,mO=h8;var rs=b8;var ns=w8,ti=We.forwardRef((a,n)=>{var o=a,{className:e,children:t}=o,r=Ie(o,["className","children"]);return We.createElement(lO,fe({ref:n,className:ve("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e)},r),t,We.createElement(S8,{asChild:!0},We.createElement(Bl,{className:"h-4 w-4 opacity-50"})))});ti.displayName=lO.displayName;var A8=We.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ie(a,["className"]);return We.createElement(dO,fe({ref:r,className:ve("flex cursor-default items-center justify-center py-1",e)},t),We.createElement(_f,{className:"h-4 w-4"}))});A8.displayName=dO.displayName;var O8=We.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ie(a,["className"]);return We.createElement(pO,fe({ref:r,className:ve("flex cursor-default items-center justify-center py-1",e)},t),We.createElement(Bl,{className:"h-4 w-4"}))});O8.displayName=pO.displayName;var ri=We.forwardRef((o,a)=>{var i=o,{className:e,children:t,position:r="popper"}=i,n=Ie(i,["className","children","position"]);return We.createElement(C8,null,We.createElement(uO,fe({ref:a,className:ve("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"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),position:r},n),We.createElement(A8,null),We.createElement(P8,{className:ve("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},t),We.createElement(O8,null)))});ri.displayName=uO.displayName;var $we=We.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ie(a,["className"]);return We.createElement(cO,fe({ref:r,className:ve("py-1.5 pl-8 pr-2 text-sm font-semibold",e)},t))});$we.displayName=cO.displayName;var gt=We.forwardRef((a,n)=>{var o=a,{className:e,children:t}=o,r=Ie(o,["className","children"]);return We.createElement(fO,fe({ref:n,className:ve("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e)},r),We.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},We.createElement(L8,null,We.createElement(ps,{className:"h-4 w-4"}))),We.createElement(I8,null,t))});gt.displayName=fO.displayName;var Ym=We.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ie(a,["className"]);return We.createElement(mO,fe({ref:r,className:ve("-mx-1 my-1 h-px bg-muted",e)},t))});Ym.displayName=mO.displayName;var _8=R(G());var E8=R(G()),eh=R(G()),Gwe=E8.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hO=Gwe.ReactCurrentDispatcher,Kwe=()=>(0,eh.useReducer)(()=>({}))[1],Xwe=e=>()=>{let t=`Hook "${e}" no possible to using inside useBetween scope.`;throw console.error(t),new Error(t)},gO=(e,t)=>Object.is(e,t),Jm=(e,t)=>!e||!t||e.length!==t.length||e.some((r,n)=>!gO(r,t[n])),Ywe=()=>typeof window>"u",k8=new Map,Qm=[],Db=0,df=[],os=[],Zm=()=>{},vO=Ywe(),Jwe,as=()=>{let e=Db++;return Qm[e]=Qm[e]||{}},T8={useState(e){let t=as(),r=Zm;return t.initialized||(t.state=typeof e=="function"?e():e,t.set=n=>{if(typeof n=="function")return t.set(n(t.state));gO(n,t.state)||(t.state=n,r())},t.initialized=!0),[t.state,t.set]},useReducer(e,t,r){let n=as(),a=Zm;return n.initialized||(n.state=r?r(t):t,n.dispatch=o=>{let i=e(n.state,o);gO(i,n.state)||(n.state=i,a())},n.initialized=!0),[n.state,n.dispatch]},useEffect(e,t){if(vO)return;let r=as();r.initialized?Jm(r.deps,t)&&(r.deps=t,df.push([r,t,e])):(r.deps=t,r.initialized=!0,df.push([r,t,e]))},useLayoutEffect(e,t){if(vO)return;let r=as();r.initialized?Jm(r.deps,t)&&(r.deps=t,os.push([r,t,e])):(r.deps=t,r.initialized=!0,os.push([r,t,e]))},useCallback(e,t){let r=as();return r.initialized?Jm(r.deps,t)&&(r.deps=t,r.fn=e):(r.fn=e,r.deps=t,r.initialized=!0),r.fn},useMemo(e,t){let r=as();return r.initialized?Jm(r.deps,t)&&(r.deps=t,r.state=e()):(r.deps=t,r.state=e(),r.initialized=!0),r.state},useRef(e){let t=as();return t.initialized||(t.state={current:e},t.initialized=!0),t.state},useImperativeHandle(e,t,r){if(vO)return;let n=as();n.initialized?Jm(n.deps,r)&&(n.deps=r,os.push([n,r,()=>{typeof e=="function"?e(t()):e.current=t()}])):(n.deps=r,n.initialized=!0,os.push([n,r,()=>{typeof e=="function"?e(t()):e.current=t()}]))}};["readContext","useContext","useDebugValue","useResponder","useDeferredValue","useTransition"].forEach(e=>T8[e]=Xwe(e));var Qwe=(e,t)=>{let r=[],n=[],a,o=[],i=!1;t&&t.mock&&(a=t.mock,i=!0);let s=()=>{n.slice().forEach(p=>p())},l=()=>{if(i)return;let p=hO.current,h=[Db,df,os,Qm,Zm],m=!1,x=!0;if(Db=0,df=[],os=[],Qm=r,Zm=()=>{x?m=!0:l()},hO.current=T8,a=e(Jwe),[os,df].forEach(g=>g.forEach(([v,w,b])=>{if(v.deps=w,v.unsub){let S=v.unsub;o=o.filter(P=>P!==S),S()}let y=b();typeof y=="function"?(o.push(y),v.unsub=y):v.unsub=null})),[Db,df,os,Qm,Zm]=h,hO.current=p,x=!1,!m){s();return}l()};return{init:()=>l(),get:()=>a,sub:p=>{n.indexOf(p)===-1&&n.push(p)},unsub:p=>{n=n.filter(h=>h!==p)},unsubs:()=>o,mock:p=>{i=!0,a=p,s()},unmock:()=>{i=!1,l()}}},Zwe=e=>{let t=k8.get(e);return t||(t=Qwe(e),k8.set(e,t),t.init()),t},R8=e=>{let t=Kwe(),r=Zwe(e);return r.sub(t),(0,eh.useEffect)(()=>(r.sub(t),()=>r.unsub(t)),[r,t]),r.get()};var e0e=()=>{let[e,t]=(0,_8.useState)("day");return{interval:e,setInterval:t}},pf=()=>R8(e0e);var t0e={visitors:{label:"Visitors"},total:{label:"Total",color:"hsl(var(--chart-1))"},unique:{label:"Unique",color:"hsl(var(--chart-2))"}};function M8({chartData:e,dateRange:t,pushEvent:r}){let{interval:n,setInterval:a}=pf(),o=i=>{a(i),r("set_interval",{value:{interval:i}})};return Me.createElement(Ur,null,Me.createElement(Hr,{className:"flex items-center gap-2 py-5 space-y-0 border-b sm:flex-row"},Me.createElement("div",{className:"grid flex-1 gap-1 text-center sm:text-left"},Me.createElement(Wr,null,"Total visits"),Me.createElement(zr,null,"Showing total visits for ",Ce(t.from,"dd LLL, y")," -"," ",Ce(t.to,"dd LLL, y"))),Me.createElement(rs,{value:n,onValueChange:o},Me.createElement(ti,{className:"w-[160px] rounded-lg sm:ml-auto","aria-label":"Select a value"},Me.createElement(ns,{placeholder:"Interval"})),Me.createElement(ri,{className:"rounded-xl"},Me.createElement(gt,{value:"hour",className:"rounded-lg"},"Per hour"),Me.createElement(gt,{value:"day",className:"rounded-lg"},"Per day"),Me.createElement(gt,{value:"month",className:"rounded-lg"},"Per month")))),Me.createElement(Vr,{className:"px-2 pt-4 sm:px-6 sm:pt-6"},Me.createElement($r,{config:t0e,className:"aspect-auto h-[250px] w-full"},Me.createElement($m,{data:e},Me.createElement("defs",null,Me.createElement("linearGradient",{id:"fillTotal",x1:"0",y1:"0",x2:"0",y2:"1"},Me.createElement("stop",{offset:"5%",stopColor:"var(--color-total)",stopOpacity:.8}),Me.createElement("stop",{offset:"95%",stopColor:"var(--color-total)",stopOpacity:.1})),Me.createElement("linearGradient",{id:"fillUnique",x1:"0",y1:"0",x2:"0",y2:"1"},Me.createElement("stop",{offset:"5%",stopColor:"var(--color-unique)",stopOpacity:.8}),Me.createElement("stop",{offset:"95%",stopColor:"var(--color-unique)",stopOpacity:.1}))),Me.createElement(pa,{vertical:!1}),Me.createElement(qt,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short"},n!=="month"&&{day:"numeric"}),n==="month"&&{year:"numeric"}))}),Me.createElement(ma,{cursor:!1,content:Me.createElement(Rn,{labelFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short",year:"numeric"},n!=="month"&&{day:"numeric"}),n==="hour"&&{hour:"numeric"})),indicator:"dot"})}),Me.createElement(ur,{dataKey:"total",type:"natural",fill:"url(#fillTotal)",stroke:"var(--color-total)",stackId:"a"}),Me.createElement(ur,{dataKey:"unique",type:"natural",fill:"url(#fillUnique)",stroke:"var(--color-unique)",stackId:"b"}),Me.createElement(kb,{content:Me.createElement(Gm,null)})))))}var cr=R(G());var r0e={duration:{label:"Duration",color:"hsl(var(--chart-3))"},label:{color:"hsl(var(--foreground))"}};function D8({chartData:e,chartTitle:t,dateRange:r}){return cr.createElement(Ur,null,cr.createElement(Hr,null,cr.createElement(Wr,null,t),cr.createElement(zr,null,Ce(r.from,"dd LLL, y")," -"," ",Ce(r.to,"dd LLL, y"))),cr.createElement(Vr,{className:"flex-1 pb-0"},cr.createElement($r,{config:r0e,className:"mx-auto aspect-square max-h-[250px]"},cr.createElement(Zo,{accessibilityLayer:!0,data:e,layout:"vertical",margin:{right:16}},cr.createElement(pa,{horizontal:!1}),cr.createElement(Ba,{dataKey:"path",type:"category",tickLine:!1,tickMargin:10,axisLine:!1,tickFormatter:n=>n.slice(0,3),hide:!0}),cr.createElement(qt,{dataKey:"duration",type:"number",hide:!0}),cr.createElement(ma,{cursor:!1,content:cr.createElement(Rn,{className:"w-[175px]",indicator:"dot"})}),cr.createElement(sr,{dataKey:"duration",layout:"vertical",fill:"var(--color-duration)",radius:4},cr.createElement(ar,{dataKey:"path",position:"insideLeft",fill:"var(--color-label)",offset:8,fontSize:12}))))),cr.createElement(El,{className:"flex-col items-start gap-2 text-sm mt-2"},cr.createElement("div",{className:"leading-none text-muted-foreground"},"Request duration for ",t.toLowerCase())))}var fr=R(G());var n0e={visits:{label:"Visits"},desktop:{label:"Desktop",color:"hsl(var(--chart-1))"},tablet:{label:"Tablet",color:"hsl(var(--chart-2))"},mobile:{label:"Mobile",color:"hsl(var(--chart-3))"}};function N8({chartData:e,dateRange:t}){return e.forEach(r=>{r.fill=`var(--color-${r.device})`}),fr.createElement(Ur,{className:"flex flex-col"},fr.createElement(Hr,null,fr.createElement(Wr,null,"Device Usage"),fr.createElement(zr,null,Ce(t.from,"dd LLL, y")," -"," ",Ce(t.to,"dd LLL, y"))),fr.createElement(Vr,{className:"flex-1 pb-0"},fr.createElement($r,{config:n0e,className:"mx-auto aspect-square max-h-[250px]"},fr.createElement(JA,null,fr.createElement(ma,{cursor:!1,content:fr.createElement(Rn,{className:"w-[150px]",hideLabel:!0,indicator:"dot"})}),fr.createElement(da,{data:e,dataKey:"visits",nameKey:"device",innerRadius:60,strokeWidth:5},fr.createElement(Ue,{content:({viewBox:r})=>{if(r&&"cx"in r&&"cy"in r)return fr.createElement("text",{x:r.cx,y:r.cy,textAnchor:"middle",dominantBaseline:"middle"},fr.createElement("tspan",{x:r.cx,y:r.cy,className:"fill-foreground text-3xl font-bold"},kh(e.reduce((n,a)=>n+a.visits,0),1)),fr.createElement("tspan",{x:r.cx,y:(r.cy||0)+24,className:"fill-muted-foreground"},"Visits"))}}))))),fr.createElement(El,{className:"flex-col items-start gap-2 text-sm mt-2"},fr.createElement("div",{className:"leading-none text-muted-foreground"},"Showing total visits split by device type")))}var we=R(G());var a0e={oks:{label:"200s",color:"hsl(var(--chart-5))"},redirs:{label:"300s",color:"hsl(var(--chart-4))"},errors:{label:"400s",color:"hsl(var(--chart-2))"},fails:{label:"500s",color:"hsl(var(--chart-1))"}};function F8({chartData:e,dateRange:t,pushEvent:r}){let{interval:n,setInterval:a}=pf(),o=i=>{a(i),r("set_interval",{value:{interval:i}})};return we.createElement(Ur,null,we.createElement(Hr,{className:"flex items-center gap-2 py-5 space-y-0 border-b sm:flex-row"},we.createElement("div",{className:"grid flex-1 gap-1 text-center sm:text-left"},we.createElement(Wr,null,"HTTP Statuses"),we.createElement(zr,null,"Showing HTTP statuses for the ",Ce(t.from,"dd LLL, y")," ","- ",Ce(t.to,"dd LLL, y"))),we.createElement(rs,{value:n,onValueChange:o},we.createElement(ti,{className:"w-[160px] rounded-lg sm:ml-auto","aria-label":"Select a value"},we.createElement(ns,{placeholder:"Interval"})),we.createElement(ri,{className:"rounded-xl"},we.createElement(gt,{value:"hour",className:"rounded-lg"},"Per hour"),we.createElement(gt,{value:"day",className:"rounded-lg"},"Per day"),we.createElement(gt,{value:"month",className:"rounded-lg"},"Per month")))),we.createElement(Vr,{className:"px-2 pt-4 sm:px-6 sm:pt-6"},we.createElement($r,{config:a0e,className:"aspect-auto h-[250px] w-full"},we.createElement($m,{data:e},we.createElement("defs",null,we.createElement("linearGradient",{id:"fillOks",x1:"0",y1:"0",x2:"0",y2:"1"},we.createElement("stop",{offset:"5%",stopColor:"var(--color-oks)",stopOpacity:.8}),we.createElement("stop",{offset:"95%",stopColor:"var(--color-oks)",stopOpacity:.1})),we.createElement("linearGradient",{id:"fillRedirs",x1:"0",y1:"0",x2:"0",y2:"1"},we.createElement("stop",{offset:"5%",stopColor:"var(--color-redirs)",stopOpacity:.8}),we.createElement("stop",{offset:"95%",stopColor:"var(--color-redirs)",stopOpacity:.1})),we.createElement("linearGradient",{id:"fillErrors",x1:"0",y1:"0",x2:"0",y2:"1"},we.createElement("stop",{offset:"5%",stopColor:"var(--color-errors)",stopOpacity:.8}),we.createElement("stop",{offset:"95%",stopColor:"var(--color-errors)",stopOpacity:.1})),we.createElement("linearGradient",{id:"fillFails",x1:"0",y1:"0",x2:"0",y2:"1"},we.createElement("stop",{offset:"5%",stopColor:"var(--color-fails)",stopOpacity:.8}),we.createElement("stop",{offset:"95%",stopColor:"var(--color-fails)",stopOpacity:.1}))),we.createElement(pa,{vertical:!1}),we.createElement(qt,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short"},n!=="month"&&{day:"numeric"}),n==="month"&&{year:"numeric"}))}),we.createElement(ma,{cursor:!1,content:we.createElement(Rn,{labelFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short",year:"numeric"},n!=="month"&&{day:"numeric"}),n==="hour"&&{hour:"numeric"})),indicator:"dot"})}),we.createElement(ur,{dataKey:"oks",type:"natural",fill:"url(#fillOks)",stroke:"var(--color-oks)",stackId:"a"}),we.createElement(ur,{dataKey:"redirs",type:"natural",fill:"url(#fillRedirs)",stroke:"var(--color-redirs)",stackId:"b"}),we.createElement(ur,{dataKey:"errors",type:"natural",fill:"url(#fillErrors)",stroke:"var(--color-errors)",stackId:"c"}),we.createElement(ur,{dataKey:"fails",type:"natural",fill:"url(#fillFails)",stroke:"var(--color-fails)",stackId:"d"}),we.createElement(kb,{content:we.createElement(Gm,null)})))))}var dr=R(G());var o0e={visits:{label:"Visits",color:"hsl(var(--chart-3))"},label:{color:"hsl(var(--foreground))"}};function B8({chartData:e,chartTitle:t,dateRange:r}){return dr.createElement(Ur,null,dr.createElement(Hr,null,dr.createElement(Wr,null,t),dr.createElement(zr,null,Ce(r.from,"dd LLL, y")," -"," ",Ce(r.to,"dd LLL, y"))),dr.createElement(Vr,{className:"flex-1 pb-0"},dr.createElement($r,{config:o0e,className:"mx-auto aspect-square max-h-[250px]"},dr.createElement(Zo,{accessibilityLayer:!0,data:e,layout:"vertical",margin:{right:16}},dr.createElement(pa,{horizontal:!1}),dr.createElement(Ba,{dataKey:"source",type:"category",tickLine:!1,tickMargin:10,axisLine:!1,tickFormatter:n=>n.slice(0,3),hide:!0}),dr.createElement(qt,{dataKey:"visits",type:"number",hide:!0}),dr.createElement(ma,{cursor:!1,content:dr.createElement(Rn,{className:"w-[200px]",indicator:"dot"})}),dr.createElement(sr,{dataKey:"visits",layout:"vertical",fill:"var(--color-visits)",radius:4},dr.createElement(ar,{dataKey:"source",position:"insideLeft",fill:"var(--color-label)",offset:8,fontSize:12}))))),dr.createElement(El,{className:"flex-col items-start gap-2 text-sm mt-2"},dr.createElement("div",{className:"leading-none text-muted-foreground"},"Showing total visits for ",t.toLowerCase())))}var Fe=R(G());var jb=R(G());var X=R(_t()),Ee=R(G());var he=function(){return he=Object.assign||function(t){for(var r,n=1,a=arguments.length;n1&&(l||!u),c=t>1&&(u||!l),d=function(){n&&o(n)},p=function(){a&&o(a)};return(0,X.jsx)(B0e,{displayMonth:e.displayMonth,hideNext:f,hidePrevious:c,nextMonth:a,previousMonth:n,onPreviousClick:d,onNextClick:p})}function j0e(e){var t,r=Qe(),n=r.classNames,a=r.disableNavigation,o=r.styles,i=r.captionLayout,s=r.components,l=(t=s?.CaptionLabel)!==null&&t!==void 0?t:V8,u;return a?u=(0,X.jsx)(l,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?u=(0,X.jsx)(j8,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?u=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(j8,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),(0,X.jsx)(q8,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):u=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(l,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,X.jsx)(q8,{displayMonth:e.displayMonth,id:e.id})]}),(0,X.jsx)("div",{className:n.caption,style:o.caption,children:u})}function q0e(e){var t=Qe(),r=t.footer,n=t.styles,a=t.classNames.tfoot;return r?(0,X.jsx)("tfoot",{className:a,style:n.tfoot,children:(0,X.jsx)("tr",{children:(0,X.jsx)("td",{colSpan:8,children:r})})}):(0,X.jsx)(X.Fragment,{})}function U0e(e,t,r){for(var n=r?Oa(new Date):wr(new Date,{locale:e,weekStartsOn:t}),a=[],o=0;o<7;o++){var i=Xe(n,o);a.push(i)}return a}function H0e(){var e=Qe(),t=e.classNames,r=e.styles,n=e.showWeekNumber,a=e.locale,o=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,l=e.labels.labelWeekday,u=U0e(a,o,i);return(0,X.jsxs)("tr",{style:r.head_row,className:t.head_row,children:[n&&(0,X.jsx)("td",{style:r.head_cell,className:t.head_cell}),u.map(function(f,c){return(0,X.jsx)("th",{scope:"col",className:t.head_cell,style:r.head_cell,"aria-label":l(f,{locale:a}),children:s(f,{locale:a})},c)})]})}function W0e(){var e,t=Qe(),r=t.classNames,n=t.styles,a=t.components,o=(e=a?.HeadRow)!==null&&e!==void 0?e:H0e;return(0,X.jsx)("thead",{style:n.head,className:r.head,children:(0,X.jsx)(o,{})})}function z0e(e){var t=Qe(),r=t.locale,n=t.formatters.formatDay;return(0,X.jsx)(X.Fragment,{children:n(e.date,{locale:r})})}var SO=(0,Ee.createContext)(void 0);function V0e(e){if(!th(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return(0,X.jsx)(SO.Provider,{value:t,children:e.children})}return(0,X.jsx)($0e,{initialProps:e.initialProps,children:e.children})}function $0e(e){var t=e.initialProps,r=e.children,n=t.selected,a=t.min,o=t.max,i=function(u,f,c){var d,p;(d=t.onDayClick)===null||d===void 0||d.call(t,u,f,c);var h=!!(f.selected&&a&&n?.length===a);if(!h){var m=!!(!f.selected&&o&&n?.length===o);if(!m){var x=n?W8([],n,!0):[];if(f.selected){var g=x.findIndex(function(v){return Mr(u,v)});x.splice(g,1)}else x.push(u);(p=t.onSelect)===null||p===void 0||p.call(t,x,u,f,c)}}},s={disabled:[]};n&&s.disabled.push(function(u){var f=o&&n.length>o-1,c=n.some(function(d){return Mr(d,u)});return!!(f&&!c)});var l={selected:n,onDayClick:i,modifiers:s};return(0,X.jsx)(SO.Provider,{value:l,children:r})}function CO(){var e=(0,Ee.useContext)(SO);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function G0e(e,t){var r=t||{},n=r.from,a=r.to;return n&&a?Mr(a,e)&&Mr(n,e)?void 0:Mr(a,e)?{from:a,to:void 0}:Mr(n,e)?void 0:_g(n,e)?{from:e,to:a}:{from:n,to:e}:a?_g(e,a)?{from:a,to:e}:{from:e,to:a}:n?TC(e,n)?{from:e,to:n}:{from:n,to:e}:{from:e,to:void 0}}var PO=(0,Ee.createContext)(void 0);function K0e(e){if(!rh(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return(0,X.jsx)(PO.Provider,{value:t,children:e.children})}return(0,X.jsx)(X0e,{initialProps:e.initialProps,children:e.children})}function X0e(e){var t=e.initialProps,r=e.children,n=t.selected,a=n||{},o=a.from,i=a.to,s=t.min,l=t.max,u=function(p,h,m){var x,g;(x=t.onDayClick)===null||x===void 0||x.call(t,p,h,m);var v=G0e(p,n);(g=t.onSelect)===null||g===void 0||g.call(t,v,p,h,m)},f={range_start:[],range_end:[],range_middle:[],disabled:[]};if(o?(f.range_start=[o],i?(f.range_end=[i],Mr(o,i)||(f.range_middle=[{after:o,before:i}])):f.range_end=[o]):i&&(f.range_start=[i],f.range_end=[i]),s&&(o&&!i&&f.disabled.push({after:Dg(o,s-1),before:Xe(o,s-1)}),o&&i&&f.disabled.push({after:o,before:Xe(o,s-1)}),!o&&i&&f.disabled.push({after:Dg(i,s-1),before:Xe(i,s-1)})),l){if(o&&!i&&(f.disabled.push({before:Xe(o,-l+1)}),f.disabled.push({after:Xe(o,l-1)})),o&&i){var c=Xn(i,o)+1,d=l-c;f.disabled.push({before:Dg(o,d)}),f.disabled.push({after:Xe(i,d)})}!o&&i&&(f.disabled.push({before:Xe(i,-l+1)}),f.disabled.push({after:Xe(i,l-1)}))}return(0,X.jsx)(PO.Provider,{value:{selected:n,onDayClick:u,modifiers:f},children:r})}function IO(){var e=(0,Ee.useContext)(PO);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function Nb(e){return Array.isArray(e)?W8([],e,!0):e!==void 0?[e]:[]}function Y0e(e){var t={};return Object.entries(e).forEach(function(r){var n=r[0],a=r[1];t[n]=Nb(a)}),t}var ja;(function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"})(ja||(ja={}));var J0e=ja.Selected,ni=ja.Disabled,Q0e=ja.Hidden,Z0e=ja.Today,yO=ja.RangeEnd,xO=ja.RangeMiddle,bO=ja.RangeStart,eSe=ja.Outside;function tSe(e,t,r){var n,a=(n={},n[J0e]=Nb(e.selected),n[ni]=Nb(e.disabled),n[Q0e]=Nb(e.hidden),n[Z0e]=[e.today],n[yO]=[],n[xO]=[],n[bO]=[],n[eSe]=[],n);return e.fromDate&&a[ni].push({before:e.fromDate}),e.toDate&&a[ni].push({after:e.toDate}),th(e)?a[ni]=a[ni].concat(t.modifiers[ni]):rh(e)&&(a[ni]=a[ni].concat(r.modifiers[ni]),a[bO]=r.modifiers[bO],a[xO]=r.modifiers[xO],a[yO]=r.modifiers[yO]),a}var K8=(0,Ee.createContext)(void 0);function rSe(e){var t=Qe(),r=CO(),n=IO(),a=tSe(t,r,n),o=Y0e(t.modifiers),i=he(he({},a),o);return(0,X.jsx)(K8.Provider,{value:i,children:e.children})}function X8(){var e=(0,Ee.useContext)(K8);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function nSe(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function aSe(e){return!!(e&&typeof e=="object"&&"from"in e)}function oSe(e){return!!(e&&typeof e=="object"&&"after"in e)}function iSe(e){return!!(e&&typeof e=="object"&&"before"in e)}function sSe(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function lSe(e,t){var r,n=t.from,a=t.to;if(n&&a){var o=Xn(a,n)<0;o&&(r=[a,n],n=r[0],a=r[1]);var i=Xn(e,n)>=0&&Xn(a,e)>=0;return i}return a?Mr(a,e):n?Mr(n,e):!1}function uSe(e){return $d(e)}function cSe(e){return Array.isArray(e)&&e.every($d)}function fSe(e,t){return t.some(function(r){if(typeof r=="boolean")return r;if(uSe(r))return Mr(e,r);if(cSe(r))return r.includes(e);if(aSe(r))return lSe(e,r);if(sSe(r))return r.dayOfWeek.includes(e.getDay());if(nSe(r)){var n=Xn(r.before,e),a=Xn(r.after,e),o=n>0,i=a<0,s=_g(r.before,r.after);return s?i&&o:o||i}return oSe(r)?Xn(e,r.after)>0:iSe(r)?Xn(r.before,e)>0:typeof r=="function"?r(e):!1})}function LO(e,t,r){var n=Object.keys(t).reduce(function(o,i){var s=t[i];return fSe(e,s)&&o.push(i),o},[]),a={};return n.forEach(function(o){return a[o]=!0}),r&&!Mg(e,r)&&(a.outside=!0),a}function dSe(e,t){for(var r=Sr(e[0]),n=Ag(e[e.length-1]),a,o,i=r;i<=n;){var s=LO(i,t),l=!s.disabled&&!s.hidden;if(!l){i=Xe(i,1);continue}if(s.selected)return i;s.today&&!o&&(o=i),a||(a=i),i=Xe(i,1)}return o||a}var pSe=365;function Y8(e,t){var r=t.moveBy,n=t.direction,a=t.context,o=t.modifiers,i=t.retry,s=i===void 0?{count:0,lastFocused:e}:i,l=a.weekStartsOn,u=a.fromDate,f=a.toDate,c=a.locale,d={day:Xe,week:Lg,month:xn,year:HD,startOfWeek:function(x){return a.ISOWeek?Oa(x):wr(x,{locale:c,weekStartsOn:l})},endOfWeek:function(x){return a.ISOWeek?kC(x):Gd(x,{locale:c,weekStartsOn:l})}},p=d[r](e,n==="after"?1:-1);n==="before"&&u?p=WD([u,p]):n==="after"&&f&&(p=zD([f,p]));var h=!0;if(o){var m=LO(p,o);h=!m.disabled&&!m.hidden}return h?p:s.count>pSe?s.lastFocused:Y8(p,{moveBy:r,direction:n,context:a,modifiers:o,retry:he(he({},s),{count:s.count+1})})}var J8=(0,Ee.createContext)(void 0);function mSe(e){var t=nh(),r=X8(),n=(0,Ee.useState)(),a=n[0],o=n[1],i=(0,Ee.useState)(),s=i[0],l=i[1],u=dSe(t.displayMonths,r),f=a??(s&&t.isDateDisplayed(s))?s:u,c=function(){l(a),o(void 0)},d=function(x){o(x)},p=Qe(),h=function(x,g){if(a){var v=Y8(a,{moveBy:x,direction:g,context:p,modifiers:r});Mr(a,v)||(t.goToDate(v,a),d(v))}},m={focusedDay:a,focusTarget:f,blur:c,focus:d,focusDayAfter:function(){return h("day","after")},focusDayBefore:function(){return h("day","before")},focusWeekAfter:function(){return h("week","after")},focusWeekBefore:function(){return h("week","before")},focusMonthBefore:function(){return h("month","before")},focusMonthAfter:function(){return h("month","after")},focusYearBefore:function(){return h("year","before")},focusYearAfter:function(){return h("year","after")},focusStartOfWeek:function(){return h("startOfWeek","before")},focusEndOfWeek:function(){return h("endOfWeek","after")}};return(0,X.jsx)(J8.Provider,{value:m,children:e.children})}function AO(){var e=(0,Ee.useContext)(J8);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function hSe(e,t){var r=X8(),n=LO(e,r,t);return n}var OO=(0,Ee.createContext)(void 0);function vSe(e){if(!Bb(e.initialProps)){var t={selected:void 0};return(0,X.jsx)(OO.Provider,{value:t,children:e.children})}return(0,X.jsx)(gSe,{initialProps:e.initialProps,children:e.children})}function gSe(e){var t=e.initialProps,r=e.children,n=function(o,i,s){var l,u,f;if((l=t.onDayClick)===null||l===void 0||l.call(t,o,i,s),i.selected&&!t.required){(u=t.onSelect)===null||u===void 0||u.call(t,void 0,o,i,s);return}(f=t.onSelect)===null||f===void 0||f.call(t,o,o,i,s)},a={selected:t.selected,onDayClick:n};return(0,X.jsx)(OO.Provider,{value:a,children:r})}function Q8(){var e=(0,Ee.useContext)(OO);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function ySe(e,t){var r=Qe(),n=Q8(),a=CO(),o=IO(),i=AO(),s=i.focusDayAfter,l=i.focusDayBefore,u=i.focusWeekAfter,f=i.focusWeekBefore,c=i.blur,d=i.focus,p=i.focusMonthBefore,h=i.focusMonthAfter,m=i.focusYearBefore,x=i.focusYearAfter,g=i.focusStartOfWeek,v=i.focusEndOfWeek,w=function(C){var L,O,E,k;Bb(r)?(L=n.onDayClick)===null||L===void 0||L.call(n,e,t,C):th(r)?(O=a.onDayClick)===null||O===void 0||O.call(a,e,t,C):rh(r)?(E=o.onDayClick)===null||E===void 0||E.call(o,e,t,C):(k=r.onDayClick)===null||k===void 0||k.call(r,e,t,C)},b=function(C){var L;d(e),(L=r.onDayFocus)===null||L===void 0||L.call(r,e,t,C)},y=function(C){var L;c(),(L=r.onDayBlur)===null||L===void 0||L.call(r,e,t,C)},S=function(C){var L;(L=r.onDayMouseEnter)===null||L===void 0||L.call(r,e,t,C)},P=function(C){var L;(L=r.onDayMouseLeave)===null||L===void 0||L.call(r,e,t,C)},A=function(C){var L;(L=r.onDayPointerEnter)===null||L===void 0||L.call(r,e,t,C)},_=function(C){var L;(L=r.onDayPointerLeave)===null||L===void 0||L.call(r,e,t,C)},T=function(C){var L;(L=r.onDayTouchCancel)===null||L===void 0||L.call(r,e,t,C)},D=function(C){var L;(L=r.onDayTouchEnd)===null||L===void 0||L.call(r,e,t,C)},N=function(C){var L;(L=r.onDayTouchMove)===null||L===void 0||L.call(r,e,t,C)},j=function(C){var L;(L=r.onDayTouchStart)===null||L===void 0||L.call(r,e,t,C)},B=function(C){var L;(L=r.onDayKeyUp)===null||L===void 0||L.call(r,e,t,C)},H=function(C){var L;switch(C.key){case"ArrowLeft":C.preventDefault(),C.stopPropagation(),r.dir==="rtl"?s():l();break;case"ArrowRight":C.preventDefault(),C.stopPropagation(),r.dir==="rtl"?l():s();break;case"ArrowDown":C.preventDefault(),C.stopPropagation(),u();break;case"ArrowUp":C.preventDefault(),C.stopPropagation(),f();break;case"PageUp":C.preventDefault(),C.stopPropagation(),C.shiftKey?m():p();break;case"PageDown":C.preventDefault(),C.stopPropagation(),C.shiftKey?x():h();break;case"Home":C.preventDefault(),C.stopPropagation(),g();break;case"End":C.preventDefault(),C.stopPropagation(),v();break}(L=r.onDayKeyDown)===null||L===void 0||L.call(r,e,t,C)},I={onClick:w,onFocus:b,onBlur:y,onKeyDown:H,onKeyUp:B,onMouseEnter:S,onMouseLeave:P,onPointerEnter:A,onPointerLeave:_,onTouchCancel:T,onTouchEnd:D,onTouchMove:N,onTouchStart:j};return I}function xSe(){var e=Qe(),t=Q8(),r=CO(),n=IO(),a=Bb(e)?t.selected:th(e)?r.selected:rh(e)?n.selected:void 0;return a}function bSe(e){return Object.values(ja).includes(e)}function wSe(e,t){var r=[e.classNames.day];return Object.keys(t).forEach(function(n){var a=e.modifiersClassNames[n];if(a)r.push(a);else if(bSe(n)){var o=e.classNames["day_".concat(n)];o&&r.push(o)}}),r}function SSe(e,t){var r=he({},e.styles.day);return Object.keys(t).forEach(function(n){var a;r=he(he({},r),(a=e.modifiersStyles)===null||a===void 0?void 0:a[n])}),r}function CSe(e,t,r){var n,a,o,i=Qe(),s=AO(),l=hSe(e,t),u=ySe(e,l),f=xSe(),c=!!(i.onDayClick||i.mode!=="default");(0,Ee.useEffect)(function(){var S;l.outside||s.focusedDay&&c&&Mr(s.focusedDay,e)&&((S=r.current)===null||S===void 0||S.focus())},[s.focusedDay,e,r,c,l.outside]);var d=wSe(i,l).join(" "),p=SSe(i,l),h=!!(l.outside&&!i.showOutsideDays||l.hidden),m=(o=(a=i.components)===null||a===void 0?void 0:a.DayContent)!==null&&o!==void 0?o:z0e,x=(0,X.jsx)(m,{date:e,displayMonth:t,activeModifiers:l}),g={style:p,className:d,children:x,role:"gridcell"},v=s.focusTarget&&Mr(s.focusTarget,e)&&!l.outside,w=s.focusedDay&&Mr(s.focusedDay,e),b=he(he(he({},g),(n={disabled:l.disabled,role:"gridcell"},n["aria-selected"]=l.selected,n.tabIndex=w||v?0:-1,n)),u),y={isButton:c,isHidden:h,activeModifiers:l,selectedDays:f,buttonProps:b,divProps:g};return y}function PSe(e){var t=(0,Ee.useRef)(null),r=CSe(e.date,e.displayMonth,t);return r.isHidden?(0,X.jsx)("div",{role:"gridcell"}):r.isButton?(0,X.jsx)(Fb,he({name:"day",ref:t},r.buttonProps)):(0,X.jsx)("div",he({},r.divProps))}function ISe(e){var t=e.number,r=e.dates,n=Qe(),a=n.onWeekNumberClick,o=n.styles,i=n.classNames,s=n.locale,l=n.labels.labelWeekNumber,u=n.formatters.formatWeekNumber,f=u(Number(t),{locale:s});if(!a)return(0,X.jsx)("span",{className:i.weeknumber,style:o.weeknumber,children:f});var c=l(Number(t),{locale:s}),d=function(p){a(t,r,p)};return(0,X.jsx)(Fb,{name:"week-number","aria-label":c,className:i.weeknumber,style:o.weeknumber,onClick:d,children:f})}function LSe(e){var t,r,n=Qe(),a=n.styles,o=n.classNames,i=n.showWeekNumber,s=n.components,l=(t=s?.Day)!==null&&t!==void 0?t:PSe,u=(r=s?.WeekNumber)!==null&&r!==void 0?r:ISe,f;return i&&(f=(0,X.jsx)("td",{className:o.cell,style:a.cell,children:(0,X.jsx)(u,{number:e.weekNumber,dates:e.dates})})),(0,X.jsxs)("tr",{className:o.row,style:a.row,children:[f,e.dates.map(function(c){return(0,X.jsx)("td",{className:o.cell,style:a.cell,role:"presentation",children:(0,X.jsx)(l,{displayMonth:e.displayMonth,date:c})},cN(c))})]})}function U8(e,t,r){for(var n=r?.ISOWeek?kC(t):Gd(t,r),a=r?.ISOWeek?Oa(e):wr(e,r),o=Xn(n,a),i=[],s=0;s<=o;s++)i.push(Xe(a,s));var l=i.reduce(function(u,f){var c=r?.ISOWeek?Eg(f):Rg(f,r),d=u.find(function(p){return p.weekNumber===c});return d?(d.dates.push(f),u):(u.push({weekNumber:c,dates:[f]}),u)},[]);return l}function ASe(e,t){var r=U8(Sr(e),Ag(e),t);if(t?.useFixedWeeks){var n=dN(e,t);if(n<6){var a=r[r.length-1],o=a.dates[a.dates.length-1],i=Lg(o,6-n),s=U8(Lg(o,1),i,t);r.push.apply(r,s)}}return r}function OSe(e){var t,r,n,a=Qe(),o=a.locale,i=a.classNames,s=a.styles,l=a.hideHead,u=a.fixedWeeks,f=a.components,c=a.weekStartsOn,d=a.firstWeekContainsDate,p=a.ISOWeek,h=ASe(e.displayMonth,{useFixedWeeks:!!u,ISOWeek:p,locale:o,weekStartsOn:c,firstWeekContainsDate:d}),m=(t=f?.Head)!==null&&t!==void 0?t:W0e,x=(r=f?.Row)!==null&&r!==void 0?r:LSe,g=(n=f?.Footer)!==null&&n!==void 0?n:q0e;return(0,X.jsxs)("table",{id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!l&&(0,X.jsx)(m,{}),(0,X.jsx)("tbody",{className:i.tbody,style:s.tbody,children:h.map(function(v){return(0,X.jsx)(x,{displayMonth:e.displayMonth,dates:v.dates,weekNumber:v.weekNumber},v.weekNumber)})}),(0,X.jsx)(g,{displayMonth:e.displayMonth})]})}function kSe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var ESe=kSe()?Ee.useLayoutEffect:Ee.useEffect,wO=!1,TSe=0;function H8(){return"react-day-picker-".concat(++TSe)}function RSe(e){var t,r=e??(wO?H8():null),n=(0,Ee.useState)(r),a=n[0],o=n[1];return ESe(function(){a===null&&o(H8())},[]),(0,Ee.useEffect)(function(){wO===!1&&(wO=!0)},[]),(t=e??a)!==null&&t!==void 0?t:void 0}function _Se(e){var t,r,n=Qe(),a=n.dir,o=n.classNames,i=n.styles,s=n.components,l=nh().displayMonths,u=RSe(n.id?"".concat(n.id,"-").concat(e.displayIndex):void 0),f=n.id?"".concat(n.id,"-grid-").concat(e.displayIndex):void 0,c=[o.month],d=i.month,p=e.displayIndex===0,h=e.displayIndex===l.length-1,m=!p&&!h;a==="rtl"&&(t=[p,h],h=t[0],p=t[1]),p&&(c.push(o.caption_start),d=he(he({},d),i.caption_start)),h&&(c.push(o.caption_end),d=he(he({},d),i.caption_end)),m&&(c.push(o.caption_between),d=he(he({},d),i.caption_between));var x=(r=s?.Caption)!==null&&r!==void 0?r:j0e;return(0,X.jsxs)("div",{className:c.join(" "),style:d,children:[(0,X.jsx)(x,{id:u,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),(0,X.jsx)(OSe,{id:f,"aria-labelledby":u,displayMonth:e.displayMonth})]},e.displayIndex)}function MSe(e){var t=Qe(),r=t.classNames,n=t.styles;return(0,X.jsx)("div",{className:r.months,style:n.months,children:e.children})}function DSe(e){var t,r,n=e.initialProps,a=Qe(),o=AO(),i=nh(),s=(0,Ee.useState)(!1),l=s[0],u=s[1];(0,Ee.useEffect)(function(){a.initialFocus&&o.focusTarget&&(l||(o.focus(o.focusTarget),u(!0)))},[a.initialFocus,l,o.focus,o.focusTarget,o]);var f=[a.classNames.root,a.className];a.numberOfMonths>1&&f.push(a.classNames.multiple_months),a.showWeekNumber&&f.push(a.classNames.with_weeknumber);var c=he(he({},a.styles.root),a.style),d=Object.keys(n).filter(function(h){return h.startsWith("data-")}).reduce(function(h,m){var x;return he(he({},h),(x={},x[m]=n[m],x))},{}),p=(r=(t=n.components)===null||t===void 0?void 0:t.Months)!==null&&r!==void 0?r:MSe;return(0,X.jsx)("div",he({className:f.join(" "),style:c,dir:a.dir,id:a.id,nonce:n.nonce,title:n.title,lang:n.lang},d,{children:(0,X.jsx)(p,{children:i.displayMonths.map(function(h,m){return(0,X.jsx)(_Se,{displayIndex:m,displayMonth:h},m)})})}))}function NSe(e){var t=e.children,r=i0e(e,["children"]);return(0,X.jsx)(I0e,{initialProps:r,children:(0,X.jsx)(D0e,{children:(0,X.jsx)(vSe,{initialProps:r,children:(0,X.jsx)(V0e,{initialProps:r,children:(0,X.jsx)(K0e,{initialProps:r,children:(0,X.jsx)(rSe,{children:(0,X.jsx)(mSe,{children:t})})})})})})})}function Z8(e){return(0,X.jsx)(NSe,he({},e,{children:(0,X.jsx)(DSe,{initialProps:e})}))}function kO(a){var o=a,{className:e,classNames:t,showOutsideDays:r=!0}=o,n=Ie(o,["className","classNames","showOutsideDays"]);return jb.createElement(Z8,fe({showOutsideDays:r,className:ve("p-3",e),classNames:fe({months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:ve(Th({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:ve(Th({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible"},t),components:{IconLeft:s=>{var i=Ie(s,[]);return jb.createElement(Rf,{className:"h-4 w-4"})},IconRight:s=>{var i=Ie(s,[]);return jb.createElement(ms,{className:"h-4 w-4"})}}},n))}kO.displayName="Calendar";var oh=R(G());var ft=R(G(),1);var Rt=R(_t(),1),EO="Popover",[eG,m$e]=Xr(EO,[No]),ah=No(),[FSe,is]=eG(EO),tG=e=>{let{__scopePopover:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,s=ah(t),l=ft.useRef(null),[u,f]=ft.useState(!1),[c=!1,d]=So({prop:n,defaultProp:a,onChange:o});return(0,Rt.jsx)(js,{...s,children:(0,Rt.jsx)(FSe,{scope:t,contentId:tn(),triggerRef:l,open:c,onOpenChange:d,onOpenToggle:ft.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:u,onCustomAnchorAdd:ft.useCallback(()=>f(!0),[]),onCustomAnchorRemove:ft.useCallback(()=>f(!1),[]),modal:i,children:r})})};tG.displayName=EO;var rG="PopoverAnchor",BSe=ft.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=is(rG,r),o=ah(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:s}=a;return ft.useEffect(()=>(i(),()=>s()),[i,s]),(0,Rt.jsx)(qs,{...o,...n,ref:t})});BSe.displayName=rG;var nG="PopoverTrigger",aG=ft.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=is(nG,r),o=ah(r),i=Le(t,a.triggerRef),s=(0,Rt.jsx)(xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":uG(a.open),...n,ref:i,onClick:le(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?s:(0,Rt.jsx)(qs,{asChild:!0,...o,children:s})});aG.displayName=nG;var TO="PopoverPortal",[jSe,qSe]=eG(TO,{forceMount:void 0}),oG=e=>{let{__scopePopover:t,forceMount:r,children:n,container:a}=e,o=is(TO,t);return(0,Rt.jsx)(jSe,{scope:t,forceMount:r,children:(0,Rt.jsx)(Fo,{present:r||o.open,children:(0,Rt.jsx)(Us,{asChild:!0,container:a,children:n})})})};oG.displayName=TO;var mf="PopoverContent",iG=ft.forwardRef((e,t)=>{let r=qSe(mf,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,o=is(mf,e.__scopePopover);return(0,Rt.jsx)(Fo,{present:n||o.open,children:o.modal?(0,Rt.jsx)(USe,{...a,ref:t}):(0,Rt.jsx)(HSe,{...a,ref:t})})});iG.displayName=mf;var USe=ft.forwardRef((e,t)=>{let r=is(mf,e.__scopePopover),n=ft.useRef(null),a=Le(t,n),o=ft.useRef(!1);return ft.useEffect(()=>{let i=n.current;if(i)return Au(i)},[]),(0,Rt.jsx)(Vs,{as:Kr,allowPinchZoom:!0,children:(0,Rt.jsx)(sG,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:le(e.onCloseAutoFocus,i=>{i.preventDefault(),o.current||r.triggerRef.current?.focus()}),onPointerDownOutside:le(e.onPointerDownOutside,i=>{let s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,u=s.button===2||l;o.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:le(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),HSe=ft.forwardRef((e,t)=>{let r=is(mf,e.__scopePopover),n=ft.useRef(!1),a=ft.useRef(!1);return(0,Rt.jsx)(sG,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(n.current||r.triggerRef.current?.focus(),o.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));let i=o.target;r.triggerRef.current?.contains(i)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),sG=ft.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...c}=e,d=is(mf,r),p=ah(r);return bu(),(0,Rt.jsx)(Rs,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,Rt.jsx)(Ts,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>d.onOpenChange(!1),children:(0,Rt.jsx)(Pu,{"data-state":uG(d.open),role:"dialog",id:d.contentId,...p,...c,ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),lG="PopoverClose",WSe=ft.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=is(lG,r);return(0,Rt.jsx)(xe.button,{type:"button",...n,ref:t,onClick:le(e.onClick,()=>a.onOpenChange(!1))})});WSe.displayName=lG;var zSe="PopoverArrow",VSe=ft.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=ah(r);return(0,Rt.jsx)(Iu,{...a,...n,ref:t})});VSe.displayName=zSe;function uG(e){return e?"open":"closed"}var cG=tG;var fG=aG,dG=oG,RO=iG;var pG=cG,mG=fG,_O=oh.forwardRef((o,a)=>{var i=o,{className:e,align:t="center",sideOffset:r=4}=i,n=Ie(i,["className","align","sideOffset"]);return oh.createElement(dG,null,oh.createElement(RO,fe({ref:a,align:t,sideOffset:r,className:ve("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e)},n)))});_O.displayName=RO.displayName;var Jt=R(G()),GSe=R(_t());function NO(){return NO=Object.assign?Object.assign.bind():function(e){for(var t=1;t'),!0):t?e.some(function(r){return t.includes(r)})||e.includes("*"):!0}var tCe=function(t,r,n){n===void 0&&(n=!1);var a=r.alt,o=r.meta,i=r.mod,s=r.shift,l=r.ctrl,u=r.keys,f=t.key,c=t.code,d=t.ctrlKey,p=t.metaKey,h=t.shiftKey,m=t.altKey,x=ss(c),g=f.toLowerCase();if(!(u!=null&&u.includes(x))&&!(u!=null&&u.includes(g))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(x))return!1;if(!n){if(a===!m&&g!=="alt"||s===!h&&g!=="shift")return!1;if(i){if(!p&&!d)return!1}else if(o===!p&&g!=="meta"&&g!=="os"||l===!d&&g!=="ctrl"&&g!=="control")return!1}return u&&u.length===1&&(u.includes(g)||u.includes(x))?!0:u?YSe(u):!u},rCe=(0,Jt.createContext)(void 0),nCe=function(){return(0,Jt.useContext)(rCe)};function bG(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(r,n){return r&&bG(e[n],t[n])},!0):e===t}var aCe=(0,Jt.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),oCe=function(){return(0,Jt.useContext)(aCe)};function iCe(e){var t=(0,Jt.useRef)(void 0);return bG(t.current,e)||(t.current=e),t.current}var hG=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},sCe=typeof window<"u"?Jt.useLayoutEffect:Jt.useEffect;function ha(e,t,r,n){var a=(0,Jt.useRef)(null),o=(0,Jt.useRef)(!1),i=r instanceof Array?n instanceof Array?void 0:n:r,s=FO(e)?e.join(i?.splitKey):e,l=r instanceof Array?r:n instanceof Array?n:void 0,u=(0,Jt.useCallback)(t,l??[]),f=(0,Jt.useRef)(u);l?f.current=u:f.current=t;var c=iCe(i),d=oCe(),p=d.enabledScopes,h=nCe();return sCe(function(){if(!(c?.enabled===!1||!eCe(p,c?.scopes))){var m=function(b,y){var S;if(y===void 0&&(y=!1),!(ZSe(b)&&!xG(b,c?.enableOnFormTags))){if(a.current!==null){var P=a.current.getRootNode();if((P instanceof Document||P instanceof ShadowRoot)&&P.activeElement!==a.current&&!a.current.contains(P.activeElement)){hG(b);return}}(S=b.target)!=null&&S.isContentEditable&&!(c!=null&&c.enableOnContentEditable)||MO(s,c?.splitKey).forEach(function(A){var _,T=DO(A,c?.combinationKey);if(tCe(b,T,c?.ignoreModifiers)||(_=T.keys)!=null&&_.includes("*")){if(c!=null&&c.ignoreEventWhen!=null&&c.ignoreEventWhen(b)||y&&o.current)return;if(JSe(b,T,c?.preventDefault),!QSe(b,T,c?.enabled)){hG(b);return}f.current(b,T),y||(o.current=!0)}})}},x=function(b){b.key!==void 0&&(gG(ss(b.code)),(c?.keydown===void 0&&c?.keyup!==!0||c!=null&&c.keydown)&&m(b))},g=function(b){b.key!==void 0&&(yG(ss(b.code)),o.current=!1,c!=null&&c.keyup&&m(b,!0))},v=a.current||i?.document||document;return v.addEventListener("keyup",g),v.addEventListener("keydown",x),h&&MO(s,c?.splitKey).forEach(function(w){return h.addHotkey(DO(w,c?.combinationKey,c?.description))}),function(){v.removeEventListener("keyup",g),v.removeEventListener("keydown",x),h&&MO(s,c?.splitKey).forEach(function(w){return h.removeHotkey(DO(w,c?.combinationKey,c?.description))})}}},[s,c,p]),a}var lCe=e=>{let t=new Date,r,n;switch(e){case"today":r=n=t;break;case"yesterday":n=t,r=Xe(t,-1);break;case"last_week":n=t,r=Xe(t,-7);break;case"last_30_days":n=t,r=Xe(t,-30);break;case"last_90_days":n=t,r=Xe(t,-90);break;case"last_12_month":n=t,r=Xe(t,-365);break;case"previous_week":n=Xe(t,-7),r=Xe(t,-14);break;case"previous_month":n=new Date(t.getFullYear(),t.getMonth(),0),r=new Date(t.getFullYear(),t.getMonth()-1,1);break;case"previous_quarter":let a=Math.floor(t.getMonth()/3);n=new Date(t.getFullYear(),a*3,0),r=new Date(t.getFullYear(),(a-1)*3,1);break;case"previous_year":n=new Date(t.getFullYear()-1,11,31),r=new Date(t.getFullYear()-1,0,1);break;case"all_time":r=new Date(0),n=t;break;default:r=n=t}return{from:r,to:n}};function wG({dateRange:e,pushEvent:t}){let[r,n]=Fe.useState({from:e.from,to:e.to}),a=o=>{let{from:i,to:s}=lCe(o);n({from:i,to:s}),t("set_date",{value:{from:Ce(i,"yyyy-MM-dd 00:00:00"),to:Ce(s,"yyyy-MM-dd 23:59:59")}})};return ha("t",()=>a("today"),[]),ha("ctrl+t",()=>a("yesterday"),[]),ha("w",()=>a("last_week"),[]),ha("m",()=>a("last_30_days"),[]),ha("q",()=>a("last_90_days"),[]),ha("y",()=>a("last_12_month"),[]),ha("ctrl+w",()=>a("previous_week"),[]),ha("ctrl+m",()=>a("previous_month"),[]),ha("ctrl+q",()=>a("previous_quarter"),[]),ha("ctrl+y",()=>a("previous_year"),[]),ha("a",()=>a("all_time"),[]),Fe.createElement("div",{className:ve("grid gap-2")},Fe.createElement(pG,null,Fe.createElement(mG,{asChild:!0},Fe.createElement(jf,{id:"date",variant:"outline",className:ve("w-[276px] justify-start text-left font-normal",!r&&"text-muted-foreground")},Fe.createElement(Tf,{className:"mr-2 h-4 w-4"}),r!=null&&r.from?r.to?Fe.createElement(Fe.Fragment,null,Ce(r.from,"dd LLL, y")," -"," ",Ce(r.to,"dd LLL, y")):Ce(r.from,"dd LLL, y"):Fe.createElement("span",null,"Pick a date"))),Fe.createElement(_O,{className:"w-auto p-0",align:"end"},Fe.createElement(rs,{onValueChange:o=>{a(o)}},Fe.createElement(ti,null,Fe.createElement(ns,{placeholder:"Select"})),Fe.createElement(ri,{position:"popper"},Fe.createElement(gt,{value:"today"},"Today"),Fe.createElement(gt,{value:"yesterday"},"Yesterday"),Fe.createElement(gt,{value:"last_week"},"Last week"),Fe.createElement(Ym,{className:"my-2"}),Fe.createElement(gt,{value:"last_30_days"},"Last 30 days"),Fe.createElement(gt,{value:"last_90_days"},"Last 90 days"),Fe.createElement(gt,{value:"last_12_month"},"Last 12 month"),Fe.createElement(Ym,{className:"my-2"}),Fe.createElement(gt,{value:"previous_month"},"Previous month"),Fe.createElement(gt,{value:"previous_quarter"},"Previous quarter"),Fe.createElement(Ym,{className:"my-2"}),Fe.createElement(gt,{value:"all_time"},"All time"))),Fe.createElement(kO,{initialFocus:!0,mode:"range",defaultMonth:r==null?void 0:r.from,selected:r,onSelect:o=>{if(n(o),o!=null&&o.from&&(o!=null&&o.to)){let i=Ce(o.from,"yyyy-MM-dd 00:00:00"),s=Ce(o.to,"yyyy-MM-dd 23:59:59");t("set_date",{value:{from:i,to:s}})}},numberOfMonths:1}))))}var _n=R(G());var uCe={hits:{label:"Hits",color:"hsl(var(--chart-1))"}};function SG({statData:e,statUnit:t,statTitle:r,chartData:n,dateRange:a}){return _n.createElement(Ur,null,_n.createElement(Hr,{className:"p-4 pb-0"},_n.createElement(Wr,null,r),_n.createElement(zr,null,Ce(a.from,"dd LLL, y")," -"," ",Ce(a.to,"dd LLL, y"))),_n.createElement(Vr,{className:"flex flex-row items-baseline gap-4 p-4 pt-0"},_n.createElement("div",{className:"flex items-baseline gap-1 text-xl font-bold tabular-nums leading-none"},t==="time"?e<6e4?`${(e/1e3).toFixed(2)}s`:`${(e/6e4).toFixed(2)}m`:kh(e,2),_n.createElement("span",{className:"text-sm font-normal text-muted-foreground"},t,"/period")),_n.createElement($r,{config:uCe,className:"ml-auto w-[72px]"},_n.createElement(Zo,{accessibilityLayer:!0,margin:{left:0,right:0,top:0,bottom:0},data:n},_n.createElement(sr,{dataKey:"hits",fill:"var(--color-hits)",radius:2,fillOpacity:.2,activeIndex:n.length-1,activeBar:_n.createElement(Yo,{fillOpacity:.8})}),_n.createElement(qt,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:4,hide:!0})))))}var At=R(G());var cCe={views:{label:"Total requests"},hits:{label:"Total requests",color:"hsl(var(--chart-1))"}};function CG({chartData:e,dateRange:t,pushEvent:r}){let{interval:n,setInterval:a}=pf(),o=i=>{a(i),r("set_interval",{value:{interval:i}})};return At.createElement(Ur,null,At.createElement(Hr,{className:"flex items-center gap-2 py-5 space-y-0 border-b sm:flex-row"},At.createElement("div",{className:"grid flex-1 gap-1 text-center sm:text-left"},At.createElement(Wr,null,"Total requests"),At.createElement(zr,null,"Showing total requests for ",Ce(t.from,"dd LLL, y")," -"," ",Ce(t.to,"dd LLL, y"))),At.createElement(rs,{value:n,onValueChange:o},At.createElement(ti,{className:"w-[160px] rounded-lg sm:ml-auto","aria-label":"Select a value"},At.createElement(ns,{placeholder:"Interval"})),At.createElement(ri,{className:"rounded-xl"},At.createElement(gt,{value:"hour",className:"rounded-lg"},"Per hour"),At.createElement(gt,{value:"day",className:"rounded-lg"},"Per day"),At.createElement(gt,{value:"month",className:"rounded-lg"},"Per month")))),At.createElement(Vr,{className:"px-2 sm:p-6"},At.createElement($r,{config:cCe,className:"aspect-auto h-[250px] w-full"},At.createElement(Zo,{accessibilityLayer:!0,data:e,margin:{left:12,right:12}},At.createElement(pa,{vertical:!1}),At.createElement(qt,{dataKey:"date",tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32,tickFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short"},n!=="month"&&{day:"numeric"}),n==="month"&&{year:"numeric"}))}),At.createElement(ma,{content:At.createElement(Rn,{className:"w-[170px]",nameKey:"views",indicator:"dot",labelFormatter:i=>new Date(i).toLocaleDateString("en-US",fe(fe({month:"short",year:"numeric"},n!=="month"&&{day:"numeric"}),n==="hour"&&{hour:"numeric"}))})}),At.createElement(sr,{dataKey:"hits",fill:"var(--color-hits)"})))))}var PG={ThemeToggle:BD,VisitsChart:M8,ResChart:D8,DeviceChart:N8,StatusChart:F8,PopularChart:B8,DateRangePicker:wG,SingleStat:SG,RequestsChart:CG};var AG=R(G()),OG=R(LG());function fCe(e,t){let r=e.getAttribute(t);return r?JSON.parse(r):{}}function dCe(e){return{...fCe(e.el,"data-props"),pushEvent:e.pushEvent.bind(e),pushEventTo:e.pushEventTo.bind(e),handleEvent:e.handleEvent.bind(e),upload:e.upload.bind(e),uploadTo:e.uploadTo.bind(e)}}function jO(e){return{ReactHook:{_render(){this._root.render(AG.default.createElement(this._Component,dCe(this)))},mounted(){let r=this.el.getAttribute("data-name");if(!r)throw new Error("Component name must be provided");this._Component=e[r],this._root=OG.default.createRoot(this.el),this._render()},updated(){this._root&&this._render()},destroyed(){this._root&&window.addEventListener("phx:page-loading-stop",()=>this._root.unmount(),{once:!0})}}}}var pCe=fe({},jO(PG)),mCe=document.querySelector("meta[name='csrf-token']").getAttribute("content"),kG=new Ek("/live",$O,{longPollFallbackMs:2500,params:{_csrf_token:mCe},hooks:pCe});qb.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",e=>qb.default.show(300));window.addEventListener("phx:page-loading-stop",e=>qb.default.hide());kG.connect();window.liveSocket=kG;var hCe=()=>typeof localStorage!="undefined"&&localStorage.getItem("theme")?localStorage.getItem("theme"):window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",vCe=hCe()==="dark";document.documentElement.classList[vCe?"add":"remove"]("dark");typeof localStorage!="undefined"&&new MutationObserver(()=>{let t=document.documentElement.classList.contains("dark");localStorage.setItem("theme",t?"dark":"light")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]});})();
/*! Bundled license information:
topbar/topbar.min.js: